1import{$ as e,$n as t,$t as n,A as r,B as i,Bn as a,C as o,Cn as s,Ct as c,D as l,Dn as u,Dt as d,E as f,F as p,Fn as m,Ft as h,G as g,Gt as _,H as v,Ht as y,I as b,In as x,J as S,Jn as C,Jt as w,K as T,Kt as ee,L as E,Ln as D,Lt as O,M as k,Mn as te,Mt as A,N as ne,Nn as re,Nt as j,O as ie,On as M,P as ae,Pn as oe,Pt as se,Q as N,Qn as ce,Qt as le,R as ue,Rn as de,S as fe,St as pe,T as me,U as he,Un as ge,Ut as P,V as _e,Vt as F,W as ve,Wn as ye,Wt as I,X as be,Xt as xe,Y as Se,Yt as L,Z as Ce,Zn as R,Zt as we,_ as Te,a as Ee,an as De,b as Oe,c as ke,d as Ae,dn as je,en as Me,er as z,et as Ne,f as Pe,fn as B,g as Fe,gn as V,h as Ie,hn as H,in as Le,j as Re,jn as ze,jt as Be,k as Ve,l as He,ln as Ue,mn as U,nr as W,nt as We,o as Ge,on as Ke,p as qe,pn as Je,q as Ye,qt as Xe,rt as Ze,s as Qe,sn as $e,sr as et,t as tt,tn as nt,tt as rt,u as it,un as at,v as ot,vn as st,w as ct,x as lt,xn as ut,xt as G,y as dt,z as ft}from"./lodash-DAV4rYDB.js";/* empty css */window.axios=pe,window.axios.defaults.withCredentials=!0,window.axios.defaults.withXSRFToken=!0,c();function pt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function mt(e,t,n=`.`,r){if(!pt(t))return mt(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:pt(a)&&pt(i[t])?mt(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function ht(e){return(...t)=>t.reduce((t,n)=>mt(t,n,``,e),{})}var gt=ht();te(),Me();function _t(e){return ze()?(D(e),!0):!1}function vt(e){return typeof e==`function`?e():C(e)}var yt=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var bt=e=>e!=null,xt=Object.prototype.toString,St=e=>xt.call(e)===`[object Object]`,Ct=()=>{};function wt(e){return e||we()}function Tt(e,t){wt(t)&&at(e,t)}te(),Me();function Et(e){let t=vt(e);return(t==null?void 0:t.$el)??t}var Dt=yt?window:void 0;yt&&window.document,yt&&window.navigator,yt&&window.location;function Ot(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=Dt):[t,n,r,i]=e,!t)return Ct;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},c=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),l=s(()=>[Et(t),vt(i)],([e,t])=>{if(o(),!e)return;let i=St(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>c(e,t,n,i))))},{immediate:!0,flush:`post`}),u=()=>{l(),o()};return _t(u),u}function kt(){let e=a(!1),t=we();return t&&Ue(()=>{e.value=!0},t),e}function At(e){let t=kt();return F(()=>(t.value,!!e()))}function jt(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:o=.1,window:c=Dt,immediate:l=!0}=n,u=At(()=>c&&`IntersectionObserver`in c),d=F(()=>{let t=vt(e);return(Array.isArray(t)?t:[t]).map(Et).filter(bt)}),f=Ct,p=a(l),m=u.value?s(()=>[d.value,Et(r),p.value],([e,n])=>{if(f(),!p.value||!e.length)return;let r=new IntersectionObserver(t,{root:Et(n),rootMargin:i,threshold:o});e.forEach(e=>e&&r.observe(e)),f=()=>{r.disconnect(),f=Ct}},{immediate:l,flush:`post`}):Ct,h=()=>{f(),m(),p.value=!1};return _t(h),{isSupported:u,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:h}}var Mt=1/60*1e3,Nt=typeof performance<`u`?()=>performance.now():()=>Date.now(),Pt=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Nt()),Mt);function Ft(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){let r=t[n];r(c),o.has(r)&&(s.schedule(r),e())}i=!1,a&&(a=!1,s.process(c))}};return s}var It=40,Lt=!0,Rt=!1,zt=!1,Bt={delta:0,timestamp:0},Vt=[`read`,`update`,`preRender`,`render`,`postRender`],Ht=Vt.reduce((e,t)=>
1(e[t]=Ft(()=>Rt=!0),e),{}),Ut=Vt.reduce((e,t)=>{let n=Ht[t];return e[t]=(e,t=!1,r=!1)=>(Rt||qt(),n.schedule(e,t,r)),e},{}),Wt=Vt.reduce((e,t)=>(e[t]=Ht[t].cancel,e),{});Vt.reduce((e,t)=>(e[t]=()=>Ht[t].process(Bt),e),{});var Gt=e=>Ht[e].process(Bt),Kt=e=>{Rt=!1,Bt.delta=Lt?Mt:Math.max(Math.min(e-Bt.timestamp,It),1),Bt.timestamp=e,zt=!0,Vt.forEach(Gt),zt=!1,Rt&&(Lt=!1,Pt(Kt))},qt=()=>{Rt=!0,Lt=!0,zt||Pt(Kt)},Jt=()=>Bt;function Yt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Xt=(e,t,n)=>Math.min(Math.max(n,e),t),Zt=.001,Qt=.01,$t=.05;function en({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=Xt($t,1,o),e=Xt(Qt,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=rn(t,o),c=Math.exp(-i);return Zt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=rn(t**2,o);return(-i(t)+Zt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=nn(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var tn=12;function nn(e,t,n){let r=n;for(let n=1;n<tn;n++)r-=e(r)/t(r);return r}function rn(e,t){return e*Math.sqrt(1-t*t)}var an=[`duration`,`bounce`],on=[`stiffness`,`damping`,`mass`];function sn(e,t){return t.some(t=>e[t]!==void 0)}function cn(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!sn(e,on)&&sn(e,an)){let n=en(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ln(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=Yt(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=cn(a),p=un,m=un;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=rn(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}ln.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var un=e=>0,dn=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},fn=(e,t,n)=>-n*e+n*t+e,pn=(e,t)=>n=>Math.max(Math.min(n,t),e),mn=e=>e%1?Number(e.toFixed(5)):e,hn=/(-)?([\d]*\.?[\d])+/g,gn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_n=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vn(e){return typeof e==`string`}var yn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},bn=Object.assign(Object.assign({},yn),{transform:pn(0,1)}),xn=Object.assign(Object.assign({},yn),{default:1}),Sn=e=>({test:t=>vn(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Cn=Sn(`deg`),wn=Sn(`%`),K=Sn(`px`),Tn=Object.assign(Object.assign({},wn),{parse:e=>wn.parse(e)/100,transform:e=>wn.transform(e*100)}),En=(e,t)=>n=>!!(vn(n)&&_n.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Dn=(e,t,n)=>r=>{if(!vn(r))return r;let[i,a,o,s]=r.match(hn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},On={test:En(`hsl`,`hue`),parse:Dn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+wn.transform(mn(t))+`, `+wn.transform(mn(n))+`, `+mn(bn.transform(r))+`)`},kn=pn(0,255),An=Object.assign(Object.assign({},yn),{transform:e=>Math.round(kn(e))}),jn={test:En(`rgb`,`red`),parse:Dn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+An.transform(e)+`, `+An.transform(t)+`, `+An.transform(n)+`, `+mn(bn.transform(r))+`)`};function Mn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:i?parseInt(i,16)/255:1}}var Nn={test:En(`#`),parse:Mn,transform:jn.transform},Pn={test:e=>jn.test(e)||Nn.test(e)||On.test(e),parse:e=>jn.test(e)?jn.parse(e):On.test(e)?On.parse(e):Nn.parse(e),transform:e=>vn(e)?e:e.hasOwnProperty(`red`)?jn.transform(e):On.transform(e)},Fn="${c}",In="${n}";function Ln(e){var t,n;return isNaN(e)&&vn(e)&&(((t=e.match(hn))==null?void 0:t.length)??0)+(((n=e.match(gn))==null?void 0:n.length)??0)>0}function Rn(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(gn);r&&(n=r.length,e=e.replace(gn,Fn),t.push(...r.map(Pn.parse)));let i=e.match(hn);return i&&(e=e.replace(hn,In),t.push(...i.map(yn.parse))),{values:t,numColors:n,tokenised:e}}function zn(e){return Rn(e).values}function Bn(e){let{values:t,numColors:n,tokenised:r}=Rn(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?Fn:In,r<n?Pn.transform(e[r]):mn(e[r]));return t}}var Vn=e=>typeof e==`number`?0:e;function Hn(e){let t=zn(e);return Bn(e)(t.map(Vn))}var Un={test:Ln,parse:zn,createTransformer:Bn,getAnimatableNone:Hn},Wn=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Gn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(hn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Wn.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Kn=/([a-z-]*)\(.*?\)/g,qn=Object.assign(Object.assign({},Un),{getAnimatableNone:e=>{let t=e.match(Kn);return t?t.map(Gn).join(` `):e}});function Jn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Jn(s,r,e+1/3),a=Jn(s,r,e),o=Jn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var Xn=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Zn=[Nn,jn,On],Qn=e=>Zn.find(t=>t.test(e)),$n=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,er=(e,t)=>{let n=Qn(e),r=Qn(t);$n(e),$n(t);let i=n.parse(e),a=r.parse(t);n===On&&(i=Yn(i),n=jn),r===On&&(a=Yn(a),r=jn);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=Xn(i[t],a[t],e));return o.alpha=fn(i.alpha,a.alpha,e),n.transform(o)}},tr=e=>typeof e==`number`,nr=(e,t)=>n=>t(e(n)),rr=(...e)=>e.reduce(nr);function ir(e,t){return tr(e)?n=>
1fn(e,t,n):Pn.test(e)?er(e,t):cr(e,t)}var ar=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ir(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},or=(e,t)=>{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ir(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function sr(e){let t=Un.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e<n;e++)r||typeof t[e]==`number`?r++:t[e].hue===void 0?i++:a++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var cr=(e,t)=>{let n=Un.createTransformer(t),r=sr(e),i=sr(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?rr(ar(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},lr=(e,t)=>n=>fn(e,t,n);function ur(e){if(typeof e==`number`)return lr;if(typeof e==`string`)return Pn.test(e)?er:cr;if(Array.isArray(e))return ar;if(typeof e==`object`)return or}function dr(e,t,n){let r=[],i=n||ur(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=rr(Array.isArray(t)?t[n]:t,a)),r.push(a)}return r}function fr([e,t],[n]){return r=>n(dn(e,t,r))}function pr(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);a=t-1}let s=dn(e[a],e[a+1],i);return t[a](s)}}function mr(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=dr(t,r,i),s=a===2?fr(e,o):pr(e,o);return n?t=>s(Xt(e[0],e[a-1],t)):s}var hr=e=>t=>1-e(1-t),gr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_r=e=>t=>t**+e,vr=e=>t=>t*t*((e+1)*t-e),yr=e=>{let t=vr(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},br=1.525,xr=4/11,Sr=8/11,Cr=9/10,wr=e=>e,Tr=_r(2),Er=hr(Tr),Dr=gr(Tr),Or=e=>1-Math.sin(Math.acos(e)),kr=hr(Or),Ar=gr(kr),jr=vr(br),Mr=hr(jr),Nr=gr(jr),Pr=yr(br),Fr=4356/361,Ir=35442/1805,Lr=16061/1805,Rr=e=>{if(e===1||e===0)return e;let t=e*e;return e<xr?7.5625*t:e<Sr?9.075*t-9.9*e+3.4:e<Cr?Fr*t-Ir*e+Lr:10.8*e*e-20.52*e+10.72},zr=hr(Rr),Br=e=>e<.5?.5*(1-Rr(1-e*2)):.5*Rr(e*2-1)+.5;function Vr(e,t){return e.map(()=>t||Dr).splice(0,e.length-1)}function Hr(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function Ur(e,t){return e.map(e=>e*t)}function Wr({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=Ur(r&&r.length===o.length?r:Hr(o),i);function c(){return mr(s,o,{ease:Array.isArray(n)?n:Vr(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Gr({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var Kr={keyframes:Wr,spring:ln,decay:Gr};function qr(e){if(Array.isArray(e.to))return Wr;if(Kr[e.type])return Kr[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?Wr:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?ln:Wr}function Jr(e,t,n=0){return e-t-n}function Yr(e,t,n=0,r=!0){return r?Jr(t+-e,t,n):t-(e-t)+n}function Xr(e,t,n,r){return r?e>=t+n:e<=-n}var Zr=e=>{let t=({delta:t})=>e(t);return{start:()=>Ut.update(t,!0),stop:()=>Wt.update(t)}};function Qr(e){var t,n,{from:r,autoplay:i=!0,driver:a=Zr,elapsed:o=0,repeat:s=0,repeatType:c=`loop`,repeatDelay:l=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=Yt(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:g}=h,_,v=0,y=h.duration,b,x=!1,S=!0,C,w=qr(h);(n=(t=w).needsInterpolation)!=null&&n.call(t,r,g)&&(C=mr([0,100],[r,g],{clamp:!1}),r=0,g=100);let T=w(Object.assign(Object.assign({},h),{from:r,to:g}));function ee(){v++,c===`reverse`?(S=v%2==0,o=Yr(o,y,l,S)):(o=Jr(o,y,l),c===`mirror`&&T.flipTarget()),x=!1,p&&p()}function E(){_.stop(),f&&f()}function D(e){if(S||(e=-e),o+=e,!x){let e=T.next(Math.max(0,o));b=e.value,C&&(b=C(b)),x=S?e.done:o<=0}m==null||m(b),x&&(v===0&&(y??(y=o)),v<s?Xr(o,y,l,S)&&ee():E())}function O(){u==null||u(),_=a(D),_.start()}return i&&O(),{stop:()=>{d==null||d(),_.stop()}}}function $r(e,t){return t?1e3/t*e:0}function ei({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&e<n||r!==void 0&&e>r}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e)<Math.abs(r-e)?n:r}function _(e){m==null||m.stop(),m=Qr(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;d==null||d(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d;_({type:`decay`,from:e,velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:l,onUpdate:h(r)?e=>{u=d,d=e,t=$r(e-u,Jt().delta),(s===1&&e>o||s===-1&&e<o)&&v({from:e,to:o,velocity:t})}:void 0})}return{stop:()=>m==null?void 0:m.stop()}}var ti=(e,t)=>1-3*t+3*e,ni=(e,t)=>3*t-6*e,ri=e=>3*e,ii=(e,t,n)=>((ti(t,n)*e+ni(t,n))*e+ri(t))*e,ai=(e,t,n)=>3*ti(t,n)*e*e+2*ni(t,n)*e+ri(t),oi=1e-7,si=10;function ci(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ii(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>oi&&++s<si);return o}var li=8,ui=.001;function di(e,t,n,r){for(let i=0;i<li;++i){let i=ai(t,n,r);if(i===0)return t;let a=ii(t,n,r)-e;t-=a/i}return t}var fi=11,pi=1/10;function mi(e,t,n,r){if(e===t&&n===r)return wr;let i=new Float32Array(fi);for(let t=0;t<fi;++t)i[t]=ii(t*pi,e,n);function a(t){let r=0,a=1;for(;a!==10&&i[a]<=t;++a)r+=pi;--a;let o=(t-i[a])/(i[a+1]-i[a]),s=r+o*pi,c=ai(s,e,n);return c>=ui?di(t,s,e,n):c===0?s:ci(t,r,r+pi,e,n)}return e=>e===0||e===1?e:ii(a(e),t,r)}var hi={},gi=Object.defineProperty,_i=(e,t,n)=>t in e?gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t,n)=>(_i(e,typeof t==`symbol`?t:t+``,n),n),yi=class{constructor(){vi(this,`subscriptions`,new Set)}add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}
1notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}},bi=Object.defineProperty,xi=(e,t,n)=>t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Si=(e,t,n)=>(xi(e,typeof t==`symbol`?t:t+``,n),n);function Ci(e){return!Number.isNaN(Number.parseFloat(e))}var wi=class{constructor(e){Si(this,`current`),Si(this,`prev`),Si(this,`timeDelta`,0),Si(this,`lastUpdated`,0),Si(this,`updateSubscribers`,new yi),Si(this,`stopAnimation`),Si(this,`canTrackVelocity`,!1),Si(this,`updateAndNotify`,e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=Jt();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),Ut.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),Si(this,`scheduleVelocityCheck`,()=>Ut.postRender(this.velocityCheck)),Si(this,`velocityCheck`,({timestamp:e})=>{this.canTrackVelocity||(this.canTrackVelocity=Ci(this.current)),e!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=e,this.canTrackVelocity=Ci(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?$r(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function Ti(e){return new wi(e)}var{isArray:Ei}=Array;function Di(){let e=a({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?Ei(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)};return Tt(t),{motionValues:e,get:(t,n,r)=>{if(e.value[t])return e.value[t];let i=Ti(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i},stop:t}}function Oi(e){return Array.isArray(e)}function ki(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function Ai(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function ji(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Mi(){return{type:`keyframes`,ease:`linear`,duration:300}}function Ni(e){return{type:`keyframes`,duration:800,values:e}}var Pi={default:ji,x:ki,y:ki,z:ki,rotate:ki,rotateX:ki,rotateY:ki,rotateZ:ki,scaleX:Ai,scaleY:Ai,scale:Ai,backgroundColor:Mi,color:Mi,opacity:Mi};function Fi(e,t){let n;return n=Oi(t)?Ni:Pi[e]||Pi.default,{to:t,...n(t)}}var Ii={...yn,transform:Math.round},Li={color:Pn,backgroundColor:Pn,outlineColor:Pn,fill:Pn,stroke:Pn,borderColor:Pn,borderTopColor:Pn,borderRightColor:Pn,borderBottomColor:Pn,borderLeftColor:Pn,borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:Cn,rotateX:Cn,rotateY:Cn,rotateZ:Cn,scale:xn,scaleX:xn,scaleY:xn,scaleZ:xn,skew:Cn,skewX:Cn,skewY:Cn,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:bn,originX:Tn,originY:Tn,originZ:K,zIndex:Ii,filter:qn,WebkitFilter:qn,fillOpacity:bn,strokeOpacity:bn,numOctaves:Ii},Ri=e=>Li[e];function zi(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function Bi(e,t){let n=Ri(e);return n!==qn&&(n=Un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Vi={linear:wr,easeIn:Tr,easeInOut:Dr,easeOut:Er,circIn:Or,circInOut:Ar,circOut:kr,backIn:jr,backInOut:Nr,backOut:Mr,anticipate:Pr,bounceIn:zr,bounceInOut:Br,bounceOut:Rr};function Hi(e){if(Array.isArray(e)){let[t,n,r,i]=e;return mi(t,n,r,i)}return typeof e==`string`?Vi[e]:e}function Ui(e){return Array.isArray(e)&&typeof e[0]!=`number`}function Wi(e,t){return e!==`zIndex`&&!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&Un.test(t)&&!t.startsWith(`url(`))}function Gi(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Ki({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=Ui(e)?e.map(Hi):Hi(e)),n&&(i.elapsed=-n),i}
1function qi(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),Gi(t),Ji(e)||(e={...e,...Fi(n,t.to)}),{...t,...Ki(e)}}function Ji({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function Yi(e,t){return e[t]||e.default||e}function Xi(e,t,n,r,i){let a=Yi(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=Wi(e,n);o===`none`&&s&&typeof n==`string`&&(o=Bi(e,n));let c=Wi(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?ei({...c,...a}):Qr({...qi(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Zi(){let{motionValues:e,stop:t,get:n}=Di();return{motionValues:e,stop:t,push:(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=Xi(e,s,t,i,a);s.start(c)}}}function Qi(e,t={},{motionValues:n,push:r,stop:i}=Zi()){let o=C(t),c=a(!1);s(n,e=>{c.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let l=e=>{if(!o||!o[e])throw Error(`The variant ${e} does not exist.`);return o[e]},u=t=>{typeof t==`string`&&(t=l(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||Fi(n,t[n]),a))}).filter(Boolean);async function i(){var e,r;await Promise.all(n),(e=t.transition)==null||(r=e.onComplete)==null||r.call(e)}return Promise.all([i()])};return{isAnimating:c,apply:u,set:t=>{let n=St(t)?t:l(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},leave:async e=>{let t;if(o&&(o.leave&&(t=o.leave),!o.leave&&o.initial&&(t=o.initial)),!t){e();return}await u(t),e()},stop:i}}var $i=typeof window<`u`,ea=()=>$i&&(window.onpointerdown===null||void 0),ta=()=>$i&&(window.ontouchstart===null||void 0),na=()=>$i&&(window.onmousedown===null||void 0);function ra({target:e,state:t,variants:n,apply:r}){let i=C(n),o=a(!1),c=a(!1),l=a(!1),u=F(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),d=F(()=>{let e={};Object.assign(e,t.value),o.value&&i.hovered&&Object.assign(e,i.hovered),c.value&&i.tapped&&Object.assign(e,i.tapped),l.value&&i.focused&&Object.assign(e,i.focused);for(let t in e)u.value.includes(t)||delete e[t];return e});i.hovered&&(Ot(e,`mouseenter`,()=>o.value=!0),Ot(e,`mouseleave`,()=>{o.value=!1,c.value=!1})),i.tapped&&(na()&&(Ot(e,`mousedown`,()=>c.value=!0),Ot(e,`mouseup`,()=>c.value=!1)),ea()&&(Ot(e,`pointerdown`,()=>c.value=!0),Ot(e,`pointerup`,()=>c.value=!1)),ta()&&(Ot(e,`touchstart`,()=>c.value=!0),Ot(e,`touchend`,()=>c.value=!1))),i.focused&&(Ot(e,`focus`,()=>l.value=!0),Ot(e,`blur`,()=>l.value=!1)),s([o,c,l],()=>{r(d.value)})}function ia({set:e,target:t,variants:n,variant:r}){let i=C(n);s(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function aa({state:e,apply:t}){s(e,e=>{e&&t(e)},{immediate:!0})}function oa({target:e,variants:t,variant:n}){let r=C(t);r&&(r.visible||r.visibleOnce)&&jt(e,([{isIntersecting:e}])=>{r.visible?n.value=e?`visible`:`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||(n.value=`initial`))})}function sa(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&ia(e),t.syncVariants&&aa(e),t.visibilityHooks&&oa(e),t.eventListeners&&ra(e)}function ca(e={}){let t=de({...e}),n=a({});return s(t,()=>{let e={};for(let[n,r]of Object.entries(t))e[n]=zi(r,Ri(n));n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function la(e,t){s(()=>Et(e),e=>{e&&t(e)},{immediate:!0})}var ua={x:`translateX`,y:`translateY`,z:`translateZ`};function da(e={},t=!0){let n=de({...e}),r=a(``);return s(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>zi(e,K)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=zi(i,Ri(r));n+=`${ua[r]||r}(${e}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}var fa=[``,`X`,`Y`,`Z`],pa=[`perspective`,`translate`,`scale`,`rotate`,`skew`],ma=[`transformPerspective`,`x`,`y`,`z`];
1pa.forEach(e=>{fa.forEach(t=>{let n=e+t;ma.push(n)})});var ha=new Set(ma);function ga(e){return ha.has(e)}var _a=new Set([`originX`,`originY`,`originZ`]);function va(e){return _a.has(e)}function ya(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{ga(e)||va(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function ba(e){let{transform:t,style:n}=ya(e),{transform:r}=da(t),{style:i}=ca(n);return r.value&&(i.value.transform=r.value),i.value}function xa(e,t){let n,r,{state:i,style:a}=ca();return la(e,e=>{r=e;for(let t of Object.keys(Li))e.style[t]===null||e.style[t]===``||ga(t)||va(t)||(i[t]=e.style[t]);n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),s(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function Sa(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`).map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),o=a.length===1?a[0]:a;return{...e,[r]:o}},{})}function Ca(e,t){Object.entries(Sa(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function wa(e,t){let n,r,{state:i,transform:a}=da();return la(e,e=>{r=e,e.style.transform&&Ca(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),s(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function Ta(e){return Object.entries(e)}function Ea(e,t){let n=de({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=xa(e,r),{transform:a}=wa(e,r);return s(n,e=>{Ta(e).forEach(([e,t])=>{let n=ga(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),la(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Da(e={}){let t=C(e),n=a();return{state:F(()=>{if(n.value)return t[n.value]}),variant:n}}function Oa(e,t={},n){let{motionProperties:r}=Ea(e),{variant:i,state:a}=Da(t),o={target:e,variant:i,variants:t,state:a,motionProperties:r,...Qi(r,t)};return sa(o,n),o}var ka=[`delay`,`duration`],Aa=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...ka];function ja(e){return ka.includes(e)}function Ma(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&St(n.variants)&&(t.value={...t.value,...n.variants});for(let e of Aa)if(n&&n[e]){if(ja(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];i!=null&&(i.transition??(i.transition={}),i.transition[e]=n[e])}continue}if(St(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function Na(e,t=!1){return{created:(n,r,i)=>{let o=r.value&&typeof r.value==`string`?r.value:i.key;o&&hi[o]&&hi[o].stop();let s=t?structuredClone(ye(e)||{}):e||{},c=a(s);typeof r.value==`object`&&(c.value=r.value),Ma(i,c);let l=Oa(n,c,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=l,o&&(hi[o]=l)},mounted:(e,t,n)=>{e.motionInstance&&oa(e.motionInstance)},getSSRProps(t,n){let{initial:r}=t.value||n&&(n==null?void 0:n.props)||{};r=C(r);let i=gt({},(e==null?void 0:e.initial)||{},r||{});if(i&&Object.keys(i).length!==0)return{style:ba(i)}}}}var Pa={__proto__:null,fade:{initial:{opacity:0}
1,enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}};function Fa(e){let t=`à áâäæãåÄÄÄ
çÄÄÄÄèéêëÄÄÄÄÄǵḧîïÃīįìÅḿñÅǹÅôöòóÅøÅõÅá¹ÅÅÃÅÅ¡ÅÈÅ¥ÈûüùúūÇůűųáºáºÃ¿Ã½Å¾ÅºÅ¼Â·/_,:;`,n=new RegExp(t.split(``).join(`|`),`g`);return e.toString().replace(/[A-Z]/g,e=>`-${e}`).toLowerCase().replace(/\s+/g,`-`).replace(n,e=>`aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------`.charAt(t.indexOf(e))).replace(/&/g,`-and-`).replace(/[^\w\-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}var Ia=Symbol(import.meta.dev?`motionCustomPresets`:``),La={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Ra(e){return Object.prototype.toString.call(e)===`[object Object]`}function za(e){if(Array.isArray(e))return e.map(za);if(Ra(e)){let t={};for(let n in e)t[n]=za(e[n]);return t}return e}function Ba(e){let t=de({}),n=nt(Ia,{}),r=F(()=>e.preset==null?{}:n!=null&&e.preset in n?structuredClone(ye(n)[e.preset]):e.preset in Pa?structuredClone(Pa[e.preset]):{}),i=F(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function a(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];i!=null&&(i.transition??(i.transition={}),i.transition[n]=r)}}return e}let o=F(()=>a({...gt({},i.value,r.value,e.variants||{})},e));if(import.meta.dev){e.preset!=null&&(Pa==null?void 0:Pa[e.preset])==null&&(n==null?void 0:n[e.preset])==null&&console.warn(`[@vueuse/motion]: Preset \`${e.preset}\` not found.`);let r=e=>{var t;(t=e.variants)!=null&&t.initial&&e.set(`initial`),De(()=>{var t,n,r;(t=e.variants)!=null&&t.enter&&e.apply(`enter`),(n=e.variants)!=null&&n.visible&&e.apply(`visible`),(r=e.variants)!=null&&r.visibleOnce&&e.apply(`visibleOnce`)})};je(()=>{for(let e in t)r(t[e])})}function s(e,n,r){var i;e.props??(e.props={}),(i=e.props).style??(i.style={}),e.props.style={...e.props.style,...r};let s=a(za(o.value),e.props);return e.props.onVnodeMounted=({el:e})=>{t[n]=Oa(e,s)},e.props.onVnodeUpdated=({el:e})=>{let r=ba(t[n].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:o,setNodeInstance:s}}var Va=xe({name:`Motion`,props:{...La,is:{type:[String,Object],default:`div`}},setup(e){let t=ut(),{motionConfig:r,setNodeInstance:i}=Ba(e);return()=>{let a=ba(r.value.initial||{}),o=n(e.is,void 0,t);return i(o,0,a),o}}}),Ha=xe({name:`MotionGroup`,props:{...La,is:{type:[String,Object],required:!1}},setup(e){let t=ut(),{motionConfig:r,setNodeInstance:i}=Ba(e);return()=>{var a;let o=ba(r.value.initial||{}),s=((a=t.default)==null?void 0:a.call(t))||[];for(let e=0;e<s.length;e++){let t=s[e];
1t.type===O&&Array.isArray(t.children)?t.children.forEach(function e(t,n){if(t!=null){if(Array.isArray(t)){e(t,n);return}typeof t==`object`&&i(t,n,o)}}):i(t,e,o)}return e.is?n(e.is,void 0,s):s}}}),Ua={install(e,t){if(e.directive(`motion`,Na()),!t||t&&!t.excludePresets)for(let t in Pa){let n=Pa[t];e.directive(`motion-${Fa(t)}`,Na(n,!0))}if(t&&t.directives)for(let n in t.directives){let r=t.directives[n];!r.initial&&import.meta.dev&&console.warn(`Your directive v-motion-${n} is missing initial variant!`),e.directive(`motion-${n}`,Na(r,!0))}e.provide(Ia,t==null?void 0:t.directives),e.component(`Motion`,Va),e.component(`MotionGroup`,Ha)}},Wa={"gc-bottom":{initial:{scale:0,opacity:0,y:100},enter:{scale:1,opacity:1,y:0,transition:{duration:3e3,delay:50,type:`spring`}}},"gc-fade-enter":{initial:{opacity:0},enter:{opacity:1,transition:{duration:3e3,delay:100,type:`spring`}}},"gc-fade-visible":{initial:{opacity:0},visibleOnce:{opacity:1,transition:{duration:3e3,delay:150,type:`spring`}}},"gc-slide-right-enter":{initial:{opacity:0,x:100},enter:{opacity:1,x:0,transition:{duration:2e3,delay:100,type:`spring`}}},"gc-slide-bottom":{initial:{opacity:0,y:80},visibleOnce:{opacity:1,y:0,transition:{duration:2e3,delay:300,type:`spring`}}},"gc-slide-right-visible":{initial:{opacity:0,x:100},visibleOnce:{opacity:1,x:0,transition:{duration:2e3,delay:50,type:`spring`}}},"gc-slide-left-enter":{initial:{opacity:0,x:-100},enter:{opacity:1,x:0,transition:{duration:2e3,delay:100,type:`spring`}}},"gc-slide-left-visible":{initial:{opacity:0,x:-100},visibleOnce:{opacity:1,x:0,transition:{duration:2e3,delay:50,type:`spring`}}}},Ga=et(Pe());function Ka(e=document){let t=e==null?void 0:e.documentElement;if(!t)return 0;let n=getComputedStyle(t).getPropertyValue(`--site-alert-height`).trim(),r=parseFloat(n);return Number.isFinite(r)?r:0}var qa=[`innerHeight`,`h-screen`,`h-lvh`,`h-svh`,`h-dvh`,`min-h-screen`,`min-h-lvh`,`min-h-svh`,`min-h-dvh`].filter(e=>e!==`innerHeight`);function Ja(e){return qa.includes(e)}function Ya(e){return e===`innerHeight`}
1function Xa(e=window){return e?Math.max(0,e.innerHeight-Ka(e.document)):0}function Za(e,t=window){if(!t||typeof e!=`function`)return()=>{};let n=()=>e(Xa(t));return t.addEventListener(`site-alert:change`,n),t.addEventListener(`orientationchange`,n),n(),()=>{t.removeEventListener(`site-alert:change`,n),t.removeEventListener(`orientationchange`,n)}}c();var Qa={data(){return{height:``}},mounted(){this._unbindViewportHeight=Za(e=>{this.height=e}),(0,Ga.default)(`.lozad`,{loaded:function(e){e.classList.remove(`load`),e.classList.add(`fade`)}}).observe()},beforeUnmount(){var e;(e=this._unbindViewportHeight)==null||e.call(this),this._unbindViewportHeight=null}};function $a(e,t,n,r,i,a){return H(e.$slots,`default`,{height:i.height})}var eo=G(Qa,[[`render`,$a]]);function to(e){return e?e.querySelectorAll(`.swiper-slide:not(.swiper-slide-duplicate)`).length:0}function no(e){return e?e.querySelector(`.swiper-pagination-post`):null}function ro({navigation:e=null}={}){let t={grabCursor:!0,slidesPerView:`auto`,centeredSlides:!0,slidesPerGroup:1,spaceBetween:12,loop:!1,watchSlidesProgress:!0,observer:!0,observeParents:!0,speed:600,breakpoints:{768:{slidesPerView:2,centeredSlides:!1,spaceBetween:16},1024:{slidesPerView:3,centeredSlides:!1,spaceBetween:16},1424:{slidesPerView:4,centeredSlides:!1,spaceBetween:16}},on:{afterInit(e){e.update()},imagesReady(e){e.update()}}};return e&&(t.navigation=e),t}function io(){return typeof window<`u`&&window.matchMedia(`(max-width: 767px)`).matches}function ao(e){var t;if(!(e!=null&&(t=e.slides)!=null&&t.length))return 0;if(!e.params.centeredSlides)return typeof e.activeIndex==`number`?e.activeIndex:0;let n=e.size/2,r=e.activeIndex||0,i=1/0;return e.slides.forEach((t,a)=>{if(t.classList.contains(`swiper-slide-duplicate`))return;let o=t.offsetLeft+t.offsetWidth/2+e.translate,s=Math.abs(o-n);s<i&&(i=s,r=a)}),r}function oo(e,t,n){if(!e||!t||n<=1)return;let r=[],i=()=>{if(t.innerHTML=``,r=[],io())for(let i=0;i<n;i+=1){let n=document.createElement(`span`);n.className=`swiper-pagination-bullet`,n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`),n.setAttribute(`aria-label`,`Slide ${i+1}`),n.addEventListener(`click`,()=>e.slideTo(i)),t.appendChild(n),r.push(n)}},a=()=>{if(!io()){t.innerHTML=``,r=[];return}r.length!==n&&i();let a=ao(e);r.forEach((e,t)=>{let n=t===a;e.classList.toggle(`swiper-pagination-bullet-active`,n),e.setAttribute(`aria-current`,n?`true`:`false`)})};i(),a(),e.on(`slideChange`,a),e.on(`transitionEnd`,a),e.on(`breakpoint`,()=>{i(),a()}),e.on(`resize`,()=>{i(),a()}),e.postSliderSyncPagination=a}function so(e,t,{navigation:n=null}={}){var r;if(!e||!t)return null;(r=e.swiper)!=null&&r.destroy&&e.swiper.destroy(!0,!0);let i=to(e);if(i===0)return null;let a=no(e),o=new t(e,ro({navigation:n}));return oo(o,a,i),requestAnimationFrame(()=>{var e;o.update(),(e=o.postSliderSyncPagination)==null||e.call(o)}),o}c();var co={data(){return{height:``,lang:config.locale}},methods:{loadSwipe(){let e=typeof window<`u`?window.Swiper:null;e&&document.querySelectorAll(`.post-swiper`).forEach(t=>{let n=t.closest(`.post-slide-section`);so(t,e,{navigation:{nextEl:(n==null?void 0:n.querySelector(`.swiper-button-next-post`))||`.swiper-button-next-post`,prevEl:(n==null?void 0:n.querySelector(`.swiper-button-prev-post`))||`.swiper-button-prev-post`}})})},date(e){if(e){if(this.lang==`sv`){var t=new Date(e.replace(/-/g,`/`));return t.toLocaleDateString(`sv-SE`,{day:`2-digit`,month:`short`,year:`numeric`})}var t=new Date(e.replace(/-/g,`/`));return t.toLocaleDateString(`en-GB`,{day:`2-digit`,month:`short`,year:`numeric`})}}},mounted(){this._unbindViewportHeight=Za(e=>{this.height=e}),this.loadSwipe();let e=()=>{(0,Ga.default)(`.lozad`,{rootMargin:`180px 0px`,threshold:0,loaded:function(e){e.classList.remove(`load`),e.classList.add(`fade`)}}).observe()};this.$nextTick(()=>{setTimeout(e,0)})},beforeUnmount(){var e;(e=this._unbindViewportHeight)==null||e.call(this),this._unbindViewportHeight=null}};function lo(e,t,n,r,i,a){return H(e.$slots,`default`,{date:a.date})}var uo=G(co,[[`render`,lo]]);c();var fo={data(){return{open:!1,openPanel:null,moreOpen:!1,theme:config.appTheme,undernav:!1,navSolid:!0}},computed:{navGlass(){return this.undernav&&!this.navSolid&&!this.open}},mounted(){var e;this.undernav=!!((e=document.getElementById(`app`))!=null&&e.classList.contains(`undernav`)),this.undernav&&(this.navSolid=!1,this.$nextTick(()=>{this.bindNavScroll()}))},beforeUnmount(){this.unbindNavScroll()},methods:{setOpen(){this.open=!0,document.body.style.overflow=`hidden`},setClose(){this.open=!1,document.body.style.overflow=`visible`},setOpenPanel(e){this.openPanel=e},toggleMore(){this.moreOpen=!this.moreOpen},closeMore(){this.moreOpen=!1},bindNavScroll(){this.unbindNavScroll(),this._onNavScroll=()=>{this._navScrollRaf||(this._navScrollRaf=requestAnimationFrame(()=>{this._navScrollRaf=null,this.updateNavSolid()}))},this._onNavResize=()=>this.updateNavSolid(),window.addEventListener(`scroll`,this._onNavScroll,{passive:!0}),window.addEventListener(`resize`,this._onNavResize,{passive:!0}),this.updateNavSolid()},unbindNavScroll(){this._onNavScroll&&(window.removeEventListener(`scroll`,this._onNavScroll),this._onNavScroll=null),this._onNavResize&&(window.removeEventListener(`resize`,this._onNavResize),this._onNavResize=null),this._navScrollRaf&&(cancelAnimationFrame(this._navScrollRaf),this._navScrollRaf=null)},navHeight(){let e=document.querySelector(`.mainnav`);return e?e.offsetHeight:56},firstSectionEndY(){let e=document.querySelector(`[data-nav-scroll-sentinel]`);return e?e.getBoundingClientRect().bottom+window.scrollY:null},updateNavSolid(){let e=this.firstSectionEndY();if(e==null){this.navSolid=!0;return}
1this.navSolid=window.scrollY+this.navHeight()>=e-1}}};function po(e,t,n,r,i,a){return H(e.$slots,`default`,{open:i.open,openPanel:i.openPanel,moreOpen:i.moreOpen,theme:i.theme,navGlass:a.navGlass,setOpen:a.setOpen,setClose:a.setClose,setOpenPanel:a.setOpenPanel,toggleMore:a.toggleMore,closeMore:a.closeMore})}var mo=G(fo,[[`render`,po]]);c();var ho={name:`DesktopNavSearch`,props:{locale:{type:String,required:!0},placeholder:{type:String,default:``}},data(){return{open:!1,query:``,inputId:`desktop-nav-search-${Math.random().toString(36).slice(2,9)}`,panelId:`desktop-nav-search-panel-${Math.random().toString(36).slice(2,9)}`}},computed:{shellClass(){return this.open?`w-[min(280px,calc(100vw-10rem))] bg-white shadow-md ring-gray-200/90`:`w-9 bg-white/10 ring-white/25 backdrop-blur-[2px] hover:bg-white/18 hover:ring-white/45 hover:shadow-md`}},mounted(){this._onDocDown=e=>{let t=this.$refs.root;t&&this.open&&(t.contains(e.target)||this.close())},document.addEventListener(`mousedown`,this._onDocDown)},unmounted(){document.removeEventListener(`mousedown`,this._onDocDown)},methods:{openSearch(){this.open||(this.open=!0,this.$nextTick(()=>{let e=this.$refs.field;e&&e.focus()}))},close(){this.open=!1},submit(){let e=this.query.trim(),t=`/${this.locale}/search`,n=e?`${t}?search=${encodeURIComponent(e)}`:t;window.location.href=n}}},go={ref:`root`,class:`mr-1 shrink-0`},_o=[`id`],vo=[`aria-label`],yo=[`for`],bo=[`id`,`placeholder`];function xo(e,t,n,r,i,a){return B(),_(`div`,go,[y(`div`,{class:R([`relative flex h-9 items-center overflow-hidden rounded-xl shadow-black/10 ring-1 ring-inset transition-all duration-300 ease-out motion-reduce:transition-none`,a.shellClass]),id:i.panelId,role:`search`},[M(y(`button`,{type:`button`,class:`absolute inset-0 z-10 flex items-center justify-center rounded-xl text-gray-100 outline-none transition duration-200 hover:bg-white/15 hover:text-white active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-white/55 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent`,"aria-expanded":`false`,"aria-label":n.placeholder,onClick:t[0]||(t[0]=(...e)=>a.openSearch&&a.openSearch(...e))},[...t[4]||(t[4]=[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,class:`h-5 w-5`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z`,"clip-rule":`evenodd`})],-1)])],8,vo),[[j,!i.open]]),M(y(`form`,{class:`flex h-full w-full min-w-0 items-center gap-1.5 px-2.5 py-0.5`,onSubmit:t[3]||(t[3]=h((...e)=>a.submit&&a.submit(...e),[`prevent`]))},[y(`label`,{for:i.inputId,class:`sr-only`},z(n.placeholder),9,yo),t[5]||(t[5]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,class:`h-5 w-5 shrink-0 text-gray-400 transition-colors duration-200`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z`,"clip-rule":`evenodd`})],-1)),M(y(`input`,{id:i.inputId,ref:`field`,"onUpdate:modelValue":t[1]||(t[1]=e=>i.query=e),type:`search`,name:`search`,autocomplete:`off`,placeholder:n.placeholder,class:`min-w-0 flex-1 border-0 bg-transparent py-1 text-sm text-gray-900 placeholder:text-gray-400 focus:outline-none focus:ring-0`,onKeydown:t[2]||(t[2]=se(h((...e)=>a.close&&a.close(...e),[`prevent`]),[`escape`]))},null,40,bo),[[A,i.query]])],544),[[j,i.open]])],10,_o)],512)}var So=G(ho,[[`render`,xo]]);c();var Co={data(){return{open:!1,color:config.color,menuColor:config.menuColor}},mounted(){this._onEscape=e=>{e.key===`Escape`&&this.open&&(e.preventDefault(),this.setClose())},document.addEventListener(`keydown`,this._onEscape)},unmounted(){document.removeEventListener(`keydown`,this._onEscape)},methods:{setOpen(){this.open=!0},setClose(){this.open=!1}}};function wo(e,t,n,r,i,a){return H(e.$slots,`default`,{open:i.open,setOpen:a.setOpen,setClose:a.setClose,color:i.color,menuColor:i.menuColor})}var To=G(Co,[[`render`,wo]]);c();var Eo={props:[`search`,`language`],data(){return{keyword:this.search||``,filters:[],items:[],type:null,page:0,pages:0,hits:0,total:0,next:null,prev:null,loading:!0,error:!1}},mounted(){this.keyword?this.submit():this.loading=!1},methods:{onMobileFilter(e){let t=e.target.value;t===`all`?this.getByType():this.getByType(t)},clearKeyword(){this.keyword=``,this.submit()},getType(e){var t;return((t={sv:{post:`Nyhet`,page:`Webbsida`,document:`Dokument`},en:{post:`News`,page:`Webpage`,document:`Document`}}[this.language])==null?void 0:t[e])??e},getByPage(e=null){this.submit(null,e)},getByType(e=null){this.type=e,this.submit()}
1,submit(e,t=1){e&&e.code===`Enter`&&(this.type=null),this.loading=!0,this.error=!1,t===1?history.pushState(null,``,`?search=`+encodeURIComponent(this.keyword||``)):history.pushState(null,``,`?search=`+encodeURIComponent(this.keyword||``)+`&page=`+t),axios.post(`/api/v1/searches`,{keyword:this.keyword,language:this.language,type:this.type,page:t}).then(e=>{this.filters=e.data.filters,this.items=e.data.items,this.type=e.data.type,this.hits=e.data.hits,this.page=e.data.page,this.pages=e.data.pages,this.total=e.data.total,this.next=e.data.next,this.prev=e.data.prev,this.loading=!1}).catch(()=>{this.loading=!1,this.error=!0})}}},Do={class:`min-h-[70vh] bg-gradient-to-b from-slate-50 via-white to-gray-50/80 pb-16`},Oo={class:`relative overflow-hidden border-b border-gray-100/80 bg-white/70 backdrop-blur-sm`},ko={class:`relative mx-auto max-w-4xl px-4 pb-10 pt-10 sm:px-6 lg:px-8 lg:pb-12 lg:pt-14`},Ao={class:`text-xs font-semibold uppercase tracking-wider text-blue-600/90`},jo={class:`mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl`},Mo={class:`mt-2 max-w-2xl text-sm leading-relaxed text-gray-600`},No={class:`relative mt-8`},Po={class:`rounded-2xl bg-white p-2 shadow-lg shadow-blue-900/[0.06] ring-1 ring-gray-200/80 transition-shadow duration-300 focus-within:shadow-xl focus-within:ring-blue-200`},Fo={class:`relative flex items-center`},Io=[`placeholder`],Lo=[`aria-label`],Ro={class:`mt-8`},zo={class:`sm:hidden`},Bo={class:`sr-only`,for:`search-filter-mobile`},Vo={value:`all`},Ho=[`value`],Uo={class:`hidden sm:block`},Wo={class:`inline-flex flex-wrap items-center gap-2 rounded-2xl bg-gray-100/90 p-1.5 ring-1 ring-gray-200/60`,role:`tablist`},Go=[`onClick`],Ko={class:`mx-auto max-w-4xl px-4 py-10 sm:px-6 lg:px-8`},qo={class:`grid gap-5 sm:gap-6 lg:grid-cols-1`},Jo={key:0,class:`rounded-2xl border border-gray-100 bg-white px-6 py-14 text-center shadow-sm`},Yo={class:`text-sm font-medium text-gray-500`},Xo={key:1,class:`rounded-2xl border border-red-100 bg-red-50/80 px-6 py-16 text-center`},Zo={class:`text-lg font-medium text-red-800`},Qo={class:`mt-2 text-sm text-red-700/90`},$o={key:2,class:`rounded-2xl border border-dashed border-gray-200 bg-gray-50/80 px-6 py-16 text-center`},es={class:`text-lg font-medium text-gray-700`},ts={class:`mt-2 text-sm text-gray-500`},ns={class:`group rounded-2xl border border-gray-100 bg-white p-5 shadow-sm ring-1 ring-black/[0.03] transition duration-200 hover:border-blue-100 hover:shadow-md`},rs={class:`inline-flex items-center rounded-full bg-blue-50 px-2.5 py-0.5 text-xs font-semibold uppercase tracking-wide text-blue-800`},is=[`href`],as={class:`text-lg font-semibold leading-snug text-gray-900 group-hover:text-blue-800`},os={class:`mt-2 line-clamp-3 text-sm leading-relaxed text-gray-600`},ss={class:`mt-4`},cs=[`href`],ls={key:0,class:`mt-10 text-center text-sm text-gray-500`},us=[`textContent`],ds=[`textContent`],fs=[`textContent`],ps=[`textContent`],ms=[`textContent`],hs=[`textContent`],gs={key:1,class:`mt-8 flex flex-wrap items-center justify-between gap-4 border-t border-gray-100 pt-8`,"aria-label":`Pagination`},_s={key:1},vs={class:`hidden flex-1 justify-center gap-1 md:flex`},ys=[`onClick`],bs={key:3};function xs(e,t,n,r,i,a){return B(),_(`div`,Do,[y(`div`,Oo,[t[9]||(t[9]=y(`div`,{class:`pointer-events-none absolute inset-x-0 -top-24 h-48 bg-gradient-to-br from-blue-100/40 via-transparent to-transparent`,"aria-hidden":`true`},null,-1)),y(`div`,ko,[y(`p`,Ao,z(n.language===`sv`?`Sök pÃ¥ webbplatsen`:`Site search`),1),y(`h1`,jo,z(n.language===`sv`?`Sök`:`Search`),1),y(`p`,Mo,z(n.language===`sv`?`Hitta artiklar, sidor och dokument.`:`Find articles, pages, and documents.`),1),y(`div`,No,[y(`div`,Po,[y(`div`,Fo,[t[8]||(t[8]=y(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-4`},[y(`svg`,{class:`h-5 w-5 text-blue-500`,fill:`currentColor`,viewBox:`0 0 20 20`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z`,"clip-rule":`evenodd`})])],-1)),M(y(`input`,{"onUpdate:modelValue":t[0]||(t[0]=e=>i.keyword=e),type:`search`,placeholder:n.language===`sv`?`Skriv och tryck Enterâ¦`:`Type and press Enterâ¦`,class:`block w-full rounded-xl border-0 bg-transparent py-3.5 pl-12 pr-12 text-base text-gray-900 placeholder:text-gray-400 focus:outline-none focus:ring-0 sm:text-sm`,onKeyup:t[1]||(t[1]=se((...e)=>a.submit&&a.submit(...e),[`enter`]))}
1,null,40,Io),[[A,i.keyword]]),i.keyword?(B(),_(`button`,{key:0,type:`button`,class:`absolute inset-y-0 right-2 my-auto inline-flex h-9 w-9 items-center justify-center rounded-lg text-gray-400 transition hover:bg-gray-100 hover:text-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500`,"aria-label":n.language===`sv`?`Rensa`:`Clear`,onClick:t[2]||(t[2]=(...e)=>a.clearKeyword&&a.clearKeyword(...e))},[...t[7]||(t[7]=[y(`svg`,{class:`h-5 w-5`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[y(`path`,{d:`M6 18L18 6M6 6l12 12`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)])],8,Lo)):I(``,!0)])])]),y(`div`,Ro,[y(`div`,zo,[y(`label`,Bo,z(n.language===`sv`?`Filtrera`:`Filter`),1),y(`select`,{id:`search-filter-mobile`,class:`mt-1 block w-full rounded-xl border-gray-200 bg-white py-3 pl-4 pr-10 text-base shadow-sm ring-1 ring-gray-200/80 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/30`,onChange:t[3]||(t[3]=e=>a.onMobileFilter(e))},[y(`option`,Vo,z(n.language===`sv`?`Allt`:`All`),1),(B(!0),_(O,null,U(i.filters,e=>(B(),_(`option`,{key:e.type,value:e.type},z(a.getType(e.type)),9,Ho))),128))],32)]),y(`div`,Uo,[y(`div`,Wo,[y(`button`,{type:`button`,role:`tab`,class:R([`rounded-xl px-4 py-2.5 text-sm font-semibold transition duration-200`,i.type===null?`bg-white text-blue-700 shadow-sm ring-1 ring-black/[0.06]`:`text-gray-600 hover:bg-white/60 hover:text-gray-900`]),onClick:t[4]||(t[4]=e=>a.getByType())},z(n.language===`sv`?`Allt`:`All`),3),(B(!0),_(O,null,U(i.filters,e=>(B(),_(`button`,{key:e.type,type:`button`,role:`tab`,class:R([`rounded-xl px-4 py-2.5 text-sm font-semibold transition duration-200`,i.type===e.type?`bg-white text-blue-700 shadow-sm ring-1 ring-black/[0.06]`:`text-gray-600 hover:bg-white/60 hover:text-gray-900`]),onClick:t=>a.getByType(e.type)},z(a.getType(e.type)),11,Go))),128))])])])])]),y(`div`,Ko,[y(`ol`,qo,[i.loading?(B(),_(`li`,Jo,[y(`p`,Yo,z(n.language===`sv`?`Sökerâ¦`:`Searchingâ¦`),1)])):i.error?(B(),_(`li`,Xo,[y(`p`,Zo,z(n.language===`sv`?`Sökningen kunde inte genomföras`:`Search could not be completed`),1),y(`p`,Qo,z(n.language===`sv`?`Försök igen om en stund.`:`Please try again in a moment.`),1)])):i.items.length?I(``,!0):(B(),_(`li`,$o,[y(`p`,es,z(n.language===`sv`?`Inga träffar`:`No results`),1),y(`p`,ts,z(n.language===`sv`?`Prova ett annat sökord eller bredare filter.`:`Try another keyword or filter.`),1)])),(B(!0),_(O,null,U(i.items,(e,r)=>(B(),_(`li`,{key:r},[y(`article`,ns,[y(`span`,rs,z(a.getType(e.type)),1),y(`a`,{href:e.url,class:`mt-3 block focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 rounded-lg`},[y(`h2`,as,z(e.title),1),y(`p`,os,z(e.intro),1)],8,is),y(`div`,ss,[y(`a`,{href:e.url,class:`inline-flex items-center gap-1 text-sm font-semibold text-blue-600 transition hover:text-blue-500`},[y(`span`,null,z(n.language===`sv`?`Ãppna`:`Open`),1),t[10]||(t[10]=y(`span`,{"aria-hidden":`true`},`â`,-1))],8,cs)])])]))),128))]),i.total?(B(),_(`p`,ls,[n.language===`sv`?(B(),_(O,{key:0},[t[11]||(t[11]=w(` Sida `,-1)),y(`span`,{textContent:z(i.page)},null,8,us),t[12]||(t[12]=w(` av `,-1)),y(`span`,{textContent:z(i.pages)},null,8,ds),t[13]||(t[13]=w(` · `,-1)),y(`span`,{textContent:z(i.total)},null,8,fs),t[14]||(t[14]=w(` resultat `,-1))],64)):(B(),_(O,{key:1},[t[15]||(t[15]=w(` Page `,-1)),y(`span`,{textContent:z(i.page)},null,8,ps),t[16]||(t[16]=w(` of `,-1)),y(`span`,{textContent:z(i.pages)},null,8,ms),t[17]||(t[17]=w(` · `,-1)),y(`span`,{textContent:z(i.total)},null,8,hs),t[18]||(t[18]=w(` results `,-1))],64))])):I(``,!0),i.pages>1?(B(),_(`nav`,gs,[i.prev?(B(),_(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-2 rounded-full border border-gray-200 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm transition hover:border-blue-200 hover:bg-blue-50/50 hover:text-blue-800 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500`,onClick:t[5]||(t[5]=e=>a.getByPage(i.prev))},[t[19]||(t[19]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:`currentColor`,class:`h-5 w-5 text-gray-400`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18`}
1)],-1)),w(` `+z(n.language===`sv`?`Föregående`:`Previous`),1)])):(B(),_(`div`,_s)),y(`div`,vs,[(B(!0),_(O,null,U(i.pages,e=>(B(),_(`button`,{key:e,type:`button`,class:R([`inline-flex min-w-[2.5rem] items-center justify-center rounded-full px-3 py-2 text-sm font-medium transition`,e===i.page?`bg-blue-600 text-white shadow-md shadow-blue-600/25`:`text-gray-600 hover:bg-gray-100`]),onClick:t=>a.getByPage(e)},z(e),11,ys))),128))]),i.next?(B(),_(`button`,{key:2,type:`button`,class:`inline-flex items-center gap-2 rounded-full border border-gray-200 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm transition hover:border-blue-200 hover:bg-blue-50/50 hover:text-blue-800 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500`,onClick:t[6]||(t[6]=e=>a.getByPage(i.next))},[w(z(n.language===`sv`?`Nästa`:`Next`)+` `,1),t[20]||(t[20]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:`currentColor`,class:`h-5 w-5 text-gray-400`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3`})],-1))])):(B(),_(`div`,bs))])):I(``,!0)])])}var Ss=G(Eo,[[`render`,xs]]),Cs=W(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=n||self).algoliasearch=r()})(e,(function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]==null?{}:arguments[r];r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)===`[object Arguments]`){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||s.return==null||s.return()}finally{if(i)throw a}}return n}}(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance`)}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)===`[object Arguments]`)return Array.from(e)}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance`)}()}function o(){var e=typeof globalThis<`u`?globalThis:void 0;return e&&e.scheduler&&e.scheduler.yield?e.scheduler.yield().catch((function(e){return console.error(`Failed to yield to main: `,e),new Promise((function(e){return setTimeout(e,0)}))})):new Promise((function(e){return setTimeout(e,0)}))}function s(e){var t,n=`algoliasearch-client-js-${e.key}`,r=function(){return t===void 0&&(t=e.localStorage||window.localStorage),t},a=function(){return JSON.parse(r().getItem(n)||`{}`)},s=function(e){r().setItem(n,JSON.stringify(e))},c=function(){var t=e.timeToLive?1e3*e.timeToLive:null,n=a(),r=new Date().getTime();return Object.fromEntries(Object.entries(n).filter((function(e){var n=i(e,2)[1];return!(!n||n.timestamp===void 0)&&(!t||n.timestamp+t>=r)})))};return{get:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then((function(){var r=c(),i=r[JSON.stringify(e)];return s(r),i?i.value:t().then((function(e){return n.miss(e).then((function(){return e}))}))}))},set:function(e,t){return o().then((function(){var i=a();return i[JSON.stringify(e)]={timestamp:new Date().getTime(),value:t},r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return o().then((function(){var t=a();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function c(e){var t=a(e.caches),n=t.shift();return n===void 0?{get:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return c({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return c({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return c({caches:t}).delete(e)}))}
1,clear:function(){return n.clear().catch((function(){return c({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var o=r(),s=i&&i.miss||function(){return Promise.resolve()};return o.then((function(e){return s(e)})).then((function(){return o}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function d(e,t){return t&&Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e}function f(e){var t=[...arguments].slice(1),n=0;return e.replace(/%s/g,(function(){return encodeURIComponent(t[n++])}))}var p={WithinQueryParameters:0,WithinHeaders:1};function m(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){[`timeout`,`headers`,`queryParameters`,`data`,`cacheable`].indexOf(e)===-1&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},g=1,_=2,v=3;function y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return typeof e==`string`?{protocol:`https`,url:e,accept:h.Any}:{protocol:e.protocol||`https`,url:e.url,accept:e.accept||h.Any}}var x=`GET`,S=`POST`;function C(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===g||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===v&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(a(n),a(r));return{getTimeout:function(e,t){return(r.length===0&&e===0?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function w(e,t,r,i){var o=[],s=function(e,t){if(!(e.method===x||e.data===void 0&&t.data===void 0)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),c=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),l=r.method,u=r.method===x?n(n({},r.data),i.data):{},d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),i.queryParameters),f=0,p=function t(n,a){var u=n.pop();if(u===void 0)throw{name:`RetryError`,message:`Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .`,transporterStackTrace:D(o)};var p={data:s,headers:c,method:l,url:ee(u,r.path,d),connectTimeout:a(f,e.timeouts.connect),responseTimeout:a(f,i.timeout)},m=function(e){var t={request:p,response:e,host:u,triesLeft:n.length};return o.push(t),t},h={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:`DeserializationError`,message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=m(r);return r.isTimedOut&&f++,Promise.all([e.logger.info(`Retryable failure`,O(i)),e.hostsCache.set(u,y(u,r.isTimedOut?v:_))]).then((function(){return t(n,a)}))},onFail:function(e){throw m(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch{}return function(e,t,n){return{name:`ApiError`,message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,D(o))}};return e.requester.send(p).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&~~n==0}(e)||~~(t/100)!=2&&~~(t/100)!=4}(e)?t.onRetry(e):~~(e.status/100)==2?t.onSuccess(e):t.onFail(e)}(e,h)}))};return C(e.hostsCache,t).then((function(e){return p(a(e.statelessHosts).reverse(),e.getTimeout)}))}function T(e){var t={value:`Algolia for JavaScript (${e})`,add:function(e){var n=`; ${e.segment}${e.version===void 0?``:` (${e.version})`}`;return t.value.indexOf(n)===-1&&(t.value=`${t.value}${n}`),t}};return t}function ee(e,t,n){var r=E(n),i=`${e.protocol}://${e.url}/${t.charAt(0)===`/`?t.substr(1):t}`;return r.length&&(i+=`?${r}`),i}function E(e){return Object.keys(e).map((function(t){return f(`%s=%s`,t,(n=e[t],Object.prototype.toString.call(n)===`[object Object]`||Object.prototype.toString.call(n)===`[object Array]`?JSON.stringify(e[t]):e[t]));var n})).join(`&`)}function D(e){return e.map((function(e){return O(e)}))}function O(e){var t=e.request.headers[`x-algolia-api-key`]?{"x-algolia-api-key":`*****`}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var k=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(e.authMode===void 0?p.WithinHeaders:e.authMode,t,e.apiKey),a=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,a=e.requestsCache,o=e.responsesCache,s=e.timeouts,c=e.userAgent,l=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:a,responsesCache:o,timeouts:s,userAgent:c,headers:e.headers,queryParameters:u,hosts:l.map((function(e){return b(e)})),read:function(e,t){var n=m(t,d.timeouts.read),r=function(){return w(d,d.hosts.filter((function(e){return(e.accept&h.Read)!=0})),e,n)};if(!0!==(n.cacheable===void 0?e.cacheable:n.cacheable))return r();var a={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(a,(function(){return d.requestsCache.get(a,(function(){return d.requestsCache.set(a,r()).then((function(e){return Promise.all([d.requestsCache.delete(a),e])}),(function(e){return Promise.all([d.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(a,e)}})},write:function(e,t){return w(d,d.hosts.filter((function(e){return(e.accept&h.Write)!=0})),e,m(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:`${t}-dsn.algolia.net`,accept:h.Read},{url:`${t}.algolia.net`,accept:h.Write}].concat(u([{url:`${t}-1.algolianet.com`},{url:`${t}-2.algolianet.com`},{url:`${t}-3.algolianet.com`}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":`application/x-www-form-urlencoded`}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return d({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},te=function(e){return function(t,n){return t.method===x?e.transporter.read(t,n):e.transporter.write(t,n)}},A=function(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return d({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},ne=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:E(e.params||{})})}));return e.transporter.read({method:S,path:`1/indexes/*/queries`,data:{requests:i},cacheable:!0},r)}},re=function(e){return function(t,i){return Promise.all(t.map((function(t){var a=t.params,o=a.facetName,s=a.facetQuery,c=r(a,[`facetName`,`facetQuery`]);return A(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(o,s,n(n({},i),c))})))}},j=function(e){return function(t,n,r){return e.transporter.read({method:S,path:f(`1/answers/%s/prediction`,e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},ie=function(e){return function(t,n){return e.transporter.read({method:S,path:f(`1/indexes/%s/query`,e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:S,path:f(`1/indexes/%s/facets/%s/query`,e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},ae=1,oe=2,se=3,N=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:S,path:`1/indexes/*/recommendations`,data:{requests:i},cacheable:!0},r)}};function ce(e,t,r){var i;return k(n(n(n({},{appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;
1n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},a=i(e.connectTimeout,`Connection timeout`);n.onreadystatechange=function(){n.readyState>n.OPENED&&r===void 0&&(clearTimeout(a),r=i(e.responseTimeout,`Socket timeout`))},n.onerror=function(){n.status===0&&(clearTimeout(a),clearTimeout(r),t({content:n.responseText||`Network request failed`,status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(a),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=se,{debug:function(e,t){return ae>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return oe>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:c({caches:[s({key:`4.26.0-${e}`}),l()]}),userAgent:T(`4.26.0`).add({segment:`Browser`,version:`lite`}),authMode:p.WithinQueryParameters}),r),{},{methods:{search:ne,searchForFacetValues:re,multipleQueries:ne,multipleSearchForFacetValues:re,customRequest:te,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:ie,searchForFacetValues:M,findAnswers:j}})}},getRecommendations:N}}))}return ce.version=`4.26.0`,ce}))}));function ws(e,t,n){if(!e)throw Error("You need to provide `widgetName` in your data");var r=[`ais-${e}`];return t&&r.push(`-${t}`),n&&r.push(`--${n}`),r.join(``)}var Ts=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(e,n){var r=ws(t,e,n),i=this.classNames&&this.classNames[r];return i?[r,i].join(` `):r}}}};function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ds(e,t,n[t])})}return e}function Ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e){"@swc/helpers - typeof";return e&&typeof Symbol<`u`&&e.constructor===Symbol?`symbol`:typeof e}var ks=new Set;function As(e){ks.has(e)||(ks.add(e),console.warn(e))}c();var js=function(){var e,t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).connector,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return q(e={inject:{instantSearchInstance:{from:`$_ais_instantSearchInstance`,default:function(){var e=this.$options._componentTag;throw TypeError(`It looks like you forgot to wrap your Algolia search component "<${e}>" inside of an "<ais-instant-search>" component.`)}},getParentIndex:{from:`$_ais_getParentIndex`,default:function(){var e=this;return function(){return e.instantSearchInstance.mainIndex}}}},data:function(){return{state:null}},created:function(){if(typeof t==`function`){if(this.factory=t(this.updateState,function(){}),this.widget=Es(this.factory(this.widgetParams),n),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance._initialResults&&!this.instantSearchInstance.started){if(typeof this.instantSearchInstance.__forceRender!=`function`)throw Error(`You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.`);this.instantSearchInstance.__forceRender(this.widget,this.getParentIndex())}}else!0!==t&&As(`You are using the InstantSearch widget mixin, but didn't provide a connector. 2While this is technically possible, and will give you access to the Helper, 3it's not the recommended way of making custom components. 4 5If you want to disable this message, pass { connector: true } to the mixin. 6 7Read more on using connectors: https://alg.li/vue-custom`)}},`beforeUnmount`,function(){this.widget&&this.getParentIndex().removeWidgets([this.widget])}),q(e,`watch`,{widgetParams:{handler:function(e){this.state=null;var t=this.widget;this.widget=Es(this.factory(e),n),this.getParentIndex().updateWidget(t,this.widget)},deep:!0}}),q(e,`methods`,{updateState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};arguments.length>
71&&arguments[1]&&this.widget.dependsOn!==`none`||(this.state=e)}}),e};function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){J(e,t,n[t])})}return e}function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ms(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Ns(e){var t=e.name,n=e.connector;return[`https://www.algolia.com/doc/api-reference/widgets/`,t,`/js/`,n!==void 0&&n?`#connector`:``].join(``)}function Ps(){var e=[...arguments].map(function(e){return Ns(e)}).join(`, `);return function(t){return[t,`See documentation: ${e}`].filter(Boolean).join(` 8 9`)}}function Fs(e){return Object.prototype.toString.call(e).slice(8,-1)}function Is(e,t){if(e===void 0||typeof e!=`function`)throw Error(`The render function is not valid (received type ${Fs(e)}). 10 11${t}`)}function Ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rs(e){if(Array.isArray(e))return Ls(e)}function zs(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Bs(){throw TypeError(`Invalid attempt to spread non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vs(e,t){if(e){if(typeof e==`string`)return Ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ls(e,t)}}function Hs(e){return Rs(e)||zs(e)||Vs(e)||Bs()}function Us(){return Us=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Us.apply(this,arguments)}function Ws(e){if(e==null)throw TypeError(`Cannot destructure `+e);return e}var Gs={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Ks=/[&<>"']/g,qs=RegExp(Ks.source);function Js(e){return e&&qs.test(e)?e.replace(Ks,function(e){return Gs[e]}):e}var Ys={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},Xs=/&(amp|quot|lt|gt|#39);/g,Zs=RegExp(Xs.source);function Qs(e){return e&&Zs.test(e)?e.replace(Xs,function(e){return Ys[e]}):e}function $s(e){"@swc/helpers - typeof";return e&&typeof Symbol<`u`&&e.constructor===Symbol?`symbol`:typeof e}function ec(e){return e===null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function tc(e){return(e===void 0?`undefined`:$s(e))===`object`&&e!==null}function nc(e){if(!tc(e)||ec(e)!==`[object Object]`)return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var rc={highlightPreTag:`__ais-highlight__`,highlightPostTag:`__/ais-highlight__`},ic={highlightPreTag:`<mark>`,highlightPostTag:`</mark>`};function ac(e){return Js(e).replace(new RegExp(rc.highlightPreTag,`g`),ic.highlightPreTag).replace(new RegExp(rc.highlightPostTag,`g`),ic.highlightPostTag)}function oc(e){return nc(e)&&typeof e.value!=`string`?Object.keys(e).reduce(function(t,n){return X(Y({},t),J({},n,oc(e[n])))},{}):Array.isArray(e)?e.map(oc):X(Y({},e),{value:ac(e.value)})}function sc(e){return e.__escaped===void 0&&(e=e.map(function(e){Ws(e);var t=Us({},e);return t._highlightResult&&(t._highlightResult=oc(t._highlightResult)),t._snippetResult&&(t._snippetResult=oc(t._snippetResult)),t}),e.__escaped=!0),e}function cc(e){return e.map(function(e){return X(Y({},e),{highlighted:ac(e.highlighted)})})}function lc(e,t,n){return e.map(function(e,r){return X(Y({},e),{__position:n*t+r+1})})}function uc(e,t){return t?e.map(function(e){return X(Y({},e),{__queryID:t})}):e}function dc(){}var fc=W(((e,t)=>{function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}t.exports=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError(`n must be a positive number`);return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,s,c,l;if(this._events||(this._events={}),e===`error`&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error(`Uncaught, unspecified "error" event. (`+t+`)`);throw u.context=t,u}if(n=this._events[e],o(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;
12default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(a(n))for(s=Array.prototype.slice.call(arguments,1),l=n.slice(),i=l.length,c=0;c<i;c++)l[c].apply(this,s);return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError(`listener must be a function`);return this._events||(this._events={}),this._events.newListener&&this.emit(`newListener`,e,r(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(i=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error(`(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.`,this._events[e].length),typeof console.trace==`function`&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError(`listener must be a function`);var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,i,o,s;if(!r(t))throw TypeError(`listener must be a function`);if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit(`removeListener`,e,t);else if(a(n)){for(s=o;s-->0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;n.length===1?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit(`removeListener`,e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!==`removeListener`&&this.removeAllListeners(t);return this.removeAllListeners(`removeListener`),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return!this._events||!this._events[e]?[]:r(this._events[e])?[this._events[e]]:this._events[e].slice()},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)};function r(e){return typeof e==`function`}function i(e){return typeof e==`number`}function a(e){return typeof e==`object`&&!!e}function o(e){return e===void 0}})),pc=W(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}t.exports=n})),mc=W(((e,t)=>{var n=fc(),r=pc();function i(e,t,n){this.main=e,this.fn=t,this.recommendFn=n,this.lastResults=null,this.lastRecommendResults=null}r(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},t.exports=i})),hc=W(((e,t)=>{function n(e){return typeof e==`string`?String(e).replace(/^-/,`\\-`):e}function r(e){return typeof e==`string`?e.replace(/^\\-/,`-`):e}t.exports={escapeFacetValue:n,unescapeFacetValue:r}})),gc=W(((e,t)=>{function n(e){return typeof e==`object`&&e?i(Array.isArray(e)?[]:{},e):e}function r(e){return typeof e==`function`||Array.isArray(e)||Object.prototype.toString.call(e)===`[object Object]`}function i(e,t){if(e===t)return e;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&a!==`__proto__`&&a!==`constructor`){var o=t[a],s=e[a];(s===void 0||o!==void 0)&&(e[a]=r(s)&&r(o)?i(s,o):n(o))}return e}function a(e){r(e)||(e={});for(var t=1,n=arguments.length;t<n;t++){var a=arguments[t];r(a)&&i(e,a)}return e}t.exports=a})),_c=W(((e,t)=>{function n(e){return e&&Object.keys(e).length>0}t.exports=n})),vc=W(((e,t)=>{function n(e,t){if(e===null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}t.exports=n})),yc=W(((e,t)=>{function n(e){e=e||{},this.params=e.params||[]}n.prototype={constructor:n,addParams:function(e){var t=this.params.slice();return t.push(e),new n({params:t})}
12,removeParams:function(e){return new n({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:`bought-together`}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:`related-products`}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:`trending-items`}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:`trending-facets`}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:`looking-similar`}))},_buildQueries:function(e,t){return this.params.filter(function(e){return t[e.$$id]===void 0}).map(function(t){var n=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete n.$$id,n})}},t.exports=n})),bc=W(((e,t)=>{function n(e,t){this._state=e,this._rawResults={};var n=this;e.params.forEach(function(e){var r=e.$$id;n[r]=t[r],n._rawResults[r]=t[r]})}n.prototype={constructor:n},t.exports=n})),xc=W(((e,t)=>{var n=gc();function r(e){return Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{})}var i={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:i._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(r){n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r)}
vendor: 2,606 bytes, line 12
12)}),t.getRefinedHierarchicalFacets().forEach(function(r){var a=t.getHierarchicalFacetByName(r),o=t.getHierarchicalRefinement(r),s=t._getHierarchicalFacetSeparator(a);if(o.length>0&&o[0].split(s).length>1){var c=o[0].split(s).slice(0,-1).reduce(function(e,t,n){return e.concat({attribute:a.attributes[n],value:n===0?t:[e[e.length-1].value,t].join(s)})},[]);c.forEach(function(r,o){var s=i._getDisjunctiveFacetSearchParams(t,r.attribute,o===0);function l(e){return a.attributes.some(function(t){return t===e.split(`:`)[0]})}var u=(s.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var n=t.filter(function(e){return!l(e)});n.length>0&&e.push(n)}return typeof t==`string`&&!l(t)&&e.push(t),e},[]),d=c[o-1];o>0?s.facetFilters=u.concat(d.attribute+`:`+d.value):u.length>0?s.facetFilters=u:delete s.facetFilters,n.push({indexName:e,params:s})})}}),n},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:i._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)).sort(),a=i._getFacetFilters(e),o=i._getNumericFilters(e),s=i._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf(`*`)>-1?[`*`]:t),s.length>0&&(c.tagFilters=s),a.length>0&&(c.facetFilters=a),o.length>0&&(c.numericFilters=o),r(n({},e.getQueryParams(),c))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?`disjunctive(`+t+`)`:t})).concat(i._getHitsHierarchicalFacetsAttributes(e)).sort(),a=i._getFacetFilters(e),o=i._getNumericFilters(e),s=i._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf(`*`)>-1?[`*`]:t),s.length>0&&(c.tagFilters=s),a.length>0&&(c.facetFilters=a),o.length>0&&(c.numericFilters=o);var l=e.getQueryParams();return delete l.highlightPreTag,delete l.highlightPostTag,delete l.index,r(n({},l,c))},_getDisjunctiveFacetSearchParams:function(e,t,a){var o=i._getFacetFilters(e,t,a),s=i._getNumericFilters(e,t),c=i._getTagFilters(e),l={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(l.tagFilters=c);var u=e.getHierarchicalFacetByName(t);return l.facets=u?i._getDisjunctiveHierarchicalFacetAttribute(e,u,a):t,s.length>0&&(l.numericFilters=s),o.length>0&&(l.facetFilters=o),r(n({},e.getQueryParams(),l))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach(function(r){var i=e.numericRefinements[r]||{};
12Object.keys(i).forEach(function(e){var a=i[e]||[];t!==r&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return r+e+t});n.push(i)}else n.push(r+e+t)})})}),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(`,`)},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){r.push(e+`:`+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){r.push(e+`:-`+t)})});var o=e.disjunctiveFacetsRefinements||{};Object.keys(o).sort().forEach(function(e){var n=o[e]||[];if(e!==t&&n&&n.length!==0){var i=[];n.slice().sort().forEach(function(t){i.push(e+`:`+t)}),r.push(i)}});var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach(function(i){var a=(s[i]||[])[0];if(a!==void 0){var o=e.getHierarchicalFacetByName(i),c=e._getHierarchicalFacetSeparator(o),l=e._getHierarchicalRootPath(o),u,d;if(t===i){if(a.indexOf(c)===-1||!l&&n===!0||l&&l.split(c).length===a.split(c).length)return;l?(d=l.split(c).length-1,a=l):(d=a.split(c).length-2,a=a.slice(0,a.lastIndexOf(c))),u=o.attributes[d]}else d=a.split(c).length-1,u=o.attributes[d];u&&r.push([u+`:`+a])}}),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),a=r.split(i).length,o=n.attributes.slice(0,a+1);return t.concat(o)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(n===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(r).length),[t.attributes[a]]}var o=(e.getHierarchicalRefinement(t.name)[0]||``).split(r).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,a,o){var s=o.isDisjunctiveFacet(e)?o.clearRefinements(e):o,c={facetQuery:t,facetName:e};return typeof a==`number`&&(c.maxFacetHits=a),r(n({},i._getHitsSearchParams(s),c))}};t.exports=i})),Sc=W(((e,t)=>{t.exports=function(){return Array.prototype.slice.call(arguments).reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(n){t[n]!==void 0&&(e[n]!==void 0&&delete e[n],e[n]=t[n])}),e},{})}})),Cc=W(((e,t)=>{t.exports=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}}})),wc=W(((e,t)=>{function n(e,t){return e.filter(function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r})}t.exports=n})),Tc=W(((e,t)=>{function n(e){if(typeof e==`number`)return e;if(typeof e==`string`)return parseFloat(e);if(Array.isArray(e))return e.map(n);throw Error(`The value should be a number, a parsable string or an array of those.`)}t.exports=n})),Ec=W(((e,t)=>{t.exports=function(e){return e!==null&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}})),Dc=W(((e,t)=>{var n=Sc(),r=_c(),i=vc(),a={addRefinement:function(e,t,r){if(a.isRefined(e,t,r))return e;var i=``+r,o=e[t]?e[t].concat(i):[i],s={};return s[t]=o,n(s,e)},removeRefinement:function(e,t,n){if(n===void 0)return a.clearRefinement(e,function(e,n){return t===n});var r=``+n;return a.clearRefinement(e,function(e,n){return t===n&&r===e})},toggleRefinement:function(e,t,n){if(n===void 0)throw Error(`toggleRefinement should be used with a value`);return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(t===void 0)return r(e)?{}:e;if(typeof t==`string`)return i(e,[t]);if(typeof t==`function`){var a=!1,o=Object.keys(e).reduce(function(r,i){var o=e[i]||[],s=o.filter(function(e){return!t(e,i,n)});return s.length!==o.length&&(a=!0),r[i]=s,r},{});return a?o:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;if(n===void 0||!r)return r;var i=``+n;return e[t].indexOf(i)!==-1}};t.exports=a})),Oc=W(((e,t)=>{var n=Sc(),r=Cc(),i=wc(),a=gc(),o=_c(),s=vc(),c=Tc(),l=Ec(),u=Dc();function d(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return d(t[n],e)}):e===t}function f(e,t){return r(e,function(e){return d(e,t)})}function p(e){var t=e?p._parseNumbers(e):{};t.userToken!==void 0&&!l(t.userToken)&&console.warn("[algoliasearch-helper] The `userToken` parameter is invali
12d. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach(function(e){var r=p.PARAMETERS.indexOf(e)!==-1,i=t[e]!==void 0;!r&&i&&(n[e]=t[e])})}p.PARAMETERS=Object.keys(new p);function m(e){var t=parseFloat(e);return isFinite(t)?t:null}p._parseNumbers=function(e){if(e instanceof p)return e;var t={};if([`aroundPrecision`,`aroundRadius`,`getRankingInfo`,`minWordSizefor2Typos`,`minWordSizefor1Typo`,`page`,`maxValuesPerFacet`,`distinct`,`minimumAroundRadius`,`hitsPerPage`,`minProximity`].forEach(function(n){var r=e[n];if(typeof r==`string`){var i=parseFloat(r);t[n]=isNaN(i)?r:isFinite(i)?i:null}else typeof r==`number`&&!isFinite(r)&&(t[n]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return typeof e==`string`?m(e):typeof e==`number`&&!isFinite(e)?null:e}):e})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach(function(e){var i=r[e].map(function(e){return Array.isArray(e)?e.map(function(e){return typeof e==`string`?m(e):typeof e==`number`&&!isFinite(e)?null:e}):typeof e==`string`?m(e):typeof e==`number`&&!isFinite(e)?null:e});n[t][e]=i})}),t.numericRefinements=n}return a(e,t)},p.make=function(e){var t=new p(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&n[0].indexOf(e.rootPath)!==0&&(t=t.clearRefinements(e.name)),n=t.getHierarchicalRefinement(e.name),n.length===0&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},p.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?Error(`[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method.`):e.tagRefinements.length>0&&n.tagFilters?Error(`[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method.`):e.numericFilters&&n.numericRefinements&&o(n.numericRefinements)?Error(`[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters.`):o(e.numericRefinements)&&n.numericFilters?Error(`[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters.`):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:u.clearRefinement(this.facetsRefinements,e,`conjunctiveFacet`),facetsExcludes:u.clearRefinement(this.facetsExcludes,e,`exclude`),disjunctiveFacetsRefinements:u.clearRefinement(this.disjunctiveFacetsRefinements,e,`disjunctiveFacet`),hierarchicalFacetsRefinements:u.clearRefinement(this.hierarchicalFacetsRefinements,e,`hierarchicalFacet`)};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=c(n);if(this.isNumericRefined(e,t,r))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){var r=n;return r===void 0?t===void 0?this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,n){return n===e})}):this:this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,r){return r===e&&n.op===t})}):this:this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&d(n.val,c(r))})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(e===void 0)return o(this.numericRefinements)?{}:this.numericRefinements;if(typeof e==`string`)return s(this.numericRefinements,[e]);if(typeof e==`function`){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce(function(r,i){var a=n[i],o={};return a=a||{}
12,Object.keys(a).forEach(function(n){var r=a[n]||[],s=[];r.forEach(function(t){e({val:t,op:n},i,`numeric`)||s.push(t)}),s.length!==r.length&&(t=!0),o[n]=s}),r[i]=o,r},{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+` is not defined in the facets attribute of the helper configuration`);return u.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:u.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+` is not defined in the facets attribute of the helper configuration`);return u.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:u.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+` is not defined in the disjunctiveFacets attribute of the helper configuration`);return u.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:u.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+` is not defined in the facets attribute of the helper configuration`);return u.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:u.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+` is not defined in the facets attribute of the helper configuration`);return u.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:u.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+` is not defined in the disjunctiveFacets attribute of the helper configuration`);return u.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:u.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw Error(`Cannot refine the undeclared facet `+e+`; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets`)},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+` is not defined in the facets attribute of the helper configuration`);return this.setQueryParameters({facetsRefinements:u.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+` is not defined in the facets attribute of the helper configuration`);return this.setQueryParameters({facetsExcludes:u.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+` is not defined in the disjunctiveFacets attribute of the helper configuration`);return this.setQueryParameters({disjunctiveFacetsRefinements:u.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+` is not defined in the hierarchicalFacets attribute of the helper configuration`);var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return i[e]=this.hierarchicalFacetsRefinements[e]!==void 0&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||this.hierarchicalFacetsRefinements[e][0].indexOf(t+r)===0)?t.indexOf(r)===-1?[]:[t.slice(0,t.lastIndexOf(r))]:[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+` is already refined.`);if(!this.isHierarchicalFacet(e))throw Error(e+` is not defined in the hierarchicalFacets attribute of the helper configuration.`);var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return this.getHierarchicalFacetByName(e)!==void 0},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return this.isConjunctiveFacet(e)?u.isRefined(this.facetsRefinements,e,t):!1},isExcludeRefined:function(e,t){return this.isConjunctiveFacet(e)?u.isRefined(this.facetsExcludes,e,t):!1},isDisjunctiveFacetRefined:function(e,t){return this.isDisjunctiveFacet(e)?u.isRefined(this.disjunctiveFacetsRefinements,e,t):!1},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?n.indexOf(t)!==-1:n.length>0},isNumericRefined:function(e,t,n){if(n===void 0&&t===void 0)return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&this.numericRefinements[e][t]!==void 0;if(n===void 0||!r)return r;var i=c(n),a=f(this.numericRefinements[e][t],i)!==void 0;return r&&a},isTagRefined:function(e){return this.tagRefinements.indexOf(e)!==-1},getRefinedDisjunctiveFacets:function(){var e=this,t=i(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return i(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return e.indexOf(t)===-1})},managedParameters:[`index`,`facets`,`disjunctiveFacets`,`facetsRefinements`,`hierarchicalFacets`,`facetsExcludes`,`disjunctiveFacetsRefinements`,`numericRefinements`,`tagRefinements`,`hierarchicalFacetsRefinements`],getQueryParams:function(){var e=this.managedParameters,t={},n=this;
12return Object.keys(this).forEach(function(r){var i=n[r];e.indexOf(r)===-1&&i!==void 0&&(t[r]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var n=this,r=p._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),a=Object.keys(r).reduce(function(e,t){var n=e[t]!==void 0,i=r[t]!==void 0;return n&&!i?s(e,[t]):(i&&(e[t]=r[t]),e)},i);return new this.constructor(a)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||[`isRefined:desc`,`name:asc`]},_getHierarchicalFacetSeparator:function(e){return e.separator||` > `},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return typeof e.showParentLevel!=`boolean`||e.showParentLevel},getHierarchicalFacetByName:function(e){return r(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},t.exports=p})),kc=W(((e,t)=>{t.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}})),Ac=W(((e,t)=>{t.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}})),jc=W(((e,t)=>{var n=Cc();t.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(`:`)});return e.reduce(function(e,t){var i=t.split(`:`),a=n(r,function(e){return e[0]===i[0]});return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(a[0]),e[1].push(a[1]),e)},[[],[]])}})),Mc=W(((e,t)=>{function n(){return Array.prototype.slice.call(arguments).reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(n){var r=typeof e[n]==`number`?e[n]:0,i=t[n];i!==void 0&&i>=r&&(e[n]!==void 0&&delete e[n],e[n]=i)}),e},{})}t.exports=n})),Nc=W(((e,t)=>{function n(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=t!==void 0,a=t===null;if(!a&&e>t||r&&i||!n)return 1;if(!r&&e<t||a&&n||!i)return-1}return 0}function r(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var i=e.map(function(e,n){return{criteria:t.map(function(t){return e[t]}),index:n,value:e}});return i.sort(function(e,t){for(var i=-1;++i<e.criteria.length;){var a=n(e.criteria[i],t.criteria[i]);if(a)return i>=r.length?a:r[i]===`desc`?-a:a}return e.index-t.index}),i.map(function(e){return e.value})}t.exports=r})),Pc=W(((e,t)=>{t.exports=c;var n=hc(),r=Cc(),i=jc(),a=Nc(),o=n.escapeFacetValue,s=n.unescapeFacetValue;function c(e){return function(t,n){var r=e.hierarchicalFacets[n],a=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||``,o=e._getHierarchicalFacetSeparator(r),s=e._getHierarchicalRootPath(r),c=e._getHierarchicalShowParentLevel(r),u=i(e._getHierarchicalFacetSortBy(r)),d=t.every(function(e){return e.exhaustive}),f=l(u,o,s,c,a),p=t;return s&&(p=t.slice(s.split(o).length)),p.reduce(f,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:d,data:null})}}function l(e,t,n,i,o){return function(c,l,f){var p=c;if(f>0){var m=0;for(p=c;m<f;)p=r(p&&Array.isArray(p.data)?p.data:[],function(e){return e.isRefined}),m++}if(p){var h=Object.keys(l.data).map(function(e){return[e,l.data[e]]}).filter(function(e){var r=e[0];return u(r,p.path||n,o,t,n,i)});p.data=a(h.map(function(e){var n=e[0],r=e[1];return d(r,n,t,s(o),l.exhaustive)}),e[0],e[1])}return c}}function u(e,t,n,r,i,a){return i&&(e.indexOf(i)!==0||i===e)?!1:!i&&e.indexOf(r)===-1||i&&e.split(r).length-i.split(r).length===1||e.indexOf(r)===-1&&n.indexOf(r)===-1||n.indexOf(e)===0||e.indexOf(t+r)===0&&(a||e.indexOf(n)===0)}function d(e,t,n,r,i){var a=t.split(n);return{name:a[a.length-1].trim(),path:t,escapedValue:o(t),count:e,isRefined:r===t||r.indexOf(t+n)===0,exhaustive:i,data:null}}})),Fc=W(((e,t)=>{var n=kc(),r=Sc(),i=hc(),a=Cc(),o=Ac(),s=jc(),c=Mc(),l=Nc(),u=i.escapeFacetValue,d=i.unescapeFacetValue,f=Pc();function p(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function m(e,t,n){t&&t[n]&&(e.stats=t[n])}function h(e,t){return a(e,function(e){return(e.attributes||[]).indexOf(t)>-1})}function g(e,t,i){var a=t[0]||{};this._rawResults=t;var s=this;
12Object.keys(a).forEach(function(e){s[e]=a[e]});var l=r(i,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){s[e]=l[e]}),this.processingTimeMS=t.reduce(function(e,t){return t.processingTimeMS===void 0?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var u=e.getRefinedDisjunctiveFacets(),g=p(e.facets),_=p(e.disjunctiveFacets),v=1,y=a.facets||{};Object.keys(y).forEach(function(t){var n=y[t],r=h(e.hierarchicalFacets,t);if(r){var i=r.attributes.indexOf(t),c=o(e.hierarchicalFacets,function(e){return e.name===r.name});s.hierarchicalFacets[c][i]={attribute:t,data:n,exhaustive:a.exhaustiveFacetsCount}}else{var l=e.disjunctiveFacets.indexOf(t)!==-1,u=e.facets.indexOf(t)!==-1,d;l&&(d=_[t],s.disjunctiveFacets[d]={name:t,data:n,exhaustive:a.exhaustiveFacetsCount},m(s.disjunctiveFacets[d],a.facets_stats,t)),u&&(d=g[t],s.facets[d]={name:t,data:n,exhaustive:a.exhaustiveFacetsCount},m(s.facets[d],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),u.forEach(function(n){var i=t[v],l=i&&i.facets?i.facets:{},u=e.getHierarchicalFacetByName(n);Object.keys(l).forEach(function(t){var n=l[t],f;if(u){f=o(e.hierarchicalFacets,function(e){return e.name===u.name});var p=o(s.hierarchicalFacets[f],function(e){return e.attribute===t});if(p===-1)return;s.hierarchicalFacets[f][p].data=s.persistHierarchicalRootCount?c(s.hierarchicalFacets[f][p].data,n):r(n,s.hierarchicalFacets[f][p].data)}else{f=_[t];var h=a.facets&&a.facets[t]||{};s.disjunctiveFacets[f]={name:t,data:c(h,n),exhaustive:i.exhaustiveFacetsCount},m(s.disjunctiveFacets[f],i.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!s.disjunctiveFacets[f].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(d(n))>-1&&(s.disjunctiveFacets[f].data[n]=0)})}}),v++}),e.getRefinedHierarchicalFacets().forEach(function(n){var i=e.getHierarchicalFacetByName(n),a=e._getHierarchicalFacetSeparator(i),c=e.getHierarchicalRefinement(n);c.length===0||c[0].split(a).length<2||t.slice(v).forEach(function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach(function(t){var l=n[t],u=o(e.hierarchicalFacets,function(e){return e.name===i.name}),d=o(s.hierarchicalFacets[u],function(e){return e.attribute===t});if(d!==-1){var f={};if(c.length>0&&!s.persistHierarchicalRootCount){var p=c[0].split(a)[0];f[p]=s.hierarchicalFacets[u][d].data[p]}s.hierarchicalFacets[u][d].data=r(f,l,s.hierarchicalFacets[u][d].data)}}),v++})}),Object.keys(e.facetsExcludes).forEach(function(t){var n=e.facetsExcludes[t],r=g[t];s.facets[r]={name:t,data:y[t],exhaustive:a.exhaustiveFacetsCount},n.forEach(function(e){s.facets[r]=s.facets[r]||{name:t},s.facets[r].data=s.facets[r].data||{},s.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)};function _(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=a(e.facets,n);return r?Object.keys(r.data).map(function(n){var i=u(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,n);return i?Object.keys(i.data).map(function(n){var r=u(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}}):[]}if(e._state.isHierarchicalFacet(t)){var o=a(e.hierarchicalFacets,n);if(!o)return o;var s=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(s),l=d(e._state.getHierarchicalRefinement(t)[0]||``);l.indexOf(s.rootPath)===0&&(l=l.replace(s.rootPath+c,``));var f=l.split(c);return f.unshift(t),v(o,f,0),o}}function v(e,t,n){e.isRefined=e.name===(t[n]&&t[n].trim()),e.data&&e.data.forEach(function(e){v(e,t,n+1)})}function y(e,t,n,i){return i=i||0,Array.isArray(t)?e(t,n[i]):!t.data||t.data.length===0?t:r({data:e(t.data.map(function(t){return y(e,t,n,i+1)}),n[i])},t)}g.DEFAULT_SORT=[`isRefined:desc`,`count:desc`,`name:asc`];function b(e,t){return t.sort(e)}function x(e,t){var n=[],r=[],i=t.hide||[],a=(t.order||[]).reduce(function(e,t,n){return e[t]=n,e},{});e.forEach(function(e){var t=e.path||e.name,o=i.indexOf(t)>-1;!o&&a[t]!==void 0?n[a[t]]=e:o||r.push(e)}),n=n.filter(function(e){return e});var o=t.sortRemainingBy,s;return o===`hidden`?n:(s=o===`alpha`?[[`path`,`name`],[`asc`,`asc`]]:[[`count`],[`desc`]],n.concat(l(r,s[0],s[1])))}function S(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}g.prototype.getFacetValues=function(e,t){var n=_(this,e);if(n){var i=r(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;return y(function(e,t){var n=S(a,t);
12if(i.facetOrdering&&n)return x(e,n);if(Array.isArray(i.sortBy)){var r=s(i.sortBy,g.DEFAULT_SORT),o=l(e,r[0],r[1]),c=n&&n.hide?n.hide:[];if(c.length>0){var u=[];return o.forEach(function(e){var t=e.path||e.name;c.indexOf(t)===-1&&u.push(e)}),u}return o}if(typeof i.sortBy==`function`)return b(i.sortBy,e);throw Error(`options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function`)},n,Array.isArray(n)?[e]:a._state.getHierarchicalFacetByName(n.name).attributes)}},g.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return C(this.facets,e);if(this._state.isDisjunctiveFacet(e))return C(this.disjunctiveFacets,e)};function C(e,t){var n=a(e,function(e){return e.name===t});return n&&n.stats}g.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(r){e.facetsRefinements[r].forEach(function(i){n.push(w(e,`facet`,r,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(r){e.facetsExcludes[r].forEach(function(i){n.push(w(e,`exclude`,r,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(r){e.disjunctiveFacetsRefinements[r].forEach(function(i){n.push(w(e,`disjunctive`,r,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(r){e.hierarchicalFacetsRefinements[r].forEach(function(i){n.push(T(e,r,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t];Object.keys(r).forEach(function(e){r[e].forEach(function(r){n.push({type:`numeric`,attributeName:t,name:r,numericValue:r,operator:e})})})}),e.tagRefinements.forEach(function(e){n.push({type:`tag`,attributeName:`_tags`,name:e})}),n};function w(e,t,n,r,i){var o=a(i,function(e){return e.name===n});return{type:t,attributeName:n,name:r,count:o&&o.data&&o.data[r]?o.data[r]:0,exhaustive:o&&o.exhaustive||!1}}function T(e,t,n,r){var i=e.getHierarchicalFacetByName(t),o=e._getHierarchicalFacetSeparator(i),s=n.split(o),c=a(r,function(e){return e.name===t}),l=s.reduce(function(e,t){var n=e&&a(e.data,function(e){return e.name===t});return n===void 0?e:n},c),u=l&&l.count||0,d=l&&l.exhaustive||!1;return{type:`hierarchical`,attributeName:t,name:l&&l.path||``,count:u,exhaustive:d}}t.exports=g})),Ic=W(((e,t)=>{t.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}})),Lc=W(((e,t)=>{var n=Cc(),r=Ic();function i(e,t){var n=[];return Object.keys(e).forEach(function(r){e[r].count<2&&(e[r].indexSum+=100),n.push({objectID:r,avgOfIndices:e[r].indexSum/t})}),n.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})}function a(e,t){var a={};return t.forEach(function(t){t.forEach(function(t,n){e.includes(t.objectID)||(a[t.objectID]?a[t.objectID]={indexSum:a[t.objectID].indexSum+n,count:a[t.objectID].count+1}:a[t.objectID]={indexSum:n,count:1})})}),i(a,t.length).reduce(function(e,i){var a=n(r(t),function(e){return e.objectID===i.objectID});return a?e.concat(a):e},[])}t.exports=a})),Rc=W(((e,t)=>{t.exports=`3.29.3`})),zc=W(((e,t)=>{var n=fc(),r=mc(),i=hc().escapeFacetValue,a=pc(),o=gc(),s=_c(),c=vc(),l=yc(),u=bc(),d=xc(),f=Oc(),p=Fc(),m=Lc(),h=Rc();function g(e,t,n,r){typeof e.addAlgoliaAgent==`function`&&e.addAlgoliaAgent(`JS Helper (`+h+`)`),this.setClient(e);var i=n||{};i.index=t,this.state=f.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}a(g,n),g.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},g.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},g.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},g.prototype.recommend=function(){return this._recommend(),this},g.prototype.getQuery=function(){var e=this.state;return d._getHitsSearchParams(e)},g.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=d._getQueries(n.index,n),i=this;
12if(this._currentNbQueries++,this.emit(`searchOnce`,{state:n}),t){this.client.search(r).then(function(e){i._currentNbQueries--,i._currentNbQueries===0&&i.emit(`searchQueueEmpty`),t(null,new p(n,e.results),n)}).catch(function(e){i._currentNbQueries--,i._currentNbQueries===0&&i.emit(`searchQueueEmpty`),t(e,null,n)});return}return this.client.search(r).then(function(e){return i._currentNbQueries--,i._currentNbQueries===0&&i.emit(`searchQueueEmpty`),{content:new p(n,e.results),state:n,_originalResponse:e}},function(e){throw i._currentNbQueries--,i._currentNbQueries===0&&i.emit(`searchQueueEmpty`),e})},g.prototype.findAnswers=function(e){console.warn(`[algoliasearch-helper] answers is no longer supported`);var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(d._getHitsSearchParams(r),[`attributesToSnippet`,`hitsPerPage`,`restrictSearchableAttributes`,`snippetEllipsisText`])}),a=`search for answers was called, but this client does not have a function client.initIndex(index).findAnswers`;if(typeof this.client.initIndex!=`function`)throw Error(a);var s=this.client.initIndex(r.index);if(typeof s.findAnswers!=`function`)throw Error(a);return s.findAnswers(r.query,e.queryLanguages,i)},g.prototype.searchForFacetValues=function(e,t,n,r){var a=typeof this.client.searchForFacetValues==`function`&&typeof this.client.searchForFacets!=`function`,o=typeof this.client.initIndex==`function`;if(!a&&!o&&typeof this.client.search!=`function`)throw Error(`search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues`);var s=this.state.setQueryParameters(r||{}),c=s.isDisjunctiveFacet(e),l=d.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var u=this,f;a?f=this.client.searchForFacetValues([{indexName:s.index,params:l}]):o?f=this.client.initIndex(s.index).searchForFacetValues(l):(delete l.facetName,f=this.client.search([{type:`facet`,facet:e,indexName:s.index,params:l}]).then(function(e){return e.results[0]})),this.emit(`searchForFacetValues`,{state:s,facet:e,query:t});var p=this.lastResults&&this.lastResults.index===s.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return f.then(function(t){return u._currentNbQueries--,u._currentNbQueries===0&&u.emit(`searchQueueEmpty`),t=Array.isArray(t)?t[0]:t,t.facetHits=t.facetHits.reduce(function(t,n){return p.indexOf(n.value)>-1?t:(n.escapedValue=i(n.value),n.isRefined=c?s.isDisjunctiveFacetRefined(e,n.escapedValue):s.isFacetRefined(e,n.escapedValue),t.push(n),t)},[]),t},function(e){throw u._currentNbQueries--,u._currentNbQueries===0&&u.emit(`searchQueueEmpty`),e})},g.prototype.searchForCompositionFacetValues=function(e,t,n,r){if(typeof this.client.searchForFacetValues!=`function`)throw Error(`search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues`);var a=this.state.setQueryParameters(r||{}),o=a.isDisjunctiveFacet(e);this._currentNbQueries++;var s=this,c=this.client.searchForFacetValues({compositionID:a.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:n,searchQuery:d._getCompositionHitsSearchParams(a)}}});return this.emit(`searchForFacetValues`,{state:a,facet:e,query:t}),c.then(function(t){return s._currentNbQueries--,s._currentNbQueries===0&&s.emit(`searchQueueEmpty`),t=t.results[0],t.facetHits.forEach(function(t){t.escapedValue=i(t.value),t.isRefined=o?a.isDisjunctiveFacetRefined(e,t.escapedValue):a.isFacetRefined(e,t.escapedValue)}),t},function(e){throw s._currentNbQueries--,s._currentNbQueries===0&&s.emit(`searchQueueEmpty`),e})},g.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},g.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},g.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},g.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},g.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},g.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},g.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},g.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},g.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},g.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},g.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},g.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},g.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},g.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},g.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},g.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},g.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},g.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},g.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},g.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},g.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},g.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParam
12s(e)}),this},g.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},g.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},g.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},g.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},g.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},g.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)};function _(e){if(e<0)throw Error(`Page requested below 0.`);return this._change({state:this.state.setPage(e),isPageReset:!1}),this}g.prototype.setCurrentPage=_,g.prototype.setPage=_,g.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},g.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},g.prototype.setState=function(e){return this._change({state:f.make(e),isPageReset:!1}),this},g.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(e),this},g.prototype.hasRefinements=function(e){return s(this.state.getNumericRefinements(e))?!0:this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):this.state.isHierarchicalFacet(e)?this.state.isHierarchicalFacetRefined(e):!1}
12,g.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},g.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},g.prototype.hasTag=function(e){return this.state.isTagRefined(e)},g.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},g.prototype.getIndex=function(){return this.state.index};function v(){return this.state.page}g.prototype.getCurrentPage=v,g.prototype.getPage=v,g.prototype.getTags=function(){return this.state.tagRefinements},g.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:`conjunctive`})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:`exclude`})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:`disjunctive`})});var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach(function(e){var r=n[e];t.push({value:r,operator:e,type:`numeric`})}),t},g.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},g.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},g.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=d._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit(`search`,{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var r=e.getModifiedState(t),i=r.index?d._getQueries(r.index,r):[];return n.push({state:r,queriesCount:i.length,helper:e}),e.emit(`search`,{state:r,results:e.lastResults}),i}),a=Array.prototype.concat.apply(r,i),o=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,o));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,n,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(e){this.emit(`error`,{error:e})}},g.prototype._runComposition=function(){var e=this.state,t=[],n=[],r=this.derivedHelpers.map(function(n){var r=n.getModifiedState(e),i=d._getCompositionQueries(r);return t.push({state:r,helper:n}),n.emit(`search`,{state:r,results:n.lastResults}),i}),i=Array.prototype.concat.apply(n,r),a=this._queryId++;if(this._currentNbQueries++,!i.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,a));if(i.length>1)throw Error(`Only one query is allowed when using a composition.`);var o=i[0];try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,t,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit(`error`,{error:e})}},g.prototype._recommend=function(){var e=this.state,t=this.recommendState,n=this.getIndex(),r=[{state:t,index:n,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit(`fetch`,{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,o=this.derivedHelpers.map(function(t){var n=t.getModifiedState(e).index;if(!n)return[];var o=t.getModifiedRecommendState(new l);return r.push({state:o,index:n,helper:t}),i=Array.prototype.concat.apply(i,o.params.map(function(e){return e.$$id})),t.emit(`fetch`,{recommend:{state:o,results:t.lastRecommendResults}}),o._buildQueries(n,a)}),s=Array.prototype.concat.apply(this.recommendState._buildQueries(n,a),o);if(s.length!==0){if(s.length>0&&this.client.getRecommendations===void 0){console.warn(`Please update algoliasearch/lite to the latest version in order to use recommend widgets.`);return}var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(s).then(this._dispatchRecommendResponse.bind(this,c,r,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit(`error`,{error:e})}}},g.prototype._dispatchAlgoliaResponse=function(e,t,n){var r=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,this._currentNbQueries===0&&this.emit(`searchQueueEmpty`);var i=n.results.slice(),a=Object.keys(n).reduce(function(e,t){return t!==`results`&&(e[t]=n[t]),e},{});Object.keys(a).length<=0&&(a=void 0),e.forEach(function(e){var t=e.state,n=e.queriesCount,o=e.helper,s=n===void 0?i:i.splice(0,n);
12if(!t.index){o.emit(`result`,{results:null,state:t});return}if(s.length>0&&s[0].feedID){var c=s.map(function(e){var n=new p(t,[e],r._searchResultsOptions);return a!==void 0&&(n._rawContent=a),n});o.lastResults=new p(t,[s[0]],r._searchResultsOptions),o.lastResults.feeds=c,a!==void 0&&(o.lastResults._rawContent=a)}else o.lastResults=new p(t,s,r._searchResultsOptions),a!==void 0&&(o.lastResults._rawContent=a);o.emit(`result`,{results:o.lastResults,state:t})})}},g.prototype._dispatchRecommendResponse=function(e,t,n,r){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this._currentNbRecommendQueries===0&&this.emit(`recommendQueueEmpty`);var i=this._recommendCache,a={};n.filter(function(e){return i[e]===void 0}).forEach(function(e,t){a[e]||(a[e]=[]),a[e].push(t)}),Object.keys(a).forEach(function(e){var t=a[e],o=r.results[t[0]];if(t.length===1){i[e]=o;return}i[e]=Object.assign({},o,{hits:m(n,t.map(function(e){return r.results[e].hits}))})});var o={};n.forEach(function(e){o[e]=i[e]}),t.forEach(function(e){var t=e.state,n=e.helper;if(!e.index){n.emit(`recommend:result`,{results:null,state:t});return}n.lastRecommendResults=new u(t,o),n.emit(`recommend:result`,{recommend:{results:n.lastRecommendResults,state:t}})})}},g.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit(`error`,{error:t}),this._currentNbQueries===0&&this.emit(`searchQueueEmpty`))},g.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this.emit(`error`,{error:t}),this._currentNbRecommendQueries===0&&this.emit(`recommendQueueEmpty`))},g.prototype.containsRefinement=function(e,t,n,r){return e||t.length!==0||n.length!==0||r.length!==0},g.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},g.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit(`change`,{state:this.state,results:this.lastResults,isPageReset:n}))},g.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit(`recommend:change`,{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},g.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},g.prototype.setClient=function(e){return this.client===e?this:(typeof e.addAlgoliaAgent==`function`&&e.addAlgoliaAgent(`JS Helper (`+h+`)`),this.client=e,this)},g.prototype.getClient=function(){return this.client},g.prototype.derive=function(e,t){var n=new r(this,e,t);return this.derivedHelpers.push(n),n},g.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(t===-1)throw Error(`Derived helper already detached`);this.derivedHelpers.splice(t,1)},g.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},t.exports=g})),Bc=W(((e,t)=>{var n=zc(),r=yc(),i=bc(),a=Oc(),o=Fc();function s(e,t,r,i){return new n(e,t,r,i)}s.version=Rc(),s.AlgoliaSearchHelper=n,s.SearchParameters=a,s.RecommendParameters=r,s.SearchResults=o,s.RecommendResults=i,t.exports=s}));function Vc(e,t){if(e==null)return{};for(var n={},r=Object.getOwnPropertyNames(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}function Hc(e,t){if(e==null)return{};var n={},r,i,a;if(typeof Reflect<`u`&&Reflect.ownKeys){for(r=Reflect.ownKeys(e),a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}if(n=Vc(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}function Uc(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Wc(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}var Gc=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var n=Hc(t,[`facets`,`disjunctiveFacets`,`facetsRefinements`,`facetsExcludes`,`disjunctiveFacetsRefinements`,`numericRefinements`,`tagRefinements`,`hierarchicalFacets`,`hierarchicalFacetsRefinements`,`ruleContexts`]);return e.setQueryParameters(n)},Kc=function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)},qc=function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)},Jc=function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=Uc(e,function(e){return e.name===t.name});if(n===-1)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r},e.hierarchicalFacets)})},Yc=function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)},Xc=function(e,t){return e.setQueryParameters({facetsRefinements:Y({},e.facetsRefinements,t.facetsRefinements)})},Zc=function(e,t){return e.setQueryParameters({facetsExcludes:Y({},e.facetsExcludes,t.facetsExcludes)})},Qc=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:Y({},e.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})},$c=function(e,t){return e.setQueryParameters({numericRefinements:Y({},e.numericRefinements,t.numericRefinements)})},el=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:Y({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})},tl=function(e,t){var n=Wc([].concat(e.ruleContexts,t.ruleContexts).filter(
12Boolean));return n.length>0?e.setQueryParameters({ruleContexts:n}):e},nl=function(){return[...arguments].reduce(function(e,t){return Gc(Kc(tl(qc(Xc(Zc(Qc($c(Yc(Jc(el(e,t),t),t),t),t),t),t),t),t),t),t)})},Z=et(Bc()),rl=Ps({name:`configure`,connector:!0});function il(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return X(Y({},e),J({},t,void 0))},{}))}var al=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dc,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;return function(n){if(!n||!nc(n.searchParameters))throw Error(rl("The `searchParameters` option expects an object."));var r={};function i(e){return function(t){var r=nl(il(e.state,n),new Z.default.SearchParameters(t));n.searchParameters=t,e.setState(r).search()}}return{$$type:`ais.configure`,init:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!1)},dispose:function(e){var r=e.state;return t(),il(r,n)},getRenderState:function(e,t){var n,r=this.getWidgetRenderState(t);return X(Y({},e),{configure:X(Y({},r),{widgetParams:X(Y({},r.widgetParams),{searchParameters:nl(new Z.default.SearchParameters((n=e.configure)==null?void 0:n.widgetParams.searchParameters),new Z.default.SearchParameters(r.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return r.refine||(r.refine=i(t)),{refine:r.refine,widgetParams:n}},getWidgetSearchParameters:function(e,t){var r=t.uiState;return nl(e,new Z.default.SearchParameters(Y({},r.configure,n.searchParameters)))},getWidgetUiState:function(e){return X(Y({},e),{configure:Y({},e.configure,n.searchParameters)})}}}};function ol(e,t){return(Array.isArray(t)?t:t.split(`.`)).reduce(function(e,t){return e&&e[t]},e)}function sl(e,t){for(var n,r=0;r<e.length;r++)if(n=e[r],t(n,r,e))return n}function cl(e){if(Array.isArray(e))return e}function ll(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function ul(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return cl(e)||ll(e,t)||Vs(e,t)||ul()}function dl(e,t,n){return e.state.isHierarchicalFacet(t)?e.state.isHierarchicalFacetRefined(t,n):e.state.isConjunctiveFacet(t)?e.state.isFacetRefined(t,n):e.state.isDisjunctiveFacetRefined(t,n)}function fl(e){var t=e.instantSearchInstance,n=e.helper,r=e.attribute,i=e.widgetType;return function(){var e=[...arguments],a=Q(e,4),o=a[1],s=a[2],c=s===void 0?`Filter Applied`:s,l=a[3],u=l===void 0?{}:l,d=Q(e[0].split(`:`),2),f=d[0],p=d[1],m=typeof r==`string`?r:r(o);if(e.length===1&&$s(e[0])===`object`)t.sendEventToInsights(e[0]);else if(f===`click`&&e.length>=2&&e.length<=4&&!dl(n,m,o)){var h;t.sendEventToInsights({insightsMethod:`clickedFilters`,widgetType:i,eventType:f,eventModifier:p,payload:Y({eventName:c,index:((h=n.lastResults)==null?void 0:h.index)||n.state.index,filters:[`${m}:${o}`]},u),attribute:m})}}}function pl(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function ml(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,n=[],r=0;r<Math.ceil(e.length/t);r++)n.push(e.slice(r*t,(r+1)*t));return n}function hl(e){var t=e.helper,n=e.widgetType;e.methodName;var r=e.args,i=e.instantSearchInstance;if(r.length===1&&$s(r[0])===`object`)return[r[0]];var a=Q(r[0].split(`:`),2),o=a[0],s=a[1],c=r[1],l=r[2],u=r[3]||{};if(!c||(o===`click`||o===`conversion`)&&!l)return[];var d=Array.isArray(c)?c:[c];if(d.length===0)return[];var f=d[0].__queryID,p=ml(d),m=p.map(function(e){return e.map(function(e){return e.objectID})}),h=p.map(function(e){return e.map(function(e){return e.__position})});return o===`view`?i.status===`idle`?p.map(function(e,r){var i;return{insightsMethod:`viewedObjectIDs`,widgetType:n,eventType:o,payload:Y({eventName:l||`Hits Viewed`,index:((i=t.lastResults)==null?void 0:i.index)||t.state.index,objectIDs:m[r]},u),hits:e,eventModifier:s}}):[]:o===`click`?p.map(function(e,r){var i;return{insightsMethod:`clickedObjectIDsAfterSearch`,widgetType:n,eventType:o,payload:Y({eventName:l||`Hit Clicked`,index:((i=t.lastResults)==null?void 0:i.index)||t.state.index,queryID:f,objectIDs:m[r],positions:h[r]},u),hits:e,eventModifier:s}}):o===`conversion`?p.map(function(e,r){var i;return{insightsMethod:`convertedObjectIDsAfterSearch`,widgetType:n,eventType:o,payload:Y({eventName:l||`Hit Converted`,index:((i=t.lastResults)==null?void 0:i.index)||t.state.index,queryID:f,objectIDs:m[r]},u),hits:e,eventModifier:s}}):[]}function gl(e){var t=e.instantSearchInstance,n=e.helper,r=e.widgetType,i={},a=void 0;return function(){hl({widgetType:r,helper:n,methodName:`sendEvent`,args:[...arguments],instantSearchInstance:t}
13).forEach(function(e){e.eventType===`click`&&e.eventModifier===`internal`&&i[e.eventType]||(i[e.eventType]=!0,t.sendEventToInsights(e))}),clearTimeout(a),a=setTimeout(function(){i={}},0)}}function _l(e){var t=e.helper,n=e.widgetType,r=e.instantSearchInstance;return function(){var e=hl({widgetType:n,helper:t,methodName:`bindEvent`,args:[...arguments],instantSearchInstance:r});return e.length?`data-insights-event=${pl(e)}`:``}}var vl=Ps({name:`hits`,connector:!0}),yl=(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;return Is(e,vl()),function(n){var r=n||{},i=r.escapeHTML,a=i===void 0||i,o=r.transformItems,s=o===void 0?function(e){return e}:o,c,l;return{$$type:`ais.hits`,init:function(t){e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var n=this.getWidgetRenderState(t);e(X(Y({},n),{instantSearchInstance:t.instantSearchInstance}),!1),n.sendEvent(`view:internal`,n.items)},getRenderState:function(e,t){return X(Y({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,r=e.helper,i=e.instantSearchInstance,o,u,d;if(c||(c=gl({instantSearchInstance:i,helper:r,widgetType:this.$$type})),l||(l=_l({helper:r,widgetType:this.$$type,instantSearchInstance:i})),!t)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:c,bindEvent:l,widgetParams:n};a&&t.hits.length>0&&(t.hits=sc(t.hits));var f=s(uc(lc(t.hits,t.page,t.hitsPerPage),t.queryID),{results:t});return{hits:f,items:f,results:t,banner:(d=t.renderingContent)==null||(u=d.widgets)==null||(o=u.banners)==null?void 0:o[0],sendEvent:c,bindEvent:l,widgetParams:n}},dispose:function(e){var n=e.state;return t(),a?n.setQueryParameters(Object.keys(rc).reduce(function(e,t){return X(Y({},e),J({},t,void 0))},{})):n},getWidgetSearchParameters:function(e,t){return a?e.setQueryParameters(rc):e}}}}),bl=function(e,t){return t.map(function(t){var n=sl(e,function(e){return e.objectID===t});if(n===void 0)throw Error(`Could not find objectID "${t}" passed to \`clickedObjectIDsAfterSearch\` in the returned hits. This is necessary to infer the absolute position and the query ID.`);return n})},xl=function(e){var t=Wc(e.map(function(e){return e.__queryID}));if(t.length>1)throw Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=t[0];if(typeof n!=`string`)throw Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return n},Sl=function(e){return e.map(function(e){return e.__position})},Cl=function(e){var t=e.method,n=e.results,r=e.hits,i=e.objectIDs,a=n.index,o=bl(r,i),s=xl(o);switch(t){case`clickedObjectIDsAfterSearch`:return{index:a,queryID:s,objectIDs:i,positions:Sl(o)};case`convertedObjectIDsAfterSearch`:return{index:a,queryID:s,objectIDs:i};default:throw Error(`Unsupported method passed to insights: "${t}".`)}},wl=function(e,t,n){return function(r){var i=Q([...arguments].slice(1),1)[0];if(!e){var a=Ps({name:`instantsearch`});throw Error(a("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(i.objectIDs))throw TypeError("Expected `objectIDs` to be an array.");e(r,Y({},Cl({method:r,results:t,hits:n,objectIDs:i.objectIDs}),i))}};function Tl(e){return function(t,n){return e(function(e,n){var r=e.results,i=e.hits,a=e.instantSearchInstance;if(r&&i&&a){var o=wl(a.insightsClient,r,i);return t(X(Y({},e),{insights:o}),n)}return t(e,n)},n)}}var El=Tl(yl);function Dl(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kl(e,t,n){return t&&Ol(e.prototype,t),n&&Ol(e,n),e}function Al(e){var t=e.start,n=t===void 0?0:t,r=e.end,i=e.step,a=i===void 0?1:i,o=a===0?1:a,s=Math.round((r-n)/o);return Hs(Array(s)).map(function(e,t){return n+t*o})}var jl=function(){function e(t){Dl(this,e),J(this,`currentPage`,void 0),J(this,`total`,void 0),J(this,`padding`,void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return kl(e,[{key:`pages`,value:function(){var e=this,t=e.total,n=e.currentPage,r=e.padding;if(t===0)return[0];var i=this.nbPagesDisplayed(r,t);if(i===t)return Al({end:t});var a=this.calculatePaddingLeft(n,r,t,i),o=i-a;return Al({start:n-a,end:n+o})}},{key:`nbPagesDisplayed`,value:function(e,t){return Math.min(2*e+1,t)}},{key:`calculatePaddingLeft`,value:function(e,t,n,r){return e<=t?e:e>=n-t?r-(n-e):t}}
13,{key:`isLastPage`,value:function(){return this.currentPage>=this.total-1}},{key:`isFirstPage`,value:function(){return this.currentPage<=0}}]),e}(),Ml=Ps({name:`pagination`,connector:!0}),Nl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;return Is(e,Ml()),function(n){var r=n||{},i=r.totalPages,a=r.padding,o=new jl({currentPage:0,total:0,padding:a===void 0?3:a}),s={};function c(e){var t=e.nbPages;return i===void 0?t:Math.min(i,t)}return{$$type:`ais.pagination`,init:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter(`page`,void 0)},getWidgetUiState:function(e,t){var n=t.searchParameters.page||0;return n?X(Y({},e),{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.page?n.page-1:0;return e.setQueryParameter(`page`,r)},getWidgetRenderState:function(e){var t=e.results,r=e.helper,i=e.state,a=e.createURL;s.refine||(s.refine=function(e){r.setPage(e),r.search()}),s.createURL||(s.createURL=function(e){return a(function(t){return X(Y({},t),{page:e+1})})});var l=i.page||0,u=c(t||{nbPages:0});return o.currentPage=l,o.total=u,{createURL:s.createURL,refine:s.refine,canRefine:u>1,currentRefinement:l,nbHits:(t==null?void 0:t.nbHits)||0,nbPages:u,pages:t?o.pages():[],isFirstPage:o.isFirstPage(),isLastPage:o.isLastPage(),widgetParams:n}},getRenderState:function(e,t){return X(Y({},e),{pagination:this.getWidgetRenderState(t)})}}}},Pl=Ps({name:`refinement-list`,connector:!0}),Fl=[`isRefined`,`count:desc`,`name:asc`],Il=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;return Is(e,Pl()),function(n){var r=n||{},i=r.attribute,a=r.operator,o=a===void 0?`or`:a,s=r.limit,c=s===void 0?10:s,l=r.showMore,u=l!==void 0&&l,d=r.showMoreLimit,f=d===void 0?20:d,p=r.sortBy,m=p===void 0?Fl:p,h=r.escapeFacetValues,g=h===void 0||h,_=r.transformItems,v=_===void 0?function(e){return e}:_;if(!i)throw Error(Pl("The `attribute` option is required."));if(!/^(and|or)$/.test(o))throw Error(Pl(`The \`operator\` must one of: \`"and"\`, \`"or"\` (got "${o}").`));if(u===!0&&f<=c)throw Error(Pl("`showMoreLimit` should be greater than `limit`."));var y=function(e){var t=e.name,n=e.escapedValue;return X(Y({},Hc(e,[`name`,`escapedValue`])),{value:n,label:t,highlighted:t})},b,x=[],S=!0,C,w,T=!1,ee=function(){};function E(){ee()}function D(e,t){return function(){T=!T,t.render(e)}}function O(){return T?f:c}var k=function(){return function(){}},te=function(t,n){return function(r){return function(a){var o=r.instantSearchInstance,s=r.results;if(a===``&&x)e(X(Y({},n.getWidgetRenderState(X(Y({},r),{results:b}))),{instantSearchInstance:o}),!1);else{var c={highlightPreTag:g?rc.highlightPreTag:ic.highlightPreTag,highlightPostTag:g?rc.highlightPostTag:ic.highlightPostTag};t.searchForFacetValues(i,a,Math.min(O(),100),c).then(function(t){var i=v((g?cc(t.facetHits):t.facetHits).map(function(e){var t=e.escapedValue,n=e.value;return X(Y({},Hc(e,[`escapedValue`,`value`])),{value:t,label:n})}),{results:s});e(X(Y({},n.getWidgetRenderState(X(Y({},r),{results:b}))),{items:i,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:o}),!1)})}}}};return{$$type:`ais.refinementList`,init:function(t){e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return X(Y({},e),{refinementList:X(Y({},e.refinementList),J({},i,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=this,r=e.results,a=e.state,o=e.createURL,s=e.instantSearchInstance,l=e.helper,d=[],f=[];if((!w||!C||!k)&&(w=fl({instantSearchInstance:s,helper:l,attribute:i,widgetType:this.$$type}),C=function(e){w(`click:internal`,e),l.toggleFacetRefinement(i,e).search()},k=te(l,this)),r){var p=r.getFacetValues(i,{sortBy:m,facetOrdering:m===Fl});f=p&&Array.isArray(p)?p:[],d=v(f.slice(0,O()).map(y),{results:r});var h=a.maxValuesPerFacet,g=O();S=h>g?f.length<=g:f.length<g,b=r,x=d,e.results&&(ee=D(e,this))}var _=k&&k(e),A=T&&x.length>c||u&&!S;return{createURL:function(e){return o(function(n){return t.getWidgetUiState(n,{searchParameters:a.resetPage().toggleFacetRefinement(i,e),helper:l})})},items:d,refine:C,searchForItems:_,isFromSearch:!1,canRefine:d.length>0,widgetParams:n,isShowingMore:T,canToggleShowMore:A,toggleShowMore:E,sendEvent:w,hasExhaustiveItems:S}},dispose:function(e){var n=e.state;t();var r=n.setQueryParameter(`maxValuesPerFacet`,void 0);return o===`and`?r.removeFacet(i):r.removeDisjunctiveFacet(i)},getWidgetUiState:function(e,t){var n=t.searchParameters,r=o===`or`?n.getDisjunctiveRefinements(i):n.getConjunctiveRefinements(i);return Ll(X(Y({},e),{refinementList:X(Y({},e.refinementList),J({},i,r))}),i)},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=o===`or`;if(e.isHierarchicalFacet(i)||r&&e.isConjunctiveFacet(i)||!r&&e.isDisjunctiveFacet(i))return e;var a=n.refinementList&&n.refinementList[i],s=r?e.addDisjunctiveFacet(i).removeDisjunctiveFacetRefinement(i):e.addFacet(i).removeFacetRefinement(i),l=s.maxValuesPerFacet||0,d=Math.max(l,u?f:c),p=s.setQueryParameter(`maxValuesPerFacet`,d);if(!a){var m=r?`disjunctiveFacetsRefinements`:`facetsRefinements`;return p.setQueryParameters(J({},m,X(Y({},p[m]),J({},i,[]))))}return a.reduce(function(e,t){return r?e.addDisjunctiveFacetRefinement(i,t):e.addFacetRefinement(i,t)},p)}}}};function Ll(e,t){return e.refinementList?((!e.refinementList[t]||e.refinementList[t].length===0)&&delete e.refinementList[t],Object.keys(e.refinementList).length===0&&delete e.refinementList,e):e}var Rl=Ps({name:`search-box`,connector:!0}),zl=function(e,t){return t(e)},Bl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;return Is(e,Rl()),function(n){var r=(n||{}).queryHook,i=r===void 0?zl:r,a,o;return{$$type:`ais.searchBox`,init:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter(`query`,void 0)},getRenderState:function(e,t){return X(Y({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,r=e.instantSearchInstance,s=e.state;return a||(a=function(e){i(e,function(e){return t.setQuery(e).search()})},o=function(){t.setQuery(``).search()}),{query:s.query||``,refine:a,clear:o,widgetParams:n,isSearchStalled:r.status===`stalled`}},getWidgetUiState:function(e,t){var n=t.searchParameters.query||``;return n===``||e&&e.query===n?e:X(Y({},e),{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter(`query`,n.query||``)}}}},Vl=Ps({name:`stats`,connector:!0}),Hl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;return Is(e,Vl()),function(n){return{$$type:`ais.stats`,init:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(X(Y({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!1)},dispose:function(){t()},getRenderState:function(e,t){return X(Y({},e),{stats:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,r=e.state;return t?{hitsPerPage:t.hitsPerPage,nbHits:t.nbHits,nbSortedHits:t.nbSortedHits,areHitsSorted:t.appliedRelevancyStrictness!==void 0&&t.appliedRelevancyStrictness>0&&t.nbSortedHits!==t.nbHits,nbPages:t.nbPages,page:t.page,processingTimeMS:t.processingTimeMS,query:t.query,widgetParams:n}:{hitsPerPage:r.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:r.page||0,processingTimeMS:-1,query:r.query||``,widgetParams:n}}}}};function Ul(e,t){return t!=null&&typeof Symbol<`u`&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Wl(e,t,n[t])})}return e}function Kl(e,t){if(e==null)return{};for(var n={},r=Object.getOwnPropertyNames(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}function ql(e,t){if(e==null)return{};var n={},r,i,a;if(typeof Reflect<`u`&&Reflect.ownKeys){for(r=Reflect.ownKeys(e),a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}if(n=Kl(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}function Jl(){return[...arguments].reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])}
13,[]).filter(Boolean).join(` `)}function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xl(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Yl(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Zl(e){var t=e.createElement;return function(e){var n=e.classNames,r=e.children,i=e.highlightedTagName,a=e.isHighlighted,o=e.nonHighlightedTagName;return t(a?i:o,{className:a?n.highlighted:n.nonHighlighted},r)}}function Ql(e){var t=e.createElement,n=e.Fragment,r=Zl({createElement:t,Fragment:n});return function(e){var i=e.parts,a=e.highlightedTagName,o=a===void 0?`mark`:a,s=e.nonHighlightedTagName,c=s===void 0?`span`:s,l=e.separator,u=l===void 0?`, `:l,d=e.className,f=e.classNames,p=f===void 0?{}:f;return t(`span`,Xl(Gl({},ql(e,[`parts`,`highlightedTagName`,`nonHighlightedTagName`,`separator`,`className`,`classNames`])),{className:Jl(p.root,d)}),i.map(function(e,a){var s=a===i.length-1;return t(n,{key:a},e.map(function(e,n){return t(r,{key:n,classNames:p,highlightedTagName:o,nonHighlightedTagName:c,isHighlighted:e.isHighlighted},e.value)}),!s&&t(`span`,{className:p.separator},u))}))}}function $l(e){var t=e.createElement;return function(e){var n=e.classNames,r=e.banner;return r.image.urls[0].url?t(`aside`,{className:Jl(`ais-Hits-banner`,n.bannerRoot)},r.link?t(`a`,{className:Jl(`ais-Hits-banner-link`,n.bannerLink),href:r.link.url,target:r.link.target},t(`img`,{className:Jl(`ais-Hits-banner-image`,n.bannerImage),src:r.image.urls[0].url,alt:r.image.title})):t(`img`,{className:Jl(`ais-Hits-banner-image`,n.bannerImage),src:r.image.urls[0].url,alt:r.image.title})):null}}function eu(e){var t=e.createElement,n=e.Fragment,r=$l({createElement:t,Fragment:n});return function(e){var n=e.classNames,i=n===void 0?{}:n,a=e.hits,o=e.itemComponent,s=e.sendEvent,c=e.emptyComponent,l=e.banner,u=e.bannerComponent,d=ql(e,[`classNames`,`hits`,`itemComponent`,`sendEvent`,`emptyComponent`,`banner`,`bannerComponent`]);return t(`div`,Xl(Gl({},d),{className:Jl(`ais-Hits`,i.root,a.length===0&&Jl(`ais-Hits--empty`,i.emptyRoot),d.className)}),l&&(u?t(u,{className:Jl(`ais-Hits-banner`,i.bannerRoot),banner:l}):t(r,{classNames:i,banner:l})),a.length===0&&c?t(c,null):t(`ol`,{className:Jl(`ais-Hits-list`,i.list)},a.map(function(e,n){return t(o,{key:e.objectID,hit:e,index:n,className:Jl(`ais-Hits-item`,i.item),onClick:function(){s(`click:internal`,e,`Hit Clicked`)},onAuxClick:function(){s(`click:internal`,e,`Hit Clicked`)}})})))}}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tu(e)}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nu=function(){return!!e})()}function ru(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function iu(e,t){return t&&($s(t)===`object`||typeof t==`function`)?t:ru(e)}function au(e,t,n){return t=tu(t),iu(e,nu()?Reflect.construct(t,n||[],tu(e).constructor):t.apply(e,n))}function ou(e,t){return ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ou(e,t)}function su(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ou(e,t)}c();function cu(e){function t(e,t){var r=[...arguments].slice(2),i=r.length>0?r:void 0;if((t===void 0?`undefined`:Os(t))===`object`&&(t.attrs||t.props||t.scopedSlots||t.on)){var a=Object.keys(t.on||{}),o=Object.assign({},t,t.attrs,t.props,a.reduce(function(e,n){return e[`on${n[0].toUpperCase()}${n.slice(1)}`]=t.on[n],e},{}));return delete o.attrs,delete o.props,delete o.scopedSlots,a.forEach(function(e){return delete o.on[e]}),o.on&&Object.keys(o.on).length===0&&delete o.on,n(e,o,t.scopedSlots?Object.assign({default:function(){return i}},t.scopedSlots):i)}return n(e,t,i)}return function(){return e.call(this,t)}}function lu(e){var t=e.$slots||e.slots;return typeof t.default==`function`?t.default():t.default}function uu(e,t){return(e.$slots||e.slots||{})[t]}var du={inheritAttrs:!1,name:`AisConfigure`,mixins:[Ts({name:`Configure`}),js({connector:al},{$$widgetType:`ais.configure`})],computed:{widgetParams:function(){return{searchParameters:Object.assign({},this.$attrs)}}},render:cu(function(e){var t=this.$slots.default;return this.state&&t?e(`div`,{class:this.suit()},[t({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null})};function fu(e,t){if(e==null)return{};for(var n={},r=Object.getOwnPropertyNames(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}function pu(e,t){if(e==null)return{};var n={},r,i,a;if(typeof Reflect<`u`&&Reflect.ownKeys){for(r=Reflect.ownKeys(e),a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}if(n=fu(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}var mu={name:`AisHits`,mixins:[js({connector:El},{$$widgetType:`ais.hits`}),Ts({name:`Hits`})],props:{showBanner:{type:Boolean,default:!0},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{showBanner:this.showBanner,escapeHTML:this.escapeHTML,transformItems:this.transformItems}}},render:cu(function(e){var t=this;if(!this.state)return null;var n=uu(this,`default`),r=uu(this,`item`),i=uu(this,`banner`);return r||i||!n?e(eu({createElement:e}),{hits:this.state.items,itemComponent:function(n){var i=n.hit,a=n.index,o=n.onClick,s=n.onAuxClick;n.key;var c=pu(n,[`hit`,`index`,`onClick`,`onAuxClick`,`key`]);return e(`li`,{key:i.objectID,attrs:c,on:{click:o,auxclick:s}},[r&&r({item:i,index:a,insights:t.state.insights,sendEvent:t.state.sendEvent})||`objectID: ${i.objectID}, index: ${a}`])},banner:this.showBanner?this.state.banner:void 0,bannerComponent:i,sendEvent:this.state.sendEvent,classNames:this.classNames&&{root:this.classNames[`ais-Hits`],list:this.classNames[`ais-Hits-list`],item:this.classNames[`ais-Hits-item`],bannerRoot:this.classNames[`ais-Hits-banner`],bannerImage:this.classNames[`ais-Hits-banner-image`],bannerLink:this.classNames[`ais-Hits-banner-link`]}}):e(`div`,{attrs:{class:this.suit()}},[n({banner:this.state.banner,items:this.state.items,insights:this.state.insights,sendEvent:this.state.sendEvent})])})},hu=`ais`,gu=function(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.descendantName,r=t.modifierName;return`${hu}-${e}${n?`-${n}`:``}${r?`--${r}`:``}`}},_u={highlightPreTag:`<mark>`,highlightPostTag:`</mark>`},vu=Promise.resolve();function yu(e,t){var n=null,r=!1,i=null,a=function(){var a=[...arguments];if(n!==null){t&&i!==null&&(i=t(i,a));return}i=a,n=vu.then(function(){n=null;var t=i;if(i=null,r){r=!1;return}e.apply(void 0,Hs(t))})};return a.wait=function(){if(n===null)throw Error("The deferred function should be called before calling `wait()`");return n},a.cancel=function(){n!==null&&(r=!0)},a}function bu(e,t){return(Array.isArray(t)?t:t.split(`.`)).reduce(function(e,t){return e&&e[t]},e)}var xu=gu(`Highlight`);function Su(e){var t=e.attribute,n=e.highlightedTagName,r=n===void 0?`mark`:n,i=e.hit,a=e.cssClasse
13s,o=a===void 0?{}:a,s=(bu(i._highlightResult,t)||{}).value,c=s===void 0?``:s,l=xu({descendantName:`highlighted`})+(o.highlighted?` ${o.highlighted}`:``);return c.replace(new RegExp(_u.highlightPreTag,`g`),`<${r} class="${l}">`).replace(new RegExp(_u.highlightPostTag,`g`),`</${r}>`)}function Cu(e){var t=_u.highlightPreTag,n=_u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join(``)}function wu(e){var t=_u.highlightPostTag,n=_u.highlightPreTag,r=e.split(n),i=r.shift(),a=i?[{value:i,isHighlighted:!1}]:[];return r.forEach(function(e){var n=e.split(t);a.push({value:n[0],isHighlighted:!0}),n[1]!==``&&a.push({value:n[1],isHighlighted:!1})}),a}var Tu={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},Eu=/&(amp|quot|lt|gt|#39);/g,Du=RegExp(Eu.source);function Ou(e){return e&&Du.test(e)?e.replace(Eu,function(e){return Tu[e]}):e}var ku=new RegExp(/\w/i);function Au(e,t){var n,r,i=e[t],a=((n=e[t+1])==null?void 0:n.isHighlighted)??!0,o=((r=e[t-1])==null?void 0:r.isHighlighted)??!0;return!ku.test(Ou(i.value))&&o===a?o:i.isHighlighted}function ju(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,n){return X(Y({},t),{isHighlighted:!Au(e,n)})}):e.map(function(e){return X(Y({},e),{isHighlighted:!1})})}var Mu=gu(`ReverseHighlight`);function Nu(e){var t=e.attribute,n=e.highlightedTagName,r=n===void 0?`mark`:n,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a,s=(bu(i._highlightResult,t)||{}).value,c=s===void 0?``:s,l=Mu({descendantName:`highlighted`})+(o.highlighted?` ${o.highlighted}`:``);return Cu(ju(wu(c))).replace(new RegExp(_u.highlightPreTag,`g`),`<${r} class="${l}">`).replace(new RegExp(_u.highlightPostTag,`g`),`</${r}>`)}var Pu=gu(`Snippet`);function Fu(e){var t=e.attribute,n=e.highlightedTagName,r=n===void 0?`mark`:n,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a,s=(bu(i._snippetResult,t)||{}).value,c=s===void 0?``:s,l=Pu({descendantName:`highlighted`})+(o.highlighted?` ${o.highlighted}`:``);return c.replace(new RegExp(_u.highlightPreTag,`g`),`<${r} class="${l}">`).replace(new RegExp(_u.highlightPostTag,`g`),`</${r}>`)}var Iu=gu(`ReverseSnippet`);function Lu(e){var t=e.attribute,n=e.highlightedTagName,r=n===void 0?`mark`:n,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a,s=(bu(i._snippetResult,t)||{}).value,c=s===void 0?``:s,l=Iu({descendantName:`highlighted`})+(o.highlighted?` ${o.highlighted}`:``);return Cu(ju(wu(c))).replace(new RegExp(_u.highlightPreTag,`g`),`<${r} class="${l}">`).replace(new RegExp(_u.highlightPostTag,`g`),`</${r}>`)}function Ru(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function zu(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){var t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var Bu=`ais.usage.sessionId`,Vu=null;function Hu(){if(Vu)return Vu;try{var e=sessionStorage.getItem(Bu);return e?(Vu=e,Vu):(Vu=zu(),sessionStorage.setItem(Bu,Vu),Vu)}catch{return Vu=zu(),Vu}}function Uu(e){var t=e.method,n=e.payload;if((n===void 0?`undefined`:$s(n))!==`object`)throw Error(`The insights helper expects the payload to be an object.`);var r;try{r=Ru(n)}catch{throw Error(`Could not JSON serialize the payload object.`)}return`data-insights-method="${t}" data-insights-payload="${r}"`}function Wu(e,t){return Uu({method:e,payload:t})}var Gu=`_ALGOLIA`;function Ku(e){if((typeof document>`u`?`undefined`:$s(document))===`object`&&typeof document.cookie==`string`)for(var t=`${e}=`,n=document.cookie.split(`;`),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)===` `;)i=i.substring(1);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}}function qu(){return Ku(Gu)}function Ju(){return qu()}function Yu(e){return e!==Object(e)}function Xu(e,t){if(e===t)return!0;if(Yu(e)||Yu(t)||typeof e==`function`||typeof t==`function`)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var n=!0,r=!1,i=void 0;try{for(var a=Object.keys(e)[Symbol.iterator](),o;!(n=(o=a.next()).done);n=!0){var s=o.value;if(!(s in t)||!Xu(e[s],t[s]))return!1}}catch(e){r=!0,i=e}finally{try{!n&&a.return!=null&&a.return()}finally{if(r)throw i}}return!0}function Zu(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}}).fallback;return typeof window>`u`?t():e({window})}function Qu(e){var t=e||{};return t.page,Hc(t,[`page`])}function $u(){var e=[`ais.infiniteHits`,(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}
13).key].filter(Boolean).join(`:`);return{read:function(t){var n=t.state,r=Zu(function(e){return e.window.sessionStorage});if(!r)return null;try{var i=JSON.parse(r.getItem(e));return i&&Xu(i.state,Qu(n))?i.hits:null}catch(t){if(Ul(t,SyntaxError))try{r.removeItem(e)}catch{}return null}},write:function(t){var n=t.state,r=t.hits,i=Zu(function(e){return e.window.sessionStorage});if(i)try{i.setItem(e,JSON.stringify({state:Qu(n),hits:r}))}catch{}}}}function ed(){}function td(e,t){for(var n,r=0;r<e.length;r++)if(n=e[r],t(n,r,e))return n}function nd(e){var t=e;return t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua}function rd(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(e.transporter){var t=e.transporter,n=t.headers||t.baseHeaders,r=t.queryParameters||t.baseQueryParameters,i=`x-algolia-application-id`,a=`x-algolia-api-key`;return[n[i]||r[i],n[a]||r[a]]}return[e.applicationID,e.apiKey]}function id(e,t){return e==null?e:Object.keys(e).reduce(function(n,r){if(t.indexOf(r)>=0)return n;var i=r;return n[i]=e[i],n},{})}var ad=[`ais.index`,`ais.feedContainer`];function od(e){return ad.includes(e.$$type)}function sd(e,t,n){var r=t.getHelper();return{uiState:n,helper:r,parent:t,instantSearchInstance:e,state:r.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:e.status===`stalled`},status:e.status,error:e.error}}function cd(e,t,n){var r=t.getResultsForWidget(n),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:r,scopedResults:t.getScopedResults(),state:r&&`_state`in r?r._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:e.status===`stalled`},status:e.status,error:e.error}}function ld(e){var t=e.renderState,n=e.instantSearchInstance,r=e.parent,i=r?r.getIndexId():n.mainIndex.getIndexId();n.renderState=X(Y({},n.renderState),J({},i,Y({},n.renderState[i],t)))}function ud(e){if(e==null)return null;var t=e===void 0?`undefined`:$s(e);if(t===`string`||t===`number`||t===`boolean`)return{value:String(e),type:t};if(Array.isArray(e)||t===`object`){var n=Array.isArray(e)?`array`:`object`;try{return{value:JSON.stringify(e),type:n}}catch{return{type:n}}}return t===`function`?{value:e.name,type:`function`}:null}function dd(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];if(r!==void 0){var i=ud(r);i?t.push(Y({name:n},i)):t.push({name:n})}}),t}function fd(e,t){var n=sd(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.mainIndex,t._initialUiState);return e.map(function(e){var r={};if(e.getWidgetRenderState){var i=e.getWidgetRenderState(n);i&&i.widgetParams&&(r=i.widgetParams)}var a=dd(r),o=od(e)?fd(e.getWidgets(),t,e):[];return{type:e.$$widgetType||e.$$type||`unknown`,params:a,children:o}})}var pd=typeof performance<`u`?function(){return performance.now()}:function(){return Date.now()},md=`4.116.0`,hd=`2.17.2`,gd=`https://cdn.jsdelivr.net/npm/search-insights@${hd}/dist/search-insights.min.js`,_d=[`searchClient`,`insightsClient`,`initialUiState`];function vd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.insightsClient,n=e.insightsInitParams,r=e.onEvent,i=e.$$internal,a=i!==void 0&&i,o=e.$$automatic,s=o!==void 0&&o,c=t;!t&&t!==null&&Zu(function(e){var t=e.window,n=t.AlgoliaAnalyticsObject||`aa`;typeof n==`string`&&(c=t[n]),c||(t.AlgoliaAnalyticsObject=n,t[n]||(t[n]=function(){var e=[...arguments];t[n].queue||(t[n].queue=[]),t[n].queue.push(e)},t[n].version=hd,t[n].shouldAddScript=!0),c=t[n])});var l=c||ed;return function(e){var t=e.instantSearchInstance,i,o=t.middleware.filter(function(e){return e.instance.$$type===`ais.insights`&&e.instance.$$internal}).map(function(e){return e.creator});(i=t).unuse.apply(i,Hs(o));var c=Q(rd(t.client),2),u=c[0],d=c[1],f=void 0,p=void 0,m=void 0,h=l.queue;if(Array.isArray(h)){var g=Q([`setUserToken`,`init`].map(function(e){return Q(td(h.slice().reverse(),function(t){return Q(t,1)[0]===e})||[],2)[1]}),2);p=g[0],f=g[1]}l(`getUserToken`,null,function(e,t){m=Sd(t)}),(n||!xd(l))&&l(`init`,Y({appId:u,apiKey:d,partial:!0},n));var _,v,y=null;return{$$type:`ais.insights`,$$internal:a,$$automatic:s,onStateChange:function(){},subscribe:function(){if(l.shouldAddScript){var e=`[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init`;
13try{var n=document.createElement(`script`);n.async=!0,n.src=gd,n.onerror=function(){t.emit(`error`,Error(e))},document.body.appendChild(n),l.shouldAddScript=!1}catch{l.shouldAddScript=!1,t.emit(`error`,Error(e))}}},started:function(){l(`addAlgoliaAgent`,`insights-middleware`),v=t.mainHelper;var e=l.queue;if(Array.isArray(e)){var i=Q([`setUserToken`,`init`].map(function(t){return Q(td(e.slice().reverse(),function(e){return Q(e,1)[0]===t})||[],2)[1]}),2);p=i[0],f=i[1]}_=yd(t),s||v.overrideStateWithoutTriggeringChangeEvent(X(Y({},v.state),{clickAnalytics:!0})),a||t.scheduleSearch();var o=function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=Sd(e);if(!r)return;var i=v.state.userToken;function a(){v.overrideStateWithoutTriggeringChangeEvent(X(Y({},v.state),{userToken:r})),i&&i!==r&&(v._recommendCache={},t.scheduleSearch())}n?a():setTimeout(a,0)};function c(e){o(e,!0),l(`setUserToken`,e)}var d=void 0;d=qu()||`anonymous-${zu()}`;var h,g=_.userToken;n!=null&&n.userToken&&(h=n.userToken),h?c(h):g?c(g):m?c(m):p?c(p):d&&(c(d),(n!=null&&n.useCookie||f!=null&&f.useCookie)&&bd(d,(n==null?void 0:n.cookieDuration)||(f==null?void 0:f.cookieDuration))),l(`onUserTokenChange`,function(e){return o(e,!0)},{immediate:!0});var b=l;xd(l)&&(b=function(e,n){var r=Q(rd(t.client),2);return l(e,n,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var x=new Set,S;t.mainHelper.derivedHelpers[0].on(`result`,function(e){var t=e.results;t&&(!t.queryID||t.queryID!==S)&&(S=t.queryID,x.clear())}),t.sendEventToInsights=function(e){if(r)r(e,b);else if(e.insightsMethod){if(e.insightsMethod===`viewedObjectIDs`){var t=e.payload,n=function(e){return t.queryID?`${t.queryID}:${e}`:e},i=t.objectIDs.filter(function(e){return!x.has(n(e))});if(i.length===0)return;i.forEach(function(e){return x.add(n(e))}),t.objectIDs=i}e.payload.algoliaSource=[`instantsearch`],s&&e.payload.algoliaSource.push(`instantsearch-automatic`),e.eventModifier===`internal`&&e.payload.algoliaSource.push(`instantsearch-internal`),b(e.insightsMethod,e.payload)}},Zu(function(){var e=Hu();function n(t){var n,r=(n=v.state)==null?void 0:n.userToken;b(`sendEvents`,[Y({eventType:`instantsearch`,timestamp:Date.now(),sessionID:e,userToken:r?String(r):void 0},t)])}var r=function(){try{var e=Math.round(pd()-t._createdAt);n({eventName:`__start__`,algoliaAgent:nd(t.client),version:md,applicationId:u,performance:{bootstrapMs:e},widgets:[{type:`ais.instantSearch`,params:t._initialOptions?dd(id(t._initialOptions,Hs(_d))):[],children:fd(t.mainIndex.getWidgets(),t)}]})}catch{}};t.once(`render`,r),y=function(){return t.removeListener(`render`,r)}})},unsubscribe:function(){y&&y(),l(`onUserTokenChange`,void 0),t.sendEventToInsights=ed,v&&_&&(v.overrideStateWithoutTriggeringChangeEvent(Y({},v.state,_)),t.scheduleSearch())}}}}function yd(e){var t,n,r=((n=e._initialResults)==null||(t=n[e.indexName])==null?void 0:t.state)||{},i=e.mainHelper.state;return{userToken:r.userToken||i.userToken,clickAnalytics:r.clickAnalytics||i.clickAnalytics}}function bd(e,t){var n=2592e6,r=new Date;r.setTime(r.getTime()+(t||n*6));var i=`expires=${r.toUTCString()}`;document.cookie=`_ALGOLIA=${e};${i};path=/`}function xd(e){var t=Q((e.version||``).split(`.`).map(Number),2),n=t[0],r=t[1];return n>=3||n===2&&r>=6||n===1&&r>=10}function Sd(e){if(e)return typeof e==`number`?e.toString():e}function Cd(e,t,n){var r=sd(t,arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.mainIndex,t._initialUiState);e.forEach(function(e){var i={};if(e.getWidgetRenderState){var a=e.getWidgetRenderState(r);a&&a.widgetParams&&(i=a.widgetParams)}var o=Object.keys(i).filter(function(e){return i[e]!==void 0});n.widgets.push({type:e.$$type,widgetType:e.$$widgetType,params:o}),od(e)&&Cd(e.getWidgets(),t,n,e)})}function wd(){return Zu(function(e){var t=e.window,n,r;return((r=t.navigator)==null||(n=r.userAgent)==null?void 0:n.indexOf(`Algolia Crawler`))>-1},{fallback:function(){return!1}})}function Td(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).$$internal,t=e!==void 0&&e;return function(e){var n=e.instantSearchInstance,r={widgets:[]},i=document.createElement(`meta`),a=document.querySelector(`head`);return i.name=`instantsearch:widgets`,{$$type:`ais.metadata`,$$internal:t,onStateChange:function(){},subscribe:function(){setTimeout(function(){r.ua=nd(n.client),Cd(n.mainIndex.getWidgets(),n,r),n.middleware.forEach(function(e){return r.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(r),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}var Ed=W(((e,t)=>{t.exports=TypeError})),Dd=W(((e,t)=>{t.exports={}})),Od=W(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,ee=typeof BigInt==`function`?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,D=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,O=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,k=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,A=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ne(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var re=Dd(),j=re.custom,ie=he(j)?j:null,M={__proto__:null,double:`"`,single:`'`},ae={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(_e(s,`quoteStyle`)&&!_e(M,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(_e(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!_e(s,`customInspect`)||s.customInspect;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
vendor: 4,274 bytes, line 13
13if(_e(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_e(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return R(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?ne(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?ne(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return ce(t)?`[Array]`:`[Object]`;var g=ke(s,r);if(o===void 0)o=[];else if(ye(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return _e(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ue(t)){var x=ve(t),T=je(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(he(t)){var E=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):D.call(t);return typeof t==`object`&&!O?Te(E):E}if(Ce(t)){for(var j=`<`+b.call(String(t.nodeName)),ae=t.attributes||[],N=0;N<ae.length;N++)j+=` `+ae[N].name+`=`+oe(se(ae[N].value),`double`,s);return j+=`>`,t.childNodes&&t.childNodes.length&&(j+=`...`),j+=`</`+b.call(String(t.nodeName))+`>`,j}if(ce(t)){if(t.length===0)return`[]`;var P=je(t,y);return g&&!Oe(P)?`[`+Ae(P,g)+`]`:`[ `+C.call(P,`, `)+` ]`}if(de(t)){var we=je(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!te.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),we),`, `)+` }`:we.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(we,`, `)+` }`}if(typeof t==`object`&&u){if(ie&&typeof t[ie]==`function`&&re)return re(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(I(t)){var Me=[];return a&&a.call(t,function(e,n){Me.push(y(n,t,!0)+` => `+y(e,t))}),De(`Map`,i.call(t),Me,g)}if(Se(t)){var z=[];return l&&l.call(t,function(e){z.push(y(e,t))}),De(`Set`,c.call(t),z,g)}if(be(t))return Ee(`WeakMap`);if(L(t))return Ee(`WeakSet`);if(xe(t))return Ee(`WeakRef`);if(pe(t))return Te(y(Number(t)));if(ge(t))return Te(y(ee.call(t)));if(me(t))return Te(p.call(t));if(fe(t))return Te(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!le(t)&&!ue(t)){var Ne=je(t,y),Pe=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,B=t instanceof Object?``:`null prototype`,Fe=!Pe&&k&&Object(t)===t&&k in t?_.call(F(t),8,-1):B?`Object`:``,V=(Pe||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Fe||B?`[`+C.call(S.call([],Fe||[],B||[]),`: `)+`] `:``);return Ne.length===0?V+`{}`:g?V+`{`+Ae(Ne,g)+`}`:V+`{ `+C.call(Ne,`, `)+` }`}return String(t)};function oe(e,t,n){var r=M[n.quoteStyle||t];return r+e+r}function se(e){return v.call(String(e),/"/g,`"`)}function N(e){return!k||!(typeof e==`object`&&(k in e||e[k]!==void 0))}function ce(e){return F(e)===`[object Array]`&&N(e)}function le(e){return F(e)===`[object Date]`&&N(e)}function ue(e){return F(e)===`[object RegExp]`&&N(e)}function de(e){return F(e)===`[object Error]`&&N(e)}function fe(e){return F(e)===`[object String]`&&N(e)}function pe(e){return F(e)===`[object Number]`&&N(e)}function me(e){return F(e)===`[object Boolean]`&&N(e)}function he(e){if(O)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!D)return!1;try{return D.call(e),!0}catch{}return!1}function ge(e){if(!e||typeof e!=`object`||!ee)return!1;try{return ee.call(e),!0}catch{}return!1}var P=Object.prototype.hasOwnProperty||function(e){return e in this};function _e(e,t){return P.call(e,t)}function F(e){return m.call(e)}function ve(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ye(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function I(e){if(!i||!e||typeof e!=`object`)return!1;
13try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function be(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function xe(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function Se(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function L(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Ce(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement||typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function R(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return R(_.call(e,0,t.maxStringLength),t)+r}var i=ae[t.quoteStyle||`single`];return i.lastIndex=0,oe(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,we),`single`,t)}function we(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function Te(e){return`Object(`+e+`)`}function Ee(e){return e+` { ? }`}function De(e,t,n,r){var i=r?Ae(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Oe(e){for(var t=0;t<e.length;t++)if(ye(e[t],` 14`)>=0)return!1;return!0}function ke(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function Ae(e,t){if(e.length===0)return``;var n=` 15`+t.prev+t.base;return n+C.call(e,`,`+n)+` 16`+t.prev}function je(e,t){var n=ce(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=_e(e,i)?t(e[i],e):``}var a=typeof E==`function`?E(e):[],o;if(O){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)_e(e,c)&&(n&&String(Number(c))===c&&c<e.length||O&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof E==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),kd=W(((e,t)=>{var n=Od(),r=Ed(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||(e={next:void 0}),o(e,t,n)}};return t}})),Ad=W(((e,t)=>{t.exports=Object})),jd=W(((e,t)=>{t.exports=Error})),Md=W(((e,t)=>{t.exports=EvalError})),Nd=W(((e,t)=>{t.exports=RangeError})),Pd=W(((e,t)=>{t.exports=ReferenceError})),Fd=W(((e,t)=>{t.exports=SyntaxError})),Id=W(((e,t)=>{t.exports=URIError})),Ld=W(((e,t)=>{t.exports=Math.abs})),Rd=W(((e,t)=>{t.exports=Math.floor})),zd=W(((e,t)=>{t.exports=Math.max})),Bd=W(((e,t)=>{t.exports=Math.min})),Vd=W(((e,t)=>{t.exports=Math.pow})),Hd=W(((e,t)=>{t.exports=Math.round})),Ud=W(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Wd=W(((e,t)=>{var n=Ud();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Gd=W(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Kd=W(((e,t)=>{var n=Gd();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),qd=W(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Jd=W(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Yd=W(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Jd();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Xd=W(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Zd=W(((e,t)=>{t.exports=Ad().getPrototypeOf||null})),Qd=W(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);
16for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),$d=W(((e,t)=>{var n=Qd();t.exports=Function.prototype.bind||n})),ef=W(((e,t)=>{t.exports=Function.prototype.call})),tf=W(((e,t)=>{t.exports=Function.prototype.apply})),nf=W(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),rf=W(((e,t)=>{var n=$d(),r=tf(),i=ef();t.exports=nf()||n.call(i,r)})),af=W(((e,t)=>{var n=$d(),r=Ed(),i=ef(),a=rf();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),of=W(((e,t)=>{var n=af(),r=Kd(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),sf=W(((e,t)=>{var n=Xd(),r=Zd(),i=of();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),cf=W(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=$d().call(n,r)})),lf=W(((e,t)=>{var n,r=Ad(),i=jd(),a=Md(),o=Nd(),s=Pd(),c=Fd(),l=Ed(),u=Id(),d=Ld(),f=Rd(),p=zd(),m=Bd(),h=Vd(),g=Hd(),_=Wd(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Kd(),x=qd(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Yd()(),T=sf(),ee=Zd(),E=Xd(),D=tf(),O=ef(),k={},te=typeof Uint8Array>`u`||!T?n:T(Uint8Array),A={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 6,437 bytes, line 16
16`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":te,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":D,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":ee,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":E};if(T)try{null.error}catch(e){A[`%Error.prototype%`]=T(T(e))}var ne=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return A[t]=n,n},re={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},j=$d(),ie=cf(),M=j.call(O,Array.prototype.concat),ae=j.call(D,Array.prototype.splice),oe=j.call(O,String.prototype.replace),se=j.call(O,String.prototype.slice),N=j.call(O,RegExp.prototype.exec),ce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,ue=function(e){var t=se(e,0,1),n=se(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return oe(e,ce,function(e,t,n,i){r[r.length]=n?oe(i,le,`$1`):t||e}),r},de=function(e,t){var n=e,r;if(ie(re,n)&&(r=re[n],n=`%`+r[0]+`%`),ie(A,n)){var i=A[n];if(i===k&&(i=ne(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(N(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ue(e),r=n.length>0?n[0]:``,i=de(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ae(n,M([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=se(p,0,1),h=se(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ie(A,a))o=A[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ie(o,p),o=o[p];f&&!s&&(A[a]=o)}}return o}})),uf=W(((e,t)=>
16{var n=lf(),r=af(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),df=W(((e,t)=>{var n=lf(),r=uf(),i=Od(),a=Ed(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||(e=new o),c(e,t,n)}};return t}})),ff=W(((e,t)=>{var n=lf(),r=uf(),i=Od(),a=df(),o=Ed(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||(e=new s),l(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a})),pf=W(((e,t)=>{var n=Ed(),r=Od(),i=kd(),a=df(),o=ff()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+(e&&Object(e)===e?`the given object key`:r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=o()),e.set(t,n)}};return t}})),mf=W(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),hf=W(((e,t)=>{var n=mf(),r=pf(),i=qd(),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=r(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},m=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},h=function(e,t,n){t===`__proto__`&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},g=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(o(t)){var i=t.length;if(r&&typeof r.arrayLimit==`number`&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t.concat(n),r),i)}t[i]=n}else if(t&&typeof t==`object`){if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else if(r&&r.strictMerge)return[t,n];else(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}else return[t,n];return t}if(!t||typeof t!=`object`){if(l(n)){for(var f=Object.keys(n),p=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<f.length;g++){var _=parseInt(f[g],10);p[_+1]=n[f[g]]}return c(p,u(n)+1)}var v=[t].concat(n);if(r&&typeof r.arrayLimit==`number`&&v.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(v,r),v.length-1)}return v}var y=t;if(o(t)&&!o(n)&&(y=m(t,r)),o(t)&&o(n)){if(n.forEach(function(n,i){if(a.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,r):t[t.length]=n}else t[i]=n}),r&&typeof r.arrayLimit==`number`&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var o=n[i];if(a.call(t,i)?h(t,i,e(t[i],o,r)):h(t,i,o),l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&d(t,s)}return t},y)},_=function(e,t){return Object.keys(t).reduce(function(e,n){return h(e,n,t[n]),e},e)},v=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},y=1024;t.exports={arrayToObject:m,assign:_,combine:function(e,t,n,r,i){if(l(e)){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);for(var a=o(t)?t:[t],s=u(e),f=0;f<a.length;++f)s+=1,e[s]=a[f];return d(e,s),e}var p=[].concat(e,t);if(p.length>n){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);return c(m(p,{plainObjects:r}),p.length-1)}return p},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=r(),i=0;i<t.length;++i)for(var a=t[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];typeof u==`object`&&u&&!n.has(u)&&(t[t.length]={obj:o,prop:l},n.set(u,!0))}return p(t),e},decode:v,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=y){var l=o.length>=y?o.slice(c,c+y):o;if(c+y<o.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),--c)}for(var d=[],p=0;p<l.length;++p){var m=l.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(m===40||m===41)){d[d.length]=l.charAt(p);continue}if(m<128){d[d.length]=f[m];continue}if(m<2048){d[d.length]=f[192|m>>6]+f[128|m&63];continue}if(m<55296||m>=57344){d[d.length]=f[224|m>>12]+f[128|m>>6&63]+f[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|l.charCodeAt(p)&1023),d[d.length]=f[240|m>>18]+f[128|m>>12&63]+f[128|m>>6&63]+f[128|m&63]}s+=d.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:c,maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:g}})),gf=W(((e,t)=>{var n=pf(),r=hf(),i=mf(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset
16:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T,ee,E){var D=t;if(E>ee)throw RangeError(`Input depth exceeded depth option of `+ee);for(var O=T,k=0,te=!1;(O=O.get(m))!==void 0&&!te;){var A=O.get(t);if(k+=1,A!==void 0){if(A===k)throw RangeError(`Cyclic object value`);te=!0}O.get(m)===void 0&&(k=0)}if(D=typeof _==`function`?_(i,D):D,D instanceof Date?D=b(D):a===`comma`&&s(D)&&(D=r.maybeMap(D,function(e){return e instanceof Date?b(e):e})),D===null){if(u)return S(g&&!C?g(i,f.encoder,w,`key`,x):i);D=``}if(p(D)||r.isBuffer(D))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(D,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(D))];var ne=[];if(D===void 0)return ne;var re;if(a===`comma`&&s(D))C&&g&&(D=r.maybeMap(D,function(e){return e==null?e:g(e)})),re=[{value:D.length>0?D.join(`,`)||null:void 0}];else if(s(_))re=_;else{var j=Object.keys(D);re=v?j.sort(v):j}var ie=h?String(i).replace(/\./g,`%2E`):String(i),M=o&&s(D)&&D.length===1?ie+`[]`:ie;if(c&&s(D)&&D.length===0&&Object.keys(D).length===0)return M+`[]`;for(var ae=0;ae<re.length;++ae){var oe=re[ae],se=typeof oe==`object`&&oe&&oe.value!==void 0?oe.value:D[oe];if(!(d&&se===null)){var N=y&&h?String(oe).replace(/\./g,`%2E`):String(oe),ce=s(D)?typeof a==`function`?a(M,N):M:M+(y?`.`+N:`[`+N+`]`);T.set(t,k);var le=n();le.set(m,T),l(ne,e(se,ce,a,o,c,u,d,h,a===`comma`&&C&&s(D)?null:g,_,v,y,b,x,S,C,w,le,ee,E+1))}}return ne},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0||f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,depth:typeof e.depth==`number`?e.depth:f.depth,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];
16if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||(a=Object.keys(r)),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];if(_!=null){var v=r[_];i.skipNulls&&v===null||l(u,h(v,i.encodeDotInKeys?String(_).replace(/\./g,`%2E`):String(_),d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p,i.depth,0))}}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B`+i.delimiter:b+=`utf8=%E2%9C%93`+i.delimiter),y.length>0?b+y:``}})),_f=W(((e,t)=>{var n=hf(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1){if(t.throwOnLimitExceeded)for(var r=0,i=e.indexOf(`,`);i>-1;){if(r+=1,r>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);i=e.indexOf(`,`,i+1)}return e.split(`,`)}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded&&f!==void 0?f+1:f);if(t.throwOnLimitExceeded&&f!==void 0&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit&&(x=n.combine([],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=[],a=n.indexOf(`[`),o=a>=0?n.slice(0,a):n;if(o){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<t.depth;){for(var u=1,d=c+1,f=-1;d<s&&f<0;){var p=n.charCodeAt(d);p===91?u+=1:p===93&&(--u,u===0&&(f=d)),d+=1}if(f<0)return i[i.length]=`[`+n.slice(c)+`]`,i;var m=n.slice(c,f+1),h=m.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf(`[`,f+1)}if(c>=0){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);i[i.length]=`[`+n.slice(c)+`]`}return i},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;
16if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0||a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`&&e.throwOnLimitExceeded}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),vf=et(W(((e,t)=>{var n=gf(),r=_f();t.exports={formats:mf(),parse:r,stringify:n}}))()),yf=function(e){e&&(window.document.title=e)},bf=function(){function e(t){var n=this,r=t.windowTitle,i=t.writeDelay,a=i===void 0?400:i,o=t.createURL,s=t.parseURL,c=t.getLocation,l=t.start,u=t.dispose,d=t.push,f=t.cleanUrlOnDispose;Dl(this,e),J(this,`$$type`,`ais.browser`),J(this,`windowTitle`,void 0),J(this,`writeDelay`,void 0),J(this,`_createURL`,void 0),J(this,`parseURL`,void 0),J(this,`getLocation`,void 0),J(this,`writeTimer`,void 0),J(this,`_onPopState`,void 0),J(this,`inPopState`,!1),J(this,`isDisposed`,!1),J(this,`latestAcknowledgedHistory`,0),J(this,`_start`,void 0),J(this,`_dispose`,void 0),J(this,`_push`,void 0),J(this,`_cleanUrlOnDispose`,void 0),this.windowTitle=r,this.writeTimer=void 0,this.writeDelay=a,this._createURL=o,this.parseURL=s,this.getLocation=c,this._start=l,this._dispose=u,this._push=d,this._cleanUrlOnDispose=f===void 0||f,Zu(function(e){var t=e.window;yf(n.windowTitle&&n.windowTitle(n.read())),n.latestAcknowledgedHistory=t.history.length})}return kl(e,[{key:`read`,value:function(){return this.parseURL({qsModule:vf.default,location:this.getLocation()})}},{key:`write`,value:function(e){var t=this;Zu(function(n){var r=n.window,i=t.createURL(e),a=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){yf(a),t.shouldWrite(i)&&(t._push?t._push(i):r.history.pushState(e,a||``,i),t.latestAcknowledgedHistory=r.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}},{key:`onUpdate`,value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},Zu(function(e){e.window.addEventListener(`popstate`,t._onPopState)})}},{key:`createURL`,value:function(e){return this._createURL({qsModule:vf.default,routeState:e,location:this.getLocation()})}},{key:`dispose`,value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,Zu(function(t){var n=t.
16window;e._onPopState&&n.removeEventListener(`popstate`,e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:`start`,value:function(){this.isDisposed=!1}},{key:`shouldWrite`,value:function(e){var t=this;return Zu(function(n){var r=n.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==r.history.length);return!t.inPopState&&i&&e!==r.location.href})}}]),e}();function xf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.createURL,n=t===void 0?function(e){var t=e.qsModule,n=e.routeState,r=e.location,i=r.protocol,a=r.hostname,o=r.port,s=o===void 0?``:o,c=r.pathname,l=r.hash,u=t.stringify(n),d=s===``?``:`:${s}`;return u?`${i}//${a}${d}${c}?${u}${l}`:`${i}//${a}${d}${c}${l}`}:t,r=e.parseURL,i=r===void 0?function(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})}:r,a=e.writeDelay,o=a===void 0?400:a,s=e.windowTitle,c=e.getLocation,l=c===void 0?function(){return Zu(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,u=e.start,d=e.dispose,f=e.push,p=e.cleanUrlOnDispose;return new bf({createURL:n,parseURL:i,writeDelay:o,windowTitle:s,getLocation:l,start:u,dispose:d,push:f,cleanUrlOnDispose:p})}function Sf(e){return e.configure,Hc(e,[`configure`])}function Cf(){return{$$type:`ais.simple`,stateToRoute:function(e){return Object.keys(e).reduce(function(t,n){return X(Y({},t),J({},n,Sf(e[n])))},{})},routeToState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return(r===void 0?`undefined`:$s(r))!==`object`||r===null?t:X(Y({},t),J({},n,Sf(r)))},{})}}}var wf=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.router,n=t===void 0?xf():t,r=e.stateMapping,i=r===void 0?Cf():r,a=e.$$internal,o=a!==void 0&&a;return function(e){var t=e.instantSearchInstance;function r(e){var r=t.mainIndex.getWidgets().length===0?t._initialUiState:t.mainIndex.getWidgetUiState({}),a=Object.keys(e).reduce(function(t,n){return X(Y({},t),J({},n,e[n]))},r),o=i.stateToRoute(a);return n.createURL(o)}t._createURL=r;var a=void 0,s=t._initialUiState;return{$$type:`ais.router({router:${n.$$type||`__unknown__`}, stateMapping:${i.$$type||`__unknown__`}})`,$$internal:o,onStateChange:function(e){var t=e.uiState,r=i.stateToRoute(t);(a===void 0||!Xu(a,r))&&(n.write(r),a=r)},subscribe:function(){t._initialUiState=Y({},s,i.routeToState(n.read())),n.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;(e=n.start)==null||e.call(n)},unsubscribe:function(){n.dispose()}}}};function Tf(e,t){var n=t.userToken,r=t.clickAnalytics;if(n===void 0&&r===void 0)return e;var i=Y({},r===void 0?{}:{clickAnalytics:r},n===void 0?{}:{userToken:n});return new Z.default.RecommendParameters({params:e.params.map(function(e){var t=e.queryParameters,n=e.fallbackParameters;return Y(X(Y({},e),{queryParameters:Y({},i,t)}),n&&{fallbackParameters:Y({},i,n)})})})}var Ef=0;function Df(e){e.dependsOn===`recommend`&&(e.$$id=Ef++)}function Of(e){var t=e.name,n=e.connector;return[`https://www.algolia.com/doc/api-reference/widgets/`,t,`/js/`,n!==void 0&&n?`#connector`:``].join(``)}function kf(){var e=[...arguments].map(function(e){return Of(e)}).join(`, `);return function(t){return[t,`See documentation: ${e}`].filter(Boolean).join(` 17 18`)}}function Af(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function jf(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}var Mf=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var n=Hc(t,[`facets`,`disjunctiveFacets`,`facetsRefinements`,`facetsExcludes`,`disjunctiveFacetsRefinements`,`numericRefinements`,`tagRefinements`,`hierarchicalFacets`,`hierarchicalFacetsRefinements`,`ruleContexts`]);return e.setQueryParameters(n)},Nf=function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)},Pf=function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)},Ff=function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=Af(e,function(e){return e.name===t.name});if(n===-1)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r},e.hierarchicalFacets)})},If=function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)},Lf=function(e,t){return e.setQueryParameters({facetsRefinements:Y({},e.facetsRefinements,t.facetsRefinements)})},Rf=function(e,t){return e.setQueryParameters({facetsExcludes:Y({},e.facetsExcludes,t.facetsExcludes)})},zf=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:Y({},e.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})},Bf=function(e,t){return e.setQueryParameters({numericRefinements:Y({},e.numericRefinements,t.numericRefinements)})},Vf=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:Y({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})},Hf=function(e,t){var n=jf([].concat(e.ruleContexts,t.ruleContexts).filter(
18Boolean));return n.length>0?e.setQueryParameters({ruleContexts:n}):e},Uf=function(){return[...arguments].reduce(function(e,t){return Mf(Nf(Hf(Pf(Lf(Rf(zf(Bf(If(Ff(Vf(e,t),t),t),t),t),t),t),t),t),t),t)})};function Wf(e){for(var t=e.getParent(),n=[e.getHelper().state];t!==null;)n=[t.getHelper().state].concat(n),t=t.getParent();return n}var Gf=kf({name:`index-widget`});function Kf(e,t){var n=t.state,r=t.recommendState,i=t.isPageReset,a=t._uiState;n!==e.state&&(e.state=n,e.emit(`change`,{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),r!==e.recommendState&&(e.recommendState=r)}function qf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.reduce(function(e,n){return od(n)||!n.getWidgetUiState&&!n.getWidgetState?e:n.getWidgetUiState?n.getWidgetUiState(e,t):n.getWidgetState(e,t)},n)}function Jf(e,t){var n=t.initialSearchParameters,r=Hc(t,[`initialSearchParameters`]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||od(t)?e:t.dependsOn===`search`&&t.getWidgetParameters?t.getWidgetParameters(e,r):t.getWidgetSearchParameters(e,r)},n)}function Yf(e,t){var n=t.initialRecommendParameters,r=Hc(t,[`initialRecommendParameters`]);return e.reduce(function(e,t){return!od(t)&&t.dependsOn===`recommend`&&t.getWidgetParameters?t.getWidgetParameters(e,r):e},n)}function Xf(e){var t=e.filter(od);t.length!==0&&t.forEach(function(e){var t=e.getHelper();Kf(t,{state:t.state.resetPage(),recommendState:t.recommendState,isPageReset:!0}),Xf(e.getWidgets())})}function Zf(e){return e.filter(od).reduce(function(e,t){var n;return(n=e).concat.apply(n,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}].concat(Hs(Zf(t.getWidgets()))))},[])}function Qf(e){return e.reduce(function(e,t){if(od(t)){if(t._isolated)return e;var n=Qf(t.getWidgets());return{hasSearchWidget:e.hasSearchWidget||n.hasSearchWidget,hasRecommendWidget:e.hasRecommendWidget||n.hasRecommendWidget}}return t.dependsOn===`recommend`?X(Y({},e),{hasRecommendWidget:!0}):t.dependsOn===`none`?e:X(Y({},e),{hasSearchWidget:!0})},{hasSearchWidget:!1,hasRecommendWidget:!1})}function $f(e){var t=Qf(e.mainIndex.getWidgets()),n=t.hasSearchWidget,r=t.hasRecommendWidget;e._hasSearchWidget=n,e._hasRecommendWidget=r}var ep=function(e){if(e===void 0||e.indexName===void 0&&!e.isolated&&!e.EXPERIMENTAL_isolated)throw Error(Gf("The `indexName` option is required."));var t=e.indexName,n=t===void 0?``:t,r=e.indexId,i=r===void 0?n:r,a=e.isolated,o=a===void 0?e.EXPERIMENTAL_isolated??!1:a,s=[],c={},l=null,u=null,d=null,f=null,p=null,m,h=function(){l&&$f(l)};return{$$type:`ais.index`,$$widgetType:`ais.index`,_isolated:o,getIndexName:function(){return n},getIndexId:function(){return i},getHelper:function(){return d},getResults:function(){return f!=null&&f.lastResults?(f.lastResults._state=d.state,f.lastResults):null},getResultsForWidget:function(e){return e.dependsOn!==`recommend`||od(e)||e.$$id===void 0?this.getResults():d!=null&&d.lastRecommendResults?d.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return p},getScopedResults:function(){var e=this.getParent();return Zf(e?e.getWidgets():n.length===0?this.getWidgets():[this])},getParent:function(){return o?null:u},createURL:function(e){return typeof e==`function`?l._createURL(J({},i,e(c))):l._createURL(J({},i,qf(s,{searchParameters:e,helper:d})))},scheduleLocalSearch:yu(function(){o&&(d==null||d.search())}),getWidgets:function(){return s},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(Gf("The `addWidgets` method expects an array of widgets."));var n=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(n.some(function(e){return typeof e.init!=`function`&&typeof e.render!=`function`}))throw Error(Gf("The widget definition expects a `render` and/or an `init` method."));return n.forEach(function(e){e.parent=t,od(e)||Df(e)}),s=s.concat(n),h(),l&&n.length&&(Kf(d,{state:Jf(s,{uiState:c,initialSearchParameters:d.state}),recommendState:Yf(s,{uiState:c,initialRecommendParameters:d.recommendState}),_uiState:c}),n.forEach(function(e){e.getRenderState&&ld({renderState:e.getRenderState(l.renderState[t.getIndexId()]||{},sd(l,t,l._initialUiState)),instantSearchInstance:l,parent:t})}
18),n.forEach(function(e){e.init&&e.init(sd(l,t,l._initialUiState))}),o?this.scheduleLocalSearch():l.scheduleSearch()),this},updateWidget:function(e,t){if(typeof e.dispose!=`function`)throw Error(Gf("The widget definition expects a `dispose` method."));if(typeof t.init!=`function`&&typeof t.render!=`function`)throw Error(Gf("The widget definition expects a `render` and/or an `init` method."));var n=c;e.parent=void 0,t.parent=this,od(t)||Df(t);var r=s.slice(),i=r.indexOf(e);if(i===-1?r.push(t):r[i]=t,s=r,h(),!l)return this;var a=e.dispose({helper:d,state:d.state,recommendState:d.recommendState,parent:this}),u=Ul(a,Z.default.RecommendParameters)?a:d.recommendState,f=a&&!Ul(a,Z.default.RecommendParameters)?a:d.state,p=l.future.preserveSharedStateOnUnmount?new Z.default.SearchParameters({index:this.getIndexName()}):f;c=qf(s,{searchParameters:Jf(s,{uiState:n,initialSearchParameters:p}),helper:d});var m=Jf(s,{uiState:c,initialSearchParameters:p});return Kf(d,{state:m,recommendState:Yf(s,{uiState:c,initialRecommendParameters:u}),_uiState:c}),t.getRenderState&&ld({renderState:t.getRenderState(l.renderState[this.getIndexId()]||{},sd(l,this,l._initialUiState)),instantSearchInstance:l,parent:this}),t.init&&t.init(sd(l,this,l._initialUiState)),o?this.scheduleLocalSearch():l.scheduleSearch(),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(Gf("The `removeWidgets` method expects an array of widgets."));var n=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(n.some(function(e){return typeof e.dispose!=`function`}))throw Error(Gf("The widget definition expects a `dispose` method."));if(s=s.filter(function(e){return n.indexOf(e)===-1}),n.forEach(function(e){e.parent=void 0}),h(),l&&n.length){var r=n.reduce(function(e,n){var r=n.dispose({helper:d,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return Ul(r,Z.default.RecommendParameters)?e.cleanedRecommendState=r:r&&(e.cleanedSearchState=r),e},{cleanedSearchState:d.state,cleanedRecommendState:d.recommendState}),i=r.cleanedSearchState,a=r.cleanedRecommendState,u=l.future.preserveSharedStateOnUnmount?Jf(s,{uiState:c,initialSearchParameters:new Z.default.SearchParameters({index:this.getIndexName()})}):Jf(s,{uiState:qf(s,{searchParameters:i,helper:d}),initialSearchParameters:i});c=qf(s,{searchParameters:u,helper:d}),d.setState(u),d.recommendState=a,s.length&&(o?this.scheduleLocalSearch():l.scheduleSearch())}return this},init:function(e){var t=this,r=e.instantSearchInstance,a=e.parent,m=e.uiState,g;if(d===null){l=r,u=a,c=m[i]||{};var _=r.mainHelper,v=Jf(s,{uiState:c,initialSearchParameters:new Z.default.SearchParameters({index:n})}),y=Yf(s,{uiState:c,initialRecommendParameters:new Z.default.RecommendParameters});d=(0,Z.default)(_.getClient(),v.index,v),d.recommendState=y,d.search=function(){return o?(r.status=`loading`,t.render({instantSearchInstance:r}),r.compositionID?d.searchWithComposition():d.searchOnlyWithDerivedHelpers()):r.onStateChange?(r.onStateChange({uiState:r.mainIndex.getWidgetUiState({}),setUiState:function(e){return r.setUiState(e,!1)}}),_):_.search()},d.searchWithoutTriggeringOnStateChange=function(){return _.search()},d.searchForFacetValues=function(e,n,r,i){var a=Uf.apply(void 0,[_.state].concat(Hs(Wf(t)))).setQueryParameters(i);return _.searchForFacetValues(e,n,r,a)};var b=n?d:(0,Z.default)({},`__empty_index__`,{});f=(o?b:tp(a,_)).derive(function(){return Uf.apply(void 0,[_.state].concat(Hs(Wf(t))))},function(){return Tf(t.getHelper().recommendState,_.state)});var x=(g=r._initialResults)==null?void 0:g[this.getIndexId()];if(x!=null&&x.results){var S=new Z.default.SearchResults(new Z.default.SearchParameters(x.state),x.results);f.lastResults=S,d.lastResults=S}if(x!=null&&x.recommendResults){var C=new Z.default.RecommendResults(new Z.default.RecommendParameters({params:x.recommendResults.params}),x.recommendResults.results);f.lastRecommendResults=C,d.lastRecommendResults=C}d.on(`change`,function(e){e.isPageReset&&Xf(s)}),f.on(`search`,function(){r.scheduleStalledRender()}),f.on(`result`,function(e){var t=e.results;r.scheduleRender(),d.lastResults=t,p=t==null?void 0:t._state}),f.on(`recommend:result`,function(e){var t=e.recommend;r.scheduleRender(),d.lastRecommendResults=t.results}
18),s.forEach(function(e){e.getRenderState&&ld({renderState:e.getRenderState(r.renderState[t.getIndexId()]||{},sd(r,t,m)),instantSearchInstance:r,parent:t})}),s.forEach(function(e){e.init&&e.init(sd(r,t,m))}),d.on(`change`,function(e){var t=e.state,n=e._uiState;c=qf(s,{searchParameters:t,helper:d},n||{}),r.onStateChange||r.onInternalStateChange()}),x&&r.scheduleRender(),h()}},render:function(e){var t=this,r=e.instantSearchInstance;r.status===`error`?r.error!==m&&!r.mainHelper.hasPendingRequests()&&p&&(m=r.error,d.setState(p)):m=void 0;var i=this.getResults()||f!=null&&f.lastRecommendResults||o&&!n?s:s.filter(function(e){return e.shouldRender});i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:r})}),i.forEach(function(e){e.getRenderState&&ld({renderState:e.getRenderState(r.renderState[t.getIndexId()]||{},cd(r,t,e)),instantSearchInstance:r,parent:t})}),i.forEach(function(e){e.render&&e.render(cd(r,t,e))})},dispose:function(){var e=this;s.forEach(function(t){t.dispose&&d&&t.dispose({helper:d,state:d.state,recommendState:d.recommendState,parent:e})}),l=null,u=null,d==null||d.removeAllListeners(),d=null,f==null||f.detach(),f=null},getWidgetUiState:function(e){return s.filter(od).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},X(Y({},e),J({},i,Y({},e[i],c))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var n=t.uiState;return Jf(s,{uiState:n,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){c=qf(s,{searchParameters:this.getHelper().state,helper:this.getHelper()},c)},setIndexUiState:function(e){var t=typeof e==`function`?e(c):e;l.setUiState(function(e){return X(Y({},e),J({},i,t))})}}};function tp(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}function np(e,t){return e.toLocaleString(t)}function rp(e){var t=e.numberLocale;return{formatNumber:function(e,n){return np(Number(n(e)),t)},highlight:function(e,t){try{return t(Su(X(Y({},JSON.parse(e)),{hit:this})))}catch{throw Error(` 19The highlight helper expects a JSON object of the format: 20{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseHighlight:function(e,t){try{return t(Nu(X(Y({},JSON.parse(e)),{hit:this})))}catch{throw Error(` 21 The reverseHighlight helper expects a JSON object of the format: 22 { "attribute": "name", "highlightedTagName": "mark" }`)}},snippet:function(e,t){try{return t(Fu(X(Y({},JSON.parse(e)),{hit:this})))}catch{throw Error(` 23The snippet helper expects a JSON object of the format: 24{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseSnippet:function(e,t){try{return t(Lu(X(Y({},JSON.parse(e)),{hit:this})))}catch{throw Error(` 25 The reverseSnippet helper expects a JSON object of the format: 26 { "attribute": "name", "highlightedTagName": "mark" }`)}},insights:function(e,t){try{var n=JSON.parse(e),r=n.method,i=n.payload;return t(Wu(r,Y({objectIDs:[this.objectID]},i)))}catch{throw Error(` 27The insights helper expects a JSON object of the format: 28{ "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}function ip(e,t){var n=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:n})),t.getWidgets().filter(od).forEach(function(t){return ip(e,t)})}function ap(e,t){e._recommendCache=Object.keys(t).reduce(function(e,n){var r=t[n];return r.recommendResults?Y({},e,r.recommendResults.results):e},{})}function op(e){var t;return(t=e.compositionFeedsResults)!=null&&t.length?e.compositionFeedsResults:e.results||[]}function sp(e,t){if(t&&(`transporter`in e&&!e._cacheHydrated||e._useCache&&typeof e.addAlgoliaAgent==`function`)){var n=[Object.keys(t).reduce(function(e,n){var r=t[n],i=r.state,a=r.requestParams,o=op(r),s=o&&i?o.map(function(e,t){return Y({indexName:i.index||e.index},a!=null&&a[t]||e.params?{params:lp((a==null?void 0:a[t])||cp(e.params))}:{})}):[];return e.concat(s)},[])],r=Object.keys(t).reduce(function(e,n){var r=op(t[n]);return r?e.concat(r):e},[]);if(`transporter`in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){var n=[...arguments].slice(1),r=Array.isArray(t)?t.map(function(e){return X(Y({},e),{params:lp(e.params)})}):lp(t.requestBody.params);return e.transporter.responsesCache.get({method:`search`,args:[r].concat(Hs(n))},function(){return i.apply(void 0,[t].concat(Hs(n)))})},e.transporter.responsesCache.set({method:`search`,args:n},{results:r})}if(!(`transporter`in e)){var a=`/1/indexes/*/queries_body_${JSON.stringify({requests:n})}`;e.cache=X(Y({},e.cache),J({},a,JSON.stringify({results:Object.keys(t).map(function(e){return op(t[e])})})))}}}function cp(e){return e.split(`&`).reduce(function(e,t){var n=Q(t.split(`=`),2),r=n[0],i=n[1];
28return e[r]=i?decodeURIComponent(i):``,e},{})}function lp(e){var t=function(e){return Object.prototype.toString.call(e)===`[object Object]`||Object.prototype.toString.call(e)===`[object Array]`},n=function(e){var t=[...arguments].slice(1),n=0;return e.replace(/%s/g,function(){return encodeURIComponent(t[n++])})};return Object.keys(e).map(function(r){return n(`%s=%s`,r,t(e[r])?JSON.stringify(e[r]):e[r])}).join(`&`)}var up=et(fc()),dp=kf({name:`instantsearch`});function fp(){return`#`}var pp={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},mp=function(e){su(t,e);function t(e){Dl(this,t);var n=au(this,t);J(n,`client`,void 0),J(n,`indexName`,void 0),J(n,`compositionID`,void 0),J(n,`insightsClient`,void 0),J(n,`onStateChange`,null),J(n,`future`,void 0),J(n,`helper`,void 0),J(n,`mainHelper`,void 0),J(n,`mainIndex`,void 0),J(n,`started`,void 0),J(n,`templatesConfig`,void 0),J(n,`renderState`,{}),J(n,`_stalledSearchDelay`,void 0),J(n,`_searchStalledTimer`,void 0),J(n,`_initialUiState`,void 0),J(n,`_initialResults`,void 0),J(n,`_manuallyResetScheduleSearch`,!1),J(n,`_resetScheduleSearch`,void 0),J(n,`_createURL`,void 0),J(n,`_searchFunction`,void 0),J(n,`_mainHelperSearch`,void 0),J(n,`_hasSearchWidget`,!1),J(n,`_hasRecommendWidget`,!1),J(n,`_insights`,void 0),J(n,`_initialOptions`,void 0),J(n,`middleware`,[]),J(n,`sendEventToInsights`,void 0),J(n,`_createdAt`,pd()),J(n,`status`,`idle`),J(n,`error`,void 0),J(n,`scheduleSearch`,yu(function(){n.started&&n.mainHelper.search()})),J(n,`scheduleRender`,yu(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t;(t=n.mainHelper)!=null&&t.hasPendingRequests()||(clearTimeout(n._searchStalledTimer),n._searchStalledTimer=null,e&&(n.status=`idle`,n.error=void 0)),n.mainIndex.render({instantSearchInstance:n}),n.emit(`render`)},function(e,t){var n=Q(e,1)[0],r=n===void 0||n,i=Q(t,1)[0];return[r||i===void 0||i]})),J(n,`onInternalStateChange`,yu(function(){var e=n.mainIndex.getWidgetUiState({});n.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),n.setMaxListeners(100);var r=e.indexName,i=r===void 0?``:r,a=e.compositionID,o=e.numberLocale,s=e.initialUiState,c=s===void 0?{}:s,l=e.routing,u=l===void 0?null:l,d=e.insights,f=d===void 0?void 0:d,p=e.searchFunction,m=e.stalledSearchDelay,h=m===void 0?200:m,g=e.searchClient,_=g===void 0?null:g,v=e.insightsClient,y=v===void 0?null:v,b=e.onStateChange,x=b===void 0?null:b,S=e.future,C=S===void 0?Y({},pp,e.future||{}):S;if(_===null)throw Error(dp("The `searchClient` option is required."));if(typeof _.search!=`function`)throw Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if(typeof _.addAlgoliaAgent==`function`&&_.addAlgoliaAgent(`instantsearch.js (${md})`),y&&typeof y!=`function`)throw Error(dp("The `insightsClient` option should be a function."));if(n._initialOptions=e,n.client=_,n.future=C,n.insightsClient=y,n.indexName=i,n.compositionID=a,n.helper=null,n.mainHelper=null,n.mainIndex=ep({indexName:n.compositionID||n.indexName}),n.onStateChange=x,n.started=!1,n.templatesConfig={helpers:rp({numberLocale:o}),compileOptions:{}},n._stalledSearchDelay=h,n._searchStalledTimer=null,n._createURL=fp,n._initialUiState=c,n._initialResults=null,n._insights=f,p&&(n._searchFunction=p),n.sendEventToInsights=ed,u){var w=typeof u==`boolean`?{}:u;w.$$internal=!0,n.use(wf(w))}if(f){var T=typeof f==`boolean`?{}:f;T.$$internal=!0,n.use(vd(T))}return wd()&&n.use(Td({$$internal:!0})),n}return kl(t,[{key:`_isSearchStalled`,get:function(){return this.status===`stalled`}},{key:`use`,value:function(){var e=this,t=[...arguments].map(function(t){var n=Y({$$type:`__unknown__`,$$internal:!1,subscribe:ed,started:ed,unsubscribe:ed,onStateChange:ed},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:n}),n});return this.started&&t.forEach(function(e){e.subscribe(),e.started()}),this}},{key:`unuse`,value:function(){var e=[...arguments];return this.middleware.filter(function(t){return e.includes(t.creator)}
28).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(t){return!e.includes(t.creator)}),this}},{key:`EXPERIMENTAL_use`,value:function(){var e=[...arguments];return this.use.apply(this,Hs(e))}},{key:`addWidget`,value:function(e){return this.addWidgets([e])}},{key:`addWidgets`,value:function(e){if(!Array.isArray(e))throw Error(dp("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&od(e)&&!e._isolated}))throw Error(dp("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:`removeWidget`,value:function(e){return this.removeWidgets([e])}},{key:`removeWidgets`,value:function(e){if(!Array.isArray(e))throw Error(dp("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:`start`,value:function(){var e=this;if(this.started)throw Error(dp("The `start` method has already been called once."));var t=this.mainHelper||(0,Z.default)(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){var n=e._hasSearchWidget||e._hasRecommendWidget;return n&&(e.status=`loading`),e.scheduleRender(!n),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var n={search:function(){return new Promise(ed)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var r=e.mainIndex.getHelper(),i=(0,Z.default)(n,r.state.index,r.state);return i.once(`search`,function(t){var n=t.state;r.overrideStateWithoutTriggeringChangeEvent(n),e._mainHelperSearch()}),i.on(`change`,function(e){var t=e.state;r.setState(t)}),e._searchFunction(i),t}}if(t.on(`error`,function(t){var n=t.error;if(!Ul(n,Error)){var r=n;n=Object.keys(r).reduce(function(e,t){return e[t]=r[t],e},Error(r.message))}n.error=n,e.error=n,e.status=`error`,e.scheduleRender(!e._hasSearchWidget&&!e._hasRecommendWidget),e.emit(`error`,
28n)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){sp(this.client,this._initialResults),ap(this.mainHelper,this._initialResults);var r=this.scheduleSearch;this.scheduleSearch=yu(ed),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=r}:yu(function(){e.scheduleSearch=r})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),this._insights===void 0&&t.derivedHelpers[0].once(`result`,function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return t==null?void 0:t._automaticInsights})&&e.use(vd({$$internal:!0,$$automatic:!0}))})}},{key:`dispose`,value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(e=this.mainHelper)==null||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()}),this._initialOptions=null}},{key:`scheduleStalledRender`,value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status=`stalled`,e.scheduleRender()},this._stalledSearchDelay))}},{key:`setUiState`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw Error(dp("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var r=typeof e==`function`?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&n?this.onStateChange({uiState:r,setUiState:function(e){ip(typeof e==`function`?e(r):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(ip(r,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:`getUiState`,value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:`createURL`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw Error(dp("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:`refresh`,value:function(){if(!this.mainHelper)throw Error(dp("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(up.default),hp=function(e,t){return e},gp=function(e){return new mp(e)};gp.version=md,gp.createInfiniteHitsSessionStorageCache=hp($u),gp.highlight=hp(Su),gp.reverseHighlight=hp(Nu),gp.snippet=hp(Fu),gp.reverseSnippet=hp(Lu),gp.insights=Wu,gp.getInsightsAnonymousUserToken=Ju,Object.defineProperty(gp,"widgets",{get:function(){throw ReferenceError(`"instantsearch.widgets" are not available from the ES build. 29 30To import the widgets: 31 32import { searchBox } from 'instantsearch.js/es/widgets'`)}}),Object.defineProperty(gp,"connectors",{get:function(){throw ReferenceError(`"instantsearch.connectors" are not available from the ES build. 33 34To import the connectors: 35 36import { connectSearchBox } from 'instantsearch.js/es/connectors'`)}}),Object.defineProperty(gp,"templates",{get:function(){throw ReferenceError(`"instantsearch.templates" are not available from the ES build. 37 38To import the templates: 39 40import { carousel } from 'instantsearch.js/es/templates'`)}});function _p(e){var t=ic.highlightPostTag,n=ic.highlightPreTag,r=e.split(n),i=r.shift(),a=i?[{value:i,isHighlighted:!1}]:[];return r.forEach(function(e){var n=e.split(t);a.push({value:n[0],isHighlighted:!0}),n[1]!==``&&a.push({value:n[1],isHighlighted:!1})}),a}Ps({name:`instantsearch`});var vp={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1};c();var yp=function(e){return Es(q({mixins:[Ts({name:`InstantSearch`})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(e){As(!1),this.instantSearchInstance.helper.setClient(e).search()},indexName:function(e){this.instantSearchInstance.helper.setIndex(e||``).search()},compositionID:function(e){this.instantSearchInstance.helper.setIndex(e||``).search()},stalledSearchDelay:function(e){this.instantSearchInstance._stalledSearchDelay=e},routing:function(){throw Error(`routing configuration can not be changed dynamically at this point. 41 42Please open a new issue: https://github.com/algolia/instantsearch/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},onStateChange:function(){throw Error(`onStateChange configuration can not be changed dynamically at this point. 43 44Please open a new issue: https://github.com/algolia/instantsearch/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},searchFunction:function(e){this.instantSearchInstance._searchFunction=e},middlewares:{immediate:!0,handler:function(e,t){var n=this;(t||[]).filter(function(t){return(e||[]).indexOf(t)===-1}
44).forEach(function(e){n.instantSearchInstance.unuse(e)}),(e||[]).filter(function(e){return(t||[]).indexOf(e)===-1}).forEach(function(e){n.instantSearchInstance.use(e)})}},future:function(e){this.instantSearchInstance.future=Object.assign(vp,e)}},created:function(){var e=this.instantSearchInstance.client;typeof e.addAlgoliaAgent==`function`&&(e.addAlgoliaAgent(`Vue (3.5.42)`),e.addAlgoliaAgent(`Vue InstantSearch (4.29.8)`))},mounted:function(){var e=this;this.$nextTick(function(){e.instantSearchInstance.started||e.instantSearchInstance.start()})}},`beforeUnmount`,function(){this.instantSearchInstance.started&&this.instantSearchInstance.dispose(),this.instantSearchInstance.__initialSearchResults=void 0}),e)},bp=`Vue InstantSearch: You used the prop api-key or app-id. 45These have been replaced by search-client. 46 47See more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client`,xp=yp({name:`AisInstantSearch`,props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,default:void 0},indexName:{type:String,required:!1},compositionID:{type:String,required:!1},routing:{default:void 0,validator:function(e){return!(typeof e==`boolean`||!e.router&&!e.stateMapping)||(As("The `routing` option expects an object with `router` and/or `stateMapping`.\n\nSee https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},insights:{default:void 0,validator:function(e){return e===void 0||typeof e==`boolean`||(e===void 0?`undefined`:Os(e))===`object`}},stalledSearchDelay:{type:Number,default:void 0},searchFunction:{type:Function,default:void 0},onStateChange:{type:Function,default:void 0},initialUiState:{type:Object,default:void 0},apiKey:{type:String,default:void 0,validator:function(e){return e&&As(bp),!1}},appId:{type:String,default:void 0,validator:function(e){return e&&As(bp),!1}},middlewares:{type:Array,default:null},future:{type:Object,default:void 0}},data:function(){return{instantSearchInstance:gp({searchClient:this.searchClient,insightsClient:this.insightsClient,insights:this.insights,indexName:this.indexName,compositionID:this.compositionID,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,onStateChange:this.onStateChange,initialUiState:this.initialUiState,future:this.future})}},render:cu(function(e){var t;return e(`div`,{class:(t={},q(t,this.suit(),!0),q(t,this.suit(``,`ssr`),!1),t)},lu(this))})});function Sp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cp(e,t){if(e){if(typeof e==`string`)return Sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sp(e,t)}}function wp(e){if(Array.isArray(e))return Sp(e)}function Tp(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ep(){throw TypeError(`Invalid attempt to spread non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dp(e){return wp(e)||Tp(e)||Cp(e)||Ep()}c();var Op=`instantSearchPanelEmitter`,kp=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mapStateToCanRefine,t=e===void 0?function(e){return!!e.canRefine}:e;return{inject:{emitter:{from:Op,default:function(){return{emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:{immediate:!0,handler:function(e,n){if(e){var r=t(n||{}),i=t(e);this.hasAlreadyEmitted&&r===i||(this.emitter.emit(`PANEL_CHANGE_EVENT`,i),this.hasAlreadyEmitted=!0)}}}}}};c();var Ap=function(e,t,r){if(!r)return n(e,t);if(e===O)return n(e,Array.isArray(r)?r:[r]);var i=typeof r==`string`?{default:function(){return r}}:r,a=typeof e==`string`?t:Object.assign(t,{children:r});return n(e,a,i)};c();var jp=Ql({createElement:Ap,Fragment:O}),Mp={name:`AisHighlighter`,props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:`mark`},suit:{type:Function,required:!0},highlightProperty:{type:String,required:!0},preTag:{type:String,required:!0},postTag:{type:String,required:!0}},render:function(){var e=ol(this.hit[this.highlightProperty],this.attribute)||[],t=(Array.isArray(e)?e:[e]).map(function(e){return _p(Qs(e.value||``)).map(function(e){var t=e.value;return{value:t===` `?` `:t,isHighlighted:e.isHighlighted}})});return Ap(jp,{classNames:{root:this.suit(),highlighted:this.suit(`highlighted`)},highlightedTagName:this.highlightedTagName,nonHighlightedTagName:O,parts:t})}},Np={name:`AisHighlight`,mixins:[Ts({name:`Highlight`})],components:{AisHighlighter:Mp},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:`mark`}}};c();function Pp(e,t,n,r,i,a){var o=V(`ais-highlighter`);return B(),P(o,{hit:n.hit,attribute:n.attribute,"highlighted-tag-name":n.highlightedTagName,suit:e.suit,"highlight-property":`_highlightResult`,"pre-tag":`<mark>`,"post-tag":`</mark>`},null,8,[`hit`,`attribute`,`highlighted-tag-name`,`suit`])}var Fp={...Np,render:Pp},Ip={name:`AisPagination`,mixins:[Ts({name:`Pagination`}),js({connector:Nl},{$$widgetType:`ais.pagination`}),kp()],props:{padding:{type:Number,default:void 0,validator:function(e){return e>0}},totalPages:{type:Number,default:void 0,validator:function(e){return e>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},emits:[`page-change`],methods:{refine:function(e){var t=Math.min(Math.max(e,0),this.state.nbPages-1);this.state.refine(t),this.$emit(`page-change`,t)}}};c();var Lp=[`href`],Rp=[`href`],zp=[`href`,`aria-label`,`aria-current`,`onClick`],Bp=[`href`],Vp=[`aria-label`,`href`],Hp=[`aria-label`];function Up(e,t,n,r,i,a){var o;return e.state?(B(),_(`div`,{key:0,class:R((o={},q(o,e.suit(),!0),q(o,e.suit(``,`noRefinement`),e.state.nbPages<=1),o))},[H(e.$slots,`default`,{refine:a.refine,createURL:e.state.createURL,currentRefinement:e.state.currentRefinement,nbHits:e.state.nbHits,nbPages:e.state.nbPages,pages:e.state.pages,isFirstPage:e.state.isFirstPage,isLastPage:e.state.isLastPage},function(){var r,i,o,s;return[y(`ul`,{class:R(e.suit(`list`))},[n.showFirst?(B(),_(`li`,{key:0,class:R((r={},q(r,e.suit(`item`),!0),q(r,e.suit(`item`,`disabled`),e.state.isFirstPage),q(r,e.suit(`item`,`firstPage`),!0),r))},[H(e.$slots,`first`,{createURL:function(){return e.state.createURL(0)},isFirstPage:e.state.isFirstPage,refine:function(){return a.refine(0)}},function(){return[e.state.isFirstPage?(B(),_(`span`,{key:1,class:R(e.suit(`link`)),"aria-label":`First Page`},`â¹â¹`,2)):(B(),_(`a`,{key:0,class:R(e.suit(`link`)),"aria-label":`First Page`,href:e.state.createURL(0),onClick:t[0]||(t[0]=h(function(e){return a.refine(0)},[`exact`,`left`,`prevent`]))},`â¹â¹`,10,Lp))]})],2)):I(``,!0),n.showPrevious?(B(),_(`li`,{key:1,class:R((i={},q(i,e.suit(`item`),!0),q(i,e.suit(`item`,`disabled`),e.state.isFirstPage),q(i,e.suit(`item`,`previousPage`),!0),i))},[H(e.$slots,`previous`,{createURL:function(){return e.state.createURL(e.state.currentRefinement-1)},isFirstPage:e.state.isFirstPage,refine:function(){return a.refine(e.state.currentRefinement-1)}},function(){return[e.state.isFirstPage?(B(),_(`span`,{key:1,class:R(e.suit(`link`)),"aria-label":`Previous Page`},`â¹`,2)):(B(),_(`a`,{key:0,class:R(e.suit(`link`)),"aria-label":`Previous Page`,href:e.state.createURL(e.state.currentRefinement-1),onClick:t[1]||(t[1]=h(function(t){return a.refine(e.state.currentRefinement-1)},[`exact`,`left`,`prevent`]))},`â¹`,10,Rp))]}
48)],2)):I(``,!0),(B(!0),_(O,null,U(e.state.pages,function(t){var n;return B(),_(`li`,{class:R((n={},q(n,e.suit(`item`),!0),q(n,e.suit(`item`,`page`),!0),q(n,e.suit(`item`,`selected`),e.state.currentRefinement===t),n)),key:t},[H(e.$slots,`item`,{page:t,createURL:function(){return e.state.createURL(t)},isFirstPage:e.state.isFirstPage,isLastPage:e.state.isLastPage,refine:function(){return a.refine(t)}},function(){return[y(`a`,{class:R(e.suit(`link`)),href:e.state.createURL(t),"aria-label":`Page ${t+1}`,"aria-current":e.state.currentRefinement===t?`page`:void 0,onClick:h(function(e){return a.refine(t)},[`exact`,`left`,`prevent`])},z(t+1),11,zp)]})],2)}),128)),n.showNext?(B(),_(`li`,{key:2,class:R((o={},q(o,e.suit(`item`),!0),q(o,e.suit(`item`,`disabled`),e.state.isLastPage),q(o,e.suit(`item`,`nextPage`),!0),o))},[H(e.$slots,`next`,{createURL:function(){return e.state.createURL(e.state.currentRefinement+1)},isLastPage:e.state.isLastPage,refine:function(){return a.refine(e.state.currentRefinement+1)}},function(){return[e.state.isLastPage?(B(),_(`span`,{key:1,class:R(e.suit(`link`)),"aria-label":`Next Page`},`âº`,2)):(B(),_(`a`,{key:0,class:R(e.suit(`link`)),"aria-label":`Next Page`,href:e.state.createURL(e.state.currentRefinement+1),onClick:t[2]||(t[2]=h(function(t){return a.refine(e.state.currentRefinement+1)},[`exact`,`left`,`prevent`]))},`âº`,10,Bp))]})],2)):I(``,!0),n.showLast?(B(),_(`li`,{key:3,class:R((s={},q(s,e.suit(`item`),!0),q(s,e.suit(`item`,`disabled`),e.state.isLastPage),q(s,e.suit(`item`,`lastPage`),!0),s))},[H(e.$slots,`last`,{createURL:function(){return e.state.createURL(e.state.nbPages-1)},isLastPage:e.state.isLastPage,refine:function(){return a.refine(e.state.nbPages-1)}},function(){return[e.state.isLastPage?(B(),_(`span`,{key:1,class:R(e.suit(`link`)),"aria-label":`Last Page, Page ${e.state.nbPages}`},` âºâº `,10,Hp)):(B(),_(`a`,{key:0,class:R(e.suit(`link`)),"aria-label":`Last Page, Page ${e.state.nbPages}`,href:e.state.createURL(e.state.nbPages-1),onClick:t[3]||(t[3]=h(function(t){return a.refine(e.state.nbPages-1)},[`exact`,`left`,`prevent`]))},`âºâº`,10,Vp))]})],2)):I(``,!0)],2)]})],2)):I(``,!0)}var Wp={...Ip,render:Up},Gp={name:`SearchInput`,mixins:[Ts({name:`SearchBox`})],props:{placeholder:{type:String,default:`Search hereâ¦`},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},ignoreCompositionEvents:{type:Boolean,default:!1},submitTitle:{type:String,default:`Search`},resetTitle:{type:String,default:`Clear`},value:{type:String,required:!1,default:void 0},modelValue:{type:String,required:!1,default:void 0}},emits:[`input`,`update:modelValue`,`blur`,`focus`,`reset`],data:function(){return{query:``}},methods:{isFocused:function(){return document.activeElement===this.$refs.input},onInput:function(e){this.ignoreCompositionEvents&&e.isComposing||(this.$emit(`input`,e.target.value),this.$emit(`update:modelValue`,e.target.value))},onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit(`input`,``),this.$emit(`update:modelValue`,``),this.$emit(`reset`)}}};c();var Kp=[`placeholder`,`autofocus`,`value`],qp=[`title`,`aria-label`,`hidden`],Jp=[y(`path`,{d:`M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z`},null,-1)],Yp=[`title`,`aria-label`,`hidden`],Xp=[y(`path`,{d:`M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z`},null,-1)],Zp=[`hidden`],Qp=[`aria-hidden`],$p=[Xe(`<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indef
48inite"></animateTransform></path></g></g>`,1)];function em(e,t,n,r,i,a){var o,s;return B(),_(`form`,{action:``,role:`search`,novalidate:``,class:R(e.suit(`form`)),onSubmit:t[4]||(t[4]=h(function(){var e=[...arguments];return a.onFormSubmit&&(o=a).onFormSubmit.apply(o,Dp(e))},[`prevent`])),onReset:t[5]||(t[5]=h(function(){var e=[...arguments];return a.onFormReset&&(s=a).onFormReset.apply(s,Dp(e))},[`prevent`]))},[y(`input`,{type:`search`,autocorrect:`off`,autocapitalize:`off`,autocomplete:`off`,spellcheck:`false`,maxlength:`512`,"aria-label":`Search`,placeholder:n.placeholder,autofocus:n.autofocus,class:R(e.suit(`input`)),value:n.value||n.modelValue,onFocus:t[0]||(t[0]=function(t){return e.$emit(`focus`,t)}),onBlur:t[1]||(t[1]=function(t){return e.$emit(`blur`,t)}),onInput:t[2]||(t[2]=function(e){return a.onInput(e)}),onCompositionend:t[3]||(t[3]=function(e){return a.onInput(e)}),ref:`input`},null,42,Kp),y(`button`,{type:`submit`,title:n.submitTitle,"aria-label":n.submitTitle,class:R(e.suit(`submit`)),hidden:n.showLoadingIndicator&&n.shouldShowLoadingIndicator},[H(e.$slots,`submit-icon`,{},function(){return[(B(),_(`svg`,{"aria-hidden":`true`,width:`10`,height:`10`,viewBox:`0 0 40 40`,class:R(e.suit(`submitIcon`))},Jp,2))]})],10,qp),y(`button`,{type:`reset`,title:n.resetTitle,"aria-label":n.resetTitle,class:R(e.suit(`reset`)),hidden:!n.value&&!n.modelValue||n.showLoadingIndicator&&n.shouldShowLoadingIndicator},[H(e.$slots,`reset-icon`,{},function(){return[(B(),_(`svg`,{"aria-hidden":`true`,height:`10`,viewBox:`0 0 20 20`,class:R(e.suit(`resetIcon`)),width:`10`},Xp,2))]})],10,Yp),n.showLoadingIndicator?(B(),_(`span`,{key:0,hidden:!n.shouldShowLoadingIndicator,class:R(e.suit(`loadingIndicator`))},[H(e.$slots,`loading-indicator`,{},function(){return[(B(),_(`svg`,{"aria-hidden":!n.shouldShowLoadingIndicator,"aria-label":`Results are loading`,width:`16`,height:`16`,stroke:`#444`,viewBox:`0 0 38 38`,class:R(e.suit(`loadingIcon`))}
48,$p,10,Qp))]})],10,Zp)):I(``,!0)],34)}var tm={...Gp,render:em},nm=function(){},rm={name:`AisRefinementList`,components:{SearchInput:tm,AisHighlight:Fp},mixins:[Ts({name:`RefinementList`}),js({connector:Il},{$$widgetType:`ais.refinementList`}),kp()],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:void 0},searchablePlaceholder:{type:String,required:!1,default:`Search hereâ¦`},operator:{default:`or`,validator:function(e){return e===`and`||e===`or`},required:!1},limit:{type:Number,required:!1,default:void 0},showMoreLimit:{type:Number,required:!1,default:void 0},showMore:{type:Boolean,required:!1,default:!1},showMoreButtonLabel:{type:String,required:!1,default:void 0},sortBy:{type:[Array,Function],required:!1,default:void 0},transformItems:{type:Function,required:!1,default:void 0}},data:function(){return{searchForFacetValuesQuery:``}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(e){this.state.searchForItems(e),this.searchForFacetValuesQuery=e}},toggleShowMore:function(){return this.state.toggleShowMore||nm},items:function(){return this.state.items.map(function(e){return Object.assign({},e,{_highlightResult:{item:{value:e.highlighted}}})})},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e),this.searchForFacetValuesQuery=``}}};c();var im=[`value`,`checked`,`onChange`],am=[`disabled`,`aria-expanded`,`aria-label`];function om(e,t,n,r,i,a){var o,s=V(`search-input`),c=V(`ais-highlight`);return e.state?(B(),_(`div`,{key:0,class:R([e.suit(),a.items.length===0&&e.suit(``,`noRefinement`)])},[H(e.$slots,`default`,{items:a.items,refine:a.refine,searchForItems:e.state.searchForItems,searchForItemsQuery:i.searchForFacetValuesQuery,toggleShowMore:a.toggleShowMore,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,createURL:e.state.createURL,isFromSearch:e.state.isFromSearch,canRefine:e.state.canRefine,sendEvent:e.state.sendEvent},function(){return[n.searchable?(B(),_(`div`,{key:0,class:R(e.suit(`searchBox`))},[L(s,{modelValue:a.searchForFacetValues,"onUpdate:modelValue":t[0]||(t[0]=function(e){return a.searchForFacetValues=e}),"show-loading-indicator":!0,placeholder:n.searchablePlaceholder,"class-names":e.classNames},null,8,[`modelValue`,`placeholder`,`class-names`])],2)):I(``,!0),e.state.isFromSearch&&a.items.length===0?H(e.$slots,`noResults`,{key:1,query:a.searchForFacetValues},function(){return[y(`div`,{class:R(e.suit(`noResults`))},`No results.`,2)]}):I(``,!0),a.items.length>0?(B(),_(`ul`,{key:2,class:R(e.suit(`list`))},[(B(!0),_(O,null,U(a.items,function(t){return B(),_(`li`,{class:R([e.suit(`item`),t.isRefined&&e.suit(`item`,`selected`)]),key:t.value},[H(e.$slots,`item`,{item:t,refine:a.refine,createURL:e.state.createURL},function(){return[y(`label`,{class:R(e.suit(`label`))},[y(`input`,{class:R(e.suit(`checkbox`)),type:`checkbox`,value:t.value,checked:t.isRefined,onChange:function(e){return a.refine(t.value)}},null,42,im),n.searchable?(B(),_(`span`,{key:0,class:R(e.suit(`labelText`))},[L(c,{attribute:`item`,hit:t},null,8,[`hit`])],2)):(B(),_(`span`,{key:1,class:R(e.suit(`labelText`))},z(t.label),3)),y(`span`,{class:R(e.suit(`count`))},z(t.count),3)],2)]})],2)}),128))],2)):I(``,!0),n.showMore?(B(),_(`button`,{key:3,class:R([e.suit(`showMore`),q({},e.suit(`showMore`,`disabled`),!e.state.canToggleShowMore)]),onClick:t[1]||(t[1]=function(){var e=[...arguments];return a.toggleShowMore&&(o=a).toggleShowMore.apply(o,Dp(e))}),disabled:!e.state.canToggleShowMore,"aria-expanded":e.state.isShowingMore?`true`:`false`,"aria-label":n.showMoreButtonLabel},[H(e.$slots,`showMoreLabel`,{isShowingMore:e.state.isShowingMore},function(){return[w(` Show `+z(e.state.isShowingMore?`less`:`more`),1)]})],10,am)):I(``,!0)]})],2)):I(``,!0)}var sm={...rm,render:om};c();var cm,lm=(q(cm={name:`AisStateResults`,mixins:[js({connector:!0}
48),Ts({name:`StateResults`})],props:{catchError:{type:Boolean,default:!1}},data:function(){var e=this;return{renderFn:function(){var t=e.instantSearchInstance,n=t.status,r=t.error,i=e.getParentIndex().getResults(),a=e.getParentIndex().getHelper();e.state={results:i,state:a?a.state:null,status:n,error:r}}}},created:function(){this.instantSearchInstance.addListener(`render`,this.renderFn),this.renderFn()}},`beforeUnmount`,function(){this.widget&&(this.instantSearchInstance.removeListener(`render`,this.renderFn),this.errorFn&&this.instantSearchInstance.removeListener(`error`,this.errorFn))}),q(cm,`watch`,{catchError:{immediate:!0,handler:function(e){e?(this.errorFn=function(){},this.instantSearchInstance.addListener(`error`,this.errorFn)):this.errorFn&&(this.instantSearchInstance.removeListener(`error`,this.errorFn),this.errorFn=void 0)}}}),q(cm,`computed`,{stateResults:function(){var e=this.state,t=e.results,n=e.state,r=e.status,i=e.error;return Es({},t,{results:t,state:n,status:r,error:i})}}),cm);c();var um=y(`p`,null,` Use this component to have a different layout based on a certain state. `,-1),dm=y(`p`,null,`Fill in the slot, and get access to the following things:`,-1);function fm(e,t,n,r,i,a){return e.state&&e.state.state&&e.state.results?(B(),_(`div`,{key:0,class:R(e.suit())},[H(e.$slots,`default`,ce(le(a.stateResults)),function(){return[um,dm,y(`pre`,null,`results: `+z(Object.keys(e.state.results)),1),y(`pre`,null,`state: `+z(Object.keys(e.state.state)),1),y(`pre`,null,`status: `+z(e.state.status),1),y(`pre`,null,`error: `+z(e.state.error),1)]})],2)):I(``,!0)}var pm={...lm,render:fm},mm={name:`AisSearchBox`,mixins:[js({connector:Bl},{$$widgetType:`ais.searchBox`}),Ts({name:`SearchBox`})],components:{SearchInput:tm},props:{placeholder:{type:String,default:``},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!0},ignoreCompositionEvents:{type:Boolean,default:!1},submitTitle:{type:String,default:`Submit the search query`},resetTitle:{type:String,default:`Clear the search query`},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},queryHook:{type:Function,default:void 0}},data:function(){return{localValue:``,isVue2:!1,isVue3:!0}},computed:{widgetParams:function(){return{queryHook:this.queryHook}},isControlled:function(){return this.value!==void 0||this.modelValue!==void 0},model:function(){return this.value||this.modelValue},currentRefinement:{get:function(){this.isControlled&&this.model!==this.localValue&&(this.localValue=this.model,this.$emit(`input`,this.model),this.$emit(`update:modelValue`,this.model),this.state.refine(this.model));var e=this.$refs.searchInput;return e&&e.isFocused()?this.localValue:this.model||this.state.query||``},set:function(e){this.localValue=e,this.state.refine(e),this.isControlled&&(this.$emit(`input`,e),this.$emit(`update:modelValue`,e))}}}};c();function hm(e,t,n,r,i,a){var o=V(`search-input`);return e.state?(B(),_(`div`,{key:0,class:R(e.suit())},[H(e.$slots,`default`,{currentRefinement:a.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine},function(){return[L(o,{onFocus:t[0]||(t[0]=function(t){return e.$emit(`focus`,t)}),onBlur:t[1]||(t[1]=function(t){return e.$emit(`blur`,t)}),onReset:t[2]||(t[2]=function(t){return e.$emit(`reset`)}),placeholder:n.placeholder,autofocus:n.autofocus,"show-loading-indicator":n.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"ignore-composition-events":n.ignoreCompositionEvents,"submit-title":n.submitTitle,"reset-title":n.resetTitle,"class-names":e.classNames,modelValue:a.currentRefinement,"onUpdate:modelValue":t[3]||(t[3]=function(e){return a.currentRefinement=e}),ref:`searchInput`},ee({default:u(function(){return[i.isVue2?H(e.$slots,`loading-indicator`,{key:0,slot:`loading-indicator`}):I(``,!0),i.isVue2?H(e.$slots,`submit-icon`,{key:1,slot:`submit-icon`}):I(``,!0),i.isVue2?H(e.$slots,`reset-icon`,{key:2,slot:`reset-icon`}):I(``,!0)]}),_:2},[i.isVue3?{name:`loading-indicator`,fn:u(function(){return[H(e.$slots,`loading-indicator`)]}),key:`0`}:void 0,i.isVue3?{name:`submit-icon`,fn:u(function(){return[H(e.$slots,`submit-icon`)]}),key:`1`}:void 0,i.isVue3?{name:`reset-icon`,fn:u(function(){return[H(e.$slots,`reset-icon`)]}),key:`2`}:void 0]),1032,[`placeholder`,`autofocus`,`show-loading-indicator`,`should-show-loading-indicator`,`ignore-composition-events`,`submit-title`,`reset-title`,`class-names`,`modelValue`])]})],2)):I(``,!0)}var gm={...mm,render:hm};c();var _m,vm=(q(_m={name:`AisStats`,mixins:[js({connector:Hl},{$$widgetType:`ais.stats`}
48),Ts({name:`Stats`})],data:function(){return{announcement:``,announcementTimer:void 0,isInitialAnnouncement:!0,visuallyHiddenStyle:{position:`absolute`,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,border:0}}}},`beforeUnmount`,function(){clearTimeout(this.announcementTimer)}),q(_m,`watch`,{announcementText:function(e){var t=this;this.isInitialAnnouncement?this.isInitialAnnouncement=!1:(clearTimeout(this.announcementTimer),this.announcementTimer=setTimeout(function(){t.announcement=e},1400))}}),q(_m,`computed`,{announcementText:function(){return this.state?this.state.areHitsSorted?this.sortedResultsSentence:this.resultsSentence:``},sortedResultsSentence:function(){var e=this.state,t=e.nbHits,n=e.nbSortedHits,r=`sorted out of ${t.toLocaleString()}`;return n===0?`No relevant results ${r}`:n===1?`1 relevant result ${r}`:n>1?`${(n||0).toLocaleString()} relevant results ${r}`:``},resultsSentence:function(){var e=this.state.nbHits;return e===0?`No results`:e===1?`1 result`:e>1?`${e.toLocaleString()} results`:``},widgetParams:function(){return{}}}),_m);c();function ym(e,n,r,i,a,o){return e.state?(B(),_(`div`,{key:0,class:R(e.suit())},[H(e.$slots,`default`,Le(e.state,{results:e.state.instantSearchInstance.helper.lastResults}),function(){return[y(`span`,{class:R(e.suit(`text`))},[e.state.areHitsSorted?(B(),_(O,{key:0},[w(z(o.sortedResultsSentence),1)],64)):(B(),_(O,{key:1},[w(z(o.resultsSentence),1)],64)),w(` found in `+z(e.state.processingTimeMS.toLocaleString())+`ms`,1)],2)]}),y(`span`,{class:R(e.suit(`announcement`)),role:`status`,"aria-live":`polite`,"aria-atomic":`true`,style:t(a.visuallyHiddenStyle)},z(a.announcement),7)],2)):I(``,!0)}var bm={...vm,render:ym},xm=et(Cs());c();var Sm=(0,xm.default)(config.algoliaid,config.algoliakey),Cm={search(e){return e.every(({params:e})=>!e.query)?Promise.resolve({results:e.map(()=>({hits:[],nbHits:0,nbPages:0,processingTimeMS:0}))}):Sm.search(e)}},wm={props:[`search`,`posts`,`documents`,`pages`,`searchtext`,`teamstext`,`helpcenter`],data(){return{searchClient:Cm,theme:config.appTheme,locale:config.locale,cupID:config.cupId,tournamentID:config.tournamentId,tournamentYear:config.tournamentYear,query:this.search,noPosts:`0`,noPages:`0`,noDocuments:`0`,view:`posts`,teams:[],help:[]}},watch:{query:function(e,t){var n=this;setTimeout(function(){n.searchArticles(),n.searchHelp(),n.searchClient,n.noPosts=n.$refs.posts.innerHTML,n.noPages=n.$refs.pages.innerHTML,n.noDocuments=n.$refs.documents.innerHTML},400)}},components:{AisInstantSearch:xp,AisConfigure:du,AisRefinementList:sm,AisHits:mu,AisHighlight:Fp,AisSearchBox:gm,AisStats:bm,AisStateResults:pm,AisPagination:Wp},methods:{searchArticles(){axios.get(`https://results.cupmanager.net/rest/tournamentapp/`+this.cupID+`/`+this.tournamentID+`/searchTeams?q=`+this.query,{withCredentials:!1}).then(e=>{this.teams=e.data}).catch(function(e){console.log(e)})},searchHelp(){axios.get(`/public/api/helpscout/`+this.locale+`/`+this.query).then(e=>{this.help=e.data}).catch(function(e){console.log(e)})},date(e){if(e){if(this.locale==`sv`){var t=new Date(e);return t.toLocaleDateString(`sv-SE`,{day:`2-digit`,month:`short`,year:`numeric`})}var t=new Date(e);return t.toLocaleDateString(`en-GB`,{day:`2-digit`,month:`short`,year:`numeric`})}},toTop(){window.scrollTo(0,0)}},mounted(){var e=this;this.searchArticles(),this.searchHelp(),setTimeout(function(){e.searchClient,e.noPosts=e.$refs.posts.innerHTML,e.noPages=e.$refs.pages.innerHTML,e.noDocuments=e.$refs.documents.innerHTML},400)}},Tm={class:`bg-gray-50`},Em={class:`max-w-6xl mx-auto pt-8 md:pt-12 px-4 sm:px-6 lg:px-8`},Dm={class:`mb-6`},Om={class:`text-3xl leading-9 mb-4 tracking-tight font-extrabold text-gray-900 sm:text-4xl sm:leading-10`},km={class:`relative`,"slot-scope":`{ currentRefinement, isSearchStalled, refine }`},Am={class:`absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none`},jm=[`placeholder`],Mm=[`hidden`],Nm={class:`sm:hidden pb-4`},Pm={value:`posts`},Fm={value:`pages`},Im={value:`documents`},Lm={value:`teams`},Rm={value:`help`},zm={class:`hidden sm:block`},Bm={class:`border-b border-gray-200`},Vm={class:`-mb-px flex`},Hm={class:`max-w-6xl mx-auto py-8 px-4 sm:px-6 lg:px-8`},Um={"slot-scope":`{ hits }`},Wm={slot:`item`,"slot-scope":`{ item }`},Gm={class:`text-sm leading-5 text-gray-500`},Km={datetime:`2020-03-16`},qm=[`href`],Jm={class:`mt-2 text-xl leading-7 font-semibold text-gray-900`},Ym={class:`mt-3 text-base leading-6 text-gray-500`},Xm={class:`mt-3`},Zm=[`href`],Qm={key:1,class:`text-gray-500 font-medium text-center text-lg py-6`},$m={"slot-scope":`{ 49 currentRefinement, 50 nbPages, 51 pages, 52 isFirstPage, 53 isLastPage, 54 refine, 55 createURL 56 }`,class:`mt-4 border-t border-gray-200 px-4 flex items-center justify-between sm:px-0`},eh={class:`w-0 flex-1 flex`},th=[`href`],nh={class:`hidden md:flex`},rh=[`href`,`onClick`],ih={class:`w-0 flex-1 flex justify-end`},ah=[`href`],oh={class:`max-w-6xl mx-auto py-8 px-4 sm:px-6 lg:px-8`},sh={"slot-scope":`{ hits }`},ch={slot:`item`,"slot-scope":`{ item }`},lh=[`href`],uh={class:`mt-2 text-xl leading-7 font-semibold text-gray-900`},dh={class:`mt-3 text-base leading-6 text-gray-500`},fh={class:`mt-3`},ph=[`href`],mh={key:1,class:`text-gray-500 font-medium text-center text-lg py-6`},hh={"slot-scope":`{ 57 currentRefinement, 58 nbPages, 59 pages, 60 isFirstPage, 61 isLastPage, 62 refine, 63 createURL 64 }`,class:`mt-4 border-t border-gray-200 px-4 flex items-center justify-between sm:px-0`},gh={class:`w-0 flex-1 flex`},_h=[`href`],vh={class:`hidden md:flex`},yh=[`href`,`onClick`],bh={class:`w-0 flex-1 flex justify-end`},xh=[`href`],Sh={class:`max-w-6xl mx-auto py-8 px-4 sm:px-6 lg:px-8`},Ch={"slot-scope":`{ hits }`},wh={slot:`item`,"slot-scope":`{ item }`},Th=[`href`],Eh={class:`mt-2 text-xl leading-7 font-semibold text-gray-900`},Dh={class:`mt-3 text-base leading-6 text-gray-500`},Oh={class:`mt-3`},kh=[`href`],Ah={key:1,class:`text-gray-500 font-medium text-center text-lg py-6`},jh={"slot-scope":`{ 65 currentRefinement, 66 nbPages, 67 pages, 68 isFirstPage, 69 isLastPage, 70 refine, 71 createURL 72 }`,class:`mt-4 border-t border-gray-200 px-4 flex items-center justify-between sm:px-0`},Mh={class:`w-0 flex-1 flex`},Nh=[`href`],Ph={class:`hidden md:flex`},Fh=[`href`,`onClick`],Ih={class:`w-0 flex-1 flex justify-end`},Lh=[`href`],Rh={class:`max-w-6xl mx-auto py-8 px-4 sm:px-6 lg:px-8`},zh={class:`bg-white overflow-hidden`},Bh=[`href`],Vh={class:`py-4 flex items-center`},Hh={class:`min-w-0 flex-1 sm:flex sm:items-center sm:justify-between`},Uh={class:`text-base leading-5 font-medium text-blue-600 truncate`},Wh={class:`ml-1 font-normal text-gray-500`},Gh={class:`mt-2 flex`},Kh={class:`flex items-center text-sm leading-5 text-gray-500`},qh={class:`ml-5 flex-shrink-0`},Jh={class:`text-base leading-6 font-semibold text-blue-600 hover:text-blue-500 transition ease-in-out duration-150`},Yh={key:0,class:`text-gray-500 font-medium text-center text-lg py-6`},Xh={class:`max-w-6xl mx-auto py-8 px-4 sm:px-6 lg:px-8`},Zh={key:0,class:`text-gray-500 font-medium text-center text-lg py-6`},Qh={key:1,class:`grid gap-16 lg:grid-cols-2 lg:gap-x-5 lg:gap-y-12`},$h={key:0,class:`text-gray-500 font-medium text-center text-lg py-6 lg:col-span-2`},eg=[`href`],tg={class:`mt-2 text-xl leading-7 font-semibold text-gray-900`},ng={class:`mt-3 text-base leading-6 text-gray-500`},rg={class:`mt-3`},ig=[`href`];function ag(e,t,n,r,i,a){let o=V(`ais-configure`),s=V(`ais-search-box`),c=V(`ais-hits`),l=V(`ais-state-results`),d=V(`ais-stats`),f=V(`ais-pagination`),p=V(`ais-instant-search`),m=V(`icon`);return B(),_(`div`,null,[L(p,{"search-client":i.searchClient,"index-name":`posts`},{default:u(()=>[L(o,{hitsPerPage:6,query:i.query,distinct:!0,filters:i.locale+` AND published`},null,8,[`query`,`filters`]),y(`div`,Tm,[y(`div`,Em,[y(`div`,Dm,[y(`h2`,Om,z(n.searchtext),1),L(s,null,{default:u(()=>[y(`div`,km,[y(`div`,Am,[(B(),_(`svg`,{class:R([[i.theme==`blue`?`text-blue-300`:``,i.theme==`dar
72k`?`text-gray-400`:``],`searchpopicon h-5 w-5`]),fill:`currentColor`,viewBox:`0 0 20 20`},[...t[15]||(t[15]=[y(`path`,{"fill-rule":`evenodd`,d:`M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z`,"clip-rule":`evenodd`},null,-1)])],2))]),M(y(`input`,{type:`text`,"onUpdate:modelValue":t[0]||(t[0]=e=>i.query=e),placeholder:n.searchtext,onInput:t[1]||(t[1]=t=>e.refine(t.currentTarget.value)),class:`px-5 py-3 pl-10 shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border-gray-300 rounded-full`},null,40,jm),[[A,i.query]]),y(`span`,{class:`hidden`,hidden:!e.isSearchStalled},`Loading...`,8,Mm),e.currentRefinement?(B(),_(`div`,{key:0,onClick:t[2]||(t[2]=t=>(e.refine(``),i.query=``)),class:`cursor-pointer z-20 absolute inset-y-0 right-0 pr-3 flex items-center`},[(B(),_(`svg`,{class:R([[i.theme==`blue`?`text-blue-300 hover:text-blue-400`:``,i.theme==`dark`?`text-gray-400 hover:text-gray-500`:``],`searchpopclear h-5 w-5`]),fill:`none`,stroke:`currentColor`,"stroke-width":`2`,viewBox:`0 0 24 24`},[...t[16]||(t[16]=[y(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),y(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])],2))])):I(``,!0)])]),_:1})]),y(`div`,null,[y(`div`,Nm,[M(y(`select`,{"onUpdate:modelValue":t[3]||(t[3]=e=>i.view=e),"aria-label":`Selected tab`,class:`mt-1 form-select block w-full pl-3 pr-10 py-2 text-base leading-6 border-gray-300 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 sm:text-sm sm:leading-5 transition ease-in-out duration-150`},[y(`option`,Pm,z(n.posts)+` (`+z(i.noPosts)+`)`,1),y(`option`,Fm,z(n.pages)+` (`+z(i.noPages)+`)`,1),y(`option`,Im,z(n.documents)+` (`+z(i.noDocuments)+`)`,1),y(`option`,Lm,z(n.teamstext)+` (`+z(i.teams.length)+`)`,1),y(`option`,Rm,[w(z(n.helpcenter)+` (`,1),Object.keys(i.help).length===0?(B(),_(O,{key:0},[w(` 0 `)],64)):(B(),_(O,{key:1},[w(z(this.help.articles.items.length),1)],64)),t[17]||(t[17]=w(`)`,-1))])],512),[[Be,i.view]])]),y(`div`,zm,[y(`div`,Bm,[y(`nav`,Vm,[y(`a`,{href:`#`,onClick:t[4]||(t[4]=e=>i.view=`posts`),class:R([[i.view==`posts`&&i.theme==`dark`?`border-b-2 border-red-500 text-red-600 focus:text-red-800 focus:border-red-700`:``,i.view==`posts`&&i.theme==`blue`?`border-b-2 border-blue-500 text-blue-600 focus:text-blue-800 focus:border-blue-700`:``,i.view==`posts`?``:`text-gray-500 hover:text-gray-700 focus:text-gray-700 focus:border-gray-300 hover:border-gray-300`],`whitespace-no-wrap py-4 px-1 border-b-2 border-transparent font-medium text-sm leading-5 focus:outline-none`])},[w(z(n.posts)+` `,1),y(`span`,{class:R([[i.theme==`blue`?`bg-blue-100 text-blue-800`:``,i.theme==`dark`?`bg-red-100 text-red-800`:``],`ml-1 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4`])},z(i.noPosts),3)],2),y(`a`,{href:`#`,onClick:t[5]||(t[5]=e=>i.view=`pages`),class:R([[i.view==`pages`&&i.theme==`dark`?`border-b-2 border-red-500 text-red-600 focus:text-red-800 focus:border-red-700`:``,i.view==`pages`&&i.theme==`blue`?`border-b-2 border-blue-500 text-blue-600 focus:text-blue-800 focus:border-blue-700`:``,i.view==`pages`?``:`text-gray-500 hover:text-gray-700 focus:text-gray-700 focus:border-gray-300 hover:border-gray-300`],`ml-8 whitespace-no-wrap py-4 px-1 border-b-2 border-transparent font-medium text-sm leading-5 focus:outline-none`])},[w(z(n.pages)+` `,1),y(`span`,{class:R([[i.theme==`blue`?`bg-blue-100 text-blue-800`:``,i.theme==`dark`?`bg-red-100 text-red-800`:``],`ml-1 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4`])},z(i.noPages),3)],2),y(`a`,{href:`#`,onClick:t[6]||(t[6]=e=>i.view=`documents`),class:R([[i.view==`documents`&&i.theme==`dark`?`border-b-2 border-red-500 text-red-600 focus:text-red-800 focus:border-red-700`:``,i.view==`documents`&&i.theme==`blue`?`border-b-2 border-blue-500 text-blue-600 focus:text-blue-800 focus:border-blue-700`:``,i.view==`documents`?``:`text-gray-500 hover:text-gray-700 focus:text-gray-700 focus:border-gray-300 hover:border-gray-300`],`ml-8 whitespace-no-wrap py-4 px-1 border-b-2 border-transparent font-medium text-sm leading-5 focus:outline-none`])},[w(z(n.documents)+` `,1),y(`span`,{class:R([[i.theme==`blue`?`bg-blue-100 text-blue-800`:``,i.theme==`dar
72k`?`bg-red-100 text-red-800`:``],`ml-1 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4`])},z(i.noDocuments),3)],2),y(`a`,{href:`#`,onClick:t[7]||(t[7]=e=>i.view=`teams`),class:R([[i.view==`teams`&&i.theme==`dark`?`border-b-2 border-red-500 text-red-600 focus:text-red-800 focus:border-red-700`:``,i.view==`teams`&&i.theme==`blue`?`border-b-2 border-blue-500 text-blue-600 focus:text-blue-800 focus:border-blue-700`:``,i.view==`teams`?``:`text-gray-500 hover:text-gray-700 focus:text-gray-700 focus:border-gray-300 hover:border-gray-300`],`ml-8 whitespace-no-wrap py-4 px-1 border-b-2 border-transparent font-medium text-sm leading-5 focus:outline-none`])},[w(z(n.teamstext)+` `,1),y(`span`,{class:R([[i.theme==`blue`?`bg-blue-100 text-blue-800`:``,i.theme==`dark`?`bg-red-100 text-red-800`:``],`ml-1 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4`])},z(this.teams.length),3)],2),y(`a`,{href:`#`,onClick:t[8]||(t[8]=e=>i.view=`help`),class:R([[i.view==`help`&&i.theme==`dark`?`border-b-2 border-red-500 text-red-600 focus:text-red-800 focus:border-red-700`:``,i.view==`help`&&i.theme==`blue`?`border-b-2 border-blue-500 text-blue-600 focus:text-blue-800 focus:border-blue-700`:``,i.view==`help`?``:`text-gray-500 hover:text-gray-700 focus:text-gray-700 focus:border-gray-300 hover:border-gray-300`],`ml-8 whitespace-no-wrap py-4 px-1 border-b-2 border-transparent font-medium text-sm leading-5 focus:outline-none`])},[w(z(n.helpcenter)+` `,1),y(`span`,{class:R([[i.theme==`blue`?`bg-blue-100 text-blue-800`:``,i.theme==`dark`?`bg-red-100 text-red-800`:``],`ml-1 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4`])},[Object.keys(i.help).length===0?(B(),_(O,{key:0},[w(` 0 `)],64)):(B(),_(O,{key:1},[w(z(this.help.articles.items.length),1)],64))],2)],2)])])])])])]),M(y(`div`,Hm,[L(l,null,{default:u(()=>[y(`template`,Um,[e.hits.length>0?(B(),P(c,{key:0,"escape-html":!1,"class-names":{"ais-Hits":``,"ais-Hits-list":`grid gap-12 lg:grid-cols-2 lg:col-gap-5 lg:row-gap-12`,"ais-Hits-item":``}},{default:u(()=>[y(`template`,Wm,[y(`div`,null,[y(`p`,Gm,[y(`time`,Km,z(a.date(e.item.publish)),1)]),y(`a`,{href:`/`+i.locale+`/post/`+e.item.slug,class:`block`},[y(`h3`,Jm,z(e.item.title),1),y(`p`,Ym,z(e.item.intro),1)],8,qm),y(`div`,Xm,[y(`a`,{href:`/`+i.locale+`/post/`+e.item.slug,class:R([[i.theme==`blue`?`text-blue-600 hover:text-blue-500`:``,i.theme==`dark`?`text-red-600 hover:text-red-500`:``],`text-base leading-6 font-semibold transition ease-in-out duration-150`])},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Läs mer `)],64)):(B(),_(O,{key:1},[w(` Read more `)],64))],10,Zm)])])])]),_:1})):(B(),_(`div`,Qm,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Inga artiklar hittades `)],64)):(B(),_(O,{key:1},[w(` No articles found `)],64))]))])]),_:1}),L(d,null,{default:u(()=>[y(`p`,{class:R([[e.nbHits>0?``:`hidden`],`mt-16 text-center text-gray-500 text-sm`]),"slot-scope":`{ hitsPerPage, nbPages, nbHits, page }`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Sida `+z(e.page+1)+` av `+z(e.nbPages)+` med `+z(e.hitsPerPage)+` resultat per sida `,1),t[18]||(t[18]=y(`br`,null,null,-1)),y(`span`,{class:R(e.nbHits),ref:`posts`},z(e.nbHits),3),t[19]||(t[19]=w(` resultat totalt `,-1))],64)):(B(),_(O,{key:1},[w(` Page `+z(e.page+1)+` of `+z(e.nbPages)+` with `+z(e.hitsPerPage)+` results per page `,1),t[20]||(t[20]=y(`br`,null,null,-1)),y(`span`,{class:R(e.nbHits),ref:`posts`},z(e.nbHits),3),t[21]||(t[21]=w(` results in total `,-1))],64))],2)]),_:1}),L(f,null,{default:u(()=>[y(`div`,$m,[y(`div`,eh,[e.isFirstPage?I(``,!0):(B(),_(`a`,{key:0,href:e.createURL(e.currentRefinement-1),onClick:t[9]||(t[9]=h(t=>(e.refine(e.currentRefinement-1),a.toTop()),[`prevent`])),class:`-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`},[t[22]||(t[22]=y(`svg`,{class:`mr-3 h-5 w-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 20 20`},[y(`path`,{"fill-rule":`evenodd`,d:`M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z`,"clip-rule":`evenodd`})],-1)),i.locale==`sv`?(B(),_(O,{key:0},[w(` Föregående `)],64)):(B(),_(O,{key:1}
72,[w(` Previous `)],64))],8,th))]),y(`div`,nh,[(B(!0),_(O,null,U(n.pages,t=>(B(),_(`a`,{key:t,href:e.createURL(t),class:R([[t==e.currentRefinement&&i.theme==`blue`?`border-blue-500 font-medium`:``,t==e.currentRefinement&&i.theme==`dark`?`border-red-500 font-medium`:``],`-mt-px border-t-2 border-transparent pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`]),onClick:h(n=>(e.refine(t),a.toTop()),[`prevent`])},z(t+1),11,rh))),128))]),y(`div`,ih,[!e.isLastPage&&e.nbPages>0?(B(),_(`a`,{key:0,href:e.createURL(e.currentRefinement+1),onClick:t[10]||(t[10]=h(t=>(e.refine(e.currentRefinement+1),a.toTop()),[`prevent`])),class:`-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Nästa `)],64)):(B(),_(O,{key:1},[w(` Next `)],64)),t[23]||(t[23]=y(`svg`,{class:`ml-3 h-5 w-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 20 20`},[y(`path`,{"fill-rule":`evenodd`,d:`M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z`,"clip-rule":`evenodd`})],-1))],8,ah)):I(``,!0)])])]),_:1})],512),[[j,i.view==`posts`]])]),_:1},8,[`search-client`]),M(y(`div`,oh,[L(p,{"search-client":i.searchClient,"index-name":`pages`},{default:u(()=>[L(o,{hitsPerPage:6,query:i.query,filters:i.locale+` AND published`},null,8,[`query`,`filters`]),L(l,null,{default:u(()=>[y(`template`,sh,[e.hits.length>0?(B(),P(c,{key:0,"escape-html":!1,"class-names":{"ais-Hits":``,"ais-Hits-list":`grid gap-12 lg:grid-cols-2 lg:col-gap-5 lg:row-gap-12`,"ais-Hits-item":``}},{default:u(()=>[y(`template`,ch,[y(`a`,{href:`/`+i.locale+`/`+e.item.slug,class:`block`},[y(`h3`,uh,z(e.item.title),1),y(`p`,dh,z(e.item.description),1)],8,lh),y(`div`,fh,[y(`a`,{href:`/`+i.locale+`/`+e.item.slug,class:R([[i.theme==`blue`?`text-blue-600 hover:text-blue-500`:``,i.theme==`dark`?`text-red-600 hover:text-red-500`:``],`text-base leading-6 font-semibold transition ease-in-out duration-150`])},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Till sidan `)],64)):(B(),_(O,{key:1},[w(` To page `)],64))],10,ph)])])]),_:1})):(B(),_(`div`,mh,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Inga sidor hittades `)],64)):(B(),_(O,{key:1},[w(` No pages found `)],64))]))])]),_:1}),L(d,null,{default:u(()=>[y(`p`,{class:R([[e.nbHits>0?``:`hidden`],`mt-16 text-center text-gray-500 text-sm`]),"slot-scope":`{ hitsPerPage, nbPages, nbHits, page }`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Sida `+z(e.page+1)+` av `+z(e.nbPages)+` med `+z(e.hitsPerPage)+` resultat per sida `,1),t[24]||(t[24]=y(`br`,null,null,-1)),y(`span`,{class:R(e.nbHits),ref:`pages`},z(e.nbHits),3),t[25]||(t[25]=w(` resultat totalt `,-1))],64)):(B(),_(O,{key:1},[w(` Page `+z(e.page+1)+` of `+z(e.nbPages)+` with `+z(e.hitsPerPage)+` results per page `,1),t[26]||(t[26]=y(`br`,null,null,-1)),y(`span`,{class:R(e.nbHits),ref:`pages`},z(e.nbHits),3),t[27]||(t[27]=w(` results in total `,-1))],64))],2)]),_:1}),L(f,null,{default:u(()=>[y(`div`,hh,[y(`div`,gh,[e.isFirstPage?I(``,!0):(B(),_(`a`,{key:0,href:e.createURL(e.currentRefinement-1),onClick:t[11]||(t[11]=h(t=>(e.refine(e.currentRefinement-1),a.toTop()),[`prevent`])),class:`-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`},[t[28]||(t[28]=y(`svg`,{class:`mr-3 h-5 w-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 20 20`},[y(`path`,{"fill-rule":`evenodd`,d:`M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z`,"clip-rule":`evenodd`})],-1)),i.locale==`sv`?(B(),_(O,{key:0},[w(` Föregående `)],64)):(B(),_(O,{key:1}
72,[w(` Previous `)],64))],8,_h))]),y(`div`,vh,[(B(!0),_(O,null,U(n.pages,t=>(B(),_(`a`,{key:t,href:e.createURL(t),class:R([[t==e.currentRefinement&&i.theme==`blue`?`border-blue-500 font-medium`:``,t==e.currentRefinement&&i.theme==`dark`?`border-red-500 font-medium`:``],`-mt-px border-t-2 border-transparent pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`]),onClick:h(n=>(e.refine(t),a.toTop()),[`prevent`])},z(t+1),11,yh))),128))]),y(`div`,bh,[!e.isLastPage&&e.nbPages>0?(B(),_(`a`,{key:0,href:e.createURL(e.currentRefinement+1),onClick:t[12]||(t[12]=h(t=>(e.refine(e.currentRefinement+1),a.toTop(),e.window.scrollTo(0,0)),[`prevent`])),class:`-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Nästa `)],64)):(B(),_(O,{key:1},[w(` Next `)],64)),t[29]||(t[29]=y(`svg`,{class:`ml-3 h-5 w-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 20 20`},[y(`path`,{"fill-rule":`evenodd`,d:`M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z`,"clip-rule":`evenodd`})],-1))],8,xh)):I(``,!0)])])]),_:1})]),_:1},8,[`search-client`])],512),[[j,i.view==`pages`]]),M(y(`div`,Sh,[L(p,{"search-client":i.searchClient,"index-name":`documents`},{default:u(()=>[L(o,{hitsPerPage:6,query:i.query,filters:i.locale+` AND published`},null,8,[`query`,`filters`]),L(l,null,{default:u(()=>[y(`template`,Ch,[e.hits.length>0?(B(),P(c,{key:0,"escape-html":!1,"class-names":{"ais-Hits":``,"ais-Hits-list":`grid gap-12 lg:grid-cols-2 lg:col-gap-5 lg:row-gap-12`,"ais-Hits-item":``}},{default:u(()=>[y(`template`,wh,[y(`a`,{href:`/`+i.locale+`/document/`+e.item.slug,class:`block`},[y(`h3`,Eh,z(e.item.title),1),y(`p`,Dh,z(e.item.description),1)],8,Th),y(`div`,Oh,[y(`a`,{href:`/`+i.locale+`/document/`+e.item.slug,class:R([[i.theme==`blue`?`text-blue-600 hover:text-blue-500`:``,i.theme==`dark`?`text-red-600 hover:text-red-500`:``],`text-base leading-6 font-semibold transition ease-in-out duration-150`])},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Till dokumentet `)],64)):(B(),_(O,{key:1},[w(` To document `)],64))],10,kh)])])]),_:1})):(B(),_(`div`,Ah,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Inga dokument hittades `)],64)):(B(),_(O,{key:1},[w(` No document found `)],64))]))])]),_:1}),L(d,null,{default:u(()=>[y(`p`,{class:R([[e.nbHits>0?``:`hidden`],`mt-16 text-center text-gray-500 text-sm`]),"slot-scope":`{ hitsPerPage, nbPages, nbHits, page }`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Sida `+z(e.page+1)+` av `+z(e.nbPages)+` med `+z(e.hitsPerPage)+` resultat per sida `,1),t[30]||(t[30]=y(`br`,null,null,-1)),y(`span`,{class:R(e.nbHits),ref:`documents`},z(e.nbHits),3),t[31]||(t[31]=w(` resultat totalt `,-1))],64)):(B(),_(O,{key:1},[w(` Page `+z(e.page+1)+` of `+z(e.nbPages)+` with `+z(e.hitsPerPage)+` results per page `,1),t[32]||(t[32]=y(`br`,null,null,-1)),y(`span`,{class:R(e.nbHits),ref:`documents`},z(e.nbHits),3),t[33]||(t[33]=w(` results in total `,-1))],64))],2)]),_:1}),L(f,null,{default:u(()=>[y(`div`,jh,[y(`div`,Mh,[e.isFirstPage?I(``,!0):(B(),_(`a`,{key:0,href:e.createURL(e.currentRefinement-1),onClick:t[13]||(t[13]=h(t=>(e.refine(e.currentRefinement-1),a.toTop()),[`prevent`])),class:`-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`},[t[34]||(t[34]=y(`svg`,{class:`mr-3 h-5 w-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 20 20`},[y(`path`,{"fill-rule":`evenodd`,d:`M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z`,"clip-rule":`evenodd`})],-1)),i.locale==`sv`?(B(),_(O,{key:0},[w(` Föregående `)],64)):(B(),_(O,{key:1}
72,[w(` Previous `)],64))],8,Nh))]),y(`div`,Ph,[(B(!0),_(O,null,U(n.pages,t=>(B(),_(`a`,{key:t,href:e.createURL(t),class:R([[t==e.currentRefinement&&i.theme==`blue`?`border-blue-500 font-medium`:``,t==e.currentRefinement&&i.theme==`dark`?`border-red-500 font-medium`:``],`-mt-px border-t-2 border-transparent pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`]),onClick:h(n=>(e.refine(t),a.toTop()),[`prevent`])},z(t+1),11,Fh))),128))]),y(`div`,Ih,[!e.isLastPage&&e.nbPages>0?(B(),_(`a`,{key:0,href:e.createURL(e.currentRefinement+1),onClick:t[14]||(t[14]=h(t=>(e.refine(e.currentRefinement+1),a.toTop(),e.window.scrollTo(0,0)),[`prevent`])),class:`-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400 transition ease-in-out duration-150`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Nästa `)],64)):(B(),_(O,{key:1},[w(` Next `)],64)),t[35]||(t[35]=y(`svg`,{class:`ml-3 h-5 w-5 text-gray-400`,fill:`currentColor`,viewBox:`0 0 20 20`},[y(`path`,{"fill-rule":`evenodd`,d:`M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z`,"clip-rule":`evenodd`})],-1))],8,Lh)):I(``,!0)])])]),_:1})]),_:1},8,[`search-client`])],512),[[j,i.view==`documents`]]),M(y(`div`,Rh,[y(`div`,zh,[y(`ul`,null,[(B(!0),_(O,null,U(i.teams,(e,t)=>(B(),_(`li`,{class:R(t==0?``:`border-t border-gray-200`)},[y(`a`,{href:i.tournamentYear+`/teams/`+e.id,class:`block`},[y(`div`,Vh,[y(`div`,Hh,[y(`div`,null,[y(`div`,Uh,[w(z(e.name)+` `,1),y(`span`,Wh,z(e.nation.name),1)]),y(`div`,Gh,[y(`div`,Kh,[L(m,{icon:`trophy`,size:4,class:`flex-shrink-0 mr-1.5 text-gray-400`}),y(`span`,null,z(e.categoryName),1)])])])]),y(`div`,qh,[y(`div`,Jh,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Till laget `)],64)):(B(),_(O,{key:1},[w(` To team `)],64))])])])],8,Bh)],2))),256))])]),i.teams.length==0?(B(),_(`div`,Yh,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Inga lag hittades `)],64)):(B(),_(O,{key:1},[w(` No teams found `)],64))])):I(``,!0)],512),[[j,i.view==`teams`]]),M(y(`div`,Xh,[Object.keys(i.help).length===0?(B(),_(`div`,Zh,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Inga artiklar hittades `)],64)):(B(),_(O,{key:1},[w(` No articles found `)],64))])):(B(),_(`div`,Qh,[i.help.articles.items.length===0?(B(),_(`div`,$h,[i.locale==`sv`?(B(),_(O,{key:0},[w(` Inga artiklar hittades `)],64)):(B(),_(O,{key:1},[w(` No articles found `)],64))])):I(``,!0),(B(!0),_(O,null,U(i.help.articles.items,e=>(B(),_(`div`,null,[y(`a`,{href:e.url,class:`block`},[y(`h3`,tg,z(e.name),1),y(`p`,ng,z(e.preview),1)],8,eg),y(`div`,rg,[y(`a`,{href:e.url,class:`text-base leading-6 font-semibold text-blue-600 hover:text-blue-500 transition ease-in-out duration-150`},[i.locale==`sv`?(B(),_(O,{key:0},[w(` Till artikeln `)],64)):(B(),_(O,{key:1},[w(` To article `)],64))],8,ig)])]))),256))]))],512),[[j,i.view==`help`]])])}var og=G(wm,[[`render`,ag]]);c();var sg={name:`item-posts`,props:{title:String,link:String,embed:{type:Boolean,default:!1}},data(){return{posts:[],loading:!0,color:config.color,secondaryColor:config.secondaryColor,lang:config.locale}},computed:{emptyLabel(){return this.lang===`sv`?`Inga artiklar just nu.`:`No articles right now.`},panelClass(){return this.embed?`bg-transparent px-5 py-7 sm:px-8 sm:py-9`:`border-t border-gray-100/80 bg-gray-50 px-4 py-6 sm:border-t-0 sm:py-8 sm:px-6 lg:px-8 xl:pl-10`},rowLinkClass(){return this.embed?`hover:bg-white/80`:`hover:bg-gray-100/90`},footerClass(){return this.embed?`border-t border-gray-200/70`:`border-t border-gray-200/80`}},mounted(){let e=this;axios.get(`/public/api/`+this.lang+`/posts/3/0`).then(function(t){e.posts=t.data||[],e.loading=!1,e.$nextTick(function(){setTimeout(function(){(0,Ga.default)(`.menu-posts-panel .lozad`,{loaded:function(e){e.classList.remove(`load`),e.classList.add(`fade`)}}).observe()},50)})}).catch(function(){e.posts=[],e.loading=!1})},methods:{introSnippet(e){return!e||e.length<=76?e:e.substring(0,76)+` â¦`}}},cg={class:`text-xs font-semibold uppercase tracking-wider text-gray-500`},lg={class:`relative mt-4 min-h-[168px]`},ug={key:0,class:`flex flex-col gap-4`,"aria-busy":`true`,"aria-label":`Laddar`},dg={key:0,class:`text-sm text-gray-500`},fg={key:1,class:`flex flex-col gap-1 sm:gap-2`},pg=[`href`],mg={class:`menu-posts-thumb lozadimg relative aspect-[2/1] w-28 shrink-0 overflow-hidden rounded-xl bg-gray-100 shadow-inner ring-1 ring-gray-200/90 sm:w-32`},hg=[`data-src`,`alt`],gg={class:`min-w-0 flex-1 space-y-1`},_g={class:`text-[15px] font-semibold leading-snug text-gray-900 transition group-hover:text-gray-950 sm:text-base sm:leading-6`},vg={key:0,class:`line-clamp-2 text-sm leading-5 text-gray-500`},yg=[`href`];function bg(e,t,n,r,i,a){let o=V(`icon`);return B(),_(`div`,{class:R([a.panelClass,`menu-posts-panel flex flex-col`])},[y(`h3`,cg,z(n.title),1),y(`div`,lg,[i.loading?(B(),_(`div`,ug,[(B(),_(O,null,U(3,e=>y(`div`,{key:`sk-`+e,class:`flex animate-pulse gap-3 sm:gap-4`},[...t[0]||(t[0]=[Xe(`<div class="menu-posts-thumb relative aspect-[2/1] w-28 shrink-0 rounded-xl bg-gray-200 sm:w-32" data-v-e9a06af5></div><div class="min-w-0 flex-1 space-y-2.5 pt-1" data-v-e9a06af5><div class="h-4 max-w-full rounded-md bg-gray-200" data-v-e9a06af5></div><div class="h-3 max-w-[92%] rounded-md bg-gray-200" data-v-e9a06af5></div><div class="h-3 max-w-[70%] rounded-md bg-gray-200 sm:hidden" data-v-e9a06af5></div></div>`,2)])])),64))])):(B(),_(O,{key:1}
72,[i.posts.length?(B(),_(`ul`,fg,[(B(!0),_(O,null,U(i.posts,e=>(B(),_(`li`,{key:e.slug||e.id,class:`flow-root`},[y(`a`,{href:`/`+i.lang+`/post/`+e.slug,class:R([a.rowLinkClass,`group flex gap-3 rounded-xl p-2 transition sm:gap-4 sm:p-3`])},[y(`div`,mg,[y(`img`,{class:`lozad load absolute inset-0 h-full w-full object-cover`,"data-src":e.imgThumb,alt:e.imgattribution||``},null,8,hg),e.videoPost==`yes`?(B(),_(`span`,{key:0,class:R([`bg-`+i.secondaryColor+`-500 text-`+i.secondaryColor+`-100`,`z-10 absolute right-1.5 top-1.5 inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium leading-5 shadow-sm sm:right-2 sm:top-2 sm:px-2.5 sm:text-sm`])},[L(o,{class:`mr-1`,size:4,icon:`play`}),t[1]||(t[1]=w(`Play `,-1))],2)):I(``,!0)]),y(`div`,gg,[y(`h4`,_g,z(e.title),1),e.intro?(B(),_(`p`,vg,z(a.introSnippet(e.intro)),1)):I(``,!0)])],10,pg)]))),128))])):(B(),_(`p`,dg,z(a.emptyLabel),1))],64))]),y(`div`,{class:R([a.footerClass,`mt-6 pt-4 text-sm font-medium leading-5`])},[y(`a`,{href:`/`+i.lang+`/blog`,class:R([`text-`+i.color+`-600 hover:text-`+i.color+`-500`,`inline-flex items-center gap-1 transition ease-in-out duration-150`])},[w(z(n.link)+` `,1),t[2]||(t[2]=y(`span`,{"aria-hidden":`true`},`â`,-1))],10,yg)],2)],2)}var xg=G(sg,[[`render`,bg],[`__scopeId`,`data-v-e9a06af5`]]);function Sg(e){let t=Number(e==null?void 0:e.limit);return Number.isFinite(t)&&t>=1?Math.min(24,Math.floor(t)):3}c();var Cg={name:`category-posts`,props:[`item`],components:{Loading:qe},data(){return{posts:[],color:config.color,secondaryColor:config.secondaryColor,lang:config.locale,loading:!0}},computed:{categoryId(){let e=this.item&&this.item.category;if(e==null||e===``)return null;let t=Number(e);return Number.isFinite(t)&&t>0?t:null}},mounted(){var e=this;let t=Sg(this.item),n=`/public/api/`+this.lang+`/posts/`+t+`/0`,r=this.categoryId==null?n:n+`/`+this.categoryId;axios.get(r).then(function(t){e.posts=t.data,e.loading=!1,setTimeout(function(){(0,Ga.default)(`.lozad`,{loaded:function(e){e.classList.remove(`load`),e.classList.add(`fade`)}}).observe()},50)}).catch(function(e){console.log(e)})},methods:{postCategories(e){var t;return Array.isArray(e==null?void 0:e.categories)&&e.categories.length?e.categories.filter(e=>e&&e.name):e!=null&&(t=e.category)!=null&&t.name?[e.category]:[]},categoryNames(e){return this.postCategories(e).map(e=>e.name).join(` · `)},aspectRatio(e){return e.imgratio*100},style(e){var t={};return t.paddingBottom=`${this.aspectRatio(e)}%`,t},imgstyle(){var e={};return this.item.height&&(e.height=this.item.height+`px`),e},date(e){if(e){if(this.lang==`sv`){var t=new Date(e);return t.toLocaleDateString(`sv-SE`,{day:`2-digit`,month:`short`,year:`numeric`})}var t=new Date(e);return t.toLocaleDateString(`en-GB`,{day:`2-digit`,month:`short`,year:`numeric`})}}}},wg={key:1,class:`r mt-6 grid gap-5 max-w-lgd mx-auto md:grid-cols-3 lg:max-w-none`},Tg={class:`imgStyle img lozadimg w-full`},Eg=[`data-src`,`data-srcset`,`alt`],Dg={class:`flex-1 bg-white p-6 flex flex-col justify-between`},Og={class:`flex-1`},kg=[`href`],Ag=[`href`],jg={class:`mt-2 text-xl leading-7 font-semibold text-gray-900`},Mg={class:`mt-3 text-base leading-6 text-gray-500`},Ng={class:`mt-6 flex items-center`},Pg={class:`text-sm leading-5 text-gray-500`},Fg=[`datetime`,`innerHTML`];function Ig(e,t,n,r,i,a){let o=V(`Loading`),s=V(`icon`);return B(),_(`div`,null,[i.loading?(B(),P(o,{key:0,class:`py-8`})):I(``,!0),i.loading?I(``,!0):(B(),_(`div`,wg,[(B(!0),_(O,null,U(i.posts,e=>(B(),_(`div`,{key:e.id,class:`flex flex-col rounded-2xl ring-1 ring-gray-200 shadow overflow-hidden`},[y(`div`,Tg,[y(`img`,{class:`lozad load w-full self-center object-cover`,"data-src":e.imgHigh,"data-srcset":e.imgThumb+` 1x, `+e.imgLow+` 2x, `+e.img+` 3x, `+e.imgHigh+` 4x`,alt:e.imgattribution},null,8,Eg),e.videoPost==`yes`?(B(),_(`span`,{key:0,class:R([`bg-`+i.secondaryColor+`-500 text-`+i.secondaryColor+`-100`,`z-10 absolute top-0 right-0 m-2 inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium leading-5`])},[L(s,{class:`mr-1`,size:4,icon:`play`}),t[0]||(t[0]=w(`Play `,-1))],2)):I(``,!0)]),y(`div`,Dg,[y(`div`,Og,[a.postCategories(e).length?(B(),_(`p`,{key:0,class:R(`text-sm leading-5 font-medium text-`+i.color+`-500`)},[y(`a`,{href:`/`+i.lang+`/post/`+e.slug},z(a.categoryNames(e)),9,kg)],2)):I(``,!0),y(`a`,{href:`/`+i.lang+`/post/`+e.slug,class:`block`}
72,[y(`h3`,jg,z(e.title),1),y(`p`,Mg,z(e.intro),1)],8,Ag)]),y(`div`,Ng,[y(`div`,Pg,[y(`time`,{datetime:a.date(e.publish),innerHTML:a.date(e.publish)},null,8,Fg)])])])]))),128))]))])}var Lg=G(Cg,[[`render`,Ig]]);c();var Rg={name:`ItemTestimonials`,props:[`item`],data(){return{slideIndex:0}},computed:{headingId(){return this.item&&this.item.id!=null?`testimonial-heading-${this.item.id}`:`testimonial-heading`},hasHeading(){return!!(this.item&&(this.item.text||this.item.title))},isFullscreen(){return this.item&&this.item.variant===`fullscreen`},quotes(){var e;return Array.isArray((e=this.item)==null?void 0:e.list)?this.item.list:[]},activeQuote(){return this.quotes[this.slideIndex]||this.quotes[0]||null},fullscreenBgUrl(){var e;let t=this.activeQuote,n=(t==null?void 0:t.img)||((e=this.item)==null?void 0:e.img);return n==null||String(n).trim()===``?null:String(n).trim()},fullscreenLink(){let e=this.activeQuote;return e&&this.hasLink(e)?e.link:this.hasLink(this.item)?this.item.link:null},fullscreenLinkText(){let e=this.activeQuote;return e&&this.hasLink(e)?this.linkTextFor(e):this.hasLink(this.item)?this.linkTextFor(this.item):``}},methods:{hasLink(e){let t=e==null?void 0:e.link;return t!=null&&String(t).trim()!==``},linkTextFor(e){let t=e==null?void 0:e.linkText;return t!=null&&String(t).trim()!==``?String(t).trim():this.$t(`admin.page_builder.site_preview_read_more`)},avatarAlt(e){return e&&e.title?String(e.title):``},goToQuote(e){let t=this.quotes.length;t<1||(this.slideIndex=(e%t+t)%t)},prevQuote(){this.goToQuote(this.slideIndex-1)},nextQuote(){this.goToQuote(this.slideIndex+1)}}},zg=[`aria-label`],Bg=[`src`],Vg={class:`relative z-10 flex min-h-[28rem] w-full items-end py-16 lg:min-h-[32rem] lg:py-20`},Hg={class:`ml-auto max-w-xl text-left`},Ug={key:0,class:`mb-4 text-xs font-bold uppercase tracking-[0.2em] text-amber-400`},Wg={key:1},Gg={class:`text-balance text-2xl font-bold italic leading-snug text-white sm:text-3xl md:text-4xl`},Kg={key:0,class:`mt-6 text-sm font-medium text-slate-300`},qg={key:0},Jg=[`href`],Yg={key:3,class:`mt-8 flex flex-wrap items-center gap-3`},Xg=[`aria-label`],Zg=[`aria-label`],Qg=[`aria-selected`,`aria-label`,`onClick`],$g=[`aria-label`],e_=[`aria-labelledby`],t_={class:`w-full min-w-0 max-w-full`},n_={key:0,class:`mx-auto max-w-2xl min-w-0 text-center`},r_=[`id`],i_={class:`grid grid-cols-1 gap-8 text-sm sm:grid-cols-2 sm:gap-x-6 lg:grid-cols-3 lg:gap-x-8`},a_={class:`min-w-0 border-l-4 border-blue-500 pl-5`},o_={class:`break-words text-[0.9375rem] font-medium leading-7 text-slate-800 sm:text-base sm:leading-7`},s_={class:`mt-6 flex min-w-0 items-center gap-4 border-t border-slate-100 pt-5`},c_=[`src`,`alt`],l_={class:`min-w-0 flex-1`},u_={class:`truncate font-semibold text-slate-900`},d_={key:0,class:`truncate text-sm text-slate-600`},f_=[`href`];function p_(e,t,n,r,i,a){return a.isFullscreen?(B(),_(`section`,{key:0,class:R([`relative w-full min-h-[28rem] overflow-hidden bg-slate-950 sm:min-h-[32rem]`,[n.item.marginTop||``,n.item.marginBottom||``]]),"aria-label":n.item.title||`Story`},[a.fullscreenBgUrl?(B(),_(`img`,{key:a.fullscreenBgUrl,src:a.fullscreenBgUrl,alt:``,class:`absolute inset-0 h-full w-full object-cover transition-opacity duration-500`,loading:`lazy`,decoding:`async`},null,8,Bg)):I(``,!0),t[5]||(t[5]=y(`div`,{class:`pointer-events-none absolute inset-0 bg-black/55`,"aria-hidden":`true`},null,-1)),y(`div`,Vg,[y(`div`,Hg,[n.item.text?(B(),_(`p`,Ug,z(n.item.text),1)):I(``,!0),a.activeQuote?(B(),_(`blockquote`,Wg,[y(`p`,Gg,` â`+z(a.activeQuote.body)+`â `,1),a.activeQuote.title?(B(),_(`footer`,Kg,[w(` â `+z(a.activeQuote.title),1),a.activeQuote.handle?(B(),_(`span`,qg,`, `+z(a.activeQuote.handle),1)):I(``,!0)])):I(``,!0)])):I(``,!0),a.fullscreenLink?(B(),_(`a`,{key:2,href:a.fullscreenLink,class:`mt-6 inline-flex max-w-full items-center gap-1.5 text-sm font-semibold text-amber-400 transition hover:text-amber-300`},[w(z(a.fullscreenLinkText)+` `,1),t[2]||(t[2]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`h-4 w-4 shrink-0`,"aria-hidden":`true`},[y(`polyline`,{points:`9 18 15 12 9 6`})],-1))],8,Jg)):I(``,!0),a.quotes.length>1?(B(),_(`div`,Yg,[y(`button`,{type:`button`,class:`inline-flex size-9 items-center justify-center rounded-full border border-white/25 text-white transition hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400`,"aria-label":e.$t(`admin.page_builder.site_preview_testimonial_prev`),onClick:t[0]||(t[0]=(...e)=>a.prevQuote&&a.prevQuote(...e))},[...t[3]||(t[3]=[y(`svg`,{class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"aria-hidden":`true`},[y(`path`,{d:`M15 18l-6-6 6-6`})],-1)])],8,Xg),y(`div`,{class:`flex gap-2`,role:`tablist`,"aria-label":e.$t(`admin.page_builder.site_preview_testimonial_pick`)}
72,[(B(!0),_(O,null,U(a.quotes,(t,n)=>(B(),_(`button`,{key:n,type:`button`,role:`tab`,class:R([`size-2.5 rounded-full transition`,n===i.slideIndex?`bg-amber-400`:`bg-white/30 hover:bg-white/50`]),"aria-selected":n===i.slideIndex,"aria-label":e.$t(`admin.page_builder.site_preview_testimonial_quote`,{current:n+1,total:a.quotes.length}),onClick:e=>a.goToQuote(n)},null,10,Qg))),128))],8,Zg),y(`button`,{type:`button`,class:`inline-flex size-9 items-center justify-center rounded-full border border-white/25 text-white transition hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400`,"aria-label":e.$t(`admin.page_builder.site_preview_testimonial_next`),onClick:t[1]||(t[1]=(...e)=>a.nextQuote&&a.nextQuote(...e))},[...t[4]||(t[4]=[y(`svg`,{class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"aria-hidden":`true`},[y(`path`,{d:`M9 18l6-6-6-6`})],-1)])],8,$g)])):I(``,!0)])])],10,zg)):(B(),_(`section`,{key:1,class:R([n.item.marginTop?n.item.marginTop:``,n.item.marginBottom?n.item.marginBottom:``,`w-full min-w-0 max-w-full`]),"aria-labelledby":a.hasHeading?a.headingId:void 0},[y(`div`,t_,[a.hasHeading?(B(),_(`header`,n_,[n.item.text?(B(),_(`p`,{key:0,id:a.headingId,class:`text-sm font-semibold uppercase tracking-wide text-blue-700`},z(n.item.text),9,r_)):I(``,!0),n.item.title?(B(),_(`h2`,{key:1,class:R([`break-words text-3xl font-bold tracking-tight text-slate-900 sm:text-4xl`,n.item.text?`mt-2`:``])},z(n.item.title),3)):I(``,!0)])):I(``,!0),y(`div`,{class:R([`mx-auto w-full min-w-0 max-w-2xl sm:mt-16 lg:mx-0 lg:max-w-none`,a.hasHeading?`mt-12`:`mt-0`])},[y(`div`,i_,[(B(!0),_(O,null,U(n.item.list,(e,n)=>(B(),_(`figure`,{key:e.handle||`t-${n}`,class:`min-w-0 rounded-2xl border border-slate-200/90 bg-white p-6 shadow-sm ring-1 ring-slate-900/[0.04] transition-shadow duration-200 hover:shadow-md`},[y(`blockquote`,a_,[y(`p`,o_,` â`+z(e.body)+`â `,1)]),y(`figcaption`,s_,[e.img?(B(),_(`img`,{key:0,class:`h-11 w-11 shrink-0 rounded-full bg-slate-100 object-cover ring-2 ring-white shadow-sm outline outline-1 outline-slate-200/70`,src:e.img,alt:a.avatarAlt(e),loading:`lazy`,decoding:`async`},null,8,c_)):I(``,!0),y(`div`,l_,[y(`div`,u_,z(e.title),1),e.handle?(B(),_(`div`,d_,z(e.handle),1)):I(``,!0)])]),a.hasLink(e)?(B(),_(`a`,{key:0,href:e.link,class:`mt-4 inline-flex max-w-full items-center gap-1.5 text-sm font-semibold text-blue-600 transition hover:text-blue-800`},[w(z(a.linkTextFor(e))+` `,1),t[6]||(t[6]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`h-4 w-4 shrink-0`,"aria-hidden":`true`},[y(`polyline`,{points:`9 18 15 12 9 6`})],-1))],8,f_)):I(``,!0)]))),128))])],2)])],10,e_))}var m_=G(Rg,[[`render`,p_]]),h_={blue:{bar:`from-blue-600 to-blue-400`,ring:`text-blue-600`,top:`from-blue-500/95 via-blue-400/55 to-transparent`,iconWell:`border-blue-200/90 bg-gradient-to-br from-blue-50 to-white shadow-sm dark:border-blue-700/50 dark:from-blue-950/50 dark:to-slate-900/80`,softText:`text-blue-700 dark:text-blue-300`},emerald:{bar:`from-emerald-600 to-emerald-400`,ring:`text-emerald-600`,top:`from-emerald-500/95 via-emerald-400/45 to-transparent`,iconWell:`border-emerald-200/90 bg-gradient-to-br from-emerald-50 to-white shadow-sm dark:border-emerald-700/50 dark:from-emerald-950/40 dark:to-slate-900/80`,softText:`text-emerald-800 dark:text-emerald-300`},amber:{bar:`from-amber-500 to-amber-400`,ring:`text-amber-600`,top:`from-amber-500/95 via-amber-400/50 to-transparent`,iconWell:`border-amber-200/90 bg-gradient-to-br from-amber-50 to-white shadow-sm dark:border-amber-700/50 dark:from-amber-950/40 dark:to-slate-900/80`,softText:`text-amber-900 dark:text-amber-300`},violet:{bar:`from-violet-600 to-violet-400`,ring:`text-violet-600`,top:`from-violet-500/95 via-violet-400/45 to-transparent`,iconWell:`border-violet-200/90 bg-gradient-to-br from-violet-50 to-white shadow-sm dark:border-violet-700/50 dark:from-violet-950/40 dark:to-slate-900/80`,softText:`text-violet-800 dark:text-violet-300`},slate:{bar:`from-slate-600 to-slate-400`,ring:`text-slate-600`,top:`from-slate-500/90 via-slate-400/40 to-transparent`,iconWell:`border-slate-200/90 bg-gradient-to-br from-slate-50 to-white shadow-sm dark:border-slate-600 dar
72k:from-slate-800/80 dark:to-slate-900/80`,softText:`text-slate-700 dark:text-slate-300`}};function g_(e){if(e==null||e===``)return null;let t=String(e).trim();if(t===``)return null;let n=t.split(/[,;]+/).map(e=>e.trim()).filter(Boolean).map(e=>Number.parseFloat(e.replace(`,`,`.`))).filter(e=>Number.isFinite(e));return n.length<2?null:n}function __(e){if(!e||e.length<2)return null;let t=Math.min(...e),n=Math.max(...e)-t||1,r=e.map((r,i)=>{let a=1+(e.length===1?49:i/(e.length-1)*98),o=24-(r-t)/n*20;return`${a.toFixed(2)},${o.toFixed(2)}`}),i=r.join(` `),a=1 .toFixed(2),o=99 .toFixed(2),s=24 .toFixed(2);return{polyline:i,areaPath:`M ${a},${s} L ${r.join(` L `)} L ${o},${s} Z`}}var v_=`text-slate-900 dark:text-slate-50`,y_=`text-slate-500 dark:text-slate-500`;function b_(e,t=v_){let n=e==null?``:String(e).trim();return n===``?t:n}c();function x_(e){if(e==null)return null;let t=String(e).replace(/\u00A0/g,` `).trim();if(t===``)return null;let n=t.replace(/\s/g,``);if(/^\d+\/\d+$/.test(n))return null;let r=t.match(/^(\D*)([\d\s]+(?:[.,]\d+)?)(\D*)$/);if(!r)return null;let i=r[1]||``,a=r[2].replace(/\s/g,``).replace(`,`,`.`),o=r[3]||``,s=parseFloat(a);if(!Number.isFinite(s))return null;let c=a.match(/\.(\d+)$/);return{target:s,decimals:c?c[1].length:0,prefix:i,suffix:o}}function S_(e,t){return t>0?e.toFixed(t).replace(`.`,`,`):Math.round(e).toLocaleString(`sv-SE`)}function C_(e,t){return`${e.prefix}${S_(t,e.decimals)}${e.suffix}`}var w_=2*Math.PI*14,T_={name:`ItemMetrics`,components:{icon:Ie},props:{item:{type:Object,required:!0}},data(){return{displayByIndex:{},io:null}},computed:{regionAriaLabel(){return this.item.regionAriaLabel||`Nyckeltal`},isStrip(){return this.item.presentation===`strip`},isDark(){return this.item.theme===`dark`},shouldAnimateCount(){return this.item.animateCount!==!1},gridClass(){let e=this.item,t=e.margin||(this.isStrip?`gap-4 md:gap-6`:`gap-6`);if(this.isStrip){let n=Array.isArray(e.list)?e.list.length:0,r=Math.min(Math.max(n,1),5),i={1:`sm:grid-cols-1`,2:`sm:grid-cols-2`}[Math.min(r,2)],a={1:`md:grid-cols-1`,2:`md:grid-cols-2`,3:`md:grid-cols-3`}[Math.min(r,3)],o={1:`lg:grid-cols-1`,2:`lg:grid-cols-2`,3:`lg:grid-cols-3`,4:`lg:grid-cols-4`,5:`lg:grid-cols-5`}[r];return[`grid w-full min-w-0 list-none p-0 m-0`,r>1?`grid-cols-2`:`grid-cols-1`,r>1?i:``,r>1?a:``,r>1?o:``,this.stripJustifyItemsClass,t,e.class||``,e.marginBottom||``,e.marginTop||``].filter(Boolean).join(` `)}return[`grid w-full min-w-0 list-none p-0 m-0 !items-stretch !justify-items-stretch`,e.class||``,e.marginBottom||``,e.marginTop||``,t,e.columns?`grid-cols-${e.columns}`:`grid-cols-1`,e.columnsmd?`md:grid-cols-${e.columnsmd}`:``,e.columnslg?`lg:grid-cols-${e.columnslg}`:``,e.columnsxl?`xl:grid-cols-${e.columnsxl}`:``].filter(Boolean).join(` `)},stripJustifyItemsClass(){let e=this.item,t={left:`start`,center:`center`,right:`end`},n=t[e.hAlign]||`stretch`,r=e.hAlignMd?t[e.hAlignMd]:null,i=e.hAlignLg?t[e.hAlignLg]:null;return[n===`start`?`justify-items-start`:``,n===`center`?`justify-items-center`:``,n===`end`?`justify-items-end`:``,n===`stretch`?`justify-items-stretch`:``,r===`start`?`md:justify-items-start`:``,r===`center`?`md:justify-items-center`:``,r===`end`?`md:justify-items-end`:``,i===`start`?`lg:justify-items-start`:``,i===`center`?`lg:justify-items-center`:``,i===`end`?`lg:justify-items-end`:``].filter(Boolean).join(` `)},stripItemClass(){return`min-w-0 w-full`},cardClass(){return this.isStrip?`metrics-cell relative flex min-h-0 w-full min-w-0 flex-col items-center justify-center px-2 py-3 text-center md:px-3`:`metrics-cell relative grid-cell flex h-full min-h-0 min-w-0 w-full max-w-full flex-1 flex-col overflow-hidden rounded-xl border border-slate-200/90 bg-white/90 p-3 shadow-sm ring-1 ring-slate-900/[0.04] transition-shadow duration-200 sm:p-4 hover:shadow-md dark:border-slate-600/70 dark:bg-slate-900/45 dark:ring-white/[0.06]`},bodyClass(){return this.isStrip?`relative z-0 flex min-h-0 min-w-0 w-full flex-col items-center gap-2 text-center`:`relative z-0 flex min-h-0 min-w-0 w-full flex-1 flex-row items-start gap-2.5 sm:items-stretch sm:gap-3 lg:gap-4`},sideColClass(){let e=this.item;return[`flex h-full min-h-0 shrink-0 flex-col items-center gap-2.5`,e.vAlign===`top`?`justify-start`:``,e.vAlign===`center`?`justify-center`:``,e.vAlign===`bottom`?`justify-end`:``,e.vAlignMd===`top`?`md:justify-start`:``,e.vAlignMd===`center`?`md:justify-center`:``,e.vAlignMd===`bottom`?`md:justify-end`:``,e.vAlignLg===`top`?`lg:justify-start`:``,e.vAlignLg===`center`?`lg:justify-center`:``,e.vAlignLg===`bottom`?`lg:justify-end`:``].filter(
72Boolean).join(` `)},contentClass(){let e=this.item;return[`flex w-full min-w-0 flex-1 flex-col`,e.hAlign===`left`?`items-start`:``,e.hAlign===`center`?`items-center`:``,e.hAlign===`right`?`items-end`:``,e.hAlignMd===`left`?`md:items-start`:``,e.hAlignMd===`center`?`md:items-center`:``,e.hAlignMd===`right`?`md:items-end`:``,e.hAlignLg===`left`?`lg:items-start`:``,e.hAlignLg===`center`?`lg:items-center`:``,e.hAlignLg===`right`?`lg:items-end`:``].filter(Boolean).join(` `)},stripIconColorClass(){let e=this.item.iconcolor;return e!=null&&String(e).trim()!==``?e:`text-amber-400`},labelClass(){let e=this.item,t=this.isStrip?this.isDark?`text-white`:`text-slate-600`:this.isDark?`text-slate-400`:`text-slate-600 dark:text-slate-400`,n=[`break-words text-balance`,b_(e.textColor,t)];return this.isStrip&&n.push(`mt-1 w-full text-center text-xs font-bold uppercase tracking-[0.14em]`),this.isStrip||n.push(e.hAlign===`center`?`text-center`:``,e.hAlignMd===`center`?`md:text-center`:``,e.hAlignLg===`center`?`lg:text-center`:``),n.push(e.textTextsize||``,e.textLeading||``,e.textTracking||``,e.textFont||``),n.filter(Boolean).join(` `)},valueClass(){let e=this.item,t=[`min-w-0 break-words font-semibold tracking-tight tabular-nums`];this.isStrip&&t.push(`w-full text-center text-2xl font-extrabold sm:text-3xl`);let n=this.isDark?`text-white`:`text-slate-900 dark:text-slate-50`;return t.push(b_(e.titleColor,n)),this.isStrip||t.push(e.hAlign===`center`?`text-center`:``,e.hAlignMd===`center`?`md:text-center`:``,e.hAlignLg===`center`?`lg:text-center`:``),t.push(e.titleTextsize||``,e.titleLeading||``,e.titleTracking||``,e.titleFont||``),t.filter(Boolean).join(` `)},subtitleClass(){let e=this.item;return[`mt-2 max-w-prose break-words`,b_(e.subtitleColor,y_),e.hAlign===`center`?`text-center`:``,e.hAlignMd===`center`?`md:text-center`:``,e.hAlignLg===`center`?`lg:text-center`:``,e.subtitleTextsize||``,e.subtitleLeading||``,e.subtitleTracking||``,e.subtitleFont||``].filter(Boolean).join(` `)}},watch:{"item.list":{deep:!0,handler(){this.resetDisplays(),this.$nextTick(()=>this.setupIntersection())}}},mounted(){this.resetDisplays(),this.$nextTick(()=>this.setupIntersection())},beforeUnmount(){this.io&&(this.io.disconnect(),this.io=null)},methods:{accent(e){return h_[e&&e.accent?String(e.accent):`blue`]||h_.blue},contentBlockClass(e){let t=[this.contentClass];return this.showRing(e)&&t.push(`pr-10 sm:pr-12 xl:pr-16`),t.filter(Boolean).join(` `)},sparkFillId(e){return`metric-spark-${this.item.id==null?`x`:this.item.id}-${e}`},labelId(e){return`metric-l-${this.item.id==null?`m`:this.item.id}-${e}`},progressWidth(e){let t=e.progress;if(t==null||t===``)return null;let n=Number(t);return Number.isFinite(n)?Math.min(100,Math.max(0,n)):null},progressAria(e){let t=this.progressWidth(e);return t==null?``:`Andel ${Math.round(t)} procent`},sparkAria(e){return e.label?this.$t(`admin.page_builder.site_preview_trend_for`,{label:e.label}):this.$t(`admin.page_builder.site_preview_trend_line`)},sparkGeom(e){return __(g_(e.sparkSeries)||[])},showSpark(e){return!e||e.visual!==`spark`?!1:this.sparkGeom(e)!=null},showRing(e){return!e||e.visual!==`ring`?!1:this.progressWidth(e)!=null},showBar(e){return!(!e||e.visual===`ring`||this.progressWidth(e)==null||e.visual===`spark`&&this.sparkGeom(e))},ringDash(e){let t=this.progressWidth(e);return t==null?`0 ${w_}`:`${t/100*w_} ${w_}`},trendArrow(e){return e.trend===`up`?`â`:e.trend===`down`?`â`:`â`},trendChipClass(e){let t=`inline-flex max-w-full shrink items-center gap-1 rounded-full border px-1.5 py-0.5 text-[0.65rem] font-semibold tabular-nums tracking-tight sm:px-2 sm:text-xs`;return e.trend===`up`?`${t} border-emerald-200/90 bg-emerald-50 text-emerald-800 dark:border-emerald-800/60 dark:bg-emerald-950/35 dark:text-emerald-200`:e.trend===`down`?`${t} border-rose-200/90 bg-rose-50 text-rose-800 dark:border-rose-800/60 dark:bg-rose-950/35 dark:text-rose-200`:`${t} border-slate-200/90 bg-slate-50 text-slate-700 dark:border-slate-600 dark:bg-slate-800/80 dark:text-slate-200`},displayValue(e,t){return Object.prototype.hasOwnProperty.call(this.displayByIndex,t)?this.displayByIndex[t]:e.value},resetDisplays(){this.displayByIndex={};let e=this.item.list||[],t=this.prefersReducedMotion();e.forEach((e,n)=>{let r=x_(e.value);!this.shouldAnimateCount||!r||t?this.displayByIndex[n]=e.value:this.displayByIndex[n]=C_(r,0)})},prefersReducedMotion(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches},setupIntersection(){var e,t;if(this.io&&(this.io.disconnect(),this.io=null),!this.shouldAnimateCount||this.prefersReducedMotion()){this.fillStaticDisplays();return}let n=(e=this.$el)==null||(t=e.querySelectorAll)==null?void 0:t.call(e,`.metrics-cell`);n&&n.length!==0&&(this.io=new IntersectionObserver(e=>
72{e.forEach(e=>{if(!e.isIntersecting)return;let t=e.target,n=t.getAttribute(`data-metric-idx`);if(n==null)return;let r=parseInt(n,10);Number.isNaN(r)||(this.io&&this.io.unobserve(t),this.runCountUp(r))})},{root:null,rootMargin:`0px 0px -8% 0px`,threshold:.15}),n.forEach((e,t)=>{e.setAttribute(`data-metric-idx`,String(t));let n=this.item.list[t];n&&x_(n.value)&&this.shouldAnimateCount&&!this.prefersReducedMotion()&&this.io.observe(e)}))},fillStaticDisplays(){(this.item.list||[]).forEach((e,t)=>{this.displayByIndex[t]=e.value})},runCountUp(e){let t=this.item.list[e];if(!t)return;let n=x_(t.value);if(!n){this.displayByIndex[e]=t.value;return}let r=performance.now(),i=a=>{let o=Math.min(1,(a-r)/1100),s=1-(1-o)**3,c=n.target*s;this.displayByIndex[e]=C_(n,c),o<1?requestAnimationFrame(i):this.displayByIndex[e]=t.value};requestAnimationFrame(i)}}},E_=[`aria-label`],D_={key:1,class:`pointer-events-none absolute right-2 top-2 z-20 sm:right-3 sm:top-3`,"aria-hidden":`true`},O_=[`stroke-dasharray`],k_=[`aria-describedby`],A_=[`id`],j_={class:`flex w-full min-w-0 flex-col-reverse gap-1`},M_=[`id`],N_={class:`flex w-full min-w-0 flex-wrap items-baseline gap-x-1.5 gap-y-1 sm:gap-x-2`},P_=[`aria-describedby`],F_={"aria-hidden":`true`,class:`select-none font-mono text-[0.7rem] leading-none`},I_={key:0,class:`min-w-0 break-words tabular-nums`},L_=[`aria-label`],R_=[`id`],z_=[`d`,`fill`],B_=[`points`],V_=[`aria-label`];function H_(e,n,r,i,a,o){let s=V(`icon`);return B(),_(`section`,{class:`w-full`,"aria-label":o.regionAriaLabel},[y(`ul`,{role:`list`,class:R(o.gridClass)},[(B(!0),_(O,null,U(r.item.list,(e,i)=>(B(),_(`li`,{key:e.id==null?i:e.id,class:R(o.isStrip?o.stripItemClass:`flex h-full min-h-0 min-w-0 w-full max-w-full`)},[y(`article`,{class:R(o.cardClass)},[o.isStrip?I(``,!0):(B(),_(`div`,{key:0,class:R([`pointer-events-none absolute inset-x-0 top-0 z-10 h-1 bg-gradient-to-r to-transparent`,o.accent(e).top]),"aria-hidden":`true`},null,2)),o.showRing(e)?(B(),_(`div`,D_,[(B(),_(`svg`,{class:R([`h-10 w-10 shrink-0 -rotate-90 drop-shadow-sm xl:h-[3.25rem] xl:w-[3.25rem]`,o.accent(e).ring]),viewBox:`0 0 36 36`},[n[0]||(n[0]=y(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`currentColor`,class:`text-slate-200 dark:text-slate-600`,"stroke-width":`3.2`},null,-1)),y(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`currentColor`,class:`text-current`,"stroke-width":`3.2`,"stroke-linecap":`round`,"stroke-dasharray":o.ringDash(e)},null,8,O_)],2))])):I(``,!0),o.isStrip?(B(),_(`div`,{key:2,class:R(o.bodyClass)},[e.icon?(B(),_(`div`,{key:0,class:R([`mb-2 flex w-full justify-center`,o.stripIconColorClass])},[L(s,{size:r.item.iconsize||`5`,icon:e.icon},null,8,[`size`,`icon`])],2)):I(``,!0),y(`p`,{class:R(o.valueClass),"aria-describedby":e.label?o.labelId(i):null},z(o.displayValue(e,i)),11,k_),e.label?(B(),_(`p`,{key:1,id:o.labelId(i),class:R(o.labelClass)},z(e.label),11,A_)):I(``,!0)],2)):(B(),_(`div`,{key:3,class:R(o.bodyClass)},[e.icon?(B(),_(`div`,{key:0,class:R(o.sideColClass)},[y(`div`,{class:R([`rounded-xl border p-2.5 shadow-sm`,o.accent(e).iconWell])},[y(`div`,{class:R([`flex items-center justify-center`,o.accent(e).ring])},[L(s,{size:r.item.iconsize,icon:e.icon},null,8,[`size`,`icon`])],2)],2)],2)):I(``,!0),y(`div`,{class:R(o.contentBlockClass(e))},[y(`div`,j_,[e.label?(B(),_(`p`,{key:0,id:o.labelId(i),class:R(o.labelClass)},z(e.label),11,M_)):I(``,!0),y(`div`,N_,[y(`p`,{class:R(o.valueClass),"aria-describedby":e.label?o.labelId(i):null},z(o.displayValue(e,i)),11,P_),e.trend?(B(),_(`span`,{key:0,class:R(o.trendChipClass(e))},[y(`span`,F_,z(o.trendArrow(e)),1),e.trendLabel?(B(),_(`span`,I_,z(e.trendLabel),1)):I(``,!0)],2)):I(``,!0)])]),o.showSpark(e)?(B(),_(`div`,{key:0,class:R([`mt-3 w-full max-w-full xl:max-w-[15rem]`,o.accent(e).ring])},[(B(),_(`svg`,{class:`w-full overflow-visible text-current`,viewBox:`0 0 100 28`,preserveAspectRatio:`none`,role:`img`,"aria-label":o.sparkAria(e)},[y(`defs`,null,[y(`linearGradient`,{id:o.sparkFillId(i),x1:`0`,y1:`0`,x2:`0`,y2:`1`},[...n[1]||(n[1]=[y(`stop`,{offset:`0%`,"stop-color":`currentColor`,"stop-opacity":`0.28`},null,-1),y(`stop`,{offset:`100%`,"stop-color":`currentColor`,"stop-opacity":`0.04`},null,-1)])],8,R_)]),o.sparkGeom(e)?(B(),_(`path`,{key:0,d:o.sparkGeom(e).areaPath,fill:`url(#`+o.sparkFillId(i)+`)`},null,8,z_)):I(``,!0),o.sparkGeom(e)?(B(),_(`polyline`,{key:1,fill:`none`,stroke:`currentColor`,"stroke-width":`2.25`,"stroke-linecap":`round`,"stroke-linejoin":`round`,points:o.sparkGeom(e).polyline},null,8,B_)):I(``,!0)],8,L_))],2)):I(``,!0),o.showBar(e)?(B(),_(`div`,{key:1,class:`mt-3 h-1.5 w-full max-w-full overflow-hidden rounded-full bg-slate-200/90 dark:bg-slate-700/80 xl:max-w-[12rem]`,role:`img`,"aria-label":o.progressAria(e)},[y(`div`,{class:R([`h-full rounded-full bg-gradient-to-r transition-[width] duration-700 ease-out`,o.accent(e).bar]),style:t({width:o.progressWidth(e)+`%`})},null,6)],8,V_)):I(``,!0),e.subtitle?(B(),_(`p`,{key:2,class:R(o.subtitleClass)},z(e.subtitle),3)):I(``,!0)],2)],2))],2)],2))),128))],2)],8,E_)}var U_=G(T_,[[`render`,H_]]);c();var W_=Object.freeze({en:{days:`Days`,hours:`Hours`,minutes:`Minutes`,seconds:`Seconds`,d:`d`,h:`h`,m:`m`,s:`s`},sv:{days:`Dagar`,hours:`Timmar`,minutes:`Minuter`,seconds:`Sekunder`,d:`d`,h:`h`,m:`m`,s:`s`}}),G_={name:`LiveCountdown`,props:{countdownAt:{type:String,default:null},label:{type:String,default:``},endedLabel:{type:String,default:``},variant:{type:String,default:`card`},size:{type:String,default:`md`},displayStyle:{type:String,default:`boxes`},palette:{type:String,default:`default`},showLiveDot:{type:Boolean,default:!0},align:{type:String,default:`left`},locale:{type:String,default:`sv`}},data(){return{nowMs:Date.now(),timerId:null,hydrated:!1}},computed:{styleKey(){return ke(this.displayStyle)},isMinimal(){return this.styleKey===`minimal`},isDivided(){return this.styleKey===`divided`},paletteKey(){return Qe(this.palette)},surfaceKey(){return this.variant===`hero`?`hero`:this.variant===`cardDark`||this.variant===`dark`?`cardDark`:`card`},paletteClasses(){return Ge(this.paletteKey,this.surfaceKey)},targetMs(){if(!this.countdownAt)return null;let e=String(this.countdownAt).trim();/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e)&&(e+=`:00`);let t=Date.parse(e);return Number.isFinite(t)?t:null},hasTarget(){return this.targetMs!=null},ended(){return this.hasTarget&&this.nowMs>=this.targetMs},endedText(){return typeof this.endedLabel==`string`?this.endedLabel.trim():``},heading(){return this.ended?``:typeof this.label==`string`?this.label.trim():``},visible(){return!(!this.hasTarget||this.ended&&!this.endedText)},remaining(){if(!this.hasTarget||this.ended)return{days:0,hours:0,minutes:0,seconds:0};let e=Math.max(0,this.targetMs-this.nowMs),t=Math.floor(e/1e3);return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}},labels(){return W_[String(this.locale||`sv`).toLowerCase().startsWith(`en`)?`en`:`sv`]},units(){let e=this.remaining,t=e=>String(e).padStart(2,`0`),n=!this.hydrated;return[{key:`d`,value:n?`â`:String(e.days),label:this.labels.days},{key:`h`,value:n?`â`:t(e.hours),label:this.labels.hours},{key:`m`,value:n?`â`:t(e.minutes),label:this.labels.minutes},{key:`s`,value:n?`â`:t(e.seconds),label:this.labels.seconds}]},minimalUnits(){let e=this.remaining,t=e=>String(e).padStart(2,`0`),n=!this.hydrated;return[{key:`d`,value:n?`â`:String(e.days),label:this.labels.d},{key:`h`,value:n?`â`:t(e.hours),label:this.labels.h},{key:`m`,value:n?`â`:t(e.minutes),label:this.labels.m},{key:`s`,value:n?`â`:t(e.seconds),label:this.labels.s}]},ariaLabel(){return this.ended?this.endedText||`Countdown ended`:this.heading?this.heading:`Countdown`},isHero(){return this.variant===`hero`},isCardDark(){return this.variant===`cardDark`||this.variant===`dark`},alignClass(){return this.align===`center`?`justify-center text-center`:`justify-start text-left`},rootClass(){return this.isHero?``:this.isCardDark?`rounded-2xl border border-white/10 bg-slate-950/80 p-4 shadow-lg sm:p-5`:`rounded-2xl border border-slate-200/90 bg-white p-4 shadow-sm ring-1 ring-slate-900/[0.04] sm:p-5 dark:border-white/10 dark:bg-slate-900/90`},sizeDigitClass(){return this.size===`sm`?`text-lg sm:text-xl`:this.size===`lg`?`text-3xl sm:text-4xl`:`text-2xl sm:text-3xl`},minimalDigitClass(){return this.size===`sm`?`text-lg`:this.size===`lg`?`text-2xl sm:text-3xl`:`text-xl sm:text-2xl`},dividedDigitClass(){return this.size===`sm`?`text-2xl sm:text-3xl`:this.size===`lg`?`text-5xl sm:text-6xl md:text-7xl`:`text-3xl sm:text-4xl`},dividedUnitPadClass(){return this.size===`sm`?`px-2.5 py-1 sm:px-3.5 sm:py-1.5`:this.size===`lg`?`px-3 py-1.5 sm:px-5 sm:py-2 md:px-7`:`px-3 py-1.5 sm:px-4 sm:py-2`},dividedUnitLabelClass(){return this.size===`sm`?`mt-1.5 text-[9px] sm:text-[10px]`:this.size===`lg`?`mt-2 text-[10px] sm:mt-2.5 sm:text-[11px]`:`mt-1.5 text-[10px] sm:mt-2 sm:text-[11px]`},dividerClass(){return[this.paletteClasses.digit,`bg-current`]},sizeSegmentClass(){return this.size===`lg`?`min-w-[4rem] sm:min-w-[4.5rem] px-3 py-3`:this.size===`sm`?`min-w-[2.75rem] px-2 py-1.5`:``}},watch:{countdownAt:{immediate:!0,handler(){this.tick(),this.restartTimer()}}},mounted(){this.hydrated=!0,this.tick(),this.restartTimer()},beforeUnmount(){this.clearTimer()},methods:{tick(){this.nowMs=Date.now()},clearTimer(){this.timerId!=null&&(clearInterval(this.timerId),this.timerId=null)},restartTimer(){this.clearTimer(),this.hasTarget&&!this.ended&&(this.timerId=setInterval(()=>{this.tick(),this.ended&&this.clearTimer()},1e3))}}}
72,K_=[`aria-live`,`aria-label`],q_={key:0,class:`relative flex h-2 w-2 shrink-0`,"aria-hidden":`true`};function J_(e,t,n,r,i,a){return a.visible?(B(),_(`div`,{key:0,class:R([`live-countdown`,a.rootClass]),role:`timer`,"aria-live":a.ended?`off`:`polite`,"aria-label":a.ariaLabel},[a.heading||n.showLiveDot&&!a.ended?(B(),_(`div`,{key:0,class:R([`flex items-center gap-2`,[a.alignClass,a.isMinimal?`mb-2`:`mb-3`]])},[n.showLiveDot&&!a.ended?(B(),_(`span`,q_,[y(`span`,{class:R([`absolute inline-flex h-full w-full animate-ping rounded-full opacity-75`,a.paletteClasses.livePing])},null,2),y(`span`,{class:R([`relative inline-flex h-2 w-2 rounded-full`,a.paletteClasses.liveDot])},null,2)])):I(``,!0),a.heading?(B(),_(`p`,{key:1,class:R([`text-xs font-semibold uppercase tracking-[0.14em]`,a.paletteClasses.heading])},z(a.heading),3)):n.showLiveDot&&!a.ended?(B(),_(`p`,{key:2,class:R([`text-xs font-semibold uppercase tracking-[0.14em]`,a.paletteClasses.heading])},` Live `,2)):I(``,!0)],2)):I(``,!0),!a.ended&&a.isMinimal?(B(),_(`div`,{key:1,class:R([`flex items-end gap-2 sm:gap-2.5`,a.alignClass]),"aria-live":`polite`},[(B(!0),_(O,null,U(a.minimalUnits,e=>(B(),_(`div`,{key:e.key,class:`min-w-[2.25rem] text-center sm:min-w-[2.5rem]`},[y(`p`,{class:R([`font-semibold tabular-nums leading-none drop-shadow-sm`,[a.paletteClasses.digit,a.minimalDigitClass]])},z(e.value),3),y(`p`,{class:R([`mt-1 text-[9px] font-medium uppercase tracking-wide`,a.paletteClasses.unit])},z(e.label),3)]))),128))],2)):!a.ended&&a.isDivided?(B(),_(`div`,{key:2,class:R([`flex items-stretch justify-center`,a.alignClass]),"aria-live":`polite`},[(B(!0),_(O,null,U(a.units,(e,t)=>(B(),_(O,{key:e.key},[y(`div`,{class:R([`flex flex-col items-center`,a.dividedUnitPadClass])},[y(`span`,{class:R([`font-light tabular-nums leading-none tracking-tight`,[a.paletteClasses.digit,a.dividedDigitClass]])},z(e.value),3),y(`span`,{class:R([`font-medium uppercase tracking-[0.2em]`,[a.paletteClasses.unit,a.dividedUnitLabelClass]])},z(e.label),3)],2),t<a.units.length-1?(B(),_(`div`,{key:0,class:R([`w-px self-stretch opacity-35`,a.dividerClass]),"aria-hidden":`true`},null,2)):I(``,!0)],64))),128))],2)):a.ended?a.endedText?(B(),_(`p`,{key:4,class:R([`text-sm font-semibold sm:text-base`,[a.paletteClasses.ended,a.alignClass]])},z(a.endedText),3)):I(``,!0):(B(),_(`div`,{key:3,class:R([`flex flex-wrap gap-2 sm:gap-2.5`,a.alignClass])},[(B(!0),_(O,null,U(a.units,e=>(B(),_(`div`,{key:e.key,class:R([`flex min-w-[3.25rem] flex-col items-center justify-center rounded-xl border px-2.5 py-2 sm:min-w-[3.75rem] sm:px-3 sm:py-2.5`,[a.paletteClasses.segment,a.sizeSegmentClass]])},[y(`span`,{class:R([`font-semibold tabular-nums leading-none tracking-tight`,[a.paletteClasses.digit,a.sizeDigitClass]])},z(e.value),3),y(`span`,{class:R([`mt-1.5 text-[10px] font-medium uppercase tracking-wide sm:text-[11px]`,a.paletteClasses.unit])},z(e.label),3)],2))),128))],2))],10,K_)):I(``,!0)}var Y_=G(G_,[[`render`,J_]]);c();var X_={name:`ItemLiveCountdown`,components:{LiveCountdown:Y_},props:{item:{type:Object,required:!0}},computed:{hasCountdown(){var e;if(!((e=this.item)!=null&&e.countdownAt))return!1;let t=String(this.item.countdownAt).trim();return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(t)&&(t+=`:00`),Number.isFinite(Date.parse(t))},variant(){return this.item.theme===`dark`?`cardDark`:`card`},size(){let e=this.item.size;return[`sm`,`md`,`lg`].includes(e)?e:`md`},displayStyle(){return this.item.displayStyle===`minimal`?`minimal`:this.item.displayStyle===`divided`?`divided`:`boxes`},palette(){return[`default`,`white`,`cyan`,`amber`,`emerald`,`rose`].includes(this.item.palette)?this.item.palette:`default`},countdownClass(){return this.item.width===`full`?`w-full max-w-xl`:`inline-block w-auto max-w-full`},locale(){var e;return typeof document<`u`&&(e=document.documentElement)!=null&&e.lang?document.documentElement.lang:`sv`},placeholderText(){return String(this.locale||`sv`).toLowerCase().startsWith(`en`)?`Set a date and time in the countdown block to show the timer.`:`Ange datum och tid i nedräkningsblocket för att visa timern.`}}};function Z_(e,t,n,r,i,a){let o=V(`LiveCountdown`,!0);return B(),_(`div`,{class:R([n.item.marginTop,n.item.marginBottom,n.item.class,n.item.align===`center`?`flex justify-center`:``,n.item.width===`full`?`w-full`:``])},[a.hasCountdown?(B(),P(o,{key:0,class:R(a.countdownClass),"countdown-at":n.item.countdownAt,label:n.item.label,"ended-label":n.item.endedLabel,variant:a.variant,size:a.size,"display-style":a.displayStyle,palette:a.palette,align:n.item.align===`center`?`center`:`left`,"show-live-dot":n.item.showLiveDot!==!1,locale:a.locale},null,8,[`class`,`countdown-at`,`label`,`ended-label`,`variant`,`size`,`display-style`,`palette`,`align`,`show-live-dot`,`locale`])):(B(),_(`div`,{key:1,class:R([a.countdownClass,`rounded-2xl border border-dashed border-slate-300 bg-slate-50 px-4 py-6 text-center text-sm text-slate-500 dark:border-white/15 dark:bg-slate-900/50 dark:text-slate-400`])},z(a.placeholderText),3))],2)}var Q_=G(X_,[[`render`,Z_]]);function $_(e){let t=[`justify-start`,`justify-center`,`justify-between`,`justify-end`],n=[((e,n)=>{let r=e!=null&&String(e).trim()!==``?String(e).trim():n;return t.includes(r)?r:n})(e.justify,`justify-start`)],r=e.justifyMd!=null&&String(e.justifyMd).trim()!==``?String(e.justifyMd).trim():``,i=e.justifyLg!=null&&String(e.justifyLg).trim()!==``?String(e.justifyLg).trim():``;return r&&t.includes(r)&&n.push(`md:${r}`),i&&t.includes(i)&&n.push(`lg:${i}`),n.join(` `)}c();var ev=`social-link inline-flex shrink-0 items-center justify-center rounded-xl p-2.5 transition duration-200 ease-out hover:-translate-y-0.5 hover:bg-black/[0.06] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-400/50 focus-visible:ring-offset-2 dark:hover:bg-white/[0.08] `,tv={name:`ItemSocial`,props:{item:{type:Object,required:!0}},computed:{socialNavAriaLabel(){if(typeof this.$t==`function`)try{let e=this.$t(`admin.page_builder.site_preview_social_aria`);
72if(e&&e!==`admin.page_builder.site_preview_social_aria`)return e}catch{}return`Social`},iconSize(){let e=Number(this.item.size);return Number.isNaN(e)||e<1?8:e},iconSizeSmall(){return Math.max(1,this.iconSize-1)},svgMainStyle(){let e=this.iconSize*.25;return{width:`${e}rem`,height:`${e}rem`}},svgSmallStyle(){let e=this.iconSizeSmall*.25;return{width:`${e}rem`,height:`${e}rem`}},linkClass(){return`${ev} ${this.item.color||`text-gray-400`} hover:${this.item.hoverColor||`text-gray-300`}`},rowGapClass(){return this.item.spaceBetween&&String(this.item.spaceBetween).trim()?this.item.spaceBetween:`gap-2 sm:gap-3`},justifyClasses(){return $_(this.item)}}},nv=[`aria-label`],rv=[`href`],iv=[`href`],av=[`href`],ov=[`href`],sv=[`href`],cv=[`href`],lv=[`href`];function uv(e,n,r,i,a,o){return B(),_(`div`,{class:R([`w-full`,[r.item.marginTop||``,r.item.marginBottom||``,r.item.class||``]])},[y(`nav`,{class:R([`flex flex-wrap items-center`,[o.rowGapClass,o.justifyClasses]]),"aria-label":o.socialNavAriaLabel},[r.item.facebook?(B(),_(`a`,{key:0,href:r.item.facebook,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[1]||(n[1]=y(`span`,{class:`sr-only`},`Facebook`,-1)),(B(),_(`svg`,{class:`shrink-0`,style:t(o.svgMainStyle),fill:`currentColor`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[...n[0]||(n[0]=[y(`path`,{"fill-rule":`evenodd`,d:`M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987
72h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z`,"clip-rule":`evenodd`},null,-1)])],4))],10,rv)):I(``,!0),r.item.instagram?(B(),_(`a`,{key:1,href:r.item.instagram,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[3]||(n[3]=y(`span`,{class:`sr-only`},`Instagram`,-1)),(B(),_(`svg`,{class:`shrink-0`,style:t(o.svgMainStyle),fill:`currentColor`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[...n[2]||(n[2]=[y(`path`,{"fill-rule":`evenodd`,d:`M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z`,"clip-rule":`evenodd`},null,-1)])],4))],10,iv)):I(``,!0),r.item.twitter?(B(),_(`a`,{key:2,href:r.item.twitter,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[5]||(n[5]=y(`span`,{class:`sr-only`},`X`,-1)),(B(),_(`svg`,{class:`mt-0.5 shrink-0`,style:t(o.svgSmallStyle),fill:`currentColor`,viewBox:`0 0 512 512`,"aria-hidden":`true`},[...n[4]||(n[4]=[y(`path`,{d:`M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z`},null,-1)])],4))],10,av)):I(``,!0),r.item.youtube?(B(),_(`a`,{key:3,href:r.item.youtube,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[7]||(n[7]=y(`span`,{class:`sr-only`},`YouTube`,-1)),(B(),_(`svg`,{class:`shrink-0`,style:t(o.svgMainStyle),fill:`none`,stroke:`currentColor`,"stroke-width":`2`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[...n[6]||(n[6]=[y(`path`,{d:`M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z`},null,-1),y(`polygon`,{points:`9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02`},null,-1)])],4))],10,ov)):I(``,!0),r.item.tiktok?(B(),_(`a`,{key:4,href:r.item.tiktok,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[9]||(n[9]=y(`span`,{class:`sr-only`},`TikTok`,-1)),(B(),_(`svg`,{class:`mt-0.5 shrink-0`,style:t(o.svgSmallStyle),fill:`currentColor`,viewBox:`0 0 448 512`,"aria-hidden":`true`},[...n[8]||(n[8]=[y(`path`,{d:`M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z`},null,-1)])],4))],10,sv)):I(``,!0),r.item.whatsapp?(B(),_(`a`,{key:5,href:r.item.whatsapp,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[11]||(n[11]=y(`span`,{class:`sr-only`},`WhatsApp`,-1)),(B(),_(`svg`,{class:`mt-0.5 shrink-0`,style:t(o.svgSmallStyle),fill:`currentColor`,viewBox:`0 0 448 512`,"aria-hidden":`true`},[...n[10]||(n[10]=[y(`path`,{d:`M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z`},null,-1)])],4))],10,cv)):I(``,!0),r.item.linkedin?(B(),_(`a`,{key:6,href:r.item.linkedin,target:`_blank`,rel:`noopener noreferrer`,class:R(o.linkClass)},[n[13]||(n[13]=y(`span`,{class:`sr-only`},`LinkedIn`,-1)),(B(),_(`svg`,{class:`mt-0.5 shrink-0`,style:t(o.svgSmallStyle),fill:`currentColor`,viewBox:`0 0 448 512`,"aria-hidden":`true`},[...n[12]||(n[12]=[y(`path`,{d:`M100.3 448H7.4V148.9h92.9zM53.8 108.1C24.1 108.1 0 83.5 0 53.8a53.8 53.8 0 0 1 107.6 0c0 29.7-24.1 54.3-53.8 54.3zM447.9 448h-92.7V302.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V448h-92.8V148.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V448z`},null,-1)])],4))],10,lv)):I(``,!0)],10,nv)],2)}var dv=G(tv,[[`render`,uv]]);c();var fv=[`facebook`,`twitter`,`instagram`,`youtube`,`tiktok`,`whatsapp`,`linkedin`],pv={name:`ItemCountdownHero`,components:{LiveCountdown:Y_,ItemSocial:dv},props:{item:{type:Object,required:!0}},computed:{locale(){var e;return typeof document<`u`&&(e=document.documentElement)!=null&&e.lang?document.documentElement.lang:`sv`},eyebrow(){return typeof this.item.eyebrow==`string`?this.item.eyebrow.trim():``},countdownLabel(){return typeof this.item.countdownLabel==`string`?this.item.countdownLabel.trim():``},hasCountdown(){var e;if(!((e=this.item)!=null&&e.countdownAt))return!1;let t=String(this.item.countdownAt).trim();return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(t)&&(t+=`:00`),Number.isFinite(Date.parse(t))},displayStyle(){let e=ke(this.item.displayStyle);return this.item.displayStyle?e:`divided`},palette(){return Qe(this.item.palette||`white`)},countdownSize(){let e=this.item.countdownSize;return[`sm`,`md`,`lg`].includes(e)?e:`md`},heightClass(){let e=this.item.height;return typeof e==`string`&&e.trim()?e.trim():`h-lvh`},contentPadClass(){return this.item.scrollHint?`pt-24 pb-28 sm:pt-28 sm:pb-32 lg:pt-32 lg:pb-36`:`py-16 sm:py-20 lg:py-24`},isContentLeft(){return this.item.contentAlign===`left`},contentShellClass(){return this.isContentLeft?`mx-auto w-full max-w-5xl items-start text-left`:`mx-auto w-full max-w-5xl items-center text-center`},buttonsRowClass(){return this.isContentLeft?`items-start justify-start`:`items-stretch justify-center sm:justify-center`},bgVideo(){var e;let t=(e=this.item)==null?void 0:e.bgvideo;return typeof t==`string`&&t.trim()?t.trim():null},bgStyle(){return this.item.img?{backgroundImage:`url(${this.item.img})`}:this.bgVideo?{backgroundColor:`#020617`}:{backgroundImage:`linear-gradient(160deg, #020617 0%, #0c1929 40%, #0f172a 70%, #020617 100%)`}},overlayClass(){let e=this.item.overlay;return e===`light`?`bg-slate-950/40`:e===`heavy`?`bg-slate-950/80`:`bg-slate-950/65`},hasButtons(){return!!(this.item.primaryUrl&&this.item.primaryLabel||this.item.secondaryUrl&&this.item.secondaryLabel||this.item.tertiaryUrl&&this.item.tertiaryLabel)},hasSocials(){var e;return(e=this.item)!=null&&e.showSocials?fv.some(e=>{let t=this.item[e];return typeof t==`string`&&t.trim()}):!1},socialItem(){return{facebook:this.item.facebook||null,twitter:this.item.twitter||null,instagram:this.item.instagram||null,youtube:this.item.youtube||null,tiktok:this.item.tiktok||null,whatsapp:this.item.whatsapp||null,linkedin:this.item.linkedin||null,size:this.item.socialSize||`5`,color:this.item.socialColor||`text-white`,hoverColor:this.item.socialHoverColor||`text-white`,justify:this.isContentLeft?`justify-start`:`justify-center`,justifyMd:this.isContentLeft?`justify-start`:`justify-center`,justifyLg:this.isContentLeft?`justify-start`:`justify-center`,spaceBetween:`gap-3 sm:gap-4`,marginTop:null,marginBottom:null,class:`countdown-hero-socials opacity-80 hover:opacity-100 [&_a]:text-white [&_a:hover]:text-white`}}
72,roundedClass(){return this.item.ctaRounded===!1?`rounded-md`:`rounded-full`},primaryBtnClass(){let e=[`inline-flex items-center justify-center gap-2 px-6 py-3 text-sm font-semibold transition`,this.roundedClass];return this.item.primaryCtaStyle===`amber`?[...e,`bg-amber-400 text-slate-900 shadow-lg shadow-amber-500/25 hover:bg-amber-300`]:[...e,`bg-white text-slate-950 shadow-lg shadow-black/30 hover:bg-white/90`]},secondaryBtnClass(){return[`inline-flex items-center justify-center gap-2 border border-white/35 bg-white/5 px-6 py-3 text-sm font-semibold text-white backdrop-blur-sm transition hover:border-white/55 hover:bg-white/10`,this.roundedClass]},tertiaryBtnClass(){return[`inline-flex items-center justify-center gap-2 px-4 py-3 text-sm font-semibold text-white/80 underline-offset-4 transition hover:text-white hover:underline`,this.roundedClass]},scrollHintLabel(){return String(this.locale||`sv`).toLowerCase().startsWith(`en`)?`Scroll`:`Scrolla`},placeholderText(){return String(this.locale||`sv`).toLowerCase().startsWith(`en`)?`Set a date and time to show the countdown.`:`Ange datum och tid för att visa nedräknaren.`}},watch:{bgVideo(){this.$nextTick(()=>this.playBgVideo())}},mounted(){this.playBgVideo()},methods:{playBgVideo(){let e=this.$refs.bgVideoEl;e&&typeof e.play==`function`&&e.play().catch(()=>{})}}},mv=[`aria-label`],hv=[`src`,`poster`],gv={key:0,class:`mb-4 text-xs font-semibold uppercase tracking-[0.28em] text-white/75 sm:mb-5 sm:text-sm`},_v={key:1,class:`text-balance text-4xl font-semibold tracking-tight text-white drop-shadow-sm sm:text-5xl md:text-6xl lg:text-7xl`},vv=[`innerHTML`],yv=[`href`],bv=[`href`],xv=[`href`],Sv={key:1,class:`text-sm text-white/50`},Cv=[`innerHTML`],wv={key:1,class:`pointer-events-none absolute bottom-5 left-1/2 z-20 flex -translate-x-1/2 flex-col items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.2em] text-white/55 sm:bottom-7`,"aria-hidden":`true`};function Tv(e,n,r,i,a,o){let s=V(`icon`),c=V(`LiveCountdown`),l=V(`ItemSocial`);return B(),_(`section`,{class:R([`countdown-hero relative isolate flex w-full flex-col overflow-hidden text-white`,[o.heightClass,r.item.marginTop,r.item.marginBottom,r.item.class]]),"aria-label":r.item.title||`Countdown hero`},[y(`div`,{class:`absolute inset-0 bg-cover bg-center bg-no-repeat`,style:t(o.bgStyle),"aria-hidden":`true`},null,4),o.bgVideo?(B(),_(`video`,{key:0,ref:`bgVideoEl`,src:o.bgVideo,poster:r.item.img||void 0,class:`pointer-events-none absolute inset-0 z-0 h-full w-full object-cover`,autoplay:``,muted:``,loop:``,playsinline:``,preload:`metadata`,"aria-hidden":`true`},null,8,hv)):I(``,!0),y(`div`,{class:R([`absolute inset-0 z-[1]`,o.overlayClass]),"aria-hidden":`true`},null,2),n[1]||(n[1]=y(`div`,{class:`pointer-events-none absolute inset-0 z-[1] bg-[radial-gradient(ellipse_at_50%_30%,rgba(56,189,248,0.18),transparent_55%)]`,"aria-hidden":`true`},null,-1)),y(`div`,{class:R([`relative z-10 flex w-full flex-1 flex-col justify-center overflow-y-auto px-6 sm:px-8 lg:px-10`,[o.contentPadClass,o.contentShellClass]])},[o.eyebrow?(B(),_(`p`,gv,z(o.eyebrow),1)):I(``,!0),r.item.title?(B(),_(`h2`,_v,z(r.item.title),1)):I(``,!0),r.item.text?(B(),_(`div`,{key:2,class:R([`prose prose-invert prose-sm mt-4 max-w-xl text-white/75 prose-p:mb-2 prose-p:last:mb-0 sm:mt-5 sm:prose-base`,o.isContentLeft?`text-left`:`mx-auto text-center`]),innerHTML:r.item.text},null,10,vv)):I(``,!0),o.hasButtons?(B(),_(`div`,{key:3,class:R([`mt-8 flex w-full max-w-lg flex-col gap-3 sm:mt-10 sm:max-w-none sm:flex-row sm:flex-wrap sm:items-center`,o.buttonsRowClass])},[r.item.primaryUrl&&r.item.primaryLabel?(B(),_(`a`,{key:0,href:r.item.primaryUrl,class:R(o.primaryBtnClass)},[w(z(r.item.primaryLabel)+` `,1),r.item.primaryIcon?(B(),P(s,{key:0,icon:r.item.primaryIcon,size:4,class:`shrink-0 opacity-90`},null,8,[`icon`])):I(``,!0)],10,yv)):I(``,!0),r.item.secondaryUrl&&r.item.secondaryLabel?(B(),_(`a`,{key:1,href:r.item.secondaryUrl,class:R(o.secondaryBtnClass)},z(r.item.secondaryLabel),11,bv)):I(``,!0),r.item.tertiaryUrl&&r.item.tertiaryLabel?(B(),_(`a`,{key:2,href:r.item.tertiaryUrl,class:R(o.tertiaryBtnClass)},z(r.item.tertiaryLabel),11,xv)):I(``,!0)],2)):I(``,!0),y(`div`,{class:R([`w-full`,[o.hasButtons?`mt-6 sm:mt-7`:`mt-8 sm:mt-10`,o.isContentLeft?``:`flex justify-center`]])},[y(`div`,{class:R([`max-w-xl px-1 py-2 sm:px-2 sm:py-2.5`,o.isContentLeft?``:`mx-auto`])},[o.hasCountdown?(B(),P(c,{key:0,"countdown-at":r.item.countdownAt,label:o.countdownLabel,"ended-label":r.item.endedLabel||``,variant:`hero`,size:o.countdownSize,"display-style":o.displayStyle,palette:o.palette,align:o.isContentLeft?`left`:`center`,"show-live-dot":r.item.showLiveDot===!0,locale:o.locale},null,8,[`countdown-at`,`label`,`ended-label`,`size`,`display-style`,`palette`,`align`,`show-live-dot`,`locale`])):(B(),_(`p`,Sv,z(o.placeholderText),1))],2)],2),r.item.footerText?(B(),_(`div`,{key:4,class:R([`prose prose-invert prose-sm mt-6 max-w-xl text-white/70 prose-p:mb-2 prose-p:last:mb-0 sm:mt-8 sm:prose-base`,o.isContentLeft?`text-left`:`mx-auto text-center`]),innerHTML:r.item.footerText},null,10,Cv)):I(``,!0),o.hasSocials?(B(),_(`div`,{key:5,class:R([`mt-6 flex w-full sm:mt-8`,[o.isContentLeft?`justify-start`:`justify-center`,r.item.scrollHint?`mb-2 pb-2`:``]])},[L(l,{item:o.socialItem},null,8,[`item`])],2)):I(``,!0)],2),r.item.scrollHint?(B(),_(`div`,wv,[y(`span`,null,z(o.scrollHintLabel),
721),n[0]||(n[0]=y(`svg`,{class:`h-4 w-4 opacity-80 [animation:countdown-hero-nudge_1.8s_ease-in-out_infinite]`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"aria-hidden":`true`},[y(`path`,{d:`M12 5v14M6 13l6 6 6-6`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1))])):I(``,!0)],10,mv)}var Ev=G(pv,[[`render`,Tv],[`__scopeId`,`data-v-f9afb21f`]]);c();var Dv={null:`border-gray-200`,blue:`border-blue-200`,pcblue:`border-pcblue-200`,green:`border-emerald-200`,orange:`border-amber-200`,red:`border-red-200`},Ov={null:`via-gray-300`,blue:`via-blue-400`,pcblue:`via-pcblue-400`,green:`via-emerald-400`,orange:`via-amber-400`,red:`via-red-400`},kv={null:`text-gray-400`,blue:`text-blue-500`,pcblue:`text-pcblue-500`,green:`text-emerald-500`,orange:`text-amber-500`,red:`text-red-500`},Av={name:`ItemDivider`,props:{item:{type:Object,required:!0}},computed:{variant(){let e=this.item.variant;return e===`line`||e===`gradient`||e===`dots`||e===`gem`?e:`line`},colorKey(){return this.item.color??null},borderSolidClass(){return Dv[this.colorKey]??Dv.null},viaClass(){return Ov[this.colorKey]??Ov.null},currentClass(){return kv[this.colorKey]??kv.null},rootClass(){return[this.item.marginTop,this.item.marginBottom,this.item.class].filter(Boolean)},ariaLabel(){let e=this.item.name;return e?`Avdelare: ${e}`:`Avdelare`}}},jv=[`aria-label`],Mv={key:4,class:`w-full border-t border-gray-200`};function Nv(e,t,n,r,i,a){return B(),_(`div`,{role:`separator`,class:R(a.rootClass),"aria-label":a.ariaLabel},[a.variant===`line`?(B(),_(`div`,{key:0,class:R([`w-full border-t`,a.borderSolidClass])},null,2)):a.variant===`gradient`?(B(),_(`div`,{key:1,class:R([`h-px w-full bg-gradient-to-r from-transparent to-transparent`,a.viaClass])},null,2)):a.variant===`dots`?(B(),_(`div`,{key:2,class:R([`w-full border-t-2 border-dotted`,a.borderSolidClass])},null,2)):a.variant===`gem`?(B(),_(`div`,{key:3,class:R([`flex items-center gap-4`,a.currentClass])},[...t[0]||(t[0]=[y(`div`,{class:`h-px min-h-px min-w-0 flex-1 bg-current opacity-35`,"aria-hidden":`true`},null,-1),y(`span`,{class:`inline-block size-2.5 shrink-0 rotate-45 rounded-sm border-2 border-current shadow-sm`,"aria-hidden":`true`},null,-1),y(`div`,{class:`h-px min-h-px min-w-0 flex-1 bg-current opacity-35`,"aria-hidden":`true`},null,-1)])],2)):(B(),_(`div`,Mv))],10,jv)}var Pv=G(Av,[[`render`,Nv]]);c();var Fv={left:`justify-start`,center:`justify-center`,right:`justify-end`};function Iv(e){return typeof e==`string`&&/^https?:\/\//i.test(e.trim())}var Lv={name:`ItemNavMenu`,props:{item:{type:Object,required:!0}},computed:{variant(){let e=this.item.variant;return e===`stack`||e===`pills`||e===`buttons`||e===`tabs`||e===`toolbar`?e:`stack`},justifyClass(){return Fv[this.item.align]||Fv.left},trimmedTitle(){let e=this.item.title;return e==null||typeof e!=`string`?``:e.trim()},visibleLinks(){let e=this.item.links;return Array.isArray(e)?e.filter(e=>e&&(String(e.label||``).trim()!==``||String(e.url||``).trim()!==``)):[]},ariaLabel(){let e=this.item.name;return this.trimmedTitle?this.trimmedTitle:e?`Meny: ${e}`:`Meny`}},methods:{linkBind(e){let t=e.url&&String(e.url).trim()||``;return t?{href:t,...Iv(t)?{target:`_blank`,rel:`noopener noreferrer`}:{}}:{}}}},Rv=[`aria-label`],zv={key:0,class:`mb-3 text-balance text-lg font-semibold tracking-tight text-slate-900 sm:mb-4 sm:text-xl`},Bv={key:1,class:`text-sm text-slate-500`},Vv={key:2,role:`list`,class:`flex flex-col gap-1.5 rounded-2xl border border-slate-200/90 bg-white p-1.5 shadow-sm ring-1 ring-slate-900/[0.04] sm:gap-2 sm:rounded-3xl sm:p-2`},Hv={class:`min-w-0 flex-1 text-left text-sm font-semibold leading-snug sm:text-[0.9375rem]`},Uv={key:0,class:`select-none px-1 text-slate-300`,"aria-hidden":`true`};function Wv(e,t,n,r,i,a){return B(),_(`nav`,{class:R([`nav-menu-block w-full min-w-0`,[n.item.marginTop,n.item.marginBottom,n.item.class]]),"aria-label":a.ariaLabel},[a.trimmedTitle?(B(),_(`h2`,zv,z(a.trimmedTitle),1)):I(``,!0),a.visibleLinks.length===0?(B(),_(`p`,Bv,z(e.$t(`admin.page_builder.site_preview_no_menu`)),1)):a.variant===`stack`?(B(),_(`ul`,Vv,[(B(!0),_(O,
72null,U(a.visibleLinks,(n,r)=>(B(),_(`li`,{key:n.id||r,class:`group overflow-hidden rounded-xl border border-slate-200/60 transition-colors hover:border-slate-300 hover:bg-slate-50/90 sm:rounded-2xl`},[(B(),P(st(n.url?`a`:`span`),Le({ref_for:!0},a.linkBind(n),{class:[`flex w-full items-center justify-between gap-3 rounded-xl px-3 py-3 text-slate-900 outline-none ring-offset-2 transition sm:gap-4 sm:rounded-2xl sm:px-4 sm:py-3.5`,n.url?`focus-visible:ring-2 focus-visible:ring-blue-500/50`:`cursor-default text-slate-500`]}),{default:u(()=>[y(`span`,Hv,z(n.label||e.$t(`admin.page_builder.site_preview_link`)),1),t[0]||(t[0]=y(`span`,{class:`flex h-9 w-9 shrink-0 items-center justify-center rounded-lg text-slate-400 transition group-hover:text-slate-700`,"aria-hidden":`true`},[y(`svg`,{class:`h-5 w-5 transition-transform duration-150 ease-out group-hover:translate-x-0.5`,viewBox:`0 0 20 20`,fill:`currentColor`},[y(`path`,{"fill-rule":`evenodd`,d:`M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z`,"clip-rule":`evenodd`})])],-1))]),_:2},1040,[`class`]))]))),128))])):a.variant===`pills`?(B(),_(`ul`,{key:3,role:`list`,class:R([`flex flex-wrap gap-2`,a.justifyClass])},[(B(!0),_(O,null,U(a.visibleLinks,(t,n)=>(B(),_(`li`,{key:t.id||n},[(B(),P(st(t.url?`a`:`span`),Le({ref_for:!0},a.linkBind(t),{class:[`inline-flex items-center rounded-full border px-4 py-2 text-sm font-semibold leading-snug transition`,t.url?`border-blue-200/90 bg-blue-50/80 text-blue-900 shadow-sm hover:border-blue-300 hover:bg-blue-100/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`:`cursor-default border-slate-200 bg-slate-50 text-slate-500`]}),{default:u(()=>[w(z(t.label||e.$t(`admin.page_builder.site_preview_link`)),1)]),_:2},1040,[`class`]))]))),128))],2)):a.variant===`buttons`?(B(),_(`ul`,{key:4,role:`list`,class:R([`flex flex-wrap gap-2 sm:gap-2.5`,a.justifyClass])},[(B(!0),_(O,null,U(a.visibleLinks,(t,n)=>(B(),_(`li`,{key:t.id||n},[(B(),P(st(t.url?`a`:`span`),Le({ref_for:!0},a.linkBind(t),{class:[`inline-flex min-h-[44px] min-w-0 max-w-full items-center justify-center rounded-xl px-5 py-2.5 text-center text-sm font-semibold transition sm:text-[0.9375rem]`,t.url?`bg-gradient-to-br from-blue-600 to-blue-700 text-white shadow-md shadow-blue-900/15 ring-1 ring-blue-500/25 hover:from-blue-700 hover:to-blue-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`:`cursor-default border border-slate-200 bg-slate-100 text-slate-500 shadow-none`]}),{default:u(()=>[w(z(t.label||e.$t(`admin.page_builder.site_preview_link`)),1)]),_:2},1040,[`class`]))]))),128))],2)):a.variant===`tabs`?(B(),_(`ul`,{key:5,role:`list`,class:R([`flex flex-wrap gap-1 border-b border-slate-200 pb-px`,a.justifyClass])},[(B(!0),_(O,null,U(a.visibleLinks,(t,n)=>(B(),_(`li`,{key:t.id||n},[(B(),P(st(t.url?`a`:`span`),Le({ref_for:!0},a.linkBind(t),{class:[`inline-flex items-center rounded-t-lg border-b-2 border-transparent px-3 py-2.5 text-sm font-semibold transition sm:px-4`,t.url?`text-slate-600 hover:border-blue-500 hover:text-blue-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`:`cursor-default text-slate-400`]}),{default:u(()=>[w(z(t.label||e.$t(`admin.page_builder.site_preview_link`)),1)]),_:2},1040,[`class`]))]))),128))],2)):a.variant===`toolbar`?(B(),_(`ul`,{key:6,role:`list`,class:R([`flex flex-wrap items-center gap-x-1 gap-y-1 text-sm`,a.justifyClass])},[(B(!0),_(O,null,U(a.visibleLinks,(t,n)=>(B(),_(`li`,{key:t.id||n,class:`flex items-center gap-x-1`},[n>0?(B(),_(`span`,Uv,` | `)):I(``,!0),(B(),P(st(t.url?`a`:`span`),Le({ref_for:!0},a.linkBind(t),{class:[`px-2 py-1 font-medium transition-colors duration-150`,t.url?`rounded-md text-blue-700 hover:rounded-xl hover:bg-blue-50 hover:text-blue-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1`:`cursor-default rounded-md text-slate-500`]}),{default:u(()=>[w(z(t.label||e.$t(`admin.page_builder.site_preview_link`)),1)]),_:2},1040,[`class`]))]))),128))],2)):I(``,!0)],10,Rv)}var Gv=G(Lv,[[`render`,Wv]]);c();var Kv={name:`SitePicDivider`,props:{item:{type:Object,default:()=>({})}},computed:{pictures(){return(this.item&&Array.isArray(this.item.list)?this.item.list:[]).filter(e=>e&&e.img)},hasImages(){return this.pictures.length>0},repeatCount(){return this.item&&this.item.animate?2:1},gapClass(){return this.item&&this.item.rounded?`gap-5 sm:gap-8`:`gap-3 sm:gap-5`},marqueeStyle(){return!this.item||!this.item.animate?{}:{animationDuration:this.speed}},speed(){return this.item&&this.item.animate?`40s`:`0s`},itemClass(){let e=this.item&&this.item.class;return typeof e==`string`&&e.trim()?e.trim():null}},methods:{picAlt(e){if(!e)return``;let t=e.imgalt||e.title;return t?String(t):``},cardClass(e){return!this.item||!this.item.rounded?`rounded-lg shadow-sm ring-1 ring-slate-900/[0.07]`:[e%2==0?`rotate-2`:`-rotate-2`,`rounded-xl shadow-md ring-1 ring-slate-900/10 sm:rounded-2xl`]}}},qv={key:0,class:`picdivider-strip relative left-1/2 w-[100vw] max-w-[100vw] -translate-x-1/2 overflow-hidden py-8 sm:py-12`},Jv=[`src`,`alt`];function Yv(e,n,r,i,a,o){return o.hasImages?(B(),_(`section`,qv,[y(`div`,{class:R([`picdivider-strip__inner w-full min-w-0`,o.itemClass])},[y(`div`,{class:R([`flex w-max flex-nowrap items-center`,[{"picdivider-marquee":r.item&&r.item.animate},o.gapClass,r.item&&!r.item.animate?`mx-auto`:``]]),style:t(o.marqueeStyle)}
72,[(B(!0),_(O,null,U(o.repeatCount,e=>(B(),_(`div`,{key:`row-`+e,class:`contents`},[(B(!0),_(O,null,U(o.pictures,(t,n)=>(B(),_(`div`,{key:e+`-`+(t.id??n)+`-`+t.img,class:R([`relative aspect-[9/10] w-44 shrink-0 overflow-hidden bg-slate-100 sm:w-72`,o.cardClass(n)])},[y(`img`,{src:t.img,alt:o.picAlt(t),sizes:`(min-width: 640px) 18rem, 11rem`,width:`800`,height:`889`,loading:`lazy`,decoding:`async`,class:`absolute inset-0 h-full w-full object-cover transition duration-300 hover:scale-[1.02]`},null,8,Jv)],2))),128))]))),128))],6)],2)])):I(``,!0)}var Xv=G(Kv,[[`render`,Yv],[`__scopeId`,`data-v-c042dc59`]]);function Zv(e){if(e==null)return``;let t=String(e).trim();if(t===``)return``;if(/^https?:\/\//i.test(t)||t.startsWith(`//`)||t.startsWith(`/`))return t;let n=typeof config<`u`&&config.id_url?String(config.id_url).replace(/\/+$/,``):``;return n?`${n}/${t.replace(/^\/+/,``)}`:`/${t.replace(/^\/+/,``)}`}c();var Qv={props:[`item`],data(){return{streams:null,database:typeof config<`u`?config.id_url:``,lang:typeof config<`u`?config.locale:`sv`,loading:!0,playSwiper:null,uniqueId:`play-`+(typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID().slice(0,8):Math.random().toString(36).substr(2,9))}},computed:{streamList(){let e=this.streams;return e==null?[]:Array.isArray(e)?e:typeof e==`object`&&Array.isArray(e.streams)?e.streams:[]},displayStreams(){return this.streamList.slice().reverse()}},mounted(){let e=this.database?String(this.database).replace(/\/+$/,``):``;if(!e){this.loading=!1;return}axios.post(`${e}/api/broadcasts`).then(e=>{let t=e.data;this.streams=Array.isArray(t)?{streams:t}:t&&typeof t==`object`?t:{streams:[]},this.loading=!1,this.$nextTick(()=>this.initSlider())}).catch(()=>{this.streams={streams:[]},this.loading=!1})},beforeUnmount(){this.playSwiper&&typeof this.playSwiper.destroy==`function`&&(this.playSwiper.destroy(!0,!0),this.playSwiper=null)},methods:{thumbUrl(e){return!e||!e.image?``:Zv(e.image)},plainDescription(e){if(!e||!e.description)return``;let t=String(e.description).replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim();return t.length?t:``},initSlider(e=0){if(!this.streamList.length)return;let t=typeof window<`u`&&window.Swiper?window.Swiper:typeof window<`u`&&window.parent&&window.parent!==window&&window.parent.Swiper?window.parent.Swiper:null;if(!t){e<45&&setTimeout(()=>this.initSlider(e+1),60);return}let n=`#${this.uniqueId}`,r=document.querySelector(`${n} .play-swipers`);if(r){this.playSwiper&&typeof this.playSwiper.destroy==`function`&&(this.playSwiper.destroy(!0,!0),this.playSwiper=null);try{this.playSwiper=new t(r,{pagination:{el:`${n} .swiper-pagination-play`,clickable:!0,dynamicBullets:!1},loop:!1,watchOverflow:!0,navigation:{nextEl:`${n} .swiper-button-next-play`,prevEl:`${n} .swiper-button-prev-play`},grabCursor:!0,centeredSlides:!0,slidesPerView:1.12,spaceBetween:12,breakpoints:{768:{slidesPerView:2.15,centeredSlides:!1,spaceBetween:20},1024:{slidesPerView:3.15,centeredSlides:!1,spaceBetween:20},1424:{slidesPerView:4,centeredSlides:!1,spaceBetween:20}},speed:500})}catch(e){console.warn(`Play slider Swiper init failed`,e)}}}}},$v=[`id`],ey={class:`mb-6 flex flex-wrap items-center justify-between gap-4 px-4 sm:px-6 lg:px-8`},ty={class:`text-2xl font-bold tracking-tight text-slate-900 md:text-3xl`},ny={class:`flex flex-wrap items-center gap-3 sm:gap-4`},ry=[`href`],iy={class:`hidden items-center gap-2 md:flex`},ay=[`aria-label`],oy={class:`sr-only`},sy=[`aria-label`],cy={class:`sr-only`},ly={class:`slider-fade-mask slider-track-mobile-bleed relative w-full max-w-full overflow-x-hidden`},uy={class:`swiper play-swipers relative !overflow-visible !px-0 md:!px-6 lg:!px-8`},dy={class:`swiper-wrapper`},fy=[`href`],py={class:`relative aspect-[16/9] w-full shrink-0 overflow-hidden rounded-2xl bg-slate-200 shadow-md ring-1 ring-slate-900/5 transition duration-300 group-hover:shadow-xl group-hover:ring-blue-500/30`},my=[`src`,`alt`],hy={class:`absolute left-3 top-3 z-[2]`},gy={key:0,class:`inline-flex items-center gap-1 rounded-full bg-white/90 px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider text-blue-700 shadow-sm ring-1 ring-blue-200/70 backdrop-blur`},_y={key:1,class:`inline-flex items-center gap-1 rounded-full bg-slate-900/70 px-2 py-1 text-[11px] font-semibold uppercase tracking-wider text-white shadow-sm ring-1 ring-white/20 backdrop-blur`,"aria-label":`Locked`},vy={class:`play-slide-caption mt-3 px-4 md:px-1`},yy={class:`line-clamp-2 text-base font-semibold text-slate-900 transition group-hover:text-blue-700`},by={key:0,class:`mt-1 line-clamp-2 text-sm text-slate-600`};function xy(e,t,n,r,i,a){return B(),_(`div`,{id:i.uniqueId,class:`play-component play-category-slider w-full min-w-0 max-w-full overflow-x-hidden`}
72,[y(`div`,ey,[y(`h2`,ty,z(n.item.title),1),y(`div`,ny,[n.item.link?(B(),_(`a`,{key:0,href:n.item.link,class:`inline-flex items-center gap-1 text-sm font-medium text-blue-600 transition hover:text-blue-800`},[w(z(n.item.linkText)+` `,1),t[0]||(t[0]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-4 w-4`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`m8.25 4.5 7.5 7.5-7.5 7.5`})],-1))],8,ry)):I(``,!0),y(`div`,iy,[y(`button`,{type:`button`,class:`swiper-button-prev-play group inline-flex h-11 w-11 items-center justify-center rounded-full border border-blue-200 bg-white text-blue-700 shadow-sm transition hover:border-blue-300 hover:bg-blue-50 hover:text-blue-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 disabled:cursor-not-allowed disabled:opacity-40`,"aria-label":i.lang===`sv`?`Föregående`:`Previous`},[y(`span`,oy,z(i.lang===`sv`?`Föregående`:`Previous`),1),t[1]||(t[1]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-5 w-5 transition group-hover:-translate-x-0.5`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M15.75 19.5 8.25 12l7.5-7.5`})],-1))],8,ay),y(`button`,{type:`button`,class:`swiper-button-next-play group inline-flex h-11 w-11 items-center justify-center rounded-full bg-blue-600 text-white shadow-sm transition hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 disabled:cursor-not-allowed disabled:opacity-40`,"aria-label":i.lang===`sv`?`Nästa`:`Next`},[y(`span`,cy,z(i.lang===`sv`?`Nästa`:`Next`),1),t[2]||(t[2]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-5 w-5 transition group-hover:translate-x-0.5`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`m8.25 4.5 7.5 7.5-7.5 7.5`})],-1))],8,sy)])])]),y(`div`,ly,[y(`div`,uy,[y(`div`,dy,[(B(!0),_(O,null,U(a.displayStreams,e=>(B(),_(`div`,{key:e.id,class:`swiper-slide !flex !h-auto flex-col`},[y(`a`,{href:`/`+i.lang+`/stream/`+e.id,class:`group flex min-h-0 flex-col`},[y(`div`,py,[a.thumbUrl(e)?(B(),_(`img`,{key:0,src:a.thumbUrl(e),alt:e.name,width:`1280`,height:`720`,decoding:`async`,fetchpriority:`low`,class:`absolute inset-0 z-0 h-full w-full object-cover transition duration-300 group-hover:scale-[1.04]`},null,8,my)):I(``,!0),t[4]||(t[4]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-1/2 bg-gradient-to-t from-slate-950/55 to-transparent`},null,-1)),y(`div`,hy,[e.is_free?(B(),_(`span`,gy,z(i.lang===`sv`?`Fri`:`Free`),1)):(B(),_(`span`,_y,[t[3]||(t[3]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`h-3.5 w-3.5`},[y(`path`,{"fill-rule":`evenodd`,d:`M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z`,"clip-rule":`evenodd`})],-1)),w(` `+z(i.lang===`sv`?`Lås`:`Locked`),1)]))]),t[5]||(t[5]=y(`div`,{class:`pointer-events-none absolute inset-0 z-[2] flex items-center justify-center`},[y(`span`,{class:`flex h-14 w-14 items-center justify-center rounded-full bg-blue-600/95 text-white shadow-lg ring-4 ring-white/30 transition duration-300 group-hover:scale-110 group-hover:bg-blue-500`},[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`ml-0.5 h-6 w-6`},[y(`path`,{d:`M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z`})])])],-1))]),y(`div`,vy,[y(`div`,yy,z(e.name),1),a.plainDescription(e)?(B(),_(`div`,by,z(a.plainDescription(e)),1)):I(``,!0)])],8,fy)]))),128))]),t[6]||(t[6]=y(`div`,{class:`swiper-pagination swiper-pagination-play hidden lg:block`},null,-1))])])],8,$v)}var Sy=G(Qv,[[`render`,xy],[`__scopeId`,`data-v-69a60a8b`]]);c();var Cy={name:`ItemAccordion`,components:{icon:Ie},props:{item:{type:Object,required:!0}},data(){return{openPanel:1,instancePrefix:``}},created(){this.instancePrefix=`acc-${Math.random().toString(36).slice(2,11)}`},methods:{panelKey(e,t){return(e==null?void 0:e.id)==null?t:e.id},isOpen(e){return this.openPanel===e+1},headingId(e){return`${this.instancePrefix}-h-${e}`},panelId(e){return`${this.instancePrefix}-p-${e}`},toggle(e){let t=e+1;this.openPanel=this.openPanel===t?null:t},triggerClass(e){let t=`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/90 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-slate-500 dark:focus-visible:ring-offset-slate-900`;return this.isOpen(e)?t:`${t} hover:bg-slate-100/70 dark:hover:bg-slate-800/40`},iconWrapClass(e){return this.isOpen(e)?`border-slate-600 bg-slate-700 text-white shadow-md dark:border-slate-500 dark:bg-slate-200 dark:text-slate-900 dark:shadow-slate-900/30`:`group-hover:border-slate-300 group-hover:bg-white group-hover:text-slate-700 dark:group-hover:border-slate-500 dark:group-hover:bg-slate-800 dark:group-hover:text-slate-200`}}},wy={key:0,class:`w-full min-w-0 overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_40px_-16px_rgba(15,23,42,0.08)] ring-1 ring-slate-900/[0.025] dark:border-slate-600/80 dark:bg-slate-900 dark:shadow-[0_1px_2px_rgba(0,0,0,0.2),0_16px_48px_-20px_rgba(0,0,0,0.35)] dark:ring-white/[0.04]`}
72,Ty={class:`divide-y divide-slate-100 dark:divide-slate-700/80`},Ey={class:`m-0 text-[1.0625rem] font-semibold leading-snug tracking-tight text-slate-900 sm:text-lg dark:text-slate-50`},Dy=[`id`,`aria-expanded`,`aria-controls`,`onClick`],Oy={class:`min-w-0 flex-1 text-pretty pt-0.5 sm:pt-0`},ky=[`id`,`aria-labelledby`],Ay={class:`min-h-0`},jy=[`aria-hidden`],My={class:`border-l-2 border-slate-200 bg-slate-50/60 py-1 pl-4 pr-1 dark:border-slate-600 dark:bg-slate-900/25 sm:pl-5`},Ny=[`innerHTML`];function Py(e,t,n,r,i,a){var o;let s=V(`icon`);return B(),_(`div`,{class:R([n.item.marginTop||``,n.item.marginBottom||``])},[(((o=n.item.list)==null?void 0:o.length)??0)>0?(B(),_(`div`,wy,[y(`div`,Ty,[(B(!0),_(O,null,U(n.item.list,(e,t)=>(B(),_(`div`,{key:a.panelKey(e,t),class:R([`relative scroll-mt-4 transition-[background-color] duration-300 ease-out`,a.isOpen(t)?`bg-slate-50/95 dark:bg-slate-800/45`:`bg-white dark:bg-slate-900`])},[y(`span`,{class:R([`pointer-events-none absolute inset-y-0 left-0 z-[1] w-[3px] rounded-r-full bg-slate-500 transition-opacity duration-300 ease-out dark:bg-slate-400`,a.isOpen(t)?`opacity-100`:`opacity-0`]),"aria-hidden":`true`},null,2),y(`h2`,Ey,[y(`button`,{id:a.headingId(t),type:`button`,class:R([`group relative z-[2] flex w-full items-start gap-4 px-5 py-4 text-left sm:items-center sm:px-7 sm:py-5`,a.triggerClass(t)]),"aria-expanded":a.isOpen(t),"aria-controls":a.panelId(t),onClick:e=>a.toggle(t)},[y(`span`,Oy,z(e.title),1),y(`span`,{class:R([`flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-slate-200/90 bg-slate-50 text-slate-500 shadow-sm transition-[transform,background-color,border-color,color,box-shadow] duration-200 ease-out dark:border-slate-600 dark:bg-slate-800 dark:text-slate-400`,a.iconWrapClass(t)]),"aria-hidden":`true`},[L(s,{icon:`chevrondown`,size:4,class:R([`transition-transform duration-200 [transition-timing-function:cubic-bezier(0.33,1,0.68,1)]`,{"-rotate-180":a.isOpen(t)}])},null,8,[`class`])],2)],10,Dy)]),y(`div`,{id:a.panelId(t),role:`region`,"aria-labelledby":a.headingId(t),class:R([`grid overflow-hidden transition-[grid-template-rows] duration-300 [transition-timing-function:cubic-bezier(0.33,1,0.68,1)] motion-reduce:transition-none`,a.isOpen(t)?`grid-rows-[1fr]`:`grid-rows-[0fr]`])},[y(`div`,Ay,[y(`div`,{class:`px-5 pb-6 pt-0 sm:px-7 sm:pb-7`,"aria-hidden":!a.isOpen(t)},[y(`div`,My,[y(`div`,{class:`prose prose-sm prose-slate max-w-none text-pretty prose-p:leading-relaxed prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-slate-800 prose-a:font-medium prose-a:text-slate-700 prose-a:no-underline prose-a:underline-offset-2 prose-strong:text-slate-800 hover:prose-a:underline sm:prose-base dark:prose-invert dark:prose-p:text-slate-400 dark:prose-headings:text-slate-100 dark:prose-a:text-slate-300 dark:prose-strong:text-slate-100 dark:hover:prose-a:text-slate-200 [&_img]:rounded-lg [&_img]:shadow-sm [&_img]:ring-1 [&_img]:ring-slate-200/90 dark:[&_img]:ring-slate-600/80`,innerHTML:e.content},null,8,Ny)])],8,jy)])],10,ky)],2))),128))])])):I(``,!0)],2)}var Fy=G(Cy,[[`render`,Py]]);c();var Iy={props:[`width`,`height`,`ratio`,`fit`],computed:{aspectRatio(){return this.ratio*100-1},style(){var e={};return this.fit||(e.paddingBottom=`${this.aspectRatio}%`),e},imgstyle(){var e={};return this.height&&(e.height=this.height+`px`),this.width&&(e.width=this.width+`px`),e}}},Ly={style:{display:`contents`}};function Ry(e,n,r,i,a,o){return B(),_(`div`,Ly,[H(e.$slots,`default`,{style:t(o.style),imgstyle:o.imgstyle,width:r.width,height:r.height})])}var zy=G(Iy,[[`render`,Ry]]);c();var By={name:`item-newsletter`,props:[`item`],data(){return{email:``,status:``,spin:!1,lang:config.locale}},computed:{spinClass(){if(this.spin)return`invisible`},comboFocusWithinClass(){let e=this.item&&this.item.style;return e===`white`||e===`light`?`focus-within:border-blue-200 focus-within:ring-2 focus-within:ring-blue-200/60`:`focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/35`}},methods:{submit(){this.status=``,this.spin=!0;var e=this;axios.post(`/public/api/`+this.lang+`/subscribe`,{email:e.email}).then(function(t){var n=t.data,r=n&&typeof n==`object`?n.status:n;
72e.status=r===`already_opted_in`||r===`subscribed`?`exists`:`ok`,e.spin=!1}).catch(function(){e.status=`error`,e.spin=!1})}}},Vy=[`placeholder`],Hy={key:0,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`'w-5 h-5 spin absolute mx-auto`},Uy={key:0,class:`text-green-500 mt-1`},Wy={key:1,class:`text-red-500 mt-1`},Gy={key:2,class:`text-red-500 mt-1`};function Ky(e,t,n,r,i,a){return B(),_(`div`,{class:R([n.item.marginTop?n.item.marginTop:``,n.item.marginBottom?n.item.marginBottom:``,n.item.class?n.item.class:``])},[y(`form`,{class:`mb-0`,onSubmit:t[1]||(t[1]=h(e=>a.submit(),[`prevent`]))},[y(`div`,{class:R([`flex flex-col overflow-hidden rounded-xl border bg-white shadow-sm transition focus-within:ring-offset-0 sm:flex-row sm:items-stretch`,[n.item.border?`border-slate-300`:`border-slate-200/90 ring-1 ring-slate-200/80 focus-within:ring-offset-0`,a.comboFocusWithinClass]])},[M(y(`input`,{"onUpdate:modelValue":t[0]||(t[0]=e=>i.email=e),"aria-label":`Email address`,type:`email`,required:``,class:`min-w-0 flex-1 border-0 bg-transparent px-5 py-3 text-base leading-6 text-gray-900 placeholder-gray-500 outline-none ring-0 transition placeholder:text-gray-400 focus:outline-none focus:ring-0 sm:py-3.5`,placeholder:n.item.placeholder},null,8,Vy),[[A,i.email]]),t[3]||(t[3]=w()),y(`button`,{class:R([[n.item.style==`blue`?`text-white bg-blue-600 hover:bg-blue-500`:``,n.item.style==`pcblue`?`text-white bg-pcblue-600 hover:bg-pcblue-500`:``,n.item.style==`light`?`text-blue-800 bg-blue-100 hover:bg-blue-200`:``,n.item.style==`white`?`text-blue-900 bg-blue-50/90 hover:bg-blue-50`:``,n.item.style==`red`?`text-white bg-red-600 hover:bg-red-500 active:bg-red-700`:``,n.item.style==`lightRed`?`text-red-800 bg-red-100 hover:bg-red-50 active:bg-red-200`:``,!n.item.style||![`blue`,`pcblue`,`light`,`white`,`red`,`lightRed`].includes(n.item.style)?`text-white bg-blue-600 hover:bg-blue-500`:``],`relative inline-flex w-full shrink-0 items-center justify-center border-0 border-t border-slate-200/90 px-6 py-3 text-sm font-semibold leading-4 outline-none ring-0 transition focus:outline-none focus:ring-0 sm:w-auto sm:min-w-[9.5rem] sm:border-l sm:border-t-0`])},[y(`span`,{class:R(a.spinClass)},z(n.item.submitText),3),i.spin?(B(),_(`svg`,Hy,[...t[2]||(t[2]=[Xe(`<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>`,8)])])):I(``,!0)],2)],2)],32),i.status==`ok`?(B(),_(`div`,Uy,` You have succesfully subscribed to the newsletter `)):I(``,!0),i.status==`exists`?(B(),_(`div`,Wy,` This email has already subscribed `)):I(``,!0),i.status==`error`?(B(),_(`div`,Gy,` There was an error `)):I(``,!0)],2)}var qy=G(By,[[`render`,Ky]]);c();var Jy={props:[`create`,`to`,`hi`,`sign`],data(){return{show:!1,secondaryColor:config.secondaryColor,idUrl:config.id_url,menuColor:config.menuBgColor,color:config.menuColor,user:!1}},computed:{accentColor(){return this.color||`blue`},signInBtnClass(){let e=this.accentColor;return[`bg-${e}-600`,`text-white`,`shadow-${e}-600/15`,`hover:bg-${e}-700`,`focus-visible:ring-${e}-500`].join(` `)},accountShellClass(){let e=this.accentColor;return[`ring-${e}-100`,`bg-${e}-50/80`].join(` `)},accountLinkClass(){let e=this.accentColor;return[`text-${e}-900`,`hover:text-${e}-900`].join(` `)}},methods:{getUser(){var e=this;axios.get(this.idUrl+`/api/user`,{withCredentials:!0}).then(function(t){e.user=t.data}).catch(function(e){console.log(e)})}},mounted(){this.getUser()}},Yy={class:`z-20 flex w-full flex-col gap-2 lg:flex-row lg:flex-1 lg:items-center lg:justify-end lg:space-x-3`},Xy=[`href`],Zy=[`href`],Qy=[`href`];function $y(e,t,n,r,i,a){return B(),_(`div`,Yy,[i.user?(B(),_(`div`,{key:1,class:R([a.accountShellClass,`flex w-full items-center gap-1.5 rounded-xl px-1.5 py-1 ring-1 ring-inset lg:h-9 lg:py-0 lg:rounded-xl lg:bg-white/10 lg:ring-white/30 lg:backdrop-blur-sm`])},[y(`a`,{href:i.idUrl,class:`max-w-52 flex-1 truncate rounded-full bg-amber-500 px-3 py-1.5 text-center text-xs font-medium text-white shadow-sm hover:bg-amber-600 lg:rounded-lg lg:bg-transparent lg:px-1.5 lg:py-0.5 lg:shadow-none lg:hover:bg-white/10`}
72,z(n.hi)+` `+z(i.user.name),9,Zy),t[1]||(t[1]=y(`span`,{class:`hidden h-4 w-px shrink-0 bg-gray-300 lg:block lg:bg-white/40`,"aria-hidden":`true`},null,-1)),y(`a`,{href:i.idUrl,class:R([`flex-1 shrink-0 whitespace-nowrap rounded-lg px-1.5 py-0.5 text-center text-xs font-semibold lg:text-white/95 lg:hover:text-white`,a.accountLinkClass])},z(n.to),11,Qy)],2)):(B(),_(`a`,{key:0,href:i.idUrl,class:R([a.signInBtnClass,`inline-flex w-full items-center justify-center gap-1.5 rounded-xl px-4 py-2.5 text-sm font-semibold shadow-sm transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 lg:inline-flex lg:h-9 lg:w-auto lg:min-w-0 lg:px-3 lg:py-0 lg:bg-white/10 lg:text-white lg:shadow-none lg:backdrop-blur-sm lg:ring-1 lg:ring-white/35 lg:hover:bg-white/15`])},[t[0]||(t[0]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:`currentColor`,class:`size-5 shrink-0 opacity-95`,"aria-hidden":`true`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z`})],-1)),y(`span`,null,z(n.sign),1)],10,Xy))])}var eb=G(Jy,[[`render`,$y]]);c();var tb={props:[`item`],data(){return{show:!1,secondaryColor:config.secondaryColor}},methods:{setCookie(){this.show=!1,localStorage.setItem(`GCalert`,this.item.name)},getCookie(e){localStorage.getItem(`GCalert`)!=this.item.name&&(this.show=!0)}},mounted(){this.getCookie(`GCalert`)}},nb={class:`max-w-screen-xl mx-auto py-3 px-3 sm:px-6 lg:px-8`},rb={class:`flex items-center justify-between flex-wrap`},ib={class:`w-0 flex-1 flex items-center`},ab={class:`ml-3 font-medium text-white leading-5`},ob={class:`md:hidden text-sm`},sb={class:`hidden md:inline`},cb={key:0,class:`order-3 mt-2 flex-shrink-0 w-full sm:order-2 sm:mt-0 sm:w-auto`},lb={class:`rounded-md shadow-sm`},ub=[`href`],db={class:`order-2 flex-shrink-0 sm:order-3 sm:ml-3`};function fb(e,t,n,r,i,a){return B(),_(`div`,{class:R([i.show?``:`hidden`,`bg-`+i.secondaryColor+`-500`])},[y(`div`,nb,[y(`div`,rb,[y(`div`,ib,[y(`span`,{class:R([`bg-`+i.secondaryColor+`-800`,`flex p-2 rounded-lg`])},[...t[1]||(t[1]=[y(`svg`,{class:`h-6 w-6 text-white`,stroke:`currentColor`,fill:`none`,viewBox:`0 0 24 24`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z`})],-1)])],2),y(`p`,ab,[y(`span`,ob,z(n.item.text),1),y(`span`,sb,z(n.item.text),1)])]),n.item.linkText?(B(),_(`div`,cb,[y(`div`,lb,[y(`a`,{href:n.item.link,class:R([`text-`+i.secondaryColor+`-600 hover:text-`+i.secondaryColor+`-500`,`flex items-center justify-center px-4 py-2 border border-transparent text-sm leading-5 font-medium rounded-md bg-white focus:outline-none focus:shadow-outline transition ease-in-out duration-150`])},z(n.item.linkText),11,ub)])])):I(``,!0),y(`div`,db,[y(`button`,{onClick:t[0]||(t[0]=e=>a.setCookie()),type:`button`,class:R([`hover:bg-`+i.secondaryColor+`-500 focus:bg-`+i.secondaryColor+`-500`,`-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition ease-in-out duration-150`])},[...t[2]||(t[2]=[y(`svg`,{class:`h-6 w-6 text-white`,stroke:`currentColor`,fill:`none`,viewBox:`0 0 24 24`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M6 18L18 6M6 6l12 12`})],-1)])],2)])])])],2)}var pb=G(tb,[[`render`,fb]]);c();var mb={props:[`item`],data(){return{show:!1,secondaryColor:config.secondaryColor}},created(){this.item&&this.item.visible&&this.syncVisibility()},methods:{syncVisibility(){let e=localStorage.getItem(`GCalert`),t=this.item&&this.item.name!=null?String(this.item.name):``;this.show=t===``||e!==t},setCookie(){this.show=!1,this.item&&this.item.name!=null&&String(this.item.name)!==``&&localStorage.setItem(`GCalert`,String(this.item.name))},getCookie(){this.syncVisibility()}},mounted(){this.getCookie()}},hb={class:`text-sm text-white`},gb=[`href`],_b={key:0,class:`font-semibold`},vb={key:1,viewBox:`0 0 2 2`,class:`mx-2 inline size-0.5 fill-current`,"aria-hidden":`true`},yb={key:2,"aria-hidden":`true`},bb={class:`flex flex-1 justify-end`};function xb(e,t,n,r,i,a){return i.show?(B(),_(`div`,{key:0,class:R([`bg-`+i.secondaryColor+`-500`,`relative z-50 flex items-center gap-x-6 px-6 py-2.5 sm:px-3.5 sm:before:flex-1`])},[y(`p`,hb,[y(`a`,{href:n.item.link||`#`},[n.item.linkText?(B(),_(`strong`,_b,z(n.item.linkText),1)):I(``,!0),n.item.linkText?(B(),_(`svg`,vb,[...t[1]||(t[1]=[y(`circle`,{cx:`1`,cy:`1`,r:`1`},null,-1)])])):I(``,!0),w(z(n.item.text)+` \xA0`,1),n.item.link?(B(),_(`span`,yb,`â`)):I(``,!0)],8,gb)]),y(`div`,bb,[y(`button`,{onClick:t[0]||(t[0]=e=>
72a.setCookie()),type:`button`,class:`-m-3 p-3 focus-visible:outline-offset-[-4px]`},[...t[2]||(t[2]=[y(`span`,{class:`sr-only`},`Dismiss`,-1),y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,class:`size-5 text-white`},[y(`path`,{"fill-rule":`evenodd`,d:`M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z`,"clip-rule":`evenodd`})],-1)])])])],2)):I(``,!0)}var Sb=G(mb,[[`render`,xb]]);c();var Cb={props:{size:{type:[Number,String],default:4},type:{type:[String],default:`medium`}}};function wb(e,t,n,r,i,a){return B(),_(`div`,null,[n.type==`medium`?(B(),_(`svg`,{key:0,class:R(`w-`+n.size+` h-`+n.size),xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[...t[0]||(t[0]=[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z`},null,-1)])],2)):I(``,!0),n.type==`small`?(B(),_(`svg`,{key:1,class:R(`w-`+n.size+` h-`+n.size),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`},[...t[1]||(t[1]=[y(`path`,{d:`M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z`},null,-1)])],2)):I(``,!0)])}var Tb=G(Cb,[[`render`,wb]]);c();var Eb={props:{size:{type:[Number,String],default:4},type:{type:[String],default:`medium`}}};function Db(e,t,n,r,i,a){return B(),_(`div`,null,[n.type==`medium`?(B(),_(`svg`,{key:0,class:R(`w-`+n.size+` h-`+n.size),xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[...t[0]||(t[0]=[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z`},null,-1),y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 13a3 3 0 11-6 0 3 3 0 016 0z`},null,-1)])],2)):I(``,!0),n.type==`small`?(B(),_(`svg`,{key:1,class:R(`w-`+n.size+` h-`+n.size),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`},[...t[1]||(t[1]=[y(`path`,{"fill-rule":`evenodd`,d:`M4 5a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V7a2 2 0 00-2-2h-1.586a1 1 0 01-.707-.293l-1.121-1.121A2 2 0 0011.172 3H8.828a2 2 0 00-1.414.586L6.293 4.707A1 1 0 015.586 5H4zm6 9a3 3 0 100-6 3 3 0 000 6z`,"clip-rule":`evenodd`},null,-1)])],2)):I(``,!0)])}var Ob=G(Eb,[[`render`,Db]]);c();var kb={ball:Ze,floorball:We,goal:rt,check:Ne,signin:e,play:N,info:Ce,pen:be,phone:Se,shop:S,chevron:Ye,chevrondown:T,book:fe,card:g,dollar:ve,stats:he,hotel:v,users:_e,clipboard:i,videocamera:o,support:ft,identification:ue,sparkles:E,star:b,trophy:p,music:ae,ticket:ne,globe:k,globealt:Re,thumbsup:r,heart:Ve,controller:ie,place:l,calendar:f,clock:me,plane:ct,paperClip:lt,at:dt,telephone:Tb,camera:Ob,spin:Oe,handball:ot,pctrophy:Te,pitch:Fe},Ab={props:{size:{type:[Number,String],default:4},icon:{type:String,default:`ball`},type:{type:[String],default:`medium`}},computed:{iconComponent(){let e=(this.icon||``).toString().trim();if(!e)return null;let t=kb[e];return x(t||kb.ball)}}};function jb(e,t,n,r,i,a){return a.iconComponent?(B(),P(st(a.iconComponent),{key:0,type:n.type,size:n.size},null,8,[`type`,`size`])):I(``,!0)}var Mb=G(Ab,[[`render`,jb]]);te(),Me();function Nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nb(Object(n),!0).forEach(function(t){Fb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nb(Object(n)).forEac
72h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ib(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,r)=>(t.includes(r)||(n[r]=C(e[r])),n),{})}function Lb(e){return typeof e==`function`}function Rb(e){return re(e)||oe(e)}function zb(e,t,n){let r=e,i=t.split(`.`);for(let e=0;e<i.length;e++){if(!r[i[e]])return n;r=r[i[e]]}return r}function Bb(e,t,n){return F(()=>e.some(e=>zb(t,e,{[n]:!1})[n]))}function Vb(e,t,n){return F(()=>e.reduce((e,r)=>{let i=zb(t,r,{[n]:!1})[n]||[];return e.concat(i)},[]))}function Hb(e,t,n,r){return e.call(r,C(t),C(n),r)}function Ub(e){return e.$valid===void 0?!e:!e.$valid}function Wb(e,t,n,r,i,o,c){let{$lazy:l,$rewardEarly:u}=i,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,p=arguments.length>9?arguments[9]:void 0,m=arguments.length>10?arguments[10]:void 0,h=a(!!r.value),g=a(0);return n.value=!1,{$invalid:h,$unwatch:s([t,r].concat(d,m),()=>{if(l&&!r.value||u&&!p.value&&!n.value)return;let i;try{i=Hb(e,t,f,c)}catch(e){i=Promise.reject(e)}g.value++,n.value=!!g.value,h.value=!1,Promise.resolve(i).then(e=>{g.value--,n.value=!!g.value,o.value=e,h.value=Ub(e)}).catch(e=>{g.value--,n.value=!!g.value,o.value=e,h.value=!0})},{immediate:!0,deep:typeof t==`object`})}}function Gb(e,t,n,r,i,a,o,s){let{$lazy:c,$rewardEarly:l}=r;return{$unwatch:()=>({}),$invalid:F(()=>{if(c&&!n.value||l&&!s.value)return!1;let r=!0;try{let n=Hb(e,t,o,a);i.value=n,r=Ub(n)}catch(e){i.value=e}return r})}}function Kb(e,t,n,r,i,o,s,c,l,u,d){let f=a(!1),p=e.$params||{},m=a(null),h,g;e.$async?{$invalid:h,$unwatch:g}=Wb(e.$validator,t,f,n,r,m,i,e.$watchTargets,l,u,d):{$invalid:h,$unwatch:g}=Gb(e.$validator,t,n,r,m,i,l,u);let _=e.$message;return{$message:Lb(_)?F(()=>_(Ib({$pending:f,$invalid:h,$params:Ib(p),$model:t,$response:m,$validator:o,$propertyPath:c,$property:s}))):_||``,$params:p,$pending:f,$invalid:h,$response:m,$unwatch:g}}function qb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=C(e),n=Object.keys(t),r={},i={},a={},o=null;return n.forEach(e=>{let n=t[e];switch(!0){case Lb(n.$validator):r[e]=n;break;case Lb(n):r[e]={$validator:n};break;case e===`$validationGroups`:o=n;break;case e.startsWith(`$`):a[e]=n;break;default:i[e]=n}}),{rules:r,nestedValidators:i,config:a,validationGroups:o}}var Jb=`__root`;function Yb(e,t,n,r,i,o,s,c,l){let u=Object.keys(e),d=r.get(i,e),f=a(!1),p=a(!1),m=a(0);if(d){if(!d.$partial)return d;d.$unwatch(),f.value=d.$dirty.value}let h={$dirty:f,$path:i,$touch:()=>{f.value||(f.value=!0)},$reset:()=>{f.value&&(f.value=!1)},$commit:()=>{}};return u.length?(u.forEach(r=>{h[r]=Kb(e[r],t,h.$dirty,o,s,r,n,i,l,p,m)}),h.$externalResults=F(()=>c.value?[].concat(c.value).map((e,t)=>({$propertyPath:i,$property:n,$validator:`$externalResults`,$uid:`${i}-externalResult-${t}`,$message:e,$params:{},$response:null,$pending:!1})):[]),h.$invalid=F(()=>{let e=u.some(e=>C(h[e].$invalid));return p.value=e,!!h.$externalResults.value.length||e}),h.$pending=F(()=>u.some(e=>C(h[e].$pending))),h.$error=F(()=>h.$dirty.value?h.$pending.value||h.$invalid.value:!1),h.$silentErrors=F(()=>u.filter(e=>C(h[e].$invalid)).map(e=>{let t=h[e];return de({$propertyPath:i,$property:n,$validator:e,$uid:`${i}-${e}`,$message:t.$message,$params:t.$params,$response:t.$response,$pending:t.$pending})}).concat(h.$externalResults.value)),h.$errors=F(()=>h.$dirty.value?h.$silentErrors.value:[]),h.$unwatch=()=>u.forEach(e=>{h[e].$unwatch()}),h.$commit=()=>{p.value=!0,m.value=Date.now()},r.set(i,e,h),h):(d&&r.set(i,e,h),h)}function Xb(e,t,n,r,i,a,o){let s=Object.keys(e);return s.length?s.reduce((s,c)=>(s[c]=Qb({validations:e[c],state:t,key:c,parentKey:n,resultsCache:r,globalConfig:i,instance:a,externalResults:o}),s),{}):{}}function Zb(e,t,n){let r=F(()=>[t,n].filter(e=>e).reduce((e,t)=>e.concat(Object.values(C(t))),[])),i=F({get(){return e.$dirty.value||(r.value.length?r.value.every(e=>e.$dirty):!1)},set(t){e.$dirty.value=t}}),a=F(()=>{let t=C(e.$silentErrors)||[],n=r.value.filter(e=>(C(e).$silentErrors||[]).length).reduce((e,t)=>
72e.concat(...t.$silentErrors),[]);return t.concat(n)}),o=F(()=>{let t=C(e.$errors)||[],n=r.value.filter(e=>(C(e).$errors||[]).length).reduce((e,t)=>e.concat(...t.$errors),[]);return t.concat(n)}),s=F(()=>r.value.some(e=>e.$invalid)||C(e.$invalid)||!1),c=F(()=>r.value.some(e=>C(e.$pending))||C(e.$pending)||!1),l=F(()=>r.value.some(e=>e.$dirty)||r.value.some(e=>e.$anyDirty)||i.value),u=F(()=>i.value?c.value||s.value:!1),d=()=>{e.$touch(),r.value.forEach(e=>{e.$touch()})};return r.value.length&&r.value.every(e=>e.$dirty)&&d(),{$dirty:i,$errors:o,$invalid:s,$anyDirty:l,$error:u,$pending:c,$touch:d,$reset:()=>{e.$reset(),r.value.forEach(e=>{e.$reset()})},$silentErrors:a,$commit:()=>{e.$commit(),r.value.forEach(e=>{e.$commit()})}}}function Qb(e){let{validations:t,state:n,key:r,parentKey:i,childResults:a,resultsCache:o,globalConfig:c={},instance:l,externalResults:u}=e,d=i?`${i}.${r}`:r,{rules:f,nestedValidators:p,config:h,validationGroups:g}=qb(t),_=Pb(Pb({},c),h),v=r?F(()=>{let e=C(n);return e?C(e[r]):void 0}):n,y=Pb({},C(u)||{}),b=F(()=>{let e=C(u);return r?e?C(e[r]):void 0:e}),x=Yb(f,v,r,o,d,_,l,b,n),S=Xb(p,v,d,o,_,l,b),w={};g&&Object.entries(g).forEach(e=>{let[t,n]=e;w[t]={$invalid:Bb(n,S,`$invalid`),$error:Bb(n,S,`$error`),$pending:Bb(n,S,`$pending`),$errors:Vb(n,S,`$errors`),$silentErrors:Vb(n,S,`$silentErrors`)}});let{$dirty:T,$errors:ee,$invalid:E,$anyDirty:D,$error:O,$pending:k,$touch:te,$reset:A,$silentErrors:ne,$commit:re}=Zb(x,S,a),j=r?F({get:()=>C(v),set:e=>{T.value=!0;let t=C(n),i=C(u);i&&(i[r]=y[r]),m(t[r])?t[r].value=e:t[r]=e}}):null;r&&_.$autoDirty&&s(v,()=>{T.value||te();let e=C(u);e&&(e[r]=y[r])},{flush:`sync`});async function ie(){return te(),_.$rewardEarly&&(re(),await De()),await De(),new Promise(e=>{if(!k.value)return e(!E.value);let t=s(k,()=>{e(!E.value),t()})})}function M(e){return(a.value||{})[e]}function ae(){m(u)?u.value=y:Object.keys(y).length===0?Object.keys(u).forEach(e=>{delete u[e]}):Object.assign(u,y)}return de(Pb(Pb(Pb({},x),{},{$model:j,$dirty:T,$error:O,$errors:ee,$invalid:E,$anyDirty:D,$pending:k,$touch:te,$reset:A,$path:d||Jb,$silentErrors:ne,$validate:ie,$commit:re},a&&{$getResultsForChild:M,$clearExternalResults:ae,$validationGroups:w}),S))}var $b=class{constructor(){this.storage=new Map}set(e,t,n){this.storage.set(e,{rules:t,result:n})}checkRulesValidity(e,t,n){let r=Object.keys(n),i=Object.keys(t);return i.length!==r.length||!i.every(e=>r.includes(e))?!1:i.every(e=>!t[e].$params||Object.keys(t[e].$params).every(r=>C(n[e].$params[r])===C(t[e].$params[r])))}get(e,t){let n=this.storage.get(e);if(!n)return;let{rules:r,result:i}=n,a=this.checkRulesValidity(e,t,r),o=i.$unwatch?i.$unwatch:()=>({});return a?i:{$dirty:i.$dirty,$partial:!0,$unwatch:o}}},ex={COLLECT_ALL:!0,COLLECT_NONE:!1},tx=Symbol(`vuelidate#injectChildResults`),nx=Symbol(`vuelidate#removeChildResults`);function rx(e){let{$scope:t,instance:n}=e,r={},i=a([]),o=F(()=>i.value.reduce((e,t)=>(e[t]=C(r[t]),e),{}));function s(e,n){let{$registerAs:a,$scope:o,$stopPropagation:s}=n;s||t===ex.COLLECT_NONE||o===ex.COLLECT_NONE||t!==ex.COLLECT_ALL&&t!==o||(r[a]=e,i.value.push(a))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],s);function c(e){i.value=i.value.filter(t=>t!==e),delete r[e]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],c);let l=nt(tx,[]);Je(tx,n.__vuelidateInjectInstances);let u=nt(nx,[]);return Je(nx,n.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:l,removeValidationResultsFromParent:u}}function ix(e){return new Proxy(e,{get(e,t){return typeof e[t]==`object`?ix(e[t]):F(()=>e[t])}})}var ax=0;function ox(e,t){var n;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(r=e,e=void 0,t=void 0);let{$registerAs:i,$scope:o=ex.COLLECT_ALL,$stopPropagation:c,$externalResults:l,currentVueInstance:u}=r,d=u||((n=we())==null?void 0:n.proxy),f=d?d.$options:{};i||(ax+=1,i=`_vuelidate_${ax}`);let p=a({}),h=new $b,{childResults:g,sendValidationResultsToParent:_,removeValidationResultsFromParent:v}=d?rx({$scope:o,instance:d}):{childResults:a({})};if(!e&&f.validations){let e=f.validations;t=a({}),Ke(()=>{t.value=d,s(()=>Lb(e)?e.call(t.value,new ix(t.value)):e,e=>{p.value=Qb({validations:e,state:t,childResults:g,resultsCache:h,globalConfig:r,instance:d,externalResults:l||d.vuelidateExter
72nalResults})},{immediate:!0})}),r=f.validationsConfig||r}else{let n=m(e)||Rb(e)?e:de(e||{});s(n,e=>{p.value=Qb({validations:e,state:t,childResults:g,resultsCache:h,globalConfig:r,instance:d??{},externalResults:l})},{immediate:!0})}return d&&(_.forEach(e=>e(p,{$registerAs:i,$scope:o,$stopPropagation:c})),$e(()=>v.forEach(e=>e(i)))),F(()=>Pb(Pb({},C(p.value)),g.value))}c();var sx={state:de({currentTab:0,v:{},activeStepKeys:[]}),_syncKeysFn:null,registerKeysSync(e){this._syncKeysFn=typeof e==`function`?e:null},unregisterKeysSync(){this._syncKeysFn=null},setCurrentTab(e){this.state.currentTab=e,typeof this._syncKeysFn==`function`&&this._syncKeysFn()},setValidation(e){this.state.v=e},setActiveStepKeys(e){this.state.activeStepKeys=Array.isArray(e)?e:[]}};c();var cx={current:null},lx=de(new Set),ux=a(0);function dx(e){Array.isArray(e)&&e.forEach(e=>e&&lx.add(e))}function fx(){lx.clear()}function px(){ux.value++}function mx(){let e=cx.current;if(!e)return null;let t=e.validationRules,n=e.storeState?e.storeState.currentTab:0;return t&&t[n]?t[n]:null}function hx(e){let t=mx();return t&&t[e]?t[e]:null}function gx(e){return e==null?null:typeof e==`function`?e:typeof e.$validator==`function`?e.$validator.bind(e):null}function _x(e,t,n){let r=gx(e);if(!r)return!0;try{let e=r.call(n,t,n&&n.formData,n);return e&&typeof e==`object`&&`$valid`in e?!!e.$valid:!!e}catch{return!1}}function vx(e,t){ux.value;let n=hx(t);if(!n||n[e]==null)return!1;let r=cx.current;if(!r)return!1;let i=r.formData?r.formData[t]:void 0;return!_x(n[e],i,r)}function yx(e){if(ux.value,!lx.has(e))return!1;let t=hx(e);if(!t)return!1;let n=cx.current;if(!n)return!1;let r=n.formData?n.formData[e]:void 0;for(let e of Object.keys(t))if(!e.startsWith(`$`)&&!_x(t[e],r,n))return!0;return!1}function bx(e){return vx(`required`,e)}function xx(e){return vx(`email`,e)}function Sx(e){return vx(`maxLength`,e)}function Cx(e){return vx(`personnummer`,e)}function wx(e){return vx(`accepted`,e)}c();var Tx={name:`form-wizard`,inject:{getFormStepValidationKeys:{from:`getFormStepValidationKeys`,default:null},validateWizardStepFields:{from:`validateWizardStepFields`,default:null}},data(){return{tabs:[],currentTab:0,totalTabs:0,storeState:sx.state,submitSuccess:!1,progress:0}},props:[`doreset`,`previous`,`next`,`submit`,`submitting`,`user`],mounted(){this.totalTabs=this.tabs.length,this.totalTabs!==0&&(this.currentTab=this.tabs.findIndex(e=>e.isActive===!0),this.currentTab===-1&&this.totalTabs>0&&(this.tabs[0].isActive=!0,this.currentTab=0),this.progress=(this.currentTab+1)/this.totalTabs*100,sx.setCurrentTab(this.currentTab))},methods:{registerTab(e){this.tabs.includes(e)||(this.tabs.push(e),this.totalTabs=this.tabs.length)},unregisterTab(e){let t=this.tabs.indexOf(e);t>=0&&this.tabs.splice(t,1),this.totalTabs=this.tabs.length},previousTab(){this._switchTab(this.currentTab-1),this.$emit(`onPreviousStep`),window.scrollTo(0,0)},async nextTab(){this.tabs.length===0||this.currentTab>=this.tabs.length-1||await this._validateCurrentTab()!==!1&&(this._switchTab(this.currentTab+1),this.$emit(`onNextStep`),window.scrollTo(0,0))}
72,reset(){this.tabs.forEach(e=>{e.isActive=!1,e.isValidated=!1}),this._switchTab(0),this.submitSuccess=!1;let e=C(this.storeState&&this.storeState.v);e&&typeof e.$reset==`function`&&e.$reset(),fx(),this.$emit(`onReset`)},changeStatus(){this.submitSuccess=!0},async selectTab(e){if(e<this.currentTab){this._switchTab(e);return}await this._validateCurrentTab()!==!1&&(e>0&&this.tabs[e-1]&&this.tabs[e-1].isValidated===!1||this._switchTab(e))},async onSubmit(){await this._validateCurrentTab()!==!1&&this.$emit(`submit`)},_switchTab(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;this.tabs.forEach(e=>{e.isActive=!1}),this.currentTab=e,this.tabs[e].isActive=!0;let t=this.totalTabs||this.tabs.length;this.progress=t?(this.currentTab+1)/t*100:0,window.scrollTo(0,0)},async _validateCurrentTab(){sx.setCurrentTab(this.currentTab),await this.$nextTick(),await this.$nextTick();let e=typeof this.getFormStepValidationKeys==`function`?this.getFormStepValidationKeys(this.currentTab):sx.state.activeStepKeys||[],t=C(sx.state.v),n=t&&C(t.formData),r=!0;if(typeof this.validateWizardStepFields==`function`&&(r=this.validateWizardStepFields(this.currentTab)),n&&typeof n.$touch==`function`?n.$touch():e.forEach(e=>{let t=n&&n[e];t&&typeof t.$touch==`function`&&t.$touch()}),await this.$nextTick(),e.length===0)return this.tabs[this.currentTab]&&(this.tabs[this.currentTab].isValidated=!0),!0;if(typeof this.validateWizardStepFields==`function`)return r?(this.tabs[this.currentTab]&&(this.tabs[this.currentTab].isValidated=!0),!0):(dx(e),this.tabs[this.currentTab]&&(this.tabs[this.currentTab].isValidated=!1),!1);if(!n)return this.tabs[this.currentTab]&&(this.tabs[this.currentTab].isValidated=!0),!0;let i=!1;return e.forEach(e=>{let t=n&&n[e];t&&C(t.$invalid)&&(i=!0)}),i?(dx(e),this.tabs[this.currentTab]&&(this.tabs[this.currentTab].isValidated=!1),!1):(this.tabs[this.currentTab]&&(this.tabs[this.currentTab].isValidated=!0),!0)}},watch:{currentTab(){sx.setCurrentTab(this.currentTab)},doreset:function(e){e&&this.reset()}}},Ex={class:`vue-step-wizard`},Dx={class:`hidden lg:block border-b border-slate-200/80 bg-white`},Ox={class:`px-4 sm:px-6 lg:px-8`},kx={class:`overflow-hidden rounded-none lg:flex lg:gap-0`},Ax=[`onClick`],jx={class:`overflow-hidden border border-slate-200/90 border-t-0 first:border-t first:rounded-t-lg lg:first:rounded-t-none lg:border lg:border-slate-200/90 lg:rounded-none lg:first:border-l-0 lg:last:border-r-0`},Mx={href:`#`,class:`group outline-none transition-colors focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`},Nx={key:0,class:`absolute top-0 left-0 w-1 h-full bg-transparent group-hover:bg-slate-100 group-focus:bg-slate-100 lg:w-full lg:h-1 lg:bottom-0 lg:top-auto`},Px={key:1,class:`absolute top-0 left-0 w-1 h-full bg-blue-600 lg:w-full lg:h-1 lg:bottom-0 lg:top-auto`},Fx={class:`px-6 py-5 flex items-start text-sm leading-5 font-medium space-x-4 lg:pl-9`},Ix={key:0,class:`flex-shrink-0`},Lx={key:1,class:`flex-shrink-0`},Rx={class:`mt-0.5 min-w-0`},zx={class:`text-sm leading-5 text-slate-500`},Bx={key:0,class:`hidden absolute top-0 left-0 w-3 inset-0 lg:block`},Vx={class:`bg-slate-50 py-6 lg:py-10`},Hx={class:`lg:hidden mb-8 flex justify-center px-4`},Ux={"aria-label":`Form steps`},Wx={class:`flex items-center`},Gx=[`onClick`],Kx={class:`absolute inset-0 flex items-center`},qx={key:0,href:`#`,class:`relative z-[1] flex h-9 w-9 items-center justify-center rounded-full bg-blue-600 text-white shadow-sm ring-4 ring-slate-50 transition hover:bg-blue-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-50`},Jx={key:1,class:`relative z-[1] flex h-9 w-9 items-center justify-center rounded-full border-2 border-blue-600 bg-white shadow-sm ring-4 ring-slate-50`},Yx={key:2,href:`#`,class:`group relative z-[1] flex h-9 w-9 items-center justify-center rounded-full border-2 border-slate-300 bg-white shadow-sm ring-4 ring-slate-50 transition hover:border-slate-400 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`},Xx={class:`mx-auto max-w-7xl px-4 sm:px-6 lg:px-8`},Zx={class:`overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm`},Qx={class:`px-4 py-6 sm:p-8`},$x={class:`step-body`},eS={class:`flex flex-col gap-3 border-t border-slate-200 bg-slate-50/90 px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-6`},tS={key:0,class:`inline-flex min-h-10`},nS={class:`ml-auto flex w-full flex-wrap items-center justify-end gap-2 sm:w-auto
72sm:gap-3`},rS={key:0,class:`inline-flex`},iS={key:1,class:`inline-flex`},aS=[`disabled`],oS={key:0,class:`h-4 w-4 shrink-0 animate-spin text-white`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"aria-hidden":`true`};function sS(e,t,n,r,i,a){return B(),_(`div`,Ex,[y(`div`,Dx,[y(`nav`,Ox,[y(`ul`,kx,[(B(!0),_(O,null,U(i.tabs,(e,n)=>(B(),_(`li`,{class:`relative overflow-hidden lg:flex-1`,onClick:h(e=>a.selectTab(n),[`prevent`,`stop`]),key:`tab-${n}`},[y(`div`,jx,[y(`a`,Mx,[e.isValidated?I(``,!0):(B(),_(`div`,Nx)),e.isActive?(B(),_(`div`,Px)):I(``,!0),y(`div`,Fx,[e.isValidated?(B(),_(`div`,Ix,[...t[4]||(t[4]=[y(`div`,{class:`w-10 h-10 flex items-center justify-center rounded-full bg-blue-600 shadow-sm`},[y(`svg`,{class:`w-6 h-6 text-white`,viewBox:`0 0 20 20`,fill:`currentColor`},[y(`path`,{"fill-rule":`evenodd`,d:`M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z`,"clip-rule":`evenodd`})])],-1)])])):I(``,!0),e.isValidated?I(``,!0):(B(),_(`div`,Lx,[y(`div`,{class:R([`w-10 h-10 flex items-center justify-center border-2 rounded-full bg-white shadow-sm`,[e.isActive?`border-blue-600`:``,e.isActive?``:`border-slate-300`]])},[y(`p`,{class:R([`text-sm font-semibold tabular-nums`,[e.isActive?`text-blue-600`:``,e.isActive?``:`text-slate-500`]])},z(String(n+1).padStart(2,`0`)),3)],2)])),y(`div`,Rx,[y(`h3`,{class:R([`text-xs leading-4 font-semibold uppercase tracking-wide text-slate-900`,[e.isActive?`text-blue-700`:``,e.isActive?``:`text-slate-500`]])},z(e.title),3),y(`p`,zx,z(e.subnav),1)])])]),n==0?I(``,!0):(B(),_(`div`,Bx,[...t[5]||(t[5]=[y(`svg`,{class:`h-full w-full text-slate-200`,viewBox:`0 0 12 82`,fill:`none`,preserveAspectRatio:`none`},[y(`path`,{d:`M0.5 0V31L10.5 41L0.5 51V82`,stroke:`currentcolor`,"vector-effect":`non-scaling-stroke`})],-1)])]))])],8,Ax))),128))])])]),y(`div`,Vx,[y(`div`,Hx,[y(`nav`,Ux,[y(`ul`,Wx,[(B(!0),_(O,null,U(i.tabs,(e,n)=>(B(),_(`li`,{class:R([`relative`,[n==i.totalTabs-1?``:`pr-6 sm:pr-20`]]),onClick:h(e=>a.selectTab(n),[`prevent`,`stop`]),key:`tab-${n}`},[y(`div`,Kx,[y(`div`,{class:R([`h-0.5 w-full`,{"bg-blue-600":e.isValidated,"bg-slate-200":!e.isValidated}])},null,2)]),e.isValidated?(B(),_(`a`,qx,[...t[6]||(t[6]=[y(`svg`,{class:`h-5 w-5`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z`,"clip-rule":`evenodd`})],-1)])])):e.isActive?(B(),_(`span`,Jx,[...t[7]||(t[7]=[y(`span`,{class:`h-2.5 w-2.5 rounded-full bg-blue-600`},null,-1)])])):(B(),_(`a`,Yx,[...t[8]||(t[8]=[y(`span`,{class:`h-2 rounded-full bg-transparent transition group-hover:bg-slate-300`},null,-1)])]))],10,Gx))),128))])])]),y(`div`,Xx,[y(`div`,Zx,[y(`div`,Qx,[y(`div`,$x,[y(`form`,null,[H(e.$slots,`default`)])])]),y(`div`,eS,[i.submitSuccess?(B(),_(`button`,{key:1,type:`button`,onClick:t[3]||(t[3]=(...e)=>a.reset&&a.reset(...e)),class:`inline-flex h-10 items-center justify-center rounded-xl border border-slate-200 bg-white px-5 text-sm font-medium text-slate-900 shadow-sm transition-colors hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`},` Reset `)):(B(),_(O,{key:0},[i.currentTab==0?I(``,!0):(B(),_(`span`,tS,[y(`button`,{onClick:t[0]||(t[0]=(...e)=>a.previousTab&&a.previousTab(...e)),type:`button`,class:`inline-flex h-10 items-center justify-center rounded-xl border border-slate-200 bg-white px-5 text-sm font-medium text-slate-900 shadow-sm transition-colors hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`},z(n.previous),1)])),y(`div`,nS,[i.currentTab<i.totalTabs-1?(B(),_(`span`,rS,[y(`button`,{onClick:t[1]||(t[1]=(...e)=>a.nextTab&&a.nextTab(...e)),type:`button`,class:`inline-flex h-10 items-center justify-center rounded-xl bg-blue-600 px-6 text-sm font-medium text-white shadow transition-colors hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`},z(n.next),1)])):I(``,!0),i.currentTab===i.totalTabs-1?(B(),_(`span`,iS,[y(`button`,{onClick:t[2]||(t[2]=(...e)=>a.onSubmit&&a.onSubmit(...e)),type:`button`,disabled:n.submitting,class:`inline-flex h-10 min-w-[8rem] items-center justify-center gap-2 rounded-xl bg-blue-600 px-6 text-sm font-medium text-white shadow transition-colors hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-70`},[n.submitting?(B(),_(`svg`,oS,[...t[9]||(t[9]=[y(`circle`,{class:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,"stroke-width":`4`},null,-1),y(`path`,{class:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`}
72,null,-1)])])):I(``,!0),w(` `+z(n.submit),1)],8,aS)])):I(``,!0)])],64))])])])])])}var cS=G(Tx,[[`render`,sS]]);c();var lS={name:`tab-content`,props:{selected:{default:!1},title:{type:String,required:!0},subnav:{type:String,required:!1},user:{default:!1}},data(){return{isActive:!1,isValidated:!1}},created(){this.isActive=this.selected},mounted(){let e=this.$parent;for(;e;){if(e.$options.name===`form-wizard`&&typeof e.registerTab==`function`){e.registerTab(this);break}e=e.$parent}},beforeUnmount(){let e=this.$parent;for(;e;){if(e.$options.name===`form-wizard`&&typeof e.unregisterTab==`function`){e.unregisterTab(this);break}e=e.$parent}}},uS={key:0};function dS(e,t,n,r,i,a){return i.isActive?(B(),_(`div`,uS,[H(e.$slots,`default`)])):I(``,!0)}var fS=G(lS,[[`render`,dS]]),pS={props:{value:{type:[Number],default:0},prefill:{default:!1},item:{default:!1},user:{default:!1}},watch:{user:function(e,t){this.$emit(`input`,e.id)}},data(){return{what:!1}},mounted(){this.user&&this.$emit(`input`,this.user.id)},methods:{signin(){this.$emit(`signin`)},updateprefill(){this.$emit(`updateprefill`)},handle(){this.$emit(`input`,this.content)}}};c();var mS={name:`FormInputField`,props:{modelValue:{type:[String,Number],default:``},fieldType:{type:String,default:`text`},fieldId:{type:String,required:!0},hasIcon:{type:Boolean,default:!1},placeholder:{type:String,default:``},error:{type:Boolean,default:!1},prefill:{default:!1},prefillglobal:{default:!1},prefillfield:{default:``},user:{default:!1}},emits:[`update:modelValue`],data(){return{content:this.normalize(this.modelValue)}},computed:{resolvedType(){return this.fieldType===`personnummer`?`text`:this.fieldType},disabled(){return!!(this.user&&this.prefillfield&&this.user[this.prefillfield]&&this.prefill==`1`&&this.prefillglobal)},mergedInputClass(){return[this.error?`border-red-500 text-red-900 placeholder-red-400 focus-visible:border-red-500 focus-visible:ring-red-500`:`border-slate-200 focus-visible:border-blue-500 focus-visible:ring-blue-500`,this.disabled?`cursor-not-allowed bg-slate-50 opacity-70`:`bg-white`,this.hasIcon?`pl-10`:`pl-3`,`pr-10 block h-10 w-full rounded-xl border text-sm text-slate-900 shadow-sm placeholder:text-slate-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 sm:text-sm`]}},watch:{modelValue(e){let t=this.normalize(e);t!==this.content&&(this.content=t)},user(){this.prefillField()},prefillglobal(e){e&&this.prefillField()}},mounted(){this.prefillField()},methods:{normalize(e){return e==null||e===``?``:String(e)},onInput(e){this.content=e.target.value,this.$emit(`update:modelValue`,this.content)},prefillField(){this.prefill===`1`&&this.prefillglobal&&this.user!=null&&this.prefillfield&&(this.content=this.normalize(this.user[this.prefillfield]),this.$emit(`update:modelValue`,this.content))}}},hS=[`id`,`value`,`type`,`disabled`,`placeholder`];function gS(e,t,n,r,i,a){return B(),_(`input`,{id:n.fieldId,value:i.content,type:a.resolvedType,disabled:a.disabled,placeholder:n.placeholder,class:R(a.mergedInputClass),onInput:t[0]||(t[0]=(...e)=>a.onInput&&a.onInput(...e))},null,42,hS)}var _S=G(mS,[[`render`,gS]]),vS={data(){return{storeState:sx.state}},mounted(){sx.setValidation(this.v$),sx.registerKeysSync(()=>this.syncActiveStepKeys()),this.syncActiveStepKeys(),this.$watch(()=>[sx.state.currentTab,this.validationRules],()=>this.syncActiveStepKeys(),{deep:!0}),this._formDataUnwatch=this.$watch(()=>this.formData,()=>px(),{deep:!0}),px()},beforeUnmount(){sx.unregisterKeysSync(),typeof this._formDataUnwatch==`function`&&(this._formDataUnwatch(),this._formDataUnwatch=null)},methods:{syncActiveStepKeys(){let e=sx.state.currentTab,t=this.validationRules&&this.validationRules[e]?this.validationRules[e]:{};sx.setActiveStepKeys(Object.keys(t))}}},yS={current:null};function bS(e){let t=yS.current||{};if(!e||!e.field)return``;let n=String(e.value||``).split(`,`).map(function(e){return e.trim()}),r=t[e.field],i=String(r??``),a=n.includes(i),o=e.operator===`!=`;return a?o?``:`hidden`:o?`hidden`:``}function xS(e){return e==null?null:typeof e==`function`?e:typeof e.$validator==`function`?e.$validator.bind(e):null}function SS(e){return e==null||typeof e==`object`&&typeof e.then==`function`?!0:typeof e==`object`&&e&&`$valid`in e?!!e.$valid:!!e}function CS(e,t,n){if(!t||typeof t!=`object`)return!0;for(let r of Object.keys(t)){let i=t[r];
72if(!i||typeof i!=`object`)continue;let a=e[r];for(let t of Object.keys(i)){if(t.startsWith(`$`))continue;let r=i[t],o=xS(r);if(o)try{if(!SS(o.call(n,a,e,n)))return!1}catch{return!1}}}return!0}te();var wS=e=>{if(e=C(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e==`object`){for(let t in e)return!0;return!1}return!!String(e).length},TS=e=>(e=C(e),Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:String(e).length);function ES(){var e=[...arguments];return t=>(t=C(t),!wS(t)||e.every(e=>(e.lastIndex=0,e.test(t))))}var DS={$validator:ES(/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i),$message:`Value is not a valid email address`,$params:{type:`email`}};function OS(e){return t=>!wS(t)||TS(t)<=C(e)}function kS(e){return{$validator:OS(e),$message:e=>{let{$params:t}=e;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:`maxLength`}}}function AS(e){return typeof e==`string`&&(e=e.trim()),wS(e)}var jS={$validator:AS,$message:`Value is required`,$params:{type:`required`}};c();function MS(e){return e==null||e.length<1||(e=e.replace(/\D/g,``).split(``).reverse().slice(0,10),e.length==10&&e.map(function(e){return Number(e)}).reduce(function(e,t,n){return n%2&&(t*=2),t>9&&(t-=9),e+t})%10==0)}var NS=e=>MS(e);function PS(e){var t;if(e==null||String(e).trim()===``||typeof window>`u`||!((t=window.location)!=null&&t.search))return null;let n=new URLSearchParams(window.location.search).get(String(e));return n!=null&&n!==``?n:null}var FS=e=>e===!0||e===`true`,IS={props:[`form`,`persons`],setup(){let e=we(),t=ge(null);return Ke(()=>{if(!e)return;let n=e.proxy,r=F(()=>{let e=Number(sx.state.currentTab),t=n.validationRules;return{formData:t&&t[e]!=null&&typeof t[e]==`object`?t[e]:{}}});t.value=ox(r,n)}),{v$:F(()=>{let e=t.value;return e?C(e):{}})}},provide(){return{getFormStepValidationKeys:e=>{let t=this.validationRules;return!t||t[e]==null||typeof t[e]!=`object`?[]:Object.keys(t[e])},validateWizardStepFields:e=>{let t=this.validationRules,n=t&&t[e];return CS(this.formData,n,this)}}},components:{FormWizard:cS,TabContent:fS,User:pS,inputField:_S,inputError:Ae},mixins:[vS],data(){return{idUrl:config.id_url,name:config.appName,success:!1,showError:!1,submitting:!1,error:0,formData:{},reset:!1,user:!1,prefill:!0,showSignIn:!1,email:null,password:null,loadingSignIn:!1,signInError:{}}},computed:{formDatag(){var e={};return this.form&&this.form.content&&this.form.content.forEach(function(t){t.items.forEach(function(t){console.log(t),e[t.dataName]=t.value})}),e},validationRules(){var e=[];this.formData;var t=this;return this.form&&this.form.content&&this.form.content.forEach(function(n){var r={};n.items.forEach(function(e){e.dataName?(r[e.dataName]={},e.hideField&&e.hideOperator&&e.hideValue?(e.hideOperator==`==`&&t.formData[e.hideField]!=e.hideValue||e.hideOperator==`!=`&&t.formData[e.hideField]==e.hideValue)&&(e.required&&(e.type==`checkboxSingle`?r[e.dataName]={accepted:FS}:r[e.dataName].required=jS),e.max>0&&(r[e.dataName].maxLength=kS(e.max)),e.type==`input`&&e.fieldType==`email`&&(r[e.dataName].email=DS),e.type==`input`&&e.fieldType==`personnummer`&&(r[e.dataName].personnummer=NS)):(e.required&&(e.type==`checkboxSingle`||e.type==`personalNumber`?r[e.dataName]={accepted:FS}:r[e.dataName].required=jS),e.max>0&&(r[e.dataName].maxLength=kS(e.max)),e.type==`input`&&e.fieldType==`email`&&(r[e.dataName].email=DS),e.type==`input`&&e.fieldType==`personnummer`&&(r[e.dataName].personnummer=NS))):e.type==`namelist`&&e.required&&(t.persons>0&&(r[e.dataFirst1]={},r[e.dataFirst1].required=jS,r[e.dataLast1]={},r[e.dataLast1].required=jS,t.name==`Gothia Cup Cancun`&&(r[e.dataBday1]={},r[e.dataBday1].required=jS)),t.persons>1&&(r[e.dataFirst2]={},r[e.dataFirst2].required=jS,r[e.dataLast2]={},r[e.dataLast2].required=jS,t.name==`Gothia Cup Cancun`&&(r[e.dataBday2]={},r[e.dataBday2].required=jS)),t.persons>2&&(r[e.dataFirst3]={},r[e.dataFirst3].required=jS,r[e.dataLast3]={},r[e.dataLast3].required=jS,t.name==`Gothia Cup Cancun`&&(r[e.dataBday3]={},r[e.dataBday3].required=jS)),t.persons>3&&(r[e.dataFirst4]={},r[e.dataFirst4].required=jS,r[e.dataLast4]={},r[e.dataLast4].required=jS,t.name==`Gothia Cup Cancun`&&(r[e.dataBday4]={},r[e.dataBday4].required=jS)))}),e.push(r)}),e}},created(){yS.current=this.formData,cx.current=this}
72,mounted(){this.getUser();var e={},t=this.name;this.form&&this.form.content&&this.form.content.forEach(function(n){n.items.forEach(function(n){if(console.log(n),n.type==`shirt`)e[n.dataShirtType]=`gothia_f`,e[n.dataShirt]=`266`,e[n.dataShirtSecondary]=`266`,e[n.dataTrousers]=`266`;else if(n.type==`namelist`)e[n.dataFirst1]=``,e[n.dataLast1]=``,e[n.dataFirst2]=``,e[n.dataLast2]=``,e[n.dataFirst3]=``,e[n.dataLast3]=``,e[n.dataFirst4]=``,e[n.dataLast4]=``;else if(n.type===`prepopulated`&&n.dataName!=null){if(n.fieldType===`hidden`){let r=String(n.pre??``).trim(),i=String(n.value??``).trim();e[n.dataName]=r||i||(n.dataName===`Turnering`?t:``)}else e[n.dataName]=PS(n.pre)??n.value??``}else if(n.type===`upload`){let t=Number(n.files)||1;for(let n=1;n<=t;n++)e[`Bilaga${n}`]=``}else n.dataName!=null&&(e[n.dataName]=n.value)})}),this.formData=e,yS.current=this.formData,cx.current=this},updated(){yS.current=this.formData,cx.current=this},beforeUnmount(){yS.current===this.formData&&(yS.current=null),cx.current===this&&(cx.current=null)},methods:{login(){var e=this;this.loadingSignIn=!0,axios.get(this.idUrl+`/sanctum/csrf-cookie`).then(t=>{axios.post(this.idUrl+`/login`,{email:this.email,password:this.password}).then(function(t){e.getUser(),e.showSignIn=!1,e.loadingSignIn=!1}).catch(function(t){e.signInError=t.response.data.errors,e.loadingSignIn=!1,console.log(t)}).then(function(){})})},signin(){this.showSignIn=!0},updateprefill(e){this.prefill=!this.prefill},getUser(){var e=this;axios.get(this.idUrl+`/api/user`,{withCredentials:!0}).then(function(t){e.user=t.data}).catch(function(e){console.log(e)})},resetForm(){this.success=!1,this.reset=!0},onComplete(){this.reset=!1,console.log(`complete`),this.submitting=!0;var e=this;axios.post(`/public/api/fm/store/`+this.form.database+`/`+this.form.layout,{data:e.formData,form:e.form},{withCredentials:!1}).then(function(t){t.data==0?e.success=!0:(e.showError=!0,e.error=t.data),e.submitting=!1,console.log(t)}).catch(function(e){console.log(e)}).then(function(){})}}},LS={class:`form-component`};function RS(e,t,n,r,i,a){return B(),_(`div`,LS,[H(e.$slots,`default`)])}var zS=G(IS,[[`render`,RS]]);c();function BS(e){return e===!0||e===`true`?`true`:`false`}var VS={props:{modelValue:{type:[String,Boolean],default:`false`},desc:{type:String,default:``},title:{type:String,default:``}},emits:[`update:modelValue`],data(){return{content:BS(this.modelValue)}},watch:{modelValue(e){this.content=BS(e)}},methods:{visible(){this.content=this.content==`false`?`true`:`false`,this.handle()},handle(){this.$emit(`update:modelValue`,this.content)}}},HS={class:``},US={class:`flex items-start`},WS={class:`flex-shrink-0`},GS={class:`ml-3`},KS={key:0,class:`text-base leading-6 font-medium text-gray-900`},qS=[`innerHTML`];function JS(e,t,n,r,i,a){return B(),_(`div`,HS,[y(`div`,US,[y(`div`,WS,[y(`span`,{class:R([{"bg-gray-200":i.content!=`true`,"bg-blue-600":i.content==`true`},`relative inline-block flex-no-shrink h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:shadow-outline`]),role:`checkbox`,tabindex:`0`,onClick:t[0]||(t[0]=e=>a.visible())},[y(`span`,{"aria-hidden":`true`,class:R([{"translate-x-5":i.content==`true`,"translate-x-0":i.content!=`true`},`inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200`])},null,2)],2)]),y(`div`,GS,[n.title?(B(),_(`span`,KS,z(n.title),1)):I(``,!0),n.desc?(B(),_(`p`,{key:1,class:`text-sm leading-5 text-gray-500 formText`,innerHTML:n.desc},null,8,qS)):I(``,!0)])])])}var YS=G(VS,[[`render`,JS]]);c();var XS={props:{modelValue:{type:String,default:``},error:{type:Boolean,default:!1},placeholder:{type:String,default:``}},emits:[`update:modelValue`],data(){return{content:this.modelValue??``,loading:!0,assignments:[],name:config.appName,crew_url:config.crew_url}},watch:{modelValue(e){e!==this.content&&(this.content=e??``)}},methods:{visible(){this.content=this.content==`false`?`true`:`false`,this.handle()},handle(){this.$emit(`update:modelValue`,this.content)}},mounted(){this.modelValue&&(this.content=this.modelValue),axios.get(this.crew_url,{withCredentials:!1}).then(e=>{if(this.assignments=e.data||[],this.loading=!1,this.content)return;let t=typeof window<`u`?new URLSearchParams(window.location.search).get(`uppdrag`):null;t&&this.assignments.some(e=>
72e.name===t)?(this.content=t,this.handle()):this.modelValue&&(this.content=this.modelValue,this.handle())}).catch(e=>{console.error(e),this.loading=!1})}},ZS={value:``},QS=[`value`];function $S(e,t,n,r,i,a){return M((B(),_(`select`,{"onUpdate:modelValue":t[0]||(t[0]=e=>i.content=e),onChange:t[1]||(t[1]=e=>a.handle()),class:R([[n.error?`border-red-300 text-red-900 placeholder-red-300 focus:border-red-300 focus:ring-red-300`:`focus:ring-blue-500 focus:border-blue-500`],`block w-full py-3 shadow-sm sm:text-sm border-gray-300 rounded-md`])},[y(`option`,ZS,z(n.placeholder),1),(B(!0),_(O,null,U(i.assignments,e=>(B(),_(`option`,{key:e.name,value:e.name},z(e.name),9,QS))),128))],34)),[[Be,i.content]])}var eC=G(XS,[[`render`,$S]]);c();var tC={name:`item-assignment`,props:[`assignment`,`link`],data(){return{open:!1,lang:config.locale}},computed:{skills(){return this.getSkills(this.assignment.reg_skills)},applyHref(){return`${(this.link||``).replace(/\/?$/,``)}/?${new URLSearchParams({uppdrag:this.assignment.name}).toString()}`},moreInfoLabel(){return this.lang===`en`?`More info`:`Mer info`},applyLabel(){return this.lang===`en`?`Apply`:`Ansök`},moreLabel(){return this.lang===`en`?`Show more`:`Visa mer`},lessLabel(){return this.lang===`en`?`Show less`:`Visa mindre`},hasExpandableBody(){let e=this.assignment.reg_body;return typeof e==`string`&&e.trim().length>0}},methods:{getSkills(e){return!e||typeof e!=`string`?[]:e.split(`,`).map(e=>e.trim()).filter(Boolean)}}},nC={class:`min-w-0 list-none`},rC={class:`flex h-full min-h-0 flex-col overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-sm ring-1 ring-slate-900/[0.04] transition-shadow duration-200 hover:shadow-md`},iC={class:`flex flex-1 flex-col p-5 sm:p-6`},aC={class:`text-lg font-semibold leading-snug tracking-tight text-slate-900`},oC={key:0,class:`mt-3 flex flex-wrap gap-1.5`},sC=[`innerHTML`],cC=[`innerHTML`],lC=[`href`],uC=[`href`];function dC(e,t,n,r,i,a){let o=V(`icon`);return B(),_(`li`,nC,[y(`article`,rC,[y(`div`,iC,[y(`h3`,aC,z(n.assignment.name),1),a.skills.length?(B(),_(`div`,oC,[(B(!0),_(O,null,U(a.skills,(e,t)=>(B(),_(`span`,{key:t,class:`inline-flex rounded-full bg-blue-100 px-2.5 py-0.5 text-xs font-medium text-blue-800`},z(e),1))),128))])):I(``,!0),y(`div`,{class:`prose prose-sm mt-3 max-w-none text-slate-600 prose-p:my-1 prose-p:leading-relaxed`,innerHTML:n.assignment.reg_short},null,8,sC),i.open?(B(),_(`div`,{key:1,class:`prose prose-sm mt-3 max-w-none border-t border-slate-100 pt-3 text-slate-600 prose-p:my-1 prose-p:leading-relaxed`,innerHTML:n.assignment.reg_body},null,8,cC)):I(``,!0),a.hasExpandableBody?(B(),_(`button`,{key:2,type:`button`,class:`mt-4 inline-flex items-center gap-2 self-start rounded-lg text-sm font-semibold text-blue-600 transition-colors hover:text-blue-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`,onClick:t[0]||(t[0]=e=>i.open=!i.open)}
72,[y(`span`,null,z(i.open?a.lessLabel:a.moreLabel),1),(B(),_(`svg`,{class:R([`h-5 w-5 shrink-0 transition-transform duration-200`,{"-rotate-180":i.open}]),stroke:`currentColor`,fill:`none`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[...t[1]||(t[1]=[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M19 9l-7 7-7-7`},null,-1)])],2))])):I(``,!0)]),y(`div`,{class:R([`mt-auto grid border-t border-slate-200`,n.assignment.reg_file?`grid-cols-1 sm:grid-cols-2`:`grid-cols-1`])},[n.assignment.reg_file?(B(),_(`a`,{key:0,href:n.assignment.reg_file,class:`inline-flex items-center justify-center gap-2 border-b border-slate-200 py-4 text-sm font-semibold text-slate-700 transition-colors hover:bg-slate-50 hover:text-slate-900 focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500 sm:border-b-0 sm:border-r`},[L(o,{icon:`paperClip`,type:`small`,size:5,class:`text-slate-400`}),y(`span`,null,z(a.moreInfoLabel),1)],8,lC)):I(``,!0),y(`a`,{href:a.applyHref,class:`inline-flex items-center justify-center gap-2 py-4 text-sm font-semibold text-slate-700 transition-colors hover:bg-slate-50 hover:text-slate-900 focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500`},[L(o,{icon:`pen`,type:`small`,size:5,class:`text-slate-400`}),y(`span`,null,z(a.applyLabel),1)],8,uC)],2)])])}var fC=G(tC,[[`render`,dC]]);c();var pC={name:`item-assignments`,props:[`link`],components:{Assignment:fC,Loading:qe},data(){return{assignments:[],loading:!0,filter:`Alla`,lang:config.locale,name:config.appName,crew_url:config.crew_url}},computed:{filterLabel(){return this.lang===`en`?`Filter roles`:`Filtrera uppdrag`},optionAll(){return this.lang===`en`?`Show all`:`Visa alla`},emptyMessage(){return this.lang===`en`?`There are no open assignments to apply for at the moment.`:`Det finns för tillfället inga tillgängliga uppdrag att söka.`},filterEmptyMessage(){return this.lang===`en`?`No assignments match the current filter or language.`:`Inga uppdrag matchar filtret eller sprÃ¥ket.`},filtered(){let e=[...this.assignments];return this.filter===`Alla`?e.sort((e,t)=>e.reg_sort>t.reg_sort?1:-1):e.filter(e=>e.reg_cat&&e.reg_cat.includes(this.filter)).sort((e,t)=>e.reg_sort>t.reg_sort?1:-1)},visibleAssignments(){return this.filtered.filter(e=>this.lang===`en`?Number(e.eng)===1:Number(e.eng)===0)}},mounted(){let e=this;axios.get(this.crew_url,{withCredentials:!1}).then(function(t){e.assignments=t.data,e.loading=!1}).catch(function(t){console.log(t),e.loading=!1})}},mC={class:`w-full min-w-0 max-w-full`},hC={class:`mb-8 grid grid-cols-1 gap-3 rounded-2xl border border-slate-200/90 bg-slate-50/80 p-4 shadow-sm ring-1 ring-slate-900/[0.04] sm:grid-cols-[minmax(0,max-content)_minmax(0,1fr)] sm:items-center sm:gap-x-6 sm:gap-y-0 sm:p-5`},gC={for:`assignment-filter`,class:`text-sm font-semibold text-slate-800 sm:self-center`},_C={class:`min-w-0 w-full sm:max-w-sm sm:justify-self-end`},vC={value:`Alla`},yC={key:0,class:`m-0 grid list-none grid-cols-1 gap-6 p-0 md:grid-cols-2 md:gap-8`,role:`list`},bC={key:1,class:`rounded-2xl border border-blue-200/80 bg-blue-50 p-5 shadow-sm ring-1 ring-blue-900/[0.06]`,role:`status`},xC={class:`flex gap-3`},SC={class:`text-sm leading-relaxed text-blue-900`},CC={key:2,class:`rounded-2xl border border-slate-200/90 bg-slate-50 p-5 text-center text-sm text-slate-600 shadow-sm ring-1 ring-slate-900/[0.04]`,role:`status`};function wC(e,t,n,r,i,a){let o=V(`Loading`),s=V(`Assignment`);return B(),_(`div`,mC,[i.loading?(B(),P(o,{key:0,class:`py-8`})):(B(),_(O,{key:1},[y(`div`,hC,[y(`label`,gC,z(a.filterLabel),1),y(`div`,_C,[M(y(`select`,{id:`assignment-filter`,"onUpdate:modelValue":t[0]||(t[0]=e=>i.filter=e),name:`assignment-filter`,class:`block w-full rounded-xl border border-slate-300 bg-white py-2.5 pl-3 pr-10 text-sm text-slate-900 shadow-sm transition-colors focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/30 sm:text-sm`},[y(`option`,vC,z(a.optionAll),1),t[1]||(t[1]=y(`option`,{value:`Boende`},` Boende `,-1)),t[2]||(t[2]=y(`option`,{value:`Planer`},` Planer `,-1)),t[3]||(t[3]=y(`option`,{value:`Ovrigt`},` Ãvrigt `,-1))],512),[[Be,i.filter]])])]),a.visibleAssignments.length?(B(),_(`ul`,yC,[(B(!0),_(O,
72null,U(a.visibleAssignments,e=>(B(),P(s,{key:e.id,assignment:e,link:n.link},null,8,[`assignment`,`link`]))),128))])):i.assignments.length<1?(B(),_(`div`,bC,[y(`div`,xC,[t[4]||(t[4]=y(`svg`,{class:`h-5 w-5 shrink-0 text-blue-600`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z`,"clip-rule":`evenodd`})],-1)),y(`p`,SC,z(a.emptyMessage),1)])])):(B(),_(`div`,CC,z(a.filterEmptyMessage),1))],64))])}var TC=G(pC,[[`render`,wC]]);c();var EC={name:`CupmanagerMatchesListSlider`,props:{matches:{type:Array,required:!0},labels:{type:Object,required:!0},isDark:{type:Boolean,default:!1},showCategory:{type:Boolean,default:!0},cardRounded:{type:Boolean,default:!0},matchUrl:{type:Function,required:!0},showScore:{type:Function,required:!0},scheduleLabel:{type:Function,required:!0},locale:{type:String,default:`sv`}},data(){return{carouselOverflows:!1,canScrollLeft:!1,canScrollRight:!1,resizeObserver:null}},computed:{cardRadiusClass(){return this.cardRounded?`rounded-2xl`:`rounded-none`},cardShellClass(){return e=>{let t=(e==null?void 0:e.isLive)&&!(e!=null&&e.isFinished);return this.isDark?t?`border-red-500/35 bg-slate-900/95 ring-red-500/20 hover:border-red-400/45`:`border-slate-700/80 bg-slate-900/95 ring-white/10 hover:border-amber-400/30`:t?`border-red-200/90 bg-white ring-red-500/15 hover:border-red-300/80`:`border-slate-200/90 bg-white ring-slate-900/[0.04] hover:border-blue-300/80`}},eyebrowClass(){return this.isDark?`text-slate-400`:`text-slate-500`},metaTextClass(){return this.isDark?`text-slate-400`:`text-slate-500`},teamNameClass(){return this.isDark?`text-white`:`text-slate-900`},awayTeamClass(){return this.isDark?`text-slate-300`:`text-slate-600`},scoreBoxClass(){return this.isDark?`bg-slate-800/90 text-white ring-slate-600/80`:`bg-slate-50 text-slate-900 ring-slate-200/90`},navBtnClass(){return this.isDark?`border-white/20 bg-slate-900/95 text-white hover:border-white/35 hover:bg-slate-800 focus-visible:outline-white/50 disabled:opacity-40`:`border-slate-200 bg-white/95 text-slate-700 hover:border-slate-300 hover:bg-slate-50 focus-visible:outline-blue-500 disabled:opacity-40`},fadeEdgeStartClass(){return this.isDark?`bg-gradient-to-r from-slate-950 to-transparent`:`bg-gradient-to-r from-white to-transparent`},fadeEdgeEndClass(){return this.isDark?`bg-gradient-to-l from-slate-950 to-transparent`:`bg-gradient-to-l from-white to-transparent`},prevLabel(){return this.locale===`en`?`Previous matches`:this.locale===`es`?`Partidos anteriores`:`FöregÃ¥ende matcher`},nextLabel(){return this.locale===`en`?`Next matches`:this.locale===`es`?`Siguientes partidos`:`Nästa matcher`}},watch:{matches:{handler(){this.$nextTick(()=>{this.resetScrollGutter(),this.refreshScrollState()})},deep:!0}},mounted(){this.bindScroller(),this.$nextTick(()=>{this.resetScrollGutter(),this.refreshScrollState()})},beforeUnmount(){this.unbindScroller()},methods:{dateLocale(){return this.locale===`sv`?`sv-SE`:this.locale===`es`?`es-ES`:`en-GB`},parseStart(e){if(!e)return null;try{let t=new Date(e);return Number.isNaN(t.getTime())?null:t}catch{return null}},formatTime(e){let t=this.parseStart(e);return t?new Intl.DateTimeFormat(this.dateLocale(),{hour:`2-digit`,minute:`2-digit`}).format(t):`â`},formatDay(e){let t=this.parseStart(e);return t?new Intl.DateTimeFormat(this.dateLocale(),{day:`numeric`,month:`short`}).format(t):`â`},scoreTone(e,t){return e>t?this.isDark?`font-semibold tabular-nums text-white`:`font-semibold tabular-nums text-slate-900`:this.isDark?`tabular-nums text-slate-400`:`tabular-nums text-slate-500`},resetScrollGutter(){let e=this.$refs.scroller;e&&typeof window<`u`&&window.matchMedia(`(max-width: 1023px)`).matches&&(e.scrollLeft=0)},refreshScrollState(){let e=this.$refs.scroller;e&&(this.carouselOverflows=e.scrollWidth>e.clientWidth+6,this.canScrollLeft=e.scrollLeft>6,this.canScrollRight=e.scrollLeft+e.clientWidth<e.scrollWidth-6)},scroll(e){let t=this.$refs.scroller;if(!t)return;let n=t.querySelector(`.cm-match-spotlight-slide`);if(!n)return;let r=parseFloat(getComputedStyle(t).columnGap||getComputedStyle(t).gap)||12,i=n.getBoundingClientRect().width+r;t.scrollBy({left:e*i,behavior:`smooth`})},bindScroller(){let e=this.$refs.scroller;e&&(e.addEventListener(`scroll`,this.refreshScrollState,{passive:!0}),window.addEventListener(`resize`,this.refreshScrollState),typeof ResizeObserver<`u`&&(this.resizeObserver=new ResizeObserver(()=>this.refreshScrollState()),this.resizeObserver.observe(e)))},unbindScroller(){var e;let t=this.$refs.scroller;t==null||t.removeEventListener(`scroll`,this.refreshScrollState),window.removeEventListener(`resize`,this.refreshScrollState),(e=this.resizeObserver)==null||e.disconnect(),this.resizeObserver=null}}},DC={class:`relative min-w-0 max-w-full lg:px-11`},OC=[`disabled`,`aria-label`],kC=[`disabled`,`aria-label`],AC={class:`relative min-w-0 -me-6 lg:me-0`},jC={ref:`scroller`,class:`cm-match-spotlight-scroller flex snap-x snap-mandatory gap-2.5 overflow-x-auto overflow-y-visible pb-2 pe-6 [scrollbar-width:none] scroll-ps-6 sm:gap-3 lg:scroll-ps-0 lg:px-1 lg:pe-1 [&::-webkit-scrollbar]:hidden`},MC=[`href`],NC={class:`relative flex flex-1 flex-col px-3 pb-1.5 pt-2.5 sm:px-3.5 sm:pb-2 sm:pt-3`},PC={class:`flex items-start justify-between gap-1.5 pr-0.5`},FC={class:`min-w-0 flex-1`},IC={key:0}
72,LC={key:1},RC={key:2},zC={class:`shrink-0`},BC={key:0,class:`inline-flex items-center gap-1 rounded-full bg-red-600 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white`},VC={class:`mt-2 flex items-center gap-2 sm:gap-2.5`},HC={class:`min-w-0 flex-1 space-y-1 text-[11px] font-medium leading-snug sm:space-y-1.5 sm:text-xs`},UC={class:`flex min-w-0 items-center gap-1.5 sm:gap-2`},WC=[`src`,`alt`],GC={class:`flex min-w-0 items-center gap-1.5 sm:gap-2`},KC=[`src`,`alt`],qC={key:0,class:`inline-flex min-w-0 max-w-full items-center gap-1`},JC={class:`inline-flex shrink-0 scale-[1.2] opacity-70`,"aria-hidden":`true`},YC={class:`truncate`},XC={key:1,class:`inline-flex min-w-0 max-w-full items-center gap-1`},ZC={class:`truncate`};function QC(e,t,n,r,i,a){let o=V(`icon`);return B(),_(`div`,DC,[M(y(`button`,{type:`button`,class:R([`absolute start-0 top-1/2 z-20 hidden size-9 -translate-y-1/2 items-center justify-center rounded-full border shadow-md backdrop-blur-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 lg:inline-flex`,a.navBtnClass]),disabled:!i.canScrollLeft,"aria-label":a.prevLabel,onClick:t[0]||(t[0]=e=>a.scroll(-1))},[...t[2]||(t[2]=[y(`svg`,{class:`size-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"aria-hidden":`true`},[y(`path`,{d:`M15 18l-6-6 6-6`})],-1)])],10,OC),[[j,i.carouselOverflows]]),M(y(`button`,{type:`button`,class:R([`absolute end-0 top-1/2 z-20 hidden size-9 -translate-y-1/2 items-center justify-center rounded-full border shadow-md backdrop-blur-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 lg:inline-flex`,a.navBtnClass]),disabled:!i.canScrollRight,"aria-label":a.nextLabel,onClick:t[1]||(t[1]=e=>a.scroll(1))},[...t[3]||(t[3]=[y(`svg`,{class:`size-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"aria-hidden":`true`},[y(`path`,{d:`M9 18l6-6-6-6`})],-1)])],10,kC),[[j,i.carouselOverflows]]),y(`div`,AC,[M(y(`div`,{"aria-hidden":`true`,class:R([`pointer-events-none absolute inset-y-0 start-0 z-10 hidden w-10 lg:block`,a.fadeEdgeStartClass])},null,2),[[j,i.carouselOverflows&&i.canScrollLeft]]),M(y(`div`,{"aria-hidden":`true`,class:R([`pointer-events-none absolute inset-y-0 end-0 z-10 hidden w-10 lg:block`,a.fadeEdgeEndClass])},null,2),[[j,i.carouselOverflows&&i.canScrollRight]]),y(`div`,jC,[t[7]||(t[7]=y(`div`,{class:`cm-match-spotlight-edge w-6 shrink-0 snap-none lg:hidden`,"aria-hidden":`true`},null,-1)),(B(!0),_(O,null,U(n.matches,e=>(B(),_(`a`,{key:e.id,href:n.matchUrl(e.id),class:`cm-match-spotlight-slide flex w-[min(86vw,17rem)] shrink-0 snap-start flex-col py-2 lg:scroll-mx-1 sm:w-[min(82vw,16.5rem)]`},[y(`article`,{class:R([`group relative my-1 flex h-full min-h-0 flex-1 flex-col overflow-hidden border shadow-sm ring-1 transition duration-200 hover:-translate-y-px hover:shadow-md focus-within:ring-2 focus-within:ring-blue-500/40`,[a.cardRadiusClass,a.cardShellClass(e)]])},[t[6]||(t[6]=y(`div`,{class:`pointer-events-none absolute inset-x-0 top-0 z-10 h-1 bg-gradient-to-r from-transparent via-amber-400/50 to-transparent opacity-0 transition-opacity group-hover:opacity-100`,"aria-hidden":`true`},null,-1)),y(`div`,NC,[y(`div`,PC,[y(`div`,FC,[n.showCategory&&(e.categoryShortName||e.divisionName)?(B(),_(`p`,{key:0,class:R([`truncate text-[8px] font-semibold uppercase tracking-[0.18em] sm:text-[9px]`,a.eyebrowClass])},[e.categoryShortName?(B(),_(`span`,IC,z(e.categoryShortName),1)):I(``,!0),e.categoryShortName&&e.divisionName?(B(),_(`span`,LC,` · `)):I(``,!0),e.divisionName?(B(),_(`span`,RC,z(e.divisionName),1)):I(``,!0)],2)):I(``,!0),e.zonedStartTime&&!e.isFinished&&!e.isLive?(B(),_(`p`,{key:1,class:R([`mt-1 text-[11px] font-semibold tabular-nums sm:text-xs`,n.isDark?`text-amber-300`:`text-blue-700`])},[w(z(a.formatTime(e.zonedStartTime))+` `,1),y(`span`,{class:R([`font-normal`,a.metaTextClass])},` · `+z(a.formatDay(e.zonedStartTime)),3)],2)):I(``,!0)]),y(`div`,zC,[e.isLive&&!e.isFinished?(B(),_(`span`,BC,[t[4]||(t[4]=y(`span`,{class:`relative flex size-1.5`},[y(`span`,{class:`absolute inline-flex size-full animate-ping rounded-full bg-red-300 opacity-75`}),y(`span`,{class:`relative inline-flex size-1.5 rounded-full bg-red-200`}
72)],-1)),w(` `+z(n.labels.live),1)])):e.isFinished?(B(),_(`span`,{key:1,class:R([`inline-flex rounded-full px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide`,n.isDark?`bg-slate-700 text-slate-300`:`bg-slate-100 text-slate-600`])},z(n.labels.finished),3)):(B(),_(`span`,{key:2,class:R([`inline-flex rounded-full px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide`,n.isDark?`bg-slate-800 text-slate-400`:`bg-slate-50 text-slate-500`])},z(n.labels.upcoming),3))])]),y(`div`,VC,[n.showScore(e)?(B(),_(`div`,{key:0,class:R([`flex shrink-0 flex-col items-center justify-center gap-0.5 rounded-md px-1.5 py-1 text-[11px] ring-1 sm:px-2 sm:text-xs`,a.scoreBoxClass])},[y(`span`,{class:R(a.scoreTone(e.homeScore,e.awayScore))},z(e.homeScore),3),y(`span`,{class:R(a.scoreTone(e.awayScore,e.homeScore))},z(e.awayScore),3)],2)):I(``,!0),y(`div`,HC,[y(`div`,UC,[e.homeClubLogoUrl?(B(),_(`img`,{key:0,src:e.homeClubLogoUrl,alt:e.homeTeamName||``,class:`size-4 shrink-0 object-contain sm:size-[1.125rem]`,width:`18`,height:`18`,loading:`lazy`},null,8,WC)):I(``,!0),y(`span`,{class:R([`line-clamp-2`,a.teamNameClass])},z(e.homeTeamName),3)]),y(`div`,GC,[e.awayClubLogoUrl?(B(),_(`img`,{key:0,src:e.awayClubLogoUrl,alt:e.awayTeamName||``,class:`size-4 shrink-0 object-contain sm:size-[1.125rem]`,width:`18`,height:`18`,loading:`lazy`},null,8,KC)):I(``,!0),y(`span`,{class:R([`line-clamp-2`,a.awayTeamClass])},z(e.awayTeamName),3)])])])]),e.locationName||e.roundName?(B(),_(`div`,{key:0,class:R([`mt-0 border-t px-3 pb-2.5 pt-2 sm:px-3.5 sm:pb-3`,n.isDark?`border-slate-700/80`:`border-slate-100`])},[y(`div`,{class:R([`flex min-w-0 flex-col gap-1 text-[9px] sm:text-[10px]`,a.metaTextClass])},[e.locationName?(B(),_(`span`,qC,[y(`span`,JC,[L(o,{icon:`pitch`,size:3})]),y(`span`,YC,z(e.locationName),1)])):I(``,!0),e.roundName?(B(),_(`span`,XC,[t[5]||(t[5]=Xe(`<svg class="size-3 shrink-0 opacity-70" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"></path><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"></path><path d="M4 22h16"></path><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"></path><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"></path><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"></path></svg>`,1)),y(`span`,ZC,z(e.roundName),1)])):I(``,!0)],2)],2)):I(``,!0)],2)],8,MC))),128))],512)])])}var $C=G(EC,[[`render`,QC]]);c();var ew={name:`CupmanagerMatches`,components:{CupmanagerMatchesListSlider:$C},props:{item:{type:Object,required:!0}},data(){return{loading:!0,error:!1,published:!0,matches:[],activeTab:`selected`}},computed:{locale(){let e=typeof config<`u`&&config.locale?config.locale:`sv`;return e===`en`||e===`es`?e:`sv`},isLiveCenter(){return this.item.layout===`liveCenter`},isListSlider(){return!this.isLiveCenter&&this.item.listLayout===`slider`},isDark(){return this.item.theme===`dark`},ctaRounded(){return this.item.ctaRounded!==!1},tabRadiusClass(){return this.ctaRounded?`rounded-lg`:`rounded-none`},panelRadiusClass(){return this.ctaRounded?`rounded-xl`:`rounded-none`},listRadiusClass(){return this.ctaRounded?`rounded-2xl`:`rounded-none`},ctaRadiusClass(){return this.ctaRounded?`rounded-xl`:`rounded-none`},liveCenterTabs(){return this.locale===`en`?[{id:`selected`,label:`Selected`},{id:`live`,label:`Live now`}]:this.locale===`es`?[{id:`selected`,label:`Destacados`},{id:`live`,label:`En vivo`}]:[{id:`selected`,label:`Utvalda`},{id:`live`,label:`Live nu`}]},labels(){return this.locale===`en`?{loading:`Loading matchesâ¦`,error:`Could not load matches.`,unpublished:`The match schedule is not published yet.`,live:`Live`,finished:`Finished`,upcoming:`Upcoming`,stream:`Stream`,replay:`Replay`,emptyLive:`No live matches right now.`,emptyFeatured:`No featured matches right now.`,emptySelected:`No selected matches.`,colTime:`Time`,colCategory:`Category`,colTeams:`Teams`,colScore:`Score`,colStatus:`Status`}:this.locale===`es`?{loading:`Cargando partidosâ¦`,error:`No se pudieron cargar los partidos.`,unpublished:`El calendario de partidos aún no está publicado.`,live:`En vivo`,finished:`Finalizado`,upcoming:`Próximo`,stream:`Stream`,replay:`Repetición`,emptyLive:`No hay partidos en vivo en este momento.`,emptyFeatured:`No hay partidos destacados en este momento.`,emptySelected:`No hay partidos destacados.`,colTime:`Hora`,colCategory:`CategorÃa`,colTeams:`Equipos`,colScore:`Resultado`,colStatus:`Estado`}:{loading:`Laddar matcherâ¦`,error:`Kunde inte ladda matcher.`,unpublished:`Spelschemat är inte publicerat ännu.`,live:`Live`,finished:`Avslutad`,upcoming:`Kommande`,stream
72:`Stream`,replay:`Repris`,emptyLive:`Inga live-matcher just nu.`,emptyFeatured:`Inga utvalda matcher just nu.`,emptySelected:`Inga utvalda matcher.`,colTime:`Tid`,colCategory:`Klass`,colTeams:`Lag`,colScore:`Resultat`,colStatus:`Status`}},emptyMessage(){return this.item.mode===`featured`?this.labels.emptyFeatured:this.labels.emptyLive},liveCenterEmptyMessage(){return this.activeTab===`selected`?this.labels.emptySelected:this.labels.emptyLive},resultsBase(){return(this.item.resultsBaseUrl||`https://results.gothiacup.se`).trim().replace(/\/+$/,``)},isFeatured(){return this.item.mode===`featured`},dateLocale(){return this.locale===`sv`?`sv-SE`:this.locale===`es`?`es-ES`:`en-GB`}},watch:{item:{deep:!0,handler(){this.fetchMatches()}}},mounted(){this.fetchMatches()},methods:{setTab(e){this.activeTab!==e&&(this.activeTab=e,this.fetchMatches())},fetchMatches(){let e=this.item.year;if(!e){this.loading=!1,this.matches=[];return}this.loading=!0,this.error=!1;let t={year:e,mode:this.isLiveCenter?this.activeTab===`selected`?`featured`:`live`:this.item.mode||`live`,limit:this.item.limit||10};this.item.categoryShortName&&(t.category=this.item.categoryShortName),pe.get(`/public/api/cupmanager/matches`,{params:t}).then(e=>{var t,n;this.published=((t=e.data)==null?void 0:t.published)!==!1,this.matches=Array.isArray((n=e.data)==null?void 0:n.matches)?e.data.matches:[],this.error=!1}).catch(()=>{this.error=!0,this.matches=[]}).then(()=>{this.loading=!1})},matchUrl(e){return`${this.resultsBase}/${this.item.year}/matches/${e}`},showScore(e){return e.isFinished||e.isLive},parseStart(e){if(!e)return null;try{let t=new Date(e);return Number.isNaN(t.getTime())?null:t}catch{return null}},formatTime(e){let t=this.parseStart(e);return t?new Intl.DateTimeFormat(this.dateLocale,{hour:`2-digit`,minute:`2-digit`}).format(t):`â`},formatDay(e){let t=this.parseStart(e);return t?new Intl.DateTimeFormat(this.dateLocale,{day:`numeric`,month:`short`}).format(t):`â`},formatWeekdayShort(e){let t=e.getDay();return this.locale===`sv`?[`Sön`,`MÃ¥n`,`Tis`,`Ons`,`Tor`,`Fre`,`Lör`][t]:this.locale===`es`?[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`][t]:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][t]},formatFeaturedDay(e){let t=this.parseStart(e);return t?`${this.formatWeekdayShort(t)} ${this.formatDay(e)}`:`â`},scheduleLabel(e){let t=this.formatTime(e),n=this.isFeatured?this.formatFeaturedDay(e):this.formatDay(e);return t===`â`&&n===`â`?`â`:t===`â`?n:n===`â`?t:`${t} · ${n}`}}},tw={class:`mb-4 flex min-w-0 max-w-full flex-wrap gap-2 ps-6 lg:ps-0`,role:`tablist`},nw=[`aria-selected`,`onClick`],rw={key:5,class:`mt-5`},iw=[`href`],aw={key:0,class:`mb-6 text-center sm:mb-8`},ow={key:1,class:`py-10 text-center text-sm text-slate-500`},sw=[`href`],cw={class:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`},lw={class:`min-w-0 flex-1`},uw={class:`flex flex-wrap items-center justify-center gap-2 sm:justify-start`},dw={class:`truncate text-base font-semibold text-slate-900 sm:text-lg`},fw=[`src`,`alt`],pw=[`src`,`alt`],mw={class:`truncate text-base font-semibold text-slate-900 sm:text-lg`},hw={key:0,class:`mt-1 text-center text-xs font-medium tabular-nums text-slate-600 sm:text-left`},gw={key:1,class:`mt-1 text-center text-xs text-slate-500 sm:text-left`},_w={key:0},vw={key:1},yw={key:2},bw={key:3},xw={class:`flex shrink-0 flex-col items-center gap-2 sm:items-end`},Sw={class:`block leading-tight`},Cw={key:0,class:`mt-0.5 block text-[11px] font-normal leading-tight text-slate-500`},ww={class:`flex flex-wrap items-center justify-center gap-1.5`},Tw={key:0,class:`inline-flex items-center gap-1 rounded-full bg-red-600 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white`},Ew={key:1,class:`rounded-full bg-emerald-600 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white`},Dw={key:2,class:`rounded-full bg-blue-600 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-white`},Ow={key:0,class:`mt-2 text-center text-xs text-slate-500 sm:text-left`},kw={key:0},Aw={key:7,class:`mt-6 text-center sm:mt-8`},jw=[`href`];function Mw(e,t,n,r,i,a){let o=V(`CupmanagerMatchesListSlider`);return B(),_(`div`,{class:R([`w-full min-w-0 max-w-full`,a.isDark?`text-white`:``])},[a.isLiveCenter?(B(),_(O,{key:0}
72,[y(`div`,tw,[(B(!0),_(O,null,U(a.liveCenterTabs,e=>(B(),_(`button`,{key:e.id,type:`button`,role:`tab`,"aria-selected":i.activeTab===e.id,class:R([`px-4 py-2 text-xs font-bold uppercase tracking-wide transition`,[a.tabRadiusClass,i.activeTab===e.id?`bg-amber-400 text-slate-950`:a.isDark?`bg-slate-800 text-slate-300 hover:bg-slate-700`:`bg-slate-100 text-slate-600 hover:bg-slate-200`]]),onClick:t=>a.setTab(e.id)},z(e.label),11,nw))),128))]),i.loading?(B(),_(`div`,{key:0,class:R([`py-8 text-center text-sm`,a.isDark?`text-slate-400`:`text-slate-500`])},z(a.labels.loading),3)):i.error?(B(),_(`div`,{key:1,class:R([`border p-4 text-center text-sm`,[a.panelRadiusClass,a.isDark?`border-red-500/40 bg-red-950/40 text-red-200`:`border-red-200 bg-red-50 text-red-800`]]),role:`alert`},z(a.labels.error),3)):i.published?i.matches.length===0?(B(),_(`div`,{key:3,class:R([`border p-4 text-center text-sm`,[a.panelRadiusClass,a.isDark?`border-slate-700 bg-slate-900/80 text-slate-400`:`border-blue-200 bg-blue-50 text-blue-900`]])},z(a.liveCenterEmptyMessage),3)):(B(),P(o,{key:4,matches:i.matches,labels:a.labels,"is-dark":a.isDark,"show-category":n.item.showCategory!==!1,"card-rounded":a.ctaRounded,locale:a.locale,"match-url":a.matchUrl,"show-score":a.showScore,"schedule-label":a.scheduleLabel},null,8,[`matches`,`labels`,`is-dark`,`show-category`,`card-rounded`,`locale`,`match-url`,`show-score`,`schedule-label`])):(B(),_(`div`,{key:2,class:R([`border p-4 text-center text-sm`,[a.panelRadiusClass,a.isDark?`border-slate-700 bg-slate-900/80 text-slate-300`:`border-blue-200 bg-blue-50 text-blue-900`]])},z(a.labels.unpublished),3)),n.item.link&&n.item.linkText?(B(),_(`div`,rw,[y(`a`,{href:n.item.link,class:R([`inline-flex items-center gap-1 text-sm font-semibold transition`,a.isDark?`text-amber-400 hover:text-amber-300`:`text-blue-600 hover:text-blue-800`])},[w(z(n.item.linkText)+` `,1),t[0]||(t[0]=y(`span`,{"aria-hidden":`true`},`â`,-1))],10,iw)])):I(``,!0)],64)):(B(),_(O,{key:1},[n.item.title?(B(),_(`header`,aw,[y(`h2`,{class:R([`text-2xl font-bold tracking-tight sm:text-3xl`,a.isDark?`text-white`:`text-slate-900`])},z(n.item.title),3)])):I(``,!0),i.loading?(B(),_(`div`,ow,z(a.labels.loading),1)):i.error?(B(),_(`div`,{key:2,class:R([`border border-red-200/80 bg-red-50 p-5 text-center text-sm text-red-800`,a.listRadiusClass]),role:`alert`},z(a.labels.error),3)):i.published?i.matches.length===0?(B(),_(`div`,{key:4,class:R([`border border-blue-200/80 bg-blue-50 p-5 text-center text-sm text-blue-900`,a.listRadiusClass]),role:`status`},z(a.emptyMessage),3)):a.isListSlider?(B(),P(o,{key:5,matches:i.matches,labels:a.labels,"is-dark":a.isDark,"show-category":n.item.showCategory!==!1,"card-rounded":a.ctaRounded,locale:a.locale,"match-url":a.matchUrl,"show-score":a.showScore,"schedule-label":a.scheduleLabel},null,8,[`matches`,`labels`,`is-dark`,`show-category`,`card-rounded`,`locale`,`match-url`,`show-score`,`schedule-label`])):(B(),_(`ul`,{key:6,class:R([`m-0 list-none divide-y p-0 shadow-sm ring-1`,[a.listRadiusClass,a.isDark?`divide-slate-800 border-slate-700 bg-slate-900/60 ring-white/10`:`divide-slate-200/90 border-slate-200/90 bg-white ring-slate-900/[0.04]`]]),role:`list`},[(B(!0),_(O,null,U(i.matches,e=>(B(),_(`li`,{key:e.id},[y(`a`,{href:a.matchUrl(e.id),class:`group block px-4 py-4 transition-colors hover:bg-slate-50 sm:px-5 sm:py-5`},[y(`div`,cw,[y(`div`,lw,[y(`div`,uw,[y(`span`,dw,z(e.homeTeamName),1),e.homeClubLogoUrl?(B(),_(`img`,{key:0,src:e.homeClubLogoUrl,alt:e.homeTeamName||``,class:`size-5 shrink-0 object-contain`,width:`20`,height:`20`,loading:`lazy`},null,8,fw)):I(``,!0),t[1]||(t[1]=y(`span`,{class:`px-1 text-sm font-medium text-slate-500`},`vs`,-1)),e.awayClubLogoUrl?(B(),_(`img`,{key:1,src:e.awayClubLogoUrl,alt:e.awayTeamName||``,class:`size-5 shrink-0 object-contain`,width:`20`,height:`20`,loading:`lazy`},null,8,pw)):I(``,!0),y(`span`,mw,z(e.awayTeamName),1)]),a.isFeatured&&e.zonedStartTime?(B(),_(`p`,hw,z(a.scheduleLabel(e.zonedStartTime)),1)):I(``,!0),n.item.showCategory!==!1&&(e.categoryShortName||e.divisionName)?(B(),_(`p`,gw,[e.categoryShortName?(B(),_(`span`,_w,z(e.categoryShortName),1)):I(``,!0),e.categoryShortName&&e.divisionName?(B(),_(`span`,vw,` · `)):I(``,!0),e.divisionName?(B(),_(`span`,yw,z(e.divisionName),1)):I(``,!0),e.roundName?(B(),_(`span`,bw,` · `+z(e.roundName),1)):I(``,!0)])):I(``,!0)]),y(`div`,xw,[y(`div`,{class:R([`rounded-full border border-slate-200 bg-slate-50 px-3 py-1.5 text-center text-sm font-semibold tabular-nums text-slate-900`,a.isFeatured&&!a.showScore(e)?`min-w-[5.5rem]`:`min-w-[4.5rem]`])},[a.showScore(e)?(B(),_(O,{key:0},[w(z(e.homeScore)+` : `+z(e.awayScore),1)],64)):e.zonedStartTime?(B(),_(O,{key:1},[y(`span`,Sw,z(a.formatTime(e.zonedStartTime)),1),a.isFeatured?(B(),_(`span`,Cw,z(a.formatFeaturedDay(e.zonedStartTime)),1)):I(``,!0)],64)):(B(),_(O,{key:2},[w(` â `)],64))],2),y(`div`,ww,[e.isLive&&!e.isFinished?(B(),_(`span`,Tw,[t[2]||(t[2]=y(`span`,{class:`relative flex size-1.5`},[y(`span`,{class:`absolute inline-flex size-full animate-ping rounded-full bg-red-300 opacity-75`}),y(`span`,{class:`relative inline-flex size-1.5 rounded-full bg-red-200`}
72)],-1)),w(` `+z(a.labels.live),1)])):e.isFinished?(B(),_(`span`,Ew,z(a.labels.finished),1)):I(``,!0),e.streamUrl?(B(),_(`span`,Dw,z(e.isFinished?a.labels.replay:a.labels.stream),1)):I(``,!0)])])]),e.locationName?(B(),_(`p`,Ow,[w(z(e.locationName)+` `,1),!a.isFeatured&&e.zonedStartTime&&a.showScore(e)?(B(),_(`span`,kw,` · `+z(a.scheduleLabel(e.zonedStartTime)),1)):I(``,!0)])):I(``,!0)],8,sw)]))),128))],2)):(B(),_(`div`,{key:3,class:R([`border border-blue-200/80 bg-blue-50 p-5 text-center text-sm text-blue-900`,a.listRadiusClass]),role:`status`},z(a.labels.unpublished),3)),n.item.link&&n.item.linkText?(B(),_(`div`,Aw,[y(`a`,{href:n.item.link,class:R([`inline-flex items-center justify-center bg-blue-600 px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600`,a.ctaRadiusClass])},z(n.item.linkText),11,jw)])):I(``,!0)],64))],2)}var Nw=G(ew,[[`render`,Mw]]);c();var Pw=`https://static.cupmanager.net/images/flags_iso/32/`,Fw={name:`FeaturedTeams`,props:{item:{type:Object,required:!0}},data(){return{loading:!0,error:!1,teams:[],categoryMeta:null}},computed:{locale(){let e=(typeof window<`u`?window.location.pathname:``).split(`/`).filter(Boolean)[0];return e===`en`||e===`es`?e:`sv`},labels(){return this.locale===`en`?{loading:`Loading teamsâ¦`,error:`Could not load teams.`,empty:`No teams to show.`,readMore:`Read more`}:{loading:`Laddar lagâ¦`,error:`Kunde inte ladda lag.`,empty:`Inga lag att visa.`,readMore:`Läs mer`}},displayTitle(){var e;return this.item.title||((e=this.categoryMeta)==null?void 0:e.title)||null},categoryDescription(){var e;return((e=this.categoryMeta)==null?void 0:e.description)||null},showCategoryLabel(){return this.item.showCategoryLabel!==!1},isCompactList(){return this.item.display===`compact-list`},isSingleDisplay(){return this.item.display===`single`},isDark(){return this.item.theme===`dark`},rootClass(){return this.isDark?`text-white`:``},headingClass(){return this.isDark?`text-white`:`text-slate-900`},descriptionClass(){return this.isDark?`text-slate-400`:`text-slate-600`},mutedTextClass(){return this.isDark?`text-slate-400`:`text-slate-500`},gridClass(){return this.isSingleDisplay||this.teams.length===1?`space-y-0`:`grid gap-6 sm:grid-cols-2 lg:grid-cols-3`},cardLinkClass(){return this.isDark?`group flex h-full flex-col overflow-hidden rounded-2xl border border-slate-700/80 bg-slate-800/50 shadow-lg ring-1 ring-white/5 transition hover:-translate-y-0.5 hover:border-slate-600 hover:bg-slate-800/70 hover:shadow-xl`:`group flex h-full flex-col overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-sm ring-1 ring-slate-900/[0.04] transition hover:-translate-y-0.5 hover:shadow-md`},nameClass(){return this.isDark?`text-white`:`text-slate-900`},clubClass(){return this.isDark?`text-amber-400/90`:`text-blue-700`},categoryClass(){return this.isDark?`text-slate-400`:`text-slate-500`},teaserClass(){return this.isDark?`text-slate-300`:`text-slate-600`},readMoreClass(){return this.isDark?`text-amber-400 group-hover:text-amber-300`:`text-blue-600 group-hover:text-blue-800`},footerLinkClass(){return this.isCompactList?`mt-4 text-left`:`mt-8 text-center`},compactFooterBtnClass(){return`text-sm font-semibold text-amber-400 hover:text-amber-300`},footerBtnClass(){return this.isDark?`inline-flex rounded-xl border border-amber-400/40 bg-amber-400/10 px-5 py-2.5 text-sm font-semibold text-amber-300 hover:border-amber-400/60 hover:bg-amber-400/20`:`inline-flex rounded-xl bg-blue-600 px-5 py-2.5 text-sm font-semibold text-white hover:bg-blue-700`}},watch:{item:{deep:!0,handler(){this.fetch()}}},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.error=!1,this.item.display===`single`&&this.item.teamId){pe.get(`/api/${this.locale}/featured-teams/team/${this.item.teamId}`).then(e=>{this.teams=e.data.team?[e.data.team]:[]}).catch(()=>{this.error=!0}).then(()=>{this.loading=!1});return}let e=this.item.categoryId;if(!e){this.loading=!1,this.teams=[];return}pe.get(`/api/${this.locale}/featured-teams/categories/${e}/teams`).then(e=>{this.teams=e.data.teams||[]}).catch(()=>{this.error=!0}).then(()=>{this.loading=!1}),pe.get(`/api/${this.locale}/featured-teams/categories`).then(t=>{let n=t.data.categories||[];this.categoryMeta=n.find(t=>String(t.id)===String(e))||null})},flagUrl(e){return`${Pw}${String(e).toLowerCase()}.png`},teamDisplayName(e){return e.club_name||e.name||``}}},Iw={key:0,class:`mb-8 text-center`},Lw={key:4,class:`m-0 list-none space-y-2.5 p-0`,role:`list`},Rw=[`href`],zw=[`src`,`alt`],Bw=[`href`],Vw=[`src`,`alt`],Hw={key:1,class:`flex aspect-[16/10] items-end bg-gradient-to-br from-blue-700 to-blue-900 p-5`},Uw={class:`text-lg font-bold text-white`},Ww={class:`flex flex-1 flex-col p-5`},Gw=[`href`];function Kw(e,t,n,r,i,a){return B(),_(`div`,{class:R([`w-full min-w-0`,a.rootClass])},[a.displayTitle&&!a.isCompactList?(B(),_(`header`,Iw,[y(`h2`,{class:R([`text-2xl font-bold tracking-tight sm:text-3xl`,a.headingClass])},z(a.displayTitle),3),a.categoryDescription?(B(),_(`p`,{key:0,class:R([`mx-auto mt-2 max-w-2xl`,a.descriptionClass])},z(a.categoryDescription),3)):I(``,!0)])):I(``,!0),i.loading?(B(),_(`div`,{key:1,class:R([`py-12 text-center text-sm`,a.mutedTextClass])},z(a.labels.loading),3)):i.error?(B(),_(`div`,{key:2,class:R([`rounded-2xl border p-5 text-center text-sm`,a.isDark?`border-red-500/40 bg-red-950/40 text-red-200`:`border-red-200 bg-red-50 text-red-800`])},z(a.labels.error),3)):i.teams.length===0?(B(),_(`div`,{key:3,class:R([`rounded-2xl border p-5 text-center text-sm`,a.isDark?`border-slate-700 bg-slate-900/80 text-slate-300`:`border-blue-200 bg-blue-50 text-blue-900`])},z(a.labels.empty),3)):a.isCompactList?(B(),_(`ul`,Lw,[(B(!0),_(O,
72null,U(i.teams,e=>(B(),_(`li`,{key:e.id},[y(`a`,{href:e.url,class:R([`group flex items-center gap-3 rounded-lg px-2 py-1.5 transition`,a.isDark?`hover:bg-white/5`:`hover:bg-slate-100`])},[e.nation_code?(B(),_(`img`,{key:0,src:a.flagUrl(e.nation_code),alt:e.nation_code,class:`size-6 shrink-0 rounded-sm object-cover`,width:`24`,height:`18`,loading:`lazy`},null,8,zw)):I(``,!0),y(`span`,{class:R([`min-w-0 flex-1 truncate text-sm font-medium`,a.isDark?`text-white`:`text-slate-800`])},z(a.teamDisplayName(e)),3)],10,Rw)]))),128))])):(B(),_(`ul`,{key:5,class:R([`m-0 list-none p-0`,a.gridClass]),role:`list`},[(B(!0),_(O,null,U(i.teams,e=>(B(),_(`li`,{key:e.id},[y(`a`,{href:e.url,class:R(a.cardLinkClass)},[e.list_image?(B(),_(`div`,{key:0,class:R([`aspect-[16/10] overflow-hidden`,a.isDark?`bg-slate-800`:`bg-slate-100`])},[y(`img`,{src:e.list_image,alt:e.name,class:`h-full w-full object-cover transition duration-300 group-hover:scale-[1.02]`,loading:`lazy`},null,8,Vw)],2)):(B(),_(`div`,Hw,[y(`h3`,Uw,z(e.name),1)])),y(`div`,Ww,[e.list_image?(B(),_(`h3`,{key:0,class:R([`text-lg font-bold`,a.nameClass])},z(e.name),3)):I(``,!0),e.club_name?(B(),_(`p`,{key:1,class:R([`text-sm`,a.clubClass])},z(e.club_name),3)):I(``,!0),a.showCategoryLabel&&e.category_label?(B(),_(`p`,{key:2,class:R([`mt-1 text-xs font-medium uppercase tracking-wide`,a.categoryClass])},z(e.category_label),3)):I(``,!0),e.teaser?(B(),_(`p`,{key:3,class:R([`mt-3 line-clamp-3 text-sm leading-relaxed`,a.teaserClass])},z(e.teaser),3)):I(``,!0),y(`span`,{class:R([`mt-4 inline-flex text-sm font-semibold`,a.readMoreClass])},z(a.labels.readMore)+` â `,3)])],10,Bw)]))),128))],2)),n.item.link&&n.item.linkText?(B(),_(`div`,{key:6,class:R(a.footerLinkClass)},[y(`a`,{href:n.item.link,class:R(a.isCompactList?a.compactFooterBtnClass:a.footerBtnClass)},z(n.item.linkText),11,Gw)],2)):I(``,!0)],2)}var qw=G(Fw,[[`render`,Kw]]);c();var Jw=`https://static.cupmanager.net/images/flags_iso/32/`,Yw={name:`FeaturedTeamDetail`,components:{Loading:qe},props:{slug:{type:String,required:!0},locale:{type:String,required:!0}},data(){return{loading:!0,team:null}},computed:{copy(){return this.locale===`en`?{notFound:`Team not found.`,stats:`Tournament stats`,about:`About the team`,highlights:`Highlights`,matches:`Matches`,resultsCta:`View team in tournament`,video:`Team film`,gallery:`Gallery`,kit:`Club emblem & kit`,live:`Live`}:{notFound:`Laget hittades inte.`,stats:`Turneringsstatistik`,about:`Om laget`,highlights:`Höjdpunkter`,matches:`Matcher`,resultsCta:`Se laget i turneringen`,video:`Lagfilm`,gallery:`Bildgalleri`,kit:`Klubbemblem & tröja`,live:`Live`}},cm(){var e;return((e=this.team)==null?void 0:e.cupmanager)||null},stats(){var e;return((e=this.cm)==null?void 0:e.stats)||null},statItems(){if(!this.stats)return[];let e=this.stats,t=this.locale===`en`;return[{key:`m`,label:t?`Played`:`Matcher`,value:e.matches,accent:`text-slate-900`},{key:`w`,label:t?`Wins`:`Vinster`,value:e.wins,accent:`text-emerald-600`},{key:`d`,label:t?`Draws`:`Oavgjorda`,value:e.draws,accent:`text-slate-700`},{key:`l`,label:t?`Losses`:`Förluster`,value:e.losses,accent:`text-rose-600`},{key:`g`,label:t?`Goals`:`MÃ¥l`,value:`${e.goals_for}â${e.goals_against}`,accent:`text-blue-600`}]},matches(){var e;return((e=this.cm)==null?void 0:e.matches)||[]},heroImage(){var e,t;return((e=this.team)==null?void 0:e.hero_image)||((t=this.cm)==null?void 0:t.shirt_image)||null},emblemImage(){var e;return((e=this.cm)==null?void 0:e.club_logo_url)||null},shirtImage(){var e;let t=(e=this.cm)==null?void 0:e.shirt_image;return!t||t===this.heroImage?null:t},showKitBlock(){return!!(this.emblemImage||this.shirtImage)},galleryImages(){var e;return(((e=this.team)==null?void 0:e.gallery)||[]).filter(Boolean)},videoEmbedUrl(){var e;return this.embedVideoUrl((e=this.team)==null?void 0:e.video_url)},resultsBase(){var e,t;let n=((e=this.team)==null?void 0:e.results_url)||((t=this.cm)==null?void 0:t.results_url)||``,r=String(n).match(/^(https?:\/\/[^/]+\/\d{4})\//);return r?r[1]:null}},mounted(){this.fetchTeam()},methods:{fetchTeam(){this.loading=!0,pe.get(`/api/${this.locale}/featured-teams/${encodeURIComponent(this.slug)}`).then(e=>{this.team=e.data.team}).catch(()=>{this.team=null}).then(()=>{this.loading=!1})},flagUrl(e){return`${Jw}${String(e).toLowerCase()}.png`},flagCircleStyle(e){return{backgroundImage:`url(${this.flagUrl(e)})`,backgroundSize:`165% 165%`,backgroundPosition:`center`}},embedVideoUrl(e){if(!e||typeof e!=`string`)return null;let t=e.trim();if(t===``)return null;if(/youtube\.com\/embed\//i.test(t)||/player\.vimeo\.com\//i.test(t))return t;let n=t.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]{6,})/i);if(n)return`https://www.youtube.com/embed/${n[1]}?rel=0`;let r=t.match(/vimeo\.com\/(\d+)/i);return r?`https://player.vimeo.com/video/${r[1]}`:t},matchUrl(e){return!this.resultsBase||!e?`#`:`${this.resultsBase}/matches/${e}`},showScore(e){return e.isFinished||e.isLive},formatTime(e){if(!e)return``;try{return new Intl.DateTimeFormat(this.locale===`sv`?`sv-SE`:this.locale,{hour:`2-digit`,minute:`2-digit`}).format(new Date(e))}catch{return String(e)}},formatSchedule(e){if(!e)return``;try{let t=new Date(e),n=new Intl.DateTimeFormat(this.locale===`sv`?`sv-SE`:this.locale,{weekday:`short`,day:`numeric`,month:`short`}).format(t);return`${this.formatTime(e)} · ${n}`}catch{return this.formatTime(e)}}}},Xw={class:`min-h-screen bg-slate-50`},Zw={key:1,class:`mx-auto max-w-lg px-4 py-24 text-center`},Qw={class:`text-lg font-semibold text-slate-800`},$w={key:2},eT={class:`relative isolate min-h-[min(72vh,640px)] overflow-hidden bg-slate-900`},tT={class:`absolute inset-0`},nT=[`src`,`alt`],rT={key:1,class:`h-full w-full bg-gradient-to-br from-blue-700 via-blue-800 to-blue-900`},iT={class:`relative mx-auto flex min-h-[min(72vh,640px)] max-w-7xl flex-col justify-end px-4 pb-20 pt-28 sm:px-6 sm:pb-24 sm:pt-32 lg:px-8 lg:pb-28`},aT={class:`flex flex-wrap items-center gap-3`},oT=[`aria-label`],sT={key:1,class:`rounded-full border border-white/25 bg-white/15 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-white backdrop-blur-sm`},cT={key:2,class:`rounded-full bg-blue-600/90 px-3 py-1 text-xs font-semibold text-white`},lT={class:`mt-4 max-w-4xl text-4xl font-bold tracking-tight text-white sm:text-5xl`},uT={key:0,class:`mt-2 text-xl text-blue-100`},dT={key:1,class:`mt-4 max-w-2xl text-lg leading-relaxed text-slate-200`},fT={key:2,class:`mt-7 flex flex-wrap gap-3`},pT=[`href`],mT={key:0,class:`relative z-10 -mt-12 mx-auto max-w-7xl px-4 sm:px-6 lg:-mt-14 lg:px-8`},hT={class:`grid grid-cols-2 gap-3 sm:grid-cols-5 sm:gap-4`},gT={class:`text-xs font-semibold uppercase tracking-wider text-slate-500`},_T={class:`mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:py-16 lg:px-8`},vT={class:`grid gap-12 lg:grid-cols-12 lg:gap-14`},yT={class:`space-y-12 lg:col-span-7`},bT={key:0},xT={class:`mb-5 text-xs font-semibold uppercase tracking-[0.2em] text-slate-600`},ST={class:`overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-md ring-1 ring-slate-900/[0.04]`},CT={class:`aspect-video w-full`},wT=[`src`,`title`],TT={key:1},ET={class:`mb-5 text-xs font-semibold uppercase tracking-[0.2em] text-slate-600`},DT=[`innerHTML`],OT={key:2},kT={class:`mb-5 text-xs font-semibold uppercase tracking-[0.2em] text-slate-600`},AT={class:`grid gap-4 sm:grid-cols-2`},jT={key:0,class:`font-semibold text-slate-900`},MT={key:1,class:`mt-2 text-sm leading-relaxed text-slate-600`},NT={class:`space-y-8 lg:col-span-5`},PT={key:0,class:`overflow-hidden rounded-2xl border border-slate-200/90 bg-white p-6 shadow-sm ring-1 ring-slate-900/[0.04]`},FT={class:`mb-5 text-center text-xs font-semibold uppercase tracking-wider text-slate-500`},IT={class:`flex flex-wrap items-center justify-center gap-6 sm:gap-8`},LT=[`src`,`alt`],RT=[`src`,`alt`],zT={key:1},BT={class:`mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-slate-600`},VT={class:`divide-y divide-slate-200/90 overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-sm ring-1 ring-slate-900/[0.04]`},HT=[`href`],UT={class:`flex items-start justify-between gap-3`},WT={class:`min-w-0 flex-1`},GT={class:`font-semibold text-slate-900`},KT={class:`mt-1 text-xs text-slate-500`},qT={key:0},JT={class:`flex shrink-0 flex-col items-end gap-1.5`},YT={key:0,class:`inline-flex items-center gap-1 rounded-full bg-red-600 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white`},XT={key:1,class:`rounded-full bg-slate-100 px-3 py-1 text-sm font-semibold tabular-nums text-slate-900`},ZT={key:2,class:`text-sm font-medium tabular-nums text-blue-600`},QT={key:0,class:`mt-14 border-t border-slate-200 pt-14 lg:mt-16`},$T={class:`mb-8 text-xs font-semibold uppercase tracking-[0.2em] text-slate-600`},eE={class:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`},tE=[`src`,`alt`];function nE(e,n,r,i,a,o){let s=V(`Loading`);return B(),_(`div`,Xw,[a.loading?(B(),P(s,{key:0,class:`py-24`})):a.team?(B(),_(`div`,$w,[y(`header`,eT,[y(`div`,tT,[o.heroImage?(B(),_(`img`,{
72key:0,src:o.heroImage,alt:a.team.name,class:`h-full w-full scale-105 object-cover motion-safe:animate-[hero-ken-burns_18s_ease-out_forwards]`},null,8,nT)):(B(),_(`div`,rT)),n[0]||(n[0]=y(`div`,{class:`absolute inset-0 bg-gradient-to-t from-slate-900/95 via-slate-900/50 to-blue-900/25`},null,-1))]),y(`div`,iT,[y(`div`,aT,[a.team.nation_code?(B(),_(`span`,{key:0,class:`inline-block size-7 shrink-0 overflow-hidden rounded-full bg-slate-700 bg-center bg-no-repeat shadow-sm ring-2 ring-white/40`,style:t(o.flagCircleStyle(a.team.nation_code)),role:`img`,"aria-label":a.team.nation_code},null,12,oT)):I(``,!0),a.team.category_label?(B(),_(`p`,sT,z(a.team.category_label),1)):I(``,!0),a.team.tournament_year?(B(),_(`p`,cT,` Gothia Cup `+z(a.team.tournament_year),1)):I(``,!0)]),y(`h1`,lT,z(a.team.name),1),a.team.club_name&&a.team.club_name!==a.team.name?(B(),_(`p`,uT,z(a.team.club_name),1)):I(``,!0),a.team.teaser?(B(),_(`p`,dT,z(a.team.teaser),1)):I(``,!0),a.team.results_url?(B(),_(`div`,fT,[y(`a`,{href:a.team.results_url,class:`inline-flex items-center justify-center rounded-xl bg-blue-600 px-6 py-3 text-sm font-semibold text-white shadow-md transition hover:bg-blue-700`},z(o.copy.resultsCta),9,pT)])):I(``,!0)])]),n[3]||(n[3]=y(`div`,{"data-nav-scroll-sentinel":``,class:`pointer-events-none h-0 w-0 overflow-hidden`,"aria-hidden":`true`},null,-1)),o.stats?(B(),_(`section`,mT,[y(`div`,hT,[(B(!0),_(O,null,U(o.statItems,e=>(B(),_(`div`,{key:e.key,class:`rounded-2xl border border-slate-200/90 bg-white px-4 py-5 text-center shadow-md ring-1 ring-slate-900/[0.04]`},[y(`p`,gT,z(e.label),1),y(`p`,{class:R([`mt-1 text-2xl font-bold tabular-nums sm:text-3xl`,e.accent])},z(e.value),3)]))),128))])])):I(``,!0),y(`div`,_T,[y(`div`,vT,[y(`div`,yT,[o.videoEmbedUrl?(B(),_(`section`,bT,[y(`h2`,xT,z(o.copy.video),1),y(`div`,ST,[y(`div`,CT,[y(`iframe`,{src:o.videoEmbedUrl,class:`h-full w-full border-0`,title:o.copy.video,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowfullscreen:``,loading:`lazy`},null,8,wT)])])])):I(``,!0),a.team.description?(B(),_(`section`,TT,[y(`h2`,ET,z(o.copy.about),1),y(`div`,{class:`prose prose-slate prose-lg max-w-none rounded-2xl border border-slate-200/90 bg-white p-6 shadow-sm ring-1 ring-slate-900/[0.04] sm:p-8`,innerHTML:a.team.description},null,8,DT)])):I(``,!0),a.team.highlights&&a.team.highlights.length?(B(),_(`section`,OT,[y(`h2`,kT,z(o.copy.highlights),1),y(`div`,AT,[(B(!0),_(O,null,U(a.team.highlights,(e,t)=>(B(),_(`div`,{key:t,class:`rounded-xl border border-slate-200/90 bg-white p-5 shadow-sm ring-1 ring-slate-900/[0.04] transition hover:shadow-md`},[e.title?(B(),_(`h3`,jT,z(e.title),1)):I(``,!0),e.text?(B(),_(`p`,MT,z(e.text),1)):I(``,!0)]))),128))])])):I(``,!0)]),y(`aside`,NT,[o.showKitBlock?(B(),_(`div`,PT,[y(`p`,FT,z(o.copy.kit),1),y(`div`,IT,[o.emblemImage?(B(),_(`img`,{key:0,src:o.emblemImage,alt:a.team.club_name||a.team.name,class:`size-24 shrink-0 object-contain sm:size-28`,loading:`lazy`},null,8,LT)):I(``,!0),o.shirtImage?(B(),_(`img`,{key:1,src:o.shirtImage,alt:a.team.name,class:`max-h-44 w-auto object-contain sm:max-h-48`,loading:`lazy`},null,8,RT)):I(``,!0)])])):I(``,!0),o.matches.length?(B(),_(`section`,zT,[y(`h2`,BT,z(o.copy.matches),1),y(`ul`,VT,[(B(!0),_(O,null,U(o.matches,e=>(B(),_(`li`,{key:e.id},[y(`a`,{href:o.matchUrl(e.id),class:`block px-4 py-4 transition hover:bg-slate-50 sm:px-5`},[y(`div`,UT,[y(`div`,WT,[y(`p`,GT,[w(z(e.homeTeamName)+` `,1),n[1]||(n[1]=y(`span`,{class:`font-normal text-slate-500`},`vs`,-1)),w(` `+z(e.awayTeamName),1)]),y(`p`,KT,[w(z(e.locationName)+` `,1),e.zonedStartTime?(B(),_(`span`,qT,` · `+z(o.formatSchedule(e.zonedStartTime)),1)):I(``,!0)])]),y(`div`,JT,[e.isLive&&!e.isFinished?(B(),_(`span`,YT,[n[2]||(n[2]=y(`span`,{class:`relative flex size-1.5`},[y(`span`,{class:`absolute inline-flex size-full animate-ping rounded-full bg-red-300 opacity-75`}),y(`span`,{class:`relative inline-flex size-1.5 rounded-full bg-red-200`})],-1)),w(` `+z(o.copy.live),1)])):I(``,!0),o.showScore(e)?(B(),_(`span`,XT,z(e.homeScore)+` : `+z(e.awayScore),1)):e.zonedStartTime?(B(),_(`span`,ZT,z(o.formatTime(e.zonedStartTime)),1)):I(``,!0)])])],8,HT)]))),128))])])):I(``,!0)])]),o.galleryImages.length?(B(),_(`section`,QT,[y(`h2`,$T,z(o.copy.gallery),1),y(`div`,eE,[(B(!0),_(O,
72null,U(o.galleryImages,(e,t)=>(B(),_(`figure`,{key:t,class:R([`group relative overflow-hidden rounded-2xl shadow-md ring-1 ring-slate-900/[0.06]`,t===0&&o.galleryImages.length>2?`sm:col-span-2 lg:col-span-2 aspect-[21/9]`:`aspect-[4/3]`])},[y(`img`,{src:e,alt:a.team.name,class:`h-full w-full object-cover transition duration-500 group-hover:scale-[1.02]`,loading:`lazy`},null,8,tE)],2))),128))])])):I(``,!0)])])):(B(),_(`div`,Zw,[y(`p`,Qw,z(o.copy.notFound),1)]))])}var rE=G(Yw,[[`render`,nE],[`__scopeId`,`data-v-bbc95efa`]]);function iE(e,t={}){let{hotelId:n,roomTypeId:r,hotelName:i,room:a,lang:o}=t;if(i&&a){let t=(e||``).replace(/\/?$/,``);if(!t)return`#`;let n=(o||(typeof config<`u`?config.locale:`sv`))===`sv`?a.VLHotellrumstyperENHotellrumstyp:a.VLHotellrumstyperENSprÃ¥kanpassatnamn;return`${t}/?${new URLSearchParams({hotel:i,room:n||``,persons:String(a.Hotellrum_testAntalpers??``)}).toString()}`}let s=typeof config<`u`?String(config.id_url||``).replace(/\/+$/,``):``,c=(e||``).replace(/\/+$/,``);if(aE(c)||(c=s),!c||!n||!r)return c||`#`;let l=new URLSearchParams({hotel_id:String(n),room_type_id:String(r)});return`${c}/bookings/new?${l.toString()}`}function aE(e){return!e||e.startsWith(`/`)||e.includes(`/form/`)?!1:/^https?:\/\//i.test(e)}c();var oE={name:`HotelRooms`,props:{rooms:{type:Array,default:()=>[]},bookingUrl:{type:String,default:``},hotelId:{type:[String,Number],default:null},nights:{type:[String,Number],default:`6`},color:{type:String,default:``}},data(){return{lang:config.locale,app:config.appName}},computed:{accentColor(){return this.color||config.color||`blue`},showBookColumn(){return!!(this.bookingUrl&&this.hotelId)}},methods:{canBook(e){return e.remaining==null||Number(e.remaining)>0},formatPrices(e){let t=e.prices||{},n=[];return this.lang===`sv`&&t.SEK!=null?n.push(`${t.SEK} SEK`):this.app===`Gothia Cup Cancun`&&t.USD!=null?n.push(`${t.USD} USD`):(t.EUR!=null&&n.push(`${t.EUR} EUR`),this.app===`Gothia Cup`&&t.USD!=null&&n.push(`${t.USD} USD`)),n.join(` / `)||`â`},bookingHref(e){return iE(this.bookingUrl,{hotelId:this.hotelId,roomTypeId:e.id})}}},sE={class:`overflow-hidden rounded-2xl bg-white shadow-md ring-1 ring-slate-900/[0.06]`},cE={class:`border-b border-slate-100 bg-slate-50/80 px-5 py-5 sm:px-6`},lE={class:`text-sm text-slate-600`},uE={key:0,class:`px-5 py-12 text-center sm:px-6`},dE={class:`text-sm text-slate-600`},fE={key:1,class:`bg-slate-50/50 px-3 py-4 sm:px-4 sm:py-5`},pE={class:`overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm`},mE={class:`min-w-0 overflow-x-auto`},hE={class:`min-w-full divide-y divide-slate-200`},gE={class:`bg-slate-50`},_E={scope:`col`,class:`px-4 py-3.5 text-left text-xs font-semibold uppercase tracking-wide text-slate-600 sm:px-5`},vE={scope:`col`,class:`px-3 py-3.5 text-left text-xs font-semibold uppercase tracking-wide text-slate-600 sm:px-5`},yE={key:0,scope:`col`,class:`w-px min-w-[6rem] px-3 py-3.5 sm:px-5`},bE={class:`divide-y divide-slate-100`},xE={class:`max-w-[18rem] break-words px-4 py-4 text-sm font-medium text-slate-900 sm:px-5`},SE={key:0},CE={class:`whitespace-nowrap px-3 py-4 text-sm text-slate-600 sm:px-5`},wE={key:0,class:`whitespace-nowrap px-3 py-4 text-right sm:px-5`},TE=[`href`],EE={key:1,class:`text-xs font-medium text-slate-500`};function DE(e,t,n,r,i,a){return B(),_(`div`,sE,[y(`div`,cE,[y(`p`,lE,[a.showBookColumn?(B(),_(O,{key:0},[i.lang===`sv`?(B(),_(O,{key:0},[w(` Pris för `+z(n.nights)+` nätter. Klicka Boka för att fortsätta i Gothia ID. `,1)],64)):(B(),_(O,{key:1},[w(` Price for `+z(n.nights)+` nights. Click Book to continue in Gothia ID. `,1)],64))],64)):i.lang===`sv`?(B(),_(O,{key:1},[w(` Pris för `+z(n.nights)+` nätter. `,1)],64)):(B(),_(O,{key:2},[w(` Price for `+z(n.nights)+` nights. `,1)],64))])]),n.rooms.length?(B(),_(`div`,fE,[y(`div`,pE,[y(`div`,mE,[y(`table`,hE,[y(`thead`,null,[y(`tr`,gE,[y(`th`,_E,z(i.lang===`sv`?`Rumstyp`:`Room type`),1),y(`th`,vE,z(i.lang===`sv`?n.nights+` nätter`:n.nights+` nights`),1),a.showBookColumn?(B(),_(`th`,yE)):I(``,!0)])]),y(`tbody`,bE,[(B(!0),_(O,null,U(n.rooms,(e,t)=>(B(),_(`tr`,{key:e.id||t,class:R([`transition-colors`,[t%2==1?`bg-slate-50/40`:`bg-white`,a.showBookColumn?`hover:bg-`+a.accentColor+`-50/50`:``]])},[y(`td`,xE,[w(z(e.name),1),e.capacity?(B(),_(`span`,SE,` (`+z(e.capacity)+` `+z
72(i.lang===`sv`?`pers.`:`pax`)+`)`,1)):I(``,!0)]),y(`td`,CE,z(a.formatPrices(e)),1),a.showBookColumn?(B(),_(`td`,wE,[a.canBook(e)?(B(),_(`a`,{key:0,href:a.bookingHref(e),class:R([`inline-flex rounded-full px-4 py-2 text-sm font-semibold text-white shadow-sm transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2`,`bg-`+a.accentColor+`-600 hover:bg-`+a.accentColor+`-700 focus-visible:ring-`+a.accentColor+`-500`])},z(i.lang===`sv`?`Boka`:`Book`),11,TE)):(B(),_(`span`,EE,z(i.lang===`sv`?`Fullbokat`:`Sold out`),1))])):I(``,!0)],2))),128))])])])])])):(B(),_(`div`,uE,[y(`p`,dE,z(i.lang===`sv`?`Inga rum tillgängliga just nu.`:`No rooms available at the moment.`),1)]))])}var OE=G(oE,[[`render`,DE]]);c();var kE={name:`item-hotel`,components:{HotelRooms:OE},props:[`nights`,`hotel`,`link`],data(){return{lang:config.locale,color:config.color}},computed:{rooms(){var e;return Array.isArray((e=this.hotel)==null?void 0:e.rooms)?this.hotel.rooms:[]},pageUrl(){var e;return((e=this.hotel)==null?void 0:e.url)||null},listImage(){var e;return((e=this.hotel)==null?void 0:e.list_image)||null},pageLinkText(){var e;return((e=this.hotel)==null?void 0:e.link_text)||(this.lang===`sv`?`Läs mer om hotellet`:`About this hotel`)},listTeaserText(){var e,t;return((e=this.hotel)==null?void 0:e.list_teaser)||((t=this.hotel)==null?void 0:t.teaser)||``},bookingBaseUrl(){var e;return((e=this.hotel)==null?void 0:e.booking_url)||(typeof config<`u`?config.id_url:``)||``},displayNights(){var e;return((e=this.hotel)==null?void 0:e.nights)||this.nights||6}}},AE={class:`min-w-0 list-none`},jE={class:`group overflow-hidden rounded-2xl bg-white shadow-md ring-1 ring-slate-900/[0.06] transition duration-200 hover:shadow-xl hover:ring-slate-900/10`},ME={key:0,class:`relative w-full overflow-hidden bg-slate-200`},NE=[`src`,`alt`],PE={class:`text-lg font-bold text-white sm:text-xl`},FE={class:`border-b border-slate-100 px-5 py-5 sm:px-6 sm:py-6`},IE={class:`flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`},LE={class:`min-w-0 flex-1`},RE={key:0,class:`text-lg font-bold tracking-tight text-slate-900 sm:text-xl`},zE=[`href`],BE=[`innerHTML`],VE={class:`bg-slate-50/80 px-3 py-4 sm:px-4 sm:py-5`};function HE(e,t,n,r,i,a){let o=V(`HotelRooms`);return B(),_(`li`,AE,[y(`article`,jE,[a.listImage?(B(),_(`div`,ME,[y(`img`,{src:a.listImage,alt:n.hotel.name,class:`block h-48 w-full object-cover transition duration-300 group-hover:scale-[1.02] sm:h-56 md:h-64`,loading:`lazy`},null,8,NE),t[0]||(t[0]=y(`div`,{class:`pointer-events-none absolute inset-0 bg-gradient-to-t from-slate-950/40 via-transparent to-transparent`,"aria-hidden":`true`},null,-1))])):(B(),_(`div`,{key:1,class:R([`flex h-28 w-full items-end bg-gradient-to-br p-5 sm:h-32 sm:p-6`,`from-`+i.color+`-700 to-`+i.color+`-900`])},[y(`h3`,PE,z(n.hotel.name),1)],2)),y(`header`,FE,[y(`div`,IE,[y(`div`,LE,[a.listImage?(B(),_(`h3`,RE,z(n.hotel.name),1)):I(``,!0),n.hotel.address?(B(),_(`p`,{key:1,class:R([`flex items-center gap-2 text-sm leading-snug sm:text-base`,[a.listImage?`mt-1.5`:`mt-0`,`text-`+i.color+`-700`]])},[y(`span`,{class:R([`flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-slate-100`,`text-`+i.color+`-700`]),"aria-hidden":`true`},[...t[1]||(t[1]=[y(`svg`,{class:`h-4 w-4`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z`}),y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M15 11a3 3 0 11-6 0 3 3 0 016 0z`})],-1)])],2),y(`span`,null,z(n.hotel.address),1)],2)):I(``,!0)]),a.pageUrl?(B(),_(`a`,{key:0,href:a.pageUrl,class:R([`inline-flex shrink-0 items-center justify-center rounded-full px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2`,`bg-`+i.color+`-600 hover:bg-`+i.color+`-700 focus-visible:ring-`+i.color+`-500`])},z(a.pageLinkText),11,zE)):I(``,!0)]),a.listTeaserText?(B(),_(`p`,{key:0,class:`mt-4 text-sm leading-relaxed text-slate-600 sm:text-base`,innerHTML:a.listTeaserText},null,8,BE)):I(``,!0)]),y(`div`,VE,[L(o,{rooms:a.rooms,"hotel-id":n.hotel.id,"booking-url":a.bookingBaseUrl,nights:a.displayNights,color:i.color},null,8,[`rooms`,`hotel-id`,`booking-url`,`nights`,`color`])])])])}var UE=G(kE,[[`render`,HE]]);c();var WE={name:`item-filemaker-hotel`,props:[`nights`,`hotel`,`link`,`pageMap`],data(){return{lang:config.locale,app:config.appName,color:config.color}},computed:{displayNights(){let e=Number(this.nights);return Number.isFinite(e)&&e>0?e:3},rooms(){let e=this.hotel&&this.hotel.portalData&&this.hotel.portalData.rum;if(e==null)return[];if(Array.isArray(e))return e;if(typeof e==`object`){let t=Object.values(e).filter(e=>typeof e==`object`&&!!e&&!Array.isArray(e));if(t.length)return t;if(`Hotellrum_testAntalpers`in e||`VLHotellrumstyperENHotellrumstyp`in e||`VLHotellrumstyperENSpråkanpassatnamn`in e)return[e]}return[]},descriptionText(){return this.lang===`sv`?this.hotel.fieldData.web_text:this.hotel.fieldData.web_text_eng},pageEntry(){var e;let t=String(((e=this.hotel)==null||(e=e.fieldData)==null?void 0:e.HotellID)??``);return this.pageMap&&this.pageMap[t]?this.pageMap[t]:null},pageUrl(){var e;return((e=this.pageEntry)==null?void 0:e.url)||null},listImage(){var e;return((e=this.pageEntry)==null?void 0:e.list_image)||null},pageLinkText(){var e;return(e=this.pageEntry)!=null&&e.link_text?this.pageEntry.link_text:this.lang===`sv`?`Läs mer om hotellet`:`About this hotel`},listTeaserText(){var e;return(e=this.pageEntry)!=null&&e.list_teaser?this.pageEntry.list_teaser:this.descriptionText},bookingBaseUrl(){return this.link||``}},methods:{price(e,t){return e*t},bookingHref(e){return iE(this.bookingBaseUrl,{hotelName:this.hotel.fieldData.HotellNamn,room:e,lang:this.lang})}}},GE={class:`min-w-0 list-none`},KE={class:`group overflow-hidden rounded-2xl bg-white shadow-md ring-1 ring-slate-900/[0.06] transition duration-200 hover:shadow-xl hover:ring-slate-900/10`},qE={key:0,class:`relative w-full overflow-hidden bg-slate-200`},JE=[`src`,`alt`],YE={class:`text-lg font-bold text-white sm:text-xl`},XE={class:`border-b border-slate-100 px-5 py-5 sm:px-6 sm:py-6`},ZE={class:`flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`},QE={class:`min-w-0 flex-1`},$E={key:0,class:`text-lg font-bold tracking-tight text-slate-900 sm:text-xl`},eD=[`href`],tD=[`innerHTML`],nD={class:`bg-slate-50/80 px-3 py-4 sm:px-4 sm:py-5`},rD={class:`overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm ring-1 ring-slate-900/[0.03]`},iD={class:`min-w-0 overflow-x-auto`},aD={class:`min-w-full divide-y divide-slate-200`},oD={class:`bg-slate-50`},sD={scope:`col`,class:`px-4 py-3.5 text-left text-xs font-semibold uppercase tracking-wide text-slate-600 sm:px-5`},cD={scope:`col`,class:`px-3 py-3.5 text-left text-xs font-semibold uppercase tracking-wide text-slate-600 sm:px-5`},lD={class:`divide-y divide-slate-100`},uD={class:`max-w-[18rem] break-words px-4 py-3.5 text-sm font-medium text-slate-900 sm:px-5`},dD={class:`whitespace-nowrap px-3 py-3.5 text-sm text-slate-600 sm:px-5`},fD={class:`whitespace-nowrap px-3 py-3.5 text-right sm:px-5`},pD=[`href`];function mD(e,t,n,r,i,a){return B(),_(`li`,GE,[y(`article`,KE,[a.listImage?(B(),_(`div`,qE,[y(`img`,{src:a.listImage,alt:n.hotel.fieldData.HotellNamn,class:`block h-48 w-full object-cover transition duration-300 group-hover:scale-[1.02] sm:h-56 md:h-64`,loading:`lazy`},null,8,JE),t[0]||(t[0]=y(`div`,{class:`pointer-events-none absolute inset-0 bg-gradient-to-t from-slate-950/40 via-trans
72parent to-transparent`,"aria-hidden":`true`},null,-1))])):(B(),_(`div`,{key:1,class:R([`flex h-28 w-full items-end bg-gradient-to-br p-5 sm:h-32 sm:p-6`,`from-`+i.color+`-700 to-`+i.color+`-900`])},[y(`h3`,YE,z(n.hotel.fieldData.HotellNamn),1)],2)),y(`header`,XE,[y(`div`,ZE,[y(`div`,QE,[a.listImage?(B(),_(`h3`,$E,z(n.hotel.fieldData.HotellNamn),1)):I(``,!0),y(`p`,{class:R([`flex items-center gap-2 text-sm leading-snug sm:text-base`,[a.listImage?`mt-1.5`:`mt-0`,`text-`+i.color+`-700`]])},[y(`span`,{class:R([`flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-slate-100`,`text-`+i.color+`-700`]),"aria-hidden":`true`},[...t[1]||(t[1]=[y(`svg`,{class:`h-4 w-4`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z`}),y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M15 11a3 3 0 11-6 0 3 3 0 016 0z`})],-1)])],2),y(`span`,null,z(n.hotel.fieldData.Adress),1)],2)]),a.pageUrl?(B(),_(`a`,{key:0,href:a.pageUrl,class:R([`inline-flex shrink-0 items-center justify-center rounded-full px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2`,`bg-`+i.color+`-600 hover:bg-`+i.color+`-700 focus-visible:ring-`+i.color+`-500`])},z(a.pageLinkText),11,eD)):I(``,!0)]),a.listTeaserText?(B(),_(`p`,{key:0,class:`mt-4 text-sm leading-relaxed text-slate-600 sm:text-base`,innerHTML:a.listTeaserText},null,8,tD)):I(``,!0)]),y(`div`,nD,[y(`div`,rD,[y(`div`,iD,[y(`table`,aD,[y(`thead`,null,[y(`tr`,oD,[y(`th`,sD,z(i.lang===`sv`?`Rumstyp`:`Room type`),1),y(`th`,cD,z(i.lang===`sv`?a.displayNights+` nätter`:a.displayNights+` nights`),1),t[2]||(t[2]=y(`th`,{scope:`col`,class:`w-px min-w-[5.5rem] px-3 py-3.5 sm:px-5`},null,-1))])]),y(`tbody`,lD,[(B(!0),_(O,null,U(a.rooms,(e,n)=>(B(),_(`tr`,{key:n,class:R([`transition-colors hover:bg-slate-50/80`,n%2==0?`bg-white`:`bg-slate-50/50`])},[y(`td`,uD,[i.lang===`sv`?(B(),_(O,{key:0},[w(z(e.VLHotellrumstyperENHotellrumstyp)+` (`+z(e.Hotellrum_testAntalpers)+` pers.) `,1)],64)):(B(),_(O,{key:1},[w(z(e.VLHotellrumstyperENSpråkanpassatnamn)+` (`+z(e.Hotellrum_testAntalpers)+` pers.) `,1)],64))]),y(`td`,dD,[i.lang===`sv`?(B(),_(O,{key:0},[w(z(a.price(e.Hotellrum_testSEKpernatt,e.Hotellrum_testAntalpers))+` SEK `,1)],64)):i.app===`Gothia Cup Cancun`?(B(),_(O,{key:1},[w(z(a.price(e.Hotellrum_testUSDpernatt,e.Hotellrum_testAntalpers))+` USD `,1)],64)):i.app===`Gothia Cup`?(B(),_(O,{key:2},[w(z(a.price(e.Hotellrum_testEuropernatt,e.Hotellrum_testAntalpers))+` EUR`,1),t[3]||(t[3]=y(`br`,null,null,-1)),w(` `+z(a.price(e.Hotellrum_testUSDpernatt,e.Hotellrum_testAntalpers))+` USD `,1)],64)):(B(),_(O,{key:3},[w(z(a.price(e.Hotellrum_testEuropernatt,e.Hotellrum_testAntalpers))+` EUR `,1)],64))]),y(`td`,fD,[y(`a`,{href:a.bookingHref(e),class:R([`inline-flex rounded-full px-4 py-2 text-sm font-semibold text-white shadow-sm transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2`,`bg-`+i.color+`-600 hover:bg-`+i.color+`-700 focus-visible:ring-`+i.color+`-500`])},z(i.lang===`sv`?`Boka`:`Book`),11,pD)])],2))),128))])])])])])])])}var hD=G(WE,[[`render`,mD]]);c();var gD={name:`itemf-hotels`,props:[`item`,`link`],components:{Hotel:UE,FilemakerHotel:hD,Loading:qe},computed:{useFilemaker(){return config.hotel_catalog!==`registration_platform`},bookingLink(){var e;return((e=this.item)==null?void 0:e.link)||this.link||``},nights(){var e;let t=Number((e=this.item)==null?void 0:e.nights);return Number.isFinite(t)&&t>0?t:null}},data(){return{hotels:[],pageMap:{},loading:!0}},mounted(){if(this.useFilemaker){this.loadFilemakerHotels();return}this.loadRegistrationPlatformHotels()},methods:{loadRegistrationPlatformHotels(){let e=config.locale,t={};this.nights&&(t.nights=this.nights),axios.get(`/api/`+e+`/hotels`,{params:t}).then(e=>{this.hotels=e.data.hotels||[],this.loading=!1}).catch(()=>{this.loading=!1})},loadFilemakerHotels(){let e=config.locale,t=config.fm_database;Promise.all([axios.get(`/public/api/fm/records/`+t+`/api_hotel`),axios.get(`/api/`+e+`/hotels/map`)]).then(e=>{let t=e[0].data;this.hotels=Array.isArray(t)?t:Object.values(t||{}),this.pageMap=e[1].data||{},this.loading=!1}
72).catch(()=>{this.loading=!1})}}},_D={class:`w-full min-w-0 max-w-full`},vD={key:1,class:`list-none space-y-8 p-0`,role:`list`};function yD(e,t,n,r,i,a){let o=V(`Loading`),s=V(`FilemakerHotel`),c=V(`Hotel`);return B(),_(`div`,_D,[i.loading?(B(),P(o,{key:0,class:`py-8`})):(B(),_(`ul`,vD,[a.useFilemaker?(B(!0),_(O,{key:0},U(i.hotels,e=>(B(),P(s,{key:e.fieldData.HotellID,hotel:e,nights:a.nights,link:a.bookingLink,"page-map":i.pageMap},null,8,[`hotel`,`nights`,`link`,`page-map`]))),128)):(B(!0),_(O,{key:1},U(i.hotels,e=>(B(),P(c,{key:e.id,hotel:e,nights:a.nights,link:a.bookingLink},null,8,[`hotel`,`nights`,`link`]))),128))]))])}var bD=G(gD,[[`render`,yD]]);c();var xD={name:`HotelDetail`,components:{Loading:qe,HotelRooms:OE},props:{slug:{type:String,required:!0},locale:{type:String,default:``}},data(){return{hotel:null,loading:!0,lang:config.locale,color:config.color,nights:`6`}},computed:{copy(){let e=this.lang===`sv`;return{notFound:e?`Hotell hittades inte.`:`Hotel not found.`,map:e?`Visa på karta`:`View on map`,about:e?`Om hotellet`:`About the hotel`,amenities:e?`Faciliteter`:`Amenities`,gallery:e?`Bilder`:`Gallery`,roomsTitle:e?`Rum och priser`:`Rooms and prices`}},galleryImages(){var e;return(((e=this.hotel)==null?void 0:e.gallery)||[]).filter(Boolean)}},mounted(){let e=this.locale||config.locale;axios.get(`/api/`+e+`/hotels/`+encodeURIComponent(this.slug)).then(e=>{this.hotel=e.data.hotel}).catch(()=>{this.hotel=null}).finally(()=>{this.loading=!1})}},SD={class:`min-h-screen bg-slate-50`},CD={key:1,class:`mx-auto max-w-lg px-4 py-24 text-center`},wD={class:`text-lg font-semibold text-slate-800`},TD={key:2},ED={class:`relative isolate min-h-[min(72vh,520px)] overflow-hidden bg-slate-900`},DD={class:`absolute inset-0`},OD=[`src`,`alt`],kD={key:1,class:`h-full w-full bg-gradient-to-br from-slate-800 via-slate-900 to-slate-950`,"aria-hidden":`true`},AD={class:`relative mx-auto flex min-h-[min(72vh,520px)] max-w-7xl flex-col justify-end px-4 pb-16 pt-28 sm:px-6 sm:pb-20 sm:pt-32 lg:px-8`},jD={key:0,class:`mb-4 w-fit max-w-full self-start rounded-full border border-white/25 bg-white/10 px-3.5 py-1 text-xs font-semibold uppercase tracking-[0.18em] text-white/95 backdrop-blur-sm`},MD={class:`max-w-4xl text-balance text-4xl font-black tracking-tight text-white sm:text-5xl lg:text-6xl`},ND={key:1,class:`mt-5 max-w-2xl text-lg leading-relaxed text-slate-200 sm:text-xl`},PD={class:`relative z-10 mx-auto max-w-7xl px-4 sm:px-6 lg:px-8`},FD={class:`-mt-10 rounded-2xl bg-white p-5 shadow-xl shadow-slate-900/10 ring-1 ring-slate-900/[0.06] sm:p-6`},ID={class:`flex flex-col gap-5 lg:flex-row lg:items-center lg:justify-between`},LD={class:`flex flex-col gap-4 sm:flex-row sm:flex-wrap sm:items-center sm:gap-8`},RD={key:0,class:`flex items-center gap-3 text-sm text-slate-700 sm:text-base`},zD={class:`font-medium leading-snug`},BD=[`href`],VD={class:`mx-auto max-w-7xl px-4 py-12 sm:px-6 sm:py-16 lg:px-8`},HD={class:`mx-auto max-w-3xl space-y-14 lg:max-w-4xl`},UD={key:0},WD=[`innerHTML`],GD={key:1},KD={class:`grid grid-cols-1 gap-3 sm:grid-cols-2`},qD={key:2},JD={class:`grid gap-3 sm:grid-cols-2`},YD=[`src`,`alt`],XD={class:`mt-16 border-t border-slate-200 pt-16`};function ZD(e,t,n,r,i,a){let o=V(`Loading`),s=V(`HotelRooms`);return B(),_(`div`,SD,[i.loading?(B(),P(o,{key:0,class:`py-24`}
72)):i.hotel?(B(),_(`div`,TD,[y(`header`,ED,[y(`div`,DD,[i.hotel.hero_image?(B(),_(`img`,{key:0,src:i.hotel.hero_image,alt:i.hotel.name,class:`h-full w-full object-cover`},null,8,OD)):(B(),_(`div`,kD)),t[0]||(t[0]=y(`div`,{class:`absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-900/70 to-slate-800/40`,"aria-hidden":`true`},null,-1))]),y(`div`,AD,[i.hotel.distance_text?(B(),_(`p`,jD,z(i.hotel.distance_text),1)):I(``,!0),y(`h1`,MD,z(i.hotel.name),1),i.hotel.teaser?(B(),_(`p`,ND,z(i.hotel.teaser),1)):I(``,!0)])]),y(`div`,PD,[y(`div`,FD,[y(`div`,ID,[y(`div`,LD,[i.hotel.address?(B(),_(`div`,RD,[y(`span`,{class:R([`flex h-9 w-9 shrink-0 items-center justify-center rounded-full`,`bg-`+i.color+`-50 text-`+i.color+`-700`]),"aria-hidden":`true`},[...t[1]||(t[1]=[y(`svg`,{class:`h-4 w-4`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z`}),y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M15 11a3 3 0 11-6 0 3 3 0 016 0z`})],-1)])],2),y(`span`,zD,z(i.hotel.address),1)])):I(``,!0),i.hotel.map_url?(B(),_(`a`,{key:1,href:i.hotel.map_url,target:`_blank`,rel:`noopener noreferrer`,class:R([`inline-flex items-center gap-2 text-sm font-semibold transition hover:underline`,`text-`+i.color+`-700 hover:text-`+i.color+`-900`])},[w(z(a.copy.map)+` `,1),t[2]||(t[2]=y(`span`,{"aria-hidden":`true`},`â`,-1))],10,BD)):I(``,!0)])])])]),y(`div`,VD,[y(`div`,HD,[i.hotel.description?(B(),_(`section`,UD,[y(`h2`,{class:R([`mb-6 text-xs font-semibold uppercase tracking-[0.22em] text-slate-600 after:mt-3 after:block after:h-[3px] after:w-9 after:rounded-full after:content-['']`,`after:bg-`+i.color+`-600`])},z(a.copy.about),3),y(`div`,{class:R([`prose prose-slate max-w-none prose-headings:font-bold prose-headings:text-slate-900 prose-p:text-slate-600 prose-p:leading-relaxed prose-a:no-underline hover:prose-a:underline`,`prose-a:text-`+i.color+`-700`]),innerHTML:i.hotel.description},null,10,WD)])):I(``,!0),i.hotel.amenities&&i.hotel.amenities.length?(B(),_(`section`,GD,[y(`h2`,{class:R([`mb-6 text-xs font-semibold uppercase tracking-[0.22em] text-slate-600 after:mt-3 after:block after:h-[3px] after:w-9 after:rounded-full after:content-['']`,`after:bg-`+i.color+`-600`])},z(a.copy.amenities),3),y(`ul`,KD,[(B(!0),_(O,null,U(i.hotel.amenities,(e,n)=>(B(),_(`li`,{key:n,class:`flex items-center gap-3 rounded-xl border border-slate-200/80 bg-white px-4 py-3.5 text-sm font-medium text-slate-800 shadow-sm ring-1 ring-slate-900/[0.04]`},[y(`span`,{class:R([`flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-white`,`bg-`+i.color+`-600`]),"aria-hidden":`true`},[...t[3]||(t[3]=[y(`svg`,{class:`h-4 w-4`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,"stroke-width":`2.5`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M5 13l4 4L19 7`})],-1)])],2),w(` `+z(e),1)]))),128))])])):I(``,!0),a.galleryImages.length?(B(),_(`section`,qD,[y(`h2`,{class:R([`mb-6 text-xs font-semibold uppercase tracking-[0.22em] text-slate-600 after:mt-3 after:block after:h-[3px] after:w-9 after:rounded-full after:content-['']`,`after:bg-`+i.color+`-600`])},z(a.copy.gallery),3),y(`div`,JD,[(B(!0),_(O,null,U(a.galleryImages,(e,t)=>(B(),_(`img`,{key:t,src:e,alt:i.hotel.name,class:R([`w-full rounded-2xl object-cover shadow-md ring-1 ring-slate-900/5`,t===0&&a.galleryImages.length>1?`sm:col-span-2 aspect-[21/9] max-h-80`:`aspect-[4/3]`]),loading:`lazy`},null,10,YD))),128))])])):I(``,!0)]),y(`section`,XD,[y(`h2`,{class:R([`mb-8 text-center text-xs font-semibold uppercase tracking-[0.22em] text-slate-600 after:mx-auto after:mt-3 after:block after:h-[3px] after:w-9 after:rounded-full after:content-[''] sm:mb-10`,`after:bg-`+i.color+`-600`])},z(a.copy.roomsTitle),3),L(s,{rooms:i.hotel.rooms||[],"booking-url":i.hotel.booking_url,"hotel-id":i.hotel.id,nights:i.hotel.nights||i.nights,color:i.color},null,8,[`rooms`,`booking-url`,`hotel-id`,`nights`,`color`])])])])):(B(),_(`div`,CD,[y(`p`,wD,z(a.copy.notFound),1)]))])}var QD=G(xD,[[`render`,ZD]]);c();var $D={name:`HallOfFameList`,props:{item:{type:Object,required:!0}},data(){return{members:[],loading:!0,error:!1,locale:typeof config<`u`?config.locale:`sv`}},computed:{displayTitle(){var e;let t=(e=this.item)==null?void 0:e.title;return t==null||String(t).trim()===``?null:String(t).trim()},labels(){let e=this.locale===`sv`;return{loading:e?`Laddarâ¦`:`Loadingâ¦`,error:e?`Kunde inte hämta medlemmar.`:`Could not load members.`,empty:e?`Inga medlemmar att visa.`:`No members to display.`,inducted:e?`Invald`:`Inducted`,country:e?`Land`:`Country`,club:e?`Klubb`:`Club`}}},mounted(){let e=this.locale||`sv`;axios.get(`/api/`+e+`/hall-of-fame/members`).then(e=>{this.members=e.data.members||[]}).catch(()=>{this.error=!0}).finally(()=>{this.loading=!1})}},eO={class:`w-full min-w-0`},tO={key:0,class:`mb-8 sm:mb-10`},nO={class:`text-2xl font-bold uppercase tracking-tight text-slate-900 sm:text-3xl`},rO={key:1,class:`space-y-6`,"aria-busy":`true`},iO={key:2,class:`rounded-2xl border border-red-200/90 bg-red-50 p-6 text-center text-sm text-red-800 ring-1 ring-red-500/10`},aO={key:3,class:`rounded-2xl border border-slate-200/90 bg-slate-50 p-8 text-center text-sm text-slate-600 ring-1 ring-slate-900/[0.04]`},oO={key:4,class:`m-0 list-none space-y-6 p-0 sm:space-y-8`,role:`list`},sO={class:`overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-md ring-1 ring-slate-900/[0.04] transition-shadow duration-200 hover:shadow-lg`},cO={key:0,class:`relative shrink-0 overflow-hidden bg-slate-100 md:col-span-2`},lO={class:`aspect-[2/1] w-full md:absolute md:inset-0 md:aspect-auto md:h-full`},uO=[`src`,`alt`],dO={class:`flex flex-wrap items-center gap-2`},fO={class:`inline-flex items-center rounded-full bg-blue-600 px-3 py-1 text-xs font-semibold tracking-wide text-white shadow-sm`},pO={class:`mt-3 text-xl font-bold tracking-tight text-slate-900 sm:text-2xl`},mO={key:0,class:`mt-4 flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:gap-x-8`},hO={key:0,class:`min-w-0`},gO={class:`text-[11px] font-semibold uppercase tracking-[0.14em] text-slate-500`},_O={class:`mt-0.5 text-sm font-medium text-slate-800`},vO={key:1,class:`min-w-0`},yO={class:`text-[11px] font-semibold uppercase tracking-[0.14em] text-slate-500`},bO={class:`mt-0.5 text-sm font-medium text-slate-800`},xO=[`innerHTML`];function SO(e,t,n,r,i,a){return B(),_(`div`,eO,[a.displayTitle?(B(),_(`header`,tO,[y(`h2`,nO,z(a.displayTitle),
721)])):I(``,!0),i.loading?(B(),_(`div`,rO,[(B(),_(O,null,U(3,e=>y(`div`,{key:`skel-`+e,class:`overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-sm ring-1 ring-slate-900/[0.04]`},[...t[0]||(t[0]=[Xe(`<div class="animate-pulse md:grid md:grid-cols-5" data-v-4b0e8d25><div class="aspect-[2/1] bg-slate-200 md:col-span-2 md:min-h-[12rem]" data-v-4b0e8d25></div><div class="space-y-3 p-6 md:col-span-3 md:p-8" data-v-4b0e8d25><div class="h-6 w-24 rounded-full bg-slate-200" data-v-4b0e8d25></div><div class="h-8 w-3/4 max-w-xs rounded-md bg-slate-200" data-v-4b0e8d25></div><div class="h-4 w-full rounded bg-slate-100" data-v-4b0e8d25></div><div class="h-4 w-5/6 rounded bg-slate-100" data-v-4b0e8d25></div></div></div>`,1)])])),64))])):i.error?(B(),_(`div`,iO,z(a.labels.error),1)):i.members.length===0?(B(),_(`div`,aO,z(a.labels.empty),1)):(B(),_(`ul`,oO,[(B(!0),_(O,null,U(i.members,e=>(B(),_(`li`,{key:e.id},[y(`article`,sO,[y(`div`,{class:R([`flex flex-col`,e.photo?`md:grid md:grid-cols-5 md:items-stretch`:``])},[e.photo?(B(),_(`div`,cO,[y(`div`,lO,[y(`img`,{src:e.photo,alt:e.name,class:`h-full w-full object-cover object-center`,loading:`lazy`,decoding:`async`},null,8,uO)])])):I(``,!0),y(`div`,{class:R([`flex min-w-0 flex-1 flex-col p-6 sm:p-8`,e.photo?`md:col-span-3`:``])},[y(`div`,dO,[y(`span`,fO,z(a.labels.inducted)+` `+z(e.inducted_year),1)]),y(`h3`,pO,z(e.name),1),e.country||e.club?(B(),_(`dl`,mO,[e.country?(B(),_(`div`,hO,[y(`dt`,gO,z(a.labels.country),1),y(`dd`,_O,z(e.country),1)])):I(``,!0),e.club?(B(),_(`div`,vO,[y(`dt`,yO,z(a.labels.club),1),y(`dd`,bO,z(e.club),1)])):I(``,!0)])):I(``,!0),e.biography?(B(),_(`div`,{key:1,class:`hof-member-prose prose prose-slate mt-6 max-w-none text-slate-700 prose-headings:font-bold prose-headings:text-slate-900 prose-p:leading-relaxed prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline`,innerHTML:e.biography},null,8,xO)):I(``,!0)],2)],2)])]))),128))]))])}var CO=G($D,[[`render`,SO],[`__scopeId`,`data-v-4b0e8d25`]]);c();var wO={name:`PlateChallengeLeaderboard`,props:{item:{type:Object,required:!0}},data(){return{meta:null,entries:[],loading:!0,entriesLoading:!1,error:!1,activePeriod:`daily`,activeDate:null}},computed:{locale(){var e;return((e=window)==null||(e=e.config)==null?void 0:e.locale)||`sv`},displayTitle(){var e;let t=(e=this.item)==null?void 0:e.title;return t==null||String(t).trim()===``?null:String(t).trim()},displayIntro(){var e;let t=(e=this.item)==null?void 0:e.intro;return t==null||String(t).trim()===``?null:String(t).trim()},labels(){let e=this.locale===`sv`;return{error:e?`Kunde inte hämta leaderboard.`:`Could not load leaderboard.`,noCampaign:e?`Ingen aktiv Plate Challenge-kampanj.`:`No active Plate Challenge campaign.`,empty:e?`Inga resultat att visa ännu.`:`No results to show yet.`,tabs:e?`Leaderboard-flikar`:`Leaderboard tabs`,tournament:e?`Hela tävlingen`:`Full tournament`,school:e?`Skola`:`School`,yesterday:e?`Gårdagens avfall`:`Yesterday's waste`,totalWaste:e?`Totalt avfall`:`Total waste`,improvement:e?`Förbättring`:`Improvement`,perPerson:`g/person`}}},mounted(){this.loadMeta()},methods:{loadMeta(){let e=this.locale;this.loading=!0,this.error=!1,pe.get(`/api/`+e+`/plate-challenge/meta`).then(e=>{var t,n,r;this.meta=e.data;let i=((t=this.meta)==null?void 0:t.default_date)||((n=this.meta)==null||(n=n.dates)==null?void 0:n[0])||null;((r=this.item)==null?void 0:r.defaultTab)===`tournament`?(this.activePeriod=`tournament`,this.activeDate=i):(this.activePeriod=`daily`,this.activeDate=i),this.activeDate&&this.loadLeaderboard()}).catch(()=>{this.error=!0}).finally(()=>{this.loading=!1})},loadLeaderboard(){if(!this.activeDate)return;let e=this.locale;this.entriesLoading=!0,pe.get(`/api/`+e+`/plate-challenge/leaderboard`,{params:{period:this.activePeriod,date:this.activeDate}}).then(e=>{this.entries=e.data.entries||[]}).catch(()=>{this.error=!0}).finally(()=>{this.entriesLoading=!1})},selectDaily(e){this.activePeriod=`daily`,this.activeDate=e,this.loadLeaderboard()},selectTournament(){var e,t;this.activePeriod=`tournament`,this.activeDate=((e=this.meta)==null?void 0:e.default_date)||((t=this.meta)==null||(t=t.dates)==null?void 0:t.slice(-1)[0])||this.activeDate,this.loadLeaderboard()},tabClass(e,t){return(e===`tournament`?this.activePeriod===`tournament`:this.activePeriod===`daily`&&this.activeDate===t)?`bg-celebrate-green text-white shadow-sm`:`bg-slate-100 text-slate-700 hover:bg-slate-200`}
72,rankClass(e){return e===1?`bg-celebrate-orange text-slate-900`:e===2?`bg-slate-200 text-slate-800`:e===3?`bg-celebrate-blue/20 text-celebrate-blue`:`bg-slate-100 text-slate-700`},improvementClass(e){return e==null?`text-slate-400`:e<0?`text-emerald-700`:e>0?`text-red-600`:`text-slate-600`},formatDayLabel(e){try{return new Intl.DateTimeFormat(this.locale===`sv`?`sv-SE`:`en-GB`,{weekday:`short`,day:`numeric`,month:`short`}).format(new Date(e+`T12:00:00`))}catch{return e}},formatKg(e){return e==null?`â`:Number(e).toLocaleString(this.locale===`sv`?`sv-SE`:`en-GB`,{maximumFractionDigits:1})+` kg`},formatGrams(e){return e==null?`â`:e+` g`},formatImprovement(e){return e==null?`â`:(e>0?`+`:``)+e+` g`}}},TO={class:`w-full min-w-0`},EO={key:0,class:`mb-6 sm:mb-8`},DO={class:`text-2xl font-bold uppercase tracking-tight text-slate-900 sm:text-3xl`},OO={key:0,class:`mt-3 max-w-3xl text-base leading-relaxed text-slate-600`},kO={key:1,class:`space-y-4`,"aria-busy":`true`},AO={key:2,class:`rounded-2xl border border-red-200/90 bg-red-50 p-6 text-center text-sm text-red-800`},jO={key:3,class:`rounded-2xl border border-slate-200/90 bg-slate-50 p-8 text-center text-sm text-slate-600`},MO={class:`mb-6 overflow-x-auto pb-1`},NO=[`aria-label`],PO=[`aria-selected`,`onClick`],FO=[`aria-selected`],IO={key:0,class:`h-48 animate-pulse rounded-2xl bg-slate-200`,"aria-busy":`true`},LO={key:1,class:`rounded-2xl border border-slate-200/90 bg-slate-50 p-8 text-center text-sm text-slate-600`},RO={key:2,class:`overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-md ring-1 ring-slate-900/[0.04]`},zO={class:`overflow-x-auto`},BO={class:`w-full min-w-[40rem] text-left text-sm`},VO={class:`bg-celebrate-green/10 text-xs uppercase tracking-wide text-slate-700`},HO={class:`px-4 py-3 font-semibold`},UO={class:`px-4 py-3 font-semibold text-right`},WO={class:`px-4 py-3 font-semibold text-right`},GO={class:`px-4 py-3 font-semibold text-right`},KO={class:`px-4 py-3 font-semibold text-right`},qO={class:`px-4 py-3`},JO={key:1,class:`text-slate-400`},YO={class:`px-4 py-3 font-semibold text-slate-900`},XO={class:`px-4 py-3 text-right text-slate-600`},ZO={class:`px-4 py-3 text-right text-slate-600`},QO={class:`px-4 py-3 text-right font-bold text-celebrate-green`};function $O(e,t,n,r,i,a){return B(),_(`div`,TO,[a.displayTitle?(B(),_(`header`,EO,[y(`h2`,DO,z(a.displayTitle),1),a.displayIntro?(B(),_(`p`,OO,z(a.displayIntro),1)):I(``,!0)])):I(``,!0),i.loading?(B(),_(`div`,kO,[...t[1]||(t[1]=[y(`div`,{class:`h-10 w-full max-w-xl animate-pulse rounded-full bg-slate-200`},null,-1),y(`div`,{class:`h-64 animate-pulse rounded-2xl bg-slate-200`},null,-1)])])):i.error?(B(),_(`div`,AO,z(a.labels.error),1)):!i.meta||!i.meta.campaign?(B(),_(`div`,jO,z(a.labels.noCampaign),1)):(B(),_(O,{key:4},[y(`div`,MO,[y(`div`,{class:`flex min-w-max gap-2`,role:`tablist`,"aria-label":a.labels.tabs},[(B(!0),_(O,null,U(i.meta.dates,e=>(B(),_(`button`,{key:`day-`+e,type:`button`,role:`tab`,class:R([`rounded-full px-4 py-2 text-sm font-semibold transition`,a.tabClass(`daily`,e)]),"aria-selected":i.activePeriod===`daily`&&i.activeDate===e,onClick:t=>a.selectDaily(e)},z(a.formatDayLabel(e)),11,PO))),128)),y(`button`,{type:`button`,role:`tab`,class:R([`rounded-full px-4 py-2 text-sm font-semibold transition`,a.tabClass(`tournament`,i.activeDate)]),"aria-selected":i.activePeriod===`tournament`,onClick:t[0]||(t[0]=(...e)=>a.selectTournament&&a.selectTournament(...e))},z(a.labels.tournament),11,FO)],8,NO)]),i.entriesLoading?(B(),_(`div`,IO)):i.entries.length===0?(B(),_(`div`,LO,z(a.labels.empty),1)):(B(),_(`div`,RO,[y(`div`,zO,[y(`table`,BO,[y(`thead`,VO,[y(`tr`,null,[t[2]||(t[2]=y(`th`,{class:`px-4 py-3 font-semibold`},` # `,-1)),y(`th`,HO,z(a.labels.school),1),y(`th`,UO,z(a.labels.yesterday),1),y(`th`,WO,z(a.labels.totalWaste),1),y(`th`,GO,z(a.labels.improvement),1),y(`th`,KO,z(a.labels.perPerson),1)])]),y(`tbody`,null,[(B(!0),_(O,null,U(i.entries,e=>(B(),_(`tr`,{key:e.school_id,class:`border-t border-slate-100`},[y(`td`,qO,[e.rank?(B(),_(`span`,{key:0,class:R([`inline-flex min-w-[2rem] items-center justify-center rounded-full px-2 py-0.5 text-xs font-bold`,a.rankClass(e.rank)])},z(e.rank),3)):(B(),_(`span`,JO,`â`))]),y(`td`,YO,z(e.name),1),y(`td`,XO,z(a.formatKg(e.yesterday_waste_kg)),1),y(`td`,ZO,z(a.formatKg(e.total_waste_kg)),1),y(`td`,{class:R([`px-4 py-3 text-right`,a.improvementClass(e.improvement_grams)])},z(a.formatImprovement(e.improvement_grams)),3),y(`td`,QO,z(a.formatGrams(e.grams_per_person)),1)]))),128))])])])]))],64))])}var ek=G(wO,[[`render`,$O]]);c();var tk={name:`PrepopulateField`,props:{modelValue:{type:String,default:``},test:{type:String,default:``}},emits:[`update:modelValue`],mounted(){this.syncToFormData()},watch:{test(){this.syncToFormData()},modelValue(){this.syncToFormData()}},methods:{syncToFormData(){let e=this.test!=null&&String(this.test).trim()!==``?String(this.test).trim():``,t=this.modelValue!=null&&String(this.modelValue).trim()!==``?String(this.modelValue).trim():``,n=e||t;n!==``&&n!==t&&this.$emit(`update:modelValue`,n)}}},nk={class:`hidden`,"aria-hidden":`true`};function rk(e,t,n,r,i,a){return B(),_(`span`,nk)}var ik=G(tk,[[`render`,rk]]);c();var ak={name:`FormUploadField`,props:{name:{type:String,required:!0},modelValue:{type:String,default:``}},emits:[`update:modelValue`],data(){return{hash:null,path:this.modelValue||null,filename:null,error:null,uploading:!1}},watch:{modelValue(e){e!==this.path&&(this.path=e||null)}},methods:{syncModel(){this.$emit(`update:modelValue`,this.path||``)},resetFileInput(){let e=this.$refs.fileInput;e&&(e.value=``)},async removeFile(){if(!this.hash){this.path=null,this.filename=null,this.syncModel(),this.resetFileInput();return}try{await axios.delete(`/api/v1/attachments/`+encodeURIComponent(this.hash)),this.hash=null,this.path=null,this.filename=null,this.syncModel(),this.resetFileInput()}catch(e){console.error(`Remove failed:`,e),this.error=`Kunde inte ta bort filen`}},async uploadFile(e){var t;let n=(t=e.target.files)==null?void 0:t[0];if(!n)return;this.error=null,this.uploading=!0;let r=new FormData;r.append(`file`,n);try{let e=await axios.post(`/api/v1/attachments`,r,{headers:{"Content-Type":`multipart/form-data`}});this.hash=e.data.hash,this.path=e.data.path,this.filename=e.data.filename,this.syncModel()}catch(e){var i,a;this.error=((i=e.response)==null||(i=i.data)==null||(i=i.errors)==null||(i=i.file)==null?void 0:i[0])??((a=e.response)==null||(a=a.data)==null?void 0:a.message)??`Uppladdningen misslyckades`,this.resetFileInput()}finally{this.uploading=!1}}}},ok={class:`mt-2 flex justify-start rounded-lg border border-gray-300 p-3`},sk={class:`flex w-full items-center justify-between text-sm text-gray-600`},ck={class:`flex items-center gap-2`},lk={key:0,class:`relative cursor-pointer rounded-md bg-white font-semibold text-blue-600 hover:text-blue-400`},uk=[`disabled`],dk={key:1,class:`relative rounded-md bg-white font-semibold text-blue-600`},fk={key:0},pk=[`disabled`],mk=[`id`,`name`,`value`],hk={key:0,class:`mt-1 text-sm text-red-600`};function gk(e,t,n,r,i,a){return B(),_(`div`,null,[y(`div`,ok,[y(`div`,sk,[y(`div`,ck,[t[2]||(t[2]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:`currentColor`,class:`h-5 w-5 text-gray-400`,"aria-hidden":`true`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12-3-3m0 0-3 3m3-3v6m-1.5-15H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z`})],-1)),i.path?(B(),_(`span`,dk,z(i.filename),1)):(B(),_(`label`,lk,[y(`span`,null,z(i.uploading?`Laddar uppâ¦`:`Välj filâ¦`),1),y(`input`,{ref:`fileInput`,type:`file`,class:`sr-only`,disabled:i.uploading,onChange:t[0]||(t[0]=(...e)=>a.uploadFile&&a.uploadFile(...e))},null,40,uk)]))]),i.path?(B(),_(`div`,fk,[y(`button`,{type:`button`,class:`flex justify-center text-red-600 hover:text-red-500`,disabled:i.uploading,"aria-label":`Ta bort fil`,onClick:t[1]||(t[1]=(...e)=>a.removeFile&&a.removeFile(...e))},[...t[3]||(t[3]=[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,class:`h-5 w-5`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z`,"clip-rule":`evenodd`})],-1)])],8,pk)])):I(``,!0)]),y(`input`,{type:`hidden`,id:n.name,name:n.name,value:i.path},null,8,mk)]),i.error?(B(),_(`p`,hk,z(i.error),1)):I(``,!0)])}var _k=G(ak,[[`render`,gk]]);c();
72var vk={name:`SliderStatsStrip`,components:{LiveCountdown:Y_},props:{metrics:{type:Array,default:()=>[]},countdownAt:{type:String,default:null},countdownLabel:{type:String,default:``},countdownEndedLabel:{type:String,default:``},countdownStyle:{type:String,default:`boxes`},countdownPalette:{type:String,default:`default`},placement:{type:String,default:`bottom`},compact:{type:Boolean,default:!1},liftForScrollHint:{type:Boolean,default:!1},contentLeft:{type:Boolean,default:!1},locale:{type:String,default:`sv`}},computed:{isSide(){return this.placement===`left`||this.placement===`right`},isBelowCta(){return this.placement===`belowCta`},hasMetrics(){return Array.isArray(this.metrics)&&this.metrics.length>0},hasCountdown(){if(!this.countdownAt)return!1;let e=String(this.countdownAt).trim();return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e)&&(e+=`:00`),Number.isFinite(Date.parse(e))},showCountdownBlock(){return this.hasCountdown},hasContent(){return this.hasMetrics||this.showCountdownBlock},ariaLabel(){let e=[];return this.hasMetrics&&e.push(`Statistics`),this.showCountdownBlock&&e.push(`Countdown`),e.join(` and `)||`Stats`},styleKey(){return ke(this.countdownStyle)},paletteKey(){return Qe(this.countdownPalette)},countdownSize(){return this.isBelowCta?`md`:this.compact||this.isSide?`sm`:`md`},countdownAlign(){return this.isBelowCta?this.contentLeft?`left`:`center`:`left`},bottomOffsetClass(){return this.liftForScrollHint?this.compact?`bottom-14 sm:bottom-16`:`bottom-16 sm:bottom-20`:(this.compact,`bottom-3 sm:bottom-4 lg:bottom-6`)},rootClass(){if(this.isBelowCta)return[`relative mt-8 w-full pt-2 sm:mt-10 sm:pt-3`,this.contentLeft?``:`flex justify-center`];let e=`absolute`;return this.placement===`top`?this.compact?[e,`left-1/2 top-3 w-auto max-w-[calc(100%-1.5rem)] -translate-x-1/2 sm:top-4 lg:top-6`]:[e,`inset-x-3 top-3 sm:inset-x-5 sm:top-4 lg:inset-x-8 lg:top-6`]:this.placement===`left`?[e,`inset-x-3 bottom-3 sm:inset-x-5 md:inset-x-auto md:bottom-auto md:left-4 md:top-1/2 md:w-auto md:max-w-[min(18rem,48vw)] md:-translate-y-1/2 lg:left-8`]:this.placement===`right`?[e,`inset-x-3 bottom-3 sm:inset-x-5 md:inset-x-auto md:bottom-auto md:right-4 md:top-1/2 md:w-auto md:max-w-[min(18rem,48vw)] md:-translate-y-1/2 lg:right-8`]:this.compact?[e,`left-1/2 w-auto max-w-[calc(100%-1.5rem)] -translate-x-1/2`,this.bottomOffsetClass]:[e,`inset-x-3 sm:inset-x-5 lg:inset-x-8`,this.bottomOffsetClass]},panelClass(){if(this.isBelowCta)return[`w-full max-w-xl px-1 py-2 sm:px-2 sm:py-2.5`,this.contentLeft?``:`mx-auto`];let e=`rounded-2xl border border-white/15 bg-slate-950/70 shadow-xl shadow-black/30 backdrop-blur-md`;return this.isSide?[e,`flex w-auto flex-col gap-4 p-3.5 sm:p-4`,`md:gap-5`]:this.compact?[e,`inline-flex w-auto max-w-full flex-col items-stretch gap-2.5 p-2.5 sm:flex-row sm:items-center sm:gap-3 sm:p-3`]:[e,`flex w-full flex-col gap-3 p-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4 sm:p-3.5 lg:p-4`]},metricsListClass(){return this.isBelowCta?this.contentLeft?`flex min-w-0 flex-wrap items-center gap-x-4 gap-y-2`:`flex min-w-0 flex-wrap items-center justify-center gap-x-4 gap-y-2`:this.isSide?`flex flex-col gap-3`:this.compact?`flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5`:`flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-2 sm:gap-x-5`},metricItemClass(){return this.isSide?`flex items-center gap-2.5`:`flex min-w-0 items-center gap-2`},valueClass(){return this.isSide||this.compact,`text-base font-semibold tabular-nums leading-tight text-white drop-shadow-sm sm:text-lg`},labelClass(){return`truncate text-[10px] font-medium uppercase tracking-wide text-white/60 sm:text-[11px]`},countdownWrapClass(){return this.isBelowCta?this.hasMetrics?`mt-3 border-t border-white/15 pt-3`:`shrink-0`:this.isSide?`border-t border-white/10 pt-3`:this.hasMetrics?`shrink-0 border-t border-white/10 pt-3 sm:border-l sm:border-t-0 sm:pl-4 sm:pt-0`:`shrink-0`}}},yk=[`aria-label`],bk={key:0,class:`flex shrink-0 items-center justify-center text-cyan-300/90`,"aria-hidden":`true`},xk={class:`min-w-0`};function Sk(e,t,n,r,i,a){let o=V(`icon`),s=V(`LiveCountdown`);return a.hasContent?(B(),_(`div`,{key:0,class:R([`slider-stats-strip pointer-events-auto z-30`,a.rootClass]),role:`group`,"aria-label":a.ariaLabel},[y(`div`,{class:R(a.panelClass)},[n.metrics.length?(B(),_(`ul`,{key:0,role:`list`,class:R(a.metricsListClass)}
72,[(B(!0),_(O,null,U(n.metrics,(e,t)=>(B(),_(`li`,{key:e.id==null?t:e.id,class:R(a.metricItemClass)},[e.icon?(B(),_(`div`,bk,[L(o,{icon:e.icon,size:a.isSide?5:4},null,8,[`icon`,`size`])])):I(``,!0),y(`div`,xk,[y(`p`,{class:R(a.valueClass)},z(e.value),3),e.label?(B(),_(`p`,{key:0,class:R(a.labelClass)},z(e.label),3)):I(``,!0)])],2))),128))],2)):I(``,!0),a.showCountdownBlock?(B(),_(`div`,{key:1,class:R(a.countdownWrapClass)},[L(s,{"countdown-at":n.countdownAt,label:n.countdownLabel,"ended-label":n.countdownEndedLabel,variant:`hero`,size:a.countdownSize,"display-style":a.styleKey,palette:a.paletteKey,locale:n.locale,align:a.countdownAlign},null,8,[`countdown-at`,`label`,`ended-label`,`size`,`display-style`,`palette`,`locale`,`align`])],2)):I(``,!0)],2)],10,yk)):I(``,!0)}var Ck=G(vk,[[`render`,Sk]]);c();var wk={components:{SliderStatsStrip:Ck},props:[`item`],data(){return{height:``,mainSwiper:null,activeSlideIndex:0}},computed:{visibleSlides(){return(this.item&&this.item.slides?this.item.slides:[]).filter(e=>!e.hidden)},activeSlideStatsStrip(){let e=this.visibleSlides[this.activeSlideIndex];return Ee(this.item,e)},documentLocale(){var e;return typeof document<`u`&&(e=document.documentElement)!=null&&e.lang?document.documentElement.lang:`sv`},stripsBySlideId(){let e={};return this.visibleSlides.forEach(t=>{e[t.id]=Ee(this.item,t)}),e},highlightAsideClass(){let e=this.activeSlideStatsStrip;return[`slider-hero-highlight-aside pointer-events-auto absolute right-4 z-20 hidden max-w-[11rem] overflow-hidden rounded-xl border border-white/15 bg-slate-950/80 shadow-xl backdrop-blur-md transition hover:border-amber-400/40 sm:right-8 md:flex`,e&&(e.placement===`bottom`||e.placement===`right`)?`bottom-36 lg:bottom-40`:`bottom-20 lg:bottom-24`]},autoplayProgressClass(){let e=this.activeSlideStatsStrip;return[`autoplay-progress pointer-events-none absolute right-4 z-20 hidden opacity-90 md:flex`,e&&(e.placement===`bottom`||e.placement===`right`)?`bottom-28`:`bottom-6`]},itemClass(){let e=this.item&&this.item.class;return typeof e==`string`&&e.trim()?e.trim():``},isLeft(){return this.item&&this.item.align===`left`},showAutoplayProgress(){return!this.item||!this.item.animate||this.visibleSlides.length<=1?!1:this.item.showAutoplayProgress!==!1},isFullBleed(){return!!(this.item&&this.item.fullBleed)},hasSliderHeight(){let e=this.item&&this.item.height;return typeof e==`string`&&e.trim()!==``},usesJsViewportHeight(){var e;return Ya((e=this.item)==null?void 0:e.height)},usesCssViewportHeight(){var e;return Ja((e=this.item)==null?void 0:e.height)},shellHeightClass(){return this.hasSliderHeight?this.usesJsViewportHeight?`min-h-0 overflow-hidden`:(this.usesCssViewportHeight,`${this.item.height} min-h-0 overflow-hidden`):`h-auto`},shellHeightStyle(){return this.usesJsViewportHeight&&this.height?{height:`${this.height}px`}:null},slideHeightClass(){return this.hasSliderHeight?`!h-full`:`h-auto`},swiperWrapperClass(){return this.hasSliderHeight?`h-full min-h-0`:`h-auto`},swiperHeightClass(){return this.hasSliderHeight?`h-full min-h-0`:``},swiperHeightStyle(){return null},innerWrapClass(){let e=this.hasSliderHeight?`h-full min-h-0`:``;return this.isFullBleed?[e,`pb-0 pt-0`].filter(Boolean).join(` `):[e,`pb-10 pt-1 sm:pb-12 sm:pt-2`].filter(Boolean).join(` `)},navWrapClass(){return this.isFullBleed?[`pointer-events-none absolute inset-x-0 z-30 mx-auto max-w-7xl gap-3 px-4`,this.item.scrollHint?`bottom-14 sm:bottom-16`:`bottom-5 sm:bottom-6`]:`mx-auto mt-4 max-w-7xl gap-4 px-2 sm:mt-6`},slidePaddingClass(){return this.isFullBleed?``:`px-3 py-2 sm:px-4 sm:py-3 md:px-5`},slideRounded(){return!(this.isLeft&&this.item.fullBleed)},slideShellClass(){return this.isLeft&&this.item.fullBleed?``:`rounded-2xl ring-1 ring-white/10 max-lg:shadow-[0_24px_70px_-28px_rgba(15,23,42,0.88),0_0_0_1px_rgba(255,255,255,0.05)] sm:rounded-[1.75rem] lg:shadow-[0_28px_90px_-28px_rgba(15,23,42,0.95),0_0_0_1px_rgba(255,255,255,0.06),0_0_80px_-20px_rgba(34,211,238,0.12)]`},contentWrapClass(){return this.isLeft?`slider-hero-content flex w-full max-w-2xl flex-col items-start text-left`:`slider-hero-content mx-auto flex w-full max-w-4xl flex-col items-center text-center max-lg:px-0 max-lg:py-0 lg:rounded-3xl lg:border lg:border-white/10 lg:bg-slate-950/35 lg:px-8 lg:py-9 lg:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.06)] lg:backdrop-blur-md`},titleClass(){return this.isLeft?`text-balance text-3xl font-black uppercase tracking-tight text-white drop-shadow-md sm:text-4xl md:text-5xl lg:text-6xl lg:leading-[1.05]`:`text-balance bg-gradient-to-br from-white via-white to-cyan-200/90 bg-clip-text text-3xl font-black tracking-tighter text-transparent drop-shadow-sm md:text-5xl lg:text-6xl lg:tracking-tight`},subtitleClass(){return this.isLeft?`mt-3 max-w-xl text-base font-medium leading-relaxed text-slate-200 sm:text-lg`:`mt-2 text-balance bg-gradient-to-r from-amber-200 via-orange-300 to-rose-300 bg-clip-text text-2xl font-bold tracking-tight text-transparent md:text-4xl lg:text-5xl`},proseClass(){return this.isLeft?`prose prose-invert prose-sm mt-5 max-w-xl text-left text-base leading-relaxed text-slate-300 prose-p:mb-2 prose-p:last:mb-0 md:prose-base`:`prose prose-invert prose-sm mx-auto mt-4 max-w-2xl text-center text-base leading-relaxed text-white/85 prose-p:mb-2 prose-p:last:mb-0 md:prose-base [&_a]:font-semibold [&_a]:text-cyan-300 [&_a]:no-underline [&_a]:underline-offset-4 hover:[&_a]:text-cyan-200 hover:[&_a]:underline`},ctaRowClass(){return this.isLeft?`mt-8 mb-1 flex w-full flex-col items-start gap-3 sm:mt-10 sm:flex-row sm:flex-wrap sm:items-center sm:justify-start`:`mt-7 mb-1 flex w-full flex-col items-stretch justify-center gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-center`},showHighlightAside(){return this.item&&this.item.showHighlightAside},highlightTitle(){return this.item&&this.item.highlightTitle||`Play highlights`},highlightDuration(){return this.item&&this.item.highlightDuration},highlightUrl(){return this.item&&this.item.highlightUrl},highlightImg(){return this.item&&this.item.highlightImg},activeSlideHighlight(){if(!this.isLeft)return null;let e=this.visibleSlides[this.activeSlideIndex];return!e||!this.slideHighlightEnabled(e)?null:{url:this.resolveHighlightUrl(e),title:this.resolveHighlightTitle(e),subtitle:this.resolveHighlightSubtitle(e),img:this.resolveHighlightImg(e),icon:this.resolveHighlightIcon(e)}},slideMediaClass(){return this.hasSliderHeight?`h-full min-h-0`:this.isLeft?`min-h-[20rem] sm:min-h-[22rem] lg:min-h-[24rem]`:`min-h-[18rem] sm:min-h-[20rem]`}
72,contentPadClass(){let e=this.isLeft?`justify-center max-w-7xl`:`justify-end max-w-7xl`;return this.isFullBleed?`${e} px-6 pb-12 pt-16 sm:px-8 sm:pb-14 sm:pt-20 lg:px-10 lg:pb-16 lg:pt-24`:`${e} px-4 pb-6 pt-10 sm:px-6 sm:pb-8 sm:pt-14 lg:px-10 lg:pb-12 lg:pt-20`},scrollHintClass(){let e=`pointer-events-none absolute left-1/2 z-20 flex -translate-x-1/2 flex-col items-center gap-1 text-[10px] font-semibold uppercase tracking-[0.2em] text-white/60`,t=this.activeSlideStatsStrip,n=this.item.scrollHintPosition===`below`;return t&&t.placement===`bottom`&&!n?t.compact?`${e} bottom-24 sm:bottom-28`:`${e} bottom-32 sm:bottom-36 lg:bottom-40`:`${e} bottom-4 sm:bottom-5`}},watch:{"item.slides":{deep:!0,handler(){this.$nextTick(()=>this.reloadSwipe())}},"item.animate"(){this.$nextTick(()=>this.reloadSwipe())},"item.height"(){this.$nextTick(()=>this.reloadSwipe())},"item.align"(){this.$nextTick(()=>this.reloadSwipe())},"item.fullBleed"(){this.$nextTick(()=>this.reloadSwipe())},height(){this.$nextTick(()=>this.reloadSwipe())},activeSlideIndex(){this.$nextTick(()=>this.syncSlideVideos())}},mounted(){let e=this.$el&&this.$el.ownerDocument,t=e&&e.defaultView;t&&this.usesJsViewportHeight&&(this._unbindViewportHeight=Za(e=>{this.height=e},t)),this.$nextTick(()=>{this.observeLozad(),this.loadSwipe(0)})},beforeUnmount(){var e;if((e=this._unbindViewportHeight)==null||e.call(this),this._unbindViewportHeight=null,this.pauseAllSlideVideos(),this.mainSwiper&&typeof this.mainSwiper.destroy==`function`){try{this.mainSwiper.destroy(!0,!0)}catch{}this.mainSwiper=null}},methods:{shouldLiftStripForScrollHint(e){var t;return!!((t=this.item)!=null&&t.scrollHint&&this.item.scrollHintPosition===`below`&&e&&e.placement===`bottom`)},isBelowCtaStrip(e){return!!(e&&e.placement===`belowCta`)},isOverlayStrip(e){return!!(e&&e.placement!==`belowCta`)},slideBgVideo(e){let t=e&&e.bgvideo;return typeof t==`string`&&t.trim()?t.trim():null},slideBackgroundStyle(e){return e&&e.img?{backgroundImage:`url(${e.img})`}:{}},pauseAllSlideVideos(){let e=this.$el;e&&e.querySelectorAll(`.slider-hero-slide-video`).forEach(e=>{e.pause();try{e.currentTime=0}catch{}})},syncSlideVideos(){let e=this.$el;if(!e)return;let t=e.querySelector(`.swiper-slide-active .slider-hero-slide-video`);e.querySelectorAll(`.slider-hero-slide-video`).forEach(e=>{if(e===t)e.play().catch(()=>{});else{e.pause();try{e.currentTime=0}catch{}}})},syncActiveSlideIndex(){if(!this.mainSwiper){this.activeSlideIndex=0;return}let e=typeof this.mainSwiper.realIndex==`number`?this.mainSwiper.realIndex:this.mainSwiper.activeIndex,t=Math.max(0,this.visibleSlides.length-1);this.activeSlideIndex=Math.min(Math.max(0,e),t)},slideHighlightEnabled(e){return e&&e.showHighlightAside===!1?!1:e&&e.showHighlightAside===!0?!0:this.showHighlightAside},slideHighlightTitle(e){return this.resolveHighlightTitle(e)},slideHighlightDuration(e){return this.resolveHighlightSubtitle(e)},slideHighlightUrl(e){return this.resolveHighlightUrl(e)},firstNonEmptyString(...e){for(let t of e)if(typeof t==`string`&&t.trim())return t.trim();return null},resolveHighlightTitle(e){return this.firstNonEmptyString(e&&e.highlightTitle,this.item&&this.item.highlightTitle,e&&e.title,e&&e.content)||`Play highlights`},resolveHighlightSubtitle(e){return this.firstNonEmptyString(e&&e.highlightDuration,this.item&&this.item.highlightDuration,e&&e.secondTitle)},resolveHighlightUrl(e){return this.firstNonEmptyString(e&&e.highlightUrl,this.item&&this.item.highlightUrl,e&&e.url)},hasOwnHighlightIcon(e){return e&&Object.prototype.hasOwnProperty.call(e,`highlightIcon`)},normalizeHighlightIcon(e){return e===null||e===``?null:typeof e==`string`&&e.trim()?e.trim():null},resolveHighlightIcon(e){return this.hasOwnHighlightIcon(e)?this.normalizeHighlightIcon(e.highlightIcon):this.normalizeHighlightIcon(this.item&&this.item.highlightIcon)??`play`},slideHighlightImg(e){return this.resolveHighlightImg(e)},resolveHighlightImg(e){return(e&&typeof e.highlightImg==`string`?e.highlightImg.trim():``)||(this.item&&typeof this.item.highlightImg==`string`?this.item.highlightImg.trim():``)||null},isCtaRounded(e){var t;return e&&typeof e.ctaRounded==`boolean`?e.ctaRounded:((t=this.item)==null?void 0:t.ctaRounded)!==!1},ctaRadiusClass(e){return this.isCtaRounded(e)?`rounded-xl`:`rounded-none`},outlineBtnClass(e){return[`inline-flex items-center justify-center gap-2 border border-white/30 bg-transparent px-6 py-3 text-sm font-semibold text-white transition hover:border-white/50 hover:bg-white/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white md:text-base`,this.ctaRadiusClass(e)].join(` `)},primaryBtnClass(e){let t=e.primaryCtaStyle||this.item&&this.item.primaryCtaStyle||`cyan`,n=[`group inline-flex items-center justify-center gap-2 px-7 py-3.5 text-sm font-bold transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 active:scale-[0.98] md:text-base`,this.ctaRadiusClass(e)].join(` `);return t===`amber`?`${n} bg-amber-400 text-slate-950 shadow-lg shadow-amber-500/25 hover:bg-amber-300 focus-visible:outline-amber-300`:`${n} bg-gradient-to-r from-cyan-400 via-sky-400 to-blue-600 text-slate-950 shadow-[0_12px_40px_-12px_rgba(34,211,238,0.55)] ring-1 ring-white/25 hover:brightness-110 hover:shadow-[0_16px_48px_-10px_rgba(56,189,248,0.5)] focus-visible:outline-cyan-200`},observeLozad(){let e=this.$el?this.$el.querySelectorAll(`.lozad`):[];if(e.length)try{(0,Ga.default)(e,{loaded(e){e.classList.remove(`load`),e.classList.add(`fade`)}}).observe()}catch{}},reloadSwipe(){if(this.mainSwiper&&typeof this.mainSwiper.destroy==`function`){try{this.mainSwiper.destroy(!0,!0)}catch{}this.mainSwiper=null}this.loadSwipe(0)},resolveSwiperCtor(){if(typeof window<`u`&&window.Swiper)return window.Swiper;try{if(typeof window<`u`&&window.parent&&window.parent!==window&&window.parent.Swiper)return window.parent.Swiper}catch{}},loadSwipe(e){let t=typeof e==`number`?e:0;setTimeout(()=>{let e=this.$el;if(!e||typeof e.querySelector!=`function`)return;let n=e.querySelector(`.slide-swiper`),r=this.resolveSwiperCtor();if(!r){t<45&&this.loadSwipe(t+1);return}if(!n||!this.visibleSlides.length)return;if(this.mainSwiper&&typeof this.mainSwiper.destroy==`function`){try{this.mainSwiper.destroy(!0,!0)}catch{}this.mainSwiper=null}let i=e.querySelector(`.autoplay-progress`),a=i?i.querySelector(`svg`):null,o=i?i.querySelector(`span`):null,s={autoplay:!1,grabCursor:!0,slidesPerView:1,centeredSlides:!this.isFullBleed,loop:this.visibleSlides.length>1,spaceBetween:this.isFullBleed?0:12,speed:600,autoHeight:!this.hasSliderHeight};this.isFullBleed||(s.breakpoints={640:{slidesPerView:1.08,spaceBetween:16},1024:{slidesPerView:1.08,spaceBetween:20}});let c=e.querySelector(`.swiper-button-next-slider-hero`),l=e.querySelector(`.swiper-button-prev-slider-hero`),u=e.querySelector(`.slider-hero-pagination`);c&&l&&this.item.showNav&&(s.navigation={nextEl:c,prevEl:l}),u&&this.item.showNav&&(s.pagination={el:u,clickable:!0,dynamicBullets:!1}),this.item.animate&&a&&o&&this.visibleSlides.length>1&&(s.autoplay={delay:5e3,disableOnInteraction:!0},s.on={autoplayTimeLeft(e,t,n){a.style.setProperty(`--progress`,1-n),o.textContent=`${Math.ceil(t/1e3)}s`}});try{this.mainSwiper=new r(n,s),this.syncActiveSlideIndex(),typeof this.mainSwiper.on==`function`&&(this.mainSwiper.on(`slideChange`,()=>{this.syncActiveSlideIndex(),this.syncSlideVideos()}),this.mainSwiper.on(`slideChangeTransitionEnd`,()=>{this.syncSlideVideos()})),this.$nextTick(()=>this.syncSlideVideos())}catch(e){console.warn(`Custom slider Swiper init failed`,e)}},t===0?80:50)}}},Tk=[`src`,`poster`],Ek=[`src`],Dk=[`innerHTML`],Ok=[`href`],kk={class:`relative`},Ak=[`href`],jk=[`href`],Mk=[`href`],Nk={key:0,class:`relative aspect-video w-full shrink-0 overflow-hidden bg-slate-900`},Pk=[`src`,`alt`],Fk={class:`absolute inset-x-0 bottom-0 bg-gradient-to-t from-slate-950 via-slate-950/85 to-transparent px-3 pb-2.5 pt-10`},Ik={class:`flex items-center gap-2`}
72,Lk={key:0,class:`flex size-7 shrink-0 items-center justify-center rounded-full bg-amber-400 text-slate-950`},Rk={class:`min-w-0 truncate text-xs font-bold uppercase tracking-wide text-white`},zk={key:1,class:`flex items-center gap-2 px-3 py-2.5`},Bk={key:0,class:`flex size-8 shrink-0 items-center justify-center rounded-full bg-amber-400 text-slate-950`},Vk={class:`min-w-0 text-left`},Hk={class:`truncate text-xs font-bold uppercase tracking-wide text-white`},Uk={key:0,class:`text-[10px] text-slate-400`};function Wk(e,n,r,i,a,o){let s=V(`icon`),c=V(`slider-stats-strip`);return B(),_(`div`,{class:R([`slider-hero-component w-full max-w-full min-w-0`,[o.itemClass,o.shellHeightClass,o.isFullBleed?`slider-hero-component--full-bleed`:``,o.hasSliderHeight?`slider-hero-component--fixed-height`:``]]),style:t(o.shellHeightStyle)},[y(`div`,{class:R([`relative w-full min-w-0 max-w-full overflow-x-clip overflow-y-visible`,o.innerWrapClass])},[y(`div`,{class:R([`slide-swiper swipers relative`,o.swiperHeightClass]),style:t(o.swiperHeightStyle)},[y(`div`,{class:R([`swiper-wrapper`,o.swiperWrapperClass])},[(B(!0),_(O,null,U(o.visibleSlides,e=>(B(),_(`div`,{key:e.id,class:R([`swiper-slide !flex items-stretch`,o.slideHeightClass])},[y(`div`,{class:R([`slider-hero-slide flex min-h-0 w-full flex-1 flex-col overflow-hidden`,[o.slideShellClass,o.slideRounded?`slider-hero-slide--rounded`:``,o.slidePaddingClass,o.isFullBleed?`h-full`:``]])},[y(`div`,{class:R([`slider-hero-slide-media relative flex w-full flex-1 flex-col overflow-hidden bg-slate-950 bg-cover bg-center bg-no-repeat`,o.slideMediaClass]),style:t(o.slideBackgroundStyle(e))},[o.slideBgVideo(e)?(B(),_(`video`,{key:0,src:o.slideBgVideo(e),poster:e.img||void 0,loop:``,muted:``,playsinline:``,preload:`metadata`,class:`slider-hero-slide-video pointer-events-none absolute inset-0 z-0 h-full w-full object-cover`},null,8,Tk)):I(``,!0),o.isLeft?(B(),_(O,{key:2},[n[1]||(n[1]=y(`div`,{class:`pointer-events-none absolute inset-0 bg-gradient-to-r from-[#001a33]/95 via-[#001a33]/70 to-[#001a33]/25`,"aria-hidden":`true`},null,-1)),n[2]||(n[2]=y(`div`,{class:`pointer-events-none absolute inset-0 bg-gradient-to-t from-[#001a33]/80 via-transparent to-transparent`,"aria-hidden":`true`},null,-1))],64)):(B(),_(O,{key:1},[n[0]||(n[0]=Xe(`<div class="slider-hero-ambient-1 pointer-events-none absolute -right-24 top-[12%] hidden h-[min(22rem,45vw)] w-[min(22rem,45vw)] rounded-full bg-cyan-400/20 blur-3xl lg:block" aria-hidden="true" data-v-fea2c90c></div><div class="slider-hero-ambient-2 pointer-events-none absolute -left-28 bottom-[8%] hidden h-[min(20rem,50vw)] w-[min(20rem,50vw)] rounded-full bg-violet-500/15 blur-3xl lg:block" aria-hidden="true" data-v-fea2c90c></div><div class="pointer-events-none absolute inset-0 bg-gradient-to-t from-slate-950/80 from-[42%] via-slate-950/35 to-transparent lg:hidden" aria-hidden="true" data-v-fea2c90c></div><div class="pointer-events-none absolute inset-0 hidden bg-gradient-to-t from-slate-950 via-slate-950/55 via-40% to-slate-900/20 lg:block" aria-hidden="true" data-v-fea2c90c></div><div class="pointer-events-none absolute inset-0 bg-gradient-to-tr from-cyan-500/8 via-transparent to-fuchsia-500/6 lg:from-cyan-500/12 lg:to-fuchsia-500/10" aria-hidden="true" data-v-fea2c90c></div>`,5))],64)),y(`div`,{class:R([`relative z-10 mx-auto flex min-h-0 w-full flex-1 flex-col`,o.contentPadClass])},[y(`div`,{class:R(o.contentWrapClass)},[e.imgTitle?(B(),_(`div`,{key:0,class:R([`mb-5 flex max-h-[min(40vh,14rem)] w-full sm:max-h-[min(42vh,16rem)] md:max-h-[min(44vh,18rem)] lg:max-h-80`,o.isLeft?`items-start justify-start`:`items-end justify-center`])},[y(`img`,{src:e.imgTitle,alt:``,class:`max-h-full w-auto max-w-full object-contain drop-shadow-[0_12px_40px_rgba(0,0,0,0.45)]`},null,8,Ek)],2)):I(``,!0),e.bigicon?(B(),P(s,{key:1,size:14,icon:e.bigicon,class:`mb-3 text-cyan-200/90 drop-shadow-[0_0_24px_rgba(34,211,238,0.35)]`},null,8,[`icon`])):I(``,!0),!e.imgTitle&&e.title?(B(),_(`h1`,{key:2,class:R(o.titleClass)},z(e.title),3)):I(``,!0),e.secondTitle&&!e.imgTitle?(B(),_(`h2`,{key:3,class:R(o.subtitleClass)},z(e.secondTitle),3)):I(``,!0),e.text?(B(),_(`div`,{key:4,class:R(o.proseClass),innerHTML:e.text},null,10,Dk)):I(``,!0),e.url||e.sec_url||e.ter_url?(B(),_(`div`,{key:5,class:R(o.ctaRowClass)},[e.url?(B(),_(`a`,{key:0,href:e.url,class:R(o.primaryBtnClass(e))}
72,[y(`span`,kk,z(e.content),1),e.icon?(B(),P(s,{key:0,size:5,icon:e.icon,class:`shrink-0 opacity-90 transition group-hover:translate-x-0.5`},null,8,[`icon`])):I(``,!0)],10,Ok)):I(``,!0),e.sec_url?(B(),_(`a`,{key:1,href:e.sec_url,class:R(o.outlineBtnClass(e))},[w(z(e.sec_content)+` `,1),e.sec_icon?(B(),P(s,{key:0,size:5,icon:e.sec_icon,class:`shrink-0 opacity-90`},null,8,[`icon`])):I(``,!0)],10,Ak)):I(``,!0),e.ter_url?(B(),_(`a`,{key:2,href:e.ter_url,class:R(o.outlineBtnClass(e))},z(e.ter_content),11,jk)):I(``,!0)],2)):I(``,!0),o.isBelowCtaStrip(o.stripsBySlideId[e.id])?(B(),P(c,{key:6,placement:`belowCta`,compact:!!o.stripsBySlideId[e.id].compact,metrics:o.stripsBySlideId[e.id].metrics,"countdown-at":o.stripsBySlideId[e.id].countdownAt,"countdown-label":o.stripsBySlideId[e.id].countdownLabel,"countdown-ended-label":o.stripsBySlideId[e.id].countdownEndedLabel,"countdown-style":o.stripsBySlideId[e.id].countdownStyle,"countdown-palette":o.stripsBySlideId[e.id].countdownPalette,"content-left":o.isLeft,locale:o.documentLocale},null,8,[`compact`,`metrics`,`countdown-at`,`countdown-label`,`countdown-ended-label`,`countdown-style`,`countdown-palette`,`content-left`,`locale`])):I(``,!0)],2)],2),o.isOverlayStrip(o.stripsBySlideId[e.id])?(B(),P(c,{key:3,placement:o.stripsBySlideId[e.id].placement,compact:!!o.stripsBySlideId[e.id].compact,metrics:o.stripsBySlideId[e.id].metrics,"countdown-at":o.stripsBySlideId[e.id].countdownAt,"countdown-label":o.stripsBySlideId[e.id].countdownLabel,"countdown-ended-label":o.stripsBySlideId[e.id].countdownEndedLabel,"countdown-style":o.stripsBySlideId[e.id].countdownStyle,"countdown-palette":o.stripsBySlideId[e.id].countdownPalette,"lift-for-scroll-hint":o.shouldLiftStripForScrollHint(o.stripsBySlideId[e.id]),locale:o.documentLocale},null,8,[`placement`,`compact`,`metrics`,`countdown-at`,`countdown-label`,`countdown-ended-label`,`countdown-style`,`countdown-palette`,`lift-for-scroll-hint`,`locale`])):I(``,!0)],6)],2)],2))),128))],2)],6),o.activeSlideHighlight?(B(),_(`a`,{key:0,href:o.activeSlideHighlight.url||`#`,class:R(o.highlightAsideClass)},[o.activeSlideHighlight.img?(B(),_(`div`,Nk,[y(`img`,{src:o.activeSlideHighlight.img,alt:o.activeSlideHighlight.title||``,loading:`lazy`,decoding:`async`,class:`h-full w-full object-cover`},null,8,Pk),y(`div`,Fk,[y(`div`,Ik,[o.activeSlideHighlight.icon?(B(),_(`span`,Lk,[L(s,{icon:o.activeSlideHighlight.icon,size:3,class:`shrink-0 text-slate-950`},null,8,[`icon`])])):I(``,!0),y(`p`,Rk,z(o.activeSlideHighlight.title),1)]),o.activeSlideHighlight.subtitle?(B(),_(`p`,{key:0,class:R([`mt-0.5 truncate text-[10px] text-slate-300`,o.activeSlideHighlight.icon?`pl-9`:``])},z(o.activeSlideHighlight.subtitle),3)):I(``,!0)])])):(B(),_(`div`,zk,[o.activeSlideHighlight.icon?(B(),_(`span`,Bk,[L(s,{icon:o.activeSlideHighlight.icon,size:3,class:`shrink-0 text-slate-950`},null,8,[`icon`])])):I(``,!0),y(`div`,Vk,[y(`p`,Hk,z(o.activeSlideHighlight.title),1),o.activeSlideHighlight.subtitle?(B(),_(`p`,Uk,z(o.activeSlideHighlight.subtitle),1)):I(``,!0)])]))],10,Mk)):I(``,!0),o.showAutoplayProgress?(B(),_(`div`,{key:1,class:R(o.autoplayProgressClass),"aria-hidden":`true`},[...n[3]||(n[3]=[y(`svg`,{viewBox:`0 0 48 48`},[y(`circle`,{cx:`24`,cy:`24`,r:`20`})],-1),y(`span`,null,null,-1)])],2)):I(``,!0),r.item.scrollHint?(B(),_(`div`,{key:2,class:R(o.scrollHintClass),"aria-hidden":`true`},[...n[4]||(n[4]=[y(`span`,null,`Scroll down`,-1),y(`svg`,{class:`size-4 animate-bounce`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M12 5v14M5 12l7 7 7-7`})],-1)])],2)):I(``,!0),r.item.showNav?(B(),_(`div`,{key:3,class:R([`slider-hero-nav flex flex-col items-center`,o.navWrapClass])},[...n[5]||(n[5]=[y(`div`,{class:`swiper-pagination slider-hero-pagination pointer-events-auto w-full justify-center sm:max-w-xl`},null,-1),y(`div`,{class:`pointer-events-auto hidden items-center justify-center gap-3 lg:flex`},[y(`div`,{class:`slider-hero-nav-btn swiper-button-prev swiper-button-prev-slider-hero inline-flex h-12 w-12 shrink-0 cursor-pointer items-center justify-center rounded-2xl border border-white/20 bg-white/10 text-white shadow-lg shadow-slate-950/30 backdrop-blur-md transition hover:border-white/35 hover:bg-white/18 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cyan-200/80`,role:`button`,tabindex:`0`,"aria-label":`Previous`}),y(`div`,{class:`slider-hero-nav-btn swiper-button-next swiper-button-next-slider-hero inline-flex h-12 w-12 shrink-0 cursor-pointer items-center justify-center rounded-2xl bg-gradient-to-br from-cyan-400 to-blue-600 text-slate-950 shadow-lg shadow-cyan-500/25 ring-1 ring-white/30 transition hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cyan-200`,role:`button`,tabindex:`0`,"aria-label":`Next`})],-1)])],2)):I(``,!0)],2)],6)}var Gk=G(wk,[[`render`,Wk],[`__scopeId`,`data-v-fea2c90c`]]);c();var Kk={name:`CardsSlider`,inheritAttrs:!1,props:{swiperId:{type:String,required:!0},darkNav:{type:Boolean,default:!1},showNav:{type:Boolean,default:!0},slideCount:{type:Number,default:null},visibleCount:{type:Number,default:null}},data(){return{swiper:null,initializedKey:null}},computed:{swiperRootClass(){return`cards-swiper-${this.swiperId}`},prevClass(){return`swiper-button-prev-${this.swiperId}`},nextClass(){return`swiper-button-next-${this.swiperId}`},prevBtnClass(){return this.darkNav?`border-white/20 bg-white/10 text-white hover:border-white/35 hover:bg-white/18 focus-visible:outline-white/50`:`border-blue-200 bg-white text-blue-700 hover:border-blue-300 hover:bg-blue-50 hover:text-blue-800 focus-visible:outline-blue-500`},nextBtnClass(){return this.darkNav?`border-transparent bg-amber-400 text-slate-950 hover:bg-amber-300 focus-visible:outline-amber-400`:`bg-blue-600 text-white hover:bg-blue-700 focus-visible:outline-blue-500`},ariaLabel(){let e=typeof window<`u`&&window.location.pathname.split(`/`).filter(
72Boolean)[0]||`sv`;return e===`en`?`Cards`:e===`es`?`Tarjetas`:`Kort`},prevLabel(){return(typeof window<`u`&&window.location.pathname.split(`/`).filter(Boolean)[0]||`sv`)===`sv`?`Föregående`:`Previous`},nextLabel(){return(typeof window<`u`&&window.location.pathname.split(`/`).filter(Boolean)[0]||`sv`)===`sv`?`Nästa`:`Next`},showPagination(){return(this.slideCount!=null&&this.slideCount>=0?this.slideCount:0)>1}},watch:{slideCount(){this.$nextTick(()=>this.initSwiper())},visibleCount(){this.$nextTick(()=>this.initSwiper())}},mounted(){this.$nextTick(()=>this.initSwiper())},beforeUnmount(){this.destroySwiper()},methods:{destroySwiper(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null),this.initializedKey=null},countDomSlides(e){let t=e==null?void 0:e.querySelector(`.swiper-wrapper`);return t?t.querySelectorAll(`:scope > .swiper-slide:not(.swiper-slide-duplicate)`).length:0},resolveSlideCount(e){return this.slideCount!=null&&this.slideCount>=0?this.slideCount:this.countDomSlides(e)},initSwiper(){let e=typeof window<`u`?window.Swiper:null,t=this.$refs.swiperEl;if(!e||!t)return;let n=this.resolveSlideCount(t);if(n===0)return;let r=it(this.visibleCount),i=`${n}:${r}`;if(this.swiper&&this.initializedKey===i){this.swiper.update();return}this.destroySwiper();try{this.swiper=He(t,e,r,n,{nextEl:`.${this.nextClass}`,prevEl:`.${this.prevClass}`}),this.initializedKey=i}catch{}}}},qk=[`aria-label`],Jk={class:`cards-slide-fade-mask slider-track-mobile-bleed relative w-full max-w-full`},Yk={class:`cards-slide-swiper-pad cards-slide-swiper-pad--hover-room px-0 pb-8 pt-2 md:px-2 md:pb-10 md:pt-3`},Xk={class:`swiper-wrapper`},Zk={key:0,class:`swiper-pagination swiper-pagination-cards cards-slide-pagination md:hidden`},Qk={key:0,class:`cards-slide-nav-row hidden items-center justify-center gap-3 lg:flex`},$k=[`aria-label`],eA=[`aria-label`];function tA(e,t,n,r,i,a){return B(),_(`section`,{class:R([`cards-slide-section cards-slide-section--mobile-bleed w-full min-w-0 max-w-full overflow-x-hidden overflow-y-visible`,[e.$attrs.class,n.darkNav?`cards-slide-section--dark-fade`:``]]),"aria-label":a.ariaLabel},[y(`div`,Jk,[t[0]||(t[0]=y(`div`,{class:`cards-slide-edge-fade cards-slide-edge-fade--left hidden md:block`,"aria-hidden":`true`},null,-1)),t[1]||(t[1]=y(`div`,{class:`cards-slide-edge-fade cards-slide-edge-fade--right hidden md:block`,"aria-hidden":`true`},null,-1)),y(`div`,Yk,[y(`div`,{ref:`swiperEl`,class:R([`cards-swiper swiper relative !overflow-visible`,a.swiperRootClass])},[y(`div`,Xk,[H(e.$slots,`default`)]),a.showPagination?(B(),_(`div`,Zk)):I(``,!0)],2)])]),n.showNav?(B(),_(`div`,Qk,[y(`div`,{class:R([`cards-slide-nav-btn swiper-button-prev inline-flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center rounded-full border shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2`,a.prevBtnClass,a.prevClass]),role:`button`,tabindex:`0`,"aria-label":a.prevLabel},null,10,$k),y(`div`,{class:R([`cards-slide-nav-btn swiper-button-next inline-flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center rounded-full shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2`,a.nextBtnClass,a.nextClass]),role:`button`,tabindex:`0`,"aria-label":a.nextLabel},null,10,eA)])):I(``,!0)],10,qk)}var nA=G(Kk,[[`render`,tA]]);c();var rA={name:`GothiaCardOffersBrowser`,props:{locale:{type:String,required:!0},item:{type:Object,required:!1,default:()=>({})}},data(){return{loading:!0,categories:[],selectedCategoryId:null,mobileSelectId:`gc-offers-filter-`+(typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID().slice(0,8):String(Math.random()).slice(2,10))}},computed:{itemClass(){let e=this.item&&this.item.class;return typeof e==`string`&&e.trim()?e.trim():null},titleToShow(){return this.item&&this.item.title?this.item.title:null},selectedCategory(){return this.selectedCategoryId==null?null:this.categories.find(e=>e.id===this.selectedCategoryId)||null},allOffers(){let e=[];return this.categories.forEach(t=>{let n=t.display_title||t.name;
72(t.published_offers||t.publishedOffers||[]).forEach(r=>{e.push({id:r.id,category_id:t.id,category_title:n,image:r.image||null,address:r.address||null,title:this.pick(r.title),description:this.pick(r.description),offer_description:this.pick(r.offer_description),link:this.pick(r.link),link_text:this.pick(r.link_text)})})}),e},filteredOffers(){return this.selectedCategoryId==null?this.allOffers:this.allOffers.filter(e=>e.category_id===this.selectedCategoryId)}},mounted(){this.fetch()},methods:{pick(e){return e?typeof e==`string`?e:e[this.locale]||e.sv||e.en||null:null},selectAll(){this.selectedCategoryId=null},selectCategory(e){this.selectedCategoryId=e},onMobileSelect(e){if(e===`all`){this.selectAll();return}let t=parseInt(e,10);Number.isNaN(t)||this.selectCategory(t)},fetch(){this.loading=!0,axios.get(`/api/${this.locale}/gothia-card/categories?include_offers=1`).then(e=>{let t=e.data.categories||[];this.categories=t.slice().sort((e,t)=>{let n=(e.code||``).toString(),r=(t.code||``).toString();return n.localeCompare(r,void 0,{numeric:!0,sensitivity:`base`})})}).catch(()=>{this.categories=[]}).then(()=>{this.loading=!1})}}},iA={class:`gc-offers-browser mx-auto w-full max-w-7xl px-4 pb-12 pt-2 sm:px-6 sm:pb-16 lg:px-8`},aA={key:0,class:`mb-8 text-center sm:mb-10`},oA={class:`text-xs font-semibold uppercase tracking-[0.22em] text-slate-600 after:mx-auto after:mt-3 after:block after:h-[3px] after:w-9 after:rounded-full after:bg-blue-600 after:content-['']`},sA={class:`mb-8 rounded-2xl bg-slate-50/90 p-4 ring-1 ring-slate-900/[0.06] sm:mb-10 sm:p-5`},cA={class:`mx-auto block max-w-md lg:hidden`},lA=[`for`],uA=[`id`,`value`],dA={value:`all`},fA=[`value`],pA={class:`hidden flex-wrap justify-center gap-2 lg:flex`},mA=[`onClick`],hA={key:1,class:`mb-8 text-center sm:mb-10`},gA={class:`text-balance text-2xl font-black tracking-tight text-slate-900 md:text-3xl`},_A={key:0,class:`prose prose-slate prose-sm mx-auto mt-4 max-w-3xl text-base leading-relaxed text-slate-600 [&_a]:text-blue-600 [&_a]:underline`},vA=[`innerHTML`],yA={key:2,class:`rounded-2xl border border-dashed border-slate-200 bg-slate-50/50 py-16 text-center`},bA={class:`text-sm font-medium text-slate-500`},xA={key:3,class:`grid grid-cols-1 gap-6 sm:gap-8 lg:grid-cols-3`},SA={key:0,class:`relative aspect-[16/10] w-full overflow-hidden bg-slate-100`},CA=[`src`],wA={class:`flex flex-1 flex-col p-5 sm:p-6`},TA={key:0,class:`inline-flex max-w-full items-center self-start rounded-full bg-slate-100 px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider text-slate-600 ring-1 ring-slate-900/5`},EA={class:`mt-3 text-balance text-lg font-bold leading-snug text-slate-900 sm:text-xl`},DA={key:1,class:`mt-2 flex items-start gap-2 text-sm text-slate-500`},OA={key:2,class:`prose prose-slate prose-sm mt-3 max-w-none text-slate-600 [&_a]:text-blue-600 [&_a]:underline`},kA=[`innerHTML`],AA={key:3,class:`mt-5 rounded-xl bg-gradient-to-br from-blue-50 to-slate-50 p-4 ring-1 ring-blue-100/80`},jA={class:`inline-flex items-center rounded-full bg-blue-100/90 px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider text-blue-800 ring-1 ring-blue-200/60`},MA={class:`prose prose-slate prose-sm mt-3 max-w-none text-slate-800 [&_a]:text-blue-700 [&_a]:underline`},NA=[`innerHTML`],PA={key:4,class:`mt-auto pt-6`},FA=[`href`],IA={key:4,class:`rounded-2xl border border-dashed border-slate-200 bg-slate-50/80 py-14 text-center`},LA={class:`text-sm font-medium text-slate-600`},RA={class:`mt-1 text-xs text-slate-500`};function zA(e,t,n,r,i,a){return B(),_(`section`,iA,[y(`div`,{class:R([`gc-offers-browser__inner w-full`,a.itemClass])},[a.titleToShow?(B(),_(`header`,aA,[y(`h2`,oA,z(a.titleToShow),1)])):I(``,!0),y(`div`,sA,[y(`div`,cA,[y(`label`,{for:i.mobileSelectId,class:`mb-2 block text-left text-xs font-semibold uppercase tracking-wider text-slate-500`},z(n.locale===`sv`?`Filtrera kategori`:`Filter category`),9,lA),y(`select`,{id:i.mobileSelectId,class:`block w-full max-w-md appearance-none rounded-xl border-0 bg-white py-3 pl-4 pr-10 text-sm font-medium text-slate-800 shadow-sm ring-1 ring-slate-200 transition focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-0`,value:i.selectedCategoryId==null?`all`:String(i.selectedCategoryId),onChange:t[0]||(t[0]=e=>a.onMobileSelect(e.target.value))}
72,[y(`option`,dA,z(n.locale===`sv`?`Alla`:`All`),1),(B(!0),_(O,null,U(i.categories,e=>(B(),_(`option`,{key:e.id,value:String(e.id)},z(e.display_title||e.name),9,fA))),128))],40,uA)]),y(`div`,pA,[y(`button`,{type:`button`,class:R([`rounded-full px-4 py-2.5 text-sm font-semibold ring-1 transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500`,i.selectedCategoryId===null?`bg-blue-600 text-white shadow-sm ring-blue-600`:`bg-white text-slate-700 ring-slate-200 hover:bg-slate-50 hover:ring-slate-300`]),onClick:t[1]||(t[1]=(...e)=>a.selectAll&&a.selectAll(...e))},z(n.locale===`sv`?`Alla`:`All`),3),(B(!0),_(O,null,U(i.categories,e=>(B(),_(`button`,{key:e.id,type:`button`,class:R([`rounded-full px-4 py-2.5 text-sm font-semibold ring-1 transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500`,i.selectedCategoryId===e.id?`bg-blue-600 text-white shadow-sm ring-blue-600`:`bg-white text-slate-700 ring-slate-200 hover:bg-slate-50 hover:ring-slate-300`]),onClick:t=>a.selectCategory(e.id)},z(e.display_title||e.name),11,mA))),128))])]),n.item&&n.item.showCategoryHeader&&a.selectedCategory?(B(),_(`div`,hA,[y(`h3`,gA,z(a.selectedCategory.display_title||a.selectedCategory.name),1),a.selectedCategory.display_description?(B(),_(`div`,_A,[y(`span`,{innerHTML:a.selectedCategory.display_description},null,8,vA)])):I(``,!0)])):I(``,!0),i.loading?(B(),_(`div`,yA,[y(`p`,bA,z(n.locale===`sv`?`Laddar erbjudandenâ¦`:`Loading offersâ¦`),1),t[2]||(t[2]=y(`div`,{class:`mx-auto mt-4 h-1 max-w-[120px] overflow-hidden rounded-full bg-slate-200`},[y(`div`,{class:`h-full w-1/2 animate-pulse rounded-full bg-blue-500/70`})],-1))])):a.filteredOffers.length>0?(B(),_(`div`,xA,[(B(!0),_(O,null,U(a.filteredOffers,e=>(B(),_(`article`,{key:e.id,class:`group flex flex-col overflow-hidden rounded-2xl bg-white shadow-md ring-1 ring-slate-900/[0.06] transition duration-200 hover:-translate-y-0.5 hover:shadow-xl hover:ring-slate-900/10`},[e.image?(B(),_(`div`,SA,[y(`img`,{src:e.image,alt:``,class:`h-full w-full object-cover transition duration-500 group-hover:scale-[1.03]`,loading:`lazy`,decoding:`async`},null,8,CA),t[3]||(t[3]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-slate-950/25 to-transparent opacity-0 transition group-hover:opacity-100`},null,-1))])):I(``,!0),y(`div`,wA,[e.category_title?(B(),_(`div`,TA,z(e.category_title),
721)):I(``,!0),y(`h4`,EA,z(e.title),1),e.address?(B(),_(`p`,DA,[t[4]||(t[4]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`mt-0.5 h-4 w-4 shrink-0 text-slate-400`,"aria-hidden":`true`},[y(`path`,{"fill-rule":`evenodd`,d:`M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.293-.068L10 18.933zm7.414-8.132a6.5 6.5 0 10-12.728 0l5.293 5.293a1 1 0 001.414 0l5.293-5.293zM10 11a3 3 0 100-6 3 3 0 000 6z`,"clip-rule":`evenodd`})],-1)),y(`span`,null,z(e.address),1)])):I(``,!0),e.description?(B(),_(`div`,OA,[y(`span`,{innerHTML:e.description},null,8,kA)])):I(``,!0),e.offer_description?(B(),_(`div`,AA,[y(`div`,jA,z(n.locale===`sv`?`Erbjudande`:`Offer`),1),y(`div`,MA,[y(`span`,{innerHTML:e.offer_description},null,8,NA)])])):I(``,!0),e.link?(B(),_(`div`,PA,[y(`a`,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,class:`inline-flex items-center justify-center gap-2 rounded-xl bg-blue-600 px-5 py-3 text-sm font-bold text-white shadow-md shadow-blue-600/20 ring-1 ring-white/10 transition hover:bg-blue-700 hover:shadow-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500`},[y(`span`,null,z(e.link_text||(n.locale===`sv`?`Läs mer`:`Read more`)),1),t[5]||(t[5]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`h-4 w-4`},[y(`polyline`,{points:`9 18 15 12 9 6`})],-1))],8,FA)])):I(``,!0)])]))),128))])):I(``,!0),!i.loading&&a.filteredOffers.length===0?(B(),_(`div`,IA,[y(`p`,LA,z(n.locale===`sv`?`Inga erbjudanden hittades.`:`No offers found.`),1),y(`p`,RA,z(n.locale===`sv`?`Prova ett annat filter.`:`Try another filter.`),1)])):I(``,!0)],2)])}var BA=G(rA,[[`render`,zA]]);c();var VA={name:`HighlightsTimeline`,props:{item:{type:Object,required:!0}},computed:{sectionTitle(){var e;let t=(e=this.item)==null?void 0:e.title;return t&&String(t).trim()?String(t).trim():null},layout(){var e;return((e=this.item)==null?void 0:e.layout)===`horizontal`?`horizontal`:`vertical`},isVertical(){return this.layout===`vertical`},isDark(){var e;return((e=this.item)==null?void 0:e.theme)===`dark`},cardRounded(){var e;return((e=this.item)==null?void 0:e.cardRounded)!==!1},cardRadiusClass(){return this.cardRounded?`rounded-xl`:`rounded-none`},thumbRadiusClass(){return this.cardRounded?`rounded-lg`:`rounded-none`},verticalThumbRadiusClass(){return this.cardRounded?`rounded-l-xl`:`rounded-none`},events(){var e;let t=(e=this.item)==null?void 0:e.list;return Array.isArray(t)?t.map((e,t)=>({key:(e==null?void 0:e.id)??`ht-${t}`,img:String((e==null?void 0:e.img)||``).trim(),imgalt:(e==null?void 0:e.imgalt)||``,title:(e==null?void 0:e.title)||``,time:(e==null?void 0:e.time)||``,day:(e==null?void 0:e.day)||``,description:(e==null?void 0:e.description)||``})):[]},rootClass(){return this.isDark?`ht-theme-dark`:`ht-theme-light`},headingClass(){return this.isDark?`text-white`:`text-slate-900`},emptyClass(){return this.isDark?`border-slate-600 text-slate-400`:`border-slate-200 text-slate-500`},railClass(){return this.isDark?`bg-slate-600`:`bg-slate-200`},dotClass(){return this.isDark?`border-slate-800 bg-slate-900 ring-2 ring-slate-950/80`:`border-white bg-white ring-2 ring-slate-50`},dotInnerClass(){return this.isDark?`bg-amber-400`:`bg-blue-600`},dotOnRailClass(){return this.isDark?`bg-amber-400 ring-slate-900`:`bg-blue-600 ring-white`},cardClass(){return this.isDark?`border-slate-700/90 bg-slate-800/95 text-slate-100`:`border-slate-200/90 bg-white text-slate-900`},dayInlineClass(){return this.isDark?`text-slate-400`:`text-slate-500`},timeClass(){return this.isDark?`text-amber-300`:`text-blue-700`},titleClass(){return this.isDark?`text-white`:`text-slate-900`},proseClass(){return this.isDark?`text-slate-400 [&_a]:text-amber-300`:`text-slate-600 [&_a]:text-blue-700`}}},HA={key:2,class:`relative min-w-0 max-w-full overflow-x-clip`},UA={class:`relative m-0 list-none space-y-3 p-0 sm:space-y-3.5`},WA=[`src`,`alt`],GA={class:`min-w-0 px-3 py-2.5 sm:px-3.5 sm:py-3`},KA={key:0,class:`mb-1 flex flex-wrap items-baseline gap-x-2 gap-y-0.5`},qA=[`innerHTML`],JA={key:3,class:`ht-horizontal-shell slider-track-mobile-bleed relative w-full min-w-0 max-w-full overflow-x-hidden overflow-y-visible`},YA={class:`ht-horizontal-scroller flex w-full min-w-0 max-w-full items-stretch snap-x snap-mandatory overflow-x-auto overscroll-x-contain scroll-ps-6 pe-6 pb-1 scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden lg:scroll-ps-0 lg:px-1 lg:pe-1`},XA={key:0,class:`relative h-14 w-full shrink-0 overflow-hidden`},ZA=[`src`,`alt`],QA={class:`ht-horizontal-card-body flex flex-1 flex-col justify-start p-2`},$A=[`innerHTML`],ej={class:`ht-horizontal-meta mt-auto flex shrink-0 flex-col items-center px-1`},tj={class:`relative flex h-5 w-full items-center justify-center`},nj={class:`mt-1 min-h-[2.25rem] max-w-full text-center leading-tight`};function rj(e,t,n,r,i,a){return B(),_(`div`,{class:R([`highlights-timeline w-full min-w-0 max-w-full`,[n.item.marginTop,n.item.marginBottom,n.item.class,a.rootClass,a.isVertical?`overflow-x-clip`:`ht-horizontal-root`]])},[a.sectionTitle?(B(),_(`header`,{key:0,class:R([`mb-4 sm:mb-5`,a.isVertical?``:`ht-horizontal-header px-6 lg:px-0`])},[y(`h2`,{class:R([`text-balance text-xl font-bold tracking-tight sm:text-2xl`,a.headingClass])},z(a.sectionTitle),3)],2)):I(``,!0),a.events.length===0?(B(),_(`p`,{key:1,class:R([`rounded-lg border border-dashed px-3 py-6 text-center text-sm`,a.emptyClass])},z(e.$t(`admin.page_builder.site_preview_no_events`)),3)):a.isVertical?(B(),_(`div`,HA,[y(`div`,{class:R([`pointer-events-none absolute bottom-1 left-[0.6875rem] top-2 w-px sm:left-[0.75rem]`,a.railClass]),"aria-hidden":`true`}
72,null,2),y(`ol`,UA,[(B(!0),_(O,null,U(a.events,e=>(B(),_(`li`,{key:e.key,class:`relative pl-8 sm:pl-9`},[y(`span`,{class:R([`absolute left-0 top-3 z-10 flex size-7 items-center justify-center rounded-full border-2`,a.dotClass]),"aria-hidden":`true`},[y(`span`,{class:R([`size-2 rounded-full`,a.dotInnerClass])},null,2)],2),y(`article`,{class:R([`group min-w-0 overflow-hidden border shadow-sm`,[a.cardRadiusClass,a.cardClass]])},[y(`div`,{class:R(e.img?`grid grid-cols-[4.75rem_1fr] items-stretch sm:grid-cols-[5.25rem_1fr]`:``)},[e.img?(B(),_(`div`,{key:0,class:R([`ht-vertical-thumb relative min-h-[4.25rem] overflow-hidden bg-slate-100`,a.verticalThumbRadiusClass])},[y(`img`,{src:e.img,alt:e.imgalt||e.title||``,loading:`lazy`,decoding:`async`,class:`absolute inset-0 h-full w-full object-cover object-center transition duration-300 group-hover:scale-[1.04]`},null,8,WA)],2)):I(``,!0),y(`div`,GA,[e.time||e.day?(B(),_(`div`,KA,[e.time?(B(),_(`time`,{key:0,class:R([`text-xs font-bold tabular-nums sm:text-sm`,a.timeClass])},z(e.time),3)):I(``,!0),e.day?(B(),_(`span`,{key:1,class:R([`text-[10px] font-semibold uppercase tracking-wide sm:text-[11px]`,a.dayInlineClass])},z(e.day),3)):I(``,!0)])):I(``,!0),e.title?(B(),_(`h3`,{key:1,class:R([`text-balance text-sm font-bold leading-snug sm:text-base`,a.titleClass])},z(e.title),3)):I(``,!0),e.description?(B(),_(`div`,{key:2,class:R([`ht-event-prose mt-1 line-clamp-2 text-pretty text-xs leading-relaxed sm:text-sm`,a.proseClass]),innerHTML:e.description},null,10,qA)):I(``,!0)])],2)],2)]))),128))])])):(B(),_(`div`,JA,[y(`div`,YA,[t[0]||(t[0]=y(`div`,{class:`ht-horizontal-edge w-6 shrink-0 snap-none lg:hidden`,"aria-hidden":`true`},null,-1)),(B(!0),_(O,null,U(a.events,(e,t)=>(B(),_(`div`,{key:e.key,class:`ht-horizontal-slide relative flex w-[9.75rem] shrink-0 snap-center flex-col scroll-mx-2 px-1.5 sm:w-[11rem] sm:snap-start md:w-[12rem]`},[y(`article`,{class:R([`mb-2 flex min-h-[5.5rem] flex-1 flex-col overflow-hidden border shadow-sm`,[a.cardRadiusClass,a.cardClass]])},[e.img?(B(),_(`div`,XA,[y(`img`,{src:e.img,alt:e.imgalt||e.title||``,loading:`lazy`,decoding:`async`,class:`h-full w-full object-cover`},null,8,ZA)])):I(``,!0),y(`div`,QA,[e.title?(B(),_(`h3`,{key:0,class:R([`text-balance text-xs font-bold leading-snug line-clamp-2`,a.titleClass])},z(e.title),3)):I(``,!0),e.description?(B(),_(`div`,{key:1,class:R([`ht-event-prose mt-0.5 line-clamp-2 text-pretty text-[11px] leading-snug`,a.proseClass]),innerHTML:e.description},null,10,$A)):I(``,!0)])],2),y(`div`,ej,[y(`div`,tj,[t>0?(B(),_(`div`,{key:0,class:R([`absolute right-1/2 top-1/2 h-0.5 w-1/2 -translate-y-1/2`,a.railClass]),"aria-hidden":`true`},null,2)):I(``,!0),t<a.events.length-1?(B(),_(`div`,{key:1,class:R([`absolute left-1/2 top-1/2 h-0.5 w-1/2 -translate-y-1/2`,a.railClass]),"aria-hidden":`true`},null,2)):I(``,!0),y(`span`,{class:R([`relative z-10 size-2.5 shrink-0 rounded-full ring-2`,a.dotOnRailClass]),"aria-hidden":`true`},null,2)]),y(`div`,nj,[e.time?(B(),_(`time`,{key:0,class:R([`block text-[11px] font-bold tabular-nums`,a.timeClass])},z(e.time),3)):I(``,!0),e.day?(B(),_(`span`,{key:1,class:R([`mt-0.5 block truncate text-[9px] font-semibold uppercase tracking-wide`,a.dayInlineClass])},z(e.day),3)):I(``,!0)])])]))),128)),t[1]||(t[1]=y(`div`,{class:`ht-horizontal-edge w-6 shrink-0 snap-none lg:hidden`,"aria-hidden":`true`},null,-1))])]))],2)}var ij=G(VA,[[`render`,rj],[`__scopeId`,`data-v-760c7efd`]]);c();var aj={name:`ItemPromoDual`,props:{item:{type:Object,required:!0}},computed:{showFeatures(){return this.item.showFeatures!==!1},hasStoreBadges(){return this.item.appStoreUrl&&this.item.appStoreBadge||this.item.googlePlayUrl&&this.item.googlePlayBadge},features(){return Array.isArray(this.item.features)?this.item.features.filter(e=>e&&(e.label||e.desc)).slice(0,3).map((e,t)=>({key:e.id??t,label:e.label||``,desc:e.desc||``})):[]}}},oj={class:`grid gap-5 md:grid-cols-2 md:gap-6`},sj={class:`group relative flex min-h-[24rem] flex-col overflow-hidden rounded-2xl bg-slate-950 shadow-xl ring-1 ring-white/10 transition duration-300 hover:-translate-y-0.5 hover:shadow-2xl hover:shadow-red-950/20`},cj={class:`relative min-h-[11.5rem] flex-1 overflow-hidden sm:min-h-[12.5rem]`},lj=[`src`,`alt`],uj={key:1,class:`absolute left-4 top-4 z-10 inline-flex items-center gap-2 rounded-full bg-red-600 px-3 py-1.5 text-[0.6875rem] font-extrabold uppercase tracking-[0.14em] text-white shadow-lg shadow-red-900/40 ring-2 ring-red-400/40`},dj={key:2,class:`absolute inset-0 z-10 flex items-center justify-center pointer-events-none`},fj={key:3,class:`absolute bottom-4 right-4 z-10 rounded-xl bg-black/55 px-3 py-2 text-right backdrop-blur-sm`},pj={class:`text-2xl font-black leading-none tracking-tight text-white`},mj={key:0,class:`mt-0.5 text-[0.65rem] font-semibold uppercase tracking-wide text-white/75`},hj=[`src`],gj={class:`relative z-10 flex flex-col gap-3 p-5 sm:p-6`},_j={key:0,class:`text-[0.625rem] font-extrabold uppercase tracking-[0.16em] text-red-300`},vj={key:1,class:`text-balance text-xl font-extrabold leading-tight tracking-tight text-white sm:text-2xl`},yj=[`innerHTML`],bj={key:3,class:`flex flex-wrap items-center gap-3 pt-1`},xj=[`href`],Sj=[`href`],Cj={class:`group relative flex min-h-[24rem] flex-col overflow-hidden rounded-2xl bg-gradient-to-br from-blue-700 via-blue-800 to-slate-950 shadow-xl ring-1 ring-blue-500/20 transition duration-300 hover:-translate-y-0.5 hover:shadow-2xl hover:shadow-blue-900/30`},wj={class:`relative min-h-[11.5rem] flex-1 overflow-hidden sm:min-h-[12.5rem]`},Tj={class:`absolute inset-0 z-10 flex items-end justify-center px-4 pb-2 pt-8`},Ej=[`src`,`alt`],Dj={class:`relative z-10 flex flex-col gap-3 p-5 sm:p-6`},Oj={key:0,class:`text-[0.625rem] font-extrabold uppercase tracking-[0.16em] text-blue-200`},kj={key:1,class:`text-balance text-xl font-extrabold leading-tight tracking-tight text-white sm:text-2xl`},Aj=[`innerHTML`],jj={key:3,class:`grid grid-cols-3 gap-1.5 pt-1`},Mj={key:0,class:`block text-[0.6875rem] font-bold text-white`},Nj={key:1,class:`mt-0.5 block text-[0.6rem] leading-snug text-blue-100/75`},Pj={key:4,class:`flex flex-wrap items-center gap-2.5 pt-1`},Fj=[`href`],Ij=[`src`],Lj=[`href`],Rj=[`src`],zj=[`href`];function Bj(e,t,n,r,i,a){return B(),_(`div`,{class:R([`promo-dual w-full min-w-0`,[n.item.marginTop,n.item.marginBottom,n.item.class]])},[y(`div`,oj,[y(`article`,sj,[y(`div`,cj,[n.item.liveHeroImg?(B(),_(`img`,{
72key:0,src:n.item.liveHeroImg,alt:n.item.liveHeroAlt||``,loading:`lazy`,decoding:`async`,class:`absolute inset-0 h-full w-full object-cover transition duration-700 group-hover:scale-105`},null,8,lj)):I(``,!0),t[2]||(t[2]=y(`div`,{class:`absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/70 to-red-950/40`,"aria-hidden":`true`},null,-1)),t[3]||(t[3]=y(`div`,{class:`pointer-events-none absolute inset-0 opacity-[0.07]`,style:{background:`repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.35) 2px, rgba(255,255,255,.35) 4px)`},"aria-hidden":`true`},null,-1)),n.item.liveBadge?(B(),_(`span`,uj,[t[0]||(t[0]=y(`span`,{class:`relative flex size-2`},[y(`span`,{class:`absolute inline-flex size-full animate-ping rounded-full bg-white opacity-70`}),y(`span`,{class:`relative inline-flex size-2 rounded-full bg-white`})],-1)),w(` `+z(n.item.liveBadge),1)])):I(``,!0),n.item.liveCtaUrl?(B(),_(`div`,dj,[...t[1]||(t[1]=[y(`span`,{class:`flex size-16 items-center justify-center rounded-full bg-white/95 text-red-600 shadow-2xl ring-4 ring-white/20 transition duration-300 group-hover:scale-110 sm:size-[4.25rem]`},[y(`svg`,{class:`ml-1 size-7`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`},[y(`path`,{d:`M8 5.14v13.72a1 1 0 0 0 1.5.86l10.04-6.86a1 1 0 0 0 0-1.72L9.5 4.28A1 1 0 0 0 8 5.14Z`})])],-1)])])):I(``,!0),n.item.liveStatNumber?(B(),_(`div`,fj,[y(`p`,pj,z(n.item.liveStatNumber),1),n.item.liveStatLabel?(B(),_(`p`,mj,z(n.item.liveStatLabel),1)):I(``,!0)])):I(``,!0),n.item.livePhoneImg?(B(),_(`img`,{key:4,src:n.item.livePhoneImg,alt:``,loading:`lazy`,"aria-hidden":`true`,class:`absolute bottom-0 left-4 z-10 w-[5.5rem] drop-shadow-2xl sm:w-24`},null,8,hj)):I(``,!0)]),y(`div`,gj,[n.item.liveEyebrow?(B(),_(`p`,_j,z(n.item.liveEyebrow),1)):I(``,!0),n.item.liveTitle?(B(),_(`h2`,vj,z(n.item.liveTitle),1)):I(``,!0),n.item.liveText?(B(),_(`div`,{key:2,class:`text-pretty text-sm leading-relaxed text-blue-100/90 sm:text-[0.9375rem] [&_strong]:font-bold [&_strong]:text-white`,innerHTML:n.item.liveText},null,8,yj)):I(``,!0),n.item.liveCtaUrl||n.item.liveLinkUrl?(B(),_(`div`,bj,[n.item.liveCtaUrl&&n.item.liveCtaLabel?(B(),_(`a`,{key:0,href:n.item.liveCtaUrl,class:`inline-flex items-center justify-center rounded-full bg-blue-600 px-5 py-2.5 text-sm font-bold text-white shadow-lg shadow-blue-900/30 transition hover:bg-blue-500`},z(n.item.liveCtaLabel),9,xj)):I(``,!0),n.item.liveLinkUrl&&n.item.liveLinkLabel?(B(),_(`a`,{key:1,href:n.item.liveLinkUrl,class:`text-sm font-semibold text-blue-200 transition hover:text-white`},z(n.item.liveLinkLabel),9,Sj)):I(``,!0)])):I(``,!0)])]),y(`article`,Cj,[t[5]||(t[5]=y(`div`,{class:`pointer-events-none absolute -right-6 -top-6 size-36 rounded-full bg-white/15 blur-3xl`,"aria-hidden":`true`},null,-1)),t[6]||(t[6]=y(`div`,{class:`pointer-events-none absolute bottom-32 -left-8 size-32 rounded-full bg-sky-400/15 blur-3xl`,"aria-hidden":`true`},null,-1)),y(`div`,wj,[t[4]||(t[4]=y(`div`,{class:`absolute inset-0 bg-gradient-to-t from-slate-950 via-blue-900/60 to-blue-600/30`,"aria-hidden":`true`},null,-1)),y(`div`,Tj,[n.item.appPhoneImg?(B(),_(`img`,{key:0,src:n.item.appPhoneImg,alt:n.item.appPhoneAlt||``,loading:`lazy`,decoding:`async`,class:`relative h-[10.5rem] w-auto -rotate-6 drop-shadow-2xl transition duration-300 group-hover:-translate-y-1 group-hover:-rotate-[4deg] sm:h-44`},null,8,Ej)):I(``,!0)])]),y(`div`,Dj,[n.item.appEyebrow?(B(),_(`p`,Oj,z(n.item.appEyebrow),1)):I(``,!0),n.item.appTitle?(B(),_(`h2`,kj,z(n.item.appTitle),1)):I(``,!0),n.item.appText?(B(),_(`div`,{key:2,class:`text-pretty text-sm leading-relaxed text-blue-100/90 sm:text-[0.9375rem] [&_strong]:font-bold [&_strong]:text-white`,innerHTML:n.item.appText},null,8,Aj)):I(``,!0),a.showFeatures&&a.features.length?(B(),_(`div`,jj,[(B(!0),_(O,null,U(a.features,e=>(B(),_(`div`,{key:e.key,class:`rounded-lg border border-white/10 bg-white/5 px-1.5 py-2 text-center backdrop-blur-sm`},[e.label?(B(),_(`span`,Mj,z(e.label),1)):I(``,!0),e.desc?(B(),_(`span`,Nj,z(e.desc),1)):I(``,!0)]))),128))])):I(``,!0),a.hasStoreBadges?(B(),_(`div`,Pj,[n.item.appStoreUrl&&n.item.appStoreBadge?(B(),_(`a`,{key:0,href:n.item.appStoreUrl,target:`_blank`,rel:`noopener noreferrer`,class:`inline-block transition hover:scale-[1.03]`},[y(`img`,{src:n.item.appStoreBadge,alt:`App Store`,class:`h-10 w-auto sm:h-11`,loading:`lazy`},null,8,Ij)],8,Fj)):I(``,!0),n.item.googlePlayUrl&&n.item.googlePlayBadge?(B(),_(`a`,{key:1,href:n.item.googlePlayUrl,target:`_blank`,rel:`noopener noreferrer`,class:`inline-block transition hover:scale-[1.03]`},[y(`img`,{src:n.item.googlePlayBadge,alt:`Google Play`,class:`h-10 w-auto sm:h-11`,loading:`lazy`},null,8,Rj)],8,Lj)):I(``,!0)])):I(``,!0),n.item.appLinkUrl&&n.item.appLinkLabel?(B(),_(`a`,{key:5,href:n.item.appLinkUrl,class:`inline-flex text-sm font-semibold text-blue-200 transition hover:text-white`},z(n.item.appLinkLabel),9,zj)):I(``,!0)])])])],2)}var Vj=G(aj,[[`render`,Bj]]);c();var Hj={props:{item:{type:Object,default:()=>({})}},data(){return{uniqueId:`feature-`+Math.random().toString(36).substr(2,9),streams:null,database:typeof config<`u`?config.id_url:``,lang:config.locale,loading:!0,swiperInstance:null,activeIndex:1}},computed:{itemClass(){return this.item&&this.item.class?this.item.class:``},streamList(){let e=this.streams;return e==null?[]:Array.isArray(e)?e:typeof e==`object`&&Array.isArray(e.streams)?e.streams:[]},watchCta(){return this.lang===`sv`?`Se video`:`Watch`},emptyLabel(){return this.lang===`sv`?`Inga videor att visa just nu.`:`No videos to show right now.`},featuredEyebrow(){return this.lang===`sv`?`Utvalt`:`Featured`},featuredTitle(){return this.lang===`sv`?`Utvalda videor`:`Featured videos`},videoLabel(){return this.lang,`Video`},tapHint(){return this.lang===`sv`?`Ãppna videon`:`Open video`},paddedActive(){return String(this.activeIndex).padStart(2,`0`)},paddedTotal(){return String(this.streamList.length).padStart(2,`0`)}},mounted(){let e=this.database?String(this.database).replace(/\/+$/,``):``;if(!e){this.loading=!1;return}axios.post(`${e}/api/broadcasts`).then(e=>{this.streams=e.data,this.loading=!1,this.$nextTick(()=>this.loadSwipe())}).catch(()=>{this.loading=!1})},beforeUnmount(){this.swiperInstance&&typeof this.swiperInstance.destroy==`function`&&(this.swiperInstance.destroy(!0,!0),this.swiperInstance=null)},methods:{thumbUrl(e){return!e||!e.image?``:Zv(e.image)},syncCounter(e){e&&typeof e.realIndex==`number`&&(this.activeIndex=e.realIndex+1)},loadSwipe(){if(!this.streamList.length)return;this.swiperInstance&&typeof this.swiperInstance.destroy==`function`&&(this.swiperInstance.destroy(!0,!0),this.swiperInstance=null);let e=`#${this.uniqueId}`,t=this.streamList.length>1,n=this;this.swiperInstance=new Swiper(`${e} .hero-feature-swiper`,{loop:t,grabCursor:!0,slidesPerView:1,spaceBetween:0,speed:750,autoplay:t?{delay:7e3,disableOnInteraction:!0}:!1,pagination:t?{el:`${e} .swiper-pagination-feature`,clickable:!0,dynamicBullets:!1}:!1,navigation:{nextEl:`${e} .swiper-button-next-feature`,prevEl:`${e} .swiper-button-prev-feature`},on:{init(e){n.syncCounter(e)},slideChange(e){n.syncCounter(e)}}})}}},Uj=[`id`],Wj={key:0,class:`relative mx-auto max-w-7xl px-4 sm:px-6 lg:px-8`},Gj={key:1,class:`relative px-4 py-16 text-center sm:px-6`},Kj={class:`text-base text-slate-600`},qj={key:2,class:`relative mx-auto max-w-7xl px-4 sm:px-6 lg:px-8`},Jj={class:`mb-8 flex flex-wrap items-end justify-between gap-4 md:mb-10`},Yj={class:`text-[11px] font-semibold uppercase tracking-[0.35em] text-blue-600`},Xj={class:`mt-2 text-3xl font-black tracking-tight text-slate-900 md:text-4xl`}
72,Zj={key:0,class:`hidden items-baseline gap-1 font-mono text-sm tabular-nums text-slate-400 sm:flex`,"aria-live":`polite`},Qj={class:`text-lg font-semibold text-slate-700`},$j={class:`relative`},eM=[`aria-label`],tM={class:`sr-only`},nM=[`aria-label`],rM={class:`sr-only`},iM={class:`feature-slider-chrome overflow-hidden rounded-[2rem] bg-slate-950 shadow-xl shadow-slate-900/10 ring-1 ring-slate-200/90`},aM={class:`hero-feature-swiper swiper relative overflow-hidden rounded-[2rem] bg-slate-950`},oM={class:`swiper-wrapper`},sM=[`href`],cM={class:`relative aspect-[16/9] w-full shrink-0 overflow-hidden bg-slate-950 lg:col-span-7 lg:aspect-auto lg:h-full lg:min-h-0 lg:self-stretch`},lM=[`src`,`alt`],uM={key:1,class:`absolute inset-0 bg-gradient-to-br from-slate-700 via-slate-900 to-black`},dM={class:`relative z-10 -mt-10 flex min-h-0 flex-col justify-between border-x border-t border-white/10 bg-slate-950 px-6 py-8 sm:-mt-12 sm:px-8 sm:py-10 lg:col-span-5 lg:mt-0 lg:self-stretch lg:border-l-0 lg:border-t-0 lg:border-l lg:border-white/10 lg:bg-gradient-to-br lg:from-slate-900/95 lg:via-slate-950 lg:to-black lg:px-10 lg:py-12 lg:backdrop-blur-2xl`},fM={class:`min-h-0 flex-1`},pM={class:`mb-5 flex flex-wrap items-center gap-2`},mM={class:`text-[10px] font-bold uppercase tracking-[0.2em] text-blue-300/90`},hM={key:0,class:`rounded-full bg-white/10 px-2.5 py-0.5 text-[10px] font-semibold uppercase tracking-wider text-white ring-1 ring-white/20`},gM={key:1,class:`inline-flex items-center gap-1 rounded-full bg-white/5 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider text-white/80 ring-1 ring-white/15`},_M={key:0,class:`feature-slide-title overflow-hidden text-balance text-2xl font-black leading-[1.1] tracking-tight text-white sm:text-3xl md:text-4xl lg:text-[2.35rem] lg:leading-[1.08]`},vM={class:`bg-gradient-to-br from-white via-white to-blue-200/90 bg-clip-text text-transparent drop-shadow-sm`},yM=[`innerHTML`],bM={class:`mt-6 flex shrink-0 flex-wrap items-center gap-3 pt-2 lg:mt-8 lg:pt-0`},xM={class:`inline-flex items-center gap-2 rounded-xl bg-blue-500 px-5 py-3 text-sm font-bold text-white shadow-lg shadow-blue-600/30 ring-1 ring-white/20 transition group-hover/feature:bg-blue-400 group-hover/feature:shadow-blue-500/40`},SM={class:`text-xs font-medium text-slate-500`},CM={key:0,class:`swiper-pagination swiper-pagination-feature`};function wM(e,t,n,r,i,a){return B(),_(`section`,{id:i.uniqueId,class:R([`play-feature-slider relative isolate w-full min-w-0 max-w-full overflow-x-hidden py-10 sm:py-12 lg:py-14`,a.itemClass])},[i.loading?(B(),_(`div`,Wj,[...t[0]||(t[0]=[y(`div`,{class:`overflow-hidden rounded-[2rem] ring-1 ring-slate-200/80`},[y(`div`,{class:`aspect-[16/9] w-full animate-pulse bg-slate-200/80`})],-1)])])):a.streamList.length?(B(),_(`div`,qj,[y(`div`,Jj,[y(`div`,null,[y(`p`,Yj,z(a.featuredEyebrow),1),y(`h2`,Xj,z(a.featuredTitle),1)]),a.streamList.length>1?(B(),_(`div`,Zj,[y(`span`,Qj,z(a.paddedActive),1),t[1]||(t[1]=y(`span`,null,`/`,-1)),y(`span`,null,z(a.paddedTotal),1)])):I(``,!0)]),y(`div`,$j,[a.streamList.length>1?(B(),_(`button`,{key:0,type:`button`,class:`swiper-button-prev-feature absolute left-0 top-1/2 z-20 hidden -translate-y-1/2 lg:flex lg:-translate-x-4`,"aria-label":i.lang===`sv`?`Föregående`:`Previous`},[y(`span`,tM,z(i.lang===`sv`?`Föregående`:`Previous`),1),t[2]||(t[2]=y(`span`,{class:`feature-nav-btn inline-flex h-12 w-12 items-center justify-center rounded-2xl border border-slate-200 bg-white/95 text-slate-700 shadow-md shadow-slate-900/10 backdrop-blur-md transition hover:border-blue-300 hover:bg-blue-50 hover:text-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 md:h-14 md:w-14`},[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-5 w-5 md:h-6 md:w-6`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M15.75 19.5 8.25 12l7.5-7.5`})])],-1))],8,eM)):I(``,!0),a.streamList.length>1?(B(),_(`button`,{key:1,type:`button`,class:`swiper-button-next-feature absolute right-0 top-1/2 z-20 hidden -translate-y-1/2 lg:flex lg:translate-x-4`,"aria-label":i.lang===`sv`?`Nästa`:`
72Next`},[y(`span`,rM,z(i.lang===`sv`?`Nästa`:`Next`),1),t[3]||(t[3]=y(`span`,{class:`feature-nav-btn inline-flex h-12 w-12 items-center justify-center rounded-2xl border border-slate-200 bg-white/95 text-slate-700 shadow-md shadow-slate-900/10 backdrop-blur-md transition hover:border-blue-300 hover:bg-blue-50 hover:text-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 md:h-14 md:w-14`},[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-5 w-5 md:h-6 md:w-6`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`m8.25 4.5 7.5 7.5-7.5 7.5`})])],-1))],8,nM)):I(``,!0),y(`div`,iM,[y(`div`,aM,[y(`div`,oM,[(B(!0),_(O,null,U(a.streamList,e=>(B(),_(`div`,{key:e.id,class:`swiper-slide !flex !h-auto !w-full shrink-0 flex-col`},[y(`a`,{href:`/`+i.lang+`/stream/`+e.id,class:`group/feature relative grid min-h-[22rem] w-full flex-1 items-start overflow-hidden rounded-[2rem] bg-slate-950 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-400 sm:min-h-[26rem] lg:grid-cols-12 lg:items-stretch lg:gap-0`},[y(`div`,cM,[a.thumbUrl(e)?(B(),_(`img`,{key:0,src:a.thumbUrl(e),alt:e.name||``,width:`1920`,height:`1080`,decoding:`async`,fetchpriority:`high`,class:`absolute inset-0 h-full w-full object-cover transition [transition-duration:1.1s] ease-out group-hover/feature:scale-[1.06] group-hover/feature:brightness-110`},null,8,lM)):(B(),_(`div`,uM)),t[4]||(t[4]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-0 bg-gradient-to-r from-black/80 via-black/25 to-transparent lg:from-black/60 lg:via-transparent lg:to-transparent`},null,-1)),t[5]||(t[5]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-0 bg-gradient-to-t from-slate-950 via-trans
72parent to-transparent lg:hidden`},null,-1)),t[6]||(t[6]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute -left-24 top-0 h-64 w-64 rotate-12 bg-gradient-to-br from-white/15 to-transparent opacity-40 blur-2xl`},null,-1))]),y(`div`,dM,[y(`div`,fM,[y(`div`,pM,[y(`span`,mM,z(a.videoLabel),1),e.is_free?(B(),_(`span`,hM,z(i.lang===`sv`?`Fri`:`Free`),1)):(B(),_(`span`,gM,[t[7]||(t[7]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`h-3 w-3`},[y(`path`,{"fill-rule":`evenodd`,d:`M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z`,"clip-rule":`evenodd`})],-1)),w(` `+z(i.lang===`sv`?`Låst`:`Locked`),1)]))]),e.name?(B(),_(`h3`,_M,[y(`span`,vM,z(e.name),1)])):I(``,!0),e.description?(B(),_(`div`,{key:1,class:`feature-slide-desc mt-3 text-pretty text-sm leading-relaxed text-slate-300 sm:mt-4 sm:text-base [&_a]:text-blue-300 [&_a]:underline [&_a]:decoration-blue-500/50 [&_a]:underline-offset-2 [&_p]:mb-1 [&_p:last-child]:mb-0`,innerHTML:e.description},null,8,yM)):I(``,!0)]),y(`div`,bM,[y(`span`,xM,[t[8]||(t[8]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`h-5 w-5`},[y(`path`,{d:`M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z`})],-1)),w(` `+z(a.watchCta),1)]),y(`span`,SM,z(a.tapHint),1)])])],8,sM)]))),128))])])])]),a.streamList.length>1?(B(),_(`div`,CM)):I(``,!0)])):(B(),_(`div`,Gj,[y(`p`,Kj,z(a.emptyLabel),1)]))],10,Uj)}var TM=G(Hj,[[`render`,wM],[`__scopeId`,`data-v-6252821d`]]);c();var EM={props:[`group`],data(){return{uniqueId:`id-`+Math.random().toString(36).substr(2,9),lang:config.locale}},mounted(){this.initSlider()},methods:{thumbUrl(e){return!e||!e.image?``:Zv(e.image)},initSlider(){setTimeout(()=>{new Swiper(`#${this.uniqueId} .play-swipers`,{pagination:{el:`#${this.uniqueId} .swiper-pagination-play`,clickable:!0,dynamicBullets:!1},loop:!1,watchOverflow:!0,navigation:{nextEl:`#${this.uniqueId} .swiper-button-next-play`,prevEl:`#${this.uniqueId} .swiper-button-prev-play`},grabCursor:!0,centeredSlides:!0,slidesPerView:1.12,spaceBetween:12,breakpoints:{768:{slidesPerView:2.15,centeredSlides:!1,spaceBetween:20},1024:{slidesPerView:3.15,centeredSlides:!1,spaceBetween:20},1424:{slidesPerView:4,centeredSlides:!1,spaceBetween:20}},speed:500})},100)}}},DM=[`id`],OM={class:`mb-6 flex items-center justify-between gap-4 px-4 sm:px-6 lg:px-8`},kM={class:`text-2xl font-bold tracking-tight text-slate-900 md:text-3xl`},AM={class:`flex items-center gap-2`},jM=[`aria-label`],MM={class:`sr-only`},NM=[`aria-label`],PM={class:`sr-only`},FM={class:`slider-fade-mask slider-track-mobile-bleed relative w-full max-w-full overflow-x-hidden`},IM={class:`swiper play-swipers relative !overflow-visible !px-0 md:!px-6 lg:!px-8`},LM={class:`swiper-wrapper`},RM=[`href`],zM={class:`relative aspect-[16/9] w-full shrink-0 overflow-hidden rounded-2xl bg-slate-200 shadow-md ring-1 ring-slate-900/5 transition duration-300 group-hover:shadow-xl group-hover:ring-blue-500/30`},BM=[`src`,`alt`],VM={class:`absolute left-3 top-3 z-[2]`},HM={key:0,class:`inline-flex items-center gap-1 rounded-full bg-white/90 px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider text-blue-700 shadow-sm ring-1 ring-blue-200/70 backdrop-blur`},UM={key:1,class:`inline-flex items-center gap-1 rounded-full bg-slate-900/70 px-2 py-1 text-[11px] font-semibold uppercase tracking-wider text-white shadow-sm ring-1 ring-white/20 backdrop-blur`,"aria-label":`Locked`},WM={class:`play-slide-caption mt-3 px-4 md:px-1`},GM={class:`line-clamp-2 text-base font-semibold text-slate-900 transition group-hover:text-blue-700`},KM={key:0,class:`mt-1 line-clamp-2 text-sm text-slate-600`};function qM(e,t,n,r,i,a){return B(),_(`div`,{id:i.uniqueId,class:`play-category-slider w-full min-w-0 max-w-full overflow-x-hidden`},[y(`div`,OM,[y(`h2`,kM,z(n.group.name),1),y(`div`,AM,[y(`button`,{type:`button`,class:`swiper-button-prev-play group inline-flex h-11 w-11 items-center justify-center rounded-full border border-blue-200 bg-white text-blue-700 shadow-sm transition hover:border-blue-300 hover:bg-blue-50 hover:text-blue-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 disabled:cursor-not-allowed disabled:opacity-40`,"aria-label":i.lang===`sv`?`Föregående`:`Previous`},[y(`span`,MM,z(i.lang===`sv`?`Föregående`:`Previous`),1),t[0]||(t[0]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-5 w-5 transition group-hover:-translate-x-0.5`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M15.75 19.5 8.25 12l7.5-7.5`})],-1))],8,jM),y(`button`,{type:`button`,class:`swiper-button-next-play group inline-flex h-11 w-11 items-center justify-center rounded-full bg-blue-600 text-white shadow-sm transition hover:bg-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 disabled:cursor-not-allowed disabled:opacity-40`,"aria-label":i.lang===`sv`?`Nästa`:`
72Next`},[y(`span`,PM,z(i.lang===`sv`?`Nästa`:`Next`),1),t[1]||(t[1]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`2`,stroke:`currentColor`,class:`h-5 w-5 transition group-hover:translate-x-0.5`},[y(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`m8.25 4.5 7.5 7.5-7.5 7.5`})],-1))],8,NM)])]),y(`div`,FM,[y(`div`,IM,[y(`div`,LM,[(B(!0),_(O,null,U(n.group.streams.slice().reverse(),e=>(B(),_(`div`,{class:`swiper-slide !flex !h-auto flex-col`,key:e.id},[y(`a`,{href:`/`+i.lang+`/stream/`+e.id,class:`group flex min-h-0 flex-col`},[y(`div`,zM,[a.thumbUrl(e)?(B(),_(`img`,{key:0,src:a.thumbUrl(e),alt:e.name,width:`1280`,height:`720`,decoding:`async`,fetchpriority:`low`,class:`absolute inset-0 z-0 h-full w-full object-cover transition duration-300 group-hover:scale-[1.04]`},null,8,BM)):I(``,!0),t[3]||(t[3]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-1/2 bg-gradient-to-t from-slate-950/55 to-transparent`},null,-1)),y(`div`,VM,[e.is_free?(B(),_(`span`,HM,z(i.lang===`sv`?`Fri`:`Free`),1)):(B(),_(`span`,UM,[t[2]||(t[2]=y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`h-3.5 w-3.5`},[y(`path`,{"fill-rule":`evenodd`,d:`M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z`,"clip-rule":`evenodd`})],-1)),w(` `+z(i.lang===`sv`?`Lås`:`Locked`),1)]))]),t[4]||(t[4]=y(`div`,{class:`pointer-events-none absolute inset-0 z-[2] flex items-center justify-center`},[y(`span`,{class:`flex h-14 w-14 items-center justify-center rounded-full bg-blue-600/95 text-white shadow-lg ring-4 ring-white/30 transition duration-300 group-hover:scale-110 group-hover:bg-blue-500`},[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`ml-0.5 h-6 w-6`},[y(`path`,{d:`M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z`})])])],-1))]),y(`div`,WM,[y(`div`,GM,z(e.name),1),e.description?(B(),_(`div`,KM,z(e.description),1)):I(``,!0)])],8,RM)]))),128))]),t[5]||(t[5]=y(`div`,{class:`swiper-pagination swiper-pagination-play hidden lg:block`},null,-1))])])],8,DM)}var JM=G(EM,[[`render`,qM],[`__scopeId`,`data-v-fded1183`]]),YM=et(tt());c();var XM={props:[`item`],data(){return{groups:[],database:config.id_url,loading:!0}},mounted(){axios.post(this.database+`/api/broadcasts`).then(e=>{this.groups=YM.default.sortBy(e.data.groups,[function(e){return e.description}]),this.loading=!1}).catch(e=>{})}},ZM={class:`w-full flex flex-col gap-y-6 overflow-hidden`};function QM(e,t,n,r,i,a){let o=V(`play-category-slider`);return B(),_(`div`,ZM,[(B(!0),_(O,null,U(i.groups,e=>(B(),_(`ul`,null,[L(o,{group:e},null,8,[`group`])]))),256))])}var $M=G(XM,[[`render`,QM]]);c();var eN={props:[`stream`,`title`,`description`],computed:{imageSrc(){return!this.stream||!this.stream.image?``:Zv(this.stream.image)}}},tN={class:`relative h-full min-h-0 w-full overflow-hidden`},nN=[`src`],rN={key:1,class:`absolute left-3 top-3 z-[3] inline-flex items-center rounded-xl bg-slate-950/55 p-2 text-white ring-1 ring-white/20 backdrop-blur-sm`,"aria-hidden":`true`},iN={class:`absolute inset-0 z-[2] flex flex-col items-center justify-center overflow-hidden px-4`},aN={class:`flex max-w-2xl flex-col items-center justify-center text-center md:px-2`},oN={class:`w-full text-center text-2xl font-bold tracking-tight text-white md:text-4xl lg:text-5xl`},sN={class:`relative mt-3 max-w-xl text-center text-sm leading-relaxed text-blue-100 md:text-lg`},cN={class:`mt-6 flex w-full flex-wrap justify-center gap-3`};function lN(e,t,n,r,i,a){return B(),_(`div`,tN,[a.imageSrc?(B(),_(`img`,{key:0,class:`absolute inset-0 z-0 block h-full w-full object-cover`,src:a.imageSrc,alt:``,width:`1280`,height:`720`,decoding:`async`},null,8,nN)):I(``,!0),t[1]||(t[1]=y(`div`,{class:`absolute inset-0 z-[1] bg-gradient-to-t from-slate-950/90 via-slate-900/55 to-slate-900/35`,"aria-hidden":`true`},null,-1)),n.stream&&!n.stream.is_free?(B(),_(`div`,rN,[...t[0]||(t[0]=[y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,class:`h-5 w-5`},[y(`path`,{"fill-rule":`evenodd`,d:`M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z`,"clip-rule":`evenodd`})],-1)])])):I(``,!0),y(`div`,iN,[y(`div`,aN,[y(`h3`,oN,z(n.title),1),y(`p`,sN,z(n.description),1),y(`div`,cN,[H(e.$slots,`default`)])])])])}var uN=G(eN,[[`render`,lN]]);c();var dN={components:{PlayVideoPlaceholder:uN},props:{slug:String,url:{type:String,default:`/`}},data(){return{title:`Video`,stream:null,streams:[],database:typeof config<`u`?config.id_url:``,language:config.locale,loading:!0}},metaInfo(){return{title:this.title,titleTemplate:`%s - ${config.appName}`}},computed:{group(){return!this.streams||!this.streams.length?null:{name:this.language===`sv`?`Liknande videor`:`Related videos`,streams:this.streams}},urlAuth(){return`${this.database}/login`},urlRegister(){return`${this.database}/register`},urlBuyAccess(){return`${this.database}/register`}}
72,mounted(){let e=encodeURIComponent(this.slug),t=this.database?String(this.database).replace(/\/+$/,``):``;if(!t){this.loading=!1;return}axios.post(`${t}/api/broadcasts/streams/${e}`).then(e=>{this.title=e.data.stream.name,this.stream=e.data.stream,this.streams=e.data.streams,this.loading=!1}).catch(()=>{this.stream=null,this.loading=!1})}},fN={class:`play-stream-content min-w-0 max-w-full overflow-x-hidden`},pN={class:`relative isolate overflow-hidden bg-slate-950`},mN={class:`mx-auto max-w-6xl px-4 py-10 sm:px-6 sm:py-14 lg:px-8 lg:py-16`},hN={class:`relative aspect-[16/9] w-full overflow-hidden rounded-3xl bg-black shadow-2xl ring-1 ring-white/10`},gN={key:0,class:`pointer-events-none absolute bottom-3 left-1/2 z-20 flex -translate-x-1/2 items-center gap-2 rounded-full border border-white/10 bg-slate-950/80 px-3 py-1.5 text-xs font-medium text-blue-100/90 shadow-lg backdrop-blur`,role:`status`,"aria-live":`polite`},_N={key:0,class:`absolute inset-0 min-h-0 overflow-hidden`},vN={key:0,class:`embeded-stream group absolute inset-0 overflow-hidden rounded-3xl bg-black`},yN=[`innerHTML`],bN=[`href`],xN=[`href`],SN=[`href`],CN={key:1,class:`absolute inset-0 flex flex-col items-center justify-center gap-2 bg-slate-900/90 px-6 text-center`},wN={class:`text-base font-semibold text-amber-100`},TN={class:`max-w-md text-sm text-amber-100/80`},EN={key:0,class:`mt-8 max-w-3xl`},DN={class:`flex flex-wrap items-center gap-2`},ON={key:0,class:`inline-flex items-center rounded-full bg-emerald-400/15 px-2.5 py-1 text-xs font-semibold uppercase tracking-wider text-emerald-300 ring-1 ring-inset ring-emerald-400/30`},kN={class:`mt-4 text-3xl font-bold tracking-tight text-white md:text-4xl lg:text-5xl`},AN={key:0,class:`mt-4 text-base leading-relaxed text-blue-100/80 md:text-lg`},jN={key:0,class:`bg-white py-12 lg:py-16 min-w-0 overflow-x-hidden`};function MN(e,t,n,r,i,a){let o=V(`play-video-placeholder`),s=V(`play-category-slider`);return B(),_(`div`,fN,[y(`section`,pN,[t[3]||(t[3]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-0 -z-10`},[y(`div`,{class:`absolute left-1/2 top-0 h-[36rem] w-[42rem] -translate-x-1/2 -translate-y-1/3 rounded-full bg-blue-600/30 blur-3xl`}),y(`div`,{class:`absolute bottom-0 right-0 h-[28rem] w-[28rem] translate-x-1/3 translate-y-1/3 rounded-full bg-blue-400/20 blur-3xl`})],-1)),y(`div`,mN,[y(`div`,hN,[i.loading?(B(),_(`div`,gN,[t[0]||(t[0]=y(`span`,{class:`inline-block h-3.5 w-3.5 animate-spin rounded-full border-2 border-blue-500/30 border-t-blue-400`,"aria-hidden":`true`},null,-1)),w(` `+z(i.language===`sv`?`Laddarâ¦`:`Loadingâ¦`),1)])):I(``,!0),i.loading?I(``,!0):(B(),_(O,{key:1},[i.stream?(B(),_(`div`,_N,[i.stream.url&&i.stream.is_authorized?(B(),_(`div`,vN,[y(`div`,{class:`aspect-[16/9] w-full`,innerHTML:i.stream.url},null,8,yN),t[1]||(t[1]=y(`div`,{"aria-hidden":`true`,class:`pointer-events-none absolute inset-0 rounded-3xl ring-1 ring-inset ring-blue-500/10`},null,-1))])):!i.stream.url&&i.stream.is_authorized?(B(),P(o,{key:1,class:`h-full w-full`,stream:i.stream,title:i.language===`sv`?`Videon är inte redo än`:`Video not ready yet`,description:i.language===`sv`?`Uppspelning visas här när innehÃ¥llet är tillgängligt. Ladda om sidan om inget händer.`:`Playback will appear here when the content is available. Try refreshing the page.`},null,8,[`stream`,`title`,`description`])):!i.stream.is_authorized&&!i.stream.is_authenticated?(B(),P(o,{key:2,class:`h-full w-full`,stream:i.stream,title:i.language===`sv`?`Du behöver köpa access`:`You need to buy access`,description:i.language===`sv`?`För att se den här videon behöver du ha ett konto och köpa access. Har du redan konto kan du logga in â annars skapar du ett konto.`:`To watch this video you need an account and purchased access. Log in if you already have an account, or create one below.`},{default:u(()=>[y(`a`,{href:a.urlAuth,target:`_blank`,rel:`noopener noreferrer`,class:`inline-flex w-full items-center justify-center rounded-xl bg-blue-500 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-blue-900/30 transition hover:bg-blue-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-300 sm:w-auto`},z(i.language===`sv`?`Logga in`:`Log in`),9,bN),y(`a`,{href:a.urlRegister,target:`_blank`,rel:`noopener noreferrer`,class:`inline-flex w-full items-center justify-center rounded-xl border border-white/25 bg-white/10 px-5 py-2.5 text-sm font-semibold text-white backdrop-blur transition hover:bg-white/20 focu
72s-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:w-auto`},z(i.language===`sv`?`Skapa konto`:`Create account`),9,xN)]),_:1},8,[`stream`,`title`,`description`])):!i.stream.is_authorized&&i.stream.is_authenticated?(B(),P(o,{key:3,class:`h-full w-full`,stream:i.stream,title:i.language===`sv`?`Du behöver köpa access`:`You need to buy access`,description:i.language===`sv`?`För att se den här videon behöver du köpa access. Använd knappen nedan för att fortsätta.`:`To watch this video you need to purchase access. Use the button below to continue.`},{default:u(()=>[y(`a`,{href:a.urlBuyAccess,target:`_blank`,rel:`noopener noreferrer`,class:`inline-flex w-full items-center justify-center rounded-xl bg-blue-500 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-blue-900/30 transition hover:bg-blue-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-300 sm:w-auto`},z(i.language===`sv`?`Köp access`:`Buy access`),9,SN)]),_:1},8,[`stream`,`title`,`description`])):I(``,!0)])):(B(),_(`div`,CN,[y(`p`,wN,z(i.language===`sv`?`Det gick inte att ladda videon`:`Could not load the video`),1),y(`p`,TN,z(i.language===`sv`?`Kontrollera din uppkoppling och ladda om sidan. Om problemet kvarstår, försök igen senare.`:`Check your connection and reload the page. If the problem persists, try again later.`),1)]))],64))]),!i.loading&&i.stream?(B(),_(`div`,EN,[y(`div`,DN,[t[2]||(t[2]=y(`span`,{class:`inline-flex items-center gap-1.5 rounded-full bg-blue-500/15 px-2.5 py-1 text-xs font-semibold uppercase tracking-wider text-blue-300 ring-1 ring-inset ring-blue-400/30`},[y(`span`,{class:`h-1.5 w-1.5 rounded-full bg-blue-400`}),w(` Video `)],-1)),i.stream.is_free?(B(),_(`span`,ON,z(i.language===`sv`?`Fri tillgång`:`Free access`),1)):I(``,!0)]),y(`h1`,kN,z(i.stream.name),1),i.stream.description?(B(),_(`p`,AN,z(i.stream.description),1)):I(``,!0)])):I(``,!0)])]),a.group&&!i.loading?(B(),_(`section`,jN,[L(s,{group:a.group},null,8,[`group`])])):I(``,!0)])}var NN=G(dN,[[`render`,MN],[`__scopeId`,`data-v-15c124d9`]]),PN={reset:!1,submitting:!1,user:!1,success:!1,showError:!1,error:0,showSignIn:!1,email:null,password:null,loadingSignIn:!1,signInError:()=>({}),prefill:!0};function FN(e){return function(...t){let n=cx.current,r=n&&n[e];if(typeof r==`function`)return r.apply(n,t)}}function IN(e){let t=e.config.globalProperties;Object.keys(PN).forEach(function(e){Object.defineProperty(t,e,{get(){let t=cx.current;if(!t){let t=PN[e];return typeof t==`function`?t():t}return t[e]},set(t){let n=cx.current;n&&(n[e]=t)},enumerable:!0,configurable:!0})}),t.onComplete=FN(`onComplete`),t.resetForm=FN(`resetForm`),t.login=FN(`login`),t.signin=FN(`signin`),t.updateprefill=FN(`updateprefill`)}c();var $=d({});IN($);var LN={};Object.defineProperty($.config.globalProperties,"formData",{get(){return yS.current??LN},enumerable:!0,configurable:!0}),$.config.globalProperties.getHideClass=bS,$.config.globalProperties.hasError=yx,$.config.globalProperties.hasRequired=bx,$.config.globalProperties.hasEmail=xx,$.config.globalProperties.hasMax=Sx,$.config.globalProperties.hasPersonnummer=Cx,$.config.globalProperties.hasTrue=wx,$.use(Ua,{directives:Wa}),$.component(`page-component`,eo),$.component(`post-component`,uo),$.component(`cards-slider-component`,nA),$.component(`nav-component`,mo),$.component(`desktop-nav-search`,So),$.component(`subnav-component`,To),$.component(`search-component`,Ss),$.component(`search-page`,og),$.component(`posts-component`,xg),$.component(`category-posts-component`,Lg),$.component(`testimonial-component`,m_),$.component(`metrics-component`,U_),$.component(`live-countdown-component`,Q_),$.component(`countdown-hero-component`,Ev),$.component(`divider-component`,Pv),$.component(`nav-menu-component`,Gv),$.component(`picdivider-component`,Xv),$.component(`play-component`,Sy),$.component(`accordion-component`,Fy),$.component(`image-component`,zy),$.component(`newsletter-component`,qy),$.component(`account-component`,eb),$.component(`alert-component`,pb),$.component(`alert-small-component`,Sb),$.component(`icon`,Mb),$.component(`form-component`,zS),$.component(`form-wizard`,cS),$.component(`tab-content`,fS),$.component(`input-field`,_S),$.component(`input-error`,Ae),$.component(`user`,pS),$.component(`switch-component`,YS),$.component(`select-assignment-component`,eC),$.component(`assignments-component`,TC),$.component(`cupmanager-matches-component`,Nw),$.component(`featured-teams-component`,qw),$.component(`featured-team-detail-component`,rE),$.component(`hotels-component`,bD),$.component(`hotel-detail-component`,QD),$.component(`hall-of-fame-component`,CO),$.component(`plate-challenge-component`,ek),$.component(`prepopulate-component`,ik),$.component(`form-upload`,_k),$.component(`slider-component`,Gk),$.component(`gothia-card-offers-browser`,BA),$.component(`highlights-timeline-component`,ij),$.component(`promo-dual-component`,Vj),$.component(`play-feature-slider`,TM),$.component(`play-category-slider`,JM),$.component(`play-category-list`,$M),$.component(`play-stream-content`,NN),window.addEventListener(`load`,()=>{$.mount(`#app`)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.