lorgg-v2-components 0.0.123 → 0.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ ${l}`:o)}else throw s},onCacheKey:s=>FE(t,n,s)}}function $k(e,t,n,r){const{modif
26
26
  * vue-i18n v9.2.2
27
27
  * (c) 2022 kazuya kawaguchi
28
28
  * Released under the MIT License.
29
- */const tS="9.2.2";function nS(){let e=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(e=!0,Hi().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(e=!0,Hi().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hi().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let j2=Cn.__EXTEND_POINT__;const ts=()=>++j2,Ot={FALLBACK_TO_ROOT:j2,NOT_SUPPORTED_PRESERVE:ts(),NOT_SUPPORTED_FORMATTER:ts(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ts(),NOT_SUPPORTED_GET_CHOICE_INDEX:ts(),COMPONENT_NAME_LEGACY_COMPATIBLE:ts(),NOT_FOUND_PARENT_SCOPE:ts()},rS={[Ot.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ot.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ot.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ot.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ot.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ot.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function Yn(e,...t){return Nu(rS[e],...t)}let Y2=pe.__EXTEND_POINT__;const An=()=>++Y2,Ie={UNEXPECTED_RETURN_TYPE:Y2,INVALID_ARGUMENT:An(),MUST_BE_CALL_SETUP_TOP:An(),NOT_INSLALLED:An(),NOT_AVAILABLE_IN_LEGACY_MODE:An(),REQUIRED_VALUE:An(),INVALID_VALUE:An(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:An(),NOT_INSLALLED_WITH_PROVIDE:An(),UNEXPECTED_ERROR:An(),NOT_COMPATIBLE_LEGACY_VUE_I18N:An(),BRIDGE_SUPPORT_VUE_2_ONLY:An(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:An(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:An(),__EXTEND_POINT__:An()};function kt(e,...t){return Hu(e,null,process.env.NODE_ENV!=="production"?{messages:aS,args:t}:void 0)}const aS={[Ie.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ie.INVALID_ARGUMENT]:"Invalid argument",[Ie.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ie.NOT_INSLALLED]:"Need to install with `app.use` function",[Ie.UNEXPECTED_ERROR]:"Unexpected error",[Ie.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ie.REQUIRED_VALUE]:"Required in value: {0}",[Ie.INVALID_VALUE]:"Invalid value",[Ie.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ie.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ie.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ie.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ie.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ie.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},sh=_r("__transrateVNode"),ih=_r("__datetimeParts"),oh=_r("__numberParts"),UA=_r("__enableEmitter"),ho=_r("__disableEmitter"),q2=_r("__setPluralRules");_r("__intlifyMeta");const X2=_r("__injectWithOption");function lh(e){if(!Ke(e))return e;for(const t in e)if(Pp(e,t))if(!t.includes("."))Ke(e[t])&&lh(e[t]);else{const n=t.split("."),r=n.length-1;let a=e;for(let A=0;A<r;A++)n[A]in a||(a[n[A]]={}),a=a[n[A]];a[n[r]]=e[t],delete e[t],Ke(a[n[r]])&&lh(a[n[r]])}return e}function Ku(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:A}=t,s=ge(n)?n:je(r)?{}:{[e]:{}};if(je(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:l,resource:c}=o;l?(s[l]=s[l]||{},Ri(c,s[l])):Ri(c,s)}else z(o)&&Ri(JSON.parse(o),s)}),a==null&&A)for(const o in s)Pp(s,o)&&lh(s[o]);return s}const Cl=e=>!Ke(e)||je(e);function Ri(e,t){if(Cl(e)||Cl(t))throw kt(Ie.INVALID_VALUE);for(const n in e)Pp(e,n)&&(Cl(e[n])||Cl(t[n])?t[n]=e[n]:Ri(e[n],t[n]))}function J2(e){return e.type}function Z2(e,t,n){let r=Ke(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ku(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(A=>{e.mergeLocaleMessage(A,r[A])});{if(Ke(t.datetimeFormats)){const A=Object.keys(t.datetimeFormats);A.length&&A.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Ke(t.numberFormats)){const A=Object.keys(t.numberFormats);A.length&&A.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function q1(e){return i.createVNode(i.Text,null,e,0)}const X1="__INTLIFY_META__";let J1=0;function Z1(e){return(t,n,r,a)=>e(n,r,i.getCurrentInstance()||void 0,a)}const AS=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=J2(e)[X1])?{[X1]:t}:null};function $p(e={},t){const{__root:n}=e,r=n===void 0;let a=ke(e.inheritLocale)?e.inheritLocale:!0;const A=i.ref(n&&a?n.locale.value:z(e.locale)?e.locale:Vo),s=i.ref(n&&a?n.fallbackLocale.value:z(e.fallbackLocale)||je(e.fallbackLocale)||ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:A.value),o=i.ref(Ku(A.value,e)),l=i.ref(ge(e.datetimeFormats)?e.datetimeFormats:{[A.value]:{}}),c=i.ref(ge(e.numberFormats)?e.numberFormats:{[A.value]:{}});let u=n?n.missingWarn:ke(e.missingWarn)||Ra(e.missingWarn)?e.missingWarn:!0,d=n?n.fallbackWarn:ke(e.fallbackWarn)||Ra(e.fallbackWarn)?e.fallbackWarn:!0,f=n?n.fallbackRoot:ke(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,p=gt(e.missing)?e.missing:null,m=gt(e.missing)?Z1(e.missing):null,y=gt(e.postTranslation)?e.postTranslation:null,g=n?n.warnHtmlMessage:ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const _=n?n.modifiers:ge(e.modifiers)?e.modifiers:{};let B=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&H1(null);const O={version:tS,locale:A.value,fallbackLocale:s.value,messages:o.value,modifiers:_,pluralRules:B,missing:m===null?void 0:m,missingWarn:u,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:g,escapeParameter:v,messageResolver:e.messageResolver,__meta:{framework:"vue"}};O.datetimeFormats=l.value,O.numberFormats=c.value,O.__datetimeFormatters=ge(w)?w.__datetimeFormatters:void 0,O.__numberFormatters=ge(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(O.__v_emitter=ge(w)?w.__v_emitter:void 0);const P=Dk(O);return r&&H1(P),P})(),ui(w,A.value,s.value);function C(){return[A.value,s.value,o.value,l.value,c.value]}const k=i.computed({get:()=>A.value,set:O=>{A.value=O,w.locale=A.value}}),S=i.computed({get:()=>s.value,set:O=>{s.value=O,w.fallbackLocale=s.value,ui(w,A.value,O)}}),T=i.computed(()=>o.value),U=i.computed(()=>l.value),F=i.computed(()=>c.value);function Q(){return gt(y)?y:null}function Y(O){y=O,w.postTranslation=O}function X(){return p}function j(O){O!==null&&(m=Z1(O)),p=O,w.missing=m}function K(O,P){return O!=="translate"||!P.resolvedMessage}const oe=(O,P,Ze,et,Ar,Tn)=>{C();let Dn;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{P1(AS()),r||(w.fallbackContext=n?Tk():void 0),Dn=O(w)}finally{P1(null),r||(w.fallbackContext=void 0)}else Dn=O(w);if(Ut(Dn)&&Dn===Ru){const[zn,ii]=P();if(process.env.NODE_ENV!=="production"&&n&&z(zn)&&K(Ze,ii)&&(f&&(Vu(d,zn)||H2(u,zn))&&dn(Yn(Ot.FALLBACK_TO_ROOT,{key:zn,type:Ze})),process.env.NODE_ENV!=="production")){const{__v_emitter:ZA}=w;ZA&&f&&ZA.emit("fallback",{type:Ze,key:zn,to:"global",groupId:`${Ze}:${zn}`})}return n&&f?et(n):Ar(zn)}else{if(Tn(Dn))return Dn;throw kt(Ie.UNEXPECTED_RETURN_TYPE)}};function $(...O){return oe(P=>Reflect.apply($1,null,[P,...O]),()=>nh(...O),"translate",P=>Reflect.apply(P.t,P,[...O]),P=>P,P=>z(P))}function Ae(...O){const[P,Ze,et]=O;if(et&&!Ke(et))throw kt(Ie.INVALID_ARGUMENT);return $(P,Ze,Nt({resolvedMessage:!0},et||{}))}function ce(...O){return oe(P=>Reflect.apply(G1,null,[P,...O]),()=>rh(...O),"datetime format",P=>Reflect.apply(P.d,P,[...O]),()=>qc,P=>z(P))}function me(...O){return oe(P=>Reflect.apply(j1,null,[P,...O]),()=>ah(...O),"number format",P=>Reflect.apply(P.n,P,[...O]),()=>qc,P=>z(P))}function Ee(O){return O.map(P=>z(P)||Ut(P)||ke(P)?q1(String(P)):P)}const ne={normalize:Ee,interpolate:O=>O,type:"vnode"};function N(...O){return oe(P=>{let Ze;const et=P;try{et.processor=ne,Ze=Reflect.apply($1,null,[et,...O])}finally{et.processor=null}return Ze},()=>nh(...O),"translate",P=>P[sh](...O),P=>[q1(P)],P=>je(P))}function te(...O){return oe(P=>Reflect.apply(j1,null,[P,...O]),()=>ah(...O),"number format",P=>P[oh](...O),()=>[],P=>z(P)||je(P))}function Pe(...O){return oe(P=>Reflect.apply(G1,null,[P,...O]),()=>rh(...O),"datetime format",P=>P[ih](...O),()=>[],P=>z(P)||je(P))}function ot(O){B=O,w.pluralRules=B}function xt(O,P){const Ze=z(P)?P:A.value,et=x(Ze);return w.messageResolver(et,O)!==null}function vt(O){let P=null;const Ze=D2(w,s.value,A.value);for(let et=0;et<Ze.length;et++){const Ar=o.value[Ze[et]]||{},Tn=w.messageResolver(Ar,O);if(Tn!=null){P=Tn;break}}return P}function Qn(O){const P=vt(O);return P??(n?n.tm(O)||{}:{})}function x(O){return o.value[O]||{}}function E(O,P){o.value[O]=P,w.messages=o.value}function D(O,P){o.value[O]=o.value[O]||{},Ri(P,o.value[O]),w.messages=o.value}function W(O){return l.value[O]||{}}function ie(O,P){l.value[O]=P,w.datetimeFormats=l.value,z1(w,O,P)}function he(O,P){l.value[O]=Nt(l.value[O]||{},P),w.datetimeFormats=l.value,z1(w,O,P)}function Ft(O){return c.value[O]||{}}function ht(O,P){c.value[O]=P,w.numberFormats=c.value,Y1(w,O,P)}function Bn(O,P){c.value[O]=Nt(c.value[O]||{},P),w.numberFormats=c.value,Y1(w,O,P)}J1++,n&&Br&&(i.watch(n.locale,O=>{a&&(A.value=O,w.locale=O,ui(w,A.value,s.value))}),i.watch(n.fallbackLocale,O=>{a&&(s.value=O,w.fallbackLocale=O,ui(w,A.value,s.value))}));const $e={id:J1,locale:k,fallbackLocale:S,get inheritLocale(){return a},set inheritLocale(O){a=O,O&&n&&(A.value=n.locale.value,s.value=n.fallbackLocale.value,ui(w,A.value,s.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:T,get modifiers(){return _},get pluralRules(){return B||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(O){u=O,w.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(O){d=O,w.fallbackWarn=d},get fallbackRoot(){return f},set fallbackRoot(O){f=O},get fallbackFormat(){return h},set fallbackFormat(O){h=O,w.fallbackFormat=h},get warnHtmlMessage(){return g},set warnHtmlMessage(O){g=O,w.warnHtmlMessage=O},get escapeParameter(){return v},set escapeParameter(O){v=O,w.escapeParameter=O},t:$,getLocaleMessage:x,setLocaleMessage:E,mergeLocaleMessage:D,getPostTranslationHandler:Q,setPostTranslationHandler:Y,getMissingHandler:X,setMissingHandler:j,[q2]:ot};return $e.datetimeFormats=U,$e.numberFormats=F,$e.rt=Ae,$e.te=xt,$e.tm=Qn,$e.d=ce,$e.n=me,$e.getDateTimeFormat=W,$e.setDateTimeFormat=ie,$e.mergeDateTimeFormat=he,$e.getNumberFormat=Ft,$e.setNumberFormat=ht,$e.mergeNumberFormat=Bn,$e[X2]=e.__injectWithOption,$e[sh]=N,$e[ih]=Pe,$e[oh]=te,process.env.NODE_ENV!=="production"&&($e[UA]=O=>{w.__v_emitter=O},$e[ho]=()=>{w.__v_emitter=void 0}),$e}function sS(e){const t=z(e.locale)?e.locale:Vo,n=z(e.fallbackLocale)||je(e.fallbackLocale)||ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=gt(e.missing)?e.missing:void 0,a=ke(e.silentTranslationWarn)||Ra(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,A=ke(e.silentFallbackWarn)||Ra(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=ke(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,l=ge(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=gt(e.postTranslation)?e.postTranslation:void 0,d=z(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=ke(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&dn(Yn(Ot.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=e.messages;if(ge(e.sharedMessages)){const w=e.sharedMessages;p=Object.keys(w).reduce((C,k)=>{const S=C[k]||(C[k]={});return Nt(S,w[k]),C},p||{})}const{__i18n:m,__root:y,__injectWithOption:g}=e,v=e.datetimeFormats,_=e.numberFormats,B=e.flatJson;return{locale:t,fallbackLocale:n,messages:p,flatJson:B,datetimeFormats:v,numberFormats:_,missing:r,missingWarn:a,fallbackWarn:A,fallbackRoot:s,fallbackFormat:o,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:y,__injectWithOption:g}}function ch(e={},t){{const n=$p(sS(e)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(a){process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return ke(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=ke(a)?!a:a},get silentFallbackWarn(){return ke(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=ke(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(a){process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[A,s,o]=a,l={};let c=null,u=null;if(!z(A))throw kt(Ie.INVALID_ARGUMENT);const d=A;return z(s)?l.locale=s:je(s)?c=s:ge(s)&&(u=s),je(o)?c=o:ge(o)&&(u=o),Reflect.apply(n.t,n,[d,c||u||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[A,s,o]=a,l={plural:1};let c=null,u=null;if(!z(A))throw kt(Ie.INVALID_ARGUMENT);const d=A;return z(s)?l.locale=s:Ut(s)?l.plural=s:je(s)?c=s:ge(s)&&(u=s),z(o)?l.locale=o:je(o)?c=o:ge(o)&&(u=o),Reflect.apply(n.t,n,[d,c||u||{},l])},te(a,A){return n.te(a,A)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,A){n.setLocaleMessage(a,A)},mergeLocaleMessage(a,A){n.mergeLocaleMessage(a,A)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,A){n.setDateTimeFormat(a,A)},mergeDateTimeFormat(a,A){n.mergeDateTimeFormat(a,A)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,A){n.setNumberFormat(a,A)},mergeNumberFormat(a,A){n.mergeNumberFormat(a,A)},getChoiceIndex(a,A){return process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:A}=e;A&&A(a,r)}};return process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const A=n;A[UA]&&A[UA](a)},r.__disableEmitter=()=>{const a=n;a[ho]&&a[ho]()}),r}}const Wp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function iS({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>r=[...r,...je(a.children)?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function ew(e){return i.Fragment}const jd={name:"i18n-t",props:Nt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ut(e)||!isNaN(e)}},Wp),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||re({useScope:e.scope,__useComponent:!0});return()=>{const A=Object.keys(n).filter(d=>d!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=z(e.plural)?+e.plural:e.plural);const o=iS(t,A),l=a[sh](e.keypath,o,s),c=Nt({},r),u=z(e.tag)||Ke(e.tag)?e.tag:ew();return i.h(u,c,l)}}};function oS(e){return je(e)&&!z(e[0])}function tw(e,t,n,r){const{slots:a,attrs:A}=t;return()=>{const s={part:!0};let o={};e.locale&&(s.locale=e.locale),z(e.format)?s.key=e.format:Ke(e.format)&&(z(e.format.key)&&(s.key=e.format.key),o=Object.keys(e.format).reduce((f,h)=>n.includes(h)?Nt({},f,{[h]:e.format[h]}):f,{}));const l=r(e.value,s,o);let c=[s.key];je(l)?c=l.map((f,h)=>{const p=a[f.type],m=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return oS(m)&&(m[0].key=`${f.type}-${h}`),m}):z(l)&&(c=[l]);const u=Nt({},A),d=z(e.tag)||Ke(e.tag)?e.tag:ew();return i.h(d,u,c)}}const e0={name:"i18n-n",props:Nt({value:{type:Number,required:!0},format:{type:[String,Object]}},Wp),setup(e,t){const n=e.i18n||re({useScope:"parent",__useComponent:!0});return tw(e,t,G2,(...r)=>n[oh](...r))}},t0={name:"i18n-d",props:Nt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Wp),setup(e,t){const n=e.i18n||re({useScope:"parent",__useComponent:!0});return tw(e,t,W2,(...r)=>n[ih](...r))}};function lS(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cS(e){const t=s=>{const{instance:o,modifiers:l,value:c}=s;if(!o||!o.$)throw kt(Ie.UNEXPECTED_ERROR);const u=lS(e,o.$);process.env.NODE_ENV!=="production"&&l.preserve&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE));const d=n0(c);return[Reflect.apply(u.t,u,[...r0(d)]),u]};return{created:(s,o)=>{const[l,c]=t(o);Br&&e.global===c&&(s.__i18nWatcher=i.watch(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),s.__composer=c,s.textContent=l},unmounted:s=>{Br&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:o})=>{if(s.__composer){const l=s.__composer,c=n0(o);s.textContent=Reflect.apply(l.t,l,[...r0(c)])}},getSSRProps:s=>{const[o]=t(s);return{textContent:o}}}}function n0(e){if(z(e))return{path:e};if(ge(e)){if(!("path"in e))throw kt(Ie.REQUIRED_VALUE,"path");return e}else throw kt(Ie.INVALID_VALUE)}function r0(e){const{path:t,locale:n,args:r,choice:a,plural:A}=e,s={},o=r||{};return z(n)&&(s.locale=n),Ut(a)&&(s.plural=a),Ut(A)&&(s.plural=A),[t,o,s]}function uS(e,t,...n){const r=ge(n[0])?n[0]:{},a=!!r.useI18nComponentName,A=ke(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&A&&a&&dn(Yn(Ot.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:jd.name})),A&&(e.component(a?"i18n":jd.name,jd),e.component(e0.name,e0),e.component(t0.name,t0)),e.directive("t",cS(t))}const nw="vue-i18n: composer properties";let uh;async function dS(e,t){return new Promise((n,r)=>{try{Jk({id:"vue-devtools-plugin-vue-i18n",label:zd["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[nw],app:e},a=>{uh=a,a.on.visitComponentTree(({componentInstance:s,treeNode:o})=>{fS(s,o,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:o})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&a0(o,s.vnode.el.__VUE_I18N__):a0(o,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:zd["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Zk["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&vS(s,t)});const A=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),yS(s,t),s.nodeId==="global"){if(!A.has(s.app)){const[o]=await a.getComponentInstances(s.app);A.set(s.app,o)}a.highlightElement(A.get(s.app))}else{const o=BS(s.nodeId,t);o&&a.highlightElement(o)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&bS(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:zd["vue-i18n-timeline"],color:eS["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function rw(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function fS(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${rw(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function a0(e,t){const n=nw;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Gp(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Gp(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];gt(r)&&"source"in r?t[n]=mS(r):Ke(r)?t[n]=Gp(r):t[n]=r}),t}const hS={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function pS(e){return e.replace(/[<>"&]/g,gS)}function gS(e){return hS[e]||e}function mS(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${pS(e.source)}")`:"(?)"}`}}}function vS(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const A=t.mode==="composition"?a:a.__composer;n!==A&&e.rootNodes.push({id:A.id.toString(),label:`${rw(r)} Scope`})}}function BS(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function aw(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function yS(e,t){const n=aw(e.nodeId,t);return n&&(e.state=wS(n)),null}function wS(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",A=[{type:a,key:"messages",editable:!1,value:Gp(e.messages.value)}];t[a]=A;{const s="Datetime formats info",o=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=o;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function po(e,t){if(uh){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),uh.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function bS(e,t){const n=aw(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&z(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(z(e.state.value)||je(e.state.value)||Ke(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&ke(e.state.value)&&(n.inheritLocale=e.state.value)}}function _S(e,t,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw kt(Ie.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const A=a.i18n;a.__i18n&&(A.__i18n=a.__i18n),A.__root=t,this===this.$root?this.$i18n=A0(e,A):(A.__injectWithOption=!0,this.$i18n=ch(A))}else a.__i18n?this===this.$root?this.$i18n=A0(e,a):this.$i18n=ch({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;a.__i18nGlobal&&Z2(t,a,a),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...A)=>this.$i18n.t(...A),this.$rt=(...A)=>this.$i18n.rt(...A),this.$tc=(...A)=>this.$i18n.tc(...A),this.$te=(A,s)=>this.$i18n.te(A,s),this.$d=(...A)=>this.$i18n.d(...A),this.$n=(...A)=>this.$i18n.n(...A),this.$tm=A=>this.$i18n.tm(A)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){this.$el.__VUE_I18N__=this.$i18n.__composer;const r=this.__v_emitter=Rp(),a=this.$i18n;a.__enableEmitter&&a.__enableEmitter(r),r.on("*",po)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw kt(Ie.UNEXPECTED_ERROR);if(process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",po),delete this.__v_emitter),this.$i18n)){const a=this.$i18n;a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function A0(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[q2](t.pluralizationRules||e.pluralizationRules);const n=Ku(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const CS=_r("global-vue-i18n");function ES(e={},t){const n=__VUE_I18N_LEGACY_API__&&ke(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ke(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,A=new Map,[s,o]=kS(e,n),l=_r(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(f){return A.get(f)||null}function u(f,h){A.set(f,h)}function d(f){A.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...p){process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=f),h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),!n&&r&&LS(h,f.global),__VUE_I18N_FULL_INSTALL__&&uS(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(_S(o,o.__composer,f));const m=h.unmount;if(h.unmount=()=>{f.dispose(),m()},process.env.NODE_ENV!=="production"){if(!await dS(h,f))throw kt(Ie.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=Rp();if(n){const v=o;v.__enableEmitter&&v.__enableEmitter(g)}else{const v=o;v[UA]&&v[UA](g)}g.on("*",po)}},get global(){return o},dispose(){s.stop()},__instances:A,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function re(e={}){const t=i.getCurrentInstance();if(t==null)throw kt(Ie.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kt(Ie.NOT_INSLALLED);const n=SS(t),r=FS(n),a=J2(t),A=xS(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw kt(Ie.NOT_AVAILABLE_IN_LEGACY_MODE);return QS(t,A,r,e)}if(A==="global")return Z2(r,e,a),r;if(A==="parent"){let l=IS(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_FOUND_PARENT_SCOPE)),l=r),l}const s=n;let o=s.__getInstance(t);if(o==null){const l=Nt({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),o=$p(l),US(s,t,o),s.__setInstance(t,o)}return o}function kS(e,t,n){const r=i.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>ch(e)):r.run(()=>$p(e));if(a==null)throw kt(Ie.UNEXPECTED_ERROR);return[r,a]}}function SS(e){{const t=i.inject(e.isCE?CS:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kt(e.isCE?Ie.NOT_INSLALLED_WITH_PROVIDE:Ie.UNEXPECTED_ERROR);return t}}function xS(e,t){return Pu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function FS(e){return e.mode==="composition"?e.global:e.global.__composer}function IS(e,t,n=!1){let r=null;const a=t.root;let A=t.parent;for(;A!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(A);else if(__VUE_I18N_LEGACY_API__){const o=s.__getInstance(A);o!=null&&(r=o.__composer,n&&r&&!r[X2]&&(r=null))}if(r!=null||a===A)break;A=A.parent}return r}function US(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Rp();const a=n;a[UA]&&a[UA](r),r.on("*",po)}},t),i.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",po);const a=n;a[ho]&&a[ho](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}function QS(e,t,n,r={}){const a=t==="local",A=i.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw kt(Ie.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ke(r.inheritLocale)?r.inheritLocale:!0,o=i.ref(a&&s?n.locale.value:z(r.locale)?r.locale:Vo),l=i.ref(a&&s?n.fallbackLocale.value:z(r.fallbackLocale)||je(r.fallbackLocale)||ge(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),c=i.ref(Ku(o.value,r)),u=i.ref(ge(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),d=i.ref(ge(r.numberFormats)?r.numberFormats:{[o.value]:{}}),f=a?n.missingWarn:ke(r.missingWarn)||Ra(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:ke(r.fallbackWarn)||Ra(r.fallbackWarn)?r.fallbackWarn:!0,p=a?n.fallbackRoot:ke(r.fallbackRoot)?r.fallbackRoot:!0,m=!!r.fallbackFormat,y=gt(r.missing)?r.missing:null,g=gt(r.postTranslation)?r.postTranslation:null,v=a?n.warnHtmlMessage:ke(r.warnHtmlMessage)?r.warnHtmlMessage:!0,_=!!r.escapeParameter,B=a?n.modifiers:ge(r.modifiers)?r.modifiers:{},w=r.pluralRules||a&&n.pluralRules;function b(){return[o.value,l.value,c.value,u.value,d.value]}const C=i.computed({get:()=>A.value?A.value.locale.value:o.value,set:E=>{A.value&&(A.value.locale.value=E),o.value=E}}),k=i.computed({get:()=>A.value?A.value.fallbackLocale.value:l.value,set:E=>{A.value&&(A.value.fallbackLocale.value=E),l.value=E}}),S=i.computed(()=>A.value?A.value.messages.value:c.value),T=i.computed(()=>u.value),U=i.computed(()=>d.value);function F(){return A.value?A.value.getPostTranslationHandler():g}function Q(E){A.value&&A.value.setPostTranslationHandler(E)}function Y(){return A.value?A.value.getMissingHandler():y}function X(E){A.value&&A.value.setMissingHandler(E)}function j(E){return b(),E()}function K(...E){return A.value?j(()=>Reflect.apply(A.value.t,null,[...E])):j(()=>"")}function oe(...E){return A.value?Reflect.apply(A.value.rt,null,[...E]):""}function $(...E){return A.value?j(()=>Reflect.apply(A.value.d,null,[...E])):j(()=>"")}function Ae(...E){return A.value?j(()=>Reflect.apply(A.value.n,null,[...E])):j(()=>"")}function ce(E){return A.value?A.value.tm(E):{}}function me(E,D){return A.value?A.value.te(E,D):!1}function Ee(E){return A.value?A.value.getLocaleMessage(E):{}}function fe(E,D){A.value&&(A.value.setLocaleMessage(E,D),c.value[E]=D)}function ne(E,D){A.value&&A.value.mergeLocaleMessage(E,D)}function N(E){return A.value?A.value.getDateTimeFormat(E):{}}function te(E,D){A.value&&(A.value.setDateTimeFormat(E,D),u.value[E]=D)}function Pe(E,D){A.value&&A.value.mergeDateTimeFormat(E,D)}function ot(E){return A.value?A.value.getNumberFormat(E):{}}function xt(E,D){A.value&&(A.value.setNumberFormat(E,D),d.value[E]=D)}function vt(E,D){A.value&&A.value.mergeNumberFormat(E,D)}const Qn={get id(){return A.value?A.value.id:-1},locale:C,fallbackLocale:k,messages:S,datetimeFormats:T,numberFormats:U,get inheritLocale(){return A.value?A.value.inheritLocale:s},set inheritLocale(E){A.value&&(A.value.inheritLocale=E)},get availableLocales(){return A.value?A.value.availableLocales:Object.keys(c.value)},get modifiers(){return A.value?A.value.modifiers:B},get pluralRules(){return A.value?A.value.pluralRules:w},get isGlobal(){return A.value?A.value.isGlobal:!1},get missingWarn(){return A.value?A.value.missingWarn:f},set missingWarn(E){A.value&&(A.value.missingWarn=E)},get fallbackWarn(){return A.value?A.value.fallbackWarn:h},set fallbackWarn(E){A.value&&(A.value.missingWarn=E)},get fallbackRoot(){return A.value?A.value.fallbackRoot:p},set fallbackRoot(E){A.value&&(A.value.fallbackRoot=E)},get fallbackFormat(){return A.value?A.value.fallbackFormat:m},set fallbackFormat(E){A.value&&(A.value.fallbackFormat=E)},get warnHtmlMessage(){return A.value?A.value.warnHtmlMessage:v},set warnHtmlMessage(E){A.value&&(A.value.warnHtmlMessage=E)},get escapeParameter(){return A.value?A.value.escapeParameter:_},set escapeParameter(E){A.value&&(A.value.escapeParameter=E)},t:K,getPostTranslationHandler:F,setPostTranslationHandler:Q,getMissingHandler:Y,setMissingHandler:X,rt:oe,d:$,n:Ae,tm:ce,te:me,getLocaleMessage:Ee,setLocaleMessage:fe,mergeLocaleMessage:ne,getDateTimeFormat:N,setDateTimeFormat:te,mergeDateTimeFormat:Pe,getNumberFormat:ot,setNumberFormat:xt,mergeNumberFormat:vt};function x(E){E.locale.value=o.value,E.fallbackLocale.value=l.value,Object.keys(c.value).forEach(D=>{E.mergeLocaleMessage(D,c.value[D])}),Object.keys(u.value).forEach(D=>{E.mergeDateTimeFormat(D,u.value[D])}),Object.keys(d.value).forEach(D=>{E.mergeNumberFormat(D,d.value[D])}),E.escapeParameter=_,E.fallbackFormat=m,E.fallbackRoot=p,E.fallbackWarn=h,E.missingWarn=f,E.warnHtmlMessage=v}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw kt(Ie.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=A.value=e.proxy.$i18n.__composer;t==="global"?(o.value=E.locale.value,l.value=E.fallbackLocale.value,c.value=E.messages.value,u.value=E.datetimeFormats.value,d.value=E.numberFormats.value):a&&x(E)}),Qn}const TS=["locale","fallbackLocale","availableLocales"],DS=["t","rt","d","n","tm"];function LS(e,t){const n=Object.create(null);TS.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a)throw kt(Ie.UNEXPECTED_ERROR);const A=i.isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,A)}),e.config.globalProperties.$i18n=n,DS.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a||!a.value)throw kt(Ie.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)})}Fk(Pk);Ik(ck);Uk(D2);nS();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Hi();e.__INTLIFY__=!0,Bk(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function OS(e="en"){return ES({legacy:!1,locale:e,fallbackLocale:"en",messages:{en:{cardLottery:{setBanner:"Set As Banner",setIcon:"Set As Icon",openAnother:"Open Another"},cards:{roundDrawn:"Round Drawn",roundPlayed:"Round Played",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",mulliganWinrate:"Mull. Winrate",keptInMulligan:"Kept In Mull.",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",turnsHeld:"Turns Held",recommendedDecks:"Recommended Decks",similarCards:"Similar Cards",attack:"Attack",health:"Health",quantityOwned:"Quantity Owned",cost:"Cost"},deck:{copyDeckCode:"Copy Deck Code",deckCodeCopied:"Deck Code Copied",deleteDeck:"Delete Deck",deleteDeckConfirmation:"Are you sure you would like to delete this deck?",editDeckName:"Edit Deck Name",signInToUpload:"Please sign in to upload deck to LoR",uploadDeckToLor:"Upload Deck to Legends of Runeterra",deckUploaded:"Deck Uploaded!",updatePrivacy:"Update Deck Privacy",deckPrivate:"Currently Private",deckPublic:"Currently Public",openInDeckBuilder:"Open in Deck Builder",numManaCards:"{num} Mana Cards",simulateMulligan:"Simulate Mulligan",replaceAllCards:"Replace All Cards",replaceSelectedCards:"Replace Selected Cards",personalCost:"Personal Cost",originalCost:"Original Cost",openArchetypePage:"Open Archetype Page",shareDeck:"Share Deck",showPreview:"Show Deck Preview"},archetype:{abbreviation:"A"},leaderboard:{totalPlayers:"Total Players",lp:"LP",rank:"Rank",updated:"Updated"},general:{manaCost:"Mana Cost",cost:"Cost",regions:"Regions",clear:"Clear",clearAll:"Clear All",copy:"Copy",patch:"Patch",matches:"Matches",wins:"Wins",losses:"Losses",winrate:"Winrate",quantity:"Quantity",round:"Round",total:"Total",champion:"Champion",follower:"Follower",spell:"Spell",landmark:"Landmark",equipment:"Equipment",champions:"Champions",followers:"Followers",spells:"Spells",landmarks:"Landmarks",equipments:"Equipment",statistics:"Statistics",advanced:"Advanced",newAdvancedFilter:"New Advanced Filter",types:"Types",rarities:"Rarities",sets:"Sets",keywords:"Keywords",pastDays:"Past {count} Days",pastHours:"Past {count} Hours",pastHour:"Past Hour",season:"Season",servers:"Servers",sampleSize:"Sample Size",minimumMatches:"Minimum Matches",ranks:"Ranks",allRanks:"All Ranks",platPlus:"Platinum+",deck:"Deck",manaCurve:"Mana Curve",name:"Name",updated:"Updated",created:"Created",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",turnsHeld:"Turns Held",mulliganWinrate:"Mulligan WR",keptInMulligan:"Kept in Mulligan",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",playrate:"Playrate",deckDifferences:"Deck Differences",player:"Player",lp:"LP",change:"Change",favoriteDeck:"Favorite Deck",server:"Server",players:"Players",time:"Time",type:"Type",rarity:"Rarity",archetypes:"Archetypes",leaderboard:"Leaderboard",victory:"Victory",defeat:"Defeat",newCards:"New Cards",signIn:"Log In",syncUserData:"Sync User Data",settings:"Settings",gamesPlayed:"Games Played",premium:"Premium",renews:"Renews",expires:"Expires",getPremium:"Get Premium!",becomeTheMaster:"Become The Master",format:"Format",otherFormats:"Other Formats",queues:"Queues",save:"Save",captureImage:"Capture Image",deckCode:"Deck Code",library:"Library",openCards:"Open Cards",attackingFirst:"Attacking First",attackingSecond:"Attacking Second",overall:"Overall",list:"List",graph:"Graph",decks:"Decks",attackTokenOddsWr:"Attack Token: Odds Winrate",attackTokenEvensWr:"Attack Token: Evens Winrate",popularityTimeline:"Popularity Timeline",overallWinrate:"Overall Winrate",deckLibrary:"Deck Library",deckBuilder:"Deck Builder",inclusionTimeline:"Inclusion Timeline",winrateTimeline:"Winrate Timeline",winrateByGamesPlayed:"Winrate by Games Played",meta:"Meta",youHave:"You have: ",holdShiftForAssociated:"Hold Shift to see Associated Cards",cardArt:"Card Art",regionDistribution:"Region Distribution",noResults:"No Results",tryAgain:"Adjust filters and try again."},profile:{winrateOverTime:"Winrate over Time",winrateByChampion:"Winrate by Champion",winrateByRegion:"Winrate by Region",winrateByRoundAttacking:"Winrate by Round Attacking",winrateAgainstChampion:"Winrate Against Champion",winrateAgainstRegion:"Winrate Against Region",commonOpponents:"Common Opponents"},navigation:{searchPlaceholder:"Search Cards or Players"},"profile-overview":"Overview","profile-statistics":"Statistics","profile-decks":"Decks","card-statistics":"Statistics","card-similar-cards":"Similar Cards","card-decks":"Decks","deck-overview":"Overview","deck-cards":"Cards","deck-statistics":"Statistics","deck-top-players":"Top Players","deck-similar":"Similar Decks","deck-matchups":"Matchups","archetype-overview":"Overview","archetype-cards":"Cards","archetype-statistics":"Statistics","archetype-top-players":"Top Players","archetype-decks":"Decks","archetype-matchups":"Matchups"},de:{cardLottery:{setBanner:"😊",setIcon:"😊",openAnother:"😊"},cards:{roundDrawn:"😊",roundPlayed:"😊",card:"😊",cards:"😊",inclusion:"😊",avgCopies:"😊",mulliganWinrate:"😊",keptInMulligan:"😊",drawnWinrate:"😊",turnPlayed:"😊",turnsHeld:"😊",recommendedDecks:"😊",similarCards:"😊",attack:"😊",health:"😊",quantityOwned:"😊",cost:"😊"},deck:{copyDeckCode:"😊",deckCodeCopied:"😊",deleteDeck:"😊",deleteDeckConfirmation:"😊",editDeckName:"😊",signInToUpload:"😊",uploadDeckToLor:"😊",deckUploaded:"😊",updatePrivacy:"😊",deckPrivate:"😊",deckPublic:"😊",openInDeckBuilder:"😊",numManaCards:"😊",simulateMulligan:"😊",replaceAllCards:"😊",replaceSelectedCards:"😊",personalCost:"😊",originalCost:"😊",openArchetypePage:"😊",shareDeck:"😊",showPreview:"😊"},archetype:{abbreviation:"😊"},leaderboard:{totalPlayers:"😊",lp:"😊",rank:"😊",updated:"😊"},general:{manaCost:"😊",cost:"😊",regions:"😊",clear:"😊",clearAll:"😊",copy:"😊",patch:"😊",matches:"😊",wins:"😊",losses:"😊",winrate:"😊",quantity:"😊",round:"😊",total:"😊",champion:"😊",follower:"😊",spell:"😊",landmark:"😊",equipment:"😊",champions:"😊",followers:"😊",spells:"😊",landmarks:"😊",equipments:"😊",statistics:"😊",advanced:"😊",newAdvancedFilter:"😊",types:"😊",rarities:"😊",sets:"😊",keywords:"😊",pastDays:"😊",pastHours:"😊",pastHour:"😊",season:"😊",servers:"😊",sampleSize:"😊",minimumMatches:"😊",ranks:"😊",allRanks:"😊",platPlus:"😊",deck:"😊",manaCurve:"😊",name:"😊",updated:"😊",created:"😊",card:"😊",cards:"😊",inclusion:"😊",avgCopies:"😊",turnsHeld:"😊",mulliganWinrate:"😊",keptInMulligan:"😊",drawnWinrate:"😊",turnPlayed:"😊",playrate:"😊",deckDifferences:"😊",player:"😊",lp:"😊",change:"😊",favoriteDeck:"😊",server:"😊",players:"😊",time:"😊",type:"😊",rarity:"😊",archetypes:"😊",leaderboard:"😊",victory:"😊",defeat:"😊",newCards:"😊",signIn:"😊",syncUserData:"😊",settings:"😊",gamesPlayed:"😊",premium:"😊",renews:"😊",expires:"😊",getPremium:"😊",becomeTheMaster:"😊",format:"😊",otherFormats:"😊",queues:"😊",save:"😊",captureImage:"😊",deckCode:"😊",library:"😊",openCards:"😊",attackingFirst:"😊",attackingSecond:"😊",overall:"😊",list:"😊",graph:"😊",decks:"😊",attackTokenOddsWr:"😊",attackTokenEvensWr:"😊",popularityTimeline:"😊",overallWinrate:"😊",deckLibrary:"😊",deckBuilder:"😊",inclusionTimeline:"😊",winrateTimeline:"😊",winrateByGamesPlayed:"😊",meta:"😊",youHave:"😊",holdShiftForAssociated:"😊",cardArt:"😊"},profile:{winrateOverTime:"😊",winrateByChampion:"😊",winrateByRegion:"😊",winrateByRoundAttacking:"😊",winrateAgainstChampion:"😊",winrateAgainstRegion:"😊",commonOpponents:"😊"},navigation:{searchPlaceholder:"😊"},"profile-overview":"😊","profile-statistics":"😊","profile-decks":"😊","card-statistics":"😊","card-similar-cards":"😊","card-decks":"😊","deck-overview":"😊","deck-cards":"😊","deck-statistics":"😊","deck-top-players":"😊","deck-similar":"😊","deck-matchups":"😊","archetype-overview":"😊","archetype-cards":"😊","archetype-statistics":"😊","archetype-top-players":"😊","archetype-decks":"😊","archetype-matchups":"😊"},es:{},fr:{},it:{},ja:{},ko:{},pl:{},pt:{},th:{},tr:{},ru:{},zh:{}}})}function s0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(n),!0).forEach(function(r){Tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}function MS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NS(e,t,n){return t&&i0(e.prototype,t),n&&i0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zp(e,t){return HS(e)||VS(e,t)||Aw(e,t)||$S()}function Ko(e){return PS(e)||RS(e)||Aw(e)||KS()}function PS(e){if(Array.isArray(e))return dh(e)}function HS(e){if(Array.isArray(e))return e}function RS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,A=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(l){A=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(A)throw o}}return r}}function Aw(e,t){if(e){if(typeof e=="string")return dh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dh(e,t)}}function dh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
+ */const tS="9.2.2";function nS(){let e=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(e=!0,Hi().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(e=!0,Hi().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hi().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let j2=Cn.__EXTEND_POINT__;const ts=()=>++j2,Ot={FALLBACK_TO_ROOT:j2,NOT_SUPPORTED_PRESERVE:ts(),NOT_SUPPORTED_FORMATTER:ts(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ts(),NOT_SUPPORTED_GET_CHOICE_INDEX:ts(),COMPONENT_NAME_LEGACY_COMPATIBLE:ts(),NOT_FOUND_PARENT_SCOPE:ts()},rS={[Ot.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ot.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ot.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ot.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ot.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ot.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function Yn(e,...t){return Nu(rS[e],...t)}let Y2=pe.__EXTEND_POINT__;const An=()=>++Y2,Ue={UNEXPECTED_RETURN_TYPE:Y2,INVALID_ARGUMENT:An(),MUST_BE_CALL_SETUP_TOP:An(),NOT_INSLALLED:An(),NOT_AVAILABLE_IN_LEGACY_MODE:An(),REQUIRED_VALUE:An(),INVALID_VALUE:An(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:An(),NOT_INSLALLED_WITH_PROVIDE:An(),UNEXPECTED_ERROR:An(),NOT_COMPATIBLE_LEGACY_VUE_I18N:An(),BRIDGE_SUPPORT_VUE_2_ONLY:An(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:An(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:An(),__EXTEND_POINT__:An()};function kt(e,...t){return Hu(e,null,process.env.NODE_ENV!=="production"?{messages:aS,args:t}:void 0)}const aS={[Ue.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ue.INVALID_ARGUMENT]:"Invalid argument",[Ue.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ue.NOT_INSLALLED]:"Need to install with `app.use` function",[Ue.UNEXPECTED_ERROR]:"Unexpected error",[Ue.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ue.REQUIRED_VALUE]:"Required in value: {0}",[Ue.INVALID_VALUE]:"Invalid value",[Ue.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ue.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ue.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ue.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ue.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ue.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},sh=_r("__transrateVNode"),ih=_r("__datetimeParts"),oh=_r("__numberParts"),UA=_r("__enableEmitter"),ho=_r("__disableEmitter"),q2=_r("__setPluralRules");_r("__intlifyMeta");const X2=_r("__injectWithOption");function lh(e){if(!Ke(e))return e;for(const t in e)if(Pp(e,t))if(!t.includes("."))Ke(e[t])&&lh(e[t]);else{const n=t.split("."),r=n.length-1;let a=e;for(let A=0;A<r;A++)n[A]in a||(a[n[A]]={}),a=a[n[A]];a[n[r]]=e[t],delete e[t],Ke(a[n[r]])&&lh(a[n[r]])}return e}function Ku(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:A}=t,s=ge(n)?n:je(r)?{}:{[e]:{}};if(je(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:l,resource:c}=o;l?(s[l]=s[l]||{},Ri(c,s[l])):Ri(c,s)}else z(o)&&Ri(JSON.parse(o),s)}),a==null&&A)for(const o in s)Pp(s,o)&&lh(s[o]);return s}const Cl=e=>!Ke(e)||je(e);function Ri(e,t){if(Cl(e)||Cl(t))throw kt(Ue.INVALID_VALUE);for(const n in e)Pp(e,n)&&(Cl(e[n])||Cl(t[n])?t[n]=e[n]:Ri(e[n],t[n]))}function J2(e){return e.type}function Z2(e,t,n){let r=Ke(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ku(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(A=>{e.mergeLocaleMessage(A,r[A])});{if(Ke(t.datetimeFormats)){const A=Object.keys(t.datetimeFormats);A.length&&A.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Ke(t.numberFormats)){const A=Object.keys(t.numberFormats);A.length&&A.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function q1(e){return i.createVNode(i.Text,null,e,0)}const X1="__INTLIFY_META__";let J1=0;function Z1(e){return(t,n,r,a)=>e(n,r,i.getCurrentInstance()||void 0,a)}const AS=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=J2(e)[X1])?{[X1]:t}:null};function $p(e={},t){const{__root:n}=e,r=n===void 0;let a=ke(e.inheritLocale)?e.inheritLocale:!0;const A=i.ref(n&&a?n.locale.value:z(e.locale)?e.locale:Vo),s=i.ref(n&&a?n.fallbackLocale.value:z(e.fallbackLocale)||je(e.fallbackLocale)||ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:A.value),o=i.ref(Ku(A.value,e)),l=i.ref(ge(e.datetimeFormats)?e.datetimeFormats:{[A.value]:{}}),c=i.ref(ge(e.numberFormats)?e.numberFormats:{[A.value]:{}});let u=n?n.missingWarn:ke(e.missingWarn)||Ra(e.missingWarn)?e.missingWarn:!0,d=n?n.fallbackWarn:ke(e.fallbackWarn)||Ra(e.fallbackWarn)?e.fallbackWarn:!0,f=n?n.fallbackRoot:ke(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,p=gt(e.missing)?e.missing:null,m=gt(e.missing)?Z1(e.missing):null,y=gt(e.postTranslation)?e.postTranslation:null,g=n?n.warnHtmlMessage:ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const _=n?n.modifiers:ge(e.modifiers)?e.modifiers:{};let B=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&H1(null);const O={version:tS,locale:A.value,fallbackLocale:s.value,messages:o.value,modifiers:_,pluralRules:B,missing:m===null?void 0:m,missingWarn:u,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:g,escapeParameter:v,messageResolver:e.messageResolver,__meta:{framework:"vue"}};O.datetimeFormats=l.value,O.numberFormats=c.value,O.__datetimeFormatters=ge(w)?w.__datetimeFormatters:void 0,O.__numberFormatters=ge(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(O.__v_emitter=ge(w)?w.__v_emitter:void 0);const P=Dk(O);return r&&H1(P),P})(),ui(w,A.value,s.value);function C(){return[A.value,s.value,o.value,l.value,c.value]}const k=i.computed({get:()=>A.value,set:O=>{A.value=O,w.locale=A.value}}),S=i.computed({get:()=>s.value,set:O=>{s.value=O,w.fallbackLocale=s.value,ui(w,A.value,O)}}),T=i.computed(()=>o.value),U=i.computed(()=>l.value),F=i.computed(()=>c.value);function Q(){return gt(y)?y:null}function Y(O){y=O,w.postTranslation=O}function X(){return p}function j(O){O!==null&&(m=Z1(O)),p=O,w.missing=m}function K(O,P){return O!=="translate"||!P.resolvedMessage}const oe=(O,P,Ze,et,Ar,Tn)=>{C();let Dn;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{P1(AS()),r||(w.fallbackContext=n?Tk():void 0),Dn=O(w)}finally{P1(null),r||(w.fallbackContext=void 0)}else Dn=O(w);if(Ut(Dn)&&Dn===Ru){const[zn,ii]=P();if(process.env.NODE_ENV!=="production"&&n&&z(zn)&&K(Ze,ii)&&(f&&(Vu(d,zn)||H2(u,zn))&&dn(Yn(Ot.FALLBACK_TO_ROOT,{key:zn,type:Ze})),process.env.NODE_ENV!=="production")){const{__v_emitter:ZA}=w;ZA&&f&&ZA.emit("fallback",{type:Ze,key:zn,to:"global",groupId:`${Ze}:${zn}`})}return n&&f?et(n):Ar(zn)}else{if(Tn(Dn))return Dn;throw kt(Ue.UNEXPECTED_RETURN_TYPE)}};function $(...O){return oe(P=>Reflect.apply($1,null,[P,...O]),()=>nh(...O),"translate",P=>Reflect.apply(P.t,P,[...O]),P=>P,P=>z(P))}function Ae(...O){const[P,Ze,et]=O;if(et&&!Ke(et))throw kt(Ue.INVALID_ARGUMENT);return $(P,Ze,Nt({resolvedMessage:!0},et||{}))}function ce(...O){return oe(P=>Reflect.apply(G1,null,[P,...O]),()=>rh(...O),"datetime format",P=>Reflect.apply(P.d,P,[...O]),()=>qc,P=>z(P))}function me(...O){return oe(P=>Reflect.apply(j1,null,[P,...O]),()=>ah(...O),"number format",P=>Reflect.apply(P.n,P,[...O]),()=>qc,P=>z(P))}function Ee(O){return O.map(P=>z(P)||Ut(P)||ke(P)?q1(String(P)):P)}const ne={normalize:Ee,interpolate:O=>O,type:"vnode"};function N(...O){return oe(P=>{let Ze;const et=P;try{et.processor=ne,Ze=Reflect.apply($1,null,[et,...O])}finally{et.processor=null}return Ze},()=>nh(...O),"translate",P=>P[sh](...O),P=>[q1(P)],P=>je(P))}function te(...O){return oe(P=>Reflect.apply(j1,null,[P,...O]),()=>ah(...O),"number format",P=>P[oh](...O),()=>[],P=>z(P)||je(P))}function Pe(...O){return oe(P=>Reflect.apply(G1,null,[P,...O]),()=>rh(...O),"datetime format",P=>P[ih](...O),()=>[],P=>z(P)||je(P))}function ot(O){B=O,w.pluralRules=B}function xt(O,P){const Ze=z(P)?P:A.value,et=x(Ze);return w.messageResolver(et,O)!==null}function vt(O){let P=null;const Ze=D2(w,s.value,A.value);for(let et=0;et<Ze.length;et++){const Ar=o.value[Ze[et]]||{},Tn=w.messageResolver(Ar,O);if(Tn!=null){P=Tn;break}}return P}function Qn(O){const P=vt(O);return P??(n?n.tm(O)||{}:{})}function x(O){return o.value[O]||{}}function E(O,P){o.value[O]=P,w.messages=o.value}function D(O,P){o.value[O]=o.value[O]||{},Ri(P,o.value[O]),w.messages=o.value}function W(O){return l.value[O]||{}}function ie(O,P){l.value[O]=P,w.datetimeFormats=l.value,z1(w,O,P)}function he(O,P){l.value[O]=Nt(l.value[O]||{},P),w.datetimeFormats=l.value,z1(w,O,P)}function Ft(O){return c.value[O]||{}}function ht(O,P){c.value[O]=P,w.numberFormats=c.value,Y1(w,O,P)}function Bn(O,P){c.value[O]=Nt(c.value[O]||{},P),w.numberFormats=c.value,Y1(w,O,P)}J1++,n&&Br&&(i.watch(n.locale,O=>{a&&(A.value=O,w.locale=O,ui(w,A.value,s.value))}),i.watch(n.fallbackLocale,O=>{a&&(s.value=O,w.fallbackLocale=O,ui(w,A.value,s.value))}));const $e={id:J1,locale:k,fallbackLocale:S,get inheritLocale(){return a},set inheritLocale(O){a=O,O&&n&&(A.value=n.locale.value,s.value=n.fallbackLocale.value,ui(w,A.value,s.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:T,get modifiers(){return _},get pluralRules(){return B||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(O){u=O,w.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(O){d=O,w.fallbackWarn=d},get fallbackRoot(){return f},set fallbackRoot(O){f=O},get fallbackFormat(){return h},set fallbackFormat(O){h=O,w.fallbackFormat=h},get warnHtmlMessage(){return g},set warnHtmlMessage(O){g=O,w.warnHtmlMessage=O},get escapeParameter(){return v},set escapeParameter(O){v=O,w.escapeParameter=O},t:$,getLocaleMessage:x,setLocaleMessage:E,mergeLocaleMessage:D,getPostTranslationHandler:Q,setPostTranslationHandler:Y,getMissingHandler:X,setMissingHandler:j,[q2]:ot};return $e.datetimeFormats=U,$e.numberFormats=F,$e.rt=Ae,$e.te=xt,$e.tm=Qn,$e.d=ce,$e.n=me,$e.getDateTimeFormat=W,$e.setDateTimeFormat=ie,$e.mergeDateTimeFormat=he,$e.getNumberFormat=Ft,$e.setNumberFormat=ht,$e.mergeNumberFormat=Bn,$e[X2]=e.__injectWithOption,$e[sh]=N,$e[ih]=Pe,$e[oh]=te,process.env.NODE_ENV!=="production"&&($e[UA]=O=>{w.__v_emitter=O},$e[ho]=()=>{w.__v_emitter=void 0}),$e}function sS(e){const t=z(e.locale)?e.locale:Vo,n=z(e.fallbackLocale)||je(e.fallbackLocale)||ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=gt(e.missing)?e.missing:void 0,a=ke(e.silentTranslationWarn)||Ra(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,A=ke(e.silentFallbackWarn)||Ra(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=ke(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,l=ge(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=gt(e.postTranslation)?e.postTranslation:void 0,d=z(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=ke(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&dn(Yn(Ot.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=e.messages;if(ge(e.sharedMessages)){const w=e.sharedMessages;p=Object.keys(w).reduce((C,k)=>{const S=C[k]||(C[k]={});return Nt(S,w[k]),C},p||{})}const{__i18n:m,__root:y,__injectWithOption:g}=e,v=e.datetimeFormats,_=e.numberFormats,B=e.flatJson;return{locale:t,fallbackLocale:n,messages:p,flatJson:B,datetimeFormats:v,numberFormats:_,missing:r,missingWarn:a,fallbackWarn:A,fallbackRoot:s,fallbackFormat:o,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:y,__injectWithOption:g}}function ch(e={},t){{const n=$p(sS(e)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(a){process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return ke(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=ke(a)?!a:a},get silentFallbackWarn(){return ke(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=ke(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(a){process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[A,s,o]=a,l={};let c=null,u=null;if(!z(A))throw kt(Ue.INVALID_ARGUMENT);const d=A;return z(s)?l.locale=s:je(s)?c=s:ge(s)&&(u=s),je(o)?c=o:ge(o)&&(u=o),Reflect.apply(n.t,n,[d,c||u||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[A,s,o]=a,l={plural:1};let c=null,u=null;if(!z(A))throw kt(Ue.INVALID_ARGUMENT);const d=A;return z(s)?l.locale=s:Ut(s)?l.plural=s:je(s)?c=s:ge(s)&&(u=s),z(o)?l.locale=o:je(o)?c=o:ge(o)&&(u=o),Reflect.apply(n.t,n,[d,c||u||{},l])},te(a,A){return n.te(a,A)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,A){n.setLocaleMessage(a,A)},mergeLocaleMessage(a,A){n.mergeLocaleMessage(a,A)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,A){n.setDateTimeFormat(a,A)},mergeDateTimeFormat(a,A){n.mergeDateTimeFormat(a,A)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,A){n.setNumberFormat(a,A)},mergeNumberFormat(a,A){n.mergeNumberFormat(a,A)},getChoiceIndex(a,A){return process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:A}=e;A&&A(a,r)}};return process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const A=n;A[UA]&&A[UA](a)},r.__disableEmitter=()=>{const a=n;a[ho]&&a[ho]()}),r}}const Wp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function iS({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>r=[...r,...je(a.children)?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function ew(e){return i.Fragment}const jd={name:"i18n-t",props:Nt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ut(e)||!isNaN(e)}},Wp),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||re({useScope:e.scope,__useComponent:!0});return()=>{const A=Object.keys(n).filter(d=>d!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=z(e.plural)?+e.plural:e.plural);const o=iS(t,A),l=a[sh](e.keypath,o,s),c=Nt({},r),u=z(e.tag)||Ke(e.tag)?e.tag:ew();return i.h(u,c,l)}}};function oS(e){return je(e)&&!z(e[0])}function tw(e,t,n,r){const{slots:a,attrs:A}=t;return()=>{const s={part:!0};let o={};e.locale&&(s.locale=e.locale),z(e.format)?s.key=e.format:Ke(e.format)&&(z(e.format.key)&&(s.key=e.format.key),o=Object.keys(e.format).reduce((f,h)=>n.includes(h)?Nt({},f,{[h]:e.format[h]}):f,{}));const l=r(e.value,s,o);let c=[s.key];je(l)?c=l.map((f,h)=>{const p=a[f.type],m=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return oS(m)&&(m[0].key=`${f.type}-${h}`),m}):z(l)&&(c=[l]);const u=Nt({},A),d=z(e.tag)||Ke(e.tag)?e.tag:ew();return i.h(d,u,c)}}const e0={name:"i18n-n",props:Nt({value:{type:Number,required:!0},format:{type:[String,Object]}},Wp),setup(e,t){const n=e.i18n||re({useScope:"parent",__useComponent:!0});return tw(e,t,G2,(...r)=>n[oh](...r))}},t0={name:"i18n-d",props:Nt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Wp),setup(e,t){const n=e.i18n||re({useScope:"parent",__useComponent:!0});return tw(e,t,W2,(...r)=>n[ih](...r))}};function lS(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cS(e){const t=s=>{const{instance:o,modifiers:l,value:c}=s;if(!o||!o.$)throw kt(Ue.UNEXPECTED_ERROR);const u=lS(e,o.$);process.env.NODE_ENV!=="production"&&l.preserve&&dn(Yn(Ot.NOT_SUPPORTED_PRESERVE));const d=n0(c);return[Reflect.apply(u.t,u,[...r0(d)]),u]};return{created:(s,o)=>{const[l,c]=t(o);Br&&e.global===c&&(s.__i18nWatcher=i.watch(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),s.__composer=c,s.textContent=l},unmounted:s=>{Br&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:o})=>{if(s.__composer){const l=s.__composer,c=n0(o);s.textContent=Reflect.apply(l.t,l,[...r0(c)])}},getSSRProps:s=>{const[o]=t(s);return{textContent:o}}}}function n0(e){if(z(e))return{path:e};if(ge(e)){if(!("path"in e))throw kt(Ue.REQUIRED_VALUE,"path");return e}else throw kt(Ue.INVALID_VALUE)}function r0(e){const{path:t,locale:n,args:r,choice:a,plural:A}=e,s={},o=r||{};return z(n)&&(s.locale=n),Ut(a)&&(s.plural=a),Ut(A)&&(s.plural=A),[t,o,s]}function uS(e,t,...n){const r=ge(n[0])?n[0]:{},a=!!r.useI18nComponentName,A=ke(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&A&&a&&dn(Yn(Ot.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:jd.name})),A&&(e.component(a?"i18n":jd.name,jd),e.component(e0.name,e0),e.component(t0.name,t0)),e.directive("t",cS(t))}const nw="vue-i18n: composer properties";let uh;async function dS(e,t){return new Promise((n,r)=>{try{Jk({id:"vue-devtools-plugin-vue-i18n",label:zd["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[nw],app:e},a=>{uh=a,a.on.visitComponentTree(({componentInstance:s,treeNode:o})=>{fS(s,o,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:o})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&a0(o,s.vnode.el.__VUE_I18N__):a0(o,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:zd["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Zk["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&vS(s,t)});const A=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),yS(s,t),s.nodeId==="global"){if(!A.has(s.app)){const[o]=await a.getComponentInstances(s.app);A.set(s.app,o)}a.highlightElement(A.get(s.app))}else{const o=BS(s.nodeId,t);o&&a.highlightElement(o)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&bS(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:zd["vue-i18n-timeline"],color:eS["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function rw(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function fS(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${rw(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function a0(e,t){const n=nw;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Gp(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Gp(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];gt(r)&&"source"in r?t[n]=mS(r):Ke(r)?t[n]=Gp(r):t[n]=r}),t}const hS={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function pS(e){return e.replace(/[<>"&]/g,gS)}function gS(e){return hS[e]||e}function mS(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${pS(e.source)}")`:"(?)"}`}}}function vS(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const A=t.mode==="composition"?a:a.__composer;n!==A&&e.rootNodes.push({id:A.id.toString(),label:`${rw(r)} Scope`})}}function BS(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function aw(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function yS(e,t){const n=aw(e.nodeId,t);return n&&(e.state=wS(n)),null}function wS(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",A=[{type:a,key:"messages",editable:!1,value:Gp(e.messages.value)}];t[a]=A;{const s="Datetime formats info",o=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=o;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function po(e,t){if(uh){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),uh.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function bS(e,t){const n=aw(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&z(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(z(e.state.value)||je(e.state.value)||Ke(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&ke(e.state.value)&&(n.inheritLocale=e.state.value)}}function _S(e,t,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw kt(Ue.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const A=a.i18n;a.__i18n&&(A.__i18n=a.__i18n),A.__root=t,this===this.$root?this.$i18n=A0(e,A):(A.__injectWithOption=!0,this.$i18n=ch(A))}else a.__i18n?this===this.$root?this.$i18n=A0(e,a):this.$i18n=ch({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;a.__i18nGlobal&&Z2(t,a,a),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...A)=>this.$i18n.t(...A),this.$rt=(...A)=>this.$i18n.rt(...A),this.$tc=(...A)=>this.$i18n.tc(...A),this.$te=(A,s)=>this.$i18n.te(A,s),this.$d=(...A)=>this.$i18n.d(...A),this.$n=(...A)=>this.$i18n.n(...A),this.$tm=A=>this.$i18n.tm(A)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){this.$el.__VUE_I18N__=this.$i18n.__composer;const r=this.__v_emitter=Rp(),a=this.$i18n;a.__enableEmitter&&a.__enableEmitter(r),r.on("*",po)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw kt(Ue.UNEXPECTED_ERROR);if(process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",po),delete this.__v_emitter),this.$i18n)){const a=this.$i18n;a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function A0(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[q2](t.pluralizationRules||e.pluralizationRules);const n=Ku(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const CS=_r("global-vue-i18n");function ES(e={},t){const n=__VUE_I18N_LEGACY_API__&&ke(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ke(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,A=new Map,[s,o]=kS(e,n),l=_r(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(f){return A.get(f)||null}function u(f,h){A.set(f,h)}function d(f){A.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...p){process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=f),h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),!n&&r&&LS(h,f.global),__VUE_I18N_FULL_INSTALL__&&uS(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(_S(o,o.__composer,f));const m=h.unmount;if(h.unmount=()=>{f.dispose(),m()},process.env.NODE_ENV!=="production"){if(!await dS(h,f))throw kt(Ue.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=Rp();if(n){const v=o;v.__enableEmitter&&v.__enableEmitter(g)}else{const v=o;v[UA]&&v[UA](g)}g.on("*",po)}},get global(){return o},dispose(){s.stop()},__instances:A,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function re(e={}){const t=i.getCurrentInstance();if(t==null)throw kt(Ue.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kt(Ue.NOT_INSLALLED);const n=SS(t),r=FS(n),a=J2(t),A=xS(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw kt(Ue.NOT_AVAILABLE_IN_LEGACY_MODE);return QS(t,A,r,e)}if(A==="global")return Z2(r,e,a),r;if(A==="parent"){let l=IS(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&dn(Yn(Ot.NOT_FOUND_PARENT_SCOPE)),l=r),l}const s=n;let o=s.__getInstance(t);if(o==null){const l=Nt({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),o=$p(l),US(s,t,o),s.__setInstance(t,o)}return o}function kS(e,t,n){const r=i.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>ch(e)):r.run(()=>$p(e));if(a==null)throw kt(Ue.UNEXPECTED_ERROR);return[r,a]}}function SS(e){{const t=i.inject(e.isCE?CS:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kt(e.isCE?Ue.NOT_INSLALLED_WITH_PROVIDE:Ue.UNEXPECTED_ERROR);return t}}function xS(e,t){return Pu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function FS(e){return e.mode==="composition"?e.global:e.global.__composer}function IS(e,t,n=!1){let r=null;const a=t.root;let A=t.parent;for(;A!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(A);else if(__VUE_I18N_LEGACY_API__){const o=s.__getInstance(A);o!=null&&(r=o.__composer,n&&r&&!r[X2]&&(r=null))}if(r!=null||a===A)break;A=A.parent}return r}function US(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Rp();const a=n;a[UA]&&a[UA](r),r.on("*",po)}},t),i.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",po);const a=n;a[ho]&&a[ho](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}function QS(e,t,n,r={}){const a=t==="local",A=i.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw kt(Ue.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ke(r.inheritLocale)?r.inheritLocale:!0,o=i.ref(a&&s?n.locale.value:z(r.locale)?r.locale:Vo),l=i.ref(a&&s?n.fallbackLocale.value:z(r.fallbackLocale)||je(r.fallbackLocale)||ge(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),c=i.ref(Ku(o.value,r)),u=i.ref(ge(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),d=i.ref(ge(r.numberFormats)?r.numberFormats:{[o.value]:{}}),f=a?n.missingWarn:ke(r.missingWarn)||Ra(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:ke(r.fallbackWarn)||Ra(r.fallbackWarn)?r.fallbackWarn:!0,p=a?n.fallbackRoot:ke(r.fallbackRoot)?r.fallbackRoot:!0,m=!!r.fallbackFormat,y=gt(r.missing)?r.missing:null,g=gt(r.postTranslation)?r.postTranslation:null,v=a?n.warnHtmlMessage:ke(r.warnHtmlMessage)?r.warnHtmlMessage:!0,_=!!r.escapeParameter,B=a?n.modifiers:ge(r.modifiers)?r.modifiers:{},w=r.pluralRules||a&&n.pluralRules;function b(){return[o.value,l.value,c.value,u.value,d.value]}const C=i.computed({get:()=>A.value?A.value.locale.value:o.value,set:E=>{A.value&&(A.value.locale.value=E),o.value=E}}),k=i.computed({get:()=>A.value?A.value.fallbackLocale.value:l.value,set:E=>{A.value&&(A.value.fallbackLocale.value=E),l.value=E}}),S=i.computed(()=>A.value?A.value.messages.value:c.value),T=i.computed(()=>u.value),U=i.computed(()=>d.value);function F(){return A.value?A.value.getPostTranslationHandler():g}function Q(E){A.value&&A.value.setPostTranslationHandler(E)}function Y(){return A.value?A.value.getMissingHandler():y}function X(E){A.value&&A.value.setMissingHandler(E)}function j(E){return b(),E()}function K(...E){return A.value?j(()=>Reflect.apply(A.value.t,null,[...E])):j(()=>"")}function oe(...E){return A.value?Reflect.apply(A.value.rt,null,[...E]):""}function $(...E){return A.value?j(()=>Reflect.apply(A.value.d,null,[...E])):j(()=>"")}function Ae(...E){return A.value?j(()=>Reflect.apply(A.value.n,null,[...E])):j(()=>"")}function ce(E){return A.value?A.value.tm(E):{}}function me(E,D){return A.value?A.value.te(E,D):!1}function Ee(E){return A.value?A.value.getLocaleMessage(E):{}}function fe(E,D){A.value&&(A.value.setLocaleMessage(E,D),c.value[E]=D)}function ne(E,D){A.value&&A.value.mergeLocaleMessage(E,D)}function N(E){return A.value?A.value.getDateTimeFormat(E):{}}function te(E,D){A.value&&(A.value.setDateTimeFormat(E,D),u.value[E]=D)}function Pe(E,D){A.value&&A.value.mergeDateTimeFormat(E,D)}function ot(E){return A.value?A.value.getNumberFormat(E):{}}function xt(E,D){A.value&&(A.value.setNumberFormat(E,D),d.value[E]=D)}function vt(E,D){A.value&&A.value.mergeNumberFormat(E,D)}const Qn={get id(){return A.value?A.value.id:-1},locale:C,fallbackLocale:k,messages:S,datetimeFormats:T,numberFormats:U,get inheritLocale(){return A.value?A.value.inheritLocale:s},set inheritLocale(E){A.value&&(A.value.inheritLocale=E)},get availableLocales(){return A.value?A.value.availableLocales:Object.keys(c.value)},get modifiers(){return A.value?A.value.modifiers:B},get pluralRules(){return A.value?A.value.pluralRules:w},get isGlobal(){return A.value?A.value.isGlobal:!1},get missingWarn(){return A.value?A.value.missingWarn:f},set missingWarn(E){A.value&&(A.value.missingWarn=E)},get fallbackWarn(){return A.value?A.value.fallbackWarn:h},set fallbackWarn(E){A.value&&(A.value.missingWarn=E)},get fallbackRoot(){return A.value?A.value.fallbackRoot:p},set fallbackRoot(E){A.value&&(A.value.fallbackRoot=E)},get fallbackFormat(){return A.value?A.value.fallbackFormat:m},set fallbackFormat(E){A.value&&(A.value.fallbackFormat=E)},get warnHtmlMessage(){return A.value?A.value.warnHtmlMessage:v},set warnHtmlMessage(E){A.value&&(A.value.warnHtmlMessage=E)},get escapeParameter(){return A.value?A.value.escapeParameter:_},set escapeParameter(E){A.value&&(A.value.escapeParameter=E)},t:K,getPostTranslationHandler:F,setPostTranslationHandler:Q,getMissingHandler:Y,setMissingHandler:X,rt:oe,d:$,n:Ae,tm:ce,te:me,getLocaleMessage:Ee,setLocaleMessage:fe,mergeLocaleMessage:ne,getDateTimeFormat:N,setDateTimeFormat:te,mergeDateTimeFormat:Pe,getNumberFormat:ot,setNumberFormat:xt,mergeNumberFormat:vt};function x(E){E.locale.value=o.value,E.fallbackLocale.value=l.value,Object.keys(c.value).forEach(D=>{E.mergeLocaleMessage(D,c.value[D])}),Object.keys(u.value).forEach(D=>{E.mergeDateTimeFormat(D,u.value[D])}),Object.keys(d.value).forEach(D=>{E.mergeNumberFormat(D,d.value[D])}),E.escapeParameter=_,E.fallbackFormat=m,E.fallbackRoot=p,E.fallbackWarn=h,E.missingWarn=f,E.warnHtmlMessage=v}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw kt(Ue.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=A.value=e.proxy.$i18n.__composer;t==="global"?(o.value=E.locale.value,l.value=E.fallbackLocale.value,c.value=E.messages.value,u.value=E.datetimeFormats.value,d.value=E.numberFormats.value):a&&x(E)}),Qn}const TS=["locale","fallbackLocale","availableLocales"],DS=["t","rt","d","n","tm"];function LS(e,t){const n=Object.create(null);TS.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a)throw kt(Ue.UNEXPECTED_ERROR);const A=i.isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,A)}),e.config.globalProperties.$i18n=n,DS.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a||!a.value)throw kt(Ue.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)})}Fk(Pk);Ik(ck);Uk(D2);nS();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Hi();e.__INTLIFY__=!0,Bk(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function OS(e="en"){return ES({legacy:!1,locale:e,fallbackLocale:"en",messages:{en:{cardLottery:{setBanner:"Set As Banner",setIcon:"Set As Icon",openAnother:"Open Another"},cards:{roundDrawn:"Round Drawn",roundPlayed:"Round Played",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",mulliganWinrate:"Mull. Winrate",keptInMulligan:"Kept In Mull.",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",turnsHeld:"Turns Held",recommendedDecks:"Recommended Decks",similarCards:"Similar Cards",attack:"Attack",health:"Health",quantityOwned:"Quantity Owned",cost:"Cost"},deck:{copyDeckCode:"Copy Deck Code",deckCodeCopied:"Deck Code Copied",deleteDeck:"Delete Deck",deleteDeckConfirmation:"Are you sure you would like to delete this deck?",editDeckName:"Edit Deck Name",signInToUpload:"Please sign in to upload deck to LoR",uploadDeckToLor:"Upload Deck to Legends of Runeterra",deckUploaded:"Deck Uploaded!",updatePrivacy:"Update Deck Privacy",deckPrivate:"Currently Private",deckPublic:"Currently Public",openInDeckBuilder:"Open in Deck Builder",numManaCards:"{num} Mana Cards",simulateMulligan:"Simulate Mulligan",replaceAllCards:"Replace All Cards",replaceSelectedCards:"Replace Selected Cards",personalCost:"Personal Cost",originalCost:"Original Cost",openArchetypePage:"Open Archetype Page",shareDeck:"Share Deck",showPreview:"Show Deck Preview"},archetype:{abbreviation:"A"},leaderboard:{totalPlayers:"Total Players",lp:"LP",rank:"Rank",updated:"Updated"},general:{manaCost:"Mana Cost",cost:"Cost",regions:"Regions",clear:"Clear",clearAll:"Clear All",copy:"Copy",patch:"Patch",matches:"Matches",wins:"Wins",losses:"Losses",winrate:"Winrate",quantity:"Quantity",round:"Round",total:"Total",champion:"Champion",follower:"Follower",spell:"Spell",landmark:"Landmark",equipment:"Equipment",champions:"Champions",followers:"Followers",spells:"Spells",landmarks:"Landmarks",equipments:"Equipment",statistics:"Statistics",advanced:"Advanced",newAdvancedFilter:"New Advanced Filter",types:"Types",rarities:"Rarities",sets:"Sets",keywords:"Keywords",pastDays:"Past {count} Days",pastHours:"Past {count} Hours",pastHour:"Past Hour",season:"Season",servers:"Servers",sampleSize:"Sample Size",minimumMatches:"Minimum Matches",ranks:"Ranks",allRanks:"All Ranks",platPlus:"Platinum+",deck:"Deck",manaCurve:"Mana Curve",name:"Name",updated:"Updated",created:"Created",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",turnsHeld:"Turns Held",mulliganWinrate:"Mulligan WR",keptInMulligan:"Kept in Mulligan",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",playrate:"Playrate",deckDifferences:"Deck Differences",player:"Player",lp:"LP",change:"Change",favoriteDeck:"Favorite Deck",server:"Server",players:"Players",time:"Time",type:"Type",rarity:"Rarity",archetypes:"Archetypes",leaderboard:"Leaderboard",victory:"Victory",defeat:"Defeat",newCards:"New Cards",signIn:"Log In",syncUserData:"Sync User Data",settings:"Settings",gamesPlayed:"Games Played",premium:"Premium",renews:"Renews",expires:"Expires",getPremium:"Get Premium!",becomeTheMaster:"Become The Master",format:"Format",otherFormats:"Other Formats",queues:"Queues",save:"Save",captureImage:"Capture Image",deckCode:"Deck Code",library:"Library",openCards:"Open Cards",attackingFirst:"Attacking First",attackingSecond:"Attacking Second",overall:"Overall",list:"List",graph:"Graph",decks:"Decks",attackTokenOddsWr:"Attack Token: Odds Winrate",attackTokenEvensWr:"Attack Token: Evens Winrate",popularityTimeline:"Popularity Timeline",overallWinrate:"Overall Winrate",deckLibrary:"Deck Library",deckBuilder:"Deck Builder",inclusionTimeline:"Inclusion Timeline",winrateTimeline:"Winrate Timeline",winrateByGamesPlayed:"Winrate by Games Played",meta:"Meta",youHave:"You have: ",holdShiftForAssociated:"Hold Shift to see Associated Cards",cardArt:"Card Art",regionDistribution:"Region Distribution",noResults:"No Results",tryAgain:"Adjust filters and try again."},profile:{winrateOverTime:"Winrate over Time",winrateByChampion:"Winrate by Champion",winrateByRegion:"Winrate by Region",winrateByRoundAttacking:"Winrate by Round Attacking",winrateAgainstChampion:"Winrate Against Champion",winrateAgainstRegion:"Winrate Against Region",commonOpponents:"Common Opponents"},navigation:{searchPlaceholder:"Search Cards or Players"},"profile-overview":"Overview","profile-statistics":"Statistics","profile-decks":"Decks","card-statistics":"Statistics","card-similar-cards":"Similar Cards","card-decks":"Decks","deck-overview":"Overview","deck-cards":"Cards","deck-statistics":"Statistics","deck-top-players":"Top Players","deck-similar":"Similar Decks","deck-matchups":"Matchups","archetype-overview":"Overview","archetype-cards":"Cards","archetype-statistics":"Statistics","archetype-top-players":"Top Players","archetype-decks":"Decks","archetype-matchups":"Matchups"},de:{cardLottery:{setBanner:"😊",setIcon:"😊",openAnother:"😊"},cards:{roundDrawn:"😊",roundPlayed:"😊",card:"😊",cards:"😊",inclusion:"😊",avgCopies:"😊",mulliganWinrate:"😊",keptInMulligan:"😊",drawnWinrate:"😊",turnPlayed:"😊",turnsHeld:"😊",recommendedDecks:"😊",similarCards:"😊",attack:"😊",health:"😊",quantityOwned:"😊",cost:"😊"},deck:{copyDeckCode:"😊",deckCodeCopied:"😊",deleteDeck:"😊",deleteDeckConfirmation:"😊",editDeckName:"😊",signInToUpload:"😊",uploadDeckToLor:"😊",deckUploaded:"😊",updatePrivacy:"😊",deckPrivate:"😊",deckPublic:"😊",openInDeckBuilder:"😊",numManaCards:"😊",simulateMulligan:"😊",replaceAllCards:"😊",replaceSelectedCards:"😊",personalCost:"😊",originalCost:"😊",openArchetypePage:"😊",shareDeck:"😊",showPreview:"😊"},archetype:{abbreviation:"😊"},leaderboard:{totalPlayers:"😊",lp:"😊",rank:"😊",updated:"😊"},general:{manaCost:"😊",cost:"😊",regions:"😊",clear:"😊",clearAll:"😊",copy:"😊",patch:"😊",matches:"😊",wins:"😊",losses:"😊",winrate:"😊",quantity:"😊",round:"😊",total:"😊",champion:"😊",follower:"😊",spell:"😊",landmark:"😊",equipment:"😊",champions:"😊",followers:"😊",spells:"😊",landmarks:"😊",equipments:"😊",statistics:"😊",advanced:"😊",newAdvancedFilter:"😊",types:"😊",rarities:"😊",sets:"😊",keywords:"😊",pastDays:"😊",pastHours:"😊",pastHour:"😊",season:"😊",servers:"😊",sampleSize:"😊",minimumMatches:"😊",ranks:"😊",allRanks:"😊",platPlus:"😊",deck:"😊",manaCurve:"😊",name:"😊",updated:"😊",created:"😊",card:"😊",cards:"😊",inclusion:"😊",avgCopies:"😊",turnsHeld:"😊",mulliganWinrate:"😊",keptInMulligan:"😊",drawnWinrate:"😊",turnPlayed:"😊",playrate:"😊",deckDifferences:"😊",player:"😊",lp:"😊",change:"😊",favoriteDeck:"😊",server:"😊",players:"😊",time:"😊",type:"😊",rarity:"😊",archetypes:"😊",leaderboard:"😊",victory:"😊",defeat:"😊",newCards:"😊",signIn:"😊",syncUserData:"😊",settings:"😊",gamesPlayed:"😊",premium:"😊",renews:"😊",expires:"😊",getPremium:"😊",becomeTheMaster:"😊",format:"😊",otherFormats:"😊",queues:"😊",save:"😊",captureImage:"😊",deckCode:"😊",library:"😊",openCards:"😊",attackingFirst:"😊",attackingSecond:"😊",overall:"😊",list:"😊",graph:"😊",decks:"😊",attackTokenOddsWr:"😊",attackTokenEvensWr:"😊",popularityTimeline:"😊",overallWinrate:"😊",deckLibrary:"😊",deckBuilder:"😊",inclusionTimeline:"😊",winrateTimeline:"😊",winrateByGamesPlayed:"😊",meta:"😊",youHave:"😊",holdShiftForAssociated:"😊",cardArt:"😊"},profile:{winrateOverTime:"😊",winrateByChampion:"😊",winrateByRegion:"😊",winrateByRoundAttacking:"😊",winrateAgainstChampion:"😊",winrateAgainstRegion:"😊",commonOpponents:"😊"},navigation:{searchPlaceholder:"😊"},"profile-overview":"😊","profile-statistics":"😊","profile-decks":"😊","card-statistics":"😊","card-similar-cards":"😊","card-decks":"😊","deck-overview":"😊","deck-cards":"😊","deck-statistics":"😊","deck-top-players":"😊","deck-similar":"😊","deck-matchups":"😊","archetype-overview":"😊","archetype-cards":"😊","archetype-statistics":"😊","archetype-top-players":"😊","archetype-decks":"😊","archetype-matchups":"😊"},es:{},fr:{},it:{},ja:{},ko:{},pl:{},pt:{},th:{},tr:{},ru:{},zh:{}}})}function s0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(n),!0).forEach(function(r){Tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}function MS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NS(e,t,n){return t&&i0(e.prototype,t),n&&i0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zp(e,t){return HS(e)||VS(e,t)||Aw(e,t)||$S()}function Ko(e){return PS(e)||RS(e)||Aw(e)||KS()}function PS(e){if(Array.isArray(e))return dh(e)}function HS(e){if(Array.isArray(e))return e}function RS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,A=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(l){A=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(A)throw o}}return r}}function Aw(e,t){if(e){if(typeof e=="string")return dh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dh(e,t)}}function dh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30
30
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
31
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o0=function(){},jp={},sw={},iw=null,ow={mark:o0,measure:o0};try{typeof window<"u"&&(jp=window),typeof document<"u"&&(sw=document),typeof MutationObserver<"u"&&(iw=MutationObserver),typeof performance<"u"&&(ow=performance)}catch{}var WS=jp.navigator||{},l0=WS.userAgent,c0=l0===void 0?"":l0,Va=jp,at=sw,u0=iw,El=ow;Va.document;var Aa=!!at.documentElement&&!!at.head&&typeof at.addEventListener=="function"&&typeof at.createElement=="function",lw=~c0.indexOf("MSIE")||~c0.indexOf("Trident/"),kl,Sl,xl,Fl,Il,Zr="___FONT_AWESOME___",fh=16,cw="fa",uw="svg-inline--fa",QA="data-fa-i2svg",hh="data-fa-pseudo-element",GS="data-fa-pseudo-element-pending",Yp="data-prefix",qp="data-icon",d0="fontawesome-i2svg",zS="async",jS=["HTML","HEAD","STYLE","SCRIPT"],dw=function(){try{return process.env.NODE_ENV==="production"}catch{return!1}}(),rt="classic",pt="sharp",Xp=[rt,pt];function $o(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[rt]}})}var go=$o((kl={},Tt(kl,rt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Tt(kl,pt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),kl)),mo=$o((Sl={},Tt(Sl,rt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Tt(Sl,pt,{solid:"fass",regular:"fasr",light:"fasl"}),Sl)),vo=$o((xl={},Tt(xl,rt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Tt(xl,pt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),xl)),YS=$o((Fl={},Tt(Fl,rt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Tt(Fl,pt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Fl)),qS=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,fw="fa-layers-text",XS=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,JS=$o((Il={},Tt(Il,rt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Tt(Il,pt,{900:"fass",400:"fasr",300:"fasl"}),Il)),hw=[1,2,3,4,5,6,7,8,9,10],ZS=hw.concat([11,12,13,14,15,16,17,18,19,20]),ex=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],vA={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Bo=new Set;Object.keys(mo[rt]).map(Bo.add.bind(Bo));Object.keys(mo[pt]).map(Bo.add.bind(Bo));var tx=[].concat(Xp,Ko(Bo),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",vA.GROUP,vA.SWAP_OPACITY,vA.PRIMARY,vA.SECONDARY]).concat(hw.map(function(e){return"".concat(e,"x")})).concat(ZS.map(function(e){return"w-".concat(e)})),Vi=Va.FontAwesomeConfig||{};function nx(e){var t=at.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function rx(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(at&&typeof at.querySelector=="function"){var ax=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];ax.forEach(function(e){var t=zp(e,2),n=t[0],r=t[1],a=rx(nx(n));a!=null&&(Vi[r]=a)})}var pw={styleDefault:"solid",familyDefault:"classic",cssPrefix:cw,replacementClass:uw,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Vi.familyPrefix&&(Vi.cssPrefix=Vi.familyPrefix);var Ls=Z(Z({},pw),Vi);Ls.autoReplaceSvg||(Ls.observeMutations=!1);var se={};Object.keys(pw).forEach(function(e){Object.defineProperty(se,e,{enumerable:!0,set:function(n){Ls[e]=n,Ki.forEach(function(r){return r(se)})},get:function(){return Ls[e]}})});Object.defineProperty(se,"familyPrefix",{enumerable:!0,set:function(t){Ls.cssPrefix=t,Ki.forEach(function(n){return n(se)})},get:function(){return Ls.cssPrefix}});Va.FontAwesomeConfig=se;var Ki=[];function Ax(e){return Ki.push(e),function(){Ki.splice(Ki.indexOf(e),1)}}var pa=fh,pr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function sx(e){if(!(!e||!Aa)){var t=at.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=at.head.childNodes,r=null,a=n.length-1;a>-1;a--){var A=n[a],s=(A.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=A)}return at.head.insertBefore(t,r),e}}var ix="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function yo(){for(var e=12,t="";e-- >0;)t+=ix[Math.random()*62|0];return t}function qs(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Jp(e){return e.classList?qs(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function gw(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ox(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(gw(e[n]),'" ')},"").trim()}function $u(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zp(e){return e.size!==pr.size||e.x!==pr.x||e.y!==pr.y||e.rotate!==pr.rotate||e.flipX||e.flipY}function lx(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},A="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(A," ").concat(s," ").concat(o)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:c}}function cx(e){var t=e.transform,n=e.width,r=n===void 0?fh:n,a=e.height,A=a===void 0?fh:a,s=e.startCentered,o=s===void 0?!1:s,l="";return o&&lw?l+="translate(".concat(t.x/pa-r/2,"em, ").concat(t.y/pa-A/2,"em) "):o?l+="translate(calc(-50% + ".concat(t.x/pa,"em), calc(-50% + ").concat(t.y/pa,"em)) "):l+="translate(".concat(t.x/pa,"em, ").concat(t.y/pa,"em) "),l+="scale(".concat(t.size/pa*(t.flipX?-1:1),", ").concat(t.size/pa*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var ux=`:root, :host {
32
32
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
@@ -806,8 +806,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
806
806
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
807
807
 
808
808
  `,`1) content: element.innerHTML
809
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var o=a.reduce(function(l,c){var u=c&&TI(c,r);return u&&l.push(u),l},[]);return Co(e)?o[0]:o}At.defaultProps=kn;At.setDefaultProps=FI;At.currentInput=fr;Object.assign({},Yw,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});At.setDefaultProps({render:fb});const hb={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},userCardQuantity:{type:Object,required:!1,default:void 0},showTippyLocation:{type:String,required:!1,default:null}},DI=["alt","src"],LI={key:0,class:"quantity-ticks-container"},OI={key:0},MI={key:0,class:"card-info-quantity-possessed"},NI={key:1,class:"line"},PI={class:"card-info-title"},HI={class:"card-info-text"},RI={key:2,class:"line"},VI={key:3,class:"card-info-text"},KI={key:1,class:"associated-card-container"},$I=i.defineComponent({__name:"CardItem",props:hb,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(null);let A=null;const s=i.ref(!1),o=Ro(t.cardProp,t.cardCodeProp),l=i.computed(()=>o.value===void 0?null:t.quantityNeeded!=null&&t.userCardQuantity!=null&&o.value.cardCode in t.userCardQuantity&&t.quantityNeeded>t.userCardQuantity[o.value.cardCode]?"bad":null),c=i.computed(()=>{if(o.value===void 0)return[];const g=[];if(t.isRoot)for(const v of o.value.associatedCardRefs)g.push(jt().cardJsonObject[v]);return g}),u=i.computed(()=>{if(o.value===void 0)return[];const g=[];for(const v of o.value.keywordRefs){const _=we().dataJson.keywords.find(B=>B.nameRef===v);_&&g.push(_)}return g}),d=i.computed(()=>t.isRoot&&(t.userCardQuantity!=null||o.value&&(o.value.keywordRefs.length>0||o.value.associatedCardRefs.length>0))),f=i.computed(()=>{var g;return t.userCardQuantity==null||o.value&&!(o.value.cardCode in t.userCardQuantity)?0:t.userCardQuantity[((g=o.value)==null?void 0:g.cardCode)??0]}),h=i.computed(()=>o.value===void 0?null:t.isDeckBuilder&&t.deckList[o.value.cardCode]===3?"disabled":null);i.watch(()=>t.showTippyLocation,g=>{A&&(g?(A.setProps({placement:g}),A.show()):A.hide())});function p(){window.addEventListener("keyup",g=>{g.key=="Shift"&&(s.value=!1)})}function m(){window.addEventListener("keydown",g=>{g.key=="Shift"&&(s.value=!0)})}function y(g){return o.value===void 0?null:t.isDeckBuilder?!(o.value.cardCode in t.deckList)||g>t.deckList[o.value.cardCode]?"disabled":null:g>f.value?"disabled":null}return i.onMounted(()=>{(o.value===void 0||t.userCardQuantity!=null||o.value.keywordRefs.length>0||o.value.associatedCardRefs.length>0)&&(A=At(r.value,{allowHTML:!0,content:a.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw",touch:!1})),(o.value===void 0||o.value.associatedCardRefs.length>0)&&(p(),m())}),(g,v)=>{var B,w,b;const _=i.resolveComponent("CardItem",!0);return i.openBlock(),i.createElementBlock("div",{class:"card-item-container",onMouseover:v[0]||(v[0]=C=>!0),onMouseleave:v[1]||(v[1]=C=>!1)},[i.createElementVNode("img",{ref_key:"cardItem",ref:r,alt:(B=i.unref(o))==null?void 0:B.name,class:i.normalizeClass(["card-item",h.value]),src:`https://lor.gg/storage/cards/card/en_us/${(w=i.unref(o))==null?void 0:w.cardCode}.webp`},null,10,DI),(g.isDeckBuilder||g.userCardQuantity!=null)&&((b=i.unref(o))!=null&&b.collectible)?(i.openBlock(),i.createElementBlock("div",LI,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(3,C=>i.createElementVNode("div",{key:C,class:i.normalizeClass(["quantity-tick",y(C)])},null,2)),64))])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"cardInfo",ref:a,class:i.normalizeClass(s.value?null:"card-info")},[!s.value&&d.value&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",OI,[f.value!==void 0?(i.openBlock(),i.createElementBlock("div",MI,[i.createTextVNode(i.toDisplayString(i.unref(n)("general.youHave:"))+" ",1),i.createElementVNode("b",{class:i.normalizeClass(l.value)},i.toDisplayString(f.value+" / "+(g.quantityNeeded||3)),3)])):i.createCommentVNode("",!0),f.value!==void 0&&(i.unref(o).keywordRefs.length>0||i.unref(o).associatedCardRefs.length>0)?(i.openBlock(),i.createElementBlock("hr",NI)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,C=>(i.openBlock(),i.createElementBlock("div",{key:C.nameRef,class:"card-info-section"},[i.createElementVNode("h4",PI,i.toDisplayString(C.name),1),i.createElementVNode("p",HI,i.toDisplayString(C.description),1)]))),128)),i.unref(o).keywordRefs.length>0&&i.unref(o).associatedCardRefs.length>0?(i.openBlock(),i.createElementBlock("hr",RI)):i.createCommentVNode("",!0),i.unref(o).associatedCardRefs.length>0?(i.openBlock(),i.createElementBlock("div",VI,i.toDisplayString(i.unref(n)("general.holdShiftForAssociated")),1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",KI,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,C=>(i.openBlock(),i.createBlock(_,{key:C.cardCode,"card-code-prop":C.cardCode,"is-deck-builder":!1,"is-root":!1,class:"associated-card"},null,8,["card-code-prop"]))),128))]))],2)],32)}}});const M=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Wa=M($I,[["__scopeId","data-v-fdd5e3e1"]]),WI=i.defineComponent({__name:"RevealCarousel",props:e6,setup(e){var o;const t=e,n=[z5],r=i.ref(null),a=i.ref((o=r.value)==null?void 0:o.clientWidth),A=i.computed(()=>a.value===void 0?!0:a.value<400);function s(){var l;a.value=(l=r.value)==null?void 0:l.clientWidth}return i.onMounted(()=>{window.addEventListener("resize",s),s()}),i.onUnmounted(()=>{window.removeEventListener("resize",s)}),(l,c)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[i.createVNode(i.unref(Ww),{"slides-per-view":"auto","space-between":15,"centered-slides":A.value,navigation:!0,modules:n},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cardCodes,u=>(i.openBlock(),i.createBlock(i.unref(Gw),{key:u},{default:i.withCtx(()=>[i.createVNode(Wa,{class:"card-item-called","card-code-prop":u,"is-root":!0},null,8,["card-code-prop"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const pg=M(WI,[["__scopeId","data-v-430f2bb4"]]),pb={fetchSeachResult:{type:Function,required:!0,default:()=>[]}},GI={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1,default:void 0},color:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},manaNumber:{type:Number,required:!1,default:void 0},routerLink:{type:Object,required:!1,default:"404"},quantityNumber:{type:Number,required:!1,default:void 0},maintainAspectRatio:{type:Boolean,required:!1,default:!0},showPlusMinus:{type:Boolean,required:!1,default:!1}},zI="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMxIDM2Ij4KICAgIDxkZWZzPgogICAgICA8bGluZWFyR3JhZGllbnQKICAgICAgICBpZD0iYSIKICAgICAgICB4MT0iLjA4IgogICAgICAgIHkxPSIuODIiCiAgICAgICAgeDI9IjEiCiAgICAgICAgeTI9Ii4xOSIKICAgICAgICBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIKICAgICAgPgogICAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzA0NjZjOCIgLz4KICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDNhOWUiIC8+CiAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxNS41IDE1LjUpIiBmaWxsPSJ1cmwoI2EpIj4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMjMuNTUgMzAuNWgtMTEuMWE1LjUyIDUuNTIgMCAwIDEtNC43NS0yLjc0bC01LjUyLTkuNWE1LjUxIDUuNTEgMCAwIDEgMC01LjUybDUuNTItOS41QTUuNTIgNS41MiAwIDAgMSAxMi40NS41aDExLjFhNS41MiA1LjUyIDAgMCAxIDQuNzUgMi43NGw1LjUyIDkuNWMuOTkgMS43Ljk5IDMuODIgMCA1LjUybC01LjUyIDkuNWE1LjUyIDUuNTIgMCAwIDEtNC43NSAyLjc0WiIKICAgICAgLz4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMTIuNDUgMWMtMS43NyAwLTMuNDMuOTUtNC4zMiAyLjQ5bC01LjUyIDkuNWE1LjAxIDUuMDEgMCAwIDAgMCA1LjAybDUuNTIgOS41QTUuMDIgNS4wMiAwIDAgMCAxMi40NSAzMGgxMS4xYzEuNzcgMCAzLjQzLS45NSA0LjMyLTIuNDlsNS41Mi05LjVjLjktMS41NS45LTMuNDcgMC01LjAybC01LjUyLTkuNUE1LjAyIDUuMDIgMCAwIDAgMjMuNTUgMWgtMTEuMW0wLTFoMTEuMWE2IDYgMCAwIDEgNS4xOCAyLjk5bDUuNTIgOS41YTYgNiAwIDAgMSAwIDYuMDJsLTUuNTIgOS41QTYgNiAwIDAgMSAyMy41NSAzMWgtMTEuMWE2IDYgMCAwIDEtNS4xOC0yLjk5bC01LjUyLTkuNWE2IDYgMCAwIDEgMC02LjAybDUuNTItOS41QTYgNiAwIDAgMSAxMi40NSAwWiIKICAgICAgICBmaWxsPSIjZmZjNTNlIgogICAgICAvPgogICAgPC9nPgogIDwvc3ZnPg==",jI=["src"],jo=i.defineComponent({__name:"ManaHexagonIcon",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("img",{src:i.unref(zI)},null,8,jI))}});function sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sv(Object(n),!0).forEach(function(r){on(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YI(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,A;for(A=0;A<r.length;A++)a=r[A],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function qI(e,t){if(e==null)return{};var n=YI(e,t),r,a;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);for(a=0;a<A.length;a++)r=A[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ih(e){return XI(e)||JI(e)||ZI(e)||eU()}function XI(e){if(Array.isArray(e))return Uh(e)}function JI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZI(e,t){if(e){if(typeof e=="string")return Uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uh(e,t)}}function Uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
810
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gb={exports:{}};(function(e){(function(t){var n=function(g,v,_){if(!c(v)||d(v)||f(v)||h(v)||l(v))return v;var B,w=0,b=0;if(u(v))for(B=[],b=v.length;w<b;w++)B.push(n(g,v[w],_));else{B={};for(var C in v)Object.prototype.hasOwnProperty.call(v,C)&&(B[g(C,_)]=n(g,v[C],_))}return B},r=function(g,v){v=v||{};var _=v.separator||"_",B=v.split||/(?=[A-Z])/;return g.split(B).join(_)},a=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(v,_){return _?_.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},A=function(g){var v=a(g);return v.substr(0,1).toUpperCase()+v.substr(1)},s=function(g,v){return r(g,v).toLowerCase()},o=Object.prototype.toString,l=function(g){return typeof g=="function"},c=function(g){return g===Object(g)},u=function(g){return o.call(g)=="[object Array]"},d=function(g){return o.call(g)=="[object Date]"},f=function(g){return o.call(g)=="[object RegExp]"},h=function(g){return o.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},m=function(g,v){var _=v&&"process"in v?v.process:v;return typeof _!="function"?g:function(B,w){return _(B,g,w)}},y={camelize:a,decamelize:s,pascalize:A,depascalize:s,camelizeKeys:function(g,v){return n(m(a,v),g)},decamelizeKeys:function(g,v){return n(m(s,v),g,v)},pascalizeKeys:function(g,v){return n(m(A,v),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=y:t.humps=y})(tU)})(gb);var nU=gb.exports,rU=["class","style"];function aU(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=nU.camelize(n.slice(0,r)),A=n.slice(r+1).trim();return t[a]=A,t},{})}function AU(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function gg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return gg(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=AU(u);break;case"style":l.style=aU(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var A=n.style,s=A===void 0?{}:A,o=qI(n,rU);return i.h(e.tag,qn(qn(qn({},t),{},{class:a.class,style:qn(qn({},a.style),s)},a.attrs),o),r)}var mb=!1;try{mb=process.env.NODE_ENV==="production"}catch{}function sU(){if(!mb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function zi(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?on({},e,t):{}}function iU(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},on(t,"fa-".concat(e.size),e.size!==null),on(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),on(t,"fa-pull-".concat(e.pull),e.pull!==null),on(t,"fa-swap-opacity",e.swapOpacity),on(t,"fa-bounce",e.bounce),on(t,"fa-shake",e.shake),on(t,"fa-beat",e.beat),on(t,"fa-fade",e.fade),on(t,"fa-beat-fade",e.beatFade),on(t,"fa-flash",e.flash),on(t,"fa-spin-pulse",e.spinPulse),on(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function iv(e){if(e&&au(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(eu.icon)return eu.icon(e);if(e===null)return null;if(au(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Ue=i.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=i.computed(function(){return iv(t.icon)}),A=i.computed(function(){return zi("classes",iU(t))}),s=i.computed(function(){return zi("transform",typeof t.transform=="string"?eu.transform(t.transform):t.transform)}),o=i.computed(function(){return zi("mask",iv(t.mask))}),l=i.computed(function(){return pF(a.value,qn(qn(qn(qn({},A.value),s.value),o.value),{},{symbol:t.symbol,title:t.title}))});i.watch(l,function(u){if(!u)return sU("Could not find one or more icon(s)",a.value,o.value)},{immediate:!0});var c=i.computed(function(){return l.value?gg(l.value.abstract[0],{},r):null});return function(){return c.value}}});i.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=Qw.familyPrefix,A=i.computed(function(){return["".concat(a,"-layers")].concat(Ih(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return i.h("div",{class:A.value},r.default?r.default():[])}}});i.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=Qw.familyPrefix,A=i.computed(function(){return zi("classes",[].concat(Ih(t.counter?["".concat(a,"-layers-counter")]:[]),Ih(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=i.computed(function(){return zi("transform",typeof t.transform=="string"?eu.transform(t.transform):t.transform)}),o=i.computed(function(){var c=gF(t.value.toString(),qn(qn({},s.value),A.value)),u=c.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=i.computed(function(){return gg(o.value,{},r)});return function(){return l.value}}});const oU={class:"card-slice"},lU={key:0,class:"mana-hexagon"},cU={class:"mana-number"},uU={class:"card-name"},dU={key:1,class:"quantity"},fU={class:"quantity-background"},hU={class:"num-quantity"},pU={class:"plus-minus-content"},gU={class:"plus-minus-quantity"},mU=i.defineComponent({__name:"CardSliceItem",props:GI,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,r=Ro(n.cardProp,n.cardCodeProp,!1),a=i.ref(null),A=i.ref(null),s=i.ref(null),o=i.ref(null),l=i.computed(()=>{let d=n.color;return!d&&r.value&&(d=gA(r.value,null,!0)),d||(d="var(--color-background-2-rgb)"),{"--color":d}}),c=i.computed(()=>r.value?"https://lor.gg/storage/cards/slice/"+r.value.cardCode+"-slice.webp":""),u=i.computed(()=>{const d=["card-slice-wrapper"];return n.maintainAspectRatio&&d.push("maintain-aspect-ratio"),d});return i.onMounted(()=>{n.ignoreCardItem||At(a.value,{content:s.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:d=>{const f=d.popper.innerHTML.includes("right")?"right-start":"left-start";o.value=f},onHidden:()=>{o.value=null}})}),(d,f)=>{const h=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(h,{to:n.routerLink},{default:i.withCtx(()=>{var p,m;return[i.createElementVNode("div",{ref_key:"cardSlice",ref:a,class:i.normalizeClass(u.value)},[i.createElementVNode("div",oU,[i.createElementVNode("div",{class:"card-image",style:i.normalizeStyle({backgroundImage:`url(${c.value})`})},null,4),i.createElementVNode("div",{class:"region-gradient",style:i.normalizeStyle(l.value)},null,4),i.unref(r)||n.manaNumber!==void 0&&n.manaNumber!==null?(i.openBlock(),i.createElementBlock("div",lU,[i.createVNode(jo,{class:"hexagon-icon"}),i.createElementVNode("div",cU,i.toDisplayString(n.manaNumber??((p=i.unref(r))==null?void 0:p.cost)),1)])):i.createCommentVNode("",!0),i.createElementVNode("div",uU,i.toDisplayString(n.name??((m=i.unref(r))==null?void 0:m.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(i.openBlock(),i.createElementBlock("div",dU,[i.createElementVNode("div",fU,[i.createElementVNode("p",hU,i.toDisplayString(n.quantityNumber),1)])])):i.createCommentVNode("",!0),n.showPlusMinus?(i.openBlock(),i.createElementBlock("div",{key:2,class:"plus-minus",onClick:f[2]||(f[2]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("div",pU,[i.createElementVNode("div",{class:"plus-minus-icon",onClick:f[0]||(f[0]=i.withModifiers(y=>{var g;return t("update:card-quantity",{cardCode:((g=i.unref(r))==null?void 0:g.cardCode)??"",quantity:-1})},["prevent"]))},[i.createVNode(i.unref(Ue),{icon:"minus",class:"icon"})]),i.createElementVNode("div",{class:"plus-minus-icon",onClick:f[1]||(f[1]=i.withModifiers(y=>{var g;return t("update:card-quantity",{cardCode:((g=i.unref(r))==null?void 0:g.cardCode)??"",quantity:1})},["prevent"]))},[i.createVNode(i.unref(Ue),{icon:"plus",class:"icon"})]),i.createElementVNode("div",gU,i.toDisplayString(n.quantityNumber),1)])])):i.createCommentVNode("",!0)])],2),i.createElementVNode("div",{ref_key:"cardItemWrapper",ref:s,class:"card-item-container"},[i.unref(r)&&!d.ignoreCardItem?(i.openBlock(),i.createBlock(Wa,{key:0,ref_key:"cardItem",ref:A,"is-root":!0,"card-prop":i.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":o.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):i.createCommentVNode("",!0)],512)]}),_:1},8,["to"])}}});const fn=M(mU,[["__scopeId","data-v-a1e91ff3"]]);function cr(e){return[null,void 0].indexOf(e)!==-1}function vU(e,t,n){const{object:r,valueProp:a,mode:A}=i.toRefs(e),s=i.getCurrentInstance().proxy,o=n.iv,l=(d,f=!0)=>{o.value=u(d);const h=c(d);t.emit("change",h,s),f&&(t.emit("input",h),t.emit("update:modelValue",h))},c=d=>r.value||cr(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>cr(d)?A.value==="single"?{}:[]:d;return{update:l}}function BU(e,t){const{value:n,modelValue:r,mode:a,valueProp:A}=i.toRefs(e),s=i.ref(a.value!=="single"?[]:{}),o=r&&r.value!==void 0?r:n,l=i.computed(()=>a.value==="single"?s.value[A.value]:s.value.map(u=>u[A.value])),c=i.computed(()=>a.value!=="single"?s.value.map(u=>u[A.value]).join(","):s.value[A.value]);return{iv:s,internalValue:s,ev:o,externalValue:o,textValue:c,plainValue:l}}function yU(e,t,n){const{regex:r}=i.toRefs(e),a=i.getCurrentInstance().proxy,A=n.isOpen,s=n.open,o=i.ref(null),l=i.ref(null),c=()=>{o.value=""},u=h=>{o.value=h.target.value},d=h=>{if(r&&r.value){let p=r.value;typeof p=="string"&&(p=new RegExp(p)),h.key.match(p)||h.preventDefault()}},f=h=>{if(r&&r.value){let m=(h.clipboardData||window.clipboardData).getData("Text"),y=r.value;typeof y=="string"&&(y=new RegExp(y)),m.split("").every(g=>!!g.match(y))||h.preventDefault()}t.emit("paste",h,a)};return i.watch(o,h=>{!A.value&&h&&s(),t.emit("search-change",h,a)}),{search:o,input:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function wU(e,t,n){const{groupSelect:r,mode:a,groups:A,disabledProp:s}=i.toRefs(e),o=i.ref(null),l=u=>{u===void 0||u!==null&&u[s.value]||A.value&&u&&u.group&&(a.value==="single"||!r.value)||(o.value=u)};return{pointer:o,setPointer:l,clearPointer:()=>{l(null)}}}function cf(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function bU(e){return Object.prototype.toString.call(e)==="[object Object]"}function _U(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function CU(e,t,n){const{options:r,mode:a,trackBy:A,limit:s,hideSelected:o,createTag:l,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:h,object:p,loading:m,delay:y,resolveOnLoad:g,minChars:v,filterResults:_,clearOnSearch:B,clearOnSelect:w,valueProp:b,allowAbsent:C,groupLabel:k,canDeselect:S,max:T,strict:U,closeOnSelect:F,closeOnDeselect:Q,groups:Y,reverse:X,infinite:j,groupOptions:K,groupHideEmpty:oe,groupSelect:$,onCreate:Ae,disabledProp:ce,searchStart:me,searchFilter:Ee}=i.toRefs(e),fe=i.getCurrentInstance().proxy,ne=n.iv,N=n.ev,te=n.search,Pe=n.clearSearch,ot=n.update,xt=n.pointer,vt=n.clearPointer,Qn=n.focus,x=n.deactivate,E=n.close,D=n.localize,W=i.ref([]),ie=i.ref([]),he=i.ref(!1),Ft=i.ref(null),ht=i.ref(j.value&&s.value===-1?10:s.value),Bn=i.computed(()=>l.value||c.value||!1),$e=i.computed(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),O=i.computed(()=>{if(Y.value){let I=et.value||[],G=[];return I.forEach(xe=>{$d(xe[K.value]).forEach(Bt=>{G.push(Object.assign({},Bt,xe[ce.value]?{[ce.value]:!0}:{}))})}),G}else{let I=$d(ie.value||[]);return W.value.length&&(I=I.concat(W.value)),I}}),P=i.computed(()=>{let I=O.value;return X.value&&(I=I.reverse()),la.value.length&&(I=la.value.concat(I)),Kd(I)}),Ze=i.computed(()=>{let I=P.value;return ht.value>0&&(I=I.slice(0,ht.value)),I}),et=i.computed(()=>{if(!Y.value)return[];let I=[],G=ie.value||[];return W.value.length&&I.push({[k.value]:" ",[K.value]:[...W.value],__CREATE__:!0}),I.concat(G)}),Ar=i.computed(()=>{let I=[...et.value].map(G=>({...G}));return la.value.length&&(I[0]&&I[0].__CREATE__?I[0][K.value]=[...la.value,...I[0][K.value]]:I=[{[k.value]:" ",[K.value]:[...la.value],__CREATE__:!0}].concat(I)),I}),Tn=i.computed(()=>{if(!Y.value)return[];let I=Ar.value;return AE((I||[]).map((G,xe)=>{const Bt=$d(G[K.value]);return{...G,index:xe,group:!0,[K.value]:Kd(Bt,!1).map(ci=>Object.assign({},ci,G[ce.value]?{[ce.value]:!0}:{})),__VISIBLE__:Kd(Bt).map(ci=>Object.assign({},ci,G[ce.value]?{[ce.value]:!0}:{}))}}))}),Dn=i.computed(()=>{switch(a.value){case"single":return!cr(ne.value[b.value]);case"multiple":case"tags":return!cr(ne.value)&&ne.value.length>0}}),zn=i.computed(()=>h!==void 0&&h.value!==void 0?h.value(ne.value,fe):ne.value&&ne.value.length>1?`${ne.value.length} options selected`:"1 option selected"),ii=i.computed(()=>!O.value.length&&!he.value&&!la.value.length),ZA=i.computed(()=>O.value.length>0&&Ze.value.length==0&&(te.value&&Y.value||!Y.value)),la=i.computed(()=>Bn.value===!1||!te.value?[]:nE(te.value)!==-1?[]:[{[b.value]:te.value,[L.value]:te.value,[u.value]:te.value,__CREATE__:!0}]),L=i.computed(()=>A.value||u.value),ae=i.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),ue=i.computed(()=>m.value||he.value),Se=I=>{switch(typeof I!="object"&&(I=Ir(I)),a.value){case"single":ot(I);break;case"multiple":case"tags":ot(ne.value.concat(I));break}t.emit("select",Dt(I),I,fe)},ye=I=>{switch(typeof I!="object"&&(I=Ir(I)),a.value){case"single":oi();break;case"tags":case"multiple":ot(Array.isArray(I)?ne.value.filter(G=>I.map(xe=>xe[b.value]).indexOf(G[b.value])===-1):ne.value.filter(G=>G[b.value]!=I[b.value]));break}t.emit("deselect",Dt(I),I,fe)},Dt=I=>p.value?I:I[b.value],Xt=I=>{ye(I)},ca=(I,G)=>{if(G.button!==0){G.preventDefault();return}Xt(I)},oi=()=>{t.emit("clear",fe),ot(ae.value)},Pt=I=>{if(I.group!==void 0)return a.value==="single"?!1:tE(I[K.value])&&I[K.value].length;switch(a.value){case"single":return!cr(ne.value)&&ne.value[b.value]==I[b.value];case"tags":case"multiple":return!cr(ne.value)&&ne.value.map(G=>G[b.value]).indexOf(I[b.value])!==-1}},AA=I=>I[ce.value]===!0,ua=()=>T===void 0||T.value===-1||!Dn.value&&T.value>0?!1:ne.value.length>=T.value,da=I=>{if(!AA(I)){if(Ae&&Ae.value&&!Pt(I)&&I.__CREATE__&&(I={...I},delete I.__CREATE__,I=Ae.value(I,fe),I instanceof Promise)){he.value=!0,I.then(G=>{he.value=!1,yl(G)});return}yl(I)}},yl=I=>{switch(I.__CREATE__&&(I={...I},delete I.__CREATE__),a.value){case"single":if(I&&Pt(I)){S.value&&ye(I),Q.value&&(vt(),E());return}I&&fa(I),w.value&&Pe(),F.value&&(vt(),E()),I&&Se(I);break;case"multiple":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ua()){t.emit("max",fe);return}I&&(fa(I),Se(I)),w.value&&Pe(),o.value&&vt(),F.value&&E();break;case"tags":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ua()){t.emit("max",fe);return}I&&fa(I),w.value&&Pe(),I&&Se(I),o.value&&vt(),F.value&&E();break}F.value||Qn()},li=I=>{if(!(AA(I)||a.value==="single"||!$.value)){switch(a.value){case"multiple":case"tags":eE(I[K.value])?ye(I[K.value]):Se(I[K.value].filter(G=>ne.value.map(xe=>xe[b.value]).indexOf(G[b.value])===-1).filter(G=>!G[ce.value]).filter((G,xe)=>ne.value.length+1+xe<=T.value||T.value===-1));break}F.value&&x()}},fa=I=>{Ir(I[b.value])===void 0&&Bn.value&&(t.emit("tag",I[b.value],fe),t.emit("option",I[b.value],fe),t.emit("create",I[b.value],fe),$e.value&&aE(I),Pe())},Z3=()=>{a.value!=="single"&&Se(Ze.value.filter(I=>!I.disabled&&!Pt(I)))},eE=I=>I.find(G=>!Pt(G)&&!G[ce.value])===void 0,tE=I=>I.find(G=>!Pt(G))===void 0,Ir=I=>O.value[O.value.map(G=>String(G[b.value])).indexOf(String(I))],nE=(I,G=!0)=>O.value.map(xe=>parseInt(xe[L.value])==xe[L.value]?parseInt(xe[L.value]):xe[L.value]).indexOf(parseInt(I)==I?parseInt(I):I),rE=I=>["tags","multiple"].indexOf(a.value)!==-1&&o.value&&Pt(I),aE=I=>{W.value.push(I)},AE=I=>oe.value?I.filter(G=>te.value?G.__VISIBLE__.length:G[K.value].length):I.filter(G=>te.value?G.__VISIBLE__.length:!0),Kd=(I,G=!0)=>{let xe=I;if(te.value&&_.value){let Bt=Ee.value;Bt||(Bt=(ci,Doe)=>{let S1=cf(D(ci[L.value]),U.value);return me.value?S1.startsWith(cf(te.value,U.value)):S1.indexOf(cf(te.value,U.value))!==-1}),xe=xe.filter(Bt)}return o.value&&G&&(xe=xe.filter(Bt=>!rE(Bt))),xe},$d=I=>{let G=I;return bU(G)&&(G=Object.keys(G).map(xe=>{let Bt=G[xe];return{[b.value]:xe,[L.value]:Bt,[u.value]:Bt}})),G=G.map(xe=>typeof xe=="object"?xe:{[b.value]:xe,[L.value]:xe,[u.value]:xe}),G},wl=()=>{cr(N.value)||(ne.value=_l(N.value))},bl=I=>(he.value=!0,new Promise((G,xe)=>{r.value(te.value,fe).then(Bt=>{ie.value=Bt||[],typeof I=="function"&&I(Bt),he.value=!1}).catch(Bt=>{console.error(Bt),ie.value=[],he.value=!1}).finally(()=>{G()})})),Wd=()=>{if(Dn.value)if(a.value==="single"){let I=Ir(ne.value[b.value]);if(I!==void 0){let G=I[u.value];ne.value[u.value]=G,p.value&&(N.value[u.value]=G)}}else ne.value.forEach((I,G)=>{let xe=Ir(ne.value[G][b.value]);if(xe!==void 0){let Bt=xe[u.value];ne.value[G][u.value]=Bt,p.value&&(N.value[G][u.value]=Bt)}})},sE=I=>{bl(I)},_l=I=>cr(I)?a.value==="single"?{}:[]:p.value?I:a.value==="single"?Ir(I)||(C.value?{[u.value]:I,[b.value]:I,[L.value]:I}:{}):I.filter(G=>!!Ir(G)||C.value).map(G=>Ir(G)||{[u.value]:G,[b.value]:G,[L.value]:G}),k1=()=>{Ft.value=i.watch(te,I=>{I.length<v.value||!I&&v.value!==0||(he.value=!0,B.value&&(ie.value=[]),setTimeout(()=>{I==te.value&&r.value(te.value,fe).then(G=>{(I==te.value||!te.value)&&(ie.value=G,xt.value=Ze.value.filter(xe=>xe[ce.value]!==!0)[0]||null,he.value=!1)}).catch(G=>{console.error(G)})},y.value))},{flush:"sync"})};if(a.value!=="single"&&!cr(N.value)&&!Array.isArray(N.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?g.value?bl(wl):p.value==!0&&wl():(ie.value=r.value,wl()),y.value>-1&&k1(),i.watch(y,(I,G)=>{Ft.value&&Ft.value(),I>=0&&k1()}),i.watch(N,I=>{if(cr(I)){ot(_l(I),!1);return}switch(a.value){case"single":(p.value?I[b.value]!=ne.value[b.value]:I!=ne.value[b.value])&&ot(_l(I),!1);break;case"multiple":case"tags":_U(p.value?I.map(G=>G[b.value]):I,ne.value.map(G=>G[b.value]))||ot(_l(I),!1);break}},{deep:!0}),i.watch(r,(I,G)=>{typeof e.options=="function"?g.value&&(!G||I&&I.toString()!==G.toString())&&bl():(ie.value=e.options,Object.keys(ne.value).length||wl(),Wd())}),i.watch(u,Wd),{pfo:P,fo:Ze,filteredOptions:Ze,hasSelected:Dn,multipleLabelText:zn,eo:O,extendedOptions:O,eg:et,extendedGroups:et,fg:Tn,filteredGroups:Tn,noOptions:ii,noResults:ZA,resolving:he,busy:ue,offset:ht,select:Se,deselect:ye,remove:Xt,selectAll:Z3,clear:oi,isSelected:Pt,isDisabled:AA,isMax:ua,getOption:Ir,handleOptionClick:da,handleGroupClick:li,handleTagRemove:ca,refreshOptions:sE,resolveOptions:bl,refreshLabels:Wd}}function EU(e,t,n){const{valueProp:r,showOptions:a,searchable:A,groupLabel:s,groups:o,mode:l,groupSelect:c,disabledProp:u,groupOptions:d}=i.toRefs(e),f=n.fo,h=n.fg,p=n.handleOptionClick,m=n.handleGroupClick,y=n.search,g=n.pointer,v=n.setPointer,_=n.clearPointer,B=n.multiselect,w=n.isOpen,b=i.computed(()=>f.value.filter(N=>!N[u.value])),C=i.computed(()=>h.value.filter(N=>!N[u.value])),k=i.computed(()=>l.value!=="single"&&c.value),S=i.computed(()=>g.value&&g.value.group),T=i.computed(()=>fe(g.value)),U=i.computed(()=>{const N=S.value?g.value:fe(g.value),te=C.value.map(ot=>ot[s.value]).indexOf(N[s.value]);let Pe=C.value[te-1];return Pe===void 0&&(Pe=Q.value),Pe}),F=i.computed(()=>{let N=C.value.map(te=>te.label).indexOf(S.value?g.value[s.value]:fe(g.value)[s.value])+1;return C.value.length<=N&&(N=0),C.value[N]}),Q=i.computed(()=>[...C.value].slice(-1)[0]),Y=i.computed(()=>g.value.__VISIBLE__.filter(N=>!N[u.value])[0]),X=i.computed(()=>{const N=T.value.__VISIBLE__.filter(te=>!te[u.value]);return N[N.map(te=>te[r.value]).indexOf(g.value[r.value])-1]}),j=i.computed(()=>{const N=fe(g.value).__VISIBLE__.filter(te=>!te[u.value]);return N[N.map(te=>te[r.value]).indexOf(g.value[r.value])+1]}),K=i.computed(()=>[...U.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),oe=i.computed(()=>[...Q.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),$=N=>g.value&&(!N.group&&g.value[r.value]===N[r.value]||N.group!==void 0&&g.value[s.value]===N[s.value])?!0:void 0,Ae=()=>{v(b.value[0]||null)},ce=()=>{!g.value||g.value[u.value]===!0||(S.value?m(g.value):p(g.value))},me=()=>{if(g.value===null)v((o.value&&k.value?C.value[0].__CREATE__?b.value[0]:C.value[0]:b.value[0])||null);else if(o.value&&k.value){let N=S.value?Y.value:j.value;N===void 0&&(N=F.value,N.__CREATE__&&(N=N[d.value][0])),v(N||null)}else{let N=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])+1;b.value.length<=N&&(N=0),v(b.value[N]||null)}i.nextTick(()=>{ne()})},Ee=()=>{if(g.value===null){let N=b.value[b.value.length-1];o.value&&k.value&&(N=oe.value,N===void 0&&(N=Q.value)),v(N||null)}else if(o.value&&k.value){let N=S.value?K.value:X.value;N===void 0&&(N=S.value?U.value:T.value,N.__CREATE__&&(N=K.value,N===void 0&&(N=U.value))),v(N||null)}else{let N=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])-1;N<0&&(N=b.value.length-1),v(b.value[N]||null)}i.nextTick(()=>{ne()})},fe=N=>C.value.find(te=>te.__VISIBLE__.map(Pe=>Pe[r.value]).indexOf(N[r.value])!==-1),ne=()=>{let N=B.value.querySelector("[data-pointed]");if(!N)return;let te=N.parentElement.parentElement;o.value&&(te=S.value?N.parentElement.parentElement.parentElement:N.parentElement.parentElement.parentElement.parentElement),N.offsetTop+N.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=N.offsetTop+N.offsetHeight-te.clientHeight),N.offsetTop<te.scrollTop&&(te.scrollTop=N.offsetTop)};return i.watch(y,N=>{A.value&&(N.length&&a.value?Ae():_())}),i.watch(w,N=>{if(N){let te=B.value.querySelectorAll("[data-selected]")[0];if(!te)return;let Pe=te.parentElement.parentElement;i.nextTick(()=>{Pe.scrollTop>0||(Pe.scrollTop=te.offsetTop)})}}),{pointer:g,canPointGroups:k,isPointed:$,setPointerFirst:Ae,selectPointer:ce,forwardPointer:me,backwardPointer:Ee}}function kU(e,t,n){const{disabled:r}=i.toRefs(e),a=i.getCurrentInstance().proxy,A=i.ref(!1);return{isOpen:A,open:()=>{A.value||r.value||(A.value=!0,t.emit("open",a))},close:()=>{A.value&&(A.value=!1,t.emit("close",a))}}}function SU(e,t,n){const{searchable:r,disabled:a,clearOnBlur:A}=i.toRefs(e),s=n.input,o=n.open,l=n.close,c=n.clearSearch,u=n.isOpen,d=i.ref(null),f=i.ref(null),h=i.ref(null),p=i.ref(!1),m=i.ref(!1),y=i.computed(()=>r.value||a.value?-1:0),g=()=>{r.value&&s.value.blur(),f.value.blur()},v=()=>{r.value&&!a.value&&s.value.focus()},_=(S=!0)=>{a.value||(p.value=!0,S&&o())},B=()=>{p.value=!1,setTimeout(()=>{p.value||(l(),A.value&&c())},1)};return{multiselect:d,wrapper:f,tags:h,tabindex:y,isActive:p,mouseClicked:m,blur:g,focus:v,activate:_,deactivate:B,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||_(m.value)},handleFocusOut:()=>{B()},handleCaretClick:()=>{B(),g()},handleMousedown:S=>{m.value=!0,u.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(h.value))?setTimeout(()=>{B()},0):document.activeElement.isEqualNode(f.value)&&!u.value&&_(),setTimeout(()=>{m.value=!1},0)}}}function xU(e,t,n){const{mode:r,addTagOn:a,openDirection:A,searchable:s,showOptions:o,valueProp:l,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:h}=i.toRefs(e),p=i.getCurrentInstance().proxy,m=n.iv,y=n.update,g=n.search,v=n.setPointer,_=n.selectPointer,B=n.backwardPointer,w=n.forwardPointer,b=n.multiselect,C=n.wrapper,k=n.tags,S=n.isOpen,T=n.open,U=n.blur,F=n.fo,Q=i.computed(()=>d.value||f.value||!1),Y=i.computed(()=>a.value!==void 0?a.value:u.value!==void 0?u.value:["enter"]),X=()=>{r.value==="tags"&&!o.value&&Q.value&&s.value&&!c.value&&v(F.value[F.value.map($=>$[l.value]).indexOf(g.value)])},j=$=>{let Ae=$.length-1;for(;Ae>=0&&($[Ae].remove===!1||$[Ae].disabled);)Ae--;return Ae<0||$.splice(Ae,1),$};return{handleKeydown:$=>{t.emit("keydown",$,p);let Ae,ce;switch(["ArrowLeft","ArrowRight","Enter"].indexOf($.key)!==-1&&r.value==="tags"&&(Ae=[...b.value.querySelectorAll("[data-tags] > *")].filter(me=>me!==k.value),ce=Ae.findIndex(me=>me===document.activeElement)),$.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(g.value)===-1||m.value.length===0)return;y(j([...m.value]));break;case"Enter":if($.preventDefault(),$.keyCode===229)return;if(ce!==-1&&ce!==void 0){y([...m.value].filter((me,Ee)=>Ee!==ce)),ce===Ae.length-1&&(Ae.length-1?Ae[Ae.length-2].focus():s.value?k.value.querySelector("input").focus():C.value.focus());return}if(Y.value.indexOf("enter")===-1&&Q.value)return;X(),_();break;case" ":if(!Q.value&&!s.value){$.preventDefault(),X(),_();return}if(!Q.value)return!1;if(Y.value.indexOf("space")===-1&&Q.value)return;$.preventDefault(),X(),_();break;case"Tab":case";":case",":if(Y.value.indexOf($.key.toLowerCase())===-1||!Q.value)return;X(),_(),$.preventDefault();break;case"Escape":U();break;case"ArrowUp":if($.preventDefault(),!o.value)return;S.value||T(),B();break;case"ArrowDown":if($.preventDefault(),!o.value)return;S.value||T(),w();break;case"ArrowLeft":if(s.value&&k.value&&k.value.querySelector("input").selectionStart||$.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;$.preventDefault(),ce===-1?Ae[Ae.length-1].focus():ce>0&&Ae[ce-1].focus();break;case"ArrowRight":if(ce===-1||$.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;$.preventDefault(),Ae.length>ce+1?Ae[ce+1].focus():s.value?k.value.querySelector("input").focus():s.value||C.value.focus();break}},handleKeyup:$=>{t.emit("keyup",$,p)},preparePointer:X}}function FU(e,t,n){const{classes:r,disabled:a,openDirection:A,showOptions:s}=i.toRefs(e),o=n.isOpen,l=n.isPointed,c=n.isSelected,u=n.isDisabled,d=n.isActive,f=n.canPointGroups,h=n.resolving,p=n.fo,m=i.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),y=i.computed(()=>!!(o.value&&s.value&&(!h.value||h.value&&p.value.length)));return{classList:i.computed(()=>{const v=m.value;return{container:[v.container].concat(a.value?v.containerDisabled:[]).concat(y.value&&A.value==="top"?v.containerOpenTop:[]).concat(y.value&&A.value!=="top"?v.containerOpen:[]).concat(d.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(a.value?v.tagDisabled:[]),tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(o.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(A.value==="top"?v.dropdownTop:[]).concat(!o.value||!s.value||!y.value?v.dropdownHidden:[]),options:[v.options].concat(A.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:_=>{let B=[v.groupLabel];return l(_)?B.push(c(_)?v.groupLabelSelectedPointed:v.groupLabelPointed):c(_)&&f.value?B.push(u(_)?v.groupLabelSelectedDisabled:v.groupLabelSelected):u(_)&&B.push(v.groupLabelDisabled),f.value&&B.push(v.groupLabelPointable),B},groupOptions:v.groupOptions,option:(_,B)=>{let w=[v.option];return l(_)?w.push(c(_)?v.optionSelectedPointed:v.optionPointed):c(_)?w.push(u(_)?v.optionSelectedDisabled:v.optionSelected):(u(_)||B&&u(B))&&w.push(v.optionDisabled),w},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:y}}function IU(e,t,n){const{limit:r,infinite:a}=i.toRefs(e),A=n.isOpen,s=n.offset,o=n.search,l=n.pfo,c=n.eo,u=i.ref(null),d=i.ref(null),f=i.computed(()=>s.value<l.value.length),h=m=>{const{isIntersecting:y,target:g}=m[0];if(y){const v=g.offsetParent,_=v.scrollTop;s.value+=r.value==-1?10:r.value,i.nextTick(()=>{v.scrollTop=_})}},p=()=>{A.value&&s.value<l.value.length?u.value.observe(d.value):!A.value&&u.value&&u.value.disconnect()};return i.watch(A,()=>{a.value&&p()}),i.watch(o,()=>{a.value&&(s.value=r.value,p())},{flush:"post"}),i.watch(c,()=>{a.value&&p()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(h))}),{hasMore:f,infiniteLoader:d}}function UU(e,t,n){const{placeholder:r,id:a,valueProp:A,label:s,mode:o,groupLabel:l,aria:c,searchable:u}=i.toRefs(e),d=n.pointer,f=n.iv,h=n.hasSelected,p=n.multipleLabelText,m=i.ref(null),y=i.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("assist"),F.join("-")}),g=i.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("multiselect-options"),F.join("-")}),v=i.computed(()=>{let F=[];if(a&&a.value&&F.push(a.value),d.value)return F.push(d.value.group?"multiselect-group":"multiselect-option"),F.push(d.value.group?d.value.index:d.value[A.value]),F.join("-")}),_=i.computed(()=>r.value),B=i.computed(()=>o.value!=="single"),w=i.computed(()=>{let F="";return o.value==="single"&&h.value&&(F+=f.value[s.value]),o.value==="multiple"&&h.value&&(F+=p.value),o.value==="tags"&&h.value&&(F+=f.value.map(Q=>Q[s.value]).join(", ")),F}),b=i.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${y.value} ${F["aria-labelledby"]}`:y.value,w.value&&F["aria-label"]&&(F["aria-label"]=`${w.value}, ${F["aria-label"]}`)),F}),C=F=>{let Q=[];return a&&a.value&&Q.push(a.value),Q.push("multiselect-option"),Q.push(F[A.value]),Q.join("-")},k=F=>{let Q=[];return a&&a.value&&Q.push(a.value),Q.push("multiselect-group"),Q.push(F.index),Q.join("-")},S=F=>{let Q=[];return Q.push(F),Q.join(" ")},T=F=>{let Q=[];return Q.push(F),Q.join(" ")},U=F=>`${F} ❎`;return i.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let F=document.querySelector(`[for="${a.value}"]`);m.value=F?F.innerText:null}}),{arias:b,ariaLabel:w,ariaAssist:y,ariaControls:g,ariaPlaceholder:_,ariaMultiselectable:B,ariaActiveDescendant:v,ariaOptionId:C,ariaOptionLabel:S,ariaGroupId:k,ariaGroupLabel:T,ariaTagLabel:U}}function QU(e,t,n){const{locale:r,fallbackLocale:a}=i.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function TU(e,t,n,r={}){return n.forEach(a=>{a&&(r={...r,...a(e,t,r)})}),r}var Vt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return TU(e,t,[QU,BU,wU,kU,yU,vU,SU,CU,IU,EU,xU,FU,UU])}};const DU=["id","dir"],LU=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],OU=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],MU=["onKeyup","aria-label"],NU=["onClick"],PU=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],HU=["innerHTML"],RU=["id"],VU=["id","aria-label","aria-selected"],KU=["data-pointed","onMouseenter","onClick"],$U=["innerHTML"],WU=["aria-label"],GU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],zU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],jU=["innerHTML"],YU=["innerHTML"],qU=["value"],XU=["name","value"],JU=["name","value"],ZU=["id"];function eQ(e,t,n,r,a,A){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[i.createElementVNode("div",i.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=i.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,OU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(e.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.iv,(s,o,l)=>i.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:l,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[i.createTextVNode(i.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(e.classList.tagRemove),onClick:i.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,NU)):i.createCommentVNode("v-if",!0)],42,MU))])),256)),i.createElementVNode("div",{class:i.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(e.classList.tagsSearchCopy)},i.toDisplayString(e.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=i.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,PU)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?i.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(e.classList.singleLabelText)},i.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?i.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,HU)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?i.renderSlot(e.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||e.resolving?i.renderSlot(e.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?i.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=i.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(e.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(e.$slots,"caret",{key:7},()=>[i.createElementVNode("span",{class:i.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,LU),i.createCommentVNode(" Options "),i.createElementVNode("div",{class:i.normalizeClass(e.classList.dropdown),tabindex:"-1"},[i.renderSlot(e.$slots,"beforelist",{options:e.fo}),i.createElementVNode("ul",{class:i.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.fg,(s,o,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(e.classList.group),key:l,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,o),onClick:c=>e.handleGroupClick(s)},[i.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[i.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,$U)])],42,KU)),i.createElementVNode("ul",{class:i.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.__VISIBLE__,(c,u,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:d,onMouseenter:f=>e.setPointer(c),onClick:f=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[i.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[i.createElementVNode("span",null,i.toDisplayString(e.localize(c[n.label])),1)])],42,GU))),128))],10,WU)],10,VU))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.fo,(s,o,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:l,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[i.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[i.createElementVNode("span",null,i.toDisplayString(e.localize(s[n.label])),1)])],42,zU))),128))],10,RU),e.noOptions?i.renderSlot(e.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,jU)]):i.createCommentVNode("v-if",!0),e.noResults?i.renderSlot(e.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,YU)]):i.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(e.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,qU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,XU)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.plainValue,(s,o)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:o},null,8,JU))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},i.toDisplayString(e.ariaLabel),11,ZU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(e.classList.spacer)},null,2)],42,DU)}Vt.render=eQ;Vt.__file="src/Multiselect.vue";const tQ={class:"search-bar"},nQ=i.defineComponent({__name:"SearchBar",props:pb,setup(e){const t=e,{t:n}=re(),r=i.ref(""),a=pA.useRouter();function A(o,l,c){c.clear(),c.search=r.value,a.push(l.link)}function s(o){r.value=o}return(o,l)=>(i.openBlock(),i.createElementBlock("div",tQ,[i.createVNode(i.unref(Vt),{placeholder:i.unref(n)("navigation.searchPlaceholder"),"value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:t.fetchSeachResult,onOpen:l[0]||(l[0]=c=>{c.noOptions&&c.resolveOptions()}),onSearchChange:s,onSelect:A},{option:i.withCtx(({option:c})=>[c.type==="card"?(i.openBlock(),i.createBlock(fn,{key:`card-${c.card.cardCode}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":c.card,"router-link":c.link},null,8,["card-prop","router-link"])):(i.openBlock(),i.createBlock(fn,{key:`player-${c.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":c.cardCode,color:c.color,name:c.name,"mana-number":c.rank,"router-link":c.link},null,8,["card-code-prop","color","name","mana-number","router-link"]))]),_:1},8,["placeholder","options"])]))}});const Yu=M(nQ,[["__scopeId","data-v-2dff2569"]]),rQ={class:"social-links"},aQ=i.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",rQ,[i.createVNode(i.unref(Ue),{class:"icon",icon:"fa-brands fa-discord"}),i.createVNode(i.unref(Ue),{class:"icon",icon:"fa-brands fa-twitter"})]))}});const mg=M(aQ,[["__scopeId","data-v-5517438c"]]),AQ={showModal:{type:Boolean,required:!0,default:!1}},sQ=["onClick"],iQ=i.defineComponent({__name:"ModalItem",props:AQ,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=i.ref(null);function a(){t("update:showModal",!1)}return i.onBeforeUnmount(()=>{var A;(A=r.value)==null||A.remove()}),i.watch(()=>n.showModal,()=>{n.showModal&&i.nextTick(()=>{r.value&&document.body.appendChild(r.value)})}),(A,s)=>n.showModal?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"modalItem",ref:r,class:"modal-item",onClick:i.withModifiers(a,["self"])},[i.renderSlot(A.$slots,"default",{},void 0,!0)],8,sQ)):i.createCommentVNode("",!0)}});const KA=M(iQ,[["__scopeId","data-v-5e715d99"]]),oQ={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},lQ={class:"filter"},cQ={key:0,class:"top"},uQ={key:0,class:"title"},dQ=i.defineComponent({__name:"SidePanelSectionPane",props:oQ,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function a(){t("clear:filterArray")}return(A,s)=>{const o=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",lQ,[n.title||A.filterArray?(i.openBlock(),i.createElementBlock("div",cQ,[n.title?(i.openBlock(),i.createElementBlock("h2",uQ,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0),A.filterArray?i.withDirectives((i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass(["clear",r.value]),onClick:a},null,2)),[[o,"general.clear"]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.renderSlot(A.$slots,"default",{},void 0,!0)])}}});const mt=M(dQ,[["__scopeId","data-v-741cceed"]]),fQ={filterArray:{type:Array,required:!0,default:[]}},hQ=["placeholder"],pQ=i.defineComponent({__name:"FilterSampleSize",props:fQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray),A=i.ref("");let s=setTimeout(()=>{},0);a.value.length>0&&(A.value=a.value[0]),i.watch(a,()=>{t("update:filterArray",a.value)}),i.watch(A,()=>{s&&clearTimeout(s),s=setTimeout(()=>{a.value.splice(0),A.value&&a.value.push(A.value)},1e3)});function o(){a.value.splice(0),A.value=""}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("general.sampleSize"),"onClear:filterArray":o},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>A.value=u),placeholder:i.unref(r)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,hQ),[[i.vModelText,A.value]])]),_:1},8,["filter-array","title"]))}});const Xs=M(pQ,[["__scopeId","data-v-d66d5f9d"]]),gQ={filterArray:{type:Array,required:!0,default:[]}},mQ={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},vQ=["selected"],BQ={class:"checkbox-name"},yQ=i.defineComponent({__name:"CheckboxItem",props:mQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=i.computed(()=>(console.log(n.icon),{content:n.icon}));function a(){t("update:isSelected",!n.isSelected)}return(A,s)=>(i.openBlock(),i.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[n.icon?(i.openBlock(),i.createElementBlock("div",{key:0,class:"checkbox-icon",style:i.normalizeStyle(r.value)},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",BQ,i.toDisplayString(n.prompt),1)],8,vQ))}});const tn=M(yQ,[["__scopeId","data-v-a4c6109c"]]),wQ={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},bQ=e=>(i.pushScopeId("data-v-d5d9745a"),e=e(),i.popScopeId(),e),_Q={class:"toggle-switch"},CQ=bQ(()=>i.createElementVNode("div",{class:"selection"},null,-1)),EQ=[CQ],kQ=["onClick"],SQ={class:"option flex-center"},xQ={class:"option-text"},FQ=i.defineComponent({__name:"ToggleSwitch",props:wQ,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=i.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function a(s){return{cursor:n.selectedOption!=s?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${s})`,width:`${1/n.options.length*100}%`}}function A(s){t("update:selectedOption",s)}return(s,o)=>(i.openBlock(),i.createElementBlock("div",_Q,[i.withDirectives(i.createElementVNode("div",{class:"selection-container",style:i.normalizeStyle(r.value)},EQ,4),[[i.vShow,s.selectedOption>-1]]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,(l,c)=>(i.openBlock(),i.createElementBlock("div",{key:c,ref_for:!0,ref:"option-container",style:i.normalizeStyle(a(c)),class:"option-container",onClick:u=>A(c)},[i.createElementVNode("div",SQ,[i.createElementVNode("h1",xQ,i.toDisplayString(l),1)])],12,kQ))),128))]))}});const qu=M(FQ,[["__scopeId","data-v-d5d9745a"]]),IQ={class:"checkboxes-container"},UQ=i.defineComponent({__name:"FilterRanks",props:gQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>we().dataJson.ranks.sort((c,u)=>u.order-c.order)),A=i.reactive(n.filterArray),s=i.ref(0);i.watch(A,()=>{t("update:filterArray",A)}),i.watch(s,()=>{s.value===0?A.splice(0):s.value===1&&(A.splice(0),A.push("Platinum","Diamond","Masters"))});function o(){A.splice(0),s.value=0}function l(c){const u=A.indexOf(c);if(u===-1){A.push(c);return}A.splice(u,1)}return(c,u)=>(i.openBlock(),i.createBlock(mt,{"filter-array":A,title:i.unref(r)("general.ranks"),"onClear:filterArray":o},{default:i.withCtx(()=>[i.createElementVNode("div",IQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(tn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":A.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),i.createVNode(qu,{"selected-option":s.value,"onUpdate:selectedOption":u[0]||(u[0]=d=>s.value=d),options:[i.unref(r)("general.allRanks"),i.unref(r)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const vb=M(UQ,[["__scopeId","data-v-af7bc2a0"]]),QQ={filterArray:{type:Array,required:!0,default:[]}},TQ={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},DQ=["selected"],LQ={class:"prompt"},OQ=i.defineComponent({__name:"CheckboxItemManaCost",props:TQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e;function r(){t("update:isSelected",!n.isSelected)}return(a,A)=>(i.openBlock(),i.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:r},[i.createVNode(jo),i.createElementVNode("div",LQ,i.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,DQ))}});const Au=M(OQ,[["__scopeId","data-v-2c74c2ed"]]),MQ={class:"checkbox-rows-container"},NQ={class:"top-row checkbox-items-container"},PQ={class:"bottom-row checkbox-items-container"},HQ=i.defineComponent({__name:"FilterManaCost",props:QQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=Array(6).fill(1).map((l,c)=>c),A=Array(5).fill(1).map((l,c)=>c+6);function s(l){let c;n.filterArray.includes(l)?c=n.filterArray.filter(u=>u!==l):c=[...n.filterArray,l],t("update:filterArray",c)}function o(){t("update:filterArray",[])}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":n.filterArray,title:i.unref(r)("general.manaCost"),"onClear:filterArray":o},{default:i.withCtx(()=>[i.createElementVNode("div",MQ,[i.createElementVNode("div",NQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),u=>(i.openBlock(),i.createBlock(Au,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),i.createElementVNode("div",PQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(A),u=>(i.openBlock(),i.createBlock(Au,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const vg=M(HQ,[["__scopeId","data-v-a94d786a"]]),RQ={filterArray:{type:Array,required:!0,default:[]}},VQ={class:"checkboxes-container"},Bg=i.defineComponent({__name:"FilterRarities",props:RQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>we().dataJson.rarities.filter(l=>l.nameRef!=="None")),A=i.reactive(n.filterArray);i.watch(A,()=>{t("update:filterArray",A)});function s(){A.splice(0)}function o(l){const c=A.indexOf(l);if(c===-1){A.push(l);return}A.splice(c,1)}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":A,title:i.unref(r)("general.rarities"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createElementVNode("div",VQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,u=>(i.openBlock(),i.createBlock(tn,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":A.includes(u.nameRef),"onUpdate:isSelected":d=>o(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),KQ={filterArray:{type:Array,required:!0,default:[]}},$Q={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},WQ=["src"],GQ={class:"multiselect-tag-remove"},zQ=["onMousedown"],jQ=["src"],yg=i.defineComponent({__name:"FilterSets",props:KQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray);i.watch(a,()=>{t("update:filterArray",a.value)});function A(){a.value.splice(0)}return(s,o)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("general.sets"),"onClear:filterArray":A},{default:i.withCtx(()=>[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),placeholder:i.unref(r)("general.sets"),class:"runeterra-select",mode:"tags",options:i.unref(we)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:i.withCtx(({option:l,handleTagRemove:c})=>[i.createElementVNode("span",$Q,[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,WQ),i.createElementVNode("span",GQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(u=>c(l,u),["prevent"])},null,40,zQ)])])]),option:i.withCtx(({option:l})=>[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,jQ),i.createTextVNode(" "+i.toDisplayString(l.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),YQ={filterArray:{type:Array,required:!0,default:[]}},qQ={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},XQ=["src"],JQ={class:"multiselect-tag-remove"},ZQ=["onMousedown"],eT=["src"],wg=i.defineComponent({__name:"FilterKeywords",props:YQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray),A=i.computed(()=>we().dataJson.keywords.filter(o=>o.showInFilter));i.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("general.keywords"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:i.unref(r)("general.keywords"),class:"runeterra-select",mode:"tags",options:A.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:i.withCtx(({option:c,handleTagRemove:u})=>[i.createElementVNode("span",qQ,[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,XQ),i.createElementVNode("span",JQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(d=>u(c,d),["prevent"])},null,40,ZQ)])])]),option:i.withCtx(({option:c})=>[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,eT),i.createTextVNode(" "+i.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),tT={filterArray:{type:Array,required:!0,default:[]}},nT={class:"checkboxes-container"},Js=i.defineComponent({__name:"FilterServers",props:tT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterArray);i.watch(a,()=>{t("update:filterArray",a)});function A(){a.splice(0)}function s(o){const l=a.indexOf(o);if(l===-1){a.push(o);return}a.splice(l,1)}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a,title:i.unref(r)("general.servers"),"onClear:filterArray":A},{default:i.withCtx(()=>[i.createElementVNode("div",nT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(we)().dataJson.servers,c=>(i.openBlock(),i.createBlock(tn,{key:c.nameRef,prompt:c.name,"is-selected":a.includes(c.nameRef),"onUpdate:isSelected":u=>s(c.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),rT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},aT={class:"checkboxes-container"},AT=i.defineComponent({__name:"FilterTime",props:rT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterArray),A=i.ref(null),s=i.ref(null),o=a.find(h=>h.startsWith("patch_"));o&&(A.value=o);const l=a.find(h=>h.startsWith("season_"));l&&(s.value=l);const c=i.computed(()=>n.allowZero&&a.filter(h=>h.startsWith("patch")).length>0||!n.allowZero&&a.filter(h=>!h.startsWith("patch")).length===0);i.watch(a,()=>{t("update:filterArray",a)}),i.watch(A,(h,p)=>{u(h,p)}),i.watch(s,(h,p)=>{u(h,p)});function u(h,p){console.log(p,h),p&&a.splice(a.indexOf(p),1),h&&a.push(h),console.log(a)}function d(){a.splice(0),A.value=null,s.value=null}function f(h){a.splice(0),(n.allowZero||h!=="patch")&&a.push(h),h==="patch"&&A.value&&a.push(A.value),h==="season"&&s.value&&a.push(s.value)}return(h,p)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a,title:i.unref(r)("general.time"),"onClear:filterArray":d},{default:i.withCtx(()=>[i.createElementVNode("div",aT,[i.createVNode(tn,{prompt:i.unref(r)("general.patch"),"is-selected":c.value,"onUpdate:isSelected":p[0]||(p[0]=m=>f("patch"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.season"),"is-selected":a.includes("season"),"onUpdate:isSelected":p[1]||(p[1]=m=>f("season"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastDays",7),"is-selected":a.includes("past7days"),"onUpdate:isSelected":p[2]||(p[2]=m=>f("past7days"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastDays",3),"is-selected":a.includes("past3days"),"onUpdate:isSelected":p[3]||(p[3]=m=>f("past3days"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastHours",24),"is-selected":a.includes("past24hours"),"onUpdate:isSelected":p[4]||(p[4]=m=>f("past24hours"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastHour"),"is-selected":a.includes("pastHour"),"onUpdate:isSelected":p[5]||(p[5]=m=>f("pastHour"))},null,8,["prompt","is-selected"]),c.value?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:A.value,"onUpdate:modelValue":p[6]||(p[6]=m=>A.value=m),options:i.unref(we)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):i.createCommentVNode("",!0),a.includes("season")?(i.openBlock(),i.createBlock(i.unref(Vt),{key:1,modelValue:s.value,"onUpdate:modelValue":p[7]||(p[7]=m=>s.value=m),options:i.unref(we)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):i.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const $A=M(AT,[["__scopeId","data-v-78ab671a"]]),sT={filterArray:{type:Array,required:!0,default:[]}},iT={cardCodes:{type:Array,required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},oT=i.defineComponent({__name:"CardMultiselect",props:iT,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.cardCodes),A=i.computed(()=>{let s=Tw().cardJson.sort((o,l)=>o.name.localeCompare(l.name));return n.filterCallback&&(s=s.filter(n.filterCallback)),s});return i.watch(a,()=>{t("update:cardCodes",a.value)}),(s,o)=>(i.openBlock(),i.createBlock(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),class:"multiselect",placeholder:i.unref(r)("cards.cards"),mode:n.mode,options:A.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const bg=M(oT,[["__scopeId","data-v-968634df"]]),Xu=i.defineComponent({__name:"FilterCardCodes",props:sT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray);i.watch(a,()=>{console.log("watch(filterArray)",a.value),t("update:filterArray",a.value)});function A(){a.value.splice(0)}function s(o){return o.collectible}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("cards.cards"),"onClear:filterArray":A},{default:i.withCtx(()=>[i.createVNode(bg,{cardCodes:a.value,"onUpdate:cardCodes":l[0]||(l[0]=c=>a.value=c),mode:"tags","filter-callback":s},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),lT={filterArray:{type:Array,required:!0,default:[]}},cT={class:"checkboxes-container"},uT=i.defineComponent({__name:"FilterRegions",props:lT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterArray),A=i.ref([]);A.value.push(...a.filter(l=>uo(l))),i.watch(a,()=>{t("update:filterArray",a)}),i.watch(A,(l,c)=>{let u=l.find(d=>!c.includes(d));if(u||(u=c.find(d=>!l.includes(d)),u))return o(u)});function s(){a.splice(0),A.value.slice(0)}function o(l){const c=a.indexOf(l);if(c===-1){a.push(l),l==="Runeterra"&&a.push(...A.value);return}if(a.splice(c,1),l==="Runeterra")for(let u=0;u<a.length;u++)uo(a[u])&&a.splice(u--,1)}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a,title:i.unref(r)("general.regions"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createElementVNode("div",cT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(we)().dataJson.regions,u=>(i.openBlock(),i.createBlock(tn,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":a.includes(u.nameRef),"onUpdate:isSelected":d=>o(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),i.createVNode(tn,{class:"runeterra",prompt:"Runeterra","is-selected":a.includes("Runeterra"),"onUpdate:isSelected":c[0]||(c[0]=u=>o("Runeterra"))},null,8,["is-selected"]),a.includes("Runeterra")?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:A.value,"onUpdate:modelValue":c[1]||(c[1]=u=>A.value=u),class:"runeterra-select",mode:"tags",options:i.unref(we)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):i.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Yo=M(uT,[["__scopeId","data-v-c93a9e90"]]),dT={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},fT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},hT={class:"checkboxes-container"},pT=i.defineComponent({__name:"FilterFormat",props:fT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>{const d=we().dataJson.queues;return Object.values(we().dataJson.formats).filter(f=>f.availableQueues.some(h=>!d[h].excludeInMassFilter))}),A=i.computed(()=>a.value.filter(d=>!d.inDropdown)),s=i.computed(()=>a.value.filter(d=>d.inDropdown)),o=i.reactive(n.filterArray),l=i.ref(null);i.onMounted(()=>{o.length>0&&s.value.map(d=>d.nameRef).includes(o[0])&&(l.value=o[0])}),i.watch(o,()=>{t("update:filterArray",o),o.length===0&&(l.value=null)}),i.watch(l,()=>{l.value&&(o.splice(0),o.push(l.value))});function c(d){l.value=null,o.splice(0),d!==Vr.Standard&&o.push(d)}function u(){o.splice(0)}return(d,f)=>(i.openBlock(),i.createBlock(mt,{"filter-array":o,title:i.unref(r)("general.format"),"onClear:filterArray":u},{default:i.withCtx(()=>[i.createElementVNode("div",hT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,h=>(i.openBlock(),i.createBlock(tn,{prompt:h.name,"is-selected":o.includes(h.nameRef)||!n.allowZero&&h.nameRef==="Standard"&&o.length===0,"onUpdate:isSelected":p=>c(h.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),s.value.length>0?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=h=>l.value=h),options:s.value,searchable:!1,placeholder:i.unref(r)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:u},null,8,["modelValue","options","placeholder"])):i.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const _g=M(pT,[["__scopeId","data-v-22de9b40"]]),gT={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},Cg=i.defineComponent({__name:"FilterQueues",props:gT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray),A=i.computed(()=>Object.values(we().dataJson.queues).filter(o=>n.availableQueues.includes(o.nameRef)&&!o.excludeInMassFilter));i.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(o,l)=>n.availableQueues.length>1?(i.openBlock(),i.createBlock(mt,{key:0,"filter-array":a.value,title:i.unref(r)("general.queues"),"onClear:filterArray":s},{default:i.withCtx(()=>{var c,u;return[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=d=>a.value=d),placeholder:(u=(c=A.value)==null?void 0:c.find(d=>d.nameRef===i.unref(x2).Ranked))==null?void 0:u.name,class:"runeterra-select",mode:"tags",options:A.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):i.createCommentVNode("",!0)}}),mT={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},vT={class:"filter"},BT={key:0,class:"top"},yT=i.defineComponent({__name:"SidePanel",props:mT,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.filterObject&&Object.values(n.filterObject).some(A=>A.length>0)?"clickable":null);function a(){t("clear:filterObject")}return(A,s)=>{const o=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",vT,[n.showClearAll&&n.filterObject?(i.openBlock(),i.createElementBlock("div",BT,[i.withDirectives(i.createElementVNode("p",{class:i.normalizeClass(["clear",r.value]),onClick:a},null,2),[[o,"general.clearAll"]])])):i.createCommentVNode("",!0),i.renderSlot(A.$slots,"default",{},void 0,!0)])}}});const Zs=M(yT,[["__scopeId","data-v-6a93fcc1"]]),Bb=i.defineComponent({__name:"FilterDecks",props:dT,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=i.reactive(n.filters);i.watch(r,()=>{t("update:filters",r)});const a=i.computed(()=>{var s;return(s=we().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues});function A(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,o)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":A},{default:i.withCtx(()=>[i.createVNode(Yo,{"filter-array":r.regionFilters,"onUpdate:filterArray":o[0]||(o[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),i.createVNode(Xu,{"filter-array":r.cardFilters,"onUpdate:filterArray":o[1]||(o[1]=l=>r.cardFilters=l)},null,8,["filter-array"]),i.createVNode(_g,{"filter-array":r.formatFilters,"onUpdate:filterArray":o[2]||(o[2]=l=>r.formatFilters=l)},null,8,["filter-array"]),n.includeDataFilters?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Cg,{"filter-array":r.queueFilters,"onUpdate:filterArray":o[3]||(o[3]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"]),i.createVNode(Xs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":o[4]||(o[4]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),i.createVNode($A,{"filter-array":r.timeFilters,"onUpdate:filterArray":o[5]||(o[5]=l=>r.timeFilters=l)},null,8,["filter-array"]),i.createVNode(Js,{"filter-array":r.serverFilters,"onUpdate:filterArray":o[6]||(o[6]=l=>r.serverFilters=l)},null,8,["filter-array"])],64)):i.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),wT={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},bT={filterArray:{type:Array,required:!0,default:[]},placeholder:{type:String,required:!1},title:{type:String,required:!1,default:"Text"}},_T=["placeholder"],CT=i.defineComponent({__name:"FilterText",props:bT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,r=i.ref(n.filterArray),a=i.ref("");let A=setTimeout(()=>{},0);r.value.length>0&&(a.value=r.value[0]),i.watch(r,()=>{t("update:filterArray",r.value)}),i.watch(a,()=>{A&&clearTimeout(A),A=setTimeout(()=>{r.value.splice(0),a.value&&r.value.push(a.value)},1e3)});function s(){r.value.splice(0),a.value=""}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":r.value,title:n.title,"onClear:filterArray":s},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:n.placeholder,type:"text"},null,8,_T),[[i.vModelText,a.value]])]),_:1},8,["filter-array","title"]))}});const su=M(CT,[["__scopeId","data-v-e9c34cae"]]),yb=i.defineComponent({__name:"FilterProfile",props:wT,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filters);i.watch(a,()=>{t("update:filters",a)});const A=i.computed(()=>{var o;return a.formatFilters.length===0?[]:(o=we().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:o.availableQueues});function s(){for(const[,o]of Object.entries(a))o.splice(0)}return(o,l)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":s},{default:i.withCtx(()=>[i.createVNode(Yo,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),i.createVNode(Xu,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),i.createVNode(su,{"filter-array":a.deckCodeFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.deckCodeFilters=c),placeholder:i.unref(r)("general.deckCode"),title:i.unref(r)("general.deckCode")},null,8,["filter-array","placeholder","title"]),i.createVNode(su,{"filter-array":a.playerFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.playerFilters=c),placeholder:i.unref(r)("general.players"),title:i.unref(r)("general.players")},null,8,["filter-array","placeholder","title"]),i.createVNode(Xs,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.sampleSizeFilters=c)},null,8,["filter-array"]),i.createVNode(_g,{"allow-zero":!0,"filter-array":a.formatFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.formatFilters=c)},null,8,["filter-array"]),i.createVNode(Cg,{"filter-array":a.queueFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.queueFilters=c),"available-queues":A.value},null,8,["filter-array","available-queues"]),i.createVNode($A,{"allow-zero":!0,"filter-array":a.timeFilters,"onUpdate:filterArray":l[7]||(l[7]=c=>a.timeFilters=c)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}}),ET={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},kT={class:"advanced-filter-item"},ST=["value"],xT=i.defineComponent({__name:"AdvancedFilterItem",props:ET,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=[{value:"attack",label:r("cards.attack")},{value:"health",label:r("cards.health")},{value:"cost",label:r("cards.cost")},{value:"quantityOwned",label:r("cards.quantityOwned")}],A=i.ref(n.filterValue.attribute);i.watch(A,()=>{t("update:filterValue",{attribute:A.value,equality:n.filterValue.equality,number:n.filterValue.number})});function s(){let l=">";n.filterValue.equality===">"?l="<":n.filterValue.equality==="<"&&(l="="),t("update:filterValue",{attribute:n.filterValue.attribute,equality:l,number:n.filterValue.number})}function o(l){t("update:filterValue",{attribute:n.filterValue.attribute,equality:n.filterValue.equality,number:Number(l.target.value)})}return(l,c)=>(i.openBlock(),i.createElementBlock("div",kT,[i.createVNode(i.unref(Vt),{modelValue:A.value,"onUpdate:modelValue":c[0]||(c[0]=u=>A.value=u),class:"advanced-attribute",options:a,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),i.createElementVNode("div",{class:"equality-button",onClick:s},i.toDisplayString(n.filterValue.equality),1),i.createElementVNode("input",{type:"number",class:"equality-number",value:n.filterValue.number,onInput:o},null,40,ST)]))}});const Eg=M(xT,[["__scopeId","data-v-eb2d535d"]]),FT={filterValue:{type:Array,required:!0,default:[]}},IT=i.defineComponent({__name:"FilterAdvanced",props:FT,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterValue);i.watch(a,()=>{t("update:filterValue",a)});function A(){a.splice(0)}function s(){a.push({attribute:"attack",equality:">",number:0})}return(o,l)=>(i.openBlock(),i.createBlock(mt,{class:"advanced-filters","filter-array":a,title:i.unref(r)("general.advanced"),"onClear:filterArray":A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,(c,u)=>(i.openBlock(),i.createBlock(Eg,{key:u,"filter-value":a[u],"onUpdate:filterValue":d=>a[u]=d,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),i.createElementVNode("div",{class:"new-advanced-filter",onClick:s},i.toDisplayString(i.unref(r)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const kg=M(IT,[["__scopeId","data-v-6c23ee29"]]),UT={filterArray:{type:Array,required:!0,default:[]}},QT={class:"checkboxes-container"},Sg=i.defineComponent({__name:"FilterTypes",props:UT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>we().dataJson.types.filter(l=>["Unit","Spell","Landmark","Equipment"].includes(l.nameRef))),A=i.reactive(n.filterArray);i.watch(A,()=>{t("update:filterArray",A)});function s(){A.splice(0)}function o(l){const c=A.indexOf(l);if(c===-1){A.push(l);return}A.splice(c,1)}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":n.filterArray,title:i.unref(r)("general.types"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createElementVNode("div",QT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,u=>(i.openBlock(),i.createBlock(tn,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":A.includes(u.nameRef),"onUpdate:isSelected":d=>o(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),TT={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[]}}},wb=i.defineComponent({__name:"FilterCards",props:TT,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=i.reactive(n.filters);i.watch(r,()=>{t("update:filters",r)});const a=i.computed(()=>{var s;return"formatFilters"in r?(s=we().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues:[]});function A(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,o)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":A},{default:i.withCtx(()=>[i.createVNode(vg,{"filter-array":r.manaCostFilters,"onUpdate:filterArray":o[0]||(o[0]=l=>r.manaCostFilters=l)},null,8,["filter-array"]),i.createVNode(Yo,{"filter-array":r.regionFilters,"onUpdate:filterArray":o[1]||(o[1]=l=>r.regionFilters=l)},null,8,["filter-array"]),i.createVNode(Sg,{"filter-array":r.typeFilters,"onUpdate:filterArray":o[2]||(o[2]=l=>r.typeFilters=l)},null,8,["filter-array"]),i.createVNode(Bg,{"filter-array":r.rarityFilters,"onUpdate:filterArray":o[3]||(o[3]=l=>r.rarityFilters=l)},null,8,["filter-array"]),i.createVNode(yg,{"filter-array":r.setFilters,"onUpdate:filterArray":o[4]||(o[4]=l=>r.setFilters=l)},null,8,["filter-array"]),i.createVNode(wg,{"filter-array":r.keywordFilters,"onUpdate:filterArray":o[5]||(o[5]=l=>r.keywordFilters=l)},null,8,["filter-array"]),i.createVNode(kg,{"filter-value":r.advancedFilters,"onUpdate:filterValue":o[6]||(o[6]=l=>r.advancedFilters=l)},null,8,["filter-value"]),"serverFilters"in r?(i.openBlock(),i.createBlock(i.unref(Js),{key:0,"filter-array":r.serverFilters,"onUpdate:filterArray":o[7]||(o[7]=l=>r.serverFilters=l)},null,8,["filter-array"])):i.createCommentVNode("",!0),"timeFilters"in r?(i.openBlock(),i.createBlock($A,{key:1,"filter-array":r.timeFilters,"onUpdate:filterArray":o[8]||(o[8]=l=>r.timeFilters=l)},null,8,["filter-array"])):i.createCommentVNode("",!0),"formatFilters"in r?(i.openBlock(),i.createBlock(_g,{key:2,"filter-array":r.formatFilters,"onUpdate:filterArray":o[9]||(o[9]=l=>r.formatFilters=l)},null,8,["filter-array"])):i.createCommentVNode("",!0),"queueFilters"in r?(i.openBlock(),i.createBlock(Cg,{key:3,"filter-array":r.queueFilters,"onUpdate:filterArray":o[10]||(o[10]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"])):i.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),DT={regionRef:{type:String,required:!0,default:"Ionia"}},LT={text:{type:String,required:!0,default:""}},OT=["innerHTML"],MT=i.defineComponent({__name:"TippyText",props:LT,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,OT))}});const Ju=M(MT,[["__scopeId","data-v-715107fe"]]),NT={class:"region-item"},PT=["alt","src"],HT=i.defineComponent({__name:"RegionItem",props:DT,setup(e){const t=e,n=i.ref(null),r=i.ref(null),a=i.computed(()=>we().dataJson.regions.find(A=>A.nameRef==t.regionRef)??we().dataJson.runeterraChampions.find(A=>A.nameRef===t.regionRef));return i.onMounted(()=>{At(n.value,{content:r.value,arrow:!0})}),(A,s)=>{var o,l,c;return i.openBlock(),i.createElementBlock("div",NT,[i.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(o=a.value)==null?void 0:o.name,src:(l=a.value)==null?void 0:l.icon,class:"region-img"},null,8,PT),i.createElementVNode("div",{ref_key:"regionTippy",ref:r},[i.createVNode(Ju,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const qo=M(HT,[["__scopeId","data-v-3d756f50"]]),RT={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},VT={class:"regions-line"},KT={key:0,class:"describe-regions"},$T={class:"lines"},WT=i.defineComponent({__name:"RegionsLine",props:RT,setup(e){const t=e,{t:n}=re(),r=i.computed(()=>t.deck?t.deck:St(t.deckCode)),a=i.computed(()=>t.cards?t.cards:rn(r.value)),A=i.computed(()=>{const o={};for(const l of Ou(r.value))o[l]=0;for(const l of a.value)for(const c of l.regionRefs)c in o&&(o[c]+=r.value[l.cardCode]);return o});function s(o,l){return{flexGrow:o,backgroundColor:`var(--color-${l}, var(--color-Runeterra))`}}return(o,l)=>(i.openBlock(),i.createElementBlock("div",VT,[t.describeRegions?(i.openBlock(),i.createElementBlock("div",KT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,(c,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,class:"region-description"},[i.createVNode(qo,{"region-ref":u,class:"icon"},null,8,["region-ref"]),i.createElementVNode("span",null,i.toDisplayString(`${c} ${i.unref(n)("general.cards")}`),1)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",$T,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,(c,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,style:i.normalizeStyle(s(c,u)),class:"region-line"},null,4))),128))])]))}});const xg=M(WT,[["__scopeId","data-v-f1f94f8b"]]),GT={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},region:{type:String,required:!0,default:""},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},zT={class:"cards-row-background-wrapper"},jT={class:"cards-row-background"},YT={class:"cards-row wrapper"},qT={key:0,class:"column-content"},XT={key:2,class:"column-content"},JT={key:3,class:"column-content"},ZT={key:5,class:"column-content"},eD={key:7,class:"column-content"},tD={key:8,class:"column-content"},nD=i.defineComponent({__name:"CardsRow",props:GT,setup(e){const t=e,n=i.computed(()=>["",`https://lor.gg/storage/cards/banner/${t.cardCode}.png`]);return(r,a)=>{const A=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(A,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",zT,[i.createElementVNode("div",jT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"background-card",style:i.normalizeStyle({"--background-image":`url(${s})`})},null,4))),128))])]),i.createElementVNode("div",YT,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(fn,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!1,color:`var(--color-${t.region}-rgb, var(--color-primary-2-rgb))`,"router-link":t.routerLink},null,8,["card-code-prop","color","router-link"])]),t.toggledStats.matches?(i.openBlock(),i.createElementBlock("div",qT,i.toDisplayString(i.unref(Te)(t.matches)),1)):i.createCommentVNode("",!0),t.toggledStats.winrate?(i.openBlock(),i.createElementBlock("div",{key:1,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5)):i.createCommentVNode("",!0),t.toggledStats.inclusion?(i.openBlock(),i.createElementBlock("div",XT,i.toDisplayString(i.unref(Te)(t.inclusion*100,2,3)+"%"),1)):i.createCommentVNode("",!0),t.toggledStats.avgCopies?(i.openBlock(),i.createElementBlock("div",JT,i.toDisplayString(i.unref(Te)(t.avgCopies,2,3)),1)):i.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(i.openBlock(),i.createElementBlock("div",{key:4,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.mulliganWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.mulliganWinrate?i.unref(Te)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(i.openBlock(),i.createElementBlock("div",ZT,i.toDisplayString(t.keptInMulligan?i.unref(Te)(t.keptInMulligan*100,2,3)+"%":"-"),1)):i.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(i.openBlock(),i.createElementBlock("div",{key:6,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.drawnWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.drawnWinrate?i.unref(Te)(t.drawnWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.turnPlayed?(i.openBlock(),i.createElementBlock("div",eD,i.toDisplayString(t.turnPlayed?i.unref(Te)(t.turnPlayed,2,3):"-"),1)):i.createCommentVNode("",!0),t.toggledStats.turnsHeld?(i.openBlock(),i.createElementBlock("div",tD,i.toDisplayString(t.turnsHeld?i.unref(Te)(t.turnsHeld,2,3):"-"),1)):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Fg=M(nD,[["__scopeId","data-v-bd1cd183"]]),rD={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}},loading:{type:Boolean,required:!1,default:!1}};var be=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(be||{});const aD={headingItems:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}};const AD={},sD={class:"loader"};function iD(e,t){return i.openBlock(),i.createElementBlock("div",sD)}const Ig=M(AD,[["render",iD],["__scopeId","data-v-91218ab0"]]),Ug=e=>(i.pushScopeId("data-v-6c7efe2d"),e=e(),i.popScopeId(),e),oD={class:"table-wrapper"},lD={class:"table no-scrollbar"},cD=Ug(()=>i.createElementVNode("div",{class:"heading-background-outer"},[i.createElementVNode("div",{class:"heading-background-absolute"}),i.createElementVNode("div",{class:"heading-background-inner"})],-1)),uD={class:"heading wrapper"},dD=["onClick"],fD={class:"sort-icons"},hD={key:0,class:"no-content loading"},pD={key:1,class:"no-content no-results"},gD=Ug(()=>i.createElementVNode("h2",null," No Results ",-1)),mD=Ug(()=>i.createElementVNode("h4",null," Adjust filters and try again. ",-1)),vD=[gD,mD],BD=i.defineComponent({__name:"LargeTable",props:aD,emits:["toggleSort"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.headingItems.filter(a=>a.isShown));return(a,A)=>(i.openBlock(),i.createElementBlock("div",oD,[i.createElementVNode("div",lD,[cD,i.createElementVNode("div",uD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s.title,class:i.normalizeClass(["heading-cell column-content",s.sortDirection]),onClick:o=>t("toggleSort",s.id)},[i.createElementVNode("div",null,i.toDisplayString(s.title),1),i.createElementVNode("div",fD,[i.createVNode(i.unref(Ue),{icon:"sort-up",class:"sort-icon"}),i.createVNode(i.unref(Ue),{icon:"sort-down",class:"sort-icon"})])],10,dD))),128))]),i.renderSlot(a.$slots,"default",{},()=>[n.loading?(i.openBlock(),i.createElementBlock("div",hD,[i.createVNode(Ig)])):(i.openBlock(),i.createElementBlock("div",pD,vD))],!0)])]))}});const tA=M(BD,[["__scopeId","data-v-6c7efe2d"]]);function ei(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===be.NOT_SORTABLE)return null;const r=n.sortDirection;return yD(t),r===be.NEITHER?n.sortDirection=be.DOWN:r===be.DOWN?n.sortDirection=be.UP:n.sortDirection=be.DOWN,n}function yD(e){e.value.forEach(t=>{t.sortDirection!==be.NOT_SORTABLE&&(t.sortDirection=be.NEITHER)})}const wD=i.defineComponent({__name:"CardsTable",props:rD,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:r("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:r("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:r("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:r("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:r("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:r("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:r("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:r("general.turnPlayed")}];let A=!1;const s=i.ref(a.map(c=>{let u=be.NEITHER;return c.isSortable||(u=be.NOT_SORTABLE),!A&&c.isSortable&&(u=be.DOWN,A=!0),{id:c.id,isShown:n.cardsRowToggle[c.id],sortDirection:u,title:c.title}})),o=i.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(n.cardsRowToggle).reduce((u,d)=>d?u+1:u,0)}, 1fr)`}));function l(c){const u=ei(c,s);u&&t("sort-updated",u)}return(c,u)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":s.value,style:i.normalizeStyle(o.value),onToggleSort:l},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.cardRows,(d,f)=>(i.openBlock(),i.createBlock(Fg,{key:d.cardCode+d.region,"card-code":d.cardCode,matches:d.matches,wins:d.wins,index:f+2,"avg-copies":d.avgCopies,"drawn-winrate":d.drawnWinrate,"kept-in-mulligan":d.keptInMulligan,"mulligan-winrate":d.mulliganWinrate,inclusion:d.inclusion,"turns-held":d.turnsHeld,"turn-played":d.turnPlayed,"toggled-stats":n.cardsRowToggle,region:d.region,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(d.cardCode)},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats","region","router-link"]))),128))]),_:1},8,["loading","heading-items","style"]))}});const bb=M(wD,[["__scopeId","data-v-1894b267"]]),bD={regions:{type:Array,required:!0,default:[]}},_D={class:"deck-highlight-regions"},CD=i.defineComponent({__name:"DeckHighlightRegions",props:bD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",_D,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.regions,a=>(i.openBlock(),i.createElementBlock("div",{key:a,class:"region-item-wrapper"},[i.createVNode(qo,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Xo=M(CD,[["__scopeId","data-v-d28f95f4"]]),ED={},kD={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},SD=i.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5),xD=[SD];function FD(e,t){return i.openBlock(),i.createElementBlock("svg",kD,xD)}const Qg=M(ED,[["render",FD]]),ID={deck:{type:Object,required:!0,default:{}}},UD=e=>(i.pushScopeId("data-v-25f680e9"),e=e(),i.popScopeId(),e),QD={class:"gems-text"},TD={class:"gems-cost-title"},DD={class:"gems-cost-value"},LD=UD(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),OD={class:"gems-cost-title"},MD={class:"gems-cost-value"},ND=i.defineComponent({__name:"GemsCost",props:ID,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(null),A=i.computed(()=>Yc(t.deck,!1)),s=i.computed(()=>Yc(t.deck,!0));return i.onMounted(()=>{At(r.value,{content:a.value,arrow:!0,duration:0})}),(o,l)=>{var c,u,d;return i.openBlock(),i.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[i.createVNode(Qg,{class:"shards-icon"}),i.createElementVNode("div",QD,i.toDisplayString((c=s.value!==null?s.value:A.value)==null?void 0:c.toLocaleString()),1),i.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",TD,i.toDisplayString(i.unref(n)("deck.personalCost")),1),i.createElementVNode("div",DD,i.toDisplayString((u=s.value)==null?void 0:u.toLocaleString()),1),LD],64)):i.createCommentVNode("",!0),i.createElementVNode("div",OD,i.toDisplayString(i.unref(n)("deck.originalCost")),1),i.createElementVNode("div",MD,i.toDisplayString((d=A.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Tg=M(ND,[["__scopeId","data-v-25f680e9"]]),PD={class:"language-selection"},HD={class:"selection-panel"},RD=i.defineComponent({__name:"LanguageSelection",setup(e){const{locale:t,availableLocales:n}=re(),r={en:"English",de:"Deutsch",es:"Español",fr:"Français",it:"Italiano",ja:"日本語",ko:"한국어",pl:"Polski",pt:"Português",th:"ไทย",tr:"Türkçe",ru:"Русский",zh:"中文"},a=pA.useRoute(),A=i.ref(!1),s=i.computed(()=>n.sort(l=>l===t.value?-1:1));function o(){A.value=!0}return(l,c)=>{const u=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",PD,[i.createVNode(i.unref(Ue),{ref:"languageIcon",icon:"language",class:"icon",onClick:o},null,512),i.createVNode(KA,{"show-modal":A.value,"onUpdate:showModal":c[0]||(c[0]=d=>A.value=d)},{default:i.withCtx(()=>[i.createElementVNode("div",HD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,d=>(i.openBlock(),i.createBlock(u,{class:i.normalizeClass(i.unref(t)===d?"selected":""),locale:d,key:d,to:{...i.unref(a),params:{...i.unref(a).params,lang:d}}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r[d]),1)]),_:2},1032,["class","locale","to"]))),128))])]),_:1},8,["show-modal"])])}}});const Dg=M(RD,[["__scopeId","data-v-8a6f5e0d"]]),VD={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},_b={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},KD={class:"circle-card-item"},$D=["alt","src"],WD=i.defineComponent({__name:"CircleCardItem",props:_b,setup(e){const t=e,n=Ro(t.cardProp,t.cardCodeProp,!0),r=i.ref(null),a=i.ref(null),A=i.ref(null),s=i.ref(null),o=i.computed(()=>{var c;return"https://lor.gg/storage/cards/icon/"+((c=n.value)==null?void 0:c.cardCode)+"-icon.webp"}),l=i.computed(()=>n.value===void 0?"--color-primary-2":gA(n.value,t.regions));return i.onMounted(()=>{t.ignoreCardItem||At(r.value,{content:a.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:c=>{const u=c.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=u},onHidden:()=>{s.value=null}})}),(c,u)=>{const d=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",KD,[i.createVNode(d,{to:t.routerLink,class:"circle-card-link",onClick:u[0]||(u[0]=i.withModifiers(()=>{},["stop","prevent"]))},{default:i.withCtx(()=>{var f;return[i.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=i.unref(n))==null?void 0:f.name,src:o.value,class:"circle-card-img",style:i.normalizeStyle({borderColor:t.colorOverride??l.value})},null,12,$D)]}),_:1},8,["to"]),i.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&i.unref(n)?(i.openBlock(),i.createBlock(Wa,{key:0,ref_key:"cardItem",ref:A,"card-code-prop":i.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":s.value},null,8,["card-code-prop","show-tippy-location"])):i.createCommentVNode("",!0)],512)])}}});const nA=M(WD,[["__scopeId","data-v-e5d6b977"]]),GD={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},zD={class:"deck-highlight-cards"},jD=i.defineComponent({__name:"DeckHighlightCards",props:GD,setup(e){const t=e,n=i.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>jt().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(i.openBlock(),i.createElementBlock("div",zD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(A,s)=>(i.openBlock(),i.createElementBlock("div",{key:A.cardCode??s,class:"circle-card-item-wrapper"},[i.createVNode(nA,{class:"circle-card-item","card-prop":A,regions:t.regions,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(A.cardCode)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const Jo=M(jD,[["__scopeId","data-v-021c3530"]]),YD=i.defineComponent({__name:"ArchetypeSidePanelHighlight",props:VD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createBlock(mt,{class:"archetype-side-panel-highlight"},{default:i.withCtx(()=>[i.createVNode(Xo,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),i.createVNode(Jo,{class:i.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Zu=M(YD,[["__scopeId","data-v-ff538f6f"]]),qD={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},XD={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
809
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var o=a.reduce(function(l,c){var u=c&&TI(c,r);return u&&l.push(u),l},[]);return Co(e)?o[0]:o}At.defaultProps=kn;At.setDefaultProps=FI;At.currentInput=fr;Object.assign({},Yw,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});At.setDefaultProps({render:fb});const hb={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},userCardQuantity:{type:Object,required:!1,default:void 0},showTippyLocation:{type:String,required:!1,default:null}},DI=["alt","src"],LI={key:0,class:"quantity-ticks-container"},OI={key:0},MI={key:0,class:"card-info-quantity-possessed"},NI={key:1,class:"line"},PI={class:"card-info-title"},HI={class:"card-info-text"},RI={key:2,class:"line"},VI={key:3,class:"card-info-text"},KI={key:1,class:"associated-card-container"},$I=i.defineComponent({__name:"CardItem",props:hb,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(null);let A=null;const s=i.ref(!1),o=Ro(t.cardProp,t.cardCodeProp),l=i.computed(()=>o.value===void 0?null:t.quantityNeeded!=null&&t.userCardQuantity!=null&&o.value.cardCode in t.userCardQuantity&&t.quantityNeeded>t.userCardQuantity[o.value.cardCode]?"bad":null),c=i.computed(()=>{if(o.value===void 0)return[];const g=[];if(t.isRoot)for(const v of o.value.associatedCardRefs)g.push(jt().cardJsonObject[v]);return g}),u=i.computed(()=>{if(o.value===void 0)return[];const g=[];for(const v of o.value.keywordRefs){const _=we().dataJson.keywords.find(B=>B.nameRef===v);_&&g.push(_)}return g}),d=i.computed(()=>t.isRoot&&(t.userCardQuantity!=null||o.value&&(o.value.keywordRefs.length>0||o.value.associatedCardRefs.length>0))),f=i.computed(()=>{var g;return t.userCardQuantity==null||o.value&&!(o.value.cardCode in t.userCardQuantity)?0:t.userCardQuantity[((g=o.value)==null?void 0:g.cardCode)??0]}),h=i.computed(()=>o.value===void 0?null:t.isDeckBuilder&&t.deckList[o.value.cardCode]===3?"disabled":null);i.watch(()=>t.showTippyLocation,g=>{A&&(g?(A.setProps({placement:g}),A.show()):A.hide())});function p(){window.addEventListener("keyup",g=>{g.key=="Shift"&&(s.value=!1)})}function m(){window.addEventListener("keydown",g=>{g.key=="Shift"&&(s.value=!0)})}function y(g){return o.value===void 0?null:t.isDeckBuilder?!(o.value.cardCode in t.deckList)||g>t.deckList[o.value.cardCode]?"disabled":null:g>f.value?"disabled":null}return i.onMounted(()=>{(o.value===void 0||t.userCardQuantity!=null||o.value.keywordRefs.length>0||o.value.associatedCardRefs.length>0)&&(A=At(r.value,{allowHTML:!0,content:a.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw",touch:!1})),(o.value===void 0||o.value.associatedCardRefs.length>0)&&(p(),m())}),(g,v)=>{var B,w,b;const _=i.resolveComponent("CardItem",!0);return i.openBlock(),i.createElementBlock("div",{class:"card-item-container",onMouseover:v[0]||(v[0]=C=>!0),onMouseleave:v[1]||(v[1]=C=>!1)},[i.createElementVNode("img",{ref_key:"cardItem",ref:r,alt:(B=i.unref(o))==null?void 0:B.name,class:i.normalizeClass(["card-item",h.value]),src:`https://lor.gg/storage/cards/card/en_us/${(w=i.unref(o))==null?void 0:w.cardCode}.webp`},null,10,DI),(g.isDeckBuilder||g.userCardQuantity!=null)&&((b=i.unref(o))!=null&&b.collectible)?(i.openBlock(),i.createElementBlock("div",LI,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(3,C=>i.createElementVNode("div",{key:C,class:i.normalizeClass(["quantity-tick",y(C)])},null,2)),64))])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"cardInfo",ref:a,class:i.normalizeClass(s.value?null:"card-info")},[!s.value&&d.value&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",OI,[f.value!==void 0?(i.openBlock(),i.createElementBlock("div",MI,[i.createTextVNode(i.toDisplayString(i.unref(n)("general.youHave"))+" ",1),i.createElementVNode("b",{class:i.normalizeClass(l.value)},i.toDisplayString(f.value+" / "+(g.quantityNeeded||3)),3)])):i.createCommentVNode("",!0),f.value!==void 0&&(i.unref(o).keywordRefs.length>0||i.unref(o).associatedCardRefs.length>0)?(i.openBlock(),i.createElementBlock("hr",NI)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,C=>(i.openBlock(),i.createElementBlock("div",{key:C.nameRef,class:"card-info-section"},[i.createElementVNode("h4",PI,i.toDisplayString(C.name),1),i.createElementVNode("p",HI,i.toDisplayString(C.description),1)]))),128)),i.unref(o).keywordRefs.length>0&&i.unref(o).associatedCardRefs.length>0?(i.openBlock(),i.createElementBlock("hr",RI)):i.createCommentVNode("",!0),i.unref(o).associatedCardRefs.length>0?(i.openBlock(),i.createElementBlock("div",VI,i.toDisplayString(i.unref(n)("general.holdShiftForAssociated")),1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",KI,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,C=>(i.openBlock(),i.createBlock(_,{key:C.cardCode,"card-code-prop":C.cardCode,"is-deck-builder":!1,"is-root":!1,class:"associated-card"},null,8,["card-code-prop"]))),128))]))],2)],32)}}});const M=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Wa=M($I,[["__scopeId","data-v-8bf6fbfc"]]),WI=i.defineComponent({__name:"RevealCarousel",props:e6,setup(e){var o;const t=e,n=[z5],r=i.ref(null),a=i.ref((o=r.value)==null?void 0:o.clientWidth),A=i.computed(()=>a.value===void 0?!0:a.value<400);function s(){var l;a.value=(l=r.value)==null?void 0:l.clientWidth}return i.onMounted(()=>{window.addEventListener("resize",s),s()}),i.onUnmounted(()=>{window.removeEventListener("resize",s)}),(l,c)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[i.createVNode(i.unref(Ww),{"slides-per-view":"auto","space-between":15,"centered-slides":A.value,navigation:!0,modules:n},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cardCodes,u=>(i.openBlock(),i.createBlock(i.unref(Gw),{key:u},{default:i.withCtx(()=>[i.createVNode(Wa,{class:"card-item-called","card-code-prop":u,"is-root":!0},null,8,["card-code-prop"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const pg=M(WI,[["__scopeId","data-v-430f2bb4"]]),pb={fetchSeachResult:{type:Function,required:!0,default:()=>[]}},GI={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1,default:void 0},color:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},manaNumber:{type:Number,required:!1,default:void 0},routerLink:{type:Object,required:!1,default:"404"},quantityNumber:{type:Number,required:!1,default:void 0},maintainAspectRatio:{type:Boolean,required:!1,default:!0},showPlusMinus:{type:Boolean,required:!1,default:!1}},zI="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMxIDM2Ij4KICAgIDxkZWZzPgogICAgICA8bGluZWFyR3JhZGllbnQKICAgICAgICBpZD0iYSIKICAgICAgICB4MT0iLjA4IgogICAgICAgIHkxPSIuODIiCiAgICAgICAgeDI9IjEiCiAgICAgICAgeTI9Ii4xOSIKICAgICAgICBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIKICAgICAgPgogICAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzA0NjZjOCIgLz4KICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDNhOWUiIC8+CiAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxNS41IDE1LjUpIiBmaWxsPSJ1cmwoI2EpIj4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMjMuNTUgMzAuNWgtMTEuMWE1LjUyIDUuNTIgMCAwIDEtNC43NS0yLjc0bC01LjUyLTkuNWE1LjUxIDUuNTEgMCAwIDEgMC01LjUybDUuNTItOS41QTUuNTIgNS41MiAwIDAgMSAxMi40NS41aDExLjFhNS41MiA1LjUyIDAgMCAxIDQuNzUgMi43NGw1LjUyIDkuNWMuOTkgMS43Ljk5IDMuODIgMCA1LjUybC01LjUyIDkuNWE1LjUyIDUuNTIgMCAwIDEtNC43NSAyLjc0WiIKICAgICAgLz4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMTIuNDUgMWMtMS43NyAwLTMuNDMuOTUtNC4zMiAyLjQ5bC01LjUyIDkuNWE1LjAxIDUuMDEgMCAwIDAgMCA1LjAybDUuNTIgOS41QTUuMDIgNS4wMiAwIDAgMCAxMi40NSAzMGgxMS4xYzEuNzcgMCAzLjQzLS45NSA0LjMyLTIuNDlsNS41Mi05LjVjLjktMS41NS45LTMuNDcgMC01LjAybC01LjUyLTkuNUE1LjAyIDUuMDIgMCAwIDAgMjMuNTUgMWgtMTEuMW0wLTFoMTEuMWE2IDYgMCAwIDEgNS4xOCAyLjk5bDUuNTIgOS41YTYgNiAwIDAgMSAwIDYuMDJsLTUuNTIgOS41QTYgNiAwIDAgMSAyMy41NSAzMWgtMTEuMWE2IDYgMCAwIDEtNS4xOC0yLjk5bC01LjUyLTkuNWE2IDYgMCAwIDEgMC02LjAybDUuNTItOS41QTYgNiAwIDAgMSAxMi40NSAwWiIKICAgICAgICBmaWxsPSIjZmZjNTNlIgogICAgICAvPgogICAgPC9nPgogIDwvc3ZnPg==",jI=["src"],jo=i.defineComponent({__name:"ManaHexagonIcon",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("img",{src:i.unref(zI)},null,8,jI))}});function sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sv(Object(n),!0).forEach(function(r){on(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YI(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,A;for(A=0;A<r.length;A++)a=r[A],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function qI(e,t){if(e==null)return{};var n=YI(e,t),r,a;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);for(a=0;a<A.length;a++)r=A[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ih(e){return XI(e)||JI(e)||ZI(e)||eU()}function XI(e){if(Array.isArray(e))return Uh(e)}function JI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZI(e,t){if(e){if(typeof e=="string")return Uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uh(e,t)}}function Uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
810
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gb={exports:{}};(function(e){(function(t){var n=function(g,v,_){if(!c(v)||d(v)||f(v)||h(v)||l(v))return v;var B,w=0,b=0;if(u(v))for(B=[],b=v.length;w<b;w++)B.push(n(g,v[w],_));else{B={};for(var C in v)Object.prototype.hasOwnProperty.call(v,C)&&(B[g(C,_)]=n(g,v[C],_))}return B},r=function(g,v){v=v||{};var _=v.separator||"_",B=v.split||/(?=[A-Z])/;return g.split(B).join(_)},a=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(v,_){return _?_.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},A=function(g){var v=a(g);return v.substr(0,1).toUpperCase()+v.substr(1)},s=function(g,v){return r(g,v).toLowerCase()},o=Object.prototype.toString,l=function(g){return typeof g=="function"},c=function(g){return g===Object(g)},u=function(g){return o.call(g)=="[object Array]"},d=function(g){return o.call(g)=="[object Date]"},f=function(g){return o.call(g)=="[object RegExp]"},h=function(g){return o.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},m=function(g,v){var _=v&&"process"in v?v.process:v;return typeof _!="function"?g:function(B,w){return _(B,g,w)}},y={camelize:a,decamelize:s,pascalize:A,depascalize:s,camelizeKeys:function(g,v){return n(m(a,v),g)},decamelizeKeys:function(g,v){return n(m(s,v),g,v)},pascalizeKeys:function(g,v){return n(m(A,v),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=y:t.humps=y})(tU)})(gb);var nU=gb.exports,rU=["class","style"];function aU(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=nU.camelize(n.slice(0,r)),A=n.slice(r+1).trim();return t[a]=A,t},{})}function AU(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function gg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return gg(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=AU(u);break;case"style":l.style=aU(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var A=n.style,s=A===void 0?{}:A,o=qI(n,rU);return i.h(e.tag,qn(qn(qn({},t),{},{class:a.class,style:qn(qn({},a.style),s)},a.attrs),o),r)}var mb=!1;try{mb=process.env.NODE_ENV==="production"}catch{}function sU(){if(!mb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function zi(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?on({},e,t):{}}function iU(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},on(t,"fa-".concat(e.size),e.size!==null),on(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),on(t,"fa-pull-".concat(e.pull),e.pull!==null),on(t,"fa-swap-opacity",e.swapOpacity),on(t,"fa-bounce",e.bounce),on(t,"fa-shake",e.shake),on(t,"fa-beat",e.beat),on(t,"fa-fade",e.fade),on(t,"fa-beat-fade",e.beatFade),on(t,"fa-flash",e.flash),on(t,"fa-spin-pulse",e.spinPulse),on(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function iv(e){if(e&&au(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(eu.icon)return eu.icon(e);if(e===null)return null;if(au(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Ie=i.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=i.computed(function(){return iv(t.icon)}),A=i.computed(function(){return zi("classes",iU(t))}),s=i.computed(function(){return zi("transform",typeof t.transform=="string"?eu.transform(t.transform):t.transform)}),o=i.computed(function(){return zi("mask",iv(t.mask))}),l=i.computed(function(){return pF(a.value,qn(qn(qn(qn({},A.value),s.value),o.value),{},{symbol:t.symbol,title:t.title}))});i.watch(l,function(u){if(!u)return sU("Could not find one or more icon(s)",a.value,o.value)},{immediate:!0});var c=i.computed(function(){return l.value?gg(l.value.abstract[0],{},r):null});return function(){return c.value}}});i.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=Qw.familyPrefix,A=i.computed(function(){return["".concat(a,"-layers")].concat(Ih(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return i.h("div",{class:A.value},r.default?r.default():[])}}});i.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=Qw.familyPrefix,A=i.computed(function(){return zi("classes",[].concat(Ih(t.counter?["".concat(a,"-layers-counter")]:[]),Ih(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=i.computed(function(){return zi("transform",typeof t.transform=="string"?eu.transform(t.transform):t.transform)}),o=i.computed(function(){var c=gF(t.value.toString(),qn(qn({},s.value),A.value)),u=c.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=i.computed(function(){return gg(o.value,{},r)});return function(){return l.value}}});const oU={class:"card-slice"},lU={key:0,class:"mana-hexagon"},cU={class:"mana-number"},uU={class:"card-name"},dU={key:1,class:"quantity"},fU={class:"quantity-background"},hU={class:"num-quantity"},pU={class:"plus-minus-content"},gU={class:"plus-minus-quantity"},mU=i.defineComponent({__name:"CardSliceItem",props:GI,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,r=Ro(n.cardProp,n.cardCodeProp,!1),a=i.ref(null),A=i.ref(null),s=i.ref(null),o=i.ref(null),l=i.computed(()=>{let d=n.color;return!d&&r.value&&(d=gA(r.value,null,!0)),d||(d="var(--color-background-2-rgb)"),{"--color":d}}),c=i.computed(()=>r.value?"https://lor.gg/storage/cards/slice/"+r.value.cardCode+"-slice.webp":""),u=i.computed(()=>{const d=["card-slice-wrapper"];return n.maintainAspectRatio&&d.push("maintain-aspect-ratio"),d});return i.onMounted(()=>{n.ignoreCardItem||At(a.value,{content:s.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:d=>{const f=d.popper.innerHTML.includes("right")?"right-start":"left-start";o.value=f},onHidden:()=>{o.value=null}})}),(d,f)=>{const h=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(h,{to:n.routerLink},{default:i.withCtx(()=>{var p,m;return[i.createElementVNode("div",{ref_key:"cardSlice",ref:a,class:i.normalizeClass(u.value)},[i.createElementVNode("div",oU,[i.createElementVNode("div",{class:"card-image",style:i.normalizeStyle({backgroundImage:`url(${c.value})`})},null,4),i.createElementVNode("div",{class:"region-gradient",style:i.normalizeStyle(l.value)},null,4),i.unref(r)||n.manaNumber!==void 0&&n.manaNumber!==null?(i.openBlock(),i.createElementBlock("div",lU,[i.createVNode(jo,{class:"hexagon-icon"}),i.createElementVNode("div",cU,i.toDisplayString(n.manaNumber??((p=i.unref(r))==null?void 0:p.cost)),1)])):i.createCommentVNode("",!0),i.createElementVNode("div",uU,i.toDisplayString(n.name??((m=i.unref(r))==null?void 0:m.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(i.openBlock(),i.createElementBlock("div",dU,[i.createElementVNode("div",fU,[i.createElementVNode("p",hU,i.toDisplayString(n.quantityNumber),1)])])):i.createCommentVNode("",!0),n.showPlusMinus?(i.openBlock(),i.createElementBlock("div",{key:2,class:"plus-minus",onClick:f[2]||(f[2]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("div",pU,[i.createElementVNode("div",{class:"plus-minus-icon",onClick:f[0]||(f[0]=i.withModifiers(y=>{var g;return t("update:card-quantity",{cardCode:((g=i.unref(r))==null?void 0:g.cardCode)??"",quantity:-1})},["prevent"]))},[i.createVNode(i.unref(Ie),{icon:"minus",class:"icon"})]),i.createElementVNode("div",{class:"plus-minus-icon",onClick:f[1]||(f[1]=i.withModifiers(y=>{var g;return t("update:card-quantity",{cardCode:((g=i.unref(r))==null?void 0:g.cardCode)??"",quantity:1})},["prevent"]))},[i.createVNode(i.unref(Ie),{icon:"plus",class:"icon"})]),i.createElementVNode("div",gU,i.toDisplayString(n.quantityNumber),1)])])):i.createCommentVNode("",!0)])],2),i.createElementVNode("div",{ref_key:"cardItemWrapper",ref:s,class:"card-item-container"},[i.unref(r)&&!d.ignoreCardItem?(i.openBlock(),i.createBlock(Wa,{key:0,ref_key:"cardItem",ref:A,"is-root":!0,"card-prop":i.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":o.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):i.createCommentVNode("",!0)],512)]}),_:1},8,["to"])}}});const fn=M(mU,[["__scopeId","data-v-a1e91ff3"]]);function cr(e){return[null,void 0].indexOf(e)!==-1}function vU(e,t,n){const{object:r,valueProp:a,mode:A}=i.toRefs(e),s=i.getCurrentInstance().proxy,o=n.iv,l=(d,f=!0)=>{o.value=u(d);const h=c(d);t.emit("change",h,s),f&&(t.emit("input",h),t.emit("update:modelValue",h))},c=d=>r.value||cr(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>cr(d)?A.value==="single"?{}:[]:d;return{update:l}}function BU(e,t){const{value:n,modelValue:r,mode:a,valueProp:A}=i.toRefs(e),s=i.ref(a.value!=="single"?[]:{}),o=r&&r.value!==void 0?r:n,l=i.computed(()=>a.value==="single"?s.value[A.value]:s.value.map(u=>u[A.value])),c=i.computed(()=>a.value!=="single"?s.value.map(u=>u[A.value]).join(","):s.value[A.value]);return{iv:s,internalValue:s,ev:o,externalValue:o,textValue:c,plainValue:l}}function yU(e,t,n){const{regex:r}=i.toRefs(e),a=i.getCurrentInstance().proxy,A=n.isOpen,s=n.open,o=i.ref(null),l=i.ref(null),c=()=>{o.value=""},u=h=>{o.value=h.target.value},d=h=>{if(r&&r.value){let p=r.value;typeof p=="string"&&(p=new RegExp(p)),h.key.match(p)||h.preventDefault()}},f=h=>{if(r&&r.value){let m=(h.clipboardData||window.clipboardData).getData("Text"),y=r.value;typeof y=="string"&&(y=new RegExp(y)),m.split("").every(g=>!!g.match(y))||h.preventDefault()}t.emit("paste",h,a)};return i.watch(o,h=>{!A.value&&h&&s(),t.emit("search-change",h,a)}),{search:o,input:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function wU(e,t,n){const{groupSelect:r,mode:a,groups:A,disabledProp:s}=i.toRefs(e),o=i.ref(null),l=u=>{u===void 0||u!==null&&u[s.value]||A.value&&u&&u.group&&(a.value==="single"||!r.value)||(o.value=u)};return{pointer:o,setPointer:l,clearPointer:()=>{l(null)}}}function cf(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function bU(e){return Object.prototype.toString.call(e)==="[object Object]"}function _U(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function CU(e,t,n){const{options:r,mode:a,trackBy:A,limit:s,hideSelected:o,createTag:l,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:h,object:p,loading:m,delay:y,resolveOnLoad:g,minChars:v,filterResults:_,clearOnSearch:B,clearOnSelect:w,valueProp:b,allowAbsent:C,groupLabel:k,canDeselect:S,max:T,strict:U,closeOnSelect:F,closeOnDeselect:Q,groups:Y,reverse:X,infinite:j,groupOptions:K,groupHideEmpty:oe,groupSelect:$,onCreate:Ae,disabledProp:ce,searchStart:me,searchFilter:Ee}=i.toRefs(e),fe=i.getCurrentInstance().proxy,ne=n.iv,N=n.ev,te=n.search,Pe=n.clearSearch,ot=n.update,xt=n.pointer,vt=n.clearPointer,Qn=n.focus,x=n.deactivate,E=n.close,D=n.localize,W=i.ref([]),ie=i.ref([]),he=i.ref(!1),Ft=i.ref(null),ht=i.ref(j.value&&s.value===-1?10:s.value),Bn=i.computed(()=>l.value||c.value||!1),$e=i.computed(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),O=i.computed(()=>{if(Y.value){let I=et.value||[],G=[];return I.forEach(xe=>{$d(xe[K.value]).forEach(Bt=>{G.push(Object.assign({},Bt,xe[ce.value]?{[ce.value]:!0}:{}))})}),G}else{let I=$d(ie.value||[]);return W.value.length&&(I=I.concat(W.value)),I}}),P=i.computed(()=>{let I=O.value;return X.value&&(I=I.reverse()),la.value.length&&(I=la.value.concat(I)),Kd(I)}),Ze=i.computed(()=>{let I=P.value;return ht.value>0&&(I=I.slice(0,ht.value)),I}),et=i.computed(()=>{if(!Y.value)return[];let I=[],G=ie.value||[];return W.value.length&&I.push({[k.value]:" ",[K.value]:[...W.value],__CREATE__:!0}),I.concat(G)}),Ar=i.computed(()=>{let I=[...et.value].map(G=>({...G}));return la.value.length&&(I[0]&&I[0].__CREATE__?I[0][K.value]=[...la.value,...I[0][K.value]]:I=[{[k.value]:" ",[K.value]:[...la.value],__CREATE__:!0}].concat(I)),I}),Tn=i.computed(()=>{if(!Y.value)return[];let I=Ar.value;return AE((I||[]).map((G,xe)=>{const Bt=$d(G[K.value]);return{...G,index:xe,group:!0,[K.value]:Kd(Bt,!1).map(ci=>Object.assign({},ci,G[ce.value]?{[ce.value]:!0}:{})),__VISIBLE__:Kd(Bt).map(ci=>Object.assign({},ci,G[ce.value]?{[ce.value]:!0}:{}))}}))}),Dn=i.computed(()=>{switch(a.value){case"single":return!cr(ne.value[b.value]);case"multiple":case"tags":return!cr(ne.value)&&ne.value.length>0}}),zn=i.computed(()=>h!==void 0&&h.value!==void 0?h.value(ne.value,fe):ne.value&&ne.value.length>1?`${ne.value.length} options selected`:"1 option selected"),ii=i.computed(()=>!O.value.length&&!he.value&&!la.value.length),ZA=i.computed(()=>O.value.length>0&&Ze.value.length==0&&(te.value&&Y.value||!Y.value)),la=i.computed(()=>Bn.value===!1||!te.value?[]:nE(te.value)!==-1?[]:[{[b.value]:te.value,[L.value]:te.value,[u.value]:te.value,__CREATE__:!0}]),L=i.computed(()=>A.value||u.value),ae=i.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),ue=i.computed(()=>m.value||he.value),Se=I=>{switch(typeof I!="object"&&(I=Ir(I)),a.value){case"single":ot(I);break;case"multiple":case"tags":ot(ne.value.concat(I));break}t.emit("select",Dt(I),I,fe)},ye=I=>{switch(typeof I!="object"&&(I=Ir(I)),a.value){case"single":oi();break;case"tags":case"multiple":ot(Array.isArray(I)?ne.value.filter(G=>I.map(xe=>xe[b.value]).indexOf(G[b.value])===-1):ne.value.filter(G=>G[b.value]!=I[b.value]));break}t.emit("deselect",Dt(I),I,fe)},Dt=I=>p.value?I:I[b.value],Xt=I=>{ye(I)},ca=(I,G)=>{if(G.button!==0){G.preventDefault();return}Xt(I)},oi=()=>{t.emit("clear",fe),ot(ae.value)},Pt=I=>{if(I.group!==void 0)return a.value==="single"?!1:tE(I[K.value])&&I[K.value].length;switch(a.value){case"single":return!cr(ne.value)&&ne.value[b.value]==I[b.value];case"tags":case"multiple":return!cr(ne.value)&&ne.value.map(G=>G[b.value]).indexOf(I[b.value])!==-1}},AA=I=>I[ce.value]===!0,ua=()=>T===void 0||T.value===-1||!Dn.value&&T.value>0?!1:ne.value.length>=T.value,da=I=>{if(!AA(I)){if(Ae&&Ae.value&&!Pt(I)&&I.__CREATE__&&(I={...I},delete I.__CREATE__,I=Ae.value(I,fe),I instanceof Promise)){he.value=!0,I.then(G=>{he.value=!1,yl(G)});return}yl(I)}},yl=I=>{switch(I.__CREATE__&&(I={...I},delete I.__CREATE__),a.value){case"single":if(I&&Pt(I)){S.value&&ye(I),Q.value&&(vt(),E());return}I&&fa(I),w.value&&Pe(),F.value&&(vt(),E()),I&&Se(I);break;case"multiple":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ua()){t.emit("max",fe);return}I&&(fa(I),Se(I)),w.value&&Pe(),o.value&&vt(),F.value&&E();break;case"tags":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ua()){t.emit("max",fe);return}I&&fa(I),w.value&&Pe(),I&&Se(I),o.value&&vt(),F.value&&E();break}F.value||Qn()},li=I=>{if(!(AA(I)||a.value==="single"||!$.value)){switch(a.value){case"multiple":case"tags":eE(I[K.value])?ye(I[K.value]):Se(I[K.value].filter(G=>ne.value.map(xe=>xe[b.value]).indexOf(G[b.value])===-1).filter(G=>!G[ce.value]).filter((G,xe)=>ne.value.length+1+xe<=T.value||T.value===-1));break}F.value&&x()}},fa=I=>{Ir(I[b.value])===void 0&&Bn.value&&(t.emit("tag",I[b.value],fe),t.emit("option",I[b.value],fe),t.emit("create",I[b.value],fe),$e.value&&aE(I),Pe())},Z3=()=>{a.value!=="single"&&Se(Ze.value.filter(I=>!I.disabled&&!Pt(I)))},eE=I=>I.find(G=>!Pt(G)&&!G[ce.value])===void 0,tE=I=>I.find(G=>!Pt(G))===void 0,Ir=I=>O.value[O.value.map(G=>String(G[b.value])).indexOf(String(I))],nE=(I,G=!0)=>O.value.map(xe=>parseInt(xe[L.value])==xe[L.value]?parseInt(xe[L.value]):xe[L.value]).indexOf(parseInt(I)==I?parseInt(I):I),rE=I=>["tags","multiple"].indexOf(a.value)!==-1&&o.value&&Pt(I),aE=I=>{W.value.push(I)},AE=I=>oe.value?I.filter(G=>te.value?G.__VISIBLE__.length:G[K.value].length):I.filter(G=>te.value?G.__VISIBLE__.length:!0),Kd=(I,G=!0)=>{let xe=I;if(te.value&&_.value){let Bt=Ee.value;Bt||(Bt=(ci,Doe)=>{let S1=cf(D(ci[L.value]),U.value);return me.value?S1.startsWith(cf(te.value,U.value)):S1.indexOf(cf(te.value,U.value))!==-1}),xe=xe.filter(Bt)}return o.value&&G&&(xe=xe.filter(Bt=>!rE(Bt))),xe},$d=I=>{let G=I;return bU(G)&&(G=Object.keys(G).map(xe=>{let Bt=G[xe];return{[b.value]:xe,[L.value]:Bt,[u.value]:Bt}})),G=G.map(xe=>typeof xe=="object"?xe:{[b.value]:xe,[L.value]:xe,[u.value]:xe}),G},wl=()=>{cr(N.value)||(ne.value=_l(N.value))},bl=I=>(he.value=!0,new Promise((G,xe)=>{r.value(te.value,fe).then(Bt=>{ie.value=Bt||[],typeof I=="function"&&I(Bt),he.value=!1}).catch(Bt=>{console.error(Bt),ie.value=[],he.value=!1}).finally(()=>{G()})})),Wd=()=>{if(Dn.value)if(a.value==="single"){let I=Ir(ne.value[b.value]);if(I!==void 0){let G=I[u.value];ne.value[u.value]=G,p.value&&(N.value[u.value]=G)}}else ne.value.forEach((I,G)=>{let xe=Ir(ne.value[G][b.value]);if(xe!==void 0){let Bt=xe[u.value];ne.value[G][u.value]=Bt,p.value&&(N.value[G][u.value]=Bt)}})},sE=I=>{bl(I)},_l=I=>cr(I)?a.value==="single"?{}:[]:p.value?I:a.value==="single"?Ir(I)||(C.value?{[u.value]:I,[b.value]:I,[L.value]:I}:{}):I.filter(G=>!!Ir(G)||C.value).map(G=>Ir(G)||{[u.value]:G,[b.value]:G,[L.value]:G}),k1=()=>{Ft.value=i.watch(te,I=>{I.length<v.value||!I&&v.value!==0||(he.value=!0,B.value&&(ie.value=[]),setTimeout(()=>{I==te.value&&r.value(te.value,fe).then(G=>{(I==te.value||!te.value)&&(ie.value=G,xt.value=Ze.value.filter(xe=>xe[ce.value]!==!0)[0]||null,he.value=!1)}).catch(G=>{console.error(G)})},y.value))},{flush:"sync"})};if(a.value!=="single"&&!cr(N.value)&&!Array.isArray(N.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?g.value?bl(wl):p.value==!0&&wl():(ie.value=r.value,wl()),y.value>-1&&k1(),i.watch(y,(I,G)=>{Ft.value&&Ft.value(),I>=0&&k1()}),i.watch(N,I=>{if(cr(I)){ot(_l(I),!1);return}switch(a.value){case"single":(p.value?I[b.value]!=ne.value[b.value]:I!=ne.value[b.value])&&ot(_l(I),!1);break;case"multiple":case"tags":_U(p.value?I.map(G=>G[b.value]):I,ne.value.map(G=>G[b.value]))||ot(_l(I),!1);break}},{deep:!0}),i.watch(r,(I,G)=>{typeof e.options=="function"?g.value&&(!G||I&&I.toString()!==G.toString())&&bl():(ie.value=e.options,Object.keys(ne.value).length||wl(),Wd())}),i.watch(u,Wd),{pfo:P,fo:Ze,filteredOptions:Ze,hasSelected:Dn,multipleLabelText:zn,eo:O,extendedOptions:O,eg:et,extendedGroups:et,fg:Tn,filteredGroups:Tn,noOptions:ii,noResults:ZA,resolving:he,busy:ue,offset:ht,select:Se,deselect:ye,remove:Xt,selectAll:Z3,clear:oi,isSelected:Pt,isDisabled:AA,isMax:ua,getOption:Ir,handleOptionClick:da,handleGroupClick:li,handleTagRemove:ca,refreshOptions:sE,resolveOptions:bl,refreshLabels:Wd}}function EU(e,t,n){const{valueProp:r,showOptions:a,searchable:A,groupLabel:s,groups:o,mode:l,groupSelect:c,disabledProp:u,groupOptions:d}=i.toRefs(e),f=n.fo,h=n.fg,p=n.handleOptionClick,m=n.handleGroupClick,y=n.search,g=n.pointer,v=n.setPointer,_=n.clearPointer,B=n.multiselect,w=n.isOpen,b=i.computed(()=>f.value.filter(N=>!N[u.value])),C=i.computed(()=>h.value.filter(N=>!N[u.value])),k=i.computed(()=>l.value!=="single"&&c.value),S=i.computed(()=>g.value&&g.value.group),T=i.computed(()=>fe(g.value)),U=i.computed(()=>{const N=S.value?g.value:fe(g.value),te=C.value.map(ot=>ot[s.value]).indexOf(N[s.value]);let Pe=C.value[te-1];return Pe===void 0&&(Pe=Q.value),Pe}),F=i.computed(()=>{let N=C.value.map(te=>te.label).indexOf(S.value?g.value[s.value]:fe(g.value)[s.value])+1;return C.value.length<=N&&(N=0),C.value[N]}),Q=i.computed(()=>[...C.value].slice(-1)[0]),Y=i.computed(()=>g.value.__VISIBLE__.filter(N=>!N[u.value])[0]),X=i.computed(()=>{const N=T.value.__VISIBLE__.filter(te=>!te[u.value]);return N[N.map(te=>te[r.value]).indexOf(g.value[r.value])-1]}),j=i.computed(()=>{const N=fe(g.value).__VISIBLE__.filter(te=>!te[u.value]);return N[N.map(te=>te[r.value]).indexOf(g.value[r.value])+1]}),K=i.computed(()=>[...U.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),oe=i.computed(()=>[...Q.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),$=N=>g.value&&(!N.group&&g.value[r.value]===N[r.value]||N.group!==void 0&&g.value[s.value]===N[s.value])?!0:void 0,Ae=()=>{v(b.value[0]||null)},ce=()=>{!g.value||g.value[u.value]===!0||(S.value?m(g.value):p(g.value))},me=()=>{if(g.value===null)v((o.value&&k.value?C.value[0].__CREATE__?b.value[0]:C.value[0]:b.value[0])||null);else if(o.value&&k.value){let N=S.value?Y.value:j.value;N===void 0&&(N=F.value,N.__CREATE__&&(N=N[d.value][0])),v(N||null)}else{let N=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])+1;b.value.length<=N&&(N=0),v(b.value[N]||null)}i.nextTick(()=>{ne()})},Ee=()=>{if(g.value===null){let N=b.value[b.value.length-1];o.value&&k.value&&(N=oe.value,N===void 0&&(N=Q.value)),v(N||null)}else if(o.value&&k.value){let N=S.value?K.value:X.value;N===void 0&&(N=S.value?U.value:T.value,N.__CREATE__&&(N=K.value,N===void 0&&(N=U.value))),v(N||null)}else{let N=b.value.map(te=>te[r.value]).indexOf(g.value[r.value])-1;N<0&&(N=b.value.length-1),v(b.value[N]||null)}i.nextTick(()=>{ne()})},fe=N=>C.value.find(te=>te.__VISIBLE__.map(Pe=>Pe[r.value]).indexOf(N[r.value])!==-1),ne=()=>{let N=B.value.querySelector("[data-pointed]");if(!N)return;let te=N.parentElement.parentElement;o.value&&(te=S.value?N.parentElement.parentElement.parentElement:N.parentElement.parentElement.parentElement.parentElement),N.offsetTop+N.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=N.offsetTop+N.offsetHeight-te.clientHeight),N.offsetTop<te.scrollTop&&(te.scrollTop=N.offsetTop)};return i.watch(y,N=>{A.value&&(N.length&&a.value?Ae():_())}),i.watch(w,N=>{if(N){let te=B.value.querySelectorAll("[data-selected]")[0];if(!te)return;let Pe=te.parentElement.parentElement;i.nextTick(()=>{Pe.scrollTop>0||(Pe.scrollTop=te.offsetTop)})}}),{pointer:g,canPointGroups:k,isPointed:$,setPointerFirst:Ae,selectPointer:ce,forwardPointer:me,backwardPointer:Ee}}function kU(e,t,n){const{disabled:r}=i.toRefs(e),a=i.getCurrentInstance().proxy,A=i.ref(!1);return{isOpen:A,open:()=>{A.value||r.value||(A.value=!0,t.emit("open",a))},close:()=>{A.value&&(A.value=!1,t.emit("close",a))}}}function SU(e,t,n){const{searchable:r,disabled:a,clearOnBlur:A}=i.toRefs(e),s=n.input,o=n.open,l=n.close,c=n.clearSearch,u=n.isOpen,d=i.ref(null),f=i.ref(null),h=i.ref(null),p=i.ref(!1),m=i.ref(!1),y=i.computed(()=>r.value||a.value?-1:0),g=()=>{r.value&&s.value.blur(),f.value.blur()},v=()=>{r.value&&!a.value&&s.value.focus()},_=(S=!0)=>{a.value||(p.value=!0,S&&o())},B=()=>{p.value=!1,setTimeout(()=>{p.value||(l(),A.value&&c())},1)};return{multiselect:d,wrapper:f,tags:h,tabindex:y,isActive:p,mouseClicked:m,blur:g,focus:v,activate:_,deactivate:B,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||_(m.value)},handleFocusOut:()=>{B()},handleCaretClick:()=>{B(),g()},handleMousedown:S=>{m.value=!0,u.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(h.value))?setTimeout(()=>{B()},0):document.activeElement.isEqualNode(f.value)&&!u.value&&_(),setTimeout(()=>{m.value=!1},0)}}}function xU(e,t,n){const{mode:r,addTagOn:a,openDirection:A,searchable:s,showOptions:o,valueProp:l,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:h}=i.toRefs(e),p=i.getCurrentInstance().proxy,m=n.iv,y=n.update,g=n.search,v=n.setPointer,_=n.selectPointer,B=n.backwardPointer,w=n.forwardPointer,b=n.multiselect,C=n.wrapper,k=n.tags,S=n.isOpen,T=n.open,U=n.blur,F=n.fo,Q=i.computed(()=>d.value||f.value||!1),Y=i.computed(()=>a.value!==void 0?a.value:u.value!==void 0?u.value:["enter"]),X=()=>{r.value==="tags"&&!o.value&&Q.value&&s.value&&!c.value&&v(F.value[F.value.map($=>$[l.value]).indexOf(g.value)])},j=$=>{let Ae=$.length-1;for(;Ae>=0&&($[Ae].remove===!1||$[Ae].disabled);)Ae--;return Ae<0||$.splice(Ae,1),$};return{handleKeydown:$=>{t.emit("keydown",$,p);let Ae,ce;switch(["ArrowLeft","ArrowRight","Enter"].indexOf($.key)!==-1&&r.value==="tags"&&(Ae=[...b.value.querySelectorAll("[data-tags] > *")].filter(me=>me!==k.value),ce=Ae.findIndex(me=>me===document.activeElement)),$.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(g.value)===-1||m.value.length===0)return;y(j([...m.value]));break;case"Enter":if($.preventDefault(),$.keyCode===229)return;if(ce!==-1&&ce!==void 0){y([...m.value].filter((me,Ee)=>Ee!==ce)),ce===Ae.length-1&&(Ae.length-1?Ae[Ae.length-2].focus():s.value?k.value.querySelector("input").focus():C.value.focus());return}if(Y.value.indexOf("enter")===-1&&Q.value)return;X(),_();break;case" ":if(!Q.value&&!s.value){$.preventDefault(),X(),_();return}if(!Q.value)return!1;if(Y.value.indexOf("space")===-1&&Q.value)return;$.preventDefault(),X(),_();break;case"Tab":case";":case",":if(Y.value.indexOf($.key.toLowerCase())===-1||!Q.value)return;X(),_(),$.preventDefault();break;case"Escape":U();break;case"ArrowUp":if($.preventDefault(),!o.value)return;S.value||T(),B();break;case"ArrowDown":if($.preventDefault(),!o.value)return;S.value||T(),w();break;case"ArrowLeft":if(s.value&&k.value&&k.value.querySelector("input").selectionStart||$.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;$.preventDefault(),ce===-1?Ae[Ae.length-1].focus():ce>0&&Ae[ce-1].focus();break;case"ArrowRight":if(ce===-1||$.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;$.preventDefault(),Ae.length>ce+1?Ae[ce+1].focus():s.value?k.value.querySelector("input").focus():s.value||C.value.focus();break}},handleKeyup:$=>{t.emit("keyup",$,p)},preparePointer:X}}function FU(e,t,n){const{classes:r,disabled:a,openDirection:A,showOptions:s}=i.toRefs(e),o=n.isOpen,l=n.isPointed,c=n.isSelected,u=n.isDisabled,d=n.isActive,f=n.canPointGroups,h=n.resolving,p=n.fo,m=i.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),y=i.computed(()=>!!(o.value&&s.value&&(!h.value||h.value&&p.value.length)));return{classList:i.computed(()=>{const v=m.value;return{container:[v.container].concat(a.value?v.containerDisabled:[]).concat(y.value&&A.value==="top"?v.containerOpenTop:[]).concat(y.value&&A.value!=="top"?v.containerOpen:[]).concat(d.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(a.value?v.tagDisabled:[]),tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(o.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(A.value==="top"?v.dropdownTop:[]).concat(!o.value||!s.value||!y.value?v.dropdownHidden:[]),options:[v.options].concat(A.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:_=>{let B=[v.groupLabel];return l(_)?B.push(c(_)?v.groupLabelSelectedPointed:v.groupLabelPointed):c(_)&&f.value?B.push(u(_)?v.groupLabelSelectedDisabled:v.groupLabelSelected):u(_)&&B.push(v.groupLabelDisabled),f.value&&B.push(v.groupLabelPointable),B},groupOptions:v.groupOptions,option:(_,B)=>{let w=[v.option];return l(_)?w.push(c(_)?v.optionSelectedPointed:v.optionPointed):c(_)?w.push(u(_)?v.optionSelectedDisabled:v.optionSelected):(u(_)||B&&u(B))&&w.push(v.optionDisabled),w},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:y}}function IU(e,t,n){const{limit:r,infinite:a}=i.toRefs(e),A=n.isOpen,s=n.offset,o=n.search,l=n.pfo,c=n.eo,u=i.ref(null),d=i.ref(null),f=i.computed(()=>s.value<l.value.length),h=m=>{const{isIntersecting:y,target:g}=m[0];if(y){const v=g.offsetParent,_=v.scrollTop;s.value+=r.value==-1?10:r.value,i.nextTick(()=>{v.scrollTop=_})}},p=()=>{A.value&&s.value<l.value.length?u.value.observe(d.value):!A.value&&u.value&&u.value.disconnect()};return i.watch(A,()=>{a.value&&p()}),i.watch(o,()=>{a.value&&(s.value=r.value,p())},{flush:"post"}),i.watch(c,()=>{a.value&&p()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(h))}),{hasMore:f,infiniteLoader:d}}function UU(e,t,n){const{placeholder:r,id:a,valueProp:A,label:s,mode:o,groupLabel:l,aria:c,searchable:u}=i.toRefs(e),d=n.pointer,f=n.iv,h=n.hasSelected,p=n.multipleLabelText,m=i.ref(null),y=i.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("assist"),F.join("-")}),g=i.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("multiselect-options"),F.join("-")}),v=i.computed(()=>{let F=[];if(a&&a.value&&F.push(a.value),d.value)return F.push(d.value.group?"multiselect-group":"multiselect-option"),F.push(d.value.group?d.value.index:d.value[A.value]),F.join("-")}),_=i.computed(()=>r.value),B=i.computed(()=>o.value!=="single"),w=i.computed(()=>{let F="";return o.value==="single"&&h.value&&(F+=f.value[s.value]),o.value==="multiple"&&h.value&&(F+=p.value),o.value==="tags"&&h.value&&(F+=f.value.map(Q=>Q[s.value]).join(", ")),F}),b=i.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${y.value} ${F["aria-labelledby"]}`:y.value,w.value&&F["aria-label"]&&(F["aria-label"]=`${w.value}, ${F["aria-label"]}`)),F}),C=F=>{let Q=[];return a&&a.value&&Q.push(a.value),Q.push("multiselect-option"),Q.push(F[A.value]),Q.join("-")},k=F=>{let Q=[];return a&&a.value&&Q.push(a.value),Q.push("multiselect-group"),Q.push(F.index),Q.join("-")},S=F=>{let Q=[];return Q.push(F),Q.join(" ")},T=F=>{let Q=[];return Q.push(F),Q.join(" ")},U=F=>`${F} ❎`;return i.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let F=document.querySelector(`[for="${a.value}"]`);m.value=F?F.innerText:null}}),{arias:b,ariaLabel:w,ariaAssist:y,ariaControls:g,ariaPlaceholder:_,ariaMultiselectable:B,ariaActiveDescendant:v,ariaOptionId:C,ariaOptionLabel:S,ariaGroupId:k,ariaGroupLabel:T,ariaTagLabel:U}}function QU(e,t,n){const{locale:r,fallbackLocale:a}=i.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function TU(e,t,n,r={}){return n.forEach(a=>{a&&(r={...r,...a(e,t,r)})}),r}var Vt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return TU(e,t,[QU,BU,wU,kU,yU,vU,SU,CU,IU,EU,xU,FU,UU])}};const DU=["id","dir"],LU=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],OU=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],MU=["onKeyup","aria-label"],NU=["onClick"],PU=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],HU=["innerHTML"],RU=["id"],VU=["id","aria-label","aria-selected"],KU=["data-pointed","onMouseenter","onClick"],$U=["innerHTML"],WU=["aria-label"],GU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],zU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],jU=["innerHTML"],YU=["innerHTML"],qU=["value"],XU=["name","value"],JU=["name","value"],ZU=["id"];function eQ(e,t,n,r,a,A){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[i.createElementVNode("div",i.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=i.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,OU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(e.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.iv,(s,o,l)=>i.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:l,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[i.createTextVNode(i.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(e.classList.tagRemove),onClick:i.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,NU)):i.createCommentVNode("v-if",!0)],42,MU))])),256)),i.createElementVNode("div",{class:i.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(e.classList.tagsSearchCopy)},i.toDisplayString(e.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=i.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,PU)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?i.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(e.classList.singleLabelText)},i.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?i.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,HU)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?i.renderSlot(e.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||e.resolving?i.renderSlot(e.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?i.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=i.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(e.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(e.$slots,"caret",{key:7},()=>[i.createElementVNode("span",{class:i.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,LU),i.createCommentVNode(" Options "),i.createElementVNode("div",{class:i.normalizeClass(e.classList.dropdown),tabindex:"-1"},[i.renderSlot(e.$slots,"beforelist",{options:e.fo}),i.createElementVNode("ul",{class:i.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.fg,(s,o,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(e.classList.group),key:l,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,o),onClick:c=>e.handleGroupClick(s)},[i.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[i.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,$U)])],42,KU)),i.createElementVNode("ul",{class:i.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.__VISIBLE__,(c,u,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:d,onMouseenter:f=>e.setPointer(c),onClick:f=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[i.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[i.createElementVNode("span",null,i.toDisplayString(e.localize(c[n.label])),1)])],42,GU))),128))],10,WU)],10,VU))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.fo,(s,o,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:l,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[i.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[i.createElementVNode("span",null,i.toDisplayString(e.localize(s[n.label])),1)])],42,zU))),128))],10,RU),e.noOptions?i.renderSlot(e.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,jU)]):i.createCommentVNode("v-if",!0),e.noResults?i.renderSlot(e.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,YU)]):i.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(e.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,qU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,XU)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.plainValue,(s,o)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:o},null,8,JU))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},i.toDisplayString(e.ariaLabel),11,ZU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(e.classList.spacer)},null,2)],42,DU)}Vt.render=eQ;Vt.__file="src/Multiselect.vue";const tQ={class:"search-bar"},nQ=i.defineComponent({__name:"SearchBar",props:pb,setup(e){const t=e,{t:n}=re(),r=i.ref(""),a=pA.useRouter();function A(o,l,c){c.clear(),c.search=r.value,a.push(l.link)}function s(o){r.value=o}return(o,l)=>(i.openBlock(),i.createElementBlock("div",tQ,[i.createVNode(i.unref(Vt),{placeholder:i.unref(n)("navigation.searchPlaceholder"),"value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:t.fetchSeachResult,onOpen:l[0]||(l[0]=c=>{c.noOptions&&c.resolveOptions()}),onSearchChange:s,onSelect:A},{option:i.withCtx(({option:c})=>[c.type==="card"?(i.openBlock(),i.createBlock(fn,{key:`card-${c.card.cardCode}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":c.card,"router-link":c.link},null,8,["card-prop","router-link"])):(i.openBlock(),i.createBlock(fn,{key:`player-${c.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":c.cardCode,color:c.color,name:c.name,"mana-number":c.rank,"router-link":c.link},null,8,["card-code-prop","color","name","mana-number","router-link"]))]),_:1},8,["placeholder","options"])]))}});const Yu=M(nQ,[["__scopeId","data-v-2dff2569"]]),rQ={class:"social-links"},aQ=i.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",rQ,[i.createVNode(i.unref(Ie),{class:"icon",icon:"fa-brands fa-discord"}),i.createVNode(i.unref(Ie),{class:"icon",icon:"fa-brands fa-twitter"})]))}});const mg=M(aQ,[["__scopeId","data-v-5517438c"]]),AQ={showModal:{type:Boolean,required:!0,default:!1}},sQ=["onClick"],iQ=i.defineComponent({__name:"ModalItem",props:AQ,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=i.ref(null);function a(){t("update:showModal",!1)}return i.onBeforeUnmount(()=>{var A;(A=r.value)==null||A.remove()}),i.watch(()=>n.showModal,()=>{n.showModal&&i.nextTick(()=>{r.value&&document.body.appendChild(r.value)})}),(A,s)=>n.showModal?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"modalItem",ref:r,class:"modal-item",onClick:i.withModifiers(a,["self"])},[i.renderSlot(A.$slots,"default",{},void 0,!0)],8,sQ)):i.createCommentVNode("",!0)}});const KA=M(iQ,[["__scopeId","data-v-5e715d99"]]),oQ={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},lQ={class:"filter"},cQ={key:0,class:"top"},uQ={key:0,class:"title"},dQ=i.defineComponent({__name:"SidePanelSectionPane",props:oQ,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function a(){t("clear:filterArray")}return(A,s)=>{const o=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",lQ,[n.title||A.filterArray?(i.openBlock(),i.createElementBlock("div",cQ,[n.title?(i.openBlock(),i.createElementBlock("h2",uQ,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0),A.filterArray?i.withDirectives((i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass(["clear",r.value]),onClick:a},null,2)),[[o,"general.clear"]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.renderSlot(A.$slots,"default",{},void 0,!0)])}}});const mt=M(dQ,[["__scopeId","data-v-741cceed"]]),fQ={filterArray:{type:Array,required:!0,default:[]}},hQ=["placeholder"],pQ=i.defineComponent({__name:"FilterSampleSize",props:fQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray),A=i.ref("");let s=setTimeout(()=>{},0);a.value.length>0&&(A.value=a.value[0]),i.watch(a,()=>{t("update:filterArray",a.value)}),i.watch(A,()=>{s&&clearTimeout(s),s=setTimeout(()=>{a.value.splice(0),A.value&&a.value.push(A.value)},1e3)});function o(){a.value.splice(0),A.value=""}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("general.sampleSize"),"onClear:filterArray":o},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>A.value=u),placeholder:i.unref(r)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,hQ),[[i.vModelText,A.value]])]),_:1},8,["filter-array","title"]))}});const Xs=M(pQ,[["__scopeId","data-v-d66d5f9d"]]),gQ={filterArray:{type:Array,required:!0,default:[]}},mQ={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},vQ=["selected"],BQ={class:"checkbox-name"},yQ=i.defineComponent({__name:"CheckboxItem",props:mQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=i.computed(()=>(console.log(n.icon),{content:n.icon}));function a(){t("update:isSelected",!n.isSelected)}return(A,s)=>(i.openBlock(),i.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[n.icon?(i.openBlock(),i.createElementBlock("div",{key:0,class:"checkbox-icon",style:i.normalizeStyle(r.value)},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",BQ,i.toDisplayString(n.prompt),1)],8,vQ))}});const tn=M(yQ,[["__scopeId","data-v-a4c6109c"]]),wQ={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},bQ=e=>(i.pushScopeId("data-v-d5d9745a"),e=e(),i.popScopeId(),e),_Q={class:"toggle-switch"},CQ=bQ(()=>i.createElementVNode("div",{class:"selection"},null,-1)),EQ=[CQ],kQ=["onClick"],SQ={class:"option flex-center"},xQ={class:"option-text"},FQ=i.defineComponent({__name:"ToggleSwitch",props:wQ,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=i.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function a(s){return{cursor:n.selectedOption!=s?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${s})`,width:`${1/n.options.length*100}%`}}function A(s){t("update:selectedOption",s)}return(s,o)=>(i.openBlock(),i.createElementBlock("div",_Q,[i.withDirectives(i.createElementVNode("div",{class:"selection-container",style:i.normalizeStyle(r.value)},EQ,4),[[i.vShow,s.selectedOption>-1]]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,(l,c)=>(i.openBlock(),i.createElementBlock("div",{key:c,ref_for:!0,ref:"option-container",style:i.normalizeStyle(a(c)),class:"option-container",onClick:u=>A(c)},[i.createElementVNode("div",SQ,[i.createElementVNode("h1",xQ,i.toDisplayString(l),1)])],12,kQ))),128))]))}});const qu=M(FQ,[["__scopeId","data-v-d5d9745a"]]),IQ={class:"checkboxes-container"},UQ=i.defineComponent({__name:"FilterRanks",props:gQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>we().dataJson.ranks.sort((c,u)=>u.order-c.order)),A=i.reactive(n.filterArray),s=i.ref(0);i.watch(A,()=>{t("update:filterArray",A)}),i.watch(s,()=>{s.value===0?A.splice(0):s.value===1&&(A.splice(0),A.push("Platinum","Diamond","Masters"))});function o(){A.splice(0),s.value=0}function l(c){const u=A.indexOf(c);if(u===-1){A.push(c);return}A.splice(u,1)}return(c,u)=>(i.openBlock(),i.createBlock(mt,{"filter-array":A,title:i.unref(r)("general.ranks"),"onClear:filterArray":o},{default:i.withCtx(()=>[i.createElementVNode("div",IQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(tn,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":A.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),i.createVNode(qu,{"selected-option":s.value,"onUpdate:selectedOption":u[0]||(u[0]=d=>s.value=d),options:[i.unref(r)("general.allRanks"),i.unref(r)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const vb=M(UQ,[["__scopeId","data-v-af7bc2a0"]]),QQ={filterArray:{type:Array,required:!0,default:[]}},TQ={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},DQ=["selected"],LQ={class:"prompt"},OQ=i.defineComponent({__name:"CheckboxItemManaCost",props:TQ,emits:["update:isSelected"],setup(e,{emit:t}){const n=e;function r(){t("update:isSelected",!n.isSelected)}return(a,A)=>(i.openBlock(),i.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:r},[i.createVNode(jo),i.createElementVNode("div",LQ,i.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,DQ))}});const Au=M(OQ,[["__scopeId","data-v-2c74c2ed"]]),MQ={class:"checkbox-rows-container"},NQ={class:"top-row checkbox-items-container"},PQ={class:"bottom-row checkbox-items-container"},HQ=i.defineComponent({__name:"FilterManaCost",props:QQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=Array(6).fill(1).map((l,c)=>c),A=Array(5).fill(1).map((l,c)=>c+6);function s(l){let c;n.filterArray.includes(l)?c=n.filterArray.filter(u=>u!==l):c=[...n.filterArray,l],t("update:filterArray",c)}function o(){t("update:filterArray",[])}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":n.filterArray,title:i.unref(r)("general.manaCost"),"onClear:filterArray":o},{default:i.withCtx(()=>[i.createElementVNode("div",MQ,[i.createElementVNode("div",NQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),u=>(i.openBlock(),i.createBlock(Au,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),i.createElementVNode("div",PQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(A),u=>(i.openBlock(),i.createBlock(Au,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const vg=M(HQ,[["__scopeId","data-v-a94d786a"]]),RQ={filterArray:{type:Array,required:!0,default:[]}},VQ={class:"checkboxes-container"},Bg=i.defineComponent({__name:"FilterRarities",props:RQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>we().dataJson.rarities.filter(l=>l.nameRef!=="None")),A=i.reactive(n.filterArray);i.watch(A,()=>{t("update:filterArray",A)});function s(){A.splice(0)}function o(l){const c=A.indexOf(l);if(c===-1){A.push(l);return}A.splice(c,1)}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":A,title:i.unref(r)("general.rarities"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createElementVNode("div",VQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,u=>(i.openBlock(),i.createBlock(tn,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":A.includes(u.nameRef),"onUpdate:isSelected":d=>o(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),KQ={filterArray:{type:Array,required:!0,default:[]}},$Q={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},WQ=["src"],GQ={class:"multiselect-tag-remove"},zQ=["onMousedown"],jQ=["src"],yg=i.defineComponent({__name:"FilterSets",props:KQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray);i.watch(a,()=>{t("update:filterArray",a.value)});function A(){a.value.splice(0)}return(s,o)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("general.sets"),"onClear:filterArray":A},{default:i.withCtx(()=>[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),placeholder:i.unref(r)("general.sets"),class:"runeterra-select",mode:"tags",options:i.unref(we)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:i.withCtx(({option:l,handleTagRemove:c})=>[i.createElementVNode("span",$Q,[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,WQ),i.createElementVNode("span",GQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(u=>c(l,u),["prevent"])},null,40,zQ)])])]),option:i.withCtx(({option:l})=>[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,jQ),i.createTextVNode(" "+i.toDisplayString(l.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),YQ={filterArray:{type:Array,required:!0,default:[]}},qQ={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},XQ=["src"],JQ={class:"multiselect-tag-remove"},ZQ=["onMousedown"],eT=["src"],wg=i.defineComponent({__name:"FilterKeywords",props:YQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray),A=i.computed(()=>we().dataJson.keywords.filter(o=>o.showInFilter));i.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("general.keywords"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:i.unref(r)("general.keywords"),class:"runeterra-select",mode:"tags",options:A.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:i.withCtx(({option:c,handleTagRemove:u})=>[i.createElementVNode("span",qQ,[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,XQ),i.createElementVNode("span",JQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(d=>u(c,d),["prevent"])},null,40,ZQ)])])]),option:i.withCtx(({option:c})=>[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,eT),i.createTextVNode(" "+i.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),tT={filterArray:{type:Array,required:!0,default:[]}},nT={class:"checkboxes-container"},Js=i.defineComponent({__name:"FilterServers",props:tT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterArray);i.watch(a,()=>{t("update:filterArray",a)});function A(){a.splice(0)}function s(o){const l=a.indexOf(o);if(l===-1){a.push(o);return}a.splice(l,1)}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a,title:i.unref(r)("general.servers"),"onClear:filterArray":A},{default:i.withCtx(()=>[i.createElementVNode("div",nT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(we)().dataJson.servers,c=>(i.openBlock(),i.createBlock(tn,{key:c.nameRef,prompt:c.name,"is-selected":a.includes(c.nameRef),"onUpdate:isSelected":u=>s(c.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),rT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},aT={class:"checkboxes-container"},AT=i.defineComponent({__name:"FilterTime",props:rT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterArray),A=i.ref(null),s=i.ref(null),o=a.find(h=>h.startsWith("patch_"));o&&(A.value=o);const l=a.find(h=>h.startsWith("season_"));l&&(s.value=l);const c=i.computed(()=>n.allowZero&&a.filter(h=>h.startsWith("patch")).length>0||!n.allowZero&&a.filter(h=>!h.startsWith("patch")).length===0);i.watch(a,()=>{t("update:filterArray",a)}),i.watch(A,(h,p)=>{u(h,p)}),i.watch(s,(h,p)=>{u(h,p)});function u(h,p){console.log(p,h),p&&a.splice(a.indexOf(p),1),h&&a.push(h),console.log(a)}function d(){a.splice(0),A.value=null,s.value=null}function f(h){a.splice(0),(n.allowZero||h!=="patch")&&a.push(h),h==="patch"&&A.value&&a.push(A.value),h==="season"&&s.value&&a.push(s.value)}return(h,p)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a,title:i.unref(r)("general.time"),"onClear:filterArray":d},{default:i.withCtx(()=>[i.createElementVNode("div",aT,[i.createVNode(tn,{prompt:i.unref(r)("general.patch"),"is-selected":c.value,"onUpdate:isSelected":p[0]||(p[0]=m=>f("patch"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.season"),"is-selected":a.includes("season"),"onUpdate:isSelected":p[1]||(p[1]=m=>f("season"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastDays",7),"is-selected":a.includes("past7days"),"onUpdate:isSelected":p[2]||(p[2]=m=>f("past7days"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastDays",3),"is-selected":a.includes("past3days"),"onUpdate:isSelected":p[3]||(p[3]=m=>f("past3days"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastHours",24),"is-selected":a.includes("past24hours"),"onUpdate:isSelected":p[4]||(p[4]=m=>f("past24hours"))},null,8,["prompt","is-selected"]),i.createVNode(tn,{prompt:i.unref(r)("general.pastHour"),"is-selected":a.includes("pastHour"),"onUpdate:isSelected":p[5]||(p[5]=m=>f("pastHour"))},null,8,["prompt","is-selected"]),c.value?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:A.value,"onUpdate:modelValue":p[6]||(p[6]=m=>A.value=m),options:i.unref(we)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):i.createCommentVNode("",!0),a.includes("season")?(i.openBlock(),i.createBlock(i.unref(Vt),{key:1,modelValue:s.value,"onUpdate:modelValue":p[7]||(p[7]=m=>s.value=m),options:i.unref(we)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):i.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const $A=M(AT,[["__scopeId","data-v-78ab671a"]]),sT={filterArray:{type:Array,required:!0,default:[]}},iT={cardCodes:{type:Array,required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},oT=i.defineComponent({__name:"CardMultiselect",props:iT,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.cardCodes),A=i.computed(()=>{let s=Tw().cardJson.sort((o,l)=>o.name.localeCompare(l.name));return n.filterCallback&&(s=s.filter(n.filterCallback)),s});return i.watch(a,()=>{t("update:cardCodes",a.value)}),(s,o)=>(i.openBlock(),i.createBlock(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),class:"multiselect",placeholder:i.unref(r)("cards.cards"),mode:n.mode,options:A.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const bg=M(oT,[["__scopeId","data-v-968634df"]]),Xu=i.defineComponent({__name:"FilterCardCodes",props:sT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray);i.watch(a,()=>{console.log("watch(filterArray)",a.value),t("update:filterArray",a.value)});function A(){a.value.splice(0)}function s(o){return o.collectible}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a.value,title:i.unref(r)("cards.cards"),"onClear:filterArray":A},{default:i.withCtx(()=>[i.createVNode(bg,{cardCodes:a.value,"onUpdate:cardCodes":l[0]||(l[0]=c=>a.value=c),mode:"tags","filter-callback":s},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),lT={filterArray:{type:Array,required:!0,default:[]}},cT={class:"checkboxes-container"},uT=i.defineComponent({__name:"FilterRegions",props:lT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterArray),A=i.ref([]);A.value.push(...a.filter(l=>uo(l))),i.watch(a,()=>{t("update:filterArray",a)}),i.watch(A,(l,c)=>{let u=l.find(d=>!c.includes(d));if(u||(u=c.find(d=>!l.includes(d)),u))return o(u)});function s(){a.splice(0),A.value.slice(0)}function o(l){const c=a.indexOf(l);if(c===-1){a.push(l),l==="Runeterra"&&a.push(...A.value);return}if(a.splice(c,1),l==="Runeterra")for(let u=0;u<a.length;u++)uo(a[u])&&a.splice(u--,1)}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":a,title:i.unref(r)("general.regions"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createElementVNode("div",cT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(we)().dataJson.regions,u=>(i.openBlock(),i.createBlock(tn,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":a.includes(u.nameRef),"onUpdate:isSelected":d=>o(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),i.createVNode(tn,{class:"runeterra",prompt:"Runeterra","is-selected":a.includes("Runeterra"),"onUpdate:isSelected":c[0]||(c[0]=u=>o("Runeterra"))},null,8,["is-selected"]),a.includes("Runeterra")?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:A.value,"onUpdate:modelValue":c[1]||(c[1]=u=>A.value=u),class:"runeterra-select",mode:"tags",options:i.unref(we)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):i.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Yo=M(uT,[["__scopeId","data-v-c93a9e90"]]),dT={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},fT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},hT={class:"checkboxes-container"},pT=i.defineComponent({__name:"FilterFormat",props:fT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>{const d=we().dataJson.queues;return Object.values(we().dataJson.formats).filter(f=>f.availableQueues.some(h=>!d[h].excludeInMassFilter))}),A=i.computed(()=>a.value.filter(d=>!d.inDropdown)),s=i.computed(()=>a.value.filter(d=>d.inDropdown)),o=i.reactive(n.filterArray),l=i.ref(null);i.onMounted(()=>{o.length>0&&s.value.map(d=>d.nameRef).includes(o[0])&&(l.value=o[0])}),i.watch(o,()=>{t("update:filterArray",o),o.length===0&&(l.value=null)}),i.watch(l,()=>{l.value&&(o.splice(0),o.push(l.value))});function c(d){l.value=null,o.splice(0),d!==Vr.Standard&&o.push(d)}function u(){o.splice(0)}return(d,f)=>(i.openBlock(),i.createBlock(mt,{"filter-array":o,title:i.unref(r)("general.format"),"onClear:filterArray":u},{default:i.withCtx(()=>[i.createElementVNode("div",hT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,h=>(i.openBlock(),i.createBlock(tn,{prompt:h.name,"is-selected":o.includes(h.nameRef)||!n.allowZero&&h.nameRef==="Standard"&&o.length===0,"onUpdate:isSelected":p=>c(h.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),s.value.length>0?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=h=>l.value=h),options:s.value,searchable:!1,placeholder:i.unref(r)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:u},null,8,["modelValue","options","placeholder"])):i.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const _g=M(pT,[["__scopeId","data-v-22de9b40"]]),gT={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},Cg=i.defineComponent({__name:"FilterQueues",props:gT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.filterArray),A=i.computed(()=>Object.values(we().dataJson.queues).filter(o=>n.availableQueues.includes(o.nameRef)&&!o.excludeInMassFilter));i.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(o,l)=>n.availableQueues.length>1?(i.openBlock(),i.createBlock(mt,{key:0,"filter-array":a.value,title:i.unref(r)("general.queues"),"onClear:filterArray":s},{default:i.withCtx(()=>{var c,u;return[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=d=>a.value=d),placeholder:(u=(c=A.value)==null?void 0:c.find(d=>d.nameRef===i.unref(x2).Ranked))==null?void 0:u.name,class:"runeterra-select",mode:"tags",options:A.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):i.createCommentVNode("",!0)}}),mT={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},vT={class:"filter"},BT={key:0,class:"top"},yT=i.defineComponent({__name:"SidePanel",props:mT,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.filterObject&&Object.values(n.filterObject).some(A=>A.length>0)?"clickable":null);function a(){t("clear:filterObject")}return(A,s)=>{const o=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",vT,[n.showClearAll&&n.filterObject?(i.openBlock(),i.createElementBlock("div",BT,[i.withDirectives(i.createElementVNode("p",{class:i.normalizeClass(["clear",r.value]),onClick:a},null,2),[[o,"general.clearAll"]])])):i.createCommentVNode("",!0),i.renderSlot(A.$slots,"default",{},void 0,!0)])}}});const Zs=M(yT,[["__scopeId","data-v-6a93fcc1"]]),Bb=i.defineComponent({__name:"FilterDecks",props:dT,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=i.reactive(n.filters);i.watch(r,()=>{t("update:filters",r)});const a=i.computed(()=>{var s;return(s=we().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues});function A(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,o)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":A},{default:i.withCtx(()=>[i.createVNode(Yo,{"filter-array":r.regionFilters,"onUpdate:filterArray":o[0]||(o[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),i.createVNode(Xu,{"filter-array":r.cardFilters,"onUpdate:filterArray":o[1]||(o[1]=l=>r.cardFilters=l)},null,8,["filter-array"]),i.createVNode(_g,{"filter-array":r.formatFilters,"onUpdate:filterArray":o[2]||(o[2]=l=>r.formatFilters=l)},null,8,["filter-array"]),n.includeDataFilters?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Cg,{"filter-array":r.queueFilters,"onUpdate:filterArray":o[3]||(o[3]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"]),i.createVNode(Xs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":o[4]||(o[4]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),i.createVNode($A,{"filter-array":r.timeFilters,"onUpdate:filterArray":o[5]||(o[5]=l=>r.timeFilters=l)},null,8,["filter-array"]),i.createVNode(Js,{"filter-array":r.serverFilters,"onUpdate:filterArray":o[6]||(o[6]=l=>r.serverFilters=l)},null,8,["filter-array"])],64)):i.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),wT={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},bT={filterArray:{type:Array,required:!0,default:[]},placeholder:{type:String,required:!1},title:{type:String,required:!1,default:"Text"}},_T=["placeholder"],CT=i.defineComponent({__name:"FilterText",props:bT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,r=i.ref(n.filterArray),a=i.ref("");let A=setTimeout(()=>{},0);r.value.length>0&&(a.value=r.value[0]),i.watch(r,()=>{t("update:filterArray",r.value)}),i.watch(a,()=>{A&&clearTimeout(A),A=setTimeout(()=>{r.value.splice(0),a.value&&r.value.push(a.value)},1e3)});function s(){r.value.splice(0),a.value=""}return(o,l)=>(i.openBlock(),i.createBlock(mt,{"filter-array":r.value,title:n.title,"onClear:filterArray":s},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:n.placeholder,type:"text"},null,8,_T),[[i.vModelText,a.value]])]),_:1},8,["filter-array","title"]))}});const su=M(CT,[["__scopeId","data-v-e9c34cae"]]),yb=i.defineComponent({__name:"FilterProfile",props:wT,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filters);i.watch(a,()=>{t("update:filters",a)});const A=i.computed(()=>{var o;return a.formatFilters.length===0?[]:(o=we().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:o.availableQueues});function s(){for(const[,o]of Object.entries(a))o.splice(0)}return(o,l)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":s},{default:i.withCtx(()=>[i.createVNode(Yo,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),i.createVNode(Xu,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),i.createVNode(su,{"filter-array":a.deckCodeFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.deckCodeFilters=c),placeholder:i.unref(r)("general.deckCode"),title:i.unref(r)("general.deckCode")},null,8,["filter-array","placeholder","title"]),i.createVNode(su,{"filter-array":a.playerFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.playerFilters=c),placeholder:i.unref(r)("general.players"),title:i.unref(r)("general.players")},null,8,["filter-array","placeholder","title"]),i.createVNode(Xs,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.sampleSizeFilters=c)},null,8,["filter-array"]),i.createVNode(_g,{"allow-zero":!0,"filter-array":a.formatFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.formatFilters=c)},null,8,["filter-array"]),i.createVNode(Cg,{"filter-array":a.queueFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.queueFilters=c),"available-queues":A.value},null,8,["filter-array","available-queues"]),i.createVNode($A,{"allow-zero":!0,"filter-array":a.timeFilters,"onUpdate:filterArray":l[7]||(l[7]=c=>a.timeFilters=c)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}}),ET={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},kT={class:"advanced-filter-item"},ST=["value"],xT=i.defineComponent({__name:"AdvancedFilterItem",props:ET,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=[{value:"attack",label:r("cards.attack")},{value:"health",label:r("cards.health")},{value:"cost",label:r("cards.cost")},{value:"quantityOwned",label:r("cards.quantityOwned")}],A=i.ref(n.filterValue.attribute);i.watch(A,()=>{t("update:filterValue",{attribute:A.value,equality:n.filterValue.equality,number:n.filterValue.number})});function s(){let l=">";n.filterValue.equality===">"?l="<":n.filterValue.equality==="<"&&(l="="),t("update:filterValue",{attribute:n.filterValue.attribute,equality:l,number:n.filterValue.number})}function o(l){t("update:filterValue",{attribute:n.filterValue.attribute,equality:n.filterValue.equality,number:Number(l.target.value)})}return(l,c)=>(i.openBlock(),i.createElementBlock("div",kT,[i.createVNode(i.unref(Vt),{modelValue:A.value,"onUpdate:modelValue":c[0]||(c[0]=u=>A.value=u),class:"advanced-attribute",options:a,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),i.createElementVNode("div",{class:"equality-button",onClick:s},i.toDisplayString(n.filterValue.equality),1),i.createElementVNode("input",{type:"number",class:"equality-number",value:n.filterValue.number,onInput:o},null,40,ST)]))}});const Eg=M(xT,[["__scopeId","data-v-eb2d535d"]]),FT={filterValue:{type:Array,required:!0,default:[]}},IT=i.defineComponent({__name:"FilterAdvanced",props:FT,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filterValue);i.watch(a,()=>{t("update:filterValue",a)});function A(){a.splice(0)}function s(){a.push({attribute:"attack",equality:">",number:0})}return(o,l)=>(i.openBlock(),i.createBlock(mt,{class:"advanced-filters","filter-array":a,title:i.unref(r)("general.advanced"),"onClear:filterArray":A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,(c,u)=>(i.openBlock(),i.createBlock(Eg,{key:u,"filter-value":a[u],"onUpdate:filterValue":d=>a[u]=d,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),i.createElementVNode("div",{class:"new-advanced-filter",onClick:s},i.toDisplayString(i.unref(r)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const kg=M(IT,[["__scopeId","data-v-6c23ee29"]]),UT={filterArray:{type:Array,required:!0,default:[]}},QT={class:"checkboxes-container"},Sg=i.defineComponent({__name:"FilterTypes",props:UT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>we().dataJson.types.filter(l=>["Unit","Spell","Landmark","Equipment"].includes(l.nameRef))),A=i.reactive(n.filterArray);i.watch(A,()=>{t("update:filterArray",A)});function s(){A.splice(0)}function o(l){const c=A.indexOf(l);if(c===-1){A.push(l);return}A.splice(c,1)}return(l,c)=>(i.openBlock(),i.createBlock(mt,{"filter-array":n.filterArray,title:i.unref(r)("general.types"),"onClear:filterArray":s},{default:i.withCtx(()=>[i.createElementVNode("div",QT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,u=>(i.openBlock(),i.createBlock(tn,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":A.includes(u.nameRef),"onUpdate:isSelected":d=>o(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),TT={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[]}}},wb=i.defineComponent({__name:"FilterCards",props:TT,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=i.reactive(n.filters);i.watch(r,()=>{t("update:filters",r)});const a=i.computed(()=>{var s;return"formatFilters"in r?(s=we().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues:[]});function A(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,o)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":A},{default:i.withCtx(()=>[i.createVNode(vg,{"filter-array":r.manaCostFilters,"onUpdate:filterArray":o[0]||(o[0]=l=>r.manaCostFilters=l)},null,8,["filter-array"]),i.createVNode(Yo,{"filter-array":r.regionFilters,"onUpdate:filterArray":o[1]||(o[1]=l=>r.regionFilters=l)},null,8,["filter-array"]),i.createVNode(Sg,{"filter-array":r.typeFilters,"onUpdate:filterArray":o[2]||(o[2]=l=>r.typeFilters=l)},null,8,["filter-array"]),i.createVNode(Bg,{"filter-array":r.rarityFilters,"onUpdate:filterArray":o[3]||(o[3]=l=>r.rarityFilters=l)},null,8,["filter-array"]),i.createVNode(yg,{"filter-array":r.setFilters,"onUpdate:filterArray":o[4]||(o[4]=l=>r.setFilters=l)},null,8,["filter-array"]),i.createVNode(wg,{"filter-array":r.keywordFilters,"onUpdate:filterArray":o[5]||(o[5]=l=>r.keywordFilters=l)},null,8,["filter-array"]),i.createVNode(kg,{"filter-value":r.advancedFilters,"onUpdate:filterValue":o[6]||(o[6]=l=>r.advancedFilters=l)},null,8,["filter-value"]),"serverFilters"in r?(i.openBlock(),i.createBlock(i.unref(Js),{key:0,"filter-array":r.serverFilters,"onUpdate:filterArray":o[7]||(o[7]=l=>r.serverFilters=l)},null,8,["filter-array"])):i.createCommentVNode("",!0),"timeFilters"in r?(i.openBlock(),i.createBlock($A,{key:1,"filter-array":r.timeFilters,"onUpdate:filterArray":o[8]||(o[8]=l=>r.timeFilters=l)},null,8,["filter-array"])):i.createCommentVNode("",!0),"formatFilters"in r?(i.openBlock(),i.createBlock(_g,{key:2,"filter-array":r.formatFilters,"onUpdate:filterArray":o[9]||(o[9]=l=>r.formatFilters=l)},null,8,["filter-array"])):i.createCommentVNode("",!0),"queueFilters"in r?(i.openBlock(),i.createBlock(Cg,{key:3,"filter-array":r.queueFilters,"onUpdate:filterArray":o[10]||(o[10]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"])):i.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),DT={regionRef:{type:String,required:!0,default:"Ionia"}},LT={text:{type:String,required:!0,default:""}},OT=["innerHTML"],MT=i.defineComponent({__name:"TippyText",props:LT,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,OT))}});const Ju=M(MT,[["__scopeId","data-v-715107fe"]]),NT={class:"region-item"},PT=["alt","src"],HT=i.defineComponent({__name:"RegionItem",props:DT,setup(e){const t=e,n=i.ref(null),r=i.ref(null),a=i.computed(()=>we().dataJson.regions.find(A=>A.nameRef==t.regionRef)??we().dataJson.runeterraChampions.find(A=>A.nameRef===t.regionRef));return i.onMounted(()=>{At(n.value,{content:r.value,arrow:!0})}),(A,s)=>{var o,l,c;return i.openBlock(),i.createElementBlock("div",NT,[i.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(o=a.value)==null?void 0:o.name,src:(l=a.value)==null?void 0:l.icon,class:"region-img"},null,8,PT),i.createElementVNode("div",{ref_key:"regionTippy",ref:r},[i.createVNode(Ju,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const qo=M(HT,[["__scopeId","data-v-3d756f50"]]),RT={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},VT={class:"regions-line"},KT={key:0,class:"describe-regions"},$T={class:"lines"},WT=i.defineComponent({__name:"RegionsLine",props:RT,setup(e){const t=e,{t:n}=re(),r=i.computed(()=>t.deck?t.deck:St(t.deckCode)),a=i.computed(()=>t.cards?t.cards:rn(r.value)),A=i.computed(()=>{const o={};for(const l of Ou(r.value))o[l]=0;for(const l of a.value)for(const c of l.regionRefs)c in o&&(o[c]+=r.value[l.cardCode]);return o});function s(o,l){return{flexGrow:o,backgroundColor:`var(--color-${l}, var(--color-Runeterra))`}}return(o,l)=>(i.openBlock(),i.createElementBlock("div",VT,[t.describeRegions?(i.openBlock(),i.createElementBlock("div",KT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,(c,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,class:"region-description"},[i.createVNode(qo,{"region-ref":u,class:"icon"},null,8,["region-ref"]),i.createElementVNode("span",null,i.toDisplayString(`${c} ${i.unref(n)("general.cards")}`),1)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",$T,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,(c,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,style:i.normalizeStyle(s(c,u)),class:"region-line"},null,4))),128))])]))}});const xg=M(WT,[["__scopeId","data-v-f1f94f8b"]]),GT={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},region:{type:String,required:!0,default:""},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},zT={class:"cards-row-background-wrapper"},jT={class:"cards-row-background"},YT={class:"cards-row wrapper"},qT={key:0,class:"column-content"},XT={key:2,class:"column-content"},JT={key:3,class:"column-content"},ZT={key:5,class:"column-content"},eD={key:7,class:"column-content"},tD={key:8,class:"column-content"},nD=i.defineComponent({__name:"CardsRow",props:GT,setup(e){const t=e,n=i.computed(()=>["",`https://lor.gg/storage/cards/banner/${t.cardCode}.png`]);return(r,a)=>{const A=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(A,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",zT,[i.createElementVNode("div",jT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"background-card",style:i.normalizeStyle({"--background-image":`url(${s})`})},null,4))),128))])]),i.createElementVNode("div",YT,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(fn,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!1,color:`var(--color-${t.region}-rgb, var(--color-primary-2-rgb))`,"router-link":t.routerLink},null,8,["card-code-prop","color","router-link"])]),t.toggledStats.matches?(i.openBlock(),i.createElementBlock("div",qT,i.toDisplayString(i.unref(Te)(t.matches)),1)):i.createCommentVNode("",!0),t.toggledStats.winrate?(i.openBlock(),i.createElementBlock("div",{key:1,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5)):i.createCommentVNode("",!0),t.toggledStats.inclusion?(i.openBlock(),i.createElementBlock("div",XT,i.toDisplayString(i.unref(Te)(t.inclusion*100,2,3)+"%"),1)):i.createCommentVNode("",!0),t.toggledStats.avgCopies?(i.openBlock(),i.createElementBlock("div",JT,i.toDisplayString(i.unref(Te)(t.avgCopies,2,3)),1)):i.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(i.openBlock(),i.createElementBlock("div",{key:4,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.mulliganWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.mulliganWinrate?i.unref(Te)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(i.openBlock(),i.createElementBlock("div",ZT,i.toDisplayString(t.keptInMulligan?i.unref(Te)(t.keptInMulligan*100,2,3)+"%":"-"),1)):i.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(i.openBlock(),i.createElementBlock("div",{key:6,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.drawnWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.drawnWinrate?i.unref(Te)(t.drawnWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.turnPlayed?(i.openBlock(),i.createElementBlock("div",eD,i.toDisplayString(t.turnPlayed?i.unref(Te)(t.turnPlayed,2,3):"-"),1)):i.createCommentVNode("",!0),t.toggledStats.turnsHeld?(i.openBlock(),i.createElementBlock("div",tD,i.toDisplayString(t.turnsHeld?i.unref(Te)(t.turnsHeld,2,3):"-"),1)):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Fg=M(nD,[["__scopeId","data-v-bd1cd183"]]),rD={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}},loading:{type:Boolean,required:!1,default:!1}};var be=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(be||{});const aD={headingItems:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}};const AD={},sD={class:"loader"};function iD(e,t){return i.openBlock(),i.createElementBlock("div",sD)}const Ig=M(AD,[["render",iD],["__scopeId","data-v-91218ab0"]]),Ug=e=>(i.pushScopeId("data-v-6c7efe2d"),e=e(),i.popScopeId(),e),oD={class:"table-wrapper"},lD={class:"table no-scrollbar"},cD=Ug(()=>i.createElementVNode("div",{class:"heading-background-outer"},[i.createElementVNode("div",{class:"heading-background-absolute"}),i.createElementVNode("div",{class:"heading-background-inner"})],-1)),uD={class:"heading wrapper"},dD=["onClick"],fD={class:"sort-icons"},hD={key:0,class:"no-content loading"},pD={key:1,class:"no-content no-results"},gD=Ug(()=>i.createElementVNode("h2",null," No Results ",-1)),mD=Ug(()=>i.createElementVNode("h4",null," Adjust filters and try again. ",-1)),vD=[gD,mD],BD=i.defineComponent({__name:"LargeTable",props:aD,emits:["toggleSort"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.headingItems.filter(a=>a.isShown));return(a,A)=>(i.openBlock(),i.createElementBlock("div",oD,[i.createElementVNode("div",lD,[cD,i.createElementVNode("div",uD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s.title,class:i.normalizeClass(["heading-cell column-content",s.sortDirection]),onClick:o=>t("toggleSort",s.id)},[i.createElementVNode("div",null,i.toDisplayString(s.title),1),i.createElementVNode("div",fD,[i.createVNode(i.unref(Ie),{icon:"sort-up",class:"sort-icon"}),i.createVNode(i.unref(Ie),{icon:"sort-down",class:"sort-icon"})])],10,dD))),128))]),i.renderSlot(a.$slots,"default",{},()=>[n.loading?(i.openBlock(),i.createElementBlock("div",hD,[i.createVNode(Ig)])):(i.openBlock(),i.createElementBlock("div",pD,vD))],!0)])]))}});const tA=M(BD,[["__scopeId","data-v-6c7efe2d"]]);function ei(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===be.NOT_SORTABLE)return null;const r=n.sortDirection;return yD(t),r===be.NEITHER?n.sortDirection=be.DOWN:r===be.DOWN?n.sortDirection=be.UP:n.sortDirection=be.DOWN,n}function yD(e){e.value.forEach(t=>{t.sortDirection!==be.NOT_SORTABLE&&(t.sortDirection=be.NEITHER)})}const wD=i.defineComponent({__name:"CardsTable",props:rD,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:r("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:r("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:r("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:r("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:r("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:r("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:r("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:r("general.turnPlayed")}];let A=!1;const s=i.ref(a.map(c=>{let u=be.NEITHER;return c.isSortable||(u=be.NOT_SORTABLE),!A&&c.isSortable&&(u=be.DOWN,A=!0),{id:c.id,isShown:n.cardsRowToggle[c.id],sortDirection:u,title:c.title}})),o=i.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(n.cardsRowToggle).reduce((u,d)=>d?u+1:u,0)}, 1fr)`}));function l(c){const u=ei(c,s);u&&t("sort-updated",u)}return(c,u)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":s.value,style:i.normalizeStyle(o.value),onToggleSort:l},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.cardRows,(d,f)=>(i.openBlock(),i.createBlock(Fg,{key:d.cardCode+d.region,"card-code":d.cardCode,matches:d.matches,wins:d.wins,index:f+2,"avg-copies":d.avgCopies,"drawn-winrate":d.drawnWinrate,"kept-in-mulligan":d.keptInMulligan,"mulligan-winrate":d.mulliganWinrate,inclusion:d.inclusion,"turns-held":d.turnsHeld,"turn-played":d.turnPlayed,"toggled-stats":n.cardsRowToggle,region:d.region,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(d.cardCode)},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats","region","router-link"]))),128))]),_:1},8,["loading","heading-items","style"]))}});const bb=M(wD,[["__scopeId","data-v-1894b267"]]),bD={regions:{type:Array,required:!0,default:[]}},_D={class:"deck-highlight-regions"},CD=i.defineComponent({__name:"DeckHighlightRegions",props:bD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",_D,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.regions,a=>(i.openBlock(),i.createElementBlock("div",{key:a,class:"region-item-wrapper"},[i.createVNode(qo,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Xo=M(CD,[["__scopeId","data-v-d28f95f4"]]),ED={},kD={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},SD=i.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5),xD=[SD];function FD(e,t){return i.openBlock(),i.createElementBlock("svg",kD,xD)}const Qg=M(ED,[["render",FD]]),ID={deck:{type:Object,required:!0,default:{}}},UD=e=>(i.pushScopeId("data-v-25f680e9"),e=e(),i.popScopeId(),e),QD={class:"gems-text"},TD={class:"gems-cost-title"},DD={class:"gems-cost-value"},LD=UD(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),OD={class:"gems-cost-title"},MD={class:"gems-cost-value"},ND=i.defineComponent({__name:"GemsCost",props:ID,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(null),A=i.computed(()=>Yc(t.deck,!1)),s=i.computed(()=>Yc(t.deck,!0));return i.onMounted(()=>{At(r.value,{content:a.value,arrow:!0,duration:0})}),(o,l)=>{var c,u,d;return i.openBlock(),i.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[i.createVNode(Qg,{class:"shards-icon"}),i.createElementVNode("div",QD,i.toDisplayString((c=s.value!==null?s.value:A.value)==null?void 0:c.toLocaleString()),1),i.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",TD,i.toDisplayString(i.unref(n)("deck.personalCost")),1),i.createElementVNode("div",DD,i.toDisplayString((u=s.value)==null?void 0:u.toLocaleString()),1),LD],64)):i.createCommentVNode("",!0),i.createElementVNode("div",OD,i.toDisplayString(i.unref(n)("deck.originalCost")),1),i.createElementVNode("div",MD,i.toDisplayString((d=A.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Tg=M(ND,[["__scopeId","data-v-25f680e9"]]),PD={class:"language-selection"},HD={class:"selection-panel"},RD=i.defineComponent({__name:"LanguageSelection",setup(e){const{locale:t,availableLocales:n}=re(),r={en:"English",de:"Deutsch",es:"Español",fr:"Français",it:"Italiano",ja:"日本語",ko:"한국어",pl:"Polski",pt:"Português",th:"ไทย",tr:"Türkçe",ru:"Русский",zh:"中文"},a=pA.useRoute(),A=i.ref(!1),s=i.computed(()=>n.sort(l=>l===t.value?-1:1));function o(){A.value=!0}return(l,c)=>{const u=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",PD,[i.createVNode(i.unref(Ie),{ref:"languageIcon",icon:"language",class:"icon",onClick:o},null,512),i.createVNode(KA,{"show-modal":A.value,"onUpdate:showModal":c[0]||(c[0]=d=>A.value=d)},{default:i.withCtx(()=>[i.createElementVNode("div",HD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,d=>(i.openBlock(),i.createBlock(u,{class:i.normalizeClass(i.unref(t)===d?"selected":""),locale:d,key:d,to:{...i.unref(a),params:{...i.unref(a).params,lang:d}}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r[d]),1)]),_:2},1032,["class","locale","to"]))),128))])]),_:1},8,["show-modal"])])}}});const Dg=M(RD,[["__scopeId","data-v-8a6f5e0d"]]),VD={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},_b={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},KD={class:"circle-card-item"},$D=["alt","src"],WD=i.defineComponent({__name:"CircleCardItem",props:_b,setup(e){const t=e,n=Ro(t.cardProp,t.cardCodeProp,!0),r=i.ref(null),a=i.ref(null),A=i.ref(null),s=i.ref(null),o=i.computed(()=>{var c;return"https://lor.gg/storage/cards/icon/"+((c=n.value)==null?void 0:c.cardCode)+"-icon.webp"}),l=i.computed(()=>n.value===void 0?"--color-primary-2":gA(n.value,t.regions));return i.onMounted(()=>{t.ignoreCardItem||At(r.value,{content:a.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:c=>{const u=c.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=u},onHidden:()=>{s.value=null}})}),(c,u)=>{const d=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",KD,[i.createVNode(d,{to:t.routerLink,class:"circle-card-link",onClick:u[0]||(u[0]=i.withModifiers(()=>{},["stop","prevent"]))},{default:i.withCtx(()=>{var f;return[i.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=i.unref(n))==null?void 0:f.name,src:o.value,class:"circle-card-img",style:i.normalizeStyle({borderColor:t.colorOverride??l.value})},null,12,$D)]}),_:1},8,["to"]),i.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&i.unref(n)?(i.openBlock(),i.createBlock(Wa,{key:0,ref_key:"cardItem",ref:A,"card-code-prop":i.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":s.value},null,8,["card-code-prop","show-tippy-location"])):i.createCommentVNode("",!0)],512)])}}});const nA=M(WD,[["__scopeId","data-v-e5d6b977"]]),GD={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},zD={class:"deck-highlight-cards"},jD=i.defineComponent({__name:"DeckHighlightCards",props:GD,setup(e){const t=e,n=i.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>jt().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(i.openBlock(),i.createElementBlock("div",zD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(A,s)=>(i.openBlock(),i.createElementBlock("div",{key:A.cardCode??s,class:"circle-card-item-wrapper"},[i.createVNode(nA,{class:"circle-card-item","card-prop":A,regions:t.regions,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(A.cardCode)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const Jo=M(jD,[["__scopeId","data-v-021c3530"]]),YD=i.defineComponent({__name:"ArchetypeSidePanelHighlight",props:VD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createBlock(mt,{class:"archetype-side-panel-highlight"},{default:i.withCtx(()=>[i.createVNode(Xo,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),i.createVNode(Jo,{class:i.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Zu=M(YD,[["__scopeId","data-v-ff538f6f"]]),qD={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},XD={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
811
811
  * @kurkle/color v0.3.2
812
812
  * https://github.com/kurkle/color#readme
813
813
  * (c) 2023 Jukka Kurkela
@@ -849,9 +849,9 @@ V.version="2.29.4";HV(st);V.fn=H;V.min=S$;V.max=x$;V.now=F$;V.utc=kr;V.unix=rG;V
849
849
  * https://www.chartjs.org/chartjs-plugin-annotation/index
850
850
  * (c) 2023 chartjs-plugin-annotation Contributors
851
851
  * Released under the MIT License
852
- */const cy={modes:{point(e,t){return $c(e,t,{intersect:!0})},nearest(e,t,n){return cz(e,t,n)},x(e,t,n){return $c(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return $c(e,t,{intersect:n.intersect,axis:"y"})}}};function km(e,t,n){return(cy.modes[n.mode]||cy.modes.nearest)(e,t,n)}function oz(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function lz(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function $c(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):oz(r,t,n.axis))}function cz(e,t,n){let r=Number.POSITIVE_INFINITY;return $c(e,t,n).reduce((a,A)=>{const s=A.getCenterPoint(),o=lz(t,s,n.axis),l=Hs(t,o);return l<r?(a=[A],r=l):l===r&&a.push(A),a},[]).sort((a,A)=>a._index-A._index).slice(0,1)}const uz=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,bA=.001,_d=(e,t,n)=>Math.min(n,Math.max(t,e));function dz(e,t,n){for(const r of Object.keys(e))e[r]=_d(e[r],t,n);return e}function fz(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function WC(e,{x:t,y:n,x2:r,y2:a},A,s){const o=s/2,l=e.x>=t-o-bA&&e.x<=r+o+bA,c=e.y>=n-o-bA&&e.y<=a+o+bA;return A==="x"?l:(A==="y"||l)&&c}function ri(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function hz(e,t,n,r=!0){const a=n.split(".");let A=0;for(const s of t.split(".")){const o=a[A++];if(parseInt(s,10)<parseInt(o,10))break;if(uz(o,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const GC=e=>typeof e=="string"&&e.endsWith("%"),zC=e=>parseFloat(e)/100,jC=e=>_d(zC(e),0,1);function Sm(e,t){return t==="start"?0:t==="end"?e:GC(t)?jC(t)*e:e/2}function Ya(e,t,n=!0){return typeof t=="number"?t:GC(t)?(n?jC(t):zC(t))*e:e}function pz(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function xm(e,t="center"){return ve(e)?{x:de(e.x,t),y:de(e.y,t)}:(e=de(e,t),{x:e,y:e})}function YC(e){return e&&(vn(e.xValue)||vn(e.yValue))}function cl(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return XC(t,r)}else return;return gz(t,r,He(a,[{chart:e,properties:t,options:n}]))}function qC(e,t,n){let r=!1;return t.forEach(a=>{mn(e[a])?(r=!0,n[a]=e[a]):vn(n[a])&&delete n[a]}),r}function XC({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function gz(e,t,n){if(n===!0)return XC(e,t);if(ve(n))return n}const Uf=new Map,mz=e=>isNaN(e)||e<=0,vz=e=>e.reduce(function(t,n){return t+=n.string,t},"");function Cd(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function Fm(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(Et(r)),e.translate(-t,-n))}function qa(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function ai(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function Im(e,t){const n=t.content;if(Cd(n))return{width:Ya(n.width,t.width),height:Ya(n.height,t.height)};const r=t.font,a=Oe(r)?r.map(l=>ft(l)):[ft(r)],A=t.textStrokeWidth,s=Oe(n)?n:[n],o=s.join()+vz(a)+A+(e._measureText?"-spriting":"");return Uf.has(o)||Uf.set(o,_z(e,s,a,A)),Uf.get(o)}function JC(e,t,n){const{x:r,y:a,width:A,height:s}=t;e.save(),ai(e,n);const o=qa(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),Rs(e,{x:r,y:a,w:A,h:s,radius:dz(Da(n.borderRadius),0,Math.min(A,s)/2)}),e.closePath(),e.fill(),o&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function Bz(e,t,n){const r=n.content;if(Cd(r)){e.save(),e.globalAlpha=kz(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Oe(r)?r:[r],A=n.font,s=Oe(A)?A.map(d=>ft(d)):[ft(A)],o=n.color,l=Oe(o)?o:[o],c=pz(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,yz(e,n)&&Cz(e,{x:c,y:u},a,s),Ez(e,{x:c,y:u},a,{fonts:s,colors:l}),e.restore()}function yz(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function wz(e,t,n,r){const{radius:a,options:A}=t,s=A.pointStyle,o=A.rotation;let l=(o||0)*Pg;if(Cd(s)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}mz(a)||bz(e,{x:n,y:r,radius:a,rotation:o,style:s,rad:l})}function bz(e,{x:t,y:n,radius:r,rotation:a,style:A,rad:s}){let o,l,c,u;switch(e.beginPath(),A){default:e.arc(t,n,r,0,Xe),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=cu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=cu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":u=r*.516,c=r-u,o=Math.cos(s+Mn)*c,l=Math.sin(s+Mn)*c,e.arc(t-o,n-l,u,s-Qe,s-Je),e.arc(t+l,n-o,u,s-Je,s),e.arc(t+o,n+l,u,s,s+Je),e.arc(t-l,n+o,u,s+Je,s+Qe),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}s+=Mn;case"rectRot":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+l,n-o),e.lineTo(t+o,n+l),e.lineTo(t-l,n+o),e.closePath();break;case"crossRot":s+=Mn;case"cross":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l),e.moveTo(t+l,n-o),e.lineTo(t-l,n+o);break;case"star":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l),e.moveTo(t+l,n-o),e.lineTo(t-l,n+o),s+=Mn,o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l),e.moveTo(t+l,n-o),e.lineTo(t-l,n+o);break;case"line":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function _z(e,t,n,r){e.save();const a=t.length;let A=0,s=r;for(let o=0;o<a;o++){const l=n[Math.min(o,n.length-1)];e.font=l.string;const c=t[o];A=Math.max(A,e.measureText(c).width+r),s+=l.lineHeight}return e.restore(),{width:A,height:s}}function Cz(e,{x:t,y:n},r,a){e.beginPath();let A=0;r.forEach(function(s,o){const l=a[Math.min(o,a.length-1)],c=l.lineHeight;e.font=l.string,e.strokeText(s,t,n+c/2+A),A+=c}),e.stroke()}function Ez(e,{x:t,y:n},r,{fonts:a,colors:A}){let s=0;r.forEach(function(o,l){const c=A[Math.min(l,A.length-1)],u=a[Math.min(l,a.length-1)],d=u.lineHeight;e.beginPath(),e.font=u.string,e.fillStyle=c,e.fillText(o,t,n+d/2+s),s+=d,e.fill()})}function kz(e,t){const n=za(e)?e:t;return za(n)?_d(n,0,1):1}const uy={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function zs(e,t,n){return t=typeof t=="number"?t:e.parse(t),ut(t)?e.getPixelForValue(t):n}function HA(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),A=Object.values(e).filter(s=>s.axis&&s.axis===a);return A.length?A[0].id:a}function ZC(e,t){if(e){const n=e.options.reverse,r=zs(e,t.min,n?t.end:t.start),a=zs(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function e4(e,t){const{chartArea:n,scales:r}=e,a=r[HA(r,t,"xScaleID")],A=r[HA(r,t,"yScaleID")];let s=n.width/2,o=n.height/2;return a&&(s=zs(a,t.xValue,a.left+a.width/2)),A&&(o=zs(A,t.yValue,A.top+A.height/2)),{x:s,y:o}}function Um(e,t){const n=e.scales,r=n[HA(n,t,"xScaleID")],a=n[HA(n,t,"yScaleID")];if(!r&&!a)return{};let{left:A,right:s}=r||e.chartArea,{top:o,bottom:l}=a||e.chartArea;const c=dy(r,{min:t.xMin,max:t.xMax,start:A,end:s});A=c.start,s=c.end;const u=dy(a,{min:t.yMin,max:t.yMax,start:l,end:o});return o=u.start,l=u.end,{x:A,y:o,x2:s,y2:l,width:s-A,height:l-o,centerX:A+(s-A)/2,centerY:o+(l-o)/2}}function t4(e,t){if(!YC(t)){const n=Um(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,A=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:A-r,y:s-r,x2:A+r,y2:s+r,centerX:A,centerY:s,width:a,height:a,radius:r}}return xz(e,t)}function Sz(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],A={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?Fz(a,A,t):Iz(n,A,t),A}function n4(e,t,n){const r=Um(e,t);return r.initProperties=cl(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:Tz(e,r,t),initProperties:r.initProperties}],r}function xz(e,t){const n=e4(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function dy(e,t){const n=ZC(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Fz(e,t,n){const r=zs(e,n.value,NaN),a=zs(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function Iz(e,t,n){for(const r of Object.keys(uy)){const a=e[HA(e,n,r)];if(a){const{min:A,max:s,start:o,end:l,startProp:c,endProp:u}=uy[r],d=ZC(a,{min:n[A],max:n[s],start:a[o],end:a[l]});t[c]=d.start,t[u]=d.end}}}function Uz({properties:e,options:t},n,r,a){const{x:A,x2:s,width:o}=e;return r4({start:A,end:s,size:o,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function Qz({properties:e,options:t},n,r,a){const{y:A,y2:s,height:o}=e;return r4({start:A,end:s,size:o,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function r4(e,t){const{start:n,end:r,borderWidth:a}=e,{position:A,padding:{start:s,end:o},adjust:l}=t,c=r-a-n-s-o-t.size;return n+a/2+l+Sm(c,A)}function Tz(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=xm(r.position),A=_t(r.padding),s=Im(e.ctx,r),o=Uz({properties:t,options:n},s,a,A),l=Qz({properties:t,options:n},s,a,A),c=s.width+A.width,u=s.height+A.height;return{x:o,y:l,x2:o+c,y2:l+u,width:c,height:u,centerX:o+c/2,centerY:l+u/2,rotation:r.rotation}}function qA(e,t,n){const r=Math.cos(n),a=Math.sin(n),A=t.x,s=t.y;return{x:A+r*(e.x-A)-a*(e.y-s),y:s+a*(e.x-A)+r*(e.y-s)}}const sp=["enter","leave"],Qm=sp.concat("click");function Dz(e,t,n){t.listened=qC(n,Qm,t.listeners),t.moveListened=!1,t._getElements=km,sp.forEach(r=>{mn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&mn(r.click)&&(t.listened=!0),t.moveListened||sp.forEach(a=>{mn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function Lz(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return Oz(e,t,n);case"click":return Mz(e,t,n)}}function Oz(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=km(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const A={state:e,event:t};let s=fy(A,"leave",a,r);return fy(A,"enter",r,a)||s}function fy({state:e,event:t},n,r,a){let A;for(const s of r)a.indexOf(s)<0&&(A=a4(s.options[n]||e.listeners[n],s,t)||A);return A}function Mz(e,t,n){const r=e.listeners,a=km(e,t,n.interaction);let A;for(const s of a)A=a4(s.options.click||r.click,s,t)||A;return A}function a4(e,t,n){return He(e,[t.$context,n])===!0}const Eu=["afterDraw","beforeDraw"];function Nz(e,t,n){const r=t.visibleElements;t.hooked=qC(n,Eu,t.hooks),t.hooked||r.forEach(a=>{t.hooked||Eu.forEach(A=>{mn(a.options[A])&&(t.hooked=!0)})})}function hy(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return He(r,[t.$context])}}function Pz(e,t,n){const r=$z(e.scales,t,n);let a=py(t,r,"min","suggestedMin");a=py(t,r,"max","suggestedMax")||a,a&&mn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Hz(e,t){for(const n of e)Vz(n,t)}function py(e,t,n,r){if(ut(t[n])&&!Rz(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function Rz(e,t,n){return vn(e[t])||vn(e[n])}function Vz(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=HA(t,e,n);r&&!t[r]&&Kz(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function Kz(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(vn(e[n+r]))return!0;return!1}function $z(e,t,n){const r=t.axis,a=t.id,A=r+"ScaleID",s={min:de(t.min,Number.NEGATIVE_INFINITY),max:de(t.max,Number.POSITIVE_INFINITY)};for(const o of n)o.scaleID===a?gy(o,t,["value","endValue"],s):HA(e,o,A)===a&&gy(o,t,[r+"Min",r+"Max",r+"Value"],s);return s}function gy(e,t,n,r){for(const a of n){const A=e[a];if(vn(A)){const s=t.parse(A);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class Ai extends an{inRange(t,n,r,a){const{x:A,y:s}=qA({x:t,y:n},this.getCenterPoint(a),Et(-this.options.rotation));return WC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ri(this,t)}draw(t){t.save(),Fm(t,this.getCenterPoint(),this.options.rotation),JC(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return n4(t,n)}}Ai.id="boxAnnotation";Ai.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Ai.defaultRoutes={borderColor:"color",backgroundColor:"color"};Ai.descriptors={label:{_fallback:!0}};const A4=["left","bottom","top","right"];class ul extends an{inRange(t,n,r,a){const{x:A,y:s}=qA({x:t,y:n},this.getCenterPoint(a),Et(-this.rotation));return WC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ri(this,t)}draw(t){const n=this.options,r=!vn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),Fm(t,this.getCenterPoint(),this.rotation),Gz(t,this),JC(t,this,n),Bz(t,Zz(this),n),t.restore())}resolveElementProperties(t,n){let r;if(YC(n))r=e4(t,n);else{const{centerX:o,centerY:l}=Um(t,n);r={x:o,y:l}}const a=_t(n.padding),A=Im(t.ctx,n),s=Wz(r,A,n,a);return{initProperties:cl(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}ul.id="labelAnnotation";ul.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};ul.defaultRoutes={borderColor:"color"};function Wz(e,t,n,r){const a=t.width+r.width+n.borderWidth,A=t.height+r.height+n.borderWidth,s=xm(n.position,"center"),o=my(e.x,a,n.xAdjust,s.x),l=my(e.y,A,n.yAdjust,s.y);return{x:o,y:l,x2:o+a,y2:l+A,width:a,height:A,centerX:o+a/2,centerY:l+A/2}}function my(e,t,n=0,r){return e-Sm(t,r)+n}function Gz(e,t){const{pointX:n,pointY:r,options:a}=t,A=a.callout,s=A&&A.display&&Xz(t,A);if(!s||ej(t,A,s))return;if(e.save(),e.beginPath(),!qa(e,A))return e.restore();const{separatorStart:l,separatorEnd:c}=zz(t,s),{sideStart:u,sideEnd:d}=Yz(t,s,l);(A.margin>0||a.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(c.x,c.y)),e.moveTo(u.x,u.y),e.lineTo(d.x,d.y);const f=qA({x:n,y:r},t.getCenterPoint(),Et(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function zz(e,t){const{x:n,y:r,x2:a,y2:A}=e,s=jz(e,t);let o,l;return t==="left"||t==="right"?(o={x:n+s,y:r},l={x:o.x,y:A}):(o={x:n,y:r+s},l={x:a,y:o.y}),{separatorStart:o,separatorEnd:l}}function jz(e,t){const{width:n,height:r,options:a}=e,A=a.callout.margin+a.borderWidth/2;return t==="right"?n+A:t==="bottom"?r+A:-A}function Yz(e,t,n){const{y:r,width:a,height:A,options:s}=e,o=s.callout.start,l=qz(t,s.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+Ya(A,o)},u={x:c.x+l,y:c.y}):(c={x:n.x+Ya(a,o),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function qz(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function Xz(e,t){const n=t.position;return A4.includes(n)?n:Jz(e,t)}function Jz(e,t){const{x:n,y:r,x2:a,y2:A,width:s,height:o,pointX:l,pointY:c,centerX:u,centerY:d,rotation:f}=e,h={x:u,y:d},p=t.start,m=Ya(s,p),y=Ya(o,p),g=[n,n+m,n+m,a],v=[r+y,A,r,A],_=[];for(let B=0;B<4;B++){const w=qA({x:g[B],y:v[B]},h,Et(f));_.push({position:A4[B],distance:Hs(w,{x:l,y:c})})}return _.sort((B,w)=>B.distance-w.distance)[0].position}function Zz({x:e,y:t,width:n,height:r,options:a}){const A=a.borderWidth/2,s=_t(a.padding);return{x:e+s.left+A,y:t+s.top+A,width:n-s.left-s.right-a.borderWidth,height:r-s.top-s.bottom-a.borderWidth}}function ej(e,t,n){const{pointX:r,pointY:a}=e,A=t.margin;let s=r,o=a;return n==="left"?s+=A:n==="right"?s-=A:n==="top"?o+=A:n==="bottom"&&(o-=A),e.inRange(s,o)}const Tm=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),ip=(e,t,n)=>Tm(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,vy=(e,t,n)=>Tm(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Qi=e=>e*e,tj=(e,t,{x:n,y:r,x2:a,y2:A},s)=>s==="y"?{start:Math.min(r,A),end:Math.max(r,A),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},By=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,op=(e,t,n,r)=>({x:By(e.x,t.x,n.x,r),y:By(e.y,t.y,n.y,r)}),yy=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),wy=(e,t,n,r)=>-Math.atan2(yy(e.x,t.x,n.x,r),yy(e.y,t.y,n.y,r))+.5*Qe;class dl extends an{inRange(t,n,r,a){const A=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const s={mouseX:t,mouseY:n},{path:o,ctx:l}=this;if(o){qa(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,h=l.isPointInStroke(o,d,f)||lp(this,s,a);return l.restore(),h}const c=Qi(A);return Aj(this,s,c,a)||lp(this,s,a)}return nj(this,{mouseX:t,mouseY:n},r,{hBorderWidth:A,useFinalPosition:a})}getCenterPoint(t){return ri(this,t)}draw(t){const{x:n,y:r,x2:a,y2:A,cp:s,options:o}=this;if(t.save(),!qa(t,o))return t.restore();ai(t,o);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(A-r,2));if(o.curve&&s)return fj(t,this,s,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=s4(this),h=Math.atan2(A-r,a-n);t.translate(n,r),t.rotate(h),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-f,0),t.shadowColor=o.borderShadowColor,t.stroke(),cp(t,0,d,c),cp(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=Sz(t,n),{x:a,y:A,x2:s,y2:o}=r,l=rj(r,t.chartArea),c=l?aj({x:a,y:A},{x:s,y:o},t.chartArea):{x:a,y:A,x2:s,y2:o,width:Math.abs(s-a),height:Math.abs(o-A)};if(c.centerX=(s+a)/2,c.centerY=(o+A)/2,c.initProperties=cl(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=dj(c,n,Hs(d,f))}const u=sj(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}dl.id="lineAnnotation";const by={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};dl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},by),fill:!1,length:12,start:Object.assign({},by),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},ul.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};dl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};dl.defaultRoutes={borderColor:"color"};function nj(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:A}){const s=tj(t,n,e.getProps(["x","y","x2","y2"],A),r);return s.value>=s.start-a&&s.value<=s.end+a||lp(e,{mouseX:t,mouseY:n},A,r)}function rj({x:e,y:t,x2:n,y2:r},{top:a,right:A,bottom:s,left:o}){return!(e<o&&n<o||e>A&&n>A||t<a&&r<a||t>s&&r>s)}function _y({x:e,y:t},n,{top:r,right:a,bottom:A,left:s}){return e<s&&(t=vy(s,{x:e,y:t},n),e=s),e>a&&(t=vy(a,{x:e,y:t},n),e=a),t<r&&(e=ip(r,{x:e,y:t},n),t=r),t>A&&(e=ip(A,{x:e,y:t},n),t=A),{x:e,y:t}}function aj(e,t,n){const{x:r,y:a}=_y(e,t,n),{x:A,y:s}=_y(t,e,n);return{x:r,y:a,x2:A,y2:s,width:Math.abs(A-r),height:Math.abs(s-a)}}function Aj(e,{mouseX:t,mouseY:n},r=bA,a){const{x:A,y:s,x2:o,y2:l}=e.getProps(["x","y","x2","y2"],a),c=o-A,u=l-s,d=Qi(c)+Qi(u),f=d===0?-1:((t-A)*c+(n-s)*u)/d;let h,p;return f<0?(h=A,p=s):f>1?(h=o,p=l):(h=A+f*c,p=s+f*u),Qi(t-h)+Qi(n-p)<=r}function lp(e,{mouseX:t,mouseY:n},r,a){const A=e.label;return A.options.display&&A.inRange(t,n,a,r)}function sj(e,t,n){const r=n.borderWidth,a=_t(n.padding),A=Im(e.ctx,n),s=A.width+a.width+r,o=A.height+a.height+r;return oj(t,n,{width:s,height:o,padding:a},e.chartArea)}function ij(e){const{x:t,y:n,x2:r,y2:a}=e,A=Math.atan2(a-n,r-t);return A>Qe/2?A-Qe:A<Qe/-2?A+Qe:A}function oj(e,t,n,r){const{width:a,height:A,padding:s}=n,{xAdjust:o,yAdjust:l}=t,c={x:e.x,y:e.y},u={x:e.x2,y:e.y2},d=t.rotation==="auto"?ij(e):Et(t.rotation),f=lj(a,A,d),h=cj(e,t,{labelSize:f,padding:s},r),p=e.cp?op(c,e.cp,u,h):Tm(c,u,h),m={size:f.w,min:r.left,max:r.right,padding:s.left},y={size:f.h,min:r.top,max:r.bottom,padding:s.top},g=Ey(p.x,m)+o,v=Ey(p.y,y)+l;return{x:g-a/2,y:v-A/2,x2:g+a/2,y2:v+A/2,centerX:g,centerY:v,pointX:p.x,pointY:p.y,width:a,height:A,rotation:ed(d)}}function lj(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function cj(e,t,n,r){let a;const A=uj(e,r);return t.position==="start"?a=Cy({w:e.x2-e.x,h:e.y2-e.y},n,t,A):t.position==="end"?a=1-Cy({w:e.x-e.x2,h:e.y-e.y2},n,t,A):a=Sm(1,t.position),a}function Cy(e,t,n,r){const{labelSize:a,padding:A}=t,s=e.w*r.dx,o=e.h*r.dy,l=s>0&&(a.w/2+A.left-r.x)/s,c=o>0&&(a.h/2+A.top-r.y)/o;return _d(Math.max(l,c),0,.25)}function uj(e,t){const{x:n,x2:r,y:a,y2:A}=e,s=Math.min(a,A)-t.top,o=Math.min(n,r)-t.left,l=t.bottom-Math.max(a,A),c=t.right-Math.max(n,r);return{x:Math.min(o,c),y:Math.min(s,l),dx:o<=c?1:-1,dy:s<=l?1:-1}}function Ey(e,t){const{size:n,min:r,max:a,padding:A}=t,s=n/2;return n>a-r?(a+r)/2:(r>=e-A-s&&(e=r+A+s),a<=e+A+s&&(e=a-A-s),e)}function s4(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:ky(e,n),endAdjust:ky(e,r)}}function ky(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,A={x:n,y:r+a};return Math.abs(ip(0,A,{x:0,y:a}))}function cp(e,t,n,r){if(!r||!r.display)return;const{length:a,width:A,fill:s,backgroundColor:o,borderColor:l}=r,c=Math.abs(t-a)+n;e.beginPath(),ai(e,r),qa(e,r),e.moveTo(c,-A),e.lineTo(t+n,0),e.lineTo(c,A),s===!0?(e.fillStyle=o||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function dj(e,t,n){const{x:r,y:a,x2:A,y2:s,centerX:o,centerY:l}=e,c=Math.atan2(s-a,A-r),u=xm(t.controlPoint,0),d={x:o+Ya(n,u.x,!1),y:l+Ya(n,u.y,!1)};return qA(d,{x:o,y:l},c)}function Sy(e,{x:t,y:n},{angle:r,adjust:a},A){!A||!A.display||(e.save(),e.translate(t,n),e.rotate(r),cp(e,0,-a,A),e.restore())}function fj(e,t,n,r){const{x:a,y:A,x2:s,y2:o,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=s4(t),h={x:a,y:A},p={x:s,y:o},m=wy(h,n,p,0),y=wy(h,n,p,1)-Qe,g=op(h,n,p,d/r),v=op(h,n,p,1-f/r),_=new Path2D;e.beginPath(),_.moveTo(g.x,g.y),_.quadraticCurveTo(n.x,n.y,v.x,v.y),e.shadowColor=l.borderShadowColor,e.stroke(_),t.path=_,t.ctx=e,Sy(e,g,{angle:m,adjust:d},c),Sy(e,v,{angle:y,adjust:f},u)}class fl extends an{inRange(t,n,r,a){const A=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return hj({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),A,s);const{x:o,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],a),d=s/2,f=r==="y"?{start:l,end:u}:{start:o,end:c},h=qA({x:t,y:n},this.getCenterPoint(a),Et(-A));return h[r]>=f.start-d-bA&&h[r]<=f.end+d+bA}getCenterPoint(t){return ri(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:A,options:s}=this;t.save(),Fm(t,this.getCenterPoint(),s.rotation),ai(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const o=qa(t,s);t.ellipse(a,A,r/2,n/2,Qe/2,0,2*Qe),t.fill(),o&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return n4(t,n,!0)}}fl.id="ellipseAnnotation";fl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Ai.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};fl.defaultRoutes={borderColor:"color",backgroundColor:"color"};fl.descriptors={label:{_fallback:!0}};function hj(e,t,n,r){const{width:a,height:A,centerX:s,centerY:o}=t,l=a/2,c=A/2;if(l<=0||c<=0)return!1;const u=Et(n||0),d=r/2||0,f=Math.cos(u),h=Math.sin(u),p=Math.pow(f*(e.x-s)+h*(e.y-o),2),m=Math.pow(h*(e.x-s)-f*(e.y-o),2);return p/Math.pow(l+d,2)+m/Math.pow(c+d,2)<=1.0001}class Ed extends an{inRange(t,n,r,a){const{x:A,y:s,x2:o,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],a),u=this.options.borderWidth;if(r!=="x"&&r!=="y")return fz({x:t,y:n},this.getCenterPoint(a),c/2,u);const d=u/2,f=r==="y"?{start:s,end:l,value:n}:{start:A,end:o,value:t};return f.value>=f.start-d&&f.value<=f.end+d}getCenterPoint(t){return ri(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,ai(t,n);const a=qa(t,n);wz(t,this,this.centerX,this.centerY),a&&!Cd(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=t4(t,n);return r.initProperties=cl(t,r,n,!0),r}}Ed.id="pointAnnotation";Ed.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Ed.defaultRoutes={borderColor:"color",backgroundColor:"color"};class kd extends an{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&gj(this.elements,t,n,a);const A=qA({x:t,y:n},this.getCenterPoint(a),Et(-this.options.rotation)),s=this.elements.map(c=>r==="y"?c.bY:c.bX),o=Math.min(...s),l=Math.max(...s);return A[r]>=o&&A[r]<=l}getCenterPoint(t){return ri(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,ai(t,r);const a=qa(t,r);let A=!0;for(const s of n)A?(t.moveTo(s.x,s.y),A=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=t4(t,n),{sides:a,rotation:A}=n,s=[],o=2*Qe/a;let l=A*Pg;for(let c=0;c<a;c++,l+=o){const u=pj(r,n,l);u.initProperties=cl(t,r,n),s.push(u)}return r.elements=s,r}}kd.id="polygonAnnotation";kd.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};kd.defaultRoutes={borderColor:"color",backgroundColor:"color"};function pj({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const A=r/2,s=Math.sin(a),o=Math.cos(a),l={x:e+s*n,y:t-o*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+A),bY:t-o*(n+A)}}}function gj(e,t,n,r){let a=!1,A=e[e.length-1].getProps(["bX","bY"],r);for(const s of e){const o=s.getProps(["bX","bY"],r);o.bY>n!=A.bY>n&&t<(A.bX-o.bX)*(n-o.bY)/(A.bY-o.bY)+o.bX&&(a=!a),A=o}return a}const Oa={box:Ai,ellipse:fl,label:ul,line:dl,point:Ed,polygon:kd};Object.keys(Oa).forEach(e=>{dt.describe(`elements.${Oa[e].id}`,{_fallback:"plugins.annotation.common"})});const mj={update:Object.assign},vj=Qm.concat(Eu),xy=(e,t)=>ve(t)?dp(e,t):e,up=e=>e==="color"||e==="font";function Dm(e="line"){return Oa[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function Bj(e,t,n,r){const a=wj(e,n.animations,r),A=t.annotations,s=Cj(t.elements,A);for(let o=0;o<A.length;o++){const l=A[o],c=i4(s,o,l.type),u=l.setContext(_j(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=yj(d),"elements"in d&&(bj(c,d.elements,u,a),delete d.elements),vn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=o4(u),a.update(c,d)}}function yj(e){return isNaN(e.x)||isNaN(e.y)}function wj(e,t,n){return n==="reset"||n==="none"||n==="resize"?mj:new jg(e,t)}function bj(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let A=0;A<t.length;A++){const s=t[A],o=s.properties,l=i4(a,A,s.type,s.initProperties),c=n[s.optionScope].override(s);o.options=o4(c),r.update(l,o)}}function i4(e,t,n,r){const a=Oa[Dm(n)];let A=e[t];return(!A||!(A instanceof a))&&(A=e[t]=new a,Object.assign(A,r)),A}function o4(e){const t=Oa[Dm(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,dp(e,t.defaults),dp(e,t.defaultRoutes));for(const r of vj)n[r]=e[r];return n}function dp(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],A=e[r];up(r)&&Oe(A)?n[r]=A.map(s=>xy(s,a)):n[r]=xy(A,a)}return n}function _j(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function Cj(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var Ej="2.2.1";const ga=new Map,kj=Qm.concat(Eu);var XA={id:"annotation",version:Ej,beforeRegister(){hz("chart.js","3.7",Le.version)},afterRegister(){Le.register(Oa)},afterUnregister(){Le.unregister(Oa)},beforeInit(e){ga.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=ga.get(e),a=r.annotations=[];let A=n.annotations;ve(A)?Object.keys(A).forEach(s=>{const o=A[s];ve(o)&&(o.id=s,a.push(o))}):Oe(A)&&a.push(...A),Hz(a,e.scales)},afterDataLimits(e,t){const n=ga.get(e);Pz(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=ga.get(e);Dz(e,r,n),Bj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),Nz(e,r,n)},beforeDatasetsDraw(e,t,n){ac(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){ac(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){ac(e,"beforeDraw",n.clip)},afterDraw(e,t,n){ac(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=ga.get(e);Lz(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){ga.delete(e)},_getState(e){return ga.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!kj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Oa[Dm(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:up,_fallback:!0},_indexable:up}},additionalOptionScopes:[""]};function ac(e,t,n){const{ctx:r,chartArea:a}=e,A=ga.get(e);n&&tl(r,a);const s=Sj(A.visibleElements,t).sort((o,l)=>o.element.options.z-l.element.options.z);for(const o of s)xj(r,a,A,o);n&&nl(r)}function Sj(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function xj(e,t,n,r){const a=r.element;r.main?(hy(n,a,"beforeDraw"),a.draw(e,t),hy(n,a,"afterDraw")):a.draw(e,t)}const hl=i.defineComponent({__name:"ManaCurveChart",props:PV,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},A=i.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),s=i.computed(()=>{if(console.log(t.deck),t.deck)return t.deck;if(console.log(t.deckCode),t.deckCode)return St(t.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),o=i.computed(()=>{const u={},d=Ou(s.value);for(const f of d)u[f]=A.value.map(()=>0);for(const f in s.value){const h=jt().cardJsonObject[f];if(h===void 0)continue;const p=Np(h,d);if(h.cost>10){u[p][10]+=s.value[f];continue}u[p][h.cost]+=s.value[f]}return u}),l=i.computed(()=>{const u=[];for(let d=0;d<Object.keys(o.value).length;d++){const f=Object.keys(o.value)[d];u.push({backgroundColor:U2(f),data:o.value[f],borderRadius:a,borderSkipped:!1,label:Mp(f),barPercentage:.5},{backgroundColor:"transparent",data:o.value[f].map(h=>h>0?1:0)})}return{labels:A.value,datasets:u}}),c={responsive:!0,animation:t.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:t.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":n("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${n("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:t.dataLabelsOffset,formatter(u,d){let f=0;for(let h=0;h<d.chart.data.datasets.length;h++)h%2!==1&&(f+=d.chart.data.datasets[h].data[d.dataIndex]);return f||""},display(u){return t.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:t.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:t.paddingTop}}};return(u,d)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Fj=i.defineComponent({__name:"DeckSidePanel",props:qD,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filters),A=i.computed(()=>wE(n.deckcode)),s=i.computed(()=>Object.keys(St(n.deckcode)).filter(l=>Qs(jt().cardJsonObject[l])));i.watch(a,()=>{t("update:filters",a)});function o(){for(const[,l]of Object.entries(a))l.splice(0)}return(l,c)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":o},{default:i.withCtx(()=>[i.createVNode(Zu,{"card-codes":s.value,regions:A.value},null,8,["card-codes","regions"]),i.createVNode(mt,{title:i.unref(r)("general.regions")},{default:i.withCtx(()=>[i.createVNode(xg,{"deck-code":n.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(mt,{title:i.unref(r)("general.manaCurve")},{default:i.withCtx(()=>[i.createVNode(hl,{class:"mana-curve-chart","deck-code":n.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(mt,{title:i.unref(r)("general.type")},{default:i.withCtx(()=>[i.createVNode(vu,{class:"side-panel-chart","deck-code":n.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(mt,{title:i.unref(r)("general.rarity")},{default:i.withCtx(()=>[i.createVNode(vu,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(Xs,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>a.sampleSizeFilters=u)},null,8,["filter-array"]),i.createVNode($A,{"filter-array":a.timeFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>a.timeFilters=u)},null,8,["filter-array"]),i.createVNode(Js,{"filter-array":a.serverFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>a.serverFilters=u)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const l4=M(Fj,[["__scopeId","data-v-804ec9d7"]]),Ij={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},pl=e=>(i.pushScopeId("data-v-380c3647"),e=e(),i.popScopeId(),e),Uj={class:"deck-summary"},Qj={class:"deck-cards"},Tj={class:"champions-landmarks column"},Dj={key:0,class:"type"},Lj={class:"type-heading"},Oj=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),Mj={class:"title"},Nj={class:"type-quantity"},Pj={class:"card-container"},Hj={key:1,class:"type column"},Rj={class:"type-heading"},Vj=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),Kj={class:"title"},$j={class:"type-quantity"},Wj={class:"card-container"},Gj={key:2,class:"type column"},zj={class:"type-heading"},jj=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),Yj={class:"title"},qj={class:"type-quantity"},Xj={class:"card-container"},Jj={key:0,class:"type column"},Zj={class:"type-heading"},eY=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),tY={class:"title"},nY={class:"type-quantity"},rY={class:"card-container"},aY={key:1,class:"type"},AY={class:"type-heading"},sY=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),iY={class:"title"},oY={class:"type-quantity"},lY={class:"card-container"},cY=i.defineComponent({__name:"DeckSummary",props:Ij,setup(e){const t=e,n=i.computed(()=>t.cardsProp?t.cardsProp:rn(t.deck)),r=i.computed(()=>Mu(n.value)),a=i.computed(()=>n.value.filter(u=>Qs(u))),A=i.computed(()=>n.value.filter(u=>u.typeRef==="Unit"&&u.supertype==="")),s=i.computed(()=>n.value.filter(u=>u.typeRef==="Spell")),o=i.computed(()=>n.value.filter(u=>u.typeRef==="Landmark")),l=i.computed(()=>n.value.filter(u=>u.typeRef==="Equipment"));function c(u){return u.reduce((d,f)=>d+t.deck[f.cardCode],0)}return(u,d)=>{const f=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",Uj,[i.createElementVNode("div",Qj,[i.createElementVNode("div",Tj,[a.value.length>0?(i.openBlock(),i.createElementBlock("div",Dj,[i.createElementVNode("div",Lj,[Oj,i.withDirectives(i.createElementVNode("div",Mj,null,512),[[f,"general.champions"]]),i.createElementVNode("p",Nj,i.toDisplayString(c(a.value)),1)]),i.createElementVNode("div",Pj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0),o.value.length>0?(i.openBlock(),i.createElementBlock("div",Hj,[i.createElementVNode("div",Rj,[Vj,i.withDirectives(i.createElementVNode("div",Kj,null,512),[[f,"general.landmarks"]]),i.createElementVNode("p",$j,i.toDisplayString(c(o.value)),1)]),i.createElementVNode("div",Wj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0),l.value.length>0?(i.openBlock(),i.createElementBlock("div",Gj,[i.createElementVNode("div",zj,[jj,i.withDirectives(i.createElementVNode("div",Yj,null,512),[[f,"general.equipments"]]),i.createElementVNode("p",qj,i.toDisplayString(c(l.value)),1)]),i.createElementVNode("div",Xj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0)]),A.value.length>0?(i.openBlock(),i.createElementBlock("div",Jj,[i.createElementVNode("div",Zj,[eY,i.withDirectives(i.createElementVNode("div",tY,null,512),[[f,"general.followers"]]),i.createElementVNode("p",nY,i.toDisplayString(c(A.value)),1)]),i.createElementVNode("div",rY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0),s.value.length>0?(i.openBlock(),i.createElementBlock("div",aY,[i.createElementVNode("div",AY,[sY,i.withDirectives(i.createElementVNode("div",iY,null,512),[[f,"general.spells"]]),i.createElementVNode("p",oY,i.toDisplayString(c(s.value)),1)]),i.createElementVNode("div",lY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0)])])}}});const Sd=M(cY,[["__scopeId","data-v-380c3647"]]),uY={deckCode:{type:String,required:!0,default:""}},xd=i.defineComponent({__name:"CopyDeckButton",props:uY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);let a,A;i.onMounted(()=>{A=At(r.value,{content:n("deck.copyDeckCode"),arrow:!0}),a=At(r.value,{content:n("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function s(){_E(t.deckCode),A.hide(),a.show()}return(o,l)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s},[i.createVNode(i.unref(Ue),{icon:"copy",class:"icon"})],512))}}),dY={deckId:{type:Number,required:!0,default:-1}},Lm=i.defineComponent({__name:"DeleteDeckButton",props:dY,setup(e){const{t}=re(),n=i.ref(null);return i.onMounted(()=>{At(n.value,{content:t("deck.deleteDeck"),arrow:!0})}),(r,a)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[i.createVNode(i.unref(Ue),{icon:"trash-alt",class:"icon"})],512))}}),Om=i.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=re(),n=i.ref(null);return i.onMounted(()=>{At(n.value,{content:t("deck.editDeckName"),arrow:!0})}),(r,a)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[i.createVNode(i.unref(Ue),{icon:"pencil-alt",class:"icon"})],512))}}),fY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},hY=i.defineComponent({__name:"OpenArchetypePageButton",props:fY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);return i.onMounted(()=>{At(r.value,{content:n("deck.openArchetypePage"),arrow:!0})}),(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(s,{to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},i.toDisplayString(i.unref(n)("archetype.abbreviation")),513)]),_:1},8,["to"])}}});const Mm=M(hY,[["__scopeId","data-v-b921ee68"]]),pY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},Nm=i.defineComponent({__name:"OpenInDeckBuilderButton",props:pY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);return i.onMounted(()=>{At(r.value,{content:n("deck.openInDeckBuilder"),arrow:!0})}),(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(s,{to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(i.unref(Ue),{icon:"hammer",class:"icon"})],512)]),_:1},8,["to"])}}}),gY={deck:{type:Object,required:!0,default:{}}},mY={deck:{type:Object,required:!0,default:{}}},vY={class:"simulate-mulligan"},BY={class:"cards-container"},yY={class:"buttons"},wY=i.defineComponent({__name:"SimulateMulligan",props:mY,setup(e){const t=e,{t:n}=re(),r=i.computed(()=>{const c=[];for(const u in t.deck)for(let d=0;d<t.deck[u];d++)c.push(u);return c}),a=i.computed(()=>{const c=Array.from(r.value);for(const u of A.value)u!==null&&c.splice(c.indexOf(u.cardCode),1);return c}),A=i.ref([null,null,null,null]);function s(){A.value.fill(null),l()}function o(){var c;for(let u=0;u<A.value.length;u++)A.value[u]===null||!((c=A.value[u])!=null&&c.isSelected)||(A.value[u]=null);l()}function l(){for(;A.value.some(c=>c===null);)A.value[A.value.indexOf(null)]={cardCode:a.value[vE(0,a.value.length)],isSelected:!1};console.log(A.value)}return l(),(c,u)=>(i.openBlock(),i.createElementBlock("div",vY,[i.createElementVNode("div",BY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value.filter(d=>d!==null),(d,f)=>(i.openBlock(),i.createBlock(Wa,{key:d.cardCode+f,"card-code-prop":d.cardCode,"is-root":!0,style:i.normalizeStyle(d.isSelected?{opacity:.5}:null),onClick:h=>d.isSelected=!d.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),i.createElementVNode("div",yY,[i.createElementVNode("button",{class:"primary-button",onClick:s},i.toDisplayString(i.unref(n)("deck.replaceAllCards")),1),i.createElementVNode("button",{class:"primary-button",onClick:o},i.toDisplayString(i.unref(n)("deck.replaceSelectedCards")),1)])]))}});const Pm=M(wY,[["__scopeId","data-v-4f85d8dc"]]),bY={class:"simulate-mulligan-wrapper"},_Y=i.defineComponent({__name:"SimulateMulliganButton",props:gY,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),(A,s)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=o=>a.value=!0)},[i.createVNode(i.unref(Ue),{icon:"hand-paper"})],512),i.createVNode(KA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",bY,[i.createVNode(Pm,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const Fd=M(_Y,[["__scopeId","data-v-63aa9043"]]),CY={deckIsPrivate:{type:Boolean,required:!0,default:!0}},Hm=i.defineComponent({__name:"UpdateDeckPrivacyButton",props:CY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);let a;return i.onMounted(()=>{a=At(r.value,{content:`${n("deck.updatePrivacy")}:
852
+ */const cy={modes:{point(e,t){return $c(e,t,{intersect:!0})},nearest(e,t,n){return cz(e,t,n)},x(e,t,n){return $c(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return $c(e,t,{intersect:n.intersect,axis:"y"})}}};function km(e,t,n){return(cy.modes[n.mode]||cy.modes.nearest)(e,t,n)}function oz(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function lz(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function $c(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):oz(r,t,n.axis))}function cz(e,t,n){let r=Number.POSITIVE_INFINITY;return $c(e,t,n).reduce((a,A)=>{const s=A.getCenterPoint(),o=lz(t,s,n.axis),l=Hs(t,o);return l<r?(a=[A],r=l):l===r&&a.push(A),a},[]).sort((a,A)=>a._index-A._index).slice(0,1)}const uz=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,bA=.001,_d=(e,t,n)=>Math.min(n,Math.max(t,e));function dz(e,t,n){for(const r of Object.keys(e))e[r]=_d(e[r],t,n);return e}function fz(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function WC(e,{x:t,y:n,x2:r,y2:a},A,s){const o=s/2,l=e.x>=t-o-bA&&e.x<=r+o+bA,c=e.y>=n-o-bA&&e.y<=a+o+bA;return A==="x"?l:(A==="y"||l)&&c}function ri(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function hz(e,t,n,r=!0){const a=n.split(".");let A=0;for(const s of t.split(".")){const o=a[A++];if(parseInt(s,10)<parseInt(o,10))break;if(uz(o,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const GC=e=>typeof e=="string"&&e.endsWith("%"),zC=e=>parseFloat(e)/100,jC=e=>_d(zC(e),0,1);function Sm(e,t){return t==="start"?0:t==="end"?e:GC(t)?jC(t)*e:e/2}function Ya(e,t,n=!0){return typeof t=="number"?t:GC(t)?(n?jC(t):zC(t))*e:e}function pz(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function xm(e,t="center"){return ve(e)?{x:de(e.x,t),y:de(e.y,t)}:(e=de(e,t),{x:e,y:e})}function YC(e){return e&&(vn(e.xValue)||vn(e.yValue))}function cl(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return XC(t,r)}else return;return gz(t,r,He(a,[{chart:e,properties:t,options:n}]))}function qC(e,t,n){let r=!1;return t.forEach(a=>{mn(e[a])?(r=!0,n[a]=e[a]):vn(n[a])&&delete n[a]}),r}function XC({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function gz(e,t,n){if(n===!0)return XC(e,t);if(ve(n))return n}const Uf=new Map,mz=e=>isNaN(e)||e<=0,vz=e=>e.reduce(function(t,n){return t+=n.string,t},"");function Cd(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function Fm(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(Et(r)),e.translate(-t,-n))}function qa(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function ai(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function Im(e,t){const n=t.content;if(Cd(n))return{width:Ya(n.width,t.width),height:Ya(n.height,t.height)};const r=t.font,a=Oe(r)?r.map(l=>ft(l)):[ft(r)],A=t.textStrokeWidth,s=Oe(n)?n:[n],o=s.join()+vz(a)+A+(e._measureText?"-spriting":"");return Uf.has(o)||Uf.set(o,_z(e,s,a,A)),Uf.get(o)}function JC(e,t,n){const{x:r,y:a,width:A,height:s}=t;e.save(),ai(e,n);const o=qa(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),Rs(e,{x:r,y:a,w:A,h:s,radius:dz(Da(n.borderRadius),0,Math.min(A,s)/2)}),e.closePath(),e.fill(),o&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function Bz(e,t,n){const r=n.content;if(Cd(r)){e.save(),e.globalAlpha=kz(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Oe(r)?r:[r],A=n.font,s=Oe(A)?A.map(d=>ft(d)):[ft(A)],o=n.color,l=Oe(o)?o:[o],c=pz(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,yz(e,n)&&Cz(e,{x:c,y:u},a,s),Ez(e,{x:c,y:u},a,{fonts:s,colors:l}),e.restore()}function yz(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function wz(e,t,n,r){const{radius:a,options:A}=t,s=A.pointStyle,o=A.rotation;let l=(o||0)*Pg;if(Cd(s)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}mz(a)||bz(e,{x:n,y:r,radius:a,rotation:o,style:s,rad:l})}function bz(e,{x:t,y:n,radius:r,rotation:a,style:A,rad:s}){let o,l,c,u;switch(e.beginPath(),A){default:e.arc(t,n,r,0,Xe),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=cu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=cu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":u=r*.516,c=r-u,o=Math.cos(s+Mn)*c,l=Math.sin(s+Mn)*c,e.arc(t-o,n-l,u,s-Qe,s-Je),e.arc(t+l,n-o,u,s-Je,s),e.arc(t+o,n+l,u,s,s+Je),e.arc(t-l,n+o,u,s+Je,s+Qe),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}s+=Mn;case"rectRot":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+l,n-o),e.lineTo(t+o,n+l),e.lineTo(t-l,n+o),e.closePath();break;case"crossRot":s+=Mn;case"cross":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l),e.moveTo(t+l,n-o),e.lineTo(t-l,n+o);break;case"star":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l),e.moveTo(t+l,n-o),e.lineTo(t-l,n+o),s+=Mn,o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l),e.moveTo(t+l,n-o),e.lineTo(t-l,n+o);break;case"line":o=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-o,n-l),e.lineTo(t+o,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function _z(e,t,n,r){e.save();const a=t.length;let A=0,s=r;for(let o=0;o<a;o++){const l=n[Math.min(o,n.length-1)];e.font=l.string;const c=t[o];A=Math.max(A,e.measureText(c).width+r),s+=l.lineHeight}return e.restore(),{width:A,height:s}}function Cz(e,{x:t,y:n},r,a){e.beginPath();let A=0;r.forEach(function(s,o){const l=a[Math.min(o,a.length-1)],c=l.lineHeight;e.font=l.string,e.strokeText(s,t,n+c/2+A),A+=c}),e.stroke()}function Ez(e,{x:t,y:n},r,{fonts:a,colors:A}){let s=0;r.forEach(function(o,l){const c=A[Math.min(l,A.length-1)],u=a[Math.min(l,a.length-1)],d=u.lineHeight;e.beginPath(),e.font=u.string,e.fillStyle=c,e.fillText(o,t,n+d/2+s),s+=d,e.fill()})}function kz(e,t){const n=za(e)?e:t;return za(n)?_d(n,0,1):1}const uy={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function zs(e,t,n){return t=typeof t=="number"?t:e.parse(t),ut(t)?e.getPixelForValue(t):n}function HA(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),A=Object.values(e).filter(s=>s.axis&&s.axis===a);return A.length?A[0].id:a}function ZC(e,t){if(e){const n=e.options.reverse,r=zs(e,t.min,n?t.end:t.start),a=zs(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function e4(e,t){const{chartArea:n,scales:r}=e,a=r[HA(r,t,"xScaleID")],A=r[HA(r,t,"yScaleID")];let s=n.width/2,o=n.height/2;return a&&(s=zs(a,t.xValue,a.left+a.width/2)),A&&(o=zs(A,t.yValue,A.top+A.height/2)),{x:s,y:o}}function Um(e,t){const n=e.scales,r=n[HA(n,t,"xScaleID")],a=n[HA(n,t,"yScaleID")];if(!r&&!a)return{};let{left:A,right:s}=r||e.chartArea,{top:o,bottom:l}=a||e.chartArea;const c=dy(r,{min:t.xMin,max:t.xMax,start:A,end:s});A=c.start,s=c.end;const u=dy(a,{min:t.yMin,max:t.yMax,start:l,end:o});return o=u.start,l=u.end,{x:A,y:o,x2:s,y2:l,width:s-A,height:l-o,centerX:A+(s-A)/2,centerY:o+(l-o)/2}}function t4(e,t){if(!YC(t)){const n=Um(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,A=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:A-r,y:s-r,x2:A+r,y2:s+r,centerX:A,centerY:s,width:a,height:a,radius:r}}return xz(e,t)}function Sz(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],A={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?Fz(a,A,t):Iz(n,A,t),A}function n4(e,t,n){const r=Um(e,t);return r.initProperties=cl(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:Tz(e,r,t),initProperties:r.initProperties}],r}function xz(e,t){const n=e4(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function dy(e,t){const n=ZC(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Fz(e,t,n){const r=zs(e,n.value,NaN),a=zs(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function Iz(e,t,n){for(const r of Object.keys(uy)){const a=e[HA(e,n,r)];if(a){const{min:A,max:s,start:o,end:l,startProp:c,endProp:u}=uy[r],d=ZC(a,{min:n[A],max:n[s],start:a[o],end:a[l]});t[c]=d.start,t[u]=d.end}}}function Uz({properties:e,options:t},n,r,a){const{x:A,x2:s,width:o}=e;return r4({start:A,end:s,size:o,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function Qz({properties:e,options:t},n,r,a){const{y:A,y2:s,height:o}=e;return r4({start:A,end:s,size:o,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function r4(e,t){const{start:n,end:r,borderWidth:a}=e,{position:A,padding:{start:s,end:o},adjust:l}=t,c=r-a-n-s-o-t.size;return n+a/2+l+Sm(c,A)}function Tz(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=xm(r.position),A=_t(r.padding),s=Im(e.ctx,r),o=Uz({properties:t,options:n},s,a,A),l=Qz({properties:t,options:n},s,a,A),c=s.width+A.width,u=s.height+A.height;return{x:o,y:l,x2:o+c,y2:l+u,width:c,height:u,centerX:o+c/2,centerY:l+u/2,rotation:r.rotation}}function qA(e,t,n){const r=Math.cos(n),a=Math.sin(n),A=t.x,s=t.y;return{x:A+r*(e.x-A)-a*(e.y-s),y:s+a*(e.x-A)+r*(e.y-s)}}const sp=["enter","leave"],Qm=sp.concat("click");function Dz(e,t,n){t.listened=qC(n,Qm,t.listeners),t.moveListened=!1,t._getElements=km,sp.forEach(r=>{mn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&mn(r.click)&&(t.listened=!0),t.moveListened||sp.forEach(a=>{mn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function Lz(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return Oz(e,t,n);case"click":return Mz(e,t,n)}}function Oz(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=km(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const A={state:e,event:t};let s=fy(A,"leave",a,r);return fy(A,"enter",r,a)||s}function fy({state:e,event:t},n,r,a){let A;for(const s of r)a.indexOf(s)<0&&(A=a4(s.options[n]||e.listeners[n],s,t)||A);return A}function Mz(e,t,n){const r=e.listeners,a=km(e,t,n.interaction);let A;for(const s of a)A=a4(s.options.click||r.click,s,t)||A;return A}function a4(e,t,n){return He(e,[t.$context,n])===!0}const Eu=["afterDraw","beforeDraw"];function Nz(e,t,n){const r=t.visibleElements;t.hooked=qC(n,Eu,t.hooks),t.hooked||r.forEach(a=>{t.hooked||Eu.forEach(A=>{mn(a.options[A])&&(t.hooked=!0)})})}function hy(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return He(r,[t.$context])}}function Pz(e,t,n){const r=$z(e.scales,t,n);let a=py(t,r,"min","suggestedMin");a=py(t,r,"max","suggestedMax")||a,a&&mn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Hz(e,t){for(const n of e)Vz(n,t)}function py(e,t,n,r){if(ut(t[n])&&!Rz(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function Rz(e,t,n){return vn(e[t])||vn(e[n])}function Vz(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=HA(t,e,n);r&&!t[r]&&Kz(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function Kz(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(vn(e[n+r]))return!0;return!1}function $z(e,t,n){const r=t.axis,a=t.id,A=r+"ScaleID",s={min:de(t.min,Number.NEGATIVE_INFINITY),max:de(t.max,Number.POSITIVE_INFINITY)};for(const o of n)o.scaleID===a?gy(o,t,["value","endValue"],s):HA(e,o,A)===a&&gy(o,t,[r+"Min",r+"Max",r+"Value"],s);return s}function gy(e,t,n,r){for(const a of n){const A=e[a];if(vn(A)){const s=t.parse(A);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class Ai extends an{inRange(t,n,r,a){const{x:A,y:s}=qA({x:t,y:n},this.getCenterPoint(a),Et(-this.options.rotation));return WC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ri(this,t)}draw(t){t.save(),Fm(t,this.getCenterPoint(),this.options.rotation),JC(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return n4(t,n)}}Ai.id="boxAnnotation";Ai.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Ai.defaultRoutes={borderColor:"color",backgroundColor:"color"};Ai.descriptors={label:{_fallback:!0}};const A4=["left","bottom","top","right"];class ul extends an{inRange(t,n,r,a){const{x:A,y:s}=qA({x:t,y:n},this.getCenterPoint(a),Et(-this.rotation));return WC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ri(this,t)}draw(t){const n=this.options,r=!vn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),Fm(t,this.getCenterPoint(),this.rotation),Gz(t,this),JC(t,this,n),Bz(t,Zz(this),n),t.restore())}resolveElementProperties(t,n){let r;if(YC(n))r=e4(t,n);else{const{centerX:o,centerY:l}=Um(t,n);r={x:o,y:l}}const a=_t(n.padding),A=Im(t.ctx,n),s=Wz(r,A,n,a);return{initProperties:cl(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}ul.id="labelAnnotation";ul.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};ul.defaultRoutes={borderColor:"color"};function Wz(e,t,n,r){const a=t.width+r.width+n.borderWidth,A=t.height+r.height+n.borderWidth,s=xm(n.position,"center"),o=my(e.x,a,n.xAdjust,s.x),l=my(e.y,A,n.yAdjust,s.y);return{x:o,y:l,x2:o+a,y2:l+A,width:a,height:A,centerX:o+a/2,centerY:l+A/2}}function my(e,t,n=0,r){return e-Sm(t,r)+n}function Gz(e,t){const{pointX:n,pointY:r,options:a}=t,A=a.callout,s=A&&A.display&&Xz(t,A);if(!s||ej(t,A,s))return;if(e.save(),e.beginPath(),!qa(e,A))return e.restore();const{separatorStart:l,separatorEnd:c}=zz(t,s),{sideStart:u,sideEnd:d}=Yz(t,s,l);(A.margin>0||a.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(c.x,c.y)),e.moveTo(u.x,u.y),e.lineTo(d.x,d.y);const f=qA({x:n,y:r},t.getCenterPoint(),Et(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function zz(e,t){const{x:n,y:r,x2:a,y2:A}=e,s=jz(e,t);let o,l;return t==="left"||t==="right"?(o={x:n+s,y:r},l={x:o.x,y:A}):(o={x:n,y:r+s},l={x:a,y:o.y}),{separatorStart:o,separatorEnd:l}}function jz(e,t){const{width:n,height:r,options:a}=e,A=a.callout.margin+a.borderWidth/2;return t==="right"?n+A:t==="bottom"?r+A:-A}function Yz(e,t,n){const{y:r,width:a,height:A,options:s}=e,o=s.callout.start,l=qz(t,s.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+Ya(A,o)},u={x:c.x+l,y:c.y}):(c={x:n.x+Ya(a,o),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function qz(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function Xz(e,t){const n=t.position;return A4.includes(n)?n:Jz(e,t)}function Jz(e,t){const{x:n,y:r,x2:a,y2:A,width:s,height:o,pointX:l,pointY:c,centerX:u,centerY:d,rotation:f}=e,h={x:u,y:d},p=t.start,m=Ya(s,p),y=Ya(o,p),g=[n,n+m,n+m,a],v=[r+y,A,r,A],_=[];for(let B=0;B<4;B++){const w=qA({x:g[B],y:v[B]},h,Et(f));_.push({position:A4[B],distance:Hs(w,{x:l,y:c})})}return _.sort((B,w)=>B.distance-w.distance)[0].position}function Zz({x:e,y:t,width:n,height:r,options:a}){const A=a.borderWidth/2,s=_t(a.padding);return{x:e+s.left+A,y:t+s.top+A,width:n-s.left-s.right-a.borderWidth,height:r-s.top-s.bottom-a.borderWidth}}function ej(e,t,n){const{pointX:r,pointY:a}=e,A=t.margin;let s=r,o=a;return n==="left"?s+=A:n==="right"?s-=A:n==="top"?o+=A:n==="bottom"&&(o-=A),e.inRange(s,o)}const Tm=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),ip=(e,t,n)=>Tm(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,vy=(e,t,n)=>Tm(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Qi=e=>e*e,tj=(e,t,{x:n,y:r,x2:a,y2:A},s)=>s==="y"?{start:Math.min(r,A),end:Math.max(r,A),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},By=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,op=(e,t,n,r)=>({x:By(e.x,t.x,n.x,r),y:By(e.y,t.y,n.y,r)}),yy=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),wy=(e,t,n,r)=>-Math.atan2(yy(e.x,t.x,n.x,r),yy(e.y,t.y,n.y,r))+.5*Qe;class dl extends an{inRange(t,n,r,a){const A=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const s={mouseX:t,mouseY:n},{path:o,ctx:l}=this;if(o){qa(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,h=l.isPointInStroke(o,d,f)||lp(this,s,a);return l.restore(),h}const c=Qi(A);return Aj(this,s,c,a)||lp(this,s,a)}return nj(this,{mouseX:t,mouseY:n},r,{hBorderWidth:A,useFinalPosition:a})}getCenterPoint(t){return ri(this,t)}draw(t){const{x:n,y:r,x2:a,y2:A,cp:s,options:o}=this;if(t.save(),!qa(t,o))return t.restore();ai(t,o);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(A-r,2));if(o.curve&&s)return fj(t,this,s,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=s4(this),h=Math.atan2(A-r,a-n);t.translate(n,r),t.rotate(h),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-f,0),t.shadowColor=o.borderShadowColor,t.stroke(),cp(t,0,d,c),cp(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=Sz(t,n),{x:a,y:A,x2:s,y2:o}=r,l=rj(r,t.chartArea),c=l?aj({x:a,y:A},{x:s,y:o},t.chartArea):{x:a,y:A,x2:s,y2:o,width:Math.abs(s-a),height:Math.abs(o-A)};if(c.centerX=(s+a)/2,c.centerY=(o+A)/2,c.initProperties=cl(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=dj(c,n,Hs(d,f))}const u=sj(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}dl.id="lineAnnotation";const by={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};dl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},by),fill:!1,length:12,start:Object.assign({},by),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},ul.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};dl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};dl.defaultRoutes={borderColor:"color"};function nj(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:A}){const s=tj(t,n,e.getProps(["x","y","x2","y2"],A),r);return s.value>=s.start-a&&s.value<=s.end+a||lp(e,{mouseX:t,mouseY:n},A,r)}function rj({x:e,y:t,x2:n,y2:r},{top:a,right:A,bottom:s,left:o}){return!(e<o&&n<o||e>A&&n>A||t<a&&r<a||t>s&&r>s)}function _y({x:e,y:t},n,{top:r,right:a,bottom:A,left:s}){return e<s&&(t=vy(s,{x:e,y:t},n),e=s),e>a&&(t=vy(a,{x:e,y:t},n),e=a),t<r&&(e=ip(r,{x:e,y:t},n),t=r),t>A&&(e=ip(A,{x:e,y:t},n),t=A),{x:e,y:t}}function aj(e,t,n){const{x:r,y:a}=_y(e,t,n),{x:A,y:s}=_y(t,e,n);return{x:r,y:a,x2:A,y2:s,width:Math.abs(A-r),height:Math.abs(s-a)}}function Aj(e,{mouseX:t,mouseY:n},r=bA,a){const{x:A,y:s,x2:o,y2:l}=e.getProps(["x","y","x2","y2"],a),c=o-A,u=l-s,d=Qi(c)+Qi(u),f=d===0?-1:((t-A)*c+(n-s)*u)/d;let h,p;return f<0?(h=A,p=s):f>1?(h=o,p=l):(h=A+f*c,p=s+f*u),Qi(t-h)+Qi(n-p)<=r}function lp(e,{mouseX:t,mouseY:n},r,a){const A=e.label;return A.options.display&&A.inRange(t,n,a,r)}function sj(e,t,n){const r=n.borderWidth,a=_t(n.padding),A=Im(e.ctx,n),s=A.width+a.width+r,o=A.height+a.height+r;return oj(t,n,{width:s,height:o,padding:a},e.chartArea)}function ij(e){const{x:t,y:n,x2:r,y2:a}=e,A=Math.atan2(a-n,r-t);return A>Qe/2?A-Qe:A<Qe/-2?A+Qe:A}function oj(e,t,n,r){const{width:a,height:A,padding:s}=n,{xAdjust:o,yAdjust:l}=t,c={x:e.x,y:e.y},u={x:e.x2,y:e.y2},d=t.rotation==="auto"?ij(e):Et(t.rotation),f=lj(a,A,d),h=cj(e,t,{labelSize:f,padding:s},r),p=e.cp?op(c,e.cp,u,h):Tm(c,u,h),m={size:f.w,min:r.left,max:r.right,padding:s.left},y={size:f.h,min:r.top,max:r.bottom,padding:s.top},g=Ey(p.x,m)+o,v=Ey(p.y,y)+l;return{x:g-a/2,y:v-A/2,x2:g+a/2,y2:v+A/2,centerX:g,centerY:v,pointX:p.x,pointY:p.y,width:a,height:A,rotation:ed(d)}}function lj(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function cj(e,t,n,r){let a;const A=uj(e,r);return t.position==="start"?a=Cy({w:e.x2-e.x,h:e.y2-e.y},n,t,A):t.position==="end"?a=1-Cy({w:e.x-e.x2,h:e.y-e.y2},n,t,A):a=Sm(1,t.position),a}function Cy(e,t,n,r){const{labelSize:a,padding:A}=t,s=e.w*r.dx,o=e.h*r.dy,l=s>0&&(a.w/2+A.left-r.x)/s,c=o>0&&(a.h/2+A.top-r.y)/o;return _d(Math.max(l,c),0,.25)}function uj(e,t){const{x:n,x2:r,y:a,y2:A}=e,s=Math.min(a,A)-t.top,o=Math.min(n,r)-t.left,l=t.bottom-Math.max(a,A),c=t.right-Math.max(n,r);return{x:Math.min(o,c),y:Math.min(s,l),dx:o<=c?1:-1,dy:s<=l?1:-1}}function Ey(e,t){const{size:n,min:r,max:a,padding:A}=t,s=n/2;return n>a-r?(a+r)/2:(r>=e-A-s&&(e=r+A+s),a<=e+A+s&&(e=a-A-s),e)}function s4(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:ky(e,n),endAdjust:ky(e,r)}}function ky(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,A={x:n,y:r+a};return Math.abs(ip(0,A,{x:0,y:a}))}function cp(e,t,n,r){if(!r||!r.display)return;const{length:a,width:A,fill:s,backgroundColor:o,borderColor:l}=r,c=Math.abs(t-a)+n;e.beginPath(),ai(e,r),qa(e,r),e.moveTo(c,-A),e.lineTo(t+n,0),e.lineTo(c,A),s===!0?(e.fillStyle=o||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function dj(e,t,n){const{x:r,y:a,x2:A,y2:s,centerX:o,centerY:l}=e,c=Math.atan2(s-a,A-r),u=xm(t.controlPoint,0),d={x:o+Ya(n,u.x,!1),y:l+Ya(n,u.y,!1)};return qA(d,{x:o,y:l},c)}function Sy(e,{x:t,y:n},{angle:r,adjust:a},A){!A||!A.display||(e.save(),e.translate(t,n),e.rotate(r),cp(e,0,-a,A),e.restore())}function fj(e,t,n,r){const{x:a,y:A,x2:s,y2:o,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=s4(t),h={x:a,y:A},p={x:s,y:o},m=wy(h,n,p,0),y=wy(h,n,p,1)-Qe,g=op(h,n,p,d/r),v=op(h,n,p,1-f/r),_=new Path2D;e.beginPath(),_.moveTo(g.x,g.y),_.quadraticCurveTo(n.x,n.y,v.x,v.y),e.shadowColor=l.borderShadowColor,e.stroke(_),t.path=_,t.ctx=e,Sy(e,g,{angle:m,adjust:d},c),Sy(e,v,{angle:y,adjust:f},u)}class fl extends an{inRange(t,n,r,a){const A=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return hj({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),A,s);const{x:o,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],a),d=s/2,f=r==="y"?{start:l,end:u}:{start:o,end:c},h=qA({x:t,y:n},this.getCenterPoint(a),Et(-A));return h[r]>=f.start-d-bA&&h[r]<=f.end+d+bA}getCenterPoint(t){return ri(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:A,options:s}=this;t.save(),Fm(t,this.getCenterPoint(),s.rotation),ai(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const o=qa(t,s);t.ellipse(a,A,r/2,n/2,Qe/2,0,2*Qe),t.fill(),o&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return n4(t,n,!0)}}fl.id="ellipseAnnotation";fl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Ai.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};fl.defaultRoutes={borderColor:"color",backgroundColor:"color"};fl.descriptors={label:{_fallback:!0}};function hj(e,t,n,r){const{width:a,height:A,centerX:s,centerY:o}=t,l=a/2,c=A/2;if(l<=0||c<=0)return!1;const u=Et(n||0),d=r/2||0,f=Math.cos(u),h=Math.sin(u),p=Math.pow(f*(e.x-s)+h*(e.y-o),2),m=Math.pow(h*(e.x-s)-f*(e.y-o),2);return p/Math.pow(l+d,2)+m/Math.pow(c+d,2)<=1.0001}class Ed extends an{inRange(t,n,r,a){const{x:A,y:s,x2:o,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],a),u=this.options.borderWidth;if(r!=="x"&&r!=="y")return fz({x:t,y:n},this.getCenterPoint(a),c/2,u);const d=u/2,f=r==="y"?{start:s,end:l,value:n}:{start:A,end:o,value:t};return f.value>=f.start-d&&f.value<=f.end+d}getCenterPoint(t){return ri(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,ai(t,n);const a=qa(t,n);wz(t,this,this.centerX,this.centerY),a&&!Cd(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=t4(t,n);return r.initProperties=cl(t,r,n,!0),r}}Ed.id="pointAnnotation";Ed.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Ed.defaultRoutes={borderColor:"color",backgroundColor:"color"};class kd extends an{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&gj(this.elements,t,n,a);const A=qA({x:t,y:n},this.getCenterPoint(a),Et(-this.options.rotation)),s=this.elements.map(c=>r==="y"?c.bY:c.bX),o=Math.min(...s),l=Math.max(...s);return A[r]>=o&&A[r]<=l}getCenterPoint(t){return ri(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,ai(t,r);const a=qa(t,r);let A=!0;for(const s of n)A?(t.moveTo(s.x,s.y),A=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=t4(t,n),{sides:a,rotation:A}=n,s=[],o=2*Qe/a;let l=A*Pg;for(let c=0;c<a;c++,l+=o){const u=pj(r,n,l);u.initProperties=cl(t,r,n),s.push(u)}return r.elements=s,r}}kd.id="polygonAnnotation";kd.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};kd.defaultRoutes={borderColor:"color",backgroundColor:"color"};function pj({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const A=r/2,s=Math.sin(a),o=Math.cos(a),l={x:e+s*n,y:t-o*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+A),bY:t-o*(n+A)}}}function gj(e,t,n,r){let a=!1,A=e[e.length-1].getProps(["bX","bY"],r);for(const s of e){const o=s.getProps(["bX","bY"],r);o.bY>n!=A.bY>n&&t<(A.bX-o.bX)*(n-o.bY)/(A.bY-o.bY)+o.bX&&(a=!a),A=o}return a}const Oa={box:Ai,ellipse:fl,label:ul,line:dl,point:Ed,polygon:kd};Object.keys(Oa).forEach(e=>{dt.describe(`elements.${Oa[e].id}`,{_fallback:"plugins.annotation.common"})});const mj={update:Object.assign},vj=Qm.concat(Eu),xy=(e,t)=>ve(t)?dp(e,t):e,up=e=>e==="color"||e==="font";function Dm(e="line"){return Oa[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function Bj(e,t,n,r){const a=wj(e,n.animations,r),A=t.annotations,s=Cj(t.elements,A);for(let o=0;o<A.length;o++){const l=A[o],c=i4(s,o,l.type),u=l.setContext(_j(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=yj(d),"elements"in d&&(bj(c,d.elements,u,a),delete d.elements),vn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=o4(u),a.update(c,d)}}function yj(e){return isNaN(e.x)||isNaN(e.y)}function wj(e,t,n){return n==="reset"||n==="none"||n==="resize"?mj:new jg(e,t)}function bj(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let A=0;A<t.length;A++){const s=t[A],o=s.properties,l=i4(a,A,s.type,s.initProperties),c=n[s.optionScope].override(s);o.options=o4(c),r.update(l,o)}}function i4(e,t,n,r){const a=Oa[Dm(n)];let A=e[t];return(!A||!(A instanceof a))&&(A=e[t]=new a,Object.assign(A,r)),A}function o4(e){const t=Oa[Dm(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,dp(e,t.defaults),dp(e,t.defaultRoutes));for(const r of vj)n[r]=e[r];return n}function dp(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],A=e[r];up(r)&&Oe(A)?n[r]=A.map(s=>xy(s,a)):n[r]=xy(A,a)}return n}function _j(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function Cj(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var Ej="2.2.1";const ga=new Map,kj=Qm.concat(Eu);var XA={id:"annotation",version:Ej,beforeRegister(){hz("chart.js","3.7",Le.version)},afterRegister(){Le.register(Oa)},afterUnregister(){Le.unregister(Oa)},beforeInit(e){ga.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=ga.get(e),a=r.annotations=[];let A=n.annotations;ve(A)?Object.keys(A).forEach(s=>{const o=A[s];ve(o)&&(o.id=s,a.push(o))}):Oe(A)&&a.push(...A),Hz(a,e.scales)},afterDataLimits(e,t){const n=ga.get(e);Pz(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=ga.get(e);Dz(e,r,n),Bj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),Nz(e,r,n)},beforeDatasetsDraw(e,t,n){ac(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){ac(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){ac(e,"beforeDraw",n.clip)},afterDraw(e,t,n){ac(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=ga.get(e);Lz(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){ga.delete(e)},_getState(e){return ga.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!kj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Oa[Dm(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:up,_fallback:!0},_indexable:up}},additionalOptionScopes:[""]};function ac(e,t,n){const{ctx:r,chartArea:a}=e,A=ga.get(e);n&&tl(r,a);const s=Sj(A.visibleElements,t).sort((o,l)=>o.element.options.z-l.element.options.z);for(const o of s)xj(r,a,A,o);n&&nl(r)}function Sj(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function xj(e,t,n,r){const a=r.element;r.main?(hy(n,a,"beforeDraw"),a.draw(e,t),hy(n,a,"afterDraw")):a.draw(e,t)}const hl=i.defineComponent({__name:"ManaCurveChart",props:PV,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},A=i.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),s=i.computed(()=>{if(console.log(t.deck),t.deck)return t.deck;if(console.log(t.deckCode),t.deckCode)return St(t.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),o=i.computed(()=>{const u={},d=Ou(s.value);for(const f of d)u[f]=A.value.map(()=>0);for(const f in s.value){const h=jt().cardJsonObject[f];if(h===void 0)continue;const p=Np(h,d);if(h.cost>10){u[p][10]+=s.value[f];continue}u[p][h.cost]+=s.value[f]}return u}),l=i.computed(()=>{const u=[];for(let d=0;d<Object.keys(o.value).length;d++){const f=Object.keys(o.value)[d];u.push({backgroundColor:U2(f),data:o.value[f],borderRadius:a,borderSkipped:!1,label:Mp(f),barPercentage:.5},{backgroundColor:"transparent",data:o.value[f].map(h=>h>0?1:0)})}return{labels:A.value,datasets:u}}),c={responsive:!0,animation:t.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:t.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":n("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${n("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:t.dataLabelsOffset,formatter(u,d){let f=0;for(let h=0;h<d.chart.data.datasets.length;h++)h%2!==1&&(f+=d.chart.data.datasets[h].data[d.dataIndex]);return f||""},display(u){return t.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:t.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:t.paddingTop}}};return(u,d)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Fj=i.defineComponent({__name:"DeckSidePanel",props:qD,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.reactive(n.filters),A=i.computed(()=>wE(n.deckcode)),s=i.computed(()=>Object.keys(St(n.deckcode)).filter(l=>Qs(jt().cardJsonObject[l])));i.watch(a,()=>{t("update:filters",a)});function o(){for(const[,l]of Object.entries(a))l.splice(0)}return(l,c)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":o},{default:i.withCtx(()=>[i.createVNode(Zu,{"card-codes":s.value,regions:A.value},null,8,["card-codes","regions"]),i.createVNode(mt,{title:i.unref(r)("general.regions")},{default:i.withCtx(()=>[i.createVNode(xg,{"deck-code":n.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(mt,{title:i.unref(r)("general.manaCurve")},{default:i.withCtx(()=>[i.createVNode(hl,{class:"mana-curve-chart","deck-code":n.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(mt,{title:i.unref(r)("general.type")},{default:i.withCtx(()=>[i.createVNode(vu,{class:"side-panel-chart","deck-code":n.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(mt,{title:i.unref(r)("general.rarity")},{default:i.withCtx(()=>[i.createVNode(vu,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(Xs,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>a.sampleSizeFilters=u)},null,8,["filter-array"]),i.createVNode($A,{"filter-array":a.timeFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>a.timeFilters=u)},null,8,["filter-array"]),i.createVNode(Js,{"filter-array":a.serverFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>a.serverFilters=u)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const l4=M(Fj,[["__scopeId","data-v-804ec9d7"]]),Ij={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},pl=e=>(i.pushScopeId("data-v-380c3647"),e=e(),i.popScopeId(),e),Uj={class:"deck-summary"},Qj={class:"deck-cards"},Tj={class:"champions-landmarks column"},Dj={key:0,class:"type"},Lj={class:"type-heading"},Oj=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),Mj={class:"title"},Nj={class:"type-quantity"},Pj={class:"card-container"},Hj={key:1,class:"type column"},Rj={class:"type-heading"},Vj=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),Kj={class:"title"},$j={class:"type-quantity"},Wj={class:"card-container"},Gj={key:2,class:"type column"},zj={class:"type-heading"},jj=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),Yj={class:"title"},qj={class:"type-quantity"},Xj={class:"card-container"},Jj={key:0,class:"type column"},Zj={class:"type-heading"},eY=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),tY={class:"title"},nY={class:"type-quantity"},rY={class:"card-container"},aY={key:1,class:"type"},AY={class:"type-heading"},sY=pl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),iY={class:"title"},oY={class:"type-quantity"},lY={class:"card-container"},cY=i.defineComponent({__name:"DeckSummary",props:Ij,setup(e){const t=e,n=i.computed(()=>t.cardsProp?t.cardsProp:rn(t.deck)),r=i.computed(()=>Mu(n.value)),a=i.computed(()=>n.value.filter(u=>Qs(u))),A=i.computed(()=>n.value.filter(u=>u.typeRef==="Unit"&&u.supertype==="")),s=i.computed(()=>n.value.filter(u=>u.typeRef==="Spell")),o=i.computed(()=>n.value.filter(u=>u.typeRef==="Landmark")),l=i.computed(()=>n.value.filter(u=>u.typeRef==="Equipment"));function c(u){return u.reduce((d,f)=>d+t.deck[f.cardCode],0)}return(u,d)=>{const f=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",Uj,[i.createElementVNode("div",Qj,[i.createElementVNode("div",Tj,[a.value.length>0?(i.openBlock(),i.createElementBlock("div",Dj,[i.createElementVNode("div",Lj,[Oj,i.withDirectives(i.createElementVNode("div",Mj,null,512),[[f,"general.champions"]]),i.createElementVNode("p",Nj,i.toDisplayString(c(a.value)),1)]),i.createElementVNode("div",Pj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0),o.value.length>0?(i.openBlock(),i.createElementBlock("div",Hj,[i.createElementVNode("div",Rj,[Vj,i.withDirectives(i.createElementVNode("div",Kj,null,512),[[f,"general.landmarks"]]),i.createElementVNode("p",$j,i.toDisplayString(c(o.value)),1)]),i.createElementVNode("div",Wj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0),l.value.length>0?(i.openBlock(),i.createElementBlock("div",Gj,[i.createElementVNode("div",zj,[jj,i.withDirectives(i.createElementVNode("div",Yj,null,512),[[f,"general.equipments"]]),i.createElementVNode("p",qj,i.toDisplayString(c(l.value)),1)]),i.createElementVNode("div",Xj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0)]),A.value.length>0?(i.openBlock(),i.createElementBlock("div",Jj,[i.createElementVNode("div",Zj,[eY,i.withDirectives(i.createElementVNode("div",tY,null,512),[[f,"general.followers"]]),i.createElementVNode("p",nY,i.toDisplayString(c(A.value)),1)]),i.createElementVNode("div",rY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0),s.value.length>0?(i.openBlock(),i.createElementBlock("div",aY,[i.createElementVNode("div",AY,[sY,i.withDirectives(i.createElementVNode("div",iY,null,512),[[f,"general.spells"]]),i.createElementVNode("p",oY,i.toDisplayString(c(s.value)),1)]),i.createElementVNode("div",lY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>(i.openBlock(),i.createBlock(fn,{key:h.cardCode,"card-prop":h,color:i.unref(gA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(h.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0)])])}}});const Sd=M(cY,[["__scopeId","data-v-380c3647"]]),uY={deckCode:{type:String,required:!0,default:""}},xd=i.defineComponent({__name:"CopyDeckButton",props:uY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);let a,A;i.onMounted(()=>{A=At(r.value,{content:n("deck.copyDeckCode"),arrow:!0}),a=At(r.value,{content:n("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function s(){_E(t.deckCode),A.hide(),a.show()}return(o,l)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s},[i.createVNode(i.unref(Ie),{icon:"copy",class:"icon"})],512))}}),dY={deckId:{type:Number,required:!0,default:-1}},Lm=i.defineComponent({__name:"DeleteDeckButton",props:dY,setup(e){const{t}=re(),n=i.ref(null);return i.onMounted(()=>{At(n.value,{content:t("deck.deleteDeck"),arrow:!0})}),(r,a)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[i.createVNode(i.unref(Ie),{icon:"trash-alt",class:"icon"})],512))}}),Om=i.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=re(),n=i.ref(null);return i.onMounted(()=>{At(n.value,{content:t("deck.editDeckName"),arrow:!0})}),(r,a)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[i.createVNode(i.unref(Ie),{icon:"pencil-alt",class:"icon"})],512))}}),fY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},hY=i.defineComponent({__name:"OpenArchetypePageButton",props:fY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);return i.onMounted(()=>{At(r.value,{content:n("deck.openArchetypePage"),arrow:!0})}),(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(s,{to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},i.toDisplayString(i.unref(n)("archetype.abbreviation")),513)]),_:1},8,["to"])}}});const Mm=M(hY,[["__scopeId","data-v-b921ee68"]]),pY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},Nm=i.defineComponent({__name:"OpenInDeckBuilderButton",props:pY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);return i.onMounted(()=>{At(r.value,{content:n("deck.openInDeckBuilder"),arrow:!0})}),(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(s,{to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(i.unref(Ie),{icon:"hammer",class:"icon"})],512)]),_:1},8,["to"])}}}),gY={deck:{type:Object,required:!0,default:{}}},mY={deck:{type:Object,required:!0,default:{}}},vY={class:"simulate-mulligan"},BY={class:"cards-container"},yY={class:"buttons"},wY=i.defineComponent({__name:"SimulateMulligan",props:mY,setup(e){const t=e,{t:n}=re(),r=i.computed(()=>{const c=[];for(const u in t.deck)for(let d=0;d<t.deck[u];d++)c.push(u);return c}),a=i.computed(()=>{const c=Array.from(r.value);for(const u of A.value)u!==null&&c.splice(c.indexOf(u.cardCode),1);return c}),A=i.ref([null,null,null,null]);function s(){A.value.fill(null),l()}function o(){var c;for(let u=0;u<A.value.length;u++)A.value[u]===null||!((c=A.value[u])!=null&&c.isSelected)||(A.value[u]=null);l()}function l(){for(;A.value.some(c=>c===null);)A.value[A.value.indexOf(null)]={cardCode:a.value[vE(0,a.value.length)],isSelected:!1};console.log(A.value)}return l(),(c,u)=>(i.openBlock(),i.createElementBlock("div",vY,[i.createElementVNode("div",BY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value.filter(d=>d!==null),(d,f)=>(i.openBlock(),i.createBlock(Wa,{key:d.cardCode+f,"card-code-prop":d.cardCode,"is-root":!0,style:i.normalizeStyle(d.isSelected?{opacity:.5}:null),onClick:h=>d.isSelected=!d.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),i.createElementVNode("div",yY,[i.createElementVNode("button",{class:"primary-button",onClick:s},i.toDisplayString(i.unref(n)("deck.replaceAllCards")),1),i.createElementVNode("button",{class:"primary-button",onClick:o},i.toDisplayString(i.unref(n)("deck.replaceSelectedCards")),1)])]))}});const Pm=M(wY,[["__scopeId","data-v-4f85d8dc"]]),bY={class:"simulate-mulligan-wrapper"},_Y=i.defineComponent({__name:"SimulateMulliganButton",props:gY,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),(A,s)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=o=>a.value=!0)},[i.createVNode(i.unref(Ie),{icon:"hand-paper"})],512),i.createVNode(KA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",bY,[i.createVNode(Pm,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const Fd=M(_Y,[["__scopeId","data-v-63aa9043"]]),CY={deckIsPrivate:{type:Boolean,required:!0,default:!0}},Hm=i.defineComponent({__name:"UpdateDeckPrivacyButton",props:CY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);let a;return i.onMounted(()=>{a=At(r.value,{content:`${n("deck.updatePrivacy")}:
853
853
  ${t.deckIsPrivate?n("deck.deckPrivate"):n("deck.deckPublic")}`,arrow:!0})}),i.watch(()=>t.deckIsPrivate,A=>{a.setContent(`${n("deck.updatePrivacy")}:
854
- ${n(A?"deck.deckPrivate":"deck.deckPublic")}`)}),(A,s)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(i.unref(Ue),{icon:t.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512))}}),EY={},kY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},SY=i.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1),xY=[SY];function FY(e,t){return i.openBlock(),i.createElementBlock("svg",kY,xY)}const Rm=M(EY,[["render",FY]]),IY={showUploaded:{type:Boolean,required:!1,default:!1}},UY=i.defineComponent({__name:"UploadDeckToLorButton",props:IY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);let a;return i.onMounted(()=>{At(r.value,{content:wa().user?n("deck.uploadDeckToLor"):n("deck.signInToUpload"),arrow:!0}),a=At(r.value,{content:n("deck.deckUploaded"),trigger:"manual",arrow:!0})}),i.watch(()=>t.showUploaded,()=>{t.showUploaded&&a.show()}),(A,s)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(Rm)],512))}});const Id=M(UY,[["__scopeId","data-v-ea5cfd6f"]]),QY={class:"primary-button"},Vm=i.defineComponent({__name:"ShareButton",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("button",QY,[i.createVNode(i.unref(Ue),{icon:"share-nodes"}),i.createElementVNode("span",null,[i.renderSlot(t.$slots,"default")])]))}}),TY={isPrivate:{type:Boolean,required:!1,default:!1},showUploaded:{type:Boolean,required:!1,default:!1},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckName:{type:String,required:!1,default:void 0},deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1,default:void 0},showButtons:{type:Object,required:!1,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},DY={class:"deck-buttons"},LY={key:0,class:"owned-deck-buttons buttons"},OY={class:"normal-buttons buttons"},MY=i.defineComponent({__name:"DeckButtons",props:TY,emits:["click:share","click:upload","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>St(n.deckCode));return console.log(a),(A,s)=>(i.openBlock(),i.createElementBlock("div",DY,[n.showButtons.deleteDeck||n.showButtons.updateDeckPrivacy||n.showButtons.editDeckName?(i.openBlock(),i.createElementBlock("div",LY,[n.showButtons.deleteDeck?(i.openBlock(),i.createBlock(Lm,{key:0,onClick:s[0]||(s[0]=o=>t("click:delete"))})):i.createCommentVNode("",!0),n.showButtons.updateDeckPrivacy?(i.openBlock(),i.createBlock(Hm,{key:1,"deck-is-private":n.isPrivate,onClick:s[1]||(s[1]=o=>t("click:update-privacy"))},null,8,["deck-is-private"])):i.createCommentVNode("",!0),n.showButtons.editDeckName?(i.openBlock(),i.createBlock(Om,{key:2,onClick:s[2]||(s[2]=o=>t("click:edit-name"))})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",OY,[n.showButtons.gemsCost?(i.openBlock(),i.createBlock(Tg,{key:0,deck:a.value},null,8,["deck"])):i.createCommentVNode("",!0),n.showButtons.openArchetypePage?(i.openBlock(),i.createBlock(Mm,{key:1,"router-link":n.archetypeRouterLink},null,8,["router-link"])):i.createCommentVNode("",!0),n.showButtons.simulateMulligan?(i.openBlock(),i.createBlock(Fd,{key:2,deck:a.value},null,8,["deck"])):i.createCommentVNode("",!0),n.showButtons.openInDeckBuilder?(i.openBlock(),i.createBlock(Nm,{key:3,"router-link":n.deckBuilderRouterLink},null,8,["router-link"])):i.createCommentVNode("",!0),n.showButtons.copyDeckCode?(i.openBlock(),i.createBlock(xd,{key:4,"deck-code":n.deckCode},null,8,["deck-code"])):i.createCommentVNode("",!0),n.showButtons.uploadDeckToLor?(i.openBlock(),i.createBlock(Id,{key:5,onClick:s[3]||(s[3]=o=>t("click:upload")),"show-uploaded":n.showUploaded},null,8,["show-uploaded"])):i.createCommentVNode("",!0),n.showButtons.shareDeck?(i.openBlock(),i.createBlock(Vm,{key:6,onClick:s[4]||(s[4]=o=>t("click:share"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(r)("deck.shareDeck")),1)]),_:1})):i.createCommentVNode("",!0)])]))}});const gl=M(MY,[["__scopeId","data-v-a03f5f30"]]),NY={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},PY={element:{type:Object,required:!0,default:""}};/*!
854
+ ${n(A?"deck.deckPrivate":"deck.deckPublic")}`)}),(A,s)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(i.unref(Ie),{icon:t.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512))}}),EY={},kY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},SY=i.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1),xY=[SY];function FY(e,t){return i.openBlock(),i.createElementBlock("svg",kY,xY)}const Rm=M(EY,[["render",FY]]),IY={showUploaded:{type:Boolean,required:!1,default:!1}},UY=i.defineComponent({__name:"UploadDeckToLorButton",props:IY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);let a;return i.onMounted(()=>{At(r.value,{content:wa().user?n("deck.uploadDeckToLor"):n("deck.signInToUpload"),arrow:!0}),a=At(r.value,{content:n("deck.deckUploaded"),trigger:"manual",arrow:!0})}),i.watch(()=>t.showUploaded,()=>{t.showUploaded&&a.show()}),(A,s)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(Rm)],512))}});const Id=M(UY,[["__scopeId","data-v-ea5cfd6f"]]),QY={class:"primary-button"},Vm=i.defineComponent({__name:"ShareButton",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("button",QY,[i.createVNode(i.unref(Ie),{icon:"share-nodes"}),i.createElementVNode("span",null,[i.renderSlot(t.$slots,"default")])]))}}),TY={isPrivate:{type:Boolean,required:!1,default:!1},showUploaded:{type:Boolean,required:!1,default:!1},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckName:{type:String,required:!1,default:void 0},deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1,default:void 0},showButtons:{type:Object,required:!1,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},DY={class:"deck-buttons"},LY={key:0,class:"owned-deck-buttons buttons"},OY={class:"normal-buttons buttons"},MY=i.defineComponent({__name:"DeckButtons",props:TY,emits:["click:share","click:upload","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>St(n.deckCode));return console.log(a),(A,s)=>(i.openBlock(),i.createElementBlock("div",DY,[n.showButtons.deleteDeck||n.showButtons.updateDeckPrivacy||n.showButtons.editDeckName?(i.openBlock(),i.createElementBlock("div",LY,[n.showButtons.deleteDeck?(i.openBlock(),i.createBlock(Lm,{key:0,onClick:s[0]||(s[0]=o=>t("click:delete"))})):i.createCommentVNode("",!0),n.showButtons.updateDeckPrivacy?(i.openBlock(),i.createBlock(Hm,{key:1,"deck-is-private":n.isPrivate,onClick:s[1]||(s[1]=o=>t("click:update-privacy"))},null,8,["deck-is-private"])):i.createCommentVNode("",!0),n.showButtons.editDeckName?(i.openBlock(),i.createBlock(Om,{key:2,onClick:s[2]||(s[2]=o=>t("click:edit-name"))})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",OY,[n.showButtons.gemsCost?(i.openBlock(),i.createBlock(Tg,{key:0,class:"gems-cost",deck:a.value},null,8,["deck"])):i.createCommentVNode("",!0),n.showButtons.openArchetypePage?(i.openBlock(),i.createBlock(Mm,{key:1,"router-link":n.archetypeRouterLink},null,8,["router-link"])):i.createCommentVNode("",!0),n.showButtons.simulateMulligan?(i.openBlock(),i.createBlock(Fd,{key:2,deck:a.value},null,8,["deck"])):i.createCommentVNode("",!0),n.showButtons.openInDeckBuilder?(i.openBlock(),i.createBlock(Nm,{key:3,"router-link":n.deckBuilderRouterLink},null,8,["router-link"])):i.createCommentVNode("",!0),n.showButtons.copyDeckCode?(i.openBlock(),i.createBlock(xd,{key:4,"deck-code":n.deckCode},null,8,["deck-code"])):i.createCommentVNode("",!0),n.showButtons.uploadDeckToLor?(i.openBlock(),i.createBlock(Id,{key:5,onClick:s[3]||(s[3]=o=>t("click:upload")),"show-uploaded":n.showUploaded},null,8,["show-uploaded"])):i.createCommentVNode("",!0),n.showButtons.shareDeck?(i.openBlock(),i.createBlock(Vm,{key:6,class:"share-button",onClick:s[4]||(s[4]=o=>t("click:share"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(r)("deck.shareDeck")),1)]),_:1})):i.createCommentVNode("",!0)])]))}});const gl=M(MY,[["__scopeId","data-v-76dd948e"]]),NY={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},PY={element:{type:Object,required:!0,default:""}};/*!
855
855
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
856
856
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
857
857
  * Released under MIT License
@@ -872,10 +872,10 @@ PERFORMANCE OF THIS SOFTWARE.
872
872
  content: "" !important;
873
873
  display: none !important;
874
874
  }`,Eee=function(e){kee(e,"."+Tp+_ee+C2+`
875
- .`+Dp+Cee+C2)},kee=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},s3=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),See=function(){function e(t,n){this.context=t,this._options=n,this._cache={}}return e.prototype.addImage=function(t){var n=Promise.resolve();return this.has(t)||(Xf(t)||Uee(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),n},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return en(this,void 0,void 0,function(){var n,r,a,A,s=this;return Kt(this,function(o){switch(o.label){case 0:return n=s3.isSameOrigin(t),r=!qf(t)&&this._options.useCORS===!0&&Ht.SUPPORT_CORS_IMAGES&&!n,a=!qf(t)&&!n&&!Xf(t)&&typeof this._options.proxy=="string"&&Ht.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!qf(t)&&!Xf(t)&&!a&&!r?[2]:(A=t,a?[4,this.proxy(A)]:[3,2]);case 1:A=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var u=new Image;u.onload=function(){return l(u)},u.onerror=c,(Qee(A)||r)&&(u.crossOrigin="anonymous"),u.src=A,u.complete===!0&&setTimeout(function(){return l(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(A,s){var o=Ht.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")A(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return A(d.result)},!1),d.addEventListener("error",function(f){return s(f)},!1),d.readAsDataURL(l.response)}else s("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),n._options.imageTimeout){var u=n._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+a)}}l.send()})},e}(),xee=/^data:image\/svg\+xml/i,Fee=/^data:image\/.*;base64,/i,Iee=/^data:image\/.*/i,Uee=function(e){return Ht.SUPPORT_SVG_DRAWING||!Tee(e)},qf=function(e){return Iee.test(e)},Qee=function(e){return Fee.test(e)},Xf=function(e){return e.substr(0,4)==="blob"},Tee=function(e){return e.substr(-3).toLowerCase()==="svg"||xee.test(e)},q=function(){function e(t,n){this.type=0,this.x=t,this.y=n}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),cs=function(e,t,n){return new q(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Cc=function(){function e(t,n,r,a){this.type=1,this.start=t,this.startControl=n,this.endControl=r,this.end=a}return e.prototype.subdivide=function(t,n){var r=cs(this.start,this.startControl,t),a=cs(this.startControl,this.endControl,t),A=cs(this.endControl,this.end,t),s=cs(r,a,t),o=cs(a,A,t),l=cs(s,o,t);return n?new e(this.start,r,s,l):new e(l,o,A,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Pn=function(e){return e.type===1},Dee=function(){function e(t){var n=t.styles,r=t.bounds,a=Mi(n.borderTopLeftRadius,r.width,r.height),A=a[0],s=a[1],o=Mi(n.borderTopRightRadius,r.width,r.height),l=o[0],c=o[1],u=Mi(n.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],h=Mi(n.borderBottomLeftRadius,r.width,r.height),p=h[0],m=h[1],y=[];y.push((A+l)/r.width),y.push((p+d)/r.width),y.push((s+m)/r.height),y.push((c+f)/r.height);var g=Math.max.apply(Math,y);g>1&&(A/=g,s/=g,l/=g,c/=g,d/=g,f/=g,p/=g,m/=g);var v=r.width-l,_=r.height-f,B=r.width-d,w=r.height-m,b=n.borderTopWidth,C=n.borderRightWidth,k=n.borderBottomWidth,S=n.borderLeftWidth,T=qe(n.paddingTop,t.bounds.width),U=qe(n.paddingRight,t.bounds.width),F=qe(n.paddingBottom,t.bounds.width),Q=qe(n.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||s>0?lt(r.left+S/3,r.top+b/3,A-S/3,s-b/3,Re.TOP_LEFT):new q(r.left+S/3,r.top+b/3),this.topRightBorderDoubleOuterBox=A>0||s>0?lt(r.left+v,r.top+b/3,l-C/3,c-b/3,Re.TOP_RIGHT):new q(r.left+r.width-C/3,r.top+b/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?lt(r.left+B,r.top+_,d-C/3,f-k/3,Re.BOTTOM_RIGHT):new q(r.left+r.width-C/3,r.top+r.height-k/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?lt(r.left+S/3,r.top+w,p-S/3,m-k/3,Re.BOTTOM_LEFT):new q(r.left+S/3,r.top+r.height-k/3),this.topLeftBorderDoubleInnerBox=A>0||s>0?lt(r.left+S*2/3,r.top+b*2/3,A-S*2/3,s-b*2/3,Re.TOP_LEFT):new q(r.left+S*2/3,r.top+b*2/3),this.topRightBorderDoubleInnerBox=A>0||s>0?lt(r.left+v,r.top+b*2/3,l-C*2/3,c-b*2/3,Re.TOP_RIGHT):new q(r.left+r.width-C*2/3,r.top+b*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?lt(r.left+B,r.top+_,d-C*2/3,f-k*2/3,Re.BOTTOM_RIGHT):new q(r.left+r.width-C*2/3,r.top+r.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?lt(r.left+S*2/3,r.top+w,p-S*2/3,m-k*2/3,Re.BOTTOM_LEFT):new q(r.left+S*2/3,r.top+r.height-k*2/3),this.topLeftBorderStroke=A>0||s>0?lt(r.left+S/2,r.top+b/2,A-S/2,s-b/2,Re.TOP_LEFT):new q(r.left+S/2,r.top+b/2),this.topRightBorderStroke=A>0||s>0?lt(r.left+v,r.top+b/2,l-C/2,c-b/2,Re.TOP_RIGHT):new q(r.left+r.width-C/2,r.top+b/2),this.bottomRightBorderStroke=d>0||f>0?lt(r.left+B,r.top+_,d-C/2,f-k/2,Re.BOTTOM_RIGHT):new q(r.left+r.width-C/2,r.top+r.height-k/2),this.bottomLeftBorderStroke=p>0||m>0?lt(r.left+S/2,r.top+w,p-S/2,m-k/2,Re.BOTTOM_LEFT):new q(r.left+S/2,r.top+r.height-k/2),this.topLeftBorderBox=A>0||s>0?lt(r.left,r.top,A,s,Re.TOP_LEFT):new q(r.left,r.top),this.topRightBorderBox=l>0||c>0?lt(r.left+v,r.top,l,c,Re.TOP_RIGHT):new q(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||f>0?lt(r.left+B,r.top+_,d,f,Re.BOTTOM_RIGHT):new q(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=p>0||m>0?lt(r.left,r.top+w,p,m,Re.BOTTOM_LEFT):new q(r.left,r.top+r.height),this.topLeftPaddingBox=A>0||s>0?lt(r.left+S,r.top+b,Math.max(0,A-S),Math.max(0,s-b),Re.TOP_LEFT):new q(r.left+S,r.top+b),this.topRightPaddingBox=l>0||c>0?lt(r.left+Math.min(v,r.width-C),r.top+b,v>r.width+C?0:Math.max(0,l-C),Math.max(0,c-b),Re.TOP_RIGHT):new q(r.left+r.width-C,r.top+b),this.bottomRightPaddingBox=d>0||f>0?lt(r.left+Math.min(B,r.width-S),r.top+Math.min(_,r.height-k),Math.max(0,d-C),Math.max(0,f-k),Re.BOTTOM_RIGHT):new q(r.left+r.width-C,r.top+r.height-k),this.bottomLeftPaddingBox=p>0||m>0?lt(r.left+S,r.top+Math.min(w,r.height-k),Math.max(0,p-S),Math.max(0,m-k),Re.BOTTOM_LEFT):new q(r.left+S,r.top+r.height-k),this.topLeftContentBox=A>0||s>0?lt(r.left+S+Q,r.top+b+T,Math.max(0,A-(S+Q)),Math.max(0,s-(b+T)),Re.TOP_LEFT):new q(r.left+S+Q,r.top+b+T),this.topRightContentBox=l>0||c>0?lt(r.left+Math.min(v,r.width+S+Q),r.top+b+T,v>r.width+S+Q?0:l-S+Q,c-(b+T),Re.TOP_RIGHT):new q(r.left+r.width-(C+U),r.top+b+T),this.bottomRightContentBox=d>0||f>0?lt(r.left+Math.min(B,r.width-(S+Q)),r.top+Math.min(_,r.height+b+T),Math.max(0,d-(C+U)),f-(k+F),Re.BOTTOM_RIGHT):new q(r.left+r.width-(C+U),r.top+r.height-(k+F)),this.bottomLeftContentBox=p>0||m>0?lt(r.left+S+Q,r.top+w,Math.max(0,p-(S+Q)),m-(k+F),Re.BOTTOM_LEFT):new q(r.left+S+Q,r.top+r.height-(k+F))}return e}(),Re;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Re||(Re={}));var lt=function(e,t,n,r,a){var A=4*((Math.sqrt(2)-1)/3),s=n*A,o=r*A,l=e+n,c=t+r;switch(a){case Re.TOP_LEFT:return new Cc(new q(e,c),new q(e,c-o),new q(l-s,t),new q(l,t));case Re.TOP_RIGHT:return new Cc(new q(e,t),new q(e+s,t),new q(l,c-o),new q(l,c));case Re.BOTTOM_RIGHT:return new Cc(new q(l,t),new q(l,t+o),new q(e+s,c),new q(e,c));case Re.BOTTOM_LEFT:default:return new Cc(new q(l,c),new q(l-s,c),new q(e,t+o),new q(e,t))}},Tu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Lee=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Du=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Oee=function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e}(),Ec=function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e}(),Mee=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),Nee=function(e){return e.type===0},i3=function(e){return e.type===1},Pee=function(e){return e.type===2},E2=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},Hee=function(e,t,n,r,a){return e.map(function(A,s){switch(s){case 0:return A.add(t,n);case 1:return A.add(t+r,n);case 2:return A.add(t+r,n+a);case 3:return A.add(t,n+a)}return A})},o3=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),l3=function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new Dee(this.container),this.container.styles.opacity<1&&this.effects.push(new Mee(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new Oee(r,a,A))}if(this.container.styles.overflowX!==0){var s=Tu(this.curves),o=Du(this.curves);E2(s,o)?this.effects.push(new Ec(s,6)):(this.effects.push(new Ec(s,2)),this.effects.push(new Ec(o,4)))}}return e.prototype.getEffects=function(t){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,a=this.effects.slice(0);r;){var A=r.effects.filter(function(l){return!i3(l)});if(n||r.container.styles.position!==0||!r.parent){if(a.unshift.apply(a,A),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Tu(r.curves),o=Du(r.curves);E2(s,o)||a.unshift(new Ec(o,6))}}else a.unshift.apply(a,A);r=r.parent}return a.filter(function(l){return It(l.target,t)})},e}(),Lp=function(e,t,n,r){e.container.elements.forEach(function(a){var A=It(a.flags,4),s=It(a.flags,2),o=new l3(a,e);It(a.styles.display,2048)&&r.push(o);var l=It(a.flags,8)?[]:r;if(A||s){var c=A||a.styles.isPositioned()?n:t,u=new o3(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some(function(p,m){return d>p.element.container.styles.zIndex.order?(f=m,!1):f>0}),c.negativeZIndex.splice(f,0,u)}else if(d>0){var h=0;c.positiveZIndex.some(function(p,m){return d>=p.element.container.styles.zIndex.order?(h=m+1,!1):h>0}),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Lp(o,u,A?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Lp(o,t,n,l);It(a.flags,8)&&c3(a,l)})},c3=function(e,t){for(var n=e instanceof Ip?e.start:1,r=e instanceof Ip?e.reversed:!1,a=0;a<t.length;a++){var A=t[a];A.container instanceof z4&&typeof A.container.value=="number"&&A.container.value!==0&&(n=A.container.value),A.listValue=Po(n,A.container.styles.listStyleType,!0),n+=r?-1:1}},Ree=function(e){var t=new l3(e,null),n=new o3(t),r=[];return Lp(t,n,n,r),c3(t.container,r),n},k2=function(e,t){switch(t){case 0:return Rn(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Rn(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Rn(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Rn(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Vee=function(e,t){switch(t){case 0:return Rn(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Rn(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Rn(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Rn(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},Kee=function(e,t){switch(t){case 0:return Rn(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Rn(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Rn(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Rn(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},$ee=function(e,t){switch(t){case 0:return kc(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return kc(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return kc(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return kc(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},kc=function(e,t){var n=[];return Pn(e)?n.push(e.subdivide(.5,!1)):n.push(e),Pn(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Rn=function(e,t,n,r){var a=[];return Pn(e)?a.push(e.subdivide(.5,!1)):a.push(e),Pn(n)?a.push(n.subdivide(.5,!0)):a.push(n),Pn(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Pn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},u3=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Lu=function(e){var t=e.styles,n=e.bounds,r=qe(t.paddingLeft,n.width),a=qe(t.paddingRight,n.width),A=qe(t.paddingTop,n.width),s=qe(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,A+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+a),-(t.borderTopWidth+t.borderBottomWidth+A+s))},Wee=function(e,t){return e===0?t.bounds:e===2?Lu(t):u3(t)},Gee=function(e,t){return e===0?t.bounds:e===2?Lu(t):u3(t)},Jf=function(e,t,n){var r=Wee(ps(e.styles.backgroundOrigin,t),e),a=Gee(ps(e.styles.backgroundClip,t),e),A=zee(ps(e.styles.backgroundSize,t),n,r),s=A[0],o=A[1],l=Mi(ps(e.styles.backgroundPosition,t),r.width-s,r.height-o),c=jee(ps(e.styles.backgroundRepeat,t),l,A,r,a),u=Math.round(r.left+l[0]),d=Math.round(r.top+l[1]);return[c,u,d,s,o]},us=function(e){return We(e)&&e.value===xs.AUTO},Sc=function(e){return typeof e=="number"},zee=function(e,t,n){var r=t[0],a=t[1],A=t[2],s=e[0],o=e[1];if(!s)return[0,0];if(Ct(s)&&o&&Ct(o))return[qe(s,n.width),qe(o,n.height)];var l=Sc(A);if(We(s)&&(s.value===xs.CONTAIN||s.value===xs.COVER)){if(Sc(A)){var c=n.width/n.height;return c<A!=(s.value===xs.COVER)?[n.width,n.width/A]:[n.height*A,n.height]}return[n.width,n.height]}var u=Sc(r),d=Sc(a),f=u||d;if(us(s)&&(!o||us(o))){if(u&&d)return[r,a];if(!l&&!f)return[n.width,n.height];if(f&&l){var h=u?r:a*A,p=d?a:r/A;return[h,p]}var m=u?r:n.width,y=d?a:n.height;return[m,y]}if(l){var g=0,v=0;return Ct(s)?g=qe(s,n.width):Ct(o)&&(v=qe(o,n.height)),us(s)?g=v*A:(!o||us(o))&&(v=g/A),[g,v]}var _=null,B=null;if(Ct(s)?_=qe(s,n.width):o&&Ct(o)&&(B=qe(o,n.height)),_!==null&&(!o||us(o))&&(B=u&&d?_/r*a:n.height),B!==null&&us(s)&&(_=u&&d?B/a*r:n.width),_!==null&&B!==null)return[_,B];throw new Error("Unable to calculate background-size for element")},ps=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},jee=function(e,t,n,r,a){var A=t[0],s=t[1],o=n[0],l=n[1];switch(e){case 2:return[new q(Math.round(r.left),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(l+r.top+s)),new q(Math.round(r.left),Math.round(l+r.top+s))];case 3:return[new q(Math.round(r.left+A),Math.round(r.top)),new q(Math.round(r.left+A+o),Math.round(r.top)),new q(Math.round(r.left+A+o),Math.round(r.height+r.top)),new q(Math.round(r.left+A),Math.round(r.height+r.top))];case 1:return[new q(Math.round(r.left+A),Math.round(r.top+s)),new q(Math.round(r.left+A+o),Math.round(r.top+s)),new q(Math.round(r.left+A+o),Math.round(r.top+s+l)),new q(Math.round(r.left+A),Math.round(r.top+s+l))];default:return[new q(Math.round(a.left),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.height+a.top)),new q(Math.round(a.left),Math.round(a.height+a.top))]}},Yee="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",S2="Hidden Text",qee=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,n){var r=this._document.createElement("div"),a=this._document.createElement("img"),A=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),a.src=Yee,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",A.style.fontFamily=t,A.style.fontSize=n,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode(S2)),r.appendChild(A),r.appendChild(a);var o=a.offsetTop-A.offsetTop+2;r.removeChild(A),r.appendChild(this._document.createTextNode(S2)),r.style.lineHeight="normal",a.style.verticalAlign="super";var l=a.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:l}},e.prototype.getMetrics=function(t,n){var r=t+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,n)),this._data[r]},e}(),d3=function(){function e(t,n){this.context=t,this.options=n}return e}(),Xee=1e4,Jee=function(e){ar(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a._activeEffects=[],a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),r.canvas||(a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px"),a.fontMetrics=new qee(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),a}return t.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(a){return r.applyEffect(a)})},t.prototype.applyEffect=function(n){this.ctx.save(),Pee(n)&&(this.ctx.globalAlpha=n.opacity),Nee(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),i3(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(n){return en(this,void 0,void 0,function(){var r;return Kt(this,function(a){switch(a.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(n){return en(this,void 0,void 0,function(){return Kt(this,function(r){switch(r.label){case 0:if(It(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(n,r,a){var A=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+a);else{var s=zm(n.text);s.reduce(function(o,l){return A.ctx.fillText(l,o,n.bounds.top+a),o+A.ctx.measureText(l).width},n.bounds.left)}},t.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),a=rte(n.fontFamily).join(", "),A=vl(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,A,a].join(" "),a,A]},t.prototype.renderTextNode=function(n,r){return en(this,void 0,void 0,function(){var a,A,s,o,l,c,u,d,f=this;return Kt(this,function(h){return a=this.createFontStyle(r),A=a[0],s=a[1],o=a[2],this.ctx.font=A,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,u=l.middle,d=r.paintOrder,n.textBounds.forEach(function(p){d.forEach(function(m){switch(m){case 0:f.ctx.fillStyle=Lt(r.color),f.renderTextWithLetterSpacing(p,r.letterSpacing,c);var y=r.textShadow;y.length&&p.text.trim().length&&(y.slice(0).reverse().forEach(function(g){f.ctx.shadowColor=Lt(g.color),f.ctx.shadowOffsetX=g.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=g.offsetY.number*f.options.scale,f.ctx.shadowBlur=g.blur.number,f.renderTextWithLetterSpacing(p,r.letterSpacing,c)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=Lt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(g){switch(g){case 1:f.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+c),p.bounds.width,1);break;case 2:f.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:f.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+u),p.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&p.text.trim().length&&(f.ctx.strokeStyle=Lt(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+c)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(n,r,a){if(a&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var A=Lu(n),s=Du(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,n.intrinsicWidth,n.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(n){return en(this,void 0,void 0,function(){var r,a,A,s,o,l,v,v,c,u,d,f,B,h,p,w,m,y,g,v,_,B,w;return Kt(this,function(b){switch(b.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,A=r.styles,s=0,o=r.textNodes,b.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,A)]):[3,4];case 2:b.sent(),b.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof $4))return[3,8];b.label=5;case 5:return b.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=b.sent(),this.renderReplacedElement(r,a,v),[3,8];case 7:return b.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof W4&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof G4))return[3,12];b.label=9;case 9:return b.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=b.sent(),this.renderReplacedElement(r,a,v),[3,12];case 11:return b.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof q4&&r.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:u=b.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),b.label=14;case 14:if(r instanceof jm&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===Fu?r.checked&&(this.ctx.save(),this.path([new q(r.bounds.left+d*.39363,r.bounds.top+d*.79),new q(r.bounds.left+d*.16,r.bounds.top+d*.5549),new q(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new q(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new q(r.bounds.left+d*.72983,r.bounds.top+d*.23),new q(r.bounds.left+d*.84,r.bounds.top+d*.34085),new q(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=Lt(h2),this.ctx.fill(),this.ctx.restore()):r.type===Iu&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Lt(h2),this.ctx.fill(),this.ctx.restore())),Zee(r)&&r.value.length){switch(f=this.createFontStyle(A),B=f[0],h=f[1],p=this.fontMetrics.getMetrics(B,h).baseline,this.ctx.font=B,this.ctx.fillStyle=Lt(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=tte(r.styles.textAlign),w=Lu(r),m=0,r.styles.textAlign){case 1:m+=w.width/2;break;case 2:m+=w.width;break}y=w.add(m,0,0,-w.height/2+1),this.ctx.save(),this.path([new q(w.left,w.top),new q(w.left+w.width,w.top),new q(w.left+w.width,w.top+w.height),new q(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new lo(r.value,y),A.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!It(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(g=r.styles.listStyleImage,g.type!==0)return[3,18];v=void 0,_=g.url,b.label=15;case 15:return b.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return v=b.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return b.sent(),this.context.logger.error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(B=this.createFontStyle(A)[0],this.ctx.font=B,this.ctx.fillStyle=Lt(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new aa(r.bounds.left,r.bounds.top+qe(r.styles.paddingTop,r.bounds.width),r.bounds.width,Xy(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new lo(n.listValue,w),A.letterSpacing,Xy(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),b.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(n){return en(this,void 0,void 0,function(){var r,a,g,A,s,g,o,l,g,c,u,g,d,f,g,h,p,g,m,y,g;return Kt(this,function(v){switch(v.label){case 0:if(It(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:v.sent(),r=0,a=n.negativeZIndex,v.label=2;case 2:return r<a.length?(g=a[r],[4,this.renderStack(g)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:v.sent(),A=0,s=n.nonInlineLevel,v.label=7;case 7:return A<s.length?(g=s[A],[4,this.renderNode(g)]):[3,10];case 8:v.sent(),v.label=9;case 9:return A++,[3,7];case 10:o=0,l=n.nonPositionedFloats,v.label=11;case 11:return o<l.length?(g=l[o],[4,this.renderStack(g)]):[3,14];case 12:v.sent(),v.label=13;case 13:return o++,[3,11];case 14:c=0,u=n.nonPositionedInlineLevel,v.label=15;case 15:return c<u.length?(g=u[c],[4,this.renderStack(g)]):[3,18];case 16:v.sent(),v.label=17;case 17:return c++,[3,15];case 18:d=0,f=n.inlineLevel,v.label=19;case 19:return d<f.length?(g=f[d],[4,this.renderNode(g)]):[3,22];case 20:v.sent(),v.label=21;case 21:return d++,[3,19];case 22:h=0,p=n.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return h<p.length?(g=p[h],[4,this.renderStack(g)]):[3,26];case 24:v.sent(),v.label=25;case 25:return h++,[3,23];case 26:m=0,y=n.positiveZIndex,v.label=27;case 27:return m<y.length?(g=y[m],[4,this.renderStack(g)]):[3,30];case 28:v.sent(),v.label=29;case 29:return m++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},t.prototype.formatPath=function(n){var r=this;n.forEach(function(a,A){var s=Pn(a)?a.start:a;A===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Pn(a)&&r.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},t.prototype.renderRepeat=function(n,r,a,A){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(a,A),this.ctx.fill(),this.ctx.translate(-a,-A)},t.prototype.resizeImage=function(n,r,a){var A;if(n.width===r&&n.height===a)return n;var s=(A=this.canvas.ownerDocument)!==null&&A!==void 0?A:document,o=s.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,a);var l=o.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,a),o},t.prototype.renderBackgroundImage=function(n){return en(this,void 0,void 0,function(){var r,a,A,s,o,l;return Kt(this,function(c){switch(c.label){case 0:r=n.styles.backgroundImage.length-1,a=function(u){var d,f,h,T,j,K,Q,Y,k,p,T,j,K,Q,Y,m,y,g,v,_,B,w,b,C,k,S,T,U,F,Q,Y,X,j,K,oe,$,Ae,ce,me,Ee,fe,ne;return Kt(this,function(N){switch(N.label){case 0:if(u.type!==0)return[3,5];d=void 0,f=u.url,N.label=1;case 1:return N.trys.push([1,3,,4]),[4,A.context.cache.match(f)];case 2:return d=N.sent(),[3,4];case 3:return N.sent(),A.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(h=Jf(n,r,[d.width,d.height,d.width/d.height]),T=h[0],j=h[1],K=h[2],Q=h[3],Y=h[4],k=A.ctx.createPattern(A.resizeImage(d,Q,Y),"repeat"),A.renderRepeat(T,k,j,K)),[3,6];case 5:NX(u)?(p=Jf(n,r,[null,null,null]),T=p[0],j=p[1],K=p[2],Q=p[3],Y=p[4],m=TX(u.angle,Q,Y),y=m[0],g=m[1],v=m[2],_=m[3],B=m[4],w=document.createElement("canvas"),w.width=Q,w.height=Y,b=w.getContext("2d"),C=b.createLinearGradient(g,_,v,B),Yy(u.stops,y).forEach(function(te){return C.addColorStop(te.stop,Lt(te.color))}),b.fillStyle=C,b.fillRect(0,0,Q,Y),Q>0&&Y>0&&(k=A.ctx.createPattern(w,"repeat"),A.renderRepeat(T,k,j,K))):PX(u)&&(S=Jf(n,r,[null,null,null]),T=S[0],U=S[1],F=S[2],Q=S[3],Y=S[4],X=u.position.length===0?[$m]:u.position,j=qe(X[0],Q),K=qe(X[X.length-1],Y),oe=DX(u,j,K,Q,Y),$=oe[0],Ae=oe[1],$>0&&Ae>0&&(ce=A.ctx.createRadialGradient(U+j,F+K,0,U+j,F+K,$),Yy(u.stops,$*2).forEach(function(te){return ce.addColorStop(te.stop,Lt(te.color))}),A.path(T),A.ctx.fillStyle=ce,$!==Ae?(me=n.bounds.left+.5*n.bounds.width,Ee=n.bounds.top+.5*n.bounds.height,fe=Ae/$,ne=1/fe,A.ctx.save(),A.ctx.translate(me,Ee),A.ctx.transform(1,0,0,fe,0,0),A.ctx.translate(-me,-Ee),A.ctx.fillRect(U,ne*(F-Ee)+Ee,Q,Y*ne),A.ctx.restore()):A.ctx.fill())),N.label=6;case 6:return r--,[2]}})},A=this,s=0,o=n.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,a(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(n,r,a){return en(this,void 0,void 0,function(){return Kt(this,function(A){return this.path(k2(a,r)),this.ctx.fillStyle=Lt(n),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(n,r,a,A){return en(this,void 0,void 0,function(){var s,o;return Kt(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,a,A)]:[3,2];case 1:return l.sent(),[2];case 2:return s=Vee(A,a),this.path(s),this.ctx.fillStyle=Lt(n),this.ctx.fill(),o=Kee(A,a),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(n){return en(this,void 0,void 0,function(){var r,a,A,s,o,l,c,u,d=this;return Kt(this,function(f){switch(f.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,a=!Na(r.backgroundColor)||r.backgroundImage.length,A=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=ete(ps(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Na(r.backgroundColor)||(this.ctx.fillStyle=Lt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(h){d.ctx.save();var p=Tu(n.curves),m=h.inset?0:Xee,y=Hee(p,-m+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(d.path(p),d.ctx.clip(),d.mask(y)):(d.mask(p),d.ctx.clip(),d.path(y)),d.ctx.shadowOffsetX=h.offsetX.number+m,d.ctx.shadowOffsetY=h.offsetY.number,d.ctx.shadowColor=Lt(h.color),d.ctx.shadowBlur=h.blur.number,d.ctx.fillStyle=h.inset?Lt(h.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:o=0,l=0,c=A,f.label=3;case 3:return l<c.length?(u=c[l],u.style!==0&&!Na(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,n.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,n.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,n.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,n.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(n,r,a,A,s){return en(this,void 0,void 0,function(){var o,l,c,u,d,f,h,p,m,y,g,v,_,B,w,b,w,b;return Kt(this,function(C){return this.ctx.save(),o=$ee(A,a),l=k2(A,a),s===2&&(this.path(l),this.ctx.clip()),Pn(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Pn(l[1])?(d=l[1].end.x,f=l[1].end.y):(d=l[1].x,f=l[1].y),a===0||a===2?h=Math.abs(c-d):h=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),p=r<3?r*3:r*2,m=r<3?r*2:r,s===3&&(p=r,m=r),y=!0,h<=p*2?y=!1:h<=p*2+m?(g=h/(2*p+m),p*=g,m*=g):(v=Math.floor((h+m)/(p+m)),_=(h-v*p)/(v-1),B=(h-(v+1)*p)/v,m=B<=0||Math.abs(m-_)<Math.abs(m-B)?_:B),y&&(s===3?this.ctx.setLineDash([0,p+m]):this.ctx.setLineDash([p,m])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Lt(n),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Pn(l[0])&&(w=l[3],b=l[0],this.ctx.beginPath(),this.formatPath([new q(w.end.x,w.end.y),new q(b.start.x,b.start.y)]),this.ctx.stroke()),Pn(l[1])&&(w=l[1],b=l[2],this.ctx.beginPath(),this.formatPath([new q(w.end.x,w.end.y),new q(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(n){return en(this,void 0,void 0,function(){var r;return Kt(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Lt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=Ree(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(d3),Zee=function(e){return e instanceof Y4||e instanceof j4?!0:e instanceof jm&&e.type!==Iu&&e.type!==Fu},ete=function(e,t){switch(e){case 0:return Tu(t);case 2:return Lee(t);case 1:default:return Du(t)}},tte=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},nte=["-apple-system","system-ui"],rte=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return nte.indexOf(t)===-1}):e},ate=function(e){ar(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=r,a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),a}return t.prototype.render=function(n){return en(this,void 0,void 0,function(){var r,a;return Kt(this,function(A){switch(A.label){case 0:return r=Fp(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Ate(r)];case 1:return a=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Lt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(d3),Ate=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ste=function(){function e(t){var n=t.id,r=t.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ac([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ac([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ac([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ac([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),ite=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new ste({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new See(this,t)}return e.instanceCount=1,e}(),ote=function(e,t){return t===void 0&&(t={}),lte(e,t)};typeof window<"u"&&s3.setContext(window);var lte=function(e,t){return en(void 0,void 0,void 0,function(){var n,r,a,A,s,o,l,c,u,d,f,h,p,m,y,g,v,_,B,w,C,b,C,k,S,T,U,F,Q,Y,X,j,K,oe,$,Ae,ce,me,Ee,fe;return Kt(this,function(ne){switch(ne.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=e.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return a={allowTaint:(k=t.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(S=t.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:t.proxy,useCORS:(T=t.useCORS)!==null&&T!==void 0?T:!1},A=hp({logging:(U=t.logging)!==null&&U!==void 0?U:!0,cache:t.cache},a),s={windowWidth:(F=t.windowWidth)!==null&&F!==void 0?F:r.innerWidth,windowHeight:(Q=t.windowHeight)!==null&&Q!==void 0?Q:r.innerHeight,scrollX:(Y=t.scrollX)!==null&&Y!==void 0?Y:r.pageXOffset,scrollY:(X=t.scrollY)!==null&&X!==void 0?X:r.pageYOffset},o=new aa(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new ite(A,o),c=(j=t.foreignObjectRendering)!==null&&j!==void 0?j:!1,u={allowTaint:(K=t.allowTaint)!==null&&K!==void 0?K:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),d=new _2(l,e,u),f=d.clonedReferenceElement,f?[4,d.toIFrame(n,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=ne.sent(),p=Ym(f)||cee(f)?HY(f.ownerDocument):Ud(l,f),m=p.width,y=p.height,g=p.left,v=p.top,_=cte(l,f,t.backgroundColor),B={canvas:t.canvas,backgroundColor:_,scale:($=(oe=t.scale)!==null&&oe!==void 0?oe:r.devicePixelRatio)!==null&&$!==void 0?$:1,x:((Ae=t.x)!==null&&Ae!==void 0?Ae:0)+g,y:((ce=t.y)!==null&&ce!==void 0?ce:0)+v,width:(me=t.width)!==null&&me!==void 0?me:Math.ceil(m),height:(Ee=t.height)!==null&&Ee!==void 0?Ee:Math.ceil(y)},c?(l.logger.debug("Document cloned, using foreign object rendering"),C=new ate(l,B),[4,C.render(f)]):[3,3];case 2:return w=ne.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+g+","+v+" with size "+m+"x"+y+" using computed rendering"),l.logger.debug("Starting DOM parsing"),b=J4(l,f),_===b.styles.backgroundColor&&(b.styles.backgroundColor=Jr.TRANSPARENT),l.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),C=new Jee(l,B),[4,C.render(b)];case 4:w=ne.sent(),ne.label=5;case 5:return(!((fe=t.removeContainer)!==null&&fe!==void 0)||fe)&&(_2.destroy(h)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,w]}})})},cte=function(e,t,n){var r=t.ownerDocument,a=r.documentElement?io(e,getComputedStyle(r.documentElement).backgroundColor):Jr.TRANSPARENT,A=r.body?io(e,getComputedStyle(r.body).backgroundColor):Jr.TRANSPARENT,s=typeof n=="string"?io(e,n):n===null?Jr.TRANSPARENT:4294967295;return t===r.documentElement?Na(a)?Na(A)?s:A:a:s};const ute=i.defineComponent({__name:"CaptureButton",props:PY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);i.onMounted(()=>{At(r.value,{content:n("general.captureImage"),arrow:!0})});function a(){console.log(t.element.tagName),ote(t.element,{imageTimeout:1e4,allowTaint:!0,foreignObjectRendering:!0}).then(l=>{console.log(l),A(l.toDataURL(),"file-name.png")})}function A(l,c){const u=document.createElement("a");typeof u.download!="string"?window.open(l):(u.href=l,u.download=c,o(s,u))}function s(l){l.click()}function o(l,c){document.body.appendChild(c),l(c),document.body.removeChild(c)}return(l,c)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:a},[i.createVNode(i.unref(Ue),{icon:"camera"})],512)]))}});const dte=M(ute,[["__scopeId","data-v-4b809ad3"]]),fte={class:"deck-preview no-scrollbar"},hte={class:"top"},pte={class:"deck-buttons"},gte=i.defineComponent({__name:"DeckPreview",props:NY,setup(e){const t=e,n=i.ref(),r=i.computed(()=>t.deck?t.deck:St(t.deckCode)),a=i.computed(()=>t.cards?t.cards:rn(r.value)),A=i.computed(()=>{var s;return{"--deck-summary-background":`url(https://lor.gg/storage/cards/full-art/${(s=Pa(a.value,r.value,1)[0])==null?void 0:s.cardCode}.webp)`}});return(s,o)=>(i.openBlock(),i.createElementBlock("div",fte,[i.createElementVNode("div",hte,[i.createElementVNode("div",pte,[i.createVNode(dte,{element:n.value},null,8,["element"])]),i.createVNode(gl,i.mergeProps({class:"deck-buttons no-scrollbar"},t.deckButtonsProps),null,16)]),i.createElementVNode("div",{class:"deck-summary-wrapper",style:i.normalizeStyle(A.value),ref_key:"deckSummary",ref:n},[i.createVNode(Sd,{deck:r.value},null,8,["deck"])],4)]))}});const Rd=M(gte,[["__scopeId","data-v-57a9bfaa"]]),mte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},vte={class:"deck-highlight-eye"},Bte=i.defineComponent({__name:"DeckHighlightEye",props:mte,setup(e){const t=e,n=i.ref(null),r=i.ref(null),a=i.ref(!1),A=i.ref(!1),s=i.computed(()=>t.deck?t.deck:St(t.deckCode)),o=i.computed(()=>t.cards?t.cards:rn(s.value));i.onMounted(()=>{var c;At((c=r.value)==null?void 0:c.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",touch:!1,onShow(){a.value=!0},onCreate(u){o.value.length<1||u.popper.style.setProperty("--tippy-background",`url(https://lor.gg/storage/cards/full-art/${Pa(o.value,s.value,1)[0].cardCode}.webp)`)}})});function l(){A.value=!0}return(c,u)=>(i.openBlock(),i.createElementBlock("div",vte,[i.createVNode(i.unref(Ue),{ref_key:"eyeIcon",ref:r,icon:"eye",class:"icon",onClick:l},null,512),i.createElementVNode("div",{ref_key:"deckSummary",ref:n,class:"deck-summary-wrapper"},[a.value?(i.openBlock(),i.createBlock(Sd,{key:0,class:"deck-summary",deck:s.value,"cards-prop":o.value},null,8,["deck","cards-prop"])):i.createCommentVNode("",!0)],512),i.createVNode(KA,{"show-modal":A.value,"onUpdate:showModal":u[0]||(u[0]=d=>A.value=d)},{default:i.withCtx(()=>[i.createVNode(Rd,{cards:o.value,deck:s.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])]),_:1},8,["show-modal"])]))}});const Vd=M(Bte,[["__scopeId","data-v-78fca480"]]),yte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},wte=i.defineComponent({__name:"DeckHighlight",props:yte,setup(e){const t=e,n=i.computed(()=>t.deck?t.deck:St(t.deckCode)),r=i.computed(()=>t.cards?t.cards:rn(n.value)),a=i.computed(()=>Mu(r.value)),A=i.computed(()=>r.value.filter(s=>Qs(s)));return(s,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[i.createVNode(Xo,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),i.createVNode(Jo,{class:"deck-highlight-cards",cards:A.value,regions:a.value},null,8,["cards","regions"]),i.createVNode(Vd,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])],2))}});const Ja=M(wte,[["__scopeId","data-v-02c48ced"]]),bte={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},f3=i.defineComponent({__name:"ArchetypeSidePanel",props:bte,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=i.reactive(n.filters);i.watch(r,()=>{t("update:filters",r)});function a(){for(const[,A]of Object.entries(r))A.splice(0)}return(A,s)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":a},{default:i.withCtx(()=>[i.createVNode(Zu,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),i.createVNode(Xs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":s[0]||(s[0]=o=>r.sampleSizeFilters=o)},null,8,["filter-array"]),i.createVNode($A,{"filter-array":r.timeFilters,"onUpdate:filterArray":s[1]||(s[1]=o=>r.timeFilters=o)},null,8,["filter-array"]),i.createVNode(Js,{"filter-array":r.serverFilters,"onUpdate:filterArray":s[2]||(s[2]=o=>r.serverFilters=o)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const _te={},Cte={class:"social-links"},Ete={href:"https://discord.gg/tGTSXgDFVU"},kte={href:"https://twitter.com/LORGG__"};function Ste(e,t){const n=i.resolveComponent("FontAwesomeIcon");return i.openBlock(),i.createElementBlock("div",Cte,[i.createElementVNode("a",Ete,[i.createVNode(n,{icon:["fab","discord"],class:"social-icon"})]),i.createElementVNode("a",kte,[i.createVNode(n,{icon:["fab","twitter"],class:"social-icon"})])])}const h3=M(_te,[["render",Ste],["__scopeId","data-v-9de6c1ad"]]),xte={routerLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:"404"},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},type:{type:String,required:!0,default:"data"},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!1,default:1},wins:{type:Number,required:!1,default:1},comparedDeckCode:{type:String,required:!1,default:""},isPrivate:{type:Boolean,required:!1,default:!1},id:{type:Number,required:!1,default:1},name:{type:String,required:!1,default:""},updatedAt:{type:Number,required:!1,default:1},createdAt:{type:Number,required:!1,default:1}},Fte={..._b,difference:{type:Number,required:!0,default:1}},Ite={class:"deck-difference-item"},Ute=i.defineComponent({__name:"DeckDifferenceItem",props:Fte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Ite,[i.createVNode(nA,{"card-code-prop":t.cardCodeProp,"card-prop":t.cardProp,regions:t.regions,"ignore-card-item":t.ignoreCardItem,"router-link":t.routerLink},null,8,["card-code-prop","card-prop","regions","ignore-card-item","router-link"]),i.createElementVNode("div",{class:i.normalizeClass(["difference",t.difference>0?"positive":"negative"])},i.toDisplayString(`${t.difference>0?"+":""}${t.difference}`),3)]))}});const qm=M(Ute,[["__scopeId","data-v-cdadc542"]]),Qte={differences:{type:Array,required:!0,default:[]}},Tte={class:"deck-differences no-scrollbar"},Dte=i.defineComponent({__name:"DeckDifferences",props:Qte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Tte,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.differences,a=>(i.openBlock(),i.createBlock(qm,{key:a.cardCodeProp,"card-code-prop":a.cardCodeProp,"card-prop":a.cardProp,difference:a.difference,"ignore-card-item":a.ignoreCardItem,regions:a.regions,"router-link":a.routerLink},null,8,["card-code-prop","card-prop","difference","ignore-card-item","regions","router-link"]))),128))]))}});const Xm=M(Dte,[["__scopeId","data-v-e4cddaa9"]]),Lte=e=>(i.pushScopeId("data-v-1f181b3c"),e=e(),i.popScopeId(),e),Ote={class:"table-card-row-background-wrapper"},Mte={class:"table-card-row-background"},Nte=Lte(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Pte=[Nte],Hte={class:"decks-row wrapper"},Rte={class:"column-content"},Vte={class:"column-content"},Kte={class:"column-content"},$te={class:"column-content"},Wte={key:2,class:"column-content"},Gte={class:"column-content cost"},zte={key:3,class:"column-content deck-differences-column"},jte=i.defineComponent({__name:"DecksRow",props:xte,setup(e){const t=e,n=i.inject(RA),r=i.ref(!1),a=i.computed(()=>St(t.deckCode)),A=i.computed(()=>rn(a.value)),s=i.computed(()=>Pa(A.value,a.value,2).map(c=>`https://lor.gg/storage/cards/banner/${c.cardCode}.png`)),o=i.computed(()=>({showButtons:{deleteDeck:t.type==="built"?t.showOwnerButtons:!1,updateDeckPrivacy:t.type==="built"?t.showOwnerButtons:!1,editDeckName:t.type==="built"?t.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:t.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.type==="built"?void 0:t.archetypeRouterLink,deckId:t.type==="built"?t.id:void 0,deckName:t.type==="built"?t.name:void 0,isPrivate:t.type==="built"?t.isPrivate:void 0})),l=i.computed(()=>{const c=[];if(t.type!=="similar")return c;const u=St(t.comparedDeckCode);for(const[d,f]of Object.entries(a.value))f!==u[d]&&c.push({cardCodeProp:d,difference:f-(u[d]??0),ignoreCardItem:!1,routerLink:nn().callbacks.cardCodeRouterLinkCallback(d)});for(const[d,f]of Object.entries(u))f===a.value[d]||c.some(h=>h.cardCodeProp===d)||c.push({cardCodeProp:d,difference:(a.value[d]??0)-f,ignoreCardItem:!1,routerLink:nn().callbacks.cardCodeRouterLinkCallback(d)});return c});return(c,u)=>{const d=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(d,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>{var f;return[i.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Ote,[i.createElementVNode("div",Mte,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>(i.openBlock(),i.createElementBlock("div",{key:h,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${h})`})},Pte,4))),128))])]),i.createElementVNode("div",Hte,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:u[0]||(u[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Ja,{"deck-code":t.deckCode,deck:a.value,cards:A.value,"deck-buttons-props":{...o.value,showButtons:{...o.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck","cards","deck-buttons-props"])]),t.type==="data"||t.type==="similar"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Rte,i.toDisplayString(i.unref(Te)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)],64)):t.type==="built"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Vte,i.toDisplayString(t.name),1),i.createElementVNode("div",Kte,i.toDisplayString(i.unref(n)(t.updatedAt).fromNow()),1),i.createElementVNode("div",$te,i.toDisplayString(i.unref(n)(t.createdAt).fromNow()),1)],64)):i.createCommentVNode("",!0),t.type!=="similar"?(i.openBlock(),i.createElementBlock("div",Wte,[i.createVNode(hl,{class:"mana-curve-chart","deck-code":t.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!1,animation:!1},null,8,["deck-code"])])):i.createCommentVNode("",!0),i.createElementVNode("div",Gte,i.toDisplayString((f=i.unref(Yc)(a.value,!0)??i.unref(Yc)(a.value,!1))==null?void 0:f.toLocaleString()),1),t.type==="similar"?(i.openBlock(),i.createElementBlock("div",zte,[i.createVNode(Xm,{differences:l.value},null,8,["differences"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["column-content options-button",r.value?"show":"hide"]),onClick:u[2]||(u[2]=i.withModifiers(h=>r.value=!r.value,["stop","prevent"]))},[i.createVNode(gl,i.mergeProps({onClick:u[1]||(u[1]=i.withModifiers(()=>{},["stop","prevent"])),class:"deck-buttons"},o.value),null,16),i.createVNode(i.unref(Ue),{icon:"ellipsis-v"})],2)])],4)]}),_:1},8,["to"])}}});const Bl=M(jte,[["__scopeId","data-v-1f181b3c"]]),Yte={},qte={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},Xte=i.createStaticVNode('<g fill="none" stroke-miterlimit="10" style="mix-blend-mode:normal;"><g stroke="var(--color-primary-2)" stroke-width="20" stroke-linejoin="round"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M86 16.65C47.761 16.65 16.65 47.76 16.65 86c0 38.239 31.111 69.35 69.35 69.35 38.239 0 69.35-31.111 69.35-69.35 0-38.239-31.111-69.35-69.35-69.35m0-3.853c40.427 0 73.203 32.776 73.203 73.203S126.427 159.203 86 159.203 12.797 126.427 12.797 86 45.573 12.797 86 12.797z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M93.706 55.178a7.706 7.706 0 1 1-15.412 0 7.706 7.706 0 0 1 15.412 0zM97.558 120.675v3.853H74.442v-3.853h3.852v-42.38h-3.852v-3.853h19.264v46.233z" fill="var(--color-primary-2)" stroke-width="17.92"></path></g><path d="M8.944 163.056V8.944h154.112v154.112z"></path><g stroke-width="1" stroke-linejoin="miter"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-background-1)"></path><path d="M86 16.65c38.239 0 69.35 31.111 69.35 69.35 0 38.239-31.111 69.35-69.35 69.35-38.239 0-69.35-31.111-69.35-69.35 0-38.239 31.111-69.35 69.35-69.35m0-3.853c-40.427 0-73.203 32.776-73.203 73.203S45.573 159.203 86 159.203 159.203 126.427 159.203 86 126.427 12.797 86 12.797z" fill="var(--color-background-1)"></path><path d="M86 47.472a7.706 7.706 0 1 0 0 15.411 7.706 7.706 0 0 0 0-15.411zM93.706 120.675V74.442H74.442v3.852h3.852v42.381h-3.852v3.853h23.116v-3.853z" fill="var(--color-primary-2)"></path></g></g>',1),Jte=[Xte];function Zte(e,t){return i.openBlock(),i.createElementBlock("svg",qte,Jte)}const Jm=M(Yte,[["render",Zte]]),ene={...hb,routerLink:{type:Object,required:!0,default:{path:"/404"}}},tne={class:"card-item-link-wrapper"},nne={key:0,class:"card-item-wrapper"},rne={key:1,class:"card-item-wrapper"},ane={class:"link-icon"},Ane=i.defineComponent({__name:"CardItemLinkWrapper",props:ene,setup(e){const t=e;return(n,r)=>{const a=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",tne,[n.isDeckBuilder?(i.openBlock(),i.createElementBlock("div",rne,[i.createVNode(Wa,i.normalizeProps(i.guardReactiveProps(t)),null,16),i.createVNode(a,{class:"link-icon-link",to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("div",ane,[i.createVNode(Jm)])]),_:1},8,["to"])])):(i.openBlock(),i.createElementBlock("div",nne,[i.createVNode(a,{to:t.routerLink},{default:i.withCtx(()=>[i.createVNode(Wa,i.normalizeProps(i.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const Zm=M(Ane,[["__scopeId","data-v-89823586"]]),sne={name:{type:String,required:!0,default:""}},ine={class:"profile-dropdown-wrapper"},one=i.defineComponent({__name:"ProfileDropdown",props:sne,setup(e){const t=e,n=i.ref(),r=i.ref();return i.onMounted(()=>{At(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,A)=>(i.openBlock(),i.createElementBlock("div",ine,[i.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},i.toDisplayString(t.name),513),i.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const e1=M(one,[["__scopeId","data-v-1c516824"]]),lne={class:"navigation-top-desktop"},cne={class:"left content"},une={class:"right content"},dne={key:1,class:"fancy-button"},fne=i.defineComponent({__name:"NavigationTopDesktop",props:pb,setup(e){const t=e;return(n,r)=>{var a;return i.openBlock(),i.createElementBlock("div",lne,[i.createElementVNode("div",cne,[i.createVNode(Yu,{"fetch-seach-result":t.fetchSeachResult,class:"search-bar"},null,8,["fetch-seach-result"]),i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",une,[i.createVNode(mg,{class:"social-links"}),i.createVNode(Dg,{class:"language-selection"}),i.unref(wa)().user?(i.openBlock(),i.createBlock(e1,{key:0,name:(a=i.unref(wa)().user)==null?void 0:a.name},null,8,["name"])):(i.openBlock(),i.createElementBlock("div",dne,"Sign In"))])])}}});const t1=M(fne,[["__scopeId","data-v-512a68ce"]]),hne={card:{type:Object,required:!0,default:{associatedCardRefs:["06NX013T1"],regionRefs:["Noxus","06RU002"],attack:1,cost:2,health:1,description:"<link=keyword.PlaySkillMark><sprite name=SkillMark><style=Keyword>Play</style></link>: <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stun</style></link> an enemy or if it's already <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stunned</style></link> deal 2 to it instead.",descriptionRaw:"Play: Stun an enemy or if it's already Stunned deal 2 to it instead.",levelupDescription:"",levelupDescriptionRaw:"",flavorText:`"Student: Sydell Kythera
875
+ .`+Dp+Cee+C2)},kee=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},s3=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),See=function(){function e(t,n){this.context=t,this._options=n,this._cache={}}return e.prototype.addImage=function(t){var n=Promise.resolve();return this.has(t)||(Xf(t)||Uee(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),n},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return en(this,void 0,void 0,function(){var n,r,a,A,s=this;return Kt(this,function(o){switch(o.label){case 0:return n=s3.isSameOrigin(t),r=!qf(t)&&this._options.useCORS===!0&&Ht.SUPPORT_CORS_IMAGES&&!n,a=!qf(t)&&!n&&!Xf(t)&&typeof this._options.proxy=="string"&&Ht.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!qf(t)&&!Xf(t)&&!a&&!r?[2]:(A=t,a?[4,this.proxy(A)]:[3,2]);case 1:A=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var u=new Image;u.onload=function(){return l(u)},u.onerror=c,(Qee(A)||r)&&(u.crossOrigin="anonymous"),u.src=A,u.complete===!0&&setTimeout(function(){return l(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(A,s){var o=Ht.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")A(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return A(d.result)},!1),d.addEventListener("error",function(f){return s(f)},!1),d.readAsDataURL(l.response)}else s("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),n._options.imageTimeout){var u=n._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+a)}}l.send()})},e}(),xee=/^data:image\/svg\+xml/i,Fee=/^data:image\/.*;base64,/i,Iee=/^data:image\/.*/i,Uee=function(e){return Ht.SUPPORT_SVG_DRAWING||!Tee(e)},qf=function(e){return Iee.test(e)},Qee=function(e){return Fee.test(e)},Xf=function(e){return e.substr(0,4)==="blob"},Tee=function(e){return e.substr(-3).toLowerCase()==="svg"||xee.test(e)},q=function(){function e(t,n){this.type=0,this.x=t,this.y=n}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),cs=function(e,t,n){return new q(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Cc=function(){function e(t,n,r,a){this.type=1,this.start=t,this.startControl=n,this.endControl=r,this.end=a}return e.prototype.subdivide=function(t,n){var r=cs(this.start,this.startControl,t),a=cs(this.startControl,this.endControl,t),A=cs(this.endControl,this.end,t),s=cs(r,a,t),o=cs(a,A,t),l=cs(s,o,t);return n?new e(this.start,r,s,l):new e(l,o,A,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Pn=function(e){return e.type===1},Dee=function(){function e(t){var n=t.styles,r=t.bounds,a=Mi(n.borderTopLeftRadius,r.width,r.height),A=a[0],s=a[1],o=Mi(n.borderTopRightRadius,r.width,r.height),l=o[0],c=o[1],u=Mi(n.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],h=Mi(n.borderBottomLeftRadius,r.width,r.height),p=h[0],m=h[1],y=[];y.push((A+l)/r.width),y.push((p+d)/r.width),y.push((s+m)/r.height),y.push((c+f)/r.height);var g=Math.max.apply(Math,y);g>1&&(A/=g,s/=g,l/=g,c/=g,d/=g,f/=g,p/=g,m/=g);var v=r.width-l,_=r.height-f,B=r.width-d,w=r.height-m,b=n.borderTopWidth,C=n.borderRightWidth,k=n.borderBottomWidth,S=n.borderLeftWidth,T=qe(n.paddingTop,t.bounds.width),U=qe(n.paddingRight,t.bounds.width),F=qe(n.paddingBottom,t.bounds.width),Q=qe(n.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||s>0?lt(r.left+S/3,r.top+b/3,A-S/3,s-b/3,Re.TOP_LEFT):new q(r.left+S/3,r.top+b/3),this.topRightBorderDoubleOuterBox=A>0||s>0?lt(r.left+v,r.top+b/3,l-C/3,c-b/3,Re.TOP_RIGHT):new q(r.left+r.width-C/3,r.top+b/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?lt(r.left+B,r.top+_,d-C/3,f-k/3,Re.BOTTOM_RIGHT):new q(r.left+r.width-C/3,r.top+r.height-k/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?lt(r.left+S/3,r.top+w,p-S/3,m-k/3,Re.BOTTOM_LEFT):new q(r.left+S/3,r.top+r.height-k/3),this.topLeftBorderDoubleInnerBox=A>0||s>0?lt(r.left+S*2/3,r.top+b*2/3,A-S*2/3,s-b*2/3,Re.TOP_LEFT):new q(r.left+S*2/3,r.top+b*2/3),this.topRightBorderDoubleInnerBox=A>0||s>0?lt(r.left+v,r.top+b*2/3,l-C*2/3,c-b*2/3,Re.TOP_RIGHT):new q(r.left+r.width-C*2/3,r.top+b*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?lt(r.left+B,r.top+_,d-C*2/3,f-k*2/3,Re.BOTTOM_RIGHT):new q(r.left+r.width-C*2/3,r.top+r.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?lt(r.left+S*2/3,r.top+w,p-S*2/3,m-k*2/3,Re.BOTTOM_LEFT):new q(r.left+S*2/3,r.top+r.height-k*2/3),this.topLeftBorderStroke=A>0||s>0?lt(r.left+S/2,r.top+b/2,A-S/2,s-b/2,Re.TOP_LEFT):new q(r.left+S/2,r.top+b/2),this.topRightBorderStroke=A>0||s>0?lt(r.left+v,r.top+b/2,l-C/2,c-b/2,Re.TOP_RIGHT):new q(r.left+r.width-C/2,r.top+b/2),this.bottomRightBorderStroke=d>0||f>0?lt(r.left+B,r.top+_,d-C/2,f-k/2,Re.BOTTOM_RIGHT):new q(r.left+r.width-C/2,r.top+r.height-k/2),this.bottomLeftBorderStroke=p>0||m>0?lt(r.left+S/2,r.top+w,p-S/2,m-k/2,Re.BOTTOM_LEFT):new q(r.left+S/2,r.top+r.height-k/2),this.topLeftBorderBox=A>0||s>0?lt(r.left,r.top,A,s,Re.TOP_LEFT):new q(r.left,r.top),this.topRightBorderBox=l>0||c>0?lt(r.left+v,r.top,l,c,Re.TOP_RIGHT):new q(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||f>0?lt(r.left+B,r.top+_,d,f,Re.BOTTOM_RIGHT):new q(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=p>0||m>0?lt(r.left,r.top+w,p,m,Re.BOTTOM_LEFT):new q(r.left,r.top+r.height),this.topLeftPaddingBox=A>0||s>0?lt(r.left+S,r.top+b,Math.max(0,A-S),Math.max(0,s-b),Re.TOP_LEFT):new q(r.left+S,r.top+b),this.topRightPaddingBox=l>0||c>0?lt(r.left+Math.min(v,r.width-C),r.top+b,v>r.width+C?0:Math.max(0,l-C),Math.max(0,c-b),Re.TOP_RIGHT):new q(r.left+r.width-C,r.top+b),this.bottomRightPaddingBox=d>0||f>0?lt(r.left+Math.min(B,r.width-S),r.top+Math.min(_,r.height-k),Math.max(0,d-C),Math.max(0,f-k),Re.BOTTOM_RIGHT):new q(r.left+r.width-C,r.top+r.height-k),this.bottomLeftPaddingBox=p>0||m>0?lt(r.left+S,r.top+Math.min(w,r.height-k),Math.max(0,p-S),Math.max(0,m-k),Re.BOTTOM_LEFT):new q(r.left+S,r.top+r.height-k),this.topLeftContentBox=A>0||s>0?lt(r.left+S+Q,r.top+b+T,Math.max(0,A-(S+Q)),Math.max(0,s-(b+T)),Re.TOP_LEFT):new q(r.left+S+Q,r.top+b+T),this.topRightContentBox=l>0||c>0?lt(r.left+Math.min(v,r.width+S+Q),r.top+b+T,v>r.width+S+Q?0:l-S+Q,c-(b+T),Re.TOP_RIGHT):new q(r.left+r.width-(C+U),r.top+b+T),this.bottomRightContentBox=d>0||f>0?lt(r.left+Math.min(B,r.width-(S+Q)),r.top+Math.min(_,r.height+b+T),Math.max(0,d-(C+U)),f-(k+F),Re.BOTTOM_RIGHT):new q(r.left+r.width-(C+U),r.top+r.height-(k+F)),this.bottomLeftContentBox=p>0||m>0?lt(r.left+S+Q,r.top+w,Math.max(0,p-(S+Q)),m-(k+F),Re.BOTTOM_LEFT):new q(r.left+S+Q,r.top+r.height-(k+F))}return e}(),Re;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Re||(Re={}));var lt=function(e,t,n,r,a){var A=4*((Math.sqrt(2)-1)/3),s=n*A,o=r*A,l=e+n,c=t+r;switch(a){case Re.TOP_LEFT:return new Cc(new q(e,c),new q(e,c-o),new q(l-s,t),new q(l,t));case Re.TOP_RIGHT:return new Cc(new q(e,t),new q(e+s,t),new q(l,c-o),new q(l,c));case Re.BOTTOM_RIGHT:return new Cc(new q(l,t),new q(l,t+o),new q(e+s,c),new q(e,c));case Re.BOTTOM_LEFT:default:return new Cc(new q(l,c),new q(l-s,c),new q(e,t+o),new q(e,t))}},Tu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Lee=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Du=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Oee=function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e}(),Ec=function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e}(),Mee=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),Nee=function(e){return e.type===0},i3=function(e){return e.type===1},Pee=function(e){return e.type===2},E2=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},Hee=function(e,t,n,r,a){return e.map(function(A,s){switch(s){case 0:return A.add(t,n);case 1:return A.add(t+r,n);case 2:return A.add(t+r,n+a);case 3:return A.add(t,n+a)}return A})},o3=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),l3=function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new Dee(this.container),this.container.styles.opacity<1&&this.effects.push(new Mee(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new Oee(r,a,A))}if(this.container.styles.overflowX!==0){var s=Tu(this.curves),o=Du(this.curves);E2(s,o)?this.effects.push(new Ec(s,6)):(this.effects.push(new Ec(s,2)),this.effects.push(new Ec(o,4)))}}return e.prototype.getEffects=function(t){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,a=this.effects.slice(0);r;){var A=r.effects.filter(function(l){return!i3(l)});if(n||r.container.styles.position!==0||!r.parent){if(a.unshift.apply(a,A),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Tu(r.curves),o=Du(r.curves);E2(s,o)||a.unshift(new Ec(o,6))}}else a.unshift.apply(a,A);r=r.parent}return a.filter(function(l){return It(l.target,t)})},e}(),Lp=function(e,t,n,r){e.container.elements.forEach(function(a){var A=It(a.flags,4),s=It(a.flags,2),o=new l3(a,e);It(a.styles.display,2048)&&r.push(o);var l=It(a.flags,8)?[]:r;if(A||s){var c=A||a.styles.isPositioned()?n:t,u=new o3(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some(function(p,m){return d>p.element.container.styles.zIndex.order?(f=m,!1):f>0}),c.negativeZIndex.splice(f,0,u)}else if(d>0){var h=0;c.positiveZIndex.some(function(p,m){return d>=p.element.container.styles.zIndex.order?(h=m+1,!1):h>0}),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Lp(o,u,A?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Lp(o,t,n,l);It(a.flags,8)&&c3(a,l)})},c3=function(e,t){for(var n=e instanceof Ip?e.start:1,r=e instanceof Ip?e.reversed:!1,a=0;a<t.length;a++){var A=t[a];A.container instanceof z4&&typeof A.container.value=="number"&&A.container.value!==0&&(n=A.container.value),A.listValue=Po(n,A.container.styles.listStyleType,!0),n+=r?-1:1}},Ree=function(e){var t=new l3(e,null),n=new o3(t),r=[];return Lp(t,n,n,r),c3(t.container,r),n},k2=function(e,t){switch(t){case 0:return Rn(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Rn(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Rn(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Rn(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Vee=function(e,t){switch(t){case 0:return Rn(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Rn(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Rn(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Rn(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},Kee=function(e,t){switch(t){case 0:return Rn(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Rn(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Rn(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Rn(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},$ee=function(e,t){switch(t){case 0:return kc(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return kc(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return kc(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return kc(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},kc=function(e,t){var n=[];return Pn(e)?n.push(e.subdivide(.5,!1)):n.push(e),Pn(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Rn=function(e,t,n,r){var a=[];return Pn(e)?a.push(e.subdivide(.5,!1)):a.push(e),Pn(n)?a.push(n.subdivide(.5,!0)):a.push(n),Pn(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Pn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},u3=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Lu=function(e){var t=e.styles,n=e.bounds,r=qe(t.paddingLeft,n.width),a=qe(t.paddingRight,n.width),A=qe(t.paddingTop,n.width),s=qe(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,A+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+a),-(t.borderTopWidth+t.borderBottomWidth+A+s))},Wee=function(e,t){return e===0?t.bounds:e===2?Lu(t):u3(t)},Gee=function(e,t){return e===0?t.bounds:e===2?Lu(t):u3(t)},Jf=function(e,t,n){var r=Wee(ps(e.styles.backgroundOrigin,t),e),a=Gee(ps(e.styles.backgroundClip,t),e),A=zee(ps(e.styles.backgroundSize,t),n,r),s=A[0],o=A[1],l=Mi(ps(e.styles.backgroundPosition,t),r.width-s,r.height-o),c=jee(ps(e.styles.backgroundRepeat,t),l,A,r,a),u=Math.round(r.left+l[0]),d=Math.round(r.top+l[1]);return[c,u,d,s,o]},us=function(e){return We(e)&&e.value===xs.AUTO},Sc=function(e){return typeof e=="number"},zee=function(e,t,n){var r=t[0],a=t[1],A=t[2],s=e[0],o=e[1];if(!s)return[0,0];if(Ct(s)&&o&&Ct(o))return[qe(s,n.width),qe(o,n.height)];var l=Sc(A);if(We(s)&&(s.value===xs.CONTAIN||s.value===xs.COVER)){if(Sc(A)){var c=n.width/n.height;return c<A!=(s.value===xs.COVER)?[n.width,n.width/A]:[n.height*A,n.height]}return[n.width,n.height]}var u=Sc(r),d=Sc(a),f=u||d;if(us(s)&&(!o||us(o))){if(u&&d)return[r,a];if(!l&&!f)return[n.width,n.height];if(f&&l){var h=u?r:a*A,p=d?a:r/A;return[h,p]}var m=u?r:n.width,y=d?a:n.height;return[m,y]}if(l){var g=0,v=0;return Ct(s)?g=qe(s,n.width):Ct(o)&&(v=qe(o,n.height)),us(s)?g=v*A:(!o||us(o))&&(v=g/A),[g,v]}var _=null,B=null;if(Ct(s)?_=qe(s,n.width):o&&Ct(o)&&(B=qe(o,n.height)),_!==null&&(!o||us(o))&&(B=u&&d?_/r*a:n.height),B!==null&&us(s)&&(_=u&&d?B/a*r:n.width),_!==null&&B!==null)return[_,B];throw new Error("Unable to calculate background-size for element")},ps=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},jee=function(e,t,n,r,a){var A=t[0],s=t[1],o=n[0],l=n[1];switch(e){case 2:return[new q(Math.round(r.left),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(l+r.top+s)),new q(Math.round(r.left),Math.round(l+r.top+s))];case 3:return[new q(Math.round(r.left+A),Math.round(r.top)),new q(Math.round(r.left+A+o),Math.round(r.top)),new q(Math.round(r.left+A+o),Math.round(r.height+r.top)),new q(Math.round(r.left+A),Math.round(r.height+r.top))];case 1:return[new q(Math.round(r.left+A),Math.round(r.top+s)),new q(Math.round(r.left+A+o),Math.round(r.top+s)),new q(Math.round(r.left+A+o),Math.round(r.top+s+l)),new q(Math.round(r.left+A),Math.round(r.top+s+l))];default:return[new q(Math.round(a.left),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.height+a.top)),new q(Math.round(a.left),Math.round(a.height+a.top))]}},Yee="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",S2="Hidden Text",qee=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,n){var r=this._document.createElement("div"),a=this._document.createElement("img"),A=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),a.src=Yee,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",A.style.fontFamily=t,A.style.fontSize=n,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode(S2)),r.appendChild(A),r.appendChild(a);var o=a.offsetTop-A.offsetTop+2;r.removeChild(A),r.appendChild(this._document.createTextNode(S2)),r.style.lineHeight="normal",a.style.verticalAlign="super";var l=a.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:l}},e.prototype.getMetrics=function(t,n){var r=t+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,n)),this._data[r]},e}(),d3=function(){function e(t,n){this.context=t,this.options=n}return e}(),Xee=1e4,Jee=function(e){ar(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a._activeEffects=[],a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),r.canvas||(a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px"),a.fontMetrics=new qee(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),a}return t.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(a){return r.applyEffect(a)})},t.prototype.applyEffect=function(n){this.ctx.save(),Pee(n)&&(this.ctx.globalAlpha=n.opacity),Nee(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),i3(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(n){return en(this,void 0,void 0,function(){var r;return Kt(this,function(a){switch(a.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(n){return en(this,void 0,void 0,function(){return Kt(this,function(r){switch(r.label){case 0:if(It(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(n,r,a){var A=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+a);else{var s=zm(n.text);s.reduce(function(o,l){return A.ctx.fillText(l,o,n.bounds.top+a),o+A.ctx.measureText(l).width},n.bounds.left)}},t.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),a=rte(n.fontFamily).join(", "),A=vl(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,A,a].join(" "),a,A]},t.prototype.renderTextNode=function(n,r){return en(this,void 0,void 0,function(){var a,A,s,o,l,c,u,d,f=this;return Kt(this,function(h){return a=this.createFontStyle(r),A=a[0],s=a[1],o=a[2],this.ctx.font=A,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,u=l.middle,d=r.paintOrder,n.textBounds.forEach(function(p){d.forEach(function(m){switch(m){case 0:f.ctx.fillStyle=Lt(r.color),f.renderTextWithLetterSpacing(p,r.letterSpacing,c);var y=r.textShadow;y.length&&p.text.trim().length&&(y.slice(0).reverse().forEach(function(g){f.ctx.shadowColor=Lt(g.color),f.ctx.shadowOffsetX=g.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=g.offsetY.number*f.options.scale,f.ctx.shadowBlur=g.blur.number,f.renderTextWithLetterSpacing(p,r.letterSpacing,c)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=Lt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(g){switch(g){case 1:f.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+c),p.bounds.width,1);break;case 2:f.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:f.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+u),p.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&p.text.trim().length&&(f.ctx.strokeStyle=Lt(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+c)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(n,r,a){if(a&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var A=Lu(n),s=Du(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,n.intrinsicWidth,n.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(n){return en(this,void 0,void 0,function(){var r,a,A,s,o,l,v,v,c,u,d,f,B,h,p,w,m,y,g,v,_,B,w;return Kt(this,function(b){switch(b.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,A=r.styles,s=0,o=r.textNodes,b.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,A)]):[3,4];case 2:b.sent(),b.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof $4))return[3,8];b.label=5;case 5:return b.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=b.sent(),this.renderReplacedElement(r,a,v),[3,8];case 7:return b.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof W4&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof G4))return[3,12];b.label=9;case 9:return b.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=b.sent(),this.renderReplacedElement(r,a,v),[3,12];case 11:return b.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof q4&&r.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:u=b.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),b.label=14;case 14:if(r instanceof jm&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===Fu?r.checked&&(this.ctx.save(),this.path([new q(r.bounds.left+d*.39363,r.bounds.top+d*.79),new q(r.bounds.left+d*.16,r.bounds.top+d*.5549),new q(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new q(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new q(r.bounds.left+d*.72983,r.bounds.top+d*.23),new q(r.bounds.left+d*.84,r.bounds.top+d*.34085),new q(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=Lt(h2),this.ctx.fill(),this.ctx.restore()):r.type===Iu&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Lt(h2),this.ctx.fill(),this.ctx.restore())),Zee(r)&&r.value.length){switch(f=this.createFontStyle(A),B=f[0],h=f[1],p=this.fontMetrics.getMetrics(B,h).baseline,this.ctx.font=B,this.ctx.fillStyle=Lt(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=tte(r.styles.textAlign),w=Lu(r),m=0,r.styles.textAlign){case 1:m+=w.width/2;break;case 2:m+=w.width;break}y=w.add(m,0,0,-w.height/2+1),this.ctx.save(),this.path([new q(w.left,w.top),new q(w.left+w.width,w.top),new q(w.left+w.width,w.top+w.height),new q(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new lo(r.value,y),A.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!It(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(g=r.styles.listStyleImage,g.type!==0)return[3,18];v=void 0,_=g.url,b.label=15;case 15:return b.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return v=b.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return b.sent(),this.context.logger.error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(B=this.createFontStyle(A)[0],this.ctx.font=B,this.ctx.fillStyle=Lt(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new aa(r.bounds.left,r.bounds.top+qe(r.styles.paddingTop,r.bounds.width),r.bounds.width,Xy(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new lo(n.listValue,w),A.letterSpacing,Xy(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),b.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(n){return en(this,void 0,void 0,function(){var r,a,g,A,s,g,o,l,g,c,u,g,d,f,g,h,p,g,m,y,g;return Kt(this,function(v){switch(v.label){case 0:if(It(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:v.sent(),r=0,a=n.negativeZIndex,v.label=2;case 2:return r<a.length?(g=a[r],[4,this.renderStack(g)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:v.sent(),A=0,s=n.nonInlineLevel,v.label=7;case 7:return A<s.length?(g=s[A],[4,this.renderNode(g)]):[3,10];case 8:v.sent(),v.label=9;case 9:return A++,[3,7];case 10:o=0,l=n.nonPositionedFloats,v.label=11;case 11:return o<l.length?(g=l[o],[4,this.renderStack(g)]):[3,14];case 12:v.sent(),v.label=13;case 13:return o++,[3,11];case 14:c=0,u=n.nonPositionedInlineLevel,v.label=15;case 15:return c<u.length?(g=u[c],[4,this.renderStack(g)]):[3,18];case 16:v.sent(),v.label=17;case 17:return c++,[3,15];case 18:d=0,f=n.inlineLevel,v.label=19;case 19:return d<f.length?(g=f[d],[4,this.renderNode(g)]):[3,22];case 20:v.sent(),v.label=21;case 21:return d++,[3,19];case 22:h=0,p=n.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return h<p.length?(g=p[h],[4,this.renderStack(g)]):[3,26];case 24:v.sent(),v.label=25;case 25:return h++,[3,23];case 26:m=0,y=n.positiveZIndex,v.label=27;case 27:return m<y.length?(g=y[m],[4,this.renderStack(g)]):[3,30];case 28:v.sent(),v.label=29;case 29:return m++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},t.prototype.formatPath=function(n){var r=this;n.forEach(function(a,A){var s=Pn(a)?a.start:a;A===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Pn(a)&&r.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},t.prototype.renderRepeat=function(n,r,a,A){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(a,A),this.ctx.fill(),this.ctx.translate(-a,-A)},t.prototype.resizeImage=function(n,r,a){var A;if(n.width===r&&n.height===a)return n;var s=(A=this.canvas.ownerDocument)!==null&&A!==void 0?A:document,o=s.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,a);var l=o.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,a),o},t.prototype.renderBackgroundImage=function(n){return en(this,void 0,void 0,function(){var r,a,A,s,o,l;return Kt(this,function(c){switch(c.label){case 0:r=n.styles.backgroundImage.length-1,a=function(u){var d,f,h,T,j,K,Q,Y,k,p,T,j,K,Q,Y,m,y,g,v,_,B,w,b,C,k,S,T,U,F,Q,Y,X,j,K,oe,$,Ae,ce,me,Ee,fe,ne;return Kt(this,function(N){switch(N.label){case 0:if(u.type!==0)return[3,5];d=void 0,f=u.url,N.label=1;case 1:return N.trys.push([1,3,,4]),[4,A.context.cache.match(f)];case 2:return d=N.sent(),[3,4];case 3:return N.sent(),A.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(h=Jf(n,r,[d.width,d.height,d.width/d.height]),T=h[0],j=h[1],K=h[2],Q=h[3],Y=h[4],k=A.ctx.createPattern(A.resizeImage(d,Q,Y),"repeat"),A.renderRepeat(T,k,j,K)),[3,6];case 5:NX(u)?(p=Jf(n,r,[null,null,null]),T=p[0],j=p[1],K=p[2],Q=p[3],Y=p[4],m=TX(u.angle,Q,Y),y=m[0],g=m[1],v=m[2],_=m[3],B=m[4],w=document.createElement("canvas"),w.width=Q,w.height=Y,b=w.getContext("2d"),C=b.createLinearGradient(g,_,v,B),Yy(u.stops,y).forEach(function(te){return C.addColorStop(te.stop,Lt(te.color))}),b.fillStyle=C,b.fillRect(0,0,Q,Y),Q>0&&Y>0&&(k=A.ctx.createPattern(w,"repeat"),A.renderRepeat(T,k,j,K))):PX(u)&&(S=Jf(n,r,[null,null,null]),T=S[0],U=S[1],F=S[2],Q=S[3],Y=S[4],X=u.position.length===0?[$m]:u.position,j=qe(X[0],Q),K=qe(X[X.length-1],Y),oe=DX(u,j,K,Q,Y),$=oe[0],Ae=oe[1],$>0&&Ae>0&&(ce=A.ctx.createRadialGradient(U+j,F+K,0,U+j,F+K,$),Yy(u.stops,$*2).forEach(function(te){return ce.addColorStop(te.stop,Lt(te.color))}),A.path(T),A.ctx.fillStyle=ce,$!==Ae?(me=n.bounds.left+.5*n.bounds.width,Ee=n.bounds.top+.5*n.bounds.height,fe=Ae/$,ne=1/fe,A.ctx.save(),A.ctx.translate(me,Ee),A.ctx.transform(1,0,0,fe,0,0),A.ctx.translate(-me,-Ee),A.ctx.fillRect(U,ne*(F-Ee)+Ee,Q,Y*ne),A.ctx.restore()):A.ctx.fill())),N.label=6;case 6:return r--,[2]}})},A=this,s=0,o=n.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,a(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(n,r,a){return en(this,void 0,void 0,function(){return Kt(this,function(A){return this.path(k2(a,r)),this.ctx.fillStyle=Lt(n),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(n,r,a,A){return en(this,void 0,void 0,function(){var s,o;return Kt(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,a,A)]:[3,2];case 1:return l.sent(),[2];case 2:return s=Vee(A,a),this.path(s),this.ctx.fillStyle=Lt(n),this.ctx.fill(),o=Kee(A,a),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(n){return en(this,void 0,void 0,function(){var r,a,A,s,o,l,c,u,d=this;return Kt(this,function(f){switch(f.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,a=!Na(r.backgroundColor)||r.backgroundImage.length,A=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=ete(ps(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Na(r.backgroundColor)||(this.ctx.fillStyle=Lt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(h){d.ctx.save();var p=Tu(n.curves),m=h.inset?0:Xee,y=Hee(p,-m+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(d.path(p),d.ctx.clip(),d.mask(y)):(d.mask(p),d.ctx.clip(),d.path(y)),d.ctx.shadowOffsetX=h.offsetX.number+m,d.ctx.shadowOffsetY=h.offsetY.number,d.ctx.shadowColor=Lt(h.color),d.ctx.shadowBlur=h.blur.number,d.ctx.fillStyle=h.inset?Lt(h.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:o=0,l=0,c=A,f.label=3;case 3:return l<c.length?(u=c[l],u.style!==0&&!Na(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,n.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,n.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,n.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,n.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(n,r,a,A,s){return en(this,void 0,void 0,function(){var o,l,c,u,d,f,h,p,m,y,g,v,_,B,w,b,w,b;return Kt(this,function(C){return this.ctx.save(),o=$ee(A,a),l=k2(A,a),s===2&&(this.path(l),this.ctx.clip()),Pn(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Pn(l[1])?(d=l[1].end.x,f=l[1].end.y):(d=l[1].x,f=l[1].y),a===0||a===2?h=Math.abs(c-d):h=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),p=r<3?r*3:r*2,m=r<3?r*2:r,s===3&&(p=r,m=r),y=!0,h<=p*2?y=!1:h<=p*2+m?(g=h/(2*p+m),p*=g,m*=g):(v=Math.floor((h+m)/(p+m)),_=(h-v*p)/(v-1),B=(h-(v+1)*p)/v,m=B<=0||Math.abs(m-_)<Math.abs(m-B)?_:B),y&&(s===3?this.ctx.setLineDash([0,p+m]):this.ctx.setLineDash([p,m])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Lt(n),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Pn(l[0])&&(w=l[3],b=l[0],this.ctx.beginPath(),this.formatPath([new q(w.end.x,w.end.y),new q(b.start.x,b.start.y)]),this.ctx.stroke()),Pn(l[1])&&(w=l[1],b=l[2],this.ctx.beginPath(),this.formatPath([new q(w.end.x,w.end.y),new q(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(n){return en(this,void 0,void 0,function(){var r;return Kt(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Lt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=Ree(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(d3),Zee=function(e){return e instanceof Y4||e instanceof j4?!0:e instanceof jm&&e.type!==Iu&&e.type!==Fu},ete=function(e,t){switch(e){case 0:return Tu(t);case 2:return Lee(t);case 1:default:return Du(t)}},tte=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},nte=["-apple-system","system-ui"],rte=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return nte.indexOf(t)===-1}):e},ate=function(e){ar(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=r,a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),a}return t.prototype.render=function(n){return en(this,void 0,void 0,function(){var r,a;return Kt(this,function(A){switch(A.label){case 0:return r=Fp(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Ate(r)];case 1:return a=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Lt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(d3),Ate=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ste=function(){function e(t){var n=t.id,r=t.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ac([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ac([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ac([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ac([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),ite=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new ste({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new See(this,t)}return e.instanceCount=1,e}(),ote=function(e,t){return t===void 0&&(t={}),lte(e,t)};typeof window<"u"&&s3.setContext(window);var lte=function(e,t){return en(void 0,void 0,void 0,function(){var n,r,a,A,s,o,l,c,u,d,f,h,p,m,y,g,v,_,B,w,C,b,C,k,S,T,U,F,Q,Y,X,j,K,oe,$,Ae,ce,me,Ee,fe;return Kt(this,function(ne){switch(ne.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=e.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return a={allowTaint:(k=t.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(S=t.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:t.proxy,useCORS:(T=t.useCORS)!==null&&T!==void 0?T:!1},A=hp({logging:(U=t.logging)!==null&&U!==void 0?U:!0,cache:t.cache},a),s={windowWidth:(F=t.windowWidth)!==null&&F!==void 0?F:r.innerWidth,windowHeight:(Q=t.windowHeight)!==null&&Q!==void 0?Q:r.innerHeight,scrollX:(Y=t.scrollX)!==null&&Y!==void 0?Y:r.pageXOffset,scrollY:(X=t.scrollY)!==null&&X!==void 0?X:r.pageYOffset},o=new aa(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new ite(A,o),c=(j=t.foreignObjectRendering)!==null&&j!==void 0?j:!1,u={allowTaint:(K=t.allowTaint)!==null&&K!==void 0?K:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),d=new _2(l,e,u),f=d.clonedReferenceElement,f?[4,d.toIFrame(n,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=ne.sent(),p=Ym(f)||cee(f)?HY(f.ownerDocument):Ud(l,f),m=p.width,y=p.height,g=p.left,v=p.top,_=cte(l,f,t.backgroundColor),B={canvas:t.canvas,backgroundColor:_,scale:($=(oe=t.scale)!==null&&oe!==void 0?oe:r.devicePixelRatio)!==null&&$!==void 0?$:1,x:((Ae=t.x)!==null&&Ae!==void 0?Ae:0)+g,y:((ce=t.y)!==null&&ce!==void 0?ce:0)+v,width:(me=t.width)!==null&&me!==void 0?me:Math.ceil(m),height:(Ee=t.height)!==null&&Ee!==void 0?Ee:Math.ceil(y)},c?(l.logger.debug("Document cloned, using foreign object rendering"),C=new ate(l,B),[4,C.render(f)]):[3,3];case 2:return w=ne.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+g+","+v+" with size "+m+"x"+y+" using computed rendering"),l.logger.debug("Starting DOM parsing"),b=J4(l,f),_===b.styles.backgroundColor&&(b.styles.backgroundColor=Jr.TRANSPARENT),l.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),C=new Jee(l,B),[4,C.render(b)];case 4:w=ne.sent(),ne.label=5;case 5:return(!((fe=t.removeContainer)!==null&&fe!==void 0)||fe)&&(_2.destroy(h)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,w]}})})},cte=function(e,t,n){var r=t.ownerDocument,a=r.documentElement?io(e,getComputedStyle(r.documentElement).backgroundColor):Jr.TRANSPARENT,A=r.body?io(e,getComputedStyle(r.body).backgroundColor):Jr.TRANSPARENT,s=typeof n=="string"?io(e,n):n===null?Jr.TRANSPARENT:4294967295;return t===r.documentElement?Na(a)?Na(A)?s:A:a:s};const ute=i.defineComponent({__name:"CaptureButton",props:PY,setup(e){const t=e,{t:n}=re(),r=i.ref(null);i.onMounted(()=>{At(r.value,{content:n("general.captureImage"),arrow:!0})});function a(){console.log(t.element.tagName),ote(t.element,{imageTimeout:1e4,allowTaint:!0,foreignObjectRendering:!0}).then(l=>{console.log(l),A(l.toDataURL(),"file-name.png")})}function A(l,c){const u=document.createElement("a");typeof u.download!="string"?window.open(l):(u.href=l,u.download=c,o(s,u))}function s(l){l.click()}function o(l,c){document.body.appendChild(c),l(c),document.body.removeChild(c)}return(l,c)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:a},[i.createVNode(i.unref(Ie),{icon:"camera"})],512)]))}});const dte=M(ute,[["__scopeId","data-v-4b809ad3"]]),fte={class:"deck-preview no-scrollbar"},hte={class:"top"},pte={class:"deck-buttons"},gte=i.defineComponent({__name:"DeckPreview",props:NY,setup(e){const t=e,n=i.ref(),r=i.computed(()=>t.deck?t.deck:St(t.deckCode)),a=i.computed(()=>t.cards?t.cards:rn(r.value)),A=i.computed(()=>{var s;return{"--deck-summary-background":`url(https://lor.gg/storage/cards/full-art/${(s=Pa(a.value,r.value,1)[0])==null?void 0:s.cardCode}.webp)`}});return(s,o)=>(i.openBlock(),i.createElementBlock("div",fte,[i.createElementVNode("div",hte,[i.createElementVNode("div",pte,[i.createVNode(dte,{element:n.value},null,8,["element"])]),i.createVNode(gl,i.mergeProps({class:"deck-buttons no-scrollbar"},t.deckButtonsProps),null,16)]),i.createElementVNode("div",{class:"deck-summary-wrapper",style:i.normalizeStyle(A.value),ref_key:"deckSummary",ref:n},[i.createVNode(Sd,{deck:r.value},null,8,["deck"])],4)]))}});const Rd=M(gte,[["__scopeId","data-v-57a9bfaa"]]),mte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},vte={class:"deck-highlight-eye"},Bte=i.defineComponent({__name:"DeckHighlightEye",props:mte,setup(e){const t=e,n=i.ref(null),r=i.ref(null),a=i.ref(!1),A=i.ref(!1),s=i.computed(()=>t.deck?t.deck:St(t.deckCode)),o=i.computed(()=>t.cards?t.cards:rn(s.value));i.onMounted(()=>{var c;At((c=r.value)==null?void 0:c.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",touch:!1,onShow(){a.value=!0},onCreate(u){o.value.length<1||u.popper.style.setProperty("--tippy-background",`url(https://lor.gg/storage/cards/full-art/${Pa(o.value,s.value,1)[0].cardCode}.webp)`)}})});function l(){A.value=!0}return(c,u)=>(i.openBlock(),i.createElementBlock("div",vte,[i.createVNode(i.unref(Ie),{ref_key:"eyeIcon",ref:r,icon:"eye",class:"icon",onClick:l},null,512),i.createElementVNode("div",{ref_key:"deckSummary",ref:n,class:"deck-summary-wrapper"},[a.value?(i.openBlock(),i.createBlock(Sd,{key:0,class:"deck-summary",deck:s.value,"cards-prop":o.value},null,8,["deck","cards-prop"])):i.createCommentVNode("",!0)],512),i.createVNode(KA,{"show-modal":A.value,"onUpdate:showModal":u[0]||(u[0]=d=>A.value=d)},{default:i.withCtx(()=>[i.createVNode(Rd,{cards:o.value,deck:s.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])]),_:1},8,["show-modal"])]))}});const Vd=M(Bte,[["__scopeId","data-v-78fca480"]]),yte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},wte=i.defineComponent({__name:"DeckHighlight",props:yte,setup(e){const t=e,n=i.computed(()=>t.deck?t.deck:St(t.deckCode)),r=i.computed(()=>t.cards?t.cards:rn(n.value)),a=i.computed(()=>Mu(r.value)),A=i.computed(()=>r.value.filter(s=>Qs(s)));return(s,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[i.createVNode(Xo,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),i.createVNode(Jo,{class:"deck-highlight-cards",cards:A.value,regions:a.value},null,8,["cards","regions"]),i.createVNode(Vd,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])],2))}});const Ja=M(wte,[["__scopeId","data-v-02c48ced"]]),bte={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},f3=i.defineComponent({__name:"ArchetypeSidePanel",props:bte,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=i.reactive(n.filters);i.watch(r,()=>{t("update:filters",r)});function a(){for(const[,A]of Object.entries(r))A.splice(0)}return(A,s)=>(i.openBlock(),i.createBlock(Zs,{"filter-object":n.filters,"onClear:filterObject":a},{default:i.withCtx(()=>[i.createVNode(Zu,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),i.createVNode(Xs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":s[0]||(s[0]=o=>r.sampleSizeFilters=o)},null,8,["filter-array"]),i.createVNode($A,{"filter-array":r.timeFilters,"onUpdate:filterArray":s[1]||(s[1]=o=>r.timeFilters=o)},null,8,["filter-array"]),i.createVNode(Js,{"filter-array":r.serverFilters,"onUpdate:filterArray":s[2]||(s[2]=o=>r.serverFilters=o)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const _te={},Cte={class:"social-links"},Ete={href:"https://discord.gg/tGTSXgDFVU"},kte={href:"https://twitter.com/LORGG__"};function Ste(e,t){const n=i.resolveComponent("FontAwesomeIcon");return i.openBlock(),i.createElementBlock("div",Cte,[i.createElementVNode("a",Ete,[i.createVNode(n,{icon:["fab","discord"],class:"social-icon"})]),i.createElementVNode("a",kte,[i.createVNode(n,{icon:["fab","twitter"],class:"social-icon"})])])}const h3=M(_te,[["render",Ste],["__scopeId","data-v-9de6c1ad"]]),xte={routerLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:"404"},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},type:{type:String,required:!0,default:"data"},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!1,default:1},wins:{type:Number,required:!1,default:1},comparedDeckCode:{type:String,required:!1,default:""},isPrivate:{type:Boolean,required:!1,default:!1},id:{type:Number,required:!1,default:1},name:{type:String,required:!1,default:""},updatedAt:{type:Number,required:!1,default:1},createdAt:{type:Number,required:!1,default:1}},Fte={..._b,difference:{type:Number,required:!0,default:1}},Ite={class:"deck-difference-item"},Ute=i.defineComponent({__name:"DeckDifferenceItem",props:Fte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Ite,[i.createVNode(nA,{"card-code-prop":t.cardCodeProp,"card-prop":t.cardProp,regions:t.regions,"ignore-card-item":t.ignoreCardItem,"router-link":t.routerLink},null,8,["card-code-prop","card-prop","regions","ignore-card-item","router-link"]),i.createElementVNode("div",{class:i.normalizeClass(["difference",t.difference>0?"positive":"negative"])},i.toDisplayString(`${t.difference>0?"+":""}${t.difference}`),3)]))}});const qm=M(Ute,[["__scopeId","data-v-cdadc542"]]),Qte={differences:{type:Array,required:!0,default:[]}},Tte={class:"deck-differences no-scrollbar"},Dte=i.defineComponent({__name:"DeckDifferences",props:Qte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Tte,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.differences,a=>(i.openBlock(),i.createBlock(qm,{key:a.cardCodeProp,"card-code-prop":a.cardCodeProp,"card-prop":a.cardProp,difference:a.difference,"ignore-card-item":a.ignoreCardItem,regions:a.regions,"router-link":a.routerLink},null,8,["card-code-prop","card-prop","difference","ignore-card-item","regions","router-link"]))),128))]))}});const Xm=M(Dte,[["__scopeId","data-v-e4cddaa9"]]),Lte=e=>(i.pushScopeId("data-v-1f181b3c"),e=e(),i.popScopeId(),e),Ote={class:"table-card-row-background-wrapper"},Mte={class:"table-card-row-background"},Nte=Lte(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Pte=[Nte],Hte={class:"decks-row wrapper"},Rte={class:"column-content"},Vte={class:"column-content"},Kte={class:"column-content"},$te={class:"column-content"},Wte={key:2,class:"column-content"},Gte={class:"column-content cost"},zte={key:3,class:"column-content deck-differences-column"},jte=i.defineComponent({__name:"DecksRow",props:xte,setup(e){const t=e,n=i.inject(RA),r=i.ref(!1),a=i.computed(()=>St(t.deckCode)),A=i.computed(()=>rn(a.value)),s=i.computed(()=>Pa(A.value,a.value,2).map(c=>`https://lor.gg/storage/cards/banner/${c.cardCode}.png`)),o=i.computed(()=>({showButtons:{deleteDeck:t.type==="built"?t.showOwnerButtons:!1,updateDeckPrivacy:t.type==="built"?t.showOwnerButtons:!1,editDeckName:t.type==="built"?t.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:t.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.type==="built"?void 0:t.archetypeRouterLink,deckId:t.type==="built"?t.id:void 0,deckName:t.type==="built"?t.name:void 0,isPrivate:t.type==="built"?t.isPrivate:void 0})),l=i.computed(()=>{const c=[];if(t.type!=="similar")return c;const u=St(t.comparedDeckCode);for(const[d,f]of Object.entries(a.value))f!==u[d]&&c.push({cardCodeProp:d,difference:f-(u[d]??0),ignoreCardItem:!1,routerLink:nn().callbacks.cardCodeRouterLinkCallback(d)});for(const[d,f]of Object.entries(u))f===a.value[d]||c.some(h=>h.cardCodeProp===d)||c.push({cardCodeProp:d,difference:(a.value[d]??0)-f,ignoreCardItem:!1,routerLink:nn().callbacks.cardCodeRouterLinkCallback(d)});return c});return(c,u)=>{const d=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(d,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>{var f;return[i.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Ote,[i.createElementVNode("div",Mte,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>(i.openBlock(),i.createElementBlock("div",{key:h,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${h})`})},Pte,4))),128))])]),i.createElementVNode("div",Hte,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:u[0]||(u[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Ja,{"deck-code":t.deckCode,deck:a.value,cards:A.value,"deck-buttons-props":{...o.value,showButtons:{...o.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck","cards","deck-buttons-props"])]),t.type==="data"||t.type==="similar"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Rte,i.toDisplayString(i.unref(Te)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)],64)):t.type==="built"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Vte,i.toDisplayString(t.name),1),i.createElementVNode("div",Kte,i.toDisplayString(i.unref(n)(t.updatedAt).fromNow()),1),i.createElementVNode("div",$te,i.toDisplayString(i.unref(n)(t.createdAt).fromNow()),1)],64)):i.createCommentVNode("",!0),t.type!=="similar"?(i.openBlock(),i.createElementBlock("div",Wte,[i.createVNode(hl,{class:"mana-curve-chart","deck-code":t.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!1,animation:!1},null,8,["deck-code"])])):i.createCommentVNode("",!0),i.createElementVNode("div",Gte,i.toDisplayString((f=i.unref(Yc)(a.value,!0)??i.unref(Yc)(a.value,!1))==null?void 0:f.toLocaleString()),1),t.type==="similar"?(i.openBlock(),i.createElementBlock("div",zte,[i.createVNode(Xm,{differences:l.value},null,8,["differences"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["column-content options-button",r.value?"show":"hide"]),onClick:u[2]||(u[2]=i.withModifiers(h=>r.value=!r.value,["stop","prevent"]))},[i.createVNode(gl,i.mergeProps({onClick:u[1]||(u[1]=i.withModifiers(()=>{},["stop","prevent"])),class:"deck-buttons"},o.value),null,16),i.createVNode(i.unref(Ie),{icon:"ellipsis-v"})],2)])],4)]}),_:1},8,["to"])}}});const Bl=M(jte,[["__scopeId","data-v-1f181b3c"]]),Yte={},qte={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},Xte=i.createStaticVNode('<g fill="none" stroke-miterlimit="10" style="mix-blend-mode:normal;"><g stroke="var(--color-primary-2)" stroke-width="20" stroke-linejoin="round"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M86 16.65C47.761 16.65 16.65 47.76 16.65 86c0 38.239 31.111 69.35 69.35 69.35 38.239 0 69.35-31.111 69.35-69.35 0-38.239-31.111-69.35-69.35-69.35m0-3.853c40.427 0 73.203 32.776 73.203 73.203S126.427 159.203 86 159.203 12.797 126.427 12.797 86 45.573 12.797 86 12.797z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M93.706 55.178a7.706 7.706 0 1 1-15.412 0 7.706 7.706 0 0 1 15.412 0zM97.558 120.675v3.853H74.442v-3.853h3.852v-42.38h-3.852v-3.853h19.264v46.233z" fill="var(--color-primary-2)" stroke-width="17.92"></path></g><path d="M8.944 163.056V8.944h154.112v154.112z"></path><g stroke-width="1" stroke-linejoin="miter"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-background-1)"></path><path d="M86 16.65c38.239 0 69.35 31.111 69.35 69.35 0 38.239-31.111 69.35-69.35 69.35-38.239 0-69.35-31.111-69.35-69.35 0-38.239 31.111-69.35 69.35-69.35m0-3.853c-40.427 0-73.203 32.776-73.203 73.203S45.573 159.203 86 159.203 159.203 126.427 159.203 86 126.427 12.797 86 12.797z" fill="var(--color-background-1)"></path><path d="M86 47.472a7.706 7.706 0 1 0 0 15.411 7.706 7.706 0 0 0 0-15.411zM93.706 120.675V74.442H74.442v3.852h3.852v42.381h-3.852v3.853h23.116v-3.853z" fill="var(--color-primary-2)"></path></g></g>',1),Jte=[Xte];function Zte(e,t){return i.openBlock(),i.createElementBlock("svg",qte,Jte)}const Jm=M(Yte,[["render",Zte]]),ene={...hb,routerLink:{type:Object,required:!0,default:{path:"/404"}}},tne={class:"card-item-link-wrapper"},nne={key:0,class:"card-item-wrapper"},rne={key:1,class:"card-item-wrapper"},ane={class:"link-icon"},Ane=i.defineComponent({__name:"CardItemLinkWrapper",props:ene,setup(e){const t=e;return(n,r)=>{const a=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",tne,[n.isDeckBuilder?(i.openBlock(),i.createElementBlock("div",rne,[i.createVNode(Wa,i.normalizeProps(i.guardReactiveProps(t)),null,16),i.createVNode(a,{class:"link-icon-link",to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("div",ane,[i.createVNode(Jm)])]),_:1},8,["to"])])):(i.openBlock(),i.createElementBlock("div",nne,[i.createVNode(a,{to:t.routerLink},{default:i.withCtx(()=>[i.createVNode(Wa,i.normalizeProps(i.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const Zm=M(Ane,[["__scopeId","data-v-89823586"]]),sne={name:{type:String,required:!0,default:""}},ine={class:"profile-dropdown-wrapper"},one=i.defineComponent({__name:"ProfileDropdown",props:sne,setup(e){const t=e,n=i.ref(),r=i.ref();return i.onMounted(()=>{At(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,A)=>(i.openBlock(),i.createElementBlock("div",ine,[i.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},i.toDisplayString(t.name),513),i.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const e1=M(one,[["__scopeId","data-v-1c516824"]]),lne={class:"navigation-top-desktop"},cne={class:"left content"},une={class:"right content"},dne={key:1,class:"fancy-button"},fne=i.defineComponent({__name:"NavigationTopDesktop",props:pb,setup(e){const t=e;return(n,r)=>{var a;return i.openBlock(),i.createElementBlock("div",lne,[i.createElementVNode("div",cne,[i.createVNode(Yu,{"fetch-seach-result":t.fetchSeachResult,class:"search-bar"},null,8,["fetch-seach-result"]),i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",une,[i.createVNode(mg,{class:"social-links"}),i.createVNode(Dg,{class:"language-selection"}),i.unref(wa)().user?(i.openBlock(),i.createBlock(e1,{key:0,name:(a=i.unref(wa)().user)==null?void 0:a.name},null,8,["name"])):(i.openBlock(),i.createElementBlock("div",dne,"Sign In"))])])}}});const t1=M(fne,[["__scopeId","data-v-512a68ce"]]),hne={card:{type:Object,required:!0,default:{associatedCardRefs:["06NX013T1"],regionRefs:["Noxus","06RU002"],attack:1,cost:2,health:1,description:"<link=keyword.PlaySkillMark><sprite name=SkillMark><style=Keyword>Play</style></link>: <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stun</style></link> an enemy or if it's already <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stunned</style></link> deal 2 to it instead.",descriptionRaw:"Play: Stun an enemy or if it's already Stunned deal 2 to it instead.",levelupDescription:"",levelupDescriptionRaw:"",flavorText:`"Student: Sydell Kythera
876
876
  Teacher: J. Willough
877
877
  Report: I am spiderbit on left forearm. Sydell claims a misunderstanding, but his smirk belies his innocence. He is ordered to two weeks additional chores (refectory)."
878
- - Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},pne={class:"card-similar-cards"},gne=i.defineComponent({__name:"CardSimilarCards",props:hne,setup(e){const t=e;function n(a,A,s){if(a.length===10&&s<a[0].points)return;let o=0;for(;o<a.length&&a[o].points<s;)o++;a.splice(o,0,{cardCode:A,points:s}),a.length>10&&a.splice(0,1)}const r=i.computed(()=>{const a=[],A=jt().cardJsonObject;let s=0;for(const o in A){if(o===t.card.cardCode||t.card.collectible&&!A[o].collectible)continue;s=0;const l=A[o];for(const c of l.regionRefs)for(const u of t.card.regionRefs)c===u&&(s+=2);for(const c of l.subtypes)for(const u of t.card.subtypes)c===u&&(s+=2);for(const c of l.keywordRefs)for(const u of t.card.keywordRefs)c===u&&(s+=1);l.typeRef===t.card.typeRef&&(s+=3),l.rarityRef!=="None"&&l.rarityRef===t.card.rarityRef&&(s+=1),l.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(s+=(9-Math.abs(l.attack-t.card.attack))/3,s+=(9-Math.abs(l.health-t.card.health))/3),s+=(12-Math.abs(l.cost-t.card.cost))/3,n(a,o,s)}return a.reverse().map(o=>jt().cardJsonObject[o.cardCode])});return(a,A)=>(i.openBlock(),i.createElementBlock("div",pne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,s=>(i.openBlock(),i.createBlock(i.unref(Zm),{key:s.cardCode,"card-prop":s,"is-root":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(s.cardCode)},null,8,["card-prop","router-link"]))),128))]))}});const p3=M(gne,[["__scopeId","data-v-4db54a8d"]]),mne={logoType:{type:String,required:!0,default:"logo-and-text"}},g3=e=>(i.pushScopeId("data-v-bb0b24b5"),e=e(),i.popScopeId(),e),vne={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},Bne=i.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6),yne=[Bne],wne={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},bne=i.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8),_ne=[bne],Cne={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},Ene=g3(()=>i.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1)),kne=g3(()=>i.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)),Sne=[Ene,kne],xne=i.defineComponent({__name:"LogoIcon",props:mne,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(i.openBlock(),i.createElementBlock("svg",vne,yne)):t.logoType==="logo-and-text"?(i.openBlock(),i.createElementBlock("svg",wne,_ne)):(i.openBlock(),i.createElementBlock("svg",Cne,Sne))}});const Ys=M(xne,[["__scopeId","data-v-bb0b24b5"]]),Fne={class:"dashboard-sign-up"},Ine={class:"top"},Une={class:"subtitle"},Qne={class:"fancy-button"},Tne=i.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=re();return(n,r)=>(i.openBlock(),i.createElementBlock("div",Fne,[i.createElementVNode("div",Ine,[i.createVNode(Ys,{"logo-type":"text-only",class:"logo-icon"}),i.createElementVNode("div",Une,i.toDisplayString(i.unref(t)("general.becomeTheMaster")),1)]),i.createElementVNode("div",Qne,i.toDisplayString(i.unref(t)("general.signIn")),1)]))}});const m3=M(Tne,[["__scopeId","data-v-e398dd28"]]),Dne={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date},opponentRouterLink:{type:Object,required:!0,default:""}},Lne=e=>(i.pushScopeId("data-v-202a297d"),e=e(),i.popScopeId(),e),One={class:"match-item"},Mne=Lne(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Nne=[Mne],Pne={class:"details"},Hne={class:"match-details"},Rne={class:"game-type"},Vne={class:"time"},Kne={class:"main"},$ne={class:"container"},Wne={class:"container"},Gne=i.defineComponent({__name:"MatchItem",props:Dne,setup(e){const t=e,{t:n}=re(),r=i.inject(RA),a=i.computed(()=>St(t.deckCode)),A=i.computed(()=>St(t.opponentDeckCode)),s=i.computed(()=>[Pa(rn(a.value),a.value,1)[0],Pa(rn(A.value),A.value,1)[0]].map(o=>`https://lor.gg/storage/cards/banner/${o==null?void 0:o.cardCode}.png`));return(o,l)=>{const c=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",One,[i.createElementVNode("div",{class:"background",style:i.normalizeStyle({"--background-image":`url(${s.value[0]})`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,u=>(i.openBlock(),i.createElementBlock("div",{key:u,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${u})`})},Nne,4))),128))],4),i.createElementVNode("div",Pne,[i.createElementVNode("div",Hne,[i.createElementVNode("div",Rne,i.toDisplayString(t.gameType)+" - "+i.toDisplayString(t.gameMode),1),i.createElementVNode("div",Vne,i.toDisplayString(i.unref(r)(t.playedAt).fromNow()),1)]),i.createVNode(c,{to:t.opponentRouterLink,class:"opponent-details"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.opponentName),1)]),_:1},8,["to"])]),i.createElementVNode("div",Kne,[i.createElementVNode("div",$ne,[i.createVNode(Ja,{class:"deck-highlight",deck:a.value},null,8,["deck"])]),i.createElementVNode("div",{class:"container results",style:i.normalizeStyle({color:t.isVictory?"var(--color-good)":"var(--color-bad)"})},i.toDisplayString(t.isVictory?i.unref(n)("general.victory"):i.unref(n)("general.defeat")),5),i.createElementVNode("div",Wne,[i.createVNode(Ja,{class:"deck-highlight opponent",deck:A.value},null,8,["deck"])])])])}}});const v3=M(Gne,[["__scopeId","data-v-202a297d"]]),zne={players:{type:Array,required:!0,default:[]}},jne={class:"leaderboard-top-10-region"},Yne=i.defineComponent({__name:"LeaderboardTop10Region",props:zne,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",jne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.players,a=>(i.openBlock(),i.createBlock(fn,{key:`${a.name}${a.rank}`,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0,"router-link":i.unref(nn)().callbacks.playerRouterLinkCallback(a)},null,8,["card-code-prop","color","mana-number","name","quantity-number","router-link"]))),128))]))}});const n1=M(Yne,[["__scopeId","data-v-41d779ee"]]),qne={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:null},favorite_deck:{type:String,required:!0,default:null},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:null},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:null},wins:{type:Number,required:!0,default:null},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Xne={class:"leaderboard-detail-row-background-wrapper"},Jne={class:"leaderboard-detail-row-background"},Zne={class:"leaderboard-detail-row wrapper"},ere={key:1,class:"column-content"},tre={key:3,class:"column-content"},nre={key:4,class:"column-content"},rre={key:6,class:"column-content deck-highlight-wrapper"},are={key:1},Are=i.defineComponent({__name:"LeaderboardDetailRow",props:qne,setup(e){const t=e,n=i.computed(()=>t.selected_banner_card?["",`https://lor.gg/storage/cards/banner/${t.selected_banner_card}.png`]:[]),r=i.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(s,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Xne,[i.createElementVNode("div",Jne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,o=>(i.openBlock(),i.createElementBlock("div",{key:o,class:"background-card",style:i.normalizeStyle({"--background-image":`url(${o})`})},null,4))),128))])]),i.createElementVNode("div",Zne,[t.shownColumns.player?(i.openBlock(),i.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:A[0]||(A[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(fn,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):i.createCommentVNode("",!0),t.shownColumns.lp?(i.openBlock(),i.createElementBlock("div",ere,i.toDisplayString(i.unref(Te)(t.lp)),1)):i.createCommentVNode("",!0),t.shownColumns.change?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["column-content change",r.value])},[t.change!==null?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Ue),{class:"icon",icon:"fa-chevron-down"}),i.createElementVNode("span",null,i.toDisplayString(t.change?i.unref(Te)(Math.abs(t.change)):""),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[],64))],2)):i.createCommentVNode("",!0),t.shownColumns.wins?(i.openBlock(),i.createElementBlock("div",tre,i.toDisplayString(i.unref(Te)(t.wins)),1)):i.createCommentVNode("",!0),t.shownColumns.matches?(i.openBlock(),i.createElementBlock("div",nre,i.toDisplayString(i.unref(Te)(t.matches)),1)):i.createCommentVNode("",!0),t.shownColumns.winrate?(i.openBlock(),i.createElementBlock("div",{key:5,class:"column-content",style:i.normalizeStyle({color:t.wins===null||t.matches===null?"var(--color-primary-2)":`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(t.matches===null||t.wins===null?"-":i.unref(Te)(t.wins/t.matches*100,1,3)+"%"),5)):i.createCommentVNode("",!0),t.shownColumns.deck?(i.openBlock(),i.createElementBlock("div",rre,[t.favorite_deck?(i.openBlock(),i.createBlock(Ja,{key:0,"deck-code":t.favorite_deck},null,8,["deck-code"])):(i.openBlock(),i.createElementBlock("span",are,"-"))])):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const r1=M(Are,[["__scopeId","data-v-fea16062"]]),sre={routerLink:{type:Object,required:!0,default:{path:"/404"}},playerRouterLink:{type:Object,required:!0,default:{path:"/404"}},deckCode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date},archetypeRouterLink:{type:Object,required:!1,default:"404"},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},isPrivate:{type:Boolean,required:!1,default:!1}};const ire={},ore=e=>(i.pushScopeId("data-v-5b8e191d"),e=e(),i.popScopeId(),e),lre={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},cre=ore(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)),ure=[cre];function dre(e,t){return i.openBlock(),i.createElementBlock("svg",lre,ure)}const a1=M(ire,[["render",dre],["__scopeId","data-v-5b8e191d"]]);const fre={},hre=e=>(i.pushScopeId("data-v-5b6f3d5e"),e=e(),i.popScopeId(),e),pre={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},gre=hre(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)),mre=[gre];function vre(e,t){return i.openBlock(),i.createElementBlock("svg",pre,mre)}const A1=M(fre,[["render",vre],["__scopeId","data-v-5b6f3d5e"]]);const Bre={},yre=e=>(i.pushScopeId("data-v-81223df9"),e=e(),i.popScopeId(),e),wre={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},bre=yre(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)),_re=[bre];function Cre(e,t){return i.openBlock(),i.createElementBlock("svg",wre,_re)}const s1=M(Bre,[["render",Cre],["__scopeId","data-v-81223df9"]]),Ere=e=>(i.pushScopeId("data-v-578d0d2d"),e=e(),i.popScopeId(),e),kre=Ere(()=>i.createElementVNode("div",{class:"background"},null,-1)),Sre={class:"content"},xre={class:"format"},Fre={class:"format-text"},Ire={key:0,class:"details built"},Ure={class:"title"},Qre={class:"extra-info"},Tre={class:"info-time"},Dre={key:1,class:"details stats"},Lre={class:"stat-column"},Ore={class:"descriptor"},Mre={class:"stat-column"},Nre={class:"number"},Pre={class:"descriptor"},Hre=i.defineComponent({__name:"DeckBlock",props:sre,setup(e){const t=e,{t:n}=re(),r=i.inject(RA),a=i.ref(!1),A=i.computed(()=>St(t.deckCode)),s=i.computed(()=>rn(A.value)),o=i.computed(()=>Mu(s.value)),l=i.computed(()=>s.value.filter(h=>Qs(h))),c=i.computed(()=>{var h;return{"--background-image":`url(https://lor.gg/storage/cards/full-art/${(h=Pa(s.value,A.value,1)[0])==null?void 0:h.cardCode}.webp)`}}),u=i.computed(()=>CE(s.value)),d=i.computed(()=>u.value.map(h=>we().dataJson.formats[h]).filter(h=>h!==void 0).sort((h,p)=>h.order-p.order)[0]),f=i.computed(()=>({showButtons:{deleteDeck:t.type==="built"?t.showOwnerButtons:!1,updateDeckPrivacy:t.type==="built"?t.showOwnerButtons:!1,editDeckName:t.type==="built"?t.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:t.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.type==="built"?void 0:t.archetypeRouterLink,deckId:t.type==="built"?t.deckId:void 0,deckName:t.type==="built"?t.deckName:void 0,isPrivate:t.type==="built"?t.isPrivate:void 0}));return(h,p)=>{const m=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(m,{to:t.routerLink},{default:i.withCtx(()=>{var y,g,v;return[i.createElementVNode("div",{class:i.normalizeClass(["built-deck-preview",a.value?"show":"hide"]),style:i.normalizeStyle(c.value)},[kre,i.createVNode(Vd,{class:"deck-highlight-eye icon","deck-code":t.deckCode,onClick:p[0]||(p[0]=i.withModifiers(()=>{},["stop","prevent"])),"deck-buttons-props":{...f.value,showButtons:{...f.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck-buttons-props"]),i.createElementVNode("div",{class:"options-button icon",onClick:p[1]||(p[1]=i.withModifiers(_=>a.value=!a.value,["stop","prevent"]))},[i.createVNode(i.unref(Ue),{icon:"ellipsis-v"})]),i.createVNode(gl,i.mergeProps({onClick:p[2]||(p[2]=i.withModifiers(()=>{},["stop","prevent"])),class:"deck-buttons"},f.value),null,16),i.createVNode(Xo,{class:"deck-highlight-regions deck-highlight-section",regions:o.value},null,8,["regions"]),i.createElementVNode("div",Sre,[i.createElementVNode("div",xre,[((y=d.value)==null?void 0:y.nameRef)===i.unref(Vr).Eternal?(i.openBlock(),i.createBlock(a1,{key:0,class:"format-icon"})):((g=d.value)==null?void 0:g.nameRef)===i.unref(Vr).Standard?(i.openBlock(),i.createBlock(A1,{key:1,class:"format-icon"})):(i.openBlock(),i.createBlock(s1,{key:2,class:"format-icon"})),i.createElementVNode("span",Fre,i.toDisplayString((v=d.value)==null?void 0:v.name),1)]),i.createVNode(Jo,{class:"deck-highlight-cards deck-highlight-section",cards:l.value},null,8,["cards"])]),t.type==="built"?(i.openBlock(),i.createElementBlock("div",Ire,[i.createElementVNode("div",Ure,i.toDisplayString(t.deckName),1),i.createElementVNode("div",Qre,[i.createElementVNode("div",{class:"info-user",onClick:p[3]||(p[3]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(m,{to:t.playerRouterLink},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.userName),1)]),_:1},8,["to"])]),i.createElementVNode("div",Tre,i.toDisplayString(i.unref(r)(t.updatedAt).fromNow()),1)])])):i.createCommentVNode("",!0),t.type==="stats"?(i.openBlock(),i.createElementBlock("div",Dre,[i.createElementVNode("div",Lre,[i.createElementVNode("div",{class:"number",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5),i.createElementVNode("div",Ore,i.toDisplayString(i.unref(n)("general.winrate")),1)]),i.createElementVNode("div",Mre,[i.createElementVNode("div",Nre,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",Pre,i.toDisplayString(i.unref(n)("general.matches")),1)])])):i.createCommentVNode("",!0)],6)]}),_:1},8,["to"])}}});const B3=M(Hre,[["__scopeId","data-v-578d0d2d"]]),Rre={headingItems:{type:Array,required:!0,default:[]}},Vre={class:"table-wrapper"},Kre={class:"table no-scrollbar"},$re={class:"heading wrapper"},Wre=i.defineComponent({__name:"SmallTable",props:Rre,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Vre,[i.createElementVNode("div",Kre,[i.createElementVNode("div",$re,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.headingItems,a=>(i.openBlock(),i.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[i.createElementVNode("div",null,i.toDisplayString(a.title),1)]))),128)),i.renderSlot(n.$slots,"heading",{},void 0,!0)]),i.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const JA=M(Wre,[["__scopeId","data-v-20cc8387"]]),Gre={players:{type:Array,required:!0,default:[]}},zre=e=>(i.pushScopeId("data-v-48a25357"),e=e(),i.popScopeId(),e),jre={class:"leaderboard-top"},Yre=zre(()=>i.createElementVNode("div",{class:"heading-background"},null,-1)),qre={class:"heading-wrapper"},Xre=i.defineComponent({__name:"LeaderboardTop",props:Gre,setup(e){const t=e,n=i.computed(()=>we().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,A)=>a.rank-A.rank).slice(0,10)));return(r,a)=>(i.openBlock(),i.createElementBlock("div",jre,[Yre,i.createElementVNode("div",qre,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(we)().dataJson.servers,A=>(i.openBlock(),i.createElementBlock("div",{key:A.nameRef,class:"heading"},i.toDisplayString(A.name),1))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(A,s)=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"top-10"},[i.createVNode(n1,{players:A},null,8,["players"])]))),128))]))}});const y3=M(Xre,[["__scopeId","data-v-48a25357"]]),Jre={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},Zre={class:"card-item-3d"},eae=i.defineComponent({__name:"CardItem3d",props:Jre,setup(e){const t=e,n={ShadowIsles:"https://static.wikia.nocookie.net/leagueoflegends/images/b/bb/LoR_Shadow_Isles_Card_Back.png",BandleCity:"https://static.wikia.nocookie.net/leagueoflegends/images/c/c4/LoR_Bandle_City_Card_Back.png",Bilgewater:"https://static.wikia.nocookie.net/leagueoflegends/images/2/24/LoR_Bilgewater_Card_Back.png",Demacia:"https://static.wikia.nocookie.net/leagueoflegends/images/6/62/LoR_Demacia_Card_Back.png",Freljord:"https://static.wikia.nocookie.net/leagueoflegends/images/5/5e/LoR_Freljord_Card_Back.png",Ionia:"https://static.wikia.nocookie.net/leagueoflegends/images/3/3d/LoR_Ionia_Card_Back.png",Noxus:"https://static.wikia.nocookie.net/leagueoflegends/images/5/50/LoR_Noxus_Card_Back.png",PiltoverZaun:"https://static.wikia.nocookie.net/leagueoflegends/images/5/57/LoR_Piltover_Card_Back.png",Shurima:"https://static.wikia.nocookie.net/leagueoflegends/images/0/0c/LoR_Shurima_Card_Back.png",Targon:"https://static.wikia.nocookie.net/leagueoflegends/images/a/a6/LoR_Targon_Card_Back.png"},r=i.computed(()=>{const s=Ro(void 0,t.cardCode,!0);if(s.value===void 0)return{};const o=s.value.regionRefs[0];return{content:`url(${n[o]??"https://static.wikia.nocookie.net/leagueoflegends/images/2/2d/LoR_Summoner%27s_Rift_Order_Card_Back.png"})`}}),a=i.computed(()=>({"background-image":`url("https://lor.gg/storage/cards/card/en_us/${t.cardCode}.webp")`,"background-size":"cover"})),A=i.computed(()=>t.flipped?["flipped"]:[]);return(s,o)=>(i.openBlock(),i.createElementBlock("div",Zre,[i.createElementVNode("div",{class:i.normalizeClass(["card",A.value])},[i.createElementVNode("div",{class:"front face",style:i.normalizeStyle(r.value)},null,4),i.createElementVNode("div",{class:"back face",style:i.normalizeStyle(a.value)},null,4)],2)]))}});const i1=M(eae,[["__scopeId","data-v-72e7b1ae"]]),tae=e=>(i.pushScopeId("data-v-20998882"),e=e(),i.popScopeId(),e),nae={class:"card-lottery"},rae={class:"cards-container"},aae={key:0,class:"bottom"},Aae={class:"slice"},sae={class:"circle-slice-item-wrapper"},iae={class:"options"},oae={class:"primary-button"},lae={class:"primary-button"},cae=tae(()=>i.createElementVNode("span",null," (23) ",-1)),uae={class:"icon"},dae={class:"circle-card-item-wrapper"},fae=i.defineComponent({__name:"CardLottery",setup(e){const t=Object.keys(jt().cardJsonObject),n=[],r=i.ref(null),a=i.computed(()=>r.value?{background:`url(https://lor.gg/storage/cards/full-art/${r.value}.webp)`,"background-position":"center","background-size":"cover"}:{});function A(o){r.value=o.cardCode.value,o.flipped.value=!0;for(const l of n)o!==l&&setTimeout(()=>{l.display.value=!1},1e3)}function s(){r.value=null,n.splice(0);for(let o=0;o<3;o++)n.push({flipped:i.ref(!1),display:i.ref(!0),cardCode:i.ref(t[Math.floor(Math.random()*t.length)])})}return s(),(o,l)=>{const c=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",nae,[i.createElementVNode("div",{class:"card-lottery-background",style:i.normalizeStyle(a.value)},null,4),i.createElementVNode("div",rae,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,d)=>i.createElementVNode("div",{key:d,class:i.normalizeClass(["card-item-3d-wrapper",u.display.value?null:"hide"])},[i.createVNode(i1,{flipped:u.flipped.value,"card-code":u.cardCode.value,onClick:f=>A(u)},null,8,["flipped","card-code","onClick"])],2)),64))]),r.value?(i.openBlock(),i.createElementBlock("div",aae,[i.createElementVNode("div",Aae,[i.createElementVNode("div",sae,[i.createVNode(fn,{color:"133, 133, 133",name:"Player","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])]),i.createElementVNode("div",iae,[i.withDirectives(i.createElementVNode("button",oae,null,512),[[c,"cardLottery.setBanner"]]),i.withDirectives(i.createElementVNode("button",lae,null,512),[[c,"cardLottery.setIcon"]]),i.createElementVNode("button",{class:"primary-button",onClick:s},[i.withDirectives(i.createElementVNode("span",null,null,512),[[c,"cardLottery.openAnother"]]),cae])]),i.createElementVNode("div",uae,[i.createElementVNode("div",dae,[i.createVNode(nA,{color:"133, 133, 133","card-code-prop":r.value,"ignore-card-item":!0,"router-link":""},null,8,["card-code-prop"])])])])):i.createCommentVNode("",!0)])}}});const w3=M(fae,[["__scopeId","data-v-20998882"]]),hae={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1},routerLink:{type:Object,required:!0,default:""},premiumLink:{type:Object,required:!0,default:""}},pae={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},o1=i.defineComponent({__name:"WinrateDoughnutChart",props:pae,setup(e){const t=e,n=i.ref(null);Le.register(...Cr);const r=i.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[t.wins,t.matches-t.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:t.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},A=[{id:"text",beforeDraw:function(s){const o=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const d=s.data.datasets[0].data[0],f=s.data.datasets[0].data[1],h=(d/(d+f)*100).toFixed(2)+"%",p=Math.round((o-c.measureText(h).width)/2),m=l/2;d>f?c.fillStyle="#00adff":d<f?c.fillStyle="#ff5153":c.fillStyle="#ffffff",c.fillText(h,p,m),c.save()}}];return(s,o)=>(i.openBlock(),i.createBlock(i.unref(ld),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),gae={class:"dashboard-profile"},mae={class:"profile-banner"},vae=["src"],Bae={class:"edit-banner"},yae={class:"profile-text"},wae={class:"profile-region"},bae={class:"profile-tiles"},_ae={class:"profile-tile"},Cae={class:"tile-content"},Eae={class:"games-text"},kae={class:"tile-text"},Sae={class:"profile-tile"},xae={class:"chart-container"},Fae={class:"tile-content"},Iae={class:"tile-text"},Uae={key:0,class:"profile-premium-expiration"},Qae={class:"profile-premium-expiration-time"},Tae=i.defineComponent({__name:"DashboardProfile",props:hae,setup(e){const t=e,{t:n}=re(),r=i.inject(RA);return(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",gae,[i.createElementVNode("div",mae,[i.createElementVNode("img",{alt:"Profile Banner",src:`https://lor.gg/storage/cards/banner/${t.bannerCardCode??"05BC160"}.png`,class:"profile-banner-img"},null,8,vae),i.createVNode(nA,{"card-code-prop":t.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor,"router-link":t.routerLink},null,8,["card-code-prop","color-override","router-link"]),i.createElementVNode("div",Bae,[i.createVNode(i.unref(Ue),{icon:"pencil-alt"})])]),i.createElementVNode("div",yae,[i.createVNode(s,{to:t.routerLink,class:"profile-name"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.name),1)]),_:1},8,["to"]),i.createElementVNode("div",wae,i.toDisplayString(t.server),1)]),i.createElementVNode("div",bae,[i.createElementVNode("div",_ae,[i.createElementVNode("div",Cae,[i.createElementVNode("div",Eae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1)]),i.createElementVNode("div",kae,i.toDisplayString(i.unref(n)("general.gamesPlayed")),1)]),i.createElementVNode("div",Sae,[i.createElementVNode("div",xae,[i.createElementVNode("div",Fae,[i.createVNode(o1,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),i.createElementVNode("div",Iae,i.toDisplayString(i.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(i.openBlock(),i.createElementBlock("div",Uae,[i.createTextVNode(i.toDisplayString(i.unref(n)("general.premium"))+" "+i.toDisplayString(t.isPremiumRenewing?i.unref(n)("general.renews"):i.unref(n)("general.expires"))+" ",1),i.createElementVNode("b",Qae,i.toDisplayString(i.unref(r)(t.premiumExpiration).fromNow()),1)])):(i.openBlock(),i.createBlock(s,{key:1,to:t.premiumLink,class:"profile-premium fancy-button"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("general.getPremium")),1)]),_:1},8,["to"]))])}}});const b3=M(Tae,[["__scopeId","data-v-d302d4f0"]]),Dae={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function Lae(e,t){const{t:n}=re();Le.register(XA),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const s of t)s>r&&(r=s),s<a&&(a=s);const A=[];for(const s of Object.values(we().dataJson.patches))new Date(s.startTime)<=r&&new Date(s.startTime)>=a&&A.push(s);for(const s of A)e.plugins.annotation.annotations.push({type:"line",xMin:s.startTime,xMax:s.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${s.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const _3=i.defineComponent({__name:"LeaderboardChart",props:Dae,setup(e){const t=e,n=i.ref();Le.register(...Cr),Le.register(XA);const r=i.computed(()=>t.data.slice().sort((s,o)=>+s.date-+o.date)),a=i.computed(()=>{let s;return t.type==="totalPlayers"?s=we().dataJson.servers.filter(o=>t.server===null?!0:o.nameRef===t.server).map(o=>({label:o.name,borderColor:F1(o.nameRef),data:r.value.filter(l=>l.server===o.nameRef).map(l=>l.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):s=r.value.reduce((o,l)=>o.includes(l.name)?o:[...o,l.name],[]).map(o=>({label:o,borderColor:F1(o),data:r.value.filter(l=>l.name===o).map(l=>t.type==="lp"?l.lp:l.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(o=>o.date).filter((o,l,c)=>c.findIndex(u=>u.getTime()===o.getTime())===l),datasets:s}}),A={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return Lae(A,t.data.map(s=>s.date)),(s,o)=>(i.openBlock(),i.createBlock(i.unref(W_),{ref_key:"chart",ref:n,"chart-data":a.value,options:A},null,8,["chart-data"]))}}),Oae={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},C3=i.defineComponent({__name:"CardQuantityBarChart",props:Oae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a=i.computed(()=>({labels:t.data.map(s=>s.quantity),datasets:[{backgroundColor:t.data.map(s=>s.wins*2>=s.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:t.data.map(s=>t.type==="winrate"?s.wins/s.matches*100-t.baseline:s.matches)}]})),A={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(s){return`${n("general.quantity")}: ${s[0].label}`},label(s){return t.type==="winrate"?(s.dataset.data[s.dataIndex]+t.baseline).toFixed(2)+"%":s.dataset.data[s.dataIndex].toString()},footer(s){return[`${n("general.matches")}: ${t.data[s[0].dataIndex].matches}`,`${n("general.wins")}: ${t.data[s[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t.type==="winrate"?n("general.winrate"):n("general.matches")},ticks:{callback(s){return t.type==="winrate"?s+t.baseline+"%":s}}},x:{title:{display:!0,text:n("general.quantity")}}}};return(s,o)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":a.value,options:A},null,8,["chart-data"]))}}),Mae={data:{type:Array,required:!0,default:""}},E3=i.defineComponent({__name:"WinsLossesBarChart",props:Mae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a=i.computed(()=>t.data.length===0?!1:typeof t.data[0].column!="string"),A=i.computed(()=>a.value?t.data.slice().sort((u,d)=>u.column.getTime()-d.column.getTime()):t.data),s=i.computed(()=>[...new Set(A.value.map(u=>u.column))]),o=i.computed(()=>({losses:A.value.map(u=>u.matches-u.wins),wins:A.value.map(u=>u.wins)})),l=i.computed(()=>({labels:s.value,datasets:Object.entries(o.value).map((u,d)=>({backgroundColor:u[0]==="wins"?`rgba(${Ha("--color-good-rgb")}, 0.5)`:`rgba(${Ha("--color-bad-rgb")}, 0.5)`,data:u[1],borderRadius:d===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:n(`general.${u[0]}`),barPercentage:.5}))})),c={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(u){if(u.length===0)return"";let d=0;const f=u[0].chart.data.datasets[1].data[u[0].dataIndex];for(let h=0;h<u[0].chart.data.datasets.length;h++)d+=u[0].chart.data.datasets[h].data[u[0].dataIndex];return`${n("general.total")}: ${d}
879
- ${n("general.winrate")}: ${Te(f/d*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(u,d){const f=A.value[d.dataIndex];return Te(f.wins/f.matches*100,2)+"%"},display(u){return u.datasetIndex===u.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(u,d)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Nae={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},k3=i.defineComponent({__name:"RoundCardInfoBarChart",props:Nae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a=i.computed(()=>Object.values(BE(t.data,o=>o.copy))),A=i.computed(()=>({labels:Array.from(t.data.reduce((o,l)=>o.add(l.round),new Set)),datasets:a.value.map(o=>{var l;return{backgroundColor:o.map(c=>c.wins*2>=c.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:o.map(c=>c.wins/c.matches*100-t.baseline),label:`${n("general.copy")} ${(l=o[0])==null?void 0:l.copy}`}})})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(o){return`${n("general.round")}: ${o[0].label}`},label(o){return(o.dataset.data[o.dataIndex]+t.baseline).toFixed(2)+"%"},footer(o){const l=[];for(const c of a.value)c[o[0].dataIndex]!==void 0&&l.push(`${n("general.copy")} ${c[o[0].dataIndex].copy}`,`${n("general.matches")}: ${c[o[0].dataIndex].matches}`,`${n("general.wins")}: ${c[o[0].dataIndex].wins}`);return l}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:n("general.winrate")},ticks:{callback(o){return o+t.baseline+"%"}}},x:{title:{display:!0,text:t.type==="drawn"?n("cards.roundDrawn"):n("cards.roundPlayed")}}}};return(o,l)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":A.value,options:s},null,8,["chart-data"]))}}),Pae={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"},yAxis:{type:String,required:!0,default:"date"}},S3=i.defineComponent({__name:"LineChart",props:Pae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA);const a=i.computed(()=>({labels:t.data.map(o=>o.label),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:t.data.map(o=>o.totalMatches&&t.type==="playrate"?o.matches/(o.totalMatches??1)*100:o.winrate*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:t.data.map(()=>t.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),A=i.computed(()=>({plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(o){return o.datasetIndex===0},callbacks:{label(o){let l=o.dataset.label||"";return l&&(l+=": "),l+=o.parsed.y+"%",l},footer:o=>{let l="";return o[0].dataIndex!==null&&t.data[o[0].dataIndex].matches&&(l+=`${n("general.matches")}: ${t.data[o[0].dataIndex].matches}`),l}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:t.yAxis==="date"?{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}:void 0}})),s=[{id:"chartGradient",beforeDraw:function(o){if(!o.scales.y)return;const l=o.ctx.createLinearGradient(0,0,0,o.height);if(l.addColorStop(0,"rgba(0, 173, 255, 0.25)"),t.type==="playrate"){l.addColorStop(1,"rgba(0, 173, 255, 0)"),o.config.data.datasets[0].fill={target:1,above:l},o.update();return}const c=o.scales.y,u=Math.max.apply(null,o.data.datasets[0].data),d=c.getPixelForValue(u),f=c.getPixelForValue(50),h=Math.min(Math.min.apply(null,o.data.datasets[0].data),50),p=c.getPixelForValue(h),m=Math.max(Math.min((f-d)/(p-d),1),0);l.addColorStop(Math.max(m-.08,0),"rgba(0, 173, 255, 0)");const y=o.ctx.createLinearGradient(0,0,0,o.height);y.addColorStop(m,"rgba(255, 81, 83, 0)"),y.addColorStop(1,"rgba(255, 81, 83, 0.25)"),o.config.data.datasets[0].fill={target:1,above:l,below:y},o.update()}}];return(o,l)=>(i.openBlock(),i.createBlock(i.unref(W_),{ref_key:"chart",ref:r,"chart-data":a.value,options:A.value,plugins:s},null,8,["chart-data","options"]))}}),Hae={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},Rae=i.defineComponent({__name:"BuiltDecksTable",props:Hae,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"name",isShown:!0,sortDirection:be.NEITHER,title:r("general.name")},{id:"updatedAt",isShown:!0,sortDirection:be.DOWN,title:r("general.updated")},{id:"createdAt",isShown:!0,sortDirection:be.NEITHER,title:r("general.created")},{id:"manaCurve",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.cost")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.deckRows,(l,c)=>(i.openBlock(),i.createBlock(Bl,{id:l.id,key:l.id,type:"built","deck-code":l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deck-code","name","created-at","updated-at","index"]))),128))]),_:1},8,["loading","heading-items"]))}});const x3=M(Rae,[["__scopeId","data-v-3cbac27b"]]),Vae={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Kae={class:"wrapper"},$ae={class:"champion-column column-content"},Wae={class:"matches-column column-content"},Gae=i.defineComponent({__name:"ProfileRegionRow",props:Vae,setup(e){const t=e,n=i.computed(()=>we().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=i.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,A)=>{var s;return i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),i.createElementVNode("div",Kae,[i.createElementVNode("div",$ae,[i.createVNode(qo,{"region-ref":t.regionNameRef},null,8,["region-ref"]),i.createElementVNode("span",null,i.toDisplayString((s=n.value)==null?void 0:s.name),1)]),i.createElementVNode("div",Wae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const l1=M(Gae,[["__scopeId","data-v-b3f363b1"]]),zae={rows:{type:Array,required:!0,default:[]}},jae=i.defineComponent({__name:"ProfileRegionTable",props:zae,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.regions"),id:"regions"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rows,s=>(i.openBlock(),i.createBlock(l1,{key:s.regionNameRef,"region-name-ref":s.regionNameRef,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1}))}});const F3=M(jae,[["__scopeId","data-v-2dae645c"]]),Yae={rows:{type:Array,required:!0,default:[]}},qae={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Xae={class:"wrapper"},Jae={class:"champion-column column-content"},Zae={class:"matches-column column-content"},eAe=i.defineComponent({__name:"ProfileArchetypeRow",props:qae,setup(e){const t=e,n=i.computed(()=>St(t.deckCode)),r=i.computed(()=>rn(n.value)),a=i.computed(()=>{var A;return`https://lor.gg/storage/cards/banner/${(A=Pa(r.value,n.value,1)[0])==null?void 0:A.cardCode}.png`});return(A,s)=>(i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${a.value})`})},null,4),i.createElementVNode("div",Xae,[i.createElementVNode("div",Jae,[i.createVNode(Ja,{"deck-code":t.deckCode},null,8,["deck-code"])]),i.createElementVNode("div",Zae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const c1=M(eAe,[["__scopeId","data-v-91ed15a8"]]),tAe=i.defineComponent({__name:"ProfileArchetypeTable",props:Yae,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.archetypes"),id:"archetypes"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rows,s=>(i.openBlock(),i.createBlock(c1,{key:s.archetypeId,"archetype-id":s.archetypeId,"deck-code":s.deckCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1}))}});const I3=M(tAe,[["__scopeId","data-v-f883a9d9"]]),nAe={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},rAe={class:"leaderboard-options"},aAe={class:"multiselects"},AAe={class:"details"},sAe={class:"players"},iAe={class:"updated"},oAe=i.defineComponent({__name:"LeaderboardOptions",props:nAe,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.inject(RA),A=[{name:r("leaderboard.lp"),nameRef:"lp"},{name:r("leaderboard.rank"),nameRef:"rank"},{name:r("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],s=i.ref(n.selectedRegion),o=i.ref(n.selectedPlayers),l=i.ref(n.selectedGraphOption),c=i.computed(()=>s.value===null?n.players:n.players.filter(u=>u.server===s.value));return i.watch(s,u=>{t("update:selectedRegion",u),t("update:selectedPlayers",[])}),i.watch(o,u=>{t("update:selectedPlayers",u)}),i.watch(l,u=>{t("update:selectedGraphOption",u)}),i.watch(()=>n.selectedPlayers,u=>{o.value=u}),i.watch(()=>n.selectedRegion,u=>{s.value=u}),i.watch(()=>n.selectedGraphOption,u=>{l.value=u}),i.watch(()=>n.isGraphShown,u=>{u&&o.value.length>0&&(l.value="lp")}),(u,d)=>(i.openBlock(),i.createElementBlock("div",rAe,[i.createElementVNode("div",aAe,[i.createVNode(i.unref(Vt),{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),placeholder:i.unref(r)("general.players"),mode:s.value?"tags":"disabled",options:c.value,searchable:!0,label:"name","value-prop":"name"},null,8,["modelValue","placeholder","mode","options"]),i.createVNode(i.unref(Vt),{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=f=>s.value=f),placeholder:i.unref(r)("general.server"),options:i.unref(we)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),n.isGraphShown?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:l.value,"onUpdate:modelValue":d[2]||(d[2]=f=>l.value=f),options:A,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",AAe,[i.createElementVNode("div",sAe,[i.createTextVNode(i.toDisplayString(i.unref(r)("leaderboard.totalPlayers"))+": ",1),i.createElementVNode("span",null,i.toDisplayString(i.unref(Te)(c.value.length)),1)]),i.createElementVNode("div",iAe,[i.createTextVNode(i.toDisplayString(i.unref(r)("leaderboard.updated"))+": ",1),i.createElementVNode("span",null,i.toDisplayString(i.unref(a)(n.updatedAt*60*1e3).fromNow()),1)])])]))}});const U3=M(oAe,[["__scopeId","data-v-0689a8b2"]]),lAe={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""},loading:{type:Boolean,required:!1,default:!1}},cAe=i.defineComponent({__name:"SimilarDecksTable",props:lAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:be.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"cost",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.cost")},{id:"differences",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deckDifferences")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.deckRows,(l,c)=>(i.openBlock(),i.createBlock(Bl,i.mergeProps({key:l.deckCode},l,{type:"similar",index:c+2,"compared-deck-code":n.originalDeckcode}),null,16,["index","compared-deck-code"]))),128))]),_:1},8,["loading","heading-items"]))}});const Q3=M(cAe,[["__scopeId","data-v-65e706f5"]]),uAe={heading:{type:String,required:!1,default:""}},dAe={class:"top"},fAe={class:"heading"},hAe={class:"chart"},pAe=i.defineComponent({__name:"StatisticsPaneContainer",props:uAe,setup(e){const t=e,n=i.ref(null),r=i.ref(!1);function a(){var A;r.value?document.exitFullscreen():(A=n.value)==null||A.requestFullscreen()}return i.onMounted(()=>{var A;(A=n.value)==null||A.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(A,s)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:i.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[i.createElementVNode("div",dAe,[i.createElementVNode("div",fAe,i.toDisplayString(t.heading),1),i.createVNode(i.unref(Ue),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),i.createElementVNode("div",hAe,[i.renderSlot(A.$slots,"default",{},void 0,!0)])],2))}});const T3=M(pAe,[["__scopeId","data-v-f00b184f"]]);function gAe({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const A=e.slides[a],s=e.slides[a].progress,o=Math.abs(s);let l=1;o>1&&(l=(o-1)*.3+1);const c=A.querySelectorAll(".swiper-carousel-animate-opacity"),u=`${s*l*50}%`,d=1-o*n,f=r-Math.abs(Math.round(s));A.style.transform=`translateX(${u}) scale(${d})`,A.style.zIndex=f,o>3?A.style.opacity=0:A.style.opacity=1,c.forEach(h=>{h.style.opacity=1-o/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const A=e.slides[a],s=A.querySelectorAll(".swiper-carousel-animate-opacity");A.style.transitionDuration=`${r}ms`,s.forEach(o=>{o.style.transitionDuration=`${r}ms`})}})}const mAe={activeIndex:{type:Number,required:!0,default:0},cardCodes:{type:Array,required:!0,default:[]}},vAe={class:"card-carousel"},BAe=["src"],yAe=i.defineComponent({__name:"CardCarousel",props:mAe,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[gAe];function a(A){t("update:activeIndex",A.activeIndex)}return(A,s)=>(i.openBlock(),i.createElementBlock("div",vAe,[i.createVNode(i.unref(Ww),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:r,"slide-to-clicked-slide":!0,onActiveIndexChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.cardCodes,o=>(i.openBlock(),i.createBlock(i.unref(Gw),{key:o},{default:i.withCtx(()=>[i.createElementVNode("img",{src:`https://lor.gg/storage/cards/card/en_us/${o}.webp`},null,8,BAe)]),_:2},1024))),128))]),_:1})]))}});const D3=M(yAe,[["__scopeId","data-v-a6ffd2e2"]]),wAe={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},bAe={class:"wins-losses-line"},_Ae={key:0,class:"details"},CAe={class:"wl-record"},EAe={class:"lines"},kAe=i.defineComponent({__name:"WinsLossesLine",props:wAe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",bAe,[t.showDetails?(i.openBlock(),i.createElementBlock("div",_Ae,[i.createElementVNode("span",CAe,i.toDisplayString(t.wins)+"W "+i.toDisplayString(t.matches-t.wins)+"L - ",1),i.createElementVNode("span",{style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"%",5)])):i.createCommentVNode("",!0),i.createElementVNode("div",EAe,[t.wins!==0?(i.openBlock(),i.createElementBlock("div",{key:0,class:"wins line",style:i.normalizeStyle({flexGrow:t.wins})},null,4)):i.createCommentVNode("",!0),t.matches-t.wins!==0?(i.openBlock(),i.createElementBlock("div",{key:1,class:"losses line",style:i.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):i.createCommentVNode("",!0)])]))}});const u1=M(kAe,[["__scopeId","data-v-511803da"]]),SAe={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},xAe={key:0,class:"wrapper"},FAe={class:"champion-column column-content"},IAe={class:"matches-column column-content"},UAe=i.defineComponent({__name:"DashboardCardRow",props:SAe,setup(e){const t=e,n=i.computed(()=>jt().cardJsonObject[t.cardCode]),r=i.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,A)=>(i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),n.value?(i.openBlock(),i.createElementBlock("div",xAe,[i.createElementVNode("div",FAe,[i.createVNode(nA,{class:"circle-card-item","card-prop":n.value,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(t.cardCode)},null,8,["card-prop","router-link"]),i.createElementVNode("span",null,i.toDisplayString(n.value.name),1)]),i.createElementVNode("div",IAe,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])):i.createCommentVNode("",!0)],4))}});const d1=M(UAe,[["__scopeId","data-v-5c26c4d6"]]),QAe={class:"card-page-toggle"},TAe=i.defineComponent({__name:"CardTogglePage",setup(e){const{t}=re(),n=i.ref(0);return(r,a)=>(i.openBlock(),i.createElementBlock("div",QAe,[i.createVNode(qu,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=A=>n.value=A),options:[i.unref(t)("cards.recommendedDecks"),i.unref(t)("cards.similarCards"),i.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const L3=M(TAe,[["__scopeId","data-v-07d07f20"]]),DAe=i.defineComponent({setup(){return{}},mounted(){const e=St("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(bE(e))}}),LAe=i.createElementVNode("h1",null,"TestComponent",-1),OAe=[LAe];function MAe(e,t,n,r,a,A){return i.openBlock(),i.createElementBlock("div",null,OAe)}const O3=M(DAe,[["render",MAe]]),NAe={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},PAe={class:"wrapper"},HAe={class:"champion-column column-content"},RAe={class:"mana-hexagon"},VAe={class:"mana-number"},KAe={class:"name"},$Ae={class:"matches-column column-content"},WAe=i.defineComponent({__name:"DashboardLeaderboardRow",props:NAe,setup(e){const t=e,n=i.computed(()=>t.selectedBannerCard===void 0?null:`https://lor.gg/storage/cards/banner/${t.selectedBannerCard}.png`),r=i.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,A)=>(i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${n.value})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),i.createElementVNode("div",PAe,[i.createElementVNode("div",HAe,[i.createElementVNode("div",RAe,[i.createVNode(jo,{class:"hexagon-icon"}),i.createElementVNode("div",VAe,i.toDisplayString(t.rank),1)]),i.createElementVNode("div",KAe,i.toDisplayString(t.name),1)]),i.createElementVNode("div",$Ae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:i.normalizeClass(["column-content change",r.value])},[t.change!==void 0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Ue),{class:"icon",icon:"fa-chevron-down"}),i.createElementVNode("span",null,i.toDisplayString(i.unref(Te)(Math.abs(t.change),0,10)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Test ")],64))],2)])],4))}});const f1=M(WAe,[["__scopeId","data-v-3d62a718"]]),GAe={date:{type:Date,required:!0,default:[]},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},Zf="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",zAe={class:"reveal-day-option-wrapper"},jAe={class:"card-wrapper"},YAe=["src"],qAe={class:"card-wrapper"},XAe=["src"],JAe={class:"card-wrapper"},ZAe=["src"],ese=i.defineComponent({__name:"RevealDayOption",props:GAe,setup(e){const t=e,n=i.inject(RA),r=i.ref(null),a=i.ref(null),A=i.computed(()=>t.date.getTime()<new Date().getTime()),s=i.computed(()=>A.value?`Revealed Cards
878
+ - Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},pne={class:"card-similar-cards"},gne=i.defineComponent({__name:"CardSimilarCards",props:hne,setup(e){const t=e;function n(a,A,s){if(a.length===10&&s<a[0].points)return;let o=0;for(;o<a.length&&a[o].points<s;)o++;a.splice(o,0,{cardCode:A,points:s}),a.length>10&&a.splice(0,1)}const r=i.computed(()=>{const a=[],A=jt().cardJsonObject;let s=0;for(const o in A){if(o===t.card.cardCode||t.card.collectible&&!A[o].collectible)continue;s=0;const l=A[o];for(const c of l.regionRefs)for(const u of t.card.regionRefs)c===u&&(s+=2);for(const c of l.subtypes)for(const u of t.card.subtypes)c===u&&(s+=2);for(const c of l.keywordRefs)for(const u of t.card.keywordRefs)c===u&&(s+=1);l.typeRef===t.card.typeRef&&(s+=3),l.rarityRef!=="None"&&l.rarityRef===t.card.rarityRef&&(s+=1),l.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(s+=(9-Math.abs(l.attack-t.card.attack))/3,s+=(9-Math.abs(l.health-t.card.health))/3),s+=(12-Math.abs(l.cost-t.card.cost))/3,n(a,o,s)}return a.reverse().map(o=>jt().cardJsonObject[o.cardCode])});return(a,A)=>(i.openBlock(),i.createElementBlock("div",pne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,s=>(i.openBlock(),i.createBlock(i.unref(Zm),{key:s.cardCode,"card-prop":s,"is-root":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(s.cardCode)},null,8,["card-prop","router-link"]))),128))]))}});const p3=M(gne,[["__scopeId","data-v-4db54a8d"]]),mne={logoType:{type:String,required:!0,default:"logo-and-text"}},g3=e=>(i.pushScopeId("data-v-bb0b24b5"),e=e(),i.popScopeId(),e),vne={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},Bne=i.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6),yne=[Bne],wne={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},bne=i.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8),_ne=[bne],Cne={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},Ene=g3(()=>i.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1)),kne=g3(()=>i.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)),Sne=[Ene,kne],xne=i.defineComponent({__name:"LogoIcon",props:mne,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(i.openBlock(),i.createElementBlock("svg",vne,yne)):t.logoType==="logo-and-text"?(i.openBlock(),i.createElementBlock("svg",wne,_ne)):(i.openBlock(),i.createElementBlock("svg",Cne,Sne))}});const Ys=M(xne,[["__scopeId","data-v-bb0b24b5"]]),Fne={class:"dashboard-sign-up"},Ine={class:"top"},Une={class:"subtitle"},Qne={class:"fancy-button"},Tne=i.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=re();return(n,r)=>(i.openBlock(),i.createElementBlock("div",Fne,[i.createElementVNode("div",Ine,[i.createVNode(Ys,{"logo-type":"text-only",class:"logo-icon"}),i.createElementVNode("div",Une,i.toDisplayString(i.unref(t)("general.becomeTheMaster")),1)]),i.createElementVNode("div",Qne,i.toDisplayString(i.unref(t)("general.signIn")),1)]))}});const m3=M(Tne,[["__scopeId","data-v-e398dd28"]]),Dne={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date},opponentRouterLink:{type:Object,required:!0,default:""}},Lne=e=>(i.pushScopeId("data-v-202a297d"),e=e(),i.popScopeId(),e),One={class:"match-item"},Mne=Lne(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Nne=[Mne],Pne={class:"details"},Hne={class:"match-details"},Rne={class:"game-type"},Vne={class:"time"},Kne={class:"main"},$ne={class:"container"},Wne={class:"container"},Gne=i.defineComponent({__name:"MatchItem",props:Dne,setup(e){const t=e,{t:n}=re(),r=i.inject(RA),a=i.computed(()=>St(t.deckCode)),A=i.computed(()=>St(t.opponentDeckCode)),s=i.computed(()=>[Pa(rn(a.value),a.value,1)[0],Pa(rn(A.value),A.value,1)[0]].map(o=>`https://lor.gg/storage/cards/banner/${o==null?void 0:o.cardCode}.png`));return(o,l)=>{const c=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",One,[i.createElementVNode("div",{class:"background",style:i.normalizeStyle({"--background-image":`url(${s.value[0]})`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,u=>(i.openBlock(),i.createElementBlock("div",{key:u,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${u})`})},Nne,4))),128))],4),i.createElementVNode("div",Pne,[i.createElementVNode("div",Hne,[i.createElementVNode("div",Rne,i.toDisplayString(t.gameType)+" - "+i.toDisplayString(t.gameMode),1),i.createElementVNode("div",Vne,i.toDisplayString(i.unref(r)(t.playedAt).fromNow()),1)]),i.createVNode(c,{to:t.opponentRouterLink,class:"opponent-details"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.opponentName),1)]),_:1},8,["to"])]),i.createElementVNode("div",Kne,[i.createElementVNode("div",$ne,[i.createVNode(Ja,{class:"deck-highlight",deck:a.value},null,8,["deck"])]),i.createElementVNode("div",{class:"container results",style:i.normalizeStyle({color:t.isVictory?"var(--color-good)":"var(--color-bad)"})},i.toDisplayString(t.isVictory?i.unref(n)("general.victory"):i.unref(n)("general.defeat")),5),i.createElementVNode("div",Wne,[i.createVNode(Ja,{class:"deck-highlight opponent",deck:A.value},null,8,["deck"])])])])}}});const v3=M(Gne,[["__scopeId","data-v-202a297d"]]),zne={players:{type:Array,required:!0,default:[]}},jne={class:"leaderboard-top-10-region"},Yne=i.defineComponent({__name:"LeaderboardTop10Region",props:zne,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",jne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.players,a=>(i.openBlock(),i.createBlock(fn,{key:`${a.name}${a.rank}`,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0,"router-link":i.unref(nn)().callbacks.playerRouterLinkCallback(a)},null,8,["card-code-prop","color","mana-number","name","quantity-number","router-link"]))),128))]))}});const n1=M(Yne,[["__scopeId","data-v-41d779ee"]]),qne={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:null},favorite_deck:{type:String,required:!0,default:null},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:null},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:null},wins:{type:Number,required:!0,default:null},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Xne={class:"leaderboard-detail-row-background-wrapper"},Jne={class:"leaderboard-detail-row-background"},Zne={class:"leaderboard-detail-row wrapper"},ere={key:1,class:"column-content"},tre={key:3,class:"column-content"},nre={key:4,class:"column-content"},rre={key:6,class:"column-content deck-highlight-wrapper"},are={key:1},Are=i.defineComponent({__name:"LeaderboardDetailRow",props:qne,setup(e){const t=e,n=i.computed(()=>t.selected_banner_card?["",`https://lor.gg/storage/cards/banner/${t.selected_banner_card}.png`]:[]),r=i.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(s,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Xne,[i.createElementVNode("div",Jne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,o=>(i.openBlock(),i.createElementBlock("div",{key:o,class:"background-card",style:i.normalizeStyle({"--background-image":`url(${o})`})},null,4))),128))])]),i.createElementVNode("div",Zne,[t.shownColumns.player?(i.openBlock(),i.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:A[0]||(A[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(fn,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):i.createCommentVNode("",!0),t.shownColumns.lp?(i.openBlock(),i.createElementBlock("div",ere,i.toDisplayString(i.unref(Te)(t.lp)),1)):i.createCommentVNode("",!0),t.shownColumns.change?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["column-content change",r.value])},[t.change!==null?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Ie),{class:"icon",icon:"fa-chevron-down"}),i.createElementVNode("span",null,i.toDisplayString(t.change?i.unref(Te)(Math.abs(t.change)):""),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[],64))],2)):i.createCommentVNode("",!0),t.shownColumns.wins?(i.openBlock(),i.createElementBlock("div",tre,i.toDisplayString(i.unref(Te)(t.wins)),1)):i.createCommentVNode("",!0),t.shownColumns.matches?(i.openBlock(),i.createElementBlock("div",nre,i.toDisplayString(i.unref(Te)(t.matches)),1)):i.createCommentVNode("",!0),t.shownColumns.winrate?(i.openBlock(),i.createElementBlock("div",{key:5,class:"column-content",style:i.normalizeStyle({color:t.wins===null||t.matches===null?"var(--color-primary-2)":`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(t.matches===null||t.wins===null?"-":i.unref(Te)(t.wins/t.matches*100,1,3)+"%"),5)):i.createCommentVNode("",!0),t.shownColumns.deck?(i.openBlock(),i.createElementBlock("div",rre,[t.favorite_deck?(i.openBlock(),i.createBlock(Ja,{key:0,"deck-code":t.favorite_deck},null,8,["deck-code"])):(i.openBlock(),i.createElementBlock("span",are,"-"))])):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const r1=M(Are,[["__scopeId","data-v-fea16062"]]),sre={routerLink:{type:Object,required:!0,default:{path:"/404"}},playerRouterLink:{type:Object,required:!0,default:{path:"/404"}},deckCode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date},archetypeRouterLink:{type:Object,required:!1,default:"404"},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},isPrivate:{type:Boolean,required:!1,default:!1}};const ire={},ore=e=>(i.pushScopeId("data-v-5b8e191d"),e=e(),i.popScopeId(),e),lre={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},cre=ore(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)),ure=[cre];function dre(e,t){return i.openBlock(),i.createElementBlock("svg",lre,ure)}const a1=M(ire,[["render",dre],["__scopeId","data-v-5b8e191d"]]);const fre={},hre=e=>(i.pushScopeId("data-v-5b6f3d5e"),e=e(),i.popScopeId(),e),pre={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},gre=hre(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)),mre=[gre];function vre(e,t){return i.openBlock(),i.createElementBlock("svg",pre,mre)}const A1=M(fre,[["render",vre],["__scopeId","data-v-5b6f3d5e"]]);const Bre={},yre=e=>(i.pushScopeId("data-v-81223df9"),e=e(),i.popScopeId(),e),wre={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},bre=yre(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)),_re=[bre];function Cre(e,t){return i.openBlock(),i.createElementBlock("svg",wre,_re)}const s1=M(Bre,[["render",Cre],["__scopeId","data-v-81223df9"]]),Ere=e=>(i.pushScopeId("data-v-578d0d2d"),e=e(),i.popScopeId(),e),kre=Ere(()=>i.createElementVNode("div",{class:"background"},null,-1)),Sre={class:"content"},xre={class:"format"},Fre={class:"format-text"},Ire={key:0,class:"details built"},Ure={class:"title"},Qre={class:"extra-info"},Tre={class:"info-time"},Dre={key:1,class:"details stats"},Lre={class:"stat-column"},Ore={class:"descriptor"},Mre={class:"stat-column"},Nre={class:"number"},Pre={class:"descriptor"},Hre=i.defineComponent({__name:"DeckBlock",props:sre,setup(e){const t=e,{t:n}=re(),r=i.inject(RA),a=i.ref(!1),A=i.computed(()=>St(t.deckCode)),s=i.computed(()=>rn(A.value)),o=i.computed(()=>Mu(s.value)),l=i.computed(()=>s.value.filter(h=>Qs(h))),c=i.computed(()=>{var h;return{"--background-image":`url(https://lor.gg/storage/cards/full-art/${(h=Pa(s.value,A.value,1)[0])==null?void 0:h.cardCode}.webp)`}}),u=i.computed(()=>CE(s.value)),d=i.computed(()=>u.value.map(h=>we().dataJson.formats[h]).filter(h=>h!==void 0).sort((h,p)=>h.order-p.order)[0]),f=i.computed(()=>({showButtons:{deleteDeck:t.type==="built"?t.showOwnerButtons:!1,updateDeckPrivacy:t.type==="built"?t.showOwnerButtons:!1,editDeckName:t.type==="built"?t.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:t.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.type==="built"?void 0:t.archetypeRouterLink,deckId:t.type==="built"?t.deckId:void 0,deckName:t.type==="built"?t.deckName:void 0,isPrivate:t.type==="built"?t.isPrivate:void 0}));return(h,p)=>{const m=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(m,{to:t.routerLink},{default:i.withCtx(()=>{var y,g,v;return[i.createElementVNode("div",{class:i.normalizeClass(["built-deck-preview",a.value?"show":"hide"]),style:i.normalizeStyle(c.value)},[kre,i.createVNode(Vd,{class:"deck-highlight-eye icon","deck-code":t.deckCode,onClick:p[0]||(p[0]=i.withModifiers(()=>{},["stop","prevent"])),"deck-buttons-props":{...f.value,showButtons:{...f.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck-buttons-props"]),i.createElementVNode("div",{class:"options-button icon",onClick:p[1]||(p[1]=i.withModifiers(_=>a.value=!a.value,["stop","prevent"]))},[i.createVNode(i.unref(Ie),{icon:"ellipsis-v"})]),i.createVNode(gl,i.mergeProps({onClick:p[2]||(p[2]=i.withModifiers(()=>{},["stop","prevent"])),class:"deck-buttons"},f.value),null,16),i.createVNode(Xo,{class:"deck-highlight-regions deck-highlight-section",regions:o.value},null,8,["regions"]),i.createElementVNode("div",Sre,[i.createElementVNode("div",xre,[((y=d.value)==null?void 0:y.nameRef)===i.unref(Vr).Eternal?(i.openBlock(),i.createBlock(a1,{key:0,class:"format-icon"})):((g=d.value)==null?void 0:g.nameRef)===i.unref(Vr).Standard?(i.openBlock(),i.createBlock(A1,{key:1,class:"format-icon"})):(i.openBlock(),i.createBlock(s1,{key:2,class:"format-icon"})),i.createElementVNode("span",Fre,i.toDisplayString((v=d.value)==null?void 0:v.name),1)]),i.createVNode(Jo,{class:"deck-highlight-cards deck-highlight-section",cards:l.value},null,8,["cards"])]),t.type==="built"?(i.openBlock(),i.createElementBlock("div",Ire,[i.createElementVNode("div",Ure,i.toDisplayString(t.deckName),1),i.createElementVNode("div",Qre,[i.createElementVNode("div",{class:"info-user",onClick:p[3]||(p[3]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(m,{to:t.playerRouterLink},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.userName),1)]),_:1},8,["to"])]),i.createElementVNode("div",Tre,i.toDisplayString(i.unref(r)(t.updatedAt).fromNow()),1)])])):i.createCommentVNode("",!0),t.type==="stats"?(i.openBlock(),i.createElementBlock("div",Dre,[i.createElementVNode("div",Lre,[i.createElementVNode("div",{class:"number",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5),i.createElementVNode("div",Ore,i.toDisplayString(i.unref(n)("general.winrate")),1)]),i.createElementVNode("div",Mre,[i.createElementVNode("div",Nre,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",Pre,i.toDisplayString(i.unref(n)("general.matches")),1)])])):i.createCommentVNode("",!0)],6)]}),_:1},8,["to"])}}});const B3=M(Hre,[["__scopeId","data-v-578d0d2d"]]),Rre={headingItems:{type:Array,required:!0,default:[]}},Vre={class:"table-wrapper"},Kre={class:"table no-scrollbar"},$re={class:"heading wrapper"},Wre=i.defineComponent({__name:"SmallTable",props:Rre,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Vre,[i.createElementVNode("div",Kre,[i.createElementVNode("div",$re,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.headingItems,a=>(i.openBlock(),i.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[i.createElementVNode("div",null,i.toDisplayString(a.title),1)]))),128)),i.renderSlot(n.$slots,"heading",{},void 0,!0)]),i.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const JA=M(Wre,[["__scopeId","data-v-20cc8387"]]),Gre={players:{type:Array,required:!0,default:[]}},zre=e=>(i.pushScopeId("data-v-48a25357"),e=e(),i.popScopeId(),e),jre={class:"leaderboard-top"},Yre=zre(()=>i.createElementVNode("div",{class:"heading-background"},null,-1)),qre={class:"heading-wrapper"},Xre=i.defineComponent({__name:"LeaderboardTop",props:Gre,setup(e){const t=e,n=i.computed(()=>we().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,A)=>a.rank-A.rank).slice(0,10)));return(r,a)=>(i.openBlock(),i.createElementBlock("div",jre,[Yre,i.createElementVNode("div",qre,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(we)().dataJson.servers,A=>(i.openBlock(),i.createElementBlock("div",{key:A.nameRef,class:"heading"},i.toDisplayString(A.name),1))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(A,s)=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"top-10"},[i.createVNode(n1,{players:A},null,8,["players"])]))),128))]))}});const y3=M(Xre,[["__scopeId","data-v-48a25357"]]),Jre={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},Zre={class:"card-item-3d"},eae=i.defineComponent({__name:"CardItem3d",props:Jre,setup(e){const t=e,n={ShadowIsles:"https://static.wikia.nocookie.net/leagueoflegends/images/b/bb/LoR_Shadow_Isles_Card_Back.png",BandleCity:"https://static.wikia.nocookie.net/leagueoflegends/images/c/c4/LoR_Bandle_City_Card_Back.png",Bilgewater:"https://static.wikia.nocookie.net/leagueoflegends/images/2/24/LoR_Bilgewater_Card_Back.png",Demacia:"https://static.wikia.nocookie.net/leagueoflegends/images/6/62/LoR_Demacia_Card_Back.png",Freljord:"https://static.wikia.nocookie.net/leagueoflegends/images/5/5e/LoR_Freljord_Card_Back.png",Ionia:"https://static.wikia.nocookie.net/leagueoflegends/images/3/3d/LoR_Ionia_Card_Back.png",Noxus:"https://static.wikia.nocookie.net/leagueoflegends/images/5/50/LoR_Noxus_Card_Back.png",PiltoverZaun:"https://static.wikia.nocookie.net/leagueoflegends/images/5/57/LoR_Piltover_Card_Back.png",Shurima:"https://static.wikia.nocookie.net/leagueoflegends/images/0/0c/LoR_Shurima_Card_Back.png",Targon:"https://static.wikia.nocookie.net/leagueoflegends/images/a/a6/LoR_Targon_Card_Back.png"},r=i.computed(()=>{const s=Ro(void 0,t.cardCode,!0);if(s.value===void 0)return{};const o=s.value.regionRefs[0];return{content:`url(${n[o]??"https://static.wikia.nocookie.net/leagueoflegends/images/2/2d/LoR_Summoner%27s_Rift_Order_Card_Back.png"})`}}),a=i.computed(()=>({"background-image":`url("https://lor.gg/storage/cards/card/en_us/${t.cardCode}.webp")`,"background-size":"cover"})),A=i.computed(()=>t.flipped?["flipped"]:[]);return(s,o)=>(i.openBlock(),i.createElementBlock("div",Zre,[i.createElementVNode("div",{class:i.normalizeClass(["card",A.value])},[i.createElementVNode("div",{class:"front face",style:i.normalizeStyle(r.value)},null,4),i.createElementVNode("div",{class:"back face",style:i.normalizeStyle(a.value)},null,4)],2)]))}});const i1=M(eae,[["__scopeId","data-v-72e7b1ae"]]),tae=e=>(i.pushScopeId("data-v-20998882"),e=e(),i.popScopeId(),e),nae={class:"card-lottery"},rae={class:"cards-container"},aae={key:0,class:"bottom"},Aae={class:"slice"},sae={class:"circle-slice-item-wrapper"},iae={class:"options"},oae={class:"primary-button"},lae={class:"primary-button"},cae=tae(()=>i.createElementVNode("span",null," (23) ",-1)),uae={class:"icon"},dae={class:"circle-card-item-wrapper"},fae=i.defineComponent({__name:"CardLottery",setup(e){const t=Object.keys(jt().cardJsonObject),n=[],r=i.ref(null),a=i.computed(()=>r.value?{background:`url(https://lor.gg/storage/cards/full-art/${r.value}.webp)`,"background-position":"center","background-size":"cover"}:{});function A(o){r.value=o.cardCode.value,o.flipped.value=!0;for(const l of n)o!==l&&setTimeout(()=>{l.display.value=!1},1e3)}function s(){r.value=null,n.splice(0);for(let o=0;o<3;o++)n.push({flipped:i.ref(!1),display:i.ref(!0),cardCode:i.ref(t[Math.floor(Math.random()*t.length)])})}return s(),(o,l)=>{const c=i.resolveDirective("t");return i.openBlock(),i.createElementBlock("div",nae,[i.createElementVNode("div",{class:"card-lottery-background",style:i.normalizeStyle(a.value)},null,4),i.createElementVNode("div",rae,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,d)=>i.createElementVNode("div",{key:d,class:i.normalizeClass(["card-item-3d-wrapper",u.display.value?null:"hide"])},[i.createVNode(i1,{flipped:u.flipped.value,"card-code":u.cardCode.value,onClick:f=>A(u)},null,8,["flipped","card-code","onClick"])],2)),64))]),r.value?(i.openBlock(),i.createElementBlock("div",aae,[i.createElementVNode("div",Aae,[i.createElementVNode("div",sae,[i.createVNode(fn,{color:"133, 133, 133",name:"Player","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])]),i.createElementVNode("div",iae,[i.withDirectives(i.createElementVNode("button",oae,null,512),[[c,"cardLottery.setBanner"]]),i.withDirectives(i.createElementVNode("button",lae,null,512),[[c,"cardLottery.setIcon"]]),i.createElementVNode("button",{class:"primary-button",onClick:s},[i.withDirectives(i.createElementVNode("span",null,null,512),[[c,"cardLottery.openAnother"]]),cae])]),i.createElementVNode("div",uae,[i.createElementVNode("div",dae,[i.createVNode(nA,{color:"133, 133, 133","card-code-prop":r.value,"ignore-card-item":!0,"router-link":""},null,8,["card-code-prop"])])])])):i.createCommentVNode("",!0)])}}});const w3=M(fae,[["__scopeId","data-v-20998882"]]),hae={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1},routerLink:{type:Object,required:!0,default:""},premiumLink:{type:Object,required:!0,default:""}},pae={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},o1=i.defineComponent({__name:"WinrateDoughnutChart",props:pae,setup(e){const t=e,n=i.ref(null);Le.register(...Cr);const r=i.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[t.wins,t.matches-t.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:t.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},A=[{id:"text",beforeDraw:function(s){const o=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const d=s.data.datasets[0].data[0],f=s.data.datasets[0].data[1],h=(d/(d+f)*100).toFixed(2)+"%",p=Math.round((o-c.measureText(h).width)/2),m=l/2;d>f?c.fillStyle="#00adff":d<f?c.fillStyle="#ff5153":c.fillStyle="#ffffff",c.fillText(h,p,m),c.save()}}];return(s,o)=>(i.openBlock(),i.createBlock(i.unref(ld),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),gae={class:"dashboard-profile"},mae={class:"profile-banner"},vae=["src"],Bae={class:"edit-banner"},yae={class:"profile-text"},wae={class:"profile-region"},bae={class:"profile-tiles"},_ae={class:"profile-tile"},Cae={class:"tile-content"},Eae={class:"games-text"},kae={class:"tile-text"},Sae={class:"profile-tile"},xae={class:"chart-container"},Fae={class:"tile-content"},Iae={class:"tile-text"},Uae={key:0,class:"profile-premium-expiration"},Qae={class:"profile-premium-expiration-time"},Tae=i.defineComponent({__name:"DashboardProfile",props:hae,setup(e){const t=e,{t:n}=re(),r=i.inject(RA);return(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",gae,[i.createElementVNode("div",mae,[i.createElementVNode("img",{alt:"Profile Banner",src:`https://lor.gg/storage/cards/banner/${t.bannerCardCode??"05BC160"}.png`,class:"profile-banner-img"},null,8,vae),i.createVNode(nA,{"card-code-prop":t.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor,"router-link":t.routerLink},null,8,["card-code-prop","color-override","router-link"]),i.createElementVNode("div",Bae,[i.createVNode(i.unref(Ie),{icon:"pencil-alt"})])]),i.createElementVNode("div",yae,[i.createVNode(s,{to:t.routerLink,class:"profile-name"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.name),1)]),_:1},8,["to"]),i.createElementVNode("div",wae,i.toDisplayString(t.server),1)]),i.createElementVNode("div",bae,[i.createElementVNode("div",_ae,[i.createElementVNode("div",Cae,[i.createElementVNode("div",Eae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1)]),i.createElementVNode("div",kae,i.toDisplayString(i.unref(n)("general.gamesPlayed")),1)]),i.createElementVNode("div",Sae,[i.createElementVNode("div",xae,[i.createElementVNode("div",Fae,[i.createVNode(o1,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),i.createElementVNode("div",Iae,i.toDisplayString(i.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(i.openBlock(),i.createElementBlock("div",Uae,[i.createTextVNode(i.toDisplayString(i.unref(n)("general.premium"))+" "+i.toDisplayString(t.isPremiumRenewing?i.unref(n)("general.renews"):i.unref(n)("general.expires"))+" ",1),i.createElementVNode("b",Qae,i.toDisplayString(i.unref(r)(t.premiumExpiration).fromNow()),1)])):(i.openBlock(),i.createBlock(s,{key:1,to:t.premiumLink,class:"profile-premium fancy-button"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("general.getPremium")),1)]),_:1},8,["to"]))])}}});const b3=M(Tae,[["__scopeId","data-v-d302d4f0"]]),Dae={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function Lae(e,t){const{t:n}=re();Le.register(XA),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const s of t)s>r&&(r=s),s<a&&(a=s);const A=[];for(const s of Object.values(we().dataJson.patches))new Date(s.startTime)<=r&&new Date(s.startTime)>=a&&A.push(s);for(const s of A)e.plugins.annotation.annotations.push({type:"line",xMin:s.startTime,xMax:s.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${s.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const _3=i.defineComponent({__name:"LeaderboardChart",props:Dae,setup(e){const t=e,n=i.ref();Le.register(...Cr),Le.register(XA);const r=i.computed(()=>t.data.slice().sort((s,o)=>+s.date-+o.date)),a=i.computed(()=>{let s;return t.type==="totalPlayers"?s=we().dataJson.servers.filter(o=>t.server===null?!0:o.nameRef===t.server).map(o=>({label:o.name,borderColor:F1(o.nameRef),data:r.value.filter(l=>l.server===o.nameRef).map(l=>l.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):s=r.value.reduce((o,l)=>o.includes(l.name)?o:[...o,l.name],[]).map(o=>({label:o,borderColor:F1(o),data:r.value.filter(l=>l.name===o).map(l=>t.type==="lp"?l.lp:l.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(o=>o.date).filter((o,l,c)=>c.findIndex(u=>u.getTime()===o.getTime())===l),datasets:s}}),A={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return Lae(A,t.data.map(s=>s.date)),(s,o)=>(i.openBlock(),i.createBlock(i.unref(W_),{ref_key:"chart",ref:n,"chart-data":a.value,options:A},null,8,["chart-data"]))}}),Oae={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},C3=i.defineComponent({__name:"CardQuantityBarChart",props:Oae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a=i.computed(()=>({labels:t.data.map(s=>s.quantity),datasets:[{backgroundColor:t.data.map(s=>s.wins*2>=s.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:t.data.map(s=>t.type==="winrate"?s.wins/s.matches*100-t.baseline:s.matches)}]})),A={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(s){return`${n("general.quantity")}: ${s[0].label}`},label(s){return t.type==="winrate"?(s.dataset.data[s.dataIndex]+t.baseline).toFixed(2)+"%":s.dataset.data[s.dataIndex].toString()},footer(s){return[`${n("general.matches")}: ${t.data[s[0].dataIndex].matches}`,`${n("general.wins")}: ${t.data[s[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t.type==="winrate"?n("general.winrate"):n("general.matches")},ticks:{callback(s){return t.type==="winrate"?s+t.baseline+"%":s}}},x:{title:{display:!0,text:n("general.quantity")}}}};return(s,o)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":a.value,options:A},null,8,["chart-data"]))}}),Mae={data:{type:Array,required:!0,default:""}},E3=i.defineComponent({__name:"WinsLossesBarChart",props:Mae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a=i.computed(()=>t.data.length===0?!1:typeof t.data[0].column!="string"),A=i.computed(()=>a.value?t.data.slice().sort((u,d)=>u.column.getTime()-d.column.getTime()):t.data),s=i.computed(()=>[...new Set(A.value.map(u=>u.column))]),o=i.computed(()=>({losses:A.value.map(u=>u.matches-u.wins),wins:A.value.map(u=>u.wins)})),l=i.computed(()=>({labels:s.value,datasets:Object.entries(o.value).map((u,d)=>({backgroundColor:u[0]==="wins"?`rgba(${Ha("--color-good-rgb")}, 0.5)`:`rgba(${Ha("--color-bad-rgb")}, 0.5)`,data:u[1],borderRadius:d===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:n(`general.${u[0]}`),barPercentage:.5}))})),c={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(u){if(u.length===0)return"";let d=0;const f=u[0].chart.data.datasets[1].data[u[0].dataIndex];for(let h=0;h<u[0].chart.data.datasets.length;h++)d+=u[0].chart.data.datasets[h].data[u[0].dataIndex];return`${n("general.total")}: ${d}
879
+ ${n("general.winrate")}: ${Te(f/d*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(u,d){const f=A.value[d.dataIndex];return Te(f.wins/f.matches*100,2)+"%"},display(u){return u.datasetIndex===u.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(u,d)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Nae={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},k3=i.defineComponent({__name:"RoundCardInfoBarChart",props:Nae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA),Le.register(bd);const a=i.computed(()=>Object.values(BE(t.data,o=>o.copy))),A=i.computed(()=>({labels:Array.from(t.data.reduce((o,l)=>o.add(l.round),new Set)),datasets:a.value.map(o=>{var l;return{backgroundColor:o.map(c=>c.wins*2>=c.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:o.map(c=>c.wins/c.matches*100-t.baseline),label:`${n("general.copy")} ${(l=o[0])==null?void 0:l.copy}`}})})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(o){return`${n("general.round")}: ${o[0].label}`},label(o){return(o.dataset.data[o.dataIndex]+t.baseline).toFixed(2)+"%"},footer(o){const l=[];for(const c of a.value)c[o[0].dataIndex]!==void 0&&l.push(`${n("general.copy")} ${c[o[0].dataIndex].copy}`,`${n("general.matches")}: ${c[o[0].dataIndex].matches}`,`${n("general.wins")}: ${c[o[0].dataIndex].wins}`);return l}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:n("general.winrate")},ticks:{callback(o){return o+t.baseline+"%"}}},x:{title:{display:!0,text:t.type==="drawn"?n("cards.roundDrawn"):n("cards.roundPlayed")}}}};return(o,l)=>(i.openBlock(),i.createBlock(i.unref(od),{ref_key:"chart",ref:r,"chart-data":A.value,options:s},null,8,["chart-data"]))}}),Pae={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"},yAxis:{type:String,required:!0,default:"date"}},S3=i.defineComponent({__name:"LineChart",props:Pae,setup(e){const t=e,{t:n}=re(),r=i.ref();Le.register(...Cr),Le.register(XA);const a=i.computed(()=>({labels:t.data.map(o=>o.label),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:t.data.map(o=>o.totalMatches&&t.type==="playrate"?o.matches/(o.totalMatches??1)*100:o.winrate*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:t.data.map(()=>t.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),A=i.computed(()=>({plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(o){return o.datasetIndex===0},callbacks:{label(o){let l=o.dataset.label||"";return l&&(l+=": "),l+=o.parsed.y+"%",l},footer:o=>{let l="";return o[0].dataIndex!==null&&t.data[o[0].dataIndex].matches&&(l+=`${n("general.matches")}: ${t.data[o[0].dataIndex].matches}`),l}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:t.yAxis==="date"?{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}:void 0}})),s=[{id:"chartGradient",beforeDraw:function(o){if(!o.scales.y)return;const l=o.ctx.createLinearGradient(0,0,0,o.height);if(l.addColorStop(0,"rgba(0, 173, 255, 0.25)"),t.type==="playrate"){l.addColorStop(1,"rgba(0, 173, 255, 0)"),o.config.data.datasets[0].fill={target:1,above:l},o.update();return}const c=o.scales.y,u=Math.max.apply(null,o.data.datasets[0].data),d=c.getPixelForValue(u),f=c.getPixelForValue(50),h=Math.min(Math.min.apply(null,o.data.datasets[0].data),50),p=c.getPixelForValue(h),m=Math.max(Math.min((f-d)/(p-d),1),0);l.addColorStop(Math.max(m-.08,0),"rgba(0, 173, 255, 0)");const y=o.ctx.createLinearGradient(0,0,0,o.height);y.addColorStop(m,"rgba(255, 81, 83, 0)"),y.addColorStop(1,"rgba(255, 81, 83, 0.25)"),o.config.data.datasets[0].fill={target:1,above:l,below:y},o.update()}}];return(o,l)=>(i.openBlock(),i.createBlock(i.unref(W_),{ref_key:"chart",ref:r,"chart-data":a.value,options:A.value,plugins:s},null,8,["chart-data","options"]))}}),Hae={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},Rae=i.defineComponent({__name:"BuiltDecksTable",props:Hae,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"name",isShown:!0,sortDirection:be.NEITHER,title:r("general.name")},{id:"updatedAt",isShown:!0,sortDirection:be.DOWN,title:r("general.updated")},{id:"createdAt",isShown:!0,sortDirection:be.NEITHER,title:r("general.created")},{id:"manaCurve",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.cost")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.deckRows,(l,c)=>(i.openBlock(),i.createBlock(Bl,{id:l.id,key:l.id,type:"built","deck-code":l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deck-code","name","created-at","updated-at","index"]))),128))]),_:1},8,["loading","heading-items"]))}});const x3=M(Rae,[["__scopeId","data-v-3cbac27b"]]),Vae={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Kae={class:"wrapper"},$ae={class:"champion-column column-content"},Wae={class:"matches-column column-content"},Gae=i.defineComponent({__name:"ProfileRegionRow",props:Vae,setup(e){const t=e,n=i.computed(()=>we().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=i.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,A)=>{var s;return i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),i.createElementVNode("div",Kae,[i.createElementVNode("div",$ae,[i.createVNode(qo,{"region-ref":t.regionNameRef},null,8,["region-ref"]),i.createElementVNode("span",null,i.toDisplayString((s=n.value)==null?void 0:s.name),1)]),i.createElementVNode("div",Wae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const l1=M(Gae,[["__scopeId","data-v-b3f363b1"]]),zae={rows:{type:Array,required:!0,default:[]}},jae=i.defineComponent({__name:"ProfileRegionTable",props:zae,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.regions"),id:"regions"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rows,s=>(i.openBlock(),i.createBlock(l1,{key:s.regionNameRef,"region-name-ref":s.regionNameRef,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1}))}});const F3=M(jae,[["__scopeId","data-v-2dae645c"]]),Yae={rows:{type:Array,required:!0,default:[]}},qae={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Xae={class:"wrapper"},Jae={class:"champion-column column-content"},Zae={class:"matches-column column-content"},eAe=i.defineComponent({__name:"ProfileArchetypeRow",props:qae,setup(e){const t=e,n=i.computed(()=>St(t.deckCode)),r=i.computed(()=>rn(n.value)),a=i.computed(()=>{var A;return`https://lor.gg/storage/cards/banner/${(A=Pa(r.value,n.value,1)[0])==null?void 0:A.cardCode}.png`});return(A,s)=>(i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${a.value})`})},null,4),i.createElementVNode("div",Xae,[i.createElementVNode("div",Jae,[i.createVNode(Ja,{"deck-code":t.deckCode},null,8,["deck-code"])]),i.createElementVNode("div",Zae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const c1=M(eAe,[["__scopeId","data-v-91ed15a8"]]),tAe=i.defineComponent({__name:"ProfileArchetypeTable",props:Yae,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.archetypes"),id:"archetypes"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rows,s=>(i.openBlock(),i.createBlock(c1,{key:s.archetypeId,"archetype-id":s.archetypeId,"deck-code":s.deckCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1}))}});const I3=M(tAe,[["__scopeId","data-v-f883a9d9"]]),nAe={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},rAe={class:"leaderboard-options"},aAe={class:"multiselects"},AAe={class:"details"},sAe={class:"players"},iAe={class:"updated"},oAe=i.defineComponent({__name:"LeaderboardOptions",props:nAe,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.inject(RA),A=[{name:r("leaderboard.lp"),nameRef:"lp"},{name:r("leaderboard.rank"),nameRef:"rank"},{name:r("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],s=i.ref(n.selectedRegion),o=i.ref(n.selectedPlayers),l=i.ref(n.selectedGraphOption),c=i.computed(()=>s.value===null?n.players:n.players.filter(u=>u.server===s.value));return i.watch(s,u=>{t("update:selectedRegion",u),t("update:selectedPlayers",[])}),i.watch(o,u=>{t("update:selectedPlayers",u)}),i.watch(l,u=>{t("update:selectedGraphOption",u)}),i.watch(()=>n.selectedPlayers,u=>{o.value=u}),i.watch(()=>n.selectedRegion,u=>{s.value=u}),i.watch(()=>n.selectedGraphOption,u=>{l.value=u}),i.watch(()=>n.isGraphShown,u=>{u&&o.value.length>0&&(l.value="lp")}),(u,d)=>(i.openBlock(),i.createElementBlock("div",rAe,[i.createElementVNode("div",aAe,[i.createVNode(i.unref(Vt),{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),placeholder:i.unref(r)("general.players"),mode:s.value?"tags":"disabled",options:c.value,searchable:!0,label:"name","value-prop":"name"},null,8,["modelValue","placeholder","mode","options"]),i.createVNode(i.unref(Vt),{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=f=>s.value=f),placeholder:i.unref(r)("general.server"),options:i.unref(we)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),n.isGraphShown?(i.openBlock(),i.createBlock(i.unref(Vt),{key:0,modelValue:l.value,"onUpdate:modelValue":d[2]||(d[2]=f=>l.value=f),options:A,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",AAe,[i.createElementVNode("div",sAe,[i.createTextVNode(i.toDisplayString(i.unref(r)("leaderboard.totalPlayers"))+": ",1),i.createElementVNode("span",null,i.toDisplayString(i.unref(Te)(c.value.length)),1)]),i.createElementVNode("div",iAe,[i.createTextVNode(i.toDisplayString(i.unref(r)("leaderboard.updated"))+": ",1),i.createElementVNode("span",null,i.toDisplayString(i.unref(a)(n.updatedAt*60*1e3).fromNow()),1)])])]))}});const U3=M(oAe,[["__scopeId","data-v-0689a8b2"]]),lAe={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""},loading:{type:Boolean,required:!1,default:!1}},cAe=i.defineComponent({__name:"SimilarDecksTable",props:lAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:be.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"cost",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.cost")},{id:"differences",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deckDifferences")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.deckRows,(l,c)=>(i.openBlock(),i.createBlock(Bl,i.mergeProps({key:l.deckCode},l,{type:"similar",index:c+2,"compared-deck-code":n.originalDeckcode}),null,16,["index","compared-deck-code"]))),128))]),_:1},8,["loading","heading-items"]))}});const Q3=M(cAe,[["__scopeId","data-v-65e706f5"]]),uAe={heading:{type:String,required:!1,default:""}},dAe={class:"top"},fAe={class:"heading"},hAe={class:"chart"},pAe=i.defineComponent({__name:"StatisticsPaneContainer",props:uAe,setup(e){const t=e,n=i.ref(null),r=i.ref(!1);function a(){var A;r.value?document.exitFullscreen():(A=n.value)==null||A.requestFullscreen()}return i.onMounted(()=>{var A;(A=n.value)==null||A.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(A,s)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:i.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[i.createElementVNode("div",dAe,[i.createElementVNode("div",fAe,i.toDisplayString(t.heading),1),i.createVNode(i.unref(Ie),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),i.createElementVNode("div",hAe,[i.renderSlot(A.$slots,"default",{},void 0,!0)])],2))}});const T3=M(pAe,[["__scopeId","data-v-f00b184f"]]);function gAe({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const A=e.slides[a],s=e.slides[a].progress,o=Math.abs(s);let l=1;o>1&&(l=(o-1)*.3+1);const c=A.querySelectorAll(".swiper-carousel-animate-opacity"),u=`${s*l*50}%`,d=1-o*n,f=r-Math.abs(Math.round(s));A.style.transform=`translateX(${u}) scale(${d})`,A.style.zIndex=f,o>3?A.style.opacity=0:A.style.opacity=1,c.forEach(h=>{h.style.opacity=1-o/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const A=e.slides[a],s=A.querySelectorAll(".swiper-carousel-animate-opacity");A.style.transitionDuration=`${r}ms`,s.forEach(o=>{o.style.transitionDuration=`${r}ms`})}})}const mAe={activeIndex:{type:Number,required:!0,default:0},cardCodes:{type:Array,required:!0,default:[]}},vAe={class:"card-carousel"},BAe=["src"],yAe=i.defineComponent({__name:"CardCarousel",props:mAe,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[gAe];function a(A){t("update:activeIndex",A.activeIndex)}return(A,s)=>(i.openBlock(),i.createElementBlock("div",vAe,[i.createVNode(i.unref(Ww),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:r,"slide-to-clicked-slide":!0,onActiveIndexChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.cardCodes,o=>(i.openBlock(),i.createBlock(i.unref(Gw),{key:o},{default:i.withCtx(()=>[i.createElementVNode("img",{src:`https://lor.gg/storage/cards/card/en_us/${o}.webp`},null,8,BAe)]),_:2},1024))),128))]),_:1})]))}});const D3=M(yAe,[["__scopeId","data-v-a6ffd2e2"]]),wAe={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},bAe={class:"wins-losses-line"},_Ae={key:0,class:"details"},CAe={class:"wl-record"},EAe={class:"lines"},kAe=i.defineComponent({__name:"WinsLossesLine",props:wAe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",bAe,[t.showDetails?(i.openBlock(),i.createElementBlock("div",_Ae,[i.createElementVNode("span",CAe,i.toDisplayString(t.wins)+"W "+i.toDisplayString(t.matches-t.wins)+"L - ",1),i.createElementVNode("span",{style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"%",5)])):i.createCommentVNode("",!0),i.createElementVNode("div",EAe,[t.wins!==0?(i.openBlock(),i.createElementBlock("div",{key:0,class:"wins line",style:i.normalizeStyle({flexGrow:t.wins})},null,4)):i.createCommentVNode("",!0),t.matches-t.wins!==0?(i.openBlock(),i.createElementBlock("div",{key:1,class:"losses line",style:i.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):i.createCommentVNode("",!0)])]))}});const u1=M(kAe,[["__scopeId","data-v-511803da"]]),SAe={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},xAe={key:0,class:"wrapper"},FAe={class:"champion-column column-content"},IAe={class:"matches-column column-content"},UAe=i.defineComponent({__name:"DashboardCardRow",props:SAe,setup(e){const t=e,n=i.computed(()=>jt().cardJsonObject[t.cardCode]),r=i.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,A)=>(i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),n.value?(i.openBlock(),i.createElementBlock("div",xAe,[i.createElementVNode("div",FAe,[i.createVNode(nA,{class:"circle-card-item","card-prop":n.value,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(t.cardCode)},null,8,["card-prop","router-link"]),i.createElementVNode("span",null,i.toDisplayString(n.value.name),1)]),i.createElementVNode("div",IAe,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,1,3))+"% ",5)])):i.createCommentVNode("",!0)],4))}});const d1=M(UAe,[["__scopeId","data-v-5c26c4d6"]]),QAe={class:"card-page-toggle"},TAe=i.defineComponent({__name:"CardTogglePage",setup(e){const{t}=re(),n=i.ref(0);return(r,a)=>(i.openBlock(),i.createElementBlock("div",QAe,[i.createVNode(qu,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=A=>n.value=A),options:[i.unref(t)("cards.recommendedDecks"),i.unref(t)("cards.similarCards"),i.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const L3=M(TAe,[["__scopeId","data-v-07d07f20"]]),DAe=i.defineComponent({setup(){return{}},mounted(){const e=St("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(bE(e))}}),LAe=i.createElementVNode("h1",null,"TestComponent",-1),OAe=[LAe];function MAe(e,t,n,r,a,A){return i.openBlock(),i.createElementBlock("div",null,OAe)}const O3=M(DAe,[["render",MAe]]),NAe={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},PAe={class:"wrapper"},HAe={class:"champion-column column-content"},RAe={class:"mana-hexagon"},VAe={class:"mana-number"},KAe={class:"name"},$Ae={class:"matches-column column-content"},WAe=i.defineComponent({__name:"DashboardLeaderboardRow",props:NAe,setup(e){const t=e,n=i.computed(()=>t.selectedBannerCard===void 0?null:`https://lor.gg/storage/cards/banner/${t.selectedBannerCard}.png`),r=i.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,A)=>(i.openBlock(),i.createElementBlock("div",{class:"profile-champion-row wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",{class:"small-table-background",style:i.normalizeStyle({"--background-image":`url(${n.value})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),i.createElementVNode("div",PAe,[i.createElementVNode("div",HAe,[i.createElementVNode("div",RAe,[i.createVNode(jo,{class:"hexagon-icon"}),i.createElementVNode("div",VAe,i.toDisplayString(t.rank),1)]),i.createElementVNode("div",KAe,i.toDisplayString(t.name),1)]),i.createElementVNode("div",$Ae,i.toDisplayString(i.unref(Te)(t.matches,0,10)),1),i.createElementVNode("div",{class:i.normalizeClass(["column-content change",r.value])},[t.change!==void 0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Ie),{class:"icon",icon:"fa-chevron-down"}),i.createElementVNode("span",null,i.toDisplayString(i.unref(Te)(Math.abs(t.change),0,10)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Test ")],64))],2)])],4))}});const f1=M(WAe,[["__scopeId","data-v-3d62a718"]]),GAe={date:{type:Date,required:!0,default:[]},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},Zf="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",zAe={class:"reveal-day-option-wrapper"},jAe={class:"card-wrapper"},YAe=["src"],qAe={class:"card-wrapper"},XAe=["src"],JAe={class:"card-wrapper"},ZAe=["src"],ese=i.defineComponent({__name:"RevealDayOption",props:GAe,setup(e){const t=e,n=i.inject(RA),r=i.ref(null),a=i.ref(null),A=i.computed(()=>t.date.getTime()<new Date().getTime()),s=i.computed(()=>A.value?`Revealed Cards
880
880
  ${t.date.toLocaleDateString()}`:`Cards Revealed
881
- ${n(t.date).fromNow()}`),o=i.computed(()=>{const l=[];return t.activated&&l.push("activated"),t.soon&&l.push("soon"),A.value&&l.push("past"),l});return i.onMounted(()=>{At(r.value,{content:a.value,arrow:!0})}),(l,c)=>(i.openBlock(),i.createElementBlock("div",zAe,[i.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:i.normalizeClass(["reveal-day-option",o.value])},[i.createElementVNode("div",jAe,[i.createElementVNode("img",{src:i.unref(Zf),alt:"card",class:"card"},null,8,YAe)]),i.createElementVNode("div",qAe,[i.createElementVNode("img",{src:i.unref(Zf),alt:"card",class:"card"},null,8,XAe)]),i.createElementVNode("div",JAe,[i.createElementVNode("img",{src:i.unref(Zf),alt:"card",class:"card"},null,8,ZAe)])],2),i.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[i.createVNode(Ju,{text:s.value},null,8,["text"])],512)]))}});const h1=M(ese,[["__scopeId","data-v-f3dbe378"]]),tse={days:{type:Array,required:!0,default:[]}},nse=e=>(i.pushScopeId("data-v-76ed46ac"),e=e(),i.popScopeId(),e),rse={class:"reveal-day-options"},ase=nse(()=>i.createElementVNode("div",{class:"line"},null,-1)),Ase=i.defineComponent({__name:"RevealDayOptions",props:tse,emits:["update:days"],setup(e,{emit:t}){const n=e;function r(a){const A=n.days.map(s=>({activated:!1,date:s.date,soon:s.soon}));!A[a].soon&&A[a].date.getTime()>new Date().getTime()||(A[a].activated=!0,console.log(A),t("update:days",A))}return(a,A)=>(i.openBlock(),i.createElementBlock("div",rse,[ase,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.days,(s,o)=>(i.openBlock(),i.createBlock(h1,{key:o,date:s.date,activated:s.activated,soon:s.soon,onClick:l=>r(o)},null,8,["date","activated","soon","onClick"]))),128))]))}});const M3=M(Ase,[["__scopeId","data-v-76ed46ac"]]),sse={cardCodes:{type:Array,required:!0,default:[]}},ise=i.defineComponent({__name:"DashboardNewCards",props:sse,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[i.createVNode(pg,{class:"reveal-carousel","card-codes":t.cardCodes},null,8,["card-codes"])]),_:1}))}});const N3=M(ise,[["__scopeId","data-v-89a26f2c"]]),ose={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},lse=i.defineComponent({__name:"LeaderboardDetailTable",props:ose,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"player",isShown:n.shownColumns.player,sortDirection:be.UP,title:r("general.player")},{id:"lp",isShown:n.shownColumns.lp,sortDirection:be.NEITHER,title:r("general.lp")},{id:"change",isShown:n.shownColumns.change,sortDirection:be.NEITHER,title:r("general.change")},{id:"wins",isShown:n.shownColumns.wins,sortDirection:be.NEITHER,title:r("general.wins")},{id:"matches",isShown:n.shownColumns.matches,sortDirection:be.NEITHER,title:r("general.matches")},{id:"winrate",isShown:n.shownColumns.winrate,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"deck",isShown:n.shownColumns.deck,sortDirection:be.NOT_SORTABLE,title:r("general.favoriteDeck")}]),A=i.computed(()=>({"--columns":a.value.filter(o=>o.isShown).length}));function s(o){const l=ei(o,a);l&&t("sort-updated",l)}return(o,l)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,style:i.normalizeStyle(A.value),"heading-items":a.value,onToggleSort:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.players,(c,u)=>(i.openBlock(),i.createBlock(r1,i.mergeProps({key:u},c,{index:u+2,"shown-columns":n.shownColumns,"router-link":i.unref(nn)().callbacks.playerRouterLinkCallback(c)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const P3=M(lse,[["__scopeId","data-v-168c9f53"]]);const cse={},use=e=>(i.pushScopeId("data-v-c8a918ec"),e=e(),i.popScopeId(),e),dse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},fse=use(()=>i.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)),hse=[fse];function pse(e,t){return i.openBlock(),i.createElementBlock("svg",dse,hse)}const H3=M(cse,[["render",pse],["__scopeId","data-v-c8a918ec"]]);const gse={},mse=e=>(i.pushScopeId("data-v-4a6733fd"),e=e(),i.popScopeId(),e),vse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},Bse=mse(()=>i.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)),yse=[Bse];function wse(e,t){return i.openBlock(),i.createElementBlock("svg",vse,yse)}const p1=M(gse,[["render",wse],["__scopeId","data-v-4a6733fd"]]);const bse={},_se=e=>(i.pushScopeId("data-v-b519ac08"),e=e(),i.popScopeId(),e),Cse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},Ese=_se(()=>i.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)),kse=[Ese];function Sse(e,t){return i.openBlock(),i.createElementBlock("svg",Cse,kse)}const g1=M(bse,[["render",Sse],["__scopeId","data-v-b519ac08"]]);const xse={},Fse=e=>(i.pushScopeId("data-v-f1928c9e"),e=e(),i.popScopeId(),e),Ise={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},Use=Fse(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)),Qse=[Use];function Tse(e,t){return i.openBlock(),i.createElementBlock("svg",Ise,Qse)}const m1=M(xse,[["render",Tse],["__scopeId","data-v-f1928c9e"]]);const Dse={},Lse=e=>(i.pushScopeId("data-v-b1448e85"),e=e(),i.popScopeId(),e),Ose={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},Mse=Lse(()=>i.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)),Nse=[Mse];function Pse(e,t){return i.openBlock(),i.createElementBlock("svg",Ose,Nse)}const v1=M(Dse,[["render",Pse],["__scopeId","data-v-b1448e85"]]);const Hse={},Rse=e=>(i.pushScopeId("data-v-e5501fa0"),e=e(),i.popScopeId(),e),Vse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kse=Rse(()=>i.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)),$se=[Kse];function Wse(e,t){return i.openBlock(),i.createElementBlock("svg",Vse,$se)}const B1=M(Hse,[["render",Wse],["__scopeId","data-v-e5501fa0"]]),y1={items:{type:Array,required:!0,default:[]},fetchSeachResult:{type:Function,required:!0,default:()=>[]}},Gse={...y1,expanded:{type:Boolean,required:!1,default:!1},links:{type:Object,required:!0,default:{gift:{path:"/404"},settings:{path:"/404"},profile:{path:"/404"}}}},zse={class:"content logo no-scrollbar"},jse={class:"nav-item"},Yse={class:"nav-icon-wrapper"},qse={class:"nav-text"},Xse={class:"nav-icon-wrapper"},Jse={class:"nav-text"},Zse={class:"profile content"},eie={class:"nav-icon-wrapper"},tie={class:"nav-text"},nie={class:"nav-icon-wrapper"},rie={class:"nav-text settings"},aie={class:"nav-icon-wrapper"},Aie={class:"nav-text"},sie={class:"nav-icon-wrapper"},iie={class:"nav-text name"},oie={class:"nav-icon-wrapper"},lie={class:"nav-text settings"},cie={class:"nav-icon-wrapper"},uie={class:"nav-text sign-in-container"},die={class:"fancy-button"},fie=i.defineComponent({__name:"NavigationSide",props:Gse,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(),A=i.ref();let s;i.onMounted(()=>{var l;s=new ResizeObserver(o),a.value&&s.observe(a.value),(l=A.value)==null||l.addEventListener("scroll",o),o()}),i.onUnmounted(()=>{var l;s.disconnect(),(l=A.value)==null||l.removeEventListener("scroll",o)});function o(){var u,d;let l=!1,c=!1;A.value&&(A.value.clientHeight<A.value.scrollHeight&&(l=A.value.scrollTop>0,c=A.value.scrollTop<A.value.scrollHeight-A.value.clientHeight),(u=A.value)==null||u.classList.toggle("scrollable-up",l),(d=A.value)==null||d.classList.toggle("scrollable-down",c))}return(l,c)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"navigationSide",ref:a,class:i.normalizeClass(["navigation-side",n.expanded?"expanded":""])},[i.createElementVNode("div",zse,[i.createElementVNode("div",jse,[i.createElementVNode("div",Yse,[i.createVNode(Ys,{"logo-type":"logo-only"})]),i.createElementVNode("div",qse,[i.createVNode(Ys,{"logo-type":"text-only"})])])]),i.createElementVNode("div",{ref_key:"navigationPages",ref:A,class:"pages content no-scrollbar"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,u=>(i.openBlock(),i.createBlock(i.unref(pA.RouterLink),{key:u.text,to:u.routerLocation,class:i.normalizeClass(["nav-item",u.highlighted?"highlight":""])},{default:i.withCtx(()=>[i.createElementVNode("div",Xse,[i.createVNode(i.unref(Ue),{class:"nav-icon",icon:u.faIcon},null,8,["icon"])]),i.createElementVNode("div",Jse,i.toDisplayString(u.text),1)]),_:2},1032,["to","class"]))),128))],512),i.createElementVNode("div",Zse,[i.unref(wa)().user?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(pA.RouterLink),{to:n.links.gift,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",eie,[i.createVNode(i.unref(Ue),{class:"nav-icon",icon:"gift"})]),i.createElementVNode("div",tie,i.toDisplayString(i.unref(r)("general.openCards")),1)]),_:1},8,["to"]),i.createVNode(i.unref(pA.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",nie,[i.createVNode(i.unref(Ue),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",rie,[i.createElementVNode("div",null,i.toDisplayString(i.unref(r)("general.settings")),1),i.createElementVNode("div",{class:"icon",onClick:c[0]||(c[0]=i.withModifiers(u=>t("click:language"),["stop","prevent"]))},[i.createVNode(i.unref(Ue),{icon:"language"})])])]),_:1},8,["to"]),i.createElementVNode("div",{class:"nav-item",onClick:c[1]||(c[1]=u=>t("click:sync"))},[i.createElementVNode("div",aie,[i.createVNode(i.unref(Ue),{class:"nav-icon",icon:"rotate-right"})]),i.createElementVNode("div",Aie,i.toDisplayString(i.unref(r)("general.syncUserData")),1)]),i.createVNode(i.unref(pA.RouterLink),{to:n.links.profile,class:"nav-item"},{default:i.withCtx(()=>{var u,d,f;return[i.createElementVNode("div",sie,[i.createVNode(nA,{"card-code-prop":((u=i.unref(wa)().user)==null?void 0:u.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(d=i.unref(wa)().user)==null?void 0:d.selectedBannerColor,"router-link":n.links.profile},null,8,["card-code-prop","color-override","router-link"])]),i.createElementVNode("div",iie,i.toDisplayString((f=i.unref(wa)().user)==null?void 0:f.name),1)]}),_:1},8,["to"])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(i.unref(pA.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",oie,[i.createVNode(i.unref(Ue),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",lie,[i.createElementVNode("div",null,i.toDisplayString(i.unref(r)("general.settings")),1),i.createVNode(i.unref(Ue),{onClick:c[2]||(c[2]=i.withModifiers(u=>t("click:language"),["stop","prevent"])),class:"icon",icon:"language"})])]),_:1},8,["to"]),i.createElementVNode("div",{class:"nav-item",onClick:c[3]||(c[3]=u=>t("click:sign-in"))},[i.createElementVNode("div",cie,[i.createVNode(i.unref(Ue),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),i.createElementVNode("div",uie,[i.createElementVNode("div",die,i.toDisplayString(i.unref(r)("general.signIn")),1)])])],64))])],2))}});const w1=M(fie,[["__scopeId","data-v-1728bf4e"]]),hie=i.defineComponent({__name:"NavigationTopMobile",props:y1,setup(e){const t=e,n=i.ref(!1),r=i.ref(!1),a=i.ref(),A=i.ref();window.addEventListener("click",s);function s(c){var u;n.value&&(n.value=!!((u=A.value)!=null&&u.contains(c.target)))}function o(){i.nextTick(()=>{n.value=!0,i.nextTick(()=>{var c,u;(u=(c=a.value)==null?void 0:c.$el.querySelector("input"))==null||u.focus()})})}function l(){r.value=!0}return i.onUnmounted(()=>{window.removeEventListener("click",s)}),(c,u)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"navigationTopMobile",ref:A,class:"navigation-top-mobile"},[n.value?(i.openBlock(),i.createBlock(Yu,{key:1,"fetch-seach-result":t.fetchSeachResult,ref_key:"searchBar",ref:a,class:"search-bar"},null,8,["fetch-seach-result"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Ue),{class:"icon",icon:"bars",onClick:l}),i.createVNode(Ys,{class:"logo-icon","logo-type":"text-only"}),i.createVNode(i.unref(Ue),{class:"icon",icon:"search",onClick:i.withModifiers(o,["stop","prevent"])},null,8,["onClick"])],64)),i.createVNode(KA,{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=d=>r.value=d)},{default:i.withCtx(()=>[i.createVNode(w1,i.mergeProps({class:"navigation-side"},t,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512))}});const b1=M(hie,[["__scopeId","data-v-4f19578e"]]),pie={class:"navigation-top"},gie=i.defineComponent({__name:"NavigationTop",props:y1,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",pie,[i.createVNode(t1,i.mergeProps({class:"navigation-top-desktop"},t),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},16),i.createVNode(b1,i.mergeProps({class:"navigation-top-mobile"},t),null,16)]))}});const R3=M(gie,[["__scopeId","data-v-a1aae1e1"]]),mie={modelValue:{type:String,required:!0,default:!1}},vie=["value"],Bie=i.defineComponent({__name:"ColorPicker",props:mie,emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(a){t("update:modelValue",a.target.value)}return(a,A)=>(i.openBlock(),i.createElementBlock("input",{type:"color",value:n.modelValue,onInput:r},null,40,vie))}});const V3=M(Bie,[["__scopeId","data-v-5ebbd7eb"]]),yie={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},wie={class:"multiselect-wrapper"},bie=i.defineComponent({__name:"DashboardLeaderboardTable",props:yie,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.selectedRegion),A=[{title:r("general.leaderboard"),id:"leaderboard"}];return i.watch(a,s=>{t("update:selectedRegion",s)}),(s,o)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":A},{heading:i.withCtx(()=>[i.createElementVNode("div",wie,[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),class:"multiselect",placeholder:i.unref(r)("general.server"),options:i.unref(we)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.rows,(l,c)=>(i.openBlock(),i.createBlock(f1,{id:l.id,key:l.id,change:l.change,lp:l.lp,name:l.name,rank:l.rank,"selected-banner-card":l.selectedBannerCard,matches:l.matches,index:c+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const K3=M(bie,[["__scopeId","data-v-fe0f916c"]]),_ie={routerLink:{type:Object,required:!0,default:{path:"/404"}},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeId:{type:Number,required:!0,default:1},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},Cie=e=>(i.pushScopeId("data-v-3fd14fcc"),e=e(),i.popScopeId(),e),Eie={class:"table-card-row-background-wrapper"},kie={class:"table-card-row-background"},Sie=Cie(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),xie=[Sie],Fie={class:"archetypes-row wrapper"},Iie={class:"column-content"},Uie={class:"column-content"},Qie=i.defineComponent({__name:"ArchetypesRow",props:_ie,setup(e){const t=e,n=i.computed(()=>St(t.deckCode)),r=i.computed(()=>rn(n.value)),a=i.computed(()=>t.cards.map(s=>`https://lor.gg/storage/cards/banner/${s}.png`)),A=i.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!1,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.routerLink,deckId:void 0,deckName:void 0,isPrivate:void 0}));return(s,o)=>{const l=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Eie,[i.createElementVNode("div",kie,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,c=>(i.openBlock(),i.createElementBlock("div",{key:c,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${c})`})},xie,4))),128))])]),i.createElementVNode("div",Fie,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:o[0]||(o[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Ja,{"deck-code":t.deckCode,deck:n.value,cards:r.value,"deck-buttons-props":A.value},null,8,["deck-code","deck","cards","deck-buttons-props"])]),i.createElementVNode("div",Iie,i.toDisplayString(i.unref(Te)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5),i.createElementVNode("div",Uie,i.toDisplayString(i.unref(Te)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const _1=M(Qie,[["__scopeId","data-v-3fd14fcc"]]),Tie={archetypeRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},Die=i.defineComponent({__name:"ArchetypesTable",props:Tie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:be.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"playrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.playrate")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.archetypeRows,(l,c)=>(i.openBlock(),i.createBlock(_1,i.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const $3=M(Die,[["__scopeId","data-v-4a8597f4"]]),Lie={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},Oie={class:"number-container"},Mie={key:0,class:"type-icon"},Nie=i.defineComponent({__name:"DeckBuilderSummaryType",props:Lie,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[i.createElementVNode("div",Oie,i.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(i.openBlock(),i.createElementBlock("div",Mie,[t.typeSummary.typeRef==="Champion"?(i.openBlock(),i.createBlock(g1,{key:0})):t.typeSummary.typeRef==="Follower"?(i.openBlock(),i.createBlock(p1,{key:1})):t.typeSummary.typeRef==="Spell"?(i.openBlock(),i.createBlock(v1,{key:2})):t.typeSummary.typeRef==="Landmark"?(i.openBlock(),i.createBlock(m1,{key:3})):t.typeSummary.typeRef==="Equipment"?(i.openBlock(),i.createBlock(B1,{key:4})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],2))}});const ya=M(Nie,[["__scopeId","data-v-2e6bb287"]]),Pie={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},Hie={class:"deck-builder-summary"},Rie=i.defineComponent({__name:"DeckBuilderSummary",props:Pie,setup(e){const t=e;function n(c,u,d){const f=t.cards.filter(c).map(h=>t.deck[h.cardCode]).reduce((h,p)=>h+p,0);return{typeRef:d,quantity:f,isError:u(f)}}const r=i.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="Champion",c=>c>6,"Champion")),a=i.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="",()=>!1,"Follower")),A=i.computed(()=>n(c=>c.typeRef==="Spell",()=>!1,"Spell")),s=i.computed(()=>n(c=>c.typeRef==="Landmark",()=>!1,"Landmark")),o=i.computed(()=>n(c=>c.typeRef==="Equipment",()=>!1,"Equipment")),l=i.computed(()=>n(()=>!0,c=>c!==40,"Deck"));return(c,u)=>(i.openBlock(),i.createElementBlock("div",Hie,[i.createVNode(ya,{"type-summary":r.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":a.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":A.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":s.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":o.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":l.value},null,8,["type-summary"])]))}});const C1=M(Rie,[["__scopeId","data-v-ec8f0fa9"]]),Vie={rows:{type:Array,required:!0,default:[]}},Kie=i.defineComponent({__name:"DashboardCardTable",props:Vie,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.cards"),id:"cards"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rows,s=>(i.openBlock(),i.createBlock(d1,{key:s.cardCode,"card-code":s.cardCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const W3=M(Kie,[["__scopeId","data-v-e5817be3"]]),$ie={modelValue:{type:Number,required:!0,default:5}},Wie=["value"],Gie=i.defineComponent({__name:"ZoomSlider",props:$ie,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=i.ref(),a=i.ref();function A(s){t("update:modelValue",Number.parseInt(s.target.value))}return i.onMounted(()=>{At(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(s,o)=>{const l=i.resolveComponent("FontAwesomeIcon");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(l,{icon:"search-plus",class:"zoom-button"})],512),i.createElementVNode("div",{ref_key:"slider",ref:a,class:"slider-wrapper"},[i.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:n.modelValue,onInput:A},null,40,Wie)],512)])}}});const G3=M(Gie,[["__scopeId","data-v-bac83f78"]]),zie={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},E1=e=>(i.pushScopeId("data-v-c4b3399b"),e=e(),i.popScopeId(),e),jie={class:"card-overview"},Yie={class:"overview-top"},qie={class:"card-name"},Xie={class:"card-tags"},Jie={class:"card-tag"},Zie={class:"card-tag-text"},eoe={class:"card-tag"},toe={class:"card-tag-text"},noe={class:"card-tag"},roe={class:"card-tag-text"},aoe={class:"card-tag"},Aoe={class:"card-tag-text"},soe=E1(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),ioe={class:"card-text"},ooe=E1(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),loe={class:"keyword-description"},coe={class:"keyword-name"},uoe=E1(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),doe={class:"flavor-text"},foe={class:"card-art-section"},hoe={class:"card-art-button primary-button"},poe=i.defineComponent({__name:"CardOverview",props:zie,setup(e){const t=e,{t:n}=re(),r=Ro(t.cardProp,t.cardCodeProp,!0),a=i.computed(()=>{if(r.value===void 0)return[];const c=[];for(const u of r.value.keywordRefs){const d=we().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),A=i.computed(()=>{if(r.value===void 0)return null;const c=we().dataJson;return uo(r.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===r.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===r.value.regionRefs[0])??c.regions[0]}),s=i.computed(()=>r.value===void 0?null:we().dataJson.rarities.find(c=>c.nameRef===r.value.rarityRef)??we().dataJson.rarities[0]),o=i.computed(()=>r.value===void 0?null:we().dataJson.types.find(c=>c.nameRef===r.value.typeRef)??we().dataJson.types[0]),l=i.computed(()=>r.value===void 0?null:we().dataJson.sets.find(c=>c.nameRef===r.value.set)??we().dataJson.sets[0]);return(c,u)=>{var d,f,h,p,m,y,g,v;return i.openBlock(),i.createElementBlock("div",jie,[i.unref(r)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Yie,[i.createElementVNode("div",qie,i.toDisplayString(i.unref(r).name),1),i.createVNode(i.unref(Ue),{icon:"times",class:"close-icon"})]),i.createElementVNode("div",Xie,[i.createElementVNode("div",Jie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((d=A.value)==null?void 0:d.icon)??""})`})},null,4),i.createElementVNode("div",Zie,i.toDisplayString((f=A.value)==null?void 0:f.name),1)]),i.createElementVNode("div",eoe,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((h=s.value)==null?void 0:h.icon)??""})`})},null,4),i.createElementVNode("div",toe,i.toDisplayString((p=s.value)==null?void 0:p.name),1)]),i.createElementVNode("div",noe,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((m=o.value)==null?void 0:m.icon)??""})`})},null,4),i.createElementVNode("div",roe,i.toDisplayString((y=o.value)==null?void 0:y.name),1)]),i.createElementVNode("div",aoe,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((g=l.value)==null?void 0:g.icon)??""})`})},null,4),i.createElementVNode("div",Aoe,i.toDisplayString((v=l.value)==null?void 0:v.name),1)])]),soe,i.createElementVNode("div",ioe,i.toDisplayString(i.unref(r).descriptionRaw),1),ooe,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.nameRef},[i.createElementVNode("div",loe,[i.createElementVNode("b",coe,i.toDisplayString(_.name+" - "),1),i.createElementVNode("span",null,i.toDisplayString(_.description),1)]),uoe],64))),128)),i.createElementVNode("div",doe,i.toDisplayString(i.unref(r).flavorText),1),i.createElementVNode("div",foe,[i.createElementVNode("div",hoe,i.toDisplayString(i.unref(n)("general.cardArt")),1)])],64)):i.createCommentVNode("",!0)])}}});const z3=M(poe,[["__scopeId","data-v-c4b3399b"]]),goe={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},moe={class:"profile-game-type-winrate"},voe={class:"game-type"},Boe=i.defineComponent({__name:"ProfileGameTypeWinrate",props:goe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",moe,[i.createElementVNode("div",voe,i.toDisplayString(t.gameType),1),i.createVNode(u1,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const j3=M(Boe,[["__scopeId","data-v-1bb3c9de"]]),yoe={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},woe=i.defineComponent({__name:"DecksTable",props:yoe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:be.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.cost")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.deckRows,(l,c)=>(i.openBlock(),i.createBlock(Bl,i.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const Y3=M(woe,[["__scopeId","data-v-c789c9b5"]]),boe={deckCode:{type:String,required:!1,default:""}},_oe={deck:{type:Object,required:!0,default:{}},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},Coe={class:"deck-preview-wrapper"},Eoe=i.defineComponent({__name:"ShowDeckPreviewButton",props:_oe,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.showPreview"),arrow:!0})}),(A,s)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=o=>a.value=!0)},[i.createVNode(i.unref(Ue),{icon:"camera"})],512),i.createVNode(KA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",Coe,[i.createVNode(i.unref(Rd),{deck:t.deck,"deck-buttons-props":t.deckButtonsProps},null,8,["deck","deck-buttons-props"])])]),_:1},8,["show-modal"])]))}});const koe=M(Eoe,[["__scopeId","data-v-90be9f81"]]),Soe={class:"cards-container no-scrollbar"},xoe={class:"bottom"},Foe={class:"bottom-buttons"},Ioe={class:"fancy-button"},q3=i.defineComponent({__name:"DeckBuilderSidePanel",props:boe,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>{if(n.deckCode)return St(n.deckCode);throw new Error("Deck or DeckCode must be defined")}),A=i.computed(()=>rn(a.value)),s=i.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!1,simulateMulligan:!0,openInDeckBuilder:!1,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:n.deckCode,deckBuilderRouterLink:"404"}));return(o,l)=>(i.openBlock(),i.createBlock(Zs,{"show-clear-all":!1},{default:i.withCtx(()=>[i.createVNode(i.unref(C1),{cards:A.value,deck:a.value},null,8,["cards","deck"]),(i.openBlock(),i.createBlock(i.unref(hl),{class:"mana-curve-chart",key:n.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:a.value},null,8,["deck"])),i.createElementVNode("div",Soe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,c=>(i.openBlock(),i.createBlock(i.unref(fn),{"onUpdate:cardQuantity":l[0]||(l[0]=u=>t("update:card-quantity",u)),key:c.cardCode,"card-prop":c,"maintain-aspect-ratio":!0,"quantity-number":a.value[c.cardCode],"show-plus-minus":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(c.cardCode),class:"card-slice-item"},null,8,["card-prop","quantity-number","router-link"]))),128))]),i.createElementVNode("div",xoe,[i.createElementVNode("div",Foe,[i.createVNode(i.unref(Fd),{deck:a.value},null,8,["deck"]),i.createVNode(i.unref(xd),{"deck-code":n.deckCode},null,8,["deck-code"]),i.createVNode(koe,{deck:a.value,"deck-buttons-props":s.value},null,8,["deck","deck-buttons-props"]),i.createVNode(i.unref(Id))]),i.createElementVNode("div",Ioe,i.toDisplayString(i.unref(r)("general.save")),1)])]),_:1}))}});const Uoe={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},X3=i.defineComponent({__name:"RegionDistributionChart",props:Uoe,setup(e){const t=e,n=i.ref(null);Le.register(...Cr);const r=i.computed(()=>({labels:t.data.map(A=>A.region),datasets:[{data:t.data.map(A=>A.matches),backgroundColor:t.data.map(A=>U2(A.region))}]})),a={cutout:"80%",elements:{arc:{borderWidth:3,borderColor:t.backgroundColor}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(A){const s=[],o=A.data.labels;for(let l=0;l<A.data.labels.length;l++)s.push({text:`${Mp(o[l])} (${A.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Ha("--color-0"),fillStyle:A.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(A,s)=>(i.openBlock(),i.createBlock(i.unref(ld),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),Qoe={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},J3=i.defineComponent({__name:"SimpleDoughnutChart",props:Qoe,setup(e){const t=e,n=i.ref(null);Le.register(...Cr);const r=i.computed(()=>({labels:["Value","Max"],datasets:[{data:[t.value,t.max-t.value],backgroundColor:[Ha("--color-good"),"transparent"]}]})),a={cutout:"80%",elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1}}},A=[{id:"text",beforeDraw:function(s){const o=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const f=s.data.datasets[0].data[0].toFixed(2),h=Math.round((o-c.measureText(f).width)/2),p=l/2;c.fillStyle=Ha("--color-good"),c.fillText(f,h,p),c.save()}}];return(s,o)=>(i.openBlock(),i.createBlock(i.unref(ld),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),Toe={install:async e=>{e.component("RevealCarousel",pg),e.component("SearchBar",Yu),e.component("SocialLinks",mg),e.component("ModalItem",KA),e.component("FilterSampleSize",Xs),e.component("FilterRanks",vb),e.component("FilterManaCost",vg),e.component("FilterRarities",Bg),e.component("FilterSets",yg),e.component("FilterKeywords",wg),e.component("FilterServers",Js),e.component("FilterTime",$A),e.component("FilterCardCodes",Xu),e.component("FilterDecks",Bb),e.component("FilterProfile",yb),e.component("FilterText",su),e.component("FilterAdvanced",kg),e.component("FilterRegions",Yo),e.component("FilterCards",wb),e.component("AdvancedFilterItem",Eg),e.component("FilterTypes",Sg),e.component("RegionsLine",xg),e.component("CardsTable",bb),e.component("DeckHighlightRegions",Xo),e.component("GemsCost",Tg),e.component("CardSliceItem",fn),e.component("LanguageSelection",Dg),e.component("DeckSidePanel",l4),e.component("DeckHighlight",Ja),e.component("ArchetypeSidePanel",f3),e.component("OpenInDeckBuilderButton",Nm),e.component("CopyDeckButton",xd),e.component("UpdateDeckPrivacyButton",Hm),e.component("EditDeckNameButton",Om),e.component("UploadDeckToLorButton",Id),e.component("DeleteDeckButton",Lm),e.component("OpenArchetypePageButton",Mm),e.component("SimulateMulliganButton",Fd),e.component("SocialMediaLinks",h3),e.component("DecksRow",Bl),e.component("CardItemLinkWrapper",Zm),e.component("DeckHighlightCards",Jo),e.component("CheckboxItem",tn),e.component("NavigationTopDesktop",t1),e.component("SidePanelSectionPane",mt),e.component("CardSimilarCards",p3),e.component("DashboardSignUp",m3),e.component("MatchItem",v3),e.component("ToggleSwitch",qu),e.component("LeaderboardTop10Region",n1),e.component("ShareButton",Vm),e.component("LeaderboardDetailRow",r1),e.component("DeckBlock",B3),e.component("SmallTable",JA),e.component("LeaderboardTop",y3),e.component("CardLottery",w3),e.component("DashboardProfile",b3),e.component("LeaderboardChart",_3),e.component("CardQuantityBarChart",C3),e.component("WinsLossesBarChart",E3),e.component("RoundCardInfoBarChart",k3),e.component("LineChart",S3),e.component("ManaCurveChart",hl),e.component("WinrateDoughnutChart",o1),e.component("InfoDoughnutChart",vu),e.component("BuiltDecksTable",x3),e.component("ProfileRegionTable",F3),e.component("ProfileArchetypeTable",I3),e.component("CardItem3d",i1),e.component("LeaderboardOptions",U3),e.component("SimilarDecksTable",Q3),e.component("LargeTable",tA),e.component("StatisticsPaneContainer",T3),e.component("ArchetypeSidePanelHighlight",Zu),e.component("CardCarousel",D3),e.component("DeckButtons",gl),e.component("WinsLossesLine",u1),e.component("DashboardCardRow",d1),e.component("CardTogglePage",L3),e.component("TestComponent",O3),e.component("DashboardLeaderboardRow",f1),e.component("DeckPreview",Rd),e.component("CheckboxItemManaCost",Au),e.component("RevealDayOptions",M3),e.component("DeckDifferenceItem",qm),e.component("DashboardNewCards",N3),e.component("CardsRow",Fg),e.component("LeaderboardDetailTable",P3),e.component("DeckIcon",H3),e.component("LogoIcon",Ys),e.component("FollowerIcon",p1),e.component("ChampionIcon",g1),e.component("EternalIcon",a1),e.component("InfoIcon",Jm),e.component("LandmarkIcon",m1),e.component("ManaHexagonIcon",jo),e.component("RuneterraIcon",Rm),e.component("ShardsIcon",Qg),e.component("StandardIcon",A1),e.component("SpellIcon",v1),e.component("GauntletIcon",s1),e.component("EquipmentIcon",B1),e.component("NavigationTop",R3),e.component("CardMultiselect",bg),e.component("ProfileDropdown",e1),e.component("ColorPicker",V3),e.component("DashboardLeaderboardTable",K3),e.component("NavigationSide",w1),e.component("ArchetypesTable",$3),e.component("DeckBuilderSummary",C1),e.component("DeckBuilderSummaryType",ya),e.component("DashboardCardTable",W3),e.component("ArchetypesRow",_1),e.component("RevealDayOption",h1),e.component("DeckHighlightEye",Vd),e.component("DeckDifferences",Xm),e.component("ZoomSlider",G3),e.component("CardOverview",z3),e.component("CircleCardItem",nA),e.component("ProfileGameTypeWinrate",j3),e.component("DecksTable",Y3),e.component("RegionItem",qo),e.component("TippyText",Ju),e.component("ProfileRegionRow",l1),e.component("SimulateMulligan",Pm),e.component("DeckSummary",Sd),e.component("NavigationTopMobile",b1),e.component("CardItem",Wa),e.component("ProfileArchetypeRow",c1),e.component("DeckBuilderSidePanel",q3),e.component("SimpleDoughnutChart",J3),e.component("RegionDistributionChart",X3),e.component("Spinner",Ig),e.component("FontAwesomeIcon",Ue),e.component("Multiselect",Vt)}};exports.AdvancedFilterItem=Eg;exports.ArchetypeSidePanel=f3;exports.ArchetypeSidePanelHighlight=Zu;exports.ArchetypesRow=_1;exports.ArchetypesTable=$3;exports.BuiltDecksTable=x3;exports.CardCarousel=D3;exports.CardItem=Wa;exports.CardItem3d=i1;exports.CardItemLinkWrapper=Zm;exports.CardLottery=w3;exports.CardMultiselect=bg;exports.CardOverview=z3;exports.CardQuantityBarChart=C3;exports.CardSimilarCards=p3;exports.CardSliceItem=fn;exports.CardTogglePage=L3;exports.CardsRow=Fg;exports.CardsTable=bb;exports.ChampionIcon=g1;exports.CheckboxItem=tn;exports.CheckboxItemManaCost=Au;exports.CircleCardItem=nA;exports.ColorPicker=V3;exports.CopyDeckButton=xd;exports.DashboardCardRow=d1;exports.DashboardCardTable=W3;exports.DashboardLeaderboardRow=f1;exports.DashboardLeaderboardTable=K3;exports.DashboardNewCards=N3;exports.DashboardProfile=b3;exports.DashboardSignUp=m3;exports.DeckBlock=B3;exports.DeckBuilderSidePanel=q3;exports.DeckBuilderSummary=C1;exports.DeckBuilderSummaryType=ya;exports.DeckButtons=gl;exports.DeckDifferenceItem=qm;exports.DeckDifferences=Xm;exports.DeckHighlight=Ja;exports.DeckHighlightCards=Jo;exports.DeckHighlightEye=Vd;exports.DeckHighlightRegions=Xo;exports.DeckIcon=H3;exports.DeckPreview=Rd;exports.DeckSidePanel=l4;exports.DeckSummary=Sd;exports.DecksRow=Bl;exports.DecksTable=Y3;exports.DeleteDeckButton=Lm;exports.EditDeckNameButton=Om;exports.EquipmentIcon=B1;exports.EternalIcon=a1;exports.FilterAdvanced=kg;exports.FilterCardCodes=Xu;exports.FilterCards=wb;exports.FilterDecks=Bb;exports.FilterKeywords=wg;exports.FilterManaCost=vg;exports.FilterProfile=yb;exports.FilterRanks=vb;exports.FilterRarities=Bg;exports.FilterRegions=Yo;exports.FilterSampleSize=Xs;exports.FilterServers=Js;exports.FilterSets=yg;exports.FilterText=su;exports.FilterTime=$A;exports.FilterTypes=Sg;exports.FollowerIcon=p1;exports.GauntletIcon=s1;exports.GemsCost=Tg;exports.InfoDoughnutChart=vu;exports.InfoIcon=Jm;exports.LandmarkIcon=m1;exports.LanguageSelection=Dg;exports.LargeTable=tA;exports.LeaderboardChart=_3;exports.LeaderboardDetailRow=r1;exports.LeaderboardDetailTable=P3;exports.LeaderboardOptions=U3;exports.LeaderboardTop=y3;exports.LeaderboardTop10Region=n1;exports.LineChart=S3;exports.LogoIcon=Ys;exports.ManaCurveChart=hl;exports.ManaHexagonIcon=jo;exports.MatchItem=v3;exports.ModalItem=KA;exports.NavigationSide=w1;exports.NavigationTop=R3;exports.NavigationTopDesktop=t1;exports.NavigationTopMobile=b1;exports.OpenArchetypePageButton=Mm;exports.OpenInDeckBuilderButton=Nm;exports.ProfileArchetypeRow=c1;exports.ProfileArchetypeTable=I3;exports.ProfileDropdown=e1;exports.ProfileGameTypeWinrate=j3;exports.ProfileRegionRow=l1;exports.ProfileRegionTable=F3;exports.RegionDistributionChart=X3;exports.RegionItem=qo;exports.RegionsLine=xg;exports.RevealCarousel=pg;exports.RevealDayOption=h1;exports.RevealDayOptions=M3;exports.RoundCardInfoBarChart=k3;exports.RuneterraIcon=Rm;exports.SearchBar=Yu;exports.ShardsIcon=Qg;exports.ShareButton=Vm;exports.SidePanelSectionPane=mt;exports.SimilarDecksTable=Q3;exports.SimpleDoughnutChart=J3;exports.SimulateMulligan=Pm;exports.SimulateMulliganButton=Fd;exports.SmallTable=JA;exports.SocialLinks=mg;exports.SocialMediaLinks=h3;exports.SpellIcon=v1;exports.Spinner=Ig;exports.StandardIcon=A1;exports.StatisticsPaneContainer=T3;exports.TestComponent=O3;exports.TippyText=Ju;exports.ToggleSwitch=qu;exports.UpdateDeckPrivacyButton=Hm;exports.UploadDeckToLorButton=Id;exports.WinrateDoughnutChart=o1;exports.WinsLossesBarChart=E3;exports.WinsLossesLine=u1;exports.ZoomSlider=G3;exports.default=Toe;exports.getCardsFromDeck=rn;exports.getDate=mE;exports.getDeckObjectFromCode=St;exports.getMostImportantCards=Pa;exports.getRegionNameOfRegionRef=Mp;exports.importIcons=k8;exports.keyDayjs=RA;exports.regionOfCard=Np;exports.setDescription=EE;exports.setTitle=kE;exports.setupi18n=OS;exports.useCallbacksStore=nn;exports.useCardJsonObjectStore=jt;exports.useCardJsonStore=Tw;exports.useDataJsonStore=we;exports.useUserStore=wa;
881
+ ${n(t.date).fromNow()}`),o=i.computed(()=>{const l=[];return t.activated&&l.push("activated"),t.soon&&l.push("soon"),A.value&&l.push("past"),l});return i.onMounted(()=>{At(r.value,{content:a.value,arrow:!0})}),(l,c)=>(i.openBlock(),i.createElementBlock("div",zAe,[i.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:i.normalizeClass(["reveal-day-option",o.value])},[i.createElementVNode("div",jAe,[i.createElementVNode("img",{src:i.unref(Zf),alt:"card",class:"card"},null,8,YAe)]),i.createElementVNode("div",qAe,[i.createElementVNode("img",{src:i.unref(Zf),alt:"card",class:"card"},null,8,XAe)]),i.createElementVNode("div",JAe,[i.createElementVNode("img",{src:i.unref(Zf),alt:"card",class:"card"},null,8,ZAe)])],2),i.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[i.createVNode(Ju,{text:s.value},null,8,["text"])],512)]))}});const h1=M(ese,[["__scopeId","data-v-f3dbe378"]]),tse={days:{type:Array,required:!0,default:[]}},nse=e=>(i.pushScopeId("data-v-76ed46ac"),e=e(),i.popScopeId(),e),rse={class:"reveal-day-options"},ase=nse(()=>i.createElementVNode("div",{class:"line"},null,-1)),Ase=i.defineComponent({__name:"RevealDayOptions",props:tse,emits:["update:days"],setup(e,{emit:t}){const n=e;function r(a){const A=n.days.map(s=>({activated:!1,date:s.date,soon:s.soon}));!A[a].soon&&A[a].date.getTime()>new Date().getTime()||(A[a].activated=!0,console.log(A),t("update:days",A))}return(a,A)=>(i.openBlock(),i.createElementBlock("div",rse,[ase,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.days,(s,o)=>(i.openBlock(),i.createBlock(h1,{key:o,date:s.date,activated:s.activated,soon:s.soon,onClick:l=>r(o)},null,8,["date","activated","soon","onClick"]))),128))]))}});const M3=M(Ase,[["__scopeId","data-v-76ed46ac"]]),sse={cardCodes:{type:Array,required:!0,default:[]}},ise=i.defineComponent({__name:"DashboardNewCards",props:sse,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[i.createVNode(pg,{class:"reveal-carousel","card-codes":t.cardCodes},null,8,["card-codes"])]),_:1}))}});const N3=M(ise,[["__scopeId","data-v-89a26f2c"]]),ose={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},lse=i.defineComponent({__name:"LeaderboardDetailTable",props:ose,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"player",isShown:n.shownColumns.player,sortDirection:be.UP,title:r("general.player")},{id:"lp",isShown:n.shownColumns.lp,sortDirection:be.NEITHER,title:r("general.lp")},{id:"change",isShown:n.shownColumns.change,sortDirection:be.NEITHER,title:r("general.change")},{id:"wins",isShown:n.shownColumns.wins,sortDirection:be.NEITHER,title:r("general.wins")},{id:"matches",isShown:n.shownColumns.matches,sortDirection:be.NEITHER,title:r("general.matches")},{id:"winrate",isShown:n.shownColumns.winrate,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"deck",isShown:n.shownColumns.deck,sortDirection:be.NOT_SORTABLE,title:r("general.favoriteDeck")}]),A=i.computed(()=>({"--columns":a.value.filter(o=>o.isShown).length}));function s(o){const l=ei(o,a);l&&t("sort-updated",l)}return(o,l)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,style:i.normalizeStyle(A.value),"heading-items":a.value,onToggleSort:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.players,(c,u)=>(i.openBlock(),i.createBlock(r1,i.mergeProps({key:u},c,{index:u+2,"shown-columns":n.shownColumns,"router-link":i.unref(nn)().callbacks.playerRouterLinkCallback(c)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const P3=M(lse,[["__scopeId","data-v-168c9f53"]]);const cse={},use=e=>(i.pushScopeId("data-v-c8a918ec"),e=e(),i.popScopeId(),e),dse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},fse=use(()=>i.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)),hse=[fse];function pse(e,t){return i.openBlock(),i.createElementBlock("svg",dse,hse)}const H3=M(cse,[["render",pse],["__scopeId","data-v-c8a918ec"]]);const gse={},mse=e=>(i.pushScopeId("data-v-4a6733fd"),e=e(),i.popScopeId(),e),vse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},Bse=mse(()=>i.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)),yse=[Bse];function wse(e,t){return i.openBlock(),i.createElementBlock("svg",vse,yse)}const p1=M(gse,[["render",wse],["__scopeId","data-v-4a6733fd"]]);const bse={},_se=e=>(i.pushScopeId("data-v-b519ac08"),e=e(),i.popScopeId(),e),Cse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},Ese=_se(()=>i.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)),kse=[Ese];function Sse(e,t){return i.openBlock(),i.createElementBlock("svg",Cse,kse)}const g1=M(bse,[["render",Sse],["__scopeId","data-v-b519ac08"]]);const xse={},Fse=e=>(i.pushScopeId("data-v-f1928c9e"),e=e(),i.popScopeId(),e),Ise={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},Use=Fse(()=>i.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)),Qse=[Use];function Tse(e,t){return i.openBlock(),i.createElementBlock("svg",Ise,Qse)}const m1=M(xse,[["render",Tse],["__scopeId","data-v-f1928c9e"]]);const Dse={},Lse=e=>(i.pushScopeId("data-v-b1448e85"),e=e(),i.popScopeId(),e),Ose={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},Mse=Lse(()=>i.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)),Nse=[Mse];function Pse(e,t){return i.openBlock(),i.createElementBlock("svg",Ose,Nse)}const v1=M(Dse,[["render",Pse],["__scopeId","data-v-b1448e85"]]);const Hse={},Rse=e=>(i.pushScopeId("data-v-e5501fa0"),e=e(),i.popScopeId(),e),Vse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kse=Rse(()=>i.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)),$se=[Kse];function Wse(e,t){return i.openBlock(),i.createElementBlock("svg",Vse,$se)}const B1=M(Hse,[["render",Wse],["__scopeId","data-v-e5501fa0"]]),y1={items:{type:Array,required:!0,default:[]},fetchSeachResult:{type:Function,required:!0,default:()=>[]}},Gse={...y1,expanded:{type:Boolean,required:!1,default:!1},links:{type:Object,required:!0,default:{gift:{path:"/404"},settings:{path:"/404"},profile:{path:"/404"}}}},zse={class:"content logo no-scrollbar"},jse={class:"nav-item"},Yse={class:"nav-icon-wrapper"},qse={class:"nav-text"},Xse={class:"nav-icon-wrapper"},Jse={class:"nav-text"},Zse={class:"profile content"},eie={class:"nav-icon-wrapper"},tie={class:"nav-text"},nie={class:"nav-icon-wrapper"},rie={class:"nav-text settings"},aie={class:"nav-icon-wrapper"},Aie={class:"nav-text"},sie={class:"nav-icon-wrapper"},iie={class:"nav-text name"},oie={class:"nav-icon-wrapper"},lie={class:"nav-text settings"},cie={class:"nav-icon-wrapper"},uie={class:"nav-text sign-in-container"},die={class:"fancy-button"},fie=i.defineComponent({__name:"NavigationSide",props:Gse,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(),A=i.ref();let s;i.onMounted(()=>{var l;s=new ResizeObserver(o),a.value&&s.observe(a.value),(l=A.value)==null||l.addEventListener("scroll",o),o()}),i.onUnmounted(()=>{var l;s.disconnect(),(l=A.value)==null||l.removeEventListener("scroll",o)});function o(){var u,d;let l=!1,c=!1;A.value&&(A.value.clientHeight<A.value.scrollHeight&&(l=A.value.scrollTop>0,c=A.value.scrollTop<A.value.scrollHeight-A.value.clientHeight),(u=A.value)==null||u.classList.toggle("scrollable-up",l),(d=A.value)==null||d.classList.toggle("scrollable-down",c))}return(l,c)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"navigationSide",ref:a,class:i.normalizeClass(["navigation-side",n.expanded?"expanded":""])},[i.createElementVNode("div",zse,[i.createElementVNode("div",jse,[i.createElementVNode("div",Yse,[i.createVNode(Ys,{"logo-type":"logo-only"})]),i.createElementVNode("div",qse,[i.createVNode(Ys,{"logo-type":"text-only"})])])]),i.createElementVNode("div",{ref_key:"navigationPages",ref:A,class:"pages content no-scrollbar"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,u=>(i.openBlock(),i.createBlock(i.unref(pA.RouterLink),{key:u.text,to:u.routerLocation,class:i.normalizeClass(["nav-item",u.highlighted?"highlight":""])},{default:i.withCtx(()=>[i.createElementVNode("div",Xse,[i.createVNode(i.unref(Ie),{class:"nav-icon",icon:u.faIcon},null,8,["icon"])]),i.createElementVNode("div",Jse,i.toDisplayString(u.text),1)]),_:2},1032,["to","class"]))),128))],512),i.createElementVNode("div",Zse,[i.unref(wa)().user?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(pA.RouterLink),{to:n.links.gift,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",eie,[i.createVNode(i.unref(Ie),{class:"nav-icon",icon:"gift"})]),i.createElementVNode("div",tie,i.toDisplayString(i.unref(r)("general.openCards")),1)]),_:1},8,["to"]),i.createVNode(i.unref(pA.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",nie,[i.createVNode(i.unref(Ie),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",rie,[i.createElementVNode("div",null,i.toDisplayString(i.unref(r)("general.settings")),1),i.createElementVNode("div",{class:"icon",onClick:c[0]||(c[0]=i.withModifiers(u=>t("click:language"),["stop","prevent"]))},[i.createVNode(i.unref(Ie),{icon:"language"})])])]),_:1},8,["to"]),i.createElementVNode("div",{class:"nav-item",onClick:c[1]||(c[1]=u=>t("click:sync"))},[i.createElementVNode("div",aie,[i.createVNode(i.unref(Ie),{class:"nav-icon",icon:"rotate-right"})]),i.createElementVNode("div",Aie,i.toDisplayString(i.unref(r)("general.syncUserData")),1)]),i.createVNode(i.unref(pA.RouterLink),{to:n.links.profile,class:"nav-item"},{default:i.withCtx(()=>{var u,d,f;return[i.createElementVNode("div",sie,[i.createVNode(nA,{"card-code-prop":((u=i.unref(wa)().user)==null?void 0:u.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(d=i.unref(wa)().user)==null?void 0:d.selectedBannerColor,"router-link":n.links.profile},null,8,["card-code-prop","color-override","router-link"])]),i.createElementVNode("div",iie,i.toDisplayString((f=i.unref(wa)().user)==null?void 0:f.name),1)]}),_:1},8,["to"])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(i.unref(pA.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",oie,[i.createVNode(i.unref(Ie),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",lie,[i.createElementVNode("div",null,i.toDisplayString(i.unref(r)("general.settings")),1),i.createVNode(i.unref(Ie),{onClick:c[2]||(c[2]=i.withModifiers(u=>t("click:language"),["stop","prevent"])),class:"icon",icon:"language"})])]),_:1},8,["to"]),i.createElementVNode("div",{class:"nav-item",onClick:c[3]||(c[3]=u=>t("click:sign-in"))},[i.createElementVNode("div",cie,[i.createVNode(i.unref(Ie),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),i.createElementVNode("div",uie,[i.createElementVNode("div",die,i.toDisplayString(i.unref(r)("general.signIn")),1)])])],64))])],2))}});const w1=M(fie,[["__scopeId","data-v-1728bf4e"]]),hie=i.defineComponent({__name:"NavigationTopMobile",props:y1,setup(e){const t=e,n=i.ref(!1),r=i.ref(!1),a=i.ref(),A=i.ref();window.addEventListener("click",s);function s(c){var u;n.value&&(n.value=!!((u=A.value)!=null&&u.contains(c.target)))}function o(){i.nextTick(()=>{n.value=!0,i.nextTick(()=>{var c,u;(u=(c=a.value)==null?void 0:c.$el.querySelector("input"))==null||u.focus()})})}function l(){r.value=!0}return i.onUnmounted(()=>{window.removeEventListener("click",s)}),(c,u)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"navigationTopMobile",ref:A,class:"navigation-top-mobile"},[n.value?(i.openBlock(),i.createBlock(Yu,{key:1,"fetch-seach-result":t.fetchSeachResult,ref_key:"searchBar",ref:a,class:"search-bar"},null,8,["fetch-seach-result"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Ie),{class:"icon",icon:"bars",onClick:l}),i.createVNode(Ys,{class:"logo-icon","logo-type":"text-only"}),i.createVNode(i.unref(Ie),{class:"icon",icon:"search",onClick:i.withModifiers(o,["stop","prevent"])},null,8,["onClick"])],64)),i.createVNode(KA,{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=d=>r.value=d)},{default:i.withCtx(()=>[i.createVNode(w1,i.mergeProps({class:"navigation-side"},t,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512))}});const b1=M(hie,[["__scopeId","data-v-4f19578e"]]),pie={class:"navigation-top"},gie=i.defineComponent({__name:"NavigationTop",props:y1,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",pie,[i.createVNode(t1,i.mergeProps({class:"navigation-top-desktop"},t),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},16),i.createVNode(b1,i.mergeProps({class:"navigation-top-mobile"},t),null,16)]))}});const R3=M(gie,[["__scopeId","data-v-a1aae1e1"]]),mie={modelValue:{type:String,required:!0,default:!1}},vie=["value"],Bie=i.defineComponent({__name:"ColorPicker",props:mie,emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(a){t("update:modelValue",a.target.value)}return(a,A)=>(i.openBlock(),i.createElementBlock("input",{type:"color",value:n.modelValue,onInput:r},null,40,vie))}});const V3=M(Bie,[["__scopeId","data-v-5ebbd7eb"]]),yie={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},wie={class:"multiselect-wrapper"},bie=i.defineComponent({__name:"DashboardLeaderboardTable",props:yie,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref(n.selectedRegion),A=[{title:r("general.leaderboard"),id:"leaderboard"}];return i.watch(a,s=>{t("update:selectedRegion",s)}),(s,o)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":A},{heading:i.withCtx(()=>[i.createElementVNode("div",wie,[i.createVNode(i.unref(Vt),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),class:"multiselect",placeholder:i.unref(r)("general.server"),options:i.unref(we)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.rows,(l,c)=>(i.openBlock(),i.createBlock(f1,{id:l.id,key:l.id,change:l.change,lp:l.lp,name:l.name,rank:l.rank,"selected-banner-card":l.selectedBannerCard,matches:l.matches,index:c+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const K3=M(bie,[["__scopeId","data-v-fe0f916c"]]),_ie={routerLink:{type:Object,required:!0,default:{path:"/404"}},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeId:{type:Number,required:!0,default:1},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},Cie=e=>(i.pushScopeId("data-v-3fd14fcc"),e=e(),i.popScopeId(),e),Eie={class:"table-card-row-background-wrapper"},kie={class:"table-card-row-background"},Sie=Cie(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),xie=[Sie],Fie={class:"archetypes-row wrapper"},Iie={class:"column-content"},Uie={class:"column-content"},Qie=i.defineComponent({__name:"ArchetypesRow",props:_ie,setup(e){const t=e,n=i.computed(()=>St(t.deckCode)),r=i.computed(()=>rn(n.value)),a=i.computed(()=>t.cards.map(s=>`https://lor.gg/storage/cards/banner/${s}.png`)),A=i.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!1,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.routerLink,deckId:void 0,deckName:void 0,isPrivate:void 0}));return(s,o)=>{const l=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Eie,[i.createElementVNode("div",kie,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,c=>(i.openBlock(),i.createElementBlock("div",{key:c,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${c})`})},xie,4))),128))])]),i.createElementVNode("div",Fie,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:o[0]||(o[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Ja,{"deck-code":t.deckCode,deck:n.value,cards:r.value,"deck-buttons-props":A.value},null,8,["deck-code","deck","cards","deck-buttons-props"])]),i.createElementVNode("div",Iie,i.toDisplayString(i.unref(Te)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Zn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Te)(t.wins/t.matches*100,2,3)+"%"),5),i.createElementVNode("div",Uie,i.toDisplayString(i.unref(Te)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const _1=M(Qie,[["__scopeId","data-v-3fd14fcc"]]),Tie={archetypeRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},Die=i.defineComponent({__name:"ArchetypesTable",props:Tie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:be.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"playrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.playrate")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.archetypeRows,(l,c)=>(i.openBlock(),i.createBlock(_1,i.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const $3=M(Die,[["__scopeId","data-v-4a8597f4"]]),Lie={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},Oie={class:"number-container"},Mie={key:0,class:"type-icon"},Nie=i.defineComponent({__name:"DeckBuilderSummaryType",props:Lie,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[i.createElementVNode("div",Oie,i.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(i.openBlock(),i.createElementBlock("div",Mie,[t.typeSummary.typeRef==="Champion"?(i.openBlock(),i.createBlock(g1,{key:0})):t.typeSummary.typeRef==="Follower"?(i.openBlock(),i.createBlock(p1,{key:1})):t.typeSummary.typeRef==="Spell"?(i.openBlock(),i.createBlock(v1,{key:2})):t.typeSummary.typeRef==="Landmark"?(i.openBlock(),i.createBlock(m1,{key:3})):t.typeSummary.typeRef==="Equipment"?(i.openBlock(),i.createBlock(B1,{key:4})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],2))}});const ya=M(Nie,[["__scopeId","data-v-2e6bb287"]]),Pie={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},Hie={class:"deck-builder-summary"},Rie=i.defineComponent({__name:"DeckBuilderSummary",props:Pie,setup(e){const t=e;function n(c,u,d){const f=t.cards.filter(c).map(h=>t.deck[h.cardCode]).reduce((h,p)=>h+p,0);return{typeRef:d,quantity:f,isError:u(f)}}const r=i.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="Champion",c=>c>6,"Champion")),a=i.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="",()=>!1,"Follower")),A=i.computed(()=>n(c=>c.typeRef==="Spell",()=>!1,"Spell")),s=i.computed(()=>n(c=>c.typeRef==="Landmark",()=>!1,"Landmark")),o=i.computed(()=>n(c=>c.typeRef==="Equipment",()=>!1,"Equipment")),l=i.computed(()=>n(()=>!0,c=>c!==40,"Deck"));return(c,u)=>(i.openBlock(),i.createElementBlock("div",Hie,[i.createVNode(ya,{"type-summary":r.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":a.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":A.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":s.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":o.value},null,8,["type-summary"]),i.createVNode(ya,{"type-summary":l.value},null,8,["type-summary"])]))}});const C1=M(Rie,[["__scopeId","data-v-ec8f0fa9"]]),Vie={rows:{type:Array,required:!0,default:[]}},Kie=i.defineComponent({__name:"DashboardCardTable",props:Vie,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.cards"),id:"cards"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,A)=>(i.openBlock(),i.createBlock(JA,{class:"small-table","heading-items":r},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rows,s=>(i.openBlock(),i.createBlock(d1,{key:s.cardCode,"card-code":s.cardCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const W3=M(Kie,[["__scopeId","data-v-e5817be3"]]),$ie={modelValue:{type:Number,required:!0,default:5}},Wie=["value"],Gie=i.defineComponent({__name:"ZoomSlider",props:$ie,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=i.ref(),a=i.ref();function A(s){t("update:modelValue",Number.parseInt(s.target.value))}return i.onMounted(()=>{At(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(s,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",{ref_key:"button",ref:r,class:"circle-button"},[i.createVNode(i.unref(Ie),{icon:"search-plus",class:"zoom-button"})],512),i.createElementVNode("div",{ref_key:"slider",ref:a,class:"slider-wrapper"},[i.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:n.modelValue,onInput:A},null,40,Wie)],512)]))}});const G3=M(Gie,[["__scopeId","data-v-e154d132"]]),zie={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},E1=e=>(i.pushScopeId("data-v-c4b3399b"),e=e(),i.popScopeId(),e),jie={class:"card-overview"},Yie={class:"overview-top"},qie={class:"card-name"},Xie={class:"card-tags"},Jie={class:"card-tag"},Zie={class:"card-tag-text"},eoe={class:"card-tag"},toe={class:"card-tag-text"},noe={class:"card-tag"},roe={class:"card-tag-text"},aoe={class:"card-tag"},Aoe={class:"card-tag-text"},soe=E1(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),ioe={class:"card-text"},ooe=E1(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),loe={class:"keyword-description"},coe={class:"keyword-name"},uoe=E1(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),doe={class:"flavor-text"},foe={class:"card-art-section"},hoe={class:"card-art-button primary-button"},poe=i.defineComponent({__name:"CardOverview",props:zie,setup(e){const t=e,{t:n}=re(),r=Ro(t.cardProp,t.cardCodeProp,!0),a=i.computed(()=>{if(r.value===void 0)return[];const c=[];for(const u of r.value.keywordRefs){const d=we().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),A=i.computed(()=>{if(r.value===void 0)return null;const c=we().dataJson;return uo(r.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===r.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===r.value.regionRefs[0])??c.regions[0]}),s=i.computed(()=>r.value===void 0?null:we().dataJson.rarities.find(c=>c.nameRef===r.value.rarityRef)??we().dataJson.rarities[0]),o=i.computed(()=>r.value===void 0?null:we().dataJson.types.find(c=>c.nameRef===r.value.typeRef)??we().dataJson.types[0]),l=i.computed(()=>r.value===void 0?null:we().dataJson.sets.find(c=>c.nameRef===r.value.set)??we().dataJson.sets[0]);return(c,u)=>{var d,f,h,p,m,y,g,v;return i.openBlock(),i.createElementBlock("div",jie,[i.unref(r)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Yie,[i.createElementVNode("div",qie,i.toDisplayString(i.unref(r).name),1),i.createVNode(i.unref(Ie),{icon:"times",class:"close-icon"})]),i.createElementVNode("div",Xie,[i.createElementVNode("div",Jie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((d=A.value)==null?void 0:d.icon)??""})`})},null,4),i.createElementVNode("div",Zie,i.toDisplayString((f=A.value)==null?void 0:f.name),1)]),i.createElementVNode("div",eoe,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((h=s.value)==null?void 0:h.icon)??""})`})},null,4),i.createElementVNode("div",toe,i.toDisplayString((p=s.value)==null?void 0:p.name),1)]),i.createElementVNode("div",noe,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((m=o.value)==null?void 0:m.icon)??""})`})},null,4),i.createElementVNode("div",roe,i.toDisplayString((y=o.value)==null?void 0:y.name),1)]),i.createElementVNode("div",aoe,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((g=l.value)==null?void 0:g.icon)??""})`})},null,4),i.createElementVNode("div",Aoe,i.toDisplayString((v=l.value)==null?void 0:v.name),1)])]),soe,i.createElementVNode("div",ioe,i.toDisplayString(i.unref(r).descriptionRaw),1),ooe,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.nameRef},[i.createElementVNode("div",loe,[i.createElementVNode("b",coe,i.toDisplayString(_.name+" - "),1),i.createElementVNode("span",null,i.toDisplayString(_.description),1)]),uoe],64))),128)),i.createElementVNode("div",doe,i.toDisplayString(i.unref(r).flavorText),1),i.createElementVNode("div",foe,[i.createElementVNode("div",hoe,i.toDisplayString(i.unref(n)("general.cardArt")),1)])],64)):i.createCommentVNode("",!0)])}}});const z3=M(poe,[["__scopeId","data-v-c4b3399b"]]),goe={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},moe={class:"profile-game-type-winrate"},voe={class:"game-type"},Boe=i.defineComponent({__name:"ProfileGameTypeWinrate",props:goe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",moe,[i.createElementVNode("div",voe,i.toDisplayString(t.gameType),1),i.createVNode(u1,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const j3=M(Boe,[["__scopeId","data-v-1bb3c9de"]]),yoe={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},woe=i.defineComponent({__name:"DecksTable",props:yoe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.ref([{id:"deck",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:be.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:be.NEITHER,title:r("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:be.NOT_SORTABLE,title:r("general.cost")}]);function A(s){const o=ei(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(tA,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:A},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.deckRows,(l,c)=>(i.openBlock(),i.createBlock(Bl,i.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const Y3=M(woe,[["__scopeId","data-v-c789c9b5"]]),boe={deckCode:{type:String,required:!1,default:""}},_oe={deck:{type:Object,required:!0,default:{}},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},Coe={class:"deck-preview-wrapper"},Eoe=i.defineComponent({__name:"ShowDeckPreviewButton",props:_oe,setup(e){const t=e,{t:n}=re(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.showPreview"),arrow:!0})}),(A,s)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=o=>a.value=!0)},[i.createVNode(i.unref(Ie),{icon:"camera"})],512),i.createVNode(KA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",Coe,[i.createVNode(i.unref(Rd),{deck:t.deck,"deck-buttons-props":t.deckButtonsProps},null,8,["deck","deck-buttons-props"])])]),_:1},8,["show-modal"])]))}});const koe=M(Eoe,[["__scopeId","data-v-90be9f81"]]),Soe={class:"cards-container no-scrollbar"},xoe={class:"bottom"},Foe={class:"bottom-buttons"},Ioe={class:"fancy-button"},q3=i.defineComponent({__name:"DeckBuilderSidePanel",props:boe,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=i.computed(()=>{if(n.deckCode)return St(n.deckCode);throw new Error("Deck or DeckCode must be defined")}),A=i.computed(()=>rn(a.value)),s=i.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!1,simulateMulligan:!0,openInDeckBuilder:!1,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:n.deckCode,deckBuilderRouterLink:"404"}));return(o,l)=>(i.openBlock(),i.createBlock(Zs,{"show-clear-all":!1},{default:i.withCtx(()=>[i.createVNode(i.unref(C1),{cards:A.value,deck:a.value},null,8,["cards","deck"]),(i.openBlock(),i.createBlock(i.unref(hl),{class:"mana-curve-chart",key:n.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:a.value},null,8,["deck"])),i.createElementVNode("div",Soe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,c=>(i.openBlock(),i.createBlock(i.unref(fn),{"onUpdate:cardQuantity":l[0]||(l[0]=u=>t("update:card-quantity",u)),key:c.cardCode,"card-prop":c,"maintain-aspect-ratio":!0,"quantity-number":a.value[c.cardCode],"show-plus-minus":!0,"router-link":i.unref(nn)().callbacks.cardCodeRouterLinkCallback(c.cardCode),class:"card-slice-item"},null,8,["card-prop","quantity-number","router-link"]))),128))]),i.createElementVNode("div",xoe,[i.createElementVNode("div",Foe,[i.createVNode(i.unref(Fd),{deck:a.value},null,8,["deck"]),i.createVNode(i.unref(xd),{"deck-code":n.deckCode},null,8,["deck-code"]),i.createVNode(koe,{deck:a.value,"deck-buttons-props":s.value},null,8,["deck","deck-buttons-props"]),i.createVNode(i.unref(Id))]),i.createElementVNode("div",Ioe,i.toDisplayString(i.unref(r)("general.save")),1)])]),_:1}))}});const Uoe={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},X3=i.defineComponent({__name:"RegionDistributionChart",props:Uoe,setup(e){const t=e,n=i.ref(null);Le.register(...Cr);const r=i.computed(()=>({labels:t.data.map(A=>A.region),datasets:[{data:t.data.map(A=>A.matches),backgroundColor:t.data.map(A=>U2(A.region))}]})),a={cutout:"80%",elements:{arc:{borderWidth:3,borderColor:t.backgroundColor}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(A){const s=[],o=A.data.labels;for(let l=0;l<A.data.labels.length;l++)s.push({text:`${Mp(o[l])} (${A.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Ha("--color-0"),fillStyle:A.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(A,s)=>(i.openBlock(),i.createBlock(i.unref(ld),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),Qoe={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},J3=i.defineComponent({__name:"SimpleDoughnutChart",props:Qoe,setup(e){const t=e,n=i.ref(null);Le.register(...Cr);const r=i.computed(()=>({labels:["Value","Max"],datasets:[{data:[t.value,t.max-t.value],backgroundColor:[Ha("--color-good"),"transparent"]}]})),a={cutout:"80%",elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1}}},A=[{id:"text",beforeDraw:function(s){const o=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const f=s.data.datasets[0].data[0].toFixed(2),h=Math.round((o-c.measureText(f).width)/2),p=l/2;c.fillStyle=Ha("--color-good"),c.fillText(f,h,p),c.save()}}];return(s,o)=>(i.openBlock(),i.createBlock(i.unref(ld),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),Toe={install:async e=>{e.component("RevealCarousel",pg),e.component("SearchBar",Yu),e.component("SocialLinks",mg),e.component("ModalItem",KA),e.component("FilterSampleSize",Xs),e.component("FilterRanks",vb),e.component("FilterManaCost",vg),e.component("FilterRarities",Bg),e.component("FilterSets",yg),e.component("FilterKeywords",wg),e.component("FilterServers",Js),e.component("FilterTime",$A),e.component("FilterCardCodes",Xu),e.component("FilterDecks",Bb),e.component("FilterProfile",yb),e.component("FilterText",su),e.component("FilterAdvanced",kg),e.component("FilterRegions",Yo),e.component("FilterCards",wb),e.component("AdvancedFilterItem",Eg),e.component("FilterTypes",Sg),e.component("RegionsLine",xg),e.component("CardsTable",bb),e.component("DeckHighlightRegions",Xo),e.component("GemsCost",Tg),e.component("CardSliceItem",fn),e.component("LanguageSelection",Dg),e.component("DeckSidePanel",l4),e.component("DeckHighlight",Ja),e.component("ArchetypeSidePanel",f3),e.component("OpenInDeckBuilderButton",Nm),e.component("CopyDeckButton",xd),e.component("UpdateDeckPrivacyButton",Hm),e.component("EditDeckNameButton",Om),e.component("UploadDeckToLorButton",Id),e.component("DeleteDeckButton",Lm),e.component("OpenArchetypePageButton",Mm),e.component("SimulateMulliganButton",Fd),e.component("SocialMediaLinks",h3),e.component("DecksRow",Bl),e.component("CardItemLinkWrapper",Zm),e.component("DeckHighlightCards",Jo),e.component("CheckboxItem",tn),e.component("NavigationTopDesktop",t1),e.component("SidePanelSectionPane",mt),e.component("CardSimilarCards",p3),e.component("DashboardSignUp",m3),e.component("MatchItem",v3),e.component("ToggleSwitch",qu),e.component("LeaderboardTop10Region",n1),e.component("ShareButton",Vm),e.component("LeaderboardDetailRow",r1),e.component("DeckBlock",B3),e.component("SmallTable",JA),e.component("LeaderboardTop",y3),e.component("CardLottery",w3),e.component("DashboardProfile",b3),e.component("LeaderboardChart",_3),e.component("CardQuantityBarChart",C3),e.component("WinsLossesBarChart",E3),e.component("RoundCardInfoBarChart",k3),e.component("LineChart",S3),e.component("ManaCurveChart",hl),e.component("WinrateDoughnutChart",o1),e.component("InfoDoughnutChart",vu),e.component("BuiltDecksTable",x3),e.component("ProfileRegionTable",F3),e.component("ProfileArchetypeTable",I3),e.component("CardItem3d",i1),e.component("LeaderboardOptions",U3),e.component("SimilarDecksTable",Q3),e.component("LargeTable",tA),e.component("StatisticsPaneContainer",T3),e.component("ArchetypeSidePanelHighlight",Zu),e.component("CardCarousel",D3),e.component("DeckButtons",gl),e.component("WinsLossesLine",u1),e.component("DashboardCardRow",d1),e.component("CardTogglePage",L3),e.component("TestComponent",O3),e.component("DashboardLeaderboardRow",f1),e.component("DeckPreview",Rd),e.component("CheckboxItemManaCost",Au),e.component("RevealDayOptions",M3),e.component("DeckDifferenceItem",qm),e.component("DashboardNewCards",N3),e.component("CardsRow",Fg),e.component("LeaderboardDetailTable",P3),e.component("DeckIcon",H3),e.component("LogoIcon",Ys),e.component("FollowerIcon",p1),e.component("ChampionIcon",g1),e.component("EternalIcon",a1),e.component("InfoIcon",Jm),e.component("LandmarkIcon",m1),e.component("ManaHexagonIcon",jo),e.component("RuneterraIcon",Rm),e.component("ShardsIcon",Qg),e.component("StandardIcon",A1),e.component("SpellIcon",v1),e.component("GauntletIcon",s1),e.component("EquipmentIcon",B1),e.component("NavigationTop",R3),e.component("CardMultiselect",bg),e.component("ProfileDropdown",e1),e.component("ColorPicker",V3),e.component("DashboardLeaderboardTable",K3),e.component("NavigationSide",w1),e.component("ArchetypesTable",$3),e.component("DeckBuilderSummary",C1),e.component("DeckBuilderSummaryType",ya),e.component("DashboardCardTable",W3),e.component("ArchetypesRow",_1),e.component("RevealDayOption",h1),e.component("DeckHighlightEye",Vd),e.component("DeckDifferences",Xm),e.component("ZoomSlider",G3),e.component("CardOverview",z3),e.component("CircleCardItem",nA),e.component("ProfileGameTypeWinrate",j3),e.component("DecksTable",Y3),e.component("RegionItem",qo),e.component("TippyText",Ju),e.component("ProfileRegionRow",l1),e.component("SimulateMulligan",Pm),e.component("DeckSummary",Sd),e.component("NavigationTopMobile",b1),e.component("CardItem",Wa),e.component("ProfileArchetypeRow",c1),e.component("DeckBuilderSidePanel",q3),e.component("SimpleDoughnutChart",J3),e.component("RegionDistributionChart",X3),e.component("Spinner",Ig),e.component("FontAwesomeIcon",Ie),e.component("Multiselect",Vt)}};exports.AdvancedFilterItem=Eg;exports.ArchetypeSidePanel=f3;exports.ArchetypeSidePanelHighlight=Zu;exports.ArchetypesRow=_1;exports.ArchetypesTable=$3;exports.BuiltDecksTable=x3;exports.CardCarousel=D3;exports.CardItem=Wa;exports.CardItem3d=i1;exports.CardItemLinkWrapper=Zm;exports.CardLottery=w3;exports.CardMultiselect=bg;exports.CardOverview=z3;exports.CardQuantityBarChart=C3;exports.CardSimilarCards=p3;exports.CardSliceItem=fn;exports.CardTogglePage=L3;exports.CardsRow=Fg;exports.CardsTable=bb;exports.ChampionIcon=g1;exports.CheckboxItem=tn;exports.CheckboxItemManaCost=Au;exports.CircleCardItem=nA;exports.ColorPicker=V3;exports.CopyDeckButton=xd;exports.DashboardCardRow=d1;exports.DashboardCardTable=W3;exports.DashboardLeaderboardRow=f1;exports.DashboardLeaderboardTable=K3;exports.DashboardNewCards=N3;exports.DashboardProfile=b3;exports.DashboardSignUp=m3;exports.DeckBlock=B3;exports.DeckBuilderSidePanel=q3;exports.DeckBuilderSummary=C1;exports.DeckBuilderSummaryType=ya;exports.DeckButtons=gl;exports.DeckDifferenceItem=qm;exports.DeckDifferences=Xm;exports.DeckHighlight=Ja;exports.DeckHighlightCards=Jo;exports.DeckHighlightEye=Vd;exports.DeckHighlightRegions=Xo;exports.DeckIcon=H3;exports.DeckPreview=Rd;exports.DeckSidePanel=l4;exports.DeckSummary=Sd;exports.DecksRow=Bl;exports.DecksTable=Y3;exports.DeleteDeckButton=Lm;exports.EditDeckNameButton=Om;exports.EquipmentIcon=B1;exports.EternalIcon=a1;exports.FilterAdvanced=kg;exports.FilterCardCodes=Xu;exports.FilterCards=wb;exports.FilterDecks=Bb;exports.FilterKeywords=wg;exports.FilterManaCost=vg;exports.FilterProfile=yb;exports.FilterRanks=vb;exports.FilterRarities=Bg;exports.FilterRegions=Yo;exports.FilterSampleSize=Xs;exports.FilterServers=Js;exports.FilterSets=yg;exports.FilterText=su;exports.FilterTime=$A;exports.FilterTypes=Sg;exports.FollowerIcon=p1;exports.GauntletIcon=s1;exports.GemsCost=Tg;exports.InfoDoughnutChart=vu;exports.InfoIcon=Jm;exports.LandmarkIcon=m1;exports.LanguageSelection=Dg;exports.LargeTable=tA;exports.LeaderboardChart=_3;exports.LeaderboardDetailRow=r1;exports.LeaderboardDetailTable=P3;exports.LeaderboardOptions=U3;exports.LeaderboardTop=y3;exports.LeaderboardTop10Region=n1;exports.LineChart=S3;exports.LogoIcon=Ys;exports.ManaCurveChart=hl;exports.ManaHexagonIcon=jo;exports.MatchItem=v3;exports.ModalItem=KA;exports.NavigationSide=w1;exports.NavigationTop=R3;exports.NavigationTopDesktop=t1;exports.NavigationTopMobile=b1;exports.OpenArchetypePageButton=Mm;exports.OpenInDeckBuilderButton=Nm;exports.ProfileArchetypeRow=c1;exports.ProfileArchetypeTable=I3;exports.ProfileDropdown=e1;exports.ProfileGameTypeWinrate=j3;exports.ProfileRegionRow=l1;exports.ProfileRegionTable=F3;exports.RegionDistributionChart=X3;exports.RegionItem=qo;exports.RegionsLine=xg;exports.RevealCarousel=pg;exports.RevealDayOption=h1;exports.RevealDayOptions=M3;exports.RoundCardInfoBarChart=k3;exports.RuneterraIcon=Rm;exports.SearchBar=Yu;exports.ShardsIcon=Qg;exports.ShareButton=Vm;exports.SidePanelSectionPane=mt;exports.SimilarDecksTable=Q3;exports.SimpleDoughnutChart=J3;exports.SimulateMulligan=Pm;exports.SimulateMulliganButton=Fd;exports.SmallTable=JA;exports.SocialLinks=mg;exports.SocialMediaLinks=h3;exports.SpellIcon=v1;exports.Spinner=Ig;exports.StandardIcon=A1;exports.StatisticsPaneContainer=T3;exports.TestComponent=O3;exports.TippyText=Ju;exports.ToggleSwitch=qu;exports.UpdateDeckPrivacyButton=Hm;exports.UploadDeckToLorButton=Id;exports.WinrateDoughnutChart=o1;exports.WinsLossesBarChart=E3;exports.WinsLossesLine=u1;exports.ZoomSlider=G3;exports.default=Toe;exports.getCardsFromDeck=rn;exports.getDate=mE;exports.getDeckObjectFromCode=St;exports.getMostImportantCards=Pa;exports.getRegionNameOfRegionRef=Mp;exports.importIcons=k8;exports.keyDayjs=RA;exports.regionOfCard=Np;exports.setDescription=EE;exports.setTitle=kE;exports.setupi18n=OS;exports.useCallbacksStore=nn;exports.useCardJsonObjectStore=jt;exports.useCardJsonStore=Tw;exports.useDataJsonStore=we;exports.useUserStore=wa;