1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e041fec-6cc9-45ea-9bc4-594bafaf45d6",e._sentryDebugIdIdentifier="sentry-dbid-2e041fec-6cc9-45ea-9bc4-594bafaf45d6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5024],{7757:(e,t,n)=>{n.d(t,{A:()=>C});var i=n(37876),a=n(22347),l=n(17777),r=n(47182),d=n(7800),s=n(74858),o=n(69142),c=n(7489),u=n(20500),p=n(14232),g=n(47710),h=n(85254),y=n(37783),m=function(e){return e[e.WAITING_LOGIN=0]="WAITING_LOGIN",e[e.WAITING_UC_LINK=1]="WAITING_UC_LINK",e[e.WAITING_DATA_SYNC=2]="WAITING_DATA_SYNC",e[e.SETUP_COMPLETED=3]="SETUP_COMPLETED",e}(m||{});let f=y.Ay.div.withConfig({componentId:"sc-62d6f612-0"})(["display:flex;flex-direction:column;position:relative;background:#171814;border-radius:3px;padding:30px;width:100%;max-width:900px;@media (max-width:800px){margin:40px;}"]),x=y.Ay.div.withConfig({componentId:"sc-62d6f612-1"})(["display:flex;flex-direction:column;position:relative;background:#171814;border-radius:3px;padding:20px;width:100%;a{margin-top:15px;width:calc(100% - 40px);}> div:not(:first-of-type){margin-top:30px;}"]),b=y.Ay.div.withConfig({componentId:"sc-62d6f612-2"})(["display:flex;flex-direction:row;> * > span{color:",";}&:not(:first-of-type){margin-top:40px;}@media (max-width:600px){flex-direction:column;align-items:center;text-align:center;}"],e=>{let{active:t}=e;return t?"white":"gray"}),w=y.Ay.div.withConfig({componentId:"sc-62d6f612-3"})(["display:flex;align-items:center;justify-content:center;width:45px;height:45px;min-width:45px;border:","px solid ",";border-radius:50%;color:",";box-sizing:border-box;background:",';font-family:"Russo One",sans-serif;font-size:24px;line-height:29px;@media (max-width:600px){font-size:24px;}'],e=>{let{solid:t}=e;return+!t},e=>{let{disabled:t}=e;return t?"#474747":"#91CD87"},e=>{let{disabled:t,solid:n}=e;return t&&!n?"gray":"white"},e=>{let{solid:t}=e;return t?"#419F29":"unset"}),j=y.Ay.div.withConfig({componentId:"sc-62d6f612-4"})(["display:flex;flex-direction:column;margin-left:20px;> div{display:flex;flex-direction:row;gap:10px;margin-top:8px;> a:not(:first-of-type){margin-left:15px;}}"]),I=y.Ay.span.withConfig({componentId:"sc-62d6f612-5"})(['font-family:"Open Sans",sans-serif;font-size:20px;line-height:27px;@media (max-width:600px){font-size:16px;line-height:22px;margin-top:15px;}']),C=e=>{let{onClose:t,analyticsPage:n}=e,{t:y}=(0,g.B)(),{account:m}=(0,l.F7)(),[C]=(0,s._)(),{safeHeaders:v}=(0,r.Yk)(),[A,_]=(0,p.useState)(!1),k=(0,h.e59)(600),q=null,T=(0,p.useCallback)(()=>{C&&fetch((0,o.y0)("account/collections/".concat(C.player_id)),{method:"GET",headers:v,mode:"cors",credentials:"include"}).then(e=>_(200===e.status))},[C,v]),M=()=>{T(),q=setTimeout(M,5e3)};(0,d.I)(5e3,e=>e.mtga_players.length>0,M),(0,p.useEffect)(()=>()=>{q&&clearTimeout(q)},[q]);let S=(0,p.useMemo)(()=>A?3:m&&m.upload_tokens.length>0?2:+!!m,[m,A]);3===S&&(q&&clearTimeout(q),t&&t());let L=()=>{let e=window.location.toString().split("?")[0];return"".concat(e,"?setupGuide=true")};return k?(0,i.jsxs)(x,{onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)(b,{active:0===S,children:[(0,i.jsx)(w,{disabled:S<0,solid:S>=1,children:"1"}),(0,i.jsx)(I,{children:y("Ensure you have an account and are logged in")}),0===S?(0,i.jsx)(u.N,{href:"/login?next=".concat(L()),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(h.$nd,{icon:"user-edit",color:"primary","data-analytics-label":c.Ay.getAnalyticsLabel(n,"login","setup-guide"),children:y("Login")})}):null]}),(0,i.jsxs)(b,{active:S>=1,children:[(0,i.jsx)(w,{disabled:S<1,solid:!1,children:"2"}),(0,i.jsx)(I,{children:y("Continue the setup process on a Windows PC or Mac")})]})]}):(0,i.jsxs)(f,{onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)(b,{active:0===S,children:[(0,i.jsx)(w,{disabled:S<0,solid:S>=1,children:"1"}),(0,i.jsxs)(j,{children:[(0,i.jsx)(I,{children:y("Login or create your account")}),0===S?(0,i.jsx)("div",{children:(0,i.jsx)(u.N,{href:"/login?next=".concat(L()),children:(0,i.jsx)(h.$nd,{disabled:S>0,icon:"user-edit",color:"primary","data-analytics-label":c.Ay.getAnalyticsLabel(n,"login","setup-guide"),children:y("Login")})})}):null]})]}),(0,i.jsxs)(b,{active:1===S,children:[(0,i.jsx)(w,{disabled:S<1,solid:S>=2,children:"2"}),(0,i.jsxs)(j,{children:[(0,i.jsx)(I,{children:y("Download the Untapped.gg Companion and link your account")}
1),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.A,{variant:1!==S?"ghost":"normal",color:"primary",analyticsPage:n,analyticsIdentifier:"setup-guide",children:y("Download")}),(0,i.jsx)(h.$nd,{icon:"link",variant:1!==S?"ghost":"normal",color:"primary",href:"uggcompanion://action/login","data-analytics-label":c.Ay.getAnalyticsLabel(n,"link-account","setup-guide"),children:y("Link Account")})]})]})]}),(0,i.jsxs)(b,{active:2===S,children:[(0,i.jsx)(w,{disabled:S<2,solid:S>=3,children:"3"}),(0,i.jsx)(j,{children:(0,i.jsx)(I,{children:C?y("Start MTGA with {mtga_player} and enter the main menu with the Untapped.gg Companion running",{mtga_player:C.player_name}):y("Start MTGA and enter the main menu with the Untapped.gg Companion running")})})]})]})}},7800:(e,t,n)=>{n.d(t,{I:()=>l});var i=n(17777),a=n(14232);let l=(e,t,n,l)=>{let{account:r,refresh:d}=(0,i.F7)(),[s,o]=(0,a.useState)(0),c=(0,a.useRef)(null),u=(0,a.useCallback)((e,i)=>{c.current=setTimeout(async()=>{let a=i+e;if(l&&l.loopTimeout&&a>=l.loopTimeout)return;o(a);let r=await d();if(r&&t(r)){n&&n(r);return}u(e+(l&&l.refreshIntervalIncrement?l.refreshIntervalIncrement:0),a)},e)},[null==l?void 0:l.loopTimeout,null==l?void 0:l.refreshIntervalIncrement]);return(0,a.useEffect)(()=>(r&&t(r)?n&&n(r):u(e,s),()=>{null!==c.current&&clearTimeout(c.current)}),[]),s}},20476:(e,t,n)=>{n.d(t,{X:()=>i});var i=function(e){return e.Common="common",e.Uncommon="uncommon",e.Rare="rare",e.Mythic="mythic",e}({})},22347:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(37876),a=n(42167),l=n(7489);n(14232);var r=n(47710),d=n(85254);let s=e=>{let{gaLabel:t,color:n,variant:s,size:o,disabled:c,children:u,as:p,osAware:g,analyticsPage:h,analyticsIdentifier:y,onClick:m}=e,{t:f}=(0,r.B)(),{attemptAttribution:x}=(0,a.zB)();return(0,i.jsx)(d.e2M,{color:n,variant:s,size:o,disabled:c,as:p,osAware:g,onClick:()=>{l.Ay.event({category:"UC",action:"Download",label:t}),l.Ay.onDownload(h,y),x("download-uc"),m&&m()},macAnalyticsLabel:l.Ay.getAnalyticsLabel(h,"mac-download",y),winAnalyticsLabel:l.Ay.getAnalyticsLabel(h,"win-download",y),orText:f("or"),downloadForMacText:f("Download for Mac"),downloadForWindowsText:f("Download for Windows"),children:u})}},26086:(e,t,n)=>{n.d(t,{$j:()=>h,YV:()=>g,hs:()=>f,kR:()=>y,k_:()=>p,m_:()=>c,p6:()=>m});var i=n(44157),a=n(18156),l=n(14232),r=n(85254),d=n(3153),s=n(2823),o=n(18706);class c{get(e){return this._map[e]||null}getAllCards(){return Object.values(this._map)}getMtgaJson(){return this._mtgaJson}getLowestCardRarity(e){var t;let n=null==(t=this._mtgaJson.cardsByTitleId[e.titleId])?void 0:t.filter(e=>!e.isSecondaryCard);return(null==n?void 0:n.length)?Math.min(...n.map(e=>{var t;return null!=(t=e.rarity)?t:0})):e.rarity}getMissingCards(e){let t=[],n={};return e.forEach(e=>{let i=[];Object.keys(e).forEach(t=>{var l;let r=e[+t];r.linkedFaceType&&(null==(l=r.linkedFaces)?void 0:l.length)&&[a.LinkedFace.LinkedFace_DFC_Front,a.LinkedFace.LinkedFace_MDFC_Front,a.LinkedFace.LinkedFace_AdventureParent,a.LinkedFace.LinkedFace_SpecializeParent].includes(r.linkedFaceType)&&(r={...this.getMtgaJson().getEntityByMtgaId(r.linkedFaces[0]),quantity:r.quantity});let d=Math.min(r.quantity,4),s=this.get(r.titleId);if(s){let e=n[r.titleId]||0,t=Math.min(d,d-(s.count-e));t>0&&!(0,a.isAnyBasicLand)(r)&&i.push({...r,quantity:t}),n[r.titleId]=e+d}else(0,a.isAnyBasicLand)(r)||i.push({...r,quantity:d})}),t.push(i)}),t}getOwnedCards(e){let t=[];return e.forEach(e=>{let n=[];Object.keys(e).forEach(i=>{let l=e[+i];if((0,a.isAnyBasicLand)(l))n.push(l);else{let e=this.get(l.titleId);if(e){let i=t.reduce((e,t)=>[...e,...t],[]),r=0,d=Math.min(l.quantity,e.count);e.cards.sort((e,t)=>Math.min(l.quantity,t.quantity)-Math.min(l.quantity,e.quantity)||Object.values(a.CardSet).indexOf(t.set)-Object.values(a.CardSet).indexOf(e.set)).forEach(e=>{let t=i.find(t=>t.grpid===e.grpid),a={...e,quantity:e.quantity-(t?t.quantity:0)},l=d-r;if(l>0){let e=Math.min(l,a.quantity);n.push({...a,quantity:e}),r+=e}})}}}),t.push(n)}),t}constructor(e,t){this._map={},this._mtgaJson=e,t.forEach(t=>{let{grpid:n,quantity:i}=t,a=e.getEntityByMtgaId(n);if(!a)return;let l=this._map[a.titleId];l||(l=this._map[a.titleId]={cards:[],count:0}),l.count+=i,l.cards.push({...a,quantity:i})})}}let u=()=>({common:0,uncommon:0,rare:0,mythic:0}),p=(e,t)=>{let n=t.find(t=>t.grpid===e.grpid);return{quantity:n?e.quantity-n.quantity:e.quantity,maxQuantity:n?e.quantity:void 0}},g=(e,t)=>{let n=Object.keys(e.sideboard).length?e.sideboard:e.wishboard,i=Object.assign({},t?e.wishboard:n);
1return Object.values(e.companions).forEach(e=>{i[e.titleId]&&(i[e.titleId].quantity===e.quantity?delete i[e.titleId]:i[e.titleId].quantity-=e.quantity)}),i};function h(e,t,n){let i=t.getCardsByTitleId(),l=e.getMissingCards([i.commanders,i.companions,i.mainDeck,g(i)]),r=e.getMissingCards([i.commanders,i.companions,i.mainDeck,g(i,!0)])[3],d=0,s=u(),o={},c=Object.keys(s);l.forEach(t=>t.forEach(t=>{let n=e.getLowestCardRarity(t);if(n&&n>a.CardRarity.Basic){let e=c[n-a.CardRarity.Common];s[e]+=t.quantity;let i=t.set;o[i]||(o[i]={counts:u(),total:0}),o[i].total+=t.quantity,o[i].counts[e]+=t.quantity,n!==t.rarity&&(t.rarity=n,d+=t.quantity)}}));let p=l.every(e=>0===e.length),h=p||c.every(e=>{let t=n.find(t=>t.type.toLowerCase()===e);return(t?t.quantity:0)>=s[e]});return{mainMissing:l[2],sideboardMissing:l[3],commandersMissing:l[0],companionsMissing:l[1],buildable:p,craftable:h,cardsUsingLowerCardRarity:d,requiredWildcards:s,requiredWildcardsByCardSet:o,getDeckUsingCollection:()=>{let n=(e,t)=>{let n=Object.keys(e.getCardsByGrpId().sideboard).length?e.getCardsByGrpId().sideboard:e.getCardsByGrpId().wishboard,i=Object.assign({},t?e.getCardsByGrpId().wishboard:n);
1return Object.values(e.getCardsByGrpId().companions).forEach(e=>{i[e.grpid]&&(i[e.grpid].quantity===e.quantity?delete i[e.grpid]:i[e.grpid].quantity-=e.quantity)}),i},i=e.getOwnedCards([t.getCardsByGrpId().commanders,t.getCardsByGrpId().companions,t.getCardsByGrpId().mainDeck,n(t)]),d=e.getOwnedCards([t.getCardsByGrpId().commanders,t.getCardsByGrpId().companions,t.getCardsByGrpId().mainDeck,n(t,!0)])[3],s=i[1].concat(l[1]),o=(e,t,n)=>Object.values(e).map(e=>({...e,quantity:e.quantity-t.filter(t=>t.titleId===e.titleId).reduce((e,t)=>e+t.quantity,0)-n.filter(t=>t.titleId===e.titleId).reduce((e,t)=>e+t.quantity,0)})).filter(e=>e.quantity),c=[[],[],o(t.getCardsByGrpId().mainDeck,i[2],l[2]),o(n(t),i[3],l[3])],u=e=>e.map(e=>[...Array(e.quantity).fill(e.grpid)]).reduce((e,t)=>[...e,...t],[]);return a.Deck.fromGrpIds({mainDeck:u(i[2].concat(l[2]).concat(c[2])),sideboard:u(i[3].concat(l[3]).concat(c[3]).concat(s)),wishboard:u(d.concat(r).concat(s)),commanders:u(i[0].concat(l[0])),companions:u(s)},e.getMtgaJson(),t.name,!1,!0)}}}let y=()=>{let e=(0,r.lTn)(),t=(0,r.plY)(),{data:n,loading:a}=(0,i.P)(),[d,o]=(0,l.useState)(null);(0,l.useEffect)(()=>{t&&n&&o(new c(t,n.cards))},[t,n]);let u=(0,l.useCallback)(t=>d&&n&&"true"!==e.get(s.uB)?h(d,t,n.wildcards):null,[d,n,e]),p=!n==!d,g=a||!p;return{getBuildRequirements:g?null:u,loading:g}},m=(e,t)=>{var n,i;let l=(0,a.withMTGSet)(t);return t.DigitalReleaseSet&&(l=(0,a.withMTGASet)(t)),e&&(e.legal_sets.includes(l)||e.legal_sets.includes(null!=(n=a.paperSetToThroughTheOmenpathsSet[l])?n:"")||e.legal_sets.includes(null!=(i=a.throughTheOmenpathsSetToPaperSet[l])?i:"")||e.additional_legal_cards.includes(t.titleId))&&!e.banned_and_suspended_cards.includes(t.titleId)},f=(e,t,n)=>{let i="all"!==n?(0,d.Jj)(n,d.Fr.Bo1):null,l=i?t[i].current:null;return t=>{if(t.IsRebalanced)return(0,d.oT)(n);let i=(0,a.withMTGSet)(t);return t.DigitalReleaseSet&&/[(Y2\d-)(AHA\d)]/.test(t.DigitalReleaseSet)&&(i=(0,a.withMTGASet)(t)),!((0,o.jN)(i).getTime()>Date.now())&&("SPG"===i&&t.DigitalReleaseSet?e.filter(e=>e.titleId===t.titleId).some(e=>null===l||l.legal_sets.includes(e.set)||l.additional_legal_cards.includes(e.titleId)):null===l||l.legal_sets.includes(i)||l.additional_legal_cards.includes(t.titleId))}}},44157:(e,t,n)=>{n.d(t,{P:()=>c});var i=n(36556),a=n(74858),l=n(7489),r=n(14232),d=n(2823),s=n(85254);let o={loading:!1,data:null,error:null,lastUpdated:0,lastModified:null,refresh:()=>void 0},c=(e,t)=>{var n,c;if("true"===(0,s.lTn)().get(d.uB))return o;let[u]=(0,a._)(),p=null!=(n=null!=e?e:null==u?void 0:u.player_id)?n:null,g=null!=(c=null!=t?t:null==u?void 0:u.user_id)?c:null,h=(0,i.KS)(null!==p?"account/collections/".concat(p).concat(g?"?user_id=".concat(g):""):null);return(0,r.useEffect)(()=>{h.loading||(!e||u&&e===u.player_id)&&l.Ay.setCollectionPresent(!!h.data)},[u,e,h.data,h.loading]),h}},47850:(e,t,n)=>{n.d(t,{A:()=>q,j:()=>j});var i=n(37876),a=n(7757),l=n(44157),r=n(69142),d=n(7489),s=n(14232),o=n(47710),c=n(85254),u=n(37783);let p=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-0"})(["display:flex;flex-direction:",";justify-content:center;align-items:center;gap:","px;"],e=>{let{inline:t}=e;return t?"row-reverse":"column"},e=>{let{inline:t}=e;return t?10:4}),g=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-1"})(["display:flex;align-items:center;justify-content:center;gap:6px;"]),h=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-2"})(["display:flex;align-items:center;user-select:none;gap:3px;"]),y=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-3"})(["display:flex;align-items:center;justify-content:center;> span{color:rgba(255,255,255,0.63);margin-left:10px;}.fa-times{color:rgba(255,67,67,0.63);font-size:16px;}"]),m=u.Ay.span.withConfig({componentId:"sc-a4d4f8d6-4"})(['font-family:"Open Sans",sans-serif;font-size:14px;line-height:19px;']),f=u.Ay.i.withConfig({componentId:"sc-a4d4f8d6-5"})(["color:#34ad31;font-size:14px;"]),x=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-6"})(["display:flex;flex-direction:row;align-items:center;margin:0 1px;"]),b=u.Ay.img.withConfig({componentId:"sc-a4d4f8d6-7"})(["height:26px;margin-right:2px;"]),w=u.Ay.span.withConfig({componentId:"sc-a4d4f8d6-8"})(["font-size:14px;font-weight:bold;"]),j=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-9"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;background:rgba(31,33,28,0.94);position:fixed;left:0;top:0;pointer-events:all;z-index:1;"]),I=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-10"})(["display:flex;flex-direction:column;font-size:14px;border-radius:3px;overflow:hidden;"]),C=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-11"})(["background:#1e1e1e;font-weight:bold;padding:8px 12px;width:100%;"]),v=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-12"})(["background:#0b0b0b;padding:4px 12px;display:flex;align-items:center;img{margin-right:4px;}label{margin:0;font-weight:normal;color:rgba(255,255,255,0.63);margin-right:50px;}&:not(:first-of-type){border-top:1px solid #1c1c1c;}"]),A=u.Ay.span.withConfig({componentId:"sc-a4d4f8d6-13"})(["margin-left:auto;font-weight:bold;"]);u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-14"})(["display:flex;flex-direction:column;background:#0b0b0b;text-align:center;padding:4px 12px;border-top:1px solid #1c1c1c;border-radius:3px;"]);let _=u.Ay.div.withConfig({componentId:"sc-a4d4f8d6-15"})(["display:flex;flex-direction:column;align-items:center;gap:10px;padding-bottom:5px;background:#0b0b0b;border-radius:3px;overflow:hidden;"]),k=e=>{let{collection:t}=e,{t:n}=(0,o.B)(),a=e=>{let n=t.wildcards.find(t=>t.type===e);return n?n.quantity:0};return(0,i.jsxs)(I,{children:[(0,i.jsx)(C,{children:n("Owned Wildcards")}),(0,i.jsxs)(v,{children:[(0,i.jsx)(b,{src:(0,r.cu)("wildcards/small/common.png")}),(0,i.jsx)("label",{children:n("Common")}),(0,i.jsx)(A,{children:a("common")})]}),(0,i.jsxs)(v,{children:[(0,i.jsx)(b,{src:(0,r.cu)("wildcards/small/uncommon.png")}),(0,i.jsx)("label",{children:n("Uncommon")}),(0,i.jsx)(A,{children:a("uncommon")})]}),(0,i.jsxs)(v,{children:[(0,i.jsx)(b,{src:(0,r.cu)("wildcards/small/rare.png")}),(0,i.jsx)("label",{children:n("Rare")}),(0,i.jsx)(A,{children:a("rare")})]}),(0,i.jsxs)(v,{children:[(0,i.jsx)(b,{src:(0,r.cu)("wildcards/small/mythic.png")}),(0,i.jsx)("label",{children:n("Mythic")}),(0,i.jsx)(A,{children:a("mythic")})]})]})},q=(0,s.memo)(e=>{let{buildRequirements:t,withoutSyncButton:n,inline:u,labelOnly:I,style:v,analyticsPage:A}=e,{t:q}=(0,o.B)(),{data:T,loading:M,error:S}
1=(0,l.P)(),[L,D]=(0,s.useState)(!1);if(!T&&!M&&!S)return n?null:(0,i.jsxs)(p,{inline:!!u,style:v,children:[(0,i.jsx)(c.m_M,{data:q("Want to see if you can build this deck? Sync your collection with the Untapped.gg Companion."),position:"top",variant:"borderless",style:{width:260},children:(0,i.jsx)(c.$nd,{onClick:e=>{e.preventDefault(),D(!0)},variant:"ghost",icon:"sync","data-analytics-label":d.Ay.getAnalyticsLabel(A,"sync-collection","deck-tile"),style:{maxWidth:280,textOverflow:"ellipsis"},children:q("Sync your collection")})}),L?(0,i.jsx)(c.ZLI,{id:"collection-sync-setup-modal",children:(0,i.jsx)(j,{onClick:e=>{e.stopPropagation(),D(!1)},children:(0,i.jsx)(a.A,{onClose:()=>D(!1),analyticsPage:A})})}):null]});if(null===t)return null;let B=t.buildable?(0,i.jsxs)(g,{children:[(0,i.jsx)(f,{className:"fal fa-check"}),(0,i.jsx)(m,{children:q("All cards owned")})]}):t.craftable?(0,i.jsxs)(g,{children:[(0,i.jsx)(f,{className:"fal fa-hammer"}),(0,i.jsx)(m,{children:q("Craftable")})]}):(0,i.jsxs)(y,{children:[(0,i.jsx)("i",{className:"fal fa-times"}),(0,i.jsx)(m,{children:q("Insufficient Wildcards")})]}),G=(0,i.jsx)(h,{children:Object.entries(t.requiredWildcards).map(e=>{let[t,n]=e,a=null!==T&&T.wildcards.find(e=>e.type===t),l=0===n||a&&a.quantity>=n;return(0,i.jsxs)(x,{children:[(0,i.jsx)(b,{src:(0,r.cu)("wildcards/small/".concat(t,".png")),style:{opacity:l?.3:1}}),(0,i.jsx)(w,{style:{color:l?"rgba(75, 166, 67, 0.9)":"white"},children:n})]},t)})}),O=t.cardsUsingLowerCardRarity,E=(0,i.jsxs)(C,{children:[q("Required Wildcards"),O?(0,i.jsx)("span",{children:q("* {count} {count, plural, one {{count} card} other {{count} cards}} using lower rarity print",{count:O})}):null]});return I?(0,i.jsx)(p,{inline:!!u,style:v,children:t.buildable?B:(0,i.jsx)(c.m_M,{data:(0,i.jsxs)(_,{children:[T?(0,i.jsx)(k,{collection:T}):null,E,G]}),position:"top",variant:"borderless",style:{padding:0,border:"none",background:"transparent",boxShadow:"0 0 32px 0 rgba(0, 0, 0, 1)"},children:B})}):(0,i.jsxs)(p,{inline:!!u,style:v,children:[t.buildable?null:(0,i.jsx)(c.m_M,{data:T?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{collection:T}),E]}):null,position:"top",variant:"borderless",style:{padding:0,border:"none",background:"transparent",boxShadow:"0 0 32px 0 rgba(0, 0, 0, 1)"},children:G}),B]})})}}]);
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.