lorgg-v2-components 0.0.92 → 0.0.94

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.
@@ -807,7 +807,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
807
807
 
808
808
  `,`1) content: element.innerHTML
809
809
  `,"2) content: () => element.cloneNode(true)"].join(" "))}var o=a.reduce(function(l,c){var u=c&&II(c,r);return u&&l.push(u),l},[]);return _o(e)?o[0]:o}At.defaultProps=En;At.setDefaultProps=kI;At.currentInput=dr;Object.assign({},Gw,{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:cb});const ub={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}},UI=["alt","src"],QI={key:0,class:"quantity-ticks-container"},TI={key:0},DI={key:0,class:"card-info-quantity-possessed"},LI={key:1,class:"line"},OI={class:"card-info-title"},MI={class:"card-info-text"},NI={key:2,class:"line"},PI={key:3,class:"card-info-text"},HI={key:1,class:"associated-card-container"},RI=i.defineComponent({__name:"CardItem",props:ub,setup(e){const t=e,n=i.ref(null),r=i.ref(null);let a=null;const A=i.ref(!1),s=Po(t.cardProp,t.cardCodeProp),o=i.computed(()=>s.value===void 0?null:t.quantityNeeded!=null&&t.userCardQuantity!=null&&s.value.cardCode in t.userCardQuantity&&t.quantityNeeded>t.userCardQuantity[s.value.cardCode]?"bad":null),l=i.computed(()=>{if(s.value===void 0)return[];const y=[];if(t.isRoot)for(const g of s.value.associatedCardRefs)y.push(jt().cardJsonObject[g]);return y}),c=i.computed(()=>{if(s.value===void 0)return[];const y=[];for(const g of s.value.keywordRefs){const v=we().dataJson.keywords.find(_=>_.nameRef===g);v&&y.push(v)}return y}),u=i.computed(()=>t.isRoot&&(t.userCardQuantity!=null||s.value&&(s.value.keywordRefs.length>0||s.value.associatedCardRefs.length>0))),d=i.computed(()=>{var y;return t.userCardQuantity==null||s.value&&!(s.value.cardCode in t.userCardQuantity)?0:t.userCardQuantity[((y=s.value)==null?void 0:y.cardCode)??0]}),f=i.computed(()=>s.value===void 0?null:t.isDeckBuilder&&t.deckList[s.value.cardCode]===3?"disabled":null);i.watch(()=>t.showTippyLocation,y=>{a&&(y?(a.setProps({placement:y}),a.show()):a.hide())});function h(){window.addEventListener("keyup",y=>{y.key=="Shift"&&(A.value=!1)})}function p(){window.addEventListener("keydown",y=>{y.key=="Shift"&&(A.value=!0)})}function m(y){return s.value===void 0?null:t.isDeckBuilder?!(s.value.cardCode in t.deckList)||y>t.deckList[s.value.cardCode]?"disabled":null:y>d.value?"disabled":null}return i.onMounted(()=>{(s.value===void 0||t.userCardQuantity!=null||s.value.keywordRefs.length>0||s.value.associatedCardRefs.length>0)&&(a=At(n.value,{allowHTML:!0,content:r.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw",touch:!1})),(s.value===void 0||s.value.associatedCardRefs.length>0)&&(h(),p())}),(y,g)=>{var _,B,b;const v=i.resolveComponent("CardItem",!0);return i.openBlock(),i.createElementBlock("div",{class:"card-item-container",onMouseover:g[0]||(g[0]=w=>!0),onMouseleave:g[1]||(g[1]=w=>!1)},[i.createElementVNode("img",{ref_key:"cardItem",ref:n,alt:(_=i.unref(s))==null?void 0:_.name,class:i.normalizeClass(["card-item",f.value]),src:`https://lor.gg/storage/cards/card/en_us/${(B=i.unref(s))==null?void 0:B.cardCode}.webp`},null,10,UI),(y.isDeckBuilder||y.userCardQuantity!=null)&&((b=i.unref(s))!=null&&b.collectible)?(i.openBlock(),i.createElementBlock("div",QI,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(3,w=>i.createElementVNode("div",{key:w,class:i.normalizeClass(["quantity-tick",m(w)])},null,2)),64))])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"cardInfo",ref:r,class:i.normalizeClass(A.value?null:"card-info")},[!A.value&&u.value&&i.unref(s)?(i.openBlock(),i.createElementBlock("div",TI,[d.value!==void 0?(i.openBlock(),i.createElementBlock("div",DI,[i.createTextVNode(i.toDisplayString("You have: ")+" "),i.createElementVNode("b",{class:i.normalizeClass(o.value)},i.toDisplayString(d.value+" / "+(y.quantityNeeded||3)),3)])):i.createCommentVNode("",!0),d.value!==void 0&&(i.unref(s).keywordRefs.length>0||i.unref(s).associatedCardRefs.length>0)?(i.openBlock(),i.createElementBlock("hr",LI)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,w=>(i.openBlock(),i.createElementBlock("div",{key:w.nameRef,class:"card-info-section"},[i.createElementVNode("h4",OI,i.toDisplayString(w.name),1),i.createElementVNode("p",MI,i.toDisplayString(w.description),1)]))),128)),i.unref(s).keywordRefs.length>0&&i.unref(s).associatedCardRefs.length>0?(i.openBlock(),i.createElementBlock("hr",NI)):i.createCommentVNode("",!0),i.unref(s).associatedCardRefs.length>0?(i.openBlock(),i.createElementBlock("div",PI,i.toDisplayString("Hold Shift to see Associated Cards"))):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",HI,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,w=>(i.openBlock(),i.createBlock(v,{key:w.cardCode,"card-code-prop":w.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},$a=M(RI,[["__scopeId","data-v-d8fb3406"]]),VI=i.defineComponent({__name:"RevealCarousel",props:X5,setup(e){var o;const t=e,n=[$5],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(Vw),{"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(Kw),{key:u},{default:i.withCtx(()=>[i.createVNode($a,{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(VI,[["__scopeId","data-v-430f2bb4"]]),KI={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}},$I="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMxIDM2Ij4KICAgIDxkZWZzPgogICAgICA8bGluZWFyR3JhZGllbnQKICAgICAgICBpZD0iYSIKICAgICAgICB4MT0iLjA4IgogICAgICAgIHkxPSIuODIiCiAgICAgICAgeDI9IjEiCiAgICAgICAgeTI9Ii4xOSIKICAgICAgICBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIKICAgICAgPgogICAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzA0NjZjOCIgLz4KICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDNhOWUiIC8+CiAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxNS41IDE1LjUpIiBmaWxsPSJ1cmwoI2EpIj4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMjMuNTUgMzAuNWgtMTEuMWE1LjUyIDUuNTIgMCAwIDEtNC43NS0yLjc0bC01LjUyLTkuNWE1LjUxIDUuNTEgMCAwIDEgMC01LjUybDUuNTItOS41QTUuNTIgNS41MiAwIDAgMSAxMi40NS41aDExLjFhNS41MiA1LjUyIDAgMCAxIDQuNzUgMi43NGw1LjUyIDkuNWMuOTkgMS43Ljk5IDMuODIgMCA1LjUybC01LjUyIDkuNWE1LjUyIDUuNTIgMCAwIDEtNC43NSAyLjc0WiIKICAgICAgLz4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMTIuNDUgMWMtMS43NyAwLTMuNDMuOTUtNC4zMiAyLjQ5bC01LjUyIDkuNWE1LjAxIDUuMDEgMCAwIDAgMCA1LjAybDUuNTIgOS41QTUuMDIgNS4wMiAwIDAgMCAxMi40NSAzMGgxMS4xYzEuNzcgMCAzLjQzLS45NSA0LjMyLTIuNDlsNS41Mi05LjVjLjktMS41NS45LTMuNDcgMC01LjAybC01LjUyLTkuNUE1LjAyIDUuMDIgMCAwIDAgMjMuNTUgMWgtMTEuMW0wLTFoMTEuMWE2IDYgMCAwIDEgNS4xOCAyLjk5bDUuNTIgOS41YTYgNiAwIDAgMSAwIDYuMDJsLTUuNTIgOS41QTYgNiAwIDAgMSAyMy41NSAzMWgtMTEuMWE2IDYgMCAwIDEtNS4xOC0yLjk5bC01LjUyLTkuNWE2IDYgMCAwIDEgMC02LjAybDUuNTItOS41QTYgNiAwIDAgMSAxMi40NSAwWiIKICAgICAgICBmaWxsPSIjZmZjNTNlIgogICAgICAvPgogICAgPC9nPgogIDwvc3ZnPg==",WI=["src"],Go=i.defineComponent({__name:"ManaHexagonIcon",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("img",{src:i.unref($I)},null,8,WI))}});function av(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 Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?av(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GI(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 zI(e,t){if(e==null)return{};var n=GI(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 Fh(e){return jI(e)||YI(e)||qI(e)||XI()}function jI(e){if(Array.isArray(e))return Ih(e)}function YI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qI(e,t){if(e){if(typeof e=="string")return Ih(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 Ih(e,t)}}function Ih(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 XI(){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 JI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},db={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,b=0,w=0;if(u(v))for(B=[],w=v.length;b<w;b++)B.push(n(g,v[b],_));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,b){return _(B,g,b)}},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})(JI)})(db);var ZI=db.exports,eU=["class","style"];function tU(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=ZI.camelize(n.slice(0,r)),A=n.slice(r+1).trim();return t[a]=A,t},{})}function nU(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=nU(u);break;case"style":l.style=tU(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var A=n.style,s=A===void 0?{}:A,o=zI(n,eU);return i.h(e.tag,Yn(Yn(Yn({},t),{},{class:a.class,style:Yn(Yn({},a.style),s)},a.attrs),o),r)}var fb=!1;try{fb=process.env.NODE_ENV==="production"}catch{}function rU(){if(!fb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Gi(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?sn({},e,t):{}}function aU(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"},sn(t,"fa-".concat(e.size),e.size!==null),sn(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),sn(t,"fa-pull-".concat(e.pull),e.pull!==null),sn(t,"fa-swap-opacity",e.swapOpacity),sn(t,"fa-bounce",e.bounce),sn(t,"fa-shake",e.shake),sn(t,"fa-beat",e.beat),sn(t,"fa-fade",e.fade),sn(t,"fa-beat-fade",e.beatFade),sn(t,"fa-flash",e.flash),sn(t,"fa-spin-pulse",e.spinPulse),sn(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 Av(e){if(e&&tu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xc.icon)return Xc.icon(e);if(e===null)return null;if(tu(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 Te=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 Av(t.icon)}),A=i.computed(function(){return Gi("classes",aU(t))}),s=i.computed(function(){return Gi("transform",typeof t.transform=="string"?Xc.transform(t.transform):t.transform)}),o=i.computed(function(){return Gi("mask",Av(t.mask))}),l=i.computed(function(){return dF(a.value,Yn(Yn(Yn(Yn({},A.value),s.value),o.value),{},{symbol:t.symbol,title:t.title}))});i.watch(l,function(u){if(!u)return rU("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=Iw.familyPrefix,A=i.computed(function(){return["".concat(a,"-layers")].concat(Fh(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=Iw.familyPrefix,A=i.computed(function(){return Gi("classes",[].concat(Fh(t.counter?["".concat(a,"-layers-counter")]:[]),Fh(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=i.computed(function(){return Gi("transform",typeof t.transform=="string"?Xc.transform(t.transform):t.transform)}),o=i.computed(function(){var c=fF(t.value.toString(),Yn(Yn({},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 AU={class:"card-slice"},sU={key:0,class:"mana-hexagon"},iU={class:"mana-number"},oU={class:"card-name"},lU={key:1,class:"quantity"},cU={class:"quantity-background"},uU={class:"num-quantity"},dU={class:"plus-minus-content"},fU={class:"plus-minus-quantity"},hU=i.defineComponent({__name:"CardSliceItem",props:KI,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,r=Po(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=hA(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",AU,[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",sU,[i.createVNode(Go,{class:"hexagon-icon"}),i.createElementVNode("div",iU,i.toDisplayString(n.manaNumber??((p=i.unref(r))==null?void 0:p.cost)),1)])):i.createCommentVNode("",!0),i.createElementVNode("div",oU,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",lU,[i.createElementVNode("div",cU,[i.createElementVNode("p",uU,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",dU,[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(Te),{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(Te),{icon:"plus",class:"icon"})]),i.createElementVNode("div",fU,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($a,{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 dn=M(hU,[["__scopeId","data-v-a1e91ff3"]]);function lr(e){return[null,void 0].indexOf(e)!==-1}function pU(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||lr(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>lr(d)?A.value==="single"?{}:[]:d;return{update:l}}function gU(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 mU(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 vU(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 lf(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 yU(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function wU(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:b,valueProp:w,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,Un=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),vn=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=>{Kd(xe[K.value]).forEach(Bt=>{G.push(Object.assign({},Bt,xe[ce.value]?{[ce.value]:!0}:{}))})}),G}else{let I=Kd(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()),oa.value.length&&(I=oa.value.concat(I)),Vd(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 oa.value.length&&(I[0]&&I[0].__CREATE__?I[0][K.value]=[...oa.value,...I[0][K.value]]:I=[{[k.value]:" ",[K.value]:[...oa.value],__CREATE__:!0}].concat(I)),I}),Qn=i.computed(()=>{if(!Y.value)return[];let I=ar.value;return nE((I||[]).map((G,xe)=>{const Bt=Kd(G[K.value]);return{...G,index:xe,group:!0,[K.value]:Vd(Bt,!1).map(li=>Object.assign({},li,G[ce.value]?{[ce.value]:!0}:{})),__VISIBLE__:Vd(Bt).map(li=>Object.assign({},li,G[ce.value]?{[ce.value]:!0}:{}))}}))}),Tn=i.computed(()=>{switch(a.value){case"single":return!lr(ne.value[w.value]);case"multiple":case"tags":return!lr(ne.value)&&ne.value.length>0}}),Gn=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"),si=i.computed(()=>!O.value.length&&!he.value&&!oa.value.length),XA=i.computed(()=>O.value.length>0&&Ze.value.length==0&&(te.value&&Y.value||!Y.value)),oa=i.computed(()=>vn.value===!1||!te.value?[]:Z3(te.value)!==-1?[]:[{[w.value]:te.value,[L.value]:te.value,[u.value]:te.value,__CREATE__:!0}]),L=i.computed(()=>A.value||u.value),re=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=Fr(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=Fr(I)),a.value){case"single":ii();break;case"tags":case"multiple":ot(Array.isArray(I)?ne.value.filter(G=>I.map(xe=>xe[w.value]).indexOf(G[w.value])===-1):ne.value.filter(G=>G[w.value]!=I[w.value]));break}t.emit("deselect",Dt(I),I,fe)},Dt=I=>p.value?I:I[w.value],Xt=I=>{ye(I)},la=(I,G)=>{if(G.button!==0){G.preventDefault();return}Xt(I)},ii=()=>{t.emit("clear",fe),ot(re.value)},Pt=I=>{if(I.group!==void 0)return a.value==="single"?!1:J3(I[K.value])&&I[K.value].length;switch(a.value){case"single":return!lr(ne.value)&&ne.value[w.value]==I[w.value];case"tags":case"multiple":return!lr(ne.value)&&ne.value.map(G=>G[w.value]).indexOf(I[w.value])!==-1}},aA=I=>I[ce.value]===!0,ca=()=>T===void 0||T.value===-1||!Tn.value&&T.value>0?!1:ne.value.length>=T.value,ua=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,ml(G)});return}ml(I)}},ml=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&&da(I),b.value&&Pe(),F.value&&(vt(),E()),I&&Se(I);break;case"multiple":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ca()){t.emit("max",fe);return}I&&(da(I),Se(I)),b.value&&Pe(),o.value&&vt(),F.value&&E();break;case"tags":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ca()){t.emit("max",fe);return}I&&da(I),b.value&&Pe(),I&&Se(I),o.value&&vt(),F.value&&E();break}F.value||Un()},oi=I=>{if(!(aA(I)||a.value==="single"||!$.value)){switch(a.value){case"multiple":case"tags":X3(I[K.value])?ye(I[K.value]):Se(I[K.value].filter(G=>ne.value.map(xe=>xe[w.value]).indexOf(G[w.value])===-1).filter(G=>!G[ce.value]).filter((G,xe)=>ne.value.length+1+xe<=T.value||T.value===-1));break}F.value&&x()}},da=I=>{Fr(I[w.value])===void 0&&vn.value&&(t.emit("tag",I[w.value],fe),t.emit("option",I[w.value],fe),t.emit("create",I[w.value],fe),$e.value&&tE(I),Pe())},q3=()=>{a.value!=="single"&&Se(Ze.value.filter(I=>!I.disabled&&!Pt(I)))},X3=I=>I.find(G=>!Pt(G)&&!G[ce.value])===void 0,J3=I=>I.find(G=>!Pt(G))===void 0,Fr=I=>O.value[O.value.map(G=>String(G[w.value])).indexOf(String(I))],Z3=(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),eE=I=>["tags","multiple"].indexOf(a.value)!==-1&&o.value&&Pt(I),tE=I=>{W.value.push(I)},nE=I=>oe.value?I.filter(G=>te.value?G.__VISIBLE__.length:G[K.value].length):I.filter(G=>te.value?G.__VISIBLE__.length:!0),Vd=(I,G=!0)=>{let xe=I;if(te.value&&_.value){let Bt=Ee.value;Bt||(Bt=(li,Eoe)=>{let E1=lf(D(li[L.value]),U.value);return me.value?E1.startsWith(lf(te.value,U.value)):E1.indexOf(lf(te.value,U.value))!==-1}),xe=xe.filter(Bt)}return o.value&&G&&(xe=xe.filter(Bt=>!eE(Bt))),xe},Kd=I=>{let G=I;return BU(G)&&(G=Object.keys(G).map(xe=>{let Bt=G[xe];return{[w.value]:xe,[L.value]:Bt,[u.value]:Bt}})),G=G.map(xe=>typeof xe=="object"?xe:{[w.value]:xe,[L.value]:xe,[u.value]:xe}),G},vl=()=>{lr(N.value)||(ne.value=yl(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()})})),$d=()=>{if(Tn.value)if(a.value==="single"){let I=Fr(ne.value[w.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=Fr(ne.value[G][w.value]);if(xe!==void 0){let Bt=xe[u.value];ne.value[G][u.value]=Bt,p.value&&(N.value[G][u.value]=Bt)}})},rE=I=>{Bl(I)},yl=I=>lr(I)?a.value==="single"?{}:[]:p.value?I:a.value==="single"?Fr(I)||(C.value?{[u.value]:I,[w.value]:I,[L.value]:I}:{}):I.filter(G=>!!Fr(G)||C.value).map(G=>Fr(G)||{[u.value]:G,[w.value]:G,[L.value]:G}),C1=()=>{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"&&!lr(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(vl):p.value==!0&&vl():(ie.value=r.value,vl()),y.value>-1&&C1(),i.watch(y,(I,G)=>{Ft.value&&Ft.value(),I>=0&&C1()}),i.watch(N,I=>{if(lr(I)){ot(yl(I),!1);return}switch(a.value){case"single":(p.value?I[w.value]!=ne.value[w.value]:I!=ne.value[w.value])&&ot(yl(I),!1);break;case"multiple":case"tags":yU(p.value?I.map(G=>G[w.value]):I,ne.value.map(G=>G[w.value]))||ot(yl(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||vl(),$d())}),i.watch(u,$d),{pfo:P,fo:Ze,filteredOptions:Ze,hasSelected:Tn,multipleLabelText:Gn,eo:O,extendedOptions:O,eg:et,extendedGroups:et,fg:Qn,filteredGroups:Qn,noOptions:si,noResults:XA,resolving:he,busy:ue,offset:ht,select:Se,deselect:ye,remove:Xt,selectAll:q3,clear:ii,isSelected:Pt,isDisabled:aA,isMax:ca,getOption:Fr,handleOptionClick:ua,handleGroupClick:oi,handleTagRemove:la,refreshOptions:rE,resolveOptions:Bl,refreshLabels:$d}}function bU(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,b=n.isOpen,w=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(w.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__?w.value[0]:C.value[0]:w.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=w.value.map(te=>te[r.value]).indexOf(g.value[r.value])+1;w.value.length<=N&&(N=0),v(w.value[N]||null)}i.nextTick(()=>{ne()})},Ee=()=>{if(g.value===null){let N=w.value[w.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=w.value.map(te=>te[r.value]).indexOf(g.value[r.value])-1;N<0&&(N=w.value.length-1),v(w.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(b,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 _U(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 CU(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 EU(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,b=n.forwardPointer,w=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=[...w.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(),b();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 kU(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 b=[v.option];return l(_)?b.push(c(_)?v.optionSelectedPointed:v.optionPointed):c(_)?b.push(u(_)?v.optionSelectedDisabled:v.optionSelected):(u(_)||B&&u(B))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:y}}function SU(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 xU(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"),b=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}),w=i.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${y.value} ${F["aria-labelledby"]}`:y.value,b.value&&F["aria-label"]&&(F["aria-label"]=`${b.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:w,ariaLabel:b,ariaAssist:y,ariaControls:g,ariaPlaceholder:_,ariaMultiselectable:B,ariaActiveDescendant:v,ariaOptionId:C,ariaOptionLabel:S,ariaGroupId:k,ariaGroupLabel:T,ariaTagLabel:U}}function FU(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 IU(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 IU(e,t,[FU,gU,vU,_U,mU,pU,CU,wU,SU,bU,EU,kU,xU])}};const UU=["id","dir"],QU=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],TU=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],DU=["onKeyup","aria-label"],LU=["onClick"],OU=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],MU=["innerHTML"],NU=["id"],PU=["id","aria-label","aria-selected"],HU=["data-pointed","onMouseenter","onClick"],RU=["innerHTML"],VU=["aria-label"],KU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],$U=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],WU=["innerHTML"],GU=["innerHTML"],zU=["value"],jU=["name","value"],YU=["name","value"],qU=["id"];function XU(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,TU)):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,LU)):i.createCommentVNode("v-if",!0)],42,DU))])),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,OU)):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,MU)]):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,QU),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,RU)])],42,HU)),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,KU))),128))],10,VU)],10,PU))),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,$U))),128))],10,NU),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,WU)]):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,GU)]):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,zU)):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,jU)):(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,YU))),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,qU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(e.classList.spacer)},null,2)],42,UU)}Vt.render=XU;Vt.__file="src/Multiselect.vue";const JU={class:"search-bar"},ZU=i.defineComponent({__name:"SearchBar",setup(e){const{t}=Ae(),n=i.ref(""),r=cs.useRouter();function a(u,d,f){f.clear(),f.search=n.value,r.push(d.link)}function A(u){n.value=u}async function s(u){return u===null?[{label:t("general.cards"),options:o("test")},{label:t("general.players"),options:await c("test")}]:[{label:t("general.cards"),options:o(u)},{label:t("general.players"),options:await c(u)}]}function o(u){const d=new RegExp(u,"i"),f=new RegExp(`^${u}`,"i");return Ag().cardJson.filter(p=>!!p.name.match(d)||!!p.description.match(d)||!!p.descriptionRaw.match(d)).sort((p,m)=>p.name.localeCompare(m.name)).sort((p,m)=>p.cost-m.cost).sort((p,m)=>l(p.collectible,m.collectible)).sort((p,m)=>l(!!p.name.match(d),!!m.name.match(d))).sort((p,m)=>l(f.test(p.name),f.test(m.name))).slice(0,5).map(p=>({type:"card",link:`/test/card/${p.cardCode}`,card:p}))}function l(u,d){return u===d?0:u?-1:1}async function c(u){return[{type:"player",cardCode:"01IO001",color:"var(--color-background-2-rgb)",link:`/test/player/${u}`,name:u,rank:1},{type:"player",cardCode:"01IO002",color:"255, 255, 255",link:`/test/player/${u}2`,name:u,rank:2},{type:"player",color:"0, 0, 0",link:`/test/player/${u}3`,name:u,rank:3},{type:"player",link:`/test/player/${u}4`,name:u,rank:4},{type:"player",link:`/test/player/${u}5`,name:u}]}return(u,d)=>(i.openBlock(),i.createElementBlock("div",JU,[i.createVNode(i.unref(Vt),{placeholder:"Search Cards or Players","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:async f=>await s(f),onOpen:d[0]||(d[0]=f=>{f.noOptions&&f.resolveOptions()}),onSearchChange:A,onSelect:a},{option:i.withCtx(({option:f})=>[f.type==="card"?(i.openBlock(),i.createBlock(dn,{key:`card-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":f.card,"router-link":""},null,8,["card-prop"])):(i.openBlock(),i.createBlock(dn,{key:`player-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":f.cardCode,color:f.color,name:f.name,"mana-number":f.rank,"router-link":""},null,8,["card-code-prop","color","name","mana-number"]))]),_:1},8,["options"])]))}});const zu=M(ZU,[["__scopeId","data-v-0eebdb8d"]]),eQ={class:"social-links"},tQ=i.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",eQ,[i.createVNode(i.unref(Te),{class:"icon",icon:"fa-brands fa-discord"}),i.createVNode(i.unref(Te),{class:"icon",icon:"fa-brands fa-twitter"})]))}});const mg=M(tQ,[["__scopeId","data-v-5517438c"]]),nQ={showModal:{type:Boolean,required:!0,default:!1}},rQ=["onClick"],aQ=i.defineComponent({__name:"ModalItem",props:nQ,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=i.ref(null);function a(){t("update:showModal",!1)}return 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,rQ)):i.createCommentVNode("",!0)}});const RA=M(aQ,[["__scopeId","data-v-e2241387"]]),AQ={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},sQ={class:"filter"},iQ={key:0,class:"top"},oQ={key:0,class:"title"},lQ=i.defineComponent({__name:"SidePanelSectionPane",props:AQ,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",sQ,[n.title||A.filterArray?(i.openBlock(),i.createElementBlock("div",iQ,[n.title?(i.openBlock(),i.createElementBlock("h2",oQ,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(lQ,[["__scopeId","data-v-741cceed"]]),cQ={filterArray:{type:Array,required:!0,default:[]}},uQ=["placeholder"],dQ=i.defineComponent({__name:"FilterSampleSize",props:cQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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,uQ),[[i.vModelText,A.value]])]),_:1},8,["filter-array","title"]))}});const qs=M(dQ,[["__scopeId","data-v-d66d5f9d"]]),fQ={filterArray:{type:Array,required:!0,default:[]}},hQ={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},pQ=["selected"],gQ={class:"checkbox-name"},mQ=i.defineComponent({__name:"CheckboxItem",props:hQ,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",gQ,i.toDisplayString(n.prompt),1)],8,pQ))}});const tn=M(mQ,[["__scopeId","data-v-a4c6109c"]]),vQ={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),yQ={class:"toggle-switch"},wQ=BQ(()=>i.createElementVNode("div",{class:"selection"},null,-1)),bQ=[wQ],_Q=["onClick"],CQ={class:"option flex-center"},EQ={class:"option-text"},kQ=i.defineComponent({__name:"ToggleSwitch",props:vQ,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",yQ,[i.withDirectives(i.createElementVNode("div",{class:"selection-container",style:i.normalizeStyle(r.value)},bQ,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",CQ,[i.createElementVNode("h1",EQ,i.toDisplayString(l),1)])],12,_Q))),128))]))}});const ju=M(kQ,[["__scopeId","data-v-d5d9745a"]]),SQ={class:"checkboxes-container"},xQ=i.defineComponent({__name:"FilterRanks",props:fQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",SQ,[(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(ju,{"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 hb=M(xQ,[["__scopeId","data-v-af7bc2a0"]]),FQ={filterArray:{type:Array,required:!0,default:[]}},IQ={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},UQ=["selected"],QQ={class:"prompt"},TQ=i.defineComponent({__name:"CheckboxItemManaCost",props:IQ,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(Go),i.createElementVNode("div",QQ,i.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,UQ))}});const nu=M(TQ,[["__scopeId","data-v-2c74c2ed"]]),DQ={class:"checkbox-rows-container"},LQ={class:"top-row checkbox-items-container"},OQ={class:"bottom-row checkbox-items-container"},MQ=i.defineComponent({__name:"FilterManaCost",props:FQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",DQ,[i.createElementVNode("div",LQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),u=>(i.openBlock(),i.createBlock(nu,{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",OQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(A),u=>(i.openBlock(),i.createBlock(nu,{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(MQ,[["__scopeId","data-v-a94d786a"]]),NQ={filterArray:{type:Array,required:!0,default:[]}},PQ={class:"checkboxes-container"},Bg=i.defineComponent({__name:"FilterRarities",props:NQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",PQ,[(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"]))}}),HQ={filterArray:{type:Array,required:!0,default:[]}},RQ={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},VQ=["src"],KQ={class:"multiselect-tag-remove"},$Q=["onMousedown"],WQ=["src"],yg=i.defineComponent({__name:"FilterSets",props:HQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",RQ,[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,VQ),i.createElementVNode("span",KQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(u=>c(l,u),["prevent"])},null,40,$Q)])])]),option:i.withCtx(({option:l})=>[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,WQ),i.createTextVNode(" "+i.toDisplayString(l.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),GQ={filterArray:{type:Array,required:!0,default:[]}},zQ={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},jQ=["src"],YQ={class:"multiselect-tag-remove"},qQ=["onMousedown"],XQ=["src"],wg=i.defineComponent({__name:"FilterKeywords",props:GQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",zQ,[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,jQ),i.createElementVNode("span",YQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(d=>u(c,d),["prevent"])},null,40,qQ)])])]),option:i.withCtx(({option:c})=>[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,XQ),i.createTextVNode(" "+i.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),JQ={filterArray:{type:Array,required:!0,default:[]}},ZQ={class:"checkboxes-container"},Xs=i.defineComponent({__name:"FilterServers",props:JQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",ZQ,[(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"]))}}),eT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},tT={class:"checkboxes-container"},nT=i.defineComponent({__name:"FilterTime",props:eT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",tT,[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 VA=M(nT,[["__scopeId","data-v-78ab671a"]]),rT={filterArray:{type:Array,required:!0,default:[]}},aT={cardCodes:{type:Array,required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},AT=i.defineComponent({__name:"CardMultiselect",props:aT,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.ref(n.cardCodes),A=i.computed(()=>{let s=Ag().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(AT,[["__scopeId","data-v-968634df"]]),Yu=i.defineComponent({__name:"FilterCardCodes",props:rT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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"]))}}),sT={filterArray:{type:Array,required:!0,default:[]}},iT={class:"checkboxes-container"},oT=i.defineComponent({__name:"FilterRegions",props:sT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.reactive(n.filterArray),A=i.ref([]);A.value.push(...a.filter(l=>co(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++)co(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",iT,[(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 zo=M(oT,[["__scopeId","data-v-c93a9e90"]]),lT={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},cT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},uT={class:"checkboxes-container"},dT=i.defineComponent({__name:"FilterFormat",props:cT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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!==Rr.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",uT,[(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(dT,[["__scopeId","data-v-22de9b40"]]),fT={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},Cg=i.defineComponent({__name:"FilterQueues",props:fT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(k2).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)}}),hT={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},pT={class:"filter"},gT={key:0,class:"top"},mT=i.defineComponent({__name:"SidePanel",props:hT,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",pT,[n.showClearAll&&n.filterObject?(i.openBlock(),i.createElementBlock("div",gT,[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 Js=M(mT,[["__scopeId","data-v-6a93fcc1"]]),pb=i.defineComponent({__name:"FilterDecks",props:lT,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(Js,{"filter-object":n.filters,"onClear:filterObject":A},{default:i.withCtx(()=>[i.createVNode(zo,{"filter-array":r.regionFilters,"onUpdate:filterArray":o[0]||(o[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),i.createVNode(Yu,{"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(qs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":o[4]||(o[4]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),i.createVNode(VA,{"filter-array":r.timeFilters,"onUpdate:filterArray":o[5]||(o[5]=l=>r.timeFilters=l)},null,8,["filter-array"]),i.createVNode(Xs,{"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"]))}}),vT={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"}},yT=["placeholder"],wT=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,yT),[[i.vModelText,a.value]])]),_:1},8,["filter-array","title"]))}});const ru=M(wT,[["__scopeId","data-v-e9c34cae"]]),gb=i.defineComponent({__name:"FilterProfile",props:vT,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(Js,{"filter-object":n.filters,"onClear:filterObject":s},{default:i.withCtx(()=>[i.createVNode(zo,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),i.createVNode(Yu,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),i.createVNode(ru,{"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(ru,{"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(qs,{"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(VA,{"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"]))}}),bT={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},_T={class:"advanced-filter-item"},CT=["value"],ET=i.defineComponent({__name:"AdvancedFilterItem",props:bT,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",_T,[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,CT)]))}});const Eg=M(ET,[["__scopeId","data-v-eb2d535d"]]),kT={filterValue:{type:Array,required:!0,default:[]}},ST=i.defineComponent({__name:"FilterAdvanced",props:kT,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(ST,[["__scopeId","data-v-6c23ee29"]]),xT={filterArray:{type:Array,required:!0,default:[]}},FT={class:"checkboxes-container"},Sg=i.defineComponent({__name:"FilterTypes",props:xT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",FT,[(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"]))}}),IT={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[]}}},mb=i.defineComponent({__name:"FilterCards",props:IT,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(Js,{"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(zo,{"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(Xs),{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(VA,{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"]))}}),UT={regionRef:{type:String,required:!0,default:"Ionia"}},QT={text:{type:String,required:!0,default:""}},TT=["innerHTML"],DT=i.defineComponent({__name:"TippyText",props:QT,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,TT))}});const qu=M(DT,[["__scopeId","data-v-715107fe"]]),LT={class:"region-item"},OT=["alt","src"],MT=i.defineComponent({__name:"RegionItem",props:UT,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",LT,[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,OT),i.createElementVNode("div",{ref_key:"regionTippy",ref:r},[i.createVNode(qu,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const jo=M(MT,[["__scopeId","data-v-3d756f50"]]),NT={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},PT={class:"regions-line"},HT={key:0,class:"describe-regions"},RT={class:"lines"},VT=i.defineComponent({__name:"RegionsLine",props:NT,setup(e){const t=e,{t:n}=Ae(),r=i.computed(()=>t.deck?t.deck:St(t.deckCode)),a=i.computed(()=>t.cards?t.cards:nn(r.value)),A=i.computed(()=>{const o={};for(const l of Du(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",PT,[t.describeRegions?(i.openBlock(),i.createElementBlock("div",HT,[(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(jo,{"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",RT,[(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(VT,[["__scopeId","data-v-f1f94f8b"]]),KT={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}},$T={class:"cards-row-background-wrapper"},WT={class:"cards-row-background"},GT={class:"cards-row wrapper"},zT={key:0,class:"column-content"},jT={key:2,class:"column-content"},YT={key:3,class:"column-content"},qT={key:5,class:"column-content"},XT={key:7,class:"column-content"},JT={key:8,class:"column-content"},ZT=i.defineComponent({__name:"CardsRow",props:KT,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",$T,[i.createElementVNode("div",WT,[(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",GT,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(dn,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!0,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",zT,i.toDisplayString(i.unref(Qe)(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(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,2,3)+"%"),5)):i.createCommentVNode("",!0),t.toggledStats.inclusion?(i.openBlock(),i.createElementBlock("div",jT,i.toDisplayString(i.unref(Qe)(t.inclusion*100,2,3)+"%"),1)):i.createCommentVNode("",!0),t.toggledStats.avgCopies?(i.openBlock(),i.createElementBlock("div",YT,i.toDisplayString(i.unref(Qe)(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(Jn)(t.mulliganWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.mulliganWinrate?i.unref(Qe)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(i.openBlock(),i.createElementBlock("div",qT,i.toDisplayString(t.keptInMulligan?i.unref(Qe)(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(Jn)(t.drawnWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.drawnWinrate?i.unref(Qe)(t.drawnWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.turnPlayed?(i.openBlock(),i.createElementBlock("div",XT,i.toDisplayString(t.turnPlayed?i.unref(Qe)(t.turnPlayed,2,3):"-"),1)):i.createCommentVNode("",!0),t.toggledStats.turnsHeld?(i.openBlock(),i.createElementBlock("div",JT,i.toDisplayString(t.turnsHeld?i.unref(Qe)(t.turnsHeld,2,3):"-"),1)):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Fg=M(ZT,[["__scopeId","data-v-69ecee4e"]]),eD={cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e}})},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}}};var be=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(be||{});const tD={headingItems:{type:Array,required:!0,default:[]}},nD=e=>(i.pushScopeId("data-v-43d2a2a5"),e=e(),i.popScopeId(),e),rD={class:"table-wrapper"},aD={class:"table no-scrollbar"},AD=nD(()=>i.createElementVNode("div",{class:"heading-background-outer"},[i.createElementVNode("div",{class:"heading-background-absolute"}),i.createElementVNode("div",{class:"heading-background-inner"})],-1)),sD={class:"heading wrapper"},iD=["onClick"],oD={class:"sort-icons"},lD=i.defineComponent({__name:"LargeTable",props:tD,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",rD,[i.createElementVNode("div",aD,[AD,i.createElementVNode("div",sD,[(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",oD,[i.createVNode(i.unref(Te),{icon:"sort-up",class:"sort-icon"}),i.createVNode(i.unref(Te),{icon:"sort-down",class:"sort-icon"})])],10,iD))),128))]),i.renderSlot(a.$slots,"default",{},void 0,!0)])]))}});const eA=M(lD,[["__scopeId","data-v-43d2a2a5"]]);function Zs(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 cD(t),r===be.NEITHER?n.sortDirection=be.DOWN:r===be.DOWN?n.sortDirection=be.UP:n.sortDirection=be.DOWN,n}function cD(e){e.value.forEach(t=>{t.sortDirection!==be.NOT_SORTABLE&&(t.sortDirection=be.NEITHER)})}const uD=i.defineComponent({__name:"CardsTable",props:eD,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(c,s);u&&t("sort-updated",u)}return(c,u)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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":n.cardRouterLinkCallback(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,["heading-items","style"]))}});const vb=M(uD,[["__scopeId","data-v-a11686fb"]]),dD={regions:{type:Array,required:!0,default:[]}},fD={class:"deck-highlight-regions"},hD=i.defineComponent({__name:"DeckHighlightRegions",props:dD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",fD,[(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(jo,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Yo=M(hD,[["__scopeId","data-v-d28f95f4"]]),pD={},gD={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},mD=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),vD=[mD];function BD(e,t){return i.openBlock(),i.createElementBlock("svg",gD,vD)}const Ig=M(pD,[["render",BD]]),yD={deck:{type:Object,required:!0,default:{}}},wD=e=>(i.pushScopeId("data-v-25f680e9"),e=e(),i.popScopeId(),e),bD={class:"gems-text"},_D={class:"gems-cost-title"},CD={class:"gems-cost-value"},ED=wD(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),kD={class:"gems-cost-title"},SD={class:"gems-cost-value"},xD=i.defineComponent({__name:"GemsCost",props:yD,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null),a=i.ref(null),A=i.computed(()=>Gc(t.deck,!1)),s=i.computed(()=>Gc(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(Ig,{class:"shards-icon"}),i.createElementVNode("div",bD,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",_D,i.toDisplayString(i.unref(n)("deck.personalCost")),1),i.createElementVNode("div",CD,i.toDisplayString((u=s.value)==null?void 0:u.toLocaleString()),1),ED],64)):i.createCommentVNode("",!0),i.createElementVNode("div",kD,i.toDisplayString(i.unref(n)("deck.originalCost")),1),i.createElementVNode("div",SD,i.toDisplayString((d=A.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Ug=M(xD,[["__scopeId","data-v-25f680e9"]]),FD={class:"language-selection"},ID=["value"],UD=i.defineComponent({__name:"LanguageSelection",setup(e){const t=i.ref(!1);i.onUnmounted(()=>{t.value=!1});function n(){t.value=!0}return(r,a)=>(i.openBlock(),i.createElementBlock("div",FD,[i.createVNode(i.unref(Te),{ref:"languageIcon",icon:"language",class:"icon",onClick:n},null,512),i.createVNode(RA,{"show-modal":t.value,"onUpdate:showModal":a[1]||(a[1]=A=>t.value=A)},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("select",{"onUpdate:modelValue":a[0]||(a[0]=A=>r.$i18n.locale=A)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.$i18n.availableLocales,A=>(i.openBlock(),i.createElementBlock("option",{key:`locale-${A}`,value:A},i.toDisplayString(A),9,ID))),128))],512),[[i.vModelSelect,r.$i18n.locale]])]),_:1},8,["show-modal"])]))}});const Qg=M(UD,[["__scopeId","data-v-d5d393a4"]]),QD={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},Bb={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}},TD={class:"circle-card-item"},DD=["alt","src"],LD=i.defineComponent({__name:"CircleCardItem",props:Bb,setup(e){const t=e,n=Po(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":hA(n.value,t.regions));return i.onMounted(()=>{t.ignoreCardItem||At(r.value,{content:a.value,placement:"right",arrow:!0,touch:"hold",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",TD,[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,DD)]}),_:1},8,["to"]),i.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&i.unref(n)?(i.openBlock(),i.createBlock($a,{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 tA=M(LD,[["__scopeId","data-v-b1598a69"]]),OD={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},MD={class:"deck-highlight-cards"},ND=i.defineComponent({__name:"DeckHighlightCards",props:OD,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",MD,[(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(tA,{class:"circle-card-item","card-prop":A,regions:t.regions,"router-link":t.cardRouterLinkCallback(A)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const qo=M(ND,[["__scopeId","data-v-081b6998"]]),PD=i.defineComponent({__name:"ArchetypeSidePanelHighlight",props:QD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createBlock(mt,{class:"archetype-side-panel-highlight"},{default:i.withCtx(()=>[i.createVNode(Yo,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),i.createVNode(qo,{class:i.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Xu=M(PD,[["__scopeId","data-v-ff538f6f"]]),HD={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},RD={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
