PageSourceSearch

https://static.snap.untapped.gg/_next/static/chunks/5294-b302f99e0de13647.js

js untapped.gg collected 2026-10-01 14:08:40 UTC 20,748 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5294],{65294:function(t,n,e){e.d(n,{Rt:function(){return tt},mB:function(){return gt}});var r=e(85893),i=e(5917),o=e(72471),a=e(25353),l=e(42295),c=e(94124),u=e(27746),s=e(12479),d=e(84578),f=e(21975),p=e(39306),h=e(30165),m=e(4268),x=e(62309),v=e(19041),g=e(51019),w=e(17581),b=e(63419),y=e(7338),j=e(60824),k=e(15888),C=e(97127),I=e(74990),P=e(98701),S=e(996),O=e(41664),_=e(67294),D=e(10615),Z=e(59016);function z(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function A(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function M(){var t=A(["\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tborder: ","px solid #433a47;\n\tborder-radius: ","px;\n\n\tul li .fa-spinner-third {\n\t\tcolor: ",";\n\t\tfont-weight: bold;\n\t\tfont-size: 18px;\n\t\t@keyframes rotate {\n\t\t\t0% {\n\t\t\t\ttransform: rotate(0deg);\n\t\t\t}\n\t\t\t100% {\n\t\t\t\ttransform: rotate(360deg);\n\t\t\t}\n\t\t}\n\t\tanimation: rotate 2s linear infinite;\n\t}\n"]);return M=function(){return t},t}function E(){var t=A(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\twidth: 100%;\n\tborder-radius: ","px ","px 0 0;\n\theight: ","px;\n\n\t@media (max-width: ","px) {\n\t\theight: ","px;\n\t}\n"]);return E=function(){return t},t}function R(){var t=A(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tdisplay: flex;\n\theight: 100%;\n\twidth: 100%;\n\tborder-radius: ","px ",'px 0 0;\n\toverflow: hidden;\n\tz-index: -1;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tbackground: #171618;\n\t\tborder-radius: ',"px ","px 0 0;\n\t\tz-index: -2;\n\t}\n\n\t> div {\n\t\tz-index: -2;\n\n\t\timg {\n\t\t\ttransform: scale(1.25);\n\t\t\tobject-position: 50% 5%;\n\t\t}\n\t}\n"]);return R=function(){return t},t}function N(){var t=A(["\n\tdisplay: flex;\n\talign-items: inherit;\n\tflex-direction: column;\n\tflex-grow: 1;\n"]);return N=function(){return t},t}function W(){var t=A(["\n\tdisplay: flex;\n\twidth: 100%;\n\tmin-height: 55px;\n\n\t@media (max-width: ","px) {\n\t\tmin-height: unset;\n\t}\n"]);return W=function(){return t},t}function q(){var t=A(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: space-between;\n\talign-items: center;\n\twidth: 100%;\n\tpadding: 10px 25px;\n"]);return q=function(){return t},t}function L(){var t=A(["\n\tcolor: white;\n\tmargin: 0;\n\tfont-family: Montserrat, sans-serif;\n\tfont-weight: 900;\n\tfont-size: 18px;\n\tflex-shrink: 1;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n"]);return L=function(){return t},t}function B(){var t=A(["\n\tcolor: ",";\n\tfont-style: italic;\n"]);return B=function(){return t},t}function T(){var t=A(["\n\tcolor: ",";\n\tfont-weight: 400;\n"]);return T=function(){return t},t}function F(){var t=A(["\n\tposition: absolute;\n\tdisplay: flex;\n\ttop: 50%;\n\tright: 25px;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n\n\t.button {\n\t\theight: 35px;\n\t\tmin-width: 35px;\n\n\t\t> img,\n\t\t> i {\n\t\t\tpadding: 0;\n\t\t\ttransform: translateX(1px);\n\t\t}\n\t}\n\n\t@media (max-width: ","px) {\n\t\tdisplay: none;\n\t}\n"]);return F=function(){return t},t}function $(){var t=A(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: space-between;\n\talign-items: center;\n\twidth: 100%;\n\tbackground: rgba(0, 0, 0, 0.6);\n\tborder-bottom: 1px solid #3a3a47;\n\tpadding-left: 10px;\n\tpadding-right: 25px;\n\tcursor: default;\n\n\t@media (max-width: 550px) {\n\t\tpadding-left: 10px;\n\t\tpadding-right: 10px;\n\n\t\t> div {\n\t\t\twidth: 100%;\n\t\t\tflex: 1;\n\n\t\t\t&:first-child {\n\t\t\t\tflex: ",";\n\t\t\t}\n\t\t}\n\t}\n"]);return $=function(){return t},t}function H(){var t=A(["\n\tmargin-left: auto;\n\n\t@media (max-width: 550px) {\n\t\tdisplay: none;\n\t}\n"]);return H=function(){return t},t}function J(){var t=A(["\n\tdisplay: flex;\n\tflex-direction: row;\n\n\t> div {\n\t\tflex: 1;\n\t}\n"]);return J=function(){return t},t}function G(){var t=A(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tpadding: 13px 15px;\n\tcursor: ",";\n\n\t> label {\n\t\tcolor: rgba(255, 255, 255, 0.6);\n\t\tfont-size: 14px;\n\t\tline-height: 1.3;\n\t\tuser-select: none;\n\t\tcursor: ",';\n\t\twhite-space: nowrap;\n\t}\n\n\t> span {\n\t\tcolor: white;\n\t\tfont-family: "Montserrat", sans-serif;\n\t\tfont-weight: bold;\n\t\tfont-size: 20px;\n\t\tmargin-top: 2px;\n\t}\n\n\t@media (max-width: 550px) {\n\t\tpadding: 8px 0;\n\t}\n']);return G=function(){return t},t}function U(){var t=A(['\n\tcolor: white;\n\tfont-family: "Montserrat", sans-serif;\n\tfont-weight: 700;\n\tfont-size: 16px;\n']);return U=function(){return t},t}function V(){var t=A(["\n\tdisplay: grid;\n\tgrid-template-columns: repeat(6, 1fr);\n\tbackground: #171618;\n\twidth: 100%;\n\tpadding: ","px ","px;\n\tborder-radius: 0 0 ","px ","px;\n\n\t@media (max-width: ","px) {\n\t\tpadding: ","px\n\t\t\t","px;\n\t}\n"]);return V=function(){return t},t}function X(){var t=A(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n\twidth: 100%;\n\tbackground: #171618;\n\tpadding: 0 ","px ","px;\n\tgap: ","px;\n\n\t> * {\n\t\tflex: 1;\n\n\t\t.button {\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t.button > span {\n\t\ttext-overflow: unset;\n\t}\n\n\t@media (max-width: 350px) {\n\t\tflex-direction: column;\n\n\t\t> * {\n\t\t\twidth: 100%;\n\t\t}\n\t}\n"]);return X=function(){return t},t}function Y(){var t=A(["\n\tcolor: ",";\n"]);return Y=function(){return t},t}function K(){var t=A(['\n\tposition: absolute;\n\ttop: 50%;\n\tright: 75px;\n\tcolor: white;\n\tfont-family: Montserrat, sans-serif;\n\tfont-weight: 700;\n\tfont-size: 16px;\n\tbackground: rgba(255, 255, 255, 0.15);\n\tpadding: 4px 12px;\n\tborder-radius: 3px;\n\ttransform: translateY(-50%);\n\ttransition: opacity ease-in-out 0.2s;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: calc(50% - 5px);\n\t\tright: -11px;\n\t\theight: 10px;\n\t\twidth: 10px;\n\t\tborder-left: 6px solid transparent;\n\t\tborder-right: 6px solid transparent;\n\t\tborder-bottom: 6px solid rgba(255, 255, 255, 0.15);\n\t\ttransform: rotate(90deg);\n\t}\n']);return K=function(){return t},t}function Q(){var t=A(["\n\tposition: absolute;\n\twhite-space: nowrap;\n\tpadding: 2px 8px;\n\tborder-radius: 3px;\n\tbackground: ",";\n\tcolor: #1c1921;\n\ttop: 0;\n\tleft: 50%;\n\ttransform: translate(-50%, -50%);\n\tfont-weight: bold;\n\tfont-size: 14px;\n\n\ti {\n\t\tmargin-right: 5px;\n\t}\n\n\t@media (max-width: 550px) {\n\t\tfont-size: 12px;\n\t\ttransform: unset;\n\t\ttop: 0;\n\t\tleft: unset;\n\t\tright: 0;\n\t\tborder-radius: 0 3px 0 3px;\n\t}\n"]);return Q=function(){return t},t}function tt(t,n,e,r){var i=e<=s.Et-n,o=i?6:12,a=(307+2*(i?4:8)-2*o*(307/(r-2*o)))*(r/t)+2;return i?(a+=152,e<350-n&&(a+=48)):a+=126,a}var nt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-0"})(M(),1,4,D.fr4.Primary),et=Z.ZP.div.withConfig({componentId:"sc-c1682d45-1"})(E(),4,4,126,s.Et,104),rt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-2"})(R(),4,4,4,4),it=Z.ZP.article.withConfig({componentId:"sc-c1682d45-3"})(N()),ot=Z.ZP.div.withConfig({componentId:"sc-c1682d45-4"})(W(),s.Et),at=Z.ZP.div.withConfig({componentId:"sc-c1682d45-5"})(q()),lt=Z.ZP.h3.withConfig({componentId:"sc-c1682d45-6"})(L()),ct=Z.ZP.span.withConfig({componentId:"sc-c1682d45-7"})(B(),D.fr4.Premium),ut=Z.ZP.span.withConfig({componentId:"sc-c1682d45-8"})(T(),D.fr4.SubHead),st=Z.ZP.div.withConfig({componentId:"sc-c1682d45-9"})(F(),s.Et),dt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-10"})($(),(function(t){var n=t.gameMode;return t.exposeWinrate||"ranked"!==n?1:2})),ft=Z.ZP.div.withConfig({componentId:"sc-c1682d45-11"})(H()),pt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-12"})(J()),ht=Z.ZP.div.withConfig({componentId:"sc-c1682d45-13"})(G(),(function(t){return t.clickable?"pointer":"unset"}),(function(t){return t.clickable?"pointer":"unset"})),mt=Z.ZP.span.withConfig({componentId:"sc-c1682d45-14"})(U()),xt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-15"})(V(),8,12,4,4,s.Et,4,6),vt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-16"})(X(),8,8,8),gt=Z.ZP.i.withConfig({componentId:"sc-c1682d45-17"})(Y(),D.fr4.Premium),wt=Z.ZP.span.withConfig({componentId:"sc-c1682d45-18"})(K()),bt=Z.ZP.div.withConfig({componentId:"sc-c1682d45-19"}
1)(Q(),D.Ttl.WarningBackground),yt=function(t){var n=t.width,e=t.highlightIds,Z=t.name,A=t.candidateName,M=t.artIds,E=t.cards,R=t.numGames,N=t.numWins,W=t.avgCubes,q=t.buildable,L=t.missingCards,B=t.allCardsOwned,T=t.urlPreviewData,F=t.showCopyDeckButton,$=void 0===F||F,H=t.showShareButton,J=void 0===H||H,G=t.forceShowStats,U=(0,I.$)().t,V=(0,x.mA)().account,X=(0,v.u)().gameMode;Z||(Z="SNAP Deck");var Y=(0,_.useRef)(null),K=(0,y.$3)("snap-decks-stats"),Q=(0,j.N)("ab-expose-winrate"),tt=(0,_.useState)(null),yt=tt[0],jt=tt[1],kt=(0,_.useState)(!1),Ct=kt[0],It=kt[1],Pt=(0,_.useState)(!1),St=Pt[0],Ot=Pt[1],_t=(0,g.mi)().playerCollection,Dt=(0,D.HzF)(s.Et+1),Zt=(0,_.useMemo)((function(){var t;return null!==(t=null===M||void 0===M?void 0:M.map((function(t){return C.Z.getRawCardArtUrl(t,256)})))&&void 0!==t?t:[]}),[null===M||void 0===M?void 0:M.join("-")]),zt=Object.keys(E),At=(0,S.qB)(Z,zt);(0,_.useEffect)((function(){if(yt){var t=setTimeout((function(){return jt(null)}),2e3);return function(){clearTimeout(t)}}}),[yt]);var Mt,Et,Rt=T?(Mt=T.manifest,"CurrentLocation"===(Et=T.timeFrame)?null!==Mt.current_location?new Date(Date.parse(Mt.current_location.start_ts)):null:"CurrentMeta"===Et?null!==Mt.current_meta_period?new Date(Date.parse(Mt.current_meta_period.start_ts)):null:"Last7Days"===Et||"Last7DaysNoHotLocation"===Et?new Date((new Date).setDate((new Date).getDate()-7)):new Date((new Date).setDate((new Date).getDate()-30))):null,Nt=T?(0,S.lk)(zt,Z,void 0,M,{avgCubes:void 0!==W&&K&&"ranked"===X?(0,D.ufS)(W,2,!0):void 0,wins:K?N:void 0,losses:K?R-N:void 0,games:R},function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){z(t,n,e[n])}))}return t}({timerange:null!==Rt?(0,m.Um)(U,Rt,new Date(Date.now())):void 0,collectionLevel:a.uK[T.collectionLevel]},"conquest"===X?{conquestTier:K?(0,l.Ez)(U,T.tierRange):void 0}:{playerRank:K?(0,c.AM)(T.tierRange,T.playerRank,T.manifest,T.timeFrame,U):void 0}),"conquest"===X):null,Wt=(0,_.useState)(!1),qt=Wt[0],Lt=Wt[1],Bt=$?(0,r.jsx)(i.Z,{name:Z,defIds:zt,buildable:null===_t||q,missingCards:L,gaLabel:"internal-untapped-decks-page-list"}):null,Tt=J?(0,r.jsxs)(r.Fragment,{children:[Dt?null:(0,r.jsx)(wt,{style:{opacity:yt?1:0},children:yt}),(0,r.jsx)(D.zxk,{ref:Y,color:"primary",icon:"share-from-square",variant:"ghost",onClick:function(){Ot(!0),Lt(!0)},onMouseOver:function(){return Lt(!0)},children:Dt?U(yt?"Copied!":"Share"):null})]}):null,Ft=(0,r.jsxs)(D.h_2,{open:St,onClose:function(){return Ot(!1)},source:Y.current,alignment:Dt?"left":"right",customOffset:Dt?[0,-30]:[0,0],popsOnTop:!!Dt,inline:!1,children:[(0,r.jsx)(D.hP3,{icon:"fal fa-arrow-right",href:At,withLinkWrapper:function(t){return(0,r.jsx)(O.default,{href:At,passHref:!0,children:t})},children:U("View Deck")}),(0,r.jsx)(D.hP3,{icon:"fal fa-share",onClick:function(){It(!0),P.zY.onShareDeckImage()},children:U("Share Deck Image")})]}),$t=(0,r.jsx)(D.ua7,{data:"Insufficient data for stats. Decks must have at least ".concat(o.RJ," games to be eligible."),position:"top",variant:"borderless",children:(0,r.jsx)(mt,{children:"N/A"})}),Ht=(0,w.rE)().isOpen,Jt=(0,d.f)(K,Ht,P.Rh.Decks,"deck-tile-lock-icon"),Gt=(0,r.jsxs)(ht,{children:[(0,r.jsx)("label",{children:U("Avg. Cubes")}),(0,r.jsx)("span",{style:(K||G)&&void 0!==W?{color:(0,m.ih)(W)}:void 0,children:R<o.RJ?$t:(K||G)&&void 0!==W?(0,r.jsx)("span",{children:(0,D.ufS)(W,2,!0)}):(0,r.jsx)(gt,{className:"fas fa-lock"})})]}),Ut="ranked"===X&&Q,Vt=(0,r.jsxs)(ht,{children:[(0,r.jsx)("label",{children:U("Winrate")}),(0,r.jsx)("span",{style:"conquest"===X&&(K||G)?{color:(0,D.LuA)(75,N/R)}:void 0,children:R<o.RJ?$t:K||Ut||G?(0,r.jsxs)(r.Fragment,{children:[(0,D.ufS)(N/R*100,1),"%"]}):(0,r.jsx)(gt,{className:"fas fa-lock"})})]}),Xt=(0,r.jsxs)(ht,{children:[(0,r.jsx)("label",{children:U("conquest"===X?"Battles":"Games")}),(0,r.jsx)("span",{children:R<o.RJ?"<".concat(o.RJ):(0,D.KQX)(R)})]});return(0,r.jsxs)(nt,{style:{borderTop:R<u.pb?"1px solid ".concat(D.Ttl.WarningBackgroun
1d):void 0},children:[(0,r.jsxs)(et,{children:[(0,r.jsx)(rt,{children:(0,r.jsx)(h.Z,{artUrls:Zt,width:n,height:130,artPadding:10,artOpacity:.15})}),(0,r.jsxs)(it,{children:[(0,r.jsx)(ot,{children:(0,r.jsxs)(at,{children:[(0,r.jsxs)(lt,{children:[Z,(null===V||void 0===V?void 0:V.is_staff)&&A?(0,r.jsx)(D.ua7,{data:"Possible archetype for this deck. (Staff only)",position:"top",style:{width:250},variant:"borderless",children:(0,r.jsx)(ct,{children:" (".concat(A,"?)")})}):null,"conquest"===X?(0,r.jsxs)(ut,{children:[" \u2013 ",U("Conquest")]}):null,"highvoltage"===X?(0,r.jsxs)(ut,{children:[" \u2013 ",U("High Voltage")]}):null]}),(0,r.jsx)(st,{children:Tt}),Dt?null:Ft]})}),R<u.pb?(0,r.jsx)(bt,{children:U("Low Game Volume")}):null,(0,r.jsxs)(dt,{exposeWinrate:Q,gameMode:X,onClick:function(t){t.preventDefault(),t.stopPropagation()},children:[Ut?(0,r.jsxs)(r.Fragment,{children:[Jt((0,r.jsx)(pt,{children:"ranked"===X?Gt:null})),Vt]}):Jt((0,r.jsxs)(pt,{children:["ranked"===X?Gt:null,Vt]})),Xt,(0,r.jsx)(ft,{children:Bt})]})]})]}),(0,r.jsx)(xt,{children:Object.values(E).sort((function(t,n){return(0,k.lv)(t.card,n.card)})).flatMap((function(t){var i=t.card,o=t.count;return Array.from({length:o},(function(t,o){return(0,r.jsx)(f.ZP,{card:i,scale:(n-24)/6/364,highlighted:(0,k.EZ)(i.defId)?f.Wh:(null===e||void 0===e?void 0:e.includes(i.defId))&&(null===e||void 0===e?void 0:e.length)!==zt.length,size:256,owned:_t?B||(0,b.Vn)(_t,i.defId):void 0},"".concat(i.defId,"-").concat(o))}))}))}),Dt?(0,r.jsxs)(vt,{children:[Tt,Ft,Bt]}):null,Nt&&Ct?(0,r.jsx)(p.Z,{open:Ct,previewUrl:Nt,onClose:function(){return It(!1)},imgAlt:Z,prefetchImage:qt}):null]})};n.ZP=(0,_.memo)(yt)},72471:function(t,n,e){e.d(n,{RJ:function(){return h},E1:function(){return m},qz:function(){return v},Oq:function(){return g},rX:function(){return w}});var r=e(7338),i=e(60824),o=e(721),a=e(89071),l=e(57888),c=e(78359),u=e(67294);function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){d(t,n,e[n])}))}return t}function p(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o=[],a=!0,l=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(c){l=!0,i=c}finally{try{a||null==e.return||e.return()}finally{if(l)throw i}}return o}}(t,n)||function(t,n){if(!t)return;if("string"===typeof t)return s(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return s(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=5,m=function(t,n,e,o){var a=(0,i.N)("ab-expose-winrate"),l=(0,r.$3)("snap-decks-stats");return(0,u.useMemo)((function(){return n&&e&&o&&null!==(r=null===t||void 0===t?void 0:t.reduce((function(t,r){return t+r.getStats(n,e,o,a,l).num_games}),0))&&void 0!==r?r:null;var r}),[n,e,o,t,a,l])},x={pool1:l.xc.Pool1,pool2:l.xc.Pool2,pool3p:l.xc.Pool3,cl8000p:l.xc.Pool3,cl16000p:l.xc.Pool3,cl24000p:l.xc.Pool3},v=function(t,n,e){var r=(0,c.h_)();return(0,u.useMemo)((function(){if(null===r||null===n||!e)return[];var i={},l={};if(null!==t){var c=!0,u=!1,s=void 0;try{for(var d,h=t[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value,v=!0,g=!1,w=void 0;try{for(var b,y=Object.values(m.cards)[Symbol.iterator]();!(v=(b=y.next()).done);v=!0){var j=b.value.card;i[j.defId]=(i[j.defId]||0)+1}}catch(F){g=!0,w=F}finally{try{v||null==y.return||y.return()}finally{if(g)throw w}}var k=m.getArchetypeId(e);k&&(l[k]=(l[k]||0)+1)}}catch(F){u=!0,s=F}finally{try{c||null==h.return||h.return()}finally{if(u)throw s}}}var C=[],I=r.getAllCardsAndLocations().sort((function(t,n){return t.name.localeCompare(n.name)})),P=!0,S=!1,O=void 0;try{for(var _,D=I[Symbol.iterator]();!(P=(_=D.next()).done);P=!0){var Z=_.value;if("card"===Z.type&&(Z.collectible||Z.defId.endsWith("Champion"))){var z={text:Z.name,type:o.xO.card,keywords:(0,a.$)(Z),data:Z,count:i[Z.defId]||0};
1Z.defId.endsWith("Champion")&&(z.text="".concat(Z.name," (Champion)")),C.push(z),C.push(f({},z,{type:o.xO.exclCard}))}}}catch(F){S=!0,O=F}finally{try{P||null==D.return||D.return()}finally{if(S)throw O}}if("no-archetypes"!==n){var A=x[e],M=Object.entries(n).sort((function(t,n){var e=p(t,2)[1],r=p(n,2)[1];return e.arch_name.localeCompare(r.arch_name)})),E=!0,R=!1,N=void 0;try{for(var W,q=M[Symbol.iterator]();!(E=(W=q.next()).done);E=!0){var L=p(W.value,2),B=L[0],T=L[1];T.active&&A===T.pool&&C.push({text:"".concat(T.arch_name),type:o.xO.archetype,keywords:[],data:{name:B,arch_id:+B},count:l[+B]||0})}}catch(F){R=!0,N=F}finally{try{E||null==q.return||q.return()}finally{if(R)throw N}}}return C}),[r,t,n,e])},g=function(t,n,e,a,l,c){var s=(0,i.N)("ab-expose-winrate"),d=(0,r.$3)("snap-decks-stats");return(0,u.useMemo)((function(){return null!==t&&a&&l&&null!==e&&void 0!==e?t.filter((function(t){var r,i;if(0===t.getStats(a,l,c,s,d).num_games)return!1;var u=null!==(i=null===(r=t.missingCards)||void 0===r?void 0:r.count)&&void 0!==i?i:12,f=!0,p=!1,h=void 0;try{for(var m,x=n[Symbol.iterator]();!(f=(m=x.next()).done);f=!0){var v=m.value,g=v.type,w=v.data;if(g===o.xO.archetype){if(t.getArchetypeId(a)!==w.arch_id)return!1}else if(g===o.xO.card){var b;if(!t.cards[w.defId])return!1;(null===(b=t.missingCards)||void 0===b?void 0:b.defIds[w.defId])&&u--}else if(g===o.xO.exclCard&&t.cards[w.defId])return!1}}catch(y){p=!0,h=y}finally{try{f||null==x.return||x.return()}finally{if(p)throw h}}return e>=u})):null}),[d,t,a,l,e,c,s,n])},w=function(t,n,e,o,a,l){var c=(0,i.N)("ab-expose-winrate"),s=(0,r.$3)("snap-decks-stats");return(0,u.useMemo)((function(){if(null===t||!n||!o||!a||!l||void 0===e)return null;var r=[[],[],[]],i=!0,u=!1,d=void 0;try{for(var f,p=t[Symbol.iterator]();!(i=(f=p.next()).done);i=!0){var m=f.value,x=m.getStats(o,a,l,c,s).num_games;x<h?r[2].push(m):x<e?r[1].push(m):r[0].push(m)}}catch(j){u=!0,d=j}finally{try{i||null==p.return||p.return()}finally{if(u)throw d}}var v=!0,g=!1,w=void 0;try{for(var b,y=r[Symbol.iterator]();!(v=(b=y.next()).done);v=!0){b.value.sort((function(t,e){var r=t.getStats(o,a,l,c,s),i=e.getStats(o,a,l,c,s),u=i.num_games-r.num_games;return"AverageCubes"===n&&void 0!==r.avg_cubes&&void 0!==i.avg_cubes?i.avg_cubes-r.avg_cubes||u:"WinRate"===n&&void 0!==r.num_wins&&void 0!==i.num_wins&&i.num_wins/i.num_games-r.num_wins/r.num_games||u}))}}catch(j){g=!0,w=j}finally{try{v||null==y.return||y.return()}finally{if(g)throw w}}return{decksAboveMinGames:r[0],decksBellowMinGames:r[1],decksWithoutStats:r[2]}}),[s,t,n,o,a,l,e,c])}},84578:function(t,n,e){e.d(n,{f:function(){return u}});var r=e(85893),i=e(49875),o=e(12479),a=e(17581),l=e(67294),c=e(10615);function u(t,n,e,u){var s=(0,a.rE)().open,d=(0,c.HzF)(o.Zs);return(0,l.useCallback)((function(o){return t||n?o:d?(0,r.jsx)("div",{onClick:function(){return s(u)},children:o}):(0,r.jsx)(c.ua7,{id:"stats-premium-tooltip",data:function(t){var n=t.close;return(0,r.jsx)(i.Z,{type:"deckStats",analyticsPage:e,analyticsIdentifier:u,variant:"dark",onOpenSubscribeModal:n})},position:"top",variant:"custom",interactive:!0,interactiveDebounce:30,hoverIntentTimespan:100,hoverIntentMinDistance:50,style:{marginBottom:"-10px"},children:o})}),[t,n,u,e,d])}}}]);

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.