1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7bdf6f15-2f46-5ccb-2666-fc889630f8fa")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,302598,e=>{"use strict";var t=e.i(745558),a=e.i(897006);e.s(["useConsentDialogTrigger",0,function(e={}){let{showWhen:s="after-consent",onClick:i}=e,{activeUI:o,hasConsented:r,setActiveUI:l}=(0,a.useConsentManager)();return{isVisible:(0,t.useMemo)(()=>"never"!==s&&("after-consent"!==s||r()),[r,s])&&"none"===o,openDialog:(0,t.useCallback)(()=>{i?.(),l("dialog")},[i,l])}}])},666568,e=>{e.q("/_next/static/media/baalorlord.2w248kpm8f_ad.webp")},701140,788188,e=>{"use strict";let t={src:e.i(666568).default,width:500,height:400,blurWidth:8,blurHeight:6,blurDataURL:"data:image/webp;base64,UklGRkwBAABXRUJQVlA4TEABAAAvB0ABEM1VICICHgiADQIAAICtTEjoeDkdEgEEAs4BOHIBgAAAAAAAAAAAAAAAAAAAHPA4EYBHAegHAAA8EIAcBAAAgPO/6k1az4MECAAAAAAAAAAAAAAAAAAAMAAGCAwCAAgABFBjhBFDmw3wQAByEAAAAM7/ft9M4gFqABsC+AEMAAAAAAAAAAAAAAAAAAAAAAAAAAAAIABJfft5IAA5CAAAAOd/PwUABgQAQwuAzIQBYDYAZgwCAgACQAwAQMAEQCAAAAAAABgAAChZAkCIyTrladZ/PMtyXI0fAJCpQ6/FnF1tMcu3TuMQFWYHABIAfzt5jUTt6flTYvvO7zaQDwgiEUUyL9MbtvYdJ7+dorzzfPBzLdfht70VMl0VVhl/xdR1DeEp1n27Xs+am5xGOd80/gF9ivhreP123W6wEw=="};e.s(["default",0,t],701140);let a={src:e.i(865874).default,width:515,height:400,blurWidth:8,blurHeight:6,blurDataURL:"data:image/webp;base64,UklGRkABAABXRUJQVlA4TDMBAAAvB0ABEM1VICICHgiADQIAAIBt74JDDweEOnC4AwAAAAEAAAAAAAAAAAAAAIADggIIAAAAEGr8ah4AAMADAcFBAAAAOP/7fT9DlmLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAMfJCm3gNBO0IAAAA4/7fqBi4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOKT9bn0PBAQHAQAA4PzvP2CIBAYAACBgCgECDAAMAEAYEAgQAAEAECABAAAAYBAYAADEoCWAABCt3drXle9xHnMeDSoACNIRbdh7sm1bylYSGgD+8TsW98f96Bc3j8I+hslq1ckdguog1tTz6dnv4zb3c/pe9+by+wymYIqs0uZaF/ymFMiCf8Gj2bSnc6XleBDMXIW/6n0lkpL/+4ICAA=="};e.s(["default",0,a],788188)},865,e=>{e.q("/_next/static/media/background.3yet82ux820we.webp")},41575,e=>{e.q("/_next/static/media/untapped-comment-solid.2wnio7rurppiy.svg")},865874,e=>{e.q("/_next/static/media/jorbs.2-xfefdqp0hxx.webp")},720263,e=>{e.v({aboveModal:"BottomStack-module-scss-module__sjifMq__aboveModal",cornerItem:"BottomStack-module-scss-module__sjifMq__cornerItem",dockItem:"BottomStack-module-scss-module__sjifMq__dockItem",stack:"BottomStack-module-scss-module__sjifMq__stack"})},433239,e=>{"use strict";var t=e.i(65563),a=e.i(745558),s=e.i(404172),i=e.i(720263);let o=[{id:"feedbackQueue",showAboveModal:!0},{id:"ogImagePreview"},{id:"userFeedback"},{id:"featureNotice"},{id:"overlayPromo"},{id:"overlayPromoDock"}],r=(0,a.createContext)(null),l=(0,a.createContext)(null);e.s(["BottomStackProvider",0,function({children:e,hidden:s=!1}){let[o,n]=(0,a.useState)(null),[c,d]=(0,a.useState)(null),u=function(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>t(!!document.querySelector(".ugg-modal-modalOverlay"));e();let a=new MutationObserver(e);return a.observe(document.body,{childList:!0,subtree:!0}),()=>a.disconnect()},[]),e}(),m={display:s?"none":void 0};return(0,t.jsx)(r.Provider,{value:o,children:(0,t.jsxs)(l.Provider,{value:u?c:o,children:[e,(0,t.jsx)("div",{ref:n,className:i.default.stack,style:m}),(0,t.jsx)("div",{ref:d,className:`${i.default.stack} ${i.default.aboveModal}`,style:m})]})})},"BottomStackSlot",0,function({item:e,placement:n="corner",hidden:c=!1,children:d}){let u=(0,a.useContext)(r),m=(0,a.useContext)(l),A=o.findIndex(t=>t.id===e),f=o[A].showAboveModal?m:u;return f?(0,s.createPortal)((0,t.jsx)("div",{className:"dock"===n?i.default.dockItem:i.default.cornerItem,style:{order:A,display:c?"none":void 0},children:d}),f):null}])},637432,48500,326815,e=>{"use strict";var t=e.i(65563),a=e.i(943626),s=e.i(745558),i=e.i(625487),o=e.i(48501);function r(){let e=navigator.userAgentData;return e?.platform?"Linux"===e.platform:/Linux/i.test(navigator.userAgent)}e.s(["isLinux",0,r,"isWindows",0,function(){let e=navigator.userAgentData;return e?.platform?"Windows"===e.platform:/Windows|Win32|Win64|WOW64/i.test(navigator.userAgent)}],48500);var l=e.i(396849);let n="sts2-frontpage";function c(e=n){let t=new URLSearchParams({utm_source:"untapped",utm_medium:"website",utm_campaign:e});return`https://companion.untapped.gg/releases/Untapped.gg%20Companion%20Stable%20Installer.exe?${t.toString()}`}let d=c();function u(e,t,a,s,i){let o=new URLSearchParams({source:t});return a&&o.set("utm",a),s&&o.set("origin",s),i&&o.set("n",i),`/${e}/download?${o.toString()}`}function m(e,t,a,s){let i=new URLSearchParams({source:t});return a&&i.set("utm",a),s&&i.set("origin",s),`/${e}
2/download-linux?${i.toString()}`}function A({children:e,size:n="lg",icon:c="fal fa-download",className:d,buttonSource:f,utmCampaign:_,onClick:h}){let v=(0,a.useRouter)(),[b,p]=(0,s.useState)(null);return(0,s.useEffect)(()=>{p(r())},[]),(0,t.jsx)(l.Button,{size:n,icon:c,className:d,onPress:()=>{h?.();let{lang:e,path:t}=(0,o.splitLang)(window.location.pathname);v.push(b?m((0,i.ensureValidLang)(e),f,_,t):u((0,i.ensureValidLang)(e),f,_,t,Date.now().toString(36)))},children:e})}e.s(["DEFAULT_DOWNLOAD_URL",0,d,"DEFAULT_UTM_CAMPAIGN",0,n,"buildDownloadPageUrl",0,u,"buildDownloadUrl",0,c,"buildLinuxDownloadPageUrl",0,m],326815),e.s(["DownloadButton",0,A,"default",0,A],637432)},581145,e=>{e.v({header:"FeatureFallback-module-scss-module__lQytuG__header",minimized:"FeatureFallback-module-scss-module__lQytuG__minimized",notice:"FeatureFallback-module-scss-module__lQytuG__notice",section:"FeatureFallback-module-scss-module__lQytuG__section"})},770374,e=>{"use strict";var t=e.i(65563),a=e.i(734804),s=e.i(745558),i=e.i(818279),o=e.i(387299),r=e.i(396849),l=e.i(433239),n=e.i(581145);let c="feature-notice-minimized",d=(0,s.createContext)(null);function u({entries:e}){let[o,d]=(0,s.useState)(()=>"true"===a.default.get(c)),A=e=>{a.default.set(c,String(e),{path:"/"}),d(e)};return 0===e.length?null:o?(0,t.jsx)(l.BottomStackSlot,{item:"featureNotice",children:(0,t.jsx)("div",{className:n.default.minimized,children:(0,t.jsx)(r.Button,{variant:"text",size:"sm",color:"warning",icon:"fal fa-screwdriver-wrench",onPress:()=>A(!1)})})}):(0,t.jsx)(l.BottomStackSlot,{item:"featureNotice",children:(0,t.jsxs)("div",{className:n.default.notice,children:[(0,t.jsxs)("div",{className:n.default.header,children:[(0,t.jsx)("i",{className:"fal fa-screwdriver-wrench"})," Dev Features",(0,t.jsx)(r.Button,{variant:"text",size:"sm",color:"white",icon:"fal fa-minus",onPress:()=>A(!0)})]}),e.map(e=>(0,t.jsxs)(m,{action:"Enable feature",onEnable:async()=>{await (0,i.apiRequest)("POST",`/features/${e.feature}`,JSON.stringify({enabled:!0})),window.location.reload()},children:["This page is behind ",(0,t.jsx)("code",{children:e.feature}),"."]},e.feature))]})})}function m({action:e,onEnable:a,children:s}){return(0,t.jsxs)("div",{className:n.default.section,children:[(0,t.jsx)("span",{children:s}),(0,t.jsx)(r.Button,{size:"sm",variant:"text",onPress:()=>{a()},children:e})]})}e.s(["FeatureFallback",0,function({feature:e}){let{data:t}=(0,o.useFeatures)(),a=(0,s.useId)(),i=(0,s.useContext)(d),r=t?.some(e=>"devtools"===e.name&&e.enabled_for_user)??!1;return(0,s.useEffect)(()=>{if(i&&r)return i({id:a,feature:e})},[i,a,e,r]),null},"FeatureNoticeProvider",0,function({children:e}){let[a,i]=(0,s.useState)([]),o=(0,s.useCallback)(e=>(i(t=>[...t,e]),()=>i(t=>t.filter(t=>t.id!==e.id))),[]);return(0,t.jsxs)(d.Provider,{value:o,children:[e,(0,t.jsx)(u,{entries:a})]})}])},317950,e=>{"use strict";var t=e.i(65563),a=e.i(745558);function s(e){return JSON.stringify(e).replace(/</g,"\\u003c")}e.s(["LocalDate",0,function({date:e,lang:i,month:o="short",timeStyle:r,className:l,fallback:n=null}){let c=(0,a.useId)(),d=r?{dateStyle:"long"===o?"long":"medium",timeStyle:r}:{year:"numeric",month:o,day:"numeric"};return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("time",{id:c,className:l,dateTime:e,suppressHydrationWarning:!0,children:new Date(e).toLocaleString(i,d)}),(0,t.jsx)("script",{type:"text/plain",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`{var n=document.getElementById(${s(c)});if(n)n.textContent=new Date(n.dateTime).toLocaleString(${s(i)},${s(d)})}`}})]}):null===n?null:(0,t.jsx)("span",{className:l,children:n})}])},689409,e=>{e.v({body:"PopoverPanel-module-scss-module__B5PyFG__body",container:"PopoverPanel-module-scss-module__B5PyFG__container",header:"PopoverPanel-module-scss-module__B5PyFG__header"})},163220,e=>{"use strict";var t=e.i(65563),a=e.i(745558);e.i(975956);var s=e.i(219727),i=e.i(396849),o=e.i(689409);let r=(0,a.createContext)(null);e.s(["PopoverCloseContext",0,r,"PopoverPanel",0,function({title:e,onClose:a,placement:l,className:n,bodyClassName:c,children:d}){let{t:u}=(0,s.useTranslation)("client");return(0,t.jsxs)(i.Popover,{className:`${o.default.container}${n?` ${n}`:""}`,placement:l,hideArrow:!0,children:[(0,t.jsxs)("div",{className:o.default.header,children:[(0,t.jsx)("h3",{children:e}),(0,t.jsx)(i.Button,{variant:"text",color:"white",icon:"fal fa-times",onPress:a,"aria-label":u("Close")})]}),(0,t.jsx)("div",{className:`${o.default.body}${c?` ${c}`:""}`,"data-lenis-prevent":!0,children:(0,t.jsx)(r.Provider,{value:a,children:d})})]})}])},205197,e=>{e.v({container:"ScrollContainer-module-scss-module__6p5SQa__container",horizontal:"ScrollContainer-module-scss-module__6p5SQa__horizontal",scroller:"ScrollContainer-module-scss-module__6p5SQa__scroller",vertical:"ScrollContainer-module-scss-module__6p5SQa__vertical"})},627924,e=>{"use strict";var t=e.i(65563),a=e.i(745558),s=e.i(205197);
2e.s(["ScrollContainer",0,function({children:e,direction:i,className:o,scrollerClassName:r}){let l=(0,a.useRef)(null),[n,c]=(0,a.useState)({canScrollStart:!1,canScrollEnd:!1,scrollbarWidth:0,scrollbarHeight:0});return(0,a.useEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{let t=e.offsetWidth-e.clientWidth,a=e.offsetHeight-e.clientHeight,s="horizontal"===i,o=s?e.scrollLeft:e.scrollTop,r=Math.max(0,(s?e.scrollWidth:e.scrollHeight)-(s?e.clientWidth:e.clientHeight)),l=o>1,n=o<r-1;c(e=>e.canScrollStart===l&&e.canScrollEnd===n&&e.scrollbarWidth===t&&e.scrollbarHeight===a?e:{canScrollStart:l,canScrollEnd:n,scrollbarWidth:t,scrollbarHeight:a})},a="ResizeObserver"in window?new ResizeObserver(t):void 0;return a?.observe(e),e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),t(),()=>{a?.disconnect(),e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[i]),(0,t.jsx)("div",{className:`${s.default.container} ${"horizontal"===i?s.default.horizontal:s.default.vertical} ${o??""}`,"data-can-scroll-start":n.canScrollStart||void 0,"data-can-scroll-end":n.canScrollEnd||void 0,children:(0,t.jsx)("div",{ref:l,className:`${s.default.scroller} ${r??""}`,style:{"--scrollbar-width":`${n.scrollbarWidth}px`,"--scrollbar-height":`${n.scrollbarHeight}px`},children:e})})}])},775106,e=>{e.v({body:"UserFeedbackButton-module-scss-module__6ywzhW__body"})},164112,e=>{"use strict";var t=e.i(65563),a=e.i(820236),s=e.i(745558);e.i(975956);var i=e.i(219727),o=e.i(433239),r=e.i(163220),l=e.i(428176),n=e.i(396849),c=e.i(775106);let d={src:e.i(41575).default,width:38,height:38,blurWidth:0,blurHeight:0};function u({children:e,placement:a}){let{t:o}=(0,i.useTranslation)("client"),[d,m]=(0,s.useState)(!1);return(0,t.jsxs)(n.DialogTrigger,{isOpen:d,onOpenChange:e=>{m(e),e&&l.Analytics.mpTrack("STS2 Open User Feedback")},children:[e,(0,t.jsxs)(r.PopoverPanel,{title:o("Feedback & Requests"),onClose:()=>m(!1),placement:a,bodyClassName:c.default.body,children:[(0,t.jsx)("p",{children:o("Tell us what features you would like to see next!")}),(0,t.jsx)(n.Button,{href:"https://docs.google.com/forms/d/e/1FAIpQLScRlrb1XjjY0oAs1DQotS73Zb3f3RZ9E3Qe0cwF9R5QBMk3ZA/viewform",target:"_blank",rel:"noopener",icon:"fal fa-arrow-right",onPress:()=>l.Analytics.mpTrack("STS2 Click User Feedback Leave Suggestion"),children:o("Leave a Suggestion")}),(0,t.jsx)(n.Button,{href:"https://untapped.gg/discord",target:"_blank",rel:"noopener",variant:"ghost",icon:"fab fa-discord",onPress:()=>l.Analytics.mpTrack("STS2 Click User Feedback Join Discord"),children:o("Join our Discord")})]})]})}function m({size:e}){return(0,t.jsx)(a.default,{src:d,alt:"",width:e,height:e})}e.s(["FeedbackIcon",0,m,"UserFeedbackButton",0,function(){let{t:e}=(0,i.useTranslation)("client");return(0,t.jsx)(o.BottomStackSlot,{item:"userFeedback",children:(0,t.jsx)(u,{placement:"top end",children:(0,t.jsx)(n.Button,{style:{boxShadow:"0 8px 24px oklch(0 0 0 / 40%)"},color:"primary",icon:(0,t.jsx)(m,{size:32}),"aria-label":e("Feedback & Requests"),size:"lg"})})})},"UserFeedbackTrigger",0,u],164112)},382503,e=>{"use strict";var t=e.i(65563);e.i(745558),e.i(975956);var a=e.i(219727),s=e.i(864846),i=e.i(396849);e.s(["BackToTop",0,function(){let{t:e}=(0,a.useTranslation)("client");return(0,t.jsxs)(i.Link,{className:s.default.backToTop,href:"#",onClick:e=>{e.preventDefault(),window.scrollTo({top:0})},children:[(0,t.jsx)("i",{className:"fal fa-arrow-up"}),(0,t.jsx)("span",{children:e("Back to top")})]})}])},775511,e=>{"use strict";var t=e.i(65563),a=e.i(302598),s=e.i(897006),i=e.i(396849);e.s(["ConsentSettingsLink",0,function({children:e}){let{model:o}=(0,s.useConsentManager)(),{openDialog:r}=(0,a.useConsentDialogTrigger)();return null===o?null:(0,t.jsx)(i.Link,{onPress:r,children:e})}])},864846,e=>{e.v({backToTop:"Footer-module-scss-module__kqmR4W__backToTop",container:"Footer-module-scss-module__kqmR4W__container",content:"Footer-module-scss-module__kqmR4W__content",copyright:"Footer-module-scss-module__kqmR4W__copyright","dropdown-toggle":"Footer-module-scss-module__kqmR4W__dropdown-toggle",gameMode:"Footer-module-scss-module__kqmR4W__gameMode",left:"Footer-module-scss-module__kqmR4W__left",links:"Footer-module-scss-module__kqmR4W__links",right:"Footer-module-scss-module__kqmR4W__right",socialLinks:"Footer-module-scss-module__kqmR4W__socialLinks"})},45971,e=>{"use strict";var t=e.i(65563),a=e.i(745558),s=e.i(163220),i=e.i(428176),o=e.i(396849);e.s(["NavUpdatesCta",0,function({href:e,external:r,title:l,className:n,children:c}){let d=(0,a.useContext)(s.PopoverCloseContext);return(0,t.jsx)(o.Button,{href:e,rel:r?"noopener noreferrer":void 0,target:r?"_blank":void 0,icon:r?"fal fa-up-right-from-square":"fal fa-long-arrow-right",size:"sm",className:n,onPress:()=>{i.Analytics.mpTrack("STS2 Click Latest Updates CTA",{option:l}),d?.()},children:c})}])},136865,e=>{e.v({actions:"OverlayPromoBanner-module-scss-module__XCKvbq__actions",avatar:"OverlayPromoBanner-module-scss-module__XCKvbq__avatar",avatars:"OverlayPromoBanner-module-scss-module__XCKvbq__avatars",banner:"OverlayPromoBanner-module-scss-module__XCKvbq__banner",bannerBackgroun
2d:"OverlayPromoBanner-module-scss-module__XCKvbq__bannerBackground",bottomActions:"OverlayPromoBanner-module-scss-module__XCKvbq__bottomActions",bottomBanner:"OverlayPromoBanner-module-scss-module__XCKvbq__bottomBanner",bottomContainer:"OverlayPromoBanner-module-scss-module__XCKvbq__bottomContainer",bottomThumb:"OverlayPromoBanner-module-scss-module__XCKvbq__bottomThumb",bottomTitle:"OverlayPromoBanner-module-scss-module__XCKvbq__bottomTitle",bottomVideo:"OverlayPromoBanner-module-scss-module__XCKvbq__bottomVideo",chevronButton:"OverlayPromoBanner-module-scss-module__XCKvbq__chevronButton",closeButton:"OverlayPromoBanner-module-scss-module__XCKvbq__closeButton",container:"OverlayPromoBanner-module-scss-module__XCKvbq__container",downloadButton:"OverlayPromoBanner-module-scss-module__XCKvbq__downloadButton",header:"OverlayPromoBanner-module-scss-module__XCKvbq__header",learnMore:"OverlayPromoBanner-module-scss-module__XCKvbq__learnMore",preview:"OverlayPromoBanner-module-scss-module__XCKvbq__preview",previewVideo:"OverlayPromoBanner-module-scss-module__XCKvbq__previewVideo",slideIn:"OverlayPromoBanner-module-scss-module__XCKvbq__slideIn",slideUp:"OverlayPromoBanner-module-scss-module__XCKvbq__slideUp",subtitle:"OverlayPromoBanner-module-scss-module__XCKvbq__subtitle",title:"OverlayPromoBanner-module-scss-module__XCKvbq__title"})},473468,e=>{"use strict";var t=e.i(65563),a=e.i(734804),s=e.i(820236),i=e.i(745558);e.i(975956);var o=e.i(219727),r=e.i(433239),l=e.i(637432),n=e.i(822596),c=e.i(93728),d=e.i(428176),u=e.i(387299),m=e.i(48500),A=e.i(897006),f=e.i(396849),_=e.i(136865),h=e.i(701140);let v={src:e.i(865).default,width:3016,height:3016,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRgABAABXRUJQVlA4TPMAAAAvB8ABAM1VICICHghADgIAAIDaVrPeVxVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQ/H7V3woAAMADAaiBAAAAOP+qdTF4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB7fb23lgWAjMQAAAJx/2gN4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMBg0ESe74unvhIvvtIEsCamPF6d/1uje+T4ukVpdzxMmWVJSTpQyhveDkW4usa1PdkRYCD+JERT60AHaqpNQPFlX4YCxLwwhaYD+xgVFp+4xb1NKOC0zivD/MPzmfJVwQAA"};var b=e.i(788188);let p="overlay-promo-view",g="overlay-promo-dismissed",x=["Ironclad","Silent","Defect","Necrobinder","Regent"],B=["Baalorlord","Jorbs"];function w({lang:e}){var n;let{t:y}=(0,o.useTranslation)("client"),k=(0,u.useIsFeatureEnabled)("overlay-promotional-banner"),j=(0,u.useIsFeatureEnabled)("overlay-promotional-banner-B"),{data:C}=(0,c.useAccount)(),[S,N]=(0,i.useState)(!1),[P,T]=(0,i.useState)(!1),[D,I]=(0,i.useState)(!1),[L,M]=(0,i.useState)("floating"),[F,O]=(0,i.useState)(null),[q,E]=(0,i.useState)(!1),[R,W]=(0,i.useState)(!1),U=(0,i.useRef)(!1);(0,i.useEffect)(()=>{M(a.default.get(p)||"floating"),O(Math.random()),I((0,m.isWindows)()),E("1"===a.default.get(g)),N(!0);let e=window.matchMedia("(min-width: 1024px)"),t=()=>T(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let{activeUI:X}=(0,A.useConsentManager)(),$=S&&k&&P&&D&&!q&&!C?.is_companion_linked&&"none"===X,z=j?"B":"A";(0,i.useEffect)(()=>{$&&!U.current&&(U.current=!0,d.Analytics.mpTrack("Overlay Promo Banner View",{variant:z}))},[$,L,z]);let Q=e=>{a.default.set(p,e,{expires:30}),d.Analytics.mpTrack("Overlay Promo Banner Toggle View",{view:e,variant:z}),M(e)},V=()=>{a.default.set(g,"1",{expires:7})},K=()=>{V(),W(!0)};if(!$||null===F)return null;let H=j?B:x,G=(n=H[Math.floor(F*H.length)],`https://static.sts2.untapped.gg/marketing/videos/promo-banner/${n}.mp4`),J=(0,t.jsxs)("div",{className:_.default.avatars,children:[(0,t.jsx)(s.default,{src:b.default,alt:"Jorbs",width:54,height:54,className:_.default.avatar,sizes:"54px"}),(0,t.jsx)(s.default,{src:h.default,alt:"Baalorlord",width:54,height:54,className:_.default.avatar,sizes:"54px"})]}),Y=(0,t.jsxs)(f.Link,{href:`/${e}`,className:_.default.learnMore,onPress:()=>d.Analytics.mpTrack("Overlay Promo Banner Learn More"),children:[y("See how it works!")," ",(0,t.jsx)("i",{className:"fal fa-arrow-up-right"})]}),Z=(e,a)=>(0,t.jsx)(l.DownloadButton,{size:"md",className:_.default.downloadButton,buttonSource:`overlay-promo-banner-${a}`,utmCampaign:"overlay-promo-banner",onClick:K,children:e});return"bottom"===L?(0,t.jsx)(r.BottomStackSlot,{item:"overlayPromoDock",placement:"dock",hidden:R,children:(0,t.jsx)("div",{className:_.default.bottomContainer,children:(0,t.jsxs)("div",{className:_.default.bottomBanner,children:[(0,t.jsx)("div",{className:_.default.bottomThumb,children:(0,t.jsx)("video",{className:_.default.bottomVideo,autoPlay:!0,loop:!0,muted:!0,playsInl
2ine:!0,preload:"auto",children:(0,t.jsx)("source",{src:G,type:"video/mp4"})})}),(0,t.jsx)("p",{className:_.default.bottomTitle,children:y(j?"Try Our FREE Overlay for In-Game Expert Tips":"Try our Overlay For In-Game Card Tips From Jorbs & Baalorlord")}),J,(0,t.jsxs)("div",{className:_.default.bottomActions,children:[Y,Z(y("Download Overlay"),"footer")]}),(0,t.jsx)("button",{className:_.default.chevronButton,onClick:()=>Q("floating"),"aria-label":y("Switch to floating banner"),children:(0,t.jsx)("i",{className:"fal fa-chevron-up"})}),(0,t.jsx)("button",{className:_.default.closeButton,onClick:()=>{d.Analytics.mpTrack("Overlay Promo Banner Close",{view:L,variant:z}),V(),E(!0)},"aria-label":y("Close"),children:(0,t.jsx)("i",{className:"fal fa-times"})})]})})}):(0,t.jsx)(r.BottomStackSlot,{item:"overlayPromo",hidden:R,children:(0,t.jsx)("div",{className:_.default.container,children:(0,t.jsxs)("div",{className:_.default.banner,children:[(0,t.jsx)("div",{className:_.default.bannerBackground,role:"presentation",children:(0,t.jsx)(s.default,{src:v,alt:"",fill:!0,sizes:"420px",placeholder:"blur"})}),(0,t.jsx)("button",{className:_.default.chevronButton,onClick:()=>Q("bottom"),"aria-label":y("Dock to bottom"),children:(0,t.jsx)("i",{className:"fas fa-chevron-down"})}),(0,t.jsxs)("div",{className:_.default.header,children:[(0,t.jsx)("h3",{className:_.default.title,children:y(j?"Try Our FREE Overlay for In-Game Expert Tips":"Try our Overlay For In-Game Card Tips")}),(0,t.jsxs)("div",{className:_.default.subtitle,children:[J,(0,t.jsx)("span",{children:y("From Jorbs & Baalorlord")})]})]}),(0,t.jsx)("div",{className:_.default.preview,children:(0,t.jsx)("video",{className:_.default.previewVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"auto",children:(0,t.jsx)("source",{src:G,type:"video/mp4"})})}),(0,t.jsxs)("div",{className:_.default.actions,children:[Y,Z(y("Download"),"modal")]})]})})})}e.s(["GlobalOverlayPromoBanner",0,function({lang:e}){let{pathname:a}=(0,n.useI18nPathname)();if(void 0===a)return null;let s=""===a||"/"===a,i="/download"===a,o=a.startsWith("/tier-list");return s||i||o?null:(0,t.jsx)(w,{lang:e})},"OverlayPromoBanner",0,w],473468)},740936,e=>{e.v({banner:"PatchBannerNotice-module-scss-module__7LIb4W__banner",heading:"PatchBannerNotice-module-scss-module__7LIb4W__heading",link:"PatchBannerNotice-module-scss-module__7LIb4W__link",node:"PatchBannerNotice-module-scss-module__7LIb4W__node",strip:"PatchBannerNotice-module-scss-module__7LIb4W__strip",summary:"PatchBannerNotice-module-scss-module__7LIb4W__summary",text:"PatchBannerNotice-module-scss-module__7LIb4W__text"})},989303,e=>{e.v({background:"NotificationBarNotice-module-scss-module__3xbcXq__background",banner:"NotificationBarNotice-module-scss-module__3xbcXq__banner",dismiss:"NotificationBarNotice-module-scss-module__3xbcXq__dismiss",icon:"NotificationBarNotice-module-scss-module__3xbcXq__icon",link:"NotificationBarNotice-module-scss-module__3xbcXq__link",message:"NotificationBarNotice-module-scss-module__3xbcXq__message",reveal:"NotificationBarNotice-module-scss-module__3xbcXq__reveal",slideDown:"NotificationBarNotice-module-scss-module__3xbcXq__slideDown",status:"NotificationBarNotice-module-scss-module__3xbcXq__status",strip:"NotificationBarNotice-module-scss-module__3xbcXq__strip"})},176638,e=>{"use strict";var t=e.i(65563),a=e.i(734804),s=e.i(745558);e.i(975956);var i=e.i(219727),o=e.i(396849),r=e.i(740936);function l({isBeta:e,href:a,heading:s,onDismiss:n}){let{t:c}=(0,i.useTranslation)("client");return(0,t.jsx)("aside",{className:r.default.strip,"aria-label":c(e?"New Beta Patch":"New Patch"),"data-beta":e?"":void 0,children:(0,t.jsxs)("div",{className:r.default.banner,children:[(0,t.jsxs)(o.Link,{href:a,className:r.default.link,onPress:n,children:[(0,t.jsx)("span",{className:r.default.node,"aria-hidden":"true"}),(0,t.jsxs)("span",{className:r.default.text,children:[(0,t.jsx)("strong",{className:r.default.heading,children:s}),(0,t.jsxs)("span",{className:r.default.summary,children:[c("Now Live! Read the full patch notes"),(0,t.jsx)("i",{className:"fal fa-long-arrow-right",style:{marginLeft:4}})]})]})]}),(0,t.jsx)(o.Button,{variant:"text",color:"white",icon:"fal fa-times","aria-label":c("Dismiss"),onPress:n})]})})}var n=e.i(822596),c=e.i(428176);function d(e,t){let a=t.trim();if(a.endsWith("/*")){let t=u(a.slice(0,-2));return e===t||e.startsWith("/"===t?"/":`${t}/`)}return e===u(a)}function u(e){let t=e.replace(/\/+$/,"");return""===t?"/":t}function m(e){return e.startsWith("sts-")?`var(--${e})`:"black"===e?"oklch(0 0 0)":"white"===e?"oklch(1 0 0)":"var(--primary)"}var A=e.i(820236);function f({data:e,alt:a,fill:s,...i}){return"number"==typeof e?(console.warn("MediaImage does currently not support ids."),null):e?.url&&e.width&&e.height?(0,t.jsx)(A.default,{src:e.url,alt:a??e.alt??"",fill:s,width:s?void 0:e.width,height:s?void 0:e.he
2ight,...i}):null}var _=e.i(989303);function h({notification:e,lang:a,status:s,onDismiss:r}){let{t:l}=(0,i.useTranslation)("client"),{id:n,message:d,color:u,textColor:A,icon:v,backgroundImage:b,link:p,dismissable:g}=e,x=(0,t.jsxs)("span",{className:_.default.message,children:["object"==typeof v&&v?(0,t.jsx)(f,{data:v,className:_.default.icon}):null,(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{children:d}),s?(0,t.jsx)("span",{className:_.default.status,children:s}):null]})]});return(0,t.jsxs)("aside",{className:_.default.strip,"aria-label":l("Site banner"),"data-background-image":b?"":void 0,style:{"--notification-color":m(u),"--notification-text":m(A??"white")},children:["object"==typeof b&&b?(0,t.jsx)("div",{className:_.default.background,"aria-hidden":"true",children:(0,t.jsx)(f,{data:b,fill:!0,sizes:"100vw"})}):null,(0,t.jsxs)("div",{className:_.default.banner,children:[p?(0,t.jsx)(o.Link,{href:`/${a}${p}`,className:_.default.link,onPress:()=>c.Analytics.mpTrack("Click Site Notification",{notification_id:n,notification_message:d}),children:x}):(0,t.jsx)("div",{className:_.default.link,children:x}),g?(0,t.jsx)(o.Button,{variant:"text",icon:"fal fa-times",className:_.default.dismiss,"aria-label":l("Dismiss"),onPress:r}):null]})]})}let v="patch-banner-dismissed",b="site-notification-dismissed";function p(e){return e?.flatMap(e=>"object"==typeof e?[e.path]:[])??[]}e.s(["SiteBannerNotice",0,function({patch:e,notification:i,lang:o,notificationDraftStatus:r}){var m,A;let f,{pathname:_}
2=(0,n.useI18nPathname)(),[g,x]=(0,s.useState)(null);return((0,s.useEffect)(()=>{let t=Date.now();x({patch:e,notification:i,notificationDraftStatus:r,patchBannerStatus:!e||t-new Date(e.steamRelease).getTime()>=2592e5?"off":a.default.get(v)===e.version?"previouslyDismissed":"active",notificationStatus:!i||i.expiresAt&&new Date(i.expiresAt).getTime()<=t?"off":i.dismissable&&a.default.get(b)===String(i.id)&&!r?"dismissed":"active"})},[e,i,r]),g&&g.patch===e&&g.notification===i&&g.notificationDraftStatus===r&&_)?e&&"active"==g.patchBannerStatus&&"/"!==_&&!_.startsWith("/patch-notes")?(0,t.jsx)(l,{isBeta:e.isBeta,href:e.href,heading:e.heading,onDismiss:()=>{a.default.set(v,e.version,{expires:30}),x({...g,patchBannerStatus:"dismissedNow"})}}):i&&"active"==g.notificationStatus&&"dismissedNow"!=g.patchBannerStatus&&(_.startsWith("/draft/")||(m=p(i.includedTargets),A=p(i.excludedTargets),f=u(_),!A?.some(e=>d(f,e))&&(!m?.length||m.some(e=>d(f,e)))))?(0,t.jsx)(h,{notification:i,lang:o,status:r,onDismiss:()=>{c.Analytics.mpTrack("Dismiss Site Notification",{notification_id:i.id,notification_message:i.message}),a.default.set(b,String(i.id),{expires:30}),x({...g,notificationStatus:"dismissed"})}}):null:null}],176638)},56771,e=>{e.v({actions:"CreateTierListModal-module-scss-module__cyfVwa__actions",error:"CreateTierListModal-module-scss-module__cyfVwa__error",form:"CreateTierListModal-module-scss-module__cyfVwa__form",modal:"CreateTierListModal-module-scss-module__cyfVwa__modal"})},626608,e=>{"use strict";var t=e.i(65563),a=e.i(943626),s=e.i(745558);e.i(975956);var i=e.i(219727),o=e.i(983016),r=e.i(396849),l=e.i(56771);e.s(["default",0,function({lang:e,isOpen:n,onClose:c,defaultToBeta:d=!1}){let{t:u}=(0,i.useTranslation)("client"),[m,A]=(0,s.useState)(!1),[f,_]=(0,s.useState)(""),[h,v]=(0,s.useState)(d),[b,p]=(0,s.useState)(null),{createTierList:g}=(0,o.usePersonalTierLists)(),x=(0,a.useRouter)(),B=u("My Tier List"),w=(0,s.useCallback)(async t=>{p(null),A(!0);let a=await g({gameVersion:h?"public-beta":"public",name:t});if(!a.success){switch(a.error){case"profanity":p("profanity");break;case"no_permission":case"unknown_error":p("unknown")}A(!1);return}x.push(h?`/${e}/tier-list/${a.uuid}/beta/edit`:`/${e}/tier-list/${a.uuid}/edit`)},[g,h,e,x]);return(0,t.jsx)(r.Modal,{isOpen:n,onOpenChange:c,isDismissable:!m,isKeyboardDismissDisabled:m,children:(0,t.jsxs)("div",{className:l.default.modal,children:[(0,t.jsx)(r.Heading,{slot:"title",children:u("Create a new Tier List")}),(0,t.jsxs)(r.Form,{className:l.default.form,validationBehavior:"aria",onSubmit:e=>{e.preventDefault(),w(f||B)},children:[(0,t.jsx)(r.TextField,{maxLength:255,value:f,onChange:e=>_(e),label:u("Name"),autoFocus:!0,isDisabled:m,placeholder:B,isInvalid:"profanity"===b,errorMessage:"profanity"===b?u("Your tier list name contains inappropriate language."):void 0}),(0,t.jsx)(r.Checkbox,{isSelected:h,onChange:e=>v(e),isDisabled:m,children:u("Playing on Beta?")}),"unknown"===b&&(0,t.jsx)("p",{className:l.default.error,children:u("There was an unexpected error creating your tier list. Please try again.")}),(0,t.jsxs)("div",{className:l.default.actions,children:[(0,t.jsx)(r.Button,{slot:"close",variant:"ghost",isDisabled:m,onClick:()=>A(!1),children:u("Cancel")}),(0,t.jsx)(r.Button,{type:"submit",color:"success",isDisabled:m,children:u("Create")})]})]})]})})}])},257189,e=>{"use strict";var t=e.i(745558),a=e.i(818279);let s=["1","2","3"];function i(e,t,a){return`/${e}/players/${t}/${a}`}(0,t.cache)(async(e,t)=>{let i=await fetch((0,a.apiUrl)(`/players/${e}/`)).then(e=>e.ok?e.json():[]).catch(()=>[]),o=i.find(e=>String(e.profile_id)===t);return{name:o?.steam_name??i.find(e=>e.steam_name)?.steam_name??null,profileIds:s.filter(e=>i.some(t=>String(t.profile_id)===e))}}),e.s(["PROFILE_ID_COOKIE",0,"sts2-profile-id","getMyProfileUrl",0,function(e,t,a){var s,o;let r=(s=t,o=a,s?.find(e=>String(e.profile_id)===o)??s?.[0]);return r?i(e,r.public_id,r.profile_id):`/${e}/players/me`},"getPlayerProfileUrl",0,i])},983016,e=>{"use strict";var t=e.i(283951),a=e.i(613215),s=e.i(428176),i=e.i(818279),o=e.i(495008);let r=(0,o.createServerReference)("604be898a16b490f4ff1196fd76292f3da130e3ffb",o.callServer,void 0,o.findSourceMapURL,"cloneTierListRevision"),l=(0,o.createServerReference)("60a86a29e2b57fea75886d320d06f29efb467ba244",o.callServer,void 0,o.findSourceMapURL,"createTierList"),n=(0,o.createServerReference)("600156c6946106a9600886d094199c4bca05ea0209",o.callServer,void 0,o.findSourceMapURL,"renameTierList");e.s(["useCloner",0,function(){let{mutate:e}=(0,a.useSWRConfig)();return{cloneTierList:async({uuid:t,gameVersion:a})=>{let s=await r(t,a);return s.success&&await e((0,i.apiUrl)("/tier-lists/mine/"),e=>[...e??[],{uuid:s.uuid,name:s.name}]),s}}},"usePersonalTierLists",0,function(){let{data:e,isLoading:a,mutate:o}=(0,t.default)((0,i.apiUrl)("/tier-lists/mine/"));return{tierLists:e,isLoading:a,createTierList:async({gameVersion:e,name:t})=>{let a=await l(e,t);return a.success&&(await o(e=>[...e??[],{uuid:a.uuid,name:a.name}]),s.Analytics.mpTrack("STS2 Create Tier List",{uuid:a.uuid})),a}}},"useRenamer",0,function(){let{mutate:e}=(0,a.useSWRConfig)();return{renameTierList:async({uuid:t,newName:a})=>{let s=await n(t,a);return s.success&&await e((0,i.apiUrl)("/tier-lists/mine/"),e=>e?.map(e=>e.uuid==t?{...e,name:s.name}:e)),s}}}],983016)}]); 3 4//# debugId=7bdf6f15-2f46-5ccb-2666-fc889630f8fa
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.