1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/_nuxt/chunks/BonusToplist-BI7fnD9s.js","/_nuxt/chunks/pinia-DwddtulJ.js","/_nuxt/chunks/modalOverlayHandler-CQCsROgF.js","/_nuxt/chunks/index-Ct5UzjG2.js","/_nuxt/chunks/httpClient-S4L5wE_h.js","/_nuxt/chunks/arcadeFilters-DfofibbP.js","/_nuxt/chunks/environment-C2i0ZCrL.js","/_nuxt/chunks/BonusCard-qk3XAKXN.js","/_nuxt/chunks/viewport-AweakSXK.js","/_nuxt/chunks/Tooltip-CusMHiQ6.js","/_nuxt/chunks/ssr-registry-B48OwYJw.js","/_nuxt/Tooltip-DF10vfB3.css","/_nuxt/chunks/authors-DIDegHn-.js","/_nuxt/chunks/sprite-K44gb4vE.js","/_nuxt/chunks/resolve-ontario-regulated-DQcFzYmf.js","/_nuxt/chunks/settings-6nMneq24.js","/_nuxt/chunks/VImage-C_FLHAjQ.js","/_nuxt/settings-pk6_xnCY.css","/_nuxt/chunks/GallerySection-PA5f_F-d.js","/_nuxt/chunks/CustomSlider-DeRfoiLN.js","/_nuxt/chunks/Button-CxIVoTHZ.js","/_nuxt/CustomSlider-cooD25op.css","/_nuxt/chunks/ContentBlock-CPKmVB_n.js","/_nuxt/chunks/Divider-lK2stz0O.js","/_nuxt/ContentBlock-BP2L8bVL.css","/_nuxt/chunks/IconClose-CQe4YLUw.js","/_nuxt/GallerySection-BswwY8Mc.css","/_nuxt/BonusToplist-DwZvAoCI.css","/_nuxt/chunks/ExpertPanelCasinos-DA41bod4.js","/_nuxt/ExpertPanelCasinos-riIkvBmj.css","/_nuxt/chunks/HowWeRate-iaDTX1FS.js","/_nuxt/chunks/List-Y3VFxyWQ.js","/_nuxt/List-BWUrQvIO.css","/_nuxt/HowWeRate-DVPHuDnP.css","/_nuxt/chunks/Blacklist-BdJc-Feh.js","/_nuxt/chunks/Banner-CdS2xHCa.js","/_nuxt/chunks/Skeleton-BypPyt7O.js","/_nuxt/Skeleton-CSCcDasN.css","/_nuxt/chunks/IconTimeClock-BiGoruVD.js","/_nuxt/chunks/FooterAccent-CX8bEJdp.js","/_nuxt/chunks/IconFacebook-oplvpg5A.js","/_nuxt/chunks/primitives-color-overwrites-C4Rv4rSC.js","/_nuxt/chunks/footer-CVKE_NZL.js","/_nuxt/FooterAccent-CjhA-IJN.css"])))=>i.map(i=>d[i]); 2import{S as es,q as Te,s as vn,C as pn,r as Xi,d as $r,n as ad,_ as Yt}from"./chunks/index-Ct5UzjG2.js";import{a0 as g,i as x,f as v,a4 as w,g as S,W as z,ab as B,o as Z,a7 as k,p as P,h as A,F as H,a3 as wt,S as K,a2 as Y,V as Rt,a5 as Pn,R as ce,ac as tt,Y as Le,m as bl,n as jt,U as ye,X as ld,q as cd,v as dd}from"./chunks/pinia-DwddtulJ.js";import{u as Ue,b as se}from"./chunks/modalOverlayHandler-CQCsROgF.js";import{u as ge,w as et,f as ts,v as ud,d as _n,b as hd,e as yl}from"./chunks/viewport-AweakSXK.js";import{B as Ji,I as vl,x as Qi,f as _l,b as xl,al as er,C as wl,Y as Ft,O as Oi,N as kl,$ as Cl,T as ss,F as pd,u as tr,y as nr,g as fd,c as sr,D as gd,p as Sl,aq as ir,M as Tl,A as md,ak as Pl,P as bd,ao as yd,r as vd,z as _d,a as xd,E as wd,l as Al,e as rr,d as or,G as kd,S as Cd,h as Sd,ag as be,ad as Dt,ac as Ol,am as Td,i as Pd,o as Ad,q as Od,a9 as Md,m as Ld,ap as Id,a5 as Rd,af as Dd,ab as Fd,s as Bd,ae as Ed,a6 as $d,aa as Nd,an as zd,a8 as jd,ah as Vd,ar as Gd,k as Hd,j as Wd,ai as Ud,n as qd,a7 as Yd}from"./chunks/GallerySection-PA5f_F-d.js";import{R as St,C as Zd}from"./chunks/ContentBlock-CPKmVB_n.js";import{_ as Tt}from"./chunks/sprite-K44gb4vE.js";import{_ as O,r as Kd}from"./chunks/ssr-registry-B48OwYJw.js";import{F as Pt,P as Xd,R as Ml}from"./chunks/settings-6nMneq24.js";import{g as fe,I as Ll}from"./chunks/IconClose-CQe4YLUw.js";import{B as me}from"./chunks/Button-CxIVoTHZ.js";import{d as re,i as ae,s as is,c as ar}from"./chunks/environment-C2i0ZCrL.js";import{V as W}from"./chunks/VImage-C_FLHAjQ.js";import{a as Jd,L as Vt,A as Ne,C as Gt}from"./chunks/CustomSlider-DeRfoiLN.js";import{i as Mi,r as Qd,b as eu,a as tu}from"./chunks/resolve-ontario-regulated-DQcFzYmf.js";import{D as bs}from"./chunks/Divider-lK2stz0O.js";import{S as nu,I as su,a as iu,b as Il}from"./chunks/IconAdd-Vv-KOzLZ.js";import{g as Rl,I as ru,G as ou}from"./chunks/GameTile-x2O40DD_.js";import{C as Dl}from"./chunks/ClientOnly-DneO-HaV.js";import{T as An}from"./chunks/Tooltip-CusMHiQ6.js";import{I as On,a as Nr}from"./chunks/authors-DIDegHn-.js";import{I as au}from"./chunks/IconTimeClock-BiGoruVD.js";import{c as xn}from"./chunks/primitives-color-overwrites-C4Rv4rSC.js";import{S as lu}from"./chunks/Skeleton-BypPyt7O.js";import{f as cu}from"./chunks/footer-CVKE_NZL.js";import"./chunks/httpClient-S4L5wE_h.js";import"./chunks/arcadeFilters-DfofibbP.js";const du={name:"IconCup",props:{width:{type:[String,Number],default:16},height:{type:[String,Number],default:17}}},uu=Tt+"#icon-cup",hu=["width","height"];function pu(e,t,n,s,r,i){return g(),x("svg",{width:n.width,height:n.height,fill:"currentColor"},[...t[0]||(t[0]=[v("use",{href:uu},null,-1)])],8,hu)}const fu=O(du,[["render",pu]]),gu={name:"CommercialRowPartnerInfo",components:{Badge:Ji,Rating:St,IconCup:fu,Favicon:Pt},props:{partnerData:{type:Object,default:()=>({})},partnerLogo:{type:String,default:""},favIconSize:{type:String,default:"md"},favIconBlur:{type:String,default:""},indexNum:{type:Number,default:1},showRanking:{type:Boolean,default:!0},displaylPayersFavoriteBadge:{type:Boolean,default:!1},badgeSize:{type:String,default:"md"},playerFavourite:{type:String,default:""},isEstablished:{type:[Boolean,String,Number],default:!1},establishedIn:{type:String,default:""},isRating:{type:[Boolean,String,Number],default:!1},rating:{type:Number,default:void 0}},computed:{partnerDisplayName(){return fe(this.partnerData)}}},mu={class:"md:col-start-1 md:col-end-3 lg:col-start-1 lg:col-end-2 content-center lg:w-[218px] xl:w-[258px] shrink-0"},bu={class:"flex flex-col gap-md lg:gap-3xl lg:justify-between lg:flex-row"},yu={class:"flex gap-md"},vu={class:"flex flex-row gap-md"},_u={class:"relative"},xu={key:1,class:"rounded-pill w-[64px] h-[64px] lg:w-[80px] lg:h-[80px] background-elevation-3"},wu={class:"text-foreground-2 text-sm md:text-md font-bold leading-150"},ku={key:1,class:"text-foreground-2 body-sm leading-150"};function Cu(e,t,n,s,r,i){const o=w("Favicon"),a=w("IconCup"),c=w("Badge"),l=w("Rating");return g(),x("div",mu,[v("div",bu,[v("div",yu,[v("div",vu,[v("div",_u,[n.partnerLogo?(g(),S(o,{key:0,size:n.favIconSize,"image-path":n.partnerLogo,"image-name":`${i.partnerDisplayName||""} logo`,mode:"circular",blur:n.favIconBlur,ranking:n.showRanking,"ranking-number":n.indexNum,lazy:!1,"custom-size":e.isMobile||e.
2isTablet?80:100},null,8,["size","image-path","image-name","blur","ranking","ranking-number","custom-size"])):(g(),x("div",xu))]),v("div",{class:z(["flex flex-col gap-2xs self-start justify-center h-full font-bold",{relative:n.displaylPayersFavoriteBadge}])},[n.displaylPayersFavoriteBadge?(g(),S(c,{key:0,size:n.badgeSize,color:"primary",theme:"reverted",corner:"bottom",type:"icon",class:"absolute -top-[16px] md:-top-[25px] xl:-top-[26px] left-0 whitespace-nowrap"},{icon:B(()=>[P(a)]),default:B(()=>[Z(" "+k(n.playerFavourite),1)]),_:1},8,["size"])):A("",!0),v("span",wu,k(i.partnerDisplayName),1),n.isEstablished?(g(),x("span",ku,k(n.establishedIn)+" "+k(n.partnerData.phoenix.attributes.established),1)):A("",!0),n.isRating?(g(),S(l,{key:2,rating:n.rating,variant:"single",text:""},null,8,["rating"])):A("",!0)],2)])])])])}const Su=O(gu,[["render",Cu]]),Tu={name:"CommercialRowOfferPreview",props:{partnerData:{type:Object,default:()=>({})}},computed:{titlePreview(){return this.partnerData?.phoenix?.attributes?.toplistOffer?.attributes?.titlePreview||""}}},Pu={class:"md:col-start-1 md:col-end-3 lg:col-start-2 lg:col-end-3 content-center"},Au={class:"text-foreground-accent title-xs old-link-color"};function Ou(e,t,n,s,r,i){return g(),x("div",Pu,[v("div",Au,k(i.titlePreview),1)])}const Mu=O(Tu,[["render",Ou],["__scopeId","data-v-d36b05ac"]]),Lu={name:"RowActionButtons",components:{Button:me,PromoButton:Xd,IconArrowDown:vl},props:{partnerData:{type:Object,default:()=>({})},partnerName:{type:String,default:""},affiliateLink:{type:String,default:""},toplistData:{type:[Object,String,Array],default:()=>({})},bonusCode:{type:String,default:""},showPromoButton:{type:Boolean,default:!1},promoId:{type:[String,Number],default:""},textButton:{type:String,default:""},moreInfo:{type:String,default:""},isCollapsibleOpen:{type:Boolean,default:!1}},emits:["promo-click","affiliate-click","toggle-more-info"],computed:{ariaLabelGetBonusButton(){return this.$t("buttonAriaLabel.getBonusButton")},shouldShowPromoButton(){const e=re(n=>n.location.pathname==="/payments/interac/",!1),t=this.partnerName==="Boho Casino";return this.showPromoButton&&!(e&&t)}}},Iu={class:"md:col-start-1 md:col-end-3 lg:col-start-4 lg:col-end-5 content-center"},Ru={class:"flex flex-col justify-center md:flex-col gap-xs"},Du={key:0,class:"lg:min-w-[125px]"},Fu={class:"lg:min-w-[125px]"},Bu={class:"lg:min-w-[125px]"};function Eu(e,t,n,s,r,i){const o=w("PromoButton"),a=w("Button"),c=w("IconArrowDown");return g(),x("div",Iu,[v("div",Ru,[n.showPromoButton&&n.bonusCode?(g(),x("div",Du,[i.shouldShowPromoButton?(g(),S(o,{key:0,id:n.promoId||void 0,size:"MD","full-width":"","code-text":n.bonusCode,"data-aa-tracker":`Button to bonus code of ${n.partnerName}`,onClick:t[0]||(t[0]=l=>e.$emit("promo-click"))},null,8,["id","code-text","data-aa-tracker"])):A("",!0)])):A("",!0),v("div",Fu,[P(a,{tag:"a",size:"MD","data-aa-tracker":`Link to casino ${n.partnerName}`,href:n.affiliateLink||null,disabled:!n.affiliateLink,variant:"primary",full:"",rel:"noopener noreferrer nofollow",class:"contents w-full",target:"_blank","toplist-response-id":n.partnerData.toplistResponseId,"toplist-link-id":n.affiliateLink||null,"toplist-data":n.toplistData,"aria-label":`${i.ariaLabelGetBonusButton} ${n.partnerName}`,onClick:t[1]||(t[1]=l=>n.affiliateLink&&e.$emit("affiliate-click"))},{default:B(()=>[Z(k(n.textButton),1)]),_:1},8,["data-aa-tracker","href","disabled","toplist-response-id","toplist-link-id","toplist-data","aria-label"])]),v("div",Bu,[P(a,{variant:"ghost",size:"MD",collapsible:"",icon:"",full:"","icon-position":"right",class:"font-bold contents w-full","data-aa-tracker":"Open more info "+n.moreInfo,onClick:t[2]||(t[2]=l=>e.$emit("toggle-more-info",!n.isCollapsibleOpen))},{"icon-right":B(()=>[P(c,{class:"text-ghost-foreground hover:text-ghost-foreground","arrow-up-color":"text-ghost-foreground hover:text-ghost-foreground","arrow-up":n.isCollapsibleOpen},null,8,["arrow-up"])]),default:B(()=>[Z(k(n.moreInfo)+" ",1)]),_:1},8,["data-aa-tracker"])])])])}const $u=O(Lu,[["render",Eu]]),Nu={name:"Experiment6011Rank",components:{Ranking:Ml},props:{indexNum:{type:Number,default:1},featured:{type:Boolean,default:!1}}},zu={class:"experiment-6011__rank-text experiment-6011__rank-text--featured"},ju={key:1,class:"experiment-6011__rank-text experiment-6011__rank-text--corner"};function Vu(e,t,n,s,r,i){const o=w("Ranking");return g(),x("div",{class:z(["experiment-6011__rank",n.featured?"experiment-6011__rank--featured":"experiment-6011__rank--corner"])},[n.featured?(g(),x(H,{key:0},[P(o,{"ranking-number":n.indexNum,size:"md"},null,8,["ranking-number"]),v("span",zu,k(e.$t("commercialRow.topCasino")),1)],64)):(g(),x("span",ju,k(n.indexNum),1))],2)}const Gu=O(Nu,[["render",Vu],["__scopeId","data-v-7d6e12c0"]]),Hu={name:"Collapsible",props:{isOpen:{type:Boolean,default:!1},headerExtra:{type:Boolean,default:!1},headerExtraPosition:{type:String,default:""}},data(){return{isCollapsed:!1}},methods:{toggleCollapse(){this.$emit("update:isOpen",!this.isOpen)}}},Wu={class:"w-full relative"},Uu={class:"grid 2xs:grid-cols-1 md:grid-cols-2 2xs:gap-sm md:gap-0 items-center"},qu={key:0},Yu={key:0,class:"collapse-content"};function Zu(e,t,n,s,r,i){return g(),x("div",Wu,[v("div",Uu,[n.headerExtra&&n.headerExtraPosition==="right"?(g(),x("div",qu,[wt(e.$slots,"header")])):A("",!0)]),n.isOpen?(g(),x("div",Yu,[wt(e.$slots,"content")])):A("",!0),v("div",null,[wt(e.$slots,"header")])])}const Ku=O(Hu,[["render",Zu]]),Xu={name:"Block",props:{bgColor:{type:String,default:""},title:{type:String,default:""}}},Ju={key:0,class:"body-sm 2xs:leading-120 md:leading-150 font-bold text-foreground-2"},Qu={class:"body-sm 2xs:leading-120 md:leading-150 font-regular text-foreground-2"};function eh(e,t,n,s,r,i){return g(),x("div",{class:z(["flex flex-col flex-start gap-fluid-sm p-fluid-md rounded-ui-sm md:rounded-ui-md text-foreground-2",n.bgColor])},[n.title?(g(),x("span",Ju,k(n.title),1)):A("",!0),v("div",Qu,[wt(e.$slots,"block-content")])],2)}const th=O(Xu,[["render",eh]]),Ms={desktop:{badgesShown:14},tablet:{badgesShown:8},mobile:{badgesShown:9}},Ls={desktop:{badgesShown:15},tablet:{badgesShown:9},mobile:{badgesShown:13}},nh={name:"AdditionalInfoToplist",components:{Bullet:xl,Block:th,VImage:W,Link:Vt,IconArrowAltRight:Jd,IconFlag:_l},props:{partnerData:{type:Object,default:()=>{}},variant:{type:String,default:"default"},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},affiliateLink:{type:String,default:""},classes:{type:String,default:""}},data(){return{bankingOptions:this.$t("additionalInfo.bankingOptions"),gamesAvailable:this.$t("additionalInfo.gamesAvailable"),bonusInformation:this.$t("additionalInfo.bonusInformation"),licenced:this.$t("commercialRow.licenced"),providersAvailable:this.$t("additionalInfo.providersAvailable"),bonusWageringLabel:this.$t("wagering"),minDeposit:this.$t("minDeposit"),timeToWagerLabel:this.$t("additionalInfo.timeToWager"),vipHighRollersTitle:this.$t("additionalInfo.vipHighRollers"),customerServiceTitle:this.$t("additionalInfo.customerService"),mobileAp
2p:this.$t("additionalInfo.mobileApp"),availableFor:this.$t("additionalInfo.availableFor"),thingsToKnow:this.$t("additionalInfo.thingsToKnow"),rtp:this.$t("commercialRow.rtp"),payout:this.$t("commercialRow.payout"),games:this.$t("commercialRow.games"),gameTypesNames:this.$tm("gameTypes"),casino:this.$t("additionalInfo.review"),liveChatLabel:this.$t("liveChat"),availableLabel:this.$t("available"),tabletLabel:this.$t("tablet"),bonusRegulationText:this.$t("bonusRegulationText"),visitCasino:this.$t("commercialRow.visitCasino"),ontarioText:this.$t("additionalInfo.ontario"),albertaText:this.$t("additionalInfo.alberta"),isOntarioPage:re(e=>e.location.pathname.includes("/ontario/"),!1),isAlbertaPage:re(e=>e.location.pathname.includes("/alberta/"),!1),iconSizeMap:Mi}},computed:{...K(ge,["width","isMobile","isLargeDesktop"]),paymentMethods(){return this.partnerData?.phoenix?.attributes?.paymentMethod},formattedLicense(){const e=this.partnerData.phoenix.attributes.license;return e.length>0?e.join(", "):"-"},gameTypes(){const e=this.partnerData?.phoenix?.attributes?.gameType||[];if(e.length>0){const n=e.map(s=>typeof this.gameTypesNames=="object"&&this.gameTypesNames!==null&&s in this.gameTypesNames?this.gameTypesNames[s].toLowerCase():s).join(", ");return n.charAt(0).toUpperCase()+n.slice(1)}return"-"},gameProviders(){return this.partnerData?.phoenix?.attributes?.softwareProvider},isTablet(){return this.width>=768&&this.width<1440},isDesktop(){return this.isLargeDesktop},providersToShow(){let e;return this.isMobile?e=Ls.mobile:this.isTablet?e=Ls.tablet:e=Ls.desktop,e.badgesShown},moreProviders(){const e=Number(this.partnerData.phoenix.attributes.softwareProvider.length);let t=0;return e>this.providersToShow&&(t=e-this.providersToShow),t},paymentsToShow(){let e;return this.isMobile?e=Ms.mobile:this.isTablet?e=Ms.tablet:e=Ms.desktop,e.badgesShown},morePayments(){const e=Number(this.partnerData.phoenix.attributes.paymentMethod.length);let t=0;return e>this.paymentsToShow&&(t=e-this.paymentsToShow),t},hasReviewLink(){return this.reviewLink&&this.reviewLink.length>0},titleBlockOne(){return this.variant==="thingsToKnow"?this.thingsToKnow:this.bankingOptions},customerService(){const e=this.partnerData?.phoenix?.attributes?.support,t=this.partnerData?.phoenix?.attributes?.supportEmail;let n="-";return e&&e.length>0&&(n=e.map((r,i)=>{const o=r.support_name.toLowerCase().replace("live chat",this.liveChatLabel).toLowerCase();return i===0?o.charAt(0).toUpperCase()+o.slice(1):o}).join(", ")+(t?` | ${t}`:"")||"-"),n},vipHighRollers(){return(this.partnerData?.supplement?.VIPHighRollerOffers||"-").replace("Available",this.availableLabel)},toplistOffer(){return this.partnerData?.phoenix?.attributes?.toplistOffer},bonusWagering(){return this.toplistOffer?.attributes?.bonusWagering},minimumDeposit(){const e=this.partnerData?.phoenix?.attributes?.depositLimit;return e?`$${e}`:"-"},bonusValidFor(){return this.toplistOffer?.attributes?.bonusValidFor},isCompatibility(){return this.partnerData?.phoenix?.attributes?.compatibility},casinoRTP(){return this.partnerData?.phoenix?.attributes?.casinoRtp||"-"},payoutTime(){return this.partnerData?.phoenix?.attributes?.payoutTime||""},gamesNumber(){return this.partnerData?.phoenix?.attributes?.games?.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")||"-"},partnerName(){const e=fe(this.partnerData)||"-";return this.isOntarioPage||this.ontarioRegulated?`${e} ${this.ontarioText}`:this.isAlbertaPage||this.albertaRegulated?`${e} ${this.albertaText}`:e},reviewLink(){return this.isOntarioPage||this.ontarioRegulated||this.isAlbertaPage||this.albertaRegulated?er(this.partnerData,{ontarioRegulated:this.ontarioRegulated,albertaRegulated:this.albertaRegulated,isOntarioPage:this.isOntarioPage,isAlbertaPage:this.isAlbertaPage}):this.$t("locale")==="fr"||this.$t("locale")==="fr-CA"?this.partnerData?.reviewLink?.fr||"":this.partnerData?.reviewLink?.link||this.partnerData?.siteLink}},methods:{providerName(e){let t=e.replace(/ /g,"-");return t.includes("'")&&(t=t.replace(/'/g,"")),t},getDataToplistDataAttribute:Qi}},sh={class:"flex flex-col"},ih={class:"grid grid-cols-1 lg:grid-cols-3 gap-xs md:gap-md"},rh={key:0},oh={key:0,class:"flex flex-row flex-wrap gap-xs"}
2,ah={key:0,class:"self-center"},lh={key:1},ch={key:1},dh={class:"flex flex-col items-start gap-xs text-foreground-2"},uh={class:"ml-xs text-2xs md:text-xs text-foreground-2 leading-120 md:leading-150"},hh={class:"ml-xs text-2xs md:text-xs text-foreground-2 leading-120 md:leading-150"},ph={class:"ml-xs text-2xs md:text-xs text-foreground-2 leading-120 md:leading-150"},fh={class:"flex flex-col gap-xs lg:gap-md"},gh={class:"flex flex-col gap-xs"},mh={class:"body-sm 2xs:leading-120 md:leading-150 font-bold text-foreground-2"},bh={class:"flex flex-row flex-wrap gap-xs"},yh={class:"flex flex-col gap-xs"},vh={class:"body-sm 2xs:leading-120 md:leading-150 font-bold text-foreground-2"},_h={key:0,class:"flex flex-row flex-wrap gap-xs"},xh={key:0,class:"self-center"},wh={key:1},kh={key:0},Ch={class:"flex flex-col gap-xs"},Sh={class:"flex justify-between items-center"},Th={key:0},Ph={key:1},Ah={class:"flex justify-between items-center"},Oh={class:"flex justify-between items-center"},Mh={key:0},Lh={key:1},Ih={key:1},Rh={key:0,class:"flex flex-row flex-wrap"},Dh={key:1},Fh={class:"body-xs 2xs:gap-2xs md:gap-xs leading-120 text-foreground-3"},Bh={key:0,class:"flex flex-row justify-end lg:pt-lg"};function Eh(e,t,n,s,r,i){const o=w("VImage"),a=w("Bullet"),c=w("Block"),l=w("Link"),d=w("IconFlag"),u=w("IconArrowAltRight");return g(),x("div",sh,[v("div",ih,[P(c,{"bg-color":"background-elevation-3 body-sm border-sm color-stroke-elevation",title:i.titleBlockOne},{"block-content":B(()=>[n.variant==="default"?(g(),x("div",rh,[i.paymentMethods?(g(),x("div",oh,[(g(!0),x(H,null,Y(n.partnerData.phoenix.attributes.paymentMethod.slice(0,i.paymentsToShow),(h,f)=>(g(),x("div",{key:f},[P(o,{class:z(["image-rounded",["w-[38px] h-[24px] md:w-[60px] md:h-[37px] rounded-[6px]"]]),width:e.isMobile?38:60,height:e.isMobile?24:37,src:`/images/logos/badges/payment/light/${h.paymentMethodName.toLowerCase()}.svg`,alt:h.paymentMethodName},null,8,["width","height","src","alt"])]))),128)),i.morePayments>0?(g(),x("span",ah," +"+k(i.morePayments),1)):A("",!0)])):(g(),x("p",lh,"-"))])):A("",!0),n.variant==="thingsToKnow"?(g(),x("div",ch,[v("div",dh,[P(a,{variant:"check"},{default:B(()=>[v("p",uh,k(r.rtp)+": "+k(i.casinoRTP),1)]),_:1}),P(a,{variant:"check"},{default:B(()=>[v("p",hh,k(r.payout)+": "+k(i.payoutTime),1)]),_:1}),P(a,{variant:"check"},{default:B(()=>[v("p",ph,k(r.games)+": "+k(i.gamesNumber),1)]),_:1})])])):A("",!0)]),_:1},8,["title"]),P(c,{"bg-color":"background-elevation-3 border-sm color-stroke-elevation"},{"block-content":B(()=>[v("div",fh,[v("div",gh,[v("span",mh,k(r.gamesAvailable),1),v("div",bh,[v("p",null,k(i.gameTypes),1)])]),v("div",yh,[v("span",vh,k(r.providersAvailable),1),i.gameProviders.length>0?(g(),x("div",_h,[(g(!0),x(H,null,Y(n.partnerData.phoenix.attributes.softwareProvider.slice(0,i.providersToShow),(h,f)=>(g(),x("div",{key:f},[P(o,{src:`/images/logos/badges/game-providers/mini-logos/dark/${i.providerName(h.name.toLowerCase())}.svg`,width:e.isMobile?24:32,height:e.isMobile?24:32,alt:h.name,class:z(["h-[24px] md:h-[32px]"])},null,8,["src","width","height","alt"])]))),128)),i.moreProviders>0?(g(),x("span",xh," +"+k(i.moreProviders),1)):A("",!0)])):(g(),x("div",wh,"-"))])])]),_:1}),P(c,{"bg-color":"background-elevation-3 border-sm color-stroke-elevation",title:r.bonusInformation},{"block-content":B(()=>[!n.ontarioRegulated&&!n.albertaRegulated?(g(),x("div",kh,[v("div",Ch,[v("div",Sh,[v("p",null,k(r.bonusWageringLabel),1),i.bonusWagering?(g(),x("p",Th,k(i.bonusWagering),1)):(g(),x("p",Ph,"-"))]),t[0]||(t[0]=v("hr",{class:"border-sm background-stroke-2 my-0"},null,-1)),v("div",Ah,[v("p",null,k(r.minDeposit),1),v("p",null,k(i.minimumDeposit),1)]),t[1]||(t[1]=v("hr",{class:"background-stroke-2 my-0"},null,-1)),v("div",Oh,[v("p",null,k(r.timeToWagerLabel),1),i.bonusValidFor?(g(),x("p",Mh,k(i.bonusValidFor),1)):(g(),x("p",Lh,"-"))])])])):(g(),x("div",Ih,[v("p",null,k(r.bonusRegulationText),1),n.affiliateLink?(g(),S(l,{key:0,href:n.affiliateLink,copy:r.visitCasino,"is-external":"",size:"SM","toplist-response-id":n.partnerData.toplistResponseId,"toplist-link-id":n.affiliateLink,"toplist-data":i.getDataToplistDataAttribute(n.partnerData)},null,8,["href","copy","toplist-response-id","toplist-link-id","toplist-data"])):A("",!0)]))]),_:1},8,["title"]),P(c,{"bg-color":"background-elevation-3 border-sm color-stroke-elevation",title:r.vipHighRollersTitle},{"block-content":B(()=>[Z(k(i.vipHighRollers),1)]),_:1},8,["title"]),P(c,{"bg-color":"background-elevation-3 border-sm color-stroke-elevation",title:r.mobileAp
2p},{"block-content":B(()=>[i.isCompatibility.length>0?(g(),x("div",Rh,[v("p",null,k(r.availableFor),1),t[2]||(t[2]=Z("  ",-1)),(g(!0),x(H,null,Y(n.partnerData.phoenix.attributes.compatibility,(h,f)=>(g(),x("span",{key:f},[Z(k(h.compatibilityName.replace("Tablet",r.tabletLabel))+" ",1),f!==i.isCompatibility.length-1?(g(),x(H,{key:0},[Z(" , ")],64)):A("",!0)]))),128))])):(g(),x("p",Dh,"-"))]),_:1},8,["title"]),P(c,{"bg-color":"background-elevation-3 border-sm color-stroke-elevation",title:r.customerServiceTitle},{"block-content":B(()=>[Z(k(i.customerService),1)]),_:1},8,["title"])]),v("div",{class:z(["flex flex-row 2xs:gap-2xs lg:hidden md:gap-xs items-center",{"pt-md md:pt-lg":!n.partnerData.siteLink,"pt-md lg:pt-0 mb-md md:mb-lg lg:absolute lg:bottom-0 ":n.partnerData.siteLink}])},[P(d),v("div",Fh,[v("span",null,k(r.licenced)+" "+k(i.formattedLicense),1)])],2),i.hasReviewLink?(g(),x("div",Bh,[i.hasReviewLink?(g(),S(l,{key:0,href:i.reviewLink,copy:`${i.partnerName} ${r.casino}`,icon:"","icon-position":"right",size:"SM","data-aa-tracker":`Link to review ${i.partnerName}`},{"icon-right":B(()=>[P(u,{width:r.iconSizeMap.iconLinkSize.XS,height:r.iconSizeMap.iconLinkSize.XS},null,8,["width","height"])]),_:1},8,["href","copy","data-aa-tracker"])):A("",!0)])):A("",!0)])}const $h=O(nh,[["render",Eh]]),Nh={name:"CommercialRow",components:{Bullet:xl,RowPartnerInfo:Su,RowOfferPreview:Mu,RowActionButtons:$u,Experiment6011Rank:Gu,Collapsible:Ku,AdditionalInfoToplist:$h,IconCaFlag:_l,Link:Vt},mixins:[Ne],props:{partnerData:{type:Object,default:()=>({})},index:{type:Number,default:0,required:!1},openCollapsible:{type:Boolean,default:!1},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},ukRegulated:{type:Boolean,default:!1},displaylPayersFavoriteBadge:{type:Boolean,required:!1,default:!1},experiment6011:{type:Boolean,default:!1}},data(){return{establishedIn:this.$t("commercialRow.established-in"),rtp:this.$t("commercialRow.rtp"),payout:this.$t("commercialRow.payout"),games:this.$t("commercialRow.games"),moreInfo:this.$t("commercialRow.moreInfo"),licenced:this.$t("commercialRow.licenced"),visitCasino:this.$t("commercialRow.visitCasino"),getBonus:this.$t("commercialRow.getBonus"),isCollapsibleOpen:this.openCollapsible,termsAndConditionsTitle:this.$t("bonusCard.termsConditions"),isOntarioPage:re(e=>e.location.pathname.includes("/ontario/"),!1),isAlbertaPage:re(e=>e.location.pathname.includes("/alberta/"),!1),playerFavourite:this.$t("commercialRow.playerFavourite"),fullTnc:this.$t("fullTnc")}},computed:{...K(ge,["isMobile","isDesktop"]),isCompact(){return!this.isDesktop},indexNum(){return this.index+1?this.index+1:1},isExperiment6011First(){return this.experiment6011&&this.index===0},cardShellClasses(){return this.isExperiment6011First?["experiment-6011__card",{"experiment-6011__card--closed":!this.isCollapsibleOpen,"experiment-6011__card--open":this.isCollapsibleOpen}]:["background-elevation-2 p-md md:p-lg border-sm color-stroke-elevation rounded-ui-lg border-b-0 border-bottom",{"border-sm color-stroke-elevation rounded-md border-b-sm rounded-ui-lg border-bottom-closed":!this.isCollapsibleOpen}]},cardBodyClasses(){return this.isExperiment6011First?"p-md md:p-lg":null},partnerLogo(){return nr(this.partnerData)},affiliateLink(){return tr(this.partnerData)||""},tncLink(){const e=Ft(this.partnerData),t=e.tncLinkProxy||e.afflinkProxy;return t&&`${"https://links.casino.ca/play"+t}`},partnerName(){return fe(this.partnerData)||"-"},formattedLicense(){return pd(this.partnerData)||"-"},isEstablished(){return Oi(this.partnerData).established},isRating(){return this.rating!==null&&this.rating!==void 0&&this.rating!==0},rating(){return ss(this.partnerData)??void 0},casinoRTP(){return Cl(this.partnerData)||"-"},payoutTime(){return kl(this.partnerData)||"-"},gamesNumber(){return Oi(this.partnerData).games||"-"},bonusCode(){let e=Ft(this.partnerData).bonusCode||"";return e==="N/A"&&(e=""),e},showPromoButton(){return!!(this.bonusCode&&this.bonusCode.length>0&&!this.ontarioRegulated&&!this.isOntarioPage&&!this.albertaRegulated&&!this.isAlbertaPage)},textButton(){return this.ontarioRegulated||this.isOntarioPage||this.albertaRegulated||this.isAlbertaPage?this.visitCasino:this.getBonus},tncInfo(){return Ft(this.partnerData).tnc||"-"},favIconSize(){return this.isMobile?"xs":this.isCompact?"sm":"md"},favIconBlur(){return wl(this.partnerData)},badgeSize(){return this.isMobile?"xs":this.isCompact?"sm":"md"},reviewLink(){return er(this.partnerData,{ontarioRegulated:this.ontarioRegulated,albertaRegulated:this.albertaRegulated,isOntarioPage:this.isOntarioPage,isAlbertaPage:this.isAlbertaPage})}},watch:{openCollapsible(e){this.isCollapsibleOpen=e}},methods:{handlePromoButtonClick(){this.addCustomTracking(`Toplist::BonusCode-partner-${+this.index+1}`,"Click","Not Applicable","Button","Click","Not Applicable")},handleAffiliateButtonClick(){this.addCustomTracking(`Toplist::AffLink-partner-${this.index+1}`,"Click","Not Applicable","Button","Click","Not Applicable")},handleUpdateIsOpen(e){this.isCollapsibleOpen=e,this.$emit("update:openCollapsible",e),this.addCustomTracking("Toplist::ReadMore","Click","Not Applicable","Button","Click","Not Applicable")},getDataToplistDataAttribute:Qi}},zh={class:"grid grid-cols-1 md-grid-cols-2cols-toplist lg-grid-cols-4cols-toplist-tab xl-grid-cols-4cols-toplist gap-md md:gap-lg xl:gap-3xl"},jh={class:"flex flex-col lg:flex-row gap-md md:gap-lg xl:gap-3xl"},Vh={class:"flex flex-col lg:justify-center md:row-start-1 md:col-start-2 lg:col-start-3 lg:col-end-4"},Gh={class:"flex gap-xs text-foreground-2 flex-col items-start"},Hh={class:"body-sm text-foreground-2 leading-120 md:leading-150"},Wh={class:"body-sm text-foreground-2 leading-120 md:leading-150"},Uh={class:"body-sm text-foreground-2 leading-120 md:leading-150"},qh={class:"md:row-start-1 md:col-start-2 lg:col-start-3 lg:col-end-4 content-center"},Yh={key:0,class:"flex w-full justify-start pt-md md:pt-lg"},Zh={class:"text-xs text-foreground-3 text-left flex items-center flex-wrap leading-120"},Kh={class:"mr-2xs"},Xh={class:"body-xs 2xs:gap-2xs md:gap-xs leading-120 text-foreground-3"};function Jh(e,t,n,s,r,i){const o=w("Experiment6011Rank"),a=w("RowPartnerInfo"),c=w("RowOfferPreview"),l=w("Bullet"),d=w("RowActionButtons"),u=w("Link"),h=w("AdditionalInfoToplist"),f=w("IconCaFlag"),p=w("Collapsible");return g(),x("div",{class:z(["standard-toplist-row",{"experiment-6011":n.experiment6011,"experiment-6011--expanded":i.isExperiment6011First&&r.isCollapsibleOpen}])}
2,[v("div",{class:z(["relative list-none",i.cardShellClasses])},[i.isExperiment6011First?(g(),S(o,{key:0,"index-num":i.indexNum,featured:""},null,8,["index-num"])):A("",!0),v("div",{class:z(i.cardBodyClasses)},[v("div",zh,[(g(),S(Pn(i.affiliateLink?"Link":"div"),Rt(i.affiliateLink?{variant:"block",isExternal:!0,href:i.affiliateLink,size:"none",toplistResponseId:n.partnerData.toplistResponseId,toplistLinkId:i.affiliateLink,toplistData:i.getDataToplistDataAttribute(n.partnerData)}:{},{class:"md:col-start-1 md:col-end-2 lg:col-start-1 lg:col-end-3"}),{default:B(()=>[v("div",jh,[P(a,{"partner-data":n.partnerData,"partner-logo":i.partnerLogo,"fav-icon-size":i.favIconSize,"fav-icon-blur":i.favIconBlur,"index-num":i.indexNum,"show-ranking":!i.isExperiment6011First,"displayl-payers-favorite-badge":n.displaylPayersFavoriteBadge,"badge-size":i.badgeSize,"player-favourite":r.playerFavourite,"is-established":i.isEstablished,"established-in":r.establishedIn,"is-rating":i.isRating,rating:i.rating},null,8,["partner-data","partner-logo","fav-icon-size","fav-icon-blur","index-num","show-ranking","displayl-payers-favorite-badge","badge-size","player-favourite","is-established","established-in","is-rating","rating"]),P(c,{"partner-data":n.partnerData},null,8,["partner-data"])])]),_:1},16)),v("div",Vh,[v("div",Gh,[P(l,{class:"gap-xs",variant:"check"},{default:B(()=>[v("p",Hh,k(r.rtp)+": "+k(i.casinoRTP),1)]),_:1}),P(l,{class:"gap-xs",variant:"check"},{default:B(()=>[v("p",Wh,k(r.payout)+": "+k(i.payoutTime),1)]),_:1}),P(l,{class:"gap-xs",variant:"check"},{default:B(()=>[v("p",Uh,k(r.games)+": "+k(i.gamesNumber),1)]),_:1})])]),P(d,{"partner-data":n.partnerData,"partner-name":i.partnerName,"affiliate-link":i.affiliateLink,"toplist-data":i.getDataToplistDataAttribute(n.partnerData),"bonus-code":i.bonusCode,"show-promo-button":i.showPromoButton,"promo-id":`promo-${+n.index+1}`,"text-button":i.textButton,"more-info":r.moreInfo,"is-collapsible-open":r.isCollapsibleOpen,onPromoClick:i.handlePromoButtonClick,onAffiliateClick:i.handleAffiliateButtonClick,onToggleMoreInfo:i.handleUpdateIsOpen},null,8,["partner-data","partner-name","affiliate-link","toplist-data","bonus-code","show-promo-button","promo-id","text-button","more-info","is-collapsible-open","onPromoClick","onAffiliateClick","onToggleMoreInfo"])]),v("div",qh,[n.ukRegulated?(g(),x("div",Yh,[v("p",Zh,[v("span",Kh,k(i.tncInfo)+" | ",1),P(u,{href:i.tncLink,copy:r.fullTnc,size:"SM",class:"text-foreground-3 ml-0 md:ml-2xs text-xs",variant:"secondary","is-external":""},null,8,["href","copy"])])])):A("",!0)])],2)],2),r.isCollapsibleOpen?(g(),x("div",{key:0,class:z(["background-elevation-2 p-md md:p-lg border-sm color-stroke-elevation rounded-b-lg md:rounded-b-xl flex flex-col",{"experiment-6011__more":i.isExperiment6011First}])},[P(p,{text:r.moreInfo,link:"","header-extra":"","header-extra-position":"left","is-open":r.isCollapsibleOpen,"tracker-name":i.partnerName,"onUpdate:isOpen":i.handleUpdateIsOpen},{content:B(()=>[P(h,{"partner-data":n.partnerData,"ontario-regulated":n.ontarioRegulated,"alberta-regulated":n.albertaRegulated,"affiliate-link":i.affiliateLink},null,8,["partner-data","ontario-regulated","alberta-regulated","affiliate-link"])]),header:B(()=>[v("div",{class:z(["2xs:hidden lg:flex flex-row 2xs:gap-2xs md:gap-xs items-center",{"pt-md md:pt-lg":!i.reviewLink,"lg:absolute lg:bottom-0":i.reviewLink}])},[P(f),v("div",Xh,[v("span",null,k(r.licenced)+" "+k(i.formattedLicense),1)])],2)]),_:1},8,["text","is-open","tracker-name","onUpdate:isOpen"])],2)):A("",!0)],2)}const Qh=O(Nh,[["render",Jh],["__scopeId","data-v-6f0ee182"]]),ep={name:"Message",props:{message:{type:String,default:""},link:{type:Object,default:()=>({text:"connexontario.ca",href:"https://connexontario.ca"})}},computed:{formattedMessage(){const e=this.message||this.$t("tncOnDefaultMessage"),t=`<a href="${this.link?.href}" target="_blank" rel="nofollow" class="text-foreground-accent">${this.link?.text}</a>`;return e.replace(/\{link\}|%link%/g,t)}}},tp=["innerHTML"];function np(e,t,n,s,r,i){return g(),x("p",{class:"2xs:text-3xs md:text-2xs 2xs:gap-1 md:gap-2 leading-120 text-foreground-2",innerHTML:i.formattedMessage},null,8,tp)}const sp=O(ep,[["render",np]]),ip={name:"IconNavigationMenuHorizontal",props:{width:{type:[String,Number],default:12},height:{type:[String,Number],default:12}}},rp=Tt+"#icon-nav-menu-horizontal",op=["width","height"];function ap(e,t,n,s,r,i){return g(),x("svg",{width:n.width,height:n.height,fill:"currentColor"},[...t[0]||(t[0]=[v("use",{href:rp},null,-1)])],8,op)}const Fl=O(ip,[["render",ap]]),lp={name:"QuickFilters",mixins:[Ne],components:{Button:me,IconNavigationMenuHorizontal:Fl},props:{filterKey:{type:String,default:"casinoQuickFilters"},context:{type:String,required:!0}},data(){return{SORT_KEYS:es}},computed:{...K(Te,["contextValues","definition","activeValue"]),currentContextValues(){return this.contextValues(this.context)||{}},filterChips(){if(!this.filterKey)return[];const t=(this.definition(this.filterKey)||{}).items||{},n=[];return Object.entries(t).forEach(([s,r])=>{r.options&&Array.isArray(r.options)&&r.options.forEach(i=>
2{i!==es.ALL_FILTERS&&n.push({key:s,value:i,type:r.type})})}),n}},methods:{...ce(Te,["updateFilter"]),isSelected(e){if(!e||typeof e=="string")return!1;const t=this.currentContextValues[e.key];return e.type==="radioButton"?t===e.value:e.type==="checkbox"?Array.isArray(t)&&t.includes(e.value):!1},selectFilter(e){const t=typeof e=="string"?void 0:e.type,n=typeof e=="string"?"sortBy":e.key,s=typeof e=="string"?e:e.value,r=this.getLabel(s);if(this.addCustomTracking(`Review Hub Quick Filter ${r}`,"Click","Not Applicable","Button","Click","Not Applicable"),typeof e=="string"&&e===es.ALL_FILTERS){this.$emit("open-all-filters");return}let i;if(t==="radioButton")i=s;else if(t==="checkbox"){const o=this.currentContextValues[n]||[];o.includes(s)?i=o.filter(a=>a!==s):i=[...o,s]}this.updateFilter({context:this.context,key:n,value:i})},getLabel(e){return e?this.$te(`${this.context}Filters.${e}`)?this.$t(`${this.context}Filters.${e}`):this.$te(`casinoFilters.${e}`)?this.$t(`casinoFilters.${e}`):this.$te(`advancedToplist.${e}`)?this.$t(`advancedToplist.${e}`):this.$te(e)?this.$t(e):e:""}}},cp={class:"flex justify-start items-center gap-xs lg:flex-row-reverse md:justify-end min-w-0 w-full"},dp={class:"flex gap-xs overflow-x-auto snap-x snap-mandatory scrollbar-hide flex-1 min-w-0 lg:flex-none lg:w-auto lg:min-w-0 lg:overflow-visible"};function up(e,t,n,s,r,i){const o=w("IconNavigationMenuHorizontal"),a=w("Button");return g(),x("div",cp,[P(a,{variant:"ghost",size:"MD",icon:"","icon-position":"left",class:"flex-shrink-0",onClick:t[0]||(t[0]=c=>i.selectFilter(r.SORT_KEYS.ALL_FILTERS))},{"icon-left":B(()=>[P(o)]),default:B(()=>[Z(" "+k(i.getLabel(r.SORT_KEYS.ALL_FILTERS)),1)]),_:1}),t[1]||(t[1]=v("div",{class:"color-stroke-2 border-r-sm h-xl flex-shrink-0"},null,-1)),v("div",dp,[(g(!0),x(H,null,Y(i.filterChips,(c,l)=>(g(),S(a,{key:`quick-chip-${l}`,variant:i.isSelected(c)?"primary":"ghost",size:"MD",class:"snap-start whitespace-nowrap",onClick:d=>i.selectFilter(c)},{default:B(()=>[Z(k(i.getLabel(c.value)),1)]),_:2},1032,["variant","onClick"]))),128))])])}const hp=O(lp,[["render",up]]),pp=["SM","MD"],fp={name:"RadioButton",emits:["click"],props:{label:{type:String,default:""},checked:{type:Boolean,default:!1},size:{type:String,validator:e=>pp.includes(e),default:"MD"}},computed:{sizeRadio(){return this.size==="SM"?"w-[16px] h-[16px]":"w-[20px] h-[20px]"},sizeChecked(){return this.size==="SM"?"w-[8px] h-[8px]":"w-[10px] h-[10px]"},textSize(){return this.size==="SM"?"body-sm":"body-md"}},methods:{selectRadio(){this.$emit("click")}}},gp=["data-aa-tracker"];function mp(e,t,n,s,r,i){return g(),x("div",{class:"flex items-center gap-xs cursor-pointer",tabindex:"0",onClick:t[0]||(t[0]=(...o)=>i.selectRadio&&i.selectRadio(...o)),onKeyup:[t[1]||(t[1]=et((...o)=>i.selectRadio&&i.selectRadio(...o),["enter"])),t[2]||(t[2]=et(ts((...o)=>i.selectRadio&&i.selectRadio(...o),["prevent"]),["space"]))],"data-aa-tracker":n.label},[v("div",{class:z(["border-md color-stroke-3 rounded-pill flex justify-center items-center cursor-pointer hover:background-elevation-4",[i.sizeRadio,{"background-1 color-stroke-accent":n.checked}]])},[n.checked?(g(),x("div",{key:0,class:z(["background-accent-1 rounded-pill",i.sizeChecked])},null,2)):A("",!0)],2),v("span",{class:z(["leading-none",i.textSize])},k(n.label),3)],40,gp)}const Bl=O(fp,[["render",mp]]),bp=["SM","MD"],yp={name:"Checkbox",emits:["input","update:modelValue"],props:{modelValue:{type:[Array,Boolean],default:void 0},value:{type:[Array,Boolean],default:void 0},checkboxValue:{type:[String,Number,Boolean],default:!0},labelClass:{type:[String,Array,Object],default:()=>[]},size:{type:String,validator:e=>bp.includes(e),default:"MD"}},computed:{resolvedValue(){return this.modelValue===void 0?this.value:this.modelValue},internalModel:{get(){return this.resolvedValue},set(e){this.$emit("input",e),this.$emit("update:modelValue",e)}},textSize(){return this.size==="SM"?"body-sm":"body-md"},sizeCheckbox(){return this.size==="SM"?"w-[16px] h-[16px]":"w-[20px] h-[20px]"},sizeChecked(){return this.size==="SM"?"top-[4px] left-[4px] w-[8px] h-[8px]":"top-[5px] left-[5px] w-[10px] h-[10px]"},widthTick(){return this.size==="SM"?"8":"10"},heightTick(){return this.size==="SM"?"9":"11"}}
2,methods:{onChange(e){const t=e.target.checked,n=this.resolvedValue;if(Array.isArray(n)){let s=[...n];t?s.includes(this.checkboxValue)||s.push(this.checkboxValue):s=s.filter(r=>r!==this.checkboxValue),this.internalModel=s}else this.internalModel=t},toggleCheckbox(e){const t=e.target.checked;e.target.checked=!t,this.onChange(e)}}},vp={class:"inline-flex items-center gap-xs cursor-pointer"},_p=["value"],xp=["width","height"];function wp(e,t,n,s,r,i){return g(),x("label",vp,[v("div",{class:z(["relative flex-shrink-0 flex items-center justify-center",i.sizeCheckbox])},[tt(v("input",{type:"checkbox",role:"checkbox",class:z(["peer appearance-none rounded-sm border-sm background-elevation-3 hover:background-elevation-4 color-stroke-3 checked:background-accent-1 checked:hover:background-accent-1 checked:color-stroke-accent w-full h-full",i.sizeCheckbox]),value:n.checkboxValue,"onUpdate:modelValue":t[0]||(t[0]=o=>i.internalModel=o),onChange:t[1]||(t[1]=(...o)=>i.onChange&&i.onChange(...o)),onKeyup:t[2]||(t[2]=et((...o)=>i.toggleCheckbox&&i.toggleCheckbox(...o),["enter"])),tabindex:"0"},null,42,_p),[[ud,i.internalModel]]),(g(),x("svg",{xmlns:"http://www.w3.org/2000/svg",width:i.widthTick,height:i.heightTick,viewBox:"0 0 10 11",fill:"none",class:z(["absolute text-foreground-on-dark opacity-0 peer-checked:opacity-100 transition-opacity duration-200",i.sizeChecked])},[...t[3]||(t[3]=[v("path",{d:"M9.7292 1.81031C9.36476 1.43953 8.77129 1.43953 8.40685 1.81031L3.37279 6.93199L1.593
215 5.12138C1.22871 4.75059 0.635243 4.75059 0.270803 5.12138C-0.0902676 5.48873 -0.0902676 6.08182 0.270803 6.44918L2.71162 8.93248C3.07606 9.30326 3.66952 9.30326 4.03396 8.93248L9.7292 3.13812C10.0903 2.77076 10.0903 2.17767 9.7292 1.81031Z",fill:"white"},null,-1)])],10,xp))],2),v("span",{class:z(["leading-none",i.textSize])},[wt(e.$slots,"default")],2)])}const El=O(yp,[["render",wp]]),kp={name:"IconFilters"},Cp=Tt+"#icon-filters",Sp={width:"12",height:"12",viewBox:"0 0 12 12"};function Tp(e,t,n,s,r,i){return g(),x("svg",Sp,[...t[0]||(t[0]=[v("use",{href:Cp},null,-1)])])}const Pp=O(kp,[["render",Tp]]),Ap={name:"LogoCard",components:{VImage:W},props:{logo:{type:String,default:""},name:{type:String,default:""},selected:{type:Boolean,default:!1},type:{type:String,default:""},filterModal:{type:Boolean,default:!1}}};function Op(e,t,n,s,r,i){const o=w("VImage");return n.logo||n.name?(g(),x("div",{key:0,class:z(["transition-all duration-500 border-sm flex flex-col items-center justify-center gap-2xs md:gap-xs h-full cursor-pointer",n.filterModal?"p-2xs md:p-xs rounded-ui-sm md:rounded-ui-md":"p-xs md:p-md rounded-md",n.selected?"background-elevation-4 color-stroke-accent":`background-elevation-2 hover:background-elevation-4 ${n.filterModal?"color-stroke-3":"color-stroke-elevation"}`]),onClick:t[0]||(t[0]=a=>e.$emit("card-click"))},[n.logo?(g(),x("div",{key:0,class:z(["flex items-center justify-center",{"flex-shrink-0 background-elevation-3 rounded-pill md:w-[60px] md:h-[60px]":n.type!=="providers"&&!n.filterModal}])},[P(o,{src:n.logo,alt:`${n.name} icon`,width:n.type!=="providers"||n.filterModal?40:52,height:n.type!=="providers"||n.filterModal?40:52,"object-contain":n.type!=="providers",class:z(["flex overflow-visible",[n.filterModal?"w-lg md:w-[40px] h-lg md:h-[40px]":n.type!=="providers"?"w-[36px] h-[36px] md:w-[40px] md:h-[40px]":"w-[36px] h-[36px] md:w-[52px] md:h-[52px]"]])},null,8,["src","alt","width","height","object-contain","class"])],2)):A("",!0),v("p",{class:z(n.filterModal?"text-2xs md:text-xs text-center text-foreground-1 font-regular":"title-3xs text-center w-full truncate !text-foreground-2 leading-sm flex-shrink-0")},k(n.name),3)],2)):A("",!0)}const Mp=O(Ap,[["render",Op]]),$l=e=>String(e??"").trim().toLowerCase().replace(/[\s_-]+/g,""),Lp=e=>{const t={};return!e||typeof e.getLocaleMessage!="function"||[e.locale,e.fallbackLocale].filter(s=>typeof s=="string"&&s).reverse().forEach(s=>{const r=e.getLocaleMessage(s)?.gameTypes;!r||typeof r!="object"||Object.entries(r).forEach(([i,o])=>{typeof o=="string"&&o&&(t[$l(i)]=o)})}),t},Ip=["gameTypes","casinos","providers","paymentMethods"],Rp={name:"LogoCardsFilters",components:{VImage:W,LogoCard:Mp,IconAdd:su,IconLess:fd,Search:nu,Button:me},props:{variant:{type:String,validator:e=>Ip.includes(e),default:"gameTypes"},filterKey:{type:String,default:"casinoDrawerFilters"},context:{type:String,required:!0},initialVisibleItems:{type:Number,default:6}},data(){return{labels:{showMore:this.$t("showMore"),showLess:this.$t("showLess")},loading:!0,logoCards:[],showMoreState:!1,visibleItemsCount:6,searchInputModel:"",localCurrentFilters:[],allGameTypes:Rl,gameTypeMap:{},gameTypeLogoMap:{}}},computed:{...K(Te,["getContextState"]),...K(Ue,["filteringMetadata","providers"]),currentContextValues(){return this.getContextState(this.context)||{}},gameTypeLabels(){return Lp(this.$i18n)},...K(vn,{partners:"getPartners",partnersProviders:"getPartnersProviders",partnersGameTypes:"getPartnersGameTypes",partnersPaymentMethods:"getPartnersPaymentMethods"}),logoCardsFiltered(){if(!this.logoCards||!Array.isArray(this.logoCards))return[];const e=(this.searchInputModel||"").toLowerCase();return this.logoCards.filter(t=>t.label.toLowerCase().includes(e))},logoCardsVisibles(){return this.logoCardsFiltered.length?this.logoCardsFiltered.slice(0,this.visibleItemsCount):[]}
2,placeholderLabel(){switch(this.variant){case"gameTypes":return this.$t("casinoFilters.searchGames");case"casinos":return this.$t("casinoFilters.searchCasinos");case"providers":return this.$t("casinoFilters.searchProviders");default:return"search"}},selectedItems(){return this.logoCards.filter(e=>e.checked).map(e=>e.value)}},watch:{currentContextValues:{immediate:!0,deep:!0,handler(e){e&&e[this.variant]&&(this.localCurrentFilters=e[this.variant])}},providers:{immediate:!0,deep:!0,handler(e){e.length&&this.variant==="providers"&&(this.addProvidersOptions(),this.loading=!1)}},partners:{immediate:!0,deep:!0,handler(e){e.length&&(this.variant==="casinos"&&(this.addCasinosOptions(),this.loading=!1),this.variant==="paymentMethods"&&(this.addPaymentMethodsOptions(),this.loading=!1))}},filteringMetadata:{immediate:!0,deep:!0,handler(e){Object.keys(e).length>1&&this.variant==="gameTypes"&&(this.addGameTypesOptions(),this.loading=!1)}},localCurrentFilters:{handler(e){this.logoCards=this.logoCards.map(t=>({...t,checked:e.includes(t.value)}))},immediate:!0}},mounted(){this.initializeFilters()},created(){this.visibleItemsCount=this.initialVisibleItems,this.gameTypeMap=Object.entries(this.allGameTypes).reduce((e,[t,n])=>(e[this.slugify(t)]=n.name,e),{}),this.gameTypeLogoMap=Object.entries(this.allGameTypes).reduce((e,[t])=>{const n=t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").replace(/_/g,"-").toLowerCase(),s=n.replace(/-/g,"");return e[s]=n,e},{})},methods:{...ce(Te,["addMoreItems"]),...ce(Ue,["fetchFilteringMetadata","fetchProviders"]),slugify(e){return e.toString().trim().toLowerCase().replace(/[\s_-]+/g,"")},addGameTypesOptions(){const e=Object.keys(this.filteringMetadata),t=[];e.length&&this.partnersGameTypes.mostPopular.forEach(s=>{const r=this.getGameTypeLabel(s);t.push({value:s,label:r,logo:this.getGameTypeLogo(s),checked:this.localCurrentFilters.includes(s)})}),this.logoCards=t,this.addMoreItems({definitionName:this.filterKey,itemName:"gameTypes",items:t})},normalizeProviderSlug(e){return e.toLowerCase().replace(/['"]/g,"").replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")},addProvidersOptions(){const e=[];this.providers.length&&this.providers.filter(n=>this.partnersProviders.mostPopular.includes(n.id)).forEach(n=>{const r=`../../images/logos/badges/game-providers/mini-logos/dark/${this.normalizeProviderSlug(n.name)}.svg`;e.push({value:n.id,label:n.name,logo:r,checked:this.localCurrentFilters.includes(n.id)})}),this.logoCards=e,this.addMoreItems({definitionName:this.filterKey,itemName:"providers",items:e})},addCasinosOptions(){const e=[];this.partners.length&&this.partners.forEach(t=>{if(!t.phoenix?.slug)return;const n=fe(t)||t.phoenix.slug||"",s=t.phoenix.attributes?.faviconLight?`https://images.casino.ca/${t.phoenix?.attributes?.faviconLight}`:null;e.push({value:t.phoenix.slug,label:n,logo:s,checked:this.localCurrentFilters.includes(t.phoenix.slug)})}),this.logoCards=e,this.addMoreItems({definitionName:this.filterKey,itemName:"casinos",items:e})},addPaymentMethodsOptions(){const e=[],t=this.partnersPaymentMethods.mostPopular||[];t.length&&t.forEach(n=>{const s=n.charAt(0).toUpperCase()+n.slice(1),r=`../../images/logos/badges/payment/light/${n}.svg`;e.push({value:n,label:s,logo:r,checked:this.localCurrentFilters.includes(n)})}),this.logoCards=e,this.addMoreItems({definitionName:this.filterKey,itemName:"paymentMethods",items:e})},initializeFilters(){this.variant==="gameTypes"&&(this.fetchFilteringMetadata(),this.addGameTypesOptions()),this.variant==="providers"&&this.fetchProviders(),this.variant==="paymentMethods"&&this.addPaymentMethodsOptions()},handleLogoCardClick(e){this.logoCards=this.logoCards.map(t=>t.value!==e.value?t:{...t,checked:!t.checked}),this.updateDrawerFilters()},toggleShowMore(){this.logoCardsFiltered.length-this.visibleItemsCount>0?this.visibleItemsCount+=6:this.visibleItemsCount=this.initialVisibleItems},getGameTypeLogo(e){return`/vue/assets/logos/game-types/icon-${this.gameTypeLogoMap[e]||e}.svg`},updateSearchInputFilters(e){this.searchInputModel=typeof e=="string"?e:e?.target?.value??e?.value??""},updateDrawerFilters(){this.$emit("update",{filterKey:this.variant,options:this.selectedItems})},getGameTypeLabel(e){const t=this.slugify(e),n=`gameTypes.${t}`;if(this.$te?.(n))return this.$t(n);const s=this.gameTypeLabels[$l(e)];return s||(this.gameTypeMap[t]?this.gameTypeMap[t]:t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,r=>r.toUpperCase()))}}},Dp={key:0},Fp={class:"gap-md grid"},Bp=["onClick"],Ep={key:0,class:"absolute inset-0 color-stroke-accent border-sm rounded-sm index-2 background-elevation-4"},$p={class:"grid grid-cols-1"},Np={class:"flex self-center justify-start"};
2function zp(e,t,n,s,r,i){const o=w("Search"),a=w("LogoCard"),c=w("VImage"),l=w("IconAdd"),d=w("IconLess"),u=w("Button");return g(),x("div",null,[!r.loading&&r.logoCards.length?(g(),x("div",Dp,[v("section",Fp,[P(o,{modelValue:r.searchInputModel,"onUpdate:modelValue":t[0]||(t[0]=h=>r.searchInputModel=h),placeholder:i.placeholderLabel,type:"search",variant:"SearchRoundedMedium",onHandleFilter:i.updateSearchInputFilters,onHandleSearch:i.updateSearchInputFilters},null,8,["modelValue","placeholder","onHandleFilter","onHandleSearch"]),v("div",{class:z(["gap-xs",n.variant!=="paymentMethods"?"grid grid-cols-3 md:grid-cols-5 lg:grid-cols-3":"flex flex-wrap"])},[(g(!0),x(H,null,Y(i.logoCardsVisibles,(h,f)=>(g(),x(H,null,[n.variant!=="paymentMethods"?(g(),S(a,{key:`logocard-${n.variant}-${f}`,logo:h.logo,name:h.label,selected:h.checked,class:z({"md:flex":!r.showMoreState&&f>=n.initialVisibleItems-1}),onCardClick:p=>i.handleLogoCardClick(h)},null,8,["logo","name","selected","class","onCardClick"])):A("",!0),n.variant==="paymentMethods"?(g(),x("div",{key:`logocard-${n.variant}-${f}`,class:"relative cursor-pointer h-[37px] w-[60px] rounded-sm overflow-hidden",onClick:p=>i.handleLogoCardClick(h)},[P(c,{src:h.logo,alt:h.label,height:"h-[37px]",width:"w-[60px]",class:"absolute inset-0 h-[37px] w-[60px]"},null,8,["src","alt"]),h.checked?(g(),x("div",Ep)):A("",!0)],8,Bp)):A("",!0)],64))),256))],2),v("div",$p,[v("div",Np,[i.logoCardsFiltered.length>n.initialVisibleItems?(g(),S(u,{key:0,size:"SM",variant:"mute",onClick:i.toggleShowMore},{default:B(()=>[i.logoCardsFiltered.length>r.visibleItemsCount?(g(),x(H,{key:0},[P(l,{class:"text-foreground-1 mr-xs"}),Z(" "+k(e.$t("showMoreCount",{count:i.logoCardsFiltered.length-r.visibleItemsCount})),1)],64)):i.logoCardsFiltered.length>n.initialVisibleItems?(g(),x(H,{key:1},[P(d,{class:"text-foreground-1 mr-xs"}),Z(" "+k(r.labels.showLess),1)],64)):A("",!0)]),_:1},8,["onClick"])):A("",!0)])])])])):A("",!0)])}const jp=O(Rp,[["render",zp]]),Vp={name:"IconCloseAltFilled",props:{colorClass:{type:String,default:""},color:{type:String,default:"#202A32"},width:{type:[String,Number],default:15},height:{type:[String,Number],default:14}}},Gp=Tt+"#icon-close-alt-filled",Hp=["width","height"];function Wp(e,t,n,s,r,i){return g(),x("svg",{width:n.width,height:n.height,viewBox:"0 0 15 14",class:z(n.colorClass)},[...t[0]||(t[0]=[v("use",{href:Gp},null,-1)])],10,Hp)}const Nl=O(Vp,[["render",Wp]]),Up=["SM","LG"],qp={SM:"text-xs",LG:"text-sm"},Yp={SM:"py-2xs px-xs",LG:"py-sm px-md"},Zp={name:"Chip",emits:["click"],components:{IconCloseAltFilled:Nl},props:{text:{type:String,default:"Text"},size:{type:String,validator:e=>Up.includes(e),default:"SM"},icon:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{textSizeClass(){return qp[this.size]},paddingSizeClasses(){return Yp[this.size]},fontClasses(){return this.icon?"font-bold":""},generalClasses(){return this.disabled?"flex items-center justify-center gap-2xs border-sm color-stroke-3 rounded-button background-disabled cursor-default w-fit text-foreground-disabled":this.selected?"flex items-center justify-center gap-2xs color-stroke-3 rounded-button background-accent-1 cursor-default w-fit text-foreground-on-dark":"flex items-center justify-center gap-2xs border-sm color-stroke-3 rounded-button cursor-pointer background-elevation-3 hover:background-elevation-4 w-fit text-foreground-2"}}};function Kp(e,t,n,s,r,i){const o=w("IconCloseAltFilled");return g(),x("div",{class:z(`${i.generalClasses} ${i.paddingSizeClasses}`),onClick:t[0]||(t[0]=a=>e.$emit("click"))},[v("span",{class:z(["leading-150",`${i.textSizeClass} ${i.fontClasses}`])},k(n.text),3),n.icon?(g(),S(o,{key:0})):A("",!0)],2)}const zl=O(Zp,[["render",Kp]]),Xp={name:"DrawerFilters",mixins:[Ne],components:{LogoCardsFilters:jp,Divider:bs,Button:me,Checkbox:El,RadioButton:Bl,IconFilters:Pp,IconClose:Ll,Chip:zl},props:{options:{type:Object,default:()=>({})},filterKey:{type:String,default:"casinoDrawerFilters"},context:{type:String,required:!0},autoApply:{type:Boolean,default:!1},hideSortByDesktop:{type:Boolean,default:!1}},data(){return{localCurrentFilters:{},labels:{clearFilters:this.$t("clearFilters"),applyFilters:this.$t("applyFilters"),filters:this.$t("filters"),gameTypes:this.$t("gameTypes"),minDeposit:this.$t("advancedToplist.minDeposit"),minAmount:this.$t("advancedToplist.minAmount"),maxAmount:this.$t("advancedToplist.maxAmount"),minAmountNumb:this.$t("minAmountNumb"),maxAmountNumb:this.$t("maxAmountNumb")},optionsModels:{bonusAmount:{min:null,max:null}}}},computed:{...K(Te,{allCurrentFilters:"currentFilters"}),...K(Te,["getContextState"]),...K(vn,{prevFilteredPartnersCount:"getPrevFilteredPartnersCount"}),...K(ge,["width"]),closeButtonSize(){return this.width<768?"MD":"LG"},currentContextValues(){return this.getContextState(this.context)||{}},prevCount(){return this.prevFilteredPartnersCount(this.context)}},watch:{currentContextValues:{immediate:!0,deep:!0,handler(e){const t={};
2Object.keys(this.options).forEach(n=>{e[n]!==void 0&&(t[n]=JSON.parse(JSON.stringify(e[n])))}),this.localCurrentFilters=t,this.setOptionsModels()}}},methods:{...ce(Te,["setAllCurrentFilter","setPrevValues","clearFilters","updateFilter"]),setOptionsModels(){const e={bonusAmount:{min:null,max:null}};Object.entries(this.options).forEach(([t,n])=>{if(["radioButton","checkbox"].includes(n.type)&&(e[t]={},n.options.forEach(s=>{e[t][s]={value:s,checked:this.isChecked(t,s,n.type)}})),n.type==="bonusAmount"){const s={min:null,max:null},r=this.localCurrentFilters.bonusAmount||s;e.bonusAmount={min:r.min===0?null:r.min,max:r.max===0?null:r.max}}}),this.optionsModels=e},isChecked(e,t,n){const s=this.localCurrentFilters[e];return s?n==="radioButton"?s===t:n==="checkbox"?Array.isArray(s)&&s.includes(t):!1:!1},onClearFilters(){Object.keys(this.options).forEach(e=>{this.localCurrentFilters[e]=null,this.options[e].type==="checkbox"&&(this.localCurrentFilters[e]=[])}),this.setOptionsModels(),this.updatePrevFilters(),this.commitFilters(),this.commitFilters(),this.$emit("close-drawer")},handleRadioButtonClick(e,t){this.optionsModels[e]||(this.optionsModels[e]={}),this.optionsModels[e][t]||(this.optionsModels[e][t]={value:t,checked:!1});const n=this.optionsModels[e];n[t]&&n[t].checked?(n[t].checked=!1,this.localCurrentFilters[e]=null):(Object.keys(n).forEach(r=>{n[r].checked=r===t}),this.localCurrentFilters[e]=t),this.updatePrevFilters()},handleCheckboxClick(e,t,n){this.optionsModels[e]||(this.optionsModels[e]={}),this.optionsModels[e][t]||(this.optionsModels[e][t]={value:t,checked:!1}),Array.isArray(this.localCurrentFilters[e])||(this.localCurrentFilters[e]=[]);let s=[...this.localCurrentFilters[e]||[]];const r=this.optionsModels[e][t];r.checked=n,n?(s.includes(t)||s.push(t),this.localCurrentFilters[e]=s):this.localCurrentFilters[e]=s.filter(i=>i!==t),this.updatePrevFilters()},handleMinMaxAmountInput(e,t){const n=t===""?null:Number(t);this.optionsModels.bonusAmount[e]=n,this.localCurrentFilters.bonusAmount={...this.optionsModels.bonusAmount},this.updatePrevFilters()},handleLogoCardUpdate(e){this.localCurrentFilters[e.filterKey]=e.options,this.updatePrevFilters()},updatePrevFilters(){const e={...this.currentContextValues,...this.localCurrentFilters};this.setPrevValues({context:this.context,values:e}),this.autoApply&&this.commitFilters()},commitFilters(){Object.entries(this.localCurrentFilters).forEach(([e,t])=>{this.updateFilter({context:this.context,key:e,value:t})})},applyFilters(){this.commitFilters(),this.addCustomTracking(`Review Hub ${this.labels.applyFilters}`,"Click","Not Applicable","Button","Click","Not Applicable"),this.$emit("close-drawer")},getLabel(e){return e?this.$te(`casinoFilters.${e}`)?this.$t(`casinoFilters.${e}`):this.$te(`advancedToplist.${e}`)?this.$t(`advancedToplist.${e}`):this.$te(e)?this.$t(e):e:""}}}
2,Jp={key:0,class:"relative flex flex-col h-full w-full overflow-y-auto"},Qp={class:"sticky top-0 right-0 z-10 justify-between items-center flex title-xs leading-150 border-b-[1px] color-stroke-3 py-md px-xl background-flyout"},ef={class:"flex items-center gap-xs"},tf={class:"capitalize"},nf={class:"p-xs"},sf={class:"p-md lg:p-lg"},rf={class:"title-2xs leading-150"},of={key:0,class:"flex flex-wrap gap-xs"},af={key:4,class:"flex gap-md w-full"},lf={class:"flex flex-col gap-xs flex-1 min-w-0"},cf=["placeholder"],df={class:"leading-120 text-foreground-2 text-2xs"},uf={class:"flex flex-col gap-xs flex-1 min-w-0"},hf=["placeholder"],pf={class:"leading-120 text-foreground-2 text-2xs"},ff={class:"w-full grid grid-cols-2 gap-xs sticky bottom-0 background-flyout px-md md:px-lg lg:px-xl py-md"};function gf(e,t,n,s,r,i){const o=w("IconFilters"),a=w("IconClose"),c=w("Button"),l=w("Chip"),d=w("RadioButton"),u=w("Checkbox"),h=w("LogoCardsFilters"),f=w("Divider");return Object.keys(n.options).length?(g(),x("div",Jp,[v("div",Qp,[v("div",ef,[P(o),v("span",tf,k(r.labels.filters),1)]),v("div",nf,[P(c,{variant:"mute",size:i.closeButtonSize,icon:"","icon-only":"",onClick:t[0]||(t[0]=p=>e.$emit("close-drawer"))},{"icon-only":B(()=>[P(a,{"color-class":"text-foreground-1"})]),_:1},8,["size"])])]),v("div",sf,[(g(!0),x(H,null,Y(Object.keys(n.options),p=>(g(),x("div",{key:`option-type-${p}`,class:z(["flex flex-col gap-md",{"lg:hidden":n.hideSortByDesktop&&p==="sortBy"}])},[v("p",rf,k(i.getLabel(p)),1),n.options[p].type==="radioButton"&&n.options[p].variant==="button"?(g(),x("div",of,[(g(!0),x(H,null,Y(n.options[p].options,y=>(g(),S(l,{key:`${p}-${y}`,size:"SM",text:i.getLabel(y),class:"min-w-[60px] cursor-pointer",selected:!!(r.optionsModels[p]&&r.optionsModels[p][y]&&r.optionsModels[p][y].checked),onClick:m=>i.handleRadioButtonClick(p,y)},null,8,["text","selected","onClick"]))),128))])):n.options[p].type==="radioButton"?(g(!0),x(H,{key:1},Y(n.options[p].options,y=>(g(),S(d,{key:`${p}-${y}`,size:"SM",label:i.getLabel(y),checked:!!(r.optionsModels[p]&&r.optionsModels[p][y]&&r.optionsModels[p][y].checked),onClick:m=>i.handleRadioButtonClick(p,y)},null,8,["label","checked","onClick"]))),128)):A("",!0),n.options[p].type==="checkbox"?(g(!0),x(H,{key:2},Y(n.options[p].options,y=>(g(),S(u,{key:`${p}-${y}`,size:"SM",modelValue:!!(r.optionsModels[p]&&r.optionsModels[p][y]&&r.optionsModels[p][y].checked),"label-class":["flex","items-center","gap-xs"],"onUpdate:modelValue":m=>i.handleCheckboxClick(p,y,m)},{default:B(()=>[Z(k(i.getLabel(y)),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128)):A("",!0),["casinos","providers","gameTypes","paymentMethods"].includes(n.options[p].type)?(g(),S(h,{key:3,variant:n.options[p].type,"filter-key":n.filterKey,context:n.context,"initial-visible-items":n.options[p].type==="paymentMethods"?14:6,onUpdate:i.handleLogoCardUpdate},null,8,["variant","filter-key","context","initial-visible-items","onUpdate"])):A("",!0),n.options[p].type==="bonusAmount"?(g(),x("div",af,[v("div",lf,[tt(v("input",{"onUpdate:modelValue":t[1]||(t[1]=y=>r.optionsModels.bonusAmount.min=y),type:"number",class:"background-elevation-2 text-left px-md py-xs rounded-ui-sm cursor-text outline-none border-sm color-stroke-3 focus:color-stroke-accent",placeholder:r.labels.minAmountNumb,onInput:t[2]||(t[2]=y=>i.handleMinMaxAmountInput("min",y.target.value))},null,40,cf),[[_n,r.optionsModels.bonusAmount.min,void 0,{number:!0}]]),v("span",df,k(r.labels.minAmount),1)]),v("div",uf,[tt(v("input",{"onUpdate:modelValue":t[3]||(t[3]=y=>r.optionsModels.bonusAmount.max=y),type:"number",class:"background-elevation-2 text-left px-md py-xs rounded-ui-sm cursor-text outline-none border-sm color-stroke-3 focus:color-stroke-accent",placeholder:r.labels.maxAmountNumb,onInput:t[4]||(t[4]=y=>i.handleMinMaxAmountInput("max",y.target.value))},null,40,hf),[[_n,r.optionsModels.bonusAmount.max,void 0,{number:!0}]]),v("span",pf,k(r.labels.maxAmount),1)])])):A("",!0),P(f,{variant:"thick",class:"my-fluid-lg"})],2))),128))]),v("div",ff,[P(c,{variant:"ghost",class:"w-full",full:"",onClick:i.onClearFilters},{default:B(()=>[Z(k(r.labels.clearFilters),1)]),_:1},8,["onClick"]),P(c,{variant:"primary",class:"w-full",full:"",onClick:t[5]||(t[5]=p=>i.applyFilters())},{default:B(()=>[Z(k(r.labels.applyFilters)+" ("+k(i.prevCount)+") ",1)]),_:1})])])):A("",!0)}const mf=O(Xp,[["render",gf]]),bf={name:"SelectedFilters",components:{IconNavigationMenuHorizontal:Fl,Button:me,Chip:zl,IconClose:Ll},props:{context:{type:String,required:!0}},data(){return{}},computed:{...K(Te,["activeChips"]),...K(vn,["allPartners","rawPartners"]),...K(se,{toplistAllPartners:"allPartners",toplists:"toplists"}),...K(Ue,["getProviderById"]),toplistPartnersForContext(){const e=this.toplists?.[this.context]||this.toplists?.default||[];return Array.isArray(e)?e:[]}
2,contextChips(){return this.activeChips(this.context)}},methods:{...ce(Te,["resetContext","updateFilter"]),getLabel(e){const t=typeof e=="string"?e:e.value,n=typeof e=="string"?null:e.key;if(n==="bonusAmount"){const{min:s,max:r}=e.value;return s!==null&&r!==null?`$${s} - $${r}`:s!==null?`Min $${s}`:r!==null?`Max $${r}`:""}if(e.key==="gameTypes")return this.$t(`gameTypes.${e.value}`);if(e.key==="providers"){const s=this.getProviderById(e.value);return s?s.name:e.value}if(e.key==="casinos")return this.getCasinoChipLabel(e.value);if(n==="paymentMethods"){const s=t||"";return s.charAt(0).toUpperCase()+s.slice(1)}return this.$te(`casinoFilters.${t}`)?this.$t(`casinoFilters.${t}`):this.$te(`advancedToplist.${t}`)?this.$t(`advancedToplist.${t}`):this.$te(t)?this.$t(t):t},getCasinoChipLabel(e){const t=this.findCasinoPartnerBySlug(e);return t&&(fe(t)||t?.phoenix?.name||t?.name)||e},findCasinoPartnerBySlug(e){if(!e)return null;const t=s=>(s?.phoenix?.slug||s?.slug)===e,n=[this.rawPartners,this.allPartners,this.toplistPartnersForContext,this.toplistAllPartners];for(let s=0;s<n.length;s+=1){const i=(n[s]||[]).find(t);if(i)return i}return null},selectFilter(e){this.$emit("remove-filter",e)},clearAllFilters(){const e=new Set;this.contextChips.forEach(t=>{if(t.type==="array"){if(e.has(t.key))return;e.add(t.key),this.updateFilter({context:this.context,key:t.key,value:[]})}else t.type==="simple"?this.updateFilter({context:this.context,key:t.key,value:null}):t.type==="bonusAmount"&&this.updateFilter({context:this.context,key:t.key,value:{min:null,max:null}})})}}},yf={key:0,class:"flex gap-2xs flex-wrap items-center"};function vf(e,t,n,s,r,i){const o=w("Chip"),a=w("IconClose"),c=w("Button");return i.contextChips.length?(g(),x("div",yf,[(g(!0),x(H,null,Y(i.contextChips,(l,d)=>(g(),S(o,{key:`chip-${d}`,size:"SM",text:i.getLabel(l),class:"min-w-[60px] cursor-pointer",selected:!1,icon:!0,onClick:u=>i.selectFilter(l)},null,8,["text","onClick"]))),128)),P(c,{class:"flex items-center gap-2xs cursor-pointer text-foreground-action ml-xs hover:text-foreground-2 transition-colors",variant:"primary-link",icon:"","icon-position":"left",onClick:i.clearAllFilters},{"icon-left":B(()=>[P(a)]),default:B(()=>[Z(" "+k(e.$t("clearFilters")),1)]),_:1},8,["onClick"])])):A("",!0)}const _f=O(bf,[["render",vf]]),xf=["quickFilters","drawerFilters","selectedFilters","dropdownSortBy"],wf=["casinos","games",pn.STANDARD_TOPLIST],kf={name:"Filters",components:{Dropdown:sr,DrawerFilters:mf,QuickFilters:hp,SelectedFilters:_f},props:{variant:{type:String,validator:e=>xf.includes(e),default:"quickFilters"},filtersType:{type:String,validator:e=>wf.includes(e),default:"casinos"},filtersKey:{type:String,default:""},context:{type:String,required:!0},autoApply:{type:Boolean,default:!1},hideSortByDesktop:{type:Boolean,default:!1},showChips:{type:Boolean,default:!1},customFilterOptions:{type:[Array,Object],default:()=>[]},defaultSort:{type:String,default:null}},data(){return{customFilterId:"",internalOntario:null}},computed:{...K(Te,["getFilterOptions","contextDefinitionKey","definition","getContextState"]),resolvedOntario(){return typeof this.internalOntario=="boolean"?this.internalOntario:!1},resolvedFiltersKey(){return this.contextDefinitionKey(this.context,this.variant)||this.filtersKey},drawerFilterItems(){return this.resolvedFiltersKey?this.definition(this.resolvedFiltersKey)?.items||{}:{}},dropdownSortByOptions(){return(this.definition(this.resolvedFiltersKey||"casinosSortBy")?.items?.sortBy?.options||[]).map(n=>({label:this.$t(`casinoFilters.${n}`)||n,value:n}))},defaultSortOption(){return this.defaultSort?this.dropdownSortByOptions.find(e=>e.value===this.defaultSort):null},filtersOptionsByName(){return this.getFilterOptions(this.filtersName)},dropdownSortByValue:{get(){return this.getContextState(this.context)?.sortBy},set(e){const t=typeof e=="object"&&e!==null?e.value:e;this.updateFilter({context:this.context,key:"sortBy",value:t})}}},watch:{customFilterOptions:{immediate:!0,handler(e){this.getLength(e)?(this.customFilterId=`customFilters-${Math.random().toString(36).substring(2,8)}
2`,this.setDefinitions({name:this.customFilterId,items:e})):this.customFilterId=""}}},mounted(){this.internalOntario===null&&ae&&(this.internalOntario=re(e=>!!(e&&e.location&&e.location.pathname.includes("/ontario/")),!1))},methods:{...ce(Te,["setFilterOptions","setDefinitions","updateFilter"]),getFiltersName(){this.getLength(this.customFilterOptions)&&(this.filtersName=`customFilters-${Math.random().toString(36).substring(2,8)}`,this.setFilterOptions({type:this.filtersName,options:this.customFilterOptions})),this.variant==="quickFilters"&&this.type==="casinos"&&(this.filtersName="casinoQuickFilters"),this.variant==="drawerFilters"&&this.type==="casinos"&&(this.filtersName="casinoDrawerFilters")},getLength(e){return Array.isArray(e)||typeof e=="string"?e.length:typeof e=="object"&&e!==null?Object.keys(e).length:0},handleOpenAllFilters(){this.$emit("open-all-filters")},handleRemoveFilter(e){if(e.type==="simple")this.updateFilter({context:this.context,key:e.key,value:null});else if(e.type==="bonusAmount")this.updateFilter({context:this.context,key:e.key,value:{min:null,max:null}});else if(e.type==="array"){const n=(this.getContextState(this.context)||{})[e.key]||[];if(Array.isArray(n)){const s=n.filter(r=>r!==e.value);this.updateFilter({context:this.context,key:e.key,value:s})}}}}},Cf={class:"h-full min-w-0 w-full"};function Sf(e,t,n,s,r,i){const o=w("QuickFilters"),a=w("DrawerFilters"),c=w("Dropdown"),l=w("SelectedFilters");return g(),x("div",Cf,[n.variant==="quickFilters"?(g(),S(o,{key:0,"filter-key":i.resolvedFiltersKey,context:n.context,onOpenAllFilters:t[0]||(t[0]=d=>i.handleOpenAllFilters())},null,8,["filter-key","context"])):A("",!0),n.variant==="drawerFilters"&&Object.keys(i.drawerFilterItems).length?(g(),S(a,{key:1,options:i.drawerFilterItems,"filter-key":i.resolvedFiltersKey,context:n.context,"auto-apply":n.autoApply,"hide-sort-by-desktop":n.hideSortByDesktop,onCloseDrawer:t[1]||(t[1]=d=>e.$emit("close-drawer"))},null,8,["options","filter-key","context","auto-apply","hide-sort-by-desktop"])):A("",!0),n.variant==="dropdownSortBy"?(g(),S(c,{key:2,modelValue:i.dropdownSortByValue,"onUpdate:modelValue":t[2]||(t[2]=d=>i.dropdownSortByValue=d),class:"2xs:hidden lg:block",size:"md",type:"field-only","default-value":i.defaultSortOption,icon:!1,"selection-type":"simple",variant:"elevated",options:i.dropdownSortByOptions,onInput:t[3]||(t[3]=d=>e.$emit("close-drawer"))},null,8,["modelValue","default-value","options"])):A("",!0),n.variant==="selectedFilters"?(g(),S(l,{key:3,context:n.context,onRemoveFilter:i.handleRemoveFilter},null,8,["context","onRemoveFilter"])):A("",!0)])}const Tf=O(kf,[["render",Sf]]),Pf={name:"FilterToolbar",components:{Divider:bs,Filters:Tf,Drawer:gd},computed:{...K(Te,["activeChips"]),hasActiveFilters(){const e=this.activeChips(this.context);return e&&e.length>0}},props:{context:{type:String,required:!0},defaultSort:{type:String,default:""},showSortBy:{type:Boolean,default:!0},showSelectedFilters:{type:Boolean,default:!0}},data(){return{isFiltersDrawerOpen:!1}},methods:{openFiltersDrawer(){this.isFiltersDrawerOpen=!0},handleCloseDrawer(){this.isFiltersDrawerOpen=!1}}},Af={class:"flex flex-col gap-fluid-sm mb-xs md:mb-lg"},Of={class:"flex flex-col gap-xs md:gap-sm lg:gap-md"}
2,Mf={class:"flex justify-between items-center gap-xs min-w-0 w-full"},Lf={class:"min-w-0 flex-1"};function If(e,t,n,s,r,i){const o=w("Filters"),a=w("Divider"),c=w("Drawer");return g(),x("div",Af,[v("div",Of,[v("div",Mf,[v("div",Lf,[P(o,{variant:"quickFilters","show-chips":"",context:n.context,onOpenAllFilters:i.openFiltersDrawer},null,8,["context","onOpenAllFilters"])]),n.showSortBy?(g(),S(o,{key:0,variant:"dropdownSortBy",context:n.context,"default-sort":n.defaultSort,class:"flex-shrink-0 2xs:hidden lg:block"},null,8,["context","default-sort"])):A("",!0)]),n.showSelectedFilters&&i.hasActiveFilters?(g(),S(a,{key:0,variant:"no-margin"})):A("",!0),n.showSelectedFilters?(g(),S(o,{key:1,variant:"selectedFilters",context:n.context},null,8,["context"])):A("",!0)]),P(c,{visible:r.isFiltersDrawerOpen,side:"right",size:"lg",onClose:i.handleCloseDrawer},{default:B(()=>[r.isFiltersDrawerOpen?(g(),S(o,{key:0,variant:"drawerFilters",context:n.context,onCloseDrawer:i.handleCloseDrawer,"auto-apply":"","hide-sort-by-desktop":n.showSortBy},null,8,["context","onCloseDrawer","hide-sort-by-desktop"])):A("",!0)]),_:1},8,["visible","onClose"])])}const Rf=O(Pf,[["render",If]]),Df={name:"CommercialToplist",components:{CommercialRow:Qh,Button:me,Message:sp,FilterToolbar:Rf},props:{contentRegion:{type:String,default:""},defaultStandardToplist:{type:String,default:""},ukRegulated:{type:Boolean,required:!1,default:!1},ontarioRegulated:{type:Boolean,required:!1,default:!1},albertaRegulated:{type:Boolean,required:!1},isUSA:{type:Boolean,required:!1},partnersToDisplay:{type:String,default:"all"},ctaData:{type:Object,default:()=>({})},useLocale:{type:String,default:""},pageType:{type:String,default:""},verticalFilter:{type:String,default:""},showPlayerFavoriteBadge:{type:Boolean,default:!1},showToplistFilters:{type:Boolean,default:!1},filterContext:{type:String,default:""},experiment6011:{type:Boolean,default:!1}},data(){return{loadingDelay:!0,buttonViewAllCasinos:this.$t("commercialRow.viewAllCasinos"),buttonViewMoreCasinos:this.$t("commercialRow.viewMoreCasinos"),ctaText:this.buttonViewAllCasinos,ctaLink:ir.reviews,isOntarioPage:re(e=>e.location.pathname.includes("/ontario/"),!1),isAlbertaPage:re(e=>e.location.pathname.includes("/alberta/"),!1),initInFlight:!1,clientInitDone:!1,CONTEXTS:pn,SORT_KEYS:es}},computed:{...K(se,["defaultToplist","toplistFiltered"]),...K(Te,["contextValues"]),isAlberta(){return this.albertaRegulated||this.isAlbertaPage},isOntario(){return(this.ontarioRegulated||this.isOntarioPage)&&!this.isAlberta},shouldIgnoreUsGeo(){return this.isOntario||this.useLocale==="fr"||["ontario","france"].includes(this.defaultStandardToplist)},effectiveIsUSA(){return this.shouldIgnoreUsGeo?!1:this.isUSA||ar()},hasAxios(){return!!this.$axios},resolvedContentRegion(){return Xi({contentRegion:this.contentRegion,isOntario:this.isOntario,isAlberta:this.isAlberta})},isBonusRegulated(){return this.isOntario||this.isAlberta},resolvedPageType(){return this.effectiveIsUSA&&(!this.pageType||["homepage","default"].includes(String(this.pageType).trim().toLowerCase()))?"homepage":this.isAlberta&&(!this.pageType||String(this.pageType).trim().toLowerCase()==="default")?"alberta":this.pageType||"default"},resolvedVerticalFilter(){return this.verticalFilter||(this.effectiveIsUSA?"Casino":"")},hasToplistData(){return Array.isArray(this.defaultToplist)&&this.defaultToplist.length>0},resolvedFilterContext(){return Object.values(pn).includes(this.filterContext)?this.filterContext:pn.STANDARD_TOPLIST},itemsToShow(){const t=this.isBonusRegulated?this.defaultToplist:this.toplistFiltered(this.resolvedFilterContext),n=Array.isArray(t)?t:[];if(this.partnersToDisplay==="all")return n.slice(0,15);const s=Number(this.partnersToDisplay);if(!Number.isFinite(s))return n;const r=Math.max(0,Math.floor(s));return n.slice(0,r)},ctaButtonText(){return this.ctaData!==null?this.ctaData.text:this.isOntario?this.buttonViewMoreCasinos:this.buttonViewAllCasinos},ctaButtonLink(){return this.ctaData!==null?this.ctaData.link:this.ctaLink},allCurrentFilters(){return{}}},watch:{defaultToplist:{immediate:!0,handler(e){e&&e.length>0&&(this.loadingDelay=!1,is(t=>{const n=t.getElementById("commercialToplistSkeleton");n&&n.classList.add("hidden")}),ae&&this.itemsToShow?.length&&Sl(this.itemsToShow))}},toplistFiltered(e){}},mounted(){ae&&this.$nextTick(()=>{this.initializeToplist()})},serverPrefetch(){return!this.hasAxios||this.hasToplistData&&!this.isOntario&&!this.isAlberta&&!this.effectiveIsUSA?Promise.resolve():this.loadToplistData().catch(()=>{})},methods:{...ce(se,["getToplistByType"]),async initializeToplist(){if(!this.clientInitDone&&!this.initInFlight){this.initInFlight=!0;try{(!this.hasToplistData||this.isOntario||this.isAlberta||this.effectiveIsUSA)&&this.hasAxios&&await this.loadToplistData(),this.clientInitDone=!0}catch(e){console.error("Failed to load toplist data:",e)}finally{this.initInFlight=!1}}},async loadToplistData(){if(this.hasAxios)try{this.loadingDelay=!0,await this.getToplistByType({toplistType:"default",isOntario:this.isOntario,isAlberta:this.isAlberta,contentRegion:this.resolvedContentRegion,isUSA:this.effectiveIsUSA,defaultToplist:this.defaultStandardToplist,pageLanguage:this.useLocale,pageType:this.resolvedPageType,verticalFilter:this.resolvedVerticalFilter,axios:this.$axios})}catch(e){console.error("Failed to load toplist data:",e),this.loadingDelay=!1}}}},Ff={key:0,class:"flex flex-col gap-fluid-sm"},Bf={class:"flex flex-col gap-xs md:gap-md"};function Ef(e,t,n,s,r,i){const o=w("FilterToolbar"),a=w("CommercialRow"),c=w("Message"),l=w("Button");return g(),x("div",null,[n.showToplistFilters?(g(),x("div",Ff,[P(o,{context:i.resolvedFilterContext},null,8,["context"])])):A("",!0),v("div",Bf,[(g(!0),x(H,null,Y(i.itemsToShow,(d,u)=>(g(),S(a,{key:u,"partner-data":d,index:u,"ontario-regulated":n.ontarioRegulated,"alberta-regulated":n.albertaRegulated,"uk-regulated":n.ukRegulated,"displayl-payers-favorite-badge":n.showPlayerFavoriteBadge&&u===2,"experiment-6011":n.experiment6011},null,8,["partner-data","index","ontario-regulated","alberta-regulated","uk-regulated","displayl-payers-favorite-badge","experiment-6011"]))),128)),n.ontarioRegulated?(g(),S(c,{key:0})):A("",!0),n.albertaRegulated?(g(),S(c,{key:1,message:e.$t("tncAbDefaultMessage"),link:{text:"GameSenseAB.ca",href:"https://gamesenseab.ca/"}}
2,null,8,["message"])):A("",!0),P(l,{tag:"a",size:"LG",href:i.ctaButtonLink,variant:"primary",class:"self-center","data-aa-tracker":`Link to ${i.ctaButtonText}`},{default:B(()=>[Z(k(i.ctaButtonText),1)]),_:1},8,["href","data-aa-tracker"])])])}const $f=O(Df,[["render",Ef]]),Nf={name:"IconArrowTriangle",props:{colorClass:{type:String,default:"text-foreground-accent"}}},zf=Tt+"#icon-arrow-triangle";function jf(e,t,n,s,r,i){return g(),x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",class:z(n.colorClass)},[...t[0]||(t[0]=[v("use",{href:zf},null,-1)])],2)}const Vf=O(Nf,[["render",jf]]),Gf=["default","pinned"],Hf={name:"PartnerMolecule",components:{Favicon:Pt,IconArrowTriangle:Vf},mixins:[Ne],props:{index:{type:[String,Number],required:!0},partner:{type:Object,required:!0},isSelectedPartner:{type:Boolean,default:!0},variant:{type:String,validator:e=>Gf.includes(e),default:"default"},showArrowIcon:{type:Boolean,default:!1}},emits:["new-partner-selected"],computed:{...K(ge,["isDesktop"]),...K(se,["filters"]),isCompact(){return!this.isDesktop},indexNum(){return this.index+1},displayName(){return fe(this.partner)},partnerName(){const e=this.displayName||"-";return e.length>5?`${e.slice(0,5)}...`:e},faviconComputedSize(){return this.variant==="pinned"?this.isCompact?"2xs":"xs":this.variant==="default"?this.isCompact?"2xs":this.isSelectedPartner?"md":"sm":"md"},showRanking(){return(this.variant==="default"||this.variant==="pinned")&&!this.isCompact},favIconBlur(){return this.partner?.phoenix?.attributes?.gradientStop2},partnerLogo(){const e=this.partner.phoenix?.attributes?.faviconLight||"";return e?`https://images.casino.ca/${e}`:""}}
2,methods:{...ce(se,["setCurrentPartner"]),setActivePartner(e){this.addCustomTracking(`PartnerMolecule: Select ${fe(e)}`,"Click","Not Applicable","PartnerMolecule","Click","Not Applicable"),e&&e.phoenix&&e.phoenix.id&&this.setCurrentPartner(e),this.$emit("new-partner-selected",this.index)}}},Wf=["data-aa-tracker"];function Uf(e,t,n,s,r,i){const o=w("Favicon"),a=w("IconArrowTriangle");return g(),x("div",{class:z(["flex flex-col items-center cursor-pointer gap-2xs relative py-xs lg:pt-[12px]",[{"px-xs":n.isSelectedPartner},{"lg:pb-lg":n.showArrowIcon},{"pt-xs lg:pt-xs":n.variant==="pinned"}]]),"data-aa-tracker":`Select ${i.displayName||"N/A"}`,onClick:t[0]||(t[0]=c=>i.setActivePartner(n.partner))},[P(o,{ranking:i.showRanking,"ranking-number":i.indexNum,size:i.faviconComputedSize,"image-path":i.partnerLogo,"image-name":i.displayName||"N/A",blur:n.isSelectedPartner?i.favIconBlur:"",class:z(n.isSelectedPartner?"border-sm color-stroke-accent rounded-pill lg:border-0 p-px lg:p-0":"")},null,8,["ranking","ranking-number","size","image-path","image-name","blur","class"]),n.variant==="default"?(g(),x("span",{key:0,class:z([{"title-xs":n.isSelectedPartner,"body-md":!n.isSelectedPartner},"2xs:hidden lg:block"])},k(i.partnerName),3)):A("",!0),n.isSelectedPartner&&n.showArrowIcon?(g(),S(a,{key:1,class:"absolute bottom-0 left-1/2 -translate-x-1/2 2xs:hidden lg:block"})):A("",!0)],10,Wf)}const qf=O(Hf,[["render",Uf]]),Yf={name:"IconNavigationMenu",components:{VImage:W}};function Zf(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/navigation-menu.svg",alt:"Navigation menu icon",width:"12",height:"10"})}const Kf=O(Yf,[["render",Zf]]),Xf={name:"BarChart",props:{partners:{type:Array,required:!0},initialMin:{type:Number,default:null},initialMax:{type:Number,default:null}},data(){return{minAmount:this.initialMin,maxAmount:this.initialMax,tooltipVisible:!1,tooltipAmount:null,filteredPartners:this.partners,labels:{minAmount:this.$t("advancedToplist.minAmount"),maxAmount:this.$t("advancedToplist.maxAmount")}}},computed:{...K(se,["filters"]),bars(){if(!this.filteredPartners.length)return[];const t=this.filteredPartners.map(n=>$r(n)).filter(n=>n!==0).reduce((n,s)=>(n[s]=(n[s]||0)+1,n),{});return Object.entries(t).map(([n,s])=>({amount:n,height:s/Math.max(...Object.values(t))*100}))}},watch:{partners:{handler(){this.updateFilteredPartners()},immediate:!0},initialMin:{handler(e){e===null&&this.initialMax===null&&(this.minAmount=null,this.maxAmount=null,this.updateFilteredPartners()),this.minAmount=e},immediate:!0},initialMax:{handler(e){this.initialMin===null&&e===null&&(this.minAmount=null,this.maxAmount=null,this.updateFilteredPartners()),this.maxAmount=e},immediate:!0}},created(){this.debouncedUpdateFilteredPartners=this.debounce(this.updateFilteredPartners,300)},methods:{...ce(se,["updateMinAmount","updateMaxAmount"]),parseBonusAmount(e){if(typeof e!="string")return 0;const t=e.replace(/[^\d.-]+/g,"");return parseFloat(t)},updateFilteredPartners(){this.minAmount===null&&this.maxAmount===null?this.filteredPartners=this.partners:this.filteredPartners=this.partners.filter(e=>{const t=$r(e);return(this.minAmount===null||t>=this.minAmount)&&(this.maxAmount===null||t<=this.maxAmount)&&t!==0})},showTooltip(e){this.tooltipAmount=e,this.tooltipVisible=!0},hideTooltip(){this.tooltipVisible=!1,this.tooltipAmount=null},debounce(e,t){let n;return function(...r){const i=this;clearTimeout(n),n=setTimeout(()=>e.apply(i,r),t)}},handleMinAmountInput(e){const t=e===""?null:Number(e);this.minAmount=t,this.$emit("min-amount-updated",t),this.debouncedUpdateFilteredPartners()},handleMaxAmountInput(e){const t=e===""?null:Number(e);this.maxAmount=t,this.$emit("max-amount-updated",t),this.debouncedUpdateFilteredPartners()}}},Jf={class:""},Qf={class:"flex gap-2xs h-[88px] border-b-lg color-stroke-accent items-end justify-center mb-lg"},eg=["onMouseenter","onClick"],tg={key:0,class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2xs px-xs py-2xs background-1 text-foreground-2 text-xs rounded-md whitespace-nowrap z-30 leading-150 ml-xs mt-2xs"},ng={class:"grid grid-cols-2 gap-lg"},sg=["placeholder"],ig=["placeholder"];function rg(e,t,n,s,r,i){return g(),x("div",Jf,[v("div",Qf,[(g(!0),x(H,null,Y(i.bars,o=>(g(),x("div",{key:o.amount,class:"relative background-accent-1 text-center text-foreground-on-dark w-[12px]",style:Le({height:o.height+"%"}),onMouseenter:a=>i.showTooltip(o.amount),onMouseleave:t[0]||(t[0]=(...a)=>i.hideTooltip&&i.hideTooltip(...a)),onClick:a=>i.showTooltip(o.amount)},[r.tooltipVisible&&r.tooltipAmount===o.amount?(g(),x("span",tg,k(o.amount),1)):A("",!0)],44,eg))),128))]),v("div",ng,[tt(v("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>r.minAmount=o),type:"number",class:"text-foreground-3 focus:text-foreground-1 background-elevation-2 text-center px-lg py-xs rounded-md cursor-text outline-none color-stroke-elevation max-w-[145px] justify-self-start border-sm focus:border-md focus:color-stroke-accent backdrop-blur-sm",placeholder:r.labels.minAmount,onInput:t[2]||(t[2]=o=>i.handleMinAmountInput(o.target.value))},null,40,sg),[[_n,r.minAmount,void 0,{number:!0}]]),tt(v("input",{"onUpdate:modelValue":t[3]||(t[3]=o=>r.maxAmount=o),type:"number",class:"text-foreground-3 focus:text-foreground-1 background-elevation-2 text-center px-lg py-xs rounded-md cursor-text outline-none color-stroke-elevation max-w-[145px] justify-self-end border-sm focus:border-md focus:color-stroke-accent backdrop-blur-sm",placeholder:r.labels.maxAmount,onInput:t[4]||(t[4]=o=>i.handleMaxAmountInput(o.target.value))},null,40,ig),[[_n,r.maxAmount,void 0,{number:!0}]])])])}const og=O(Xf,[["render",rg],["__scopeId","data-v-4c194b29"]]),ag={name:"FiltersModal",components:{Modal:Tl,Button:me,BarChart:og,Checkbox:El,RadioButton:Bl},mixins:[Ne],props:{showModal:{type:Boolean,default:!1},partners:{type:Array,required:!0},ontarioRegulated:{type:Boolean,default:!1}},data(){return{isOntarioPage:!1,labels:{sortBy:this.$t("advancedToplist.sortBy"),depositType:this.$t("advancedToplist.depositType"),bonusAmount:this.$t("advancedToplist.bonusAmount"),otherFeatures:this.$t("advancedToplist.otherFeatures"),rating:this.$t("advancedToplist.rating"),filters:this.$t("advancedToplist.filters"),noDeposit:this.$t("advancedToplist.noDeposit"),accepted:this.$t("advancedToplist.accepted"),resetAll:this.$t("advancedToplist.resetAll")},localFilters:{sortBy:"",depositType:[],bonusAmount:"",otherFeatures:[],rating:""},ratingOptions:[{value:"",label:"Any"},{value:"3.5",label:"3.5+"},{value:"4",label:"4+"},{value:"4.5",label:"4.5+"},{value:"5",label:"5"}],sortByOptions:[{value:"",label:this.$t("advancedToplist.higherRanking")},{value:"Higher rating",label:this.$t("advancedToplist.higherRating")},{value:"Higher welcome bonus",label:this.$t("advancedToplist.higherWelc
2omeBonus")},{value:"Fastest payout",label:this.$t("advancedToplist.fastestPayout")},{value:"A-Z",label:"A-Z"},{value:"Z-A",label:"Z-A"}]}},computed:{...K(se,["filters","filteredPartnersCount"]),filteredSortByOptions(){return this.ontarioRegulated||this.isOntarioPage?this.sortByOptions.filter(e=>e.value!=="Higher welcome bonus"):this.sortByOptions},filteredPartnersCountCopy(){const e=`${this.$t("advancedToplist.see")} ${this.filteredPartnersCount} ${this.$t("advancedToplist.casino")}`;return this.filteredPartnersCount===1?e:`${e}s`}},watch:{filters:{handler(e){this.localFilters={sortBy:e.sortBy,depositType:e.depositType,bonusAmount:e.bonusAmount,otherFeatures:e.otherFeatures,rating:e.rating}},deep:!0,immediate:!0}},mounted(){ae&&(this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1))},methods:{...ce(se,["updateFilters"]),close(){this.$emit("close")},setSortByOption(e){this.localFilters.sortBy=e.value,this.addCustomTracking(`Modal Filters ${this.labels.sortBy} ${e.label}`,"Click","Not Applicable","Radio Button","Click","Not Applicable"),this.updateFiltersOnChange()},applyFilters(){this.updateFilters(this.localFilters),this.$emit("close"),this.addCustomTracking(`Modal Filters ${this.filteredPartnersCountCopy}`,"Click","Not Applicable","Button","Click","Not Applicable")},resetFilters(){const e={sortBy:"",depositType:[],otherFeatures:[],rating:"",minAmount:null,maxAmount:null};this.updateFilters(e),this.localFilters={...e},this.addCustomTracking(`Modal Filters ${this.labels.resetAll}`,"Click","Not Applicable","Button","Click","Not Applicable")},updateFiltersOnChange(){this.updateFilters(this.localFilters)}}},lg={class:"flex flex-col gap-xl"},cg={class:"title-xs mb-md"},dg={class:"title-xs mb-md"},ug=["data-aa-tracker"],hg=["data-aa-tracker"],pg=["data-aa-tracker"],fg=["data-aa-tracker"],gg={key:0,class:"gap-xl"},mg={class:"title-xs mb-md"},bg={class:"flex flex-col"},yg={class:"title-xs mb-md"},vg=["data-aa-tracker"],_g=["data-aa-tracker"],xg=["data-aa-tracker"],wg={class:"title-xs mb-md"},kg={class:"flex items-center gap-xs"},Cg=["data-aa-tracker","onClick"],Sg=["value"],Tg={class:"flex items-center justify-end py-md px-lg"};function Pg(e,t,n,s,r,i){const o=w("RadioButton"),a=w("Checkbox"),c=w("BarChart"),l=w("Button"),d=w("Modal");return g(),S(d,{title:r.labels.filters,size:"MD","h-size":"MD","show-footer":!0,visible:n.showModal,onClose:i.close},{body:B(()=>[v("div",lg,[v("div",null,[v("p",cg,k(r.labels.sortBy),1),v("div",null,[(g(!0),x(H,null,Y(i.filteredSortByOptions,u=>(g(),S(o,{key:u.value,label:u.label,checked:r.localFilters.sortBy===u.value,class:"mb-md last:mb-0",onClick:h=>i.setSortByOption(u)},null,8,["label","checked","onClick"]))),128))])]),t[19]||(t[19]=v("div",{class:"border-t-sm color-stroke-2"},null,-1)),v("div",null,[v("p",dg,k(r.labels.depositType),1),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.depositType} ${r.labels.noDeposit}`,onClick:t[1]||(t[1]=u=>e.addCustomTracking(`Modal Filters ${r.labels.depositType} ${r.labels.noDeposit}`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.depositType,"onUpdate:modelValue":t[0]||(t[0]=u=>r.localFilters.depositType=u),"checkbox-value":"0","label-class":["flex","items-center","gap-xs"],class:"mb-md",onChange:i.updateFiltersOnChange},{default:B(()=>[Z(k(r.labels.noDeposit),1)]),_:1},8,["modelValue","onChange"])],8,ug),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.depositType} $1`,onClick:t[3]||(t[3]=u=>e.addCustomTracking(`Modal Filters ${r.labels.depositType} $1`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.depositType,"onUpdate:modelValue":t[2]||(t[2]=u=>r.localFilters.depositType=u),"checkbox-value":"1","label-class":["flex","items-center","gap-xs"],class:"mb-md",onChange:i.updateFiltersOnChange},{default:B(()=>[...t[16]||(t[16]=[Z(" $1 ",-1)])]),_:1},8,["modelValue","onChange"])],8,hg),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.depositType} $10`,onClick:t[5]||(t[5]=u=>e.addCustomTracking(`Modal Filters ${r.labels.depositType} $10`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.depositType,"onUpdate:modelValue":t[4]||(t[4]=u=>r.localFilters.depositType=u),"checkbox-value":"10","label-class":["flex","items-center","gap-xs"],class:"mb-md",onChange:i.updateFiltersOnChange},{default:B(()=>[...t[17]||(t[17]=[Z(" $10 ",-1)])]),_:1},8,["modelValue","onChange"])],8,pg),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.depositType} $20`,onClick:t[7]||(t[7]=u=>e.addCustomTracking(`Modal Filters ${r.labels.depositType} $20`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.depositType,"onUpdate:modelValue":t[6]||(t[6]=u=>r.localFilters.depositType=u),"checkbox-value":"20","label-class":["flex","items-center","gap-xs"],onChange:i.updateFiltersOnChange},{default:B(()=>[...t[18]||(t[18]=[Z(" $20 ",-1)])]),_:1},8,["modelValue","onChange"])],8,fg)]),t[20]||(t[20]=v("div",{class:"border-t-sm color-stroke-2"},null,-1)),n.ontarioRegulated?A("",!0):(g(),x("div",gg,[v("p",mg,k(r.labels.bonusAmount),1),P(c,{partners:n.partners},null,8,["partners"])])),t[21]||(t[21]=v("div",{class:"border-t-sm color-stroke-2"},null,-1)),v("div",bg,[v("p",yg,k(r.labels.otherFeatures),1),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.otherFeatures} Visa ${r.labels.accepted}`,onClick:t[9]||(t[9]=u=>e.addCustomTracking(`Modal Filters ${r.labels.otherFeatures} Visa ${r.labels.accepted}`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.otherFeatures,"onUpdate:modelValue":t[8]||(t[8]=u=>r.localFilters.otherFeatures=u),"checkbox-value":"visa",class:"mb-md","label-class":["flex","items-center","gap-xs"],onChange:i.updateFiltersOnChange},{default:B(()=>[Z(" Visa "+k(r.labels.accepted),1)]),_:1},8,["modelValue","onChange"])],8,vg),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.otherFeatures} Crypto ${r.labels.accepted}`,onClick:t[11]||(t[11]=u=>e.addCustomTracking(`Modal Filters ${r.labels.otherFeatures} Crypto ${r.labels.accepted}`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.otherFeatures,"onUpdate:modelValue":t[10]||(t[10]=u=>r.localFilters.otherFeatures=u),"checkbox-value":"crypto",class:"mb-md","label-class":["flex","items-center","gap-xs"],onChange:i.updateFiltersOnChange},{default:B(()=>[Z(" Crypto "+k(r.labels.accepted),1)]),_:1},8,["modelValue","onChange"])],8,_g),v("div",{"data-aa-tracker":`Modal Filters ${r.labels.otherFeatures} Interac ${r.labels.accepted}`,onClick:t[13]||(t[13]=u=>e.addCustomTracking(`Modal Filters ${r.labels.otherFeatures} Interac ${r.labels.accepted}`,"Click","Not Applicable","Checkbox","Click","Not Applicable"))},[P(a,{modelValue:r.localFilters.otherFeatures,"onUpdate:modelValue":t[12]||(t[12]=u=>r.localFilters.otherFeatures=u),"checkbox-value":"interac","label-class":["flex","items-center","gap-xs"],onChange:i.updateFiltersOnChange},{default:B(()=>[Z(" Interac "+k(r.labels.accepted),1)]),_:1},8,["modelValue","onChange"])],8,xg)]),t[22]||(t[22]=v("div",{class:"border-t-sm color-stroke-2"},null,-1)),v("div",null,[v("p",wg,k(r.labels.rating),1),v("div",kg,[(g(!0),x(H,null,Y(r.ratingOptions,u=>(g(),x("label",{key:u.value,"data-aa-tracker":`Modal Filters ${r.labels.rating} ${u.label}`,class:"relative flex items-center justify-center m-0 min-w-[60px]",onClick:h=>e.addCustomTracking(`Modal Filters ${r.labels.rating} ${u.label}`,"Click","Not Applicable","Radio Button","Click","Not Applicable")},[tt(v("input",{"onUpdate:modelValue":t[14]||(t[14]=h=>r.localFilters.rating=h),type:"radio",value:u.value,class:"hidden",onChange:t[15]||(t[15]=(...h)=>i.updateFiltersOnChange&&i.updateFiltersOnChange(...h))},null,40,Sg),[[hd,r.localFilters.rating]]),v("span",{class:z(["rounded-pill cursor-pointer transition-colors duration-300 w-full text-xs flex items-center justify-center py-2xs leading-150",{"switcher-active":r.localFilters.rating===u.value,switcher:r.localFilters.rating!==u.value}])},k(u.label),3)],8,Cg))),128))])])])]),footer:B(()=>[v("div",Tg,[P(l,{variant:"ghost",class:"mr-xs","data-aa-tracker":`Modal Filters ${r.labels.resetAll}`,onClick:i.resetFilters},{default:B(()=>[Z(k(r.labels.resetAll),1)]),_:1},8,["data-aa-tracker","onClick"]),P(l,{variant:"primary","data-aa-tracker":`Modal Filters ${i.filteredPartnersCountCopy}`,onClick:i.applyFilters},{default:B(()=>[Z(k(i.filteredPartnersCountCopy),1)]),_:1},8,["data-aa-tracker","onClick"])])]),_:1},8,["title","visible","onClose"])}const Ag=O(ag,[["render",Pg]]),Og={name:"SearchPartner",components:{Favicon:Pt,Rating:St},props:{partner:{type:Object,required:!0},variant:{type:String,default:"default"},isActive:{type:Boolean,default:!1},selectionMode:{type:String,default:"toplist",validator:e=>["toplist","emit"].includes(e)}}
2,computed:{...K(ge,["isMobile","isTablet","isDesktop"]),partnerDisplayName(){return fe(this.partner)},partnerNameDefault(){return this.partnerDisplayName||"-"},partnerNameList(){return this.partnerDisplayName||"N/A"},partnerRating(){return this.partner?.phoenix?.attributes?.rating??0},partnerLogo(){const e=this.partner.phoenix?.attributes?.faviconLight||"";return e?`https://images.casino.ca/${e}`:""},favIconSize(){return this.variant==="list"||this.isMobile?"sm":this.isTablet?"md":"lg"}},methods:{...ce(se,["setCurrentPartner"]),setActivePartner(e){if(this.selectionMode==="emit"){this.$emit("select",e);return}this.$emit("close"),e&&e.phoenix&&e.phoenix.id&&this.setCurrentPartner(e)}}},Mg=["data-aa-tracker"],Lg={class:"flex flex-col items-start justify-center gap-fluid-xs"},Ig={key:0,class:"font-regular text-xs text-center text-foreground-2 leading-150 2xs:px-md lg:px-0"},Rg={key:1,class:"font-bold text-sm text-center text-foreground-2 leading-150"};function Dg(e,t,n,s,r,i){const o=w("Favicon"),a=w("Rating");return g(),x("div",{class:z(["flex w-full items-center cursor-pointer transition-all duration-150",[n.variant==="list"?"flex-row gap-xs p-md":"flex-col gap-xs",n.isActive?"border-sm color-stroke-accent background-elevation-4 rounded-lg":"hover:bg-elevation-2"]]),"data-aa-tracker":`Select ${i.partnerDisplayName||"N/A"}`,onClick:t[0]||(t[0]=c=>i.setActivePartner(n.partner))},[i.partnerLogo?(g(),S(o,{key:0,"image-path":i.partnerLogo,"image-name":i.partnerDisplayName?i.partnerDisplayName:"N/A",size:i.favIconSize},null,8,["image-path","image-name","size"])):A("",!0),v("div",Lg,[n.variant==="default"?(g(),x("span",Ig,k(i.partnerNameDefault),1)):(g(),x("span",Rg,k(i.partnerNameList),1)),n.variant==="list"?(g(),S(a,{key:2,rating:i.partnerRating,variant:"single"},null,8,["rating"])):A("",!0)])],10,Mg)}const Fg=O(Og,[["render",Dg]]),Bg={name:"SearchModal",components:{Modal:Tl,SearchPartner:Fg,IconMagnifier:Il,IconDelete:iu},props:{showModal:{type:Boolean,default:!1},partners:{type:Array,required:!0},titleText:{type:String,default:""},showHeader:{type:Boolean,default:!0},selectionMode:{type:String,default:"toplist",validator:e=>["toplist","emit"].includes(e)},appendToBody:{type:Boolean,default:!1}},data(){return{searchQuery:"",filteredPartners:[],activeIndex:0,isSearching:!1}},computed:{labels(){return{search:this.$t("advancedToplist.search"),cancelSearch:this.$t("advancedToplist.cancelSearch"),addCasino:this.$t("advancedToplist.addCasino")}}},watch:{showModal(e){e||this.clearSearch()},searchQuery(e){e||(this.filteredPartners=[],this.isSearching=!1)}},methods:{close(){this.$emit("close")},filterPartners(){const e=this.searchQuery.toLowerCase();this.isSearching=!!e,this.filteredPartners=this.partners.filter(t=>t?.phoenix?.name?.toLowerCase().includes(e)),this.activeIndex=0},moveDown(){this.filteredPartners.length&&this.activeIndex<this.filteredPartners.length-1&&(this.activeIndex+=1)},moveUp(){this.filteredPartners.length&&this.activeIndex>0&&(this.activeIndex-=1)},onPartnerSelect(e){e&&(this.selectionMode==="emit"?this.$emit("select",e):e.phoenix&&e.phoenix.id&&se().setCurrentPartner(e),this.close())},selectActive(){this.filteredPartners.length&&this.onPartnerSelect(this.filteredPartners[this.activeIndex])},clearSearch(){this.searchQuery="",this.filteredPartners=[],this.activeIndex=0,this.isSearching=!1}}},Eg={class:"flex items-center justify-between w-full"},$g={key:0,class:"leading-150 title-xs md:title-sm"},Ng={class:"sticky top-0 pb-xs md:pb-md lg:pb-lg background-elevation-1 z-10"},zg={class:"flex items-center relative background-elevation-1 rounded-md w-full"},jg=["placeholder"],Vg={key:0,class:"flex flex-col gap-xs px-lg pb-5xl overflow-y-auto max-h-[calc(130px*2+theme(space.lg))]"},Gg={key:1,class:"grid grid-cols-3 md:grid-cols-6 gap-md auto-rows-[130px] overflow-y-auto max-h-[calc(130px*2+theme(space.lg))]"};function Hg(e,t,n,s,r,i){const o=w("IconMagnifier"),a=w("IconDelete"),c=w("SearchPartner"),l=w("Modal");return g(),S(l,{visible:n.showModal,size:"LG","append-to-body":n.appendToBody,onClose:i.close},bl({body:B(()=>[v("div",null,[v("div",Ng,[v("div",zg,[P(o,{class:"w-[16px] h-[16px] text-gray-500 ml-md absolute"}),tt(v("input",{"onUpdate:modelValue":t[1]||(t[1]=d=>r.searchQuery=d),type:"text",placeholder:i.labels.search,class:"text-foreground-3 focus:text-foreground-1 pr-md py-sm w-full outline-none rounded-md border-sm focus:border-md focus:color-stroke-accent backdrop-blur-sm",onInput:t[2]||(t[2]=(...d)=>i.filterPartners&&i.filterPartners(...d)),onKeydown:[t[3]||(t[3]=et(ts((...d)=>i.moveDown&&i.moveDown(...d),["prevent"]),["down"])),t[4]||(t[4]=et(ts((...d)=>i.moveUp&&i.moveUp(...d),["prevent"]),["up"])),t[5]||(t[5]=et(ts((...d)=>i.selectActive&&i.selectActive(...d),["prevent"]),["enter"])),t[6]||(t[6]=et((...d)=>i.close&&i.close(...d),["esc"]))]},null,40,jg),[[_n,r.searchQuery]]),r.searchQuery?(g(),x("span",{key:0,class:"absolute right-0 top-0 mt-md mr-xl text-gray-500 cursor-pointer",onClick:t[7]||(t[7]=(...d)=>i.clearSearch&&i.clearSearch(...d))},[P(a,{class:"text-ghost-foreground"})])):A("",!0)])]),r.isSearching?(g(),x("div",Vg,[(g(!0),x(H,null,Y(r.filteredPartners,(d,u)=>(g(),S(c,{key:u,partner:d,variant:"list","is-active":u===r.activeIndex,"selection-mode":n.selectionMode,onClose:i.close,onSelect:i.onPartnerSelect},null,8,["partner","is-active","selection-mode","onClose","onSelect"]))),128))])):(g(),x("div",Gg,[(g(!0),x(H,null,Y(n.partners,(d,u)=>(g(),S(c,{key:u,partner:d,"selection-mode":n.selectionMode,onClose:i.close,onSelect:i.onPartnerSelect},null,8,["partner","selection-mode","onClose","onSelect"]))),128))]))])]),_:2},[n.showHeader?{name:"header",fn:B(()=>[v("div",Eg,[r.isSearching?(g(),x("button",{key:1,class:"text-accent font-medium",onClick:t[0]||(t[0]=(...d)=>i.clearSearch&&i.clearSearch(...d))},k(i.labels.cancelSearch),1)):(g(),x("span",$g,k(n.titleText||i.labels.addCasino),1))])]),key:"0"}:void 0]),1032,["visible","append-to-body","onClose"])}const jl=O(Bg,[["render",Hg],["__scopeId","data-v-cb32a194"]]),Wg={name:"SelectionBar",components:{PartnerMolecule:qf,Button:me,IconNavigationMenu:Kf,IconMagnifier:Il,CustomSlider:Gt,FiltersModal:Ag,SearchModal:jl,IconCloseAltFilled:Nl},mixins:[Ne],props:{toplistData:{type:Array,required:!0},ontarioRegulated:{type:Boolean,default:!1}},data(){return{isPinned:!1,rect:null,activePartner:null,choseACasino:this.$t("advancedToplist.choseACasino"),filters:this.$t("advancedToplist.filters"),bestRanked:this.$t("advancedToplist.bestRanked"),showModal:!1,showSearchModal:!1,noMatches:this.$t("advancedToplist.noMatches"),activePartnerSlide:0,clearAll:this.$t("advancedToplist.clearAll"),isOntarioPage:!1}},computed:{...K(ge,["width"]),...K(se,["toplists","currentPartner","filteredPartners","appliedFiltersCount"]),defaultToplist(){return this.toplists.default||[]}
2,isClient(){return ae},ariaLabelButton(){return this.$t("buttonAriaLabel.searchButton")}},watch:{toplists:{immediate:!0,deep:!0,handler(e){e.default.length&&this.setDefaultPartner()}},currentPartner:{immediate:!0,deep:!0,handler(e){e&&(this.activePartner=e)}}},mounted(){ae&&(this.handleWindowScrollThrottled=this.throttle(this.handleWindowScroll,100),re(t=>{t.addEventListener("scroll",this.handleWindowScrollThrottled)}));const e=is(t=>t.getElementById("bonusToplistSkeleton"));e&&e.classList.add("hidden"),this.toplistData&&this.setToplist({toplist:this.toplistData,type:"default"}),this.isOntarioPage=re(t=>t.location.pathname.includes("/ontario/"),!1)},beforeUnmount(){ae&&re(e=>{e.removeEventListener("scroll",this.handleWindowScrollThrottled)})},methods:{...ce(se,["setToplist","setCurrentPartner","updateFilters"]),setDefaultPartner(){this.toplists.default.length>0&&this.setCurrentPartner(this.toplists.default[0])},handleWindowScroll(){if(!ae)return;const e=this.$refs["selection-bar"],t=is(n=>n.querySelector(".sticky-wrapper"));if(e&&t){const n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),r=n.top,i=this.width<1024?-80:-173;r<i&&s.bottom>0?this.isPinned=!0:this.isPinned=!1}},throttle(e,t){let n,s;return(...i)=>{if(!s){e.apply(this,i),s=Date.now();return}clearTimeout(n);const o=Math.max(t-(Date.now()-s),0);n=setTimeout(()=>{Date.now()-s>=t&&(e.apply(this,i),s=Date.now())},o)}},newPartnerSelected(e){this.activePartnerSlide=e},resetFilters(){const e={sortBy:"",depositType:[],otherFeatures:[],rating:"",minAmount:null,maxAmount:null};this.updateFilters(e)}}},Ug={ref:"selection-bar",class:"flex lg:flex-col overflow-hidden lg:overflow-visible gap-xs lg:gap-md"},qg={class:"flex lg:w-full items-center gap-sm lg:gap-md lg:pl-xl"},Yg={class:"flex items-center gap-xs lg:gap-md"},Zg={class:"flex justify-end items-start lg:hidden"},Kg={key:0,class:"flex items-center justify-center rounded-pill w-md h-md text-3xs background-accent-1 text-foreground-on-dark absolute z-10 font-bold"},Xg={key:0,class:"2xs:hidden lg:flex items-center justify-center rounded-pill w-md h-md text-3xs background-accent-1 text-foreground-on-dark font-bold"},Jg={class:"2xs:hidden lg:flex text-foreground-2 body-lg items-center font-bold"},Qg={key:1,class:"flex 2xs:flex-col lg:flex-row lg:gap-xs w-full lg:px-lg ml-xs lg:ml-0 text-foreground-2"},em={class:"leading-150 text-sm xl:text-md"},tm={class:"underline leading-150 font-bold text-xs xl:text-sm hover:opacity-2"},nm={key:0,class:"sticky-selection-bar background-glass fixed left-[0px] right-[0px] top-[0px] rounded-lg py-xs z-50"},sm={class:"container"},im={class:"sticky-slider-wrapper mx-auto w-full"};function rm(e,t,n,s,r,i){const o=w("IconMagnifier"),a=w("Button"),c=w("IconNavigationMenu"),l=w("SearchModal"),d=w("FiltersModal"),u=w("PartnerMolecule"),h=w("CustomSlider"),f=w("IconCloseAltFilled");return g(),x("div",Ug,[v("div",qg,[v("div",Yg,[P(a,{"icon-only":!0,variant:"ghost",size:"MD",class:"h-[37px] w-[37px] background-1","aria-label":i.ariaLabelButton,"role-button":"button",full:"",fullHeight:"","data-aa-tracker":"Button to open search modal",onClick:t[0]||(t[0]=p=>(r.showSearchModal=!0,e.addCustomTracking("Button to open search modal","Click","Not Applicable","Button","Click","Not Applicable")))},{"icon-only":B(()=>[P(o,{class:"text-ghost-foreground hover:text-ghost-foreground w-full h-full","arrow-up-color":"text-ghost-foreground hover:text-ghost-foreground"})]),_:1},8,["aria-label"]),v("div",Zg,[P(a,{"icon-only":!0,variant:"ghost",size:"MD",class:"h-[37px] w-[37px] background-1",full:"",fullHeight:"","data-aa-tracker":"Button to open filters modal",onClick:t[1]||(t[1]=p=>(r.showModal=!0,e.addCustomTracking("Button to open filters modal","Click","Not Applicable","Button","Click","Not Applicable")))},{"icon-only":B(()=>[P(c,{class:"text-ghost-foreground hover:text-ghost-foreground w-full h-full","arrow-up-color":"text-ghost-foreground hover:text-ghost-foreground"})]),_:1}),e.appliedFiltersCount>0?(g(),x("div",Kg,k(e.appliedFiltersCount),1)):A("",!0)]),t[6]||(t[6]=v("div",{class:"border-r-sm color-stroke-elevation h-[37px] lg:hidden"},null,-1)),P(a,{"icon-left":!0,icon:!0,variant:"ghost","icon-position":"left",class:"2xs:hidden lg:flex h-[37px] background-1 text-xs","data-aa-tracker":"Button to open filters modal",onClick:t[2]||(t[2]=p=>(r.showModal=!0,e.addCustomTracking("Button to open filters modal","Click","Not Applicable","Button","Click","Not Applicable")))},{"icon-left":B(()=>[P(c,{class:"text-ghost-foreground hover:text-ghost-foreground","arrow-up-color":"text-ghost-foreground hover:text-ghost-foreground"})]),default:B(()=>[Z(k(r.filters)+" ",1),e.appliedFiltersCount>0?(g(),x("div",Xg,k(e.appliedFiltersCount),1)):A("",!0)]),_:1}
2),i.isClient?(g(),S(l,{key:0,"show-modal":r.showSearchModal,partners:i.defaultToplist,onClose:t[3]||(t[3]=p=>r.showSearchModal=!1)},null,8,["show-modal","partners"])):A("",!0),i.isClient?(g(),S(d,{key:1,"show-modal":r.showModal,partners:i.defaultToplist,"ontario-regulated":n.ontarioRegulated,onClose:t[4]||(t[4]=p=>r.showModal=!1)},null,8,["show-modal","partners","ontario-regulated"])):A("",!0)]),v("p",Jg,k(r.choseACasino),1)]),v("div",{class:z(["overflow-hidden lg:overflow-visible",e.filteredPartners.length?"lg:-mb-[6px] xl:-mb-[12px]":"lg:mb-md"])},[e.filteredPartners.length?(g(),S(h,{key:`partners-slider-main-${e.filteredPartners.length}-${r.activePartner?.phoenix?.id||0}`,class:"w-full partners-slider-wrapper flex flex-col justify-center relative","slider-items-classes":"gap-sm lg:gap-[24px] pl-[20px] items-center justify-start","scroll-padding-start":20,"initial-slide":r.activePartnerSlide,"delay-go-to-slide":!0,"buttons-position":"middle-outside","buttons-size":"lg","controls-top":"calc(50% - 40px)","show-control-buttons":"hidden-mobile-tablet",shadow:"","shadow-type":"mobile-and-tablet"},{default:B(()=>[(g(!0),x(H,null,Y(e.filteredPartners,(p,y)=>(g(),S(u,{key:y,index:y,partner:p,"is-selected-partner":p?.phoenix?.id===r.activePartner?.phoenix?.id,"show-arrow-icon":!0,onNewPartnerSelected:i.newPartnerSelected},null,8,["index","partner","is-selected-partner","onNewPartnerSelected"]))),128))]),_:1},8,["initial-slide"])):(g(),x("div",Qg,[v("p",em,k(r.noMatches),1),v("div",{class:"flex flex-row gap-2xs items-center cursor-pointer",onClick:t[5]||(t[5]=(...p)=>i.resetFilters&&i.resetFilters(...p))},[P(f,{width:"12",height:"12"}),v("p",tm,k(r.clearAll),1)])]))],2),r.isPinned?(g(),x("div",nm,[v("div",sm,[v
2("div",im,[e.filteredPartners.length&&i.isClient?(g(),S(h,{key:`partners-slider-sticky-${e.filteredPartners.length}-${r.activePartner?.phoenix?.id||0}`,class:"w-full px-0 lg:px-md xl:px-0","slider-items-classes":"gap-sm items-center","initial-slide":r.activePartnerSlide,"buttons-position":"middle-outside","show-control-buttons":"hidden-mobile-tablet"},{default:B(()=>[(g(!0),x(H,null,Y(e.filteredPartners,(p,y)=>(g(),S(u,{key:y,index:y,partner:p,variant:"pinned","is-selected-partner":p?.phoenix?.id===r.activePartner?.phoenix?.id},null,8,["index","partner","is-selected-partner"]))),128))]),_:1},8,["initial-slide"])):A("",!0)])])])):A("",!0)],512)}const om=O(Wg,[["render",rm],["__scopeId","data-v-a6fa1d42"]]),am={name:"CasinoHeader",components:{IconInformationCircle:On,Tooltip:An,Favicon:Pt,Button:me,Rating:St,Ranking:Ml},mixins:[Ne],props:{partnerData:{type:Object,default:()=>{}},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1}},data(){return{readFullReview:this.$t("advancedToplist.readFullReview"),visitCasino:this.$t("advancedToplist.visitCasino"),rankingLabel:this.$t("advancedToplist.rankingLabel"),countryName:this.$t("countryName"),tooltipInfo:this.$t("advancedToplist.tooltipRanking")}},computed:{...K(ge,["isMobile","isTablet"]),partnerLogo(){return nr(this.partnerData)},partnerName(){return fe(this.partnerData)},partnerRating(){return ss(this.partnerData)??void 0},isRating(){return this.partnerRating&&this.partnerRating!==0},partnerAfflink(){return tr(this.partnerData)||""},reviewUrl(){return er(this.partnerData,{ontarioRegulated:this.ontarioRegulated,albertaRegulated:this.albertaRegulated})},positionPlace(){const e=this.partnerData?.phoenix?.position??this.partnerData?.position??0;return Number(e)+1},rankingLabelFixed(){return this.rankingLabel.replace("[countryName]",this.countryName).replace("[position]",this.positionPlace).replace("[totalReviews]",this.totalReviews)},...K(se,{totalReviews:"getTotalReviews"}),sizeFavicon(){return this.isMobile||this.isTablet?"2xs":"lg"},blurLogo(){return wl(this.partnerData)}},methods:{getDataToplistDataAttribute:Qi}},lm={class:"grid grid-cols-1 md:grid-cols-2 w-full"},cm={class:"flex flex-col gap-xs lg:gap-lg"},dm={class:"flex items-center gap-xs lg:gap-lg"},um={key:1,class:"rounded-pill w-[40px] h-[40px] lg:w-[100px] lg:h-[100px] background-elevation-3"},hm={class:"flex flex-col gap-sm justify-center"},pm={class:"text-foreground-1 title-sm"},fm={class:"2xs:hidden lg:flex flex-col gap-sm"},gm={class:"flex flex-row gap-2xs items-center"},mm={class:"text-badge-greyscale-foreground body-sm"},bm={class:"flex lg:hidden flex-col gap-xs"},ym={class:"flex flex-row gap-2xs items-center"},vm={class:"text-badge-greyscale-foreground body-sm"},_m={class:"2xs:hidden lg:flex flex-row justify-end gap-xs order-2 self-start"};function xm(e,t,n,s,r,i){const o=w("Favicon"),a=w("Rating"),c=w("Ranking"),l=w("IconInformationCircle"),d=w("Tooltip"),u=w("Button");return g(),x("div",lm,[v("div",cm,[v("div",dm,[i.partnerLogo?(g(),S(o,{key:0,"image-path":i.partnerLogo,"image-name":i.partnerName,blur:i.blurLogo,size:i.sizeFavicon,"custom-size":e.isMobile||e.isTablet?80:100},null,8,["image-path","image-name","blur","size","custom-size"])):(g(),x("div",um)),v("div",hm,[v("span",pm,k(i.partnerName),1),v("div",fm,[i.isRating?(g(),S(a,{key:0,rating:i.partnerRating,variant:"multiple",size:"md",text:""},null,8,["rating"])):A("",!0),v("div",gm,[v("div",null,[P(c,{size:"lg","ranking-number":i.positionPlace},null,8,["ranking-number"])]),v("span",mm,k(i.rankingLabelFixed),1),P(d,{content:r.tooltipInfo,class:"ml-2xs"},{default:B(()=>[P(l)]),_:1},8,["content"])])])])]),v("div",bm,[i.isRating?(g(),S(a,{key:0,rating:i.partnerRating,variant:"multiple",size:"sm",text:""},null,8,["rating"])):A("",!0),v("div",ym,[P(c,{size:"lg","ranking-number":i.positionPlace},null,8,["ranking-number"]),v("span",vm,k(i.rankingLabelFixed),1),P(d,{content:r.tooltipInfo,class:"ml-2xs"},{default:B(()=>[P(l)]),_:1},8,["content"])])])]),v("div",_m,[i.reviewUrl?(g(),S(u,{key:0,variant:"link",size:"LG",tag:"a",href:i.reviewUrl,"aria-label":`${r.readFullReview} ${i.partnerName}`,"data-aa-tracker":r.readFullReview,onClick:t[0]||(t[0]=h=>e.addCustomTracking(`Toplist::ReadFullReview-partner-${i.positionPlace}`,"Click","Not Applicable","Button","Click","Not Applicable"))},{default:B(()=>[Z(k(r.readFullReview),1)]),_:1},8,["href","aria-label","data-aa-tracker"])):A("",!0),i.partnerAfflink?(g(),S(u,{key:1,tag:"a",
2size:"LG",href:i.partnerAfflink,variant:"primary",target:"_blank",rel:"noopener nofollow noreferrer",class:"order-1","aria-label":`${r.visitCasino} ${i.partnerName}`,"toplist-response-id":n.partnerData.toplistResponseId,"toplist-link-id":i.partnerAfflink,"toplist-data":i.getDataToplistDataAttribute(n.partnerData),"data-aa-tracker":`Link to casino ${i.partnerName}`,onClick:t[1]||(t[1]=h=>e.addCustomTracking(`Toplist::AffLink-partner-${i.positionPlace}`,"Click","Not Applicable","Button","Click","Not Applicable"))},{default:B(()=>[Z(k(r.visitCasino),1)]),_:1},8,["href","aria-label","toplist-response-id","toplist-link-id","toplist-data","data-aa-tracker"])):A("",!0)])])}const wm=O(am,[["render",xm]]),km={name:"IconMinDeposit",components:{VImage:W}};function Cm(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/minDeposit.svg",alt:"Min deposit icon",width:"24",height:"25"})}const Sm=O(km,[["render",Cm]]),Tm={name:"IconGames",components:{VImage:W},props:{width:{type:[String,Number],default:"24"},height:{type:[String,Number],default:"24"}}};function Pm(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/gem.svg",alt:"red gem",width:n.width,height:n.height},null,8,["width","height"])}const Am=O(Tm,[["render",Pm]]),Om={name:"IconWinRate",components:{VImage:W},props:{width:{type:[String,Number],default:"24"},height:{type:[String,Number],default:"25"}}};function Mm(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/casino-chip.svg",alt:"Casino chip",width:n.width,height:n.height},null,8,["width","height"])}const Lm=O(Om,[["render",Mm]]),Im={name:"IconPayoutSpeed",components:{VImage:W}};function Rm(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/payout-speed.svg",alt:"Payout Speed icon",width:"25",height:"24"})}const Dm=O(Im,[["render",Rm]]),Fm={name:"QuickFacts",components:{IconMinDeposit:Sm,IconGames:Am,IconWinRate:Lm,IconPayoutSpeed:Dm,Divider:bs,VImage:W},props:{title:{type:String,default:""},partner:{type:Object,default:()=>({})}},data(){return{winRate:this.$t("advancedToplist.winRate"),payoutSpeed:this.$t("advancedToplist.payoutSpeed"),minDeposit:this.$t("advancedToplist.minDeposit"),games:this.$t("advancedToplist.games"),acceptedMethodsTitle:this.$t("advancedToplist.acceptedMethods"),payment:{desktop:{badgesShown:14},mobile:{badgesShown:9}}}},computed:{...K(ge,["isMobile","isDesktop"]),partnerWinRate(){return Cl(this.partner)||"-"},partnerPayoutTime(){return kl(this.partner)||"-"},partnerDepositLimit(){return this.partner?.minimumDeposit||"-"},partnerGames(){return this.partner?.phoenix?.attributes?.games||"-"},paymentList(){return this.partner?.phoenix?.attributes?.paymentMethod?.slice(0,this.paymentsToShow)||[]},morePayments(){const e=Number(this.paymentMethods);let t=0;return e>this.paymentsToShow&&(t=e-this.paymentsToShow),t},paymentsToShow(){return this.isMobile?this.payment.mobile.badgesShown:this.isDesktop?this.payment.desktop.badgesShown:this.payment.desktop.badgesShown},paymentMethods(){return this.partner?.phoenix?.attributes?.paymentMethod?.length||0}}},Bm={class:"h-full flex flex-col p-md lg:px-xl lg:py-lg gap-sm lg:gap-lg rounded-ui-md border-sm background-elevation-2 color-stroke-elevation"},Em={class:"title-xs leading-150 text-foreground-1"},$m={class:"flex flex-col text-xs lg:text-sm gap-sm lg:gap-lg text-foreground-2"},Nm={class:"flex items-center justify-between"},zm={class:"flex items-center leading-150 body-md"},jm={class:"opacity-[0.8]"},Vm={class:"leading-150 font-bold body-md"},Gm={class:"flex items-center justify-between"},Hm={class:"flex items-center leading-150 body-md"},Wm={class:"opacity-[0.8]"},Um={class:"font-bold leading-150 body-md"},qm={class:"flex items-center justify-between"},Ym={class:"flex items-center leading-150 body-md"},Zm={class:"opacity-[0.8]"},Km={class:"font-bold leading-150 body-md"},Xm={class:"flex items-center justify-between"},Jm={class:"flex items-center leading-150 body-md"},Qm={class:"opacity-[0.8]"},e1={class:"font-bold leading-150 body-md"},t1={class:"text-foreground-1 leading-150 title-xs"},n1={key:0,class:"flex flex-row flex-wrap gap-xs w-full"}
2,s1={key:0,class:"self-center text-foreground-2 text-xs"},i1={key:1};function r1(e,t,n,s,r,i){const o=w("IconWinRate"),a=w("IconPayoutSpeed"),c=w("IconMinDeposit"),l=w("IconGames"),d=w("Divider"),u=w("VImage");return g(),x("div",Bm,[v("p",Em,k(n.title),1),v("div",$m,[v("div",Nm,[v("div",zm,[P(o,{class:"mr-xs w-lg h-lg"}),v("div",jm,k(r.winRate),1)]),v("p",Vm,k(i.partnerWinRate),1)]),v("div",Gm,[v("div",Hm,[P(a,{class:"mr-xs w-lg h-lg"}),v("div",Wm,k(r.payoutSpeed),1)]),v("p",Um,k(i.partnerPayoutTime),1)]),v("div",qm,[v("div",Ym,[P(c,{class:"mr-xs w-lg h-lg"}),v("div",Zm,k(r.minDeposit),1)]),v("p",Km,k(i.partnerDepositLimit),1)]),v("div",Xm,[v("div",Jm,[P(l,{class:"mr-xs w-lg h-lg"}),v("div",Qm,k(r.games),1)]),v("p",e1,k(i.partnerGames),1)])]),P(d,{variant:"no-margin"}),v("div",t1,k(r.acceptedMethodsTitle),1),i.paymentMethods>0?(g(),x("div",n1,[(g(!0),x(H,null,Y(i.paymentList,(h,f)=>(g(),x("div",{key:f},[P(u,{class:"w-2xl h-xl lg:w-2xl rounded-sm overflow-hidden",src:`/images/logos/badges/payment/light/${h.paymentMethodName.toLowerCase()}.svg`,alt:h.paymentMethodName,width:48,height:32},null,8,["src","alt"])]))),128)),i.morePayments>0?(g(),x("span",s1," +"+k(i.morePayments),1)):A("",!0)])):(g(),x("p",i1,"-"))])}const o1=O(Fm,[["render",r1]]),zr=new Set(["2xs","xs","sm","md","lg"]),a1=new Set(["initials","photo","placeholder","brand","hexagon"]),jr={"2xs":{link:"XS",name:"text-2xs",role:"body-xs",lastUpdated:"body-xs"},xs:{link:"XS",name:"text-2xs",role:"body-xs",lastUpdated:"body-xs"},sm:{link:"SM",name:"text-xs",role:"body-sm",lastUpdated:"body-sm"},md:{link:"MD",name:"text-sm",role:"body-md",lastUpdated:"body-md"},lg:{link:"LG",name:"text-md",role:"body-lg",lastUpdated:"body-lg"}},l1={name:"Author",components:{IconTimeClock:au,Link:Vt,Avatar:md},props:{author:{type:Object,default:()=>({})},layout:{type:String,default:"inline",validator:e=>["inline","stacked","stacked-inline"].includes(e)},showLastUpdated:{type:Boolean,default:!1},showRole:{type:Boolean,default:!0},size:{type:String,validator:e=>zr.has(e),default:"md"},lastUpdatedLayout:{type:String,default:"inline",validator:e=>["inline","stacked"].includes(e)},forceInline:{type:Boolean,default:!1},verified:{type:Boolean,default:!1},avatarVariant:{type:String,default:"photo",validator:e=>a1.has(e)},variant:{type:String,validator:e=>e==="casinoReview"||zr.has(e),default:"md"},theme:{type:String,default:"light",validator:e=>["light","dark"].includes(e)},level:{type:String,default:"Gold",validator:e=>["Gold","Silver","Bronze"].includes(e)}},data(){return{expertSectionTitle:this.$t("advancedToplist.expertSectionTitle"),lastUpdatedLabel:this.$t("advancedToplist.lastUpdatedLabel")}},computed:{...K(ge,["width"]),isMobile(){return this.width<1024},authorPage(){const e=this.author?.authorPage;return e&&e.trim()!==""?e:null},name(){return this.author?.name??"-"},role(){return this.author?.authorRole??"-"},lastUpdated(){return this.author?.lastUpdated||""},sizeClassMap(){return jr[this.size?.toLowerCase?.()]||jr.md},gapClassMap(){return{"2xs":"gap-xs",xs:"gap-sm",sm:"gap-sm",md:"gap-sm",lg:"gap-md"}[this.size]||"gap-sm"},rootThemeClass(){return this.theme==="dark"?"text-foreground-3":"text-foreground-1"},roleColorClass(){return"text-foreground-3"},metaColorClass(){return this.roleColorClass},linkVariant(){return"primary"},linkAccent(){return this.theme==="dark"},authorNameClasses(){return this.variant==="casinoReview"&&this.size==="md"?"text-2xs md:text-xs":this.sizeClassMap.name},linkExternalClasses(){return this.variant==="casinoReview"&&this.size==="md"?"!text-2xs md:!text-xs":""},lastUpdatedClasses(){return this.variant==="casinoReview"&&this.size==="md"?"text-2xs lg:text-xs":this.sizeClassMap.lastUpdated},roleClasses(){return this.variant==="casinoReview"&&this.size==="md"?"text-2xs md:text-xs":this.sizeClassMap.role}}},c1={class:"relative h-auto self-start"},d1={key:0,class:"flex flex-col"},u1={key:3,class:"block w-px h-[20px] border-l-sm color-stroke-elevation mx-xs","aria-hidden":"true"};function h1(e,t,n,s,r,i){const o=w("Avatar"),a=w("Link"),c=w("IconTimeClock");return g(),x("div",{class:z(["flex flex-col gap-xs relative",i.rootThemeClass])},[v("div",{class:z(["flex items-center",[n.layout==="stacked-inline"?"flex-row":"",i.gapClassMap]])},[v("div",c1,[P(o,{data:n.author,variant:n.avatarVariant,size:n.size,verified:n.verified,level:n.level},null,8,["data","variant","size","verified","level"])]),v("div",{class:z([n.layout==="stacked"?"flex flex-col items-start w-full gap-2xs":"flex flex-row items-center w-full gap-xs"])},[n.layout==="stacked"?(g(),x("div",d1,[i.authorPage?(g(),S(a,{key:0,href:n.author.authorPage,copy:n.author.name,size:i.sizeClassMap.link,variant:i.linkVariant,accent:i.linkAccent,"external-classes":i.linkExternalClasses},null,8,["href","copy","size","variant","accent","external-classes"])):(g(),x("p",{key:1,class:z(["font-bold leading-150",i.authorNameClasses])},k(i.name),3)),n.showRole?(g(),x("p",{key:2,class:z(["leading-150",[i.roleClasses,i.roleColorClass]])},k(i.role),3)):A("",!0),n.showLastUpdated&&i.lastUpdated?(g(),x("div",{key:3,class:z(["flex gap-xs items-center leading-150",[i.lastUpdatedClasses,i.metaColorClass]])},[P(c),v("span",null,k(r.lastUpdatedLabel)+" "+k(i.lastUpdated),1)],2)):A("",!0)])):(g(),x("div",{key:1,class:z([n.forceInline?"flex flex-row flex-wrap items-center gap-xs":"flex flex-col"])},[v("div",{class:z([n.forceInline?"flex flex-row flex-wrap items-center gap-xs":"flex flex-col lg:flex-row lg:items-center gap-xs"])},[i.authorPage?(g(),S(a,{key:0,href:n.author.authorPage,copy:n.author.name,size:i.sizeClassMap.link,variant:i.linkVariant,accent:i.linkAccent,"external-classes":i.linkExternalClasses},null,8,["href","copy","size","variant","accent","external-classes"])):(g(),x("p",{key:1,class:z(["font-bold leading-150",i.authorNameClasses])},k(i.name),3)),n.showRole?(g(),x("p",{key:2,class:z(["leading-150",[i.roleClasses,i.roleColorClass]])},k(i.role),3)):A("",!0),n.forceInline&&n.showLastUpdated&&i.lastUpdated&&n.lastUpdatedLayout==="inline"?(g
2(),x("div",u1)):A("",!0),n.showLastUpdated&&i.lastUpdated&&n.lastUpdatedLayout==="inline"?tt((g(),x("div",{key:4,class:z(["flex",["items-center leading-150 gap-xs",n.forceInline?"":"lg:border-l-sm lg:color-stroke-elevation lg:ml-xs",i.lastUpdatedClasses,i.metaColorClass]])},[P(c,{class:z([n.forceInline?"ml-0":"lg:ml-xs"])},null,8,["class"]),v("span",null,k(r.lastUpdatedLabel)+" "+k(i.lastUpdated),1)],2)),[[yl,!i.isMobile]]):A("",!0)],2),n.showLastUpdated&&i.lastUpdated&&n.lastUpdatedLayout==="stacked"?(g(),x("div",{key:0,class:z(["flex gap-xs items-center leading-150",[i.lastUpdatedClasses,i.metaColorClass]])},[P(c),v("span",null,k(r.lastUpdatedLabel)+" "+k(i.lastUpdated),1)],2)):A("",!0)],2))],2)],2),n.showLastUpdated&&i.lastUpdated&&n.layout!=="stacked"&&n.lastUpdatedLayout==="inline"?(g(),x("div",{key:0,class:z(["flex gap-xs items-center leading-150 lg:hidden",[i.lastUpdatedClasses,i.metaColorClass]])},[P(c),v("span",null,k(r.lastUpdatedLabel)+" "+k(i.lastUpdated),1)],2)):A("",!0)],2)}const Vl=O(l1,[["render",h1]]),p1={name:"IconContainer",components:{VImage:W},props:{width:{type:[String,Number],default:"36"},height:{type:[String,Number],default:"37"}}};function f1(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/container.svg",alt:"icon container",width:n.width,height:n.height},null,8,["width","height"])}const g1=O(p1,[["render",f1]]),m1={name:"HighlightedSection",components:{Author:Vl,IconContainer:g1},props:{highlightedReview:{type:Object,default:()=>{}},highlightedReviewOntario:{type:Object,default:()=>{}},ontarioRegulated:{type:Boolean,default:!1}},data(){return{isOntarioPage:!1,expertSectionTitle:this.$t("advancedToplist.expertSectionTitle"),readMoreText:this.$t("readMore"),readLessText:this.$t("readLess"),expanded:!1}},computed:{isOntario(){return this.ontarioRegulated||this.isOntarioPage},activeHighlightedReview(){if(this.isOntario&&this.highlightedReviewOntario&&Object.keys(this.highlightedReviewOntario).length)return this.highlightedReviewOntario;const e=this.highlightedReview||{};return this.isOntario?{...e,title:e.titleOntario??e.title??"",description:e.descriptionOntario??e.description??[]}:e},authorSection(){const e=Pl(this.activeHighlightedReview);return e?.name?e:null},title(){return this.activeHighlightedReview?.title??""},description(){return this.activeHighlightedReview?.description??[]},collapsedDescription(){return Array.isArray(this.description)?this.description[0]??"":this.description??""},visibleCollapsedDescription(){return!this.hasExpandableContent||this.collapsedDescription.length<=120?this.collapsedDescription:`${this.collapsedDescription.slice(0,120).trim()}...`},descriptionItems(){return Array.isArray(this.description)?this.description:this.description?[this.description]:[]},hasExpandableContent(){return Array.isArray(this.description)?this.description.length>1||this.collapsedDescription.length>120:(this.description??"").length>120}},mounted(){ae&&(this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1))},methods:{toggleExpanded(){this.expanded=!this.expanded}}},b1={class:"flex flex-col background-elevation-2 border-sm color-stroke-elevation rounded-ui-md p-md lg:py-lg lg:px-xl gap-sm lg:gap-lg"},y1={class:"flex flex-row gap-xs items-center"},v1={class:"text-foreground-1 title-sm leading-150"},_1={class:"flex flex-col gap-sm lg:gap-lg"},x1={class:"text-foreground-2 body-md leading-150"},w1=["aria-expanded"],k1=["aria-expanded"],C1={class:"flex flex-col rounded-ui-md gap-xs color-stroke-elevation border-sm background-elevation-3 p-md"},S1={class:"font-bold leading-150 body-md color-foreground-2"};function T1(e,t,n,s,r,i){const o=w("IconContainer"),a=w("Author");return g(),x("div",b1,[v("div",y1,[P(o,{class:"w-[36px] h-[36px]"}),v("p",v1,k(i.title),1)]),v("div",_1,[v("div",{class:z({hidden:r.expanded})},[v("p",x1,[Z(k(i.visibleCollapsedDescription)+" ",1),i.hasExpandableContent?(g(),x("button",{key:0,type:"button","aria-expanded":r.expanded,class:"inline link [font-size:inherit] [line-height:inherit] underline font-bold",onClick:t[0]||(t[0]=(...c)=>i.toggleExpanded&&i.toggleExpanded(...c))},k(r.readMoreText),9,w1)):A("",!0)])],2),v("div",{class:z(["flex flex-col gap-sm lg:gap-lg",{hidden:!r.expanded}])},[(g(!0),x(H,null,Y(i.descriptionItems,(c,l)=>(g(),x("p",{key:l,class:"text-foreground-2 body-md leading-150"},[Z(k(c)+" ",1),i.hasExpandableContent&&l===i.descriptionItems.length-1?(g(),x("button",{key:0,t
2ype:"button","aria-expanded":r.expanded,class:"inline link [font-size:inherit] [line-height:inherit] underline font-bold",onClick:t[1]||(t[1]=(...d)=>i.toggleExpanded&&i.toggleExpanded(...d))},k(r.readLessText),9,k1)):A("",!0)]))),128))],2)]),v("div",null,[v("div",C1,[v("p",S1,k(r.expertSectionTitle),1),i.authorSection?(g(),S(a,{key:0,"verification-bottom":!0,author:i.authorSection,"show-last-updated":!0,size:"sm",layout:"stacked-inline",verified:""},null,8,["author"])):A("",!0)])]),wt(e.$slots,"default")])}const P1=O(m1,[["render",T1]]),A1={name:"IconWelcomeBonus",components:{VImage:W}};function O1(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/welcome-bonus.svg",alt:"welcome bonus icon",width:"37",height:"37"})}const M1=O(A1,[["render",O1]]),L1={name:"IconAccentCircle",props:{width:{type:[String,Number],default:16},height:{type:[String,Number],default:16},color:{type:String,default:"#4F46E5"}}},I1=Tt+"#icon-accent-circle",R1=["width","height"];function D1(e,t,n,s,r,i){return g(),x("svg",{width:n.width,height:n.height,style:Le({color:n.color}),viewBox:"0 0 16 16"},[...t[0]||(t[0]=[v("use",{href:I1},null,-1)])],12,R1)}const F1=O(L1,[["render",D1]]),B1=xn?.primary?.["700"],E1={name:"WelcomeBonus",components:{Button:me,ClientOnly:Dl,IconWelcomeBonus:M1,IconAccentCircle:F1,CustomSlider:Gt,VImage:W},mixins:[Ne],props:{casinoScreenshots:{type:Array,default:null},partner:{type:Object,default:()=>({})},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1}},data(){return{welcomeBonus:this.$t("advancedToplist.welcomeBonus"),getBonus:this.$t("advancedToplist.getThisBonus"),getOfferText1part:this.$t("advancedToplist.getOfferText1part"),getOfferText2part:this.$t("advancedToplist.getOfferText2part"),minDepositText:this.$t("advancedToplist.minDeposit"),visitCasino:this.$t("advancedToplist.visitCasino"),isOntarioPage:!1,isAlbertaPage:!1,usersClaimedToday:this.$t("advancedToplist.usersClaimedToday"),timeToWager:this.$t("additionalInfo.timeToWager"),wagering:this.$t("wagering"),foregroundAccent:B1}},computed:{...K(ge,["isDesktop"]),isCompact(){return!this.isDesktop},offerDetails(){return Ft(this.partner).titlePreview??"-"},bonusWagering(){const e=Ft(this.partner).bonusWagering;return e?`${e} ${this.wagering.toLocaleLowerCase()}`:"-"},bonusValidFor(){const e=Ft(this.partner).bonusValidFor;return e?`${this.timeToWager} - ${e}`:"-"},bonusMinMaxDeposit(){return this.partner?.minimumDeposit?this.partner.minimumDeposit:"-"},partnerAfflink(){return tr(this.partner)||""},isBonusRegulated(){return this.ontarioRegulated||this.isOntarioPage||this.albertaRegulated||this.isAlbertaPage},textButton(){return this.isBonusRegulated?this.visitCasino:this.getBonus},isCasinoScreenshots(){return this.casinoScreenshots||[]},customSliderKey(){return this.casinoScreenshots.join(",")},offerDetailsText(){return this.isBonusRegulated?this.offerDetails:`${this.getOfferText1part} ${this.offerDetails} ${this.getOfferText2part}`},positionPlace(){return(this.partner?.position||0)+1},totalClaims(){const e=new Date;let t=400,n=this.positionPlace%2!==0?this.positionPlace*4*-1:this.positionPlace*3;this.type!=="game-offer"&&(t=350,n=this.positionPlace%2===0?this.positionPlace*3*-1:this.positionPlace*2);const s=fe(this.partner).length,r=e.getUTCMonth()+e.getUTCDate()+s+n,i=Math.round(t/2)+r;return this.usersClaimedToday.includes("[users]")?this.usersClaimedToday.replace("[users]",i):`${i} ${this.usersClaimedToday}`}},mounted(){this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1),this.isAlbertaPage=re(e=>e.location.pathname.includes("/alberta/"),!1)}},$1={class:"grid grid-cols lg-custom-grid-328 background-elevation-2 gap-md lg:gap-xl w-full rounded-ui-md color-stroke-elevation border-sm overflow-hidden"},N1={class:"gallery-wrapper pl-md pt-md lg:pl-0 lg:pt-0 overflow-hidden border-b"},z1={class:"gallery-mobile"},j1={class:"rounded-l-lg overflow-hidden"},V1={class:"gallery-desktop"},G1={class:"flex flex-col lg:flex-row justify-between pb-md px-md lg:pl-0 lg:pt-lg lg:pb-xl lg:pr-2xl gap-md lg:gap-xl"},H1={class:"flex text-foreground-2"},W1={class:"flex flex-col self-start justify-center h-full gap-xs lg:gap-md"},U1={key:0,class:"flex items-center text-foreground-2 body-md leading-150"},q1={class:"flex flex-col gap-sm"},Y1={class:"title-sm leading-150 lg:leading-120"},Z1={key:1,class:"flex flex-col xl:flex-row gap-3xs md:gap-xs lg:gap-sm"},K1={class:"flex gap-2xs items-center text-foreground-3 body-md leading-150 lg:body-sm"},X1={class:"flex gap-2xs items-center text-foreground-3 body-md leading-150 lg:body-sm"},J1={class:"flex gap-2xs items-center text-foreground-3 body-md leading-150 lg:body-sm"},Q1={class:"flex-shrink-0 flex flex-col gap-sm justify-center w-full md:w-auto lg:max-w-[200px] xl:max-w-[230px] text-center"},e0={class:"text-foreground-accent body-md leading-150 flex justify-center"};function t0(e,t,n,s,r,i){const o=w("VImage"),a=w("CustomSlider"),c=w("ClientOnly"),l=w("IconWelcomeBonus"),d=w("IconAccentCircle"),u=w("Button");return g(),x("div",$1,[v("div",N1,[v("div",z1,[v("div",j1,[P(c,null,{default:B(()=>[i.isCasinoScreenshots.length>
20?(g(),S(a,{key:0,"slider-items-classes":"gap-sm","show-control-buttons":"never"},{default:B(()=>[(g(!0),x(H,null,Y(n.casinoScreenshots,(h,f)=>(g(),x("div",{key:`image-slide-${f}`,class:z(["shrink-0 basis-[156px]",{"pr-md":f===n.casinoScreenshots.length-1}])},[P(o,{src:h,width:"156",height:"107",alt:`site casino screenshot ${f} mobile`,aspect:"none",class:"w-full h-[107px] object-cover",srcset:""},null,8,["src","alt"])],2))),128))]),_:1})):A("",!0)]),_:1})])]),v("div",V1,[P(c,null,{default:B(()=>[i.isCasinoScreenshots.length>0?(g(),S(a,{key:i.customSliderKey,"adjust-width":!0,"items-per-page-mobile":1,"items-per-page-tablet":1,"items-per-page-desktop":1,"pagination-per-page":!1,"buttons-position":"inside-padding","buttons-size":"sm","show-pagination":!0,"without-pagination-bottom-margin":"","slider-items-classes":"rounded-l-lg","height-full":!0,class:"h-full"},{default:B(()=>[(g(!0),x(H,null,Y(n.casinoScreenshots,(h,f)=>(g(),x("div",{key:`image-slide-${f}`,class:"h-full shrink-0 bg-cover bg-no-repeat bg-center",style:Le({backgroundImage:`url(${h})`})},null,4))),128))]),_:1})):A("",!0)]),_:1})])]),v("div",G1,[v("div",H1,[v("div",W1,[i.isBonusRegulated?A("",!0):(g(),x("div",U1,[P(l,{class:"mr-xs"}),Z(" "+k(r.welcomeBonus),1)])),v("div",q1,[v("span",Y1,k(i.offerDetailsText),1)]),i.isBonusRegulated?A("",!0):(g(),x("div",Z1,[v("div",K1,[i.bonusValidFor?(g(),S(d,{key:0,color:r.foregroundAccent},null,8,["color"])):A("",!0),Z(" "+k(i.bonusValidFor),1)]),v("div",X1,[i.bonusMinMaxDeposit?(g(),S(d,{key:0,color:r.foregroundAccent},null,8,["color"])):A("",!0),Z(" "+k(i.bonusMinMaxDeposit)+" "+k(r.minDepositText),1)]),v("div",J1,[i.bonusWagering?(g(),S(d,{key:0,color:r.foregroundAccent},null,8,["color"])):A("",!0),Z(" "+k(i.bonusWagering),1)])]))])]),v("div",Q1,[i.partnerAfflink?(g(),S(u,{key:0,tag:"a","data-aa-tracker":i.textButton,size:i.isCompact?"MD":"LG",href:i.partnerAfflink,variant:"primary",rel:"noopener noreferrer nofollow",target:"_blank",full:"",class:"w-full md:w-auto",onClick:t[0]||(t[0]=h=>e.addCustomTracking(`Toplist::AffLink-partner-${i.positionPlace}`,"Click","Not Applicable","Button","Click","Not Applicable"))},{default:B(()=>[Z(k(i.textButton),1)]),_:1},8,["data-aa-tracker","size","href"])):A("",!0),v("p",e0,k(i.totalClaims),1)])])])}const n0=O(E1,[["render",t0],["__scopeId","data-v-68ca5e18"]]),s0={name:"OverviewContentTab",components:{QuickFacts:o1,ProsAndCons:bd,HighlightedSection:P1,WelcomeBonus:n0},props:{isActive:{type:Boolean,default:!0},partner:{type:Object,default:()=>({})},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1}},data(){return{quickFactsTitle:this.$t("advancedToplist.quickFactsTitle"),prosAndConsTitle:this.$t("advancedToplist.prosAndConsTitle"),isOntarioPage:!1,isAlbertaPage:!1}},computed:{pros(){return this.ontarioRegulated||this.isOntarioPage?!!this.partner?.supplement?.prosOntario:this.albertaRegulated||this.isAlbertaPage?!!this.partner?.supplement?.prosAlberta:!!this.partner?.supplement?.pros},cons(){return this.ontarioRegulated||this.isOntarioPage?!!this.partner?.supplement?.consOntario:this.albertaRegulated||this.isAlbertaPage?!!this.partner?.supplement?.consAlberta:!!this.partner?.supplement?.cons},consData(){return this.ontarioRegulated||this.isOntarioPage?this.partner?.supplement?.consOntario:this.albertaRegulated||this.isAlbertaPage?this.partner?.supplement?.consAlberta:this.partner?.supplement?.cons},prosData(){return this.ontarioRegulated||this.isOntarioPage?this.partner?.supplement?.prosOntario:this.albertaRegulated||this.isAlbertaPage?this.partner?.supplement?.prosAlberta:this.partner?.supplement?.pros},screenshotsData(){const e=this.partner?.supplement||{},n=this.ontarioRegulated||this.isOntarioPage?e.siteScreenshotsOntario||e.screenshotsCasinoOntario:e.siteScreenshots||e.screenshotsCasino;return yd(n)},highlighted(){return this.partner?.supplement?.highlightedReview||this.partner?.supplement?.highlightedReviewOntario},titleConsPros(){const e=Number(this.partner?.phoenix?.position??this.partner?.position),t=Number.isFinite(e)?e+1:"";return this.prosAndConsTitle.replace("[ranking]",t)}},mounted(){ae&&(this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1),this.isAlbertaPage=re(e=>e.location.pathname.includes("/alberta/"),!1))}},i0={class:"flex flex-col gap-md lg:gap-lg w-full"},r0={class:"grid grid-col-1 lg-custom-grid-overview gap-md lg:gap-lg"},o0={class:"flex flex-col gap-md lg:gap-lg order-first"},a0={class:"flex flex-col gap-md lg:gap-lg order-last"};function l0(e,t,n,s,r,i){const o=w("WelcomeBonus"),a=w("QuickFacts"),c=w("HighlightedSection"),l=w("ProsAndCons");return g(),x("div",i0,[v("div",null,[n.isActive?(g(),S(o,{key:0,partner:n.partner,"casino-screenshots":i.screenshotsData,"ontario-regulated":n.ontarioRegulated,"alberta-regulated":n.albertaRegulated},null,8,["partner","casino-screenshots","ontario-regulated","alberta-regulated"])):A("",!0)]),v("div",r0,[v("div",o0,[P(a,{title:r.quickFactsTitle,partner:n.partner},null,8,["title","partner"])]),v("div",a0,[i.highlighted?(g(),S(c,{key:0,"highlighted-review":n.partner.supplement.highlightedReview,"highlighted-review-ontario":n.partner.supplement.highlightedReviewOntario,"ontario-regulated":n.ontarioRegulated},null,8,["highlighted-review","highlighted-review-ontario","ontario-regulated"])):A("",!0),i.pros>0&&i.cons>0?(g(),S(l,{key:1,title:i.titleConsPros,"title-class":"title-xs","display-schema":!1,pros:i.prosData,cons:i.consData,"add-border":!1},null,8,["title","pros","cons"])):A("",!0)])])])}
2const c0=O(s0,[["render",l0]]),d0={name:"IconArrowLeft1",components:{VImage:W},props:{width:{type:[String,Number],default:12},height:{type:[String,Number],default:12}}};function u0(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/arrow-left-1.svg",alt:"arrow left icon",width:n.width,height:n.height},null,8,["width","height"])}const h0=O(d0,[["render",u0]]),p0={name:"Pagination",mixins:[Ne],components:{IconArrowLeft1:h0,IconArrowRight1:ru,Dropdown:sr,Button:me},props:{totalItems:{type:Number,required:!0},itemsPerPage:{type:Number,default:10},currentPage:{type:Number,default:1},pagesToShow:{type:Number,default:5},variant:{type:String,default:"pagesOnly"},totalPages:{type:Number,required:!0}},data(){return{selectedOption:{label:"1",value:1},dropdownOptions:[],pagesInTotal:this.totalPages,ofText:this.$t("pagination.of")}},computed:{...K(ge,["width"]),currentDropdownValue(){return{label:`${this.currentPage}`,value:this.currentPage}},visiblePages(){const e=[],t=Math.max(1,this.currentPage-2),n=Math.min(this.totalPages,this.currentPage+2);for(let s=t;s<=n;s++)e.push(s);return e},isMobile(){return this.width<1024}},watch:{totalPages(e,t){this.pagesInTotal=e,this.fillDropdownOptions(),e!==t&&this.$emit("update:currentPage",1)}},mounted(){this.fillDropdownOptions()},methods:{changePage(e){this.addCustomTracking(`Pagination: Change Page ${e}`,"Click","Not Applicable","Button","Click","Not Applicable"),!(e<1||e>this.totalPages)&&this.$emit("update:currentPage",e)},fillDropdownOptions(){let e={};this.dropdownOptions=[];for(let t=1;t<=this.pagesInTotal;t++)e={label:`${t}`,value:t},this.dropdownOptions.push(e)},handleChange(){this.$emit("page-changed",this.selectedOption.value)}}},f0={key:0,class:"flex justify-center items-center lg:gap-xs"},g0={key:1},m0={key:2},b0={key:1,class:"flex flex-row justify-center items-center gap-md"},y0={class:"flex flex-row gap-xs items-center"},v0={class:"text-foreground-2 leading-150 text-sm"};function _0(e,t,n,s,r,i){const o=w("IconArrowLeft1"),a=w("Button"),c=w("IconArrowRight1"),l=w("Dropdown");return i.isMobile?i.isMobile?(g(),x("div",b0,[P(a,{variant:"mute",size:"SM",class:"h-[30px] w-[30px]",disabled:n.currentPage===1,onClick:t[4]||(t[4]=d=>i.changePage(n.currentPage-1))},{default:B(()=>[P(o,{"color-class":n.currentPage===1?"text-foreground-disabled":"text-foreground-1"},null,8,["color-class"])]),_:1},8,["disabled"]),v("div",y0,[P(l,{modelValue:r.selectedOption,"onUpdate:modelValue":t[5]||(t[5]=d=>r.selectedOption=d),options:r.dropdownOptions,"default-value":i.currentDropdownValue,onChange:t[6]||(t[6]=d=>i.handleChange())},null,8,["modelValue","options","default-value"]),v("span",v0,k(r.ofText)+" "+k(n.totalPages),1)]),P(a,{variant:"mute",class:"h-[30px] w-[30px]",size:"SM",disabled:n.currentPage===n.totalPages,onClick:t[7]||(t[7]=d=>i.changePage(n.currentPage+1))},{default:B(()=>[P(c,{"color-class":n.currentPage!==n.totalPages?"text-foreground-1":"text-foreground-disabled"},null,8,["color-class"])]),_:1},8,["disabled"])])):A("",!0):(g(),x("div",f0,[P(a,{variant:"mute",size:"SM",class:z({"text-foreground-disabled":n.currentPage===1}),disabled:n.currentPage===1,onClick:t[0]||(t[0]=d=>i.changePage(n.currentPage-1))},{default:B(()=>[P(o,{class:z(n.currentPage===1?"text-foreground-disabled":"text-foreground-1")},null,8,["class"])]),_:1},8,["class","disabled"]),n.currentPage>3?(g(),S(a,{key:0,variant:n.currentPage===1?"primary":"mute",size:"SM",onClick:t[1]||(t[1]=d=>i.changePage(1))},{default:B(()=>[...t[8]||(t[8]=[Z(" 1 ",-1)])]),_:1},8,["variant"])):A("",!0),n.currentPage>3?(g(),x("span",g0," ... ")):A("",!0),(g(!0),x(H,null,Y(i.visiblePages,d=>(g(),S(a,{key:d,variant:n.currentPage===d?"primary":"mute",size:"SM",onClick:u=>i.changePage(d)},{default:B(()=>[Z(k(d),1)]),_:2},1032,["variant","onClick"]))),128)),n.currentPage<n.totalPages-2?(g(),x("span",m0," ... ")):A("",!0),n.currentPage<n.totalPages-2?(g(),S(a,{key:3,variant:n.currentPage===n.totalPages?"primary":"mute",size:"SM",onClick:t[2]||(t[2]=d=>i.changePage(n.totalPages))},{default:B(()=>[Z(k(n.totalPages),1)]),_:1},8,["variant"])):A("",!0),P(a,{variant:"mute",size:"SM",class:z({"text-foreground-disabled":n.currentPage===n.totalPages}),disabled:n.currentPage===n.totalPages,onClick:t[3]||(t[3]=d=>i.changePage(n.currentPage+1))},{default:B(()=>[P(c,{"color-class":n.currentPage!==n.totalPages?"text-foreground-1":"text-foreground-disabled"},null,8,["color-class"])]),_:1},8,["class","disabled"])]))}const Gl=O(p0,[["render",_0]]),x0={name:"GameProviders",components:{VImage:W,Link:Vt,Pagination:Gl},props:{title:{type:String,default:""},gameProviders:{type:Array,default:()=>[]},gameProvidersData:{type:Object,default:()=>{}},gameTypes:{type:Array,default:()=>[]}},data(){return{gamesText:this.$t("advancedToplist.gameProviderCard"),singleGame:this.$t("advancedToplist.singleGameProviderCard"),providerLogo:this.$t("advancedToplist.providerLogo"),totalGames:0,gamesByProvider:[],currentPage:1,pageRange:4,itemsPerPage:6,loadedImages:{}}},computed:{numberOfProviders(){return this.gameProviders?.length},gameProvidersDataLink(){return this.gameProvidersData},providersIds(){const e=[];return this.dataToPaginate.length&&this.dataToPaginate.forEach(t=>{e.push(t.id)}),e},pagesCount(){return Math.ceil(this.gameProviders.length/this.itemsPerPage)},dataToPaginate(){return this.paginate(this.gameProviders)}},watch:{dataToPaginate:{immediate:!0,deep:!0,handler(e,t){e!==t&&e.length&&e.forEach(n=>{this.getGamesByProvider(n.id)})}}},methods:{...ce(Ue,["queryGamesByCondition"]),async getGamesByProvider(e){if(this.gamesByProvider.some(s=>s.providerId===e))return;let t={};const n={providerIds:[e],sortingFields:{search_volume:"DESC"},gameTypes:this.gameTypes};try{const s=await this.queryGamesByCondition({options:n,axios:this.$axios||null});"results"in s&&(t={providerId:e,games:s.rowsFound},this.gamesByProvider.push(t))}catch(s){console.error(s)}},getTotalGamesByProvider(e){return!this.gamesByProvider||!Array.isArray(this.gamesByProvider)||this.gamesByProvider.length===0?0:this.gamesByProvider.find(n=>n.providerId===e)?.games??0},providerName(e){let t=e.replace(/ /g,"-");return t.includes("'")&&(t=t.replace(/'/g,"")),t===""&&(t=""),t},getProviderLink(e){return this.gameProvidersData[e]?.link||null},paginate(e){const t=this.currentPage,n=this.itemsPerPage,s=t*n-n,r=t*n;return e.slice(s,r)},changePagination(e){this.currentPage=e},getProviderLogoSrc(e){return!e||!e.name?"":`../../images/logos/badges/game-providers/mini-logos/dark/${this.providerName(e.name.toLowerCase())}.svg`},getProviderAltText(e){return e&&e.name?e.name:this.providerLogo},onImageLoad(e){this.loadedImages[e]=!0}}},w0={class:"background-elevation-2 rounded-ui-md color-stroke-elevation border-sm p-md lg:p-xl flex flex-col gap-md lg:gap-lg"},k0={class:"flex justify-between"},C0={class:"title-xs leading-150"},S0={class:"body-md text-foreground-2 leading-150 font-bold"},T0={key:0,class:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-md lg:gap-lg"},P0={class:"flex items-center gap-xs p-xs lg:p-md"},A0={class:"relative w-[60px] h-[60px] rounded-pill overflow-hidden"},O0={key:0,class:"absolute inset-0 background-skeleton animate-pulse"},M0={class:"body-md leading-150 text-foreground-2 font-bold"},L0={key:0,class:"body-md leading-150 text-foreground-2 font-regular"},I0={key:1,class:"body-md leading-150 text-foreground-2 font-regular"},R0={key:1,class:"p-xs lg:p-md rounded-ui-md color-stroke-elevation border-sm background-elevation-3"},D0={class:"flex items-center gap-xs"},F0={class:"relative w-[60px] h-[60px] rounded-pill overflow-hidden"},B0={key:0,class:"absolute inset-0 background-skeleton animate-pulse"},E0={class:"body-md leading-150 text-foreground-2 font-bold"},$0={key:0,class:"body-md leading-150 text-foreground-2 font-regular"},N0={key:1,class:"body-md leading-150 text-foreground-2 font-regular"};function z0(e,t,n,s,r,i){const o=w("VImage"),a=w("Link"),c=w("Pagination");return g(),x("div",w0,[v("div",k0,[v("p",C0,k(n.title),1),v("p",S0,k(i.numberOfProviders),1)]),r.gamesByProvider.length>0?(g(),x("div",T0,[(g(!0),x(H,null,Y(i.dataToPaginate,(l,d)=>(g(),x("div",{key:"gameProvider-"+d},[i.getProviderLink(l.name)?(g(),S(a,{key:0,class:"rounded-ui-md color-stroke-elevation border-sm background-elevation-3 overflow-hidden provider-link",variant:"block",href:i.getProviderLink(l.name)||""},{default:B(()=>[v("div",P0,[v("div",A0,[r.loadedImages[l.id]?A("",!0):(g(),x("div",O0)),i.getProviderLogoSrc(l)?(g(),S(o,{key:1,src:i.getProviderLogoSrc(l),alt:i.getProviderAltText(l),skeleton:"",width:"60",height:"60",class:"absolute inset-0",onLoad:u=>i.onImageLoad(l.id)},null,8,["src","alt","onLoad"])):A("",!0)]),v("div",null,[v("p",M0,k(l.name),1),i.getTotalGamesByProvider(l.id)===0?(g(),x("p",L0,k(r.singleGame),1)):(g(),x("p",I0,k(i.getTotalGamesByProvider(l.id))+" "+k(r.gamesText),1))])])]),_:2},1032,["href"])):(g(),x("div",R0,[v("div",D0,[v("div",F0,[r.loadedImages[l.id]?A("",!0):(g(),x("div",B0)),i.getProviderLogoSrc(l)?(g(),S(o,{key:1,src:i.getProviderLogoSrc(l),alt:i.getProviderAltText(l),skeleton:"",width:"60",height:"60",class:"absolute inset-0",onLoad:u=>i.onImageLoad(l.id)},null,8,["src","alt","onLoad"])):A("",!0)]),v("div",null,[v("p",E0,k(l.name),1),i.getTotalGamesByProvider(l.id)===0?(g(),x("p",$0,k(r.
2singleGame),1)):(g(),x("p",N0,k(i.getTotalGamesByProvider(l.id))+" "+k(r.gamesText),1))])])]))]))),128))])):A("",!0),P(c,{"total-items":n.gameProviders.length,"items-per-page":r.itemsPerPage,"current-page":r.currentPage,"onUpdate:currentPage":t[0]||(t[0]=l=>r.currentPage=l),"total-pages":i.pagesCount,onPageChanged:i.changePagination},null,8,["total-items","items-per-page","current-page","total-pages","onPageChanged"])])}const j0=O(x0,[["render",z0],["__scopeId","data-v-22ff0041"]]),V0={name:"IconGameTypeBaccarat",components:{VImage:W}};function G0(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-baccarat.svg",alt:"Baccarat icon",width:"20",height:"21"})}const H0=O(V0,[["render",G0]]),W0={name:"IconGameTypeBaseball",components:{VImage:W}};function U0(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-baseball.svg",alt:"game type baseball icon",width:"20",height:"21"})}const q0=O(W0,[["render",U0]]),Y0={name:"IconGameTypeBasketball",components:{VImage:W}};function Z0(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-basketball.svg",alt:"Game type Basketball icon",width:"20",height:"21"})}const K0=O(Y0,[["render",Z0]]),X0={name:"IconGameTypeBetting",components:{VImage:W}};function J0(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-betting.svg",alt:"Game type betting icon",width:"20",height:"21"})}const Q0=O(X0,[["render",J0]]),eb={name:"IconGameTypeBingo",components:{VImage:W}};function tb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-bingo.svg",alt:"Game type bingo icon",width:"20",height:"21"})}const nb=O(eb,[["render",tb]]),sb={name:"IconGameTypeBlackjack",components:{VImage:W}};function ib(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-blackjack.svg",alt:"game type blackjack icon",width:"20",height:"21"})}const rb=O(sb,[["render",ib]]),ob={name:"IconGameTypeBoardGames",components:{VImage:W}};function ab(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-board-games.svg",alt:"game type board Games icon",width:"20",height:"21"})}const lb=O(ob,[["render",ab]]),cb={name:"IconGameTypeBoxing",components:{VImage:W}};function db(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-boxing.svg",alt:"game type boxing icon",width:"20",height:"21"})}const ub=O(cb,[["render",db]]),hb={name:"IconGameTypeBoxingMMA",components:{VImage:W}};function pb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-boxing-MMA.svg",alt:"Game type boxing MMA icon",width:"20",height:"21"})}const fb=O(hb,[["render",pb]]),gb={name:"IconGameTypeCashGames",components:{VImage:W}};function mb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-cash-games.svg",alt:"cash games icon",width:"20",height:"21"})}const bb=O(gb,[["render",mb]]),yb={name:"IconGameTypeCraps",components:{VImage:W}};function vb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-craps.svg",alt:"game type craps icon",width:"20",height:"21"})}const _b=O(yb,[["render",vb]]),xb={name:"IconGameTypeCricket",components:{VImage:W}};function wb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-cricket.svg",alt:"game type Cricket icon",width:"20",height:"21"})}const kb=O(xb,[["render",wb]]),Cb={name:"IconGameTypeDadi",components:{VImage:W}};function Sb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-die.svg",alt:"Die icon",width:"20",height:"21"})}const Tb=O(Cb,[["render",Sb]]),Pb={name:"IconGameTypeDarts",components:{VImage:W}};function Ab(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-darts.svg",alt:"game type darts icon",width:"20",height:"21"})}const Ob=O(Pb,[["render",Ab]]),Mb={name:"IconGameTypeDice",components:{VImage:W}};
2function Lb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-dice.svg",alt:"game type dice icon",width:"20",height:"21"})}const Ib=O(Mb,[["render",Lb]]),Rb={name:"IconGameTypeESports",components:{VImage:W}};function Db(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-esports.svg",alt:"game type ESports icon",width:"20",height:"21"})}const Fb=O(Rb,[["render",Db]]),Bb={name:"IconGameTypeF1",components:{VImage:W}};function Eb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-F1.svg",alt:"game type F1 icon",width:"20",height:"21"})}const $b=O(Bb,[["render",Eb]]),Nb={name:"IconGameTypeFinancials",components:{VImage:W}};function zb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-financials.svg",alt:"game type financials icon",width:"20",height:"21"})}const jb=O(Nb,[["render",zb]]),Vb={name:"IconGameTypeFootball",components:{VImage:W}};function Gb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-football.svg",alt:"game type footbal icon",width:"20",height:"21"})}const Hb=O(Vb,[["render",Gb]]),Wb={name:"IconGameTypeGameShows",components:{VImage:W}};function Ub(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-game-shows.svg",alt:"game type game shows icon",width:"20",height:"21"})}const qb=O(Wb,[["render",Ub]]),Yb={name:"IconGameTypeGolf",components:{VImage:W}};function Zb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-golf.svg",alt:"game type golf icon",width:"20",height:"21"})}const Kb=O(Yb,[["render",Zb]]),Xb={name:"IconGameTypeHandball",components:{VImage:W}};function Jb(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-handball.svg",alt:"game type handball icon",width:"20",height:"21"})}const Qb=O(Xb,[["render",Jb]]),ey={name:"IconGameTypeHockey",components:{VImage:W}};function ty(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-hockey.svg",alt:"game type Hockey icon",width:"20",height:"21"})}const ny=O(ey,[["render",ty]]),sy={name:"IconGameTypeHoldEm",components:{VImage:W}};function iy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-holdem.svg",alt:"Game type Holdem icon",width:"20",height:"21"})}const ry=O(sy,[["render",iy]]),oy={name:"IconGameTypeHorseRacing",components:{VImage:W}};function ay(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-horse-racing.svg",alt:"horse racing icon game type",width:"20",height:"21"})}const ly=O(oy,[["render",ay]]),cy={name:"IconGameTypeIceHockey",components:{VImage:W}};function dy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-ice-hockey.svg",alt:"horse racing icon game type",width:"20",height:"21"})}const uy=O(cy,[["render",dy]]),hy={name:"IconGameTypeJackpots",components:{VImage:W}};function py(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-jackpots.svg",alt:"Jackpots icon",width:"20",height:"21"})}const fy=O(hy,[["render",py]]),gy={name:"IconGameTypeKeno",components:{VImage:W}};function my(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-keno.svg",alt:"Keno game type icon",width:"20",height:"21"})}const by=O(gy,[["render",my]]),yy={name:"IconGameTypeLiveCasino",components:{VImage:W}};function vy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-live-casino.svg",alt:"Live casino icon",width:"20",height:"21"})}const _y=O(yy,[["render",vy]]),xy={name:"IconGameTypeLiveDealer",components:{VImage:W}};function wy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-live-dealer.svg",alt:"Live dealer icon",width:"20",height:"21"})}const ky=O(xy,[["render",wy]]),Cy={name:"IconGameTypeLiveGames",components:{VImage:W}};function Sy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-live-games.svg",alt:"Live games icon",width:"20",height:"21"})}const Ty=O(Cy,[["render",Sy]]),Py={name:"IconGameTypeLivePoker",components:{VImage:W}};function Ay(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-live-poker.svg",alt:"Live poker icon",width:"20",height:"21"})}const Oy=O(Py,[["render",Ay]]),My={name:"IconGameTypeLotteries",components:{VImage:W}};function Ly(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-lotteries.svg",alt:"Lotteries icon",width:"20",height:"21"})}const Iy=O(My,[["render",Ly]]),Ry={name:"IconGameTypeMegaways",components:{VImage:W}};function Dy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-megaways.svg",alt:"Megaways icon",width:"20",height:"21"})}const Fy=O(Ry,[["render",Dy]]),By={name:"IconGameTypeMMA",components:{VImage:W}};function Ey(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-mma.svg",alt:"MMA icon",width:"20",height:"21"})}const $y=O(By,[["render",Ey]]),Ny={name:"IconGameTypeMixedGames",components:{VImage:W}};function zy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-mixed-games.svg",alt:"Mixed games type icon",width:"20",height:"21"})}const jy=O(Ny,[["render",zy]]),Vy={name:"IconGameTypeMotorSports",components:{VImage:W}};function Gy(e,t,n,s,r,i){const o=w("VImage");
2return g(),S(o,{src:"/vue/assets/icons/game-type-motor-sports.svg",alt:"Motor sport icon",width:"20",height:"21"})}const Hy=O(Vy,[["render",Gy]]),Wy={name:"IconGameTypeNFL",components:{VImage:W}};function Uy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-nfl.svg",alt:"NFL game type icon",width:"20",height:"21"})}const qy=O(Wy,[["render",Uy]]),Yy={name:"IconGameTypeOmaha",components:{VImage:W}};function Zy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-omaha.svg",alt:"Omaha game type icon",width:"20",height:"21"})}const Ky=O(Yy,[["render",Zy]]),Xy={name:"IconGameTypePaigow",components:{VImage:W}};function Jy(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-paigow.svg",alt:"Paigow game type icon",width:"20",height:"21"})}const Qy=O(Xy,[["render",Jy]]),e2={name:"IconGameTypePoker",components:{VImage:W}};function t2(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-poker.svg",alt:"Poker game type icon",width:"20",height:"21"})}const n2=O(e2,[["render",t2]]),s2={name:"IconGameTypePokies",components:{VImage:W}};function i2(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-pokies.svg",alt:"Pokies game type icon",width:"20",height:"21"})}const r2=O(s2,[["render",i2]]),o2={name:"IconGameTypePuzzleGames",components:{VImage:W}};function a2(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-puzzle-games.svg",alt:"Puzzle games icon",width:"20",height:"21"})}const l2=O(o2,[["render",a2]]),c2={name:"IconGameTypeRoulette",components:{VImage:W}};function d2(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-roulette.svg",alt:"Roulette icon",width:"20",height:"21"})}const u2=O(c2,[["render",d2]]),h2={name:"IconGameTypeRugby",components:{VImage:W}};function p2(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-rugby.svg",alt:"game type Rugby icon",width:"20",height:"21"})}const f2=O(h2,[["render",p2]]),g2={name:"IconGameTypeScratchCards",components:{VImage:W}};function m2(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-scratch-cards.svg",alt:"game type scratch cards icon",width:"20",height:"21"})}const b2=O(g2,[["render",m2]]),y2={name:"IconGameTypeSimulationGames"},v2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function _2(e,t,n,s,r,i){return g(),x("svg",v2,[...t[0]||(t[0]=[v("path",{d:"M10.7283 7.46169C10.65 7.38352 10.6059 7.27738 10.6059 7.16669C10.6059 7.056 10.65 6.94986 10.7283 6.87169L12.1767 5.42419C12.2637 5.33743 12.3079 5.21671 12.2976 5.09429C12.2874 4.97186 12.2236 4.86021 12.1233 4.78919C10.9128 3.92898 9.2493 4.11561 8.2595 5.22265C7.26971 6.32969 7.26971 8.00368 8.2595 9.11072C9.2493 10.2178 10.9128 10.4044 12.1233 9.54419C12.2236 9.47316 12.2874 9.36151 12.2976 9.23909C12.3079 9.11666 12.2637 8.99594 12.1767 8.90919L10.7283 7.46169Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.66667 0.5H18.3333C19.2538 0.5 20 1.24619 20 2.16667V12.1667C20 13.0871 19.2538 13.8333 18.3333 13.8333H1.66667C0.746192 13.8333 0 13.0871 0 12.1667V2.16667C0 1.24619 0.746192 0.5 1.66667 0.5ZM17.9167 12.1667C18.1468 12.1667 18.3333 11.9801 18.3333 11.75V2.58333C18.3333 2.35321 18.1468 2.16667 17.9167 2.16667H2.08333C1.85321 2.16667 1.66667 2.35321 1.66667 2.58333V11.75C1.66667 11.9801 1.85321 12.1667 2.08333 12.1667H17.9167Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.6225 19.4541L17.5833 15.715C17.4908 15.3439 17.1575 15.0834 16.775 15.0833H3.25917C2.88076 15.0833 2.54983 15.3382 2.45334 15.7041L1.40917 19.4641C1.34563 19.7131 1.4017 19.9774 1.56084 20.1791C1.71913 20.3809 1.96107 20.4991 2.2175 20.5H17.8167C18.073 20.4987 18.3148 20.3806 18.4733 20.1791C18.632 19.9772 18.688 19.7131 18.625 19.4641L18.6225 19.4541ZM12.3092 16.1208H12.7258C12.956 16.1208 13.1425 16.3074 13.1425 16.5375C13.1425 16.7676 12.956 16.9541 12.7258 16.9541H12.3092C12.0791 16.9541 11.8925 16.7676 11.8925 16.5375C11.8925 16.3074 12.0791 16.1208 12.3092 16.1208ZM10.2258 16.1208H9.80917C9.57905 16.1208 9.3925 16.3074 9.3925 16.5375C9.3925 16.7676 9.57905 16.9541 9.80917 16.9541H10.2258C10.456 16.9541 10.6425 16.7676 10.6425 16.5375C10.6425 16.3074 10.456 16.1208 10.2258 16.1208ZM7.30917 16.1208H7.72584C7.95596 16.1208 8.1425 16.3074 8.1425 16.5375C8.1425 16.7676 7.95596 16.9541 7.72584 16.9541H7.30917C7.07905 16.9541 6.8925 16.7676 6.8925 16.5375C6.8925 16.3074 7.
207905 16.1208 7.30917 16.1208ZM3.7675 19.0375H4.18417C4.41429 19.0375 4.60084 18.8509 4.60084 18.6208C4.60084 18.3907 4.41429 18.2041 4.18417 18.2041H3.7675C3.53738 18.2041 3.35084 18.3907 3.35084 18.6208C3.35084 18.8509 3.53738 19.0375 3.7675 19.0375ZM5.22584 16.9541H4.80917C4.57905 16.9541 4.3925 16.7676 4.3925 16.5375C4.3925 16.3074 4.57905 16.1208 4.80917 16.1208H5.22584C5.45596 16.1208 5.6425 16.3074 5.6425 16.5375C5.6425 16.7676 5.45596 16.9541 5.22584 16.9541ZM6.68417 19.0375H13.3508C13.581 19.0375 13.7675 18.8509 13.7675 18.6208C13.7675 18.3907 13.581 18.2041 13.3508 18.2041H6.68417C6.45405 18.2041 6.2675 18.3907 6.2675 18.6208C6.2675 18.8509 6.45405 19.0375 6.68417 19.0375ZM14.81 16.9541C14.5799 16.9541 14.3933 16.7676 14.3933 16.5375C14.3933 16.3074 14.5799 16.1208 14.81 16.1208H15.2267C15.4568 16.1208 15.6433 16.3074 15.6433 16.5375C15.6433 16.7676 15.4568 16.9541 15.2267 16.9541H14.81ZM15.8483 19.0375H16.265C16.4951 19.0375 16.6817 18.8509 16.6817 18.6208C16.6817 18.3907 16.4951 18.2041 16.265 18.2041H15.8483C15.6182 18.2041 15.4317 18.3907 15.4317 18.6208C15.4317 18.8509 15.6182 19.0375 15.8483 19.0375Z",fill:"#1F2737"},null,-1)])])}const x2=O(y2,[["render",_2]]),w2={name:"IconGameTypeSkillGames"},k2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function C2(e,t,n,s,r,i){return g(),x("svg",k2,[...t[0]||(t[0]=[jt('<path d="M13.295 2.98C13.1189 3.40515 13.3207 3.89258 13.7459 4.06876C14.171 4.24493 14.6585 4.04316 14.8347 3.61806C15.0109 3.19296 14.8092 2.70547 14.3842 2.52916C14.18 2.44446 13.9505 2.44438 13.7462 2.52893C13.5419 2.61349 13.3796 2.77575 13.295 2.98Z" fill="#1F2737"></path><path d="M8.2075 14.2208C8.32046 14.2205 8.43226 14.1981 8.53667 14.155C8.8018 14.0458 8.99434 13.8107 9.04917 13.5292L9.48083 11.3483C9.54898 11.0088 9.40551 10.6616 9.1175 10.4692L7.26917 9.23252C7.03121 9.073 6.72932 9.04285 6.46452 9.15215C6.19972 9.26145 6.00699 9.49577 5.95083 9.77668L5.51833 11.9592C5.45116 12.2991 5.59477 12.6461 5.8825 12.8392L7.73167 14.0758C7.87242 14.1702 8.03803 14.2207 8.2075 14.2208Z" fill="#1F2737"></path><path d="M8.24083 7.37498C8.70107 7.37498 9.07417 7.00188 9.07417 6.54165C9.07417 6.08141 8.70107 5.70831 8.24083 5.70831C7.7806 5.70831 7.4075 6.08141 7.4075 6.54165C7.4075 7.00188 7.7806 7.37498 8.24083 7.37498Z" fill="#1F2737"></path><path d="M6.62417 17.375C7.0844 17.375 7.4575 17.0019 7.4575 16.5416C7.4575 16.0814 7.0844 15.7083 6.62417 15.7083C6.16393 15.7083 5.79083 16.0814 5.79083 16.5416C5.79083 17.0019 6.16393 17.375 6.62417 17.375Z" fill="#1F2737"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.9167 12.1667H18.75C19.4404 12.1667 20 12.7263 20 13.4167V19.25C20 19.9404 19.4404 20.5 18.75 20.5H12.9167C12.2263 20.5 11.6667 19.9404 11.6667 19.25V13.4167C11.6667 12.7263 12.2263 12.1667 12.9167 12.1667ZM12.9167 18.4167C12.9167 18.8769 13.2898 19.25 13.75 19.25C14.2102 19.25 14.5833 18.8769 14.5833 18.4167C14.5833 17.9564 14.2102 17.5834 13.75 17.5834C13.2898 17.5834 12.9167 17.9564 12.9167 18.4167ZM15.8333 17.1667C15.3731 17.1667 15 16.7936 15 16.3334C15 15.8731 15.3731 15.5 15.8333 15.5C16.2936 15.5 16.6667 15.8731 16.6667 16.3334C16.6667 16.7936 16.2936 17.1667 15.8333 17.1667ZM17.0833 14.25C17.0833 14.7103 17.4564 15.0834 17.9167 15.0834C18.3769 15.0834 18.75 14.7103 18.75 14.25C18.75 13.7898 18.3769 13.4167 17.9167 13.4167C17.4564 13.4167 17.0833 13.7898 17.0833 14.25Z" fill="#1F2737"></path><path d="M10.1292 17.045L6.08333 18.7208C6.03228 18.7421 5.97488 18.7422 5.92376 18.7211C5.87265 18.7 5.83202 18.6594 5.81083 18.6083L1.38667 7.93083C1.36582 7.87954 1.36582 7.82213 1.38667 7.77083C1.40808 7.71982 1.44883 7.67937 1.5 7.65833L8.91667 4.58333C8.96782 4.56213 9.02532 4.56216 9.07645 4.58343C9.12758 4.60469 9.16814 4.64544 9.18917 4.69667L11.7817 10.9558C11.8248 11.0591 11.9418 11.1099 12.0467 11.0708C12.3251 10.9677 12.6198 10.9155 12.9167 10.9167C12.962 10.9169 13.0045 10.8943 13.0296 10.8566C13.0548 10.8188 13.0593 10.771 13.0417 10.7292L10.1958 3.85667C10.0878 3.59541 9.88033 3.38782 9.61913 3.27965C9.35793 3.17148 9.06444 3.17161 8.80333 3.28L7.48917 3.82417C7.42485 3.85091 7.35142 3.84375 7.29349 3.80507C7.23556 3.76639 7.20079 3.70132 7.20083 3.63167V1.95833C7.20118 1.90313 7.223 1.85023 7.26167 1.81083C7.30086 1.77186 7.35389 1.74999 7.40917 1.75H15.44C15.4953 1.74978 15.5484 1.77166 15.5876 1.81077C15.6267 1.84989 15.6486 1.90301 15.6483 1.95833V10.7083C15.6481 10.7637 15.67 10.8168 15.7091 10.8559C15.7482
210.895 15.8013 10.9169 15.8567 10.9167H16.69C16.8051 10.9167 16.8983 10.8234 16.8983 10.7083V1.5675C16.8988 0.978721 16.4221 0.50092 15.8333 0.5H7.01667C6.4284 0.500918 5.95175 0.97757 5.95083 1.56583V4.3225C5.95067 4.40664 5.9001 4.48248 5.8225 4.515L0.660001 6.65333C0.398535 6.76135 0.190792 6.96897 0.0826063 7.23036C-0.0255797 7.49176 -0.0253178 7.78546 0.0833341 8.04667L4.805 19.4492C5.03105 19.9917 5.6529 20.2498 6.19667 20.0267L10.2883 18.3333C10.3664 18.3013 10.4174 18.2252 10.4175 18.1408V17.2375C10.4171 17.168 10.3823 17.1032 10.3245 17.0646C10.2667 17.0261 10.1935 17.0187 10.1292 17.045Z" fill="#1F2737"></path>',6)])])}const S2=O(w2,[["render",C2]]),T2={name:"IconGameTypeSlingo"},P2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function A2(e,t,n,s,r,i){return g(),x("svg",P2,[...t[0]||(t[0]=[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.3896 5.99499L14.5041 1.11083C13.6906 0.297531 12.3719 0.297531 11.5584 1.11083L6.82123 5.84749C6.74286 5.92566 6.69882 6.0318 6.69882 6.14249C6.69882 6.25318 6.74286 6.35932 6.82123 6.43749L14.0633 13.6792C14.226 13.8418 14.4897 13.8418 14.6524 13.6792L19.3896 8.94166C19.7804 8.55094 20 8.02096 20 7.46833C20 6.9157 19.7804 6.38571 19.3896 5.99499ZM11.5634 7.30166C11.1032 7.30166 10.7302 6.92856 10.7302 6.46833C10.7302 6.00809 11.1032 5.63499 11.5634 5.63499C12.0237 5.63499 12.3967 6.00809 12.3967 6.46833C12.3967 6.92856 12.0237 7.30166 11.5634 7.30166ZM15.3566 6.77666C15.3566 7.2369 15.7296 7.60999 16.1898 7.60999C16.4108 7.60999 16.6228 7.5222 16.7791 7.36592C16.9353 7.20964 17.0231 6.99767 17.0231 6.77666C17.0231 6.31642 16.65 5.94333 16.1898 5.94333C15.7296 5.94333 15.3566 6.31642 15.3566 6.77666Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.93711 7.32085C5.77441 7.15819 5.51068 7.15819 5.34798 7.32085L0.610759 12.0583C-0.202488 12.8719 -0.202488 14.1906 0.610759 15.0042L5.49964 19.89C5.89033 20.2808 6.42028 20.5004 6.97288 20.5004C7.52548 20.5004 8.05543 20.2808 8.44613 19.89L13.1825 15.1525C13.3452 14.9898 13.3452 14.7261 13.1825 14.5633L5.93711 7.32085ZM3.7764 15.0892C3.31619 15.0892 2.94312 14.7161 2.94312 14.2558C2.94312 13.7956 3.31619 13.4225 3.7764 13.4225C4.23661 13.4225 4.60969 13.7956 4.60969 14.2558C4.60969 14.7161 4.23661 15.0892 3.7764 15.0892ZM5.41047 16.7233C5.41047 17.1836 5.78355 17.5567 6.24376 17.5567C6.70397 17.5567 7.07704 17.1836 7.07704 16.7233C7.07704 16.2631 6.70397 15.89 6.24376 15.89C5.78355 15.89 5.41047 16.2631 5.41047 16.7233ZM6.24376 12.6225C5.78355 12.6225 5.41047 12.2494 5.41047 11.7892C5.41047 11.3289 5.78355 10.9558 6.24376 10.9558C6.70397 10.9558 7.07704 11.3289 7.07704 11.7892C7.07704 12.2494 6.70397 12.6225 6.24376 12.6225ZM7.87783 14.2558C7.87783 14.7161 8.2509 15.0892 8.71111 15.0892C9.17132 15.0892 9.5444 14.7161 9.5444 14.2558C9.5444 13.7956 9.17132 13.4225 8.71111 13.4225C8.2509 13.4225 7.87783 13.7956 7.87783 14.2558Z",fill:"#1F2737"},null,-1)])])}const O2=O(T2,[["render",A2]]),M2={name:"IconGameTypeSlots"},L2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function I2(e,t,n,s,r,i){return g(),x("svg",L2,[...t[0]||(t[0]=[jt('<path d="M2.72083 3.83333C2.55941 3.83278 2.41253 3.73995 2.34276 3.59438C2.27299 3.44881 2.29264 3.27616 2.39333 3.14999C3.73777 1.47551 5.76925 0.501343 7.91667 0.501343C10.0641 0.501343 12.0956 1.47551 13.44 3.14999C13.5407 3.27616 13.5603 3.44881 13.4906 3.59438C13.4208 3.73995 13.2739 3.83278 13.1125 3.83333H2.72083Z" fill="#1F2737"></path><path d="M3.33333 12.7917C3.12244 12.7917 2.92572 12.6855 2.81002 12.5092C2.69432 12.3329 2.6752 12.1102 2.75916 11.9167L3.50916 10.1625C3.5369 10.0982 3.53047 10.0243 3.49205 9.96575C3.45363 9.9072 3.38836 9.87187 3.31833 9.87171H2.91666C2.57149 9.87171 2.29166 9.59189 2.29166 9.24671C2.29166 8.90153 2.57149 8.62171 2.91666 8.62171H4.58333C4.7953 8.62076 4.9933 8.7273 5.10929 8.90473C5.22527 9.08215 5.24342 9.30627 5.1575 9.50004L3.9075 12.4167C3.80807 12.6451 3.5824 12.7925 3.33333 12.7917Z" fill="#1F2737"></path><path d="M7.5 12.7917C7.28911 12.7917 7.09239 12.6855 6.97669 12.5092C6.86099 12.3329 6.84187 12.1102 6.92584 11.9167L7.67584
210.1625C7.70357 10.0982 7.69714 10.0243 7.65872 9.96574C7.6203 9.90719 7.55503 9.87186 7.485 9.8717H7.08334C6.73816 9.8717 6.45834 9.59188 6.45834 9.2467C6.45834 8.90153 6.73816 8.6217 7.08334 8.6217H8.75C8.96016 8.62174 9.15624 8.72739 9.27185 8.9029C9.38745 9.07841 9.40711 9.30027 9.32417 9.49337L8.07417 12.41C7.97678 12.641 7.75067 12.7913 7.5 12.7917Z" fill="#1F2737"></path><path d="M11.6667 12.7917C11.4567 12.7912 11.2609 12.6855 11.1454 12.5101C11.0299 12.3347 11.01 12.1131 11.0925 11.92L11.8425 10.1658C11.8702 10.1015 11.8638 10.0276 11.8254 9.96904C11.787 9.91049 11.7217 9.87516 11.6517 9.875H11.25C10.9048 9.875 10.625 9.59518 10.625 9.25C10.625 8.90482 10.9048 8.625 11.25 8.625H12.9167C13.1268 8.62503 13.3229 8.73069 13.4385 8.9062C13.5541 9.0817 13.5738 9.30356 13.4908 9.49667L12.2408 12.4133C12.1424 12.643 11.9165 12.7918 11.6667 12.7917Z" fill="#1F2737"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3333 6.75004C17.5997 6.75061 16.9527 7.23081 16.7397 7.93284C16.5268 8.63487 16.7979 9.39361 17.4075 9.80171C17.4654 9.84041 17.5001 9.90544 17.5 9.97504V14.4584C17.5002 15.287 16.8917 15.9899 16.0717 16.1084C16.0118 16.1165 15.9514 16.0985 15.9058 16.059C15.8601 16.0194 15.8337 15.9621 15.8333 15.9017V6.33337C15.8333 5.64302 15.2737 5.08337 14.5833 5.08337H1.25C0.559644 5.08337 0 5.64302 0 6.33337V19.25C0 19.9404 0.559644 20.5 1.25 20.5H14.5833C15.2737 20.5 15.8333 19.9404 15.8333 19.25V17.9942C15.8331 17.8839 15.919 17.7925 16.0292 17.7859C17.791 17.6822 19.1666 16.2232 19.1667 14.4584V9.97504C19.1666 9.90544 19.2013 9.84041 19.2592 9.80171C19.8688 9.39361 20.1399 8.63487 19.9269 7.93284C19.7139 7.23081 19.067 6.75061 18.3333 6.75004ZM6.25 18.2084H2.5C2.15482 18.2084 1.875 17.9286 1.875 17.5834C1.875 17.2382 2.15482 16.9584 2.5 16.9584H6.25C6.59518 16.9584 6.875 17.2382 6.875 17.5834C6.875 17.9286 6.59518 18.2084 6.25 18.2084ZM13.75 13.8334C14.2102 13.8334 14.5833 13.4603 14.5833 13V8.41671C14.5833 7.95647 14.2102 7.58337 13.75 7.58337H2.08333C1.6231 7.58337 1.25 7.95647 1.25 8.41671V13C1.25 13.4603 1.6231 13.8334 2.08333 13.8334H13.75Z" fill="#1F2737"></path>',5)])])}const R2=O(M2,[["render",I2]]),D2={name:"IconGameTypeSnooker"},F2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function B2(e,t,n,s,r,i){return g(),x("svg",F2,[...t[0]||(t[0]=[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 10.5C0 4.97715 4.47715 0.5 10 0.5C12.6522 0.5 15.1957 1.55357 17.0711 3.42893C18.9464 5.3043 20 7.84784 20 10.5C20 16.0228 15.5228 20.5 10 20.5C4.47715 20.5 0 16.0228 0 10.5ZM3.755 10.5C3.755 13.9518 6.55322 16.75 10.005 16.75C11.6626 16.75 13.2523 16.0915 14.4244 14.9194C15.5965 13.7473 16.255 12.1576 16.255 10.5C16.255 7.04822 13.4568 4.25 10.005 4.25C6.55322 4.25 3.755 7.04822 3.755 10.5Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.25 9.75006C12.1116 9.61761 12.0814 9.40788 12.1767 9.24173C12.7815 8.19096 12.5453 6.85764 11.6162 6.07871C10.687 5.29977 9.33296 5.29977 8.40385 6.07871C7.47475 6.85764 7.23847 8.19096 7.84334 9.24173C7.93864 9.40788 7.90839 9.61761 7.77 9.75006C6.81301 10.6657 6.50915 12.0714 7.00249 13.3006C7.49582 14.5298 8.68717 15.3354 10.0117 15.3354C11.3362 15.3354 12.5275 14.5298 13.0209 13.3006C13.5142 12.0714 13.2103 10.6657 12.2533 9.75006H12.25ZM10.005 7.16673C10.4652 7.16673 10.8383 7.53982 10.8383 8.00006C10.8383 8.4603 10.4652 8.83339 10.005 8.83339C9.54477 8.83339 9.17167 8.4603 9.17167 8.00006C9.17167 7.53982 9.54477 7.16673 10.005 7.16673ZM8.43167 12.0892C8.43075 12.9592 9.13502 13.6653 10.005 13.6667C10.8759 13.6672 11.5824 12.9618 11.5833 12.0909C11.5833 11.2209 10.8783 10.5155 10.0083 10.5151C9.13835 10.5146 8.43259 11.2192 8.43167 12.0892Z",fill:"#1F2737"},null,-1)])])}const E2=O(D2,[["render",B2]]),$2={name:"IconGameTypeSoccer"},N2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function z2(e,t,n,s,r,i){return g(),x("svg",N2,[...t[0]||(t[0]=[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 10.5C0 4.97715 4.47715 0.5 10 0.5C15.5204 0.505971 19.994 4.97963 20 10.5C20 16.0228 15.5228 20.5 10 20.5C4.47715 20.5 0 16.0228 0 10.5ZM11.0942 3.58583C10.9418 3.65231 10.8436 3.80296 10.8442 3.96917L10.84 6.12833C10.8397 6.26169 10.9032 6.38715 11.0108 6.46583L13.9275 8.5875C14.0568 8.68196 14.2288 8.69395 14.37 8.61833L15.9817 7.75417C16.1063 7.68731 16.1885 7.5618 16.2 7.42083L16.4325 4.79417C16.4429 4.67472 16.4013 4.5566 16.3183 4.47C15.583 3.6978 14.7133 3.06584 13.7517 2.605C13.6436 2.55326 13.5185 2.55053 13.4083 2.5975L11.0942 3.58583ZM3.69917 4.44917C4.43294 3.68332 5.29945 3.05681 6.25667 2.6C6.36471 2.54826 6.4898 2.54553 6.6 2.5925L8.92417 3.58333C9.0765 3.64981 9.17475 3.80046 9.17417 3.96667V6.12917C9.17299 6.2612 9.10931 6.38487 9.0025 6.4625L6.16917 8.5275C6.04433 8.61899 5.87907 8.63375 5.74 8.56583L4.04917 7.74C3.91787 7.67602 3.82966 7.54797 3.81667 7.4025L3.58333 4.77417C3.57317 4.65419 3.61541 4.53567 3.69917 4.44917ZM5.53417 15.31L6.47333 14.2617C6.57054 14.1518 6.60282 13.9989 6.55833 13.8592L5.49417 10.5708C5.46077 10.4685 5.38911 10.3831 5.29417 10.3325L3.54417 9.39333C3.37275 9.30111 3.16032 9.33986 3.0325 9.48667L1.42833 11.3333C1.35232 11.4231 1.31781 11.5409 1.33333 11.6575C1.47175 12.7024 1.79932 13.7133 2.3 14.6408C2.35708 14.7461 2.45665 14.8216 2.57333 14.8483L5.13 15.4375C5.27789 15.4718 5.43273 15.423 5.53417 15.31ZM13.14 16.7617L11.8575 18.9092C11.7959 19.0126 11.6926 19.0843 11.5
2742 19.1058C10.5436 19.2933 9.48775 19.2947 8.45667 19.11C8.33794 19.0887 8.23429 19.0169 8.1725 18.9133L6.885 16.765C6.7911 16.6082 6.81036 16.4085 6.9325 16.2725L7.87083 15.225C7.95004 15.1368 8.06309 15.0864 8.18167 15.0867H11.8425C11.9611 15.0864 12.0741 15.1368 12.1533 15.225L13.0908 16.2725C13.2126 16.4083 13.2318 16.6075 13.1383 16.7642L13.14 16.7617ZM17.4283 14.8458C17.545 14.8191 17.6446 14.7436 17.7017 14.6383L17.7 14.6408C18.2014 13.7148 18.5301 12.7053 18.67 11.6617C18.6858 11.5432 18.65 11.4236 18.5717 11.3333L16.97 9.48C16.8423 9.33361 16.6304 9.29489 16.4592 9.38667L14.7092 10.3258C14.6142 10.3765 14.5426 10.4619 14.5092 10.5642L13.445 13.8525C13.3985 13.9932 13.4302 14.1481 13.5283 14.2592L14.4675 15.3075C14.5689 15.4205 14.7238 15.4693 14.8717 15.435L17.4283 14.8458Z",fill:"#1F2737"},null,-1)])])}const j2=O($2,[["render",z2]]),V2={name:"IconGameTypeSports"},G2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function H2(e,t,n,s,r,i){return g(),x("svg",G2,[...t[0]||(t[0]=[jt('<path d="M9.28083 8.4275C9.22203 8.38897 9.14776 8.38271 9.08333 8.41083C8.2492 8.77039 7.70889 9.59167 7.70889 10.5C7.70889 11.4083 8.2492 12.2296 9.08333 12.5892C9.14772 12.6173 9.22194 12.611 9.28073 12.5726C9.33952 12.5341 9.37496 12.4686 9.375 12.3983V8.60166C9.37482 8.53149 9.33945 8.46608 9.28083 8.4275Z" fill="#1F2737"></path><path d="M10.7192 12.5725C10.778 12.611 10.8522 12.6173 10.9167 12.5892C11.7508 12.2296 12.2911 11.4083 12.2911 10.5C12.2911 9.59167 11.7508 8.77039 10.9167 8.41083C10.8523 8.38272 10.7781 8.38897 10.7193 8.42743C10.6605 8.4659 10.625 8.5314 10.625 8.60166V12.3983C10.6249 12.4686 10.6603 12.5341 10.7192 12.5725Z" fill="#1F2737"></path><path d="M17.7083 7.875C17.7083 7.59886 17.9322 7.375 18.2083 7.375H19.5C19.7761 7.375 20 7.59886 20 7.875V13.125C20 13.4011 19.7761 13.625 19.5 13.625H18.2083C17.9322 13.625 17.7083 13.4011 17.7083 13.125V7.875Z" fill="#1F2737"></path><path d="M8.95833 3.83337H0.833333C0.373096 3.83337 0 4.20647 0 4.66671V5.70837C0 5.93849 0.186548 6.12504 0.416667 6.12504H2.08333C2.88837 6.12596 3.54075 6.77834 3.54167 7.58337V13.4167C3.54075 14.2217 2.88837 14.8741 2.08333 14.875H0.416667C0.186548 14.875 0 15.0616 0 15.2917V16.3334C0 16.7936 0.373096 17.1667 0.833333 17.1667H8.95833C9.18845 17.1667 9.375 16.9802 9.375 16.75V14.3109C9.3749 14.1232 9.24935 13.9588 9.06833 13.9092C7.52831 13.4927 6.45876 12.0954 6.45876 10.5C6.45876 8.90468 7.52831 7.50741 9.06833 7.09087C9.24935 7.04133 9.3749 6.87688 9.375 6.68921V4.25004C9.375 4.01992 9.18845 3.83337 8.95833 3.83337Z" fill="#1F2737"></path><path d="M0 7.875C0 7.59886 0.223858 7.375 0.5 7.375H1.79167C2.06781 7.375 2.29167 7.59886 2.29167 7.875V13.125C2.29167 13.4011 2.06781 13.625 1.79167 13.625H0.5C0.223858 13.625 0 13.4011 0 13.125V7.875Z" fill="#1F2737"></path><path d="M19.1667 3.83337H11.0417C10.8115 3.83337 10.625 4.01992 10.625 4.25004V6.68921C10.6251 6.87688 10.7507 7.04133 10.9317 7.09087C12.4717 7.50741 13.5412 8.90468 13.5412 10.5C13.5412 12.0954 12.4717 13.4927 10.9317 13.9092C10.7507 13.9588 10.6251 14.1232 10.625 14.3109V16.75C10.625 16.9802 10.8115 17.1667 11.0417 17.1667H19.1667C19.6269 17.1667 20 16.7936 20 16.3334V15.2917C20 15.0616 19.8135 14.875 19.5833 14.875H17.9167C17.1116 14.8741 16.4593 14.2217 16.4583 13.4167V7.58337C16.4593 6.77834 17.1116 6.12596 17.9167 6.12504H19.5833C19.8135 6.12504 20 5.93849 20 5.70837V4.66671C20 4.20647 19.6269 3.83337 19.1667 3.83337Z" fill="#1F2737"></path>',6)])])}const W2=O(V2,[["render",H2]]),U2={name:"IconGameTypeSportsBook"},q2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function Y2(e,t,n,s,r,i){return g(),x("svg",q2,[...t[0]||(t[0]=[jt('<path d="M11.5642 7.24086C11.0732 7.2407 10.5854 7.31716 10.12 7.46726C9.99873 7.50657 9.90301 7.5972 9.86039 7.71306C9.81778 7.82893 9.833 7.95717 9.90167 8.06086C10.3485 8.73582 10.7287 9.44931 11.0375 10.1921C11.0897 10.3169 11.2036 10.4082 11.3409 10.4351C11.4781 10.4619 11.6202 10.4208 11.7192 10.3257L13.7592 8.36806C13.854 8.27793 13.8982 8.14962 13.8779 8.02297C13.8576 7.89633 13.7754 7.78667 13.6567 7.72806C13.0103 7.40607 12.2924 7.23892 11.5642 7.24086Z" fill="#1F2737"></path><path d="M10.1908 11.4856C9.87078 10.5176 9.42268 9.59296 8.85751 8.7344C8.7877 8.62896 8.6706 8.56089 8.54093 8.55037C8.41125 8.53985 8.28391 8.5881 8.19667 8.6808C6.92345 10.0295 6.65761 11.9959 7.53001 13.612C7.59122 13.7258 7.70552 13.8046 7.83743 13.8239C7.9
26934 13.8432 8.1029 13.8007 8.19667 13.7096L10.0917 11.8912C10.2013 11.7845 10.2395 11.628 10.1908 11.4856Z" fill="#1F2737"></path><path d="M5.77001 11.6033C5.76951 10.1068 6.39879 8.67352 7.51501 7.62887C7.67507 7.47806 7.68207 7.23267 7.53084 7.07367C7.32417 6.8566 7.11362 6.6502 6.89917 6.45447C6.73821 6.30717 6.48513 6.30717 6.32417 6.45447C4.62714 8.06421 3.34208 10.0298 2.57001 12.1969C2.51167 12.358 2.56621 12.5369 2.70584 12.6425C3.55585 13.2867 4.54903 13.7343 5.60834 13.9505C5.75548 13.9807 5.90818 13.9324 6.00782 13.8242C6.10746 13.7159 6.13855 13.5645 6.08917 13.4281C5.87685 12.8413 5.76896 12.2244 5.77001 11.6033Z" fill="#1F2737"></path><path d="M7.83333 5.4377C7.8224 5.55657 7.86732 5.67391 7.95583 5.7577C8.18917 5.9785 8.41778 6.21077 8.64167 6.4545C8.76373 6.58758 8.9625 6.62764 9.13 6.5529C10.6043 5.89778 12.2972 5.86644 13.7967 6.4665C13.8662 6.49424 13.9459 6.48379 14.0052 6.43918C14.0644 6.39457 14.094 6.32274 14.0825 6.2513C13.9251 5.27079 13.5447 4.33558 12.9683 3.5121C12.8742 3.37693 12.7043 3.30989 12.5383 3.3425C10.9238 3.65157 9.38828 4.26236 8.01917 5.1401C7.9133 5.207 7.8449 5.31653 7.83333 5.4377Z" fill="#1F2737"></path><path d="M6.36334 4.45359C6.51029 4.55748 6.71056 4.55748 6.85751 4.45359C8.23919 3.48262 9.79965 2.77119 11.4567 2.35679C11.5323 2.33698 11.5901 2.27837 11.6067 2.20479C11.6233 2.1313 11.5952 2.0551 11.5342 2.00799
2C10.3436 1.08062 8.87057 0.551194 7.33834 0.499993C7.22739 0.496329 7.11951 0.535318 7.03863 0.608311C6.95775 0.681303 6.91055 0.782263 6.90751 0.888793C6.87933 1.90325 6.57478 2.89291 6.02417 3.75919C5.91 3.93827 5.95948 4.17162 6.13751 4.29359C6.21334 4.34799 6.28834 4.39999 6.36334 4.45359Z" fill="#1F2737"></path><path d="M2.575 2.43678C3.20463 2.67961 3.81949 2.95632 4.41667 3.26558C4.61208 3.36676 4.8558 3.30308 4.97084 3.12078C5.39371 2.44645 5.62981 1.67946 5.65667 0.892785C5.65912 0.829993 5.63068 0.769748 5.57989 0.730113C5.5291 0.690477 5.46186 0.67606 5.39834 0.691185C4.33797 0.941176 3.35225 1.42336 2.51834 2.09999C2.46295 2.14547 2.43622 2.21536 2.44778 2.28445C2.45935 2.35353 2.50755 2.41186 2.575 2.43838V2.43678Z" fill="#1F2737"></path><path d="M5.395 5.43844C5.38441 5.31984 5.31935 5.21193 5.2175 5.14404C5.07954 5.05256 4.89485 5.06108 4.76667 5.16484C3.68308 6.04367 2.31019 6.52551 0.891668 6.52484C0.747501 6.52484 0.603335 6.51924 0.459168 6.50964C0.348191 6.50197 0.238624 6.53722 0.154879 6.60754C0.0711342 6.67787 0.0201676 6.77743 0.0133345 6.88404C0.00416787 7.02244 1.20074e-06 7.16004 1.20074e-06 7.30004C-0.00207365 8.55892 0.361543 9.79342 1.05 10.8648C1.13204 10.9921 1.28124 11.0648 1.43669 11.0532C1.59213 11.0416 1.72782 10.9476 1.78833 10.8096C2.60095 8.92583 3.78452 7.21021 5.27417 5.75684C5.3616 5.67314 5.40586 5.55652 5.395 5.43844Z" fill="#1F2737"></path><path d="M0.583339 5.31684C1.64731 5.38435 2.704 5.10623 3.58334 4.52724C3.64169 4.48657 3.67337 4.41936 3.66667 4.35044C3.66237 4.28023 3.61997 4.21735 3.55501 4.18484C2.94366 3.88064 2.31297 3.61371 1.66667 3.38564C1.4858 3.32222 1.28322 3.38606 1.17667 3.54004C0.851924 4.01034 0.589618 4.51773 0.395838 5.05044C0.374377 5.10957 0.382884 5.17494 0.418842 5.22719C0.454799 5.27944 0.51409 5.31259 0.579172 5.31684H0.583339Z" fill="#1F2737"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M19.8167 12.4513L18.9333 11.6025C18.8161 11.4899 18.6571 11.4266 18.4913 11.4266C18.3254 11.4266 18.1664 11.4899 18.0492 11.6025C17.8934 11.763 17.6587 11.8291 17.4373 11.7748C17.2158 11.7205 17.0429 11.5545 16.9863 11.3419C16.9298 11.1293 16.9986 10.904 17.1658 10.7545C17.4096 10.5199 17.4096 10.1402 17.1658 9.90566L16.2817 9.06006C16.0374 8.82601 15.6418 8.82601 15.3975 9.06006L8.91667 15.2801C8.79922 15.3924 8.73319 15.5449 8.73319 15.7041C8.73319 15.8632 8.79922 16.0158 8.91667 16.1281L9.8 16.9801C9.91694 17.0928 10.0759 17.1562 10.2417 17.1561C10.4076 17.1557 10.5666 17.0924 10.6842 16.9801C10.9314 16.7537 11.3203 16.7537 11.5675 16.9801C11.8109 17.2148 11.8109 17.5942 11.5675 17.8289C11.4503 17.9413 11.3844 18.0938 11.3844 18.2529C11.3844 18.4119 11.4503 18.5645 11.5675 18.6769L12.4508 19.5249C12.6951 19.7589 13.0907 19.7589 13.335 19.5249L17.1317 15.8801V15.8761H17.1358L19.8167 13.3001C19.9342 13.1876 20.0002 13.0349 20.0002 12.8757C20.0002 12.7164 19.9342 12.5637 19.8167 12.4513ZM15.5158 15.7313L13.4042 17.7585C13.3436 17.8161 13.2526 17.8326 13.1744 17.8C13.0962 17.7674 13.0466 17.6923 13.0492 17.6105C13.0769 17.0571 12.8599 16.5182 12.4518 16.1266C12.0437 15.7349 11.4822 15.5269 10.9058 15.5537C10.8205 15.5559 10.7423 15.508 10.7083 15.4329C10.6742 15.3576 10.6918 15.2699 10.7525 15.2121L12.8633 13.1849C13.026 13.0287 13.2898 13.0287 13.4525 13.1849L15.5158 15.1657C15.5945 15.2407 15.6387 15.3428 15.6387 15.4493C15.6387 15.5557 15.5945 15.6578 15.5158 15.7329V15.7313ZM16.9875 14.3161C16.9875 14.3161 17.5408 13.7857 17.9758 13.3673L17.9725 13.3705C18.0328 13.3122 18.0499 13.2244 18.0155 13.1491C17.9811 13.0739 17.9022 13.0265 17.8167 13.0297C17.2421 13.0523 16.6838 12.843 16.2773 12.4525C15.8707 12.0621 15.6529 11.5261 15.6767 10.9745C15.68 10.8921 15.6304 10.8163 15.5517 10.7834C15.473 10.7505 15.3814 10.7673 15.3208 10.8257L14.3333 11.7745C14.1707 11.9307 14.1707 12.1839 14.3333 12.3401L16.3983 14.3161C16.561 14.4722 16.8248 14.4722 16.9875 14.3161Z" fill="#1F2737"></path>',9)])])}const Z2=O(U2,[["render",Y2]]),K2={name:"IconGameTypeStud"},X2={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function J2(e,t,n,s,r,i){return g(),x("svg",X2,[...t[0]||(t[0]=[v("path",{d:"M12.6458 9.99995L10.6667 7.36078C10.5037 7.15981 10.2587 7.04309 10 7.04309C9.74125 7.04309 9.49631 7.15981 9.33333 7.36078L7.35417 9.99995C7.13194 10.2962 7.13194 10.7037 7.35417 11L9.33333 13.6391C9.49071 13.849 9.7377 13.9725 10 13.9725C10.2623 13.9725 10.5093 13.849 10.6667 13.6391L12.6458 11C12.8681 10.7037 12.8681 10.2962 12.6458 9.99995Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.58334 20.5H15.4167C16.7974 20.5 17.9167 19.3807 17.9167 18V3C17.9167 1.61929 16.7974 0.5 15.4167 0.5H4.58334C3.20262 0.5 2.08334 1.61929 2.08334 3V18C2.08334 19.3807 3.20262 20.5 4.58334 20.5ZM3.75 3C3.75 2.53976 4.1231 2.16667 4.58334 2.16667H15.4167C15.8769 2.16667 16.25 2.53976 16.25 3V18C16.25 18.4602 15.8769 18.8333 15.4167 18.8333H4.58334C4.1231 18.8333 3.75 18.4602 3.75 18V3Z",fill:"#1F2737"},null,-1),v("path",{d:"M6.04167 5.49996C6.61696 5.49996 7.08333 5.03359 7.08333 4.45829C7.08333 3.883 6.61696 3.41663 6.04167 3.41663C5.46637 3.41663 5 3.883 5 4.45829C5 5.03359 5.46637 5.49996 6.04167 5.49996Z",fill:"#1F2737"},null,-1),v("path",{d:"M13.9583 17.5833C14.5336 17.5833 15 17.117 15 16.5417C15 15.9664 14.5336 15.5 13.9583 15.5C13.383 15.5 12.9167 15.9664 12.9167 16.5417C12.9167 17.117 13.383 17.5833 13.9583 17.5833Z",fill:"#1F2737"},null,-1)])])}const Q2=O(K2,[["render",J2]]),ev={name:"IconGameTypeTennis"},tv={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function nv(e,t,n,s,r,i){return g(),x("svg",tv,[...t[0]||(t[0]=[v("path",{d:"M6.57 5.69922C7.72059 5.69922 8.65333 4.80379 8.65333 3.69922C8.65333 2.59465 7.72059 1.69922 6.57 1.69922C5.4194 1.69922 4.48666 2.59465 4.48666 3.69922C4.48666 4.80379 5.4194 5.69922 6.57 5.69922Z",fill:"#1F2737"},null,-1),v("path",{d:"M16.57 14.4992C17.4905 14.4992 18.2367 13.7828 18.2367 12.8992C18.2367 12.0155 17.4905 11.2992 16.5
27 11.2992C15.6495 11.2992 14.9033 12.0155 14.9033 12.8992C14.9033 13.7828 15.6495 14.4992 16.57 14.4992Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9875 8.76563L11.9167 9.67043C11.9083 9.68403 11.5425 10.164 11.5425 10.164C12.1483 10.3817 12.481 11.0072 12.3096 11.6059C12.1381 12.2047 11.5191 12.579 10.8825 12.4688L7.8425 11.82C7.14605 11.6719 6.50822 11.3358 6.00417 10.8512L5.35583 10.2288C5.30364 10.1788 5.22778 10.159 5.15637 10.1767C5.08496 10.1945 5.02866 10.2472 5.00833 10.3152L4.415 12.308C4.3837 12.4126 4.44567 12.522 4.55417 12.5536L7.0175 13.2816C8.46059 13.7066 9.49664 14.922 9.645 16.364L9.895 19.1784C9.94576 19.8275 9.4482 20.3971 8.77355 20.4622C8.09889 20.5274 7.49318 20.0642 7.40833 19.4184L7.15833 16.6048C7.1082 16.1245 6.7631 15.7197 6.2825 15.5776L5.31083 15.2904C5.53736 16.0793 5.4786 16.9186 5.14417 17.6712L4.1775 19.772C3.9055 20.3813 3.1705 20.6635 2.53583 20.4024C1.90117 20.1413 1.60717 19.4357 1.87917 18.8264L2.84917 16.7224C3.00325 16.3766 2.98013 15.9815 2.78667 15.6544L1.73667 13.8944C1.56992 13.6137 1.52816 13.2803 1.62083 12.9696L3.2875 7.36963C3.40953 6.9617 3.74694 6.646 4.17485 6.53936C4.60276 6.43272 5.05752 6.551 5.37083 6.85043L7.77417 9.16003C7.94339 9.32012 8.15629 9.43104 8.38833 9.48003L10.2133 9.86883C10.2133 9.86883 10.925 8.97363 10.9367 8.96163L11.27 6.77283C10.9355 5.49403 11.2477 4.13869 12.1125 3.11443C13.52 1.31443 15.8083 0.776828 17.2792 1.83843C18.75 2.90003 18.82 5.19523 17.4433 6.95763C16.648 8.0385 15.3771 8.70586 14 8.76563H13.9875ZM16.11 5.99763C16.9217 4.95763 16.9992 3.63843 16.2767 3.11763H16.2775C15.5283 2.58003 14.2175 3.08483 13.4433 4.07763C12.6392 5.10803 12.5575 6.44163 13.2767 6.95763C13.9958 7.47363 15.2983 7.03763 16.11 5.99763Z",fill:"#1F2737"},null,-1)])])}const sv=O(ev,[["render",nv]]),iv={name:"IconGameTypeTournaments"},rv={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function ov(e,t,n,s,r,i){return g(),x("svg",rv,[...t[0]||(t[0]=[v("path",{d:"M5.83333 17.1666C4.91286 17.1666 4.16666 17.9128 4.16666 18.8333V19.6666C4.16666 20.1269 4.53976 20.5 5 20.5H15C15.4602 20.5 15.8333 20.1269 15.8333 19.6666V18.8333C15.8333 17.9128 15.0871 17.1666 14.1667 17.1666H5.83333Z",fill:"#1F2737"},null,-1),v("path",{d:"M7.49999 13.4166C6.58235 13.4234 5.84013 14.1657 5.83333 15.0833V15.5C5.83333 15.7301 6.01988 15.9166 6.24999 15.9166H13.75C13.9801 15.9166 14.1667 15.7301 14.1667 15.5V15.0833C14.1594 14.1658 13.4174 13.4239 12.5 13.4166L7.49999 13.4166Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7822 12.0359C11.7033 12.1196 11.5933 12.1669 11.4783 12.1667H8.5225C8.40752 12.1669 8.29757 12.1196 8.21867 12.0359C8.13977 11.9523 8.09893 11.8398 8.10583 11.725C8.28965 9.24788 6.90473 6.92025 4.64 5.9C2.8343 5.0982 1.66938 3.30904 1.66666 1.33333C1.66666 0.873096 2.03976 0.5 2.5 0.5H17.5C17.9602 0.5 18.3333 0.873096 18.3333 1.33333C18.3308 3.30884 17.1662 5.09795 15.3608 5.9C13.0961 6.92025 11.7112 9.24788 11.895 11.725C11.9019 11.8398 11.8611 11.9523 11.7822 12.0359ZM4.94211 2.09795C4.77957 2.06083 4.60893 2.09039 4.46833 2.18C4.32778 2.26777 4.22789 2.40782 4.19069 2.5693C4.15348 2.73077 4.18202 2.90041 4.27 3.04083C4.58321 3.54111 4.98607 3.97928 5.45833 4.33333C5.73447 4.54044 6.12622 4.48448 6.33333 4.20833C6.54044 3.93219 6.48447 3.54044 6.20833 3.33333C5.86018 3.07145 5.56352 2.74738 5.33333 2.3775C5.24556 2.23574 5.10466 2.13506 4.94211 2.09795Z",fill:"#1F2737"},null,-1)])])}const av=O(iv,[["render",ov]]),lv={name:"IconGameTypeVideoPoker"},cv={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function dv(e,t,n,s,r,i){return g(),x("svg",cv,[...t[0]||(t[0]=[v("path",{d:"M19.7558 19.0775L17.2025 16.5242C17.1048 16.4265 17.0618 16.2867 17.0879 16.1509C17.1139 16.0152 17.2055 15.9012 17.3325 15.8467L17.795 15.6483C18.1029 15.5158 18.3014 15.2117 18.2989 14.8765C18.2963 14.5414 18.0932 14.2403 17.7833 14.1125L12.5417 11.9533C12.2305 11.8253 11.8729 11.897 11.6351 12.135C11.3973 12.373 11.3259 12.7306 11.4542 13.0417L13.6117 18.2833C13.7395 18.5936 14.0411 18.797 14.3767 18.7992H14.3825C14.7158 18.7991 15.017 18.6005 15.1483 18.2942L15.3467 17.8325C15.4012 17.7055 15.5152 17.6139 15.6509 17.5879C15.7867 17.5618 15.9265 17.6048 16.0242 17.7025L18.5775 20.2558C18.9045 20.5716 19.4242 20.5671 19.7457 20.2457C20.0671 19.9242 20.0716 19.4045 19.7558 19.0775Z",fill:"#1F2737"},null,-1),v("path",{d:"M9.8175 5.12912C9.76207 5.05565 9.67537 5.01245 9.58333 5.01245C9.4913 5.01245 9.4046 5.05565 9.34917 5.12912L7.96083 6.98079C7.88347 7.08494 7.88347 7.22747 7.96083 7.33162L9.34917 9.18245C9.4046 9.25593 9.4913 9.29912 9.58333 9.29912C9.67537 9.29912 9.76207 9.25593 9.8175 9.18245L11.2058 7.33329C11.2832 7.22914 11.2832 7.0866 11.2058 6.98245L9.8175 5.12912Z",fill:"#1F2737"},null,-1),v("path",{d:"M9.58349 12.1667H6.66682C6.4367 12.1667 6.25016 11.9801 6.25016 11.75V2.58333C6.25016 2.35321 6.4367 2.16667 6.66682 2.16667H12.5002C12.7303 2.16667 12.9168 2.35321 12.9168 2.58333V10.5108C12.9168 10.9711 13.2899 11.3442 13.7502 11.3442C14.2104 11.3442 14.5835 10.9711 14.5835 10.5108V2.16667C14.5835 1.24619 13.8373 0.5 12.9168 0.5H6.25016C5.32968 0.5 4.58349 1.24619 4.58349 2.16667V3.375L1.28349 4.16C0.853233 4.26191 0.481103 4.53061 0.24901 4.90696C0.0169174 5.2833 -0.0561144 5.73646 0.0459899 6.16667L2.35849 15.8958C2.53618 16.646 3.20511 17.1763 3.97599 17.1783C4.10709 17.178 4.2377 17.1624 4.36516 17.1317L7.60932 16.36C7.90669 16.2986 8.14714 16.0804 8.23695 15.7904C8.32677 15.5003 8.25172 15.1844 8.04107 14.9657C7.83043 14.747 7.51752 14.6603 7.22432 14.7392L4.38599 15.4142C4.16264 15.4663 3.93916 15.3281 3.88599 15.105L1.76432 6.18667C1.7122 5.96332 1.85039 5.73984 2.07349 5.68667L4.07349 5.21167C4.19762 5.18206 4.32846 5.21097 4.42857 5.29011C4.52867 5.36925 4.58699 5.48989 4.58682 5.6175V12.1667C4.58682 13.0871 5.33301 13.8333 6.25349 13.8333H9.58682C10.0471 13.8333 10.4202 13.4602 10.4202 13C10.4202 12.5398 10.0471 12.1667 9.58682 12.1667H9.58349Z",fill:"#1F2737"},null,-1)])])}const uv=O(lv,[["render",dv]]),hv={name:"IconGameTypeVirtualSports"},pv={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function fv(e,t,n,s,r,i){return g(),x("svg",pv,[...t[0]||(t[0]=[v("path",{d:"M18.7425 10.1524C18.5483 5.46486 14.6916 1.76465 10 1.76465C5.3084 1.76465 1.45171 5.46486 1.2575 10.1524C0.7543 10.3268 0.416793 10.8007 0.416664 11.3333V13.8333C0.416664 14.5236 0.976308 15.0833 1.66666 15.0833H2.91666C3.14678 15.0833 3.33333 14.8967 3.33333 14.6666V10.4999C3.33343 10.2746 3.15439 10.09 2.92916 10.0833C3.15177 6.34124 6.25135 3.42057 10 3.42057C13.7486 3.42057 16.8482 6.34124 17.0708 10.0833C16.8456 10.09 16.6666 10.2746 16.6667 10.4999V14.6666C16.6667 14.8967 16.8532 15.0833 17.0833 15.0833H18.3333C19.0237 15.0833 19.5833 14.5236 19.5833 13.8333V11.3333C19.5832 10.8007 19.2457 10.3268 18.7425 10.1524Z",fill:"#1F2737"},null,-1),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.51333 10.1824C5.35315 7.87503 7.54453 6.33767 10 6.33325C12.5613 6.33623 14.8222 8.00667 15.5775 10.4541C15.7447 10.7199 15.8334 11.0276 15.8333 11.3416V13.8416C15.8333 14.7621 15.0871 15.5083 14.1667 15.5083H12.0833C11.821 15.5083 11.574 15.3848 11.4167 15.1749L10.6667 14.1749C10.5093 13.9651 10.2623 13.8416 10 13.8416C9.7377 13.8416 9.49071 13.9651 9.33333 14.1749L8.58333 15.1749C8.42595 15.3848 8.17896 15.5083 7.91667 15.5083H5.83333C4.91286 15.5083 4.16666 14.7621 4.16666 13.8416V11.3416C4.16632 11.0001 4.27138 10.6669 4.4675 10.3874C4.4739 10.3174 4.4893 10.2485 4.51333 10.1824ZM6.25 12.1749H7.91667C8.14678 12.1749 8.33333 11.9884 8.33333 11.7583C8.33333 11.5281 8.14678 11.3416 7.91667 11.3416H6.25C6.01988 11.3416 5.83333 11.5281 5.83333 11.7583C5.83333 11.9884 6.01988 12.1749 6.25 12.1749ZM9.58333 12.1749C9.35321 12.1749 9.16667 11.9884 9.16667 11.7583C9.16667 11.5281 9.35321 11.3416 9.58333 11.3416H10.4167C10.6468 11.3416 10.8333 11.5281 10.8333 11.7583C10.8333 11.9884 10.6468 12.1749 10.4167 12.1749H9.58333ZM6.91591 9.54964C6.94905 9.62589 7.02436 9.67513 7.1075 9.67492H12.8942C12.9773 9.67513 13.0526 9.62589 13.0858 9.54964C13.1189 9.47339 13.1035 9.38474 13.0467 9.32409C12.2587 8.47992 11.1556 8.00066 10.0008 8.00066C8.84603 8.00066 7.74301 8.47992 6.955 9.32409C6.89813 9.38474 6.88277 9.47339 6.91591 9.54964Z",fill:"#1F2737"},null,-1),v("path",{d:"M12.5433 16.7149C11.0387 17.8491 8.96465 17.8491 7.46 16.7149C7.22474 16.5278 6.90696 16.4819 6.62838 16.5948C6.34981 16.7077 6.15361 16.9619 6.11494 17.2599C6.07627 17.558 6.20112 17.8538 6.44167 18.0341C8.53945 19.6551 11.4672 19.6551 13.565 18.0341C13.8055 17.8538 13.9304 17.558 13.8917 17.2599C13.8531 16.9619 13.6569 16.7077 13.3783 16.5948C13.0997 16.4819 12.7819 16.5278 12.5467 16.7149H12.5433Z",fill:"#1F2737"},null,-1)])])}const gv=O(hv,[["render",fv]]),mv={name:"IconGameTypeVolleyball"},bv={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function yv(e,t,n,s,r,i){return g(),x("svg",bv,[...t[0]||(t[0]=[jt
2('<path d="M13.6667 13.0933C13.7625 12.904 13.7008 12.673 13.5233 12.5567C12.5946 11.9474 11.5688 11.501 10.49 11.2367C10.345 11.2012 10.1921 11.246 10.0892 11.3542C7.82835 13.7246 4.63916 14.9802 1.36917 14.7875C1.2942 14.7825 1.2224 14.8185 1.18167 14.8817C1.14089 14.9444 1.13676 15.0242 1.17083 15.0908C1.85208 16.4041 2.81536 17.5503 3.99167 18.4475C4.1637 18.5796 4.38043 18.6393 4.59583 18.6142C8.35167 18.16 12.0417 16.3075 13.6667 13.0933Z" fill="#1F2737"></path><path d="M15.2358 13.9659C15.1447 13.8694 15.013 13.8222 14.8814 13.8387C14.7497 13.8551 14.6338 13.9333 14.5692 14.0492C12.9467 16.9392 9.94416 18.7292 6.69916 19.5109C6.60995 19.5328 6.54563 19.6105 6.54084 19.7023C6.53604 19.794 6.59189 19.8781 6.67833 19.9092C10.345 21.2228 14.4409 20.2787 17.1625 17.4925C17.2796 17.3735 17.3144 17.1961 17.2508 17.0417C16.7798 15.8981 16.0961 14.8544 15.2358 13.9659Z" fill="#1F2737"></path><path d="M19.7908 11.1525C17.52 8.1233 14.0708 5.85413 10.4758 6.05663C10.2642 6.06859 10.0953 6.23751 10.0833 6.44913C10.0197 7.55795 10.1459 8.6695 10.4567 9.7358C10.4985 9.87918 10.6139 9.98919 10.7592 10.0241C13.9421 10.7963 16.6242 12.9297 18.0925 15.8575C18.1257 15.9249 18.1928 15.9693 18.2679 15.9734C18.343 15.9775 18.4145 15.9409 18.455 15.8775C19.2529 14.6313 19.7651 13.2241 19.955 11.7566C19.9809 11.5416 19.922 11.3249 19.7908 11.1525Z" fill="#1F2737"></path><path d="M10.5158 4.62581C10.5945 4.73073 10.718 4.79248 10.8492 4.79248C14.1642 4.75331 17.215 6.45914 19.5158 8.87581C19.5793 8.94245 19.679 8.95953 19.761 8.91783C19.8431 8.87613 19.8881 8.78554 19.8717 8.69498C19.1759 4.86344 16.3112 1.78871 12.5383 0.824144C12.3768 0.782468 12.206 0.841157 12.1042 0.973311C11.348 1.9532 10.7852 3.06803 10.4458 4.25831C10.4098 4.38499 10.4357 4.52126 10.5158 4.62581Z" fill="#1F2737"></path><path d="M6.51167 12.4792C7.50376 11.9797 8.40333 11.3146 9.17167 10.5125C9.27476 10.4046 9.31227 10.2498 9.27 10.1067C8.34775 6.96347 8.85521 3.57368 10.6575 0.838346C10.6979 0.775023 10.7014 0.694949 10.6667 0.628346C10.6329 0.561504 10.5656 0.518147 10.4908 0.515013C9.01316 0.44769 7.53893 0.708669 6.17417 1.27918C5.974 1.36286 5.81435 1.52131 5.72917 1.72085C4.24417 5.20168 4 9.32335 5.97583 12.3333C6.0913 12.5112 6.32197 12.574 6.51167 12.4792Z" fill="#1F2737"></path><path d="M4.43333 13.26C4.56103 13.2281 4.66615 13.1377 4.71687 13.0163C4.76758 12.8948 4.75793 12.7565 4.69083 12.6433C3 9.79248 2.95 6.29831 3.89583 3.09665C3.92087 3.00883 3.88581 2.91494 3.80933 2.86503C3.73285 2.81513 3.63279 2.82085 3.5625 2.87915C0.592533 5.3982 -0.636493 9.41736 0.416664 13.1666C0.461191 13.3273 0.597241 13.446 0.762497 13.4683C1.98827 13.6317 3.23392 13.561 4.43333 13.26Z" fill="#1F2737"></path>',6)])])}const vv=O(mv,[["render",yv]]),_v={name:"IconGameTypeInstantGames",components:{VImage:W}};function xv(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-instant-games.svg",alt:"Instant games icon",width:"20",height:"21"})}const wv=O(_v,[["render",xv]]),kv={name:"IconGameTypeProgressiveJackpots",components:{VImage:W}};function Cv(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/game-type-progressive-jackpots.svg",alt:"Progressive jackpots icon",width:"20",height:"21"})}const Sv=O(kv,[["render",Cv]]),Tv={name:"IconGameTypeTableGames"},Pv={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"};function Av(e,t,n,s,r,i){return g(),x("svg",Pv,[...t[0]||(t[0]=[jt('<path d="M12.0209 14.2817L11.5142 12.2425C11.4725 12.0798 11.5327 11.9079 11.6667 11.8067L13.355 10.5567C13.4669 10.4737 13.6128 10.4522 13.7439 10.4992C13.875 10.5462 13.9739 10.6557 14.0075 10.7908L14.5142 12.8308C14.5546 12.9942 14.4928 13.1658 14.3575 13.2658L12.67 14.5158C12.5583 14.5973 12.4134 14.6179 12.2833 14.571C12.1532 14.5241 12.0549 14.4157 12.0209 14.2817Z" fill="#1F2737"></path><path d="M8.05504 7.7625C7.8992 7.08917 6.56504 6.395 6.1117 6.17917C6.0249 6.13854 5.92157 6.16265 5.8617 6.2375C5.55004 6.6325 4.65504 7.84167 4.8092 8.51333C4.94492 9.03103 5.40747 9.39596 5.94254 9.4075C6.03054 9.41759 6.10264 9.48202 6.12254 9.56833L6.29337 10.3108C6.34354 10.5285 6.506 10.7028 6.71956 10.7682C6.93312 10.8336 7.16533 10.78 7.32872 10.6278C7.49212 10.4755 7.56187 10.2476 7.5117 10.03L7.33337 9.28417C7.31419 9.19811 7.3508 9.10924 7.42504 9.06167C7.90143 8.81773 8.15849 8.28762 8.05504 7.7625Z" fill="#1F2737"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M19.9267 8.9725C20.0374 8.66309 20.0205 8.32238 19.8798 8.02541C19.7391 7.72844 19.4862 7.49956 19.1767 7.38917L11.5325 4.64417C11.4163 4.60221 11.2943 4.57804 11.1709 4.5725C11.0776 4.5685 10.9985 4.50267 10.9775 4.41167L10.2959 1.45917C10.1425 0.793707 9.47886 0.378482 8.81337 0.531666L0.958369 2.3375C0.293825 2.49201 -0.120549 3.15493 0.0317025 3.82L2.56504 14.82C2.63822 15.1399 2.83588 15.4175 3.11428 15.5912C3.39267 15.765 3.72883 15.8206 4.04837 15.7458L6.05587 15.2833C6.13007 15.2666 6.2075 15.2915 6.25807 15.3483C6.30865 15.4051 6.3244 15.4849 6.2992 15.5567L6.10504 16.0975C5.87561 16.7418 6.21117 17.4502 6.85504 17.6808L14.5 20.4275C15.1443 20.6559 15.852 20.3207 16.0834 19.6775L19.9267 8.9725ZM4.29587 13.9767C4.24204 13.9894 4.18536 13.9801 4.13842 13.9508C4.09148 13.9216 4.05816 13.8748 4.04587 13.8208L1.79587 4.07083C1.7831 4.01689 1.79272 3.96007 1.82254 3.91333C1.85175 3.86671 1.89816 3.83348 1.9517 3.82083L8.56254 2.29833C8.61649 2.28564 8.67327 2.29506 8.72023 2.32449C8.76719 2.35392 8.80043 2.40092 8.81254 2.455L9.6542 6.10583C9.66327 6.14483 9.66096 6.18561 9.64754 6.22333L7.13337 13.2233C7.1094 13.29 7.05322 13.3399 6.9842 13.3558L4.29587 13.9767ZM14.6225 18.6358C14.6724 18.6123 14.711 18.5701 14.73 18.5183L18.1434 9.00833C18.1621 8.95629 18.1593 8.89893 18.1357 8.84891C18.1121 8.79889 18.0696 8.7603 18.0175 8.74167L11.5717 6.4275C11.5197 6.40878 11.4623 6.41152 11.4123 6.43513C11.3623 6.45873 11.3237 6.50126 11.305 6.55333L7.88837 16.0617C7.8493 16.1698 7.90525 16.2892 8.01337 16.3283L14.4634 18.6433C14.5152 18.6626 14.5727 18.6599 14.6225 18.6358Z" fill="#1F2737"></path><path d="M3.56087 4.01667C3.10063 4.01667 2.72754 4.38976 2.72754 4.85C2.72754 5.31024 3.10063 5.68333 3.56087 5.68333C4.02111 5.68333 4.3942 5.31024 4.3942 4.85C4.3942 4.38976 4.02111 4.01667 3.56087 4.01667Z" fill="#1F2737"></path><path d="M13.75 15.6833C13.2898 15.6833 12.9167 16.0564 12.9167 16.5167C12.9167 16.9769 13.2898 17.35 13.75 17.35C14.2103 17.35 14.5834 16.9769 14.5834 16.5167C14.5834 16.0564 14.2103 15.6833 13.75 15.6833Z" fill="#1F2737"></path><path d="M12.0834 7.35C11.6231 7.35 11.25 7.7231 11.25 8.18333C11.25 8.64357 11.6231 9.01667 12.0834 9.01667C12.5436 9.01667 12.9167 8.64357 12.9167 8.18333C12.9167 7.7231 12.5436 7.35 12.0834 7.35Z" fill="#1F2737"></path>',6)])])}const Ov=O(Tv,[["render",Av]]),Mv={name:"GameType",components:{IconGameTypeBaccarat:H0,IconGameTypeBaseball:q0,IconGameTypeBasketball:K0,IconGameTypeBetting:Q0,IconGameTypeBingo:nb,IconGameTypeBlackjack:rb,IconGameTypeBoardGames:lb,IconGameTypeBoxing:ub,IconGameTypeBoxingMMA:fb,IconGameTypeCashGames:bb,IconGameTypeCraps:_b,IconGameTypeCricket:kb,IconGameTypeDadi:Tb,IconGameTypeDarts:Ob,IconGameTypeDice:Ib,IconGameTypeESports:Fb,IconGameTypeF1:$b,IconGameTypeFinancials:jb,IconGameTypeFootball:Hb,IconGameTypeGameShows:qb,IconGameTypeGolf:Kb,IconGameTypeHandball:Qb,IconGameTypeHockey:ny,IconGameTypeHoldEm:ry,IconGameTypeHorseRacing:ly,IconGameTypeIceHockey:uy,IconGameTypeInstantGames:wv,IconGameTypeJackpots:fy,IconGameTypeKeno:by,IconGameTypeLiveCasino:_y,IconGameTypeLiveDealer:ky,IconGameTypeLiveGames:Ty,IconGameTypeLivePoker:Oy,IconGameTypeLotteries:Iy,IconGameTypeMegaways:Fy,IconGameTypeMMA:$y,IconGameTypeMixedGames:jy,IconGameTypeMotorSports:Hy,IconGameTypeNFL:qy,IconGameTypeOmaha:Ky,IconGameTypePaigow:Qy,IconGameTypePoker:n2,IconGameTypePokies:r2,IconGameTypeProgressiveJackpots:Sv,IconGameTypePuzzleGames:l2,IconGameTypeRoulette:u2,IconGameTypeRugby:f2,IconGameTypeScratchCards:b2,IconGameTypeSimulationGames:x2,IconGameTypeSkillGames:S2,IconGameTypeSlingo:O2,IconGameTypeSlots:R2,IconGameTypeSnooker:E2,IconGameTypeSoccer:j2,IconGameTypeSports:W2,IconGameTypeSportsBook:Z2,IconGameTypeStud:Q2,IconGameTypeTableGames:Ov,IconGameTypeTennis:sv,IconGameTypeTournaments:av,IconGameTypeVideoPoker:uv,IconGameTypeVirtualSports:gv,IconGameTypeVolleyball:vv},props:{icon:{type:String,default:""},label:{type:String,default:""}}},Lv={class:"flex flew-row items-center xs:gap-xs lg:gap-sm"},Iv={class:"background-elevation-3 rounded-circle w-[24px] h-[24px] lg:w-[40px] lg:h-[40px] flex justify-center items-center rounded-pill"},Rv={class:"leading-150 body-md text-foreground-2"};function Dv(e,t,n,s,r,i){return g(),x("div",Lv,[v("span",Iv,[(g(),S(Pn(n.icon),{class:"min-w-[4px] min-h-[4px] lg:w-[20px] lg:h-[20px]"}))]),v("span",Rv,k(n.label),1)])}const Fv=O(Mv,[["render",Dv]]),Bv={name:"GameTypesAvailable",components:{GameType:Fv},props:{partner:{type:Object,default:()=>{}}},data(){return{allGameTypes:Rl,totalGamesAvailable:0,totalGamesAvailableLabel:this.$t("advancedToplist.totalGamesAvailable"),gameCategoriesLabel:this.$t("advancedToplist.gameCategories")}},computed:{allGameTypesLabels(){const e=this.$i18n?.locale,t=this.$i18n?.messages,n=e&&t&&t[e]?t[e].gameTypes:null;return typeof n=="object"&&n!==null?n:{}},providersIds(){const e=[];return this.partner?.phoenix?.attributes?.softwareProvider?.length&&this.partner.phoenix.attributes.softwareProvider.forEach(t=>{e.push(t.id)}),e},partnerGameTypes(){return this.partner?.phoenix?.attributes?.gameType||[]}},watch:{partner:{immediate:!0,deep:!0,handler(e){Object.keys(e).length&&this.getTotalGames()}}},created(){this.getTotalGames()},methods:{...ce(Ue,["queryGamesByCondition"]),async getTotalGames(){const e={pageSize:10,providerIds:this.providersIds,gameTypes:this.partnerGameTypes,sortingFields:{search_volume:"DESC"}};try{const t=await this.queryGamesByCondition({options:e,axios:this.$axios||null});"results"in t&&(this.totalGamesAvailable=t.rowsFound)}catch(t){console.error(t)}},getGameTypeLabel(e){let t=e;return typeof this.allGameTypesLabels=="object"&&this.allGameTypesLabels!==null&&e in this.allGameTypesLabels?t
2=this.allGameTypesLabels[e]:typeof this.allGameTypes=="object"&&this.allGameTypes!==null&&e in this.allGameTypes&&(t=this.allGameTypes[e].name),t},getGameTypeIcon(e){return typeof this.allGameTypes=="object"&&this.allGameTypes!==null&&e in this.allGameTypes?this.allGameTypes[e].icon:null}}},Ev={class:"background-elevation-2 border-sm color-stroke-elevation rounded-ui-md p-md lg:p-xl"},$v={class:"flex justify-between items-center text-foreground-2 leading-150 font-bold"},Nv={class:"title-xs leading-150"},zv={class:"body-md leading-150"},jv={class:"flex justify-between items-center text-foreground-1 leading-150 font-bold mb-sm lg:mb-lg"},Vv={class:"text-lm lg:text-md leading-150"},Gv={class:"body-md leading-150"},Hv={class:"gap-xs lg:gap-lg flex flex-wrap"};function Wv(e,t,n,s,r,i){const o=w("GameType");return g(),x("div",Ev,[v("div",$v,[v("p",Nv,k(r.totalGamesAvailableLabel),1),v("p",zv,k(r.totalGamesAvailable),1)]),t[0]||(t[0]=v("hr",{class:"my-4 lg:my-lg"},null,-1)),v("div",jv,[v("p",Vv,k(r.gameCategoriesLabel),1),v("p",Gv,k(i.partnerGameTypes.length),1)]),v("div",Hv,[(g(!0),x(H,null,Y(i.partnerGameTypes,(a,c)=>(g(),x(H,null,[i.getGameTypeIcon(a)?(g(),x("div",{key:c,class:"flex items-center"},[P(o,{icon:i.getGameTypeIcon(a),label:i.getGameTypeLabel(a)},null,8,["icon","label"])])):A("",!0)],64))),256))])])}const Uv=O(Bv,[["render",Wv]]);function Hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function s(){var r=!1;try{r=this instanceof s}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),n}const Yv={name:"MostPopularGames",components:{GameTile:ou,CustomSlider:Gt,Skeleton:lu},mixins:[vd],props:{title:{type:String,default:""},partner:{type:Object,default:()=>({})}},data(){return{loading:!0,total:0,games:[]}},computed:{providerIds(){const e=[];return this.partner&&this.partner.phoenix&&this.partner.phoenix.attributes&&this.partner.phoenix.attributes.softwareProvider&&this.partner.phoenix.attributes.softwareProvider.forEach(t=>{e.push(t.id)}),e},gamesIds(){return this.partner&&this.partner.supplement&&this.partner.supplement.gamesIds?this.partner.supplement.gamesIds:[]},partnerAfflink(){const e=this.partner?.phoenix?.attributes?.toplistOffer?.attributes?.afflinkProxy;return e?`${"https://links.casino.ca/play"+e}`:"/"}},watch:{partner:{handler(e,t){e!==t&&this.fetchGames()},deep:!0,immediate:!0}},created(){this.fetchGames()},methods:{...ce(Ue,["queryGamesByCondition"]),fetchGames(){this.loading=!0,this.providerIds.length&&this.getGamesByProvider(),this.gamesIds.length&&this.getGamesByIds()},async getGamesByProvider(){try{const e=await this.queryGamesByCondition({options:{pageSize:20,providerIds:this.providerIds,sortingFields:{search_volume:"DESC"}},axios:this.$axios||null});"results"in e&&(this.gamesByProvider=this.formatGames(e.results),this.gamesIds.length===0&&(this.games=this.gamesByProvider,this.loading=!1),this.total=e.rowsFound)}catch(e){console.error("[MostPopularGames] getGamesByProvider failed:",e),this.loading=!1}},async getGamesByIds(){try{const e=await this.queryGamesByCondition({options:{ids:this.gamesIds},axios:this.$axios||null});"results"in e&&(this.games=this.formatGames(e.results),this.loading=!1)}catch(e){console.error("[MostPopularGames] getGamesByIds failed:",e),this.loading=!1}},formatGames(e){return e.map(t=>{let n=t.defaultLogo||null;if(!n&&t.images?.length){const s=t.images.filter(r=>r.tags.includes("logo"));s.length&&(n=`https://play.casino.ca/assets/${s[0].hash}`)}return{...t,logo:n}}).filter(t=>t.logo)}}},Zv={class:"flex flex-col rounded-ui-md color-stroke-elevation border-sm background-elevation-2 gap-sm lg:gap-xs p-md lg:p-xl"},Kv={class:"title-xs leading-150"},Xv={class:"flex flex-col"},Jv={key:1,class:"flex overflow-x-auto no-scrollbar gap-sm lg:gap-md"};function Qv(e,t,n,s,r,i){const o=w("GameTile"),a=w("CustomSlider"),c=w("Skeleton");return g(),x("div",Zv,[v("p",Kv,k(n.title),1),v("div",Xv,[r.loading?(g(),x("div",Jv,[(g(),x(H,null,Y(5,l=>P(c,{key:`skeleton-game-${l}`,class:"min-w-[82px] h-[82px] md:min-w-[128px] md:h-[128px] lg:min-w-[153px] lg:h-[153px] rounded-lg"})),64))])):(g(),x(H,{key:0},[r.games.length?(g(),S(a,{key:0,"buttons-position-options":"inside-padding","slider-items-classe
2s":"gap-xs lg:gap-md"},{default:B(()=>[(g(!0),x(H,null,Y(r.games,(l,d)=>(g(),x("div",{key:d,class:"shrink-0"},[(g(),S(o,{key:d,"src-image-game":l.logo,game:l,partner:n.partner,orientation:"square",class:"w-[82px] h-[82px] md:w-[128px] md:h-[128px] lg:w-[153px] lg:h-[153px]","is-touch-opened":e.activeTouchGameId===l.id,onTouchClick:u=>e.handleTileTouchClick(l)},null,8,["src-image-game","game","partner","is-touch-opened","onTouchClick"]))]))),128))]),_:1})):A("",!0)],64))])])}const e_=O(Yv,[["render",Qv]]);var dn={exports:{}},Ot={},Is={},Fe={},Zt={},Be={},ht={},qe={},Rs={},Mt={},Ye={},Vr;function lr(){if(Vr)return Ye;Vr=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.ERROR_PACKET=Ye.PACKET_TYPES_REVERSE=Ye.PACKET_TYPES=void 0;const e=Object.create(null);Ye.PACKET_TYPES=e,e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Ye.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(s=>{t[e[s]]=s});const n={type:"error",data:"parser error"};return Ye.ERROR_PACKET=n,Ye}var Gr;function t_(){if(Gr)return Mt;Gr=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.encodePacket=void 0,Mt.encodePacketToBinary=c;const e=lr(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",n=typeof ArrayBuffer=="function",s=l=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer,r=({type:l,data:d},u,h)=>t&&d instanceof Blob?u?h(d):i(d,h):n&&(d instanceof ArrayBuffer||s(d))?u?h(d):i(new Blob([d]),h):h(e.PACKET_TYPES[l]+(d||""));Mt.encodePacket=r;const i=(l,d)=>{const u=new FileReader;return u.onload=function(){const h=u.result.split(",")[1];d("b"+(h||""))},u.readAsDataURL(l)};function o(l){return l instanceof Uint8Array?l:l instanceof ArrayBuffer?new Uint8Array(l):new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}let a;function c(l,d){if(t&&l.data instanceof Blob)return l.data.arrayBuffer().then(o).then(d);if(n&&(l.data instanceof ArrayBuffer||s(l.data)))return d(o(l.data));r(l,!1,u=>{a||(a=new TextEncoder),d(a.encode(u))})}return Mt}var Kt={},pt={},Hr;function n_(){if(Hr)return pt;Hr=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.decode=pt.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=r;const n=r=>{let i=new Uint8Array(r),o,a=i.length,c="";for(o=0;o<a;o+=3)c+=e[i[o]>>2],c+=e[(i[o]&3)<<4|i[o+1]>>4],c+=e[(i[o+1]&15)<<2|i[o+2]>>6],c+=e[i[o+2]&63];return a%3===2?c=c.substring(0,c.length-1)+"=":a%3===1&&(c=c.substring(0,c.length-2)+"=="),c};pt.encode=n;const s=r=>{let i=r.length*.75,o=r.length,a,c=0,l,d,u,h;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);const f=new ArrayBuffer(i),p=new Uint8Array(f);for(a=0;a<o;a+=4)l=t[r.charCodeAt(a)],d=t[r.charCodeAt(a+1)],u=t[r.charCodeAt(a+2)],h=t[r.charCodeAt(a+3)],p[c++]=l<<2|d>>4,p[c++]=(d&15)<<4|u>>2,p[c++]=(u&3)<<6|h&63;return f};return pt.decode=s,pt}var Wr;function s_(){if(Wr)return Kt;Wr=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.decodePacket=void 0;const e=lr(),t=n_(),n=typeof ArrayBuffer=="function",s=(o,a)=>{if(typeof o!="string")return{type:"message",data:i(o,a)};const c=o.charAt(0);return c==="b"?{type:"message",data:r(o.substring(1),a)}:e.PACKET_TYPES_REVERSE[c]?o.length>1?{type:e.PACKET_TYPES_REVERSE[c],data:o.substring(1)}:{type:e.PACKET_TYPES_REVERSE[c]}:e.ERROR_PACKET};Kt.decodePacket=s;const r=(o,a)=>{if(n){const c=(0,t.decode)(o);return i(c,a)}else return{base64:!0,data:o}},i=(o,a)=>a==="blob"?o instanceof Blob?o:new Blob([o]):o instanceof ArrayBuffer?o:o.buffer;return Kt}var Ur;function Mn(){return Ur||(Ur=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=void 0,e.createPacketEncoderStream=a,e.createPacketDecoderStream=u;const t=t_();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=s_();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const s=lr(),r="�",i=(h,f)=>{const p=h.length,y=new Array(p);let m=0;h.forEach((b,_)=>{(0,t.encodePacket)(b,!1,C=>{y[_]=C,++m===p&&f(y.join(r))})})};e.encodePayload=i;const o=(h,f)=>{const p=h.split(r),y=[];for(let m=0;m<p.length;m++){const b=(0,n.decodePacket)(p[m],f);
2if(y.push(b),b.type==="error")break}return y};e.decodePayload=o;function a(){return new TransformStream({transform(h,f){(0,t.encodePacketToBinary)(h,p=>{const y=p.length;let m;if(y<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,y);else if(y<65536){m=new Uint8Array(3);const b=new DataView(m.buffer);b.setUint8(0,126),b.setUint16(1,y)}else{m=new Uint8Array(9);const b=new DataView(m.buffer);b.setUint8(0,127),b.setBigUint64(1,BigInt(y))}h.data&&typeof h.data!="string"&&(m[0]|=128),f.enqueue(m),f.enqueue(p)})}})}let c;function l(h){return h.reduce((f,p)=>f+p.length,0)}function d(h,f){if(h[0].length===f)return h.shift();const p=new Uint8Array(f);let y=0;for(let m=0;m<f;m++)p[m]=h[0][y++],y===h[0].length&&(h.shift(),y=0);return h.length&&y<h[0].length&&(h[0]=h[0].slice(y)),p}function u(h,f){c||(c=new TextDecoder);const p=[];let y=0,m=-1,b=!1;return new TransformStream({transform(_,C){for(p.push(_);;){if(y===0){if(l(p)<1)break;const T=d(p,1);b=(T[0]&128)===128,m=T[0]&127,m<126?y=3:m===126?y=1:y=2}else if(y===1){if(l(p)<2)break;const T=d(p,2);m=new DataView(T.buffer,T.byteOffset,T.length).getUint16(0),y=3}else if(y===2){if(l(p)<8)break;const T=d(p,8),M=new DataView(T.buffer,T.byteOffset,T.length),L=M.getUint32(0);if(L>Math.pow(2,21)-1){C.enqueue(s.ERROR_PACKET);break}m=L*Math.pow(2,32)+M.getUint32(4),y=3}else{if(l(p)<m)break;const T=d(p,m);C.enqueue((0,n.decodePacket)(b?T:c.decode(T),f)),y=0}if(m===0||m>h){C.enqueue(s.ERROR_PACKET);break}}}})}e.protocol=4})(Rs)),Rs}function _e(e){if(e)return i_(e)}function i_(e){for(var t in _e.prototype)e[t]=_e.prototype[t];return e}_e.prototype.on=_e.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};_e.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};_e.prototype.off=_e.prototype.removeListener=_e.prototype.removeAllListeners=_e.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,r=0;r<n.length;r++)if(s=n[r],s===t||s.fn===t){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+e],this};_e.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,r=n.length;s<r;++s)n[s].apply(this,t)}return this};_e.prototype.emitReserved=_e.prototype.emit;_e.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};_e.prototype.hasListeners=function(e){return!!this.listeners(e).length};const r_=Object.freeze(Object.defineProperty({__proto__:null,Emitter:_e},Symbol.toStringTag,{value:"Module"})),Ht=qv(r_);var ft={},Ve={},qr;function Wt(){if(qr)return Ve;qr=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.defaultBinaryType=Ve.globalThisShim=Ve.nextTick=void 0,Ve.createCookieJar=e,Ve.nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,s)=>s(n,0),Ve.globalThisShim=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ve.defaultBinaryType="arraybuffer";function e(){}return Ve}var Yr;function Ut(){if(Yr)return ft;Yr=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.pick=t,ft.installTimerFunctions=r,ft.byteLength=o,ft.randomString=c;const e=Wt();function t(l,...d){return d.reduce((u,h)=>(l.hasOwnProperty(h)&&(u[h]=l[h]),u),{})}const n=e.globalThisShim.setTimeout,s=e.globalThisShim.clearTimeout;function r(l,d){d.useNativeTimers?(l.setTimeoutFn=n.bind(e.globalThisShim),l.clearTimeoutFn=s.bind(e.globalThisShim)):(l.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),l.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}const i=1.33;function o(l){return typeof l=="string"?a(l):Math.ceil((l.byteLength||l.size)*i)}function a(l){let d=0,u=0;for(let h=0,f=l.length;h<f;h++)d=l.charCodeAt(h),d<128?u+=1:d<2048?u+=2:d<55296||d>=57344?u+=3:(h++,u+=4);return u}function c(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}return ft}var Xt={},Zr;function Wl(){if(Zr)return Xt;
2Zr=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.encode=e,Xt.decode=t;function e(n){let s="";for(let r in n)n.hasOwnProperty(r)&&(s.length&&(s+="&"),s+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return s}function t(n){let s={},r=n.split("&");for(let i=0,o=r.length;i<o;i++){let a=r[i].split("=");s[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return s}return Xt}var Dn={exports:{}},Ds,Kr;function o_(){if(Kr)return Ds;Kr=1;var e=1e3,t=e*60,n=t*60,s=n*24,r=s*7,i=s*365.25;Ds=function(d,u){u=u||{};var h=typeof d;if(h==="string"&&d.length>0)return o(d);if(h==="number"&&isFinite(d))return u.long?c(d):a(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function o(d){if(d=String(d),!(d.length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(u){var h=parseFloat(u[1]),f=(u[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*r;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function a(d){var u=Math.abs(d);return u>=s?Math.round(d/s)+"d":u>=n?Math.round(d/n)+"h":u>=t?Math.round(d/t)+"m":u>=e?Math.round(d/e)+"s":d+"ms"}function c(d){var u=Math.abs(d);return u>=s?l(d,u,s,"day"):u>=n?l(d,u,n,"hour"):u>=t?l(d,u,t,"minute"):u>=e?l(d,u,e,"second"):d+" ms"}function l(d,u,h,f){var p=u>=h*1.5;return Math.round(d/h)+" "+f+(p?"s":"")}return Ds}var Fs,Xr;function a_(){if(Xr)return Fs;Xr=1;function e(t){s.debug=s,s.default=s,s.coerce=l,s.disable=a,s.enable=i,s.enabled=c,s.humanize=o_(),s.destroy=d,Object.keys(t).forEach(u=>{s[u]=t[u]}),s.names=[],s.skips=[],s.formatters={};function n(u){let h=0;for(let f=0;f<u.length;f++)h=(h<<5)-h+u.charCodeAt(f),h|=0;return s.colors[Math.abs(h)%s.colors.length]}s.selectColor=n;function s(u){let h,f=null,p,y;function m(...b){if(!m.enabled)return;const _=m,C=Number(new Date),T=C-(h||C);_.diff=T,_.prev=h,_.curr=C,h=C,b[0]=s.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let M=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,($,U)=>{if($==="%%")return"%";M++;const I=s.formatters[U];if(typeof I=="function"){const N=b[M];$=I.call(_,N),b.splice(M,1),M--}return $}),s.formatArgs.call(_,b),(_.log||s.log).apply(_,b)}return m.namespace=u,m.useColors=s.useColors(),m.color=s.selectColor(u),m.extend=r,m.destroy=s.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==s.namespaces&&(p=s.namespaces,y=s.enabled(u)),y),set:b=>{f=b}}),typeof s.init=="function"&&s.init(m),m}function r(u,h){const f=s(this.namespace+(typeof h>"u"?":":h)+u);return f.log=this.log,f}function i(u){s.save(u),s.namespaces=u,s.names=[],s.skips=[];const h=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of h)f[0]==="-"?s.skips.push(f.slice(1)):s.names.push(f)}function o(u,h){let f=0,p=0,y=-1,m=0;for(;f<u.length;)if(p<h.length&&(h[p]===u[f]||h[p]==="*"))h[p]==="*"?(y=p,m=f,p++):(f++,p++);else if(y!==-1)p=y+1,m++,f=m;else return!1;for(;p<h.length&&h[p]==="*";)p++;return p===h.length}function a(){const u=[...s.names,...s.skips.map(h=>"-"+h)].join(",");return s.enable(""),u}function c(u){for(const h of s.skips)if(o(u,h))return!1;for(const h of s.names)if(o(u,h))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}return Fs=e,Fs}var Jr;function ze(){return Jr||(Jr=1,(function(e,t){var n={};t.formatArgs=r,t.save=i,t.load=o,t.useColors=s,t.storage=a(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
2CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;l.splice(1,0,d,"color: inherit");let u=0,h=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(h=u))}),l.splice(h,0,d)}t.log=console.debug||console.log||(()=>{});function i(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function o(){let l;try{l=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=n.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=a_()(t);const{formatters:c}=e.exports;c.j=function(l){try{return JSON.stringify(l)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(Dn,Dn.exports)),Dn.exports}var Qr;function ys(){if(Qr)return qe;Qr=1;var e=qe&&qe.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(qe,"__esModule",{value:!0}),qe.Transport=qe.TransportError=void 0;const t=Mn(),n=Ht,s=Ut(),r=Wl(),o=(0,e(ze()).default)("engine.io-client:transport");class a extends Error{constructor(d,u,h){super(d),this.description=u,this.context=h,this.type="TransportError"}}qe.TransportError=a;class c extends n.Emitter{constructor(d){super(),this.writable=!1,(0,s.installTimerFunctions)(this,d),this.opts=d,this.query=d.query,this.socket=d.socket,this.supportsBinary=!d.forceBase64}onError(d,u,h){return super.emitReserved("error",new a(d,u,h)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(d){this.readyState==="open"?this.write(d):o("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(d){const u=(0,t.decodePacket)(d,this.socket.binaryType);this.onPacket(u)}onPacket(d){super.emitReserved("packet",d)}onClose(d){this.readyState="closed",super.emitReserved("close",d)}pause(d){}createUri(d,u={}){return d+"://"+this._hostname()+this._port()+this.opts.path+this._query(u)}_hostname(){const d=this.opts.hostname;return d.indexOf(":")===-1?d:"["+d+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(d){const u=(0,r.encode)(d);return u.length?"?"+u:""}}return qe.Transport=c,qe}var eo;function Ul(){if(eo)return ht;eo=1;var e=ht&&ht.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ht,"__esModule",{value:!0}),ht.Polling=void 0;const t=ys(),n=Ut(),s=Mn(),i=(0,e(ze()).default)("engine.io-client:polling");class o extends t.Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(c){this.readyState="pausing";const l=()=>{i("paused"),this.readyState="paused",c()};if(this._polling||!this.writable){let d=0;this._polling&&(i("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){i("pre-pause polling complete"),--d||l()})),this.writable||(i("we are currently writing - waiting to pause"),d++,this.once("drain",function(){i("pre-pause writing complete"),--d||l()}))}else l()}_poll(){i("polling"),this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(c){i("polling got data %s",c);const l=d=>{if(this.readyState==="opening"&&d.type==="open"&&this.onOpen(),d.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(d)};
2(0,s.decodePayload)(c,this.socket.binaryType).forEach(l),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this._poll():i('ignoring poll - transport state "%s"',this.readyState))}doClose(){const c=()=>{i("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(i("transport open - closing"),c()):(i("transport not open - deferring close"),this.once("open",c))}write(c){this.writable=!1,(0,s.encodePayload)(c,l=>{this.doWrite(l,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const c=this.opts.secure?"https":"http",l=this.query||{};return this.opts.timestampRequests!==!1&&(l[this.opts.timestampParam]=(0,n.randomString)()),!this.supportsBinary&&!l.sid&&(l.b64=1),this.createUri(c,l)}}return ht.Polling=o,ht}var Jt={},to;function l_(){if(to)return Jt;to=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Jt.hasCORS=e,Jt}var no;function Li(){if(no)return Be;no=1;var e=Be&&Be.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(Be,"__esModule",{value:!0}),Be.XHR=Be.Request=Be.BaseXHR=void 0;const t=Ul(),n=Ht,s=Ut(),r=Wt(),i=l_(),a=(0,e(ze()).default)("engine.io-client:polling");function c(){}class l extends t.Polling{constructor(m){if(super(m),typeof location<"u"){const b=location.protocol==="https:";let _=location.port;_||(_=b?"443":"80"),this.xd=typeof location<"u"&&m.hostname!==location.hostname||_!==m.port}}doWrite(m,b){const _=this.request({method:"POST",data:m});_.on("success",b),_.on("error",(C,T)=>{this.onError("xhr post error",C,T)})}doPoll(){a("xhr poll");const m=this.request();m.on("data",this.onData.bind(this)),m.on("error",(b,_)=>{this.onError("xhr poll error",b,_)}),this.pollXhr=m}}Be.BaseXHR=l;class d extends n.Emitter{constructor(m,b,_){super(),this.createRequest=m,(0,s.installTimerFunctions)(this,_),this._opts=_,this._method=_.method||"GET",this._uri=b,this._data=_.data!==void 0?_.data:null,this._create()}_create(){var m;const b=(0,s.pick)(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");b.xdomain=!!this._opts.xd;const _=this._xhr=this.createRequest(b);try{a("xhr open %s: %s",this._method,this._uri),_.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){_.setDisableHeaderCheck&&_.setDisableHeaderCheck(!0);for(let C in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(C)&&_.setRequestHeader(C,this._opts.extraHeaders[C])}}catch{}if(this._method==="POST")try{_.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{_.setRequestHeader("Accept","*/*")}catch{}(m=this._opts.cookieJar)===null||m===void 0||m.addCookies(_),"withCredentials"in _&&(_.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(_.timeout=this._opts.requestTimeout),_.onreadystatechange=()=>{var C;_.readyState===3&&((C=this._opts.cookieJar)===null||C===void 0||C.parseCookies(_.getResponseHeader("set-cookie"))),_.readyState===4&&(_.status===200||_.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof _.status=="number"?_.status:0)},0))},a("xhr data %s",this._data),_.send(this._data)}catch(C){this.setTimeoutFn(()=>{this._onError(C)},0);return}typeof document<"u"&&(this._index=d.requestsCount++,d.requests[this._index]=this)}_onError(m){this.emitReserved("error",m,this._xhr),this._cleanup(!0)}_cleanup(m){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=c,m)try{this._xhr.abort()}catch{}typeof document<"u"&&delete d.requests[this._index],this._xhr=null}}_onLoad(){const m=this._xhr.responseText;m!==null&&(this.emitReserved("data",m),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Be.Request=d,d.requestsCount=0,d.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",u);else if(typeof addEventListener=="function"){const y="onpagehide"in r.globalThisShim?"pagehide":"unload";addEventListener(y,u,!1)}}function u(){for(let y in d.requests)d.requests.hasOwnProperty(y)&&d.requests[y].abort()}const h=(function(){const y=p({xdomain:!1});return y&&y.responseType!==null})();class f extends l{constructor(m){super(m);const b=m&&m.forceBase64;this.supportsBinary=h&&!b}request(m={}){return Object.assign(m,{xd:this.xd},this.opts),new d(p,this.uri(),m)}}Be.XHR=f;function p(y){const m=y.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!m||i.hasCORS))return new XMLHttpRequest}catch{}if(!m)try{return new r.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}return Be}var Ze={},so;function Ii(){if(so)return Ze;so=1;
2var e=Ze&&Ze.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.WS=Ze.BaseWS=void 0;const t=ys(),n=Ut(),s=Mn(),r=Wt(),o=(0,e(ze()).default)("engine.io-client:websocket"),a=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class c extends t.Transport{get name(){return"websocket"}doOpen(){const h=this.uri(),f=this.opts.protocols,p=a?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(p.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(h,f,p)}catch(y){return this.emitReserved("error",y)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let f=0;f<h.length;f++){const p=h[f],y=f===h.length-1;(0,s.encodePacket)(p,this.supportsBinary,m=>{try{this.doWrite(p,m)}catch{o("websocket closed before onclose event")}y&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",f=this.query||{};return this.opts.timestampRequests&&(f[this.opts.timestampParam]=(0,n.randomString)()),this.supportsBinary||(f.b64=1),this.createUri(h,f)}}Ze.BaseWS=c;const l=r.globalThisShim.WebSocket||r.globalThisShim.MozWebSocket;class d extends c{createSocket(h,f,p){return a?new l(h,f,p):f?new l(h,f):new l(h)}doWrite(h,f){this.ws.send(f)}}return Ze.WS=d,Ze}var gt={},io;function ql(){if(io)return gt;io=1;var e=gt&>.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(gt,"__esModule",{value:!0}),gt.WT=void 0;const t=ys(),n=Wt(),s=Mn(),i=(0,e(ze()).default)("engine.io-client:webtransport");class o extends t.Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(c){return this.emitReserved("error",c)}this._transport.closed.then(()=>{i("transport closed gracefully"),this.onClose()}).catch(c=>{i("transport closed due to %s",c),this.onError("webtransport error",c)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(c=>{const l=(0,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),d=c.readable.pipeThrough(l).getReader(),u=(0,s.createPacketEncoderStream)();u.readable.pipeTo(c.writable),this._writer=u.writable.getWriter();const h=()=>{d.read().then(({done:p,value:y})=>{if(p){i("session is closed");return}i("received chunk: %o",y),this.onPacket(y),h()}).catch(p=>{i("an error occurred while reading: %s",p)})};h();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(c){this.writable=!1;for(let l=0;l<c.length;l++){const d=c[l],u=l===c.length-1;this._writer.write(d).then(()=>{u&&(0,n.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var c;(c=this._transport)===null||c===void 0||c.close()}}return gt.WT=o,gt}var ro;function Yl(){if(ro)return Zt;ro=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.transports=void 0;const e=Li(),t=Ii(),n=ql();return Zt.transports={websocket:t.WS,webtransport:n.WT,polling:e.XHR},Zt}var Fn={},oo;function Zl(){if(oo)return Fn;oo=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.parse=n;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function n(i){if(i.length>8e3)throw"URI too long";const o=i,a=i.indexOf("["),c=i.indexOf("]");a!=-1&&c!=-1&&(i=i.substring(0,a)+i.substring(a,c).replace(/:/g,";")+i.substring(c,i.length));let l=e.exec(i||""),d={},u=14;for(;u--;)d[t[u]]=l[u]||"";return a!=-1&&c!=-1&&(d.source=o,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d.pathNames=s(d,d.path),d.queryKey=r(d,d.query),d}function s(i,o){const a=/\/{2,9}/g,c=o.replace(a,"/").split("/");return(o.slice(0,1)=="/"||o.length===0)&&c.splice(0,1),o.slice(-1)=="/"&&c.splice(c.length-1,1),c}function r(i,o){const a={};return o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,l,d){l&&(a[l]=d)}),a}return Fn}var ao;function lo(){if(ao)return Fe;ao=1;var e=Fe&&Fe.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};
2Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.Socket=Fe.SocketWithUpgrade=Fe.SocketWithoutUpgrade=void 0;const t=Yl(),n=Ut(),s=Wl(),r=Zl(),i=Ht,o=Mn(),a=Wt(),l=(0,e(ze()).default)("engine.io-client:socket"),d=typeof addEventListener=="function"&&typeof removeEventListener=="function",u=[];d&&addEventListener("offline",()=>{l("closing %d connection(s) because the network was lost",u.length),u.forEach(y=>y())},!1);class h extends i.Emitter{constructor(m,b){if(super(),this.binaryType=a.defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,m&&typeof m=="object"&&(b=m,m=null),m){const _=(0,r.parse)(m);b.hostname=_.host,b.secure=_.protocol==="https"||_.protocol==="wss",b.port=_.port,_.query&&(b.query=_.query)}else b.host&&(b.hostname=(0,r.parse)(b.host).host);(0,n.installTimerFunctions)(this,b),this.secure=b.secure!=null?b.secure:typeof location<"u"&&location.protocol==="https:",b.hostname&&!b.port&&(b.port=this.secure?"443":"80"),this.hostname=b.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=b.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},b.transports.forEach(_=>{const C=_.prototype.name;this.transports.push(C),this._transportsByName[C]=_}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},b),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,s.decode)(this.opts.query)),d&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(l("adding listener for the 'offline' event"),this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},u.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=(0,a.createCookieJar)()),this._open()}createTransport(m){l('creating transport "%s"',m);const b=Object.assign({},this.opts.query);b.EIO=o.protocol,b.transport=m,this.id&&(b.sid=this.id);const _=Object.assign({},this.opts,{query:b,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[m]);return l("options: %j",_),new this._transportsByName[m](_)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const m=this.opts.rememberUpgrade&&h.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const b=this.createTransport(m);b.open(),this.setTransport(b)}setTransport(m){l("setting transport %s",m.name),this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=m,m.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",b=>this._onClose("transport close",b))}onOpen(){l("socket open"),this.readyState="open",h.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(m){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(l('socket receive: type "%s", data "%s"',m.type,m.data),this.emitReserved("packet",m),this.emitReserved("heartbeat"),m.type){case"open":this.onHandshake(JSON.parse(m.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const b=new Error("server error");b.code=m.data,this._onError(b);break;case"message":this.emitReserved("data",m.data),this.emitReserved("message",m.data);break}else l('packet received with socket readyState "%s"',this.readyState)}onHandshake(m){this.emitReserved("handshake",m),this.id=m.sid,this.transport.query.sid=m.sid,this._pingInterval=m.pingInterval,this._pingTimeout=m.pingTimeout,this._maxPayload=m.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const m=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+m,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},m),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const m=this._getWritablePackets();l("flushing %d packets in socket",m.length),this.transport.send(m),this._prevBufferLen=m.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let b=1;for(let _=0;_<this.writeBuffer.length;_++){const C=this.writeBuffer[_].data;if(C&&(b+=(0,n.byteLength)(C)),_>0&&b>this._maxPayload)return l("only send %d out of %d packets",_,this.writeBuffer.length),this.writeBuffer.slice(0,_);b+=2}return l("payload size is %d (max: %d)",b,this._maxPayload),this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const m=Date.now()>this._pingTimeoutTime;return m&&(l("throttled timer detected, scheduling connection close"),this._pingTimeoutTime=0,(0,a.nextTick)(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),m}write(m,b,_){return this._sendPacket("message",m,b,_),this}send(m,b,_){return this._sendPacket("message",m,b,_),this}_sendPacket(m,b,_,C){if(typeof b=="function"&&(C=b,b=void 0),typeof _=="function"&&(C=_,_=null),this.readyState==="closing"||this.readyState==="closed")return;_=_||{},_.compress=_.compress!==!1;const T={type:m,data:b,options:_};this.emitReserved("packetCreate",T),this.writeBuffer.push(T),C&&this.once("flush",C),this.flush()}close(){const m=()=>{this._onClose("forced close"),l("socket closing - telling transport to close"),this.transport.close()},b=()=>{this.off("upgrade",b),this.off("upgradeError",b),m()},_=()=>{this.once("upgrade",b),this.once("upgradeError",b)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?_():m()}):this.upgrading?_():m()),this}_onError(m){if(l("socket error %j",m),h.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return l("trying next transport"),this.transports.shift(),this._open();this.emitReserved("error",m),this._onClose("transport error",m)}_onClose(m,b){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(l('socket close with reason: "%s"',m),this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),d&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const _=u.indexOf(this._offlineEventListener);_!==-1&&(l("removing listener for the 'offline' event"),u.splice(_,1))}this.readyState="closed",this.id=null,this.emitReserved("close",m,b),this.writeBuffer=[],this._prevBufferLen=0}}}Fe.SocketWithoutUpgrade=h,h.protocol=o.protocol;class f extends h{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade){l("starting upgrade probes");for(let m=0;m<this._upgrades.length;m++)this._probe(this._upgrades[m])}}_probe(m){l('probing transport "%s"',m);let b=this.createTransport(m),_=!1;h.priorWebsocketSuccess=!1;const C=()=>{_||(l('probe transport "%s" opened',m),b.send([{type:"ping",data:"probe"}]),b.once("packet",N=>{if(!_)if(N.type==="pong"&&N.data==="probe"){if(l('probe transport "%s" pong',m),this.upgrading=!0,this.emitReserved("upgrading",b),!b)return;h.priorWebsocketSuccess=b.name==="websocket",l('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{_||this.readyState!=="closed"&&(l("changing transport and sending upgrade packet"),I(),this.setTransport(b),b.send([{type:"upgrade"}
2]),this.emitReserved("upgrade",b),b=null,this.upgrading=!1,this.flush())})}else{l('probe transport "%s" failed',m);const F=new Error("probe error");F.transport=b.name,this.emitReserved("upgradeError",F)}}))};function T(){_||(_=!0,I(),b.close(),b=null)}const M=N=>{const F=new Error("probe error: "+N);F.transport=b.name,T(),l('probe transport "%s" failed because of error: %s',m,N),this.emitReserved("upgradeError",F)};function L(){M("transport closed")}function $(){M("socket closed")}function U(N){b&&N.name!==b.name&&(l('"%s" works - aborting "%s"',N.name,b.name),T())}const I=()=>{b.removeListener("open",C),b.removeListener("error",M),b.removeListener("close",L),this.off("close",$),this.off("upgrading",U)};b.once("open",C),b.once("error",M),b.once("close",L),this.once("close",$),this.once("upgrading",U),this._upgrades.indexOf("webtransport")!==-1&&m!=="webtransport"?this.setTimeoutFn(()=>{_||b.open()},200):b.open()}onHandshake(m){this._upgrades=this._filterUpgrades(m.upgrades),super.onHandshake(m)}_filterUpgrades(m){const b=[];for(let _=0;_<m.length;_++)~this.transports.indexOf(m[_])&&b.push(m[_]);return b}}Fe.SocketWithUpgrade=f;class p extends f{constructor(m,b={}){const _=typeof m=="object"?m:b;(!_.transports||_.transports&&typeof _.transports[0]=="string")&&(_.transports=(_.transports||["polling","websocket","webtransport"]).map(C=>t.transports[C]).filter(C=>!!C)),super(m,_)}}return Fe.Socket=p,Fe}var Qt={},co;function c_(){if(co)return Qt;co=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.Fetch=void 0;const e=Ul();class t extends e.Polling{doPoll(){this._fetch().then(s=>{if(!s.ok)return this.onError("fetch read error",s.status,s);s.text().then(r=>this.onData(r))}).catch(s=>{this.onError("fetch read error",s)})}doWrite(s,r){this._fetch(s).then(i=>{if(!i.ok)return this.onError("fetch write error",i.status,i);r()}).catch(i=>{this.onError("fetch write error",i)})}_fetch(s){var r;const i=s!==void 0,o=new Headers(this.opts.extraHeaders);return i&&o.set("content-type","text/plain;charset=UTF-8"),(r=this.socket._cookieJar)===null||r===void 0||r.appendCookies(o),fetch(this.uri(),{method:i?"POST":"GET",body:i?s:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(a=>{var c;return(c=this.socket._cookieJar)===null||c===void 0||c.parseCookies(a.headers.getSetCookie()),a})}}return Qt.Fetch=t,Qt}var uo;function cr(){return uo||(uo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WebTransport=e.WebSocket=e.NodeWebSocket=e.XHR=e.NodeXHR=e.Fetch=e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.TransportError=e.Transport=e.protocol=e.SocketWithUpgrade=e.SocketWithoutUpgrade=e.Socket=void 0;const t=lo();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}});var n=lo();Object.defineProperty(e,"SocketWithoutUpgrade",{enumerable:!0,get:function(){return n.SocketWithoutUpgrade}}),Object.defineProperty(e,"SocketWithUpgrade",{enumerable:!0,get:function(){return n.SocketWithUpgrade}}),e.protocol=t.Socket.protocol;var s=ys();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return s.Transport}}),Object.defineProperty(e,"TransportError",{enumerable:!0,get:function(){return s.TransportError}});var r=Yl();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var i=Ut();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return i.installTimerFunctions}});var o=Zl();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.parse}});var a=Wt();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}});var c=c_();Object.defineProperty(e,"Fetch",{enumerable:!0,get:function(){return c.Fetch}});var l=Li();Object.defineProperty(e,"NodeXHR",{enumerable:!0,get:function(){return l.XHR}});var d=Li();Object.defineProperty(e,"XHR",{enumerable:!0,get:function(){return d.XHR}});var u=Ii();Object.defineProperty(e,"NodeWebSocket",{enumerable:!0,get:function(){return u.WS}});var h=Ii();Object.defineProperty(e,"WebSocket",{enumerable:!0,get:function(){return h.WS}});var f=ql();Object.defineProperty(e,"WebTransport",{enumerable:!0,get:function(){return f.WT}})})(Is)),Is}var ho;function d_(){if(ho)return Ot;ho=1;var e=Ot&&Ot.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};
2Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.url=r;const t=cr(),s=(0,e(ze()).default)("socket.io-client:url");function r(i,o="",a){let c=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(s("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),s("parse %s",i),c=(0,t.parse)(i)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const d=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+d+":"+c.port+o,c.href=c.protocol+"://"+d+(a&&a.port===c.port?"":":"+c.port),c}return Ot}var ke={},mt={},Ae={},en={},tn={},po;function Kl(){if(po)return tn;po=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.isBinary=i,tn.hasBinary=o;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,n=Object.prototype.toString,s=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",r=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";function i(a){return e&&(a instanceof ArrayBuffer||t(a))||s&&a instanceof Blob||r&&a instanceof File}function o(a,c){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let l=0,d=a.length;l<d;l++)if(o(a[l]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return o(a.toJSON(),!0);for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)&&o(a[l]))return!0;return!1}return tn}var fo;function u_(){if(fo)return en;fo=1,Object.defineProperty(en,"__esModule",{value:!0}),en.deconstructPacket=t,en.reconstructPacket=s;const e=Kl();function t(i){const o=[],a=i.data,c=i;return c.data=n(a,o),c.attachments=o.length,{packet:c,buffers:o}}function n(i,o){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:o.length};return o.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let c=0;c<i.length;c++)a[c]=n(i[c],o);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[c]=n(i[c],o));return a}return i}function s(i,o){return i.data=r(i.data,o),delete i.attachments,i}function r(i,o){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<o.length)return o[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=r(i[a],o);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=r(i[a],o));return i}return en}var go;function dr(){if(go)return Ae;go=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.Decoder=Ae.Encoder=Ae.PacketType=Ae.protocol=void 0,Ae.isPacketValid=y;const e=Ht,t=u_(),n=Kl(),r=(0,ze().default)("socket.io-parser"),i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];Ae.protocol=5;var o;(function(m){m[m.CONNECT=0]="CONNECT",m[m.DISCONNECT=1]="DISCONNECT",m[m.EVENT=2]="EVENT",m[m.ACK=3]="ACK",m[m.CONNECT_ERROR=4]="CONNECT_ERROR",m[m.BINARY_EVENT=5]="BINARY_EVENT",m[m.BINARY_ACK=6]="BINARY_ACK"})(o||(Ae.PacketType=o={}));class a{constructor(b){this.replacer=b}encode(b){return r("encoding packet %j",b),(b.type===o.EVENT||b.type===o.ACK)&&(0,n.hasBinary)(b)?this.encodeAsBinary({type:b.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:b.nsp,data:b.data,id:b.id}):[this.encodeAsString(b)]}encodeAsString(b){let _=""+b.type;return(b.type===o.BINARY_EVENT||b.type===o.BINARY_ACK)&&(_+=b.attachments+"-"),b.nsp&&b.nsp!=="/"&&(_+=b.nsp+","),b.id!=null&&(_+=b.id),b.data!=null&&(_+=JSON.stringify(b.data,this.replacer)),r("encoded %j as %s",b,_),_}encodeAsBinary(b){const _=(0,t.deconstructPacket)(b),C=this.encodeAsString(_.packet),T=_.buffers;return T.unshift(C),T}}Ae.Encoder=a;class c extends e.Emitter{constructor(b){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof b=="function"?{reviver:b}:b)}add(b){let _;if(typeof b=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");_=this.decodeString(b);const C=_.type===o.BINARY_EVENT;C||_.type===o.BINARY_ACK?(_.type=C?o.EVENT:o.ACK,this.reconstructor=new l(_),_.attachments===0&&super.emitReserved("decoded",_)):super.emitReserved("decoded",_)}else if((0,n.isBinary)(b)||b.base64)if(this.reconstructor)_=this.reconstructor.takeBinaryData(b),_&&(this.reconstructor=null,super.emitReserved("decoded",_));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+b)}decodeString(b){let _=0;const C={type:Number(b.charAt(0))};if(o[C.type]===void 0)throw new Error("unknown packet type "+C.type);if(C.type===o.BINARY_EVENT||C.type===o.BINARY_ACK){const M=_+1;for(;b.charAt(++_)!=="-"&&_!=b.length;);const L=b.substring(M,_);if(L!=Number(L)||b.charAt(_)!=="-")throw new Error("Illegal attachments");const $=Number(L);if(!u($)||$<0)throw new Error("Illegal attachments");if($>this.opts.maxAttachments)throw new Error("too many attachments");C.attachments=$}if(b.charAt(_+1)==="/"){const M=_+1;for(;++_&&!(b.charAt(_)===","||_===b.length););C.nsp=b.substring(M,_)}else C.nsp="/";const T=b.charAt(_+1);if(T!==""&&Number(T)==T){const M=_+1;for(;++_;){const L=b.charAt(_);if(L==null||Number(L)!=L){--_;break}if(_===b.length)break}C.id=Number(b.substring(M,_+1))}if(b.charAt(++_)){const M=this.tryParse(b.substr(_));if(c.isPayloadValid(C.type,M))C.data=M;else throw new Error("invalid payload")}return r("decoded %s as %j",b,C),C}tryParse(b){try{return JSON.parse(b,this.opts.reviver)}catch{return!1}}static isPayloadValid(b,_){switch(b){case o.CONNECT:return f(_);case o.DISCONNECT:return _===void 0;case o.CONNECT_ERROR:return typeof _=="string"||f(_);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(_)&&(typeof _[0]=="number"||typeof _[0]=="string"&&i.indexOf(_[0])===-1);case o.ACK:case o.BINARY_ACK:return Array.isArray(_)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}Ae.Decoder=c;class l{constructor(b){this.packet=b,this.buffers=[],this.reconPack=b}takeBinaryData(b){if(this.buffers.push(b),this.buffers.length===this.reconPack.attachments){const _=(0,t.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),_}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function d(m){return typeof m=="string"}const u=Number.isInteger||function(m){return typeof m=="number"&&isFinite(m)&&Math.floor(m)===m};function h(m){return m===void 0||u(m)}function f(m){return Object.prototype.toString.call(m)==="[object Object]"}function p(m,b){switch(m){case o.CONNECT:return b===void 0||f(b);case o.DISCONNECT:return b===void 0;case o.EVENT:return Array.isArray(b)&&(typeof b[0]=="number"||typeof b[0]=="string"&&i.indexOf(b[0])===-1);case o.ACK:return Array.isArray(b);case o.CONNECT_ERROR:return typeof b=="string"||f(b);default:return!1}}function y(m){return d(m.nsp)&&h(m.id)&&p(m.type,m.data)}return Ae}var Bn={},mo;
2function Xl(){if(mo)return Bn;mo=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.on=e;function e(t,n,s){return t.on(n,s),function(){t.off(n,s)}}return Bn}var bo;function Jl(){if(bo)return mt;bo=1;var e=mt&&mt.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(mt,"__esModule",{value:!0}),mt.Socket=void 0;const t=dr(),n=Xl(),s=Ht,i=(0,e(ze()).default)("socket.io-client:socket"),o=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends s.Emitter{constructor(l,d,u){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=d,u&&u.auth&&(this.auth=u.auth),this._opts=Object.assign({},u),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[(0,n.on)(l,"open",this.onopen.bind(this)),(0,n.on)(l,"packet",this.onpacket.bind(this)),(0,n.on)(l,"error",this.onerror.bind(this)),(0,n.on)(l,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...d){var u,h,f;if(o.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(d.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(d),this;const p={type:t.PacketType.EVENT,data:d};if(p.options={},p.options.compress=this.flags.compress!==!1,typeof d[d.length-1]=="function"){const _=this.ids++;i("emitting packet with ack id %d",_);const C=d.pop();this._registerAckCallback(_,C),p.id=_}const y=(h=(u=this.io.engine)===null||u===void 0?void 0:u.transport)===null||h===void 0?void 0:h.writable,m=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!y?i("discard packet as the transport is not currently writable"):m?(this.notifyOutgoingListeners(p),this.packet(p)):this.sendBuffer.push(p),this.flags={},this}_registerAckCallback(l,d){var u;const h=(u=this.flags.timeout)!==null&&u!==void 0?u:this._opts.ackTimeout;if(h===void 0){this.acks[l]=d;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let y=0;y<this.sendBuffer.length;y++)this.sendBuffer[y].id===l&&(i("removing packet with ack id %d from the buffer",l),this.sendBuffer.splice(y,1));i("event with ack id %d has timed out after %d ms",l,h),d.call(this,new Error("operation has timed out"))},h),p=(...y)=>{this.io.clearTimeoutFn(f),d.apply(this,y)};p.withError=!0,this.acks[l]=p}emitWithAck(l,...d){return new Promise((u,h)=>{const f=(p,y)=>p?h(p):u(y);f.withError=!0,d.push(f),this.emit(l,...d)})}_addToQueue(l){let d;typeof l[l.length-1]=="function"&&(d=l.pop());const u={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((h,...f)=>u!==this._queue[0]?i("packet [%d] already acknowledged",u.id):(h!==null?u.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",u.id,u.tryCount),this._queue.shift(),d&&d(h)):(i("packet [%d] was successfully sent",u.id),this._queue.shift(),d&&d(null,...f)),u.pending=!1,this._drainQueue())),this._queue.push(u),this._drainQueue()}_drainQueue(l=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const d=this._queue[0];if(d.pending&&!l){i("packet [%d] has already been sent and is waiting for an ack",d.id);return}d.pending=!0,d.tryCount++,i("sending packet [%d] (try n°%d)",d.id,d.tryCount),this.flags=d.flags,this.emit.apply(this,d.args)}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,d){i("close (%s)",l),this.connected=!1,delete this.id,this.emitReserved("disconnect",l,d),this._clearAcks()}
2_clearAcks(){Object.keys(this.acks).forEach(l=>{if(!this.sendBuffer.some(u=>String(u.id)===l)){const u=this.acks[l];delete this.acks[l],u.withError&&u.call(this,new Error("socket has been disconnected"))}})}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case t.PacketType.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(l);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(l);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const u=new Error(l.data.message);u.data=l.data.data,this.emitReserved("connect_error",u);break}}onevent(l){const d=l.data||[];i("emitting event %j",d),l.id!=null&&(i("attaching ack callback to event"),d.push(this.ack(l.id))),this.connected?this.emitEvent(d):this.receiveBuffer.push(Object.freeze(d))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const d=this._anyListeners.slice();for(const u of d)u.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const d=this;let u=!1;return function(...h){u||(u=!0,i("sending ack %j",h),d.packet({type:t.PacketType.ACK,id:l,data:h}))}}onack(l){const d=this.acks[l.id];if(typeof d!="function"){i("bad ack %s",l.id);return}delete this.acks[l.id],i("calling ack %s with %j",l.id,l.data),d.withError&&l.data.unshift(null),d.apply(this,l.data)}onconnect(l,d){i("socket connected with id %s",l),this.id=l,this.recovered=d&&this._pid===d,this._pid=d,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const d=this._anyListeners;for(let u=0;u<d.length;u++)if(l===d[u])return d.splice(u,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const d=this._anyOutgoingListeners;for(let u=0;u<d.length;u++)if(l===d[u])return d.splice(u,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const d=this._anyOutgoingListeners.slice();for(const u of d)u.apply(this,l.data)}}}return mt.Socket=a,mt}var En={},yo;function h_(){if(yo)return En;yo=1,Object.defineProperty(En,"__esModule",{value:!0}),En.Backoff=e;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),s=Math.floor(n*this.jitter*t);t=(Math.floor(n*10)&1)==0?t-s:t+s}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},En}var vo;function p_(){if(vo)return ke;vo=1;var e=ke&&ke.__createBinding||(Object.create?(function(f,p,y,m){m===void 0&&(m=y);var b=Object.getOwnPropertyDescriptor(p,y);(!b||("get"in b?!p.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return p[y]}}),Object.defineProperty(f,m,b)}):(function(f,p,y,m){m===void 0&&(m=y),f[m]=p[y]})),t=ke&&ke.__setModuleDefault||(Object.create?(function(f,p){Object.defineProperty(f,"default",{enumerable:!0,value:p})}):function(f,p){f.default=p}),n=ke&&ke.__importStar||function(f){if(f&&f.__esModule)return f;var p={};if(f!=null)for(var y in f)y!=="default"&&Object.prototype.hasOwnProperty.call(f,y)&&e(p,f,y);return t(p,f),p},s=ke&&ke.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};
2Object.defineProperty(ke,"__esModule",{value:!0}),ke.Manager=void 0;const r=cr(),i=Jl(),o=n(dr()),a=Xl(),c=h_(),l=Ht,u=(0,s(ze()).default)("socket.io-client:manager");class h extends l.Emitter{constructor(p,y){var m;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(y=p,p=void 0),y=y||{},y.path=y.path||"/socket.io",this.opts=y,(0,r.installTimerFunctions)(this,y),this.reconnection(y.reconnection!==!1),this.reconnectionAttempts(y.reconnectionAttempts||1/0),this.reconnectionDelay(y.reconnectionDelay||1e3),this.reconnectionDelayMax(y.reconnectionDelayMax||5e3),this.randomizationFactor((m=y.randomizationFactor)!==null&&m!==void 0?m:.5),this.backoff=new c.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(y.timeout==null?2e4:y.timeout),this._readyState="closed",this.uri=p;const b=y.parser||o;this.encoder=new b.Encoder,this.decoder=new b.Decoder,this._autoConnect=y.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,p||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var y;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(y=this.backoff)===null||y===void 0||y.setMin(p),this)}randomizationFactor(p){var y;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(y=this.backoff)===null||y===void 0||y.setJitter(p),this)}reconnectionDelayMax(p){var y;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(y=this.backoff)===null||y===void 0||y.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(u("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=new r.Socket(this.uri,this.opts);const y=this.engine,m=this;this._readyState="opening",this.skipReconnect=!1;const b=(0,a.on)(y,"open",function(){m.onopen(),p&&p()}),_=T=>{u("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",T),p?p(T):this.maybeReconnectOnOpen()},C=(0,a.on)(y,"error",_);if(this._timeout!==!1){const T=this._timeout;u("connect attempt will timeout after %d",T);const M=this.setTimeoutFn(()=>{u("connect attempt timed out after %d",T),b(),_(new Error("timeout")),y.close()},T);this.opts.autoUnref&&M.unref(),this.subs.push(()=>{this.clearTimeoutFn(M)})}return this.subs.push(b),this.subs.push(C),this}connect(p){return this.open(p)}onopen(){u("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push((0,a.on)(p,"ping",this.onping.bind(this)),(0,a.on)(p,"data",this.ondata.bind(this)),(0,a.on)(p,"error",this.onerror.bind(this)),(0,a.on)(p,"close",this.onclose.bind(this)),(0,a.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(y){this.onclose("parse error",y)}}ondecoded(p){(0,r.nextTick)(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){u("error",p),this.emitReserved("error",p)}socket(p,y){let m=this.nsps[p];return m?this._autoConnect&&!m.active&&m.connect():(m=new i.Socket(this,p,y),this.nsps[p]=m),m}_destroy(p){const y=Object.keys(this.nsps);for(const m of y)if(this.nsps[m].active){u("socket %s is still active, skipping close",m);return}this._close()}_packet(p){u("writing packet %j",p);const y=this.encoder.encode(p);for(let m=0;m<y.length;m++)this.engine.write(y[m],p.options)}cleanup(){u("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){u("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(p,y){var m;u("closed due to %s",p),this.cleanup(),(m=this.engine)===null||m===void 0||m.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,y),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const y=this.backoff.duration();u("will wait %dms before reconnect attempt",y),this._reconnecting=!0;const m=this.setTimeoutFn(()=>{p.skipReconnect||(u("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(b=>{b?(u("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",b)):(u("reconnect success"),p.onreconnect())}
2))},y);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return ke.Manager=h,ke}var _o=dn.exports,xo;function f_(){return xo||(xo=1,(function(e,t){var n=_o&&_o.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.Socket=t.Manager=t.protocol=void 0,t.io=l,t.connect=l,t.default=l;const s=d_(),r=p_();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const i=Jl();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=(0,n(ze()).default)("socket.io-client"),c={};function l(h,f){typeof h=="object"&&(f=h,h=void 0),f=f||{};const p=(0,s.url)(h,f.path||"/socket.io"),y=p.source,m=p.id,b=p.path,_=c[m]&&b in c[m].nsps,C=f.forceNew||f["force new connection"]||f.multiplex===!1||_;let T;return C?(a("ignoring socket cache for %s",y),T=new r.Manager(y,f)):(c[m]||(a("new io instance for %s",y),c[m]=new r.Manager(y,f)),T=c[m]),p.query&&!f.query&&(f.query=p.queryKey),T.socket(p.path,f)}Object.assign(l,{Manager:r.Manager,Socket:i.Socket,io:l,connect:l});var d=dr();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return d.protocol}});var u=cr();Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return u.Fetch}}),Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return u.NodeXHR}}),Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return u.XHR}}),Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return u.NodeWebSocket}}),Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return u.WebSocket}}),Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return u.WebTransport}}),e.exports=l})(dn,dn.exports)),dn.exports}var g_=f_();function Ql(){if(typeof window<"u"){const e=window.widgetRuntimeEnv?.LIVE_DEALER_SERVER||window.process?.env?.LIVE_DEALER_SERVER;if(e)return e}return"https://livedealer.casino.ca/"}function m_(e){if(!e)return"";if(/^https?:\/\//i.test(e))return e;const t=Ql().replace(/\/$/,""),n=e.startsWith("/")?e:`/${e}`;return`${t}${n}`}function b_(e){return e&&String(e).match(/\/video\/(?:v|stream)\/([^/?#.]+?)(?:\.m3u8)?(?:[/?#]|$)/)?.[1]||null}async function y_(e,t=null){const n=b_(e);if(!n)return!1;const s=`/api/ssr/data/live-dealer-stream-status?streamId=${encodeURIComponent(n)}`;try{if(t?.get){const{data:o}=await t.get(s);return o?.data?.available===!0}const r=await fetch(s);return r.ok?(await r.json())?.data?.available===!0:!1}catch{return!1}}class v_{socket;setupSocketConnection(t){const n={transports:["websocket"]};t?n.auth={token:t}:n.transports.push("polling"),this.socket=g_.io(Ql(),n)}subscribeToMessages(t){return this.socket&&this.socket.on("game_event",n=>t(n)),!0}sendMessage(t,n){this.socket&&this.socket.emit("message",{gameId:t},n)}disconnect(){this.socket&&this.socket.disconnect()}}const $n=new v_,__={name:"IconVisibility",components:{VImage:W}};function x_(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/visibility.svg",alt:"Visibility icon",width:"20",height:"21"})}const w_=O(__,[["render",x_]]),k_={name:"LiveDealerGames",components:{VImage:W,CustomSlider:Gt,IconVisibility:w_,Link:Vt},props:{partner:{type:Object,default:()=>{}}},data(){return{LiveDealerTitle:this.$t("advancedToplist.liveDealerTitle"),availableAt:this.$t("advancedToplist.availableAt"),live:this.$t("advancedToplist.live"),LiveDealerToken:null,loading:!0,liveDealerGames:[],arcadeLiveDealerGames:[],liveDealerHub:ir.liveDealer}},computed:{...K(ge,["isDesktop"]),...K(Ue,["liveDealerTokenData"]),partnerName(){return fe(this.partner)},partnerLogo(){const e=this.partner.phoenix?.attributes?.faviconLight||"";return e?`https://images.casino.ca/${e}`:""},providerIds(){return(this.partner?.phoenix?.attributes?.softwareProvider||[]).map(t=>Number(t?.id)).filter(Boolean)},gamesIds(){return this.liveDealerGamesData.map(e=>e.gameId)},liveDealerGamesItems(){const e=[];
2return this.liveDealerGames.length&&this.liveDealerGames.forEach(t=>{e.find(s=>s.data.id===t.data.id)||e.push(t)}),e},shouldRenderComponent(){return ae?this.loading||this.liveDealerGamesItems.length>0:!1},liveDealerGamesData(){const e=this.partner?.supplement?.liveDealerGames||[];if(e.length){const n=new Set(e.map(s=>Number(s?.gameId||s)).filter(Boolean));return this.arcadeLiveDealerGames.filter(s=>n.has(s.id)).map(s=>({gameId:s.id,name:s.name,providerId:s.providerId}))}let t=this.arcadeLiveDealerGames;if(this.providerIds.length){const n=new Set(this.providerIds);t=t.filter(s=>n.has(s.providerId))}return t.map(n=>({gameId:n.id,name:n.name,providerId:n.providerId}))}},watch:{partner:{immediate:!0,deep:!0,async handler(e){ae&&e&&Object.keys(e).length&&await this.bootstrapLiveDealerGames()}}},methods:{async bootstrapLiveDealerGames(){if(ae){if(this.loading=!0,this.liveDealerGames=[],this.arcadeLiveDealerGames=[],$n.disconnect(),await this.fetchLiveDealerGamesFromArcade(),!this.gamesIds.length){this.loading=!1;return}await this.initSocket()}},async fetchLiveDealerGamesFromArcade(){if(!ae)return;const e=100,t=Array.isArray(this.providerIds)?this.providerIds.filter(Boolean):[],n=Array.isArray(this.gamesIds)?this.gamesIds.filter(Boolean):[],s={pageSize:e,pageNumber:1,gameTypes:["LIVE_DEALER"],sortingFields:[{search_volume:"DESC"}]};t.length&&(s.providerIds=t);const r=new Map,i=c=>{(c||[]).forEach(l=>{l?.id&&!r.has(l.id)&&r.set(l.id,l)})};if(n.length){for(let c=0;c<n.length;c+=e){const l=n.slice(c,c+e),d=await this.queryGamesByCondition({options:{...s,ids:l},axios:this.$axios||null});i(d?.results)}this.arcadeLiveDealerGames=Array.from(r.values());return}const o=await this.queryGamesByCondition({options:s,axios:this.$axios||null});i(o?.results);const a=Number(o?.pagesCount||1);for(let c=2;c<=a;c+=1){const l=await this.queryGamesByCondition({options:{...s,pageNumber:c},axios:this.$axios||null});i(l?.results)}this.arcadeLiveDealerGames=Array.from(r.values())},async initSocket(){if(await this.authorizeLiveDealer(),!this.LiveDealerToken){this.loading=!1;return}$n.setupSocketConnection(this.LiveDealerToken);const e=this.liveDealerGamesData,t=1e4,n=s=>new Promise(r=>{let i=!1;const o=()=>{i||(i=!0,r())},a=setTimeout(o,t);$n.sendMessage(s.gameId,async c=>{if(clearTimeout(a),i)return;const{data:l,streamUrl:d}=c;d&&await y_(d,this.$axios||null)&&this.liveDealerGames.push({data:l,streamUrl:m_(d),viewers:Math.round(Math.random()*30+1)}),o()})});await Promise.all(e.map(n)),this.loading=!1,$n.disconnect()},async authorizeLiveDealer(){try{await this.fetchLiveDealerToken({axios:this.$axios||null});const e=this.liveDealerTokenData;this.LiveDealerToken=e&&typeof e.token=="string"?e.token:null}catch(e){console.error("[LiveDealerGames] Failed to fetch live dealer token:",e.message||e),this.LiveDealerToken=null}},...ce(Ue,["queryGamesByCondition","fetchLiveDealerToken"])}},C_={key:0,class:"flex flex-col rounded-ui-md color-stroke-elevation border-sm background-elevation-2 gap-xs p-md lg:p-xl"},S_={class:"title-xs leading-150 text-foreground-1"},T_={class:"flex flex-col gap-xs lg:gap-md"},P_={class:"aspect-16-9 mb-[-8px] relative overflow-hidden"},A_=["id","src"],O_={key:1,class:"top-[8px] left-[8px] lg:top-[12px] lg:left-[12px] z-20 absolute flex gap-2xs lg:gap-2xs"},M_={class:"px-2xs py-0 lg:xs lg:py-2xs rounded-sm items-center leading-120 lg:leading-150 font-bold text-2xs lg:text-sm flex uppercase badge-reverted-error"},L_={class:"px-2xs py-0 lg:px-xs lg:py-2xs rounded-sm items-center leading-120 lg:leading-150 font-bold body-md flex gap-2xs lg:gap-2xs background-glass text-foreground-1"},I_={class:"flex flex-col gap-2xs"},R_={class:"title-xs"},D_={class:"flex gap-2xs"},F_={class:"h-[20px] w-[20px] lg:w-[24px] lg:h-[24px]"},B_={class:"body-md leading-150 hover:opacity-.8"},E_={class:"flex flex-col gap-xs lg:gap-md"},$_={class:"flex flex-col gap-2xs"},N_={class:"flex gap-2xs"},z_={class:"body-md hover:opacity-.8 leading-150"};function j_(e,t,n,s,r,i){const o=w("Link"),a=w("IconVisibility"),c=w("VImage"),l=w("CustomSlider");return i.shouldRenderComponent?(g(),x("div",C_,[v("p",S_,k(r.LiveDealerTitle),1),P(l,{"slider-items-classe
2s":"gap-xs lg:gap-lg","padding-control-buttons":"no-padding z-40","loading-items":r.loading},{default:B(()=>[(g(!0),x(H,null,Y(i.liveDealerGamesItems,(d,u)=>(g(),x("div",{key:`liveDealerWrapper-${u}`,class:"w-[204px] md:w-[428px] xl:w-[516px] shrink-0"},[v("div",T_,[v("div",P_,[t[0]||(t[0]=v("div",{class:"absolute top-[0px] bottom-2 h-full w-full background-elevation-3 rounded-md"},null,-1)),P(o,{target:"_self",tag:"a",variant:"block",size:"none",class:"absolute top-[0px] w-full bottom-[30px] z-50",href:r.liveDealerHub,"data-aa-tracker":`Link to ${d.data.name} from advancedtoplist page`},null,8,["href","data-aa-tracker"]),d.streamUrl?(g(),x("iframe",{key:0,id:`liveDealerIframe-${u}`,ref_for:!0,ref:`liveDealerIframe-${u}`,src:d.streamUrl,class:"scrollbar-hide h-full w-full z-10 relative top-[0px] bottom-2 rounded-md",scrolling:"no"},null,8,A_)):A("",!0),d.streamUrl?(g(),x("div",O_,[v("div",M_,k(r.live),1),v("div",L_,[P(a,{class:"w-[20px] h-[20px]"}),Z(" "+k(d.viewers),1)])])):A("",!0),d.streamUrl?(g(),S(o,{key:2,target:"_self",href:r.liveDealerHub,class:"z-30 absolute","data-aa-tracker":`Link to ${d.data.name} from advancedtoplist page`},null,8,["href","data-aa-tracker"])):A("",!0)]),P(o,{target:"_self",tag:"a",variant:"block",size:"none",href:r.liveDealerHub,"data-aa-tracker":`Link to ${d.data.name} from advancedtoplist page`},{default:B(()=>[v("div",I_,[v("p",R_,k(d.data.name),1),v("div",D_,[v("div",F_,[i.partnerLogo?(g(),S(c,{key:0,src:i.partnerLogo,alt:i.partnerName,aspect:"1-1",width:e.isDesktop?24:20,height:e.isDesktop?24:20},null,8,["src","alt","width","height"])):A("",!0)]),v("span",B_,k(`${r.availableAt} ${i.partnerName}`),1)])])]),_:2},1032,["href","data-aa-tracker"])])]))),128))]),skeleton:B(()=>[(g(),x(H,null,Y(4,d=>v("div",{key:`liveDealerGameStreamSkeleton-${d}`,class:"w-[204px] md:w-[428px] xl:w-[516px] shrink-0"},[v("div",E_,[t[3]||(t[3]=v("div",{class:"aspect-16-9 mb-[-8px] relative"},[v("div",{class:"absolute top-[0px] h-full w-full bg-skeleton skeleton-animation rounded-md background-elevation-3"})],-1)),v("div",$_,[t[2]||(t[2]=v("div",{class:"w-full max-w-[160px] bg-skeleton skeleton-animation h-[3px] lg:h-[16px]"},null,-1)),v("div",N_,[t[1]||(t[1]=v("div",{class:"h-[20px] w-[20px] lg:w-[24px] lg:h-[24px] rounded-pill background-elevation-3"},null,-1)),v("span",z_,k(`${r.availableAt} ${i.partnerName}`),1)])])])])),64))]),_:1},8,["loading-items"])])):A("",!0)}const V_=O(k_,[["render",j_]]),G_={name:"GamesContentTab",components:{LiveDealerGames:V_,Button:me,GameProviders:j0,MostPopularGames:e_,GameTypesAvailable:Uv},props:{partner:{type:Object,default:()=>{}},isActive:{type:Boolean,default:!1},gameProviders:{type:Object,default:()=>{}}},data(){return{gamesProvidersTitle:this.$t("advancedToplist.gamesProvidersTitle"),totalGames:0,mostPopularGamesTitle:this.$t("advancedToplist.mostPopularGamesTitle"),viewAllGames:this.$t("advancedToplist.viewAllGames"),loading:!0,freeGamesLink:ir.freeGames}},computed:{gamesProviders(){return this.providers.length},partnerGameTypes(){return _d(this.partner)},providers(){return Oi(this.partner).softwareProvider||[]}},watch:{partner:{immediate:!0,deep:!0,handler(){this.loading=!0,setTimeout(()=>{this.loading=!1},500)}}}},H_={class:"flex flex-col gap-md lg:gap-xl"},W_={class:"grid grid-cols-1"},U_={class:"grid grid-cols-1"},q_={class:"grid grid-cols-1"},Y_={class:"grid grid-cols-1"},Z_={class:"flex self-center justify-center"};function K_(e,t,n,s,r,i){const o=w("MostPopularGames"),a=w("LiveDealerGames"),c=w("GameTypesAvailable"),l=w("GameProviders"),d=w("Button");return g(),x("div",H_,[v("div",W_,[n.isActive?(g(),S(o,{key:0,title:r.mostPopularGamesTitle,partner:n.partner},null,8,["title","partner"])):A("",!0)]),n.isActive&&!r.loading?(g(),S(a,{key:0,partner:n.partner},null,8,["partner"])):A("",!0),v("div",U_,[i.partnerGameTypes.length?(g(),S(c,{key:0,partner:n.partner},null,8,["partner"])):A("",!0)]),v("div",q_,[i.gamesProviders>0?(g(),S(l,{key:0,title:r.gamesProvidersTitle,"game-providers":i.providers,"game-providers-data":n.gameProviders,"game-types":i.partnerGameTypes},null,8,["title","game-providers","game-providers-data","game-types"])):A("",!0)]),v("div",Y_,[v("div",Z_,[P(d,{tag:"a",
2size:"LG",href:r.freeGamesLink,variant:"ghost","data-aa-tracker":"GamesContentTab: View All Games",onClick:t[0]||(t[0]=u=>e.addCustomTracking("GamesContentTab: View All Games","Click","Not Applicable","Button","Click","Not Applicable"))},{default:B(()=>[Z(k(r.viewAllGames),1)]),_:1},8,["href"])])])])}const X_=O(G_,[["render",K_]]),J_={name:"BonusesContentTab",components:{BonusBanner:xd},props:{partner:{type:Object,default:()=>({})}},data(){return{toplistsTypes:[],depositOffersTitle:this.$t("advancedToplist.depositOffersTitle"),gameOffersTitle:this.$t("advancedToplist.gameOffersTitle"),allOffers:[],loadingAllToplists:!0,toplistsLoaded:{},sortedBonus:{depositBonus:[],gameOffers:[]}}},computed:{partnerDepositOffers(){if(!this.partner||!this.partner.phoenix||!this.partner.phoenix.id)return[];const e=this.allOffers.filter(s=>s.partnerId===this.partner.phoenix.id&&s.fromToplistType!=="free+spins"),t=[],n=[];return e.forEach((s,r)=>{const i=`${s.id}-${s.partnerId}-${s.attributes.titlePreview}`;n.includes(i)||(n.push(i),t.push(r))}),e.filter((s,r)=>t.includes(r))},partnerGameOffers(){return!this.partner||!this.partner.phoenix||!this.partner.phoenix.id?[]:this.allOffers.filter(e=>e.partnerId===this.partner.phoenix.id&&e.fromToplistType==="free+spins")},...K(se,["toplists","toplistByType"])},watch:{toplists:{immediate:!0,deep:!0,handler(){this.getAllBonusses()}}},methods:{getAllBonusses(){this.toplistsTypes=Object.keys(this.toplists);const e=[];this.toplistsTypes.forEach(t=>{const n=this.toplistByType(t)||[];n.length&&n.forEach(s=>{const r=s.phoenix?.id||null,i=s.phoenix?.attributes?.toplistOffer||null;if(i&&r){const o={...i};o.fromToplistType=t,o.partnerId=r,e.push(o)}})}),this.allOffers=e}}},Q_={class:"background-elevation-2 flex flex-col items-start p-md lg:px-xl lg:py-lg border-sm color-stroke-elevation rounded-ui-md gap-md"},e3={class:"text-foreground-3 body-md leading-150"},t3={class:"flex flex-col gap-y-md w-full"},n3={class:"text-foreground-3 body-md leading-150"},s3={class:"flex flex-col gap-y-md w-full"};function i3(e,t,n,s,r,i){const o=w("BonusBanner");return g(),x("div",Q_,[i.partnerDepositOffers.length?(g(),x(H,{key:0},[v("p",e3,k(r.depositOffersTitle),1),v("div",t3,[(g(!0),x(H,null,Y(i.partnerDepositOffers,(a,c)=>(g(),S(o,{key:c,index:c,offer:a},null,8,["index","offer"]))),128))])],64)):A("",!0),i.partnerGameOffers.length?(g(),x(H,{key:1},[v("p",n3,k(r.gameOffersTitle),1),v("div",s3,[(g(!0),x(H,null,Y(i.partnerGameOffers,(a,c)=>(g(),S(o,{key:c,offer:a,index:c,type:"game-offer"},null,8,["offer","index"]))),128))])],64)):A("",!0)])}const r3=O(J_,[["render",i3]]),o3={name:"IconArrowDownDiagram",components:{VImage:W},props:{width:{type:[String,Number],default:12},height:{type:[String,Number],default:13}}};function a3(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/arrow-down-diagram.svg",alt:"arrow down",width:n.width,height:n.height},null,8,["width","height"])}const l3=O(o3,[["render",a3]]),c3={name:"IconArrowUpDiagram",components:{VImage:W},props:{width:{type:[String,Number],default:12},height:{type:[String,Number],default:13}}};function d3(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/arrow-up-diagram.svg",alt:"arrow up",width:n.width,height:n.height},null,8,["width","height"])}const u3=O(c3,[["render",d3]]),h3={name:"RatingHistoryCard",components:{IconArrowDownDiagram:l3,IconArrowUpDiagram:u3,Rating:St,Author:Vl},props:{ratingHistory:{type:Object,default:()=>({})}},computed:{...K(ge,["isMobile"]),authorSection(){return Pl(this.ratingHistory)},sizeRating(){return this.isMobile?"sm":"md"}}},p3={class:"flex p-md flex-col items-stretch gap-md rounded-ui-md border-sm color-stroke-elevation background-elevation-3 w-full content-between h-full"},f3={class:"gap-xs order-2 flex flex-col flex-grow"},g3={key:0,class:"flex items-baseline gap-2xs body-sm leading-120 lg:leading-150"},m3={key:1,class:"flex items-baseline gap-2xs body-sm leading-120 lg:leading-150"},b3={class:"order-3"};function y3(e,t,n,s,r,i){const o=w("Rating"),a=w("IconArrowDownDiagram"),c=w("IconArrowUpDiagram"),l=w("Author");return g(),x("div",p3,[n.ratingHistory.rating?(g(),S(o,{key:0,rating:Number(n.ratingHistory.rating),variant:"single",size:i.sizeRating},null,8,["rating","size"])):A("",!0),v("div",f3,[n.ratingHistory.cons?(g(),x("div",g3,[P(a),v("div",null,k(n.ratingHistory.cons),1)])):A("",!0),n.ratingHistory.pros?(g(),x("div",m3,[P(c),v("span",null,k(n.ratingHistory.pros),1)])):A("",!0)]),v("div",b3,[P(l,{author:i.authorSection,"show-border":!1,"show-expert-section-title":!1,layout:"stacked",size:"sm",verified:!0},null,8,["author"])])])}const v3=O(h3,[["render",y3]]),_3={name:"RatingHistory",components:{CustomSlider:Gt,RatingHistoryCard:v3},props:{ratingHistory:{type:Array,default:()=>[]},partnerName:{type:String,default:""},isVisible:{type:Boolean,default:!1}},data(){return{ratingHistoryTitle:this.$t("advancedToplist.ratingHistoryTitle")}},computed:{hasRatingHistory(){return this.ratingHistory.length>0},isClient(){return ae}}},x3={class:"xs:gap-md lg:gap-lg background-elevation-2 items-start xs:p-md lg:p-xl border-sm color-stroke-elevation rounded-ui-md"},w3={class:"title-xs leading-150 text-ghost-foreground pb-md st:pb-lg"},k3={class:"flex items-center w-full"},C3={key:0,class:"joiner-line-end relative"};function S3(e,t,n,s,r,i){const o=w("RatingHistoryCard"),a=w("CustomSlider");return g(),x("div",x3,[v("p",w3,k(n.partnerName)+" "+k(r.ratingHistoryTitle),1),n.isVisible&&i.isCl
2ient?(g(),S(a,{key:0,"adjust-width":!0,"items-per-page-mobile":1.5,"items-per-page-tablet":3,"items-per-page-desktop":4,"show-control-buttons":"never","slider-items-classes":"gap-md lg:gap-xl items-stretch"},{default:B(()=>[(g(!0),x(H,null,Y(n.ratingHistory,(c,l)=>(g(),x("div",{key:c,class:"flex items-start flex-col gap-md shrink-0"},[v("div",k3,[v("div",{class:z([{"first-year":l===1,"background-accent-1 text-foreground-on-dark":l===0,"background-elevation-3 text-foreground-2":l!==0},"year-badge relative text-center text-xs lg:font-bold rounded-pill px-sm py-2xs z-10 flex-shrink-0"])},k(c.lastUpdated),3),t[0]||(t[0]=v("div",{class:"joiner-line flex-grow relative"},null,-1)),l<n.ratingHistory.length-1?(g(),x("div",C3)):A("",!0)]),P(o,{"rating-history":n.ratingHistory[l]},null,8,["rating-history"])]))),128))]),_:1})):A("",!0)])}const T3=O(_3,[["render",S3],["__scopeId","data-v-1ccd7ba2"]]),P3={name:"ExampleGraph",props:{width:{type:[String,Number],default:183},height:{type:[String,Number],default:58},colorClass:{type:String,default:""}}},A3=Tt+"#icon-example-graph",O3=["width","height"];function M3(e,t,n,s,r,i){return g(),x("svg",{width:n.width,height:n.height,class:z(n.colorClass)},[...t[0]||(t[0]=[v("use",{href:A3},null,-1)])],10,O3)}const L3=O(P3,[["render",M3]]),I3={name:"IconFlagDefault",components:{VImage:W},props:{width:{type:[String,Number],default:"48"},height:{type:[String,Number],default:"49"}}};function R3(e,t,n,s,r,i){const o=w("VImage");return g(),S(o,{src:"/vue/assets/icons/flag-default.svg",alt:"icon CA flag",width:n.width,height:n.height},null,8,["width","height"])}const D3=O(I3,[["render",R3]]),F3=xn?.primary?.["700"],B3={name:"ChartRatingComparison",components:{IconFlagDefault:D3,ExampleGraph:L3,VImage:W,Rating:St},props:{},data(){return{countryName:this.$t("countryName"),ratingAgainstAverage:this.$t("advancedToplist.ratingAgainstAverage"),averageRatingInCountry:this.$t("advancedToplist.averageRatingInCountry"),ratingComparedText:this.$t("advancedToplist.ratingComparedText"),ratingsCalculateBases:this.$t("advancedToplist.ratingsCalculateBases"),partnersLimit:5,primaryColor:F3}},computed:{...K(ge,["width"]),ratingComparedTextFormatted(){return this.ratingComparedText.replace("[casinoName]",fe(this.currentPartner)||"").replace("[countryName]",this.countryName)},averageRatingInCountryFormatted(){return this.averageRatingInCountry.replace("[countryName]",this.countryName)},ratingsCalculateBasesFormatted(){return this.ratingsCalculateBases.replace("[countryName]",this.countryName)},partnersToCompare(){const e=this.toplistDefault.filter(t=>{const n=t.phoenix?.attributes?.faviconLight||"";return t.phoenix?.id!==this.currentPartner?.phoenix?.id&&n});for(let t=e.length-1;t>=0;t--){const n=Math.floor(Math.random()*(t+1)),s=e[t];e[t]=e[n],e[n]=s}return e.slice(0,this.partnersLimit)},primaryColorRgbValues(){const e=this.primaryColor.replace(/^#/,""),t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),s=parseInt(e.substring(4,6),16);return`${t}, ${n}, ${s}`},isMobile(){return this.width<=1024},...K(se,["toplistDefault","currentPartner"])},methods:{getRating(e){return ss(e)??0},getLogo(e){return nr(e)},displayName(e){return fe(e)},getBarLength(e){const t=e*10,n=30-e*3;return`calc(${t}% + ${n}px)`},ratingAverage(e){return!e||!e.length?"0.00":(e.reduce((n,s)=>{const r=ss(s);return n+(r??0)},0)/e.length).toFixed(2)},barBackgroundStyle(e){const t={width:this.getBarLength(e)};let n="270";return this.isMobile&&(n="180"),t.background=`linear-gradient(${n}deg, rgba(${this.primaryColorRgbValues}, 0.61) 0%, rgba(${this.primaryColorRgbValues}, 0.00) 99.1%)`,t},barBackgroundStyleHeight(e){const t={height:this.getBarLength(e),width:"29px"};let n="270";return this.isMobile&&(n="180"),t.background=`linear-gradient(${n}deg, rgba(${this.primaryColorRgbValues}, 0.61) 0%, rgba(${this.primaryColorRgbValues}, 0.00) 99.1%)`,t}}},E3={class:"background-elevation-2 xs:p-md lg:p-xl border-sm color-stroke-elevation rounded-ui-md flex flex-col justify-center gap-md lg:gap-lg"},$3={class:"w-full flex flex-col gap-md lg:flex-row lg:justify-between"},N3={class:"title-xs leading-150"},z3={class:"body-sm leading-150"},j3={class:"grid grid-cols-4 gap-md lg:gap-lg"},V3={class:"col-span-4 lg:col-span-3 background-elevation-3 p-md lg:p-xl border-sm pt-lg md:pt-none color-stroke-elevation rounded-lg flex flex-row lg:flex-col justify-between lg:w-full gap-2 lg:gap-0"},G3={class:"flex-shrink-0 flex-grow flex justify-between h-full lg:h-auto lg:w-full relative"},H3={class:"flex-shrink-0 lg:w-[128px] flex lg:flex-col h-full gap-2xs sm:gap-xs lg:gap-lg justify-between 2xs:hidden lg:flex"},W3={class:"truncate body-xs"},U3={class:"flex-grow relative h-full md:pl-2xl lg:pl-[0px]"},q3={class:"flex lg:flex-col h-full gap-2xs sm:gap-xs lg:gap-lg justify-between"},Y3={class:"body-xs"},Z3={class:"body-xs"},K3={class:"sections-lines flex flex-col-reverse lg:flex-row justify-between absolute inset-[0px] z-10"},X3={class:"sections-ratings flex-shrink-0 flex flex-col-reverse lg:flex-row items-end lg:items-center lg:ml-3xl lg:pl-3xl lg:mt-lg w-[38px] lg:w-auto"},J3={key:0,class:"2xs:hidden lg:flex flex-col lg:flex-row items-end lg:items-center w-full h-full lg:h-auto"},Q3={class:"col-span-4 lg:col-span-1 background-elevation-3 xs:p-md lg:p-lg border-sm color-stroke-elevation rounded-ui-md flex flex-col justify-center gap-md"},ex={class:"relative"},tx={class:"body-sm leading-150 text-center"},nx={class:"body-2xs leading-120 text-foreground-3"};function sx(e,t,n,s,r,i){const o=w("VImage"),a=w("Rating"),c=w("ExampleGraph"),l=w("IconFlagDefault");return g(),x("div",E3,[v("div",$3,[v("p",N3,k(r.ratingAgainstAverage),1),v("p",z3,k(i.ratingComparedTextFormatted),1)]),v("div",j3,[v("div",V3,[v("div",G3,[v("div",H3,[(g(!0),x(H,null,Y(i.partnersToCompare,(d,u)=>(g(),x("div",{key:`partner-name-and-logo-${u}`,class:"flex gap-xs lg:h-[34px] w-full items-center justify-end"},[v("div",W3,k(i.displayName(d)),1),i.getLogo(d)?(g(),S(o,{key:0,src:i.getLogo(d),alt:i.displayName(d),width:24,height:24,class:"h-[24px] w-[24px]"},null,8,["src","alt"])):A("",!0)]))),128))]),v("div",U3,[v("div",q3,[(g(!0),x(H,null,Y(i.partnersToCompare,(d,u)=>(g(),x("div",{key:`partner-rating-bar-${u}`,class:"flex gap-xs lg:h-[34px] w-full items-end lg:items-center"}
2,[v("div",{style:Le(i.barBackgroundStyleHeight(i.getRating(d)*2)),class:"w-full lg:hidden w-[36px] color-stroke-2 flex flex-col justify-between rounded-sm pt-2 items-center"},[v("p",Y3,k(i.getRating(d).toFixed(1)),1),i.getLogo(d)?(g(),S(o,{key:0,src:i.getLogo(d),alt:i.displayName(d),class:"h-[24px] w-[24px]"},null,8,["src","alt"])):A("",!0)],4),v("div",{style:Le(i.barBackgroundStyle(i.getRating(d)*2)),class:"2xs:hidden lg:flex h-full color-stroke-2 flex justify-end rounded-sm pr-md items-start lg:items-center"},[v("p",Z3,k(i.getRating(d).toFixed(1)),1)],4)]))),128))]),v("div",K3,[(g(),x(H,null,Y(6,d=>v("div",{key:d,class:z(["flex-shrink-0 color-stroke-2 w-full border-t-sm lg:border-t-0 lg:border-r-sm lg:h-full",d===1?"flex-grow-0 h-[30px] lg:w-[30px]":"flex-grow lg:w-auto"])},null,2)),64))])])]),v("div",X3,[(g(),x(H,null,Y(6,d=>v("div",{key:d,class:z(["flex items-end lg:items-center relative",d===1?"h-[30px] lg:h-auto lg:w-[30px] flex-grow-0":"h-2xl lg:w-auto lg:h-auto flex-grow pl-md pr-xl"])},[P(a,{rating:d-1,color:d===1?"empty":"default",variant:"single",size:"sm",class:"absolute top-[-10px] lg:bottom-0 right-0 lg:right-[-11px] lg:top-0"},null,8,["rating","color"]),d!==1?(g(),x("div",J3,[(g(),x(H,null,Y(10,u=>v("div",{key:u,class:z(["relative flex-grow flex-shrink-0 h-auto w-2 lg:w-auto lg:h-xs border-t-sm color-stroke-elevation lg:border-t-0",u!==5?"lg:h-xs":"lg:h-[10px]"])},[...t[0]||(t[0]=[v("div",{class:"absolute top-0 bottom-0 left-1/2 w-px border-r-sm color-stroke-elevation"},null,-1)])],2)),64))])):A("",!0)],2)),64))])]),v("div",Q3,[v("div",ex,[P(c,{class:"w-full max-w-full h-auto",color:r.primaryColor},null,8,["color"]),P(l,{style:{left:"calc(50% - 24px)",bottom:"calc(50% - 24px)"},class:"absolute w-2xl h-2xl"})]),v("p",tx,k(i.averageRatingInCountryFormatted),1),v("div",null,[P(a,{variant:"giant-square",rating:i.ratingAverage(i.partnersToCompare),text:!0},null,8,["rating"])]),v("p",nx,k(i.ratingsCalculateBasesFormatted),1)])])])}const ix=O(B3,[["render",sx]]),rx={name:"RatingContentTab",components:{ExpertRating:wd,RatingHistory:T3,ChartRatingComparison:ix},props:{partner:{type:Object,default:()=>({})},isActive:{type:Boolean,default:!1},ontarioRegulated:{type:Boolean,default:!1}},data(){return{isOntarioPage:!1}},computed:{expertRatingData(){const e={};return Object.values(this.expertRatingInfo).forEach(t=>{const[n,s]=Object.entries(t)[0];e[n]=s}),{totalRating:this.overallRating,items:e}},reviewUrl(){return this.partner?.siteLink||""},expertRatingInfo(){return this.partner?.phoenix?.attributes?.ratings||[]},overallRating(){return Number(this.partner?.phoenix?.attributes?.rating)||0},ratingHistoryInfo(){return this.ontarioRegulated||this.isOntarioPage?this.partner?.supplement?.ratingTrendOntario:this.partner?.supplement?.ratingTrend},isExpertRating(){return this.partner?.phoenix?.attributes?.ratings?Object.keys(this.partner.phoenix?.attributes?.ratings).length>1:!1},isRatingHistory(){return this.ontarioRegulated||this.isOntarioPage?this.partner?.supplement?.ratingTrendOntario?this.partner.supplement.ratingTrendOntario.length>0:!1:this.partner?.supplement?.ratingTrend?this.partner.supplement.ratingTrend.length>0:!1},partnerName(){return fe(this.partner)}},mounted(){this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1)}},ox={class:"flex flex-col gap-md md:gap-xl"},ax={class:"grid grid-cols-1"},lx={class:"grid grid-cols-1"};function cx(e,t,n,s,r,i){const o=w("ExpertRating"),a=w("RatingHistory"),c=w("ChartRatingComparison");return g(),x("div",ox,[v("div",ax,[i.isExpertRating?(g(),S(o,{key:0,"review-link":i.reviewUrl,"expert-rating":i.expertRatingData,"total-rating":i.overallRating},null,8,["review-link","expert-rating","total-rating"])):A("",!0)]),v("div",lx,[i.isRatingHistory?(g(),S(a,{key:0,"rating-history":i.ratingHistoryInfo,"partner-name":i.partnerName,"is-visible":n.isActive,"ontario-regulated":n.ontarioRegulated},null,8,["rating-history","partner-name","is-visible","ontario-regulated"])):A("",!0)]),v("div",null,[P(c)])])}const dx=O(rx,[["render",cx]]);var Bs={},Es={},$s={},wo;function ec(){return wo||(wo=1,(function(e){Object.defineProperty(e,"__esMo
2dule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){if(n=`${n}`,n==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(n))return n.replace(/^[+-]?/,r=>r==="-"?"":"-");let s=["var","calc","min","max","clamp"];for(const r of s)if(n.includes(`${r}(`))return`calc(${n} * -1)`}})($s)),$s}var Ns={},ko;function ux(){return ko||(ko=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const t=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(Ns)),Ns}var zs={},Co;function hx(){return Co||(Co=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n,s){return n===void 0?s:Array.isArray(n)?n:[...new Set(s.filter(i=>n!==!1&&n[i]!==!1).concat(Object.keys(n).filter(i=>n[i]!==!1)))]}})(zs)),zs}var js={},Vs={},Nn={exports:{}},So;function tc(){if(So)return Nn.exports;So=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Nn.exports=t(),Nn.exports.createColors=t,Nn.exports}var To;function ur(){return To||(To=1,(function(e){var t={};
2Object.defineProperty(e,"__esModule",{value:!0});function n(l,d){for(var u in d)Object.defineProperty(l,u,{enumerable:!0,get:d[u]})}n(e,{dim:function(){return a},default:function(){return c}});const s=r(tc());function r(l){return l&&l.__esModule?l:{default:l}}let i=new Set;function o(l,d,u){typeof process<"u"&&t.JEST_WORKER_ID||u&&i.has(u)||(u&&i.add(u),console.warn(""),d.forEach(h=>console.warn(l,"-",h)))}function a(l){return s.default.dim(l)}const c={info(l,d){o(s.default.bold(s.default.cyan("info")),...Array.isArray(l)?[l]:[d,l])},warn(l,d){o(s.default.bold(s.default.yellow("warn")),...Array.isArray(l)?[l]:[d,l])},risk(l,d){o(s.default.bold(s.default.magenta("risk")),...Array.isArray(l)?[l]:[d,l])}}})(Vs)),Vs}var Po;function px(){return Po||(Po=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const t=n(ur());function n(i){return i&&i.__esModule?i:{default:i}}function s({version:i,from:o,to:a}){t.default.warn(`${o}-color-renamed`,[`As of Tailwind CSS ${i}, \`${o}\` has been renamed to \`${a}\`.`,"Update your configuration file to silence this warning."])}const r={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return s({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return s({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return s({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return s({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return s({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(js)),js}var Gs={},Ao;function fx(){return Ao||(Ao=1,(function(e){Object.defineProperty(e,"__esMo
2dule",{value:!0}),Object.defineProperty(e,"defaults",{enumerable:!0,get:function(){return t}});function t(n,...s){for(let o of s){for(let a in o){var r;!(n==null||(r=n.hasOwnProperty)===null||r===void 0)&&r.call(n,a)||(n[a]=o[a])}for(let a of Object.getOwnPropertySymbols(o)){var i;!(n==null||(i=n.hasOwnProperty)===null||i===void 0)&&i.call(n,a)||(n[a]=o[a])}}return n}})(Gs)),Gs}var Hs={},Oo;function gx(){return Oo||(Oo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"toPath",{enumerable:!0,get:function(){return t}});function t(n){if(Array.isArray(n))return n;let s=n.split("[").length-1,r=n.split("]").length-1;if(s!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${n}`);return n.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(Hs)),Hs}var Ws={},Us={},Mo;function hr(){return Mo||(Mo=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function n(h,f){for(var p in f)Object.defineProperty(h,p,{enumerable:!0,get:f[p]})}n(e,{flagEnabled:function(){return c},issueFlagNotices:function(){return d},default:function(){return u}});const s=i(tc()),r=i(ur());function i(h){return h&&h.__esModule?h:{default:h}}let o={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},a={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(h,f){if(a.future.includes(f)){var p,y,m;return h.future==="all"||((m=(y=h==null||(p=h.future)===null||p===void 0?void 0:p[f])!==null&&y!==void 0?y:o[f])!==null&&m!==void 0?m:!1)}if(a.experimental.includes(f)){var b,_,C;return h.experimental==="all"||((C=(_=h==null||(b=h.experimental)===null||b===void 0?void 0:b[f])!==null&&_!==void 0?_:o[f])!==null&&C!==void 0?C:!1)}return!1}function l(h){if(h.experimental==="all")return a.experimental;var f;return Object.keys((f=h?.experimental)!==null&&f!==void 0?f:{}).filter(p=>a.experimental.includes(p)&&h.experimental[p])}function d(h){if(t.JEST_WORKER_ID===void 0&&l(h).length>0){let f=l(h).map(p=>s.default.yellow(p)).join(", ");r.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${f}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const u=a})(Us)),Us}var Lo;function mx(){return Lo||(Lo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeConfig",{enumerable:!0,get:function(){return i}});const t=hr(),n=r(ur());function s(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,c=new WeakMap;return(s=function(l){return l?c:a})(o)}function r(o,a){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var c=s(a);if(c&&c.has(o))return c.get(o);var l={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if(u!=="default"&&Object.prototype.hasOwnProperty.call(o,u)){var h=d?Object.getOwnPropertyDescriptor(o,u):null;h&&(h.get||h.set)?Object.defineProperty(l,u,h):l[u]=o[u]}return l.default=o,c&&c.set(o,l),l}function i(o){if((()=>{if(o.purge||!o.content||!Array.isArray(o.content)&&!(typeof o.content=="object"&&o.content!==null))return!1;if(Array.isArray(o.content))return o.content.every(l=>typeof l=="string"?!0:!(typeof l?.raw!="string"||l?.extension&&typeof l?.extension!="string"));if(typeof o.content=="object"&&o.content!==null){if(Object.keys(o.content).some(l=>!["files","relative","extract","transform"].includes(l)))return!1;if(Array.isArray(o.content.files)){if(!o.content.files.every(l=>typeof l=="string"?!0:!(typeof l?.raw!="string"||l?.extension&&typeof l?.extension!="string")))return!1;if(typeof o.content.extract=="object"){for(let l of Object.values(o.content.extract))if(typeof l!="function")return!1}else if(!(o.content.extract===void 0||typeof o.content.extract=="function"))return!1;if(typeof o.content.transform=="object"){for(let l of Object.values(o.content.transform))if(typeof l!="function")return!1}else if(!(o.content.transform===void 0||typeof o.content.transform=="function"))return!1;if(typeof o.content.relative!="boolean"&&typeof o.content.relative<"u")return!1}return!0}return!1})()||n.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),o.safelist=(()=>{var l;let{content:d,purge:u,safelist:h}=o;return Array.isArray(h)?h:Array.isArray(d?.safelist)?d.safelist:Array.isArray(u?.safelist)?u.safelist:Array.isArray(u==null||(l=u.options)===null||l===void 0?void 0:l.safelist)?u.options.safelist:[]})(),o.blocklist=(()=>
2{let{blocklist:l}=o;if(Array.isArray(l)){if(l.every(d=>typeof d=="string"))return l;n.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof o.prefix=="function")n.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),o.prefix="";else{var c;o.prefix=(c=o.prefix)!==null&&c!==void 0?c:""}o.content={relative:(()=>{let{content:l}=o;return l?.relative?l.relative:(0,t.flagEnabled)(o,"relativeContentPathsByDefault")})(),files:(()=>{let{content:l,purge:d}=o;return Array.isArray(d)?d:Array.isArray(d?.content)?d.content:Array.isArray(l)?l:Array.isArray(l?.content)?l.content:Array.isArray(l?.files)?l.files:[]})(),extract:(()=>{let l=(()=>{var h,f,p,y,m,b,_,C,T,M;return!((h=o.purge)===null||h===void 0)&&h.extract?o.purge.extract:!((f=o.content)===null||f===void 0)&&f.extract?o.content.extract:!((p=o.purge)===null||p===void 0||(y=p.extract)===null||y===void 0)&&y.DEFAULT?o.purge.extract.DEFAULT:!((m=o.content)===null||m===void 0||(b=m.extract)===null||b===void 0)&&b.DEFAULT?o.content.extract.DEFAULT:!((_=o.purge)===null||_===void 0||(C=_.options)===null||C===void 0)&&C.extractors?o.purge.options.extractors:!((T=o.content)===null||T===void 0||(M=T.options)===null||M===void 0)&&M.extractors?o.content.options.extractors:{}})(),d={},u=(()=>{var h,f,p,y;if(!((h=o.purge)===null||h===void 0||(f=h.options)===null||f===void 0)&&f.defaultExtractor)return o.purge.options.defaultExtractor;if(!((p=o.content)===null||p===void 0||(y=p.options)===null||y===void 0)&&y.defaultExtractor)return o.content.options.defaultExtractor})();if(u!==void 0&&(d.DEFAULT=u),typeof l=="function")d.DEFAULT=l;else if(Array.isArray(l))for(let{extensions:h,extractor:f}of l??[])for(let p of h)d[p]=f;else typeof l=="object"&&l!==null&&Object.assign(d,l);return d})(),transform:(()=>{let l=(()=>{var u,h,f,p,y,m;return!((u=o.purge)===null||u===void 0)&&u.transform?o.purge.transform:!((h=o.content)===null||h===void 0)&&h.transform?o.content.transform:!((f=o.purge)===null||f===void 0||(p=f.transform)===null||p===void 0)&&p.DEFAULT?o.purge.transform.DEFAULT:!((y=o.content)===null||y===void 0||(m=y.transform)===null||m===void 0)&&m.DEFAULT?o.content.transform.DEFAULT:{}})(),d={};return typeof l=="function"?d.DEFAULT=l:typeof l=="object"&&l!==null&&Object.assign(d,l),d})()};for(let l of o.content.files)if(typeof l=="string"&&/{([^,]*?)}/g.test(l)){n.default.warn("invalid-glob-braces",[`The glob pattern ${(0,n.dim)(l)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,n.dim)(l.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return o}})(Ws)),Ws}var qs={},Io;function bx(){return Io||(Io=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;const s=Object.getPrototypeOf(n);return s===null||Object.getPrototypeOf(s)===null}})(qs)),qs}var Ys={},Ro;function yx(){return Ro||(Ro=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return t}});function t(n){return Array.isArray(n)?n.map(s=>t(s)):typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([s,r])=>[s,t(r)])):n}})(Ys)),Ys}var Zs={},Ks={},Do;function vx(){return Do||(Do=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\\,/g,"\\2c ")}})(Ks)),Ks}var Xs={},Js={},Qs={},Fo;function _x(){return Fo||(Fo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
2ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(Qs)),Qs}var Bo;function nc(){return Bo||(Bo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,y){for(var m in y)Object.defineProperty(p,m,{enumerable:!0,get:y[m]})}t(e,{parseColor:function(){return h},formatColor:function(){return f}});const n=s(_x());function s(p){return p&&p.__esModule?p:{default:p}}let r=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/(?:\d+|\d*\.\d+)%?/,a=/(?:\s*,\s*|\s+)/,c=/\s*[,/]\s*/,l=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${o.source}|${l.source})(?:${a.source}(${o.source}|${l.source}))?(?:${a.source}(${o.source}|${l.source}))?(?:${c.source}(${o.source}|${l.source}))?\\s*\\)$`),u=new RegExp(`^(hsla?)\\(\\s*((?:${o.source})(?:deg|rad|grad|turn)?|${l.source})(?:${a.source}(${o.source}|${l.source}))?(?:${a.source}(${o.source}|${l.source}))?(?:${c.source}(${o.source}|${l.source}))?\\s*\\)$`);function h(p,{loose:y=!1}={}){var m,b;if(typeof p!="string")return null;if(p=p.trim(),p==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(p in n.default)return{mode:"rgb",color:n.default[p].map(L=>L.toString())};let _=p.replace(i,(L,$,U,I,N)=>["#",$,$,U,U,I,I,N?N+N:""].join("")).match(r);if(_!==null)return{mode:"rgb",color:[parseInt(_[1],16),parseInt(_[2],16),parseInt(_[3],16)].map(L=>L.toString()),alpha:_[4]?(parseInt(_[4],16)/255).toString():void 0};var C;let T=(C=p.match(d))!==null&&C!==void 0?C:p.match(u);if(T===null)return null;let M=[T[2],T[3],T[4]].filter(Boolean).map(L=>L.toString());return M.length===2&&M[0].startsWith("var(")?{mode:T[1],color:[M[0]],alpha:M[1]}:!y&&M.length!==3||M.length<3&&!M.some(L=>/^var\(.*?\)$/.test(L))?null:{mode:T[1],color:M,alpha:(m=T[5])===null||m===void 0||(b=m.toString)===null||b===void 0?void 0:b.call(m)}}function f({mode:p,color:y,alpha:m}){let b=m!==void 0;return p==="rgba"||p==="hsla"?`${p}(${y.join(", ")}${b?`, ${m}`:""})`:`${p}(${y.join(" ")}${b?` / ${m}`:""})`}})(Js)),Js}var Eo;function sc(){return Eo||(Eo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,o){for(var a in o)Object.defineProperty(i,a,{enumerable:!0,get:o[a]})}t(e,{withAlphaValue:function(){return s},default:function(){return r}});const n=nc();function s(i,o,a){if(typeof i=="function")return i({opacityValue:o});let c=(0,n.parseColor)(i,{loose:!0});return c===null?a:(0,n.formatColor)({...c,alpha:o})}function r({color:i,property:o,variable:a}){let c=[].concat(o);if(typeof i=="function")return{[a]:"1",...Object.fromEntries(c.map(d=>[d,i({opacityVariable:a,opacityValue:`var(${a}, 1)`})]))};const l=(0,n.parseColor)(i);return l===null?Object.fromEntries(c.map(d=>[d,i])):l.alpha!==void 0?Object.fromEntries(c.map(d=>[d,i])):{[a]:"1",...Object.fromEntries(c.map(d=>[d,(0,n.formatColor)({...l,alpha:`var(${a}, 1)`})]))}}})(Xs)),Xs}var ei={},ti={},$o;function xx(){return $o||($o=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(L,$){for(var U in $)Object.defineProperty(L,U,{enumerable:!0,get:$[U]})}t(e,{hasMathFn:function(){return T},addWhitespaceAroundMathOperators:function(){return M}});const n=97,s=122,r=65,i=90,o=101,a=69,c=48,l=57,d=43,u=45,h=42,f=47,p=40,y=41,m=44,b=32,_=37,C=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function T(L){return L.indexOf("(")!==-1&&C.some($=>L.includes(`${$}(`))}function M(L){if(!C.some(F=>L.includes(F)))return L;let $="",U=[],I=null,N=null;for(let F=0;F<L.length;F++){let D=L.charCodeAt(F);if(D>=c&&D<=l||I!==null&&(D===_||D>=n&&D<=s||D>=r&&D<=i)?I=F:(N=I,I=null),D===p){$+=L[F];let G=F;for(let R=F-1;R>=0;R--){let V=L.charCodeAt(R);if(V>=c&&V<=l)G=R;else if(V>=n&&V<=s)G=R;else break}let j=L.slice(G,F);if(C.includes(j)){U.unshift(!0);continue}else if(U[0]&&j===""){U.unshift(!0);continue}U.unshift(!1);continue}else if(D===y)$+=L[F],U.shift();else if(D===m&&U[0]){$+=", ";continue}else{if(D===b&&U[0]&&$.charCodeAt($.length-1)===b)continue;
2if((D===d||D===h||D===f||D===u)&&U[0]){let G=$.trimEnd(),j=G.charCodeAt(G.length-1),R=G.charCodeAt(G.length-2),V=L.charCodeAt(F+1);if((j===o||j===a)&&R>=c&&R<=l){$+=L[F];continue}else if(j===d||j===h||j===f||j===u){$+=L[F];continue}else if(j===p||j===m){$+=L[F];continue}else L.charCodeAt(F-1)===b?$+=`${L[F]} `:j>=c&&j<=l||V>=c&&V<=l||j===y||V===p||V===d||V===h||V===f||V===u||N!==null&&N===F-1?$+=` ${L[F]} `:$+=L[F]}else $+=L[F]}}return $}})(ti)),ti}var ni={},si={},No;function pr(){return No||(No=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return t}});function t(n,s){let r=[],i=[],o=0,a=!1;for(let c=0;c<n.length;c++){let l=n[c];r.length===0&&l===s[0]&&!a&&(s.length===1||n.slice(c,c+s.length)===s)&&(i.push(n.slice(o,c)),o=c+s.length),a=a?!1:l==="\\",l==="("||l==="["||l==="{"?r.push(l):(l===")"&&r[r.length-1]==="("||l==="]"&&r[r.length-1]==="["||l==="}"&&r[r.length-1]==="{")&&r.pop()}return i.push(n.slice(o)),i}})(si)),si}var zo;function wx(){return zo||(zo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,l){for(var d in l)Object.defineProperty(c,d,{enumerable:!0,get:l[d]})}t(e,{parseBoxShadowValue:function(){return o},formatBoxShadowValue:function(){return a}});const n=pr();let s=new Set(["inset","inherit","initial","revert","unset"]),r=/\ +(?![^(]*\))/g,i=/^-?(\d+|\.\d+)(.*?)$/g;function o(c){return(0,n.splitAtTopLevelOnly)(c,",").map(d=>{let u=d.trim(),h={raw:u},f=u.split(r),p=new Set;for(let y of f)i.lastIndex=0,!p.has("KEYWORD")&&s.has(y)?(h.keyword=y,p.add("KEYWORD")):i.test(y)?p.has("X")?p.has("Y")?p.has("BLUR")?p.has("SPREAD")||(h.spread=y,p.add("SPREAD")):(h.blur=y,p.add("BLUR")):(h.y=y,p.add("Y")):(h.x=y,p.add("X")):h.color?(h.unknown||(h.unknown=[]),h.unknown.push(y)):h.color=y;return h.valid=h.x!==void 0&&h.y!==void 0,h})}function a(c){return c.map(l=>
2l.valid?[l.keyword,l.x,l.y,l.blur,l.spread,l.color].filter(Boolean).join(" "):l.raw).join(", ")}})(ni)),ni}var jo;function ic(){return jo||(jo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,q){for(var J in q)Object.defineProperty(E,J,{enumerable:!0,get:q[J]})}t(e,{normalize:function(){return l},normalizeAttributeSelectors:function(){return d},url:function(){return u},number:function(){return h},percentage:function(){return f},length:function(){return m},lineWidth:function(){return _},shadow:function(){return C},color:function(){return T},image:function(){return M},gradient:function(){return $},position:function(){return I},familyName:function(){return N},genericName:function(){return D},absoluteSize:function(){return j},relativeSize:function(){return V}});const n=nc(),s=xx(),r=wx(),i=pr();let o=["min","max","clamp","calc"];function a(E){return o.some(q=>new RegExp(`^${q}\\(.*\\)`).test(E))}const c=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function l(E,q=null,J=!0){let X=q&&c.has(q.property);return E.startsWith("--")&&!X?`var(${E})`:E.includes("url(")?E.split(/(url\(.*?\))/g).filter(Boolean).map(Pe=>/^url\(.*?\)$/.test(Pe)?Pe:l(Pe,q,!1)).join(""):(E=E.replace(/([^\\])_+/g,(Pe,st)=>st+" ".repeat(Pe.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),J&&(E=E.trim()),E=(0,s.addWhitespaceAroundMathOperators)(E),E)}function d(E){return E.includes("=")&&(E=E.replace(/(=.*)/g,(q,J)=>{if(J[1]==="'"||J[1]==='"')return J;if(J.length>2){let X=J[J.length-1];if(J[J.length-2]===" "&&(X==="i"||X==="I"||X==="s"||X==="S"))return`="${J.slice(1,-2)}" ${J[J.length-1]}`}return`="${J.slice(1)}"`})),E}function u(E){return E.startsWith("url(")}function h(E){return!isNaN(Number(E))||a(E)}function f(E){return E.endsWith("%")&&h(E.slice(0,-1))||a(E)}let y=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function m(E){return E==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${y}$`).test(E)||a(E)}let b=new Set(["thin","medium","thick"]);function _(E){return b.has(E)}function C(E){let q=(0,r.parseBoxShadowValue)(l(E));for(let J of q)if(!J.valid)return!1;return!0}function T(E){let q=0;return(0,i.splitAtTopLevelOnly)(E,"_").every(X=>(X=l(X),X.startsWith("var(")?!0:(0,n.parseColor)(X,{loose:!0})!==null?(q++,!0):!1))?q>0:!1}function M(E){let q=0;return(0,i.splitAtTopLevelOnly)(E,",").every(X=>(X=l(X),X.startsWith("var(")?!0:u(X)||$(X)||["element(","image(","cross-fade(","image-set("].some(Pe=>X.startsWith(Pe))?(q++,!0):!1))?q>0:!1}let L=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function $(E){E=l(E);for(let q of L)if(E.startsWith(`${q}(`))return!0;return!1}let U=new Set(["center","top","right","bottom","left"]);function I(E){let q=0;return(0,i.splitAtTopLevelOnly)(E,"_").every(X=>(X=l(X),X.startsWith("var(")?!0:U.has(X)||m(X)||f(X)?(q++,!0):!1))?q>0:!1}function N(E){let q=0;return(0,i.splitAtTopLevelOnly)(E,",").every(X=>(X=l(X),X.startsWith("var(")?!0:X.includes(" ")&&!/(['"])([^"']+)\1/g.test(X)||/^\d/g.test(X)?!1:(q++,!0)))?q>0:!1}let F=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function D(E){return F.has(E)}let G=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function j(E){return G.has(E)}let R=new Set(["larger","smaller"]);function V(E){return R.has(E)}})(ei)),ei}var ii={},Vo;function kx(){return Vo||(Vo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"backgroundSize",{enumerable:!0,get:function(){return s}});const t=ic(),n=pr();function s(r){let i=["cover","contain"];return(0,n.splitAtTopLevelOnly)(r,",").every(o=>
2{let a=(0,n.splitAtTopLevelOnly)(o,"_").filter(Boolean);return a.length===1&&i.includes(a[0])?!0:a.length!==1&&a.length!==2?!1:a.every(c=>(0,t.length)(c)||(0,t.percentage)(c)||c==="auto")})}})(ii)),ii}var Go;function Cx(){return Go||(Go=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(I,N){for(var F in N)Object.defineProperty(I,F,{enumerable:!0,get:N[F]})}t(e,{updateAllClasses:function(){return l},asValue:function(){return h},parseColorFormat:function(){return y},asColor:function(){return b},asLookupValue:function(){return _},typeMap:function(){return T},coerceValue:function(){return $},getMatchingTypes:function(){return U}});const n=c(vx()),s=sc(),r=ic(),i=c(ec()),o=kx(),a=hr();function c(I){return I&&I.__esModule?I:{default:I}}function l(I,N){I.walkClasses(F=>{F.value=N(F.value),F.raws&&F.raws.value&&(F.raws.value=(0,n.default)(F.raws.value))})}function d(I,N){if(!f(I))return;let F=I.slice(1,-1);if(N(F))return(0,r.normalize)(F)}function u(I,N={},F){let D=N[I];if(D!==void 0)return(0,i.default)(D);if(f(I)){let G=d(I,F);return G===void 0?void 0:(0,i.default)(G)}}function h(I,N={},{validate:F=()=>!0}={}){var D;let G=(D=N.values)===null||D===void 0?void 0:D[I];return G!==void 0?G:N.supportsNegativeValues&&I.startsWith("-")?u(I.slice(1),N.values,F):d(I,F)}function f(I){return I.startsWith("[")&&I.endsWith("]")}function p(I){let N=I.lastIndexOf("/"),F=I.lastIndexOf("[",N),D=I.indexOf("]",N);return I[N-1]==="]"||I[N+1]==="["||F!==-1&&D!==-1&&F<N&&N<D&&(N=I.lastIndexOf("/",F)),N===-1||N===I.length-1?[I,void 0]:f(I)&&!I.includes("]/[")?[I,void 0]:[I.slice(0,N),I.slice(N+1)]}function y(I){if(typeof I=="string"&&I.includes("<alpha-value>")){let N=I;return({opacityValue:F=1})=>N.replace(/<alpha-value>/g,F)}return I}function m(I){return(0,r.normalize)(I.slice(1,-1))}function b(I,N={},{tailwindConfig:F={}}={}){var D;if(((D=N.values)===null||D===void 0?void 0:D[I])!==void 0){var G;return y((G=N.values)===null||G===void 0?void 0:G[I])}let[j,R]=p(I);if(R!==void 0){var V,E,q,J;let X=(J=(V=N.values)===null||V===void 0?void 0:V[j])!==null&&J!==void 0?J:f(j)?j.slice(1,-1):void 0;return X===void 0?void 0:(X=y(X),f(R)?(0,s.withAlphaValue)(X,m(R)):((E=F.theme)===null||E===void 0||(q=E.opacity)===null||q===void 0?void 0:q[R])===void 0?void 0:(0,s.withAlphaValue)(X,F.theme.opacity[R]))}return h(I,N,{validate:r.color})}function _(I,N={}){var F;return(F=N.values)===null||F===void 0?void 0:F[I]}function C(I){return(N,F)=>h(N,F,{validate:I})}let T={any:h,color:b,url:C(r.url),image:C(r.image),length:C(r.length),percentage:C(r.percentage),position:C(r.position),lookup:_,"generic-name":C(r.genericName),"family-name":C(r.familyName),number:C(r.number),"line-width":C(r.lineWidth),"absolute-size":C(r.absoluteSize),"relative-size":C(r.relativeSize),shadow:C(r.shadow),size:C(o.backgroundSize)},M=Object.keys(T);function L(I,N){let F=I.indexOf(N);return F===-1?[void 0,I]:[I.slice(0,F),I.slice(F+1)]}function $(I,N,F,D){if(F.values&&N in F.values)for(let{type:j}of I??[]){let R=T[j](N,F,{tailwindConfig:D});if(R!==void 0)return[R,j,null]}if(f(N)){let j=N.slice(1,-1),[R,V]=L(j,":");if(!/^[\w-_]+$/g.test(R))V=j;else if(R!==void 0&&!M.includes(R))return[];if(V.length>0&&M.includes(R))return[h(`[${V}]`,F),R,null]}let G=U(I,N,F,D);for(let j of G)return j;return[]}function*U(I,N,F,D){let G=(0,a.flagEnabled)(D,"generalizedModifiers"),[j,R]=p(N);if(G&&F.modifiers!=null&&(F.modifiers==="any"||typeof F.modifiers=="object"&&(R&&f(R)||R in F.modifiers))||(j=N,R=void 0),R!==void 0&&j===""&&(j="DEFAULT"),R!==void 0&&typeof F.modifiers=="object"){var E,q;let J=(q=(E=F.modifiers)===null||E===void 0?void 0:E[R])!==null&&q!==void 0?q:null;J!==null?R=J:f(R)&&(R=m(R))}for(let{type:J}of I??[]){let X=T[J](j,F,{tailwindConfig:D});X!==void 0&&(yield[X,J,R??null])}}})(Zs)),Zs}var ri={},Ho;function Sx(){return Ho||(Ho=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){return typeof n=="function"?n({}):n}})(ri)),ri}var Wo;function Tx(){return Wo||(Wo=1,(function(e){Object.defineProperty(e,"__esMo
2dule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return F}});const t=f(ec()),n=f(ux()),s=f(hx()),r=f(px()),i=fx(),o=gx(),a=mx(),c=f(bx()),l=yx(),d=Cx(),u=sc(),h=f(Sx());function f(D){return D&&D.__esModule?D:{default:D}}function p(D){return typeof D=="function"}function y(D,...G){let j=G.pop();for(let R of G)for(let V in R){let E=j(D[V],R[V]);E===void 0?(0,c.default)(D[V])&&(0,c.default)(R[V])?D[V]=y({},D[V],R[V],j):D[V]=R[V]:D[V]=E}return D}const m={colors:r.default,negative(D){return Object.keys(D).filter(G=>D[G]!=="0").reduce((G,j)=>{let R=(0,t.default)(D[j]);return R!==void 0&&(G[`-${j}`]=R),G},{})},breakpoints(D){return Object.keys(D).filter(G=>typeof D[G]=="string").reduce((G,j)=>({...G,[`screen-${j}`]:D[j]}),{})}};function b(D,...G){return p(D)?D(...G):D}function _(D){return D.reduce((G,{extend:j})=>y(G,j,(R,V)=>R===void 0?[V]:Array.isArray(R)?[V,...R]:[V,R]),{})}function C(D){return{...D.reduce((G,j)=>(0,i.defaults)(G,j),{}),extend:_(D)}}function T(D,G){if(Array.isArray(D)&&(0,c.default)(D[0]))return D.concat(G);if(Array.isArray(G)&&(0,c.default)(G[0])&&(0,c.default)(D))return[D,...G];if(Array.isArray(G))return G}function M({extend:D,...G}){return y(G,D,(j,R)=>!p(j)&&!R.some(p)?y({},j,...R,T):(V,E)=>y({},...[j,...R].map(q=>b(q,V,E)),T))}function*L(D){let G=(0,o.toPath)(D);if(G.length===0||(yield G,Array.isArray(D)))return;let j=/^(.*?)\s*\/\s*([^/]+)$/,R=D.match(j);if(R!==null){let[,V,E]=R,q=(0,o.toPath)(V);q.alpha=E,yield q}}function $(D){const G=(j,R)=>{for(const V of L(j)){let E=0,q=D;for(;q!=null&&E<V.length;)q=q[V[E++]],q=p(q)&&(V.alpha===void 0||E<=V.length-1)?q(G,m):q;if(q!==void 0){if(V.alpha!==void 0){let J=(0,d.parseColorFormat)(q);return(0,u.withAlphaValue)(J,V.alpha,(0,h.default)(J))}return(0,c.default)(q)?(0,l.cloneDeep)(q):q}}return R};return Object.assign(G,{theme:G,...m}),Object.keys(D).reduce((j,R)=>(j[R]=p(D[R])?D[R](G,m):D[R],j),{})}function U(D){let G=[];return D.forEach(j=>{G=[...G,j];var R;const V=(R=j?.plugins)!==null&&R!==void 0?R:[];V.length!==0&&V.forEach(E=>{E.__isOptionsFunction&&(E=E());var q;G=[...G,...U([(q=E?.config)!==null&&q!==void 0?q:{}])]})}),G}function I(D){return[...D].reduceRight((j,R)=>p(R)?R({corePlugins:j}):(0,s.default)(R,j),n.default)}function N(D){return[...D].reduceRight((j,R)=>[...j,...R],[])}function F(D){let G=[...U(D),{prefix:"",important:!1,separator:":"}];var j,R;return(0,a.normalizeConfig)((0,i.defaults)({theme:$(M(C(G.map(V=>(j=V?.theme)!==null&&j!==void 0?j:{})))),corePlugins:I(G.map(V=>V.corePlugins)),plugins:N(D.map(V=>(R=V?.plugins)!==null&&R!==void 0?R:[]))},...G))}})(Es)),Es}var oi={},ai,Uo;function Px(){return Uo||(Uo=1,ai={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l"
vendor: 10,940 bytes, line 2
2:"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({...e("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:e})=>({...e("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>
2({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}),ai}var qo;function Ax(){return qo||(qo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const t=s(Px()),n=hr();function s(i){return i&&i.__esModule?i:{default:i}}function r(i){var o;const a=((o=i?.presets)!==null&&o!==void 0?o:[t.default]).slice().reverse().flatMap(d=>r(d instanceof Function?d():d)),c={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:d})=>({DEFAULT:"#3b82f67f",...d("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},l=Object.keys(c).filter(d=>(0,n.flagEnabled)(i,d)).map(d=>c[d]);return[i,...l,...a]}})(oi)),oi}var Yo;function Ox(){return Yo||(Yo=1,(function(e){Object.defineProperty(e,"__esMo
2dule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const t=s(Tx()),n=s(Ax());function s(i){return i&&i.__esModule?i:{default:i}}function r(...i){let[,...o]=(0,n.default)(i[0]);return(0,t.default)([...i,...o])}})(Bs)),Bs}var li,Zo;function Mx(){if(Zo)return li;Zo=1;let e=Ox();return li=(e.__esModule?e:{default:e}).default,li}var Lx=Mx();const Ix=Hl(Lx);var ci={},di={},Ko;function Rx(){return Ko||(Ko=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});function t(s,r){return{handler:s,config:r}}t.withOptions=function(s,r=()=>({})){const i=function(o){return{__options:o,handler:s(o),config:r(o)}};return i.__isOptionsFunction=!0,i.__pluginFunction=s,i.__configFunction=r,i};const n=t})(di)),di}var Xo;function Dx(){return Xo||(Xo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const t=n(Rx());function n(r){return r&&r.__esModule?r:{default:r}}const s=t.default})(ci)),ci}var ui,Jo;function Fx(){if(Jo)return ui;Jo=1;let e=Dx();return ui=(e.__esModule?e:{default:e}).default,ui}var Bx=Fx();const Ex=Hl(Bx),Ri=(e,t)=>{const n=Object.assign({},e);return zn(e)&&zn(t)&&Object.keys(t).forEach(s=>{zn(t[s])?s in e?zn(e[s])&&(n[s]=Ri(e[s],t[s])):Object.assign(n,{[s]:t[s]}):Object.assign(n,{[s]:t[s]})}),n},zn=e=>!!(e&&typeof e=="object"&&!Array.isArray(e)&&e!==null),Di=(e,t=1)=>{if(!e||typeof e!="string"||!/^#?[0-9A-Fa-f]{6}$/.test(e))throw new Error(`Invalid hex color code: ${e}`);const n=e.replace("#",""),s=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${s}, ${r}, ${i}, ${t})`},Qo=(e,t)=>{const n=e.replace("rgba(","").replace(")","").split(",").map(i=>i.trim()),r=parseFloat(n[3])*t;return`rgba(${n[0]}, ${n[1]}, ${n[2]}, ${r})`},Fi=e=>e.includes("rgba"),xe=(e,t,n,s)=>{const r=Fi(t)?t:Di(t,1),i=Fi(n)?n:Di(n,1),o=Qo(r,s),a=Qo(i,s);return`linear-gradient(${e}, ${o}, ${a})`},nn=(e,t)=>{const s=t.map(r=>({color:Fi(r.color)?r.color:Di(r.color,1),opacity:r.opacity})).map(r=>`${r.color} ${r.opacity}`).join(", ");return`linear-gradient(${e}, ${s} )`},$x=(e=Al)=>{const t={"page-gap":e.spacing["fluid-2xl"],"section-padding":"0px","section-gap":e.spacing["fluid-md"],"content-gap":e.spacing["fluid-md"]},n={"ui-xs":e.borderRadius.sm,"ui-sm":e.borderRadius.md,"ui-md":e.borderRadius.lg,"ui-lg":e.borderRadius.xl,button:e.borderRadius.pill,form:e.borderRadius.md,image:e.borderRadius.lg},s={1:e.colors.neutral.white,2:e.colors.primary[100],3:e.colors.primary[200],4:e.colors.primary[300],"stroke-2":e.colors.opacity[4],"accent-1":e.colors.primary[700],"accent-2":e.colors.primary[1e3],warning:"rgba(251, 191, 36, 0.2400)",error:"rgba(248, 113, 113, 0.2400)",success:"rgba(110, 231, 183, 0.2400)",informative:"rgba(165, 180, 252, 0.2400)",disabled:e.colors.opacity[1],flyout:e.colors.primary[200],"elevation-1":xe("145deg",e.colors.primary[300],e.colors.opacity[2],".04"),"elevation-2":xe("145deg",e.colors.primary[400],e.colors.opacity[3],".08"),"elevation-3":xe("145deg",e.colors.primary[400],e.colors.opacity[4],".16"),"elevation-4":xe("124deg",e.colors.primary[600],e.colors.opacity[6],".16"),"special-gradient":nn("100deg",[{color:e.colors.success[400],opacity:"14.18%"},{color:e.colors.secondary[500],opacity:"33.66%"},{color:e.colors.primary[600],opacity:"51.28%"},{color:e.colors.tertiary[700],opacity:"70.3%"},{color:e.colors.warning[600],opacity:"87.93%"},{color:e.colors.warning[500],opacity:"103.7%"}]),"gradient-angle-1":nn("63deg",[{color:e.colors.gradients["angle-1a"],opacity:"-13.9%"},{color:e.colors.gradients["angle-1b"],opacity:"99.45%"}]),"gradient-angle-2":nn("207deg",[{color:e.colors.gradients["angle-2a"],opacity:"-6.43%"},{color:e.colors.gradients["angle-2b"],opacity:"82.66%"}]),"gradient-vertical-1":nn("180deg",[{color:e.colors.gradients["vertical-1a"],opacity:"0%"},{color:e.colors.gradients["vertical-1b"],opacity:"100%"}]),"gradient-vertical-2":nn("0deg",[{color:e.colors.gradients["vertical-2a"],opacity:"40.38%"},{color:e.colors.gradients["vertical-2b"],opacity:"87.5%"}]),"elevation-neutral-2":e.colors.neutral.white,glass:"rgba(255, 255, 255, 0.8)",transparent:e.colors.transparent,"star-rating":e.colors.warning[500],skeleton:"rgba(241, 244, 248, 0.8)"},r={1:e.colors.grey[1e3],2:e.colors.grey[800],3:e.colors.grey[600],accent:e.colors.primary[700],warning:e.colors.warning[700],error:e.colors.error[700],success:e.colors.success[700],disabled:e.colors.opacity[4],"on-dark":e.colors.neutral.white,"on-light":e.colors.grey[1e3],informative:e.colors.primary[700],"star-rating":e.colors.warning[500]},i={"ui-dark-1":"rgba(0, 0, 0, 0.4000)","ui-dark-2":"rgba(0, 0, 0, 0.8000)","ui-light-1":"rgba(255, 255, 255, 0.8000)","ui-light-2":"rgba(255, 255, 255, 0.4000)","linear-gradient-1":"linear-gradient(180deg, rgba(17, 24, 39, 0.58) 0%, rgba(17, 24, 39, 1) 100%)"},o={1:e.colors.neutral.white,2:e.colors.opacity[4],3:e.colors.opacity[5],elevation:e.colors.opacity[4],disabled:e.colors.opacity[2],accent:e.colors.primary[700],error:e.colors.error[700],warning:e.colors.warning[700],success:e.colors.success[700],informative:e.colors.informative[700],"accent-hover":e.colors.primary[1e3],"on-dark":e.colors.neutral.white,transparent:e.colors.transparent},a={success:{background:s["elevation-4"],foreground:e.colors.success[700]},error:{background:s["elevation-4"],foreground:e.colors.error[700]},warning:{background:s["elevation-4"],foreground:e.colors.warning[700]},informative:{background:s["elevation-4"],foreground:e.colors.informative[800]},greyscale:{background:s["elevation-4"],foreground:e.colors.grey[1e3]},primary:{background:s["elevation-4"],foreground:e.colors.primary[700]},secondary:{background:s["elevation-4"],foreground:e.colors.secondary[700]},tertiary:{background:s["elevation-4"],foreground:e.colors.tertiary[700]}},c={success:{background:e.colors.success[700],foreground:e.colors.success[100]},error:{background:e.colors.error[700],foreground:e.colors.error[100]},warning:{background:e.colors.warning[700],foreground:e.colors.warning[100]},informative:{background:e.colors.informative[700],foreground:e.colors.informative[100]},greyscale:{background:e.colors.grey[1e3],foreground:e.colors.grey[100]},primary:{background:e.colors.primary[700],foreground:e.colors.primary[100]},secondary:{background:e.colors.secondary[700],foreground:e.colors.secondary[100]},tertiary:{background:e.colors.tertiary[700],foreground:e.colors.tertiary[100]}},l={primary:{foreground:e.colors.neutral.white,background:e.colors.primary[700],hoverBackgroun
2d:`radial-gradient(50% 50% at 50% 50%, ${e.colors.primary[600]}, ${e.colors.primary[700]})`,shadow:`0px 2px 28px -2px ${e.colors.primary[400]}`,hoverShadow:`0px 2px 32px -2px ${e.colors.primary[400]}`,hoverForeground:e.colors.neutral.white},secondary:{foreground:e.colors.primary[700],background:"linear-gradient(145deg, rgba(233, 240, 255, 0.8000), rgba(245, 234, 255, 0.4000))",hoverBackground:"linear-gradient(145deg, #D3E1FF, #E9D0FF)",strokeGradient:`linear-gradient(145deg, ${e.colors.primary[700]}, ${e.colors.primary[600]})`,shadow:`0px 2px 28px -11px ${e.colors.primary[400]}`,hoverShadow:`0px 2px 32px -11px ${e.colors.primary[400]}`,hoverForeground:e.colors.primary[700]},"secondary-solid":{foreground:e.colors.primary[700],background:"linear-gradient(145deg, rgba(233, 240, 255, 0.80) 0%, rgba(245, 234, 255, 0.40) 93.51%)",hoverBackground:"linear-gradient(145deg, rgba(233, 240, 255, 0.80) 0%, rgba(245, 234, 255, 0.40) 93.51%)",stroke:e.colors.primary[700],shadow:`0 2px 28px -11px ${e.colors.primary[400]}`,hoverShadow:`0 2px 28px -11px ${e.colors.primary[400]}`,hoverForeground:e.colors.primary[700]},"secondary-on-accent":{foreground:r["on-dark"]},ghost:{foreground:e.colors.grey[1e3],background:"linear-gradient(145deg, rgba(233, 240, 255, 0.8000), rgba(245, 234, 255, 0.4000))",hoverBackground:"linear-gradient(145deg, rgba(211, 225, 255, 0.8000), rgba(172, 149, 222, 0.4000))",strokeGradient:xe("180deg",e.colors.opacity[6],e.colors.primary[800],.2),hoverForeground:e.colors.grey[1e3]},"ghost-on-accent":{foreground:r["on-dark"],hoverForeground:r["on-dark"]},mute:{foreground:e.colors.grey[1e3],hoverBackground:s["elevation-4"],hoverForeground:e.colors.grey[1e3]},"mute-on-accent":{foreground:r["on-dark"]},link:{foreground:e.colors.primary[700],hoverBackground:s["elevation-4"],hoverForeground:e.colors.primary[700]},"link-on-accent":{foreground:r["on-dark"]},promocode:{foreground:e.colors.grey[1e3],background:s["elevation-3"],stroke:e.colors.primary[700],hoverBackground:s["elevation-4"],hoverForeground:e.colors.grey[1e3]},"promocode-on-accent":{foreground:r["on-dark"],stroke:o["on-dark"]},language:{background:e.colors.transparent,hoverBackground:e.colors.opacity[4],foreground:r[1],stroke:o.elevation},"language-on-accent":{background:e.colors.transparent,hoverBackground:e.colors.opacity[4],foreground:r["on-dark"],stroke:o.elevation}},d={foreground:e.colors.primary[700],hoverForeground:e.colors.primary[900]},u={foreground:r["on-dark"],hoverForeground:r["on-dark"]},h={foreground:e.colors.grey[800],hoverForeground:e.colors.grey[1e3]},f={foreground:r["on-dark"],hoverForeground:r["on-dark"]},p={foreground:l.ghost.foreground,background:l.ghost.background,hoverBackground:l.ghost.hoverBackground,stroke:l.ghost.strokeGradient},y={elevated:{foreground:l.ghost.foreground,background:l.ghost.background,stroke:o.elevation,hoverStroke:o.accent,borderRadius:n.form},solid:{foreground:r[2],background:xe("145deg",e.colors.primary[400],e.colors.opacity[3],".08"),stroke:o.elevation,hoverStroke:o.accent,borderRadius:n.form},ghost:{foreground:l.ghost.foreground,background:l.ghost.background,strokeGradient:l.ghost.strokeGradient,hoverStroke:l.ghost.strokeGradient,borderRadius:n.button}},m={xl:{blur:e.glow.lg,spread:e.glow.sm},lg:{blur:e.glow.lg,spread:e.glow.sm},md:{blur:e.glow.md,spread:e.glow.sm},sm:{blur:e.glow.lg,spread:e.glow.sm},xs:{blur:e.glow.md,spread:e.glow.sm},"2xs":{blur:e.glow.md,spread:e.glow.sm},"3xs":{blur:e.glow.md,spread:e.glow.sm}},b={background:"rgba(31, 39, 55, 0.58)",foreground:e.colors.grey[100],stroke:o.elevation,hoverBackground:s["elevation-3"],hoverForeground:e.colors.grey[500],hoverStroke:o.elevation,activeBackground:s["elevation-3"],activeForeground:r[1],activeStroke:o.accent,glowActive:r.accent,shadow:e.colors.secondary[400]},_={"color-1":e.colors.success[700],"color-2":e.colors.warning[600],"color-3":e.colors.error[700],"color-4":e.colors.informative[600],"color-5":"rgba(242, 115, 181, 1)","color-6":"rgba(48, 175, 175, 1)","color-7":"rgba(231, 122, 47, 1)","color-8":"rgba(80, 71, 219, 1)"};return{spacing:t,borderRadius:n,ui:{backgroundUI:s,foregroundUI:r,overlay:i,stroke:o,badge:a,badgeReverted:c,button:l,link:d,linkSecondary:h,linkOnAccent:u,linkSecondaryOnAccent:f,control:p,dropdown:y,faviconGlow:m,switcher:b,chartForeground:_,chartShadow:{"color-1":"rgba(26, 164, 120, 1)","color-2":"rgba(220, 142, 53,
21)","color-3":"rgba(203, 41, 41, 1)","color-4":"rgba(3, 105, 161, 1)","color-5":"rgba(216, 100, 163, 1)","color-6":"rgba(32, 181, 164, 1)","color-7":"rgba(209, 127, 71, 1)","color-8":"rgba(71, 62, 214, 1)"}}}},Nx=({primitives:e,semantics:t}={})=>{const n=Ri(Al,Object.fromEntries(Object.entries(e&&typeof e=="object"?e:{}).filter(([r])=>["fontFamily","fontWeight","colors"].includes(r)))),s=Ri($x(n),Object.entries(typeof t=="function"?t(n):{}).filter(([r])=>["spacing","borderRadius","ui"].includes(r)).reduce((r,[i,o])=>(r[i]=o,r),{}));return{important:".container-bic",content:["./vue/**/*.{vue,js}","./includes/banner-tournaments-live.php","./includes/footer/**/*.ejs","./show-tokens.html","./show-tokens-organisms.php","./includes/hero-section/hero-section.php","./includes/header-component.php","./includes/casinoca_header-new.php"],safelist:[{pattern:/chart-(foreground|background|shadow)-color-\d+/},{pattern:/badge-reverted-.*-(background|foreground)/},{pattern:/badge-.*-(background|foreground)/}],theme:{fontFamily:{...n.fontFamily},fontSize:{...n.fontSize},fontWeight:{...n.fontWeight},lineHeight:{...n.lineHeight},letterSpacing:{...n.letterSpacing},maxWidth:{...n.maxWidth},screens:{...Object.fromEntries(Object.entries({...n.screens}).sort(([r,i],[o,a])=>typeof i!="string"?1:typeof a!="string"?-1:Number(i.replace("px",""))-Number(a.replace("px",""))))},container:{center:!0,padding:{DEFAULT:0,md:"0.5rem",lg:"1rem"},screens:{sm:"100%",md:"768px",lg:"1024px",xl:"1248px"}},spacing:{...n.spacing,...s.spacing},colors:{},boxShadow:{...n.boxShadow},backgroundImage:{...n.backgroundImage},borderWidth:{...n.borderWidth},borderRadius:{...n.borderRadius,...s.borderRadius},aspectRatio:{...n.aspectRatio},backdropBlur:{...n.backdropBlur},blur:{...n.blur},transitionTimingFunction:{...n.transitionTimingFunction},transitionDuration:{...n.transitionDuration},transitionDelay:{...n.transitionDelay}},extend:{animation:{"fade-up":"fadeUp 0.3s cubic-bezier(0.1, 0.9, 0.6, 1) backwards","fade-down":"fadeDown 0.3s cubic-bezier(0.1, 0.9, 0.6, 1) backwards","skeleton-animation-big":"skeletonLoadingBig 2s ease infinite","skeleton-animation-small":"skeletonLoadingSmall 2s ease infinite","modal
2-fade-in":"modalFadeIn 0.5s","modal-fade-in-desktop":"modalFadeInDesktop 0.5s","modal-fade-in-right-desktop":"modalFadeInRightDesktop 0.5s",wave:"wave 8s linear infinite"},keyframes:{fadeUp:{from:{opacity:0,transform:"translateY(1.25rem)"}},fadeDown:{from:{opacity:0,transform:"translateY(-1.25rem)"}},modalFadeIn:{"0%":{bottom:"-100%"},"100%":{bottom:0}},modalFadeInDesktop:{"0%":{top:"150%"},"100%":{top:"50%"}},modalFadeInRightDesktop:{"0%":{right:"-100%"},"100%":{right:0}},skeletonLoadingBig:{"0%":{backgroundPosition:"-400px 0"},"100%":{backgroundPosition:"400px 0"}},skeletonLoadingSmall:{"0%":{backgroundPosition:"-100px 0"},"100%":{backgroundPosition:"100px 0"}},wave:{from:{"background-position":"100% calc(100% + 1px), center, center"}}}},plugins:[Ex(({addUtilities:r,addComponents:i,matchUtilities:o})=>{o({background:d=>({background:d})},{values:Object.fromEntries(Object.entries(s.ui.backgroundUI).filter(([d])=>d!=="glass"))}),r({".background-glass":{"background-color":s.ui.backgroundUI.glass,"backdrop-filter":`blur(${n.backdropBlur.md})`}}),o({"text-foreground":d=>({color:d,fill:d})},{values:s.ui.foregroundUI}),o({overlay:d=>({background:d})},{values:s.ui.overlay}),o({"color-stroke":d=>({"border-color":d})},{values:s.ui.stroke}),[{cssModifiers:["left"],utility:"l"},{cssModifiers:["right"],utility:"r"},{cssModifiers:["top"],utility:"t"},{cssModifiers:["bottom"],utility:"b"},{cssModifiers:["top","bottom"],utility:"y"},{cssModifiers:["left","right"],utility:"x"}].forEach(({cssModifiers:d,utility:u})=>{o({[`color-stroke-${u}`]:h=>Object.fromEntries(d.map(f=>[`border-${f}-color`,h]))},{values:s.ui.stroke})});const c=s.ui.switcher,l={".switcher":{color:c.hoverForeground,"&:hover":{color:c.hoverForeground,background:c.hoverBackground},"&:focus":{color:c.hoverForeground,background:c.hoverBackground},"&:active":{color:c.hoverForeground,background:c.activeBackground}},".switcher-active":{background:c.background,color:c.foreground,"border-color":c.stroke}};i({...l}),i({...Object.fromEntries(Object.entries(s.ui.badge).flatMap(([d,{background:u,foreground:h}])=>[[`.badge-${d}-background`,{background:u}],[`.badge-${d}-foreground`,{color:h}]])),...Object.fromEntries(Object.entries(s.ui.badgeReverted).flatMap(([d,{background:u,foreground:h}])=>[[`.badge-reverted-${d}-background`,{background:u}],[`.badge-reverted-${d}-foreground`,{color:h}]])),...Object.fromEntries(Object.entries(s.ui.button).map(([d,{foreground:u,background:h,hoverForeground:f,hoverBackground:p,stroke:y,shadow:m,hoverShadow:b,strokeGradient:_}])=>{const C={"&::before":{content:'""',position:"absolute",inset:0,padding:"1px",background:_,"border-radius":"999px","-webkit-mask":"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","-webkit-mask-composite":"xor",mask:"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","mask-composite":"exclude",zIndex:-1}},T={color:f,background:p,...b?{"box-shadow":b}:{},..._?{"border-color":"transparent",...C}:{"border-color":y||"transparent"}};return[`.button-${d}`,{position:"relative",display:"inline-block",cursor:"pointer",...u?{color:u}:{},...m?{"box-shadow":m}:{},...h?{background:h}:{},..._?{border:"none",outline:"none",overflow:"hidden",zIndex:1,...C}:d==="secondary-solid"&&y?{border:`1px solid ${y}`,"border-radius":n.borderRadius.pill}:{"border-color":y||"transparent"},...p?{"&:hover":T,"&:focus":T,"&:active":T,"&.active":T}:{},...["ghost","ghost-on-accent","promocode"].includes(d)?{}:{"font-weight":n.fontWeight.bold},...d==="ghost-active-tab"?{"font-weight":n.fontWeight.regular}:{}}]})),".button-disabled":{cursor:"default !important",color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`,"box-shadow":"none !important","&:hover":{color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`,"box-shadow":"none !important"},"&:focus":{color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`,"box-shadow":"none !important"},"&:active":{color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`,"box-shadow":"none !important"}},".button-ghost-disabled::before":{cursor:"default !important",color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`},".button-secondary-disabled::before":{cursor:"default !important",color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`},...Object.fromEntries(Object.entries(s.ui.dropdown).map(([d,u])=>{const{foreground:h,background:f,hoverStroke:p,strokeGradient:y,borderRadius:m,stroke:b}=u,_=y?{border:"none",outline:"none",overflow:"hidden",zIndex:1,"&::before":{content:'""',position:"absolute",inset:0,padding:"1px",background:`${y} !important`,"border-radius":m,"-webkit-mask":"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","-webkit-mask-composite":"xor",mask:"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","mask-composite":"exclude",zIndex:-1}}:{"border-color":"transparent"},C={position:"relative",display:"inline-block",cursor:"pointer",...h&&{color:h},...f&&{background:`${f} !important`},...m&&{"border-radius":m},..._};return b&&(C.border="1px solid",C.borderColor=b),p&&(C["&:hover"]={borderColor:p},C["&:focus"]={borderColor:p},C["&:active"]={borderColor:p},b||(C["&:hover::before"]={background:`${p} !important`},C["&:focus::before"]={background:`${p} !important`},C["&:active::before"]={background:`${p} !important`})),[`.dropdown-${d}`,C]})),...Object.fromEntries(Object.entries({link:s.ui.link,"link-secondary":s.ui.linkSecondary,"link-on-accent":s.ui.linkOnAccent,"link-secondary-on-accent":s.ui.linkSecondaryOnAccent}).map(([d,u])=>[`.${d}`,{color:u.foreground,fill:u.foreground,"&:hover, &:focus, &:active":{color:u.hoverForeground,fill:u.hoverForeground}}])),".link-disabled":{cursor:"default !important",color:`${s.ui.foregroundUI.disabled} !important`,"&:hover":{color:`${s.ui.foregroundUI.disabled} !important`},"&:focus":{color:`${s.ui.foregroundUI.disabled} !important`},"&:active":{color:`${s.ui.foregroundUI.disabled} !important`}},".link-foreground":{color:s.ui.link.foreground},...Object.fromEntries(Object.entries({control:s.ui.control}).map(([d,u])=>{const h={"&::before":{content:'""',position:"absolute",inset:0,padding:"1px",background:u.stroke,"border-radius":"999px","-webkit-mask":"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","-webkit-mask-composite":"xor",mask:"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","mask-composite":"exclude",zIndex:-1}}
2,f={color:u.foreground,background:u.hoverBackground,"border-color":"transparent","backdrop-filter":"blur(5.25px)",...h};return[`.${d}`,{position:"relative",display:"inline-block",cursor:"pointer",color:u.foreground,background:u.background,border:"none",outline:"none",overflow:"hidden",zIndex:1,"&::before":{content:'""',position:"absolute",inset:0,padding:"1px",background:u.stroke,"border-radius":"999px","-webkit-mask":"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","-webkit-mask-composite":"xor",mask:"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)","mask-composite":"exclude",zIndex:-1},"&:hover":f,"&:focus":f,"&:active":f}]})),".control-disabled":{cursor:"default !important",color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`,"&:hover":{color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`},"&:focus":{color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`},"&:active":{color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`}},".control-disabled::before":{cursor:"default !important",color:`${s.ui.foregroundUI.disabled} !important`,background:`${s.ui.backgroundUI.disabled} !important`},...Object.fromEntries(Object.entries(s.ui.faviconGlow).map(([d,{blur:u,spread:h}])=>[`.favicon-glow-${d}`,{boxShadow:`0 0 ${u}px ${h}px currentColor`}])),...Object.fromEntries(Object.entries(s.ui.chartForeground).map(([d,u])=>[`.chart-foreground-${d}`,{color:u,fill:u}])),...Object.fromEntries(Object.entries(s.ui.chartForeground).map(([d,u])=>[`.chart-shadow-${d}`,{filter:`drop-shadow(0 0 10px ${u})`}])),...Object.fromEntries(Object.entries({"3xl":{desktop:n.fontSize["6xl"],tablet:n.fontSize["5xl"],mobile:n.fontSize["2xl"]},"2xl":{desktop:n.fontSize["5xl"],tablet:n.fontSize["4xl"],mobile:n.fontSize["2xl"]},xl:{desktop:n.fontSize["4xl"],tablet:n.fontSize["3xl"],mobile:"28px"},lg:{desktop:n.fontSize["3xl"],tablet:n.fontSize["2xl"],mobile:n.fontSize.xl},md:{desktop:n.fontSize["2xl"],tablet:n.fontSize.xl,mobile:n.fontSize.lg},sm:{desktop:n.fontSize.xl,tablet:n.fontSize.lg,mobile:n.fontSize.md},xs:{desktop:n.fontSize.md,tablet:n.fontSize.sm,mobile:n.fontSize.sm},"2xs":{desktop:n.fontSize.sm,tablet:n.fontSize.xs,mobile:n.fontSize.xs},"3xs":{desktop:n.fontSize.xs,tablet:n.fontSize["2xs"],mobile:n.fontSize["2xs"]},"4xs":{desktop:n.fontSize["2xs"],tablet:n.fontSize["3xs"],mobile:n.fontSize["3xs"]}}).map(([d,u])=>[`.title-${d}`,{color:s.ui.foregroundUI[1],"font-weight":n.fontWeight.bold,"font-size":u.mobile,"@media (min-width: 768px)":{"font-size":u.tablet},"@media (min-width: 1024px)":{"font-size":u.desktop}}])),...Object.fromEntries(Object.entries({lg:{desktop:n.fontSize.md,mobile:n.fontSize.sm},md:{desktop:n.fontSize.sm,mobile:n.fontSize.xs},sm:{desktop:n.fontSize.xs,mobile:n.fontSize["2xs"]},xs:{desktop:n.fontSize["2xs"],mobile:n.fontSize["3xs"]},"2xs":{desktop:n.fontSize["3xs"],mobile:n.fontSize["3xs"]}}).map(([d,u])=>[`.body-${d}`,{color:s.ui.foregroundUI[2],"font-size":u.mobile,"@media (min-width: 1024px)":{"font-size":u.desktop}}]))})})]}},zx=Nx({primitives:{fontFamily:{sans:["Outfit","Lato","sans-serif"]},colors:xn},semantics:e=>({ui:{backgroundUI:{"accent-2":e.colors.tertiary[1e3],flyout:"rgba(254, 254, 254, 0.9400)","elevation-1":xe("145deg",e.colors.tertiary[200],e.colors.opacity[2],".04"),"elevation-2":xe("145deg",e.colors.tertiary[300],e.colors.opacity[3],".08"),"elevation-3":xe("145deg",e.colors.tertiary[400],e.colors.opacity[4],".16"),"elevation-4":xe("124deg",e.colors.tertiary[500],e.colors.opacity[5],".16")},foregroundUI:{informative:e.colors.informative[700]},button:{primary:{foreground:e.colors.tertiary[1e3],background:e.colors.primary[500],hoverBackground:`linear-gradient(145deg, ${e.colors.primary[500]}, ${e.colors.primary[600]})`,hoverForeground:e.colors.tertiary[1e3]},secondary:{background:"linear-gradient(145deg, #f9fafa, #f9fafa)",hoverBackground:"linear-gradient(145deg, #f7f8f7, #e4e7e5)",strokeGradient:`linear-gradient(145deg, ${e.colors.primary[600]}, ${e.colors.primary[500]})`},ghost:{background:"linear-gradient(145deg, #f9faf9, #f1f3f2)",hoverBackgroun
2d:"linear-gradient(145deg, #e1e5e3, #d5dbd7)",strokeGradient:xe("180deg",e.colors.opacity[6],e.colors.tertiary[800],.2)},mute:{hoverBackground:e.colors.opacity[4]},link:{foreground:e.colors.tertiary[600],hoverForeground:e.colors.tertiary[600],hoverBackground:e.colors.opacity[4]},promocode:{background:e.colors.opacity[3],hoverBackground:e.colors.opacity[4]},language:{background:"rgba(79, 103, 89, 0)",hoverBackground:e.colors.opacity[4],foreground:e.colors.grey[1e3],stroke:e.colors.opacity[3]},"language-on-accent":{foreground:e.colors.neutral.white}},link:{foreground:e.colors.primary[500],hoverForeground:e.colors.primary[700]},switcher:{activeStroke:e.colors.tertiary[1e3],glowActive:e.colors.neutral.white},control:{foreground:e.colors.grey[1e3],background:"control-background, #FFF",hoverBackground:e.colors.opacity[4],strokeGradient:`linear-gradient(145deg, ${e.colors.opacity[6]}, ${e.colors.tertiary[800]})`},dropdown:{elevated:{foreground:e.colors.grey[1e3],background:"linear-gradient(145deg, #f9faf9, #f1f3f2)",stroke:e.colors.opacity[4],hoverStroke:e.colors.primary[700],borderRadius:e.borderRadius.md},solid:{foreground:e.colors.grey[800],background:xe("145deg",e.colors.primary[400],e.colors.opacity[3],".08"),stroke:e.colors.opacity[4],hoverStroke:e.colors.primary[700],borderRadius:e.borderRadius.md},ghost:{foreground:e.colors.grey[1e3],background:"linear-gradient(145deg, #f9faf9, #f1f3f2)",strokeGradient:xe("180deg",e.colors.opacity[6],e.colors.tertiary[800],.2),hoverStroke:xe("180deg",e.colors.opacity[6],e.colors.tertiary[800],.2),borderRadius:e.borderRadius.pill}}}})});function Ke(){}const jx=(function(){let e=0;return function(){return e++}})();function ne(e){return e===null||typeof e>"u"}function le(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Q(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}const pe=e=>(typeof e=="number"||e instanceof Number)&&isFinite(+e);function Me(e,t){return pe(e)?e:t}function ee(e,t){return typeof e>"u"?t:e}const Vx=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:e/t,rc=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function de(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ie(e,t,n,s){let r,i,o;if(le(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(Q(e))for(o=Object.keys(e),i=o.length,r=0;r<i;r++)t.call(n,e[o[r]],o[r])}function rs(e,t){let n,s,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,s=e.length;n<s;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function os(e){if(le(e))return e.map(os);if(Q(e)){const t=Object.create(null),n=Object.keys(e),s=n.length;let r=0;for(;r<s;++r)t[n[r]]=os(e[n[r]]);return t}return e}function oc(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Gx(e,t,n,s){if(!oc(e))return;const r=t[e],i=n[e];Q(r)&&Q(i)?wn(r,i,s):t[e]=os(i)}function wn(e,t,n){const s=le(t)?t:[t],r=s.length;if(!Q(e))return e;n=n||{};const i=n.merger||Gx;for(let o=0;o<r;++o){if(t=s[o],!Q(t))continue;const a=Object.keys(t);for(let c=0,l=a.length;c<l;++c)i(a[c],e,t,n)}return e}function fn(e,t){return wn(e,t,{merger:Hx})}function Hx(e,t,n){if(!oc(e))return;const s=t[e],r=n[e];Q(s)&&Q(r)?fn(s,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=os(r))}const ea={"":e=>e,x:e=>e.x,y:e=>e.y};function lt(e,t){return(ea[t]||(ea[t]=Wx(t)))(e)}function Wx(e){const t=Ux(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function Ux(e){const t=e.split("."),n=[];let s="";for(const r of t)s+=r,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function fr(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Re=e=>typeof e<"u",ct=e=>typeof e=="function",ta=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function qx(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const he=Math.PI,oe=2*he,Yx=oe+he,as=Number.POSITIVE_INFINITY,Zx=he/180,ue=he/2,sn=he/4,na=he*2/3,Ie=Math.log10,We=Math.sign;function sa(e){const t=Math.round(e);e=gn(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ie(e))),s=e/n;return(s<=1?1:s<=2?2:s<=5?5:10)*n}function Kx(e){const t=[],n=Math.sqrt(e);let s;for(s=1;s<n;s++)e%s===0&&(t.push(s),t.push(e/s));
vendor: 5,876 bytes, line 2
2return n===(n|0)&&t.push(n),t.sort((r,i)=>r-i).pop(),t}function $t(e){return!isNaN(parseFloat(e))&&isFinite(e)}function gn(e,t,n){return Math.abs(e-t)<n}function Xx(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function ac(e,t,n){let s,r,i;for(s=0,r=e.length;s<r;s++)i=e[s][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function $e(e){return e*(he/180)}function gr(e){return e*(180/he)}function ia(e){if(!pe(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function lc(e,t){const n=t.x-e.x,s=t.y-e.y,r=Math.sqrt(n*n+s*s);let i=Math.atan2(s,n);return i<-.5*he&&(i+=oe),{angle:i,distance:r}}function Bi(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Jx(e,t){return(e-t+Yx)%oe-he}function Ce(e){return(e%oe+oe)%oe}function kn(e,t,n,s){const r=Ce(e),i=Ce(t),o=Ce(n),a=Ce(i-r),c=Ce(o-r),l=Ce(r-i),d=Ce(r-o);return r===i||r===o||s&&i===o||a>c&&l<d}function ve(e,t,n){return Math.max(t,Math.min(n,e))}function Qx(e){return ve(e,-32768,32767)}function Cn(e,t,n,s=1e-6){return e>=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function mr(e,t,n){n=n||(o=>e[o]<t);let s=e.length-1,r=0,i;for(;s-r>1;)i=r+s>>1,n(i)?r=i:s=i;return{lo:r,hi:s}}const xt=(e,t,n,s)=>mr(e,n,s?r=>e[r][t]<=n:r=>e[r][t]<n),e5=(e,t,n)=>mr(e,n,s=>e[s][t]>=n);function t5(e,t,n){let s=0,r=e.length;for(;s<r&&e[s]<t;)s++;for(;r>s&&e[r-1]>n;)r--;return s>0||r<e.length?e.slice(s,r):e}const cc=["push","pop","shift","splice","unshift"];function n5(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),cc.forEach(n=>{const s="_onData"+fr(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const o=r.apply(this,i);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...i)}),o}})})}function ra(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,r=s.indexOf(t);r!==-1&&s.splice(r,1),!(s.length>0)&&(cc.forEach(i=>{delete e[i]}),delete e._chartjs)}function dc(e){const t=new Set;let n,s;for(n=0,s=e.length;n<s;++n)t.add(e[n]);return t.size===s?e:Array.from(t)}const uc=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function hc(e,t,n){const s=n||(o=>Array.prototype.slice.call(o));let r=!1,i=[];return function(...o){i=s(o),r||(r=!0,uc.call(window,()=>{r=!1,e.apply(t,i)}))}}function s5(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const i5=e=>e==="start"?"left":e==="end"?"right":"center",oa=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2;function pc(e,t,n){const s=t.length;let r=0,i=s;if(e._sorted){const{iScale:o,_parsed:a}=e,c=o.axis,{min:l,max:d,minDefined:u,maxDefined:h}=o.getUserBounds();u&&(r=ve(Math.min(xt(a,o.axis,l).lo,n?s:xt(t,c,o.getPixelForValue(l)).lo),0,s-1)),h?i=ve(Math.max(xt(a,o.axis,d,!0).hi+1,n?0:xt(t,c,o.getPixelForValue(d),!0).hi+1),r,s)-r:i=s-r}return{start:r,count:i}}function fc(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=r,!0;const i=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,r),i}const jn=e=>e===0||e===1,aa=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*oe/n)),la=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*oe/n)+1,mn={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ue)+1,easeOutSine:e=>Math.sin(e*ue),easeInOutSine:e=>-.5*(Math.cos(he*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>jn(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>jn(e)?e:aa(e,.075,.3),easeOutElastic:e=>jn(e)?e:la(e,.075,.3),easeInOutElastic(e){return jn(e)?e:e<.5?.5*aa(e*2,.1125,.45):.5+.5*la(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-mn.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?mn.easeInBounce(e*2)*.5:mn.easeOutBounce(e*2-1)*.5+.5};function Ln(e){return e+.5|0}const rt=(e,t,n)=>Math.max(Math.min(e,n),t);function un(e){return rt(Ln(e*2.55),0,255)}function at(e){return rt(Ln(e*255),0,255)}function Qe(e){return rt(Ln(e/2.55)/100,0,1)}function ca(e){return rt(Ln(e*100),0,100)}const Oe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ei=[..."0123456789ABCDEF"],r5=e=>Ei[e&15],o5=e=>Ei[(e&240)>>4]+Ei[e&15],Vn=e=>(e&240)>>4===(e&15),a5=e=>Vn(e.r)&&Vn(e.g)&&Vn(e.b)&&Vn(e.a);function l5(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Oe[e[1]]*17,g:255&Oe[e[2]]*17,b:255&Oe[e[3]]*17,a:t===5?Oe[e[4]]*17:255}:(t===7||t===9)&&(n={r:Oe[e[1]]<<4|Oe[e[2]],g:Oe[e[3]]<<4|Oe[e[4]],b:Oe[e[5]]<<4|Oe[e[6]],a:t===9?Oe[e[7]]<<4|Oe[e[8]]:255})),n}const c5=(e,t)=>e<255?t(e):"";function d5(e){var t=a5(e)?r5:o5;return e?"#"+t(e.r)+t(e.g)+t(e.b)+c5(e.a,t):void 0}const u5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
vendor: 8,033 bytes, line 2
2function gc(e,t,n){const s=t*Math.min(n,1-n),r=(i,o=(i+e/30)%12)=>n-s*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function h5(e,t,n){const s=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[s(5),s(3),s(1)]}function p5(e,t,n){const s=gc(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)s[r]*=1-t-n,s[r]+=t;return s}function f5(e,t,n,s,r){return e===r?(t-n)/s+(t<n?6:0):t===r?(n-e)/s+2:(e-t)/s+4}function br(e){const n=e.r/255,s=e.g/255,r=e.b/255,i=Math.max(n,s,r),o=Math.min(n,s,r),a=(i+o)/2;let c,l,d;return i!==o&&(d=i-o,l=a>.5?d/(2-i-o):d/(i+o),c=f5(n,s,r,d,i),c=c*60+.5),[c|0,l||0,a]}function yr(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(at)}function vr(e,t,n){return yr(gc,e,t,n)}function g5(e,t,n){return yr(p5,e,t,n)}function m5(e,t,n){return yr(h5,e,t,n)}function mc(e){return(e%360+360)%360}function b5(e){const t=u5.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?un(+t[5]):at(+t[5]));const r=mc(+t[2]),i=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?s=g5(r,i,o):t[1]==="hsv"?s=m5(r,i,o):s=vr(r,i,o),{r:s[0],g:s[1],b:s[2],a:n}}function y5(e,t){var n=br(e);n[0]=mc(n[0]+t),n=vr(n),e.r=n[0],e.g=n[1],e.b=n[2]}function v5(e){if(!e)return;const t=br(e),n=t[0],s=ca(t[1]),r=ca(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${r}%, ${Qe(e.a)})`:`hsl(${n}, ${s}%, ${r}%)`}const da={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ua={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function _5(){const e={},t=Object.keys(ua),n=Object.keys(da);let s,r,i,o,a;for(s=0;s<t.length;s++){for(o=a=t[s],r=0;r<n.length;r++)i=n[r],a=a.replace(i,da[i]);i=parseInt(ua[o],16),e[a]=[i>>16&255,i>>8&255,i&255]}return e}let Gn;function x5(e){Gn||(Gn=_5(),Gn.transparent=[0,0,0,0]);const t=Gn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const w5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function k5(e){const t=w5.exec(e);let n=255,s,r,i;if(t){if(t[7]!==s){const o=+t[7];n=t[8]?un(o):rt(o*255,0,255)}return s=+t[1],r=+t[3],i=+t[5],s=255&(t[2]?un(s):rt(s,0,255)),r=255&(t[4]?un(r):rt(r,0,255)),i=255&(t[6]?un(i):rt(i,0,255)),{r:s,g:r,b:i,a:n}}}function C5(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Qe(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const hi=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Lt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function S5(e,t,n){const s=Lt(Qe(e.r)),r=Lt(Qe(e.g)),i=Lt(Qe(e.b));return{r:at(hi(s+n*(Lt(Qe(t.r))-s))),g:at(hi(r+n*(Lt(Qe(t.g))-r))),b:at(hi(i+n*(Lt(Qe(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Hn(e,t,n){if(e){let s=br(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=vr(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function bc(e,t){return e&&Object.assign(t||{},e)}function ha(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=at(e[3]))):(t=bc(e,{r:0,g:0,b:0,a:1}),t.a=at(t.a)),t}function T5(e){return e.charAt(0)==="r"?k5(e):b5(e)}class ls{constructor(t){if(t instanceof ls)return t;const n=typeof t;let s;n==="object"?s=ha(t):n==="string"&&(s=l5(t)||x5(t)||T5(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=bc(this._rgb);return t&&(t.a=Qe(t.a)),t}set rgb(t){this._rgb=ha(t)}rgbString(){return this._valid?C5(this._rgb):void 0}hexString(){return this._valid?d5(this._rgb):void 0}hslString(){return this._valid?v5(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,r=t.rgb;let i;const o=n===i?.5:n,a=2*o-1,c=s.a-r.a,l=((a*c===-1?a:(a+c)/(1+a*c))+1)/2;i=1-l,s.r=255&l*s.r+i*r.r+.5,s.g=255&l*s.g+i*r.g+.5,s.b=255&l*s.b+i*r.b+.5,s.a=o*s.a+(1-o)*r.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=S5(this._rgb,t._rgb,n)),this}clone(){return new ls(this.rgb)}alpha(t){return this._rgb.a=at(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Ln(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hn(this._rgb,2,t),this}darken(t){return Hn(this._rgb,2,-t),this}saturate(t){return Hn(this._rgb,1,t),this}desaturate(t){return Hn(this._rgb,1,-t),this}rotate(t){return y5(this._rgb,t),this}}function yc(e){return new ls(e)}function vc(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function pa(e){return vc(e)?e:yc(e)}function pi(e){return vc(e)?e:yc(e).saturate(.5).darken(.1).hexString()}const Ct=Object.create(null),$i=Object.create(null);function bn(e,t){if(!t)return e;const n=t.split(".");for(let s=0,r=n.length;s<r;++s){const i=n[s];e=e[i]||(e[i]=Object.create(null))}return e}function fi(e,t,n){return typeof t=="string"?wn(bn(e,t),n):wn(bn(e,""),t)}class P5{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,s)=>pi(s.backgroundColor),this.hoverBorderColor=(n,s)=>pi(s.borderColor),this.hoverColor=(n,s)=>pi(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 6,113 bytes, line 2
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,n){return fi(this,t,n)}get(t){return bn(this,t)}describe(t,n){return fi($i,t,n)}override(t,n){return fi(Ct,t,n)}route(t,n,s,r){const i=bn(this,t),o=bn(this,s),a="_"+n;Object.defineProperties(i,{[a]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[a],l=o[r];return Q(c)?Object.assign({},l,c):ee(c,l)},set(c){this[a]=c}}})}}var te=new P5({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function A5(e){return!e||ne(e.size)||ne(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function cs(e,t,n,s,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>s&&(s=i),s}function O5(e,t,n,s){s=s||{};let r=s.data=s.data||{},i=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(r=s.data={},i=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let o=0;const a=n.length;let c,l,d,u,h;for(c=0;c<a;c++)if(u=n[c],u!=null&&le(u)!==!0)o=cs(e,r,i,o,u);else if(le(u))for(l=0,d=u.length;l<d;l++)h=u[l],h!=null&&!le(h)&&(o=cs(e,r,i,o,h));e.restore();const f=i.length/2;if(f>n.length){for(c=0;c<f;c++)delete r[i[c]];i.splice(0,f)}return o}function bt(e,t,n){const s=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*s)/s+r}function fa(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Ni(e,t,n,s){M5(e,t,n,s)}function M5(e,t,n,s,r){let i,o,a,c,l,d;const u=t.pointStyle,h=t.rotation,f=t.radius;let p=(h||0)*Zx;if(u&&typeof u=="object"&&(i=u.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,s),e.rotate(p),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),e.restore();return}if(!(isNaN(f)||f<=0)){switch(e.beginPath(),u){default:e.arc(n,s,f,0,oe),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(p)*f,s-Math.cos(p)*f),p+=na,e.lineTo(n+Math.sin(p)*f,s-Math.cos(p)*f),p+=na,e.lineTo(n+Math.sin(p)*f,s-Math.cos(p)*f),e.closePath();break;case"rectRounded":l=f*.516,c=f-l,o=Math.cos(p+sn)*c,a=Math.sin(p+sn)*c,e.arc(n-o,s-a,l,p-he,p-ue),e.arc(n+a,s-o,l,p-ue,p),e.arc(n+o,s+a,l,p,p+ue),e.arc(n-a,s+o,l,p+ue,p+he),e.closePath();break;case"rect":if(!h){c=Math.SQRT1_2*f,d=c,e.rect(n-d,s-c,2*d,2*c);break}p+=sn;case"rectRot":o=Math.cos(p)*f,a=Math.sin(p)*f,e.moveTo(n-o,s-a),e.lineTo(n+a,s-o),e.lineTo(n+o,s+a),e.lineTo(n-a,s+o),e.closePath();break;case"crossRot":p+=sn;case"cross":o=Math.cos(p)*f,a=Math.sin(p)*f,e.moveTo(n-o,s-a),e.lineTo(n+o,s+a),e.moveTo(n+a,s-o),e.lineTo(n-a,s+o);break;case"star":o=Math.cos(p)*f,a=Math.sin(p)*f,e.moveTo(n-o,s-a),e.lineTo(n+o,s+a),e.moveTo(n+a,s-o),e.lineTo(n-a,s+o),p+=sn,o=Math.cos(p)*f,a=Math.sin(p)*f,e.moveTo(n-o,s-a),e.lineTo(n+o,s+a),e.moveTo(n+a,s-o),e.lineTo(n-a,s+o);break;case"line":o=Math.cos(p)*f,a=Math.sin(p)*f,e.moveTo(n-o,s-a),e.lineTo(n+o,s+a);break;case"dash":e.moveTo(n,s),e.lineTo(n+Math.cos(p)*f,s+Math.sin(p)*f);break}e.fill(),t.borderWidth>0&&e.stroke()}}function Sn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function _r(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function xr(e){e.restore()}function L5(e,t,n,s,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else r==="after"!=!!s?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function I5(e,t,n,s){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(s?t.cp1x:t.cp2x,s?t.cp1y:t.cp2y,s?n.cp2x:n.cp1x,s?n.cp2y:n.cp1y,n.x,n.y)}function ds(e,t,n,s,r,i={}){const o=le(t)?t:[t],a=i.strokeWidth>0&&i.strokeColor!=="";let c,l;for(e.save(),e.font=r.string,R5(e,i),c=0;c<o.length;++c)l=o[c],a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),ne(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(l,n,s,i.maxWidth)),e.fillText(l,n,s,i.maxWidth),D5(e,n,s,l,i),s+=r.lineHeight;e.restore()}function R5(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ne(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function D5(e,t,n,s,r){if(r.strikethrough||r.underline){const i=e.measureText(s),o=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,c=n-i.actualBoundingBoxAscent,l=n+i.actualBoundingBoxDescent,d=r.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(o,d),e.lineTo(a,d),e.stroke()}}function us(e,t){const{x:n,y:s,w:r,h:i,radius:o}=t;e.arc(n+o.topLeft,s+o.topLeft,o.topLeft,-ue,he,!0),e.lineTo(n,s+i-o.bottomLeft),e.arc(n+o.bottomLeft,s+i-o.bottomLeft,o.bottomLeft,he,ue,!0),e.lineTo(n+r-o.bottomRight,s+i),e.arc(n+r-o.bottomRight,s+i-o.bottomRight,o.bottomRight,ue,0,!0),e.lineTo(n+r,s+o.topRight),e.arc(n+r-o.topRight,s+o.topRight,o.topRight,0,-ue,!0),e.lineTo(n+o.topLeft,s)}const F5=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),B5=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function E5(e,t){const n=(""+e).match(F5);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const $5=e=>+e||0;function wr(e,t){const n={},s=Q(t),r=s?Object.keys(t):t,i=Q(e)?s?o=>ee(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of r)n[o]=$5(i(o));return n}function _c(e){return wr(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Bt(e){return wr(e,["topLeft","topRight","bottomLeft","bottomRight"])}function De(e){const t=_c(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Se(e,t){e=e||{},t=t||te.font;let n=ee(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=ee(e.style,t.style);s&&!(""+s).match(B5)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const r={family:ee(e.family,t.family),lineHeight:E5(ee(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:ee(e.weight,t.weight),string:""};return r.string=A5(r),r}function Wn(e,t,n,s){let r,i,o;for(r=0,i=e.length;r<i;++r)if(o=e[r],o!==void 0&&o!==void 0)return o}
2function N5(e,t,n){const{min:s,max:r}=e,i=rc(t,(r-s)/2),o=(a,c)=>n&&a===0?0:a+c;return{min:o(s,-Math.abs(i)),max:o(r,i)}}function dt(e,t){return Object.assign(Object.create(e),t)}function kr(e,t=[""],n=e,s,r=()=>e[0]){Re(s)||(s=Cc("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:s,_getTarget:r,override:o=>kr([o,...e],t,n,s)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete o._keys,delete e[0][a],!0},get(o,a){return wc(o,a,()=>q5(a,t,e,o))},getOwnPropertyDescriptor(o,a){return Reflect.getOwnPropertyDescriptor(o._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,a){return ma(o).includes(a)},ownKeys(o){return ma(o)},set(o,a,c){const l=o._storage||(o._storage=r());return o[a]=l[a]=c,delete o._keys,!0}})}function Nt(e,t,n,s){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:xc(e,s),setContext:i=>Nt(e,i,n,s),override:i=>Nt(e.override(i),t,n,s)};return new Proxy(r,{deleteProperty(i,o){return delete i[o],delete e[o],!0},get(i,o,a){return wc(i,o,()=>j5(i,o,a))},getOwnPropertyDescriptor(i,o){return i._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(i,o,a){return e[o]=a,delete i[o],!0}})}function xc(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:s,isScriptable:ct(n)?n:()=>n,isIndexable:ct(s)?s:()=>s}}const z5=(e,t)=>e?e+fr(t):t,Cr=(e,t)=>Q(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function wc(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const s=n();return e[t]=s,s}function j5(e,t,n){const{_proxy:s,_context:r,_subProxy:i,_descriptors:o}=e;let a=s[t];return ct(a)&&o.isScriptable(t)&&(a=V5(t,a,e,n)),le(a)&&a.length&&(a=G5(t,a,e,o.isIndexable)),Cr(t,a)&&(a=Nt(a,r,i&&i[t],o)),a}function V5(e,t,n,s){const{_proxy:r,_context:i,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(i,o||s),a.delete(e),Cr(e,t)&&(t=Sr(r._scopes,r,e,t)),t}function G5(e,t,n,s){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=n;if(Re(i.index)&&s(e))t=t[i.index%t.length];else if(Q(t[0])){const c=t,l=r._scopes.filter(d=>d!==c);t=[];for(const d of c){const u=Sr(l,r,e,d);t.push(Nt(u,i,o&&o[e],a))}}return t}function kc(e,t,n){return ct(e)?e(t,n):e}const H5=(e,t)=>e===!0?t:typeof e=="string"?lt(t,e):void 0;function W5(e,t,n,s,r){for(const i of t){const o=H5(n,i);if(o){e.add(o);const a=kc(o._fallback,n,r);if(Re(a)&&a!==n&&a!==s)return a}else if(o===!1&&Re(s)&&n!==s)return null}return!1}function Sr(e,t,n,s){const r=t._rootScopes,i=kc(t._fallback,n,s),o=[...e,...r],a=new Set;a.add(s);let c=ga(a,o,n,i||n,s);return c===null||Re(i)&&i!==n&&(c=ga(a,o,i,c,s),c===null)?!1:kr(Array.from(a),[""],r,i,()=>U5(t,n,s))}function ga(e,t,n,s,r){for(;n;)n=W5(e,t,n,s,r);return n}function U5(e,t,n){const s=e._getTarget();t in s||(s[t]={});const r=s[t];return le(r)&&Q(n)?n:r}function q5(e,t,n,s){let r;for(const i of t)if(r=Cc(z5(i,e),n),Re(r))return Cr(e,r)?Sr(n,s,e,r):r}function Cc(e,t){for(const n of t){if(!n)continue;const s=n[e];if(Re(s))return s}}function ma(e){let t=e._keys;return t||(t=e._keys=Y5(e._scopes)),t}function Y5(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(s);return Array.from(t)}function Sc(e,t,n,s){const{iScale:r}=e,{key:i="r"}=this._parsing,o=new Array(s);let a,c,l,d;for(a=0,c=s;a<c;++a)l=a+n,d=t[l],o[a]={r:r.parse(lt(d,i),l)};return o}const Z5=Number.EPSILON||1e-14,zt=(e,t)=>t<e.length&&!e[t].skip&&e[t],Tc=e=>e==="x"?"y":"x";function K5(e,t,n,s){const r=e.skip?t:e,i=t,o=n.skip?t:n,a=Bi(i,r),c=Bi(o,i);let l=a/(a+c),d=c/(a+c);l=isNaN(l)?0:l,d=isNaN(d)?0:d;const u=s*l,h=s*d;return{previous:{x:i.x-u*(o.x-r.x),y:i.y-u*(o.y-r.y)},next:{x:i.x+h*(o.x-r.x),y:i.y+h*(o.y-r.y)}}}
vendor: 11,100 bytes, line 2
2function X5(e,t,n){const s=e.length;let r,i,o,a,c,l=zt(e,0);for(let d=0;d<s-1;++d)if(c=l,l=zt(e,d+1),!(!c||!l)){if(gn(t[d],0,Z5)){n[d]=n[d+1]=0;continue}r=n[d]/t[d],i=n[d+1]/t[d],a=Math.pow(r,2)+Math.pow(i,2),!(a<=9)&&(o=3/Math.sqrt(a),n[d]=r*o*t[d],n[d+1]=i*o*t[d])}}function J5(e,t,n="x"){const s=Tc(n),r=e.length;let i,o,a,c=zt(e,0);for(let l=0;l<r;++l){if(o=a,a=c,c=zt(e,l+1),!a)continue;const d=a[n],u=a[s];o&&(i=(d-o[n])/3,a[`cp1${n}`]=d-i,a[`cp1${s}`]=u-i*t[l]),c&&(i=(c[n]-d)/3,a[`cp2${n}`]=d+i,a[`cp2${s}`]=u+i*t[l])}}function Q5(e,t="x"){const n=Tc(t),s=e.length,r=Array(s).fill(0),i=Array(s);let o,a,c,l=zt(e,0);for(o=0;o<s;++o)if(a=c,c=l,l=zt(e,o+1),!!c){if(l){const d=l[t]-c[t];r[o]=d!==0?(l[n]-c[n])/d:0}i[o]=a?l?We(r[o-1])!==We(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}X5(e,r,i),J5(e,i,t)}function Un(e,t,n){return Math.max(Math.min(e,n),t)}function e6(e,t){let n,s,r,i,o,a=Sn(e[0],t);for(n=0,s=e.length;n<s;++n)o=i,i=a,a=n<s-1&&Sn(e[n+1],t),i&&(r=e[n],o&&(r.cp1x=Un(r.cp1x,t.left,t.right),r.cp1y=Un(r.cp1y,t.top,t.bottom)),a&&(r.cp2x=Un(r.cp2x,t.left,t.right),r.cp2y=Un(r.cp2y,t.top,t.bottom)))}function t6(e,t,n,s,r){let i,o,a,c;if(t.spanGaps&&(e=e.filter(l=>!l.skip)),t.cubicInterpolationMode==="monotone")Q5(e,r);else{let l=s?e[e.length-1]:e[0];for(i=0,o=e.length;i<o;++i)a=e[i],c=K5(l,a,e[Math.min(i+1,o-(s?0:1))%o],t.tension),a.cp1x=c.previous.x,a.cp1y=c.previous.y,a.cp2x=c.next.x,a.cp2y=c.next.y,l=a}t.capBezierPoints&&e6(e,n)}function Pc(){return typeof window<"u"&&typeof document<"u"}function Tr(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function hs(e,t,n){let s;return typeof e=="string"?(s=parseInt(e,10),e.indexOf("%")!==-1&&(s=s/100*t.parentNode[n])):s=e,s}const vs=e=>window.getComputedStyle(e,null);function n6(e,t){return vs(e).getPropertyValue(t)}const s6=["top","right","bottom","left"];function kt(e,t,n){const s={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=s6[r];s[i]=parseFloat(e[t+"-"+i+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const i6=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function r6(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=s;let o=!1,a,c;if(i6(r,i,e.target))a=r,c=i;else{const l=t.getBoundingClientRect();a=s.clientX-l.left,c=s.clientY-l.top,o=!0}return{x:a,y:c,box:o}}function vt(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,r=vs(n),i=r.boxSizing==="border-box",o=kt(r,"padding"),a=kt(r,"border","width"),{x:c,y:l,box:d}=r6(e,n),u=o.left+(d&&a.left),h=o.top+(d&&a.top);let{width:f,height:p}=t;return i&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((c-u)/f*n.width/s),y:Math.round((l-h)/p*n.height/s)}}function o6(e,t,n){let s,r;if(t===void 0||n===void 0){const i=Tr(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const o=i.getBoundingClientRect(),a=vs(i),c=kt(a,"border","width"),l=kt(a,"padding");t=o.width-l.width-c.width,n=o.height-l.height-c.height,s=hs(a.maxWidth,i,"clientWidth"),r=hs(a.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:s||as,maxHeight:r||as}}const gi=e=>Math.round(e*10)/10;function a6(e,t,n,s){const r=vs(e),i=kt(r,"margin"),o=hs(r.maxWidth,e,"clientWidth")||as,a=hs(r.maxHeight,e,"clientHeight")||as,c=o6(e,t,n);let{width:l,height:d}=c;if(r.boxSizing==="content-box"){const u=kt(r,"border","width"),h=kt(r,"padding");l-=h.width+u.width,d-=h.height+u.height}return l=Math.max(0,l-i.width),d=Math.max(0,s?Math.floor(l/s):d-i.height),l=gi(Math.min(l,o,c.maxWidth)),d=gi(Math.min(d,a,c.maxHeight)),l&&!d&&(d=gi(l/2)),{width:l,height:d}}function ba(e,t,n){const s=t||1,r=Math.floor(e.height*s),i=Math.floor(e.width*s);e.height=r/s,e.width=i/s;const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||o.height!==r||o.width!==i?(e.currentDevicePixelRatio=s,o.height=r,o.width=i,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const l6=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e})();function ya(e,t){const n=n6(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function _t(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function c6(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function d6(e,t,n,s){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},o=_t(e,r,n),a=_t(r,i,n),c=_t(i,t,n),l=_t(o,a,n),d=_t(a,c,n);return _t(l,d,n)}const va=new Map;function u6(e,t){t=t||{};const n=e+JSON.stringify(t);let s=va.get(n);return s||(s=new Intl.NumberFormat(e,t),va.set(n,s)),s}function In(e,t,n){return u6(t,n).format(e)}const h6=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},p6=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function mi(e,t,n){return e?h6(t,n):p6()}function f6(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function g6(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Ac(e){return e==="angle"?{between:kn,compare:Jx,normalize:Ce}:{between:Cn,compare:(t,n)=>t-n,normalize:t=>t}}function _a({start:e,end:t,count:n,loop:s,style:r}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:r}}function m6(e,t,n){const{property:s,start:r,end:i}=n,{between:o,normalize:a}=Ac(s),c=t.length;let{start:l,end:d,loop:u}=e,h,f;if(u){for(l+=c,d+=c,h=0,f=c;h<f&&o(a(t[l%c][s]),r,i);++h)l--,d--;l%=c,d%=c}return d<l&&(d+=c),{start:l,end:d,loop:u,style:e.style}}function Oc(e,t,n){if(!n)return[e];const{property:s,start:r,end:i}=n,o=t.length,{compare:a,between:c,normalize:l}=Ac(s),{start:d,end:u,loop:h,style:f}=m6(e,t,n),p=[];let y=!1,m=null,b,_,C;const T=()=>c(r,C,b)&&a(r,C)!==0,M=()=>a(i,b)===0||c(i,C,b),L=()=>y||T(),$=()=>!y||M();for(let U=d,I=d;U<=u;++U)_=t[U%o],!_.skip&&(b=l(_[s]),b!==C&&(y=c(b,r,i),m===null&&L()&&(m=a(b,r)===0?U:I),m!==null&&$()&&(p.push(_a({start:m,end:U,loop:h,count:o,style:f})),m=null),I=U,C=b));return m!==null&&p.push(_a({start:m,end:u,loop:h,count:o,style:f})),p}function Mc(e,t){const n=[],s=e.segments;for(let r=0;r<s.length;r++){const i=Oc(s[r],e.points,t);i.length&&n.push(...i)}return n}function b6(e,t,n,s){let r=0,i=t-1;if(n&&!s)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}function y6(e,t,n,s){const r=e.length,i=[];let o=t,a=e[t],c;for(c=t+1;c<=n;++c){const l=e[c%r];l.skip||l.stop?a.skip||(s=!1,i.push({start:t%r,end:(c-1)%r,loop:s}),t=o=l.stop?c:null):(o=c,a.skip&&(t=c)),a=l}return o!==null&&i.push({start:t%r,end:o%r,loop:s}),i}function v6(e,t){const n=e.points,s=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:o,end:a}=b6(n,r,i,s);if(s===!0)return xa(e,[{start:o,end:a,loop:i}],n,t);const c=a<o?a+r:a,l=!!e._fullLoop&&o===0&&a===r-1;return xa(e,y6(n,o,c,l),n,t)}function xa(e,t,n,s){return!s||!s.setContext||!n?t:_6(e,t,n,s)}function _6(e,t,n,s){const r=e._chart.getContext(),i=wa(e.options),{_datasetIndex:o,options:{spanGaps:a}}=e,c=n.length,l=[];let d=i,u=t[0].start,h=u;function f(p,y,m,b){const _=a?-1:1;if(p!==y){for(p+=c;n[p%c].skip;)p-=_;for(;n[y%c].skip;)y+=_;p%c!==y%c&&(l.push({start:p%c,end:y%c,loop:m,style:b}),d=b,u=y%c)}}for(const p of t){u=a?u:p.start;let y=n[u%c],m;for(h=u+1;h<=p.end;h++){const b=n[h%c];m=wa(s.setContext(dt(r,{type:"segment",p0:y,p1:b,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:o}))),x6(m,d)&&f(u,h-1,p.loop,d),y=b,d=m}u<h-1&&f(u,h-1,p.loop,d)}return l}function wa(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function x6(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}class w6{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,s,r){const i=n.listeners[r],o=n.duration;i.forEach(a=>a({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(s-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=uc.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,r)=>{if(!s.running||!s.items.length)return;const i=s.items;let o=i.length-1,a=!1,c;for(;o>=0;--o)c=i[o],c._active?(c._total>s.duration&&(s.duration=c._total),c.tick(t),a=!0):(i[o]=i[i.length-1],i.pop());a&&(r.draw(),this._notify(r,s,t,"progress")),i.length||(s.running=!1,this._notify(r,s,t,"complete"),s.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,r)=>Math.max(s,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let r=s.length-1;for(;r>=0;--r)s[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Xe=new w6;const ka="transparent",k6={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=pa(e||ka),r=s.valid&&pa(t||ka);return r&&r.valid?r.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class C6{constructor(t,n,s,r){const i=n[s];r=Wn([t.to,r,i,t.from]);const o=Wn([t.from,i,r]);this._active=!0,this._fn=t.fn||k6[t.type||typeof o],this._easing=mn[t.easing]||mn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const r=this._target[this._prop],i=s-this._start,o=this._duration-i;this._start=s,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Wn([t.to,n,r,t.from]),this._from=Wn([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let c;if(this._active=i!==a&&(o||n<s),!this._active){this._target[r]=a,this._notify(!0);return}if(n<0){this._target[r]=i;return}c=n/s%2,c=o&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[r]=this._fn(i,a,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s}
vendor: 4,351 bytes, line 2
2)})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let r=0;r<s.length;r++)s[r][n]()}}const S6=["x","y","borderWidth","radius","tension"],T6=["color","borderColor","backgroundColor"];te.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const P6=Object.keys(te.animation);te.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"});te.set("animations",{colors:{type:"color",properties:T6},numbers:{type:"number",properties:S6}});te.describe("animations",{_fallback:"animation"});te.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}});class Lc{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Q(t))return;const n=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const r=t[s];if(!Q(r))return;const i={};for(const o of P6)i[o]=r[o];(le(r.properties)&&r.properties||[s]).forEach(o=>{(o===s||!n.has(o))&&n.set(o,i)})})}_animateOptions(t,n){const s=n.options,r=O6(t,s);if(!r)return[];const i=this._createAnimations(r,s);return s.$shared&&A6(t.options.$animations,s).then(()=>{t.options=s},()=>{}),i}_createAnimations(t,n){const s=this._properties,r=[],i=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let c;for(c=o.length-1;c>=0;--c){const l=o[c];if(l.charAt(0)==="$")continue;if(l==="options"){r.push(...this._animateOptions(t,n));continue}const d=n[l];let u=i[l];const h=s.get(l);if(u)if(h&&u.active()){u.update(h,d,a);continue}else u.cancel();if(!h||!h.duration){t[l]=d;continue}i[l]=u=new C6(h,t,l,d),r.push(u)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return Xe.add(this._chart,s),!0}}function A6(e,t){const n=[],s=Object.keys(t);for(let r=0;r<s.length;r++){const i=e[s[r]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function O6(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Ca(e,t){const n=e&&e.options||{},s=n.reverse,r=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:s?i:r,end:s?r:i}}function M6(e,t,n){if(n===!1)return!1;const s=Ca(e,n),r=Ca(t,n);return{top:r.end,right:s.end,bottom:r.start,left:s.start}}function L6(e){let t,n,s,r;return Q(e)?(t=e.top,n=e.right,s=e.bottom,r=e.left):t=n=s=r=e,{top:t,right:n,bottom:s,left:r,disabled:e===!1}}function Ic(e,t){const n=[],s=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=s.length;r<i;++r)n.push(s[r].index);return n}function Sa(e,t,n,s={}){const r=e.keys,i=s.mode==="single";let o,a,c,l;if(t!==null){for(o=0,a=r.length;o<a;++o){if(c=+r[o],c===n){if(s.all)continue;break}l=e.values[c],pe(l)&&(i||t===0||We(t)===We(l))&&(t+=l)}return t}}function I6(e){const t=Object.keys(e),n=new Array(t.length);let s,r,i;for(s=0,r=t.length;s<r;++s)i=t[s],n[s]={x:i,y:e[i]};return n}function Ta(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function R6(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function D6(e){const{min:t,max:n,minDefined:s,maxDefined:r}=e.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function F6(e,t,n){const s=e[t]||(e[t]={});return s[n]||(s[n]={})}function Pa(e,t,n,s){for(const r of t.getMatchingVisibleMetas(s).reverse()){const i=e[r.index];if(n&&i>0||!n&&i<0)return r.index}return null}function Aa(e,t){const{chart:n,_cachedMeta:s}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:a}=s,c=i.axis,l=o.axis,d=R6(i,o,s),u=t.length;let h;for(let f=0;f<u;++f){const p=t[f],{[c]:y,[l]:m}=p,b=p._stacks||(p._stacks={});h=b[l]=F6(r,d,y),h[a]=m,h._top=Pa(h,o,!0,s.type),h._bottom=Pa(h,o,!1,s.type)}}function bi(e,t){const n=e.scales;return Object.keys(n).filter(s=>n[s].axis===t).shift()}function B6(e,t){return dt(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function E6(e,t,n){return dt(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function rn(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;
vendor: 18,772 bytes, line 2
2if(s){t=t||e._parsed;for(const r of t){const i=r._stacks;if(!i||i[s]===void 0||i[s][n]===void 0)return;delete i[s][n]}}}const yi=e=>e==="reset"||e==="none",Oa=(e,t)=>t?e:Object.assign({},e),$6=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ic(n,!0),values:null};class je{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ta(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&rn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),r=(u,h,f,p)=>u==="x"?h:u==="r"?p:f,i=n.xAxisID=ee(s.xAxisID,bi(t,"x")),o=n.yAxisID=ee(s.yAxisID,bi(t,"y")),a=n.rAxisID=ee(s.rAxisID,bi(t,"r")),c=n.indexAxis,l=n.iAxisID=r(c,i,o,a),d=n.vAxisID=r(c,o,i,a);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(l),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ra(this._data,this),t._stacked&&rn(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(Q(n))this._data=I6(n);else if(s!==n){if(s){ra(s,this);const r=this._cachedMeta;rn(r),r._parsed=[]}n&&Object.isExtensible(n)&&n5(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let r=!1;this._dataCheck();const i=n._stacked;n._stacked=Ta(n.vScale,n),n.stack!==s.stack&&(r=!0,rn(n),n.stack=s.stack),this._resyncElements(t),(r||i!==n._stacked)&&Aa(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:r}=this,{iScale:i,_stacked:o}=s,a=i.axis;let c=t===0&&n===r.length?!0:s._sorted,l=t>0&&s._parsed[t-1],d,u,h;if(this._parsing===!1)s._parsed=r,s._sorted=!0,h=r;else{le(r[t])?h=this.parseArrayData(s,r,t,n):Q(r[t])?h=this.parseObjectData(s,r,t,n):h=this.parsePrimitiveData(s,r,t,n);const f=()=>u[a]===null||l&&u[a]<l[a];for(d=0;d<n;++d)s._parsed[d+t]=u=h[d],c&&(f()&&(c=!1),l=u);s._sorted=c}o&&Aa(this,h)}parsePrimitiveData(t,n,s,r){const{iScale:i,vScale:o}=t,a=i.axis,c=o.axis,l=i.getLabels(),d=i===o,u=new Array(r);let h,f,p;for(h=0,f=r;h<f;++h)p=h+s,u[h]={[a]:d||i.parse(l[p],p),[c]:o.parse(n[p],p)};return u}parseArrayData(t,n,s,r){const{xScale:i,yScale:o}=t,a=new Array(r);let c,l,d,u;for(c=0,l=r;c<l;++c)d=c+s,u=n[d],a[c]={x:i.parse(u[0],d),y:o.parse(u[1],d)};return a}parseObjectData(t,n,s,r){const{xScale:i,yScale:o}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=new Array(r);let d,u,h,f;for(d=0,u=r;d<u;++d)h=d+s,f=n[h],l[d]={x:i.parse(lt(f,a),h),y:o.parse(lt(f,c),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,s){const r=this.chart,i=this._cachedMeta,o=n[t.axis],a={keys:Ic(r,!0),values:n._stacks[t.axis]};return Sa(a,o,i.index,{mode:s})}updateRangeFromParsed(t,n,s,r){const i=s[n.axis];let o=i===null?NaN:i;const a=r&&s._stacks[n.axis];r&&a&&(r.values=a,o=Sa(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const s=this._cachedMeta,r=s._parsed,i=s._sorted&&t===s.iScale,o=r.length,a=this._getOtherScale(t),c=$6(n,s,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=D6(a);let h,f;function p(){f=r[h];const y=f[a.axis];return!pe(f[t.axis])||d>y||u<y}for(h=0;h<o&&!(!p()&&(this.updateRangeFromParsed(l,t,f,c),i));++h);if(i){for(h=o-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,f,c);break}}return l}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let r,i,o;for(r=0,i=n.length;r<i;++r)o=n[r][t.axis],pe(o)&&s.push(o);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,s=n.iScale,r=n.vScale,i=this.getParsed(t);return{label:s?""+s.getLabelForValue(i[s.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=L6(ee(this.options.clip,M6(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,s=this._cachedMeta,r=s.data||[],i=n.chartArea,o=[],a=this._drawStart||0,c=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let d;for(s.dataset&&s.dataset.draw(t,i,a,c),d=a;d<a+c;++d){const u=r[d];u.hidden||(u.active&&l?o.push(u):u.draw(t,i))}for(d=0;d<o.length;++d)o[d].draw(t,i)}getStyle(t,n){const s=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,n,s){const r=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];i=o.$context||(o.$context=E6(this.getContext(),t,o)),i.parsed=this.getParsed(t),i.raw=r.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=B6(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=s,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",s){const r=n==="active",i=this._cachedDataOpts,o=t+"-"+n,a=i[o],c=this.enableOptionSharing&&Re(s);if(a)return Oa(a,c);const l=this.chart.config,d=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),d),f=Object.keys(te.elements[t]),p=()=>this.getContext(s,r),y=l.resolveNamedOptions(h,f,p,u);return y.$shared&&(y.$shared=c,i[o]=Object.freeze(Oa(y,c))),y}_resolveAnimations(t,n,s){const r=this.chart,i=this._cachedDataOpts,o=`animation-${n}`,a=i[o];if(a)return a;let c;if(r.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),u);c=d.createResolver(h,this.getContext(t,s,n))}const l=new Lc(r,c&&c.animations);return c&&c._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||yi(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),r=this._sharedOptions,i=this.getSharedOptions(s),o=this.includeOptions(n,i)||i!==r;return this.updateSharedOptions(i,n,s),{sharedOptions:i,includeOptions:o}}updateElement(t,n,s,r){yi(r)?Object.assign(t,s):this._resolveAnimations(n,r).update(t,s)}updateSharedOptions(t,n,s){t&&!yi(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,r){t.active=r;const i=this.getStyle(n,r);this._resolveAnimations(n,s,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,c,l]of this._syncList)this[a](c,l);this._syncList=[];const r=s.length,i=n.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,n,s=!0){const r=this._cachedMeta,i=r.data,o=t+n;let a;const c=l=>{for(l.length+=n,a=l.length-1;a>=o;a--)l[a]=l[a-n]};for(c(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&c(r._parsed),this.parse(t,n),s&&this.updateElements(i,t,n,"reset")}updateElements(t,n,s,r){}_removeElements(t,n){const s=this._cachedMeta;if(this._parsing){const r=s._parsed.splice(t,n);s._stacked&&rn(s,r)}s.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,s,r]=t;this[n](s,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}je.defaults={};je.prototype.datasetElementType=null;je.prototype.dataElementType=null;function N6(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let s=[];for(let r=0,i=n.length;r<i;r++)s=s.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=dc(s.sort((r,i)=>r-i))}return e._cache.$bar}function z6(e){const t=e.iScale,n=N6(t,e.type);let s=t._length,r,i,o,a;const c=()=>{o===32767||o===-32768||(Re(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(r=0,i=n.length;r<i;++r)o=t.getPixelForValue(n[r]),c();for(a=void 0,r=0,i=t.ticks.length;r<i;++r)o=t.getPixelForTick(r),c();return s}function j6(e,t,n,s){const r=n.barThickness;let i,o;return ne(r)?(i=t.min*n.categoryPercentage,o=n.barPercentage):(i=r*s,o=1),{chunk:i/s,ratio:o,start:t.pixels[e]-i/2}}function V6(e,t,n,s){const r=t.pixels,i=r[e];let o=e>0?r[e-1]:null,a=e<r.length-1?r[e+1]:null;const c=n.categoryPercentage;o===null&&(o=i-(a===null?t.end-t.start:a-i)),a===null&&(a=i+i-o);const l=i-(i-Math.min(o,a))/2*c;return{chunk:Math.abs(a-o)/2*c/s,ratio:n.barPercentage,start:l}}function G6(e,t,n,s){const r=n.parse(e[0],s),i=n.parse(e[1],s),o=Math.min(r,i),a=Math.max(r,i);let c=o,l=a;Math.abs(o)>Math.abs(a)&&(c=a,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:r,end:i,min:o,max:a}}function Rc(e,t,n,s){return le(e)?G6(e,t,n,s):t[n.axis]=n.parse(e,s),t}function Ma(e,t,n,s){const r=e.iScale,i=e.vScale,o=r.getLabels(),a=r===i,c=[];let l,d,u,h;for(l=n,d=n+s;l<d;++l)h=t[l],u={},u[r.axis]=a||r.parse(o[l],l),c.push(Rc(h,u,i,l));return c}function vi(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function H6(e,t,n){return e!==0?We(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function W6(e){let t,n,s,r,i;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.base<e.y,n="bottom",s="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:s,reverse:t,top:r,bottom:i}}function U6(e,t,n,s){let r=t.borderSkipped;const i={};if(!r){e.borderSkipped=i;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:c,top:l,bottom:d}=W6(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===s?r=l:(n._bottom||0)===s?r=d:(i[La(d,o,a,c)]=!0,r=l)),i[La(r,o,a,c)]=!0,e.borderSkipped=i}function La(e,t,n,s){return s?(e=q6(e,t,n),e=Ia(e,n,t)):e=Ia(e,t,n),e}function q6(e,t,n){return e===t?n:e===n?t:e}function Ia(e,t,n){return e==="start"?t:e==="end"?n:e}function Y6(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Pr extends je{parsePrimitiveData(t,n,s,r){return Ma(t,n,s,r)}parseArrayData(t,n,s,r){return Ma(t,n,s,r)}parseObjectData(t,n,s,r){const{iScale:i,vScale:o}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=i.axis==="x"?a:c,d=o.axis==="x"?a:c,u=[];let h,f,p,y;for(h=s,f=s+r;h<f;++h)y=n[h],p={},p[i.axis]=i.parse(lt(y,l),h),u.push(Rc(lt(y,d),p,o,h));return u}updateRangeFromParsed(t,n,s,r){super.updateRangeFromParsed(t,n,s,r);const i=s._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:s,vScale:r}=n,i=this.getParsed(t),o=i._custom,a=vi(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+s.getLabelForValue(i[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,s,r){const i=r==="reset",{index:o,_cachedMeta:{vScale:a}}=this,c=a.getBasePixel(),l=a.isHorizontal(),d=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(n,r);for(let f=n;f<n+s;f++){const p=this.getParsed(f),y=i||ne(p[a.axis])?{base:c,head:c}:this._calculateBarValuePixels(f),m=this._calculateBarIndexPixels(f,d),b=(p._stacks||{})[a.axis],_={horizontal:l,base:y.base,enableBorderRadius:!b||vi(p._custom)||o===b._top||o===b._bottom,x:l?y.head:m.center,y:l?m.center:y.head,height:l?m.size:Math.abs(y.size),width:l?Math.abs(y.size):m.size};h&&(_.options=u||this.resolveDataElementOptions(f,t[f].active?"active":r));const C=_.options||t[f].options;U6(_,C,b,o),Y6(_,C,d.ratio),this.updateElement(t[f],f,_,r)}}_getStacks(t,n){const{iScale:s}=this._cachedMeta,r=s.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),i=s.options.stacked,o=[],a=c=>{const l=c.controller.getParsed(n),d=l&&l[c.vScale.axis];if(ne(d)||isNaN(d))return!0};for(const c of r)if(!(n!==void 0&&a(c))&&((i===!1||o.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const r=this._getStacks(t,s),i=n!==void 0?r.indexOf(n):-1;return i===-1?r.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,r=[];let i,o;for(i=0,o=n.data.length;i<o;++i)r.push(s.getPixelForValue(this.getParsed(i)[s.axis],i));const a=t.barThickness;return{min:a||z6(n),pixels:r,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:s},options:{base:r,minBarLength:i}}=this,o=r||0,a=this.getParsed(t),c=a._custom,l=vi(c);let d=a[n.axis],u=0,h=s?this.applyStack(n,a,s):d,f,p;h!==d&&(u=h-d,h=d),l&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&We(d)!==We(c.barEnd)&&(u=0),u+=d);const y=!ne(r)&&!l?r:u;let m=n.getPixelForValue(y);if(this.chart.getDataVisibility(t)?f=n.getPixelForValue(u+h):f=m,p=f-m,Math.abs(p)<i){p=H6(p,n,o)*i,d===o&&(m-=p/2);const b=n.getPixelForDecimal(0),_=n.getPixelForDecimal(1),C=Math.min(b,_),T=Math.max(b,_);m=Math.max(Math.min(m,T),C),f=m+p}if(m===n.getPixelForValue(o)){const b=We(p)*n.getLineWidthForValue(o)/2;m+=b,p-=b}return{size:p,base:m,head:f,center:f+p/2}}_calculateBarIndexPixels(t,n){const s=n.scale,r=this.options,i=r.skipNull,o=ee(r.maxBarThickness,1/0);let a,c;if(n.grouped){const l=i?this._getStackCount(t):n.stackCount,d=r.barThickness==="flex"?V6(t,n,r,l):j6(t,n,r,l),u=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);a=d.start+d.chunk*u+d.chunk/2,c=Math.min(o,d.chunk*d.ratio)}else a=s.getPixelForValue(this.getParsed(t)[s.axis],t),c=Math.min(o,n.min*n.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,n=t.vScale,s=t.data,r=s.length;let i=0;for(;i<r;++i)this.getParsed(i)[n.axis]!==null&&s[i].draw(this._ctx)}}Pr.id="bar";Pr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};Pr.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Ar extends je{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,s,r){const i=super.parsePrimitiveData(t,n,s,r);for(let o=0;o<i.length;o++)i[o]._custom=this.resolveDataElementOptions(o+s).radius;return i}parseArrayData(t,n,s,r){const i=super.parseArrayData(t,n,s,r);for(let o=0;o<i.length;o++){const a=n[s+o];i[o]._custom=ee(a[2],this.resolveDataElementOptions(o+s).radius)}return i}parseObjectData(t,n,s,r){const i=super.parseObjectData(t,n,s,r);for(let o=0;o<i.length;o++){const a=n[s+o];i[o]._custom=ee(a&&a.r&&+a.r,this.resolveDataElementOptions(o+s).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let s=t.length-1;s>=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,{xScale:s,yScale:r}=n,i=this.getParsed(t),o=s.getLabelForValue(i.x),a=r.getLabelForValue(i.y),c=i._custom;return{label:n.label,value:"("+o+", "+a+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,r){const i=r==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:c,includeOptions:l}=this._getSharedOptions(n,r),d=o.axis,u=a.axis;for(let h=n;h<n+s;h++){const f=t[h],p=!i&&this.getParsed(h),y={},m=y[d]=i?o.getPixelForDecimal(.5):o.getPixelForValue(p[d]),b=y[u]=i?a.getBasePixel():a.getPixelForValue(p[u]);y.skip=isNaN(m)||isNaN(b),l&&(y.options=c||this.resolveDataElementOptions(h,f.active?"active":r),i&&(y.options.radius=0)),this.updateElement(f,h,y,r)}}resolveDataElementOptions(t,n){const s=this.getParsed(t);let r=super.resolveDataElementOptions(t,n);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const i=r.radius;return n!=="active"&&(r.radius=0),r.radius+=ee(s&&s._custom,i),r}}Ar.id="bubble";Ar.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};Ar.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function Z6(e,t,n){let s=1,r=1,i=0,o=0;if(t<oe){const a=e,c=a+t,l=Math.cos(a),d=Math.sin(a),u=Math.cos(c),h=Math.sin(c),f=(C,T,M)=>kn(C,a,c,!0)?1:Math.max(T,T*n,M,M*n),p=(C,T,M)=>kn(C,a,c,!0)?-1:Math.min(T,T*n,M,M*n),y=f(0,l,u),m=f(ue,d,h),b=p(he,l,u),_=p(he+ue,d,h);s=(y-b)/2,r=(m-_)/2,i=-(y+b)/2,o=-(m+_)/2}return{ratioX:s,ratioY:r,offsetX:i,offsetY:o}}class Rn extends je{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=s;else{let i=c=>+s[c];if(Q(s[t])){const{key:c="value"}=this._parsing;i=l=>+lt(s[l],c)}let o,a;for(o=t,a=t+n;o<a;++o)r._parsed[o]=i(o)}}_getRotation(){return $e(this.options.rotation-90)}_getCircumference(){return $e(this.options.circumference)}
2_getRotationExtents(){let t=oe,n=-oe;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)){const r=this.chart.getDatasetMeta(s).controller,i=r._getRotation(),o=r._getCircumference();t=Math.min(t,i),n=Math.max(n,i+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:s}=n,r=this._cachedMeta,i=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(s.width,s.height)-o)/2,0),c=Math.min(Vx(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:p,offsetY:y}=Z6(u,d,c),m=(s.width-o)/h,b=(s.height-o)/f,_=Math.max(Math.min(m,b)/2,0),C=rc(this.options.radius,_),T=Math.max(C*c,0),M=(C-T)/this._getVisibleDatasetWeightTotal();this.offsetX=p*C,this.offsetY=y*C,r.total=this.calculateTotal(),this.outerRadius=C-M*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-M*l,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const s=this.options,r=this._cachedMeta,i=this._getCircumference();return n&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/oe)}updateElements(t,n,s,r){const i=r==="reset",o=this.chart,a=o.chartArea,l=o.options.animation,d=(a.left+a.right)/2,u=(a.top+a.bottom)/2,h=i&&l.animateScale,f=h?0:this.innerRadius,p=h?0:this.outerRadius,{sharedOptions:y,includeOptions:m}=this._getSharedOptions(n,r);let b=this._getRotation(),_;for(_=0;_<n;++_)b+=this._circumference(_,i);for(_=n;_<n+s;++_){const C=this._circumference(_,i),T=t[_],M={x:d+this.offsetX,y:u+this.offsetY,startAngle:b,endAngle:b+C,circumference:C,outerRadius:p,innerRadius:f};m&&(M.options=y||this.resolveDataElementOptions(_,T.active?"active":r)),b+=C,this.updateElement(T,_,M,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let s=0,r;for(r=0;r<n.length;r++){const i=t._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(s+=Math.abs(i))}return s}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?oe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,r=s.data.labels||[],i=In(n._parsed[t],s.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const s=this.chart;let r,i,o,a,c;if(!t){for(r=0,i=s.data.datasets.length;r<i;++r)if(s.isDatasetVisible(r)){o=s.getDatasetMeta(r),t=o.data,a=o.controller;break}}if(!t)return 0;for(r=0,i=t.length;r<i;++r)c=a.resolveDataElementOptions(r),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let s=0,r=t.length;s<r;++s){const i=this.resolveDataElementOptions(s);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(n+=this._getRingWeight(s));return n}_getRingWeight(t){return Math.max(ee(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Rn.id="doughnut";Rn.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};Rn.descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"};Rn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((s,r)=>{const o=e.getDatasetMeta(0).controller.getStyle(r);return{text:s,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){let t=e.label;const n=": "+e.formattedValue;return le(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class _s extends je{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:r=[],_dataset:i}=n,o=this.chart._animationsDisabled;let{start:a,count:c}=pc(n,r,o);this._drawStart=a,this._drawCount=c,fc(n)&&(a=0,c=r.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!i._decimated,s.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(s,void 0,{animated:!o,options:l},t),this.updateElements(r,a,c,t)}updateElements(t,n,s,r){const i=r==="reset",{iScale:o,vScale:a,_stacked:c,_dataset:l}=this._cachedMeta,{sharedOptions:d,includeOptions:u}=this._getSharedOptions(n,r),h=o.axis,f=a.axis,{spanGaps:p,segment:y}
vendor: 4,109 bytes, line 2
2=this.options,m=$t(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||r==="none";let _=n>0&&this.getParsed(n-1);for(let C=n;C<n+s;++C){const T=t[C],M=this.getParsed(C),L=b?T:{},$=ne(M[f]),U=L[h]=o.getPixelForValue(M[h],C),I=L[f]=i||$?a.getBasePixel():a.getPixelForValue(c?this.applyStack(a,M,c):M[f],C);L.skip=isNaN(U)||isNaN(I)||$,L.stop=C>0&&Math.abs(M[h]-_[h])>m,y&&(L.parsed=M,L.raw=l.data[C]),u&&(L.options=d||this.resolveDataElementOptions(C,T.active?"active":r)),b||this.updateElement(T,C,L,r),_=M}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return s;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(s,i,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}_s.id="line";_s.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};_s.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Or extends je{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,r=s.data.labels||[],i=In(n._parsed[t].r,s.options.locale);return{label:r[t]||"",value:i}}parseObjectData(t,n,s,r){return Sc.bind(this)(t,n,s,r)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,r)=>{const i=this.getParsed(r).r;!isNaN(i)&&this.chart.getDataVisibility(r)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,r=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(r/2,0),o=Math.max(s.cutoutPercentage?i/100*s.cutoutPercentage:1,0),a=(i-o)/t.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,r){const i=r==="reset",o=this.chart,c=o.options.animation,l=this._cachedMeta.rScale,d=l.xCenter,u=l.yCenter,h=l.getIndexAngle(0)-.5*he;let f=h,p;const y=360/this.countVisibleElements();for(p=0;p<n;++p)f+=this._computeAngle(p,r,y);for(p=n;p<n+s;p++){const m=t[p];let b=f,_=f+this._computeAngle(p,r,y),C=o.getDataVisibility(p)?l.getDistanceFromCenterForValue(this.getParsed(p).r):0;f=_,i&&(c.animateScale&&(C=0),c.animateRotate&&(b=_=h));const T={x:d,y:u,innerRadius:0,outerRadius:C,startAngle:b,endAngle:_,options:this.resolveDataElementOptions(p,m.active?"active":r)};this.updateElement(m,p,T,r)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((s,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?$e(this.resolveDataElementOptions(t,n).angle||s):0}}Or.id="polarArea";Or.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};Or.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((s,r)=>{const o=e.getDatasetMeta(0).controller.getStyle(r);return{text:s,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Dc extends Rn{}Dc.id="pie";Dc.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Mr extends je{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}
2parseObjectData(t,n,s,r){return Sc.bind(this)(t,n,s,r)}update(t){const n=this._cachedMeta,s=n.dataset,r=n.data||[],i=n.iScale.getLabels();if(s.points=r,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:i.length===r.length,options:o};this.updateElement(s,void 0,a,t)}this.updateElements(r,0,r.length,t)}updateElements(t,n,s,r){const i=this._cachedMeta.rScale,o=r==="reset";for(let a=n;a<n+s;a++){const c=t[a],l=this.resolveDataElementOptions(a,c.active?"active":r),d=i.getPointPositionForValue(a,this.getParsed(a).r),u=o?i.xCenter:d.x,h=o?i.yCenter:d.y,f={x:u,y:h,angle:d.angle,skip:isNaN(u)||isNaN(h),options:l};this.updateElement(c,a,f,r)}}}Mr.id="radar";Mr.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};Mr.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class nt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return $t(this.x)&&$t(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const r={};return t.forEach(i=>{r[i]=s[i]&&s[i].active()?s[i]._to:this[i]}),r}}nt.defaults={};nt.defaultRoutes=void 0;const Fc={values(e){return le(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let r,i=e;if(n.length>1){const l=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(l<1e-4||l>1e15)&&(r="scientific"),i=K6(e,n)}const o=Ie(Math.abs(i)),a=Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(c,this.options.ticks.format),In(e,s,c)},logarithmic(e,t,n){if(e===0)return"0";const s=e/Math.pow(10,Math.floor(Ie(e)));return s===1||s===2||s===5?Fc.numeric.call(this,e,t,n):""}};function K6(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var xs={formatters:Fc};te.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:xs.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});te.route("scale.ticks","color","","color");te.route("scale.grid","color","","borderColor");te.route("scale.grid","borderColor","","borderColor");te.route("scale.title","color","","color");te.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"});te.describe("scales",{_fallback:"scale"});te.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"});function X6(e,t){const n=e.options.ticks,s=n.maxTicksLimit||J6(e),r=n.major.enabled?e7(t):[],i=r.length,o=r[0],a=r[i-1],c=[];if(i>s)return t7(t,c,r,i/s),c;const l=Q6(r,t,s);if(i>0){let d,u;const h=i>1?Math.round((a-o)/(i-1)):null;for(qn(t,c,l,ne(h)?0:o-h,o),d=0,u=i-1;d<u;d++)qn(t,c,l,r[d],r[d+1]);return qn(t,c,l,a,ne(h)?t.length:a+h),c}return qn(t,c,l),c}function J6(e){const t=e.options.offset,n=e._tickSize(),s=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(s,r))}function Q6(e,t,n){const s=n7(e),r=t.length/n;if(!s)return Math.max(r,1);const i=Kx(s);for(let o=0,a=i.length-1;o<a;o++){const c=i[o];if(c>r)return c}return Math.max(r,1)}function e7(e){const t=[];let n,s;for(n=0,s=e.length;n<s;n++)e[n].major&&t.push(n);return t}function t7(e,t,n,s){let r=0,i=n[0],o;for(s=Math.ceil(s),o=0;o<e.length;o++)o===i&&(t.push(e[o]),r++,i=n[r*s])}function qn(e,t,n,s,r){const i=ee(s,0),o=Math.min(ee(r,e.length),e.length);let a=0,c,l,d;for(n=Math.ceil(n),r&&(c=r-s,n=c/Math.floor(c/n)),d=i;d<0;)a++,d=Math.round(i+a*n);for(l=Math.max(i,0);l<o;l++)l===d&&(t.push(e[l]),a++,d=Math.round(i+a*n))}function n7(e){const t=e.length;let n,s;if(t<2)return!1;for(s=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==s)return!1;return s}const s7=e=>
vendor: 20,652 bytes, line 2
2e==="left"?"right":e==="right"?"left":e,Ra=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function Da(e,t){const n=[],s=e.length/t,r=e.length;let i=0;for(;i<r;i+=s)n.push(e[Math.floor(i)]);return n}function i7(e,t,n){const s=e.ticks.length,r=Math.min(t,s-1),i=e._startPixel,o=e._endPixel,a=1e-6;let c=e.getPixelForTick(r),l;if(!(n&&(s===1?l=Math.max(c-i,o-c):t===0?l=(e.getPixelForTick(1)-c)/2:l=(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-a||c>o+a)))return c}function r7(e,t){ie(e,n=>{const s=n.gc,r=s.length/2;let i;if(r>t){for(i=0;i<r;++i)delete n.data[s[i]];s.splice(0,r)}})}function on(e){return e.drawTicks?e.tickLength:0}function Fa(e,t){if(!e.display)return 0;const n=Se(e.font,t),s=De(e.padding);return(le(e.text)?e.text.length:1)*n.lineHeight+s.height}function o7(e,t){return dt(e,{scale:t,type:"scale"})}function a7(e,t,n){return dt(e,{tick:n,index:t,type:"tick"})}function l7(e,t,n){let s=i5(e);return(n&&t!=="right"||!n&&t==="right")&&(s=s7(s)),s}function c7(e,t,n,s){const{top:r,left:i,bottom:o,right:a,chart:c}=e,{chartArea:l,scales:d}=c;let u=0,h,f,p;const y=o-r,m=a-i;if(e.isHorizontal()){if(f=oa(s,i,a),Q(n)){const b=Object.keys(n)[0],_=n[b];p=d[b].getPixelForValue(_)+y-t}else n==="center"?p=(l.bottom+l.top)/2+y-t:p=Ra(e,n,t);h=a-i}else{if(Q(n)){const b=Object.keys(n)[0],_=n[b];f=d[b].getPixelForValue(_)-m+t}else n==="center"?f=(l.left+l.right)/2-m+t:f=Ra(e,n,t);p=oa(s,o,r),u=n==="left"?-ue:ue}return{titleX:f,titleY:p,maxWidth:h,rotation:u}}class At extends nt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:s,_suggestedMax:r}=this;return t=Me(t,Number.POSITIVE_INFINITY),n=Me(n,Number.NEGATIVE_INFINITY),s=Me(s,Number.POSITIVE_INFINITY),r=Me(r,Number.NEGATIVE_INFINITY),{min:Me(t,s),max:Me(n,r),minDefined:pe(t),maxDefined:pe(n)}}getMinMax(t){let{min:n,max:s,minDefined:r,maxDefined:i}=this.getUserBounds(),o;if(r&&i)return{min:n,max:s};const a=this.getMatchingVisibleMetas();for(let c=0,l=a.length;c<l;++c)o=a[c].controller.getMinMax(this,t),r||(n=Math.min(n,o.min)),i||(s=Math.max(s,o.max));return n=i&&n>s?s:n,s=r&&n>s?n:s,{min:Me(n,Me(s,n)),max:Me(s,Me(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){de(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:r,grace:i,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=N5(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?Da(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=X6(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,s;this.isHorizontal()?(n=this.left,s=this.right):(n=this.top,s=this.bottom,t=!t),this._startPixel=n,this._endPixel=s,this._reversePixels=t,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){de(this.options.afterUpdate,[this])}beforeSetDimensions(){de(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){de(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),de(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){de(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let s,r,i;for(s=0,r=t.length;s<r;s++)i=t[s],i.label=de(n.callback,[i.value,s,t],this)}afterTickToLabelConversion(){de(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){de(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,s=this.ticks.length,r=n.minRotation||0,i=n.maxRotation;let o=r,a,c,l;if(!this._isVisible()||!n.display||r>=i||s<=1||!this.isHorizontal()){this.labelRotation=r;return}const d=this._getLabelSizes(),u=d.widest.width,h=d.highest.height,f=ve(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/s:f/(s-1),u+6>a&&(a=f/(s-(t.offset?.5:1)),c=this.maxHeight-on(t.grid)-n.padding-Fa(t.title,this.chart.options.font),l=Math.sqrt(u*u+h*h),o=gr(Math.min(Math.asin(ve((d.highest.height+6)/a,-1,1)),Math.asin(ve(c/l,-1,1))-Math.asin(ve(h/l,-1,1)))),o=Math.max(r,Math.min(i,o))),this.labelRotation=o}afterCalculateLabelRotation(){de(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){de(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:r,grid:i}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const c=Fa(r,n.options.font);if(a?(t.width=this.maxWidth,t.height=on(i)+c):(t.height=this.maxHeight,t.width=on(i)+c),s.display&&this.ticks.length){const{first:l,last:d,widest:u,highest:h}=this._getLabelSizes(),f=s.padding*2,p=$e(this.labelRotation),y=Math.cos(p),m=Math.sin(p);if(a){const b=s.mirror?0:m*u.width+y*h.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=s.mirror?0:y*u.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(l,d,m,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,r){const{ticks:{align:i,padding:o},position:a}=this.options,c=this.labelRotation!==0,l=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;c?l?(h=r*t.width,f=s*n.height):(h=s*t.height,f=r*n.width):i==="start"?f=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((f-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=t.height/2;i==="start"?(d=0,u=t.height):i==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){de(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n<s;n++)ne(t[n].label)&&(t.splice(n,1),s--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let s=this.ticks;n<s.length&&(s=Da(s,n)),this._labelSizes=t=this._computeLabelSizes(s,s.length)}return t}_computeLabelSizes(t,n){const{ctx:s,_longestTextCache:r}=this,i=[],o=[];let a=0,c=0,l,d,u,h,f,p,y,m,b,_,C;for(l=0;l<n;++l){if(h=t[l].label,f=this._resolveTickFontOptions(l),s.font=p=f.string,y=r[p]=r[p]||{data:{},gc:[]},m=f.lineHeight,b=_=0,!ne(h)&&!le(h))b=cs(s,y.data,y.gc,b,h),_=m;else if(le(h))for(d=0,u=h.length;d<u;++d)C=h[d],!ne(C)&&!le(C)&&(b=cs(s,y.data,y.gc,b,C),_+=m);i.push(b),o.push(_),a=Math.max(b,a),c=Math.max(_,c)}r7(r,n);const T=i.indexOf(a),M=o.indexOf(c),L=$=>({width:i[$]||0,height:o[$]||0});return{first:L(0),last:L(n-1),widest:L(T),highest:L(M),widths:i,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Qx(this._alignToPixels?bt(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const s=n[t];return s.$context||(s.$context=a7(this.getContext(),t,s))}return this.$context||(this.$context=o7(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=$e(this.labelRotation),s=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),i=this._getLabelSizes(),o=t.autoSkipPadding||0,a=i?i.widest.width+o:0,c=i?i.highest.height+o:0;return this.isHorizontal()?c*s>a*r?a/s:c/r:c*r<a*s?c/s:a/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,s=this.chart,r=this.options,{grid:i,position:o}=r,a=i.offset,c=this.isHorizontal(),d=this.ticks.length+(a?1:0),u=on(i),h=[],f=i.setContext(this.getContext()),p=f.drawBorder?f.borderWidth:0,y=p/2,m=function(R){return bt(s,R,p)};let b,_,C,T,M,L,$,U,I,N,F,D;if(o==="top")b=m(this.bottom),L=this.bottom-u,U=b-y,N=m(t.top)+y,D=t.bottom;else if(o==="bottom")b=m(this.top),N=t.top,D=m(t.bottom)-y,L=b+y,U=this.top+u;else if(o==="left")b=m(this.right),M=this.right-u,$=b-y,I=m(t.left)+y,F=t.right;else if(o==="right")b=m(this.left),I=t.left,F=m(t.right)-y,M=b+y,$=this.left+u;else if(n==="x"){if(o==="center")b=m((t.top+t.bottom)/2+.5);else if(Q(o)){const R=Object.keys(o)[0],V=o[R];b=m(this.chart.scales[R].getPixelForValue(V))}N=t.top,D=t.bottom,L=b+y,U=L+u}else if(n==="y"){if(o==="center")b=m((t.left+t.right)/2);else if(Q(o)){const R=Object.keys(o)[0],V=o[R];b=m(this.chart.scales[R].getPixelForValue(V))}M=b-y,$=M-u,I=t.left,F=t.right}const G=ee(r.ticks.maxTicksLimit,d),j=Math.max(1,Math.ceil(d/G));for(_=0;_<d;_+=j){const R=i.setContext(this.getContext(_)),V=R.lineWidth,E=R.color,q=R.borderDash||[],J=R.borderDashOffset,X=R.tickWidth,Pe=R.tickColor,st=R.tickBorderDash||[],qt=R.tickBorderDashOffset;C=i7(this,_,a),C!==void 0&&(T=bt(s,C,V),c?M=$=I=F=T:L=U=N=D=T,h.push({tx1:M,ty1:L,tx2:$,ty2:U,x1:I,y1:N,x2:F,y2:D,width:V,color:E,borderDash:q,borderDashOffset:J,tickWidth:X,tickColor:Pe,tickBorderDash:st,tickBorderDashOffset:qt}))}return this._ticksLength=d,this._borderValue=b,h}_computeLabelItems(t){const n=this.axis,s=this.options,{position:r,ticks:i}=s,o=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:d,mirror:u}=i,h=on(s.grid),f=h+d,p=u?-d:f,y=-$e(this.labelRotation),m=[];let b,_,C,T,M,L,$,U,I,N,F,D,G="middle";if(r==="top")L=this.bottom-p,$=this._getXAxisLabelAlignment();else if(r==="bottom")L=this.top+p,$=this._getXAxisLabelAlignment();else if(r==="left"){const R=this._getYAxisLabelAlignment(h);$=R.textAlign,M=R.x}else if(r==="right"){const R=this._getYAxisLabelAlignment(h);$=R.textAlign,M=R.x}else if(n==="x"){if(r==="center")L=(t.top+t.bottom)/2+f;else if(Q(r)){const R=Object.keys(r)[0],V=r[R];L=this.chart.scales[R].getPixelForValue(V)+f}$=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")M=(t.left+t.right)/2-f;else if(Q(r)){const R=Object.keys(r)[0],V=r[R];M=this.chart.scales[R].getPixelForValue(V)}$=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(c==="start"?G="top":c==="end"&&(G="bottom"));const j=this._getLabelSizes();for(b=0,_=a.length;b<_;++b){C=a[b],T=C.label;const R=i.setContext(this.getContext(b));U=this.getPixelForTick(b)+i.labelOffset,I=this._resolveTickFontOptions(b),N=I.lineHeight,F=le(T)?T.length:1;const V=F/2,E=R.color,q=R.textStrokeColor,J=R.textStrokeWidth;let X=$;o?(M=U,$==="inner"&&(b===_-1?X=this.options.reverse?"left":"right":b===0?X=this.options.reverse?"right":"left":X="center"),r==="top"?l==="near"||y!==0?D=-F*N+N/2:l==="center"?D=-j.highest.height/2-V*N+N:D=-j.highest.height+N/2:l==="near"||y!==0?D=N/2:l==="center"?D=j.highest.height/2-V*N:D=j.highest.height-F*N,u&&(D*=-1)):(L=U,D=(1-F)*N/2);let Pe;if(R.showLabelBackdrop){const st=De(R.backdropPadding),qt=j.heights[b],Ps=j.widths[b];let As=L+D-st.top,Os=M-st.left;switch(G){case"middle":As-=qt/2;break;case"bottom":As-=qt;break}switch($){case"center":Os-=Ps/2;break;case"right":Os-=Ps;break}Pe={left:Os,top:As,width:Ps+st.width,height:qt+st.height,color:R.backdropColor}}m.push({rotation:y,label:T,font:I,color:E,strokeColor:q,strokeWidth:J,textOffset:D,textAlign:X,textBaseline:G,translation:[M,L],backdrop:Pe})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-$e(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:r,padding:i}}=this.options,o=this._getLabelSizes(),a=t+i,c=o.widest.width;let l,d;return n==="left"?r?(d=this.right+i,s==="near"?l="left":s==="center"?(l="center",d+=c/2):(l="right",d+=c)):(d=this.right-a,s==="near"?l="right":s==="center"?(l="center",d-=c/2):(l="left",d=this.left)):n==="right"?r?(d=this.left+i,s==="near"?l="right":s==="center"?(l="center",d-=c/2):(l="left",d-=c)):(d=this.left+a,s==="near"?l="left":s==="center"?(l="center",d+=c/2):(l="right",d=this.right)):l="right",{textAlign:l,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:r,width:i,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,r,i,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;const a=(c,l,d)=>{!d.width||!d.color||(s.save(),s.lineWidth=d.width,s.strokeStyle=d.color,s.setLineDash(d.borderDash||[]),s.lineDashOffset=d.borderDashOffset,s.beginPath(),s.moveTo(c.x,c.y),s.lineTo(l.x,l.y),s.stroke(),s.restore())};if(n.display)for(i=0,o=r.length;i<o;++i){const c=r[i];n.drawOnChartArea&&a({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&a({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{grid:s}}=this,r=s.setContext(this.getContext()),i=s.drawBorder?r.borderWidth:0;if(!i)return;const o=s.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let c,l,d,u;this.isHorizontal()?(c=bt(t,this.left,i)-i/2,l=bt(t,this.right,o)+o/2,d=u=a):(d=bt(t,this.top,i)-i/2,u=bt(t,this.bottom,o)+o/2,c=l=a),n.save(),n.lineWidth=r.borderWidth,n.strokeStyle=r.borderColor,n.beginPath(),n.moveTo(c,d),n.lineTo(l,u),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,r=this._computeLabelArea();r&&_r(s,r);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const c=i[o],l=c.font,d=c.label;c.backdrop&&(s.fillStyle=c.backdrop.color,s.fillRect(c.backdrop.left,c.backdrop.top,c.backdrop.width,c.backdrop.height));let u=c.textOffset;ds(s,d,0,u,l,c)}r&&xr(s)}drawTitle(){const{ctx:t,options:{position:n,title:s,reverse:r}}=this;if(!s.display)return;const i=Se(s.font),o=De(s.padding),a=s.align;let c=i.lineHeight/2;n==="bottom"||n==="center"||Q(n)?(c+=o.bottom,le(s.text)&&(c+=i.lineHeight*(s.text.length-1))):c+=o.top;const{titleX:l,titleY:d,maxWidth:u,rotation:h}=c7(this,c,n,a);ds(t,s.text,0,0,i,{color:s.color,maxWidth:u,rotation:h,textAlign:l7(a,n,r),textBaseline:"middle",translation:[l,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,s=ee(t.grid&&t.grid.z,-1);return!this._isVisible()||this.draw!==At.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:s,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s+1,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];a[s]===this.id&&(!t||a.type===t)&&r.push(a)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Se(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Yn{constructor(t,n,s){this.type=t,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let s;h7(n)&&(s=this.register(n));const r=this.items,i=t.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,d7(t,o,s),this.override&&te.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,s=t.id,r=this.scope;s in n&&delete n[s],r&&s in te[r]&&(delete te[r][s],this.override&&delete Ct[s])}}function d7(e,t,n){const s=wn(Object.create(null),[n?te.get(n):{},te.get(t),e.defaults]);te.set(t,s),e.defaultRoutes&&u7(t,e.defaultRoutes),e.descriptors&&te.describe(t,e.descriptors)}function u7(e,t){Object.keys(t).forEach(n=>{const s=n.split("."),r=s.pop(),i=[e].concat(s).join("."),o=t[n].split("."),a=o.pop(),c=o.join(".");te.route(i,r,c,a)})}function h7(e){return"id"in e&&"defaults"in e}class p7{constructor(){this.controllers=new Yn(je,"datasets",!0),this.elements=new Yn(nt,"elements"),this.plugins=new Yn(Object,"plugins"),this.scales=new Yn(At,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}
2removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(r=>{const i=s||this._getRegistryForType(r);s||i.isForType(r)||i===this.plugins&&r.id?this._exec(t,i,r):ie(r,o=>{const a=s||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,s){const r=fr(t);de(s["before"+r],[],s),n[t](s),de(s["after"+r],[],s)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const s=this._typedRegistries[n];if(s.isForType(t))return s}return this.plugins}_get(t,n,s){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return r}}var He=new p7;class Lr extends je{update(t){const n=this._cachedMeta,{data:s=[]}=n,r=this.chart._animationsDisabled;let{start:i,count:o}=pc(n,s,r);if(this._drawStart=i,this._drawCount=o,fc(n)&&(i=0,o=s.length),this.options.showLine){const{dataset:a,_dataset:c}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!c._decimated,a.points=s;const l=this.resolveDatasetElementOptions(t);l.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:l},t)}this.updateElements(s,i,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=He.getElement("line")),super.addElements()}updateElements(t,n,s,r){const i=r==="reset",{iScale:o,vScale:a,_stacked:c,_dataset:l}=this._cachedMeta,d=this.resolveDataElementOptions(n,r),u=this.getSharedOptions(d),h=this.includeOptions(r,u),f=o.axis,p=a.axis,{spanGaps:y,segment:m}=this.options,b=$t(y)?y:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||i||r==="none";let C=n>0&&this.getParsed(n-1);for(let T=n;T<n+s;++T){const M=t[T],L=this.getParsed(T),$=_?M:{},U=ne(L[p]),I=$[f]=o.getPixelForValue(L[f],T),N=$[p]=i||U?a.getBasePixel():a.getPixelForValue(c?this.applyStack(a,L,c):L[p],T);$.skip=isNaN(I)||isNaN(N)||U,$.stop=T>0&&Math.abs(L[f]-C[f])>b,m&&($.parsed=L,$.raw=l.data[T]),h&&($.options=u||this.resolveDataElementOptions(T,M.active?"active":r)),_||this.updateElement(M,T,$,r),C=L}this.updateSharedOptions(u,r,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let c=n.length-1;c>=0;--c)a=Math.max(a,n[c].size(this.resolveDataElementOptions(c))/2);return a>0&&a}const s=t.dataset,r=s.options&&s.options.borderWidth||0;if(!n.length)return r;const i=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,i,o)/2}}Lr.id="scatter";Lr.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};Lr.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function yt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class zi{constructor(t){this.options=t||{}}init(t){}formats(){return yt()}parse(t,n){return yt()}format(t,n){return yt()}add(t,n,s){return yt()}diff(t,n,s){return yt()}startOf(t,n,s){return yt()}endOf(t,n){return yt()}}zi.override=function(e){Object.assign(zi.prototype,e)};var f7={_date:zi};function g7(e,t,n,s){const{controller:r,data:i,_sorted:o}=e,a=r._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&i.length){const c=a._reversePixels?e5:xt;if(s){if(r._sharedOptions){const l=i[0],d=typeof l.getRange=="function"&&l.getRange(t);if(d){const u=c(i,t,n-d),h=c(i,t,n+d);return{lo:u.lo,hi:h.hi}}}}else return c(i,t,n)}return{lo:0,hi:i.length-1}}function ws(e,t,n,s,r){const i=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,c=i.length;a<c;++a){const{index:l,data:d}=i[a],{lo:u,hi:h}=g7(i[a],t,o,r);for(let f=u;f<=h;++f){const p=d[f];p.skip||s(p,l,f)}}}function m7(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(s,r){const i=t?Math.abs(s.x-r.x):0,o=n?Math.abs(s.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function _i(e,t,n,s,r){const i=[];return!r&&!e.isPointInArea(t)||ws(e,n,t,function(a,c,l){!r&&!Sn(a,e.chartArea,0)||a.inRange(t.x,t.y,s)&&i.push({element:a,datasetIndex:c,index:l})},!0),i}function b7(e,t,n,s){let r=[];function i(o,a,c){const{startAngle:l,endAngle:d}=o.getProps(["startAngle","endAngle"],s),{angle:u}=lc(o,{x:t.x,y:t.y});kn(u,l,d)&&r.push({element:o,datasetIndex:a,index:c})}return ws(e,n,t,i),r}function y7(e,t,n,s,r,i){let o=[];const a=m7(n);let c=Number.POSITIVE_INFINITY;function l(d,u,h){const f=d.inRange(t.x,t.y,r);if(s&&!f)return;const p=d.getCenterPoint(r);if(!(!!i||e.isPointInArea(p))&&!f)return;const m=a(t,p);m<c?(o=[{element:d,datasetIndex:u,index:h}],c=m):m===c&&o.push({element:d,datasetIndex:u,index:h})}return ws(e,n,t,l),o}function xi(e,t,n,s,r,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!s?b7(e,t,n,r):y7(e,t,n,s,r,i)}function Ba(e,t,n,s,r){const i=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return ws(e,n,t,(c,l,d)=>{c[o](t[n],r)&&(i.push({element:c,datasetIndex:l,index:d}),a=a||c.inRange(t.x,t.y,r))}),s&&!a?[]:i}var v7={modes:{index(e,t,n,s){const r=vt(t,e),i=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?_i(e,r,i,s,o):xi(e,r,i,!1,s,o),c=[];
vendor: 6,507 bytes, line 2
2return a.length?(e.getSortedVisibleDatasetMetas().forEach(l=>{const d=a[0].index,u=l.data[d];u&&!u.skip&&c.push({element:u,datasetIndex:l.index,index:d})}),c):[]},dataset(e,t,n,s){const r=vt(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?_i(e,r,i,s,o):xi(e,r,i,!1,s,o);if(a.length>0){const c=a[0].datasetIndex,l=e.getDatasetMeta(c).data;a=[];for(let d=0;d<l.length;++d)a.push({element:l[d],datasetIndex:c,index:d})}return a},point(e,t,n,s){const r=vt(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;return _i(e,r,i,s,o)},nearest(e,t,n,s){const r=vt(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;return xi(e,r,i,n.intersect,s,o)},x(e,t,n,s){const r=vt(t,e);return Ba(e,r,"x",n.intersect,s)},y(e,t,n,s){const r=vt(t,e);return Ba(e,r,"y",n.intersect,s)}}};const Bc=["left","top","right","bottom"];function an(e,t){return e.filter(n=>n.pos===t)}function Ea(e,t){return e.filter(n=>Bc.indexOf(n.pos)===-1&&n.box.axis===t)}function ln(e,t){return e.sort((n,s)=>{const r=t?s:n,i=t?n:s;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function _7(e){const t=[];let n,s,r,i,o,a;for(n=0,s=(e||[]).length;n<s;++n)r=e[n],{position:i,options:{stack:o,stackWeight:a=1}}=r,t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&i+o,stackWeight:a});return t}function x7(e){const t={};for(const n of e){const{stack:s,pos:r,stackWeight:i}=n;if(!s||!Bc.includes(r))continue;const o=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}function w7(e,t){const n=x7(e),{vBoxMaxWidth:s,hBoxMaxHeight:r}=t;let i,o,a;for(i=0,o=e.length;i<o;++i){a=e[i];const{fullSize:c}=a.box,l=n[a.stack],d=l&&a.stackWeight/l.weight;a.horizontal?(a.width=d?d*s:c&&t.availableWidth,a.height=r):(a.width=s,a.height=d?d*r:c&&t.availableHeight)}return n}function k7(e){const t=_7(e),n=ln(t.filter(l=>l.box.fullSize),!0),s=ln(an(t,"left"),!0),r=ln(an(t,"right")),i=ln(an(t,"top"),!0),o=ln(an(t,"bottom")),a=Ea(t,"x"),c=Ea(t,"y");return{fullSize:n,leftAndTop:s.concat(i),rightAndBottom:r.concat(c).concat(o).concat(a),chartArea:an(t,"chartArea"),vertical:s.concat(r).concat(c),horizontal:i.concat(o).concat(a)}}function $a(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function Ec(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function C7(e,t,n,s){const{pos:r,box:i}=n,o=e.maxPadding;if(!Q(r)){n.size&&(e[r]-=n.size);const u=s[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?i.height:i.width),n.size=u.size/u.count,e[r]+=n.size}i.getPadding&&Ec(o,i.getPadding());const a=Math.max(0,t.outerWidth-$a(o,e,"left","right")),c=Math.max(0,t.outerHeight-$a(o,e,"top","bottom")),l=a!==e.w,d=c!==e.h;return e.w=a,e.h=c,n.horizontal?{same:l,other:d}:{same:d,other:l}}function S7(e){const t=e.maxPadding;function n(s){const r=Math.max(t[s]-e[s],0);return e[s]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function T7(e,t){const n=t.maxPadding;function s(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{i[o]=Math.max(t[o],n[o])}),i}return s(e?["left","right"]:["top","bottom"])}function hn(e,t,n,s){const r=[];let i,o,a,c,l,d;for(i=0,o=e.length,l=0;i<o;++i){a=e[i],c=a.box,c.update(a.width||t.w,a.height||t.h,T7(a.horizontal,t));const{same:u,other:h}=C7(t,n,a,s);l|=u&&r.length,d=d||h,c.fullSize||r.push(a)}return l&&hn(r,t,n,s)||d}function Zn(e,t,n,s,r){e.top=n,e.left=t,e.right=t+s,e.bottom=n+r,e.width=s,e.height=r}function Na(e,t,n,s){const r=n.padding;let{x:i,y:o}=t;for(const a of e){const c=a.box,l=s[a.stack]||{placed:0,weight:1},d=a.stackWeight/l.weight||1;if(a.horizontal){const u=t.w*d,h=l.size||c.height;Re(l.start)&&(o=l.start),c.fullSize?Zn(c,r.left,o,n.outerWidth-r.right-r.left,h):Zn(c,t.left+l.placed,o,u,h),l.start=o,l.placed+=u,o=c.bottom}else{const u=t.h*d,h=l.size||c.width;Re(l.start)&&(i=l.start),c.fullSize?Zn(c,i,r.top,h,n.outerHeight-r.bottom-r.top):Zn(c,i,t.top+l.placed,h,u),l.start=i,l.placed+=u,i=c.right}}t.x=i,t.y=o}te.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Kn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,s){if(!e)return;const r=De(e.options.layout.padding),i=Math.max(t-r.width,0),o=Math.max(n-r.height,0),a=k7(e.boxes),c=a.vertical,l=a.horizontal;ie(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const d=c.reduce((y,m)=>m.box.options&&m.box.options.display===!1?y:y+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/d,hBoxMaxHeight:o/2}),h=Object.assign({},r);Ec(h,De(s));const f=Object.assign({maxPadding:h,w:i,h:o,x:r.left,y:r.top},r),p=w7(c.concat(l),u);hn(a.fullSize,f,u,p),hn(c,f,u,p),hn(l,f,u,p)&&hn(c,f,u,p),S7(f),Na(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Na(a.rightAndBottom,f,u,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},ie(a.chartArea,y=>{const m=y.box;Object.assign(m,e.chartArea),m.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class $c{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,r){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):s)}}isAttached(t){return!0}updateConfig(t){}}class P7 extends $c{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ns="$chartjs",A7={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},za=e=>e===null||e==="";function O7(e,t){const n=e.style,s=e.getAttribute("height"),r=e.getAttribute("width");if(e[ns]={initial:{height:s,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",za(r)){const i=ya(e,"width");i!==void 0&&(e.width=i)}if(za(s))if(e.style.height==="")e.height=e.width/(t||2);else{const i=ya(e,"height");i!==void 0&&(e.height=i)}return e}const Nc=l6?{passive:!0}:!1;function M7(e,t,n){e.addEventListener(t,n,Nc)}
vendor: 4,606 bytes, line 2
2function L7(e,t,n){e.canvas.removeEventListener(t,n,Nc)}function I7(e,t){const n=A7[e.type]||e.type,{x:s,y:r}=vt(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:r!==void 0?r:null}}function ps(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function R7(e,t,n){const s=e.canvas,r=new MutationObserver(i=>{let o=!1;for(const a of i)o=o||ps(a.addedNodes,s),o=o&&!ps(a.removedNodes,s);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function D7(e,t,n){const s=e.canvas,r=new MutationObserver(i=>{let o=!1;for(const a of i)o=o||ps(a.removedNodes,s),o=o&&!ps(a.addedNodes,s);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const Tn=new Map;let ja=0;function zc(){const e=window.devicePixelRatio;e!==ja&&(ja=e,Tn.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function F7(e,t){Tn.size||window.addEventListener("resize",zc),Tn.set(e,t)}function B7(e){Tn.delete(e),Tn.size||window.removeEventListener("resize",zc)}function E7(e,t,n){const s=e.canvas,r=s&&Tr(s);if(!r)return;const i=hc((a,c)=>{const l=r.clientWidth;n(a,c),l<r.clientWidth&&n()},window),o=new ResizeObserver(a=>{const c=a[0],l=c.contentRect.width,d=c.contentRect.height;l===0&&d===0||i(l,d)});return o.observe(r),F7(e,i),o}function wi(e,t,n){n&&n.disconnect(),t==="resize"&&B7(e)}function $7(e,t,n){const s=e.canvas,r=hc(i=>{e.ctx!==null&&n(I7(i,e))},e,i=>{const o=i[0];return[o,o.offsetX,o.offsetY]});return M7(s,t,r),r}class N7 extends $c{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(O7(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[ns])return!1;const s=n[ns].initial;["height","width"].forEach(i=>{const o=s[i];ne(o)?n.removeAttribute(i):n.setAttribute(i,o)});const r=s.style||{};return Object.keys(r).forEach(i=>{n.style[i]=r[i]}),n.width=n.width,delete n[ns],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),o={attach:R7,detach:D7,resize:E7}[n]||$7;r[n]=o(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),r=s[n];if(!r)return;({attach:wi,detach:wi,resize:wi}[n]||L7)(t,n,r),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,r){return a6(t,n,s,r)}isAttached(t){const n=Tr(t);return!!(n&&n.isConnected)}}function z7(e){return!Pc()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?P7:N7}class j7{constructor(){this._init=[]}notify(t,n,s,r){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(i,t,n,s);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,s,r){r=r||{};for(const i of t){const o=i.plugin,a=o[s],c=[n,r,i.options];if(de(a,c,o)===!1&&r.cancelable)return!1}return!0}invalidate(){ne(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const s=t&&t.config,r=ee(s.options&&s.options.plugins,{}),i=V7(s);return r===!1&&!n?[]:H7(t,i,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],s=this._cache,r=(i,o)=>i.filter(a=>!o.some(c=>a.plugin.id===c.plugin.id));this._notify(r(n,s),t,"stop"),this._notify(r(s,n),t,"start")}}function V7(e){const t={},n=[],s=Object.keys(He.plugins.items);for(let i=0;i<s.length;i++)n.push(He.getPlugin(s[i]));const r=e.plugins||[];for(let i=0;i<r.length;i++){const o=r[i];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function G7(e,t){return!t&&e===!1?null:e===!0?{}:e}function H7(e,{plugins:t,localIds:n},s,r){const i=[],o=e.getContext();for(const a of t){const c=a.id,l=G7(s[c],r);l!==null&&i.push({plugin:a,options:W7(e.config,{plugin:a,local:n[c]},l,o)})}return i}function W7(e,{plugin:t,local:n},s,r){const i=e.pluginScopeKeys(t),o=e.getOptionScopes(s,i);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ji(e,t){const n=te.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function U7(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function q7(e,t){return e===t?"_index_":"_value_"}function Y7(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Vi(e,t){return e==="x"||e==="y"?e:t.axis||Y7(t.position)||e.charAt(0).toLowerCase()}function Z7(e,t){const n=Ct[e.type]||{scales:{}},s=t.scales||{},r=ji(e.type,t),i=Object.create(null),o=Object.create(null);
vendor: 12,518 bytes, line 2
2return Object.keys(s).forEach(a=>{const c=s[a];if(!Q(c))return console.error(`Invalid scale configuration for scale: ${a}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Vi(a,c),d=q7(l,r),u=n.scales||{};i[l]=i[l]||a,o[a]=fn(Object.create(null),[{axis:l},c,u[l],u[d]])}),e.data.datasets.forEach(a=>{const c=a.type||e.type,l=a.indexAxis||ji(c,t),u=(Ct[c]||{}).scales||{};Object.keys(u).forEach(h=>{const f=U7(h,l),p=a[f+"AxisID"]||i[f]||f;o[p]=o[p]||Object.create(null),fn(o[p],[{axis:f},s[p],u[h]])})}),Object.keys(o).forEach(a=>{const c=o[a];fn(c,[te.scales[c.type],te.scale])}),o}function jc(e){const t=e.options||(e.options={});t.plugins=ee(t.plugins,{}),t.scales=Z7(e,t)}function Vc(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function K7(e){return e=e||{},e.data=Vc(e.data),jc(e),e}const Va=new Map,Gc=new Set;function Xn(e,t){let n=Va.get(e);return n||(n=t(),Va.set(e,n),Gc.add(n)),n}const cn=(e,t,n)=>{const s=lt(t,n);s!==void 0&&e.add(s)};class X7{constructor(t){this._config=K7(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Vc(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),jc(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Xn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Xn(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Xn(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Xn(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let r=s.get(t);return(!r||n)&&(r=new Map,s.set(t,r)),r}getOptionScopes(t,n,s){const{options:r,type:i}=this,o=this._cachedScopes(t,s),a=o.get(n);if(a)return a;const c=new Set;n.forEach(d=>{t&&(c.add(t),d.forEach(u=>cn(c,t,u))),d.forEach(u=>cn(c,r,u)),d.forEach(u=>cn(c,Ct[i]||{},u)),d.forEach(u=>cn(c,te,u)),d.forEach(u=>cn(c,$i,u))});const l=Array.from(c);return l.length===0&&l.push(Object.create(null)),Gc.has(n)&&o.set(n,l),l}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ct[n]||{},te.datasets[n]||{},{type:n},te,$i]}resolveNamedOptions(t,n,s,r=[""]){const i={$shared:!0},{resolver:o,subPrefixes:a}=Ga(this._resolverCache,t,r);let c=o;if(Q7(o,n)){i.$shared=!1,s=ct(s)?s():s;const l=this.createResolver(t,s,a);c=Nt(o,s,l)}for(const l of n)i[l]=c[l];return i}createResolver(t,n,s=[""],r){const{resolver:i}=Ga(this._resolverCache,t,s);return Q(n)?Nt(i,n,void 0,r):i}}function Ga(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const r=n.join();let i=s.get(r);return i||(i={resolver:kr(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(r,i)),i}const J7=e=>Q(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||ct(e[n]),!1);function Q7(e,t){const{isScriptable:n,isIndexable:s}=xc(e);for(const r of t){const i=n(r),o=s(r),a=(o||i)&&e[r];if(i&&(ct(a)||J7(a))||o&&le(a))return!0}return!1}var ew="3.9.1";const tw=["top","bottom","left","right","chartArea"];function Ha(e,t){return e==="top"||e==="bottom"||tw.indexOf(e)===-1&&t==="x"}function Wa(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function Ua(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),de(n&&n.onComplete,[e],t)}function nw(e){const t=e.chart,n=t.options.animation;de(n&&n.onProgress,[e],t)}function Hc(e){return Pc()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const fs={},Wc=e=>{const t=Hc(e);return Object.values(fs).filter(n=>n.canvas===t).pop()};function sw(e,t,n){const s=Object.keys(e);for(const r of s){const i=+r;if(i>=t){const o=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=o)}}}function iw(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}class Et{constructor(t,n){const s=this.config=new X7(n),r=Hc(t),i=Wc(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||z7(r)),this.platform.updateConfig(s);const a=this.platform.acquireContext(r,o.aspectRatio),c=a&&a.canvas,l=c&&c.height,d=c&&c.width;if(this.id=jx(),this.ctx=a,this.canvas=c,this.width=d,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new j7,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=s5(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],fs[this.id]=this,!a||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Xe.listen(this,"complete",Ua),Xe.listen(this,"progress",nw),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:r,_aspectRatio:i}=this;return ne(t)?n&&i?i:r?s/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ba(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fa(this.canvas,this.ctx),this}stop(){return Xe.stop(this),this}resize(t,n){Xe.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,r=this.canvas,i=s.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,n,i),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ba(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),de(s.onResize,[this,o],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ie(n,(s,r)=>{s.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,r=Object.keys(s).reduce((o,a)=>(o[a]=!1,o),{});let i=[];n&&(i=i.concat(Object.keys(n).map(o=>{const a=n[o],c=Vi(o,a),l=c==="r",d=c==="x";return{options:a,dposition:l?"chartArea":d?"bottom":"left",dtype:l?"radialLinear":d?"category":"linear"}}))),ie(i,o=>{const a=o.options,c=a.id,l=Vi(c,a),d=ee(a.type,o.dtype);(a.position===void 0||Ha(a.position,l)!==Ha(o.dposition))&&(a.position=o.dposition),r[c]=!0;let u=null;if(c in s&&s[c].type===d)u=s[c];else{const h=He.getScale(d);u=new h({id:c,type:d,ctx:this.ctx,chart:this}),s[u.id]=u}u.init(a,t)}),ie(r,(o,a)=>{o||delete s[a]}),ie(s,o=>{Kn.configure(this,o,o.options),Kn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((r,i)=>r.index-i.index),s>n){for(let r=n;r<s;++r)this._destroyDatasetMeta(r);t.splice(n,s-n)}this._sortedMetasets=t.slice(0).sort(Wa("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((s,r)=>{n.filter(i=>i===s._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,r;for(this._removeUnreferencedMetasets(),s=0,r=n.length;s<r;s++){const i=n[s];let o=this.getDatasetMeta(s);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(s),o=this.getDatasetMeta(s)),o.type=a,o.indexAxis=i.indexAxis||ji(a,this.options),o.order=i.order||0,o.index=s,o.label=""+i.label,o.visible=this.isDatasetVisible(s),o.controller)o.controller.updateIndex(s),o.controller.linkScales();else{const c=He.getController(a),{datasetElementType:l,dataElementType:d}=te.datasets[a];Object.assign(c.prototype,{dataElementType:He.getElement(d),datasetElementType:l&&He.getElement(l)}),o.controller=new c(this,s),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){ie(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,d=this.data.datasets.length;l<d;l++){const{controller:u}=this.getDatasetMeta(l),h=!r&&i.indexOf(u)===-1;u.buildOrUpdateElements(h),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=s.layout.autoPadding?o:0,this._updateLayout(o),r||ie(i,l=>{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Wa("z","_idx"));const{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ie(this.scales,t=>{Kn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!ta(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:r,count:i}of n){const o=s==="_removeElements"?-i:i;sw(t,r,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=i=>new Set(t.filter(o=>o[0]===i).map((o,a)=>a+","+o.splice(1).join(","))),r=s(0);for(let i=1;i<n;i++)if(!ta(r,s(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Kn.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],ie(this.boxes,r=>{s&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,ct(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const s=this.getDatasetMeta(t),r={meta:s,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(s.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Xe.has(this)?this.attached&&!Xe.running(this)&&Xe.start(this):(this.draw(),Ua({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:r}=this._resizeBeforeDraw;this._resize(s,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,s=[];let r,i;for(r=0,i=n.length;r<i;++r){const o=n[r];(!t||o.visible)&&s.push(o)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,r=!s.disabled,i=this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&_r(n,{left:s.left
vendor: 7,036 bytes, line 2
2===!1?0:i.left-s.left,right:s.right===!1?this.width:i.right+s.right,top:s.top===!1?0:i.top-s.top,bottom:s.bottom===!1?this.height:i.bottom+s.bottom}),t.controller.draw(),r&&xr(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Sn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,r){const i=v7.modes[n];return typeof i=="function"?i(this,t,s,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let r=s.filter(i=>i&&i._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(r)),r}getContext(){return this.$context||(this.$context=dt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const r=s?"show":"hide",i=this.getDatasetMeta(t),o=i.controller._resolveAnimations(void 0,r);Re(n)?(i.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),o.update(i,{visible:s}),this.update(a=>a.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Xe.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),fa(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete fs[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,s=(i,o)=>{n.addEventListener(this,i,o),t[i]=o},r=(i,o,a)=>{i.offsetX=o,i.offsetY=a,this._eventHandler(i)};ie(this.options.events,i=>s(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(c,l)=>{n.addEventListener(this,c,l),t[c]=l},r=(c,l)=>{t[c]&&(n.removeEventListener(this,c,l),delete t[c])},i=(c,l)=>{this.canvas&&this.resize(c,l)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),s("resize",i),s("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){ie(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ie(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const r=s?"set":"remove";let i,o,a,c;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,c=t.length;a<c;++a){o=t[a];const l=o&&this.getDatasetMeta(o.datasetIndex).controller;l&&l[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],s=t.map(({datasetIndex:i,index:o})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[o],index:o}});!rs(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}_updateHoverStyles(t,n,s){const r=this.options.hover,i=(c,l)=>c.filter(d=>!l.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=i(n,t),a=s?t:i(t,n);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,r)===!1)return;const i=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,r),(i||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:r=[],options:i}=this,o=n,a=this._getActiveElements(t,r,s,o),c=qx(t),l=iw(t,this._lastEvent,s,c);s&&(this._lastEvent=null,de(i.onHover,[t,a,this],this),c&&de(i.onClick,[t,a,this],this));const d=!rs(a,r);return(d||n)&&(this._active=a,this._updateHoverStyles(a,r,n)),this._lastEvent=l,d}_getActiveElements(t,n,s,r){if(t.type==="mouseout")return[];if(!s)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}const qa=()=>ie(Et.instances,e=>e._plugins.invalidate()),it=!0;Object.defineProperties(Et,{defaults:{enumerable:it,value:te},instances:{enumerable:it,value:fs},overrides:{enumerable:it,value:Ct},registry:{enumerable:it,value:He},version:{enumerable:it,value:ew},getChart:{enumerable:it,value:Wc},register:{enumerable:it,value:(...e)=>{He.add(...e),qa()}},unregister:{enumerable:it,value:(...e)=>{He.remove(...e),qa()}}});function Uc(e,t,n){const{startAngle:s,pixelMargin:r,x:i,y:o,outerRadius:a,innerRadius:c}=t;let l=r/a;e.beginPath(),e.arc(i,o,a,s-l,n+l),c>r?(l=r/c,e.arc(i,o,c,n+l,s-l,!0)):e.arc(i,o,r,n+ue,s-ue),e.closePath(),e.clip()}function rw(e){return wr(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ow(e,t,n,s){const r=rw(e.options.borderRadius),i=(n-t)/2,o=Math.min(i,s*t/2),a=c=>{const l=(n-Math.min(i,c))*s/2;return ve(c,0,Math.min(i,l))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:ve(r.innerStart,0,o),innerEnd:ve(r.innerEnd,0,o)}}function It(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function Gi(e,t,n,s,r,i){const{x:o,y:a,startAngle:c,pixelMargin:l,innerRadius:d}=t,u=Math.max(t.outerRadius+s+n-l,0),h=d>0?d+s+n+l:0;let f=0;const p=r-c;if(s){const R=d>0?d-s:0,V=u>0?u-s:0,E=(R+V)/2,q=E!==0?p*E/(E+s):p;f=(p-q)/2}const y=Math.max(.001,p*u-n/he)/u,m=(p-y)/2,b=c+m+f,_=r-m-f,{outerStart:C,outerEnd:T,innerStart:M,innerEnd:L}=ow(t,h,u,_-b),$=u-C,U=u-T,I=b+C/$,N=_-T/U,F=h+M,D=h+L,G=b+M/F,j=_-L/D;if(e.beginPath(),i){if(e.arc(o,a,u,I,N),T>0){const E=It(U,N,o,a);e.arc(E.x,E.y,T,N,_+ue)}const R=It(D,_,o,a);if(e.lineTo(R.x,R.y),L>0){const E=It(D,j,o,a);e.arc(E.x,E.y,L,_+ue,j+Math.PI)}if(e.arc(o,a,h,_-L/h,b+M/h,!0),M>0){const E=It(F,G,o,a);e.arc(E.x,E.y,M,G+Math.PI,b-ue)}const V=It($,b,o,a);if(e.lineTo(V.x,V.y),C>0){const E=It($,I,o,a);e.arc(E.x,E.y,C,b-ue,I)}}else{e.moveTo(o,a);const R=Math.cos(I)*u+o,V=Math.sin(I)*u+a;e.lineTo(R,V);const E=Math.cos(N)*u+o,q=Math.sin(N)*u+a;e.lineTo(E,q)}e.closePath()}function aw(e,t,n,s,r){const{fullCircles:i,startAngle:o,circumference:a}=t;let c=t.endAngle;if(i){Gi(e,t,n,s,o+oe,r);for(let l=0;l<i;++l)e.fill();
2isNaN(a)||(c=o+a%oe,a%oe===0&&(c+=oe))}return Gi(e,t,n,s,c,r),e.fill(),c}function lw(e,t,n){const{x:s,y:r,startAngle:i,pixelMargin:o,fullCircles:a}=t,c=Math.max(t.outerRadius-o,0),l=t.innerRadius+o;let d;for(n&&Uc(e,t,i+oe),e.beginPath(),e.arc(s,r,l,i+oe,i,!0),d=0;d<a;++d)e.stroke();for(e.beginPath(),e.arc(s,r,c,i,i+oe),d=0;d<a;++d)e.stroke()}function cw(e,t,n,s,r,i){const{options:o}=t,{borderWidth:a,borderJoinStyle:c}=o,l=o.borderAlign==="inner";a&&(l?(e.lineWidth=a*2,e.lineJoin=c||"round"):(e.lineWidth=a,e.lineJoin=c||"bevel"),t.fullCircles&&lw(e,t,l),l&&Uc(e,t,r),Gi(e,t,n,s,r,i),e.stroke())}class Ir extends nt{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,s){const r=this.getProps(["x","y"],s),{angle:i,distance:o}=lc(r,{x:t,y:n}),{startAngle:a,endAngle:c,innerRadius:l,outerRadius:d,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),h=this.options.spacing/2,p=ee(u,c-a)>=oe||kn(i,a,c),y=Cn(o,l+h,d+h);return p&&y}getCenterPoint(t){const{x:n,y:s,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:c,spacing:l}=this.options,d=(r+i)/2,u=(o+a+l+c)/2;return{x:n+Math.cos(d)*u,y:s+Math.sin(d)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:s}=this,r=(n.offset||0)/2,i=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=s>oe?Math.floor(s/oe):0,s===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(r){a=r/2;const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*a,Math.sin(l)*a),this.circumference>=he&&(a=r)}t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor;const c=aw(t,this,a,i,o);cw(t,this,a,i,c,o),t.restore()}}Ir.id="arc";Ir.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};Ir.defaultRoutes={backgroundColor:"backgroundColor"};function qc(e,t,n=t){e.lineCap=ee(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ee(n.borderDash,t.borderDash)),e.lineDashOffset=ee(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ee(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ee(n.borderWidth,t.borderWidth),e.strokeStyle=ee(n.borderColor,t.borderColor)}function dw(e,t,n){e.lineTo(n.x,n.y)}function uw(e){return e.stepped?L5:e.tension||e.cubicInterpolationMode==="monotone"?I5:dw}function Yc(e,t,n={}){const s=e.length,{start:r=0,end:i=s-1}=n,{start:o,end:a}=t,c=Math.max(r,o),l=Math.min(i,a),d=r<o&&i<o||r>a&&i>a;return{count:s,start:c,loop:t.loop,ilen:l<c&&!d?s+l-c:l-c}}function hw(e,t,n,s){const{points:r,options:i}=t,{count:o,start:a,loop:c,ilen:l}=Yc(r,n,s),d=uw(i);let{move:u=!0,reverse:h}=s||{},f,p,y;for(f=0;f<=l;++f)p=r[(a+(h?l-f:f))%o],!p.skip&&(u?(e.moveTo(p.x,p.y),u=!1):d(e,y,p,h,i.stepped),y=p);return c&&(p=r[(a+(h?l:0))%o],d(e,y,p,h,i.stepped)),!!c}function pw(e,t,n,s){const r=t.points,{count:i,start:o,ilen:a}=Yc(r,n,s),{move:c=!0,reverse:l}=s||{};let d=0,u=0,h,f,p,y,m,b;const _=T=>(o+(l?a-T:T))%i,C=()=>{y!==m&&(e.lineTo(d,m),e.lineTo(d,y),e.lineTo(d,b))};for(c&&(f=r[_(0)],e.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=r[_(h)],f.skip)continue;const T=f.x,M=f.y,L=T|0;L===p?(M<y?y=M:M>m&&(m=M),d=(u*d+T)/++u):(C(),e.lineTo(T,M),p=L,u=0,y=m=M),b=M}C()}function Hi(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?pw:hw}function fw(e){return e.stepped?c6:e.tension||e.cubicInterpolationMode==="monotone"?d6:_t}function gw(e,t,n,s){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,s)&&r.closePath()),qc(e,t.options),e.stroke(r)}function mw(e,t,n,s){const{segments:r,options:i}=t,o=Hi(t);for(const a of r)qc(e,i,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const bw=typeof Path2D=="function";function yw(e,t,n,s){bw&&!t.options.segment?gw(e,t,n,s):mw(e,t,n,s)}class ut extends nt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const r=s.spanGaps?this._loop:this._fullLoop;t6(this._points,s,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=v6(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,r=t[n],i=this.points,o=Mc(this,{property:n,start:r,end:r});if(!o.length)return;const a=[],c=fw(s);let l,d;for(l=0,d=o.length;l<d;++l){const{start:u,end:h}=o[l],f=i[u],p=i[h];if(f===p){a.push(f);continue}const y=Math.abs((r-f[n])/(p[n]-f[n])),m=c(f,p,y,s.stepped);m[n]=t[n],a.push(m)}return a.length===1?a[0]:a}pathSegment(t,n,s){return Hi(this)(t,this,n,s)}path(t,n,s){const r=this.segments,i=Hi(this);let o=this._loop;n=n||0,s=s||this.points.length-n;for(const a of r)o&=i(t,this,a,{start:n,end:n+s-1});return!!o}draw(t,n,s,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),yw(t,this,s,r),t.restore(
2)),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ut.id="line";ut.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};ut.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};ut.descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};function Ya(e,t,n,s){const r=e.options,{[n]:i}=e.getProps([n],s);return Math.abs(t-i)<r.radius+r.hitRadius}class ks extends nt{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,s){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],s);return Math.pow(t-i,2)+Math.pow(n-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,n){return Ya(this,t,"x",n)}inYRange(t,n){return Ya(this,t,"y",n)}getCenterPoint(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const s=n&&t.borderWidth||0;return(n+s)*2}draw(t,n){const s=this.options;this.skip||s.radius<.1||!Sn(this,n,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,Ni(t,s,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}ks.id="point";ks.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};ks.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Zc(e,t){const{x:n,y:s,base:r,width:i,height:o}=e.getProps(["x","y","base","width","height"],t);let a,c,l,d,u;return e.horizontal?(u=o/2,a=Math.min(n,r),c=Math.max(n,r),l=s-u,d=s+u):(u=i/2,a=n-u,c=n+u,l=Math.min(s,r),d=Math.max(s,r)),{left:a,top:l,right:c,bottom:d}}function ot(e,t,n,s){return e?0:ve(t,n,s)}function vw(e,t,n){const s=e.options.borderWidth,r=e.borderSkipped,i=_c(s);
vendor: 10,144 bytes, lines 2-4
2return{t:ot(r.top,i.top,0,n),r:ot(r.right,i.right,0,t),b:ot(r.bottom,i.bottom,0,n),l:ot(r.left,i.left,0,t)}}function _w(e,t,n){const{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=Bt(r),o=Math.min(t,n),a=e.borderSkipped,c=s||Q(r);return{topLeft:ot(!c||a.top||a.left,i.topLeft,0,o),topRight:ot(!c||a.top||a.right,i.topRight,0,o),bottomLeft:ot(!c||a.bottom||a.left,i.bottomLeft,0,o),bottomRight:ot(!c||a.bottom||a.right,i.bottomRight,0,o)}}function xw(e){const t=Zc(e),n=t.right-t.left,s=t.bottom-t.top,r=vw(e,n/2,s/2),i=_w(e,n/2,s/2);return{outer:{x:t.left,y:t.top,w:n,h:s,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:s-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function ki(e,t,n,s){const r=t===null,i=n===null,a=e&&!(r&&i)&&Zc(e,s);return a&&(r||Cn(t,a.left,a.right))&&(i||Cn(n,a.top,a.bottom))}function ww(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function kw(e,t){e.rect(t.x,t.y,t.w,t.h)}function Ci(e,t,n={}){const s=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-s,o=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+s,y:e.y+r,w:e.w+i,h:e.h+o,radius:e.radius}}class Rr extends nt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:s,backgroundColor:r}}=this,{inner:i,outer:o}=xw(this),a=ww(o.radius)?us:kw;t.save(),(o.w!==i.w||o.h!==i.h)&&(t.beginPath(),a(t,Ci(o,n,i)),t.clip(),a(t,Ci(i,-n,o)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),a(t,Ci(i,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,s){return ki(this,t,n,s)}inXRange(t,n){return ki(this,t,null,n)}inYRange(t,n){return ki(this,null,t,n)}getCenterPoint(t){const{x:n,y:s,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+r)/2:n,y:i?s:(s+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Rr.id="bar";Rr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};Rr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Cw(e,t,n){const s=e.segments,r=e.points,i=t.points,o=[];for(const a of s){let{start:c,end:l}=a;l=Dr(c,l,r);const d=Wi(n,r[c],r[l],a.loop);if(!t.segments){o.push({source:a,target:d,start:r[c],end:r[l]});continue}const u=Mc(t,d);for(const h of u){const f=Wi(n,i[h.start],i[h.end],h.loop),p=Oc(a,r,f);for(const y of p)o.push({source:y,target:h,start:{[n]:Za(d,f,"start",Math.max)},end:{[n]:Za(d,f,"end",Math.min)}})}}return o}function Wi(e,t,n,s){if(s)return;let r=t[e],i=n[e];return e==="angle"&&(r=Ce(r),i=Ce(i)),{property:e,start:r,end:i}}function Sw(e,t){const{x:n=null,y:s=null}=e||{},r=t.points,i=[];return t.segments.forEach(({start:o,end:a})=>{a=Dr(o,a,r);const c=r[o],l=r[a];s!==null?(i.push({x:c.x,y:s}),i.push({x:l.x,y:s})):n!==null&&(i.push({x:n,y:c.y}),i.push({x:n,y:l.y}))}),i}function Dr(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function Za(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function Kc(e,t){let n=[],s=!1;return le(e)?(s=!0,n=e):n=Sw(e,t),n.length?new ut({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function Ka(e){return e&&e.fill!==!1}function Tw(e,t,n){let r=e[t].fill;const i=[t];let o;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!pe(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function Pw(e,t,n){const s=Lw(e);if(Q(s))return isNaN(s.value)?!1:s;let r=parseFloat(s);return pe(r)&&Math.floor(r)===r?Aw(s[0],t,r,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Aw(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function Ow(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Q(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Mw(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:Q(e)?s=e.value:s=t.getBaseValue(),s}function Lw(e){const t=e.options,n=t.fill;let s=ee(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function Iw(e){const{scale:t,index:n,line:s}=e,r=[],i=s.segments,o=s.points,a=Rw(t,n);a.push(Kc({x:null,y:t.bottom},s));for(let c=0;c<i.length;c++){const l=i[c];for(let d=l.start;d<=l.end;d++)Dw(r,o[d],a)}return new ut({points:r,options:{}})}function Rw(e,t){const n=[],s=e.getMatchingVisibleMetas("line");for(let r=0;r<s.length;r++){const i=s[r];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function Dw(e,t,n){const s=[];for(let r=0;r<n.length;r++){const i=n[r],{first:o,last:a,point:c}=Fw(i,t,"x");if(!(!c||o&&a)){if(o)s.unshift(c);else if(e.push(c),!a)break}}e.push(...s)}function Fw(e,t,n){const s=e.interpolate(t,n);if(!s)return{};const r=s[n],i=e.segments,o=e.points;let a=!1,c=!1;for(let l=0;l<i.length;l++){const d=i[l],u=o[d.start][n],h=o[d.end][n];if(Cn(r,u,h)){a=r===u,c=r===h;break}}return{first:a,last:c,point:s}}class Xc{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,s){const{x:r,y:i,radius:o}=this;return n=n||{start:0,end:oe},t.arc(r,i,o,n.end,n.start,!0),!s.bounds}interpolate(t){const{x:n,y:s,radius:r}=this,i=t.angle;return{x:n+Math.cos(i)*r,y:s+Math.sin(i)*r,angle:i}}}function Bw(e){const{chart:t,fill:n,line:s}=e;if(pe(n))return Ew(t,n);if(n==="stack")return Iw(e);if(n==="shape")return!0;const r=$w(e);return r instanceof Xc?r:Kc(r,s)}function Ew(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function $w(e){return(e.scale||{}).getPointPositionForValue?zw(e):Nw(e)}function Nw(e){const{scale:t={},fill:n}=e,s=Ow(n,t);if(pe(s)){const r=t.isHorizontal();return{x:r?s:null,y:r?null:s}}return null}function zw(e){const{scale:t,fill:n}=e,s=t.options,r=t.getLabels().length,i=s.reverse?t.max:t.min,o=Mw(n,t,i),a=[];if(s.grid.circular){const c=t.getPointPositionForValue(0,i);return new Xc({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(o)})}for(let c=0;c<r;++c)a.push(t.getPointPositionForValue(c,o));return a}function Si(e,t,n){const s=Bw(t),{line:r,scale:i,axis:o}=t,a=r.options,c=a.fill,l=a.backgroundColor,{above:d=l,below:u=l}=c||{};s&&r.points.length&&(_r(e,n),jw(e,{line:r,target:s,above:d,below:u,area:n,scale:i,axis:o}),xr(e))}function jw(e,t){const{line:n,target:s,above:r,below:i,area:o,scale:a}=t,c=n._loop?"angle":t.axis;e.save(),c==="x"&&i!==r&&(Xa(e,s,o.top),Ja(e,{line:n,target:s,color:r,scale:a,property:c}),e.restore(),e.save(),Xa(e,s,o.bottom)),Ja(e,{line:n,target:s,color:i,scale:a,property:c}),e.restore()}function Xa(e,t,n){const{segments:s,points:r}=t;let i=!0,o=!1;e.beginPath();for(const a of s){const{start:c,end:l}=a,d=r[c],u=r[Dr(c,l,r)];i?(e.moveTo(d.x,d.y),i=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),o=!!t.pathSegment(e,a,{move:o}),o?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Ja(e,t){const{line:n,target:s,property:r,color:i,scale:o}=t,a=Cw(n,s,r);for(const{source:c,target:l,start:d,end:u}of a){const{style:{backgroundColor:h=i}={}}=c,f=s!==!0;e.save(),e.fillStyle=h,Vw(e,o,f&&Wi(r,d,u)),e.beginPath();const p=!!n.pathSegment(e,c);let y;if(f){p?e.closePath():Qa(e,s,u,r);const m=!!s.pathSegment(e,l,{move:p,reverse:!0});y=p&&m,y||Qa(e,s,d,r)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function Vw(e,t,n){const{top:s,bottom:r}=t.chart.chartArea,{property:i,start:o,end:a}=n||{};i==="x"&&(e.beginPath(),e.rect(o,s,a-o,r-s),e.clip())}function Qa(e,t,n,s){const r=t.interpolate(n,s);r&&e.lineTo(r.x,r.y)}var Gw={id:"filler",afterDatasetsUpdate(e,t,n){const s=(e.data.datasets||[]).length,r=[];let i,o,a,c;for(o=0;o<s;++o)i=e.getDatasetMeta(o),a=i.dataset,c=null,a&&a.options&&a instanceof ut&&(c={visible:e.isDatasetVisible(o),index:o,fill:Pw(a,o,s),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:a}),i.$filler=c,r.push(c);for(o=0;o<s;++o)c=r[o],!(!c||c.fill===!1)&&(c.fill=Tw(r,o,n.propagate))},beforeDraw(e,t,n){const s=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let o=r.length-1;o>=0;--o){const a=r[o].$filler;a&&(a.line.updateControlPoints(i,a.axis),s&&a.fill&&Si(e.ctx,a,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let r=s.length-1;r>=0;--r){const i=s[r].$filler;Ka(i)&&Si(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!Ka(s)||n.drawTime!=="beforeDatasetDraw"||Si(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const yn={average(e){if(!e.length)return!1;let t,n,s=0,r=0,i=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const a=o.tooltipPosition();s+=a.x,r+=a.y,++i}}return{x:s/i,y:r/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,s=t.y,r=Number.POSITIVE_INFINITY,i,o,a;for(i=0,o=e.length;i<o;++i){const c=e[i].element;if(c&&c.hasValue()){const l=c.getCenterPoint(),d=Bi(t,l);d<r&&(r=d,a=c)}}if(a){const c=a.tooltipPosition();n=c.x,s=c.y}return{x:n,y:s}}};function Ge(e,t){return t&&(le(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Je(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` 3`)>-1?e.split(` 4`):e}function Hw(e,t){const{element:n,datasetIndex:s,index:r}=t,i=e.getDatasetMeta(s).controller,{label:o,value:a}=i.getLabelAndValue(r);return{chart:e,label:o,parsed:i.getParsed(r),raw:e.data.datasets[s].data[r],formattedValue:a,dataset:i.getDataset(),dataIndex:r,datasetIndex:s,element:n}}function el(e,t){const n=e.chart.ctx,{body:s,footer:r,title:i}=e,{boxWidth:o,boxHeight:a}=t,c=Se(t.bodyFont),l=Se(t.titleFont),d=Se(t.footerFont),u=i.length,h=r.length,f=s.length,p=De(t.padding);let y=p.height,m=0,b=s.reduce((T,M)=>T+M.before.length+M.lines.length+M.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,u&&(y+=u*l.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const T=t.displayColors?Math.max(a,c.lineHeight):c.lineHeight;y+=f*T+(b-f)*c.lineHeight+(b-1)*t.bodySpacing}
4h&&(y+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let _=0;const C=function(T){m=Math.max(m,n.measureText(T).width+_)};return n.save(),n.font=l.string,ie(e.title,C),n.font=c.string,ie(e.beforeBody.concat(e.afterBody),C),_=t.displayColors?o+2+t.boxPadding:0,ie(s,T=>{ie(T.before,C),ie(T.lines,C),ie(T.after,C)}),_=0,n.font=d.string,ie(e.footer,C),n.restore(),m+=p.width,{width:m,height:y}}function Ww(e,t){const{y:n,height:s}=t;return n<s/2?"top":n>e.height-s/2?"bottom":"center"}function Uw(e,t,n,s){const{x:r,width:i}=s,o=n.caretSize+n.caretPadding;if(e==="left"&&r+i+o>t.width||e==="right"&&r-i-o<0)return!0}function qw(e,t,n,s){const{x:r,width:i}=n,{width:o,chartArea:{left:a,right:c}}=e;let l="center";return s==="center"?l=r<=(a+c)/2?"left":"right":r<=i/2?l="left":r>=o-i/2&&(l="right"),Uw(l,e,t,n)&&(l="center"),l}function tl(e,t,n){const s=n.yAlign||t.yAlign||Ww(e,n);return{xAlign:n.xAlign||t.xAlign||qw(e,t,n,s),yAlign:s}}function Yw(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function Zw(e,t,n){let{y:s,height:r}=e;return t==="top"?s+=n:t==="bottom"?s-=r+n:s-=r/2,s}function nl(e,t,n,s){const{caretSize:r,caretPadding:i,cornerRadius:o}=e,{xAlign:a,yAlign:c}=n,l=r+i,{topLeft:d,topRight:u,bottomLeft:h,bottomRight:f}=Bt(o);let p=Yw(t,a);const y=Zw(t,c,l);return c==="center"?a==="left"?p+=l:a==="right"&&(p-=l):a==="left"?p-=Math.max(d,h)+r:a==="right"&&(p+=Math.max(u,f)+r),{x:ve(p,0,s.width-t.width),y:ve(y,0,s.height-t.height)}}function Jn(e,t,n){const s=De(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function sl(e){return Ge([],Je(e))}function Kw(e,t,n){return dt(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function il(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class Ui extends nt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),r=s.enabled&&n.options.animation&&s.animations,i=new Lc(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=Kw(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,r=s.beforeTitle.apply(this,[t]),i=s.title.apply(this,[t]),o=s.afterTitle.apply(this,[t]);let a=[];return a=Ge(a,Je(r)),a=Ge(a,Je(i)),a=Ge(a,Je(o)),a}getBeforeBody(t,n){return sl(n.callbacks.beforeBody.apply(this,[t]))}getBody(t,n){const{callbacks:s}=n,r=[];return ie(t,i=>{const o={before:[],lines:[],after:[]},a=il(s,i);Ge(o.before,Je(a.beforeLabel.call(this,i))),Ge(o.lines,a.label.call(this,i)),Ge(o.after,Je(a.afterLabel.call(this,i))),r.push(o)}),r}getAfterBody(t,n){return sl(n.callbacks.afterBody.apply(this,[t]))}getFooter(t,n){const{callbacks:s}=n,r=s.beforeFooter.apply(this,[t]),i=s.footer.apply(this,[t]),o=s.afterFooter.apply(this,[t]);let a=[];return a=Ge(a,Je(r)),a=Ge(a,Je(i)),a=Ge(a,Je(o)),a}_createItems(t){const n=this._active,s=this.chart.data,r=[],i=[],o=[];let a=[],c,l;for(c=0,l=n.length;c<l;++c)a.push(Hw(this.chart,n[c]));return t.filter&&(a=a.filter((d,u,h)=>t.filter(d,u,h,s))),t.itemSort&&(a=a.sort((d,u)=>t.itemSort(d,u,s))),ie(a,d=>{const u=il(t.callbacks,d);r.push(u.labelColor.call(this,d)),i.push(u.labelPointStyle.call(this,d)),o.push(u.labelTextColor.call(this,d))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(!r.length)this.opacity!==0&&(i={opacity:0}
vendor: 13,131 bytes, line 4
4);else{const a=yn[s.position].call(this,r,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const c=this._size=el(this,s),l=Object.assign({},a,c),d=tl(this.chart,s,l),u=nl(s,l,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,r){const i=this.getCaretPosition(t,s,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,s){const{xAlign:r,yAlign:i}=this,{caretSize:o,cornerRadius:a}=s,{topLeft:c,topRight:l,bottomLeft:d,bottomRight:u}=Bt(a),{x:h,y:f}=t,{width:p,height:y}=n;let m,b,_,C,T,M;return i==="center"?(T=f+y/2,r==="left"?(m=h,b=m-o,C=T+o,M=T-o):(m=h+p,b=m+o,C=T-o,M=T+o),_=m):(r==="left"?b=h+Math.max(c,d)+o:r==="right"?b=h+p-Math.max(l,u)-o:b=this.caretX,i==="top"?(C=f,T=C-o,m=b-o,_=b+o):(C=f+y,T=C+o,m=b+o,_=b-o),M=C),{x1:m,x2:b,x3:_,y1:C,y2:T,y3:M}}drawTitle(t,n,s){const r=this.title,i=r.length;let o,a,c;if(i){const l=mi(s.rtl,this.x,this.width);for(t.x=Jn(this,s.titleAlign,s),n.textAlign=l.textAlign(s.titleAlign),n.textBaseline="middle",o=Se(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=o.string,c=0;c<i;++c)n.fillText(r[c],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,c+1===i&&(t.y+=s.titleMarginBottom-a)}}_drawColorBox(t,n,s,r,i){const o=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:c,boxWidth:l,boxPadding:d}=i,u=Se(i.bodyFont),h=Jn(this,"left",i),f=r.x(h),p=c<u.lineHeight?(u.lineHeight-c)/2:0,y=n.y+p;if(i.usePointStyle){const m={radius:Math.min(l,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=r.leftForLtr(f,l)+l/2,_=y+c/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Ni(t,m,b,_),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Ni(t,m,b,_)}else{t.lineWidth=Q(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=r.leftForLtr(f,l-d),b=r.leftForLtr(r.xPlus(f,1),l-d-2),_=Bt(o.borderRadius);Object.values(_).some(C=>C!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,us(t,{x:m,y,w:l,h:c,radius:_}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),us(t,{x:b,y:y+1,w:l-2,h:c-2,radius:_}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,y,l,c),t.strokeRect(m,y,l,c),t.fillStyle=o.backgroundColor,t.fillRect(b,y+1,l-2,c-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:r}=this,{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:c,boxWidth:l,boxPadding:d}=s,u=Se(s.bodyFont);let h=u.lineHeight,f=0;const p=mi(s.rtl,this.x,this.width),y=function(U){n.fillText(U,p.x(t.x+f),t.y+h/2),t.y+=h+i},m=p.textAlign(o);let b,_,C,T,M,L,$;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,t.x=Jn(this,m,s),n.fillStyle=s.bodyColor,ie(this.beforeBody,y),f=a&&m!=="right"?o==="center"?l/2+d:l+2+d:0,T=0,L=r.length;T<L;++T){for(b=r[T],_=this.labelTextColors[T],n.fillStyle=_,ie(b.before,y),C=b.lines,a&&C.length&&(this._drawColorBox(n,t,T,p,s),h=Math.max(u.lineHeight,c)),M=0,$=C.length;M<$;++M)y(C[M]),h=u.lineHeight;ie(b.after,y)}f=0,h=u.lineHeight,ie(this.afterBody,y),t.y-=i}drawFooter(t,n,s){const r=this.footer,i=r.length;let o,a;if(i){const c=mi(s.rtl,this.x,this.width);for(t.x=Jn(this,s.footerAlign,s),t.y+=s.footerMarginTop,n.textAlign=c.textAlign(s.footerAlign),n.textBaseline="middle",o=Se(s.footerFont),n.fillStyle=s.footerColor,n.font=o.string,a=0;a<i;++a)n.fillText(r[a],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s.footerSpacing}}drawBackground(t,n,s,r){const{xAlign:i,yAlign:o}=this,{x:a,y:c}=t,{width:l,height:d}=s,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:p}=Bt(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(a+u,c),o==="top"&&this.drawCaret(t,n,s,r),n.lineTo(a+l-h,c),n.quadraticCurveTo(a+l,c,a+l,c+h),o==="center"&&i==="right"&&this.drawCaret(t,n,s,r),n.lineTo(a+l,c+d-p),n.quadraticCurveTo(a+l,c+d,a+l-p,c+d),o==="bottom"&&this.drawCaret(t,n,s,r),n.lineTo(a+f,c+d),n.quadraticCurveTo(a,c+d,a,c+d-f),o==="center"&&i==="left"&&this.drawCaret(t,n,s,r),n.lineTo(a,c+u),n.quadraticCurveTo(a,c,a+u,c),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,r=s&&s.x,i=s&&s.y;if(r||i){const o=yn[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=el(this,t),c=Object.assign({},o,this._size),l=tl(n,t,c),d=nl(t,c,l,n);(r._to!==d.x||i._to!==d.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=De(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(i,t,r,n),f6(t,n.textDirection),i.y+=o.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),g6(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,r=t.map(({datasetIndex:a,index:c})=>{const l=this.chart.getDatasetMeta(a);if(!l)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:l.data[c],index:c}}),i=!rs(s,r),o=this._positionChanged(r,n);(i||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],o=this._getActiveElements(t,i,n,s),a=this._positionChanged(o,t),c=n||!rs(o,i)||a;return c&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,s,r){const i=this.options;if(t.type==="mouseout")return[];if(!r)return n;const o=this.chart.getElementsAtEventForMode(t,i.mode,i,s);return i.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:s,caretY:r,options:i}=this,o=yn[i.position].call(this,t,n);return o!==!1&&(s!==o.x||r!==o.y)}}Ui.positioners=yn;var Xw={id:"tooltip",_element:Ui,positioners:yn,afterInit(e,t,n){n&&(e.tooltip=new Ui({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",n)===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ke,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return n[t.dataIndex]}return""},afterTitle:Ke,beforeBody:Ke,beforeLabel:Ke,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ne(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ke,afterBody:Ke,beforeFooter:Ke,footer:Ke,afterFooter:Ke}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Jw=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Qw(e,t,n,s){const r=e.indexOf(t);if(r===-1)return Jw(e,t,n,s);const i=e.lastIndexOf(t);return r!==i?n:r}const e8=(e,t)=>e===null?null:ve(Math.round(e),0,t);class gs extends At{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const s=this.getLabels();for(const{index:r,label:i}of n)s[r]===i&&s.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ne(t))return null;const s=this.getLabels();return n=isFinite(n)&&s[n]===t?n:Qw(s,t,ee(n,t),this._addedLabels),e8(n,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:s,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),n||(r=this.getLabels().length-1)),this.min=s,this.max=r}buildTicks(){const t=this.min,n=this.max,s=this.options.offset,r=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let o=t;o<=n;o++)r.push({value:o});return r}getLabelForValue(t){const n=this.getLabels();return t>=0&&t<n.length?n[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}gs.id="category";gs.defaults={ticks:{callback:gs.prototype.getLabelForValue}};function t8(e,t){const n=[],{bounds:r,step:i,min:o,max:a,precision:c,count:l,maxTicks:d,maxDigits:u,includeBounds:h}=e,f=i||1,p=d-1,{min:y,max:m}=t,b=!ne(o),_=!ne(a),C=!ne(l),T=(m-y)/(u+1);let M=sa((m-y)/p/f)*f,L,$,U,I;if(M<1e-14&&!b&&!_)return[{value:y},{value:m}];I=Math.ceil(m/M)-Math.floor(y/M),I>p&&(M=sa(I*M/p/f)*f),ne(c)||(L=Math.pow(10,c),M=Math.ceil(M*L)/L),r==="ticks"?($=Math.floor(y/M)*M,U=Math.ceil(m/M)*M):($=y,U=m),b&&_&&i&&Xx((a-o)/i,M/1e3)?(I=Math.round(Math.min((a-o)/M,d)),M=(a-o)/I,$=o,U=a):C?($=b?o:$,U=_?a:U,I=l-1,M=(U-$)/I):(I=(U-$)/M,gn(I,Math.round(I),M/1e3)?I=Math.round(I):I=Math.ceil(I));const N=Math.max(ia(M),ia($));L=Math.pow(10,ne(c)?N:c),$=Math.round($*L)/L,U=Math.round(U*L)/L;let F=0;for(b&&(h&&$!==o?(n.push({value:o}),$<o&&F++,gn(Math.round(($+F*M)*L)/L,o,rl(o,T,e))&&F++):$<o&&F++);F<I;++F)n.push({value:Math.round(($+F*M)*L)/L});return _&&h&&U!==a?n.length&&gn(n[n.length-1].value,a,rl(a,T,e))?n[n.length-1].value=a:n.push({value:a}):(!_||U===a)&&n.push({value:U}),n}function rl(e,t,{horizontal:n,minRotation:s}){const r=$e(s),i=(n?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+e).length;return Math.min(t/i,o)}class ms extends At{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ne(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:r,max:i}=this;const o=c=>r=n?r:c,a=c=>i=s?i:c;if(t){const c=We(r),l=We(i);c<0&&l<0?a(0):c>0&&l>0&&o(0)}if(r===i){let c=1;(i>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(c=Math.abs(i*.05)),a(i+c),t||o(r-c)}this.min=r,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,r;return s?(r=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}
4buildTicks(){const t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const r={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,o=t8(r,i);return t.bounds==="ticks"&&ac(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const r=(s-n)/Math.max(t.length-1,1)/2;n-=r,s+=r}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return In(t,this.chart.options.locale,this.options.ticks.format)}}class Fr extends ms{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=pe(t)?t:0,this.max=pe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=$e(this.options.ticks.minRotation),r=(t?Math.sin(s):Math.cos(s))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Fr.id="linear";Fr.defaults={ticks:{callback:xs.formatters.numeric}};function ol(e){return e/Math.pow(10,Math.floor(Ie(e)))===1}function n8(e,t){const n=Math.floor(Ie(t.max)),s=Math.ceil(t.max/Math.pow(10,n)),r=[];let i=Me(e.min,Math.pow(10,Math.floor(Ie(t.min)))),o=Math.floor(Ie(i)),a=Math.floor(i/Math.pow(10,o)),c=o<0?Math.pow(10,Math.abs(o)):1;do r.push({value:i,major:ol(i)}),++a,a===10&&(a=1,++o,c=o>=0?1:c),i=Math.round(a*Math.pow(10,o)*c)/c;while(o<n||o===n&&a<s);const l=Me(e.max,i);return r.push({value:l,major:ol(i)}),r}class Jc extends At{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=ms.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return pe(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=pe(t)?Math.max(0,t):null,this.max=pe(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,r=this.max;const i=c=>s=t?s:c,o=c=>r=n?r:c,a=(c,l)=>Math.pow(10,Math.floor(Ie(c))+l);s===r&&(s<=0?(i(1),o(10)):(i(a(s,-1)),o(a(r,1)))),s<=0&&i(a(r,-1)),r<=0&&o(a(s,1)),this._zero&&this.min!==this._suggestedMin&&s===a(this.min,0)&&i(a(s,-1)),this.min=s,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=n8(n,this);return t.bounds==="ticks"&&ac(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":In(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ie(t),this._valueRange=Ie(this.max)-Ie(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ie(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Jc.id="logarithmic";Jc.defaults={ticks:{callback:xs.formatters.logarithmic,major:{enabled:!0}}};function qi(e){const t=e.ticks;if(t.display&&e.display){const n=De(t.backdropPadding);return ee(t.font&&t.font.size,te.font.size)+n.height}return 0}function s8(e,t,n){return n=le(n)?n:[n],{w:O5(e,t.string,n),h:n.length*t.lineHeight}}function al(e,t,n,s,r){return e===s||e===r?{start:t-n/2,end:t+n/2}:e<s||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function i8(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],r=[],i=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?he/i:0;for(let c=0;c<i;c++){const l=o.setContext(e.getPointLabelContext(c));r[c]=l.padding;const d=e.getPointPosition(c,e.drawingArea+r[c],a),u=Se(l.font),h=s8(e.ctx,u,e._pointLabels[c]);s[c]=h;const f=Ce(e.getIndexAngle(c)+a),p=Math.round(gr(f)),y=al(p,d.x,h.w,0,180),m=al(p,d.y,h.h,90,270);r8(n,t,f,y,m)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=o8(e,s,r)}function r8(e,t,n,s,r){const i=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,c=0;s.start<t.l?(a=(t.l-s.start)/i,e.l=Math.min(e.l,t.l-a)):s.end>
vendor: 13,921 bytes, line 4
4t.r&&(a=(s.end-t.r)/i,e.r=Math.max(e.r,t.r+a)),r.start<t.t?(c=(t.t-r.start)/o,e.t=Math.min(e.t,t.t-c)):r.end>t.b&&(c=(r.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function o8(e,t,n){const s=[],r=e._pointLabels.length,i=e.options,o=qi(i)/2,a=e.drawingArea,c=i.pointLabels.centerPointLabels?he/r:0;for(let l=0;l<r;l++){const d=e.getPointPosition(l,a+o+n[l],c),u=Math.round(gr(Ce(d.angle+ue))),h=t[l],f=c8(d.y,h.h,u),p=a8(u),y=l8(d.x,h.w,p);s.push({x:d.x,y:f,textAlign:p,left:y,top:f,right:y+h.w,bottom:f+h.h})}return s}function a8(e){return e===0||e===180?"center":e<180?"left":"right"}function l8(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function c8(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function d8(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let r=t-1;r>=0;r--){const i=s.setContext(e.getPointLabelContext(r)),o=Se(i.font),{x:a,y:c,textAlign:l,left:d,top:u,right:h,bottom:f}=e._pointLabelItems[r],{backdropColor:p}=i;if(!ne(p)){const y=Bt(i.borderRadius),m=De(i.backdropPadding);n.fillStyle=p;const b=d-m.left,_=u-m.top,C=h-d+m.width,T=f-u+m.height;Object.values(y).some(M=>M!==0)?(n.beginPath(),us(n,{x:b,y:_,w:C,h:T,radius:y}),n.fill()):n.fillRect(b,_,C,T)}ds(n,e._pointLabels[r],a,c+o.lineHeight/2,o,{color:i.color,textAlign:l,textBaseline:"middle"})}}function Qc(e,t,n,s){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,oe);else{let i=e.getPointPosition(0,t);r.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=e.getPointPosition(o,t),r.lineTo(i.x,i.y)}}function u8(e,t,n,s){const r=e.ctx,i=t.circular,{color:o,lineWidth:a}=t;!i&&!s||!o||!a||n<0||(r.save(),r.strokeStyle=o,r.lineWidth=a,r.setLineDash(t.borderDash),r.lineDashOffset=t.borderDashOffset,r.beginPath(),Qc(e,n,i,s),r.closePath(),r.stroke(),r.restore())}function h8(e,t,n){return dt(e,{label:n,index:t,type:"pointLabel"})}class Cs extends ms{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=De(qi(this.options)/2),n=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=pe(t)&&!isNaN(t)?t:0,this.max=pe(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/qi(this.options))}generateTickLabels(t){ms.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,s)=>{const r=de(this.options.pointLabels.callback,[n,s],this);return r||r===0?r:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?i8(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,r))}getIndexAngle(t){const n=oe/(this._pointLabels.length||1),s=this.options.startAngle||0;return Ce(t*n+$e(s))}getDistanceFromCenterForValue(t){if(ne(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ne(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const s=n[t];return h8(this.getContext(),t,s)}}getPointPosition(t,n,s=0){const r=this.getIndexAngle(t)-ue+s;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:s,right:r,bottom:i}=this._pointLabelItems[t];return{left:n,top:s,right:r,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),Qc(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:s,grid:r}=n,i=this._pointLabels.length;let o,a,c;if(n.pointLabels.display&&d8(this,i),r.display&&this.ticks.forEach((l,d)=>{if(d!==0){a=this.getDistanceFromCenterForValue(l.value);const u=r.setContext(this.getContext(d-1));u8(this,u,a,i)}}),s.display){for(t.save(),o=i-1;o>=0;o--){const l=s.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:u}=l;!u||!d||(t.lineWidth=u,t.strokeStyle=d,t.setLineDash(l.borderDash),t.lineDashOffset=l.borderDashOffset,a=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(o,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const r=this.getIndexAngle(0);let i,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,c)=>{if(c===0&&!n.reverse)return;const l=s.setContext(this.getContext(c)),d=Se(l.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),l.showLabelBackdrop){t.font=d.string,o=t.measureText(a.label).width,t.fillStyle=l.backdropColor;const u=De(l.backdropPadding);t.fillRect(-o/2-u.left,-i-d.size/2-u.top,o+u.width,d.size+u.height)}ds(t,a.label,0,-i,d,{color:l.color})}),t.restore()}drawTitle(){}}Cs.id="radialLinear";Cs.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:xs.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};Cs.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Cs.descriptors={angleLines:{_fallback:"grid"}};const Ss={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},we=Object.keys(Ss);function p8(e,t){return e-t}function ll(e,t){if(ne(t))return null;const n=e._adapter,{parser:s,round:r,isoWeekday:i}=e._parseOpts;let o=t;return typeof s=="function"&&(o=s(o)),pe(o)||(o=typeof s=="string"?n.parse(o,s):n.parse(o)),o===null?null:(r&&(o=r==="week"&&($t(i)||i===!0)?n.startOf(o,"isoWeek",i):n.startOf(o,r)),+o)}function cl(e,t,n,s){const r=we.length;for(let i=we.indexOf(e);i<r-1;++i){const o=Ss[we[i]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(a*o.size))<=s)return we[i]}return we[r-1]}function f8(e,t,n,s,r){for(let i=we.length-1;i>=we.indexOf(n);i--){const o=we[i];if(Ss[o].common&&e._adapter.diff(r,s,o)>=t-1)return o}return we[n?we.indexOf(n):0]}function g8(e){for(let t=we.indexOf(e)+1,n=we.length;t<n;++t)if(Ss[we[t]].common)return we[t]}function dl(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:s,hi:r}=mr(n,t),i=n[s]>=t?n[s]:n[r];e[i]=!0}}function m8(e,t,n,s){const r=e._adapter,i=+r.startOf(t[0].value,s),o=t[t.length-1].value;let a,c;for(a=i;a<=o;a=+r.add(a,1,s))c=n[a],c>=0&&(t[c].major=!0);return t}function ul(e,t,n){const s=[],r={},i=t.length;let o,a;for(o=0;o<i;++o)a=t[o],r[a]=o,s.push({value:a,major:!1});return i===0||!n?s:m8(e,s,r,n)}class Ts extends At{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n){const s=t.time||(t.time={}),r=this._adapter=new f7._date(t.adapters.date);r.init(n),fn(s.displayFormats,r.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:ll(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,s=t.time.unit||"day";let{min:r,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();function c(l){!o&&!isNaN(l.min)&&(r=Math.min(r,l.min)),!a&&!isNaN(l.max)&&(i=Math.max(i,l.max))}(!o||!a)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),r=pe(r)&&!isNaN(r)?r:+n.startOf(Date.now(),s),i=pe(i)&&!isNaN(i)?i:+n.endOf(Date.now(),s)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],s=t[t.length-1]),{min:n,max:s}}buildTicks(){const t=this.options,n=t.time,s=t.ticks,r=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,o=this.max,a=t5(r,i,o);return this._unit=n.unit||(s.autoSkip?cl(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):f8(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:g8(this._unit),this.initOffsets(r),t.reverse&&a.reverse(),ul(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let n=0,s=0,r,i;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?s=i:s=(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=ve(n,0,o),s=ve(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,r=this.options,i=r.time,o=i.unit||cl(i.minUnit,n,s,this._getLabelCapacity(n)),a=ee(i.stepSize,1),c=o==="week"?i.isoWeekday:!1,l=$t(c)||c===!0,d={};let u=n,h,f;if(l&&(u=+t.startOf(u,"isoWeek",c)),u=+t.startOf(u,l?"day":o),t.diff(s,n,o)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+o);const p=r.ticks.source==="data"&&this.getDataTimestamps();for(h=u,f=0;h<s;h=+t.add(h,a,o),f++)dl(d,h,p);return(h===s||r.bounds==="ticks"||f===1)&&dl(d,h,p),Object.keys(d).sort((y,m)=>y-m).map(y=>+y)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}_tickFormatFunction(t,n,s,r){const i=this.options,o=i.time.displayFormats,a=this._unit,c=this._majorUnit,l=a&&o[a],d=c&&o[c],u=s[n],h=c&&d&&u&&u.major,f=this._adapter.format(t,r||(h?d:l)),p=i.ticks.callback;return p?de(p,[f,n,s],this):f}generateTickLabels(t){let n,s,r;for(n=0,s=t.length;n<s;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,s=this.ctx.measureText(t).width,r=$e(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:s*i+a*o,h:s*o+a*i}}_getLabelCapacity(t){const n=this.options.time,s=n.displayFormats,r=s[n.unit]||s.millisecond,i=this._tickFormatFunction(t,0,ul(this,[t],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,s=r.length;n<s;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,s;if(t.length)return t;const r=this.getLabels();for(n=0,s=r.length;n<s;++n)t.push(ll(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return dc(t.sort(p8))}}Ts.id="time";Ts.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Qn(e,t,n){let s=0,r=e.length-1,i,o,a,c;n?(t>=e[s].pos&&t<=e[r].pos&&({lo:s,hi:r}=xt(e,"pos",t)),{pos:i,time:a}=e[s],{pos:o,time:c}=e[r]):(t>=e[s].time&&t<=e[r].time&&({lo:s,hi:r}=xt(e,"time",t)),{time:i,pos:a}=e[s],{time:o,pos:c}=e[r]);const l=o-i;return l?a+(c-a)*(t-i)/l:a}class ed extends Ts{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Qn(n,this.min),this._tableRange=Qn(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,r=[],i=[];let o,a,c,l,d;for(o=0,a=t.length;o<a;++o)l=t[o],l>=n&&l<=s&&r.push(l);if(r.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(o=0,a=r.length;o<a;++o)d=r[o+1],c=r[o-1],l=r[o],Math.round((d+c)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Qn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return Qn(this._table,s*this._tableRange+this._minPos,!0)}}ed.id="timeseries";ed.defaults=Ts.defaults;let hl=!1;function b8(){return hl||(Et.register(gs,Fr,ks,ut,_s,Xw,Gw),hl=!0),Et}
4b8();const y8={name:"LineChart",props:{chartData:{type:Object,required:!0},chartId:{type:String,default:"line-chart"},datasetIdKey:{type:String,default:"label"},height:{type:Number,default:400},cssClasses:{default:"w-full h-[164px]",type:String},chartOptions:{type:[Object,Boolean],default:()=>({})},plugins:{type:Array,default:()=>[]}},data(){return{bgColor:xn?.primary?.["700"],borderColor:xn?.primary?.["500"],chartInstance:null,updatedChartData:ye({labels:[],datasets:[]}),chartDataSignature:"",chartOptionsSignature:"",isMounted:!1,resolvedChartOptions:ye({}),resolvedPlugins:ye([])}},computed:{gradientStart(){return this.hexToRGBA(this.bgColor,.61)},gradientEnd(){return this.hexToRGBA(this.bgColor,.05)},hasChartData(){return Array.isArray(this.updatedChartData?.datasets)&&this.updatedChartData.datasets.length>0}},watch:{chartData:{immediate:!0,handler(e){this.syncChartData(e)}},chartOptions:{immediate:!0,handler(e){this.syncChartOptions(e)}},plugins:{immediate:!0,handler(e){this.syncPlugins(e)}},isMounted(e){e&&this.syncChartData(this.chartData,{applyGradient:!0})}},mounted(){this.isMounted=!0},beforeUnmount(){this.destroyChart()},methods:{hexToRGBA(e,t=1){const n=e.replace("#",""),s=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${s}, ${r}, ${i}, ${t})`},createGradient(e){const t=e?.getContext?.("2d");if(!t)return this.gradientStart;const n=e.offsetHeight||this.height,s=t.createLinearGradient(0,0,0,n);return s.addColorStop(0,this.gradientStart),s.addColorStop(1,this.gradientEnd),s},buildChartSignature(e){return!e||!Array.isArray(e.datasets)||!e.datasets.length?"":JSON.stringify({labels:e.labels||[],datasets:e.datasets.map(t=>({label:t.label,data:t.data||[]}))})},buildChartOptionsSignature(e){return!e||typeof e!="object"?"":JSON.stringify({responsive:e.responsive,maintainAspectRatio:e.maintainAspectRatio,scales:e.scales})},syncChartOptions(e){if(!e||typeof e!="object")return;const t=this.buildChartOptionsSignature(e);t&&t===this.chartOptionsSignature||(this.chartOptionsSignature=t,ye(e),this.resolvedChartOptions=e,this.refreshChart())},syncPlugins(e){const t=Array.isArray(e)?e:[];t!==this.resolvedPlugins&&(ye(t),this.resolvedPlugins=t,this.refreshChart())},syncChartData(e,{applyGradient:t=!1}={}){const n=this.buildChartSignature(e);if(!n){this.chartDataSignature!==""&&(this.chartDataSignature="",this.updatedChartData=ye({labels:[],datasets:[]}),this.destroyChart());return}if(n===this.chartDataSignature&&!t)return;this.chartDataSignature=n;const s=this.$refs.canvasRef,r=this.isMounted?this.createGradient(s):this.gradientStart;this.updatedChartData=ye({labels:[...e.labels||[]],datasets:e.datasets.map(i=>({...i,data:Array.isArray(i.data)?[...i.data]:[],label:i.label||"Total",tension:i.tension??.3,pointRadius:i.pointRadius??2,borderWidth:i.borderWidth??4,fill:i.fill??!0,backgroundColor:r,borderColor:this.borderColor}))}),this.refreshChart()},destroyChart(){this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null)},refreshChart(){if(!this.isMounted||!this.hasChartData){this.destroyChart();return}this.$nextTick(()=>{const e=this.$refs.canvasRef;if(!e)return;const t=e.getContext("2d");if(t){if(this.chartInstance){this.chartInstance.data=this.updatedChartData,this.chartInstance.options={...this.resolvedChartOptions},this.chartInstance.update();return}this.chartInstance=ye(new Et(t,{type:"line",data:this.updatedChartData,options:this.resolvedChartOptions,plugins:this.resolvedPlugins}))}})}}},v8=["id"];function _8(e,t,n,s,r,i){const o=w("ClientOnly");return g(),S(o,{class:"w-full"},{default:B(()=>[tt(v("div",{class:z(n.cssClasses)},[v("canvas",{id:n.chartId,ref:"canvasRef"},null,8,v8)],2),[[yl,i.hasChartData]])]),_:1})}const td=O(y8,[["render",_8]]),x8={name:"GamesAvailableChart",components:{IconInformationCircle:On,IconChartDown:or,IconChartUp:rr,Tooltip:An,LineChart:td},props:{partner:{type:Object,required:!0}},data(){const e={scales:{x:{type:"category",grid:{display:!1}},y:{type:"linear",grid:{drawBorder:!1}}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"point",intersect:!1},elements:{point:{hitRadius:10}},plugins:{tooltip:{backgroundColor:"rgba(255, 255, 255, 255)",boxPadding:3,padding:14,bodyColor:"#1F2737",titleColor:"#1F2737",external:function(){let n=document.getElementById("chartjs-tooltip");n||(n=document.createElement("div"),n.id="chartjs-tooltip",n.style.boxShadow="0px 3.2px 7.2px 0px rgba(0, 0, 0, 0.13), 0px 0.6px 1.8px 0px rgba(0, 0, 0, 0.11)",n.style.pointerEvents="none",document.body.appendChild(n))}}}};return{chartData:ye({}),chartDataSignature:"",fullConfig:Ix(zx),totalGamesAvailable:0,gamesAvailableAt:this.$t("advancedToplist.gamesAvailableAt"),totalLabel:this.$t("total"),currentAvailableGamesAt:this.$t("advancedToplist.currentAvailableGamesAt"),countryName:this.$t("countryName"),yearOverYear:this.$t("advancedToplist.yearOverYear"),chartOptions:ye(e)}},computed:{providersIds(){const e=[];return this.partner?.phoenix?.attributes?.softwareProvider?.length&&this.partner.phoenix.attributes.softwareProvider.forEach(t=>{e.push(t.id)}),e},partnerGameTypes(){return this.partner?.phoenix?.attributes?.gameType||[]},percentageChange(){const e=this.chartData.datasets?.[0]?.data;if(!e||e.length<2)return 0;const t=e.map(i=>typeof i=="string"?parseFloat(i.replace(/,/g,"")):i),n=t.length-1,s=t[n-1],r=t[n];if(s!==0){const i=(r-s)/s*100;return Math.ceil(i*10)/10}return 0},gamesAvailableAtCasino(){return`${this.gamesAvailableAt} ${fe(this.partner)}`},currentAvailableGamesAtCasino(){return this.currentAvailableGamesAt.replace("[casinoName]",fe(this.partner)||"").replace("[countryName]",this.countryName)},gamesAvailableChartSource(){return this.partner?.supplement?.gamesAvailableChart||null},partnerChartKey(){return`${this.partner?.phoenix?.slug||""}:${this.providersIds.join(",")}:${this.partnerGameTypes.join(",")}`}},watch:{partnerChartKey:{immediate:!0,handler(e,t){e===t&&this.chartDataSignature||this.refreshChart()}}},methods:{...ce(Ue,["queryGamesByCondition"]),async refreshChart(){this.gamesAvailableChartSource&&(await this.getTotalGames(),this.setChartData())},async getTotalGames(){const e={pageSize:10,providerIds:this.providersIds,gameTypes:this.partnerGameTypes,sortingFields:{search_volume:"DESC"}};try{const t=await this.queryGamesByCondition({options:e,axios:this.$axios||null});"results"in t&&(this.totalGamesAvailable=t.rowsFound)}catch(t){console.error(t)}},setChartData(){const e=this.gamesAvailableChartSource;if(!e||typeof e!="object")return;const t=Object.keys(e),n=t.map(i=>String(e[i]).replace(/,/g,"")),s=new Date().getFullYear();t.includes(String(s))||(t.push(String(s)),n.push(String(this.totalGamesAvailable)));const r=`${t.join("|")}:${n.join(",")}`;r!==this.chartDataSignature&&(this.chartDataSignature=r,this.chartData=ye({labels:t,datasets:[{label:this.totalLabel,data:n}]}))}}},w8={class:"background-elevation-2 flex flex-col items-start xs:px-md py-md lg:py-xl lg:px-xl border-sm color-stroke-elevation rounded-ui-md gap-md lg:gap-xs"},k8={class:"w-full flex flex-col lg:flex-row gap-xs lg:justify-between"},C8={class:"text-foreground-1 title-xs leading-150"},S8={class:"flex items-center gap-md"},T8={class:"flex justify-center gap-2xs items-center"},P8={class:"body-sm"},A8={class:"flex justify-center gap-2xs items-center"},O8={class:"body-sm text-foreground-2"},M8={class:"body-xs leading-120 text-foreground-3 md:hidden"};function L8(e,t,n,s,r,i){const o=w("IconInformationCircle"),a=w("Tooltip"),c=w("ClientOnly"),l=w("IconChartUp"),d=w("IconChartDown"),u=w("LineChart");
4return g(),x("div",w8,[v("div",k8,[v("p",C8,k(i.gamesAvailableAtCasino),1),v("div",S8,[v("div",T8,[P(c,null,{default:B(()=>[P(a,{content:i.currentAvailableGamesAtCasino,class:"2xs:hidden md:block"},{default:B(()=>[P(o,{class:"ml-xs"})]),_:1},8,["content"])]),_:1}),v("p",P8,k(r.totalGamesAvailable.toLocaleString()),1)]),v("div",A8,[i.percentageChange>=0?(g(),S(l,{key:0})):(g(),S(d,{key:1})),v("p",O8,k(i.percentageChange>=0?"+":"")+k(i.percentageChange)+"% "+k(r.yearOverYear),1)])])]),Object.keys(r.chartData).length?(g(),S(u,{key:0,"chart-data":r.chartData,"chart-options":r.chartOptions,"css-classes":"w-full xs:h-[110px] lg:h-[164px]"},null,8,["chart-data","chart-options"])):A("",!0),v("p",M8,k(i.currentAvailableGamesAtCasino),1)])}const I8=O(x8,[["render",L8]]),R8={name:"PopularityChart",components:{IconInformationCircle:On,IconChartDown:or,IconChartUp:rr,Tooltip:An,LineChart:td},props:{partner:{type:Object,required:!0},ontarioRegulated:{type:Boolean,default:!1}},data(){const e={scales:{x:{type:"category",grid:{display:!1}},y:{type:"linear",grid:{drawBorder:!1},ticks:{stepSize:1e5,callback:t=>{const n=[{divider:1e6,suffix:"M"},{divider:1e3,suffix:"k"}];function s(r){for(let i=0;i<n.length;i++)if(r>=n[i].divider)return(r/n[i].divider).toString()+n[i].suffix;return r}return s(t)}}}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"point",intersect:!1},elements:{point:{hitRadius:10}},plugins:{tooltip:{backgroundColor:"rgba(255, 255, 255, 255)",boxPadding:3,padding:14,bodyColor:"#1F2737",titleColor:"#1F2737",external:function(){let n=document.getElementById("chartjs-tooltip");n||(n=document.createElement("div"),n.id="chartjs-tooltip",n.style.boxShadow="0px 3.2px 7.2px 0px rgba(0, 0, 0, 0.13), 0px 0.6px 1.8px 0px rgba(0, 0, 0, 0.11)",n.style.pointerEvents="none",document.body.appendChild(n))}}}};return{chartData:ye({}),chartDataSignature:"",popularity:this.$t("advancedToplist.popularity"),currentPopularity:this.$t("advancedToplist.currentPopularity"),countryName:this.$t("countryName"),isOntarioPage:re(t=>t.location.pathname.includes("/ontario/"),!1),totalLabel:this.$t("total"),yearOverYear:this.$t("advancedToplist.yearOverYear"),chartOptions:ye(e)}},computed:{lastPopularityValue(){const e=this.chartData.datasets?.[0]?.data?.length||0;return e<1?0:(this.chartData.datasets?.[0]?.data[e-1]||0).toLocaleString()},percentageChange(){const e=this.chartData.datasets?.[0]?.data;if(!e||e.length<2)return"N/A";const t=e.map(i=>typeof i=="string"?parseFloat(i.replace(/,/g,"")):i),n=t.length-1,s=t[n-1],r=t[n];if(s!==0){const i=(r-s)/s*100;return Math.ceil(i*10)/10}return"N/A"},currentPopularityAtCasino(){return this.currentPopularity.replace("[casinoName]",fe(this.partner)||"").replace("[countryName]",this.countryName)},popularityDataOrigin(){return this.partner?.supplement?.popularityChart},popularityChartSignature(){const e=this.popularityDataOrigin;return!e||typeof e!="object"?"":Object.keys(e).sort().map(t=>`${t}:${e[t]}`).join("|")},isChartVisible(){return this.popularityDataOrigin&&Object.keys(this.popularityDataOrigin).length>0}},watch:{popularityChartSignature:{immediate:!0,handler(){this.setChartData()}}},methods:{setChartData(){const e=this.popularityDataOrigin;if(!e||typeof e!="object")return;const t=Object.keys(e);if(!t.length)return;const n=t.map(r=>parseFloat(String(e[r]).replace(/,/g,""))),s=`${t.join("|")}:${n.join(",")}`;s!==this.chartDataSignature&&(this.chartDataSignature=s,this.chartData=ye({labels:t,datasets:[{label:this.totalLabel,data:n}]}))}}},D8={class:"background-elevation-2 flex flex-col items-start xs:px-md py-md lg:py-xl lg:px-xl border-sm color-stroke-elevation rounded-ui-md gap-md lg:gap-xs"},F8={class:"w-full flex flex-col lg:flex-row gap-xs lg:justify-between"},B8={class:"text-foreground-1 title-xs leading-150"},E8={class:"flex items-center gap-md"},$8={class:"flex justify-center gap-2xs items-center"},N8={class:"body-sm"},z8={class:"flex gap-2xs items-center"},j8={class:"body-sm text-foreground-2"},V8={class:"body-xs leading-120 text-foreground-3 md:hidden"};function G8(e,t,n,s,r,i){const o=w("IconInformationCircle"),a=w("Tooltip"),c=w("ClientOnly"),l=w("IconChartUp"),d=w("IconChartDown"),u=w("LineChart");return g(),x("div",D8,[v("div",F8,[v("p",B8,k(r.popularity)+" ("+k(r.countryName)+") ",1),v("div",E8,[v
4("div",$8,[P(c,null,{default:B(()=>[P(a,{content:i.currentPopularityAtCasino,class:"2xs:hidden md:block"},{default:B(()=>[P(o,{class:"ml-xs"})]),_:1},8,["content"])]),_:1}),v("p",N8,k(i.lastPopularityValue),1)]),v("div",z8,[i.percentageChange>=0?(g(),S(l,{key:0})):(g(),S(d,{key:1})),v("p",j8,k(i.percentageChange>=0?"+":"")+k(i.percentageChange)+"% "+k(r.yearOverYear),1)])])]),Object.keys(r.chartData).length?(g(),S(u,{key:0,"chart-data":r.chartData,"css-classes":"w-full xs:h-[110px] lg:h-[164px]","chart-options":r.chartOptions},null,8,["chart-data","chart-options"])):A("",!0),v("p",V8,k(i.currentPopularityAtCasino),1)])}const H8=O(R8,[["render",G8]]),W8="SkillOnNet",nd={"Altacore N.V.":"Altacore N.V.","Altacore N.V":"Altacore N.V.","Bayton Ltd":"Bayton Ltd","Bayton Limited":"Bayton Ltd","Bayton Interactive Limited.":"Bayton Ltd","Baytree Interactive Limited.":"Bayton Ltd","Betway Group":"Betway Group","Betway Limited Casinos":"Betway Group","Betway Limited":"Betway Group","BML Group Ltd.":"BML Group","BML Group Ltd":"BML Group","BML Group Ltd Casinos":"BML Group","BML Group, Ltd.":"BML Group","Cassava Enterprises Ltd.":"888 Holdings","Cassava Enterprises Limited, 888 UK Limited":"888 Holdings","Cassava Enterprises (Gibraltar) Limited":"888 Holdings","888 Holdings":"888 Holdings","888 Holdings Limited":"888 Holdings","DAMA N.V. Casinos":"Dama N.V.","Dama N.V":"Dama N.V.","DAMA N.V.":"Dama N.V.","DAMA NV":"Dama N.V.","Dama N.V.":"Dama N.V.","Direx N.V.":"Dama N.V.","Digimedia Limited Casinos":"Digimedia Ltd","Digimedia Ltd":"Digimedia Ltd","Digimedia Ltd.":"Digimedia Ltd","Digimedia Limited":"Digimedia Ltd","Genesis Global Ltd":"Genesis Global","Genesis Global Limited":"Genesis Global","Genesis Global Limited Casinos":"Genesis Global","Hollycorn N.V.":"Hollycorn N.V.","Hollycorn NV":"Hollycorn N.V.","L&L Europe Ltd":"L&L Europe Ltd","L&L Europe Limited":"L&L Europe Ltd","L&L Group Ltd":"L&L Europe Ltd","N1 Interactive Ltd.":"N1 Interactive","N1 Interactive Ltd":"N1 Interactive","N1 Interactive Limited":"N1 Interactive","Rabidi N.V.":"Rabidi N.V.","Radibi N.V.":"Rabidi N.V.","Skill on Net Ltd":"SkillOnNet",SkillOnNet:W8,"SkillOnNet Ltd.":"SkillOnNet","SkillOnNet Ltd":"SkillOnNet","SkillOnNet Limited":"SkillOnNet","SkillOnNet LTD":"SkillOnNet","Skill On Net Limite":"SkillOnNet","Skill on Net Limited":"SkillOnNet","Skill On Net, S.A.":"SkillOnNet","White Hat Gaming Limited":"White Hat Gaming","White Hat Gaming Limited ":"White Hat Gaming"},U8={name:"StockMarketStats",components:{IconInformationCircle:On,IconChartUp:rr,IconChartDown:or,Tooltip:An},props:{partner:{type:Object,default:()=>({})}},data(){return{year:this.$t("advancedToplist.year"),stockValuesAt:this.$t("advancedToplist.stockValuesAt"),usd:this.$t("advancedToplist.usd"),currentStockPrice:this.$t("advancedToplist.currentStockPrice"),stockValuesTooltipLabel:this.$t("advancedToplist.stockValuesTooltip"),operatorsNameDictionary:nd,yearOverYear:this.$t("advancedToplist.yearOverYear"),isOntarioPage:re(e=>e.location.pathname.includes("/ontario/"),!1)}},computed:{hasStockMarketStats(){return this.partner?.supplement?.stockMarketStats},stockSymbol(){return this.partner?.supplement?.stockMarketStats?.stockSymbol||""},operator(){return this.partner?.phoenix?.attributes?.operator||""},labels(){return this.partner?.supplement?.stockMarketStats?.labels||[]},data(){return this.partner?.supplement?.stockMarketStats?.data||[]},mostRecentValue(){return this.data.length>0?this.data[this.data.length-1]:"$0.00"},previousYearValue(){const e=this.data.length>1?this.data[this.data.length-2]:"$0.00";return parseFloat(e.replace(/[$,]/g,""))},percentageChange(){const e=parseFloat(this.mostRecentValue.replace(/[$,]/g,"")),t=this.previousYearValue;if(t===0)return 0;const s=(e-t)/t*100;return Math.ceil(s*10)/10},partnersFromSameGroup(){return this.allPartners.filter(e=>{const t=e.attributes?.operator||"";if(t){let n=t;return Object.keys(this.operatorsNameDictionary).includes(t)&&(n=this.operatorsNameDictionary[t]),this.operator===n}return!1})}
4,tooltipContent(){const e=Array.isArray(this.partnersFromSameGroup)&&this.partnersFromSameGroup.length>0?this.partnersFromSameGroup[Math.floor(Math.random()*this.partnersFromSameGroup.length)].name:"Unknown Casino";return(this.stockValuesTooltipLabel||"").replace("[operatorName]",this.operator||"Unknown Operator").replace("[casinoName]",e).replace("[casinosLength]",this.partnersFromSameGroup?this.partnersFromSameGroup.length:0).replace("[stockSymbol]",this.stockSymbol||"N/A")},...K(se,["allPartners"])}},q8={key:0,class:"background-elevation-2 flex flex-col items-start xs:px-md py-md lg:py-xl lg:px-xl border-sm color-stroke-elevation rounded-ui-md gap-md lg:gap-lg"},Y8={class:"w-full flex flex-col lg:flex-row justify-between"},Z8={class:"text-foreground-1 title-xs leading-150"},K8={class:"flex items-center gap-md"},X8={class:"flex justify-center gap-2xs items-center"},J8={class:"text-2xs lg:text-xs text-foreground-2 font-regular"},Q8={class:"flex justify-center gap-2xs items-center"},ek={class:"text-2xs lg:text-xs text-foreground-2 font-regular"},tk={class:"w-full overflow-x-auto no-scrollbar"},nk={class:"flex border-b-sm color-stroke-elevation pb-xs justify-between"},sk={class:"body-xs font-bold text-foreground-2"},ik={class:"flex pt-xs justify-between"},rk={class:"body-xs text-foreground-2"},ok={class:"body-xs leading-120 text-foreground-3 md:hidden"};function ak(e,t,n,s,r,i){const o=w("IconInformationCircle"),a=w("Tooltip"),c=w("IconChartUp"),l=w("IconChartDown");return i.hasStockMarketStats?(g(),x("div",q8,[v("div",Y8,[v("p",Z8,k(r.stockValuesAt)+" "+k(i.operator),1),v("div",K8,[v("div",X8,[P(a,{content:i.tooltipContent,class:"2xs:hidden md:block"},{default:B(()=>[P(o,{class:"ml-xs"})]),_:1},8,["content"]),v("p",J8,k(i.mostRecentValue),1)]),v("div",Q8,[i.percentageChange>=0?(g(),S(c,{key:0})):(g(),S(l,{key:1})),v("p",ek,k(i.percentageChange>=0?"+":"")+k(i.percentageChange)+"% "+k(r.yearOverYear),1)])])]),v("div",tk,[v("div",nk,[v("span",sk,k(r.usd),1),(g(!0),x(H,null,Y(i.data,(d,u)=>(g(),x("span",{key:u,class:"body-xs font-bold text-foreground-2"},k(d),1))),128))]),v("div",ik,[v("span",rk,k(r.year),1),(g(!0),x(H,null,Y(i.labels,(d,u)=>(g(),x("span",{key:u,class:"body-xs text-foreground-2"},k(d),1))),128))])]),v("p",ok,k(r.currentStockPrice),1)])):A("",!0)}const lk=O(U8,[["render",ak]]),ck={name:"CasinoStatsContentTab",components:{GamesAvailableChart:I8,PopularityChart:H8,StockMarketStats:lk},props:{partner:{type:Object,default:()=>({})},isActive:{type:Boolean,default:!1},ontarioRegulated:{type:Boolean,default:!1}},data(){return{loadingAllPartners:!0}},computed:{...K(se,["allPartners"]),popularityChart(){return this.partner?.supplement?.popularityChart?Object.keys(this.partner.supplement.popularityChart).length>0:!1},stocksChart(){return this.partner?.supplement?.stockMarketStats?Object.keys(this.partner.supplement.stockMarketStats).length>0:!1},isClient(){return ae}},watch:{allPartners:{immediate:!0,deep:!0,handler(e){e.length&&(this.loadingAllPartners=!1)}},isActive:{immediate:!0,handler(e){e===!0&&this.loadingAllPartners&&this.getAllPartners({axios:this.$axios})}}},methods:{...ce(se,["getAllPartners"])}},dk={class:"flex flex-col gap-md lg:gap-xl"};function uk(e,t,n,s,r,i){const o=w("PopularityChart"),a=w("GamesAvailableChart"),c=w("StockMarketStats");return g(),x("div",dk,[i.popularityChart&&n.isActive&&i.isClient?(g(),S(o,{key:0,partner:n.partner,"ontario-regulated":n.ontarioRegulated},null,8,["partner","ontario-regulated"])):A("",!0),n.partner&&n.isActive&&i.isClient?(g(),S(a,{key:1,partner:n.partner},null,8,["partner"])):A("",!0),n.isActive&&i.stocksChart&&i.isClient?(g(),S(c,{key:2,partner:n.partner,"ontario-regulated":n.ontarioRegulated},null,8,["partner","ontario-regulated"])):A("",!0)])}const hk=O(ck,[["render",uk]]),pk={name:"GalleryContentTab",components:{GallerySection:kd},props:{partner:{type:Object,default:()=>{}},ontarioRegulated:{type:Boolean,default:!1},titleTag:{type:String,default:void 0},titleClass:{type:String,default:void 0},customTitle:{type:String,default:void 0}}};function fk(e,t,n,s,r,i){const o=w("GallerySection");return g(),S(o,{partner:n.partner,"ontario-regulated":n.ontarioRegulated,"title-tag":n.titleTag,"title-class":n.titleClass,"custom-title":n.customTitle},null,8,["partner","ontario-regulated","title-tag","title-class","custom-title"])}const gk=O(pk,[["render",fk]]),mk={name:"AlternativeCasinoCard",mixins:[Ne],components:{Rating:St,Button:me,Favicon:Pt},props:{alternativeCasino:{type:Object,default:()=>({})},showSkeleton:{type:Boolean,default:!1},showItems:{type:Boolean,default:!1}},data(){return{visitCasino:this.$t("advancedToplist.visitCasino"),imageLoadError:!1}}
4,computed:{...K(ge,["isMobile","isTablet"]),affiliateLink(){const e=this.alternativeCasino?.phoenix?.attributes?.offers||this.alternativeCasino?.phoenix?.attributes?.toplistOffer;if(Array.isArray(e)&&e.length>0){const t=e[0]?.attributes?.afflinkProxy;if(t)return`${"https://links.casino.ca/play"+t}`}else if(typeof e=="object"&&e!==null){const t=e?.attributes?.afflinkProxy;if(t)return`${"https://links.casino.ca/play"+t}`}return"/"},isAffiliateLink(){return this.affiliateLink!=="/"},affiliateButtonSize(){return this.isMobile?"MD":"LG"},rating(){const e=this.alternativeCasino?.phoenix?.attributes?.rating||this.alternativeCasino?.attributes?.rating;return parseFloat(e)||0},isItemsFull(){if((this.alternativeCasino?.phoenix?.attributes?.ratings??[]).length>0)return!0;const t=this.alternativeCasino?.items;return!!t&&Object.keys(t).length>0},partnersName(){return fe(this.alternativeCasino)},partnerLogo(){const e=this.alternativeCasino?.phoenix?.attributes||{},t=e.faviconLight||e.favicon||e.logo||"";return t?/^https?:\/\//i.test(t)?t:`https://images.casino.ca/${t}`:""},favIconSize(){return this.isMobile?"xs":(this.isTablet,"sm")},favIconBlur(){return this.alternativeCasino?.phoenix?.attributes?.gradientStop2},alternativeData(){if(this.showItems&&this.isItemsFull){const e=this.alternativeCasino?.phoenix?.attributes?.ratings;if(e&&Array.isArray(e))return e.filter(n=>!n.hasOwnProperty("overall")).map(n=>{const s={};return Object.entries(n).forEach(([r,i])=>{r!=="__typename"&&r!=="overall"&&(s[r]=i)}),s}).filter(n=>Object.keys(n).length>0);const t=this.alternativeCasino?.items;if(t)return Object.entries(t).filter(([n])=>n!=="__typename").map(([n,s])=>({[n]:s}))}return[]}},methods:{getCategoryRating(e){return this.$t("expertRatingCategories."+Object.keys(e)[0])}}},bk={class:"background-elevation-3 flex flex-col items-start p-md border-sm color-stroke-elevation rounded-ui-md gap-md"},yk={class:"flex flex-col lg:flex-row justify-between w-full items-start gap-xs"},vk={class:"flex justify-start lg:justify-center items-center gap-xs"},_k={key:1,class:"rounded-pill w-[52px] h-[52px] lg:w-[60px] lg:h-[60px] background-elevation-3"},xk={class:"flex flex-col gap-2xs"},wk={key:1,class:"bg-skeleton skeleton-animation w-[49px] h-[14px] lg:h-md"},kk={key:1,class:"rounded-pill w-full lg:w-[120px] h-[44px] bg-skeleton skeleton-animation"},Ck={key:0,class:"w-full"},Sk={class:"grid grid-cols-1 lg:grid-cols-2 gap-xs lg:gap-2xs lg:gap-x-xl"},Tk={class:"grid grid-cols-2 lg:gap-xs items-baseline"},Pk={class:"body-sm text-foreground-2 leading-150 truncate overflow-hidden whitespace-nowrap"};function Ak(e,t,n,s,r,i){const o=w("Favicon"),a=w("Rating"),c=w("Button");return g(),x("div",bk,[v("div",yk,[v("div",vk,[i.partnerLogo?(g(),S(o,{key:0,size:i.favIconSize,"image-path":i.partnerLogo,"image-name":`${i.partnersName||""} logo`,type:"circular",blur:i.favIconBlur},null,8,["size","image-path","image-name","blur"])):(g(),x("div",_k)),v("div",xk,[v("div",{class:z(["text-foreground-2 body-md leading-150 font-bold",{"bg-skeleton skeleton-animation w-[128px] h-[14px] lg:h-md":n.showSkeleton}])},k(i.partnersName),3),i.rating?(g(),S(a,{key:0,rating:i.rating,variant:"single",class:"md:flex lg:text-sm"},null,8,["rating"])):n.showSkeleton?(g(),x("div",wk)):A("",!0)])]),i.isAffiliateLink?(g(),S(c,{key:0,tag:"a",size:i.affiliateButtonSize,href:i.affiliateLink,variant:"secondary",target:"_blank",rel:"noopener nofollow noreferrer",full:"",class:"w-full lg:w-auto flex-shrink-0","data-aa-tracker":`Button to partner site ${i.partnersName}`,onClick:t[0]||(t[0]=l=>e.addCustomTracking(`AlternativeCasinoCard: Visit Casino ${i.partnersName}`,"Click","Not Applicable","Button","Click","Not Applicable"))},{default:B(()=>[Z(k(r.visitCasino),1)]),_:1},8,["size","href","data-aa-tracker"])):A("",!0),n.showSkeleton?(g(),x("div",kk)):A("",!0)]),i.isItemsFull&&n.showItems?(g(),x("div",Ck,[v("div",Sk,[(g(!0),x(H,null,Y(i.alternativeData,(l,d)=>(g(),x("div",{key:d,class:"w-full"},[(g(!0),x(H,null,Y(l,(u,h)=>(g(),x("div",{key:h},[v("div",Tk,[v("div",Pk,k(i.getCategoryRating(l)),1),P(a,{rating:parseFloat(u)||0,variant:"meter","show-scale":""},null,8,["rating"])])]))),128))]))),128))])])):A("",!0)])}const Br=O(mk,[["render",Ak]]),Ok={name:"CasinosSameGroupSkeleton",components:{AlternativeCasinoCard:Br},props:{itemsPerPage:{type:Number,default:6}}},Mk={class:"flex flex-col rounded-ui-md color-stroke-elevation border-sm background-elevation-2 gap-md lg:gap-lg p-md lg:p-xl"},Lk={class:"gap-md lg:gap-lg grid grid-cols-1"},Ik={class:"w-full"},Rk={class:"xs:flex flex-col gap-md lg:gap-lg lg:grid lg:grid-cols-2"};function Dk(e,t,n,s,r,i){const o=w("AlternativeCasinoCard");return g(),x("div",Mk,[v("div",Lk,[v("div",Ik,[v("div",Rk,[(g(!0),x(H,null,Y(n.itemsPerPage,a=>
4(g(),x("div",{key:`partner-same-group-skeleton-${a}`},[P(o,{"show-skeleton":!0})]))),128))])]),t[0]||(t[0]=v("div",{class:"flex justify-center h-[32px] my-20"},[v("div",{class:"h-[32px] w-[128px] bg-skeleton skeleton-animation"})],-1))])])}const Fk=O(Ok,[["render",Dk]]),Bk={name:"CasinosSameGroup",components:{IconInformationCircle:On,CasinosSameGroupSkeleton:Fk,Tooltip:An,AlternativeCasinoCard:Br,Pagination:Gl},props:{operator:{type:String,default:""},partnerId:{type:Number,default:null},itemsPerPage:{type:Number,default:6}},data(){return{visitCasino:this.$t("advancedToplist.visitCasino"),casinosOfTheSameGroupTitle:this.$t("advancedToplist.casinosOfTheSameGroup"),tooltipPartnersSameGroup:this.$t("advancedToplist.tooltipPartnersSameGroup"),loadingLabel:this.$t("loading"),loading:!0,operatorsNameDictionary:nd,partnersSameGroupPhoenix:[],allPartnersFromToplist:[],allToplistLoaded:!1,currentPage:1}},computed:{currentOperator(){return this.operatorsNameDictionary[this.operator]||this.operator},tooltipContent(){if(this.loading)return this.loadingLabel;let e="",t=5;return this.partnersSameGroup.forEach(n=>{if(t>=1){const s=fe(n)||n?.name||"";s&&(e?e+=`, ${s}`:e=s,t-=1)}}),this.tooltipPartnersSameGroup.replace("[operator]",this.operator||"").replace("[partnersLength]",this.partnersSameGroup.length+1).replace("[partnerNames]",e)},partnersSameGroup(){const e=[],t=[],n=new Set,s=o=>o?.phoenix?.id??o?.id,r=o=>o?.phoenix?.attributes?.faviconLight||o?.attributes?.faviconLight||"",i=o=>o?.phoenix?.attributes?.operator||o?.attributes?.operator||"";return this.partnersSameGroupPhoenix.forEach(o=>{const a=s(o),c=this.allPartnersFromToplist.find(l=>l.phoenix?.id===a);if(c)n.add(a),e.push(c);else if(o?.phoenix||o){n.add(a);const d="https://images.casino.ca/",u=r(o),h=o.phoenix||o;t.push({phoenix:h,favicon:`${d}${u}`})}}),this.allPartnersFromToplist.forEach(o=>{const a=o.phoenix?.id;if(a&&!n.has(a)&&a!==this.partnerId){const c=i(o);let l=c;c&&Object.keys(this.operatorsNameDictionary).includes(c)&&(l=this.operatorsNameDictionary[c]),l===this.currentOperator&&(n.add(a),e.push(o))}}),[...e,...t]},pagesCount(){return Math.ceil(this.partnersSameGroup.length/this.itemsPerPage)},dataToPaginate(){return this.paginate(this.partnersSameGroup)},...K(se,["toplists","toplistTypes","allPartners","toplistByType"])},watch:{toplists:{immediate:!0,deep:!0,handler(e){const t=this.toplistTypes.some(n=>Array.isArray(e[n])&&e[n].length>0);this.allToplistLoaded=t,t&&this.extractAllPartnersFromToplists()}},partnerId:{immediate:!0,handler(){this.loading=!0,this.currentPage=1,this.getAllPartnersFromPhoenix()}},allPartners:{immediate:!0,deep:!0,handler(){this.getAllPartnersFromPhoenix()}}},created(){this.allPartners.length||this.getAllPartners({axios:this.$axios}),this.getAllPartnersFromPhoenix()},methods:{getAllPartnersFromPhoenix(){const e=i=>i?.phoenix?.attributes?.operator||i?.attributes?.operator||"",t=i=>i?.phoenix?.id??i?.id,n=i=>{if(!i.length||!this.partnerId)return[];const o=(this.currentOperator||"").trim().toLowerCase();return o?i.filter(a=>{const c=e(a);if(!c)return!1;let l=c;Object.keys(this.operatorsNameDictionary).includes(c)&&(l=this.operatorsNameDictionary[c]);const d=(l||"").trim().toLowerCase();return o===d&&t(a)!==this.partnerId}):[]},s=this.allPartners&&this.allPartners.length?n(this.allPartners):[],r=this.allPartnersFromToplist&&this.allPartnersFromToplist.length?n(this.allPartnersFromToplist):[];this.partnersSameGroupPhoenix=s.length>0?s:r,this.loading=!1},extractAllPartnersFromToplists(){const e=[],t=[];this.toplistTypes.forEach(n=>{(this.toplistByType(n)||[]).forEach(r=>{const i=r.phoenix?.id||null;i&&(e.includes(i)||(e.push(i),t.push(r)))}),this.allPartnersFromToplist=t})},paginate(e){const t=this.currentPage,n=this.itemsPerPage,s=t*n-n,r=t*n;return e.slice(s,r)},changePagination(e){this.currentPage=e},...ce(se,["getAllPartners"])}},Ek={key:0},$k={key:0,class:"flex flex-col rounded-ui-md color-stroke-elevation border-sm background-elevation-2 p-md lg:px-xl lg:py-lg"},Nk={class:"gap-md lg:gap-lg grid grid-cols-1"},zk={class:"flex flex-wrap lg:flex-nowrap lg:justify-between items-center gap-md"},jk={class:"title-xs leading-150"},Vk={class:"flex items-center gap-2xs"},Gk={class:"text-xs text-foreground-2"},Hk={class:"w-full"},Wk={class:"xs:flex flex-col gap-md lg:gap-lg lg:grid lg:grid-cols-2"};function Uk(e,t,n,s,r,i){const o=w("IconInformationCircle"),a=w("Tooltip"),c=w("AlternativeCasinoCard"),l=w("Pagination"),d=w("CasinosSameGroupSkeleton");return i.partnersSameGroup.length>0||r.loading?(g(),x("div",Ek,[i.partnersSameGroup.length>0?(g(),x("div",$k,[v("div",Nk,[v("div",zk,[v("p",jk,k(r.casinosOfTheSameGroupTitle),
41),v("div",Vk,[P(a,{content:i.tooltipContent},{default:B(()=>[P(o)]),_:1},8,["content"]),v("p",Gk,k(n.operator),1)])]),v("div",Hk,[v("div",Wk,[(g(!0),x(H,null,Y(i.dataToPaginate,(u,h)=>(g(),x("div",{key:`partner-same-group-${h}`},[P(c,{"alternative-casino":u},null,8,["alternative-casino"])]))),128))])]),i.partnersSameGroup.length>n.itemsPerPage?(g(),S(l,{key:0,"total-items":i.partnersSameGroup.length,"items-per-page":6,"current-page":r.currentPage,"onUpdate:currentPage":t[0]||(t[0]=u=>r.currentPage=u),"total-pages":i.pagesCount,onPageChanged:i.changePagination},null,8,["total-items","current-page","total-pages","onPageChanged"])):A("",!0)])])):r.loading?(g(),S(d,{key:1,"items-per-page":n.itemsPerPage},null,8,["items-per-page"])):A("",!0)])):A("",!0)}const qk=O(Bk,[["render",Uk]]),Yk={888:{partnerName:"888",partnerLogo:"/images/logos/favicon/light/888.svg",items:{signUp:"9.1",cashier:"9.1",promotions:"8.5",support:"9.6",games:"8.5",liveCasino:"9.1",customerService:"9.0",userInterface:"9.8"}},"spin-casino":{partnerName:"Spin Casino",partnerLogo:"/images/logos/favicon/light/spin-casino.svg",items:{signUp:"9.4",cashier:"9.5",promotions:"9.3",support:"9.6",games:"10",liveCasino:"9.3",customerService:"9.0",userInterface:"9.8"}},zet:{partnerName:"Zet",partnerLogo:"/images/logos/favicon/light/zet.svg",items:{signUp:"9.1",cashier:"9.1",promotions:"9.6",support:"9.6",games:"8",liveCasino:"9.1",customerService:"9.0",userInterface:"9.8"}},justcasino:{partnerName:"JustCasino",partnerLogo:"/images/logos/favicon/light/justcasino.svg",items:{signUp:"9.1",cashier:"9.1",promotions:"7.5",support:"9.6",games:"7",liveCasino:"9.1",customerService:"9.0",userInterface:"9.8"}},"jackpot-city-casino":{partnerName:"Jackpot City Casino",partnerLogo:"/images/logos/favicon/light/jackpot-city-casino.svg",items:{signUp:"9.4",cashier:"9.6",promotions:"9.6",support:"9.8",games:"9.5",liveCasino:"9.8",customerService:"9.8",userInterface:"9.9"}},vegasino:{partnerName:"Vegasino",partnerLogo:"/images/logos/favicon/light/vegasino.svg",items:{signUp:"9.0",cashier:"9.5",promotions:"9.0",support:"7.5",games:"9.5",liveCasino:"7.0",customerService:"7.5",userInterface:"9.0"}},"lemon-casino":{partnerName:"Lemon Casino",partnerLogo:"/images/logos/favicon/light/lemon-casino.svg",items:{signUp:"9.0",cashier:"8.5",promotions:"9.0",support:"6.5",games:"9.5",liveCasino:"",customerService:"6.5",userInterface:"9.0"}},swiper:{partnerName:"Swiper",partnerLogo:"/images/logos/favicon/light/swiper.svg",items:{signUp:"9.5",cashier:"9.5",promotions:"10.0",support:"9.0",games:"9.0",liveCasino:"9.0",customerService:"9.0",userInterface:"9.5"}},novajackpot:{partnerName:"NovaJackpot",partnerLogo:"/images/logos/favicon/light/novajackpot.svg",items:{signUp:"9.5",cashier:"7.5",promotions:"9.0",support:"8.0",games:"9.0",liveCasino:"9.0",customerService:"8.0",userInterface:"9.5"}},luckywins:{partnerName:"LuckyWins",partnerLogo:"/images/logos/favicon/light/luckywins.svg",items:{signUp:"9.0",cashier:"8.5",promotions:"8.5",support:"9.0",games:"9.0",liveCasino:"9.0",customerService:"9.0",userInterface:"9.0"}},betway:{partnerName:"Betway",partnerLogo:"/images/logos/favicon/light/betway.svg",items:{signUp:"10.0",cashier:"9.0",promotions:"8.0",support:"7.0",games:"8.0",liveCasino:"8.0",customerService:"7.0",userInterface:"10.0"}},"casino-days":{partnerName:"Casino Days",partnerLogo:"/images/logos/favicon/light/casino-days.svg",items:{signUp:"7.5",cashier:"8.4",promotions:"9.0",support:"7.5",games:"9.2",liveCasino:"9.2",customerService:"7.5",userInterface:"7.5"}},casumo:{partnerName:"Casumo",partnerLogo:"/images/logos/favicon/light/casumo.svg",items:{signUp:"8.9",cashier:"6.7",promotions:"7.0",support:"7.1",games:"7.0",liveCasino:"7.0",customerService:"7.1",userInterface:"8.9"}},"fire-vegas":{partnerName:"Fire Vegas",partnerLogo:"/images/logos/favicon/light/fire-vegas.svg",items:{signUp:"9.9",cashier:"9.0",promotions:"9.0",support:"9.9",games:"10.0",liveCasino:"10.0",customerService:"9.9",userInterface:"9.9"}},kingmaker:{partnerName:"Kingmaker",partnerLogo:"/images/logos/favicon/light/kingmaker.svg",items:{signUp:"9.9",cashier:"9.0",promotions:"9.0",support:"9.9",games:"10.0",liveCasino:"10.0",customerService:"9.9",userInterface:"9.9"}},leovegas:{partnerName:"Leovegas",partnerLogo:"/images/logos/favicon/light/leovegas.svg",items:{signUp:"9.0",cashier:"9.0",promotions:"9.5",support:"9.5",games:"9.0",liveCasino:"9.0",customerService:"9.5",userInterface:"9.0"}},lex:{partnerName:"Lex",partnerLogo:"/images/logos/favicon/light/lex.svg",items:{signUp:"9.5",cashier:"9.5",promotions:"",support:"9.5",games:"7.5",liveCasino:"7.5",customerService:"9.5",userInterface:"9.5"}},"lucky-days":{partnerName:"Lucky Days",partnerLogo:"/images/logos/favicon/light/lucky-days.svg",items:{signUp:"7.0",cashier:"8.5",promotions:"8.0",support:"7.5",games:"8.5",liveCasino:"8.5",customerService:"7.5",userInterface:"7.0"}},"lucky-ones":{partnerName:"Lucky Ones",partnerLogo:"/images/logos/favicon/light/lucky-ones.svg",items:{signUp:"9.5",cashier:"9.5",promotions:"",support:"9.0",games:"9.0",liveCasino:"",customerService:"9.0",userInterface:"9.5"}},playolg:{partnerName:"OLG",partnerLogo:"/images/logos/favicon/light/playolg.svg",items:{signUp:"8.9",cashier:"6.7",promotions:"7.0",support:"7.1",games:"8.0",liveCasino:"8.0",customerService:"7.1",userInterface:"8.9"}},powerplay:{partnerName:"Powerplay",partnerLogo:"/images/logos/favicon/light/powerplay.svg",items:{signUp:"8.0",cashier:"8.0",promotions:"9.0",support:"10.0",games:"9.0",liveCasino:"9.0",customerService:"10.0",userInterface:"8.0"}},"royal-game":{partnerName:"Royal Game",partnerLogo:"/images/logos/favicon/light/royal-game.svg",items:{signUp:"9.5",cashier:"9.0",promotions:"9.0",support:"8.0",games:"9.5",liveCasino:"9.5",customerService:"8.0",userInterface:"9.5"}},"royal-vegas":{partnerName:"Royal Vegas",partnerLogo:"/images/logos/favicon/light/royal-vegas.svg",items:{signUp:"7.0",cashier:"8.5",promotions:"8.0",support:"7.5",games:"8.5",liveCasino:"8.5",customerService:"7.5",userInterface:"7.0"}},"ruby-fortune":{partnerName:"Rubi Fortune",partnerLogo:"/images/logos/favicon/light/rubi-fortune.svg",items:{signUp:"6.0",cashier:"9.0",promotions:"8.0",support:"8.0",games:"10.0",liveCasino:"10.0",customerService:"8.0",userInterface:"6.0"}},"spin-genie":{partnerName:"Spin Genie",partnerLogo:"/images/logos/favicon/light/spin-genie.svg",items:{signUp:"10.0",cashier:"8.0",promotions:"9.0",support:"9.0",games:"8.5",liveCasino:"8.5",customerService:"9.0",userInterface:"10.0"}},"spinaway-casino":{partnerName:"Spinaway Casino",partnerLogo:"/images/logos/favicon/light/spinaway-casino.svg",items:{signUp:"8.0",cashier:"8.0",promotions:"9.0",support:"10.0",games:"9.0",liveCasino:"9.0",customerService:"10.0",userInterface:"8.0"}},vegasnow:{partnerName:"Vegasnow",partnerLogo:"/images/logos/favicon/light/vegasnow.svg",items:{signUp:"9.0",cashier:"9.5",promotions:"9.0",support:"7.5",games:"9.5",liveCasino:"7.0",customerService:"7.5",userInterface:"9.0"}},winmaker:{partnerName:"Winmaker",partnerLogo:"/images/logos/favicon/light/winmaker.svg",items:{signUp:"9.0",cashier:"9.5",promotions:"9.0",support:"7.5",games:"9.5",liveCasino:"7.0",customerService:"7.5",userInterface:"9.0"}}},Zk={partnerData:Yk},Kk={name:"AlternativeCasinos",components:{AlternativeCasinoCard:Br,Dropdown:sr,Button:me},props:{ontarioRegulated:{type:Boolean,default:!1}},data(){return{partner:null,alternativeCasinosTitle:this.$t("advancedToplist.alternativeCasinosTitle"),loadMoreButtonTitle:this.$t("advancedToplist.loadMoreButtonTitle"),alternativeCasinosData:Zk.partnerData,fetchedAlternativeCasinos:[],selectedOption:"",dropdownOptions:[{value:"Best promotions",label:this.$t("advancedToplist.bestPromotions")},{value:"Best games",label:this.$t("advancedToplist.bestGames")}],showAllCards:!1,isOntarioPage:!1}},computed:{...K(ge,["isDesktop"]),...K(se,["currentPartner","partnersBySlugs"]),isCompact(){return!this.isDesktop},isOntario(){return this.ontarioRegulated||this.isOntarioPage},alternativeCasinos(){return this.ontarioRegulated||this.isOntarioPage?this.partner?.supplement?.alternativeCasinosOntario||[]:this.partner?.supplement?.alternativeCasinos||[]},alternativeCasinosItems(){let e=this.alternativeCasinos.map(n=>{const s=this.fetchedAlternativeCasinos.find(i=>i?.phoenix?.slug===n||i?.slug===n),r={...this.alternativeCasinosData?.[n]||{}};return delete r.partnerLogo,{...r,...s}});const t=this.selectedOption;return e=e.sort((n,s)=>{if(t==="Best promotions"){const r=s.phoenix?.attributes?.ratings?.find(o=>o.bonuses)?.bonuses||s.items?.promotions||0,i=n.phoenix?.attributes?.ratings?.find(o=>o.bonuses)?.bonuses||n.items?.promotions||0;return parseFloat(r)-parseFloat(i)}return t==="Best games"?this.cleanNumberString(s.phoenix?.attributes?.games||s.items?.games)-this.cleanNumberString(n.phoenix?.attributes?.games||n.items?.games):parseFloat(s.phoenix?.attributes?.rating||0)-parseFloat(n.phoenix?.attributes?.rating||0)}),e},visibleAlternativeCasinosItems(){const e=this.alternativeCasinosItems;return this.isCompact?this.showAllCards?e:e.slice(0,3):e}},watch:{currentPartner:{immediate:!0,deep:!0,handler(e){e&&Object.keys(e).length&&(this.partner=e)}},alternativeCasinos:{immediate:!0,async handler(e){if(!Array.isArray(e)||!e.length){this.fetchedAlternativeCasinos=[];return}await this.loadAlternativeCasinoPartners(e)}},isOntario(){this.alternativeCasinos.length&&this.loadAlternativeCasinoPartners(this.alternativeCasinos)}},mounted(){ae&&this.checkIsOntarioPage()},methods:{...ce(se,["getPartnersBySlugs","getPartnerBySlug"]),async loadAlternativeCasinoPartners(e){const t=(Array.isArray(e)?e:[]).filter(
4Boolean);if(!t.length){this.fetchedAlternativeCasinos=[];return}const n=this.partner,s=n?.supplement?.alternativeCasinos?.length||n?.supplement?.alternativeCasinosOntario?.length;if(n?.phoenix?.slug&&!s&&this.$axios)try{const r=await this.getPartnerBySlug({slug:n.phoenix.slug,isOntario:this.isOntario,axios:this.$axios});if(r){this.partner=r;return}}catch(r){console.error("[AlternativeCasinos] Failed to fetch current partner supplement:",r)}try{await this.getPartnersBySlugs({slugs:t,isOntario:this.isOntario,axios:this.$axios}),this.fetchedAlternativeCasinos=this.getCasinosFromStore(t)}catch(r){console.error("[AlternativeCasinos] Failed to fetch alternative casinos:",r),this.fetchedAlternativeCasinos=[]}},getCasinosFromStore(e){try{if(typeof this.partnersBySlugs=="function")return this.partnersBySlugs(e)||[]}catch{}return[]},handleChange(e){this.selectedOption=e.value},showAll(){this.showAllCards=!0},checkIsOntarioPage(){ae&&(this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1))},cleanNumberString(e){return typeof e=="number"?e:typeof e!="string"?0:parseFloat(e.replace(/[^0-9.-]+/g,""))||0}}},Xk={key:0,class:"flex flex-col rounded-ui-md color-stroke-elevation border-sm background-elevation-2 gap-md lg:gap-lg p-md lg:px-xl lg:py-lg"},Jk={class:"gap-md lg:gap-lg grid grid-cols-1"},Qk={class:"flex flex-wrap lg:flex-nowrap lg:justify-between items-center gap-md"},e4={class:"title-xs leading-150"},t4={key:0,class:"w-full"},n4={class:"xs:flex flex-col gap-md lg:gap-lg lg:grid lg:grid-cols-2"};function s4(e,t,n,s,r,i){const o=w("Dropdown"),a=w("AlternativeCasinoCard"),c=w("Button");return i.alternativeCasinosItems.length>0?(g(),x("div",Xk,[v("div",Jk,[v("div",Qk,[v("p",e4,k(r.alternativeCasinosTitle),1),P(o,{class:"xs:w-full lg:max-w-[214px]",options:r.dropdownOptions,variant:"elevated",onChange:i.handleChange},null,8,["options","onChange"])]),i.alternativeCasinosItems.length>0?(g(),x("div",t4,[v("div",n4,[(g(!0),x(H,null,Y(i.visibleAlternativeCasinosItems,(l,d)=>(g(),x("div",{key:d,class:"w-full"},[P(a,{"alternative-casino":l,"show-items":""},null,8,["alternative-casino"])]))),128))])])):A("",!0),!r.showAllCards&&i.isCompact?(g(),S(c,{key:1,variant:"ghost",class:"w-full xs:flex lg:hidden","data-aa-tracker":"Button to show more alternative casinos",full:!0,onClick:i.showAll},{default:B(()=>[Z(k(r.loadMoreButtonTitle),1)]),_:1},8,["onClick"])):A("",!0)])])):A("",!0)}const i4=O(Kk,[["render",s4]]),r4={name:"AlternativesContentTab",components:{CasinosSameGroup:qk,AlternativeCasinos:i4},props:{partner:{type:Object,default:()=>({})},isActive:{type:Boolean,default:!1},similarPartner:{type:Object,default:()=>({})},ontarioRegulated:{type:Boolean,default:!1}},data(){return{itemsPerPageCasinosSameGroup:6}},computed:{operatorName(){return this.partner?.phoenix?.attributes?.operator},partnerId(){return this.partner?.phoenix?.id},...K(se,["allPartners","toplists"])},watch:{isActive:{immediate:!0,handler(e){e===!0&&this.getAllPartners({axios:this.$axios})}}},methods:{...ce(se,["getAllPartners"])}},o4={class:"flex flex-col gap-md lg:gap-xl"};function a4(e,t,n,s,r,i){const o=w("AlternativeCasinos"),a=w("CasinosSameGroup");return g(),x("div",null,[v("div",o4,[n.isActive?(g(),S(o,{key:0,"ontario-regulated":n.ontarioRegulated},null,8,["ontario-regulated"])):A("",!0),n.isActive?(g(),S(a,{key:1,"partner-id":i.partnerId,operator:i.operatorName,"items-per-page":r.itemsPerPageCasinosSameGroup},null,8,["partner-id","operator","items-per-page"])):A("",!0)])])}const l4=O(r4,[["render",a4]]),c4={name:"Tabs",mixins:[Ne],components:{Button:me},props:{tabs:{type:Array,required:!0},tabsNoWrap:{type:Boolean,default:!1},buttonSize:{type:String,validator:e=>["","SM","MD","LG"].includes(e),default:""}},data(){return{selectedIndex:0}},computed:{...K(ge,["isMobile"]),ButtonSize(){return this.buttonSize?this.buttonSize:this.isMobile?"SM":"LG"},visibleTabs(){return this.tabs.map((e,t)=>({tab:e,index:t})).filter(({tab:e})=>e.visible)},selectedTab(){const e=this.tabs[this.selectedIndex];return e&&e.visible?e:null}},mounted(){const e=this.visibleTabs[0];this.selectTab(e?e.index:0)},methods:{handleTabClick(e,t){this.selectTab(e),this.addCustomTracking(`Tabs::${t}`,"Click","Not Applicable","Button","Click","Not Applicable")},selectTab(e){this.selectedIndex=e,this.$emit("openTab",e)}
4,tabVariant(e){return e===this.selectedIndex?"secondary":"ghost"}}};function d4(e,t,n,s,r,i){const o=w("Button");return g(),x("div",null,[v("div",{class:z(["flex flex-row gap-xs mb-md xl:mb-lg overflow-x-auto no-scrollbar",{"whitespace-nowrap":n.tabsNoWrap}])},[(g(!0),x(H,null,Y(i.visibleTabs,({tab:a,index:c})=>(g(),x("div",{key:`${a.title}-${c}`},[P(o,{variant:i.tabVariant(c),size:i.ButtonSize,"data-aa-tracker":`Tabs ${a.title}`,onClick:l=>i.handleTabClick(c,a.title)},{default:B(()=>[Z(k(a.title),1)]),_:2},1032,["variant","size","data-aa-tracker","onClick"])]))),128))],2),v("div",null,[i.selectedTab?wt(e.$slots,i.selectedTab.slotName,{key:0}):A("",!0)])])}const u4=O(c4,[["render",d4]]),h4={link:"/software/bally/"},p4={link:"/software/igt/"},f4={link:"/software/microgaming/"},g4={link:"/software/netent/"},m4={link:"/software/novomatic/"},b4={link:"/software/playtech/"},y4={link:"/software/quickspin/"},v4={Bally:h4,"Betsoft Gaming":{link:"/software/betsoft/"},"Big Time Gaming":{link:"/software/big-time-gaming/"},"Evolution Gaming":{link:"/software/evolution/"},IGT:p4,Microgaming:f4,NetEnt:g4,Novomatic:m4,"Play'n GO":{link:"/software/play-n-go/"},Playtech:b4,"Pragmatic Play":{link:"/software/pragmatic-play/"},QuickSpin:y4,"Red Tiger":{link:"/software/red-tiger-gaming/"},"Yggdrasil Gaming":{link:"/software/yggdrasil/"}},Ti=JSON.parse(`[{"slug":"jackpot-city-casino","pros":["Top choice for progressive jackpot slots","Exclusive collection of mobile casino games","Generous deposit match and free spins welcome bonus","Withdrawal times are among the fastest around"],"cons":["The welcome bonus only caters to slot players","Limited withdrawal methods available","The number of games is lower than that of other casinos","High wagering requirements for select bonuses"],"highlightedReview":{"description":["Seeking an established name in the Canadian online casino world? Look no further than Jackpot City, which has been entertaining Canadians since 1998. The highlight: its progressive jackpots, with categories like Big Jackpots, Daily Jackpots, and Wowpots. It is also home to hits like Mega Moolah, and The Mega Money Wheel also adds daily free spins with million-dollar potential.","Payouts are consistently quick, often processed within 1-3 days. Thatâs even for large withdrawals exceeding $8,000. Licensed and reputable, Jackpot City delivers a smooth, trustworthy experience for all kinds of slots fans. If youâre chasing big progressive wins, this long-running casino remains one of the most rewarding choices available."]},"prosOntario":["Excellent mobile app and browser experience","Curated game collection with 100+ progressive jackpot slots","Varied selection of payment options","24/7 customer support"],"consOntario":["Lacks game volume compared to competitors","Need to register for demo mode","Bank transfers under $500 incur $5 fee","Mastercard withdrawals unavailable"],"highlightedReviewOntario":{"title":"Jackpot City Casino (Ontario) 60 second review","description":["Jackpot City has long been a fixture in the Ontario market. It delivers a regulated, trusted platform licensed by iGaming Ontario. Its 1,600+ game selection is far from the biggest library, but it focuses on quality rather than quantity. That quality includes over 100 jackpot slots that boast large progressive jackpots for potentially life-changing wins.","Navigation is clean. Both mobile apps and the browser version are optimized for smooth gameplay. Customer support is available 24/7 through live chat, with help also offered through email and phone. Jackpot City Casino is a safe, reputable, and trusted option for Ontario players. Itâs highly recommended."],"casinoExpert":{"name":"Lara Wilson","authorPhoto":"/images/authors/lara-wilson-small.webp","authorPage":"/experts/lara-wilson/","authorRole":"Expert contributor"}}},{"slug":"spin-palace","pros":["Platform optimized for mobile play","Low $10 minimum deposit","Carefully curated 1,000+ game selection","Six-tier loyalty program and regular prize drops"],"cons":["Performance dips on desktop","Lacks a dedicated app","Missing out on classic poker tables","Initial automated live chat support"],"highlightedReview":{"de
4scription":["Spin Palace stands out for its impressive library of 1,000+ games from multiple reputable software providers. The selection covers everything from slots to crash games and live dealers. The casino keeps bonuses fresh with an adaptable welcome offer, plus a fun prize wheel that you can spin up to six times daily. This is named Spin Palace, after all. Rewards include free spins, loyalty points, and bonus credit with fair terms.","Payout times are efficient, making it easy to collect your winnings without delays. Spin Palace is a player-friendly destination blending variety and bonuses with speedy banking for a dependable, enticing package."]}},{"slug":"lucky-ones","pros":["Incredible game library with 15,000+ titles","Large collection of the best progressive jackpots","Fast payouts are typically completed within 24 hours","Huge welcome offer for new players"],"cons":["Missing a dedicated mobile app","Lacks telephone support","Minimum deposit is higher than average","Limited tables and live dealers"],"highlightedReview":{"description":["Launc
4hed in 2024, Lucky Ones quickly built a reputation for its game variety and fast banking. With an astonishing 15,000+ titles from 96 software providers, players have an endless choice. With popular new slot releases featuring big multipliers, live dealer game shows, and progressive jackpots like Queen of Alexandria WowPot, thereâs something for everyone.","Withdrawals are lightning-fast, often under 24 hours with no fees attached. Customer support also stands out with a friendly live chat available around the clock. Lucky Ones offers a modern, player-first approach appealing to Canadians who desire speed, variety, and reliability. Itâs a great pick when you prioritise non-stop action and swift payouts."]}},{"slug":"mafia-casino","pros":["Packs in over 9,000 games","Various banking options, including cryptocurrency options","Weekly promotions and a unique Bonus Crab feature","Slick, modern mobile platform"],"cons":["Withdrawals are unavailable when bonuses are active","Missing a mobile app","Customer support has room for improvement"],"highlightedReview":{"description":["Mafia Casino, launched in 2025, is built for players who enjoy a mix of luxury perks and gritty excitement. It possesses an impressive selection of over 9,000 games. This library covers everything from Megaways favourites like Buffalo King to immersive live titles such as Gravity Blackjack.","Deposit as little as $10 with Interac and cash out quickly with crypto options. Ongoing promotions include 25% live cashback and VIP perks worth up to $4,500 weekly. These are joined alongside unique extras like Bonus Crab and a coin shop. Play hard, win big at Mafia Casino, which combines variety, rewards, and flexibility into a polished platform for Canadian players."]}},{"slug":"justcasino","pros":["Packed with 18,000+ games","Swift withdrawals are done within 24 hours","Numerous payment methods and excellent crypto support","Generous free spins and a deposit match welcome package"],"cons":["Site design showing its age","More table game variety is needed","High deposit and withdrawal minimum limits","Wagering requirements could be lower"],"highlightedReview":{"description":["JustCasino impresses with a focus on fairness and speed. Its standout feature is a high average RTP of 98.34%, which delivers excellent long-term player value. As for speed, withdrawals are completed within 24 hours, so winnings reach you quickly. On that subject, crypto enthusiasts will appreciate full support for both payments and direct wagering in digital currencies.","The game library is equally impressive. It offers over 18,000 titles, including a packed live dealer section powered by Evolution Gaming and other leading studios. Licensed and secure, JustCasino blends variety and cutting-edge technology into a player-friendly package. Itâs a smart choice for Canadians pursuing reliable payouts and top-tier games."]}},{"slug":"vegas-hero","pros":["Thousands of games from the biggest studios","Possesses multiple gambling licenses","Fleshed out live casino with 420+ games","Ongoing promotions and a five-tier VIP program"],"cons":["Live chat lacks true 24/7 support","Location restricts access to select games","Basic game filters could be improved","ID verification delays are possible"],"highlightedReview":{"description":["VegasHero, operated by Genesis Global, is a trusted casino licensed by the Malta Gaming Authority. Offering 4,000+ games, the platform features thousands of slots supplied by top studios like Playtech and Pragmatic Play, including 290 jackpots. The 420+ live dealer tables selection is equally impressive for those seeking a more immersive casino experience.","The varied welcome bonus is enticing enough on its own, but this is matched by ongoing rewards. These include cashback up to $4,500 weekly and reload bonuses worth over $1,000. VIPs can also enjoy personal managers and boosted limits across five tiers. If youâre holding out for a hero, look no further than VegasHero."]}},{"slug":"spinbara","pros":["Huge game library with over 8,000 slots","Great selection of weekly bonuses for regular players","Over 400 live dealer games add variety","Built for mobile play"],"cons":["Banking methods and games vary based on region","Game filtering tools could be enhanced","Account verification can take up to three business days","No dedicated app"],"highlightedReview":{"de
4scription":["Spinbara combines playful branding with serious content, the latter evidenced by its 8,500+ games from over 120 providers. These providers include the biggest names like Playân Go and Pragmatic Play. Over 8,000 slots are joined by hundreds of live dealers and tables for an excellent variety.","The welcome package includes both free spins and a Bonus Crab for store purchases, with reasonable wagering requirements attached. Regular offers include weekly cashback up to $4,500 and stacked reload bonuses. Along with excellent mobile capability, other benefits include 24/7 support and flexible banking methods with $10 minimum deposit. This capybara-themed site delivers fun and fast casino entertainment."]}},{"slug":"pistolo-casino","pros":["11,000+ games to enjoy","Unique âGo Hunt!â feature for added gameplay","Multiple payment methods with fast withdrawals","Responsive, easy-to-use mobile platform"],"cons":["The game library is quantity over quality at times","$85-$90 minimum withdrawal with certain methods","Lacks a dedicated app","Anjouan gambling licence not widely recognized"],"highlightedReview":{"description":["Pistolo launched with a modern edge, blending a huge game library with an inventive minigame not seen at other casinos. This unique âGo Hunt!â feature sees you defeat monsters through casino play, turning progress into rewards like cash and free spins. Canadian players can enjoy 11,000+ games, including hundreds of jackpots and live dealers, and this is backed by strong mobile compatibility.","Withdrawals are fast, and banking methods cover both traditional and digital currencies, including crypto. Licensed and secure, Pistolo balances innovative gamification with a strong foundation of slots and tables. Itâs a standout for Canadians looking beyond the standard casino format."]}},{"slug":"tooniebet","pros":["Over 3,600 games from top developers","Dedicated app for Android and iOS","Possesses an iGaming Ontario licence for added assurance","Generous deposit match and free spins welcome bonus"],"cons":["Limited number of jackpot slots compared to other casinos","Withdrawals can take up to five business days","Game navigation requires improvement","The mobile app is only available to Ontario players"],"highlightedReview":{"description":["Tooniebet is proudly Canadian, licensed by iGaming Ontario, and offering one of the safest platforms for nationals. It features a reliable mobile app with strong ratings on iOS and Android. Another positive is its library, which possesses over 3,600 games. That includes thousands of slots and a full live casino powered by Evolution.","A generous welcome package, which combines bonus money and free spins, is joined by weekly reloads and cashback deals. Whether desktop or mobile, play feels smooth and modern. Easy deposits and fast payouts make Tooniebet ideal for those who want trusted Canadian oversight with solid game variety and mobile play."]},"prosOntario":["Dedicated iOS and Android apps for Ontario players","5,000+ games with over 175 live casino titles","Multiple banking options and a low $10 minimum deposit","Player-friendly interface on desktop and mobile"],"consOntario":["Responsible gaming tools lack prominence","Jackpot slots lack variety","Game navigation could be enhanced"],"highlightedReviewOntario":{"description":["Tooniebet was created with Canadians in mind, something made clear with its Ontario platform. The casino features more than 5,000 games from top studios like Pragmatic Play, Playân GO, and Red Tiger. One standout here is speed. Withdrawals with Interac, Skrill, and other methods are processed in 24-72 hours â faster than many competitors.","The advantages donât stop there. Tooniebet supports a low $10 minimum deposit and offers full mobile access through its iOS and Android apps. Throw in secure Soft2Bet technology and a player-friendly interface, and Tooniebet provides users with an excellent, well-rounded gaming experience. There are many reasons why itâs a top pick for Ontario players."]}},{"slug":"casinova","pros":["Large library containing 7,300+ slots and tables","Great welcome bonus and regular reload offers","Supports crypto, e-wallets, and other payment methods","Responsive, modern mobile play through a web browser"],"cons":["Missing out on a dedicated app","Anjouan gaming licence lacks credence","Most deposit and withdrawal minimums start at $20","No telephone support"],"siteScreenshots":["/images/casinova/1.webp","/images/casinova/2.webp","/images/casinova/3.webp","/images/casinova/4.webp","/images/casinova/5.webp","/images/casinova/6.webp"],"screenshotsCasino":[{"image":"/images/casinova/1.webp","description":""},{"image":"/images/casinova/2.webp","description":""},{"image":"/images/casinova/3.webp","description":""},{"image":"/images/casinova/4.webp","description":""},{"image":"/images/casinova/5.webp","description":""},{"image":"/images/casinova/6.webp","description":""}],"highlightedReview":{"title":"Casinova â 60-Second Review","description":["Casinova delivers a sleek, responsive platform with a large 7,300+ game collection spanning slots and table favourites. New players can claim a competitive deposit match bonus with free spins. Thatâs not the end of the promotions; the platform also features regular reload offers and tournaments.","Boasting a 98.14% win rate, excellent long-term player value is a feature of Casinova. Minimum deposits start at $10, payouts are fast and usually within 1-2 days, and banking is supported by e-wallets, cryptocurrencies, and traditional methods. Throw in polished mobile browser access, and Casinova is an exciting, versatile choice for Canadian casino players."],"casinoExpert":{"name":"Amber Langley","authorPhoto":"/images/authors/amber-langley-small.webp","authorRole":"Expert contributor","authorPage":"/experts/amber-langley/"}}},{"slug":"luckywins","pros":["Large 10,000+ game library","Weekly reload bonuses for added value","11-tier VIP program with various benefits","Fast withdrawals and 20+ payment options for deposits"],"cons":["Lacks crypto and other payment methods for withdrawals","Limited number of live dealer games","Missing a dedicated mobile app","$45 minimum for the first welcome bonus deposit"],"highlightedReview":{"de
4scription":["Fancy a premium casino experience that keeps it affordable? Thatâs what you gain with Lucky Wins. Its game library features 10,000+ titles, supported by nearly two dozen payment options for convenience. The casino really shines with promotions, from daily reload bonuses to prize wheels, lotteries, and weekly free spin offers. Sundays even bring extra deposit perks.","Fancy more value? The casinoâs 11-tier VIP program adds more long-term advantages for loyal players. Payouts are also quick, and banking is flexible with deposits starting at $30. Ultimately, Lucky Ones is a strong choice for Canadians searching for consistent rewards, variety, and a well-rounded gaming experience."]}},{"slug":"mrpunter-casino","pros":["Excellent game library with thousands of slots","Enticing welcome bonus plus weekly reloads","Five-tier VIP program to unlock numerous perks","Fast withdrawals alongside crypto support"],"cons":["No dedicated app available","High Bitcoin deposit and withdrawal minimums","Lacks telephone support"],"highlightedReview":{"title":"Mr Punter Casino â 60-Second Review","description":["Mr Punter Casino stands out with a massive 10,000+ games, ranging from immersive live dealer tables to the latest slot releases. Licensed and secure, players can also expect strong long-term value with an impressive 98.24% win rate.","The casino supports both traditional banking and modern options like Skrill, Neteller, and cryptocurrency. The $20 minimum deposit for the welcome offer keeps things accessible, while withdrawals are processed quickly, usually within 1-2 days. Mr Punter Casino delivers an enticing mix of big promotions, a huge game library, and fast payouts."]}},{"slug":"kingmaker","pros":["Boasts nearly 1,000 jackpot slots","An assortment of free spins and cashback promos","Cryptocurrency support for instant withdrawals","Bet on sports and e-sports"],"cons":["Limited number of traditional withdrawal options","Missing a dedicated mobile app","Payouts can take up to five days with select methods"],"highlightedReview":{"description":["Kingmaker lives up to its name with nearly 1,000 jackpot slots, including daily prize pools and massive progressives. Beyond those titles, players have access to more than 8,500 games overall, from table favourites to cutting-edge slots. Add the option to bet on sports and e-sports, and this combination is appealing to a wide range of Canadian gamblers.","Banking is simple and reliable, and payouts are efficient, adding to the overall quality. Are you seeking a casino that blends huge win potential with a diverse library? You canât do much better than Kingmaker, which manages to cultivate an engaging all-in-one experience."]}},{"slug":"flagman","pros":["Diverse game library with slots, crash, and instant titles","Fast withdrawals with access to multiple payment methods","Excellent welcome offer for new players","Smooth mobile experience"],"cons":["Basic design lacks appeal","Restricted access to responsible gambling tools","Missing regular promos for free spins and bonus money","Only 7 days to complete the welcome bonus wagering requirements"],"highlightedReview":{"title":"Flagman â 60-Second Review","description":["Flagman instantly attracts attention by waving a bold 225% bonus up to $900 plus 500 free spins on your first deposit. Its library features 5,000+ games, ranging from popular slots to classic tables, supplied by the industryâs biggest software providers. The casino offers smooth payments starting at $10, supporting methods like Interac, Mastercard, Skrill, PaysafeCard, and Bitcoin. Withdrawals are typically processed within 1-3 days, which opens the door to fast access to winnings.","Licensed and secure, Flagman is an appealing choice for numerous reasons. From its huge welcome offer to diverse banking options and game variety, itâs a top choice for value and flexibility."],"casinoExpert":{"name":"Amber Langley","authorPhoto":"/images/authors/amber-langley-small.webp","authorRole":"Expert contributor","authorPage":"/experts/amber-langley/"}}},{"slug":"wildz-casino","pros":["Large, enticing collection of jackpot slots","Great welcome offer, joined by ongoing promos","Built for in-browser mobile play","Helpful customer support, available 24/7"],"cons":["Live dealer selection is smaller than that of other casinos","Missing crypto payment support","Doesnât feature a demo mode for games","Missing a standalone mobile app"],"highlightedReview":{"de
4scription":["Wildz Casino has grown into a player favourite thanks to two key ingredients: strong bonuses and a user-friendly platform. The welcome offer grants a 200% deposit match alongside free spins. This is followed by cashback promotions and its unique spinback feature, rewarding players with free spins after losses.","With thousands of games available, including top slots, classic tables, and live dealer titles, variety is guaranteed. Banking is hassle-free, with deposits from $10 and withdrawals starting at $20 via Interac, PayPal, and cards. Continually improving on its launch, Wildz impresses Canadians with its rewarding promotions and straightforward, modern gaming experience."]}},{"slug":"supabet","pros":["Huge collection of 8,200+ games","Weekly reload bonuses and cashback opportunities","Smooth mobile browser play","Multiple payment methods, including crypto, are supported"],"cons":["No mobile app","Telephone support is not an option","$30 minimum deposit and withdrawal for most payment methods","Customer support can be slow during peak times"],"highlightedReview":{"description":["Supabet, launched in 2024, quickly earned a reputation as a reliable, exciting casino destination for Canadian players. Possessing over 8,200 games from 76 providers, it covers every game type imaginable. This ranges from Hold & Win slots like Coins of Ra to jackpots such as Tiki Hut Megaways. Thereâs something for every preference, whether it is modern slot play or classic table action.","When it comes to Supabetâs customer care, players praise the responsive 24/7 live chat support. Supabetâs top-tier game selection and excellent service make it a favourite among Canadian players."]}},{"slug":"vegasino","pros":["Excellent, diverse selection of 25,000+ games","Fully optimized for mobile browser play","VIP program and ongoing promos for regulars","Various payment methods supported, including crypto"],"cons":["Missing an Android and iPhone app","Live chat could be improved","High bank transfer and Bitcoin withdrawal minimums","$30 minimum deposit to unlock the welcome offer free spins"],"highlightedReview":{"description":["Vegasino opened its doors in 2024 and quickly built momentum thanks to its huge game collection and impressive 98.01% RTP. Canadians will find hundreds of live dealer and table games, alongside thousands of slots from leading providers. Ongoing promotions include frequent reload bonuses with deposit matches and free spins. Plus, thereâs a rewarding VIP program.","Once unregulated, the casino is now licensed by the Gaming Board of Anjouan for fair, secure play. Banking is also straightforward with flexible options, while gameplay runs smoothly across devices. With high payout potential and a stacked 25,000+ game library, Vegasino is a strong contender among the new wave of online casinos."]}},{"slug":"magius","pros":["10,000+ games, including hundreds of jackpots","Five weekly reload bonuses for extra rewards","Modern, responsive mobile website","Extra perks through the five-tier VIP program"],"cons":["The live casino lobby is smaller than others","Missing out on a standalone app","Anjouan licence lacks credence","$75 bank transfer minimum withdrawal"],"highlightedReview":{"description":["Launc
4hed in 2025, Magius is a modern platform supplying a powerful mix of jackpot potential and game variety. Its catalogue features 10,000+ titles from an assortment of top providers, including an eye-catching 1,600 jackpot games. Players can chase huge payouts in Hold & Hit titles like Zeus Unchained and Buffalo Rampage, offering up to 5,000x multipliers. Popular Megaways slots such as Wolf Gold Megaways expand the variety with thousands of paylines.","Magius has quickly gained a loyal following for its engaging design and fast, friendly live chat support. Do you enjoy big jackpots paired with top-tier slot mechanics? Youâll find a strong, modern gaming experience here."]}},{"slug":"vegasnow","pros":["Excellent welcome package including 500 free spins","Over 14,000 games available","Every weekday offers new promos","Deposits and withdrawals are instant"],"cons":["Lacking withdrawal methods","Table game selection is disappointing","Customer support needs improving","Lacks a standalone mobile app"],"highlightedReview":{"description":["Vegas Now makes a bold statement with a large welcome offer for Canadians: up to $8,000 plus 500 free spins. Itâs not only about getting you through its virtual doors. Daily promotions add cashback, reloads, and VIP perks, giving players consistent value. Its 14,000+ game library is dominated by slots from leading developers, though table options are also included.","Licensed and secure, the site supports dependable payment methods and smooth gameplay across devices. Okay, customer service could be improved. However, the overall gambling experience is strong. When you value large bonuses and a huge game selection, Vegas Now appeals as a feature-rich casino for regular play."]}},{"slug":"novajackpot","pros":["Great VIP program that scales fast","Thousands of games from top providers","Ongoing bonuses keep regulars interested","User-friendly, responsive mobile play"],"cons":["Withdrawals are slower than the competition","$30 minimum deposit for most payment methods","Lacks live dealer variety","No dedicated mobile app"],"highlightedReview":{"description":["NovaJackpot is built for players who love stacking rewards. Daily deposits earn Crab Credits for instant prize drops, while reloads plus cashback bonuses add regular value. The VIP program scales quickly, supplying personalized offers and even account managers at higher levels. Donât fancy waiting for rewards? You can even purchase extra perks like free spins, sports bets, and bonus credit.","The library offers ample choice with over 8,000 games from 85 providers. Licensed and mobile-ready, NovaJackpot is home to a balanced blend of variety, security, and rewarding loyalty features. Itâs a great option for Canadians who enjoy consistent bonus-driven play."]}},{"slug":"stake","pros":["Exclusive Stake original games","Excellent cryptocurrency support","Responsive and smooth mobile experience","15-tier VIP program for added rewards"],"cons":["High $100 minimum deposit for the welcome bonus","Missing telephone support","Lacks ongoing free spins and bonus money offers","Limited traditional banking options"],"highlightedReview":{"description":["Stake is known for its original games, including unique titles like Plinko and Crash that you wonât find elsewhere. New players get a 200% welcome bonus up to $3,000, although the offerâs $100 minimum deposit may deter casual players. On the plus side, banking is seamless, with instant deposits and withdrawals supported.","Stake also runs regular raffles and a strong VIP program with tailored rewards. Mobile gameplay is smooth and reliable directly through the browser, while 24/7 customer support is friendly and responsive. If you enjoy crypto gaming and exclusive content, you will find a polished, player-focused experience at Stake."]}},{"slug":"roobet","pros":["Over 6,400 games to play","Full cryptocurrency support","Huge $200,000 withdrawal limit, perfect for high rollers","First week includes a 20% cashback bonus"],"cons":["The VIP program is invite-only","Unwelcome 1% deposit fee","Lacks traditional bonus offers","Missing a mobile app"],"highlightedReview":{"de
4scription":["Roobet stands out in the crowded casino market by avoiding common frustrations. For a start, its daily withdrawal limit is a massive $200,000, far exceeding most competitors. The platform also fully supports cryptocurrency banking. Like a lot of choices? With more than 6,400 games, including exclusives, variety is guaranteed.","The VIP program is strong, with perks like rakeback, loss-back, and even in-person events. One snag: itâs invite-only. Other negatives include a 1% deposit fee and fewer traditional bonuses, but most players consider these small trade-offs. Roobet is a premium choice for Canadians who value high withdrawal limits and access to a library of exclusive casino titles."]}},{"slug":"monster-win","pros":["8,700+ games, including an impressive live dealer section","Weekly reloads and cashback opportunities","Added rewards through the five-tier VIP program","Modern, responsive design for mobile and desktop play"],"cons":["Maximum withdrawal limits are restricted for new players","No dedicated mobile app available","High Bitcoin minimum deposit and withdrawal limits","Missing telephone support"],"highlightedReview":{"description":["MonsterWin lives up to its bold name. This starts with a library possessing over 8,700 games, including a huge live dealer selection. The welcome bonus awards 100% up to $750 plus 200 free spins. It is followed by an assortment of regular promotions, ranging from weekly reloads to live cashback worth 25% up to $300. The five-tier VIP program also means loyal players gain added rewards and higher limits.","The casino possesses a modern, eye-catching design that works smoothly on desktop and mobile. The casino also supports multiple payment methods like Interac, MiFinity, Cash2Code, and cryptocurrency. MonsterWin is a versatile platform perfect for bonus hunters."]}},{"slug":"winmaker","pros":["Massive $10,000 and 700 free spins welcome offer","Dozens of payment methods are available","10,000+ games across slots and live dealers","New promo offers are available every weekday"],"cons":["Limited number of withdrawal options","No standalone mobile app","Limited availability of responsible gaming tools","The withdrawal process can be on the slow side"],"highlightedReview":{"description":["Winmaker is a casino that has been carefully constructed for those who love promotions. It's staggering welcome bonus offers 100% up to $10,000 and 700 free spins, or you can opt for the high roller variant. Regular rewards include an engaging VIP program and unique promotions like the Mystery Case. The latter is a prize drop where, after making a deposit, you can claim rewards worth up to $5,000.","With 10,000+ games available, including top slots and live dealer options, variety is never an issue. Banking is also smooth with dozens of deposit methods. Winmaker is an appealing choice when you want lasting value, thanks to its bonus-heavy structure and long-term loyalty perks."]}},{"slug":"frumzi","pros":["Features hundreds of big-win progressive jackpots","VIP program and ongoing bonuses for regular players","Constantly adds new titles to its game library","5 opportunities for free rewards with a unique Bonus Dice offer"],"cons":["The withdrawal process can take several days","Delays with customer support","No dedicated mobile app","Lacks withdrawal options"],"highlightedReview":{"description":["Frumzi launched in 2020, but it has that new casino smell due to frequent updates keeping it fresh. The site boasts 8,300+ games, including new titles like Fireball Inferno and Kraken Coins. Are you a fan of jackpots? Youâll find plenty to love here, with hundreds of big-win titles like the Age of Gods series and Jackpot Express.","Frumzi also shines with player rewards. This ranges from a structured VIP program to Bonus Crab and Achievements, which unlock free spins, cash, and bets. Secure and mobile-friendly, the casino continues to entice new players with regular updates and strong incentives."]}},{"slug":"betway","pros":["Global, respected name in the gambling industry","Fully licensed for added player protection","Visually appealing, user-friendly casino design","Nice selection of live dealer games"],"cons":["The 1,250+ casino games selection is small compared to competitors","Live chat doesnât operate 24/7","Three separate apps are needed to play all casino games","Certain bonuses come with high wagering requirements"],"highlightedReview":{"de
4scription":["Betway has been a trusted name for two decades. Launched in 2006, it has built a reputation around security and reliability. Its modest selection of 1,250+ games is eye-catching, but the focus is quality over quantity. It offers polished slots and tables from leading providers, and over 20% of the library is made up of live dealer games.","Deposits are instant and withdrawals take 0-3 days which is on par with other Canadian casinos. Betway is fully licensed and operates with strong player protections. If you value reputation and trustworthy gameplay above all else, Betway is a solid, dependable casino."],"casinoExpert":{"name":"Charlon Muscat","authorPhoto":"/images/authors/charlon-muscat-small.webp","authorPage":"/experts/charlon-muscat/","authorRole":"Expert contributor"}}},{"slug":"ruby-fortune","pros":["Quality over quantity approach to games","Ample payment methods, complete with fast withdrawals","Easy to explore on mobile and desktop","Possesses multiple reputable licences"],"cons":["Small selection of games","Tough wagering conditions for the welcome bonus","Slow customer support","The VIP program is basic compared to others"],"highlightedReview":{"description":["Ruby Fortune delivers a catalogue of 1,700+ games. Itâs not a massive selection, but it is carefully curated and features big-name studios like Microgaming, NetEnt, and Evolution Gaming. The platform is clean and easy to navigate, whether youâre browsing slots, tables, or live dealer titles. Slots are the biggest attraction, with enough variety to play a new one daily. Standout games such as Amazing Link Zeus are a testament to the crisp graphics and rewarding bonus features that youâll usually find.","Ruby Fortune has been a reliable name for years and continues to supply Canadian players with a reliable, well-balanced casino experience."]},"prosOntario":["Healthy selection of jackpot slots and live dealer titles","Low $10 minimum deposit","24/7 live chat customer support","Smooth mobile browser experience"],"consOntario":["High $50 minimum withdrawal","No mobile app available for Ontarians","$4,000 weekly withdrawal cap","Less than 1,000 games offered"],"highlightedReviewOntario":{"description":["Ruby Fortune combines over two decades of experience with a strong local offering for Ontarians. The casino is home to 900+ real money games, including progressive jackpots and live dealer tables powered by industry leaders like Microgaming. Players can also explore most games in demo mode before committing real money. It is great for testing before spending.","Security is backed by SSL encryption and Ontario licensing for guaranteed player safety. A $10 minimum deposit makes the platform accessible, while banking options include local favourites like Interac and MuchBetter. While minimum withdrawals are higher than some casinos, Ruby Fortune remains a trusted, well-rounded choice."]}},{"slug":"irwin","pros":["Features a diverse library of 8,500+ games","Excellent VIP loyalty rewards, including faster withdrawals","Weekly reloads and cashback opportunities","Cryptocurrency support"],"cons":["Limited non-crypto payment methods","Withdrawals can take up to five days","Fees imposed on select transactions","Notable lack of responsible gambling tools"],"highlightedReview":{"description":["Launc
4hed in 2024, Irwin offers a well-rounded gaming experience anchored by strong promotions. The welcome bonus includes 150% up to $600. This is supported by weekly reloads, cashback, and even a birthday gift for players. A tiered VIP program enhances rewards with faster withdrawals, higher cashout limits, and tailored offers.","The game library, with over 8,500 options spread across slots and tables, is diverse and modern. The main drawback: banking. There are some limited methods and fees, while cashout times are longer than ideal. Still, Irwin impresses as a new casino combining bonuses and loyalty perks for long-term entertainment value."]}},{"slug":"betplays","pros":["Excellent live dealer selection with 450 games","Modern banking with cryptocurrency support","Great welcome offer: 200% deposit match and free spins","Low betting limits"],"cons":["Evolution Gaming titles omitted","Customer support hours are limited","Missing Canadian-friendly e-wallet substitutes","Payment methods are restricted for select players"],"highlightedReview":{"description":["BetPlays is a newcomer already making waves with innovative features. The casino supports multiple cryptocurrencies and wide betting limits, appealing to both casual players and high rollers. The game library includes thousands of titles, with standout genres like Crash and Mine games alongside 450+ live dealer options. Evolution Gaming titles are sadly absent, but thereâs still ample variety from other leading developers.","Withdrawals are reliable, and banking is modern with a focus on crypto convenience. BetPlays feels focused on the present and future with cutting-edge casino trends. It is a top pick for players who want to explore new formats and technologies."]}},{"slug":"royal-game","pros":["Large 6,500+ game library","A diverse live casino with 300+ titles","Weekly cashback and reload offers","VIP rewards for loyal players"],"cons":["Limited selection of payment methods","Lowest VIP program tiers lack rewards","No mobile app","Customer support lacks speed"],"highlightedReview":{"description":["Living up to its name, Royal Game possesses an expansive 6,500+ game collection from multiple top software providers. Alongside thousands of slots and tables, there are 300+ live dealer titles for a wide variety. Bonuses include two weekly reload offers with free spins, plus cashback on live dealer play.","The platform is secure and mobile-ready. However, banking options are limited compared to competitors, and that can frustrate some players. Nevertheless, Royal Gameâs strength lies in its game depth and variety. It is perfect for those who want constant new experiences. For players focused on exploration, this casino is a worthy contender."]}},{"slug":"casino-days","prosOntario":["5,000+ titles result in one of Ontarioâs largest game libraries","Excellent 4.5/5 Trustpilot score from 1,300+ reviews","Fast withdrawal times that are close to instant","Smooth mobile experience with easy navigation"],"consOntario":["More traditional table games are found at competitors","Phone support unavailable","Casino Days app features fewer games","Only registered players can use demo mode"],"highlightedReviewOntario":{"description":["Casino Days is one of Ontarioâs largest online casinos with a library exceeding 5,000 games. Thousands of slots are available, including 100+ Megaways titles and favourites like Wanted: Dead or a Wild and The Goonies. Are you seeking variety? You will find double the live dealer tables offered by some competitors, covering blackjack, baccarat, and roulette.","Casino Days has more going for it beyond its game library. Cashouts are efficient, often close to instant through Interac, eZeeWallet, and MuchBetter. The site is also easy to navigate and works smoothly on mobile platforms. Throw in 24/7 support, and this casino is a fantastic choice for Ontario players."]}},{"slug":"betiton","prosOntario":["Home to over 2,500 casino games","Hundreds of jackpot slots are featured","Fully mobile optimized for phones and tablets","Safe, reputable platform"],"consOntario":["Lacking traditional table games","Customer support is not 24/7","The library has limited exclusive slots","No dedicated mobile app"],"highlightedReviewOntario":{"de
4scription":["Betiton brings its award-winning platform to Ontario with over 2,500 games and a reputation for trustworthiness. The site features everything from âBook ofâ slots to Big Bass titles, as well as jackpot games with potential for life-changing payouts. In fact, it offers the largest progressive jackpot slot potential for Ontario players, with top wins going beyond $5,000,000.","Payment options include Interac and PaysafeCard, which means thereâs plenty of flexibility for players. Betiton is fully mobile-optimized. No software needs to be downloaded, while its clean design makes it effortless to find new releases and fan favourites. Licensed by ACGO and iGaming Ontario, this is a safe, polished casino experience built for Ontarians."]}},{"slug":"toppz","prosOntario":["2,100+ games from leading software providers","Fast, fee-free withdrawals","Responsive 24/7 live chat support","Modern interface thatâs easy to explore"],"consOntario":["Some games are slow to load","Issues with desktop sign-up","Lacks traditional table games","No dedicated mobile app"],"siteScreenshotsOntario":["/images/toppz/ontario/toppz-1.webp","/images/toppz/ontario/toppz-2.webp","/images/toppz/ontario/toppz-3.webp","/images/toppz/ontario/toppz-4.webp","/images/toppz/ontario/toppz-5.webp"],"screenshotsCasinoOntario":[{"image":"/images/toppz/ontario/toppz-1.webp","description":""},{"image":"/images/toppz/ontario/toppz-2.webp","description":""},{"image":"/images/toppz/ontario/toppz-3.webp","description":""},{"image":"/images/toppz/ontario/toppz-4.webp","description":""},{"image":"/images/toppz/ontario/toppz-5.webp","description":""}],"highlightedReviewOntario":{"title":"Toppz (Ontario) 60 second review","description":["Toppz offers Ontario players an impressive game library with more than 2,100 titles from 70+ providers. Its slots and live dealer catalogues are three times larger than some competitors, making it a fine choice for variety seekers. A progressive jackpot pool worth over $372 million ensures added excitement, where slots like Temple Tumble Dream Drop and Divine Fortune lead the way.","Toppz also stands out for its quick, fee-free cashouts via Interac, Visa, and Mastercard, typically processed within 2-5 days. Mobile optimization, 24/7 support, and responsible gaming tools round out this Ontario-ready platform. This is a âToppzâ choice for players."],"casinoExpert":{"name":"Loraine Couturier","authorPhoto":"/images/authors/loraine-couturier.webp","authorPage":"/experts/loraine-couturier/","authorRole":"Expert contributor"}}},{"slug":"fire-vegas","prosOntario":["Features over 1,400 games to play","Nice variety of classic tables and live dealers","An excellent mobile browser experience with smooth navigation","24/7 customer support is always ready to help"],"consOntario":["$20 minimum deposit on the high side","Telephone support unavailable","No dedicated app for mobile players"],"highlightedReviewOntario":{"description":["Feel the heat with FireVegas, a casino that includes one of the biggest selections of games for Ontario players. Its 1,400+ game library includes fan-favourite slots, live dealer titles, and progressive jackpots. Thereâs also a âScratch & Funâ section that adds diversity with crash games, dice, and Dare to Win experiences.","Navigation is nice and easy. Users can filter by slot mechanics such as Megaways and sticky wilds, for instance, while mobile compatibility ensures smooth play across devices. To keep users further engaged, the casino also includes FireTournaments and FireRewards. Add convenient banking and fast live chat support, and FireVegas offers a complete Ontario experience."]}},{"slug":"betvictor","prosOntario":["World-renowned gambling brand","2,000+ games, including BetVictor exclusives","Unsurpassed security and fairness standards","Dedicated mobile apps for iOS and Android"],"consOntario":["Customer support is slow during peak hours","Limited payment methods for Ontario players","Missing French language support","A modest selection of classic table games"],"highlightedReviewOntario":{"de
4scription":["BetVictor Ontario achieves the polish youâd expect from a global brand, now built for local players. The platform features a varied collection of over 2,000 games, including BetVictor's exclusive versions of First Person Roulette and Blackjack. Navigation is straightforward on all devices, with apps for both iOS and Android available for added convenience.","Security is understandably a strong point of the casino, where itâs backed by Ontario licensing and multiple international approvals. The site includes a low $5 minimum deposit alongside fast withdrawal times. The overall experience is a testament to BetVictorâs heritage and dedication to crafting a fully modern casino experience for Ontario players."]}},{"slug":"sports-interaction","prosOntario":["Local site has been in operation since 1997","Large library of 3,800+ games","Dedicated mobile apps for iOS and Android","Multiple customer support methods available"],"consOntario":["A processing fee can be incurred when withdrawing","Fewer traditional table games than some casinos","Withdrawal speeds need improvement"],"highlightedReviewOntario":{"description":["Operating locally since 1997, Sports Interaction is one of Ontarioâs most established gambling brands. Its online casino is built with Canadians in mind. It offers 3,800+ games that cover everything from trending slots to crash games and exclusive titles. Standout sections include a dedicated Buffalo zone and a âNew Slotsâ tab thatâs regularly updated.","Navigation is intuitive at the casino. For instance, the âTop 12 Playedâ for each subsection highlights to players what options are popular right now. The platform is fully licensed by iGaming Ontario and AGCO for a fair, secure experience. Include strong mobile apps and multiple support channels, and Sports Interaction remains a trusted Ontario choice."]}},{"slug":"lucky-days","prosOntario":["Over 4,500 casino games featured","Diverse selection of 125+ live dealer titles","Intuitive, easy navigation on mobile and desktop","Fast, fee-free withdrawals"],"consOntario":["Free-to-play slots unavailable","No telephone support","Missing an Android app","$20 withdrawal minimum for most payment methods"],"highlightedReviewOntario":{"description":["Lucky Days shines with its focus on games. The casino offers 4,500+ titles, including over 2,300 slots and 125+ live dealer tables from Evolution and other top providers. Compared with many Ontario casinos, Lucky Days boasts one of the largest slot collections around. This collection is powered by intuitive navigation and helpful tools like the âLast Playedâ feature. One negative: demo play is not available.","Withdrawals are fast and fee-free, often processed within 24 hours through Interac and e-wallets. The site is also fully optimized for mobile use, and a dedicated iOS app enhances the experience. Lucky Days is a polished platform for slot lovers in Ontario."]}},{"slug":"playolg","prosOntario":["Excellent iOS and Android apps","Great selection of highly rated slots","Live chat support available 24/7","100% of profits are invested back into Ontario"],"consOntario":["Limited games selection compared to other competitors","A restricted number of tables and live dealers","Need a bank account to withdraw","Ontario residents only"],"highlightedReviewOntario":{"description":["OLG remains a top casino choice for Ontarians thanks to its secure, government-run platform and commitment to reinvesting profits locally. Its catalogue isnât massive at 1,150+ games, but it continues to grow and include popular slots and live dealer tables. While the table game section could be expanded, the approach to quality stands out, supported by strong filters and easy navigation.","Mobile play is smooth, whether through the website or dedicated apps. Furthermore, customer support is available 24/7, and security is understandably among the best in the market. Overall, OLG achieves a safe, trustworthy, and increasingly diverse online casino experience."]}},{"slug":"magic-red","prosOntario":["Exciting jackpot game options","Near-instant withdrawals when using e-wallets","Smooth mobile experience via browser","Fully licensed for fairness and security"],"consOntario":["Fewer slots compared to competitors","Live casino tables are limited","No native mobile app","Navigation could be improved"],"highlightedReviewOntario":{"de
4scription":["With a focus on quality slots, Magic Red possesses over 1,000 games from leading providers. Ontario players will find everything from Pragmatic Playâs top titles to a variety of Megaways games. The collection is strong, if not massive, with thousands of options like other casinos. Navigation also isnât as smooth as competitors, lacking detailed tabs that make finding favourites easier.","On the plus side, deposits and withdrawals are handled quickly. The site is fully licensed by iGaming Ontario for guaranteed fairness and security. Its mobile platform is also well-designed and works excellently with no download required. Magic Red delivers a reliable slot experience with room for refinement."]}},{"slug":"bally-bet","prosOntario":["Combines casino play with sports betting","Dedicated all-in-one mobile app","Play low-stakes slots from just $0.01 per spin","Reputable Bally brand"],"consOntario":["One of the smallest game libraries around","A modest number of live dealer titles","More progressive jackpots are needed","Only three traditional payment methods are supported"],"highlightedReviewOntario":{"description":["Bally Bet Casino brings the heritage of a trusted international brand into the local Ontario market. The platform combines sports betting with a 500+ game casino library, covering slots, tables, and live dealers. Itâs true: the overall games catalogue is smaller than many Ontario competitors. Progressive jackpots and arcade-style games are sparse.","However, the site runs smoothly across devices, and security is backed by a long-standing reputation. Customer support is also strong with 24/7 live chat. Although itâs important to check banking choices before signing up, as these are limited to just a few methods. Bally Bet currently provides a safe, streamlined foundation with plenty of room for growth."]}},{"slug":"casumo","prosOntario":["Exciting game library with 1,600+ options","Easy game exploration with an advanced search feature","Withdrawals completed in hours via select methods","Fantastic, award-winning app experience"],"consOntario":["Only supports five payment options","Lacks RNG casino table games","Live casino is modest with ~50 titles","$20 withdrawal minimum"],"highlightedReviewOntario":{"description":["Casumo is a polished hybrid platform for both casino and sports betting. With over 1,600 games, it supplies a well-rounded library of slots, table games, and live dealer titles. You also donât have to struggle to find what you seek. The search and filtering tools are excellent, making it easy to locate Ontarioâs most popular releases.","Security and responsible gaming are standout strengths, with Casumoâs âPlay Okayâ tools setting an industry benchmark. Additionally, withdrawals are processed quickly, and the mobile app is award-winning for its smooth usability. Okay, progressive jackpots and a loyalty program are missing. However, Casumo is a refined, secure experience that balances entertainment with player protection."]}},{"slug":"playojo","prosOntario":["Massive 4,200+ game library, including exclusives","Excellent selection of jackpot slots","Dedicated app for Ontario players","Efficient, reliable 24/7 customer support"],"consOntario":["Limited number of payment methods","Restricted range of traditional table games","No telephone support","Other casinos offer more live dealer titles"],"highlightedReviewOntario":{"description":["PlayOJO is a strong all-rounder. It starts with a library of over 4,200 games, including an impressive collection of slots, jackpots, and live dealer tables. Want to browse that huge game library? The interface is intuitive, making it simple to explore the catalogue, whether on desktop or mobile.","The platform is fully licensed and designed specifically for Ontario players, with both web and app options available. Additionally, customer support is efficient and reliable, while deposits and withdrawals are straightforward. There are no major weak points here. PlayOJO stands as one of the most dependable, enjoyable online casinos in Ontario today."]},"siteScreenshotsOntario":["/images/playojo/playojo1.webp","/images/playojo/playojo2.webp","/images/playojo/playojo3.webp","/images/playojo/playojo4.webp","/images/playojo/playojo5.webp","/images/playojo/playojo6.webp"],"screenshotsCasinoOntario":[{"image":"/images/playojo/playojo1.webp","description":""},{"image":"/images/playojo/playojo2.webp","description":""},{"image":"/images/playojo/playojo3.webp","description":""},{"image":"/images/playojo/playojo4.webp","description":""},{"image":"/images/playojo/playojo5.webp","description":""},{"image":"/images/playojo/playojo6.webp","description":""}]},{"slug":"888","prosOntario":["Over 2,000 games, including exclusive live dealer tables","140+ progressive jackpot titles for big wins","Multi-channel customer support","Excellent mobile app and browser play"],"consOntario":["Withdrawal processing times are on the slow side","Limited RNG table games compared to competitors","No demo mode available","The sign-up process is slower than that of other casinos"],"highlightedReviewOntario":{"de
4scription":["888 is one of the provinceâs most established casino platforms. It offers over 2,000 games for Ontario players, including slots, blackjack, and poker. It also stands out with more than 140 progressive jackpot titles, some of which reach impressive payouts exceeding $500,000.","Itâs not only about games. The platform features flexible banking with low minimum deposits and withdrawals, although processing times can be lengthy. Where 888 truly excels, however, is with its mobile play. Both the in-browser site and the dedicated app are polished. In fact, the app is ranked among Ontarioâs very best. Overall, 888 is a strong, secure choice for casino play."]}},{"slug":"yukon-gold","prosOntario":["Solid 1,000+ games library","Site easy to navigate","Great 24/7 customer support","Excellent multi-tiered VIP program"],"consOntario":["Canât browse lobby before sign-up","Small selection of jackpots","Live dealer section is lacking"],"highlightedReviewOntario":{"title":"Yukon Gold copy ON â 60 second review","description":["Yukon Gold is a showstopper of a casino â quite flashy and reminds you of the Vegas strip but offers way more under the exterior. Offering around 1,000 casino games, Yukon Gold has a solid selection of slots, jackpots, and table games that are meticulously organized. You can browse by popularity and play fan favourites like Immortal Romance, or by theme and discover tribal slots like Africa X UP.","I enjoyed my time on Yukon Gold, largely because of the quality game providers, mobile experience and its loyalty program. It would be great though if new players could browse the lobby before signing up, other than that, it ticks a lot of boxes!"],"casinoExpert":{"name":"Lara Wilson","authorPhoto":"/images/authors/lara-wilson-small.webp","authorPage":"/experts/lara-wilson/","authorRole":"Expert contributor"}}},{"slug":"wyns","pros":["Thousands of games, including regular new releases","Weekly reloads support extra playtime","Helpful 24/7 customer support","Over 200 live casino titles"],"cons":["Limited withdrawal options","No telephone support","Relatively modest welcome bonus","The first two VIP levels lack value"],"highlightedReview":{"title":"Wyns â 60-Second Review","description":["Wyns is certainly onto a winner. The 7,000+ game library is ever-growing, with the latest hot releases being added. Itâs not just slots, either. Thereâs ample variety with a healthy collection of live dealers, traditional tables, and instant games. We also love the casinoâs focus on regular promotions, tournaments, and challenges, which reward regulars. With weekly offers like the $1,050 and 50 free spins weekend reload, Wyns provides every reason to stick around."]},"siteScreenshots":["/images/wyns/wyns-1.webp","/images/wyns/wyns-2.webp","/images/wyns/wyns-3.webp","/images/wyns/wyns-4.webp","/images/wyns/wyns-5.webp"],"screenshotsCasino":[{"image":"/images/wyns/wyns-1.webp","description":"Wyns casino screenshot 1"},{"image":"/images/wyns/wyns-2.webp","description":"Wyns casino screenshot 2"},{"image":"/images/wyns/wyns-3.webp","description":"Wyns casino screenshot 3"},{"image":"/images/wyns/wyns-4.webp","description":"Wyns casino screenshot 4"},{"image":"/images/wyns/wyns-5.webp","description":"Wyns casino screenshot 5"}]},{"slug":"neon54","pros":["Exciting collection of 7,800+ games","Regular bonuses alongside a large welcome package","Lightning-quick payouts in 0-1 days","Slick, responsive mobile experience"],"cons":["No direct cryptocurrency support for Canadians","$20 minimum deposit for most payment methods","Telephone support unavailable","No dedicated app"],"highlightedReview":{"title":"Neon54 â 60-Second Review","description":["Glowing like its namesake, Neon54 has fast established itself as a top online casino destination for Canadians. Thousands of games, consistent weekly promos, a smooth mobile performance â it ticks off all the main points in style. We particularly love the huge welcome bonus, and that the casino further rewards players with frequent bonuses and perks for existing players. Neon54 is a casino built to keep you coming back again and again."]},"siteScreenshots":["/images/neon54/neon54-1.webp","/images/neon54/neon54-2.webp","/images/neon54/neon54-3.webp","/images/neon54/neon54-4.webp","/images/neon54/neon54-5.webp"],"screenshotsCasino":[{"image":"/images/neon54/neon54-1.webp","description":"Neon54 casino screenshot 1"},{"image":"/images/neon54/neon54-2.webp","description":"Neon54 casino screenshot 2"},{"image":"/images/neon54/neon54-3.webp","description":"Neon54 casino screenshot 3"},{"image":"/images/neon54/neon54-4.webp","description":"Neon54 casino screenshot 4"},{"image":"/images/neon54/neon54-5.webp","description":"Neon54 casino screenshot 5"}]},{"slug":"flamez","pros":["Responsive, straightforward mobile browser play","20% daily cashback available","Fast 1-3 days withdrawals","Great 24/7 live chat support"],"cons":["Basic casino design","Limited regular bonuses and promos","Bigger game selection at other casinos","Lacks a dedicated app"],"highlightedReview":{"title":"Flamez â 60-Second Review","description":["Launc
4hed in 2025, Flamez has quickly caught fire with Canadian gamblers. Simple on the surface, yes, but the casino has a lot of substance underneath. The carefully curated game library, with 1,800+ options, features a tasty combination of classics and new releases. Beyond that, thereâs plenty of polish that appeals. Numerous payment methods with fast withdrawals, mobile-friendly design, and 24/7 live chat support all highlight a top casino with substance."]},"siteScreenshots":["/images/flamez/screenshot-1.webp","/images/flamez/screenshot-2.webp","/images/flamez/screenshot-3.webp","/images/flamez/screenshot-4.webp","/images/flamez/screenshot-5.webp"],"screenshotsCasino":[{"image":"/images/flamez/screenshot-1.webp","description":"Flamez casino screenshot 1"},{"image":"/images/flamez/screenshot-2.webp","description":"Flamez casino screenshot 2"},{"image":"/images/flamez/screenshot-3.webp","description":"Flamez casino screenshot 3"},{"image":"/images/flamez/screenshot-4.webp","description":"Flamez casino screenshot 4"},{"image":"/images/flamez/screenshot-5.webp","description":"Flamez casino screenshot 5"}]},{"slug":"dragonia","pros":["9,000+ games from the biggest developers","Hundreds of tables and live dealers for variety","Regulars are rewarded with weekly promo offers","Eye-catching design that pops on mobile"],"cons":["$20 minimum deposit for 8/10 payment methods","No dedicated app","No telephone support","Anjouan licence is not the most credible"],"highlightedReview":{"title":"Dragonia â 60-Second Review","description":["Dragonia has already made giant strides following its 2025 release. The casino boasts one of the biggest game libraries around â and itâs continually growing. The 9,000+ titles include an exciting mixture of slots, tables, and live dealers from the best software developers around. Aside from an enticing welcome bonus, there are weekly reloads and a rewarding VIP program to keep regulars entertained. Dragoniaâs fantasy theme also immediately immerses and captivates, whether playing on mobile or desktop."]},"siteScreenshots":["/images/dragonia/screenshot-1.webp","/images/dragonia/screenshot-2.webp","/images/dragonia/screenshot-3.webp","/images/dragonia/screenshot-4.webp","/images/dragonia/screenshot-5.webp"],"screenshotsCasino":[{"image":"/images/dragonia/screenshot-1.webp","description":"Dragonia casino screenshot 1"},{"image":"/images/dragonia/screenshot-2.webp","description":"Dragonia casino screenshot 2"},{"image":"/images/dragonia/screenshot-3.webp","description":"Dragonia casino screenshot 3"},{"image":"/images/dragonia/screenshot-4.webp","description":"Dragonia casino screenshot 4"},{"image":"/images/dragonia/screenshot-5.webp","description":"Dragonia casino screenshot 5"}]},{"slug":"realz","pros":["Over 8,800 games, including 700+ jackpot slots","1-3 day payouts, matching Jackpot City Casino","Cryptocurrency payments are available using Bitcoin, Litecoin and more","Sign up in less than two minutes"],"cons":["No downloadable mobile app","No Pragmatic Play slots"],"highlightedReview":{"title":"Realz â 60-Second Review","description":["Realz houses 8,800+ games from top providers like Playân GO and 3 Oaks. You can deposit from $10 using payment methods like Interac or cryptocurrencies including Bitcoin and Litecoin. Payouts are often processed within the hour and land within three days. Get in touch with live chat support around the clock with any questions you have â youâll usually be connected to a team member within 30 seconds."],"casinoExpert":{"name":"Nikolina JeriÄ","authorPhoto":"/images/authors/nikolina-jeric-small.webp","authorRole":"Expert contributor","authorPage":"/experts/nikolina-jeric/"}},"siteScreenshots":["/images/reviews/realz/realz-casino-1.webp","/images/reviews/realz/realz-casino-2.webp","/images/reviews/realz/realz-casino-3.webp","/images/reviews/realz/realz-casino-4.webp"],"screenshotsCasino":[{"image":"/images/reviews/realz/realz-casino-1.webp","description":"Realz casino screenshot 1"},{"image":"/images/reviews/realz/realz-casino-2.webp","description":"Realz casino screenshot 2"},{"image":"/images/reviews/realz/realz-casino-3.webp","description":"Realz casino screenshot 3"},{"image":"/images/reviews/realz/realz-casino-4.webp","description":"Realz casino screenshot 4"}]},{"slug":"trips-casino","pros":["Daily free spins and reload promos, and social prizes and tournaments","20+ payment methods, including Bitcoin, Neteller, and Mastercard","6,000+ games across slots, tables, crash games, and live dealers","24/7 live chat customer support is always available"],"cons":["Graphical glitches spoil the flow of exploring the casino","No mobile app like Jackpot City and Spin Palace","The $30 minimum deposit for the welcome offer is on the high side"],"highlightedReview":{"title":"Trips Casino â 60-Second Review","description":["Having launched in 2024, Trips Casino has quickly climbed the ranks at Casino.ca. There are multiple reasons why thatâs the case. With a Curaçao licence in place, the platform offers over 6,000 games from the biggest providers like NetEnt, Pragmatic Play, and Yggdrasil. This includes everything from slots and jackpots to roulette, blackjack, and crash games. Add a giant 130% up to $7,000 and 100 free spins welcome package, and thereâs no tripping up at this casino."],"casinoExpert":{"name":"Lyndsey Grima","authorPhoto":"/images/authors/lyndsey-grima-small.webp","authorRole":"Expert contributor","authorPage":"/experts/lyndsey-grima/"}}},{"slug":"onlywin","pros":["Diverse game library boasting over 7,800 titles","Smooth mobile performance, complete with a dedicated app play","Daily reloads to unlock bonus cash and free spins","It only takes one minute to register for an account"],"cons":["Lacks RNG table games compared to Supabet and LuckyWins","Minimum deposit and withdrawal limits are on the high side","VIP club entry requires considerable investment"],"highlightedReview":{"title":"OnlyWin â 60-Second Review","description":["7,800+ games. Bonus after bonus. Polished, modern design complete with straightforward navigation. OnlyWin casino is a feature-packed platform that sprinkles in something for everyone. Launched in 2023 with a Curaçao licence, its 420% up to $3,000 and 300 free spins bonus package is another highlight we love. OnlyWin by n
4ame, only wins by nature."],"casinoExpert":{"name":"Amber Langley","authorPhoto":"/images/authors/amber-langley-small.webp","authorRole":"Expert contributor","authorPage":"/experts/amber-langley/"}}}]`),pl=["VIPHighRollerOffers","authorsReview","cons","customerService","expertRating","expertRatingOntario","gamesAvailableChart","highlightedReview","howWeRate","highlightedReviewOntario","prosOntario","consOntario","prosAlberta","consAlberta","highlightedReviewAlberta","playersOfMonth","popularityChart","pros","screenshotsCasino","siteScreenshots","siteScreenshotsOntario","screenshotsCasinoOntario"],_4={name:"AdvancedToplist",components:{SelectionBar:om,ClientOnly:Dl,CasinoHeader:wm,OverviewContentTab:c0,BonusesContentTab:r3,GamesContentTab:X_,RatingContentTab:dx,CasinoStatsContentTab:hk,GalleryContentTab:gk,AlternativesContentTab:l4,Tabs:u4,Divider:bs,ModalGame:Sd,StickyBar:Cd},props:{contentRegion:{type:String,default:""},selectToplist:{type:String,default:"default"},providersJsonData:{type:Object,default:()=>({})},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},isUSA:{type:Boolean,default:!1},partnersOverrides:{type:[Array,Object],default:()=>null},pageType:{type:String,default:"default"}},serverPrefetch(){return!this.hasAxios||this.hasToplistData&&!this.effectiveIsUSA?Promise.resolve():this.getToplistData().catch(()=>{})},data(){return{loadingDelay:!0,activePartner:null,activeTab:0,showModalGame:!1,isOntarioPage:!1,isAlbertaPage:!1,overviewTab:this.$t("advancedToplist.overviewTab"),gamesTab:this.$t("advancedToplist.gamesTab"),ratingTab:this.$t("advancedToplist.ratingTab"),casinoStatsTab:this.$t("advancedToplist.casinoStatsTab"),bonusesTab:this.$t("advancedToplist.bonusesTab"),galleryTab:this.$t("advancedToplist.galleryTab"),alternativesTab:this.$t("advancedToplist.alternativesTab"),resolvedPartnerSnapshot:null,resolvedPartnerSnapshotKey:"",lazyDetailCache:{}}},computed:{...K(se,["currentPartner","toplists","defaultToplist"]),...K(Ue,["modalGame"]),toplistData(){return this.toplists?.default||this.defaultToplist||[]},tabs(){return[{title:this.overviewTab,slotName:"Overview",visible:!0},{title:this.bonusesTab,slotName:"Bonuses",visible:this.showBonusTab&&!this.effectiveIsUSA},{title:this.gamesTab,slotName:"Games",visible:!this.effectiveIsUSA},{title:this.ratingTab,slotName:"Rating",visible:!this.effectiveIsUSA},{title:this.casinoStatsTab,slotName:"casino-stats",visible:!this.effectiveIsUSA},{title:this.galleryTab,slotName:"Gallery",visible:!this.effectiveIsUSA},{title:this.alternativesTab,slotName:"Alternatives",visible:!this.effectiveIsUSA}]},isBonusRegulated(){return this.isOntario||this.isAlberta},showBonusTab(){return!this.isBonusRegulated},effectiveProvidersJsonData(){const e=this.providersJsonData;return e&&typeof e=="object"&&Object.keys(e).length>0?e:v4||{}},effectivePartnersOverrides(){const e=this.partnersOverrides;return Array.isArray(e)?e.length?e:Ti:e&&typeof e=="object"&&Object.keys(e).length?e:Ti},isClient(){return ae},hasAxios(){return!!this.$axios},isOntario(){return this.ontarioRegulated||this.isOntarioPage},isAlberta(){return this.albertaRegulated||this.isAlbertaPage},resolvedContentRegion(){return Xi({contentRegion:this.contentRegion,isOntario:this.isOntario,isAlberta:this.isAlberta})},effectiveIsUSA(){return this.isUSA||ar()},resolvedPageType(){return this.effectiveIsUSA&&(!this.pageType||["homepage","default"].includes(String(this.pageType).trim().toLowerCase()))?"homepage":this.pageType||"default"},resolvedVerticalFilter(){return this.effectiveIsUSA?"Casino":""},hasToplistData(){return Array.isArray(this.toplistData)&&this.toplistData.length>0},partnersOverridesMap(){const e=new Map,t=(s,r)=>{s!=null&&e.set(String(s).trim().toLowerCase(),r)},n=this.effectivePartnersOverrides;return n&&(Array.isArray(n)?n.forEach(s=>{s&&typeof s=="object"&&(t(s.slug,s),t(s.id,s))}):typeof n=="object"&&Object.keys(n).forEach(s=>{const r=n[s];t(s,r),r&&typeof r=="object"&&(t(r.slug,r),t(r.id,r))})),e},resolvedPartner(){return this.resolvedPartnerSnapshot||this.currentPartner||{}},resolvedPartnerCacheKey(){const e=this.currentPartner||{},t=e.siteLink&&(e.siteLink.match(/\/reviews\/([^/]+)\/?/)||[])[1]||null,n=[e.id,e.slug,e.partnerId,e.partner_id,e?.phoenix?.slug,t].filter(
4Boolean).map(i=>String(i).trim().toLowerCase()),s=n.map(i=>this.partnersOverridesMap.get(i)).find(Boolean)||null,r=s?pl.filter(i=>Object.prototype.hasOwnProperty.call(s,i)||Object.prototype.hasOwnProperty.call(s.supplement||{},i)).map(i=>{const o=s.supplement?.[i]??s[i];return`${i}:${JSON.stringify(o)}`}).join("|"):"";return[n.join(":"),r,JSON.stringify(e.phoenix?.attributes?.softwareProvider||[]),JSON.stringify(e.phoenix?.attributes?.gameType||[])].join("::")}},watch:{resolvedPartnerCacheKey:{immediate:!0,handler(e){e===this.resolvedPartnerSnapshotKey&&this.resolvedPartnerSnapshot||(this.resolvedPartnerSnapshotKey=e,this.resolvedPartnerSnapshot=ye(this.buildResolvedPartner()),ae&&this.ensureFullDetail(this.currentPartner))}},toplistData:{immediate:!0,handler(e){e.length&&((!this.currentPartner||Object.keys(this.currentPartner).length===0)&&this.setCurrentPartner(e[0]),ae&&Sl(this.toplistData))}},modalGame:{immediate:!0,deep:!0,handler(e){e.open&&Object.keys(e.game).length?this.showModalGame=!0:this.showModalGame=!1}}},async created(){this.loadingDelay=!1},async mounted(){ae&&(this.isOntarioPage=re(e=>e.location.pathname.includes("/ontario/"),!1),this.isAlbertaPage=re(e=>e.location.pathname.includes("/alberta/"),!1)),ae&&!this.hasToplistData&&(this.loadingDelay=!0),(!this.hasToplistData||this.isBonusRegulated||this.effectiveIsUSA)&&await this.getToplistData(),this.showComponent()},methods:{openNewTab(e){this.activeTab=e},...ce(se,["getToplistByType","setCurrentPartner","getPartnerBySlug"]),async getToplistData(){!this.hasAxios||Array.isArray(this.toplists?.default)&&this.toplists.default.length>0&&!this.effectiveIsUSA||await this.getToplistByType({toplistType:"default",pageType:this.resolvedPageType,defaultToplist:this.selectToplist,isOntario:this.isOntario,isAlberta:this.isAlberta,contentRegion:this.resolvedContentRegion,isUSA:this.effectiveIsUSA,verticalFilter:this.resolvedVerticalFilter,axios:this.$axios})},showComponent(){this.loadingDelay=!1;const e=is(t=>t.getElementById("advancedToplistSkeleton"));e&&e.classList.add("hidden")},partnerSlug(e){const t=e||{},n=t.siteLink&&(t.siteLink.match(/\/reviews\/([^/]+)\/?/)||[])[1]||null;return String(t.slug||t?.phoenix?.slug||n||t.id||"").trim().toLowerCase()},async ensureFullDetail(e){if(!ae||!e||!e.detailLazy)return;const t=this.partnerSlug(e);if(!(!t||Object.prototype.hasOwnProperty.call(this.lazyDetailCache,t))){this.lazyDetailCache={...this.lazyDetailCache,[t]:null};try{const n=await this.getPartnerBySlug({slug:t,isOntario:this.isOntario,isAlberta:this.albertaRegulated,axios:this.$axios});if(n)this.lazyDetailCache={...this.lazyDetailCache,[t]:n},this.partnerSlug(this.currentPartner)===t&&(this.resolvedPartnerSnapshotKey="",this.resolvedPartnerSnapshot=ye(this.buildResolvedPartner()));else{const s={...this.lazyDetailCache};delete s[t],this.lazyDetailCache=s}}catch{const s={...this.lazyDetailCache};delete s[t],this.lazyDetailCache=s}}},buildResolvedPartner(){const e=this.currentPartner||{},t=e.siteLink&&(e.siteLink.match(/\/reviews\/([^/]+)\/?/)||[])[1]||null,s=[e.id,e.slug,e.partnerId,e.partner_id,e?.phoenix?.slug,t].filter(Boolean).map(a=>String(a).trim().toLowerCase()).map(a=>this.partnersOverridesMap.get(a)).find(Boolean)||null;let r=s;s&&(r={...s,supplement:{...s.supplement||{}}},pl.forEach(a=>{Object.prototype.hasOwnProperty.call(s,a)&&(r.supplement[a]=s[a])}));const i=e.detailLazy&&this.lazyDetailCache?this.lazyDetailCache[this.partnerSlug(e)]:null,o=[e,i,r].filter(Boolean);return o.length>1?this.deepMerge({},...o):{...e}},deepMerge(e={},...t){const n=r=>r&&typeof r=="object"&&!Array.isArray(r),s=n(e)?{...e}:{};return t.forEach(r=>{!n(r)&&!Array.isArray(r)||Object.keys(r).forEach(i=>{const o=r[i],a=s[i];if(Array.isArray(o)){s[i]=o.slice();return}if(n(o)){s[i]=n(a)?this.deepMerge({...a},o):this.deepMerge({},o);return}s[i]=o})}),s}}},x4={key:0},w4={class:"background-elevation-2 border-sm color-stroke-elevation rounded-ui-md flex flex-col"},k4={class:"px-md pt-xs lg:p-lg lg:pb-0 flex flex-col"},C4={class:"lg:px-lg py-md lg:py-lg flex flex-col gap-md xl:gap-lg"},S4={class:"px-md lg:px-2xl pb-md"};function T4(e,t,n,s,r,i){const o=w("SelectionBar"),a=w("CasinoHeader"),c=w("OverviewContentTab"),l=w("BonusesContentTab"),d=w("GamesContentTab"),u=w("RatingContentTab"),h=w("CasinoStatsContentTab"),f=w("GalleryContentTab"),p=w("AlternativesContentTab"),y=w("Tabs"),m=w("Divider"),b=w("StickyBar"),_=w("ClientOnly"),C=w("ModalGame");return r.loadingDelay?A("",!0):(g(),x("div",x4,[v("div",w4,[v("div",k4,[v("div",null,[P(o,{"toplist-data":i.toplistData,"select-toplist":n.selectToplist,"ontario-regulated":i.isOntario,"alberta-regulated":i.isAlberta},null,8,["toplist-data","select-toplist","ontario-regulated","alberta-regulated"])]),t[0]||(t[0]=v("div",{class:"border-t-sm color-stroke-elevation"},null,-1)),v("div",C4,[P(a,{"partner-data":i.resolvedPartner,"ontario-regulated":i.isOntario,"alberta-regulated":i.isAlberta},null,8,["partner-data","ontario-regulated","alberta-regulated"]),P(y,{tabs:i.tabs,"tabs-no-wrap":!0,"button-size":"SM",onOpenTab:i.openNewTab},bl({Overview:B(()=>[P(c,{"is-active":r.activeTab===0,partner:i.resolvedPartner,"ontario-regulated":i.isOntario,"alberta-regulated":i.isAlberta},null,8,["is-active","partner","ontario-regulated","alberta-regulated"])]),Games:B(()=>[P(d,{"is-active":r.activeTab===2,partner:i.resolvedPartner,"game-providers":i.effectiveProvidersJsonData},null,8,["is-active","partner","game-providers"])]),Rating:B(()=>[P(u,{"is-active":r.activeTab===3,partner:i.resolvedPartner,"ontario-regulated":i.isOntario},null,8,["is-active","partner","ontario-regulated"])]),"casino-stats":B(()=>[P(h,{"is-active":r.activeTab===4,partner:i.resolvedPartner},null,8,["is-active","partner"])]),Gallery:B(()=>[P(f,{"is-active":r.activeTab===5,partner:i.resolvedPartner,"ontario-regulated":i.isOntario},null,8,["is-active","partner","ontario-regulated"])]),Alternatives:B(()=>[P(p,{"is-active":r.activeTab===6,partner:i.resolvedPartner,"similar-partner":i.effectiveProvidersJsonData,"ontario-regulated":i.isOntario},null,8,["is-active","partner","similar-partner","ontario-regulated"])]),_:2},[i.isBonusRegulated?void 0:{name:"Bonuses",fn:B(()=>[P(l,{partner:i.resolvedPartner},null,8,["partner"])]),key:"0"}]),1032,["tabs","onOpenTab"])])]),P(m,{variant:"no-margin"}),v("div",S4,[P(_,null,{default:B(()=>[P(b,{variant:"static","partner-data":i.resolvedPartner,"ontario-regulated":i.isOntario,"alberta-regulated":i.isAlberta},null,8,["partner-data","ontario-regulated","alberta-regulated"])]),_:1})])]),P(_,null,{default:B(()=>
4[r.showModalGame&&i.isClient?(g(),S(C,{key:0})):A("",!0)]),_:1})]))}const P4=O(_4,[["render",T4]]),A4="(min-width: 1440px)",O4={name:"ComparisonPairList",components:{CustomSlider:Gt,Favicon:Pt},props:{pairs:{type:Array,default:()=>[]},selectedIndex:{type:Number,default:-1},listLabel:{type:String,default:""},ariaListLabel:{type:String,default:""},placeholderText:{type:String,default:""}},data(){return{isXlViewport:!1,xlMediaQuery:null}},computed:{pairFaviconSize(){return this.isXlViewport?"2xs":"3xs"},faviconPlaceholderClass(){const e=this.pairFaviconSize;return["shrink-0 rounded-pill background-elevation-3",Mi.faviconSizeWidth[e],Mi.faviconSizeHeight[e]]},hasSelection(){return typeof this.selectedIndex=="number"&&this.selectedIndex>=0},initialSlideIndex(){return!this.pairs.length||!this.hasSelection?0:Math.min(this.selectedIndex,this.pairs.length-1)},sliderKey(){return this.pairs.map(e=>`${e.id}:${be(e.a)}:${be(e.b)}:${this.logoPath(e.a)}:${this.logoPath(e.b)}`).join("|")||"empty"}},mounted(){re(e=>{e.matchMedia&&(this.xlMediaQuery=e.matchMedia(A4),this.isXlViewport=this.xlMediaQuery.matches,this.xlMediaQuery.addEventListener("change",this.handleXlViewportChange))})},beforeUnmount(){this.xlMediaQuery&&this.xlMediaQuery.removeEventListener("change",this.handleXlViewportChange)},methods:{handleXlViewportChange(e){this.isXlViewport=e.matches},isSelected(e){return this.hasSelection&&this.selectedIndex===e},partnerSlug:be,logoPath(e){return Ol(e)},displayName(e){return Dt(e)},truncatedDisplayName(e){const t=this.displayName(e)||"-";return t.length>11?`${t.slice(0,11)}...`:t},faviconBlur(e){return e?.phoenix?.attributes?.gradientStop2||""}}},M4={class:"comparison-pair-list flex flex-col gap-md"},L4={key:0,class:"text-foreground-3 font-bold lg:text-md leading-150"},I4=["aria-label"],R4=["aria-selected","onClick"],D4={key:0,class:"flex flex-col items-center justify-center gap-2xs w-[56px] md:w-[65px] lg:w-[80px]"},F4=["title"],B4={key:2,class:"flex flex-col items-center justify-center gap-2xs w-[56px] md:w-[65px] lg:w-[80px]"},E4=["title"],$4={key:2,class:"text-xs text-gray-600"};function N4(e,t,n,s,r,i){const o=w("Favicon"),a=w("CustomSlider");return g(),x("div",M4,[n.listLabel?(g(),x("p",L4,k(n.listLabel),1)):A("",!0),n.pairs.length?(g(),x("div",{key:1,class:"comparison-pair-list__slider w-full overflow-visible",role:"listbox","aria-label":n.ariaListLabel||n.listLabel},[(g(),S(a,{key:i.sliderKey,class:"comparison-pair-list__custom-slider w-full relative overflow-visible","slider-items-classes":"gap-sm md:gap-md lg:gap-lg items-center justify-start","initial-slide":i.initialSlideIndex,"delay-go-to-slide":!0,"buttons-position":"custom","custom-left-control-button-classes":"absolute left-[-20px] z-40","custom-right-control-button-classes":"absolute right-[-20px] z-40","controls-top":"calc(50% - 20px)","show-control-buttons":"hidden-mobile-tablet",shadow:"","shadow-type":"all-views","shadow-size":"sm","padding-control-buttons":"no-padding"},{default:B(()=>[(g(!0),x(H,null,Y(n.pairs,(c,l)=>(g(),x("button",{key:`${c.id}:${i.partnerSlug(c.a)}:${i.partnerSlug(c.b)}`,type:"button",class:z(["flex shrink-0 cursor-pointer items-center gap-2xs xl:gap-md rounded-lg border-sm px-xs xl:px-md py-sm xl:py-[20px] transition-colors",i.isSelected(l)?"color-stroke-accent background-elevation-4":"color-stroke-elevation background-elevation-2"]),role:"option","aria-selected":i.isSelected(l),onClick:d=>e.$emit("select",l)},[i.logoPath(c.a)?(g(),x("div",D4,[(g(),S(o,{key:`${c.id}-a-${i.partnerSlug(c.a)}-${i.logoPath(c.a)}`,mode:"circular",size:i.pairFaviconSize,"image-path":i.logoPath(c.a),"image-name":i.displayName(c.a),blur:i.faviconBlur(c.a),lazy:!1},null,8,["size","image-path","image-name","blur"])),v("div",{class:"w-full max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap text-center text-foreground-2 text-2xs leading-120",title:i.displayName(c.a)},k(i.truncatedDisplayName(c.a)),9,F4)])):(g(),x("div",{key:1,class:z(i.faviconPlaceholderClass),"aria-hidden":"true"},null,2)),t[0]||(t[0]=v("div",{class:"flex items-center","aria-hidden":"true"},[v("span",{class:"px-2xs title-3xs font-bold leading-150 text-foreground-1"}," vs ")],-1)),i.logoPath(c.b)?(g(),x("div",B4,[(g(),S(o,{key:`${c.id}
4-b-${i.partnerSlug(c.b)}-${i.logoPath(c.b)}`,mode:"circular",size:i.pairFaviconSize,"image-path":i.logoPath(c.b),"image-name":i.displayName(c.b),blur:i.faviconBlur(c.b),lazy:!1},null,8,["size","image-path","image-name","blur"])),v("div",{class:"w-full max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap text-center text-foreground-2 text-2xs leading-120",title:i.displayName(c.b)},k(i.truncatedDisplayName(c.b)),9,E4)])):(g(),x("div",{key:3,class:z(i.faviconPlaceholderClass),"aria-hidden":"true"},null,2))],10,R4))),128))]),_:1},8,["initial-slide"]))],8,I4)):A("",!0),n.placeholderText&&!i.hasSelection?(g(),x("p",$4,k(n.placeholderText),1)):A("",!0)])}const z4=O(O4,[["render",N4],["__scopeId","data-v-7a30b11c"]]),j4={name:"ComparisonPartnerCard",components:{Button:me,Favicon:Pt,IconArrowDown:vl,SearchModal:jl},props:{partner:{type:Object,default:null},replaceOptions:{type:Array,default:()=>[]},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},contentRegion:{type:String,default:""},isEmpty:{type:Boolean,default:!1}},data(){return{pickerOpen:!1}},computed:{...K(ge,["isMobile","isTablet","isDesktop"]),articleClass(){return this.isEmpty?"border-sm border-dashed color-stroke-3 background-elevation-3 rounded-lg ml-[12px] md:ml-md lg:ml-lg cursor-pointer justify-center items-center h-full transition-colors hover:background-elevation-4 min-w-[150px] sm:min-w-0":"color-stroke-elevation"},name(){return Dt(this.partner)},logoSrc(){return Ol(this.partner)},blurColor(){return Ad(this.partner)},affiliateLink(){return Pd(this.partner)},reviewLink(){return Td(this.partner,{ontarioRegulated:this.ontarioRegulated,albertaRegulated:this.albertaRegulated,contentRegion:this.contentRegion,isFrench:this.$t("locale")==="fr"||this.$t("locale")==="fr-CA"})},pickerTitle(){return this.isEmpty?this.$t("comparison.addOption"):this.$t("comparison.changeCasino")},favIconSize(){return this.isMobile?"2xs":this.isTablet?"xs":"md"}},methods:{onEmptyCardClick(){this.isEmpty&&this.openPicker()},onEmptyCardKeydown(e){this.isEmpty&&(e&&typeof e.preventDefault=="function"&&e.preventDefault(),this.openPicker())},openPicker(){re(()=>{setTimeout(()=>{this.pickerOpen=!0},0)})},closePicker(){this.pickerOpen=!1},async onPartnerPicked(e){this.closePicker(),await this.$nextTick(),this.$emit("replace",e)}}},V4=["role","tabindex","aria-label"],G4={key:1,class:"h-[40px] w-[40px] md:h-[52px] md:w-[52px] lg:h-[80px] lg:w-[80px] shrink-0 rounded-pill background-elevation-3","aria-hidden":"true"},H4={class:"truncate"},W4={class:"flex w-full flex-col gap-xs mt-xs"},U4={class:"mt-sm text-sm font-medium leading-150 text-foreground-2 pointer-events-none"};function q4(e,t,n,s,r,i){const o=w("Favicon"),a=w("IconArrowDown"),c=w("Button"),l=w("SearchModal");return g(),x("div",{class:z(["comparison-partner-card",n.isEmpty?"h-full w-auto min-w-auto":"w-full"])},[v("article",{class:z(["flex flex-col items-center py-md lg:py-lg",[n.isEmpty?"w-auto min-w-auto":"w-full lg:min-w-[264px]",i.articleClass]]),role:n.isEmpty?"button":void 0,tabindex:n.isEmpty?0:void 0,"aria-label":n.isEmpty?e.$t("comparison.addOption"):void 0,onClick:t[0]||(t[0]=(...d)=>i.onEmptyCardClick&&i.onEmptyCardClick(...d)),onKeydown:[t[1]||(t[1]=et((...d)=>i.onEmptyCardKeydown&&i.onEmptyCardKeydown(...d),["enter"])),t[2]||(t[2]=et((...d)=>i.onEmptyCardKeydown&&i.onEmptyCardKeydown(...d),["space"]))]},[n.partner?(g(),x(H,{key:0},[i.logoSrc?(g(),S(o,{key:i.logoSrc,mode:"circular",size:i.favIconSize,"image-path":i.logoSrc,"image-name":i.name,blur:i.blurColor},null,8,["size","image-path","image-name","blur"])):(g(),x("div",G4)),P(c,{variant:"ghost",size:e.isMobile?"SM":"MD",icon:"","icon-position":"right",class:"comparison-partner-card__picker-btn mt-sm w-full max-w-full",full:"",onClick:i.openPicker},{"icon-right":B(()=>[P(a,{class:"shrink-0 text-ghost-foreground","color-class":"text-ghost-foreground"})]),default:B(()=>[v("span",H4,k(i.name),1)]),_:1},8,["size","onClick"]),v("div",W4,[i.affiliateLink?(g(),S(c,{key:0,tag:"a",variant:"primary",size:e.isMobile?"SM":"MD",class:"w-full",href:i.affiliateLink,target:"_blank",rel:"noopener noreferrer nofollow",full:""},{default:B(()=>[Z(k(e.$t("casinoReviewPage.visitCasino")),1)]),_:1},8,["size","href"])):A("",!0),i.reviewLink?(g(),S(c,{key:1,tag:"a",variant:"mute",size:"SM",class:"w-full",href:i.reviewLink,full:""},{default:B(()=>[Z(k(e.$t("advancedToplist.readFullReview")),1)]),_:1},8,["href"])):A("",!0)])],64)):(g(),x(H,{key:1},[t[3]||(t[3]=v("div",{class:"flex h-16 w-16 items-center justify-center rounded-pill color-stroke-elevation text-2xl text-foreground-3 pointer-events-none","aria-hidden":"true"}," + ",-1)),v("p",U4,k(e.$t("comparison.addOption")),1)],64))],42,V4),P(l,{"show-modal":r.pickerOpen,partners:n.replaceOptions,"title-text":i.pickerTitle,"selection-mode":"emit","append-to-body":!0,onClose:i.closePicker,onSelect:i.onPartnerPicked},null,8,["show-modal","partners","title-text","onClose","onSelect"])],2)}const Y4=O(j4,[["render",q4]]),Z4={name:"ComparisonTableCell",components:{Badge:Ji,Button:me,Link:Vt,Rating:St,VImage:W},props:{cell:{type:Object,required:!0}},computed:{bestLabel(){return this.$t("comparison.best")},unavailableLabel(){return this.$t("comparison.notAvailable")},unavailableClass(){return[...this.textClass,"italic"]},textClass(){const e=["text-2xs","leading-120","md:text-sm","md:leading-150"];return this.cell.textBold&&e.push("font-bold"),this.cell.isUnavailable&&e.push("italic"),this.cell.textHighlight?e.push("text-foreground-success"):e.push("text-foreground-1"),e}},methods:{formatGameTypeLabel(e){return Od(e,this.$t("gameTypes"))},getAttributes(e){return e.attributes&&Object.keys(e.attributes).length?e.attributes:null},formatSize(e){return e?typeof e=="number"?`${e}px`:e:""},resolveAlignment(e){switch(e){case"center":return"items-center justify-center";case"end":return"items-end justify-end";default:return"items-start justify-start"}},paymentBadgeSrc(e){return`/images/logos/badges/payment/light/${String(e||"").toLowerCase()}.svg`}}},K4={class:"comparison-table-cell__content relative flex w-full items-center"},X4={class:"w-full"},J4={key:0,class:"flex max-w-[160px] flex-row flex-wrap gap-xs"}
4,Q4={key:0,class:"self-center text-2xs font-bold leading-120 text-foreground-2 md:text-xs"},eC={key:0,class:"flex max-w-[160px] flex-row flex-wrap gap-2xs lg:gap-xs"},tC={key:0,class:"self-center text-2xs font-bold leading-120 text-foreground-2 md:text-xs"},nC={key:0,class:"flex max-w-[160px] flex-row flex-wrap gap-2xs lg:gap-xs"},sC={key:0,class:"self-center text-2xs font-bold leading-120 text-foreground-2 md:text-xs"};function iC(e,t,n,s,r,i){const o=w("VImage"),a=w("Button"),c=w("Link"),l=w("Rating"),d=w("Badge");return g(),x("div",K4,[v("div",X4,[n.cell.items&&n.cell.items.length?(g(),x("div",{key:0,class:z(["flex gap-2",[n.cell.layout==="column"?"flex-col":"flex-row",i.resolveAlignment(n.cell.align),i.textClass]])},[(g(!0),x(H,null,Y(n.cell.items,(u,h)=>(g(),x("div",{key:h},[u&&u.type==="image"?(g(),S(o,{key:0,src:u.src,alt:u.alt,width:i.formatSize(u.width),height:i.formatSize(u.height),aspect:"none"},null,8,["src","alt","width","height"])):u&&u.type==="button"?(g(),S(a,Rt({key:1,ref_for:!0},u.props),{default:B(()=>[Z(k(u.text),1)]),_:2},1040)):u&&u.type==="link"?(g(),S(c,Rt({key:2,ref_for:!0},u.props),{default:B(()=>[Z(k(u.text),1)]),_:2},1040)):u&&u.text?(g(),x("span",{key:3,class:z(i.textClass)},k(u.text),3)):A("",!0)]))),128))],2)):n.cell.image?(g(),S(o,{key:1,src:n.cell.image.src,alt:n.cell.image.alt,width:i.formatSize(n.cell.image.width),height:i.formatSize(n.cell.image.height),aspect:"none"},null,8,["src","alt","width","height"])):n.cell.button?(g(),S(a,ld(Rt({key:2},n.cell.button)),{default:B(()=>[Z(k(n.cell.button.text),1)]),_:1},16)):n.cell.src&&n.cell.text?(g(),S(c,{key:3,href:n.cell.src},{default:B(()=>[Z(k(n.cell.text),1)]),_:1},8,["href"])):n.cell.components?(g(!0),x(H,{key:4},Y(n.cell.components,(u,h)=>(g(),S(Pn(u.componentName),Rt({key:h,content:u.content},{ref_for:!0},i.getAttributes(u)),null,16,["content"]))),128)):n.cell.payments?(g(),x(H,{key:5},[n.cell.payments.length?(g(),x("div",J4,[(g(!0),x(H,null,Y(n.cell.payments.slice(0,6),(u,h)=>(g(),x("div",{key:h,class:"h-[19px] w-[32px] overflow-hidden rounded-ui-xs md:h-[20px] md:w-[33px] lg:h-[23px] lg:w-[39px]"},[P(o,{class:"h-full w-full object-cover",src:i.paymentBadgeSrc(u),alt:u,lazy:!1},null,8,["src","alt"])]))),128)),n.cell.payments.length>6?(g(),x("span",Q4," +"+k(n.cell.payments.length-6),1)):A("",!0)])):(g(),x("span",{key:1,class:z(i.unavailableClass)},k(i.unavailableLabel),3))],64)):n.cell.providers?(g(),x(H,{key:6},[n.cell.providers.length?(g(),x("div",eC,[(g(!0),x(H,null,Y(n.cell.providers.slice(0,6),(u,h)=>(g(),x("div",{key:h,class:"h-[23px] w-[23px] overflow-hidden rounded-full lg:h-[30px] lg:w-[30px]"},[P(o,{class:"h-full w-full object-cover",src:`/images/logos/badges/game-providers/mini-logos/dark/${u.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}.svg`,alt:u,lazy:!1},null,8,["src","alt"])]))),128)),n.cell.providers.length>6?(g(),x("span",tC," +"+k(n.cell.providers.length-6),1)):A("",!0)])):(g(),x("span",{key:1,class:z(i.unavailableClass)},k(i.unavailableLabel),3))],64)):n.cell.gameTypes?(g(),x(H,{key:7},[n.cell.gameTypes.length?(g(),x("div",nC,[(g(!0),x(H,null,Y(n.cell.gameTypes.slice(0,3),(u,h)=>(g(),x("span",{key:h,class:z(i.textClass)},k(i.formatGameTypeLabel(u)),3))),128)),n.cell.gameTypes.length>3?(g(),x("span",sC," +"+k(n.cell.gameTypes.length-3),1)):A("",!0)])):(g(),x("span",{key:1,class:z(i.unavailableClass)},k(i.unavailableLabel),3))],64)):n.cell.rating!=null?(g(),S(l,{key:8,class:"comparison-table-cell__rating flex-wrap",variant:"condensed",scale:n.cell.ratingScale||5,"output-scale":n.cell.ratingOutputScale||5,size:"sm",text:!0,rating:n.cell.rating},null,8,["scale","output-scale","rating"])):(g(),x("div",{key:9,class:z([i.textClass,"max-w-[244px] w-full",n.cell.showBestBadge&&n.cell.isBest?"comparison-table-cell__value--best":"text-left"])},[n.cell.showBestBadge&&n.cell.isBest?(g(),S(d,{key:0,color:"success",theme:"reverted",corner:"bottom",size:"xs",class:"comparison-table-cell__best-badge comparison-table-cell__best-badge--mobile uppercase"},{default:B(()=>[Z(k(i.bestLabel),1)]),_:1})):A("",!0),Z(" "+k(n.cell.text),1)],2))])])}const rC=O(Z4,[["render",iC],["__scopeId","data-v-84e2c89f"]]),oC={name:"ComparisonTable",components:{Badge:Ji,ComparisonTableCell:rC},props:{content:{type:Object,default:()=>({groups:[]})},dataColumnCount:{type:Number,default:3,validator:e=>e===2||e===3}},computed:{groups(){return this.content&&this.content.groups?this.content.groups:[]},totalColumnCount(){return 1+this.dataColumnCount}},methods:{rowLabel(e){return e&&e[0]?e[0].text:""},cellClass(e){return e===0?"comparison-table-cell--label xl:min-h-[53px] p-md":["comparison-table-cell--data","relative","flex","xl:min-h-[53px]","flex-col","gap-xs","p-md","pt-0","lg:pt-md","pl-0",`comparison-table-cell--grid-col-${e}`]},emptyCellGridClass(e,t){return`comparison-table-cell--grid-col-${(e?Math.max(0,e.length-1):0)+t}`},emptyColumnsForRow(e){const t=this.totalColumnCount-(e?e.length:0);return Math.max(0,t)}}},aC={class:"comparison-table__row-label text-2xs font-bold leading-120 text-foreground-1 md:text-sm md:leading-150"},lC={key:0,class:"comparison-table-cell__desktop-label text-2xs font-bold leading-120 text-foreground-1 md:text-sm md:leading-150"};function cC(e,t,n,s,r,i){const o=w("Badge"),a=w("ComparisonTableCell");return g(),x("div",{class:z(["comparison-table w-full overflow-visible",`comparison-table--cols-${n.dataColumnCount}`])}
4,[(g(!0),x(H,null,Y(i.groups,(c,l)=>(g(),x("div",{key:"group-"+l,class:z(["comparison-table__group",{"comparison-table__group--last":l===i.groups.length-1}])},[(g(!0),x(H,null,Y(c.rows,(d,u)=>(g(),x("div",{key:"row-"+l+"-"+u,class:z(["comparison-table__row comparison-table__row--grid overflow-visible border-b-sm color-stroke-elevation last:border-b-0",{"border-t-sm":u===0}])},[v("div",aC,k(i.rowLabel(d)),1),(g(!0),x(H,null,Y(d,(h,f)=>(g(),x("div",{key:"cell-"+l+"-"+u+"-"+f,class:z(["comparison-table-cell overflow-visible",i.cellClass(f)])},[f===0?(g(),x("span",lC,k(h.text),1)):(g(),x(H,{key:1},[h.showBestBadge&&h.isBest?(g(),S(o,{key:0,color:"success",theme:"reverted",corner:"bottom",size:"xs",class:"comparison-table-cell__best-badge comparison-table-cell__best-badge--desktop uppercase"},{default:B(()=>[Z(k(e.$t("comparison.best")),1)]),_:1})):A("",!0),P(a,{cell:h},null,8,["cell"])],64))],2))),128)),(g(!0),x(H,null,Y(i.emptyColumnsForRow(d),h=>(g(),x("div",{key:"empty-"+l+"-"+u+"-"+h,class:z(["comparison-table-cell comparison-table-cell--data comparison-table-cell--empty xl:min-h-[53px] p-md pt-0 xl:pt-md",i.emptyCellGridClass(d,h)]),"aria-hidden":"true"},null,2))),128))],2))),128))],2))),128))],2)}const dC=O(oC,[["render",cC],["__scopeId","data-v-26cae932"]]),sd=["ratingExpert","bonusBlock","payoutTime","winRate","minimumDeposit","bankingOptions","numberOfGames","gamesCategories","providers","casinoLicense","support"],uC=["ratingExpert","winRate","payoutTime","bonusBlock","minimumDeposit","bankingOptions","numberOfGames","gamesCategories","providers","casinoLicense","support"],fl={default:sd,payments:uC};function hC(e){if(Array.isArray(e)&&e.length)return e;const t=String(e||"").trim();return Object.prototype.hasOwnProperty.call(fl,t)?fl[t]:sd}function pC(e){return e==null||e===""||e==="â"}function Er(e){return{text:e||"",isLabel:!0}}function id(e,{isBest:t=!1,showBestBadge:n=!1,textHighlight:s=!1,textBold:r=!1}={},i="Not available"){return pC(e)?{text:i,isUnavailable:!0,isBest:t,showBestBadge:n}:{text:String(e),textBold:r===!0,isBest:t,showBestBadge:n,textHighlight:s===!0}}function fC(e){const t=e.map((n,s)=>({index:s,value:Md(n)})).filter(n=>n.value!==null);return t.length<2?new Set:new Set(t.filter(n=>!t.some(s=>s.index!==n.index&&Ld(s.value,n.value)>0)).map(n=>n.index))}function gC(e,t,n,s){const r=fC(t);return[Er(e),...t.map((i,o)=>n(i,{isBest:r.has(o),showBestBadge:!0},s))]}function Pi(e,t,n){return{...id(e,t,n),textBold:t.showBestBadge&&t.isBest,textHighlight:t.showBestBadge&&t.isBest}}function mC(e,t,n){const s=e.map((i,o)=>({index:o,value:t(i)})).filter(i=>i.value!==null&&Number.isFinite(i.value));if(s.length<2)return new Set;const r=n?Math.max(...s.map(i=>i.value)):Math.min(...s.map(i=>i.value));return new Set(s.filter(i=>i.value===r).map(i=>i.index))}function Ee(e,t,n){return[Er(e),...t.map(s=>n(s,{}))]}function gl(e,t,n,s){const r=mC(t,s.getValue,s.higherIsBetter);return[Er(e),...t.map((i,o)=>n(i,{isBest:r.has(o),showBestBadge:s.showBestBadge}))]}function bC(e,t,n){const s=qd(e,t);if(s===null)return{text:n,isUnavailable:!0};const r=s>5;return{rating:s,ratingScale:r?10:5,ratingOutputScale:5}}function yC(e,{labels:t={},hideBonuses:n=!1,ontarioRegulated:s=!1,albertaRegulated:r=!1,metricsOrder:i=""}={}){const o=(e||[]).filter(Boolean);if(o.length<2)return{groups:[]};const a={ontarioRegulated:s},c=t.notAvailable||"Not available",l=(h,f={})=>id(h,f,c),d={ratingExpert:()=>[Ee(t.ratingExpert,o,h=>bC(h,a,c))],bonusBlock:()=>n?t.activePlayers?[Ee(t.activePlayers,o,(h,f)=>l(Ud(h),f))]:[]:[gC(t.welcomeBonus,o,(h,f,p)=>Pi(Gd(h),f,p),c),Ee(t.bonusWagering,o,(h,f)=>l(Hd(h),f)),Ee(t.bonusValidFor,o,(h,f)=>l(Wd(h),f))],payoutTime:()=>[gl(t.payoutTime,o,(h,f)=>Pi(Vd(h),f,c),{getValue:jd,higherIsBetter:!1,showBestBadge:!0})],winRate:()=>[gl(t.winRate,o,(h,f)=>Pi(zd(h),f,c),{getValue:Nd,higherIsBetter:!0,showBestBadge:!0})],minimumDeposit:()=>[Ee(t.minimumDeposit,o,(h,f)=>l($d(h),f))],bankingOptions:()=>[Ee(t.bankingOptions,o,h=>({payments:Ed(h)}))],numberOfGames:()=>[Ee(t.numberOfGames,o,(h,f)=>l(Bd(h),f))],gamesCategories:()=>[Ee(t.gamesCategories,o,h=>({gameTypes:Fd(h)}))],providers:()=>[Ee(t.providers,o,h=>({providers:Dd(h)}))],casinoLicense:()=>[Ee(t.casinoLicense,o,(h,f)=>
4l(Rd(h),f))],support:()=>[Ee(t.support,o,(h,f)=>l(Id(h),f))]},u=[];return hC(i).forEach(h=>{const f=d[h];f&&u.push(...f())}),{groups:[{title:"",rows:u}]}}const vC={name:"ComparisonToplist",components:{ContentBlock:Zd,ComparisonPairList:z4,ComparisonPartnerCard:Y4,ComparisonTable:dC},props:{contentRegion:{type:String,default:""},partners:{type:Array,required:!0},anchorPartnerSlug:{type:String,default:""},defaultOpponentSlug:{type:String,default:""},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},metricsOrder:{type:String,default:""},variant:{type:String,default:"toplist-page"},title:{type:String,default:""},description:{type:String,default:""},typeOfTitle:{type:String,default:""}},data(){return{selectedPairIndex:null,columnPartners:[null,null,null],useColumnSync:!1,columnSyncMediaQuery:null}},computed:{anchorPartnerSlugNormalized(){return String(this.anchorPartnerSlug||"").trim().toLowerCase()},defaultOpponentSlugNormalized(){return String(this.defaultOpponentSlug||"").trim().toLowerCase()},comparisonAnchorPartner(){const e=this.partners;if(!e.length)return null;const t=this.anchorPartnerSlugNormalized;if(t){const n=e.find(s=>String(be(s)||"").trim().toLowerCase()===t);if(n)return n}return e[0]},comparisonPairs(){const e=this.partners,t=this.comparisonAnchorPartner;if(!t||e.length<2)return[];const n=15,s=[],r=new Set,i=e.map(l=>String(be(l)||"")),o=Math.max(0,i.indexOf(String(be(t)||""))),a=[];for(let l=0;l<e.length;l+=1)a.push((o+l)%e.length);const c=(l,d)=>{if(l===d)return;const u=e[l],h=e[d],f=String(be(u)||""),p=String(be(h)||"");if(!f||!p)return;const y=f<p?`${f}::${p}`:`${p}::${f}`;r.has(y)||(r.add(y),s.push({id:y,a:u,b:h,label:this.$t("comparison.pairLabel",{a:Dt(u),b:Dt(h)})}))};for(let l=1;l<e.length&&s.length<n;l+=1)for(let d=0;d<a.length&&s.length<n;d+=1){const u=a[d],h=(u+l)%e.length;u<h&&c(u,h)}return this.promoteDefaultOpponentPair(e,i,s),s},hasActiveComparison(){return this.selectedPairIndex!==null&&this.columnPartners[0]&&this.columnPartners[1]},canShowThirdAddSlot(){return this.hasActiveComparison&&!this.columnPartners[2]&&this.optionsForSlot(2).length>0},activeColumnPartners(){return this.columnPartners.filter(Boolean)},comparisonColumnCount(){return this.columnPartners[2]||this.canShowThirdAddSlot?3:2},comparisonColumnVars(){return{"--comparison-column-count":String(this.comparisonColumnCount)}},cardsGridStyle(){const e="var(--comparison-col-width)",t="var(--comparison-vs-gap)",n=[];for(let s=0;s<this.comparisonColumnCount;s+=1)n.push(e),s<this.comparisonColumnCount-1&&n.push(t);return{gridTemplateColumns:n.join(" ")}},comparisonTableLabels(){return{ratingExpert:this.$t("comparison.ratingExpert"),welcomeBonus:this.$t("comparison.welcomeBonus"),activePlayers:this.$t("casino.activePlayers"),bonusWagering:this.$t("comparison.bonusWagering"),bonusValidFor:this.$t("comparison.bonusValidFor"),payoutTime:this.$t("comparison.payoutTime"),winRate:this.$t("comparison.winRate"),minimumDeposit:this.$t("comparison.minimumDeposit"),bankingOptions:this.$t("comparison.bankingOptions"),numberOfGames:this.$t("comparison.numberOfGames"),gamesCategories:this.$t("comparison.gamesCategories"),providers:this.$t("comparison.providers"),casinoLicense:this.$t("comparison.casinoLicense"),support:this.$t("comparison.support"),notAvailable:this.$t("comparison.notAvailable")}},isBonusRegulated(){return this.ontarioRegulated||this.albertaRegulated},resolvedMetricsOrder(){return this.isBonusRegulated?"":this.metricsOrder},comparisonTableContent(){return yC(this.activeColumnPartners,{labels:this.comparisonTableLabels,hideBonuses:this.isBonusRegulated,ontarioRegulated:this.ontarioRegulated,albertaRegulated:this.albertaRegulated,metricsOrder:this.resolvedMetricsOrder})},showComparisonTable(){return this.hasActiveComparison&&this.comparisonTableContent.groups.length>0},tableBlockClass(){return["comparison__table-block grid grid-cols-1 gap-sm overflow-visible md:grid-cols-4",this.useColumnSync?"max-sm:w-max max-sm:min-w-full":""].join(" ")},tableWrapClass(){const e=["comparison__table-wrap w-full max-w-full overflow-y-visible","md:col-span-4","xl:flex xl:justify-center xl:overflow-x-visible","max-xl:[-webkit-overflow-scrolling:touch]"].join(" ");return this.useColumnSync?`${e} max-sm:overflow-visible`:`${e} max-xl:block max-xl:overflow-x-auto max-xl:overflow-y-visible`}},watch:{anchorPartnerSlug(){this.resetComparisonState()},defaultOpponentSlug(){this.resetComparisonState()},partners(){this.resetComparisonState()},comparisonPairs:{immediate:!0,handler(){this.syncDefaultPairSelection()}}},mounted(){this.bindColumnSyncMediaQuery()},beforeUnmount(){this.unbindColumnSyncMediaQuery()},methods:{partnerSlug:be,promoteDefaultOpponentPair(e,t,n){const s=this.defaultOpponentSlugNormalized;if(!s||e.length<2)return;const r=t.findIndex(h=>String(h||"").trim().toLowerCase()===s);if(r<=0)return;const i=e[0],o=e[r],a=String(be(i)||""),c=String(be(o)||"");if(!a||!c)return;const l=a<c?`${a}::${c}`:`${c}::${a}`,d=n.findIndex(h=>h.id===l);let u;d>=0?u=n.splice(d,1)[0]:u={id:l,a:i,b:o,label:this.$t("comparison.pairLabel",{a:Dt(i),b:Dt(o)})},n.unshift(u)},optionsForSlot(e){const t=new Set;
4return this.columnPartners.forEach((n,s)=>{s!==e&&n&&t.add(be(n))}),this.partners.filter(n=>!t.has(be(n)))},resetComparisonState(){this.selectedPairIndex=null,this.columnPartners=[null,null,null]},syncDefaultPairSelection(){const e=this.comparisonPairs;if(!e.length){this.resetComparisonState();return}(this.selectedPairIndex===null||this.selectedPairIndex>=e.length)&&this.onPairSelect("0")},onPairListSelect(e){this.onPairSelect(String(e))},onPairSelect(e){if(e===""||e===null){this.resetComparisonState();return}const t=Number.parseInt(e,10),n=this.comparisonPairs[t];n&&(this.selectedPairIndex=t,this.columnPartners[0]=n.a,this.columnPartners[1]=n.b,this.columnPartners[2]=null)},onReplaceSlot(e,t){if(!t)return;const n=be(t),s=new Set;this.columnPartners.forEach((r,i)=>{i!==e&&r&&s.add(be(r))}),!s.has(n)&&(this.columnPartners[e]=t)},bindColumnSyncMediaQuery(){re(e=>{e.matchMedia&&(this.columnSyncMediaQuery=e.matchMedia("(max-width: 639px)"),this.useColumnSync=this.columnSyncMediaQuery.matches,this.columnSyncMediaQuery.addEventListener("change",this.onColumnSyncMediaQueryChange))})},unbindColumnSyncMediaQuery(){this.columnSyncMediaQuery&&(this.columnSyncMediaQuery.removeEventListener("change",this.onColumnSyncMediaQueryChange),this.columnSyncMediaQuery=null)},onColumnSyncMediaQueryChange(e){this.useColumnSync=e.matches}}},_C=["data-variant"],xC={ref:"syncScroll",class:"comparison__sync-scroll"},wC={class:"comparison__cards-grid gap-sm"},kC={class:"comparison__cards-wrap"};function CC(e,t,n,s,r,i){const o=w("ContentBlock"),a=w("ComparisonPairList"),c=w("ComparisonPartnerCard"),l=w("ComparisonTable");return g(),x("section",{class:z(["comparison flex flex-col gap-md md:gap-lg xl:gap-xl p-md md:p-lg xl:p-xl rounded-md xl:rounded-xl border-sm color-stroke-elevation background-elevation-1",{"comparison--toplist-page":n.variant==="toplist-page"}]),"data-variant":n.variant,"data-component":"comparison"},[n.title||n.description?(g(),S(o,{key:0,title:n.title,description:n.description,variant:"MD","type-of-title":n.typeOfTitle||"h2"},null,8,["title","description","type-of-title"])):A("",!0),P(a,{pairs:i.comparisonPairs,"selected-index":r.selectedPairIndex==null?-1:r.selectedPairIndex,"aria-list-label":e.$t("comparison.pairListAriaLabel"),"placeholder-text":e.$t("comparison.placeholderSet"),onSelect:i.onPairListSelect},null,8,["pairs","selected-index","aria-list-label","placeholder-text","onSelect"]),i.hasActiveComparison?(g(),x("div",{key:1,class:z(["comparison__active flex flex-col gap-md overflow-visible",{"comparison--column-sync":r.useColumnSync}]),style:Le(i.comparisonColumnVars)},[v("div",xC,[v("div",wC,[t[3]||(t[3]=v("div",{class:"comparison__cards-spacer","aria-hidden":"true"},null,-1)),v("div",kC,[v("div",{class:z(["comparison__cards-track",{"comparison__cards-track--synced":r.useColumnSync}]),style:Le(r.useColumnSync?i.cardsGridStyle:null)},[v("div",{class:"comparison__card-slot",style:Le(r.useColumnSync?{gridColumn:"1"}:null)},[P(c,{partner:r.columnPartners[0],"replace-options":i.optionsForSlot(0),"ontario-regulated":n.ontarioRegulated,"alberta-regulated":n.albertaRegulated,"content-region":n.contentRegion,onReplace:t[0]||(t[0]=d=>i.onReplaceSlot(0,d))},null,8,["partner","replace-options","ontario-regulated","alberta-regulated","content-region"])],4),v("p",{class:"comparison__cards-vs title-2xs font-bold leading-150 text-foreground-1 shrink-0 mt-2xl",style:Le(r.useColumnSync?{gridColumn:"2"}:null),"aria-hidden":"true"}," vs ",4),v("div",{class:"comparison__card-slot",style:Le(r.useColumnSync?{gridColumn:"3"}:null)},[P(c,{partner:r.columnPartners[1],"replace-options":i.optionsForSlot(1),"ontario-regulated":n.ontarioRegulated,"alberta-regulated":n.albertaRegulated,"content-region":n.contentRegion,onReplace:t[1]||(t[1]=d=>i.onReplaceSlot(1,d))},null,8,["partner","replace-options","ontario-regulated","alberta-regulated","content-region"])],4),i.comparisonColumnCount===3?(g(),x(H,{key:0},[v("p",{class:"comparison__cards-vs title-2xs font-bold leading-150 text-foreground-1 shrink-0 mt-2xl",style:Le(r.useColumnSync?{gridColumn:"4"}:null),"aria-hidden":"true"}," vs ",4),v("div",{class:z(["comparison__card-slot",{"comparison__card-slot--add":!r.columnPartners[2]}]),style:Le(r.useColumnSync?{gridColumn:"5"}:null)},[P(c,{partner:r.columnPartners[2],"is-empty":!r.columnPartners[2],"replace-options":i.optionsForSlot(2),"ontario-regulated":n.ontarioRegulated,"alberta-regulated":n.albertaRegulated,"content-region":n.contentRegion,onReplace:t[2]||(t[2]=d=>i.onReplaceSlot(2,d))},null,8,["partner","is-empty","replace-options","ontario-regulated","alberta-regulated","content-region"])],6)],64)):A("",!0)],6)])]),i.showComparisonTable?(g(),x("div",{key:0,class:z(i.tableBlockClass)},[t[4]||(t[4]=v("div",{class:"hidden md:block","aria-hidden":"true"},null,-1)),v("div",{class:z(i.tableWrapClass)},[P(l,{content:i.comparisonTableContent,"data-column-count":i.comparisonColumnCount},null,8,["content","data-column-count"])],2)],2)):A("",!0)],512)],6
4)):A("",!0)],10,_C)}const SC=O(vC,[["render",CC],["__scopeId","data-v-f946c5a2"]]),TC={name:"Comparison",components:{ComparisonToplist:SC},props:{contentRegion:{type:String,default:""},defaultStandardToplist:{type:String,default:""},partnersToDisplay:{type:String,default:"all"},useLocale:{type:String,default:""},pageType:{type:String,default:""},verticalFilter:{type:String,default:""},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},isUSA:{type:Boolean,default:!1},ukRegulated:{type:Boolean,default:!1},metricsOrder:{type:String,default:""},variant:{type:String,default:"toplist-page"},anchorPartnerSlug:{type:String,default:""},defaultOpponentSlug:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""}},data(){return{isOntarioPage:re(e=>e.location.pathname.includes("/ontario/"),!1),isAlbertaPage:re(e=>e.location.pathname.includes("/alberta/"),!1)}},computed:{...K(se,{defaultToplist:e=>e.toplists.default,toplistFiltered:e=>e.toplistFiltered}),...K(vn,["partnersBySlug"]),isAlberta(){return this.albertaRegulated||this.isAlbertaPage},isOntario(){return(this.ontarioRegulated||this.isOntarioPage)&&!this.isAlberta},resolvedContentRegion(){return Xi({contentRegion:this.contentRegion,isOntario:this.isOntario,isAlberta:this.isAlberta})},isBonusRegulated(){return this.isOntario||this.isAlberta},effectiveIsUSA(){return this.isUSA||ar()},resolvedPageType(){return this.effectiveIsUSA&&(!this.pageType||["homepage","default"].includes(String(this.pageType).trim().toLowerCase()))?"homepage":this.pageType||"default"},resolvedVerticalFilter(){return this.verticalFilter||(this.effectiveIsUSA?"Casino":"")},hasAxios(){return!!this.$axios},mergedToplistPartners(){const e=Array.isArray(this.defaultToplist)?this.defaultToplist:[];let t=e;if(!(this.isBonusRegulated&&e.length>=2)){const n=this.toplistFiltered(pn.STANDARD_TOPLIST)||[];n.length>=2&&(t=n)}return this.isAlberta?t.map(n=>{const s=n?.phoenix?.slug||n?.slug,r=s?this.partnersBySlug[s]:null,i=r?.phoenix?.attributes?.faviconLight;return!r||r._partnerRegionKey!=="AB"||!i?n:{...n,phoenix:{...n.phoenix||{},attributes:{...n.phoenix?.attributes||{},faviconLight:i}}}}):t},selectionBarPartners(){return Yd(this.mergedToplistPartners)},itemsToShow(){const e=this.selectionBarPartners;if(this.partnersToDisplay==="all")return e;const t=Number(this.partnersToDisplay);if(!Number.isFinite(t))return e;const n=Math.max(0,Math.floor(t));return e.slice(0,n)},resolvedAnchorPartnerSlug(){const e=String(this.anchorPartnerSlug||"").trim();if(e)return e;const t=this.selectionBarPartners[0];return t?be(t):""},finalTitle(){return this.title||this.$t("comparison.title")},finalDescription(){return this.description||this.$t("comparison.description")}},mounted(){ae&&this.$nextTick(()=>{this.initializePartners()})},serverPrefetch(){return this.hasAxios?this.initializePartners().catch(()=>{}):Promise.resolve()},methods:{...ce(se,["getToplistByType"]),async initializePartners(){this.hasAxios&&(await this.loadToplist(),this.isAlberta&&await this.hydrateAlbertaPartners())},async loadToplist(){if(!(this.selectionBarPartners.length>=2&&!this.isBonusRegulated&&!this.effectiveIsUSA))try{await this.getToplistByType({toplistType:"default",isOntario:this.isOntario,isAlberta:this.isAlberta,contentRegion:this.resolvedContentRegion,isUSA:this.effectiveIsUSA,defaultToplist:this.defaultStandardToplist,pageLanguage:this.useLocale,pageType:this.resolvedPageType,verticalFilter:this.resolvedVerticalFilter,axios:this.$axios})}catch(e){console.error("Comparison: getToplistByType failed",e)}},async hydrateAlbertaPartners(){try{const e=this.mergedToplistPartners.map(t=>
4t?.phoenix?.slug||t?.slug).filter(Boolean);e.length&&await vn().fetchPartners({list:e,isOntario:!1,isAlberta:!0,force:!0,axios:this.$axios})}catch(e){console.error("Comparison: hydrateAlbertaPartners failed",e)}}}};function PC(e,t,n,s,r,i){const o=w("ComparisonToplist");return i.itemsToShow.length>=2?(g(),S(o,{key:0,partners:i.itemsToShow,"anchor-partner-slug":i.resolvedAnchorPartnerSlug,"default-opponent-slug":n.defaultOpponentSlug,"ontario-regulated":i.isOntario,"alberta-regulated":i.isAlberta,"content-region":i.resolvedContentRegion,"metrics-order":n.metricsOrder,variant:n.variant,title:i.finalTitle,description:i.finalDescription},null,8,["partners","anchor-partner-slug","default-opponent-slug","ontario-regulated","alberta-regulated","content-region","metrics-order","variant","title","description"])):A("",!0)}const AC=O(TC,[["render",PC]]),OC={name:"CopyBlock",props:{components:{type:Array,default:()=>[]}},computed:{normalizedCopy(){return(Array.isArray(this.components)?this.components:[]).map((t,n)=>{const s=t&&typeof t=="object"&&t.props&&typeof t.props=="object"?{...t,...t.props}:t,r=String(s?.component||s?.tag||s?.is||"");if(!r)return null;const i=s?.key||`${r}-${n}`,o=s?.html||"",a=s?.id||"",c=s?.classes||s?.class||"";return{key:i,is:r,html:o,id:a,classes:c}}).filter(Boolean)}}},MC={class:"flex flex-col gap-fluid-sm"},LC=["id","innerHTML"],IC=["id","innerHTML"],RC=["id","innerHTML"],DC=["id","innerHTML"],FC=["id","innerHTML"],BC=["id","innerHTML"],EC=["id","innerHTML"];function $C(e,t,n,s,r,i){return g(),x("div",MC,[(g(!0),x(H,null,Y(i.normalizedCopy,(o,a)=>(g(),x(H,{key:o.key||a},[o.is==="h1"?(g(),x("h1",{key:0,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,LC)):o.is==="h2"?(g(),x("h2",{key:1,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,IC)):o.is==="h3"?(g(),x("h3",{key:2,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,RC)):o.is==="h4"?(g(),x("h4",{key:3,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,DC)):o.is==="h5"?(g(),x("h5",{key:4,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,FC)):o.is==="h6"?(g(),x("h6",{key:5,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,BC)):o.is==="p"?(g(),x("p",{key:6,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,10,EC)):(g(),S(Pn(o.is),{key:7,id:o.id||void 0,class:z(o.classes||void 0),innerHTML:o.html},null,8,["id","class","innerHTML"]))],64))),128))])}const NC=O(OC,[["render",$C]]),zC="Our experts' favourite online casinos",jC="",VC=["bex-gawne","liam-blackley","amber-langley"],ml={panelTitle:zC,panelBody:jC,authorSelection:VC};function GC(e){if(typeof Buffer<"u")return Buffer.from(e,"base64").toString("utf8");if(typeof atob<"u"){const t=atob(e),n=Uint8Array.from(t,s=>s.charCodeAt(0));return new TextDecoder("utf-8").decode(n)}return e}function Yi(e){if(!e)return{};try{let t=String(e);try{t=GC(t)}catch{}const n=JSON.parse(t);return n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{return{}}}const Zi=Object.freeze({CommercialToplist:$f,AdvancedToplist:P4,Comparison:AC,CopyBlock:NC}),rd=Object.freeze({BonusToplist:()=>Yt(()=>import("./chunks/BonusToplist-BI7fnD9s.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),ExpertPanelCasinos:()=>Yt(()=>import("./chunks/ExpertPanelCasinos-DA41bod4.js"),__vite__mapDeps([28,1,2,3,4,5,6,16,10,19,8,13,14,20,21,18,22,23,24,25,15,9,11,17,12,26,29]),import.meta.url),HowWeRate:()=>Yt(()=>import("./chunks/HowWeRate-iaDTX1FS.js"),__vite__mapDeps([30,1,2,3,4,5,6,16,10,18,13,19,8,14,20,21,22,23,24,25,15,9,11,17,12,26,31,32,33]),import.meta.url),Blacklist:()=>Yt(()=>import("./chunks/Blacklist-BdJc-Feh.js"),__vite__mapDeps([34,1,8,22,3,4,13,10,23,24,15,16,6,14,9,11,17,35,2,5,20,36,37,38,18,19,21,25,12,26]),import.meta.url),FooterAccent:()=>Yt(()=>import("./chunks/FooterAccent-CX8bEJdp.js"),__vite__mapDeps([39,23,10,1,16,6,19,8,13,14,20,21,40,41,42,43]),import.meta.url)}),Ai=Object.create(null);function Ki(e){return!!(Zi[e]||rd[e])}const HC=Object.freeze({"commercial-toplist-homepage":"CommercialToplist",commercialToplistHomepage:"CommercialToplist",commercialToplist:"CommercialToplist","advanced-toplist":"AdvancedToplist",advancedToplist:"AdvancedToplist","bonus-toplist":"BonusToplist",bonusToplist:"BonusToplist","expert-panel-casinos":"ExpertPanelCasinos",expertPanelCasinos:"ExpertPanelCasinos","how-we-rate":"HowWeRate",howWeRate:"HowWeRate",blacklist:"Blacklist","footer-accent":"FooterAccent",footerAccent:"FooterAccent","copy-block":"CopyBlock",copyBlock:"CopyBlock",Comparison:"Comparison"});function od(e){const t=String(e||"").trim();if(!t)return"";if(Ki(t))return t;const n=HC[t];return n&&Ki(n)?n:t}function WC(e,t){if(t!=="AdvancedToplist")return e;const n=String(e).trim()||"container-bic";return/\bsticky-wrapper\b/.test(n)?n:`sticky-wrapper ${n}`.trim()}function UC({props:e,expertPanelData:t,authors:n,footerData:s,themeColor:r,howWeRateRaw:i}){const o=i.items||[],a=i.title||"",c=i.description||"",l=i.chart||{},d=e.useAccordion!==void 0?e.useAccordion:!1;return[{key:"commercial",component:"CommercialToplist",sectionClass:"section section--gap",wrapperClass:"container-bic",props:{defaultStandardToplist:e.defaultStandardToplist,partnersToDisplay:e.partnersToDisplay,ctaData:e.ctaData,useLocale:e.pageLanguage,pageType:e.pageType,ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,isUSA:e.isUSA,ukRegulated:e.ukRegulated,showPlayerFavoriteBadge:!0}},{key:"advanced",component:"AdvancedToplist",sectionClass:"section section--gap",wrapperClass:"sticky-wrapper container-bic",props:{selectToplist:e.selectToplist,ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,isUSA:e.isUSA,pageType:e.pageType}},{key:"bonus",component:"BonusToplist",sectionClass:"section section--gap",wrapperClass:"container-bic",props:{ukRegulated:e.ukRegulated,ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,isUSA:e.isUSA,showCta:e.showCta,selectToplist:e.defaultBonusToplist,partnersToShow:e.partnersToShow,ctaData:e.ctaData,bonusVariant:e.bonusVariant,bonusTitle:e.bonusTitle}},{key:"expert-panel",component:"ExpertPanelCasinos",sectionClass:"section section--gap",wrapperClass:"container-bic",props:{expertPanelData:t,authors:n,ontarioRegulated:e.ontarioRegulated}},{key:"how-we-rate",component:"HowWeRate",sectionClass:"section section--gap",wrapperClass:"container-bic",props:{ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,items:o,title:a,description:c,chart:l,useAccordion:d,variant:"casinos"}},{key:"blacklist",component:"Blacklist",sectionClass:"section section--gap",wrapperClass:"container-bic",props:{blacklistTitle:e.blacklistTitle,blacklistDescription:e.blacklistDescription,blackl
4istCtaText:e.blacklistCtaText}},{key:"footer",component:"FooterAccent",sectionClass:"section section--gap",wrapperClass:"container-bic",props:{ontarioRegulated:e.ontarioRegulated,footerData:s,themeColor:r}}]}function qC(e){return e.ctaData&&typeof e.ctaData=="object"?e.ctaData:{link:e.ctaLink||"/reviews/",text:e.ctaText||"View 90+ casino reviews"}}function YC({props:e,expertPanelData:t,authors:n,footerData:s,themeColor:r,howWeRateRaw:i}){let o=null;e.homepageLayout&&(o=Yi(e.homepageLayout));let a=null;Array.isArray(o)?a=o:o&&Array.isArray(o.layout)&&(a=o.layout),(!Array.isArray(a)||a.length===0)&&(a=UC({props:e,expertPanelData:t,authors:n,footerData:s,themeColor:r,howWeRateRaw:i}));const c="section section--gap";return(Array.isArray(a)?a:[]).map((l,d)=>{const u=od(l?.component||l?.name||l);if(!Ki(u))return null;const h=(()=>{const C=l&&typeof l.wrapperClass=="string"&&l.wrapperClass||(l&&l.wrapper&&typeof l.wrapper.class=="string"?l.wrapper.class:"")||"container-bic";return WC(C,u)})(),f=l&&typeof l.sectionClass=="string"&&l.sectionClass||c,p=l&&l.key||`${u}-${d}`,y=(l&&typeof l.props=="object"&&!Array.isArray(l.props)?l.props:{})||{};let b={...{ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,isUSA:e.isUSA,ukRegulated:e.ukRegulated,pageType:e.pageType,pageLanguage:e.pageLanguage,ctaData:e.ctaData},...y};if(u==="CommercialToplist")b={defaultStandardToplist:e.defaultStandardToplist,partnersToDisplay:e.partnersToDisplay,showPlayerFavoriteBadge:!0,...b,ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,contentRegion:e.albertaRegulated?"AB":e.ontarioRegulated?"ON":b.contentRegion||""};else if(u==="AdvancedToplist")b={selectToplist:e.selectToplist,...b};else if(u==="Comparison")b={defaultStandardToplist:e.defaultStandardToplist,partnersToDisplay:e.partnersToDisplay,useLocale:e.pageLanguage,variant:"toplist-page",...b,ontarioRegulated:e.ontarioRegulated,albertaRegulated:e.albertaRegulated,contentRegion:e.albertaRegulated?"AB":e.ontarioRegulated?"ON":b.contentRegion||""};else if(u==="BonusToplist")b={selectToplist:e.defaultBonusToplist,partnersToShow:e.partnersToShow,showCta:e.showCta,bonusVariant:e.bonusVariant,bonusTitle:e.bonusTitle,...b};else if(u==="ExpertPanelCasinos")b={expertPanelData:t,authors:n,...b};else if(u==="HowWeRate"){if(typeof b.data=="string"&&(!b.items||!Array.isArray(b.items))){const C=Yi(b.data);b={...b,items:C.items||[],title:C.title||"",description:C.description||"",chart:C.chart||{}},delete b.data}b.useAccordion===void 0&&(b.useAccordion=e.useAccordion!==void 0?e.useAccordion:!1),b.variant||(b.variant="casinos")}else u==="Blacklist"?b={blacklistTitle:e.blacklistTitle,blacklistDescription:e.blacklistDescription,blacklistCtaText:e.blacklistCtaText,...b}:u==="FooterAccent"&&(b={footerData:s,themeColor:r,...b});const _=l&&typeof l.id=="string"&&l.id?l.id:"";return{key:p,id:_,component:u,sectionClass:f,wrapperClass:h,props:b}}
4).filter(Boolean)}const ZC={name:"Homepage",props:{pageLanguage:{type:String,default:"en"},pageType:{type:String,default:"homepage"},ontarioRegulated:{type:Boolean,default:!1},albertaRegulated:{type:Boolean,default:!1},isUSA:{type:Boolean,default:!1},ukRegulated:{type:Boolean,default:!1},defaultStandardToplist:{type:String,default:"default"},partnersToDisplay:{type:[String,Number],default:"all"},selectToplist:{type:String,default:"default"},defaultBonusToplist:{type:String,default:"bonus"},partnersToShow:{type:[String,Number],default:"all"},bonusVariant:{type:String,default:"grid"},bonusTitle:{type:String,default:""},showCta:{type:Boolean,default:!0},useAccordion:{type:Boolean,default:void 0},howWeRateData:{type:String,default:""},homepageLayout:{type:String,default:""},blacklistTitle:{type:String,default:""},blacklistDescription:{type:String,default:""},blacklistCtaText:{type:String,default:""},ctaLink:{type:String,default:""},ctaText:{type:String,default:""},ctaData:{type:Object,default:void 0},exp:{type:String,default:""},locale:{type:String,default:"en-CA"},device:{type:Object,default:()=>({})},geo:{type:Object,default:()=>({})},experiments:{type:Object,default:()=>({})}},computed:{resolvedProps(){const e=Qd(this.geo,this.albertaRegulated),t=e?!1:eu(this.geo,this.ontarioRegulated),n=tu(this.geo,this.isUSA);return{pageLanguage:this.pageLanguage||this.locale||"en",pageType:this.pageType,ontarioRegulated:t,albertaRegulated:e,isUSA:n,ukRegulated:this.ukRegulated,defaultStandardToplist:this.defaultStandardToplist,partnersToDisplay:this.partnersToDisplay,selectToplist:this.selectToplist,defaultBonusToplist:this.defaultBonusToplist,partnersToShow:this.partnersToShow,bonusVariant:this.bonusVariant,bonusTitle:this.bonusTitle,showCta:this.showCta,useAccordion:this.useAccordion,howWeRateData:this.howWeRateData,homepageLayout:this.homepageLayout,blacklistTitle:this.blacklistTitle,blacklistDescription:this.blacklistDescription,blacklistCtaText:this.blacklistCtaText,ctaData:qC(this)}},layoutBlocks(){const e=ml||{},t=Nr||{},n=cu||{},s="accent",r=Yi(this.resolvedProps.howWeRateData||"");return YC({props:this.resolvedProps,expertPanelData:e,authors:t,footerData:n,themeColor:s,howWeRateRaw:r})}},methods:{resolveComponent(e){const t=od(e);if(Zi[t])return Zi[t];const n=rd[t];return n?(Ai[t]||(Ai[t]=cd(n)),Ai[t]):null}},async serverPrefetch(){const e=ml||{},t=Nr||{},n=dd(),s=this.$pinia||n?.appContext.config.globalProperties.$pinia,r=ad(n?.proxy?.$axios||n?.appContext.config.globalProperties.$axios),i=this.resolvedProps.pageLanguage||this.locale||"en",o=se(s),a=this.layoutBlocks,c=h=>a.some(f=>f&&f.component===h),l=c("CommercialToplist")||c("AdvancedToplist")||c("Comparison")||c("HowWeRate"),d=c("BonusToplist"),u=c("ExpertPanelCasinos");if(l){const h=o.toplists?.default;if(!(Array.isArray(h)&&h.length>0))try{const p=a.find(L=>L&&L.component==="CommercialToplist"),y=a.find(L=>L&&L.component==="AdvancedToplist"),m=a.find(L=>L&&L.component==="Comparison"),b=p?.props?.defaultStandardToplist||m?.props?.defaultStandardToplist||y?.props?.selectToplist||this.resolvedProps.defaultStandardToplist||this.resolvedProps.selectToplist||"default",_=p?.props?.pageType||m?.props?.pageType||y?.props?.pageType||this.resolvedProps.pageType||"homepage",C=this.resolvedProps.isUSA,T=String(_).trim().toLowerCase(),M=!T||T==="homepage"||T==="default"?"homepage":_;await o.getToplistByType({toplistType:"default",defaultToplist:b,pageLanguage:i,isOntario:this.resolvedProps.ontarioRegulated,isAlberta:this.resolvedProps.albertaRegulated,contentRegion:this.resolvedProps.albertaRegulated?"AB":this.resolvedProps.ontarioRegulated?"ON":"default",isUSA:C,pageType:M,verticalFilter:C?"Casino":"",axios:r})}catch(p){console.error("[homepage] Failed to prefetch default toplist:",p)}}if(d)try{const f=a.find(y=>y&&y.component==="BonusToplist")?.props?.selectToplist||this.resolvedProps.defaultBonusToplist||"bonus",p=new Set([f||"bonus"]);p.delete("default"),await Promise.all(Array.from(p).map(y=>o.getToplistByType({axios:r,toplistType:y,pageType:y,pageLanguage:i,isOntario:this.resolvedProps.ontarioRegulated,isAlberta:this.resolvedProps.albertaRegulated,contentRegion:this.resolvedProps.albertaRegulated?"AB":this.resolvedProps.ontarioRegulated?"ON":"default",isUSA:this.resolvedProps.isUSA})))}catch(h){console.error("[homepage] Failed to preload bonus toplists:",h)}if(u)try{const h=this.resolvedProps.ontarioRegulated||!1,f=e.authorSelection||[],p=Object.entries(t).filter(([b])=>f.includes(b)),y=b=>{let _=[];const C=Array.isArray(b?.type)?b.type:[];return C.includes("ontario")&&h?_=b.authorOntarioCasinoPicks||[]:C.includes("default")&&(_=[..._,...b.authorCasinoPicks||[]]),_},m=Array.from(new Set(p.flatMap(([,b])=>
4y(b)))).filter(Boolean);m.length>0&&await o.getPartnersBySlugs({slugs:m,isOntario:h,axios:r})}catch(h){console.error("[homepage] Failed to prefetch expert panel partners:",h)}}},KC={id:"ssr-homepage-container"},XC=["id"];function JC(e,t,n,s,r,i){return g(),x("div",KC,[(g(!0),x(H,null,Y(i.layoutBlocks,(o,a)=>(g(),x("section",{id:o.id||null,key:o.key||a,class:z(o.sectionClass)},[v("div",{class:z(o.wrapperClass)},[i.resolveComponent(o.component)?(g(),S(Pn(i.resolveComponent(o.component)),Rt({key:0,ref_for:!0},o.props),null,16)):A("",!0)],2)],10,XC))),128))])}const QC=O(ZC,[["render",JC]]);Kd("homepage",QC);
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.