810
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var JI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},db={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,b=0,w=0;if(u(v))for(B=[],w=v.length;b<w;b++)B.push(n(g,v[b],_));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,b){return _(B,g,b)}},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})(JI)})(db);var ZI=db.exports,eU=["class","style"];function tU(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=ZI.camelize(n.slice(0,r)),A=n.slice(r+1).trim();return t[a]=A,t},{})}function nU(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=nU(u);break;case"style":l.style=tU(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var A=n.style,s=A===void 0?{}:A,o=zI(n,eU);return i.h(e.tag,Yn(Yn(Yn({},t),{},{class:a.class,style:Yn(Yn({},a.style),s)},a.attrs),o),r)}var fb=!1;try{fb=process.env.NODE_ENV==="production"}catch{}function rU(){if(!fb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Gi(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?sn({},e,t):{}}function aU(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"},sn(t,"fa-".concat(e.size),e.size!==null),sn(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),sn(t,"fa-pull-".concat(e.pull),e.pull!==null),sn(t,"fa-swap-opacity",e.swapOpacity),sn(t,"fa-bounce",e.bounce),sn(t,"fa-shake",e.shake),sn(t,"fa-beat",e.beat),sn(t,"fa-fade",e.fade),sn(t,"fa-beat-fade",e.beatFade),sn(t,"fa-flash",e.flash),sn(t,"fa-spin-pulse",e.spinPulse),sn(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 Av(e){if(e&&tu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xc.icon)return Xc.icon(e);if(e===null)return null;if(tu(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 Te=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 Av(t.icon)}),A=i.computed(function(){return Gi("classes",aU(t))}),s=i.computed(function(){return Gi("transform",typeof t.transform=="string"?Xc.transform(t.transform):t.transform)}),o=i.computed(function(){return Gi("mask",Av(t.mask))}),l=i.computed(function(){return dF(a.value,Yn(Yn(Yn(Yn({},A.value),s.value),o.value),{},{symbol:t.symbol,title:t.title}))});i.watch(l,function(u){if(!u)return rU("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=Iw.familyPrefix,A=i.computed(function(){return["".concat(a,"-layers")].concat(Fh(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=Iw.familyPrefix,A=i.computed(function(){return Gi("classes",[].concat(Fh(t.counter?["".concat(a,"-layers-counter")]:[]),Fh(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=i.computed(function(){return Gi("transform",typeof t.transform=="string"?Xc.transform(t.transform):t.transform)}),o=i.computed(function(){var c=fF(t.value.toString(),Yn(Yn({},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 AU={class:"card-slice"},sU={key:0,class:"mana-hexagon"},iU={class:"mana-number"},oU={class:"card-name"},lU={key:1,class:"quantity"},cU={class:"quantity-background"},uU={class:"num-quantity"},dU={class:"plus-minus-content"},fU={class:"plus-minus-quantity"},hU=i.defineComponent({__name:"CardSliceItem",props:KI,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,r=Po(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=hA(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",AU,[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",sU,[i.createVNode(Go,{class:"hexagon-icon"}),i.createElementVNode("div",iU,i.toDisplayString(n.manaNumber??((p=i.unref(r))==null?void 0:p.cost)),1)])):i.createCommentVNode("",!0),i.createElementVNode("div",oU,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",lU,[i.createElementVNode("div",cU,[i.createElementVNode("p",uU,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",dU,[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(Te),{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(Te),{icon:"plus",class:"icon"})]),i.createElementVNode("div",fU,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($a,{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 dn=M(hU,[["__scopeId","data-v-a1e91ff3"]]);function lr(e){return[null,void 0].indexOf(e)!==-1}function pU(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||lr(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>lr(d)?A.value==="single"?{}:[]:d;return{update:l}}function gU(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 mU(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 vU(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 lf(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 yU(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function wU(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:b,valueProp:w,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,Un=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),vn=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=>{Kd(xe[K.value]).forEach(Bt=>{G.push(Object.assign({},Bt,xe[ce.value]?{[ce.value]:!0}:{}))})}),G}else{let I=Kd(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()),oa.value.length&&(I=oa.value.concat(I)),Vd(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 oa.value.length&&(I[0]&&I[0].__CREATE__?I[0][K.value]=[...oa.value,...I[0][K.value]]:I=[{[k.value]:" ",[K.value]:[...oa.value],__CREATE__:!0}].concat(I)),I}),Qn=i.computed(()=>{if(!Y.value)return[];let I=ar.value;return nE((I||[]).map((G,xe)=>{const Bt=Kd(G[K.value]);return{...G,index:xe,group:!0,[K.value]:Vd(Bt,!1).map(li=>Object.assign({},li,G[ce.value]?{[ce.value]:!0}:{})),__VISIBLE__:Vd(Bt).map(li=>Object.assign({},li,G[ce.value]?{[ce.value]:!0}:{}))}}))}),Tn=i.computed(()=>{switch(a.value){case"single":return!lr(ne.value[w.value]);case"multiple":case"tags":return!lr(ne.value)&&ne.value.length>0}}),Gn=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"),si=i.computed(()=>!O.value.length&&!he.value&&!oa.value.length),XA=i.computed(()=>O.value.length>0&&Ze.value.length==0&&(te.value&&Y.value||!Y.value)),oa=i.computed(()=>vn.value===!1||!te.value?[]:Z3(te.value)!==-1?[]:[{[w.value]:te.value,[L.value]:te.value,[u.value]:te.value,__CREATE__:!0}]),L=i.computed(()=>A.value||u.value),re=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=Fr(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=Fr(I)),a.value){case"single":ii();break;case"tags":case"multiple":ot(Array.isArray(I)?ne.value.filter(G=>I.map(xe=>xe[w.value]).indexOf(G[w.value])===-1):ne.value.filter(G=>G[w.value]!=I[w.value]));break}t.emit("deselect",Dt(I),I,fe)},Dt=I=>p.value?I:I[w.value],Xt=I=>{ye(I)},la=(I,G)=>{if(G.button!==0){G.preventDefault();return}Xt(I)},ii=()=>{t.emit("clear",fe),ot(re.value)},Pt=I=>{if(I.group!==void 0)return a.value==="single"?!1:J3(I[K.value])&&I[K.value].length;switch(a.value){case"single":return!lr(ne.value)&&ne.value[w.value]==I[w.value];case"tags":case"multiple":return!lr(ne.value)&&ne.value.map(G=>G[w.value]).indexOf(I[w.value])!==-1}},aA=I=>I[ce.value]===!0,ca=()=>T===void 0||T.value===-1||!Tn.value&&T.value>0?!1:ne.value.length>=T.value,ua=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,ml(G)});return}ml(I)}},ml=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&&da(I),b.value&&Pe(),F.value&&(vt(),E()),I&&Se(I);break;case"multiple":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ca()){t.emit("max",fe);return}I&&(da(I),Se(I)),b.value&&Pe(),o.value&&vt(),F.value&&E();break;case"tags":if(I&&Pt(I)){ye(I),Q.value&&(vt(),E());return}if(ca()){t.emit("max",fe);return}I&&da(I),b.value&&Pe(),I&&Se(I),o.value&&vt(),F.value&&E();break}F.value||Un()},oi=I=>{if(!(aA(I)||a.value==="single"||!$.value)){switch(a.value){case"multiple":case"tags":X3(I[K.value])?ye(I[K.value]):Se(I[K.value].filter(G=>ne.value.map(xe=>xe[w.value]).indexOf(G[w.value])===-1).filter(G=>!G[ce.value]).filter((G,xe)=>ne.value.length+1+xe<=T.value||T.value===-1));break}F.value&&x()}},da=I=>{Fr(I[w.value])===void 0&&vn.value&&(t.emit("tag",I[w.value],fe),t.emit("option",I[w.value],fe),t.emit("create",I[w.value],fe),$e.value&&tE(I),Pe())},q3=()=>{a.value!=="single"&&Se(Ze.value.filter(I=>!I.disabled&&!Pt(I)))},X3=I=>I.find(G=>!Pt(G)&&!G[ce.value])===void 0,J3=I=>I.find(G=>!Pt(G))===void 0,Fr=I=>O.value[O.value.map(G=>String(G[w.value])).indexOf(String(I))],Z3=(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),eE=I=>["tags","multiple"].indexOf(a.value)!==-1&&o.value&&Pt(I),tE=I=>{W.value.push(I)},nE=I=>oe.value?I.filter(G=>te.value?G.__VISIBLE__.length:G[K.value].length):I.filter(G=>te.value?G.__VISIBLE__.length:!0),Vd=(I,G=!0)=>{let xe=I;if(te.value&&_.value){let Bt=Ee.value;Bt||(Bt=(li,Eoe)=>{let E1=lf(D(li[L.value]),U.value);return me.value?E1.startsWith(lf(te.value,U.value)):E1.indexOf(lf(te.value,U.value))!==-1}),xe=xe.filter(Bt)}return o.value&&G&&(xe=xe.filter(Bt=>!eE(Bt))),xe},Kd=I=>{let G=I;return BU(G)&&(G=Object.keys(G).map(xe=>{let Bt=G[xe];return{[w.value]:xe,[L.value]:Bt,[u.value]:Bt}})),G=G.map(xe=>typeof xe=="object"?xe:{[w.value]:xe,[L.value]:xe,[u.value]:xe}),G},vl=()=>{lr(N.value)||(ne.value=yl(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()})})),$d=()=>{if(Tn.value)if(a.value==="single"){let I=Fr(ne.value[w.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=Fr(ne.value[G][w.value]);if(xe!==void 0){let Bt=xe[u.value];ne.value[G][u.value]=Bt,p.value&&(N.value[G][u.value]=Bt)}})},rE=I=>{Bl(I)},yl=I=>lr(I)?a.value==="single"?{}:[]:p.value?I:a.value==="single"?Fr(I)||(C.value?{[u.value]:I,[w.value]:I,[L.value]:I}:{}):I.filter(G=>!!Fr(G)||C.value).map(G=>Fr(G)||{[u.value]:G,[w.value]:G,[L.value]:G}),C1=()=>{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"&&!lr(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(vl):p.value==!0&&vl():(ie.value=r.value,vl()),y.value>-1&&C1(),i.watch(y,(I,G)=>{Ft.value&&Ft.value(),I>=0&&C1()}),i.watch(N,I=>{if(lr(I)){ot(yl(I),!1);return}switch(a.value){case"single":(p.value?I[w.value]!=ne.value[w.value]:I!=ne.value[w.value])&&ot(yl(I),!1);break;case"multiple":case"tags":yU(p.value?I.map(G=>G[w.value]):I,ne.value.map(G=>G[w.value]))||ot(yl(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||vl(),$d())}),i.watch(u,$d),{pfo:P,fo:Ze,filteredOptions:Ze,hasSelected:Tn,multipleLabelText:Gn,eo:O,extendedOptions:O,eg:et,extendedGroups:et,fg:Qn,filteredGroups:Qn,noOptions:si,noResults:XA,resolving:he,busy:ue,offset:ht,select:Se,deselect:ye,remove:Xt,selectAll:q3,clear:ii,isSelected:Pt,isDisabled:aA,isMax:ca,getOption:Fr,handleOptionClick:ua,handleGroupClick:oi,handleTagRemove:la,refreshOptions:rE,resolveOptions:Bl,refreshLabels:$d}}function bU(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,b=n.isOpen,w=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(w.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__?w.value[0]:C.value[0]:w.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=w.value.map(te=>te[r.value]).indexOf(g.value[r.value])+1;w.value.length<=N&&(N=0),v(w.value[N]||null)}i.nextTick(()=>{ne()})},Ee=()=>{if(g.value===null){let N=w.value[w.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=w.value.map(te=>te[r.value]).indexOf(g.value[r.value])-1;N<0&&(N=w.value.length-1),v(w.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(b,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 _U(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 CU(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 EU(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,b=n.forwardPointer,w=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=[...w.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(),b();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 kU(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 b=[v.option];return l(_)?b.push(c(_)?v.optionSelectedPointed:v.optionPointed):c(_)?b.push(u(_)?v.optionSelectedDisabled:v.optionSelected):(u(_)||B&&u(B))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:y}}function SU(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 xU(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"),b=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}),w=i.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${y.value} ${F["aria-labelledby"]}`:y.value,b.value&&F["aria-label"]&&(F["aria-label"]=`${b.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:w,ariaLabel:b,ariaAssist:y,ariaControls:g,ariaPlaceholder:_,ariaMultiselectable:B,ariaActiveDescendant:v,ariaOptionId:C,ariaOptionLabel:S,ariaGroupId:k,ariaGroupLabel:T,ariaTagLabel:U}}function FU(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 IU(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 IU(e,t,[FU,gU,vU,_U,mU,pU,CU,wU,SU,bU,EU,kU,xU])}};const UU=["id","dir"],QU=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],TU=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],DU=["onKeyup","aria-label"],LU=["onClick"],OU=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],MU=["innerHTML"],NU=["id"],PU=["id","aria-label","aria-selected"],HU=["data-pointed","onMouseenter","onClick"],RU=["innerHTML"],VU=["aria-label"],KU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],$U=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],WU=["innerHTML"],GU=["innerHTML"],zU=["value"],jU=["name","value"],YU=["name","value"],qU=["id"];function XU(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,TU)):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,LU)):i.createCommentVNode("v-if",!0)],42,DU))])),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,OU)):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,MU)]):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,QU),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,RU)])],42,HU)),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,KU))),128))],10,VU)],10,PU))),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,$U))),128))],10,NU),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,WU)]):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,GU)]):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,zU)):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,jU)):(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,YU))),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,qU)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(e.classList.spacer)},null,2)],42,UU)}Vt.render=XU;Vt.__file="src/Multiselect.vue";const JU={class:"search-bar"},ZU=i.defineComponent({__name:"SearchBar",setup(e){const{t}=Ae(),n=i.ref(""),r=cs.useRouter();function a(u,d,f){f.clear(),f.search=n.value,r.push(d.link)}function A(u){n.value=u}async function s(u){return u===null?[{label:t("general.cards"),options:o("test")},{label:t("general.players"),options:await c("test")}]:[{label:t("general.cards"),options:o(u)},{label:t("general.players"),options:await c(u)}]}function o(u){const d=new RegExp(u,"i"),f=new RegExp(`^${u}`,"i");return Ag().cardJson.filter(p=>!!p.name.match(d)||!!p.description.match(d)||!!p.descriptionRaw.match(d)).sort((p,m)=>p.name.localeCompare(m.name)).sort((p,m)=>p.cost-m.cost).sort((p,m)=>l(p.collectible,m.collectible)).sort((p,m)=>l(!!p.name.match(d),!!m.name.match(d))).sort((p,m)=>l(f.test(p.name),f.test(m.name))).slice(0,5).map(p=>({type:"card",link:`/test/card/${p.cardCode}`,card:p}))}function l(u,d){return u===d?0:u?-1:1}async function c(u){return[{type:"player",cardCode:"01IO001",color:"var(--color-background-2-rgb)",link:`/test/player/${u}`,name:u,rank:1},{type:"player",cardCode:"01IO002",color:"255, 255, 255",link:`/test/player/${u}2`,name:u,rank:2},{type:"player",color:"0, 0, 0",link:`/test/player/${u}3`,name:u,rank:3},{type:"player",link:`/test/player/${u}4`,name:u,rank:4},{type:"player",link:`/test/player/${u}5`,name:u}]}return(u,d)=>(i.openBlock(),i.createElementBlock("div",JU,[i.createVNode(i.unref(Vt),{placeholder:"Search Cards or Players","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:async f=>await s(f),onOpen:d[0]||(d[0]=f=>{f.noOptions&&f.resolveOptions()}),onSearchChange:A,onSelect:a},{option:i.withCtx(({option:f})=>[f.type==="card"?(i.openBlock(),i.createBlock(dn,{key:`card-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":f.card,"router-link":""},null,8,["card-prop"])):(i.openBlock(),i.createBlock(dn,{key:`player-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":f.cardCode,color:f.color,name:f.name,"mana-number":f.rank,"router-link":""},null,8,["card-code-prop","color","name","mana-number"]))]),_:1},8,["options"])]))}});const zu=M(ZU,[["__scopeId","data-v-0eebdb8d"]]),eQ={class:"social-links"},tQ=i.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",eQ,[i.createVNode(i.unref(Te),{class:"icon",icon:"fa-brands fa-discord"}),i.createVNode(i.unref(Te),{class:"icon",icon:"fa-brands fa-twitter"})]))}});const mg=M(tQ,[["__scopeId","data-v-5517438c"]]),nQ={showModal:{type:Boolean,required:!0,default:!1}},rQ=["onClick"],aQ=i.defineComponent({__name:"ModalItem",props:nQ,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=i.ref(null);function a(){t("update:showModal",!1)}return i.onBeforeUnmount(()=>{t("update:showModal",!1)}),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,rQ)):i.createCommentVNode("",!0)}});const RA=M(aQ,[["__scopeId","data-v-0825dcc8"]]),AQ={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},sQ={class:"filter"},iQ={key:0,class:"top"},oQ={key:0,class:"title"},lQ=i.defineComponent({__name:"SidePanelSectionPane",props:AQ,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",sQ,[n.title||A.filterArray?(i.openBlock(),i.createElementBlock("div",iQ,[n.title?(i.openBlock(),i.createElementBlock("h2",oQ,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(lQ,[["__scopeId","data-v-741cceed"]]),cQ={filterArray:{type:Array,required:!0,default:[]}},uQ=["placeholder"],dQ=i.defineComponent({__name:"FilterSampleSize",props:cQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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,uQ),[[i.vModelText,A.value]])]),_:1},8,["filter-array","title"]))}});const qs=M(dQ,[["__scopeId","data-v-d66d5f9d"]]),fQ={filterArray:{type:Array,required:!0,default:[]}},hQ={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},pQ=["selected"],gQ={class:"checkbox-name"},mQ=i.defineComponent({__name:"CheckboxItem",props:hQ,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",gQ,i.toDisplayString(n.prompt),1)],8,pQ))}});const tn=M(mQ,[["__scopeId","data-v-a4c6109c"]]),vQ={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),yQ={class:"toggle-switch"},wQ=BQ(()=>i.createElementVNode("div",{class:"selection"},null,-1)),bQ=[wQ],_Q=["onClick"],CQ={class:"option flex-center"},EQ={class:"option-text"},kQ=i.defineComponent({__name:"ToggleSwitch",props:vQ,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",yQ,[i.withDirectives(i.createElementVNode("div",{class:"selection-container",style:i.normalizeStyle(r.value)},bQ,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",CQ,[i.createElementVNode("h1",EQ,i.toDisplayString(l),1)])],12,_Q))),128))]))}});const ju=M(kQ,[["__scopeId","data-v-d5d9745a"]]),SQ={class:"checkboxes-container"},xQ=i.defineComponent({__name:"FilterRanks",props:fQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",SQ,[(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(ju,{"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 hb=M(xQ,[["__scopeId","data-v-af7bc2a0"]]),FQ={filterArray:{type:Array,required:!0,default:[]}},IQ={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},UQ=["selected"],QQ={class:"prompt"},TQ=i.defineComponent({__name:"CheckboxItemManaCost",props:IQ,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(Go),i.createElementVNode("div",QQ,i.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,UQ))}});const nu=M(TQ,[["__scopeId","data-v-2c74c2ed"]]),DQ={class:"checkbox-rows-container"},LQ={class:"top-row checkbox-items-container"},OQ={class:"bottom-row checkbox-items-container"},MQ=i.defineComponent({__name:"FilterManaCost",props:FQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",DQ,[i.createElementVNode("div",LQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),u=>(i.openBlock(),i.createBlock(nu,{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",OQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(A),u=>(i.openBlock(),i.createBlock(nu,{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(MQ,[["__scopeId","data-v-a94d786a"]]),NQ={filterArray:{type:Array,required:!0,default:[]}},PQ={class:"checkboxes-container"},Bg=i.defineComponent({__name:"FilterRarities",props:NQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",PQ,[(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"]))}}),HQ={filterArray:{type:Array,required:!0,default:[]}},RQ={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},VQ=["src"],KQ={class:"multiselect-tag-remove"},$Q=["onMousedown"],WQ=["src"],yg=i.defineComponent({__name:"FilterSets",props:HQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",RQ,[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,VQ),i.createElementVNode("span",KQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(u=>c(l,u),["prevent"])},null,40,$Q)])])]),option:i.withCtx(({option:l})=>[i.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,WQ),i.createTextVNode(" "+i.toDisplayString(l.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),GQ={filterArray:{type:Array,required:!0,default:[]}},zQ={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},jQ=["src"],YQ={class:"multiselect-tag-remove"},qQ=["onMousedown"],XQ=["src"],wg=i.defineComponent({__name:"FilterKeywords",props:GQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",zQ,[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,jQ),i.createElementVNode("span",YQ,[i.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:i.withModifiers(d=>u(c,d),["prevent"])},null,40,qQ)])])]),option:i.withCtx(({option:c})=>[i.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,XQ),i.createTextVNode(" "+i.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),JQ={filterArray:{type:Array,required:!0,default:[]}},ZQ={class:"checkboxes-container"},Xs=i.defineComponent({__name:"FilterServers",props:JQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",ZQ,[(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"]))}}),eT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},tT={class:"checkboxes-container"},nT=i.defineComponent({__name:"FilterTime",props:eT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",tT,[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 VA=M(nT,[["__scopeId","data-v-78ab671a"]]),rT={filterArray:{type:Array,required:!0,default:[]}},aT={cardCodes:{type:Array,required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},AT=i.defineComponent({__name:"CardMultiselect",props:aT,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.ref(n.cardCodes),A=i.computed(()=>{let s=Ag().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(AT,[["__scopeId","data-v-968634df"]]),Yu=i.defineComponent({__name:"FilterCardCodes",props:rT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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"]))}}),sT={filterArray:{type:Array,required:!0,default:[]}},iT={class:"checkboxes-container"},oT=i.defineComponent({__name:"FilterRegions",props:sT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.reactive(n.filterArray),A=i.ref([]);A.value.push(...a.filter(l=>co(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++)co(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",iT,[(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 zo=M(oT,[["__scopeId","data-v-c93a9e90"]]),lT={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},cT={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},uT={class:"checkboxes-container"},dT=i.defineComponent({__name:"FilterFormat",props:cT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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!==Rr.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",uT,[(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(dT,[["__scopeId","data-v-22de9b40"]]),fT={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},Cg=i.defineComponent({__name:"FilterQueues",props:fT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(k2).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)}}),hT={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},pT={class:"filter"},gT={key:0,class:"top"},mT=i.defineComponent({__name:"SidePanel",props:hT,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",pT,[n.showClearAll&&n.filterObject?(i.openBlock(),i.createElementBlock("div",gT,[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 Js=M(mT,[["__scopeId","data-v-6a93fcc1"]]),pb=i.defineComponent({__name:"FilterDecks",props:lT,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(Js,{"filter-object":n.filters,"onClear:filterObject":A},{default:i.withCtx(()=>[i.createVNode(zo,{"filter-array":r.regionFilters,"onUpdate:filterArray":o[0]||(o[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),i.createVNode(Yu,{"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(qs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":o[4]||(o[4]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),i.createVNode(VA,{"filter-array":r.timeFilters,"onUpdate:filterArray":o[5]||(o[5]=l=>r.timeFilters=l)},null,8,["filter-array"]),i.createVNode(Xs,{"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"]))}}),vT={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"}},yT=["placeholder"],wT=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,yT),[[i.vModelText,a.value]])]),_:1},8,["filter-array","title"]))}});const ru=M(wT,[["__scopeId","data-v-e9c34cae"]]),gb=i.defineComponent({__name:"FilterProfile",props:vT,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(Js,{"filter-object":n.filters,"onClear:filterObject":s},{default:i.withCtx(()=>[i.createVNode(zo,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),i.createVNode(Yu,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),i.createVNode(ru,{"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(ru,{"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(qs,{"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(VA,{"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"]))}}),bT={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},_T={class:"advanced-filter-item"},CT=["value"],ET=i.defineComponent({__name:"AdvancedFilterItem",props:bT,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",_T,[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,CT)]))}});const Eg=M(ET,[["__scopeId","data-v-eb2d535d"]]),kT={filterValue:{type:Array,required:!0,default:[]}},ST=i.defineComponent({__name:"FilterAdvanced",props:kT,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(ST,[["__scopeId","data-v-6c23ee29"]]),xT={filterArray:{type:Array,required:!0,default:[]}},FT={class:"checkboxes-container"},Sg=i.defineComponent({__name:"FilterTypes",props:xT,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",FT,[(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"]))}}),IT={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[]}}},mb=i.defineComponent({__name:"FilterCards",props:IT,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(Js,{"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(zo,{"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(Xs),{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(VA,{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"]))}}),UT={regionRef:{type:String,required:!0,default:"Ionia"}},QT={text:{type:String,required:!0,default:""}},TT=["innerHTML"],DT=i.defineComponent({__name:"TippyText",props:QT,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,TT))}});const qu=M(DT,[["__scopeId","data-v-715107fe"]]),LT={class:"region-item"},OT=["alt","src"],MT=i.defineComponent({__name:"RegionItem",props:UT,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",LT,[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,OT),i.createElementVNode("div",{ref_key:"regionTippy",ref:r},[i.createVNode(qu,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const jo=M(MT,[["__scopeId","data-v-3d756f50"]]),NT={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},PT={class:"regions-line"},HT={key:0,class:"describe-regions"},RT={class:"lines"},VT=i.defineComponent({__name:"RegionsLine",props:NT,setup(e){const t=e,{t:n}=Ae(),r=i.computed(()=>t.deck?t.deck:St(t.deckCode)),a=i.computed(()=>t.cards?t.cards:nn(r.value)),A=i.computed(()=>{const o={};for(const l of Du(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",PT,[t.describeRegions?(i.openBlock(),i.createElementBlock("div",HT,[(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(jo,{"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",RT,[(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(VT,[["__scopeId","data-v-f1f94f8b"]]),KT={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}},$T={class:"cards-row-background-wrapper"},WT={class:"cards-row-background"},GT={class:"cards-row wrapper"},zT={key:0,class:"column-content"},jT={key:2,class:"column-content"},YT={key:3,class:"column-content"},qT={key:5,class:"column-content"},XT={key:7,class:"column-content"},JT={key:8,class:"column-content"},ZT=i.defineComponent({__name:"CardsRow",props:KT,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",$T,[i.createElementVNode("div",WT,[(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",GT,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(dn,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!0,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",zT,i.toDisplayString(i.unref(Qe)(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(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,2,3)+"%"),5)):i.createCommentVNode("",!0),t.toggledStats.inclusion?(i.openBlock(),i.createElementBlock("div",jT,i.toDisplayString(i.unref(Qe)(t.inclusion*100,2,3)+"%"),1)):i.createCommentVNode("",!0),t.toggledStats.avgCopies?(i.openBlock(),i.createElementBlock("div",YT,i.toDisplayString(i.unref(Qe)(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(Jn)(t.mulliganWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.mulliganWinrate?i.unref(Qe)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(i.openBlock(),i.createElementBlock("div",qT,i.toDisplayString(t.keptInMulligan?i.unref(Qe)(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(Jn)(t.drawnWinrate,t.wins/t.matches)})`})},i.toDisplayString(t.drawnWinrate?i.unref(Qe)(t.drawnWinrate*100,2,3)+"%":"-"),5)):i.createCommentVNode("",!0),t.toggledStats.turnPlayed?(i.openBlock(),i.createElementBlock("div",XT,i.toDisplayString(t.turnPlayed?i.unref(Qe)(t.turnPlayed,2,3):"-"),1)):i.createCommentVNode("",!0),t.toggledStats.turnsHeld?(i.openBlock(),i.createElementBlock("div",JT,i.toDisplayString(t.turnsHeld?i.unref(Qe)(t.turnsHeld,2,3):"-"),1)):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Fg=M(ZT,[["__scopeId","data-v-69ecee4e"]]),eD={cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e}})},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}}};var be=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(be||{});const tD={headingItems:{type:Array,required:!0,default:[]}},nD=e=>(i.pushScopeId("data-v-43d2a2a5"),e=e(),i.popScopeId(),e),rD={class:"table-wrapper"},aD={class:"table no-scrollbar"},AD=nD(()=>i.createElementVNode("div",{class:"heading-background-outer"},[i.createElementVNode("div",{class:"heading-background-absolute"}),i.createElementVNode("div",{class:"heading-background-inner"})],-1)),sD={class:"heading wrapper"},iD=["onClick"],oD={class:"sort-icons"},lD=i.defineComponent({__name:"LargeTable",props:tD,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",rD,[i.createElementVNode("div",aD,[AD,i.createElementVNode("div",sD,[(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",oD,[i.createVNode(i.unref(Te),{icon:"sort-up",class:"sort-icon"}),i.createVNode(i.unref(Te),{icon:"sort-down",class:"sort-icon"})])],10,iD))),128))]),i.renderSlot(a.$slots,"default",{},void 0,!0)])]))}});const eA=M(lD,[["__scopeId","data-v-43d2a2a5"]]);function Zs(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 cD(t),r===be.NEITHER?n.sortDirection=be.DOWN:r===be.DOWN?n.sortDirection=be.UP:n.sortDirection=be.DOWN,n}function cD(e){e.value.forEach(t=>{t.sortDirection!==be.NOT_SORTABLE&&(t.sortDirection=be.NEITHER)})}const uD=i.defineComponent({__name:"CardsTable",props:eD,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(c,s);u&&t("sort-updated",u)}return(c,u)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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":n.cardRouterLinkCallback(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,["heading-items","style"]))}});const vb=M(uD,[["__scopeId","data-v-a11686fb"]]),dD={regions:{type:Array,required:!0,default:[]}},fD={class:"deck-highlight-regions"},hD=i.defineComponent({__name:"DeckHighlightRegions",props:dD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",fD,[(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(jo,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Yo=M(hD,[["__scopeId","data-v-d28f95f4"]]),pD={},gD={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},mD=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),vD=[mD];function BD(e,t){return i.openBlock(),i.createElementBlock("svg",gD,vD)}const Ig=M(pD,[["render",BD]]),yD={deck:{type:Object,required:!0,default:{}}},wD=e=>(i.pushScopeId("data-v-25f680e9"),e=e(),i.popScopeId(),e),bD={class:"gems-text"},_D={class:"gems-cost-title"},CD={class:"gems-cost-value"},ED=wD(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),kD={class:"gems-cost-title"},SD={class:"gems-cost-value"},xD=i.defineComponent({__name:"GemsCost",props:yD,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null),a=i.ref(null),A=i.computed(()=>Gc(t.deck,!1)),s=i.computed(()=>Gc(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(Ig,{class:"shards-icon"}),i.createElementVNode("div",bD,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",_D,i.toDisplayString(i.unref(n)("deck.personalCost")),1),i.createElementVNode("div",CD,i.toDisplayString((u=s.value)==null?void 0:u.toLocaleString()),1),ED],64)):i.createCommentVNode("",!0),i.createElementVNode("div",kD,i.toDisplayString(i.unref(n)("deck.originalCost")),1),i.createElementVNode("div",SD,i.toDisplayString((d=A.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Ug=M(xD,[["__scopeId","data-v-25f680e9"]]),FD={class:"language-selection"},ID=["value"],UD=i.defineComponent({__name:"LanguageSelection",setup(e){const t=i.ref(!1);i.onBeforeUnmount(()=>{t.value=!1});function n(){t.value=!0}return(r,a)=>(i.openBlock(),i.createElementBlock("div",FD,[i.createVNode(i.unref(Te),{ref:"languageIcon",icon:"language",class:"icon",onClick:n},null,512),i.createVNode(RA,{"show-modal":t.value,"onUpdate:showModal":a[1]||(a[1]=A=>t.value=A)},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("select",{"onUpdate:modelValue":a[0]||(a[0]=A=>r.$i18n.locale=A)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.$i18n.availableLocales,A=>(i.openBlock(),i.createElementBlock("option",{key:`locale-${A}`,value:A},i.toDisplayString(A),9,ID))),128))],512),[[i.vModelSelect,r.$i18n.locale]])]),_:1},8,["show-modal"])]))}});const Qg=M(UD,[["__scopeId","data-v-426730c7"]]),QD={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},Bb={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}},TD={class:"circle-card-item"},DD=["alt","src"],LD=i.defineComponent({__name:"CircleCardItem",props:Bb,setup(e){const t=e,n=Po(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":hA(n.value,t.regions));return i.onMounted(()=>{t.ignoreCardItem||At(r.value,{content:a.value,placement:"right",arrow:!0,touch:"hold",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",TD,[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,DD)]}),_:1},8,["to"]),i.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&i.unref(n)?(i.openBlock(),i.createBlock($a,{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 tA=M(LD,[["__scopeId","data-v-b1598a69"]]),OD={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},MD={class:"deck-highlight-cards"},ND=i.defineComponent({__name:"DeckHighlightCards",props:OD,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",MD,[(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(tA,{class:"circle-card-item","card-prop":A,regions:t.regions,"router-link":t.cardRouterLinkCallback(A)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const qo=M(ND,[["__scopeId","data-v-081b6998"]]),PD=i.defineComponent({__name:"ArchetypeSidePanelHighlight",props:QD,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createBlock(mt,{class:"archetype-side-panel-highlight"},{default:i.withCtx(()=>[i.createVNode(Yo,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),i.createVNode(qo,{class:i.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Xu=M(PD,[["__scopeId","data-v-ff538f6f"]]),HD={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},RD={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,7 +849,7 @@ V.version="2.29.4";IV(st);V.fn=H;V.min=m$;V.max=v$;V.now=B$;V.utc=Er;V.unix=zW;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 oy={modes:{point(e,t){return Rc(e,t,{intersect:!0})},nearest(e,t,n){return ez(e,t,n)},x(e,t,n){return Rc(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return Rc(e,t,{intersect:n.intersect,axis:"y"})}}};function Cm(e,t,n){return(oy.modes[n.mode]||oy.modes.nearest)(e,t,n)}function JG(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 ZG(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function Rc(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):JG(r,t,n.axis))}function ez(e,t,n){let r=Number.POSITIVE_INFINITY;return Rc(e,t,n).reduce((a,A)=>{const s=A.getCenterPoint(),o=ZG(t,s,n.axis),l=Ps(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 tz=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,yA=.001,wd=(e,t,n)=>Math.min(n,Math.max(t,e));function nz(e,t,n){for(const r of Object.keys(e))e[r]=wd(e[r],t,n);return e}function rz(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 RC(e,{x:t,y:n,x2:r,y2:a},A,s){const o=s/2,l=e.x>=t-o-yA&&e.x<=r+o+yA,c=e.y>=n-o-yA&&e.y<=a+o+yA;return A==="x"?l:(A==="y"||l)&&c}function ni(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function az(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(tz(o,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const VC=e=>typeof e=="string"&&e.endsWith("%"),KC=e=>parseFloat(e)/100,$C=e=>wd(KC(e),0,1);function Em(e,t){return t==="start"?0:t==="end"?e:VC(t)?$C(t)*e:e/2}function ja(e,t,n=!0){return typeof t=="number"?t:VC(t)?(n?$C(t):KC(t))*e:e}function Az(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 km(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 WC(e){return e&&(mn(e.xValue)||mn(e.yValue))}function ol(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return zC(t,r)}else return;return sz(t,r,He(a,[{chart:e,properties:t,options:n}]))}function GC(e,t,n){let r=!1;return t.forEach(a=>{gn(e[a])?(r=!0,n[a]=e[a]):mn(n[a])&&delete n[a]}),r}function zC({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 sz(e,t,n){if(n===!0)return zC(e,t);if(ve(n))return n}const If=new Map,iz=e=>isNaN(e)||e<=0,oz=e=>e.reduce(function(t,n){return t+=n.string,t},"");function bd(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function Sm(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(Et(r)),e.translate(-t,-n))}function Ya(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 ri(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function xm(e,t){const n=t.content;if(bd(n))return{width:ja(n.width,t.width),height:ja(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()+oz(a)+A+(e._measureText?"-spriting":"");return If.has(o)||If.set(o,fz(e,s,a,A)),If.get(o)}function jC(e,t,n){const{x:r,y:a,width:A,height:s}=t;e.save(),ri(e,n);const o=Ya(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),Hs(e,{x:r,y:a,w:A,h:s,radius:nz(Ta(n.borderRadius),0,Math.min(A,s)/2)}),e.closePath(),e.fill(),o&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function lz(e,t,n){const r=n.content;if(bd(r)){e.save(),e.globalAlpha=gz(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=Az(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,cz(e,n)&&hz(e,{x:c,y:u},a,s),pz(e,{x:c,y:u},a,{fonts:s,colors:l}),e.restore()}function cz(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function uz(e,t,n,r){const{radius:a,options:A}=t,s=A.pointStyle,o=A.rotation;let l=(o||0)*Mg;if(bd(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}iz(a)||dz(e,{x:n,y:r,radius:a,rotation:o,style:s,rad:l})}function dz(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+=iu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=iu,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+On)*c,l=Math.sin(s+On)*c,e.arc(t-o,n-l,u,s-Ue,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+Ue),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}s+=On;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+=On;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+=On,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 fz(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 hz(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 pz(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 gz(e,t){const n=Ga(e)?e:t;return Ga(n)?wd(n,0,1):1}const ly={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 Gs(e,t,n){return t=typeof t=="number"?t:e.parse(t),ut(t)?e.getPixelForValue(t):n}function NA(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 YC(e,t){if(e){const n=e.options.reverse,r=Gs(e,t.min,n?t.end:t.start),a=Gs(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function qC(e,t){const{chartArea:n,scales:r}=e,a=r[NA(r,t,"xScaleID")],A=r[NA(r,t,"yScaleID")];let s=n.width/2,o=n.height/2;return a&&(s=Gs(a,t.xValue,a.left+a.width/2)),A&&(o=Gs(A,t.yValue,A.top+A.height/2)),{x:s,y:o}}function Fm(e,t){const n=e.scales,r=n[NA(n,t,"xScaleID")],a=n[NA(n,t,"yScaleID")];if(!r&&!a)return{};let{left:A,right:s}=r||e.chartArea,{top:o,bottom:l}=a||e.chartArea;const c=cy(r,{min:t.xMin,max:t.xMax,start:A,end:s});A=c.start,s=c.end;const u=cy(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 XC(e,t){if(!WC(t)){const n=Fm(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 vz(e,t)}function mz(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?Bz(a,A,t):yz(n,A,t),A}function JC(e,t,n){const r=Fm(e,t);return r.initProperties=ol(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:_z(e,r,t),initProperties:r.initProperties}],r}function vz(e,t){const n=qC(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 cy(e,t){const n=YC(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Bz(e,t,n){const r=Gs(e,n.value,NaN),a=Gs(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function yz(e,t,n){for(const r of Object.keys(ly)){const a=e[NA(e,n,r)];if(a){const{min:A,max:s,start:o,end:l,startProp:c,endProp:u}=ly[r],d=YC(a,{min:n[A],max:n[s],start:a[o],end:a[l]});t[c]=d.start,t[u]=d.end}}}function wz({properties:e,options:t},n,r,a){const{x:A,x2:s,width:o}=e;return ZC({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 bz({properties:e,options:t},n,r,a){const{y:A,y2:s,height:o}=e;return ZC({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 ZC(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+Em(c,A)}function _z(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=km(r.position),A=_t(r.padding),s=xm(e.ctx,r),o=wz({properties:t,options:n},s,a,A),l=bz({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 jA(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 Ap=["enter","leave"],Im=Ap.concat("click");function Cz(e,t,n){t.listened=GC(n,Im,t.listeners),t.moveListened=!1,t._getElements=Cm,Ap.forEach(r=>{gn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&gn(r.click)&&(t.listened=!0),t.moveListened||Ap.forEach(a=>{gn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function Ez(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return kz(e,t,n);case"click":return Sz(e,t,n)}}function kz(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=Cm(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const A={state:e,event:t};let s=uy(A,"leave",a,r);return uy(A,"enter",r,a)||s}function uy({state:e,event:t},n,r,a){let A;for(const s of r)a.indexOf(s)<0&&(A=e4(s.options[n]||e.listeners[n],s,t)||A);return A}function Sz(e,t,n){const r=e.listeners,a=Cm(e,t,n.interaction);let A;for(const s of a)A=e4(s.options.click||r.click,s,t)||A;return A}function e4(e,t,n){return He(e,[t.$context,n])===!0}const bu=["afterDraw","beforeDraw"];function xz(e,t,n){const r=t.visibleElements;t.hooked=GC(n,bu,t.hooks),t.hooked||r.forEach(a=>{t.hooked||bu.forEach(A=>{gn(a.options[A])&&(t.hooked=!0)})})}function dy(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return He(r,[t.$context])}}function Fz(e,t,n){const r=Dz(e.scales,t,n);let a=fy(t,r,"min","suggestedMin");a=fy(t,r,"max","suggestedMax")||a,a&&gn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Iz(e,t){for(const n of e)Qz(n,t)}function fy(e,t,n,r){if(ut(t[n])&&!Uz(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function Uz(e,t,n){return mn(e[t])||mn(e[n])}function Qz(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=NA(t,e,n);r&&!t[r]&&Tz(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function Tz(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(mn(e[n+r]))return!0;return!1}function Dz(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?hy(o,t,["value","endValue"],s):NA(e,o,A)===a&&hy(o,t,[r+"Min",r+"Max",r+"Value"],s);return s}function hy(e,t,n,r){for(const a of n){const A=e[a];if(mn(A)){const s=t.parse(A);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class ai extends rn{inRange(t,n,r,a){const{x:A,y:s}=jA({x:t,y:n},this.getCenterPoint(a),Et(-this.options.rotation));return RC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ni(this,t)}draw(t){t.save(),Sm(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 JC(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 t4=["left","bottom","top","right"];class ll extends rn{inRange(t,n,r,a){const{x:A,y:s}=jA({x:t,y:n},this.getCenterPoint(a),Et(-this.rotation));return RC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ni(this,t)}draw(t){const n=this.options,r=!mn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),Sm(t,this.getCenterPoint(),this.rotation),Oz(t,this),jC(t,this,n),lz(t,Kz(this),n),t.restore())}resolveElementProperties(t,n){let r;if(WC(n))r=qC(t,n);else{const{centerX:o,centerY:l}=Fm(t,n);r={x:o,y:l}}const a=_t(n.padding),A=xm(t.ctx,n),s=Lz(r,A,n,a);return{initProperties:ol(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}ll.id="labelAnnotation";ll.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};ll.defaultRoutes={borderColor:"color"};function Lz(e,t,n,r){const a=t.width+r.width+n.borderWidth,A=t.height+r.height+n.borderWidth,s=km(n.position,"center"),o=py(e.x,a,n.xAdjust,s.x),l=py(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 py(e,t,n=0,r){return e-Em(t,r)+n}function Oz(e,t){const{pointX:n,pointY:r,options:a}=t,A=a.callout,s=A&&A.display&&Rz(t,A);if(!s||$z(t,A,s))return;if(e.save(),e.beginPath(),!Ya(e,A))return e.restore();const{separatorStart:l,separatorEnd:c}=Mz(t,s),{sideStart:u,sideEnd:d}=Pz(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=jA({x:n,y:r},t.getCenterPoint(),Et(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function Mz(e,t){const{x:n,y:r,x2:a,y2:A}=e,s=Nz(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 Nz(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 Pz(e,t,n){const{y:r,width:a,height:A,options:s}=e,o=s.callout.start,l=Hz(t,s.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+ja(A,o)},u={x:c.x+l,y:c.y}):(c={x:n.x+ja(a,o),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function Hz(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function Rz(e,t){const n=t.position;return t4.includes(n)?n:Vz(e,t)}function Vz(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=ja(s,p),y=ja(o,p),g=[n,n+m,n+m,a],v=[r+y,A,r,A],_=[];for(let B=0;B<4;B++){const b=jA({x:g[B],y:v[B]},h,Et(f));_.push({position:t4[B],distance:Ps(b,{x:l,y:c})})}return _.sort((B,b)=>B.distance-b.distance)[0].position}function Kz({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 $z(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 Um=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),sp=(e,t,n)=>Um(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,gy=(e,t,n)=>Um(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Ui=e=>e*e,Wz=(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},my=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,ip=(e,t,n,r)=>({x:my(e.x,t.x,n.x,r),y:my(e.y,t.y,n.y,r)}),vy=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),By=(e,t,n,r)=>-Math.atan2(vy(e.x,t.x,n.x,r),vy(e.y,t.y,n.y,r))+.5*Ue;class cl extends rn{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){Ya(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,h=l.isPointInStroke(o,d,f)||op(this,s,a);return l.restore(),h}const c=Ui(A);return Yz(this,s,c,a)||op(this,s,a)}return Gz(this,{mouseX:t,mouseY:n},r,{hBorderWidth:A,useFinalPosition:a})}getCenterPoint(t){return ni(this,t)}draw(t){const{x:n,y:r,x2:a,y2:A,cp:s,options:o}=this;if(t.save(),!Ya(t,o))return t.restore();ri(t,o);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(A-r,2));if(o.curve&&s)return rj(t,this,s,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=n4(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(),lp(t,0,d,c),lp(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=mz(t,n),{x:a,y:A,x2:s,y2:o}=r,l=zz(r,t.chartArea),c=l?jz({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=ol(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=nj(c,n,Ps(d,f))}const u=qz(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}cl.id="lineAnnotation";const yy={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};cl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},yy),fill:!1,length:12,start:Object.assign({},yy),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({},ll.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};cl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};cl.defaultRoutes={borderColor:"color"};function Gz(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:A}){const s=Wz(t,n,e.getProps(["x","y","x2","y2"],A),r);return s.value>=s.start-a&&s.value<=s.end+a||op(e,{mouseX:t,mouseY:n},A,r)}function zz({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 wy({x:e,y:t},n,{top:r,right:a,bottom:A,left:s}){return e<s&&(t=gy(s,{x:e,y:t},n),e=s),e>a&&(t=gy(a,{x:e,y:t},n),e=a),t<r&&(e=sp(r,{x:e,y:t},n),t=r),t>A&&(e=sp(A,{x:e,y:t},n),t=A),{x:e,y:t}}function jz(e,t,n){const{x:r,y:a}=wy(e,t,n),{x:A,y:s}=wy(t,e,n);return{x:r,y:a,x2:A,y2:s,width:Math.abs(A-r),height:Math.abs(s-a)}}function Yz(e,{mouseX:t,mouseY:n},r=yA,a){const{x:A,y:s,x2:o,y2:l}=e.getProps(["x","y","x2","y2"],a),c=o-A,u=l-s,d=Ui(c)+Ui(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),Ui(t-h)+Ui(n-p)<=r}function op(e,{mouseX:t,mouseY:n},r,a){const A=e.label;return A.options.display&&A.inRange(t,n,a,r)}function qz(e,t,n){const r=n.borderWidth,a=_t(n.padding),A=xm(e.ctx,n),s=A.width+a.width+r,o=A.height+a.height+r;return Jz(t,n,{width:s,height:o,padding:a},e.chartArea)}function Xz(e){const{x:t,y:n,x2:r,y2:a}=e,A=Math.atan2(a-n,r-t);return A>Ue/2?A-Ue:A<Ue/-2?A+Ue:A}function Jz(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"?Xz(e):Et(t.rotation),f=Zz(a,A,d),h=ej(e,t,{labelSize:f,padding:s},r),p=e.cp?ip(c,e.cp,u,h):Um(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=_y(p.x,m)+o,v=_y(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:Ju(d)}}function Zz(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 ej(e,t,n,r){let a;const A=tj(e,r);return t.position==="start"?a=by({w:e.x2-e.x,h:e.y2-e.y},n,t,A):t.position==="end"?a=1-by({w:e.x-e.x2,h:e.y-e.y2},n,t,A):a=Em(1,t.position),a}function by(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 wd(Math.max(l,c),0,.25)}function tj(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 _y(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 n4(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:Cy(e,n),endAdjust:Cy(e,r)}}function Cy(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(sp(0,A,{x:0,y:a}))}function lp(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(),ri(e,r),Ya(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 nj(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=km(t.controlPoint,0),d={x:o+ja(n,u.x,!1),y:l+ja(n,u.y,!1)};return jA(d,{x:o,y:l},c)}function Ey(e,{x:t,y:n},{angle:r,adjust:a},A){!A||!A.display||(e.save(),e.translate(t,n),e.rotate(r),lp(e,0,-a,A),e.restore())}function rj(e,t,n,r){const{x:a,y:A,x2:s,y2:o,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=n4(t),h={x:a,y:A},p={x:s,y:o},m=By(h,n,p,0),y=By(h,n,p,1)-Ue,g=ip(h,n,p,d/r),v=ip(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,Ey(e,g,{angle:m,adjust:d},c),Ey(e,v,{angle:y,adjust:f},u)}class ul extends rn{inRange(t,n,r,a){const A=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return aj({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=jA({x:t,y:n},this.getCenterPoint(a),Et(-A));return h[r]>=f.start-d-yA&&h[r]<=f.end+d+yA}getCenterPoint(t){return ni(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:A,options:s}=this;t.save(),Sm(t,this.getCenterPoint(),s.rotation),ri(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const o=Ya(t,s);t.ellipse(a,A,r/2,n/2,Ue/2,0,2*Ue),t.fill(),o&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return JC(t,n,!0)}}ul.id="ellipseAnnotation";ul.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};ul.defaultRoutes={borderColor:"color",backgroundColor:"color"};ul.descriptors={label:{_fallback:!0}};function aj(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 _d extends rn{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 rz({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 ni(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,ri(t,n);const a=Ya(t,n);uz(t,this,this.centerX,this.centerY),a&&!bd(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=XC(t,n);return r.initProperties=ol(t,r,n,!0),r}}_d.id="pointAnnotation";_d.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};_d.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Cd extends rn{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&sj(this.elements,t,n,a);const A=jA({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 ni(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,ri(t,r);const a=Ya(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=XC(t,n),{sides:a,rotation:A}=n,s=[],o=2*Ue/a;let l=A*Mg;for(let c=0;c<a;c++,l+=o){const u=Aj(r,n,l);u.initProperties=ol(t,r,n),s.push(u)}return r.elements=s,r}}Cd.id="polygonAnnotation";Cd.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};Cd.defaultRoutes={borderColor:"color",backgroundColor:"color"};function Aj({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 sj(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 La={box:ai,ellipse:ul,label:ll,line:cl,point:_d,polygon:Cd};Object.keys(La).forEach(e=>{dt.describe(`elements.${La[e].id}`,{_fallback:"plugins.annotation.common"})});const ij={update:Object.assign},oj=Im.concat(bu),ky=(e,t)=>ve(t)?up(e,t):e,cp=e=>e==="color"||e==="font";function Qm(e="line"){return La[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function lj(e,t,n,r){const a=uj(e,n.animations,r),A=t.annotations,s=hj(t.elements,A);for(let o=0;o<A.length;o++){const l=A[o],c=r4(s,o,l.type),u=l.setContext(fj(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=cj(d),"elements"in d&&(dj(c,d.elements,u,a),delete d.elements),mn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=a4(u),a.update(c,d)}}function cj(e){return isNaN(e.x)||isNaN(e.y)}function uj(e,t,n){return n==="reset"||n==="none"||n==="resize"?ij:new Gg(e,t)}function dj(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=r4(a,A,s.type,s.initProperties),c=n[s.optionScope].override(s);o.options=a4(c),r.update(l,o)}}function r4(e,t,n,r){const a=La[Qm(n)];let A=e[t];return(!A||!(A instanceof a))&&(A=e[t]=new a,Object.assign(A,r)),A}function a4(e){const t=La[Qm(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,up(e,t.defaults),up(e,t.defaultRoutes));for(const r of oj)n[r]=e[r];return n}function up(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],A=e[r];cp(r)&&Oe(A)?n[r]=A.map(s=>ky(s,a)):n[r]=ky(A,a)}return n}function fj(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function hj(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 pj="2.2.1";const pa=new Map,gj=Im.concat(bu);var YA={id:"annotation",version:pj,beforeRegister(){az("chart.js","3.7",Le.version)},afterRegister(){Le.register(La)},afterUnregister(){Le.unregister(La)},beforeInit(e){pa.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=pa.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),Iz(a,e.scales)},afterDataLimits(e,t){const n=pa.get(e);Fz(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=pa.get(e);Cz(e,r,n),lj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),xz(e,r,n)},beforeDatasetsDraw(e,t,n){tc(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){tc(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){tc(e,"beforeDraw",n.clip)},afterDraw(e,t,n){tc(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=pa.get(e);Ez(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){pa.delete(e)},_getState(e){return pa.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=>!gj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${La[Qm(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:cp,_fallback:!0},_indexable:cp}},additionalOptionScopes:[""]};function tc(e,t,n){const{ctx:r,chartArea:a}=e,A=pa.get(e);n&&Zo(r,a);const s=mj(A.visibleElements,t).sort((o,l)=>o.element.options.z-l.element.options.z);for(const o of s)vj(r,a,A,o);n&&el(r)}function mj(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 vj(e,t,n,r){const a=r.element;r.main?(dy(n,a,"beforeDraw"),a.draw(e,t),dy(n,a,"afterDraw")):a.draw(e,t)}const dl=i.defineComponent({__name:"ManaCurveChart",props:FV,setup(e){const t=e,{t:n}=Ae(),r=i.ref();Le.register(..._r),Le.register(YA),Le.register(yd);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=Du(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=Mp(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:F2(f),data:o.value[f],borderRadius:a,borderSkipped:!1,label:Op(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(sd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Bj=i.defineComponent({__name:"DeckSidePanel",props:HD,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.reactive(n.filters),A=i.computed(()=>vE(n.deckcode)),s=i.computed(()=>Object.keys(St(n.deckcode)).filter(l=>Us(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(Js,{"filter-object":n.filters,"onClear:filterObject":o},{default:i.withCtx(()=>[i.createVNode(Xu,{"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(dl,{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(pu,{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(pu,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(qs,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>a.sampleSizeFilters=u)},null,8,["filter-array"]),i.createVNode(VA,{"filter-array":a.timeFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>a.timeFilters=u)},null,8,["filter-array"]),i.createVNode(Xs,{"filter-array":a.serverFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>a.serverFilters=u)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const A4=M(Bj,[["__scopeId","data-v-804ec9d7"]]),yj={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},fl=e=>(i.pushScopeId("data-v-aa13f0e5"),e=e(),i.popScopeId(),e),wj={class:"deck-summary"},bj={class:"deck-cards"},_j={class:"champions-landmarks column"},Cj={key:0,class:"type"},Ej={class:"type-heading"},kj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),Sj={class:"title"},xj={class:"type-quantity"},Fj={class:"card-container"},Ij={key:1,class:"type column"},Uj={class:"type-heading"},Qj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),Tj={class:"title"},Dj={class:"type-quantity"},Lj={class:"card-container"},Oj={key:2,class:"type column"},Mj={class:"type-heading"},Nj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),Pj={class:"title"},Hj={class:"type-quantity"},Rj={class:"card-container"},Vj={key:0,class:"type column"},Kj={class:"type-heading"},$j=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),Wj={class:"title"},Gj={class:"type-quantity"},zj={class:"card-container"},jj={key:1,class:"type"},Yj={class:"type-heading"},qj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),Xj={class:"title"},Jj={class:"type-quantity"},Zj={class:"card-container"},eY=i.defineComponent({__name:"DeckSummary",props:yj,setup(e){const t=e,n=i.computed(()=>t.cardsProp?t.cardsProp:nn(t.deck)),r=i.computed(()=>Lu(n.value)),a=i.computed(()=>n.value.filter(u=>Us(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",wj,[i.createElementVNode("div",bj,[i.createElementVNode("div",_j,[a.value.length>0?(i.openBlock(),i.createElementBlock("div",Cj,[i.createElementVNode("div",Ej,[kj,i.withDirectives(i.createElementVNode("div",Sj,null,512),[[f,"general.champions"]]),i.createElementVNode("p",xj,i.toDisplayString(c(a.value)),1)]),i.createElementVNode("div",Fj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",Ij,[i.createElementVNode("div",Uj,[Qj,i.withDirectives(i.createElementVNode("div",Tj,null,512),[[f,"general.landmarks"]]),i.createElementVNode("p",Dj,i.toDisplayString(c(o.value)),1)]),i.createElementVNode("div",Lj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",Oj,[i.createElementVNode("div",Mj,[Nj,i.withDirectives(i.createElementVNode("div",Pj,null,512),[[f,"general.equipments"]]),i.createElementVNode("p",Hj,i.toDisplayString(c(l.value)),1)]),i.createElementVNode("div",Rj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",Vj,[i.createElementVNode("div",Kj,[$j,i.withDirectives(i.createElementVNode("div",Wj,null,512),[[f,"general.followers"]]),i.createElementVNode("p",Gj,i.toDisplayString(c(A.value)),1)]),i.createElementVNode("div",zj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",jj,[i.createElementVNode("div",Yj,[qj,i.withDirectives(i.createElementVNode("div",Xj,null,512),[[f,"general.spells"]]),i.createElementVNode("p",Jj,i.toDisplayString(c(s.value)),1)]),i.createElementVNode("div",Zj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0)])])}}});const Ed=M(eY,[["__scopeId","data-v-aa13f0e5"]]),tY={deckCode:{type:String,required:!0,default:""}},kd=i.defineComponent({__name:"CopyDeckButton",props:tY,setup(e){const t=e,{t:n}=Ae(),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(){yE(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(Te),{icon:"copy",class:"icon"})],512))}}),nY={deckId:{type:Number,required:!0,default:-1}},Tm=i.defineComponent({__name:"DeleteDeckButton",props:nY,setup(e){const{t}=Ae(),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(Te),{icon:"trash-alt",class:"icon"})],512))}}),Dm=i.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=Ae(),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(Te),{icon:"pencil-alt",class:"icon"})],512))}}),rY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},aY=i.defineComponent({__name:"OpenArchetypePageButton",props:rY,setup(e){const t=e,{t:n}=Ae(),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 Lm=M(aY,[["__scopeId","data-v-b921ee68"]]),AY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},Om=i.defineComponent({__name:"OpenInDeckBuilderButton",props:AY,setup(e){const t=e,{t:n}=Ae(),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(Te),{icon:"pencil-alt",class:"icon"})],512)]),_:1},8,["to"])}}}),sY={deck:{type:Object,required:!0,default:{}}},iY={deck:{type:Object,required:!0,default:{}}},oY={class:"simulate-mulligan"},lY={class:"cards-container"},cY={class:"buttons"},uY=i.defineComponent({__name:"SimulateMulligan",props:iY,setup(e){const t=e,{t:n}=Ae(),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[pE(0,a.value.length)],isSelected:!1};console.log(A.value)}return l(),(c,u)=>(i.openBlock(),i.createElementBlock("div",oY,[i.createElementVNode("div",lY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value.filter(d=>d!==null),(d,f)=>(i.openBlock(),i.createBlock($a,{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",cY,[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 Mm=M(uY,[["__scopeId","data-v-4f85d8dc"]]),dY={class:"simulate-mulligan-wrapper"},fY=i.defineComponent({__name:"SimulateMulliganButton",props:sY,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),i.onUnmounted(()=>{a.value=!1}),(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(Te),{icon:"hand-paper"})],512),i.createVNode(RA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",dY,[i.createVNode(Mm,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const Sd=M(fY,[["__scopeId","data-v-0829519d"]]),hY={deckIsPrivate:{type:Boolean,required:!0,default:!0}},Nm=i.defineComponent({__name:"UpdateDeckPrivacyButton",props:hY,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null);let a;return i.onMounted(()=>{a=At(r.value,{content:`${n("deck.updatePrivacy")}:
852
+ */const oy={modes:{point(e,t){return Rc(e,t,{intersect:!0})},nearest(e,t,n){return ez(e,t,n)},x(e,t,n){return Rc(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return Rc(e,t,{intersect:n.intersect,axis:"y"})}}};function Cm(e,t,n){return(oy.modes[n.mode]||oy.modes.nearest)(e,t,n)}function JG(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 ZG(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function Rc(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):JG(r,t,n.axis))}function ez(e,t,n){let r=Number.POSITIVE_INFINITY;return Rc(e,t,n).reduce((a,A)=>{const s=A.getCenterPoint(),o=ZG(t,s,n.axis),l=Ps(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 tz=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,yA=.001,wd=(e,t,n)=>Math.min(n,Math.max(t,e));function nz(e,t,n){for(const r of Object.keys(e))e[r]=wd(e[r],t,n);return e}function rz(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 RC(e,{x:t,y:n,x2:r,y2:a},A,s){const o=s/2,l=e.x>=t-o-yA&&e.x<=r+o+yA,c=e.y>=n-o-yA&&e.y<=a+o+yA;return A==="x"?l:(A==="y"||l)&&c}function ni(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function az(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(tz(o,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const VC=e=>typeof e=="string"&&e.endsWith("%"),KC=e=>parseFloat(e)/100,$C=e=>wd(KC(e),0,1);function Em(e,t){return t==="start"?0:t==="end"?e:VC(t)?$C(t)*e:e/2}function ja(e,t,n=!0){return typeof t=="number"?t:VC(t)?(n?$C(t):KC(t))*e:e}function Az(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 km(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 WC(e){return e&&(mn(e.xValue)||mn(e.yValue))}function ol(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return zC(t,r)}else return;return sz(t,r,He(a,[{chart:e,properties:t,options:n}]))}function GC(e,t,n){let r=!1;return t.forEach(a=>{gn(e[a])?(r=!0,n[a]=e[a]):mn(n[a])&&delete n[a]}),r}function zC({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 sz(e,t,n){if(n===!0)return zC(e,t);if(ve(n))return n}const If=new Map,iz=e=>isNaN(e)||e<=0,oz=e=>e.reduce(function(t,n){return t+=n.string,t},"");function bd(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function Sm(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(Et(r)),e.translate(-t,-n))}function Ya(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 ri(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function xm(e,t){const n=t.content;if(bd(n))return{width:ja(n.width,t.width),height:ja(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()+oz(a)+A+(e._measureText?"-spriting":"");return If.has(o)||If.set(o,fz(e,s,a,A)),If.get(o)}function jC(e,t,n){const{x:r,y:a,width:A,height:s}=t;e.save(),ri(e,n);const o=Ya(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),Hs(e,{x:r,y:a,w:A,h:s,radius:nz(Ta(n.borderRadius),0,Math.min(A,s)/2)}),e.closePath(),e.fill(),o&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function lz(e,t,n){const r=n.content;if(bd(r)){e.save(),e.globalAlpha=gz(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=Az(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,cz(e,n)&&hz(e,{x:c,y:u},a,s),pz(e,{x:c,y:u},a,{fonts:s,colors:l}),e.restore()}function cz(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function uz(e,t,n,r){const{radius:a,options:A}=t,s=A.pointStyle,o=A.rotation;let l=(o||0)*Mg;if(bd(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}iz(a)||dz(e,{x:n,y:r,radius:a,rotation:o,style:s,rad:l})}function dz(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+=iu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=iu,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+On)*c,l=Math.sin(s+On)*c,e.arc(t-o,n-l,u,s-Ue,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+Ue),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}s+=On;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+=On;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+=On,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 fz(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 hz(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 pz(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 gz(e,t){const n=Ga(e)?e:t;return Ga(n)?wd(n,0,1):1}const ly={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 Gs(e,t,n){return t=typeof t=="number"?t:e.parse(t),ut(t)?e.getPixelForValue(t):n}function NA(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 YC(e,t){if(e){const n=e.options.reverse,r=Gs(e,t.min,n?t.end:t.start),a=Gs(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function qC(e,t){const{chartArea:n,scales:r}=e,a=r[NA(r,t,"xScaleID")],A=r[NA(r,t,"yScaleID")];let s=n.width/2,o=n.height/2;return a&&(s=Gs(a,t.xValue,a.left+a.width/2)),A&&(o=Gs(A,t.yValue,A.top+A.height/2)),{x:s,y:o}}function Fm(e,t){const n=e.scales,r=n[NA(n,t,"xScaleID")],a=n[NA(n,t,"yScaleID")];if(!r&&!a)return{};let{left:A,right:s}=r||e.chartArea,{top:o,bottom:l}=a||e.chartArea;const c=cy(r,{min:t.xMin,max:t.xMax,start:A,end:s});A=c.start,s=c.end;const u=cy(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 XC(e,t){if(!WC(t)){const n=Fm(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 vz(e,t)}function mz(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?Bz(a,A,t):yz(n,A,t),A}function JC(e,t,n){const r=Fm(e,t);return r.initProperties=ol(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:_z(e,r,t),initProperties:r.initProperties}],r}function vz(e,t){const n=qC(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 cy(e,t){const n=YC(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Bz(e,t,n){const r=Gs(e,n.value,NaN),a=Gs(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function yz(e,t,n){for(const r of Object.keys(ly)){const a=e[NA(e,n,r)];if(a){const{min:A,max:s,start:o,end:l,startProp:c,endProp:u}=ly[r],d=YC(a,{min:n[A],max:n[s],start:a[o],end:a[l]});t[c]=d.start,t[u]=d.end}}}function wz({properties:e,options:t},n,r,a){const{x:A,x2:s,width:o}=e;return ZC({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 bz({properties:e,options:t},n,r,a){const{y:A,y2:s,height:o}=e;return ZC({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 ZC(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+Em(c,A)}function _z(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=km(r.position),A=_t(r.padding),s=xm(e.ctx,r),o=wz({properties:t,options:n},s,a,A),l=bz({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 jA(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 Ap=["enter","leave"],Im=Ap.concat("click");function Cz(e,t,n){t.listened=GC(n,Im,t.listeners),t.moveListened=!1,t._getElements=Cm,Ap.forEach(r=>{gn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&gn(r.click)&&(t.listened=!0),t.moveListened||Ap.forEach(a=>{gn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function Ez(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return kz(e,t,n);case"click":return Sz(e,t,n)}}function kz(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=Cm(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const A={state:e,event:t};let s=uy(A,"leave",a,r);return uy(A,"enter",r,a)||s}function uy({state:e,event:t},n,r,a){let A;for(const s of r)a.indexOf(s)<0&&(A=e4(s.options[n]||e.listeners[n],s,t)||A);return A}function Sz(e,t,n){const r=e.listeners,a=Cm(e,t,n.interaction);let A;for(const s of a)A=e4(s.options.click||r.click,s,t)||A;return A}function e4(e,t,n){return He(e,[t.$context,n])===!0}const bu=["afterDraw","beforeDraw"];function xz(e,t,n){const r=t.visibleElements;t.hooked=GC(n,bu,t.hooks),t.hooked||r.forEach(a=>{t.hooked||bu.forEach(A=>{gn(a.options[A])&&(t.hooked=!0)})})}function dy(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return He(r,[t.$context])}}function Fz(e,t,n){const r=Dz(e.scales,t,n);let a=fy(t,r,"min","suggestedMin");a=fy(t,r,"max","suggestedMax")||a,a&&gn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Iz(e,t){for(const n of e)Qz(n,t)}function fy(e,t,n,r){if(ut(t[n])&&!Uz(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function Uz(e,t,n){return mn(e[t])||mn(e[n])}function Qz(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=NA(t,e,n);r&&!t[r]&&Tz(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function Tz(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(mn(e[n+r]))return!0;return!1}function Dz(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?hy(o,t,["value","endValue"],s):NA(e,o,A)===a&&hy(o,t,[r+"Min",r+"Max",r+"Value"],s);return s}function hy(e,t,n,r){for(const a of n){const A=e[a];if(mn(A)){const s=t.parse(A);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class ai extends rn{inRange(t,n,r,a){const{x:A,y:s}=jA({x:t,y:n},this.getCenterPoint(a),Et(-this.options.rotation));return RC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ni(this,t)}draw(t){t.save(),Sm(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 JC(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 t4=["left","bottom","top","right"];class ll extends rn{inRange(t,n,r,a){const{x:A,y:s}=jA({x:t,y:n},this.getCenterPoint(a),Et(-this.rotation));return RC({x:A,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return ni(this,t)}draw(t){const n=this.options,r=!mn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),Sm(t,this.getCenterPoint(),this.rotation),Oz(t,this),jC(t,this,n),lz(t,Kz(this),n),t.restore())}resolveElementProperties(t,n){let r;if(WC(n))r=qC(t,n);else{const{centerX:o,centerY:l}=Fm(t,n);r={x:o,y:l}}const a=_t(n.padding),A=xm(t.ctx,n),s=Lz(r,A,n,a);return{initProperties:ol(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}ll.id="labelAnnotation";ll.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};ll.defaultRoutes={borderColor:"color"};function Lz(e,t,n,r){const a=t.width+r.width+n.borderWidth,A=t.height+r.height+n.borderWidth,s=km(n.position,"center"),o=py(e.x,a,n.xAdjust,s.x),l=py(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 py(e,t,n=0,r){return e-Em(t,r)+n}function Oz(e,t){const{pointX:n,pointY:r,options:a}=t,A=a.callout,s=A&&A.display&&Rz(t,A);if(!s||$z(t,A,s))return;if(e.save(),e.beginPath(),!Ya(e,A))return e.restore();const{separatorStart:l,separatorEnd:c}=Mz(t,s),{sideStart:u,sideEnd:d}=Pz(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=jA({x:n,y:r},t.getCenterPoint(),Et(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function Mz(e,t){const{x:n,y:r,x2:a,y2:A}=e,s=Nz(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 Nz(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 Pz(e,t,n){const{y:r,width:a,height:A,options:s}=e,o=s.callout.start,l=Hz(t,s.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+ja(A,o)},u={x:c.x+l,y:c.y}):(c={x:n.x+ja(a,o),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function Hz(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function Rz(e,t){const n=t.position;return t4.includes(n)?n:Vz(e,t)}function Vz(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=ja(s,p),y=ja(o,p),g=[n,n+m,n+m,a],v=[r+y,A,r,A],_=[];for(let B=0;B<4;B++){const b=jA({x:g[B],y:v[B]},h,Et(f));_.push({position:t4[B],distance:Ps(b,{x:l,y:c})})}return _.sort((B,b)=>B.distance-b.distance)[0].position}function Kz({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 $z(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 Um=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),sp=(e,t,n)=>Um(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,gy=(e,t,n)=>Um(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Ui=e=>e*e,Wz=(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},my=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,ip=(e,t,n,r)=>({x:my(e.x,t.x,n.x,r),y:my(e.y,t.y,n.y,r)}),vy=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),By=(e,t,n,r)=>-Math.atan2(vy(e.x,t.x,n.x,r),vy(e.y,t.y,n.y,r))+.5*Ue;class cl extends rn{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){Ya(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,h=l.isPointInStroke(o,d,f)||op(this,s,a);return l.restore(),h}const c=Ui(A);return Yz(this,s,c,a)||op(this,s,a)}return Gz(this,{mouseX:t,mouseY:n},r,{hBorderWidth:A,useFinalPosition:a})}getCenterPoint(t){return ni(this,t)}draw(t){const{x:n,y:r,x2:a,y2:A,cp:s,options:o}=this;if(t.save(),!Ya(t,o))return t.restore();ri(t,o);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(A-r,2));if(o.curve&&s)return rj(t,this,s,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=n4(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(),lp(t,0,d,c),lp(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=mz(t,n),{x:a,y:A,x2:s,y2:o}=r,l=zz(r,t.chartArea),c=l?jz({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=ol(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=nj(c,n,Ps(d,f))}const u=qz(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}cl.id="lineAnnotation";const yy={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};cl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},yy),fill:!1,length:12,start:Object.assign({},yy),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({},ll.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};cl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};cl.defaultRoutes={borderColor:"color"};function Gz(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:A}){const s=Wz(t,n,e.getProps(["x","y","x2","y2"],A),r);return s.value>=s.start-a&&s.value<=s.end+a||op(e,{mouseX:t,mouseY:n},A,r)}function zz({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 wy({x:e,y:t},n,{top:r,right:a,bottom:A,left:s}){return e<s&&(t=gy(s,{x:e,y:t},n),e=s),e>a&&(t=gy(a,{x:e,y:t},n),e=a),t<r&&(e=sp(r,{x:e,y:t},n),t=r),t>A&&(e=sp(A,{x:e,y:t},n),t=A),{x:e,y:t}}function jz(e,t,n){const{x:r,y:a}=wy(e,t,n),{x:A,y:s}=wy(t,e,n);return{x:r,y:a,x2:A,y2:s,width:Math.abs(A-r),height:Math.abs(s-a)}}function Yz(e,{mouseX:t,mouseY:n},r=yA,a){const{x:A,y:s,x2:o,y2:l}=e.getProps(["x","y","x2","y2"],a),c=o-A,u=l-s,d=Ui(c)+Ui(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),Ui(t-h)+Ui(n-p)<=r}function op(e,{mouseX:t,mouseY:n},r,a){const A=e.label;return A.options.display&&A.inRange(t,n,a,r)}function qz(e,t,n){const r=n.borderWidth,a=_t(n.padding),A=xm(e.ctx,n),s=A.width+a.width+r,o=A.height+a.height+r;return Jz(t,n,{width:s,height:o,padding:a},e.chartArea)}function Xz(e){const{x:t,y:n,x2:r,y2:a}=e,A=Math.atan2(a-n,r-t);return A>Ue/2?A-Ue:A<Ue/-2?A+Ue:A}function Jz(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"?Xz(e):Et(t.rotation),f=Zz(a,A,d),h=ej(e,t,{labelSize:f,padding:s},r),p=e.cp?ip(c,e.cp,u,h):Um(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=_y(p.x,m)+o,v=_y(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:Ju(d)}}function Zz(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 ej(e,t,n,r){let a;const A=tj(e,r);return t.position==="start"?a=by({w:e.x2-e.x,h:e.y2-e.y},n,t,A):t.position==="end"?a=1-by({w:e.x-e.x2,h:e.y-e.y2},n,t,A):a=Em(1,t.position),a}function by(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 wd(Math.max(l,c),0,.25)}function tj(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 _y(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 n4(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:Cy(e,n),endAdjust:Cy(e,r)}}function Cy(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(sp(0,A,{x:0,y:a}))}function lp(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(),ri(e,r),Ya(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 nj(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=km(t.controlPoint,0),d={x:o+ja(n,u.x,!1),y:l+ja(n,u.y,!1)};return jA(d,{x:o,y:l},c)}function Ey(e,{x:t,y:n},{angle:r,adjust:a},A){!A||!A.display||(e.save(),e.translate(t,n),e.rotate(r),lp(e,0,-a,A),e.restore())}function rj(e,t,n,r){const{x:a,y:A,x2:s,y2:o,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=n4(t),h={x:a,y:A},p={x:s,y:o},m=By(h,n,p,0),y=By(h,n,p,1)-Ue,g=ip(h,n,p,d/r),v=ip(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,Ey(e,g,{angle:m,adjust:d},c),Ey(e,v,{angle:y,adjust:f},u)}class ul extends rn{inRange(t,n,r,a){const A=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return aj({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=jA({x:t,y:n},this.getCenterPoint(a),Et(-A));return h[r]>=f.start-d-yA&&h[r]<=f.end+d+yA}getCenterPoint(t){return ni(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:A,options:s}=this;t.save(),Sm(t,this.getCenterPoint(),s.rotation),ri(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const o=Ya(t,s);t.ellipse(a,A,r/2,n/2,Ue/2,0,2*Ue),t.fill(),o&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return JC(t,n,!0)}}ul.id="ellipseAnnotation";ul.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};ul.defaultRoutes={borderColor:"color",backgroundColor:"color"};ul.descriptors={label:{_fallback:!0}};function aj(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 _d extends rn{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 rz({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 ni(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,ri(t,n);const a=Ya(t,n);uz(t,this,this.centerX,this.centerY),a&&!bd(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=XC(t,n);return r.initProperties=ol(t,r,n,!0),r}}_d.id="pointAnnotation";_d.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};_d.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Cd extends rn{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&sj(this.elements,t,n,a);const A=jA({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 ni(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,ri(t,r);const a=Ya(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=XC(t,n),{sides:a,rotation:A}=n,s=[],o=2*Ue/a;let l=A*Mg;for(let c=0;c<a;c++,l+=o){const u=Aj(r,n,l);u.initProperties=ol(t,r,n),s.push(u)}return r.elements=s,r}}Cd.id="polygonAnnotation";Cd.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};Cd.defaultRoutes={borderColor:"color",backgroundColor:"color"};function Aj({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 sj(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 La={box:ai,ellipse:ul,label:ll,line:cl,point:_d,polygon:Cd};Object.keys(La).forEach(e=>{dt.describe(`elements.${La[e].id}`,{_fallback:"plugins.annotation.common"})});const ij={update:Object.assign},oj=Im.concat(bu),ky=(e,t)=>ve(t)?up(e,t):e,cp=e=>e==="color"||e==="font";function Qm(e="line"){return La[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function lj(e,t,n,r){const a=uj(e,n.animations,r),A=t.annotations,s=hj(t.elements,A);for(let o=0;o<A.length;o++){const l=A[o],c=r4(s,o,l.type),u=l.setContext(fj(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=cj(d),"elements"in d&&(dj(c,d.elements,u,a),delete d.elements),mn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=a4(u),a.update(c,d)}}function cj(e){return isNaN(e.x)||isNaN(e.y)}function uj(e,t,n){return n==="reset"||n==="none"||n==="resize"?ij:new Gg(e,t)}function dj(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=r4(a,A,s.type,s.initProperties),c=n[s.optionScope].override(s);o.options=a4(c),r.update(l,o)}}function r4(e,t,n,r){const a=La[Qm(n)];let A=e[t];return(!A||!(A instanceof a))&&(A=e[t]=new a,Object.assign(A,r)),A}function a4(e){const t=La[Qm(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,up(e,t.defaults),up(e,t.defaultRoutes));for(const r of oj)n[r]=e[r];return n}function up(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],A=e[r];cp(r)&&Oe(A)?n[r]=A.map(s=>ky(s,a)):n[r]=ky(A,a)}return n}function fj(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function hj(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 pj="2.2.1";const pa=new Map,gj=Im.concat(bu);var YA={id:"annotation",version:pj,beforeRegister(){az("chart.js","3.7",Le.version)},afterRegister(){Le.register(La)},afterUnregister(){Le.unregister(La)},beforeInit(e){pa.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=pa.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),Iz(a,e.scales)},afterDataLimits(e,t){const n=pa.get(e);Fz(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=pa.get(e);Cz(e,r,n),lj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),xz(e,r,n)},beforeDatasetsDraw(e,t,n){tc(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){tc(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){tc(e,"beforeDraw",n.clip)},afterDraw(e,t,n){tc(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=pa.get(e);Ez(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){pa.delete(e)},_getState(e){return pa.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=>!gj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${La[Qm(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:cp,_fallback:!0},_indexable:cp}},additionalOptionScopes:[""]};function tc(e,t,n){const{ctx:r,chartArea:a}=e,A=pa.get(e);n&&Zo(r,a);const s=mj(A.visibleElements,t).sort((o,l)=>o.element.options.z-l.element.options.z);for(const o of s)vj(r,a,A,o);n&&el(r)}function mj(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 vj(e,t,n,r){const a=r.element;r.main?(dy(n,a,"beforeDraw"),a.draw(e,t),dy(n,a,"afterDraw")):a.draw(e,t)}const dl=i.defineComponent({__name:"ManaCurveChart",props:FV,setup(e){const t=e,{t:n}=Ae(),r=i.ref();Le.register(..._r),Le.register(YA),Le.register(yd);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=Du(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=Mp(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:F2(f),data:o.value[f],borderRadius:a,borderSkipped:!1,label:Op(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(sd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Bj=i.defineComponent({__name:"DeckSidePanel",props:HD,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.reactive(n.filters),A=i.computed(()=>vE(n.deckcode)),s=i.computed(()=>Object.keys(St(n.deckcode)).filter(l=>Us(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(Js,{"filter-object":n.filters,"onClear:filterObject":o},{default:i.withCtx(()=>[i.createVNode(Xu,{"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(dl,{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(pu,{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(pu,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),i.createVNode(qs,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>a.sampleSizeFilters=u)},null,8,["filter-array"]),i.createVNode(VA,{"filter-array":a.timeFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>a.timeFilters=u)},null,8,["filter-array"]),i.createVNode(Xs,{"filter-array":a.serverFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>a.serverFilters=u)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const A4=M(Bj,[["__scopeId","data-v-804ec9d7"]]),yj={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},fl=e=>(i.pushScopeId("data-v-aa13f0e5"),e=e(),i.popScopeId(),e),wj={class:"deck-summary"},bj={class:"deck-cards"},_j={class:"champions-landmarks column"},Cj={key:0,class:"type"},Ej={class:"type-heading"},kj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),Sj={class:"title"},xj={class:"type-quantity"},Fj={class:"card-container"},Ij={key:1,class:"type column"},Uj={class:"type-heading"},Qj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),Tj={class:"title"},Dj={class:"type-quantity"},Lj={class:"card-container"},Oj={key:2,class:"type column"},Mj={class:"type-heading"},Nj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),Pj={class:"title"},Hj={class:"type-quantity"},Rj={class:"card-container"},Vj={key:0,class:"type column"},Kj={class:"type-heading"},$j=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),Wj={class:"title"},Gj={class:"type-quantity"},zj={class:"card-container"},jj={key:1,class:"type"},Yj={class:"type-heading"},qj=fl(()=>i.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),Xj={class:"title"},Jj={class:"type-quantity"},Zj={class:"card-container"},eY=i.defineComponent({__name:"DeckSummary",props:yj,setup(e){const t=e,n=i.computed(()=>t.cardsProp?t.cardsProp:nn(t.deck)),r=i.computed(()=>Lu(n.value)),a=i.computed(()=>n.value.filter(u=>Us(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",wj,[i.createElementVNode("div",bj,[i.createElementVNode("div",_j,[a.value.length>0?(i.openBlock(),i.createElementBlock("div",Cj,[i.createElementVNode("div",Ej,[kj,i.withDirectives(i.createElementVNode("div",Sj,null,512),[[f,"general.champions"]]),i.createElementVNode("p",xj,i.toDisplayString(c(a.value)),1)]),i.createElementVNode("div",Fj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",Ij,[i.createElementVNode("div",Uj,[Qj,i.withDirectives(i.createElementVNode("div",Tj,null,512),[[f,"general.landmarks"]]),i.createElementVNode("p",Dj,i.toDisplayString(c(o.value)),1)]),i.createElementVNode("div",Lj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",Oj,[i.createElementVNode("div",Mj,[Nj,i.withDirectives(i.createElementVNode("div",Pj,null,512),[[f,"general.equipments"]]),i.createElementVNode("p",Hj,i.toDisplayString(c(l.value)),1)]),i.createElementVNode("div",Rj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",Vj,[i.createElementVNode("div",Kj,[$j,i.withDirectives(i.createElementVNode("div",Wj,null,512),[[f,"general.followers"]]),i.createElementVNode("p",Gj,i.toDisplayString(c(A.value)),1)]),i.createElementVNode("div",zj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},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",jj,[i.createElementVNode("div",Yj,[qj,i.withDirectives(i.createElementVNode("div",Xj,null,512),[[f,"general.spells"]]),i.createElementVNode("p",Jj,i.toDisplayString(c(s.value)),1)]),i.createElementVNode("div",Zj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,h=>(i.openBlock(),i.createBlock(dn,{key:h.cardCode,"card-prop":h,color:i.unref(hA)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0,"router-link":t.cardRouterLinkCallback(h)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):i.createCommentVNode("",!0)])])}}});const Ed=M(eY,[["__scopeId","data-v-aa13f0e5"]]),tY={deckCode:{type:String,required:!0,default:""}},kd=i.defineComponent({__name:"CopyDeckButton",props:tY,setup(e){const t=e,{t:n}=Ae(),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(){yE(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(Te),{icon:"copy",class:"icon"})],512))}}),nY={deckId:{type:Number,required:!0,default:-1}},Tm=i.defineComponent({__name:"DeleteDeckButton",props:nY,setup(e){const{t}=Ae(),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(Te),{icon:"trash-alt",class:"icon"})],512))}}),Dm=i.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=Ae(),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(Te),{icon:"pencil-alt",class:"icon"})],512))}}),rY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},aY=i.defineComponent({__name:"OpenArchetypePageButton",props:rY,setup(e){const t=e,{t:n}=Ae(),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 Lm=M(aY,[["__scopeId","data-v-b921ee68"]]),AY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},Om=i.defineComponent({__name:"OpenInDeckBuilderButton",props:AY,setup(e){const t=e,{t:n}=Ae(),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(Te),{icon:"pencil-alt",class:"icon"})],512)]),_:1},8,["to"])}}}),sY={deck:{type:Object,required:!0,default:{}}},iY={deck:{type:Object,required:!0,default:{}}},oY={class:"simulate-mulligan"},lY={class:"cards-container"},cY={class:"buttons"},uY=i.defineComponent({__name:"SimulateMulligan",props:iY,setup(e){const t=e,{t:n}=Ae(),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[pE(0,a.value.length)],isSelected:!1};console.log(A.value)}return l(),(c,u)=>(i.openBlock(),i.createElementBlock("div",oY,[i.createElementVNode("div",lY,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value.filter(d=>d!==null),(d,f)=>(i.openBlock(),i.createBlock($a,{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",cY,[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 Mm=M(uY,[["__scopeId","data-v-4f85d8dc"]]),dY={class:"simulate-mulligan-wrapper"},fY=i.defineComponent({__name:"SimulateMulliganButton",props:sY,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),i.onBeforeUnmount(()=>{a.value=!1}),(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(Te),{icon:"hand-paper"})],512),i.createVNode(RA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",dY,[i.createVNode(Mm,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const Sd=M(fY,[["__scopeId","data-v-325f6395"]]),hY={deckIsPrivate:{type:Boolean,required:!0,default:!0}},Nm=i.defineComponent({__name:"UpdateDeckPrivacyButton",props:hY,setup(e){const t=e,{t:n}=Ae(),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
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(Te),{icon:t.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512))}}),pY={},gY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},mY=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),vY=[mY];function BY(e,t){return i.openBlock(),i.createElementBlock("svg",gY,vY)}const Pm=M(pY,[["render",BY]]),yY={showUploaded:{type:Boolean,required:!1,default:!1}},wY=i.defineComponent({__name:"UploadDeckToLorButton",props:yY,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null);let a;return i.onMounted(()=>{At(r.value,{content:ya().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(Pm)],512))}});const xd=M(wY,[["__scopeId","data-v-ea5cfd6f"]]),bY={},_Y={class:"primary-button"};function CY(e,t){const n=i.resolveComponent("FontAwesomeIcon");return i.openBlock(),i.createElementBlock("button",_Y,[i.createVNode(n,{icon:"share-nodes"}),i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")])])}const Hm=M(bY,[["render",CY]]),EY={isPrivate:{type:Boolean,required:!1,default:!1},showUploaded:{type:Boolean,required:!1,default:!1},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeRouterLink:{type:Object,required:!0,default:{path:"/404"}},deckName:{type:String,required:!0,default:""},deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1},showButtons:{type:Object,required:!0,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},kY={class:"deck-buttons"},SY={key:0,class:"owned-deck-buttons buttons"},xY={class:"normal-buttons buttons"},FY=i.defineComponent({__name:"DeckButtons",props:EY,emits:["click:share","click:upload","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.computed(()=>St(n.deckCode));return console.log(a),(A,s)=>(i.openBlock(),i.createElementBlock("div",kY,[n.showButtons.deleteDeck||n.showButtons.updateDeckPrivacy||n.showButtons.editDeckName?(i.openBlock(),i.createElementBlock("div",SY,[n.showButtons.deleteDeck?(i.openBlock(),i.createBlock(Tm,{key:0,onClick:s[0]||(s[0]=o=>t("click:delete"))})):i.createCommentVNode("",!0),n.showButtons.updateDeckPrivacy?(i.openBlock(),i.createBlock(Nm,{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(Dm,{key:2,onClick:s[2]||(s[2]=o=>t("click:edit-name"))})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",xY,[n.showButtons.gemsCost?(i.openBlock(),i.createBlock(Ug,{key:0,deck:a.value},null,8,["deck"])):i.createCommentVNode("",!0),n.showButtons.openArchetypePage?(i.openBlock(),i.createBlock(Lm,{key:1,"router-link":n.archetypeRouterLink},null,8,["router-link"])):i.createCommentVNode("",!0),n.showButtons.simulateMulligan?(i.openBlock(),i.createBlock(Sd,{key:2,deck:a.value},null,8,["deck"])):i.createCommentVNode("",!0),n.showButtons.openInDeckBuilder?(i.openBlock(),i.createBlock(Om,{key:3,"router-link":n.deckBuilderRouterLink},null,8,["router-link"])):i.createCommentVNode("",!0),n.showButtons.copyDeckCode?(i.openBlock(),i.createBlock(kd,{key:4,"deck-code":n.deckCode},null,8,["deck-code"])):i.createCommentVNode("",!0),n.showButtons.uploadDeckToLor?(i.openBlock(),i.createBlock(xd,{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(Hm,{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 Rm=M(FY,[["__scopeId","data-v-a03f5f30"]]),IY={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckId:{type:Number,required:!1}},UY={element:{type:Object,required:!0,default:""}};/*!
855
855
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
@@ -872,10 +872,10 @@ PERFORMANCE OF THIS SOFTWARE.
872
872
  content: "" !important;
873
873
  display: none !important;
874
874
  }`,mee=function(e){vee(e,"."+Qp+pee+b2+`
875
- .`+Tp+gee+b2)},vee=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},n3=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}(),Bee=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)||(qf(t)||_ee(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=n3.isSameOrigin(t),r=!Yf(t)&&this._options.useCORS===!0&&Ht.SUPPORT_CORS_IMAGES&&!n,a=!Yf(t)&&!n&&!qf(t)&&typeof this._options.proxy=="string"&&Ht.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!Yf(t)&&!qf(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,(Cee(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}(),yee=/^data:image\/svg\+xml/i,wee=/^data:image\/.*;base64,/i,bee=/^data:image\/.*/i,_ee=function(e){return Ht.SUPPORT_SVG_DRAWING||!Eee(e)},Yf=function(e){return bee.test(e)},Cee=function(e){return wee.test(e)},qf=function(e){return e.substr(0,4)==="blob"},Eee=function(e){return e.substr(-3).toLowerCase()==="svg"||yee.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}(),os=function(e,t,n){return new q(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},wc=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=os(this.start,this.startControl,t),a=os(this.startControl,this.endControl,t),A=os(this.endControl,this.end,t),s=os(r,a,t),o=os(a,A,t),l=os(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}(),Nn=function(e){return e.type===1},kee=function(){function e(t){var n=t.styles,r=t.bounds,a=Oi(n.borderTopLeftRadius,r.width,r.height),A=a[0],s=a[1],o=Oi(n.borderTopRightRadius,r.width,r.height),l=o[0],c=o[1],u=Oi(n.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],h=Oi(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,b=r.height-m,w=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+w/3,A-S/3,s-w/3,Re.TOP_LEFT):new q(r.left+S/3,r.top+w/3),this.topRightBorderDoubleOuterBox=A>0||s>0?lt(r.left+v,r.top+w/3,l-C/3,c-w/3,Re.TOP_RIGHT):new q(r.left+r.width-C/3,r.top+w/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+b,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+w*2/3,A-S*2/3,s-w*2/3,Re.TOP_LEFT):new q(r.left+S*2/3,r.top+w*2/3),this.topRightBorderDoubleInnerBox=A>0||s>0?lt(r.left+v,r.top+w*2/3,l-C*2/3,c-w*2/3,Re.TOP_RIGHT):new q(r.left+r.width-C*2/3,r.top+w*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+b,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+w/2,A-S/2,s-w/2,Re.TOP_LEFT):new q(r.left+S/2,r.top+w/2),this.topRightBorderStroke=A>0||s>0?lt(r.left+v,r.top+w/2,l-C/2,c-w/2,Re.TOP_RIGHT):new q(r.left+r.width-C/2,r.top+w/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+b,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+b,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+w,Math.max(0,A-S),Math.max(0,s-w),Re.TOP_LEFT):new q(r.left+S,r.top+w),this.topRightPaddingBox=l>0||c>0?lt(r.left+Math.min(v,r.width-C),r.top+w,v>r.width+C?0:Math.max(0,l-C),Math.max(0,c-w),Re.TOP_RIGHT):new q(r.left+r.width-C,r.top+w),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(b,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+w+T,Math.max(0,A-(S+Q)),Math.max(0,s-(w+T)),Re.TOP_LEFT):new q(r.left+S+Q,r.top+w+T),this.topRightContentBox=l>0||c>0?lt(r.left+Math.min(v,r.width+S+Q),r.top+w+T,v>r.width+S+Q?0:l-S+Q,c-(w+T),Re.TOP_RIGHT):new q(r.left+r.width-(C+U),r.top+w+T),this.bottomRightContentBox=d>0||f>0?lt(r.left+Math.min(B,r.width-(S+Q)),r.top+Math.min(_,r.height+w+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+b,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 wc(new q(e,c),new q(e,c-o),new q(l-s,t),new q(l,t));case Re.TOP_RIGHT:return new wc(new q(e,t),new q(e+s,t),new q(l,c-o),new q(l,c));case Re.BOTTOM_RIGHT:return new wc(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 wc(new q(l,c),new q(l-s,c),new q(e,t+o),new q(e,t))}},Iu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},See=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Uu=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},xee=function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e}(),bc=function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e}(),Fee=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),Iee=function(e){return e.type===0},r3=function(e){return e.type===1},Uee=function(e){return e.type===2},_2=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},Qee=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})},a3=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),A3=function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new kee(this.container),this.container.styles.opacity<1&&this.effects.push(new Fee(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 xee(r,a,A))}if(this.container.styles.overflowX!==0){var s=Iu(this.curves),o=Uu(this.curves);_2(s,o)?this.effects.push(new bc(s,6)):(this.effects.push(new bc(s,2)),this.effects.push(new bc(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!r3(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=Iu(r.curves),o=Uu(r.curves);_2(s,o)||a.unshift(new bc(o,6))}}else a.unshift.apply(a,A);r=r.parent}return a.filter(function(l){return It(l.target,t)})},e}(),Dp=function(e,t,n,r){e.container.elements.forEach(function(a){var A=It(a.flags,4),s=It(a.flags,2),o=new A3(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 a3(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);Dp(o,u,A?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Dp(o,t,n,l);It(a.flags,8)&&s3(a,l)})},s3=function(e,t){for(var n=e instanceof Fp?e.start:1,r=e instanceof Fp?e.reversed:!1,a=0;a<t.length;a++){var A=t[a];A.container instanceof K4&&typeof A.container.value=="number"&&A.container.value!==0&&(n=A.container.value),A.listValue=No(n,A.container.styles.listStyleType,!0),n+=r?-1:1}},Tee=function(e){var t=new A3(e,null),n=new a3(t),r=[];return Dp(t,n,n,r),s3(t.container,r),n},C2=function(e,t){switch(t){case 0:return Hn(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Hn(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Hn(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Hn(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Dee=function(e,t){switch(t){case 0:return Hn(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Hn(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Hn(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Hn(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},Lee=function(e,t){switch(t){case 0:return Hn(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Hn(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Hn(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Hn(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Oee=function(e,t){switch(t){case 0:return _c(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return _c(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return _c(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return _c(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},_c=function(e,t){var n=[];return Nn(e)?n.push(e.subdivide(.5,!1)):n.push(e),Nn(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Hn=function(e,t,n,r){var a=[];return Nn(e)?a.push(e.subdivide(.5,!1)):a.push(e),Nn(n)?a.push(n.subdivide(.5,!0)):a.push(n),Nn(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Nn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},i3=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Qu=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))},Mee=function(e,t){return e===0?t.bounds:e===2?Qu(t):i3(t)},Nee=function(e,t){return e===0?t.bounds:e===2?Qu(t):i3(t)},Xf=function(e,t,n){var r=Mee(hs(e.styles.backgroundOrigin,t),e),a=Nee(hs(e.styles.backgroundClip,t),e),A=Pee(hs(e.styles.backgroundSize,t),n,r),s=A[0],o=A[1],l=Oi(hs(e.styles.backgroundPosition,t),r.width-s,r.height-o),c=Hee(hs(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]},ls=function(e){return We(e)&&e.value===Ss.AUTO},Cc=function(e){return typeof e=="number"},Pee=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=Cc(A);if(We(s)&&(s.value===Ss.CONTAIN||s.value===Ss.COVER)){if(Cc(A)){var c=n.width/n.height;return c<A!=(s.value===Ss.COVER)?[n.width,n.width/A]:[n.height*A,n.height]}return[n.width,n.height]}var u=Cc(r),d=Cc(a),f=u||d;if(ls(s)&&(!o||ls(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)),ls(s)?g=v*A:(!o||ls(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||ls(o))&&(B=u&&d?_/r*a:n.height),B!==null&&ls(s)&&(_=u&&d?B/a*r:n.width),_!==null&&B!==null)return[_,B];throw new Error("Unable to calculate background-size for element")},hs=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},Hee=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))]}},Ree="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E2="Hidden Text",Vee=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=Ree,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(E2)),r.appendChild(A),r.appendChild(a);var o=a.offsetTop-A.offsetTop+2;r.removeChild(A),r.appendChild(this._document.createTextNode(E2)),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}(),o3=function(){function e(t,n){this.context=t,this.options=n}return e}(),Kee=1e4,$ee=function(e){rr(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 Vee(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(),Uee(n)&&(this.ctx.globalAlpha=n.opacity),Iee(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)),r3(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=Gm(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=Yee(n.fontFamily).join(", "),A=pl(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=Qu(n),s=Uu(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,b,m,y,g,v,_,B,b;return Kt(this,function(w){switch(w.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,A=r.styles,s=0,o=r.textNodes,w.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,A)]):[3,4];case 2:w.sent(),w.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof H4))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=w.sent(),this.renderReplacedElement(r,a,v),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof R4&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof V4))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=w.sent(),this.renderReplacedElement(r,a,v),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof G4&&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=w.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),w.label=14;case 14:if(r instanceof zm&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===ku?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(d2),this.ctx.fill(),this.ctx.restore()):r.type===Su&&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(d2),this.ctx.fill(),this.ctx.restore())),Wee(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=zee(r.styles.textAlign),b=Qu(r),m=0,r.styles.textAlign){case 1:m+=b.width/2;break;case 2:m+=b.width;break}y=b.add(m,0,0,-b.height/2+1),this.ctx.save(),this.path([new q(b.left,b.top),new q(b.left+b.width,b.top),new q(b.left+b.width,b.top+b.height),new q(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new oo(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,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return v=w.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return w.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",b=new ra(r.bounds.left,r.bounds.top+qe(r.styles.paddingTop,r.bounds.width),r.bounds.width,Yy(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new oo(n.listValue,b),A.letterSpacing,Yy(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.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=Nn(a)?a.start:a;A===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Nn(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,b,w,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=Xf(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:IX(u)?(p=Xf(n,r,[null,null,null]),T=p[0],j=p[1],K=p[2],Q=p[3],Y=p[4],m=EX(u.angle,Q,Y),y=m[0],g=m[1],v=m[2],_=m[3],B=m[4],b=document.createElement("canvas"),b.width=Q,b.height=Y,w=b.getContext("2d"),C=w.createLinearGradient(g,_,v,B),zy(u.stops,y).forEach(function(te){return C.addColorStop(te.stop,Lt(te.color))}),w.fillStyle=C,w.fillRect(0,0,Q,Y),Q>0&&Y>0&&(k=A.ctx.createPattern(b,"repeat"),A.renderRepeat(T,k,j,K))):UX(u)&&(S=Xf(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?[Km]:u.position,j=qe(X[0],Q),K=qe(X[X.length-1],Y),oe=kX(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,$),zy(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(C2(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=Dee(A,a),this.path(s),this.ctx.fillStyle=Lt(n),this.ctx.fill(),o=Lee(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=!Ma(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=Gee(hs(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ma(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=Iu(n.curves),m=h.inset?0:Kee,y=Qee(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&&!Ma(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,b,w,b,w;return Kt(this,function(C){return this.ctx.save(),o=Oee(A,a),l=C2(A,a),s===2&&(this.path(l),this.ctx.clip()),Nn(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Nn(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&&(Nn(l[0])&&(b=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(w.start.x,w.start.y)]),this.ctx.stroke()),Nn(l[1])&&(b=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(w.start.x,w.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=Tee(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(o3),Wee=function(e){return e instanceof W4||e instanceof $4?!0:e instanceof zm&&e.type!==Su&&e.type!==ku},Gee=function(e,t){switch(e){case 0:return Iu(t);case 2:return See(t);case 1:default:return Uu(t)}},zee=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},jee=["-apple-system","system-ui"],Yee=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return jee.indexOf(t)===-1}):e},qee=function(e){rr(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=xp(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Xee(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}(o3),Xee=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))})},Jee=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,nc([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,nc([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,nc([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,nc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),Zee=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Jee({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new Bee(this,t)}return e.instanceCount=1,e}(),ete=function(e,t){return t===void 0&&(t={}),tte(e,t)};typeof window<"u"&&n3.setContext(window);var tte=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,b,C,w,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=fp({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 ra(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Zee(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 w2(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=jm(f)||nee(f)?QY(f.ownerDocument):Fd(l,f),m=p.width,y=p.height,g=p.left,v=p.top,_=nte(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 qee(l,B),[4,C.render(f)]):[3,3];case 2:return b=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"),w=j4(l,f),_===w.styles.backgroundColor&&(w.styles.backgroundColor=Xr.TRANSPARENT),l.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),C=new $ee(l,B),[4,C.render(w)];case 4:b=ne.sent(),ne.label=5;case 5:return(!((fe=t.removeContainer)!==null&&fe!==void 0)||fe)&&(w2.destroy(h)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,b]}})})},nte=function(e,t,n){var r=t.ownerDocument,a=r.documentElement?so(e,getComputedStyle(r.documentElement).backgroundColor):Xr.TRANSPARENT,A=r.body?so(e,getComputedStyle(r.body).backgroundColor):Xr.TRANSPARENT,s=typeof n=="string"?so(e,n):n===null?Xr.TRANSPARENT:4294967295;return t===r.documentElement?Ma(a)?Ma(A)?s:A:a:s};const rte=i.defineComponent({__name:"CaptureButton",props:UY,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null);i.onMounted(()=>{At(r.value,{content:n("general.captureImage"),arrow:!0})});function a(){console.log(t.element.tagName),ete(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(Te),{icon:"camera"})],512)]))}});const ate=M(rte,[["__scopeId","data-v-4b809ad3"]]),Ate={class:"deck-preview no-scrollbar"},ste={class:"top"},ite={class:"deck-buttons"},ote=i.defineComponent({__name:"DeckPreview",props:IY,setup(e){const t=e,n=i.ref(),r={deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!1,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},a=i.computed(()=>t.deck?t.deck:St(t.deckCode)),A=i.computed(()=>t.cards?t.cards:nn(a.value)),s=i.computed(()=>{var o;return{"--deck-summary-background":`url(https://lor.gg/storage/cards/full-art/${(o=Na(A.value,a.value,1)[0])==null?void 0:o.cardCode}.webp)`}});return(o,l)=>(i.openBlock(),i.createElementBlock("div",Ate,[i.createElementVNode("div",ste,[i.createElementVNode("div",ite,[i.createVNode(ate,{element:n.value},null,8,["element"])]),i.createVNode(Rm,{class:"deck-buttons no-scrollbar","deck-code":t.deckCode,"deck-id":t.deckId,"show-buttons":r},null,8,["deck-code","deck-id"])]),i.createElementVNode("div",{class:"deck-summary-wrapper",style:i.normalizeStyle(s.value),ref_key:"deckSummary",ref:n},[i.createVNode(Ed,{deck:a.value},null,8,["deck"])],4)]))}});const Pd=M(ote,[["__scopeId","data-v-3ae4be19"]]),lte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1}},cte={class:"deck-highlight-eye"},ute=i.defineComponent({__name:"DeckHighlightEye",props:lte,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:nn(s.value));i.onMounted(()=>{var c;At((c=r.value)==null?void 0:c.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",onShow(){a.value=!0},onCreate(u){o.value.length<1||u.popper.style.setProperty("--tippy-background",`url(https://lor.gg/storage/cards/full-art/${Na(o.value,s.value,1)[0].cardCode}.webp)`)}})}),i.onUnmounted(()=>{A.value=!1});function l(){A.value=!0}return(c,u)=>(i.openBlock(),i.createElementBlock("div",cte,[i.createVNode(i.unref(Te),{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(Ed,{key:0,class:"deck-summary",deck:s.value,"cards-prop":o.value},null,8,["deck","cards-prop"])):i.createCommentVNode("",!0)],512),i.createVNode(RA,{"show-modal":A.value,"onUpdate:showModal":u[0]||(u[0]=d=>A.value=d)},{default:i.withCtx(()=>[i.createVNode(Pd,{cards:o.value,deck:s.value,"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])]),_:1},8,["show-modal"])]))}});const Hd=M(ute,[["__scopeId","data-v-e7108e6f"]]),dte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0}},fte=i.defineComponent({__name:"DeckHighlight",props:dte,setup(e){const t=e,n=i.computed(()=>t.deck?t.deck:St(t.deckCode)),r=i.computed(()=>t.cards?t.cards:nn(n.value)),a=i.computed(()=>Lu(r.value)),A=i.computed(()=>r.value.filter(s=>Us(s)));return(s,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[i.createVNode(Yo,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),i.createVNode(qo,{class:"deck-highlight-cards",cards:A.value,regions:a.value},null,8,["cards","regions"]),i.createVNode(Hd,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])],2))}});const Xa=M(fte,[["__scopeId","data-v-d406c495"]]),hte={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},l3=i.defineComponent({__name:"ArchetypeSidePanel",props:hte,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(Js,{"filter-object":n.filters,"onClear:filterObject":a},{default:i.withCtx(()=>[i.createVNode(Xu,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),i.createVNode(qs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":s[0]||(s[0]=o=>r.sampleSizeFilters=o)},null,8,["filter-array"]),i.createVNode(VA,{"filter-array":r.timeFilters,"onUpdate:filterArray":s[1]||(s[1]=o=>r.timeFilters=o)},null,8,["filter-array"]),i.createVNode(Xs,{"filter-array":r.serverFilters,"onUpdate:filterArray":s[2]||(s[2]=o=>r.serverFilters=o)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const pte={},gte={class:"social-links"},mte={href:"https://discord.gg/tGTSXgDFVU"},vte={href:"https://twitter.com/LORGG__"};function Bte(e,t){const n=i.resolveComponent("FontAwesomeIcon");return i.openBlock(),i.createElementBlock("div",gte,[i.createElementVNode("a",mte,[i.createVNode(n,{icon:["fab","discord"],class:"social-icon"})]),i.createElementVNode("a",vte,[i.createVNode(n,{icon:["fab","twitter"],class:"social-icon"})])])}const c3=M(pte,[["render",Bte],["__scopeId","data-v-9de6c1ad"]]),yte={routerLink:{type:Object,required:!0,default:{path:"/404"}},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:""},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},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e}})}},wte={...Bb,difference:{type:Number,required:!0,default:1}},bte={class:"deck-difference-item"},_te=i.defineComponent({__name:"DeckDifferenceItem",props:wte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",bte,[i.createVNode(tA,{"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 Ym=M(_te,[["__scopeId","data-v-cdadc542"]]),Cte={differences:{type:Array,required:!0,default:[]}},Ete={class:"deck-differences no-scrollbar"},kte=i.defineComponent({__name:"DeckDifferences",props:Cte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Ete,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.differences,a=>(i.openBlock(),i.createBlock(Ym,{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 qm=M(kte,[["__scopeId","data-v-e4cddaa9"]]),u3=e=>(i.pushScopeId("data-v-73731eba"),e=e(),i.popScopeId(),e),Ste={class:"table-card-row-background-wrapper"},xte={class:"table-card-row-background"},Fte=u3(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Ite=[Fte],Ute={class:"decks-row wrapper"},Qte={class:"column-content"},Tte={class:"column-content"},Dte={class:"column-content"},Lte={class:"column-content"},Ote={key:2,class:"column-content"},Mte={class:"column-content"},Nte={key:3,class:"column-content deck-differences-column"},Pte=["onClick"],Hte=u3(()=>i.createElementVNode("div",{class:"column-content region-chart-wrapper"},null,-1)),Rte=i.defineComponent({__name:"DecksRow",props:yte,setup(e){const t=e,n=i.inject(PA),r=i.computed(()=>St(t.deckcode)),a=i.computed(()=>nn(r.value)),A=i.computed(()=>Na(a.value,r.value,2).map(l=>`https://lor.gg/storage/cards/banner/${l.cardCode}.png`)),s=i.computed(()=>{const l=[];if(t.type!=="similar")return l;const c=St(t.comparedDeckcode);for(const[u,d]of Object.entries(r.value))d!==c[u]&&l.push({cardCodeProp:u,difference:d-(c[u]??0),ignoreCardItem:!1,routerLink:t.cardRouterLinkCallback(u)});for(const[u,d]of Object.entries(c))d===r.value[u]||l.some(f=>f.cardCodeProp===u)||l.push({cardCodeProp:u,difference:(r.value[u]??0)-d,ignoreCardItem:!1,routerLink:t.cardRouterLinkCallback(u)});return l});console.log(s.value);function o(){console.log("Options Button Clicked.")}return(l,c)=>{const u=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(u,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>{var d;return[i.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Ste,[i.createElementVNode("div",xte,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,f=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${f})`})},Ite,4))),128))])]),i.createElementVNode("div",Ute,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:c[0]||(c[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Xa,{"deck-code":t.deckcode,deck:r.value,cards:a.value},null,8,["deck-code","deck","cards"])]),t.type==="data"||t.type==="similar"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Qte,i.toDisplayString(i.unref(Qe)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5)],64)):t.type==="built"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Tte,i.toDisplayString(t.name),1),i.createElementVNode("div",Dte,i.toDisplayString(i.unref(n)(t.updatedAt).fromNow()),1),i.createElementVNode("div",Lte,i.toDisplayString(i.unref(n)(t.createdAt).fromNow()),1)],64)):i.createCommentVNode("",!0),t.type!=="similar"?(i.openBlock(),i.createElementBlock("div",Ote,[i.createVNode(dl,{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",Mte,i.toDisplayString((d=i.unref(Gc)(r.value,!0)??i.unref(Gc)(r.value,!1))==null?void 0:d.toLocaleString()),1),t.type==="similar"?(i.openBlock(),i.createElementBlock("div",Nte,[i.createVNode(qm,{differences:s.value},null,8,["differences"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"column-content options-button",onClick:i.withModifiers(o,["stop","prevent"])},[i.createVNode(i.unref(Te),{icon:"ellipsis-v"})],8,Pte),Hte])],4)]}),_:1},8,["to"])}}});const gl=M(Rte,[["__scopeId","data-v-73731eba"]]),Vte={},Kte={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},$te=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),Wte=[$te];function Gte(e,t){return i.openBlock(),i.createElementBlock("svg",Kte,Wte)}const Xm=M(Vte,[["render",Gte]]),zte={...ub,routerLink:{type:Object,required:!0,default:{path:"/404"}}},jte={class:"card-item-link-wrapper"},Yte={key:0,class:"card-item-wrapper"},qte={key:1,class:"card-item-wrapper"},Xte={class:"link-icon"},Jte=i.defineComponent({__name:"CardItemLinkWrapper",props:zte,setup(e){const t=e;return(n,r)=>{const a=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",jte,[n.isDeckBuilder?(i.openBlock(),i.createElementBlock("div",qte,[i.createVNode($a,i.normalizeProps(i.guardReactiveProps(t)),null,16),i.createVNode(a,{class:"link-icon-link",to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("div",Xte,[i.createVNode(Xm)])]),_:1},8,["to"])])):(i.openBlock(),i.createElementBlock("div",Yte,[i.createVNode(a,{to:t.routerLink},{default:i.withCtx(()=>[i.createVNode($a,i.normalizeProps(i.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const Jm=M(Jte,[["__scopeId","data-v-89823586"]]),Zte={name:{type:String,required:!0,default:""}},ene={class:"profile-dropdown-wrapper"},tne=i.defineComponent({__name:"ProfileDropdown",props:Zte,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",ene,[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 Zm=M(tne,[["__scopeId","data-v-1c516824"]]),nne={class:"navigation-top-desktop"},rne={class:"left content"},ane={class:"right content"},Ane={key:1,class:"fancy-button"},sne=i.defineComponent({__name:"NavigationTopDesktop",setup(e){return(t,n)=>{var r;return i.openBlock(),i.createElementBlock("div",nne,[i.createElementVNode("div",rne,[i.createVNode(zu,{class:"search-bar"})]),i.createElementVNode("div",ane,[i.createVNode(mg,{class:"social-links"}),i.createVNode(Qg,{class:"language-selection"}),i.unref(ya)().user?(i.openBlock(),i.createBlock(Zm,{key:0,name:(r=i.unref(ya)().user)==null?void 0:r.name},null,8,["name"])):(i.openBlock(),i.createElementBlock("div",Ane,"Sign In"))])])}}});const e1=M(sne,[["__scopeId","data-v-7a7ae5d4"]]),ine={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
+ .`+Tp+gee+b2)},vee=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},n3=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}(),Bee=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)||(qf(t)||_ee(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=n3.isSameOrigin(t),r=!Yf(t)&&this._options.useCORS===!0&&Ht.SUPPORT_CORS_IMAGES&&!n,a=!Yf(t)&&!n&&!qf(t)&&typeof this._options.proxy=="string"&&Ht.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!Yf(t)&&!qf(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,(Cee(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}(),yee=/^data:image\/svg\+xml/i,wee=/^data:image\/.*;base64,/i,bee=/^data:image\/.*/i,_ee=function(e){return Ht.SUPPORT_SVG_DRAWING||!Eee(e)},Yf=function(e){return bee.test(e)},Cee=function(e){return wee.test(e)},qf=function(e){return e.substr(0,4)==="blob"},Eee=function(e){return e.substr(-3).toLowerCase()==="svg"||yee.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}(),os=function(e,t,n){return new q(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},wc=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=os(this.start,this.startControl,t),a=os(this.startControl,this.endControl,t),A=os(this.endControl,this.end,t),s=os(r,a,t),o=os(a,A,t),l=os(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}(),Nn=function(e){return e.type===1},kee=function(){function e(t){var n=t.styles,r=t.bounds,a=Oi(n.borderTopLeftRadius,r.width,r.height),A=a[0],s=a[1],o=Oi(n.borderTopRightRadius,r.width,r.height),l=o[0],c=o[1],u=Oi(n.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],h=Oi(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,b=r.height-m,w=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+w/3,A-S/3,s-w/3,Re.TOP_LEFT):new q(r.left+S/3,r.top+w/3),this.topRightBorderDoubleOuterBox=A>0||s>0?lt(r.left+v,r.top+w/3,l-C/3,c-w/3,Re.TOP_RIGHT):new q(r.left+r.width-C/3,r.top+w/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+b,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+w*2/3,A-S*2/3,s-w*2/3,Re.TOP_LEFT):new q(r.left+S*2/3,r.top+w*2/3),this.topRightBorderDoubleInnerBox=A>0||s>0?lt(r.left+v,r.top+w*2/3,l-C*2/3,c-w*2/3,Re.TOP_RIGHT):new q(r.left+r.width-C*2/3,r.top+w*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+b,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+w/2,A-S/2,s-w/2,Re.TOP_LEFT):new q(r.left+S/2,r.top+w/2),this.topRightBorderStroke=A>0||s>0?lt(r.left+v,r.top+w/2,l-C/2,c-w/2,Re.TOP_RIGHT):new q(r.left+r.width-C/2,r.top+w/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+b,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+b,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+w,Math.max(0,A-S),Math.max(0,s-w),Re.TOP_LEFT):new q(r.left+S,r.top+w),this.topRightPaddingBox=l>0||c>0?lt(r.left+Math.min(v,r.width-C),r.top+w,v>r.width+C?0:Math.max(0,l-C),Math.max(0,c-w),Re.TOP_RIGHT):new q(r.left+r.width-C,r.top+w),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(b,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+w+T,Math.max(0,A-(S+Q)),Math.max(0,s-(w+T)),Re.TOP_LEFT):new q(r.left+S+Q,r.top+w+T),this.topRightContentBox=l>0||c>0?lt(r.left+Math.min(v,r.width+S+Q),r.top+w+T,v>r.width+S+Q?0:l-S+Q,c-(w+T),Re.TOP_RIGHT):new q(r.left+r.width-(C+U),r.top+w+T),this.bottomRightContentBox=d>0||f>0?lt(r.left+Math.min(B,r.width-(S+Q)),r.top+Math.min(_,r.height+w+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+b,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 wc(new q(e,c),new q(e,c-o),new q(l-s,t),new q(l,t));case Re.TOP_RIGHT:return new wc(new q(e,t),new q(e+s,t),new q(l,c-o),new q(l,c));case Re.BOTTOM_RIGHT:return new wc(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 wc(new q(l,c),new q(l-s,c),new q(e,t+o),new q(e,t))}},Iu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},See=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Uu=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},xee=function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e}(),bc=function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e}(),Fee=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),Iee=function(e){return e.type===0},r3=function(e){return e.type===1},Uee=function(e){return e.type===2},_2=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},Qee=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})},a3=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),A3=function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new kee(this.container),this.container.styles.opacity<1&&this.effects.push(new Fee(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 xee(r,a,A))}if(this.container.styles.overflowX!==0){var s=Iu(this.curves),o=Uu(this.curves);_2(s,o)?this.effects.push(new bc(s,6)):(this.effects.push(new bc(s,2)),this.effects.push(new bc(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!r3(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=Iu(r.curves),o=Uu(r.curves);_2(s,o)||a.unshift(new bc(o,6))}}else a.unshift.apply(a,A);r=r.parent}return a.filter(function(l){return It(l.target,t)})},e}(),Dp=function(e,t,n,r){e.container.elements.forEach(function(a){var A=It(a.flags,4),s=It(a.flags,2),o=new A3(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 a3(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);Dp(o,u,A?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Dp(o,t,n,l);It(a.flags,8)&&s3(a,l)})},s3=function(e,t){for(var n=e instanceof Fp?e.start:1,r=e instanceof Fp?e.reversed:!1,a=0;a<t.length;a++){var A=t[a];A.container instanceof K4&&typeof A.container.value=="number"&&A.container.value!==0&&(n=A.container.value),A.listValue=No(n,A.container.styles.listStyleType,!0),n+=r?-1:1}},Tee=function(e){var t=new A3(e,null),n=new a3(t),r=[];return Dp(t,n,n,r),s3(t.container,r),n},C2=function(e,t){switch(t){case 0:return Hn(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Hn(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Hn(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Hn(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Dee=function(e,t){switch(t){case 0:return Hn(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Hn(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Hn(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Hn(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},Lee=function(e,t){switch(t){case 0:return Hn(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Hn(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Hn(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Hn(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Oee=function(e,t){switch(t){case 0:return _c(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return _c(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return _c(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return _c(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},_c=function(e,t){var n=[];return Nn(e)?n.push(e.subdivide(.5,!1)):n.push(e),Nn(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Hn=function(e,t,n,r){var a=[];return Nn(e)?a.push(e.subdivide(.5,!1)):a.push(e),Nn(n)?a.push(n.subdivide(.5,!0)):a.push(n),Nn(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Nn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},i3=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Qu=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))},Mee=function(e,t){return e===0?t.bounds:e===2?Qu(t):i3(t)},Nee=function(e,t){return e===0?t.bounds:e===2?Qu(t):i3(t)},Xf=function(e,t,n){var r=Mee(hs(e.styles.backgroundOrigin,t),e),a=Nee(hs(e.styles.backgroundClip,t),e),A=Pee(hs(e.styles.backgroundSize,t),n,r),s=A[0],o=A[1],l=Oi(hs(e.styles.backgroundPosition,t),r.width-s,r.height-o),c=Hee(hs(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]},ls=function(e){return We(e)&&e.value===Ss.AUTO},Cc=function(e){return typeof e=="number"},Pee=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=Cc(A);if(We(s)&&(s.value===Ss.CONTAIN||s.value===Ss.COVER)){if(Cc(A)){var c=n.width/n.height;return c<A!=(s.value===Ss.COVER)?[n.width,n.width/A]:[n.height*A,n.height]}return[n.width,n.height]}var u=Cc(r),d=Cc(a),f=u||d;if(ls(s)&&(!o||ls(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)),ls(s)?g=v*A:(!o||ls(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||ls(o))&&(B=u&&d?_/r*a:n.height),B!==null&&ls(s)&&(_=u&&d?B/a*r:n.width),_!==null&&B!==null)return[_,B];throw new Error("Unable to calculate background-size for element")},hs=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},Hee=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))]}},Ree="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E2="Hidden Text",Vee=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=Ree,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(E2)),r.appendChild(A),r.appendChild(a);var o=a.offsetTop-A.offsetTop+2;r.removeChild(A),r.appendChild(this._document.createTextNode(E2)),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}(),o3=function(){function e(t,n){this.context=t,this.options=n}return e}(),Kee=1e4,$ee=function(e){rr(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 Vee(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(),Uee(n)&&(this.ctx.globalAlpha=n.opacity),Iee(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)),r3(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=Gm(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=Yee(n.fontFamily).join(", "),A=pl(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=Qu(n),s=Uu(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,b,m,y,g,v,_,B,b;return Kt(this,function(w){switch(w.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,A=r.styles,s=0,o=r.textNodes,w.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,A)]):[3,4];case 2:w.sent(),w.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof H4))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=w.sent(),this.renderReplacedElement(r,a,v),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof R4&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof V4))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=w.sent(),this.renderReplacedElement(r,a,v),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof G4&&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=w.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),w.label=14;case 14:if(r instanceof zm&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===ku?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(d2),this.ctx.fill(),this.ctx.restore()):r.type===Su&&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(d2),this.ctx.fill(),this.ctx.restore())),Wee(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=zee(r.styles.textAlign),b=Qu(r),m=0,r.styles.textAlign){case 1:m+=b.width/2;break;case 2:m+=b.width;break}y=b.add(m,0,0,-b.height/2+1),this.ctx.save(),this.path([new q(b.left,b.top),new q(b.left+b.width,b.top),new q(b.left+b.width,b.top+b.height),new q(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new oo(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,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return v=w.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return w.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",b=new ra(r.bounds.left,r.bounds.top+qe(r.styles.paddingTop,r.bounds.width),r.bounds.width,Yy(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new oo(n.listValue,b),A.letterSpacing,Yy(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.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=Nn(a)?a.start:a;A===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Nn(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,b,w,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=Xf(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:IX(u)?(p=Xf(n,r,[null,null,null]),T=p[0],j=p[1],K=p[2],Q=p[3],Y=p[4],m=EX(u.angle,Q,Y),y=m[0],g=m[1],v=m[2],_=m[3],B=m[4],b=document.createElement("canvas"),b.width=Q,b.height=Y,w=b.getContext("2d"),C=w.createLinearGradient(g,_,v,B),zy(u.stops,y).forEach(function(te){return C.addColorStop(te.stop,Lt(te.color))}),w.fillStyle=C,w.fillRect(0,0,Q,Y),Q>0&&Y>0&&(k=A.ctx.createPattern(b,"repeat"),A.renderRepeat(T,k,j,K))):UX(u)&&(S=Xf(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?[Km]:u.position,j=qe(X[0],Q),K=qe(X[X.length-1],Y),oe=kX(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,$),zy(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(C2(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=Dee(A,a),this.path(s),this.ctx.fillStyle=Lt(n),this.ctx.fill(),o=Lee(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=!Ma(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=Gee(hs(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ma(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=Iu(n.curves),m=h.inset?0:Kee,y=Qee(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&&!Ma(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,b,w,b,w;return Kt(this,function(C){return this.ctx.save(),o=Oee(A,a),l=C2(A,a),s===2&&(this.path(l),this.ctx.clip()),Nn(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Nn(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&&(Nn(l[0])&&(b=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(w.start.x,w.start.y)]),this.ctx.stroke()),Nn(l[1])&&(b=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(w.start.x,w.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=Tee(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(o3),Wee=function(e){return e instanceof W4||e instanceof $4?!0:e instanceof zm&&e.type!==Su&&e.type!==ku},Gee=function(e,t){switch(e){case 0:return Iu(t);case 2:return See(t);case 1:default:return Uu(t)}},zee=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},jee=["-apple-system","system-ui"],Yee=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return jee.indexOf(t)===-1}):e},qee=function(e){rr(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=xp(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Xee(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}(o3),Xee=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))})},Jee=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,nc([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,nc([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,nc([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,nc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),Zee=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Jee({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new Bee(this,t)}return e.instanceCount=1,e}(),ete=function(e,t){return t===void 0&&(t={}),tte(e,t)};typeof window<"u"&&n3.setContext(window);var tte=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,b,C,w,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=fp({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 ra(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Zee(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 w2(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=jm(f)||nee(f)?QY(f.ownerDocument):Fd(l,f),m=p.width,y=p.height,g=p.left,v=p.top,_=nte(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 qee(l,B),[4,C.render(f)]):[3,3];case 2:return b=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"),w=j4(l,f),_===w.styles.backgroundColor&&(w.styles.backgroundColor=Xr.TRANSPARENT),l.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),C=new $ee(l,B),[4,C.render(w)];case 4:b=ne.sent(),ne.label=5;case 5:return(!((fe=t.removeContainer)!==null&&fe!==void 0)||fe)&&(w2.destroy(h)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,b]}})})},nte=function(e,t,n){var r=t.ownerDocument,a=r.documentElement?so(e,getComputedStyle(r.documentElement).backgroundColor):Xr.TRANSPARENT,A=r.body?so(e,getComputedStyle(r.body).backgroundColor):Xr.TRANSPARENT,s=typeof n=="string"?so(e,n):n===null?Xr.TRANSPARENT:4294967295;return t===r.documentElement?Ma(a)?Ma(A)?s:A:a:s};const rte=i.defineComponent({__name:"CaptureButton",props:UY,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null);i.onMounted(()=>{At(r.value,{content:n("general.captureImage"),arrow:!0})});function a(){console.log(t.element.tagName),ete(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(Te),{icon:"camera"})],512)]))}});const ate=M(rte,[["__scopeId","data-v-4b809ad3"]]),Ate={class:"deck-preview no-scrollbar"},ste={class:"top"},ite={class:"deck-buttons"},ote=i.defineComponent({__name:"DeckPreview",props:IY,setup(e){const t=e,n=i.ref(),r={deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!1,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},a=i.computed(()=>t.deck?t.deck:St(t.deckCode)),A=i.computed(()=>t.cards?t.cards:nn(a.value)),s=i.computed(()=>{var o;return{"--deck-summary-background":`url(https://lor.gg/storage/cards/full-art/${(o=Na(A.value,a.value,1)[0])==null?void 0:o.cardCode}.webp)`}});return(o,l)=>(i.openBlock(),i.createElementBlock("div",Ate,[i.createElementVNode("div",ste,[i.createElementVNode("div",ite,[i.createVNode(ate,{element:n.value},null,8,["element"])]),i.createVNode(Rm,{class:"deck-buttons no-scrollbar","deck-code":t.deckCode,"deck-id":t.deckId,"show-buttons":r},null,8,["deck-code","deck-id"])]),i.createElementVNode("div",{class:"deck-summary-wrapper",style:i.normalizeStyle(s.value),ref_key:"deckSummary",ref:n},[i.createVNode(Ed,{deck:a.value},null,8,["deck"])],4)]))}});const Pd=M(ote,[["__scopeId","data-v-3ae4be19"]]),lte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1}},cte={class:"deck-highlight-eye"},ute=i.defineComponent({__name:"DeckHighlightEye",props:lte,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:nn(s.value));i.onMounted(()=>{var c;At((c=r.value)==null?void 0:c.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",onShow(){a.value=!0},onCreate(u){o.value.length<1||u.popper.style.setProperty("--tippy-background",`url(https://lor.gg/storage/cards/full-art/${Na(o.value,s.value,1)[0].cardCode}.webp)`)}})}),i.onBeforeUnmount(()=>{A.value=!1});function l(){A.value=!0}return(c,u)=>(i.openBlock(),i.createElementBlock("div",cte,[i.createVNode(i.unref(Te),{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(Ed,{key:0,class:"deck-summary",deck:s.value,"cards-prop":o.value},null,8,["deck","cards-prop"])):i.createCommentVNode("",!0)],512),i.createVNode(RA,{"show-modal":A.value,"onUpdate:showModal":u[0]||(u[0]=d=>A.value=d)},{default:i.withCtx(()=>[i.createVNode(Pd,{cards:o.value,deck:s.value,"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])]),_:1},8,["show-modal"])]))}});const Hd=M(ute,[["__scopeId","data-v-42379462"]]),dte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0}},fte=i.defineComponent({__name:"DeckHighlight",props:dte,setup(e){const t=e,n=i.computed(()=>t.deck?t.deck:St(t.deckCode)),r=i.computed(()=>t.cards?t.cards:nn(n.value)),a=i.computed(()=>Lu(r.value)),A=i.computed(()=>r.value.filter(s=>Us(s)));return(s,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[i.createVNode(Yo,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),i.createVNode(qo,{class:"deck-highlight-cards",cards:A.value,regions:a.value},null,8,["cards","regions"]),i.createVNode(Hd,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])],2))}});const Xa=M(fte,[["__scopeId","data-v-d406c495"]]),hte={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},l3=i.defineComponent({__name:"ArchetypeSidePanel",props:hte,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(Js,{"filter-object":n.filters,"onClear:filterObject":a},{default:i.withCtx(()=>[i.createVNode(Xu,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),i.createVNode(qs,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":s[0]||(s[0]=o=>r.sampleSizeFilters=o)},null,8,["filter-array"]),i.createVNode(VA,{"filter-array":r.timeFilters,"onUpdate:filterArray":s[1]||(s[1]=o=>r.timeFilters=o)},null,8,["filter-array"]),i.createVNode(Xs,{"filter-array":r.serverFilters,"onUpdate:filterArray":s[2]||(s[2]=o=>r.serverFilters=o)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}});const pte={},gte={class:"social-links"},mte={href:"https://discord.gg/tGTSXgDFVU"},vte={href:"https://twitter.com/LORGG__"};function Bte(e,t){const n=i.resolveComponent("FontAwesomeIcon");return i.openBlock(),i.createElementBlock("div",gte,[i.createElementVNode("a",mte,[i.createVNode(n,{icon:["fab","discord"],class:"social-icon"})]),i.createElementVNode("a",vte,[i.createVNode(n,{icon:["fab","twitter"],class:"social-icon"})])])}const c3=M(pte,[["render",Bte],["__scopeId","data-v-9de6c1ad"]]),yte={routerLink:{type:Object,required:!0,default:{path:"/404"}},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:""},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},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e}})}},wte={...Bb,difference:{type:Number,required:!0,default:1}},bte={class:"deck-difference-item"},_te=i.defineComponent({__name:"DeckDifferenceItem",props:wte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",bte,[i.createVNode(tA,{"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 Ym=M(_te,[["__scopeId","data-v-cdadc542"]]),Cte={differences:{type:Array,required:!0,default:[]}},Ete={class:"deck-differences no-scrollbar"},kte=i.defineComponent({__name:"DeckDifferences",props:Cte,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Ete,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.differences,a=>(i.openBlock(),i.createBlock(Ym,{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 qm=M(kte,[["__scopeId","data-v-e4cddaa9"]]),u3=e=>(i.pushScopeId("data-v-73731eba"),e=e(),i.popScopeId(),e),Ste={class:"table-card-row-background-wrapper"},xte={class:"table-card-row-background"},Fte=u3(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Ite=[Fte],Ute={class:"decks-row wrapper"},Qte={class:"column-content"},Tte={class:"column-content"},Dte={class:"column-content"},Lte={class:"column-content"},Ote={key:2,class:"column-content"},Mte={class:"column-content"},Nte={key:3,class:"column-content deck-differences-column"},Pte=["onClick"],Hte=u3(()=>i.createElementVNode("div",{class:"column-content region-chart-wrapper"},null,-1)),Rte=i.defineComponent({__name:"DecksRow",props:yte,setup(e){const t=e,n=i.inject(PA),r=i.computed(()=>St(t.deckcode)),a=i.computed(()=>nn(r.value)),A=i.computed(()=>Na(a.value,r.value,2).map(l=>`https://lor.gg/storage/cards/banner/${l.cardCode}.png`)),s=i.computed(()=>{const l=[];if(t.type!=="similar")return l;const c=St(t.comparedDeckcode);for(const[u,d]of Object.entries(r.value))d!==c[u]&&l.push({cardCodeProp:u,difference:d-(c[u]??0),ignoreCardItem:!1,routerLink:t.cardRouterLinkCallback(u)});for(const[u,d]of Object.entries(c))d===r.value[u]||l.some(f=>f.cardCodeProp===u)||l.push({cardCodeProp:u,difference:(r.value[u]??0)-d,ignoreCardItem:!1,routerLink:t.cardRouterLinkCallback(u)});return l});console.log(s.value);function o(){console.log("Options Button Clicked.")}return(l,c)=>{const u=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(u,{to:t.routerLink,class:"wrapper"},{default:i.withCtx(()=>{var d;return[i.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:i.normalizeStyle({"--index":t.index})},[i.createElementVNode("div",Ste,[i.createElementVNode("div",xte,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,f=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${f})`})},Ite,4))),128))])]),i.createElementVNode("div",Ute,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:c[0]||(c[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Xa,{"deck-code":t.deckcode,deck:r.value,cards:a.value},null,8,["deck-code","deck","cards"])]),t.type==="data"||t.type==="similar"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Qte,i.toDisplayString(i.unref(Qe)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5)],64)):t.type==="built"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Tte,i.toDisplayString(t.name),1),i.createElementVNode("div",Dte,i.toDisplayString(i.unref(n)(t.updatedAt).fromNow()),1),i.createElementVNode("div",Lte,i.toDisplayString(i.unref(n)(t.createdAt).fromNow()),1)],64)):i.createCommentVNode("",!0),t.type!=="similar"?(i.openBlock(),i.createElementBlock("div",Ote,[i.createVNode(dl,{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",Mte,i.toDisplayString((d=i.unref(Gc)(r.value,!0)??i.unref(Gc)(r.value,!1))==null?void 0:d.toLocaleString()),1),t.type==="similar"?(i.openBlock(),i.createElementBlock("div",Nte,[i.createVNode(qm,{differences:s.value},null,8,["differences"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"column-content options-button",onClick:i.withModifiers(o,["stop","prevent"])},[i.createVNode(i.unref(Te),{icon:"ellipsis-v"})],8,Pte),Hte])],4)]}),_:1},8,["to"])}}});const gl=M(Rte,[["__scopeId","data-v-73731eba"]]),Vte={},Kte={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},$te=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),Wte=[$te];function Gte(e,t){return i.openBlock(),i.createElementBlock("svg",Kte,Wte)}const Xm=M(Vte,[["render",Gte]]),zte={...ub,routerLink:{type:Object,required:!0,default:{path:"/404"}}},jte={class:"card-item-link-wrapper"},Yte={key:0,class:"card-item-wrapper"},qte={key:1,class:"card-item-wrapper"},Xte={class:"link-icon"},Jte=i.defineComponent({__name:"CardItemLinkWrapper",props:zte,setup(e){const t=e;return(n,r)=>{const a=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",jte,[n.isDeckBuilder?(i.openBlock(),i.createElementBlock("div",qte,[i.createVNode($a,i.normalizeProps(i.guardReactiveProps(t)),null,16),i.createVNode(a,{class:"link-icon-link",to:t.routerLink},{default:i.withCtx(()=>[i.createElementVNode("div",Xte,[i.createVNode(Xm)])]),_:1},8,["to"])])):(i.openBlock(),i.createElementBlock("div",Yte,[i.createVNode(a,{to:t.routerLink},{default:i.withCtx(()=>[i.createVNode($a,i.normalizeProps(i.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const Jm=M(Jte,[["__scopeId","data-v-89823586"]]),Zte={name:{type:String,required:!0,default:""}},ene={class:"profile-dropdown-wrapper"},tne=i.defineComponent({__name:"ProfileDropdown",props:Zte,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",ene,[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 Zm=M(tne,[["__scopeId","data-v-1c516824"]]),nne={class:"navigation-top-desktop"},rne={class:"left content"},ane={class:"right content"},Ane={key:1,class:"fancy-button"},sne=i.defineComponent({__name:"NavigationTopDesktop",setup(e){return(t,n)=>{var r;return i.openBlock(),i.createElementBlock("div",nne,[i.createElementVNode("div",rne,[i.createVNode(zu,{class:"search-bar"})]),i.createElementVNode("div",ane,[i.createVNode(mg,{class:"social-links"}),i.createVNode(Qg,{class:"language-selection"}),i.unref(ya)().user?(i.openBlock(),i.createBlock(Zm,{key:0,name:(r=i.unref(ya)().user)==null?void 0:r.name},null,8,["name"])):(i.openBlock(),i.createElementBlock("div",Ane,"Sign In"))])])}}});const e1=M(sne,[["__scopeId","data-v-7a7ae5d4"]]),ine={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
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"}},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},one={class:"card-similar-cards"},lne=i.defineComponent({__name:"CardSimilarCards",props:ine,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",one,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,s=>(i.openBlock(),i.createBlock(i.unref(Jm),{key:s.cardCode,"card-prop":s,"is-root":!0,"router-link":t.cardRouterLinkCallback(s)},null,8,["card-prop","router-link"]))),128))]))}});const d3=M(lne,[["__scopeId","data-v-fa1e6863"]]),cne={logoType:{type:String,required:!0,default:"logo-and-text"}},f3=e=>(i.pushScopeId("data-v-bb0b24b5"),e=e(),i.popScopeId(),e),une={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},dne=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),fne=[dne],hne={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},pne=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),gne=[pne],mne={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},vne=f3(()=>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)),Bne=f3(()=>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)),yne=[vne,Bne],wne=i.defineComponent({__name:"LogoIcon",props:cne,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(i.openBlock(),i.createElementBlock("svg",une,fne)):t.logoType==="logo-and-text"?(i.openBlock(),i.createElementBlock("svg",hne,gne)):(i.openBlock(),i.createElementBlock("svg",mne,yne))}});const js=M(wne,[["__scopeId","data-v-bb0b24b5"]]),bne={class:"dashboard-sign-up"},_ne={class:"top"},Cne={class:"subtitle"},Ene={class:"fancy-button"},kne=i.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=Ae();return(n,r)=>(i.openBlock(),i.createElementBlock("div",bne,[i.createElementVNode("div",_ne,[i.createVNode(js,{"logo-type":"text-only",class:"logo-icon"}),i.createElementVNode("div",Cne,i.toDisplayString(i.unref(t)("general.becomeTheMaster")),1)]),i.createElementVNode("div",Ene,i.toDisplayString(i.unref(t)("general.signIn")),1)]))}});const h3=M(kne,[["__scopeId","data-v-e398dd28"]]),Sne={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:""}},xne=e=>(i.pushScopeId("data-v-554944b2"),e=e(),i.popScopeId(),e),Fne={class:"match-item"},Ine=xne(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),Une=[Ine],Qne={class:"details"},Tne={class:"match-details"},Dne={class:"game-type"},Lne={class:"time"},One={class:"main"},Mne={class:"container"},Nne={class:"container"},Pne=i.defineComponent({__name:"MatchItem",props:Sne,setup(e){const t=e,{t:n}=Ae(),r=i.inject(PA),a=i.computed(()=>St(t.deckCode)),A=i.computed(()=>St(t.opponentDeckCode)),s=i.computed(()=>[Na(nn(a.value),a.value,1)[0],Na(nn(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",Fne,[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})`})},Une,4))),128))],4),i.createElementVNode("div",Qne,[i.createElementVNode("div",Tne,[i.createElementVNode("div",Dne,i.toDisplayString(t.gameType),1),i.createElementVNode("div",Lne,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",One,[i.createElementVNode("div",Mne,[i.createVNode(Xa,{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",Nne,[i.createVNode(Xa,{class:"deck-highlight opponent",deck:A.value},null,8,["deck"])])])])}}});const p3=M(Pne,[["__scopeId","data-v-554944b2"]]),Hne={players:{type:Array,required:!0,default:[]},playerRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"profile",params:{id:e.user_id}})}},Rne={class:"leaderboard-top-10-region"},Vne=i.defineComponent({__name:"LeaderboardTop10Region",props:Hne,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Rne,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.players,a=>(i.openBlock(),i.createBlock(dn,{key:a.user_id,"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":t.playerRouterLinkCallback(a)},null,8,["card-code-prop","color","mana-number","name","quantity-number","router-link"]))),128))]))}});const t1=M(Vne,[["__scopeId","data-v-71c0fab8"]]),Kne={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},favorite_deck:{type:String,required:!0,default:""},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},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:0},wins:{type:Number,required:!0,default:0},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},$ne={class:"leaderboard-detail-row-background-wrapper"},Wne={class:"leaderboard-detail-row-background"},Gne={class:"leaderboard-detail-row wrapper"},zne={key:1,class:"column-content"},jne={key:3,class:"column-content"},Yne={key:4,class:"column-content"},qne={key:6,class:"column-content deck-highlight-wrapper"},Xne=i.defineComponent({__name:"LeaderboardDetailRow",props:Kne,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",$ne,[i.createElementVNode("div",Wne,[(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",Gne,[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(dn,{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":!0,"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",zne,i.toDisplayString(i.unref(Qe)(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(Te),{class:"icon",icon:"fa-chevron-down"}),i.createElementVNode("span",null,i.toDisplayString(t.change?i.unref(Qe)(Math.abs(t.change)):""),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Test ")],64))],2)):i.createCommentVNode("",!0),t.shownColumns.wins?(i.openBlock(),i.createElementBlock("div",jne,i.toDisplayString(i.unref(Qe)(t.wins)),1)):i.createCommentVNode("",!0),t.shownColumns.matches?(i.openBlock(),i.createElementBlock("div",Yne,i.toDisplayString(i.unref(Qe)(t.matches)),1)):i.createCommentVNode("",!0),t.shownColumns.winrate?(i.openBlock(),i.createElementBlock("div",{key:5,class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5)):i.createCommentVNode("",!0),t.shownColumns.deck?(i.openBlock(),i.createElementBlock("div",qne,[i.createVNode(Xa,{"deck-code":t.favorite_deck},null,8,["deck-code"])])):i.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const n1=M(Xne,[["__scopeId","data-v-d4f92593"]]),Jne={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}};const Zne={},ere=e=>(i.pushScopeId("data-v-5b8e191d"),e=e(),i.popScopeId(),e),tre={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},nre=ere(()=>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)),rre=[nre];function are(e,t){return i.openBlock(),i.createElementBlock("svg",tre,rre)}const r1=M(Zne,[["render",are],["__scopeId","data-v-5b8e191d"]]);const Are={},sre=e=>(i.pushScopeId("data-v-5b6f3d5e"),e=e(),i.popScopeId(),e),ire={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},ore=sre(()=>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)),lre=[ore];function cre(e,t){return i.openBlock(),i.createElementBlock("svg",ire,lre)}const a1=M(Are,[["render",cre],["__scopeId","data-v-5b6f3d5e"]]);const ure={},dre=e=>(i.pushScopeId("data-v-81223df9"),e=e(),i.popScopeId(),e),fre={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},hre=dre(()=>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)),pre=[hre];function gre(e,t){return i.openBlock(),i.createElementBlock("svg",fre,pre)}const A1=M(ure,[["render",gre],["__scopeId","data-v-81223df9"]]),mre=e=>(i.pushScopeId("data-v-527724f4"),e=e(),i.popScopeId(),e),vre=mre(()=>i.createElementVNode("div",{class:"background"},null,-1)),Bre={class:"content"},yre={class:"format"},wre={class:"format-text"},bre={key:0,class:"details built"},_re={class:"title"},Cre={class:"extra-info"},Ere={class:"info-time"},kre={key:1,class:"details stats"},Sre={class:"stat-column"},xre={class:"descriptor"},Fre={class:"stat-column"},Ire={class:"number"},Ure={class:"descriptor"},Qre=i.defineComponent({__name:"DeckBlock",props:Jne,setup(e){const t=e,{t:n}=Ae(),r=i.inject(PA),a=i.computed(()=>St(t.deckcode)),A=i.computed(()=>nn(a.value)),s=i.computed(()=>Lu(A.value)),o=i.computed(()=>A.value.filter(d=>Us(d))),l=i.computed(()=>{var d;return{"--background-image":`url(https://lor.gg/storage/cards/full-art/${(d=Na(A.value,a.value,1)[0])==null?void 0:d.cardCode}.webp)`}}),c=i.computed(()=>wE(A.value)),u=i.computed(()=>c.value.map(d=>we().dataJson.formats[d]).filter(d=>d!==void 0).sort((d,f)=>d.order-f.order)[0]);return console.log(c.value),(d,f)=>{const h=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(h,{to:t.routerLink},{default:i.withCtx(()=>{var p,m,y;return[i.createElementVNode("div",{class:"built-deck-preview",style:i.normalizeStyle(l.value)},[vre,i.createVNode(Hd,{class:"deck-highlight-eye icon","deck-code":t.deckcode,onClick:f[0]||(f[0]=i.withModifiers(()=>{},["stop","prevent"]))},null,8,["deck-code"]),i.createElementVNode("div",{class:"options-button icon",onClick:f[1]||(f[1]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(i.unref(Te),{icon:"ellipsis-v"})]),i.createVNode(Yo,{class:"deck-highlight-regions deck-highlight-section",regions:s.value},null,8,["regions"]),i.createElementVNode("div",Bre,[i.createElementVNode("div",yre,[((p=u.value)==null?void 0:p.nameRef)===i.unref(Rr).Eternal?(i.openBlock(),i.createBlock(r1,{key:0,class:"format-icon"})):((m=u.value)==null?void 0:m.nameRef)===i.unref(Rr).Standard?(i.openBlock(),i.createBlock(a1,{key:1,class:"format-icon"})):(i.openBlock(),i.createBlock(A1,{key:2,class:"format-icon"})),i.createElementVNode("span",wre,i.toDisplayString((y=u.value)==null?void 0:y.name),1)]),i.createVNode(qo,{class:"deck-highlight-cards deck-highlight-section",cards:o.value},null,8,["cards"])]),t.type==="built"?(i.openBlock(),i.createElementBlock("div",bre,[i.createElementVNode("div",_re,i.toDisplayString(t.deckName),1),i.createElementVNode("div",Cre,[i.createElementVNode("div",{class:"info-user",onClick:f[2]||(f[2]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(h,{to:t.playerRouterLink},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.userName),1)]),_:1},8,["to"])]),i.createElementVNode("div",Ere,i.toDisplayString(i.unref(r)(t.updatedAt).fromNow()),1)])])):i.createCommentVNode("",!0),t.type==="stats"?(i.openBlock(),i.createElementBlock("div",kre,[i.createElementVNode("div",Sre,[i.createElementVNode("div",{class:"number",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5),i.createElementVNode("div",xre,i.toDisplayString(i.unref(n)("general.winrate")),1)]),i.createElementVNode("div",Fre,[i.createElementVNode("div",Ire,i.toDisplayString(i.unref(Qe)(t.matches,0,10)),1),i.createElementVNode("div",Ure,i.toDisplayString(i.unref(n)("general.matches")),1)])])):i.createCommentVNode("",!0)],4)]}),_:1},8,["to"])}}});const g3=M(Qre,[["__scopeId","data-v-527724f4"]]),Tre={headingItems:{type:Array,required:!0,default:[]}},Dre={class:"table-wrapper"},Lre={class:"table no-scrollbar"},Ore={class:"heading wrapper"},Mre=i.defineComponent({__name:"SmallTable",props:Tre,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Dre,[i.createElementVNode("div",Lre,[i.createElementVNode("div",Ore,[(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 qA=M(Mre,[["__scopeId","data-v-20cc8387"]]),Nre={players:{type:Array,required:!0,default:[]},playerRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"profile",params:{id:e.user_id}})}},Pre=e=>(i.pushScopeId("data-v-48a25357"),e=e(),i.popScopeId(),e),Hre={class:"leaderboard-top"},Rre=Pre(()=>i.createElementVNode("div",{class:"heading-background"},null,-1)),Vre={class:"heading-wrapper"},Kre=i.defineComponent({__name:"LeaderboardTop",props:Nre,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",Hre,[Rre,i.createElementVNode("div",Vre,[(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(t1,{players:A},null,8,["players"])]))),128))]))}});const m3=M(Kre,[["__scopeId","data-v-48a25357"]]),$re={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},Wre={class:"card-item-3d"},Gre=i.defineComponent({__name:"CardItem3d",props:$re,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=Po(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",Wre,[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 s1=M(Gre,[["__scopeId","data-v-72e7b1ae"]]),zre=e=>(i.pushScopeId("data-v-20998882"),e=e(),i.popScopeId(),e),jre={class:"card-lottery"},Yre={class:"cards-container"},qre={key:0,class:"bottom"},Xre={class:"slice"},Jre={class:"circle-slice-item-wrapper"},Zre={class:"options"},eae={class:"primary-button"},tae={class:"primary-button"},nae=zre(()=>i.createElementVNode("span",null," (23) ",-1)),rae={class:"icon"},aae={class:"circle-card-item-wrapper"},Aae=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",jre,[i.createElementVNode("div",{class:"card-lottery-background",style:i.normalizeStyle(a.value)},null,4),i.createElementVNode("div",Yre,[(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(s1,{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",qre,[i.createElementVNode("div",Xre,[i.createElementVNode("div",Jre,[i.createVNode(dn,{color:"133, 133, 133",name:"Player","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])]),i.createElementVNode("div",Zre,[i.withDirectives(i.createElementVNode("button",eae,null,512),[[c,"cardLottery.setBanner"]]),i.withDirectives(i.createElementVNode("button",tae,null,512),[[c,"cardLottery.setIcon"]]),i.createElementVNode("button",{class:"primary-button",onClick:s},[i.withDirectives(i.createElementVNode("span",null,null,512),[[c,"cardLottery.openAnother"]]),nae])]),i.createElementVNode("div",rae,[i.createElementVNode("div",aae,[i.createVNode(tA,{color:"133, 133, 133","card-code-prop":r.value,"ignore-card-item":!0,"router-link":""},null,8,["card-code-prop"])])])])):i.createCommentVNode("",!0)])}}});const v3=M(Aae,[["__scopeId","data-v-20998882"]]),sae={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:""}},iae={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},i1=i.defineComponent({__name:"WinrateDoughnutChart",props:iae,setup(e){const t=e,n=i.ref(null);Le.register(..._r);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(id),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),oae={class:"dashboard-profile"},lae={class:"profile-banner"},cae=["src"],uae={class:"edit-banner"},dae={class:"profile-text"},fae={class:"profile-region"},hae={class:"profile-tiles"},pae={class:"profile-tile"},gae={class:"tile-content"},mae={class:"games-text"},vae={class:"tile-text"},Bae={class:"profile-tile"},yae={class:"chart-container"},wae={class:"tile-content"},bae={class:"tile-text"},_ae={key:0,class:"profile-premium-expiration"},Cae={class:"profile-premium-expiration-time"},Eae=i.defineComponent({__name:"DashboardProfile",props:sae,setup(e){const t=e,{t:n}=Ae(),r=i.inject(PA);return(a,A)=>{const s=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",oae,[i.createElementVNode("div",lae,[i.createElementVNode("img",{alt:"Profile Banner",src:`https://lor.gg/storage/cards/banner/${t.bannerCardCode??"05BC160"}.png`,class:"profile-banner-img"},null,8,cae),i.createVNode(tA,{"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",uae,[i.createVNode(i.unref(Te),{icon:"pencil-alt"})])]),i.createElementVNode("div",dae,[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",fae,i.toDisplayString(t.server),1)]),i.createElementVNode("div",hae,[i.createElementVNode("div",pae,[i.createElementVNode("div",gae,[i.createElementVNode("div",mae,i.toDisplayString(i.unref(Qe)(t.matches,0,10)),1)]),i.createElementVNode("div",vae,i.toDisplayString(i.unref(n)("general.gamesPlayed")),1)]),i.createElementVNode("div",Bae,[i.createElementVNode("div",yae,[i.createElementVNode("div",wae,[i.createVNode(i1,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),i.createElementVNode("div",bae,i.toDisplayString(i.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(i.openBlock(),i.createElementBlock("div",_ae,[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",Cae,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(Eae,[["__scopeId","data-v-d302d4f0"]]),kae={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function Sae(e,t){const{t:n}=Ae();Le.register(YA),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 y3=i.defineComponent({__name:"LeaderboardChart",props:kae,setup(e){const t=e,n=i.ref();Le.register(..._r),Le.register(YA);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:S1(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:S1(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 Sae(A,t.data.map(s=>s.date)),(s,o)=>(i.openBlock(),i.createBlock(i.unref(R_),{ref_key:"chart",ref:n,"chart-data":a.value,options:A},null,8,["chart-data"]))}}),xae={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},w3=i.defineComponent({__name:"CardQuantityBarChart",props:xae,setup(e){const t=e,{t:n}=Ae(),r=i.ref();Le.register(..._r),Le.register(YA),Le.register(yd);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(sd),{ref_key:"chart",ref:r,"chart-data":a.value,options:A},null,8,["chart-data"]))}}),Fae={data:{type:Array,required:!0,default:""}},b3=i.defineComponent({__name:"WinsLossesBarChart",props:Fae,setup(e){const t=e,{t:n}=Ae(),r=i.ref();Le.register(..._r),Le.register(YA),Le.register(yd);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(${Pa("--color-good-rgb")}, 0.5)`:`rgba(${Pa("--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
879
  ${n("general.winrate")}: ${Qe(f/d*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(u,d){const f=A.value[d.dataIndex];return Qe(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(sd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),Iae={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},_3=i.defineComponent({__name:"RoundCardInfoBarChart",props:Iae,setup(e){const t=e,{t:n}=Ae(),r=i.ref();Le.register(..._r),Le.register(YA),Le.register(yd);const a=i.computed(()=>Object.values(gE(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(sd),{ref_key:"chart",ref:r,"chart-data":A.value,options:s},null,8,["chart-data"]))}}),Uae={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"}},C3=i.defineComponent({__name:"LineChart",props:Uae,setup(e){const t=e,{t:n}=Ae(),r=i.ref();Le.register(..._r),Le.register(YA);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(R_),{ref_key:"chart",ref:r,"chart-data":a.value,options:A.value,plugins:s},null,8,["chart-data","options"]))}}),Qae={deckRows:{type:Array,required:!0,default:[]}},Tae=i.defineComponent({__name:"BuiltDecksTable",props:Qae,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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(gl,{id:l.id,key:l.id,type:"built",deckcode:l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deckcode","name","created-at","updated-at","index"]))),128))]),_:1},8,["heading-items"]))}});const E3=M(Tae,[["__scopeId","data-v-d908953a"]]),Dae={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}},Lae={class:"wrapper"},Oae={class:"champion-column column-content"},Mae={class:"matches-column column-content"},Nae=i.defineComponent({__name:"ProfileRegionRow",props:Dae,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",Lae,[i.createElementVNode("div",Oae,[i.createVNode(jo,{"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",Mae,i.toDisplayString(i.unref(Qe)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const o1=M(Nae,[["__scopeId","data-v-b3f363b1"]]),Pae={rows:{type:Array,required:!0,default:[]}},Hae=i.defineComponent({__name:"ProfileRegionTable",props:Pae,setup(e){const t=e,{t:n}=Ae(),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(qA,{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(o1,{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 k3=M(Hae,[["__scopeId","data-v-2dae645c"]]),Rae={rows:{type:Array,required:!0,default:[]}},Vae={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}},Kae={class:"wrapper"},$ae={class:"champion-column column-content"},Wae={class:"matches-column column-content"},Gae=i.defineComponent({__name:"ProfileArchetypeRow",props:Vae,setup(e){const t=e,n=i.computed(()=>St(t.deckCode)),r=i.computed(()=>nn(n.value)),a=i.computed(()=>{var A;return`https://lor.gg/storage/cards/banner/${(A=Na(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",Kae,[i.createElementVNode("div",$ae,[i.createVNode(Xa,{"deck-code":t.deckCode},null,8,["deck-code"])]),i.createElementVNode("div",Wae,i.toDisplayString(i.unref(Qe)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const l1=M(Gae,[["__scopeId","data-v-91ed15a8"]]),zae=i.defineComponent({__name:"ProfileArchetypeTable",props:Rae,setup(e){const t=e,{t:n}=Ae(),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(qA,{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.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 S3=M(zae,[["__scopeId","data-v-f883a9d9"]]),jae={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}},Yae={class:"leaderboard-options"},qae={class:"multiselects"},Xae={class:"details"},Jae={class:"players"},Zae={class:"updated"},eAe=i.defineComponent({__name:"LeaderboardOptions",props:jae,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.inject(PA),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",Yae,[i.createElementVNode("div",qae,[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",Xae,[i.createElementVNode("div",Jae,[i.createTextVNode(i.toDisplayString(i.unref(r)("leaderboard.totalPlayers"))+": ",1),i.createElementVNode("span",null,i.toDisplayString(i.unref(Qe)(c.value.length)),1)]),i.createElementVNode("div",Zae,[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 x3=M(eAe,[["__scopeId","data-v-0689a8b2"]]),tAe={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e}})}},nAe=i.defineComponent({__name:"SimilarDecksTable",props:tAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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(gl,{key:l.deckcode,type:"similar",deckcode:l.deckcode,matches:l.matches,wins:l.wins,"compared-deckcode":n.originalDeckcode,"router-link":l.routerLink,index:c+2,"card-router-link-callback":n.cardRouterLinkCallback},null,8,["deckcode","matches","wins","compared-deckcode","router-link","index","card-router-link-callback"]))),128))]),_:1},8,["heading-items"]))}});const F3=M(nAe,[["__scopeId","data-v-aefd6e84"]]),rAe={heading:{type:String,required:!1,default:""}},aAe={class:"top"},AAe={class:"heading"},sAe={class:"chart"},iAe=i.defineComponent({__name:"StatisticsPaneContainer",props:rAe,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",aAe,[i.createElementVNode("div",AAe,i.toDisplayString(t.heading),1),i.createVNode(i.unref(Te),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),i.createElementVNode("div",sAe,[i.renderSlot(A.$slots,"default",{},void 0,!0)])],2))}});const I3=M(iAe,[["__scopeId","data-v-f00b184f"]]);function oAe({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 lAe={activeIndex:{type:Number,required:!0,default:0},cardCodes:{type:Array,required:!0,default:[]}},cAe={class:"card-carousel"},uAe=["src"],dAe=i.defineComponent({__name:"CardCarousel",props:lAe,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[oAe];function a(A){t("update:activeIndex",A.activeIndex)}return(A,s)=>(i.openBlock(),i.createElementBlock("div",cAe,[i.createVNode(i.unref(Vw),{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(Kw),{key:o},{default:i.withCtx(()=>[i.createElementVNode("img",{src:`https://lor.gg/storage/cards/card/en_us/${o}.webp`},null,8,uAe)]),_:2},1024))),128))]),_:1})]))}});const U3=M(dAe,[["__scopeId","data-v-a6ffd2e2"]]),fAe={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},hAe={class:"wins-losses-line"},pAe={key:0,class:"details"},gAe={class:"wl-record"},mAe={class:"lines"},vAe=i.defineComponent({__name:"WinsLossesLine",props:fAe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",hAe,[t.showDetails?(i.openBlock(),i.createElementBlock("div",pAe,[i.createElementVNode("span",gAe,i.toDisplayString(t.wins)+"W "+i.toDisplayString(t.matches-t.wins)+"L - ",1),i.createElementVNode("span",{style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"%",5)])):i.createCommentVNode("",!0),i.createElementVNode("div",mAe,[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 c1=M(vAe,[["__scopeId","data-v-511803da"]]),BAe={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},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e}})}},yAe={key:0,class:"wrapper"},wAe={class:"champion-column column-content"},bAe={class:"matches-column column-content"},_Ae=i.defineComponent({__name:"DashboardCardRow",props:BAe,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",yAe,[i.createElementVNode("div",wAe,[i.createVNode(tA,{class:"circle-card-item","card-prop":n.value,"router-link":t.cardRouterLinkCallback(t.cardCode)},null,8,["card-prop","router-link"]),i.createElementVNode("span",null,i.toDisplayString(n.value.name),1)]),i.createElementVNode("div",bAe,i.toDisplayString(i.unref(Qe)(t.matches,0,10)),1),i.createElementVNode("div",{class:"winrate-column column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,1,3))+"% ",5)])):i.createCommentVNode("",!0)],4))}});const u1=M(_Ae,[["__scopeId","data-v-76304a45"]]),CAe={class:"card-page-toggle"},EAe=i.defineComponent({__name:"CardTogglePage",setup(e){const{t}=Ae(),n=i.ref(0);return(r,a)=>(i.openBlock(),i.createElementBlock("div",CAe,[i.createVNode(ju,{"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 Q3=M(EAe,[["__scopeId","data-v-07d07f20"]]),kAe=i.defineComponent({setup(){return{}},mounted(){const e=St("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(BE(e))}}),SAe=i.createElementVNode("h1",null,"TestComponent",-1),xAe=[SAe];function FAe(e,t,n,r,a,A){return i.openBlock(),i.createElementBlock("div",null,xAe)}const T3=M(kAe,[["render",FAe]]),IAe={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}},UAe={class:"wrapper"},QAe={class:"champion-column column-content"},TAe={class:"mana-hexagon"},DAe={class:"mana-number"},LAe={class:"name"},OAe={class:"matches-column column-content"},MAe=i.defineComponent({__name:"DashboardLeaderboardRow",props:IAe,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",UAe,[i.createElementVNode("div",QAe,[i.createElementVNode("div",TAe,[i.createVNode(Go,{class:"hexagon-icon"}),i.createElementVNode("div",DAe,i.toDisplayString(t.rank),1)]),i.createElementVNode("div",LAe,i.toDisplayString(t.name),1)]),i.createElementVNode("div",OAe,i.toDisplayString(i.unref(Qe)(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(Te),{class:"icon",icon:"fa-chevron-down"}),i.createElementVNode("span",null,i.toDisplayString(i.unref(Qe)(Math.abs(t.change),0,10)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Test ")],64))],2)])],4))}});const d1=M(MAe,[["__scopeId","data-v-3d62a718"]]),NAe={date:{type:Date,required:!0,default:[]},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},Jf="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",PAe={class:"reveal-day-option-wrapper"},HAe={class:"card-wrapper"},RAe=["src"],VAe={class:"card-wrapper"},KAe=["src"],$Ae={class:"card-wrapper"},WAe=["src"],GAe=i.defineComponent({__name:"RevealDayOption",props:NAe,setup(e){const t=e,n=i.inject(PA),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",PAe,[i.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:i.normalizeClass(["reveal-day-option",o.value])},[i.createElementVNode("div",HAe,[i.createElementVNode("img",{src:i.unref(Jf),alt:"card",class:"card"},null,8,RAe)]),i.createElementVNode("div",VAe,[i.createElementVNode("img",{src:i.unref(Jf),alt:"card",class:"card"},null,8,KAe)]),i.createElementVNode("div",$Ae,[i.createElementVNode("img",{src:i.unref(Jf),alt:"card",class:"card"},null,8,WAe)])],2),i.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[i.createVNode(qu,{text:s.value},null,8,["text"])],512)]))}});const f1=M(GAe,[["__scopeId","data-v-f3dbe378"]]),zAe={days:{type:Array,required:!0,default:[]}},jAe=e=>(i.pushScopeId("data-v-76ed46ac"),e=e(),i.popScopeId(),e),YAe={class:"reveal-day-options"},qAe=jAe(()=>i.createElementVNode("div",{class:"line"},null,-1)),XAe=i.defineComponent({__name:"RevealDayOptions",props:zAe,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",YAe,[qAe,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.days,(s,o)=>(i.openBlock(),i.createBlock(f1,{key:o,date:s.date,activated:s.activated,soon:s.soon,onClick:l=>r(o)},null,8,["date","activated","soon","onClick"]))),128))]))}});const D3=M(XAe,[["__scopeId","data-v-76ed46ac"]]),JAe={cardCodes:{type:Array,required:!0,default:[]}},ZAe=i.defineComponent({__name:"DashboardNewCards",props:JAe,setup(e){const t=e,{t:n}=Ae(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,A)=>(i.openBlock(),i.createBlock(qA,{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 L3=M(ZAe,[["__scopeId","data-v-89a26f2c"]]),ese={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}},playerRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"profile",params:{id:e.user_id}})}},tse=i.defineComponent({__name:"LeaderboardDetailTable",props:ese,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(o,a);l&&t("sort-updated",l)}return(o,l)=>(i.openBlock(),i.createBlock(eA,{class:"large-table",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(n1,i.mergeProps({key:u},c,{index:u+2,"shown-columns":n.shownColumns,"router-link":n.playerRouterLinkCallback(c)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["style","heading-items"]))}});const O3=M(tse,[["__scopeId","data-v-8d7365c0"]]);const nse={},rse=e=>(i.pushScopeId("data-v-c8a918ec"),e=e(),i.popScopeId(),e),ase={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},Ase=rse(()=>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)),sse=[Ase];function ise(e,t){return i.openBlock(),i.createElementBlock("svg",ase,sse)}const M3=M(nse,[["render",ise],["__scopeId","data-v-c8a918ec"]]);const ose={},lse=e=>(i.pushScopeId("data-v-4a6733fd"),e=e(),i.popScopeId(),e),cse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},use=lse(()=>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)),dse=[use];function fse(e,t){return i.openBlock(),i.createElementBlock("svg",cse,dse)}const h1=M(ose,[["render",fse],["__scopeId","data-v-4a6733fd"]]);const hse={},pse=e=>(i.pushScopeId("data-v-b519ac08"),e=e(),i.popScopeId(),e),gse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},mse=pse(()=>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)),vse=[mse];function Bse(e,t){return i.openBlock(),i.createElementBlock("svg",gse,vse)}const p1=M(hse,[["render",Bse],["__scopeId","data-v-b519ac08"]]);const yse={},wse=e=>(i.pushScopeId("data-v-f1928c9e"),e=e(),i.popScopeId(),e),bse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},_se=wse(()=>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)),Cse=[_se];function Ese(e,t){return i.openBlock(),i.createElementBlock("svg",bse,Cse)}const g1=M(yse,[["render",Ese],["__scopeId","data-v-f1928c9e"]]);const kse={},Sse=e=>(i.pushScopeId("data-v-b1448e85"),e=e(),i.popScopeId(),e),xse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},Fse=Sse(()=>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)),Ise=[Fse];function Use(e,t){return i.openBlock(),i.createElementBlock("svg",xse,Ise)}const m1=M(kse,[["render",Use],["__scopeId","data-v-b1448e85"]]);const Qse={},Tse=e=>(i.pushScopeId("data-v-e5501fa0"),e=e(),i.popScopeId(),e),Dse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lse=Tse(()=>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)),Ose=[Lse];function Mse(e,t){return i.openBlock(),i.createElementBlock("svg",Dse,Ose)}const v1=M(Qse,[["render",Mse],["__scopeId","data-v-e5501fa0"]]),B1={items:{type:Array,required:!0,default:[]}},Nse={...B1,expanded:{type:Boolean,required:!1,default:!1},links:{type:Object,required:!0,default:{gift:{path:"/404"},settings:{path:"/404"},profile:{path:"/404"}}}},Pse={class:"content logo no-scrollbar"},Hse={class:"nav-item"},Rse={class:"nav-icon-wrapper"},Vse={class:"nav-text"},Kse={class:"nav-icon-wrapper"},$se={class:"nav-text"},Wse={class:"profile content"},Gse={class:"nav-icon-wrapper"},zse={class:"nav-text"},jse={class:"nav-icon-wrapper"},Yse={class:"nav-text settings"},qse={class:"nav-icon-wrapper"},Xse={class:"nav-text"},Jse={class:"nav-icon-wrapper"},Zse={class:"nav-text name"},eie={class:"nav-icon-wrapper"},tie={class:"nav-text settings"},nie={class:"nav-icon-wrapper"},rie={class:"nav-text sign-in-container"},aie={class:"fancy-button"},Aie=i.defineComponent({__name:"NavigationSide",props:Nse,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",Pse,[i.createElementVNode("div",Hse,[i.createElementVNode("div",Rse,[i.createVNode(js,{"logo-type":"logo-only"})]),i.createElementVNode("div",Vse,[i.createVNode(js,{"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(cs.RouterLink),{key:u.text,to:u.routerLocation,class:i.normalizeClass(["nav-item",u.highlighted?"highlight":""])},{default:i.withCtx(()=>[i.createElementVNode("div",Kse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:u.faIcon},null,8,["icon"])]),i.createElementVNode("div",$se,i.toDisplayString(u.text),1)]),_:2},1032,["to","class"]))),128))],512),i.createElementVNode("div",Wse,[i.unref(ya)().user?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(cs.RouterLink),{to:n.links.gift,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",Gse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"gift"})]),i.createElementVNode("div",zse,i.toDisplayString(i.unref(r)("general.openCards")),1)]),_:1},8,["to"]),i.createVNode(i.unref(cs.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",jse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",Yse,[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(Te),{icon:"language"})])])]),_:1},8,["to"]),i.createElementVNode("div",{class:"nav-item",onClick:c[1]||(c[1]=u=>t("click:sync"))},[i.createElementVNode("div",qse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"rotate-right"})]),i.createElementVNode("div",Xse,i.toDisplayString(i.unref(r)("general.syncUserData")),1)]),i.createVNode(i.unref(cs.RouterLink),{to:n.links.profile,class:"nav-item"},{default:i.withCtx(()=>{var u,d,f;return[i.createElementVNode("div",Jse,[i.createVNode(tA,{"card-code-prop":((u=i.unref(ya)().user)==null?void 0:u.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(d=i.unref(ya)().user)==null?void 0:d.selectedBannerColor,"router-link":n.links.profile},null,8,["card-code-prop","color-override","router-link"])]),i.createElementVNode("div",Zse,i.toDisplayString((f=i.unref(ya)().user)==null?void 0:f.name),1)]}),_:1},8,["to"])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(i.unref(cs.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",eie,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",tie,[i.createElementVNode("div",null,i.toDisplayString(i.unref(r)("general.settings")),1),i.createVNode(i.unref(Te),{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",nie,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),i.createElementVNode("div",rie,[i.createElementVNode("div",aie,i.toDisplayString(i.unref(r)("general.signIn")),1)])])],64))])],2))}});const y1=M(Aie,[["__scopeId","data-v-1728bf4e"]]),sie=i.defineComponent({__name:"NavigationTopMobile",props:B1,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),r.value=!1}),(c,u)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"navigationTopMobile",ref:A,class:"navigation-top-mobile"},[n.value?(i.openBlock(),i.createBlock(zu,{key:1,ref_key:"searchBar",ref:a,class:"search-bar"},null,512)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Te),{class:"icon",icon:"bars",onClick:l}),i.createVNode(js,{class:"logo-icon","logo-type":"text-only"}),i.createVNode(i.unref(Te),{class:"icon",icon:"search",onClick:i.withModifiers(o,["stop","prevent"])},null,8,["onClick"])],64)),i.createVNode(RA,{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=d=>r.value=d)},{default:i.withCtx(()=>[i.createVNode(y1,i.mergeProps({class:"navigation-side"},t,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512))}});const w1=M(sie,[["__scopeId","data-v-625374ba"]]),iie={class:"navigation-top"},oie=i.defineComponent({__name:"NavigationTop",props:B1,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",iie,[i.createVNode(e1,i.mergeProps({class:"navigation-top-desktop"},t),null,16),i.createVNode(w1,i.mergeProps({class:"navigation-top-mobile"},t),null,16)]))}});const N3=M(oie,[["__scopeId","data-v-6df2641b"]]),lie={modelValue:{type:String,required:!0,default:!1}},cie=["value"],uie=i.defineComponent({__name:"ColorPicker",props:lie,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,cie))}});const P3=M(uie,[["__scopeId","data-v-5ebbd7eb"]]),die={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},fie={class:"multiselect-wrapper"},hie=i.defineComponent({__name:"DashboardLeaderboardTable",props:die,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(qA,{class:"small-table","heading-items":A},{heading:i.withCtx(()=>[i.createElementVNode("div",fie,[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(d1,{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 H3=M(hie,[["__scopeId","data-v-fe0f916c"]]),pie={routerLink:{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:[]}},gie=e=>(i.pushScopeId("data-v-701110d9"),e=e(),i.popScopeId(),e),mie={class:"table-card-row-background-wrapper"},vie={class:"table-card-row-background"},Bie=gie(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),yie=[Bie],wie={class:"archetypes-row wrapper"},bie={class:"column-content"},_ie={class:"column-content"},Cie=i.defineComponent({__name:"ArchetypesRow",props:pie,setup(e){const t=e,n=i.computed(()=>St(t.deckcode)),r=i.computed(()=>nn(n.value)),a=i.computed(()=>t.cards.map(A=>`https://lor.gg/storage/cards/banner/${A}.png`));return(A,s)=>{const o=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(o,{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",mie,[i.createElementVNode("div",vie,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${l})`})},yie,4))),128))])]),i.createElementVNode("div",wie,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Xa,{"deck-code":t.deckcode,deck:n.value,cards:r.value},null,8,["deck-code","deck","cards"])]),i.createElementVNode("div",bie,i.toDisplayString(i.unref(Qe)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,2,3)+"%"),5),i.createElementVNode("div",_ie,i.toDisplayString(i.unref(Qe)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const b1=M(Cie,[["__scopeId","data-v-701110d9"]]),Eie={archetypeRows:{type:Array,required:!0,default:[]}},kie=i.defineComponent({__name:"ArchetypesTable",props:Eie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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(b1,{key:l.deckcode,"archetype-id":l.archetypeId,cards:l.cards,deckcode:l.deckcode,index:c+2,matches:l.matches,playrate:l.playrate,regions:l.regions,wins:l.wins,"router-link":l.routerLink},null,8,["archetype-id","cards","deckcode","index","matches","playrate","regions","wins","router-link"]))),128))]),_:1},8,["heading-items"]))}});const R3=M(kie,[["__scopeId","data-v-34fdc124"]]),Sie={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},xie={class:"number-container"},Fie={key:0,class:"type-icon"},Iie=i.defineComponent({__name:"DeckBuilderSummaryType",props:Sie,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",xie,i.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(i.openBlock(),i.createElementBlock("div",Fie,[t.typeSummary.typeRef==="Champion"?(i.openBlock(),i.createBlock(p1,{key:0})):t.typeSummary.typeRef==="Follower"?(i.openBlock(),i.createBlock(h1,{key:1})):t.typeSummary.typeRef==="Spell"?(i.openBlock(),i.createBlock(m1,{key:2})):t.typeSummary.typeRef==="Landmark"?(i.openBlock(),i.createBlock(g1,{key:3})):t.typeSummary.typeRef==="Equipment"?(i.openBlock(),i.createBlock(v1,{key:4})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],2))}});const Ba=M(Iie,[["__scopeId","data-v-2e6bb287"]]),Uie={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},Qie={class:"deck-builder-summary"},Tie=i.defineComponent({__name:"DeckBuilderSummary",props:Uie,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",Qie,[i.createVNode(Ba,{"type-summary":r.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":a.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":A.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":s.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":o.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":l.value},null,8,["type-summary"])]))}});const _1=M(Tie,[["__scopeId","data-v-ec8f0fa9"]]),Die={rows:{type:Array,required:!0,default:[]}},Lie=i.defineComponent({__name:"DashboardCardTable",props:Die,setup(e){const t=e,{t:n}=Ae(),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(qA,{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(u1,{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 V3=M(Lie,[["__scopeId","data-v-e5817be3"]]),Oie={modelValue:{type:Number,required:!0,default:5}},Mie=["value"],Nie=i.defineComponent({__name:"ZoomSlider",props:Oie,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,Mie)],512)])}}});const K3=M(Nie,[["__scopeId","data-v-bac83f78"]]),Pie={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},Rd=e=>(i.pushScopeId("data-v-fe063557"),e=e(),i.popScopeId(),e),Hie={class:"card-overview"},Rie={class:"overview-top"},Vie={class:"card-name"},Kie={class:"card-tags"},$ie={class:"card-tag"},Wie={class:"card-tag-text"},Gie={class:"card-tag"},zie={class:"card-tag-text"},jie={class:"card-tag"},Yie={class:"card-tag-text"},qie={class:"card-tag"},Xie={class:"card-tag-text"},Jie=Rd(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),Zie={class:"card-text"},eoe=Rd(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),toe={class:"keyword-description"},noe={class:"keyword-name"},roe=Rd(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),aoe={class:"flavor-text"},Aoe=Rd(()=>i.createElementVNode("div",{class:"card-art-section"},[i.createElementVNode("div",{class:"card-art-button primary-button"},"Card Art")],-1)),soe=i.defineComponent({__name:"CardOverview",props:Pie,setup(e){const t=e,n=Po(t.cardProp,t.cardCodeProp,!0),r=i.computed(()=>{if(n.value===void 0)return[];const l=[];for(const c of n.value.keywordRefs){const u=we().dataJson.keywords.find(d=>d.nameRef===c);u&&l.push(u)}return l}),a=i.computed(()=>{if(n.value===void 0)return null;const l=we().dataJson;return co(n.value.regionRefs[0])?l.runeterraChampions.find(c=>c.nameRef===n.value.regionRefs[0])??l.regions[0]:l.regions.find(c=>c.nameRef===n.value.regionRefs[0])??l.regions[0]}),A=i.computed(()=>n.value===void 0?null:we().dataJson.rarities.find(l=>l.nameRef===n.value.rarityRef)??we().dataJson.rarities[0]),s=i.computed(()=>n.value===void 0?null:we().dataJson.types.find(l=>l.nameRef===n.value.typeRef)??we().dataJson.types[0]),o=i.computed(()=>n.value===void 0?null:we().dataJson.sets.find(l=>l.nameRef===n.value.set)??we().dataJson.sets[0]);return(l,c)=>{var u,d,f,h,p,m,y,g;return i.openBlock(),i.createElementBlock("div",Hie,[i.unref(n)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Rie,[i.createElementVNode("div",Vie,i.toDisplayString(i.unref(n).name),1),i.createVNode(i.unref(Te),{icon:"times",class:"close-icon"})]),i.createElementVNode("div",Kie,[i.createElementVNode("div",$ie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((u=a.value)==null?void 0:u.icon)??""})`})},null,4),i.createElementVNode("div",Wie,i.toDisplayString((d=a.value)==null?void 0:d.name),1)]),i.createElementVNode("div",Gie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((f=A.value)==null?void 0:f.icon)??""})`})},null,4),i.createElementVNode("div",zie,i.toDisplayString((h=A.value)==null?void 0:h.name),1)]),i.createElementVNode("div",jie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((p=s.value)==null?void 0:p.icon)??""})`})},null,4),i.createElementVNode("div",Yie,i.toDisplayString((m=s.value)==null?void 0:m.name),1)]),i.createElementVNode("div",qie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((y=o.value)==null?void 0:y.icon)??""})`})},null,4),i.createElementVNode("div",Xie,i.toDisplayString((g=o.value)==null?void 0:g.name),1)])]),Jie,i.createElementVNode("div",Zie,i.toDisplayString(i.unref(n).descriptionRaw),1),eoe,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,v=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:v.nameRef},[i.createElementVNode("div",toe,[i.createElementVNode("b",noe,i.toDisplayString(v.name+" - "),1),i.createElementVNode("span",null,i.toDisplayString(v.description),1)]),roe],64))),128)),i.createElementVNode("div",aoe,i.toDisplayString(i.unref(n).flavorText),1),Aoe],64)):i.createCommentVNode("",!0)])}}});const $3=M(soe,[["__scopeId","data-v-fe063557"]]),ioe={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},ooe={class:"profile-game-type-winrate"},loe={class:"game-type"},coe=i.defineComponent({__name:"ProfileGameTypeWinrate",props:ioe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",ooe,[i.createElementVNode("div",loe,i.toDisplayString(t.gameType),1),i.createVNode(c1,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const W3=M(coe,[["__scopeId","data-v-1bb3c9de"]]),uoe={deckRows:{type:Array,required:!0,default:[]}},doe=i.defineComponent({__name:"DecksTable",props:uoe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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(gl,{key:l.deckCode,type:"data",deckcode:l.deckCode,matches:l.matches,wins:l.wins,"router-link":l.routerLink,index:c+2},null,8,["deckcode","matches","wins","router-link","index"]))),128))]),_:1},8,["heading-items"]))}});const G3=M(doe,[["__scopeId","data-v-930c1493"]]),foe={deckCode:{type:String,required:!1,default:""},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},hoe={deck:{type:Object,required:!0,default:{}}},poe={class:"deck-preview-wrapper"},goe=i.defineComponent({__name:"ShowDeckPreviewButton",props:hoe,setup(e){const t=e,{t:n}=Ae(),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(Te),{icon:"camera"})],512),i.createVNode(RA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",poe,[i.createVNode(i.unref(Pd),{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const moe=M(goe,[["__scopeId","data-v-52db4752"]]),voe={class:"cards-container no-scrollbar"},Boe={class:"bottom"},yoe={class:"bottom-buttons"},woe={class:"fancy-button"},z3=i.defineComponent({__name:"DeckBuilderSidePanel",props:foe,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.computed(()=>{if(n.deckCode)return St(n.deckCode);throw new Error("Deck or DeckCode must be defined")}),A=i.computed(()=>nn(a.value));return(s,o)=>(i.openBlock(),i.createBlock(Js,{"show-clear-all":!1},{default:i.withCtx(()=>[i.createVNode(i.unref(_1),{cards:A.value,deck:a.value},null,8,["cards","deck"]),i.createVNode(i.unref(dl),{class:"mana-curve-chart","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",voe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,l=>(i.openBlock(),i.createBlock(i.unref(dn),{"onUpdate:cardQuantity":o[0]||(o[0]=c=>t("update:card-quantity",c)),key:l.cardCode,"card-prop":l,"maintain-aspect-ratio":!0,"quantity-number":a.value[l.cardCode],"show-plus-minus":!0,class:"card-slice-item"},null,8,["card-prop","quantity-number"]))),128))]),i.createElementVNode("div",Boe,[i.createElementVNode("div",yoe,[i.createVNode(i.unref(Sd),{deck:a.value},null,8,["deck"]),i.createVNode(i.unref(kd),{"deck-code":n.deckCode},null,8,["deck-code"]),i.createVNode(moe,{deck:a.value},null,8,["deck"]),i.createVNode(i.unref(xd),{"deck-code":n.deckCode},null,8,["deck-code"])]),i.createElementVNode("div",woe,i.toDisplayString(i.unref(r)("general.save")),1)])]),_:1}))}});const boe={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},j3=i.defineComponent({__name:"RegionDistributionChart",props:boe,setup(e){const t=e,n=i.ref(null);Le.register(..._r);const r=i.computed(()=>({labels:t.data.map(A=>A.region),datasets:[{data:t.data.map(A=>A.matches),backgroundColor:t.data.map(A=>F2(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:`${Op(o[l])} (${A.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Pa("--color-0"),fillStyle:A.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(A,s)=>(i.openBlock(),i.createBlock(i.unref(id),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),_oe={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},Y3=i.defineComponent({__name:"SimpleDoughnutChart",props:_oe,setup(e){const t=e,n=i.ref(null);Le.register(..._r);const r=i.computed(()=>({labels:["Value","Max"],datasets:[{data:[t.value,t.max-t.value],backgroundColor:[Pa("--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=Pa("--color-good"),c.fillText(f,h,p),c.save()}}];return(s,o)=>(i.openBlock(),i.createBlock(i.unref(id),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),Coe={install:async e=>{e.component("RevealCarousel",pg),e.component("SearchBar",zu),e.component("SocialLinks",mg),e.component("ModalItem",RA),e.component("FilterSampleSize",qs),e.component("FilterRanks",hb),e.component("FilterManaCost",vg),e.component("FilterRarities",Bg),e.component("FilterSets",yg),e.component("FilterKeywords",wg),e.component("FilterServers",Xs),e.component("FilterTime",VA),e.component("FilterCardCodes",Yu),e.component("FilterDecks",pb),e.component("FilterProfile",gb),e.component("FilterText",ru),e.component("FilterAdvanced",kg),e.component("FilterRegions",zo),e.component("FilterCards",mb),e.component("AdvancedFilterItem",Eg),e.component("FilterTypes",Sg),e.component("RegionsLine",xg),e.component("CardsTable",vb),e.component("DeckHighlightRegions",Yo),e.component("GemsCost",Ug),e.component("CardSliceItem",dn),e.component("LanguageSelection",Qg),e.component("DeckSidePanel",A4),e.component("DeckHighlight",Xa),e.component("ArchetypeSidePanel",l3),e.component("OpenInDeckBuilderButton",Om),e.component("CopyDeckButton",kd),e.component("UpdateDeckPrivacyButton",Nm),e.component("EditDeckNameButton",Dm),e.component("UploadDeckToLorButton",xd),e.component("DeleteDeckButton",Tm),e.component("OpenArchetypePageButton",Lm),e.component("SimulateMulliganButton",Sd),e.component("SocialMediaLinks",c3),e.component("DecksRow",gl),e.component("CardItemLinkWrapper",Jm),e.component("DeckHighlightCards",qo),e.component("CheckboxItem",tn),e.component("NavigationTopDesktop",e1),e.component("SidePanelSectionPane",mt),e.component("CardSimilarCards",d3),e.component("DashboardSignUp",h3),e.component("MatchItem",p3),e.component("ToggleSwitch",ju),e.component("LeaderboardTop10Region",t1),e.component("ShareButton",Hm),e.component("LeaderboardDetailRow",n1),e.component("DeckBlock",g3),e.component("SmallTable",qA),e.component("LeaderboardTop",m3),e.component("CardLottery",v3),e.component("DashboardProfile",B3),e.component("LeaderboardChart",y3),e.component("CardQuantityBarChart",w3),e.component("WinsLossesBarChart",b3),e.component("RoundCardInfoBarChart",_3),e.component("LineChart",C3),e.component("ManaCurveChart",dl),e.component("WinrateDoughnutChart",i1),e.component("InfoDoughnutChart",pu),e.component("BuiltDecksTable",E3),e.component("ProfileRegionTable",k3),e.component("ProfileArchetypeTable",S3),e.component("CardItem3d",s1),e.component("LeaderboardOptions",x3),e.component("SimilarDecksTable",F3),e.component("LargeTable",eA),e.component("StatisticsPaneContainer",I3),e.component("ArchetypeSidePanelHighlight",Xu),e.component("CardCarousel",U3),e.component("DeckButtons",Rm),e.component("WinsLossesLine",c1),e.component("DashboardCardRow",u1),e.component("CardTogglePage",Q3),e.component("TestComponent",T3),e.component("DashboardLeaderboardRow",d1),e.component("DeckPreview",Pd),e.component("CheckboxItemManaCost",nu),e.component("RevealDayOptions",D3),e.component("DeckDifferenceItem",Ym),e.component("DashboardNewCards",L3),e.component("CardsRow",Fg),e.component("LeaderboardDetailTable",O3),e.component("DeckIcon",M3),e.component("LogoIcon",js),e.component("FollowerIcon",h1),e.component("ChampionIcon",p1),e.component("EternalIcon",r1),e.component("InfoIcon",Xm),e.component("LandmarkIcon",g1),e.component("ManaHexagonIcon",Go),e.component("RuneterraIcon",Pm),e.component("ShardsIcon",Ig),e.component("StandardIcon",a1),e.component("SpellIcon",m1),e.component("GauntletIcon",A1),e.component("EquipmentIcon",v1),e.component("NavigationTop",N3),e.component("CardMultiselect",bg),e.component("ProfileDropdown",Zm),e.component("ColorPicker",P3),e.component("DashboardLeaderboardTable",H3),e.component("NavigationSide",y1),e.component("ArchetypesTable",R3),e.component("DeckBuilderSummary",_1),e.component("DeckBuilderSummaryType",Ba),e.component("DashboardCardTable",V3),e.component("ArchetypesRow",b1),e.component("RevealDayOption",f1),e.component("DeckHighlightEye",Hd),e.component("DeckDifferences",qm),e.component("ZoomSlider",K3),e.component("CardOverview",$3),e.component("CircleCardItem",tA),e.component("ProfileGameTypeWinrate",W3),e.component("DecksTable",G3),e.component("RegionItem",jo),e.component("TippyText",qu),e.component("ProfileRegionRow",o1),e.component("SimulateMulligan",Mm),e.component("DeckSummary",Ed),e.component("NavigationTopMobile",w1),e.component("CardItem",$a),e.component("ProfileArchetypeRow",l1),e.component("DeckBuilderSidePanel",z3),e.component("SimpleDoughnutChart",Y3),e.component("RegionDistributionChart",j3),e.component("FontAwesomeIcon",Te),e.component("Multiselect",Vt)}};exports.AdvancedFilterItem=Eg;exports.ArchetypeSidePanel=l3;exports.ArchetypeSidePanelHighlight=Xu;exports.ArchetypesRow=b1;exports.ArchetypesTable=R3;exports.BuiltDecksTable=E3;exports.CardCarousel=U3;exports.CardItem=$a;exports.CardItem3d=s1;exports.CardItemLinkWrapper=Jm;exports.CardLottery=v3;exports.CardMultiselect=bg;exports.CardOverview=$3;exports.CardQuantityBarChart=w3;exports.CardSimilarCards=d3;exports.CardSliceItem=dn;exports.CardTogglePage=Q3;exports.CardsRow=Fg;exports.CardsTable=vb;exports.ChampionIcon=p1;exports.CheckboxItem=tn;exports.CheckboxItemManaCost=nu;exports.CircleCardItem=tA;exports.ColorPicker=P3;exports.CopyDeckButton=kd;exports.DashboardCardRow=u1;exports.DashboardCardTable=V3;exports.DashboardLeaderboardRow=d1;exports.DashboardLeaderboardTable=H3;exports.DashboardNewCards=L3;exports.DashboardProfile=B3;exports.DashboardSignUp=h3;exports.DeckBlock=g3;exports.DeckBuilderSidePanel=z3;exports.DeckBuilderSummary=_1;exports.DeckBuilderSummaryType=Ba;exports.DeckButtons=Rm;exports.DeckDifferenceItem=Ym;exports.DeckDifferences=qm;exports.DeckHighlight=Xa;exports.DeckHighlightCards=qo;exports.DeckHighlightEye=Hd;exports.DeckHighlightRegions=Yo;exports.DeckIcon=M3;exports.DeckPreview=Pd;exports.DeckSidePanel=A4;exports.DeckSummary=Ed;exports.DecksRow=gl;exports.DecksTable=G3;exports.DeleteDeckButton=Tm;exports.EditDeckNameButton=Dm;exports.EquipmentIcon=v1;exports.EternalIcon=r1;exports.FilterAdvanced=kg;exports.FilterCardCodes=Yu;exports.FilterCards=mb;exports.FilterDecks=pb;exports.FilterKeywords=wg;exports.FilterManaCost=vg;exports.FilterProfile=gb;exports.FilterRanks=hb;exports.FilterRarities=Bg;exports.FilterRegions=zo;exports.FilterSampleSize=qs;exports.FilterServers=Xs;exports.FilterSets=yg;exports.FilterText=ru;exports.FilterTime=VA;exports.FilterTypes=Sg;exports.FollowerIcon=h1;exports.GauntletIcon=A1;exports.GemsCost=Ug;exports.InfoDoughnutChart=pu;exports.InfoIcon=Xm;exports.LandmarkIcon=g1;exports.LanguageSelection=Qg;exports.LargeTable=eA;exports.LeaderboardChart=y3;exports.LeaderboardDetailRow=n1;exports.LeaderboardDetailTable=O3;exports.LeaderboardOptions=x3;exports.LeaderboardTop=m3;exports.LeaderboardTop10Region=t1;exports.LineChart=C3;exports.LogoIcon=js;exports.ManaCurveChart=dl;exports.ManaHexagonIcon=Go;exports.MatchItem=p3;exports.ModalItem=RA;exports.NavigationSide=y1;exports.NavigationTop=N3;exports.NavigationTopDesktop=e1;exports.NavigationTopMobile=w1;exports.OpenArchetypePageButton=Lm;exports.OpenInDeckBuilderButton=Om;exports.ProfileArchetypeRow=l1;exports.ProfileArchetypeTable=S3;exports.ProfileDropdown=Zm;exports.ProfileGameTypeWinrate=W3;exports.ProfileRegionRow=o1;exports.ProfileRegionTable=k3;exports.RegionDistributionChart=j3;exports.RegionItem=jo;exports.RegionsLine=xg;exports.RevealCarousel=pg;exports.RevealDayOption=f1;exports.RevealDayOptions=D3;exports.RoundCardInfoBarChart=_3;exports.RuneterraIcon=Pm;exports.SearchBar=zu;exports.ShardsIcon=Ig;exports.ShareButton=Hm;exports.SidePanelSectionPane=mt;exports.SimilarDecksTable=F3;exports.SimpleDoughnutChart=Y3;exports.SimulateMulligan=Mm;exports.SimulateMulliganButton=Sd;exports.SmallTable=qA;exports.SocialLinks=mg;exports.SocialMediaLinks=c3;exports.SpellIcon=m1;exports.StandardIcon=a1;exports.StatisticsPaneContainer=I3;exports.TestComponent=T3;exports.TippyText=qu;exports.ToggleSwitch=ju;exports.UpdateDeckPrivacyButton=Nm;exports.UploadDeckToLorButton=xd;exports.WinrateDoughnutChart=i1;exports.WinsLossesBarChart=b3;exports.WinsLossesLine=c1;exports.ZoomSlider=K3;exports.default=Coe;exports.getCardsFromDeck=nn;exports.getDate=hE;exports.getDeckObjectFromCode=St;exports.getMostImportantCards=Na;exports.getRegionNameOfRegionRef=Op;exports.importIcons=_8;exports.keyDayjs=PA;exports.regionOfCard=Mp;exports.setDescription=bE;exports.setTitle=_E;exports.setupi18n=TS;exports.useCardJsonObjectStore=jt;exports.useCardJsonStore=Ag;exports.useDataJsonStore=we;exports.useUserStore=ya;
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",PAe,[i.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:i.normalizeClass(["reveal-day-option",o.value])},[i.createElementVNode("div",HAe,[i.createElementVNode("img",{src:i.unref(Jf),alt:"card",class:"card"},null,8,RAe)]),i.createElementVNode("div",VAe,[i.createElementVNode("img",{src:i.unref(Jf),alt:"card",class:"card"},null,8,KAe)]),i.createElementVNode("div",$Ae,[i.createElementVNode("img",{src:i.unref(Jf),alt:"card",class:"card"},null,8,WAe)])],2),i.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[i.createVNode(qu,{text:s.value},null,8,["text"])],512)]))}});const f1=M(GAe,[["__scopeId","data-v-f3dbe378"]]),zAe={days:{type:Array,required:!0,default:[]}},jAe=e=>(i.pushScopeId("data-v-76ed46ac"),e=e(),i.popScopeId(),e),YAe={class:"reveal-day-options"},qAe=jAe(()=>i.createElementVNode("div",{class:"line"},null,-1)),XAe=i.defineComponent({__name:"RevealDayOptions",props:zAe,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",YAe,[qAe,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.days,(s,o)=>(i.openBlock(),i.createBlock(f1,{key:o,date:s.date,activated:s.activated,soon:s.soon,onClick:l=>r(o)},null,8,["date","activated","soon","onClick"]))),128))]))}});const D3=M(XAe,[["__scopeId","data-v-76ed46ac"]]),JAe={cardCodes:{type:Array,required:!0,default:[]}},ZAe=i.defineComponent({__name:"DashboardNewCards",props:JAe,setup(e){const t=e,{t:n}=Ae(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,A)=>(i.openBlock(),i.createBlock(qA,{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 L3=M(ZAe,[["__scopeId","data-v-89a26f2c"]]),ese={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}},playerRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"profile",params:{id:e.user_id}})}},tse=i.defineComponent({__name:"LeaderboardDetailTable",props:ese,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(o,a);l&&t("sort-updated",l)}return(o,l)=>(i.openBlock(),i.createBlock(eA,{class:"large-table",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(n1,i.mergeProps({key:u},c,{index:u+2,"shown-columns":n.shownColumns,"router-link":n.playerRouterLinkCallback(c)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["style","heading-items"]))}});const O3=M(tse,[["__scopeId","data-v-8d7365c0"]]);const nse={},rse=e=>(i.pushScopeId("data-v-c8a918ec"),e=e(),i.popScopeId(),e),ase={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},Ase=rse(()=>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)),sse=[Ase];function ise(e,t){return i.openBlock(),i.createElementBlock("svg",ase,sse)}const M3=M(nse,[["render",ise],["__scopeId","data-v-c8a918ec"]]);const ose={},lse=e=>(i.pushScopeId("data-v-4a6733fd"),e=e(),i.popScopeId(),e),cse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},use=lse(()=>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)),dse=[use];function fse(e,t){return i.openBlock(),i.createElementBlock("svg",cse,dse)}const h1=M(ose,[["render",fse],["__scopeId","data-v-4a6733fd"]]);const hse={},pse=e=>(i.pushScopeId("data-v-b519ac08"),e=e(),i.popScopeId(),e),gse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},mse=pse(()=>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)),vse=[mse];function Bse(e,t){return i.openBlock(),i.createElementBlock("svg",gse,vse)}const p1=M(hse,[["render",Bse],["__scopeId","data-v-b519ac08"]]);const yse={},wse=e=>(i.pushScopeId("data-v-f1928c9e"),e=e(),i.popScopeId(),e),bse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},_se=wse(()=>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)),Cse=[_se];function Ese(e,t){return i.openBlock(),i.createElementBlock("svg",bse,Cse)}const g1=M(yse,[["render",Ese],["__scopeId","data-v-f1928c9e"]]);const kse={},Sse=e=>(i.pushScopeId("data-v-b1448e85"),e=e(),i.popScopeId(),e),xse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},Fse=Sse(()=>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)),Ise=[Fse];function Use(e,t){return i.openBlock(),i.createElementBlock("svg",xse,Ise)}const m1=M(kse,[["render",Use],["__scopeId","data-v-b1448e85"]]);const Qse={},Tse=e=>(i.pushScopeId("data-v-e5501fa0"),e=e(),i.popScopeId(),e),Dse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lse=Tse(()=>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)),Ose=[Lse];function Mse(e,t){return i.openBlock(),i.createElementBlock("svg",Dse,Ose)}const v1=M(Qse,[["render",Mse],["__scopeId","data-v-e5501fa0"]]),B1={items:{type:Array,required:!0,default:[]}},Nse={...B1,expanded:{type:Boolean,required:!1,default:!1},links:{type:Object,required:!0,default:{gift:{path:"/404"},settings:{path:"/404"},profile:{path:"/404"}}}},Pse={class:"content logo no-scrollbar"},Hse={class:"nav-item"},Rse={class:"nav-icon-wrapper"},Vse={class:"nav-text"},Kse={class:"nav-icon-wrapper"},$se={class:"nav-text"},Wse={class:"profile content"},Gse={class:"nav-icon-wrapper"},zse={class:"nav-text"},jse={class:"nav-icon-wrapper"},Yse={class:"nav-text settings"},qse={class:"nav-icon-wrapper"},Xse={class:"nav-text"},Jse={class:"nav-icon-wrapper"},Zse={class:"nav-text name"},eie={class:"nav-icon-wrapper"},tie={class:"nav-text settings"},nie={class:"nav-icon-wrapper"},rie={class:"nav-text sign-in-container"},aie={class:"fancy-button"},Aie=i.defineComponent({__name:"NavigationSide",props:Nse,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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",Pse,[i.createElementVNode("div",Hse,[i.createElementVNode("div",Rse,[i.createVNode(js,{"logo-type":"logo-only"})]),i.createElementVNode("div",Vse,[i.createVNode(js,{"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(cs.RouterLink),{key:u.text,to:u.routerLocation,class:i.normalizeClass(["nav-item",u.highlighted?"highlight":""])},{default:i.withCtx(()=>[i.createElementVNode("div",Kse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:u.faIcon},null,8,["icon"])]),i.createElementVNode("div",$se,i.toDisplayString(u.text),1)]),_:2},1032,["to","class"]))),128))],512),i.createElementVNode("div",Wse,[i.unref(ya)().user?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(cs.RouterLink),{to:n.links.gift,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",Gse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"gift"})]),i.createElementVNode("div",zse,i.toDisplayString(i.unref(r)("general.openCards")),1)]),_:1},8,["to"]),i.createVNode(i.unref(cs.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",jse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",Yse,[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(Te),{icon:"language"})])])]),_:1},8,["to"]),i.createElementVNode("div",{class:"nav-item",onClick:c[1]||(c[1]=u=>t("click:sync"))},[i.createElementVNode("div",qse,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"rotate-right"})]),i.createElementVNode("div",Xse,i.toDisplayString(i.unref(r)("general.syncUserData")),1)]),i.createVNode(i.unref(cs.RouterLink),{to:n.links.profile,class:"nav-item"},{default:i.withCtx(()=>{var u,d,f;return[i.createElementVNode("div",Jse,[i.createVNode(tA,{"card-code-prop":((u=i.unref(ya)().user)==null?void 0:u.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(d=i.unref(ya)().user)==null?void 0:d.selectedBannerColor,"router-link":n.links.profile},null,8,["card-code-prop","color-override","router-link"])]),i.createElementVNode("div",Zse,i.toDisplayString((f=i.unref(ya)().user)==null?void 0:f.name),1)]}),_:1},8,["to"])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(i.unref(cs.RouterLink),{to:n.links.settings,class:"nav-item"},{default:i.withCtx(()=>[i.createElementVNode("div",eie,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"cog"})]),i.createElementVNode("div",tie,[i.createElementVNode("div",null,i.toDisplayString(i.unref(r)("general.settings")),1),i.createVNode(i.unref(Te),{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",nie,[i.createVNode(i.unref(Te),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),i.createElementVNode("div",rie,[i.createElementVNode("div",aie,i.toDisplayString(i.unref(r)("general.signIn")),1)])])],64))])],2))}});const y1=M(Aie,[["__scopeId","data-v-06d25104"]]),sie=i.defineComponent({__name:"NavigationTopMobile",props:B1,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.onBeforeUnmount(()=>{window.removeEventListener("click",s),r.value=!1}),(c,u)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"navigationTopMobile",ref:A,class:"navigation-top-mobile"},[n.value?(i.openBlock(),i.createBlock(zu,{key:1,ref_key:"searchBar",ref:a,class:"search-bar"},null,512)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Te),{class:"icon",icon:"bars",onClick:l}),i.createVNode(js,{class:"logo-icon","logo-type":"text-only"}),i.createVNode(i.unref(Te),{class:"icon",icon:"search",onClick:i.withModifiers(o,["stop","prevent"])},null,8,["onClick"])],64)),i.createVNode(RA,{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=d=>r.value=d)},{default:i.withCtx(()=>[i.createVNode(y1,i.mergeProps({class:"navigation-side"},t,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512))}});const w1=M(sie,[["__scopeId","data-v-1c5822e1"]]),iie={class:"navigation-top"},oie=i.defineComponent({__name:"NavigationTop",props:B1,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",iie,[i.createVNode(e1,i.mergeProps({class:"navigation-top-desktop"},t),null,16),i.createVNode(w1,i.mergeProps({class:"navigation-top-mobile"},t),null,16)]))}});const N3=M(oie,[["__scopeId","data-v-6df2641b"]]),lie={modelValue:{type:String,required:!0,default:!1}},cie=["value"],uie=i.defineComponent({__name:"ColorPicker",props:lie,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,cie))}});const P3=M(uie,[["__scopeId","data-v-5ebbd7eb"]]),die={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},fie={class:"multiselect-wrapper"},hie=i.defineComponent({__name:"DashboardLeaderboardTable",props:die,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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(qA,{class:"small-table","heading-items":A},{heading:i.withCtx(()=>[i.createElementVNode("div",fie,[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(d1,{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 H3=M(hie,[["__scopeId","data-v-fe0f916c"]]),pie={routerLink:{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:[]}},gie=e=>(i.pushScopeId("data-v-701110d9"),e=e(),i.popScopeId(),e),mie={class:"table-card-row-background-wrapper"},vie={class:"table-card-row-background"},Bie=gie(()=>i.createElementVNode("div",{class:"background-card"},null,-1)),yie=[Bie],wie={class:"archetypes-row wrapper"},bie={class:"column-content"},_ie={class:"column-content"},Cie=i.defineComponent({__name:"ArchetypesRow",props:pie,setup(e){const t=e,n=i.computed(()=>St(t.deckcode)),r=i.computed(()=>nn(n.value)),a=i.computed(()=>t.cards.map(A=>`https://lor.gg/storage/cards/banner/${A}.png`));return(A,s)=>{const o=i.resolveComponent("RouterLink");return i.openBlock(),i.createBlock(o,{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",mie,[i.createElementVNode("div",vie,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l,class:"background-card-wrapper",style:i.normalizeStyle({"--background-image":`url(${l})`})},yie,4))),128))])]),i.createElementVNode("div",wie,[i.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop","prevent"]))},[i.createVNode(Xa,{"deck-code":t.deckcode,deck:n.value,cards:r.value},null,8,["deck-code","deck","cards"])]),i.createElementVNode("div",bie,i.toDisplayString(i.unref(Qe)(t.matches)),1),i.createElementVNode("div",{class:"column-content",style:i.normalizeStyle({color:`var(${i.unref(Jn)(t.wins/t.matches)})`})},i.toDisplayString(i.unref(Qe)(t.wins/t.matches*100,2,3)+"%"),5),i.createElementVNode("div",_ie,i.toDisplayString(i.unref(Qe)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const b1=M(Cie,[["__scopeId","data-v-701110d9"]]),Eie={archetypeRows:{type:Array,required:!0,default:[]}},kie=i.defineComponent({__name:"ArchetypesTable",props:Eie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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(b1,{key:l.deckcode,"archetype-id":l.archetypeId,cards:l.cards,deckcode:l.deckcode,index:c+2,matches:l.matches,playrate:l.playrate,regions:l.regions,wins:l.wins,"router-link":l.routerLink},null,8,["archetype-id","cards","deckcode","index","matches","playrate","regions","wins","router-link"]))),128))]),_:1},8,["heading-items"]))}});const R3=M(kie,[["__scopeId","data-v-34fdc124"]]),Sie={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},xie={class:"number-container"},Fie={key:0,class:"type-icon"},Iie=i.defineComponent({__name:"DeckBuilderSummaryType",props:Sie,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",xie,i.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(i.openBlock(),i.createElementBlock("div",Fie,[t.typeSummary.typeRef==="Champion"?(i.openBlock(),i.createBlock(p1,{key:0})):t.typeSummary.typeRef==="Follower"?(i.openBlock(),i.createBlock(h1,{key:1})):t.typeSummary.typeRef==="Spell"?(i.openBlock(),i.createBlock(m1,{key:2})):t.typeSummary.typeRef==="Landmark"?(i.openBlock(),i.createBlock(g1,{key:3})):t.typeSummary.typeRef==="Equipment"?(i.openBlock(),i.createBlock(v1,{key:4})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],2))}});const Ba=M(Iie,[["__scopeId","data-v-2e6bb287"]]),Uie={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},Qie={class:"deck-builder-summary"},Tie=i.defineComponent({__name:"DeckBuilderSummary",props:Uie,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",Qie,[i.createVNode(Ba,{"type-summary":r.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":a.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":A.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":s.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":o.value},null,8,["type-summary"]),i.createVNode(Ba,{"type-summary":l.value},null,8,["type-summary"])]))}});const _1=M(Tie,[["__scopeId","data-v-ec8f0fa9"]]),Die={rows:{type:Array,required:!0,default:[]}},Lie=i.defineComponent({__name:"DashboardCardTable",props:Die,setup(e){const t=e,{t:n}=Ae(),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(qA,{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(u1,{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 V3=M(Lie,[["__scopeId","data-v-e5817be3"]]),Oie={modelValue:{type:Number,required:!0,default:5}},Mie=["value"],Nie=i.defineComponent({__name:"ZoomSlider",props:Oie,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,Mie)],512)])}}});const K3=M(Nie,[["__scopeId","data-v-bac83f78"]]),Pie={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},Rd=e=>(i.pushScopeId("data-v-fe063557"),e=e(),i.popScopeId(),e),Hie={class:"card-overview"},Rie={class:"overview-top"},Vie={class:"card-name"},Kie={class:"card-tags"},$ie={class:"card-tag"},Wie={class:"card-tag-text"},Gie={class:"card-tag"},zie={class:"card-tag-text"},jie={class:"card-tag"},Yie={class:"card-tag-text"},qie={class:"card-tag"},Xie={class:"card-tag-text"},Jie=Rd(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),Zie={class:"card-text"},eoe=Rd(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),toe={class:"keyword-description"},noe={class:"keyword-name"},roe=Rd(()=>i.createElementVNode("hr",{class:"divider"},null,-1)),aoe={class:"flavor-text"},Aoe=Rd(()=>i.createElementVNode("div",{class:"card-art-section"},[i.createElementVNode("div",{class:"card-art-button primary-button"},"Card Art")],-1)),soe=i.defineComponent({__name:"CardOverview",props:Pie,setup(e){const t=e,n=Po(t.cardProp,t.cardCodeProp,!0),r=i.computed(()=>{if(n.value===void 0)return[];const l=[];for(const c of n.value.keywordRefs){const u=we().dataJson.keywords.find(d=>d.nameRef===c);u&&l.push(u)}return l}),a=i.computed(()=>{if(n.value===void 0)return null;const l=we().dataJson;return co(n.value.regionRefs[0])?l.runeterraChampions.find(c=>c.nameRef===n.value.regionRefs[0])??l.regions[0]:l.regions.find(c=>c.nameRef===n.value.regionRefs[0])??l.regions[0]}),A=i.computed(()=>n.value===void 0?null:we().dataJson.rarities.find(l=>l.nameRef===n.value.rarityRef)??we().dataJson.rarities[0]),s=i.computed(()=>n.value===void 0?null:we().dataJson.types.find(l=>l.nameRef===n.value.typeRef)??we().dataJson.types[0]),o=i.computed(()=>n.value===void 0?null:we().dataJson.sets.find(l=>l.nameRef===n.value.set)??we().dataJson.sets[0]);return(l,c)=>{var u,d,f,h,p,m,y,g;return i.openBlock(),i.createElementBlock("div",Hie,[i.unref(n)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Rie,[i.createElementVNode("div",Vie,i.toDisplayString(i.unref(n).name),1),i.createVNode(i.unref(Te),{icon:"times",class:"close-icon"})]),i.createElementVNode("div",Kie,[i.createElementVNode("div",$ie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((u=a.value)==null?void 0:u.icon)??""})`})},null,4),i.createElementVNode("div",Wie,i.toDisplayString((d=a.value)==null?void 0:d.name),1)]),i.createElementVNode("div",Gie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((f=A.value)==null?void 0:f.icon)??""})`})},null,4),i.createElementVNode("div",zie,i.toDisplayString((h=A.value)==null?void 0:h.name),1)]),i.createElementVNode("div",jie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((p=s.value)==null?void 0:p.icon)??""})`})},null,4),i.createElementVNode("div",Yie,i.toDisplayString((m=s.value)==null?void 0:m.name),1)]),i.createElementVNode("div",qie,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({content:`url(${((y=o.value)==null?void 0:y.icon)??""})`})},null,4),i.createElementVNode("div",Xie,i.toDisplayString((g=o.value)==null?void 0:g.name),1)])]),Jie,i.createElementVNode("div",Zie,i.toDisplayString(i.unref(n).descriptionRaw),1),eoe,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,v=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:v.nameRef},[i.createElementVNode("div",toe,[i.createElementVNode("b",noe,i.toDisplayString(v.name+" - "),1),i.createElementVNode("span",null,i.toDisplayString(v.description),1)]),roe],64))),128)),i.createElementVNode("div",aoe,i.toDisplayString(i.unref(n).flavorText),1),Aoe],64)):i.createCommentVNode("",!0)])}}});const $3=M(soe,[["__scopeId","data-v-fe063557"]]),ioe={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},ooe={class:"profile-game-type-winrate"},loe={class:"game-type"},coe=i.defineComponent({__name:"ProfileGameTypeWinrate",props:ioe,setup(e){const t=e;return(n,r)=>(i.openBlock(),i.createElementBlock("div",ooe,[i.createElementVNode("div",loe,i.toDisplayString(t.gameType),1),i.createVNode(c1,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const W3=M(coe,[["__scopeId","data-v-1bb3c9de"]]),uoe={deckRows:{type:Array,required:!0,default:[]}},doe=i.defineComponent({__name:"DecksTable",props:uoe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),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=Zs(s,a);o&&t("sort-updated",o)}return(s,o)=>(i.openBlock(),i.createBlock(eA,{class:"large-table","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(gl,{key:l.deckCode,type:"data",deckcode:l.deckCode,matches:l.matches,wins:l.wins,"router-link":l.routerLink,index:c+2},null,8,["deckcode","matches","wins","router-link","index"]))),128))]),_:1},8,["heading-items"]))}});const G3=M(doe,[["__scopeId","data-v-930c1493"]]),foe={deckCode:{type:String,required:!1,default:""},cardRouterLinkCallback:{type:Function,required:!0,default:e=>({name:"card",params:{id:e.cardCode}})}},hoe={deck:{type:Object,required:!0,default:{}}},poe={class:"deck-preview-wrapper"},goe=i.defineComponent({__name:"ShowDeckPreviewButton",props:hoe,setup(e){const t=e,{t:n}=Ae(),r=i.ref(null),a=i.ref(!1);return i.onMounted(()=>{At(r.value,{content:n("deck.showPreview"),arrow:!0})}),i.onBeforeUnmount(()=>{a.value=!1}),(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(Te),{icon:"camera"})],512),i.createVNode(RA,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=o=>a.value=o)},{default:i.withCtx(()=>[i.createElementVNode("div",poe,[i.createVNode(i.unref(Pd),{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const moe=M(goe,[["__scopeId","data-v-c364b719"]]),voe={class:"cards-container no-scrollbar"},Boe={class:"bottom"},yoe={class:"bottom-buttons"},woe={class:"fancy-button"},z3=i.defineComponent({__name:"DeckBuilderSidePanel",props:foe,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,{t:r}=Ae(),a=i.computed(()=>{if(n.deckCode)return St(n.deckCode);throw new Error("Deck or DeckCode must be defined")}),A=i.computed(()=>nn(a.value));return(s,o)=>(i.openBlock(),i.createBlock(Js,{"show-clear-all":!1},{default:i.withCtx(()=>[i.createVNode(i.unref(_1),{cards:A.value,deck:a.value},null,8,["cards","deck"]),i.createVNode(i.unref(dl),{class:"mana-curve-chart","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",voe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,l=>(i.openBlock(),i.createBlock(i.unref(dn),{"onUpdate:cardQuantity":o[0]||(o[0]=c=>t("update:card-quantity",c)),key:l.cardCode,"card-prop":l,"maintain-aspect-ratio":!0,"quantity-number":a.value[l.cardCode],"show-plus-minus":!0,class:"card-slice-item"},null,8,["card-prop","quantity-number"]))),128))]),i.createElementVNode("div",Boe,[i.createElementVNode("div",yoe,[i.createVNode(i.unref(Sd),{deck:a.value},null,8,["deck"]),i.createVNode(i.unref(kd),{"deck-code":n.deckCode},null,8,["deck-code"]),i.createVNode(moe,{deck:a.value},null,8,["deck"]),i.createVNode(i.unref(xd),{"deck-code":n.deckCode},null,8,["deck-code"])]),i.createElementVNode("div",woe,i.toDisplayString(i.unref(r)("general.save")),1)])]),_:1}))}});const boe={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},j3=i.defineComponent({__name:"RegionDistributionChart",props:boe,setup(e){const t=e,n=i.ref(null);Le.register(..._r);const r=i.computed(()=>({labels:t.data.map(A=>A.region),datasets:[{data:t.data.map(A=>A.matches),backgroundColor:t.data.map(A=>F2(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:`${Op(o[l])} (${A.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Pa("--color-0"),fillStyle:A.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(A,s)=>(i.openBlock(),i.createBlock(i.unref(id),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),_oe={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},Y3=i.defineComponent({__name:"SimpleDoughnutChart",props:_oe,setup(e){const t=e,n=i.ref(null);Le.register(..._r);const r=i.computed(()=>({labels:["Value","Max"],datasets:[{data:[t.value,t.max-t.value],backgroundColor:[Pa("--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=Pa("--color-good"),c.fillText(f,h,p),c.save()}}];return(s,o)=>(i.openBlock(),i.createBlock(i.unref(id),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:A},null,8,["chart-data"]))}}),Coe={install:async e=>{e.component("RevealCarousel",pg),e.component("SearchBar",zu),e.component("SocialLinks",mg),e.component("ModalItem",RA),e.component("FilterSampleSize",qs),e.component("FilterRanks",hb),e.component("FilterManaCost",vg),e.component("FilterRarities",Bg),e.component("FilterSets",yg),e.component("FilterKeywords",wg),e.component("FilterServers",Xs),e.component("FilterTime",VA),e.component("FilterCardCodes",Yu),e.component("FilterDecks",pb),e.component("FilterProfile",gb),e.component("FilterText",ru),e.component("FilterAdvanced",kg),e.component("FilterRegions",zo),e.component("FilterCards",mb),e.component("AdvancedFilterItem",Eg),e.component("FilterTypes",Sg),e.component("RegionsLine",xg),e.component("CardsTable",vb),e.component("DeckHighlightRegions",Yo),e.component("GemsCost",Ug),e.component("CardSliceItem",dn),e.component("LanguageSelection",Qg),e.component("DeckSidePanel",A4),e.component("DeckHighlight",Xa),e.component("ArchetypeSidePanel",l3),e.component("OpenInDeckBuilderButton",Om),e.component("CopyDeckButton",kd),e.component("UpdateDeckPrivacyButton",Nm),e.component("EditDeckNameButton",Dm),e.component("UploadDeckToLorButton",xd),e.component("DeleteDeckButton",Tm),e.component("OpenArchetypePageButton",Lm),e.component("SimulateMulliganButton",Sd),e.component("SocialMediaLinks",c3),e.component("DecksRow",gl),e.component("CardItemLinkWrapper",Jm),e.component("DeckHighlightCards",qo),e.component("CheckboxItem",tn),e.component("NavigationTopDesktop",e1),e.component("SidePanelSectionPane",mt),e.component("CardSimilarCards",d3),e.component("DashboardSignUp",h3),e.component("MatchItem",p3),e.component("ToggleSwitch",ju),e.component("LeaderboardTop10Region",t1),e.component("ShareButton",Hm),e.component("LeaderboardDetailRow",n1),e.component("DeckBlock",g3),e.component("SmallTable",qA),e.component("LeaderboardTop",m3),e.component("CardLottery",v3),e.component("DashboardProfile",B3),e.component("LeaderboardChart",y3),e.component("CardQuantityBarChart",w3),e.component("WinsLossesBarChart",b3),e.component("RoundCardInfoBarChart",_3),e.component("LineChart",C3),e.component("ManaCurveChart",dl),e.component("WinrateDoughnutChart",i1),e.component("InfoDoughnutChart",pu),e.component("BuiltDecksTable",E3),e.component("ProfileRegionTable",k3),e.component("ProfileArchetypeTable",S3),e.component("CardItem3d",s1),e.component("LeaderboardOptions",x3),e.component("SimilarDecksTable",F3),e.component("LargeTable",eA),e.component("StatisticsPaneContainer",I3),e.component("ArchetypeSidePanelHighlight",Xu),e.component("CardCarousel",U3),e.component("DeckButtons",Rm),e.component("WinsLossesLine",c1),e.component("DashboardCardRow",u1),e.component("CardTogglePage",Q3),e.component("TestComponent",T3),e.component("DashboardLeaderboardRow",d1),e.component("DeckPreview",Pd),e.component("CheckboxItemManaCost",nu),e.component("RevealDayOptions",D3),e.component("DeckDifferenceItem",Ym),e.component("DashboardNewCards",L3),e.component("CardsRow",Fg),e.component("LeaderboardDetailTable",O3),e.component("DeckIcon",M3),e.component("LogoIcon",js),e.component("FollowerIcon",h1),e.component("ChampionIcon",p1),e.component("EternalIcon",r1),e.component("InfoIcon",Xm),e.component("LandmarkIcon",g1),e.component("ManaHexagonIcon",Go),e.component("RuneterraIcon",Pm),e.component("ShardsIcon",Ig),e.component("StandardIcon",a1),e.component("SpellIcon",m1),e.component("GauntletIcon",A1),e.component("EquipmentIcon",v1),e.component("NavigationTop",N3),e.component("CardMultiselect",bg),e.component("ProfileDropdown",Zm),e.component("ColorPicker",P3),e.component("DashboardLeaderboardTable",H3),e.component("NavigationSide",y1),e.component("ArchetypesTable",R3),e.component("DeckBuilderSummary",_1),e.component("DeckBuilderSummaryType",Ba),e.component("DashboardCardTable",V3),e.component("ArchetypesRow",b1),e.component("RevealDayOption",f1),e.component("DeckHighlightEye",Hd),e.component("DeckDifferences",qm),e.component("ZoomSlider",K3),e.component("CardOverview",$3),e.component("CircleCardItem",tA),e.component("ProfileGameTypeWinrate",W3),e.component("DecksTable",G3),e.component("RegionItem",jo),e.component("TippyText",qu),e.component("ProfileRegionRow",o1),e.component("SimulateMulligan",Mm),e.component("DeckSummary",Ed),e.component("NavigationTopMobile",w1),e.component("CardItem",$a),e.component("ProfileArchetypeRow",l1),e.component("DeckBuilderSidePanel",z3),e.component("SimpleDoughnutChart",Y3),e.component("RegionDistributionChart",j3),e.component("FontAwesomeIcon",Te),e.component("Multiselect",Vt)}};exports.AdvancedFilterItem=Eg;exports.ArchetypeSidePanel=l3;exports.ArchetypeSidePanelHighlight=Xu;exports.ArchetypesRow=b1;exports.ArchetypesTable=R3;exports.BuiltDecksTable=E3;exports.CardCarousel=U3;exports.CardItem=$a;exports.CardItem3d=s1;exports.CardItemLinkWrapper=Jm;exports.CardLottery=v3;exports.CardMultiselect=bg;exports.CardOverview=$3;exports.CardQuantityBarChart=w3;exports.CardSimilarCards=d3;exports.CardSliceItem=dn;exports.CardTogglePage=Q3;exports.CardsRow=Fg;exports.CardsTable=vb;exports.ChampionIcon=p1;exports.CheckboxItem=tn;exports.CheckboxItemManaCost=nu;exports.CircleCardItem=tA;exports.ColorPicker=P3;exports.CopyDeckButton=kd;exports.DashboardCardRow=u1;exports.DashboardCardTable=V3;exports.DashboardLeaderboardRow=d1;exports.DashboardLeaderboardTable=H3;exports.DashboardNewCards=L3;exports.DashboardProfile=B3;exports.DashboardSignUp=h3;exports.DeckBlock=g3;exports.DeckBuilderSidePanel=z3;exports.DeckBuilderSummary=_1;exports.DeckBuilderSummaryType=Ba;exports.DeckButtons=Rm;exports.DeckDifferenceItem=Ym;exports.DeckDifferences=qm;exports.DeckHighlight=Xa;exports.DeckHighlightCards=qo;exports.DeckHighlightEye=Hd;exports.DeckHighlightRegions=Yo;exports.DeckIcon=M3;exports.DeckPreview=Pd;exports.DeckSidePanel=A4;exports.DeckSummary=Ed;exports.DecksRow=gl;exports.DecksTable=G3;exports.DeleteDeckButton=Tm;exports.EditDeckNameButton=Dm;exports.EquipmentIcon=v1;exports.EternalIcon=r1;exports.FilterAdvanced=kg;exports.FilterCardCodes=Yu;exports.FilterCards=mb;exports.FilterDecks=pb;exports.FilterKeywords=wg;exports.FilterManaCost=vg;exports.FilterProfile=gb;exports.FilterRanks=hb;exports.FilterRarities=Bg;exports.FilterRegions=zo;exports.FilterSampleSize=qs;exports.FilterServers=Xs;exports.FilterSets=yg;exports.FilterText=ru;exports.FilterTime=VA;exports.FilterTypes=Sg;exports.FollowerIcon=h1;exports.GauntletIcon=A1;exports.GemsCost=Ug;exports.InfoDoughnutChart=pu;exports.InfoIcon=Xm;exports.LandmarkIcon=g1;exports.LanguageSelection=Qg;exports.LargeTable=eA;exports.LeaderboardChart=y3;exports.LeaderboardDetailRow=n1;exports.LeaderboardDetailTable=O3;exports.LeaderboardOptions=x3;exports.LeaderboardTop=m3;exports.LeaderboardTop10Region=t1;exports.LineChart=C3;exports.LogoIcon=js;exports.ManaCurveChart=dl;exports.ManaHexagonIcon=Go;exports.MatchItem=p3;exports.ModalItem=RA;exports.NavigationSide=y1;exports.NavigationTop=N3;exports.NavigationTopDesktop=e1;exports.NavigationTopMobile=w1;exports.OpenArchetypePageButton=Lm;exports.OpenInDeckBuilderButton=Om;exports.ProfileArchetypeRow=l1;exports.ProfileArchetypeTable=S3;exports.ProfileDropdown=Zm;exports.ProfileGameTypeWinrate=W3;exports.ProfileRegionRow=o1;exports.ProfileRegionTable=k3;exports.RegionDistributionChart=j3;exports.RegionItem=jo;exports.RegionsLine=xg;exports.RevealCarousel=pg;exports.RevealDayOption=f1;exports.RevealDayOptions=D3;exports.RoundCardInfoBarChart=_3;exports.RuneterraIcon=Pm;exports.SearchBar=zu;exports.ShardsIcon=Ig;exports.ShareButton=Hm;exports.SidePanelSectionPane=mt;exports.SimilarDecksTable=F3;exports.SimpleDoughnutChart=Y3;exports.SimulateMulligan=Mm;exports.SimulateMulliganButton=Sd;exports.SmallTable=qA;exports.SocialLinks=mg;exports.SocialMediaLinks=c3;exports.SpellIcon=m1;exports.StandardIcon=a1;exports.StatisticsPaneContainer=I3;exports.TestComponent=T3;exports.TippyText=qu;exports.ToggleSwitch=ju;exports.UpdateDeckPrivacyButton=Nm;exports.UploadDeckToLorButton=xd;exports.WinrateDoughnutChart=i1;exports.WinsLossesBarChart=b3;exports.WinsLossesLine=c1;exports.ZoomSlider=K3;exports.default=Coe;exports.getCardsFromDeck=nn;exports.getDate=hE;exports.getDeckObjectFromCode=St;exports.getMostImportantCards=Na;exports.getRegionNameOfRegionRef=Op;exports.importIcons=_8;exports.keyDayjs=PA;exports.regionOfCard=Mp;exports.setDescription=bE;exports.setTitle=_E;exports.setupi18n=TS;exports.useCardJsonObjectStore=jt;exports.useCardJsonStore=Ag;exports.useDataJsonStore=we;exports.useUserStore=ya;