@flesh-and-blood/search 2.0.44 → 2.0.46
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.
- package/dist/index.js +2 -2
- package/dist/search.d.ts +12 -11
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var jr=Object.create;var le=Object.defineProperty;var Gr=Object.getOwnPropertyDescriptor;var Kr=Object.getOwnPropertyNames,yt=Object.getOwnPropertySymbols,Ur=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var vt=(e,r,t)=>r in e?le(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,he=(e,r)=>{for(var t in r||(r={}))bt.call(r,t)&&vt(e,t,r[t]);if(yt)for(var t of yt(r))Yr.call(r,t)&&vt(e,t,r[t]);return e};var At=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vr=(e,r)=>{for(var t in r)le(e,t,{get:r[t],enumerable:!0})},Mt=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Kr(r))!bt.call(e,n)&&n!==t&&le(e,n,{get:()=>r[n],enumerable:!(i=Gr(r,n))||i.enumerable});return e};var $=(e,r,t)=>(t=e!=null?jr(Ur(e)):{},Mt(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e)),Qr=e=>Mt(le({},"__esModule",{value:!0}),e);var W=At(($a,$t)=>{var fe=Object.defineProperty,Jr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptor,Zr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,Ft=(e,r,t)=>r in e?fe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ti=(e,r)=>{for(var t in r||(r={}))kt.call(r,t)&&Ft(e,t,r[t]);if(Ct)for(var t of Ct(r))ei.call(r,t)&&Ft(e,t,r[t]);return e},ri=(e,r)=>Jr(e,Zr(r)),ii=(e,r)=>{for(var t in r)fe(e,t,{get:r[t],enumerable:!0})},ni=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of qr(r))!kt.call(e,n)&&n!==t&&fe(e,n,{get:()=>r[n],enumerable:!(i=Xr(r,n))||i.enumerable});return e},ai=e=>ni(fe({},"__esModule",{value:!0}),e),St={};ii(St,{Class:()=>Lt,Foiling:()=>Tt,Format:()=>wt,Fusion:()=>Pt,Hero:()=>Ot,Keyword:()=>Nt,Rarity:()=>Bt,Release:()=>Rt,ReleaseEdition:()=>It,Subtype:()=>Et,Talent:()=>Dt,Treatment:()=>xt,Type:()=>_t,fullSetIdentifiers:()=>zt,setIdentifierToSetMappings:()=>Ht,setToSetIdentifierMappings:()=>oi});$t.exports=ai(St);var Tt=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(Tt||{}),xt=(e=>(e.AB="Alternate Border",e.AA="Alternate Art",e.AT="Alternate Text",e.DS="Double Sided",e.EA="Extended Art",e.FA="Full Art",e))(xt||{}),Lt=(e=>(e.NotClassed="NotClassed",e.Generic="Generic",e.Adjudicator="Adjudicator",e.Assassin="Assassin",e.Bard="Bard",e.Brute="Brute",e.Guardian="Guardian",e.Illusionist="Illusionist",e.Mechanologist="Mechanologist",e.Merchant="Merchant",e.Ninja="Ninja",e.Ranger="Ranger",e.Runeblade="Runeblade",e.Shapeshifter="Shapeshifter",e.Warrior="Warrior",e.Wizard="Wizard",e))(Lt||{}),wt=(e=>(e.Blitz="Blitz",e.BlitzLivingLegend="Blitz (Living Legend)",e.Clash="Clash",e.ClassicConstructed="Classic Constructed",e.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",e.Commoner="Commoner",e.Draft="Draft",e.Open="Open",e.Sealed="Sealed",e.UltimatePitFight="Ultimate Pit Fight",e))(wt||{}),Pt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Pt||{}),Bt=(e=>(e.Token="Token",e.Common="Common",e.Rare="Rare",e.SuperRare="Super Rare",e.Majestic="Majestic",e.Marvel="Marvel",e.Legendary="Legendary",e.Fabled="Fabled",e.Promo="Promo",e))(Bt||{}),Rt=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.DromaiBlitzDeck="Dromai Blitz Deck",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.IraWelcomeDeck="Ira Welcome Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.RoundTheTable="Round the Table",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.Promos="Promos",e))(Rt||{}),It=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(It||{}),Dt=(e=>(e.Royal="Royal",e.Draconic="Draconic",e.Earth="Earth",e.Elemental="Elemental",e.Ice="Ice",e.Light="Light",e.Lightning="Lightning",e.Shadow="Shadow",e))(Dt||{}),_t=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(_t||{}),Et=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Et||{}),Ot=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Brutus="Brutus",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Fai="Fai",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(Ot||{}),Nt=(e=>(e.Ambush="Ambush",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BeatChest="Beat Chest",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",e.Clash="Clash",e.Combo="Combo",e.Contract="Contract",e.Crank="Crank",e.Crush="Crush",e.Dominate="Dominate",e.Ephemeral="Ephemeral",e.Essence="Essence",e.EvoUpgrade="Evo Upgrade",e.Freeze="Freeze",e.Fusion="Fusion",e.Galvanize="Galvanize",e.GoAgain="Go again",e.Guardwell="Guardwell",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",e.Modular="Modular",e.Mirage="Mirage",e.Negate="Negate",e.Opt="Opt",e.Overpower="Overpower",e.Pairs="Pairs",e.Piercing="Piercing",e.Phantasm="Phantasm",e.Protect="Protect",e.Quell="Quell",e.Reload="Reload",e.Reprise="Reprise",e.RuneGate="Rune Gate",e.Rupture="Rupture",e.Scrap="Scrap",e.Solflare="Solflare",e.Specialization="Specialization",e.Spectra="Spectra",e.Spellvoid="Spellvoid",e.Stealth="Stealth",e.Surge="Surge",e.Temper="Temper",e.Tower="Tower",e.Transform="Transform",e.Universal="Universal",e.Unfreeze="Unfreeze",e.Unity="Unity",e.Wager="Wager",e.Ward="Ward",e))(Nt||{}),zt={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters"},Ht=ri(ti({},zt),{ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),_e={};for(let[e,r]of Object.entries(Ht)){let t=_e[r];t?t.push(e):_e[r]=[e]}var oi=_e});var ar=At((Wa,nr)=>{"use strict";function Wt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function ne(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Wt(Object(t),!0).forEach(function(i){Ne(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wt(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function Oe(e){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Oe(e)}function _(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function jt(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,r,t){return r&&jt(e.prototype,r),t&&jt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Q(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),r&&ze(e,r)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},me(e)}function ze(e,r){return ze=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},ze(e,r)}function si(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function li(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function J(e){var r=si();return function(){var i=me(e),n;if(r){var a=me(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return ci(this,n)}}function te(e){return ui(e)||di(e)||pi(e)||hi()}function ui(e){if(Array.isArray(e))return He(e)}function di(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pi(e,r){if(e){if(typeof e=="string")return He(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return He(e,r)}}function He(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}function hi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e){return Array.isArray?Array.isArray(e):Xt(e)==="[object Array]"}var fi=1/0;function gi(e){if(typeof e=="string")return e;var r=e+"";return r=="0"&&1/e==-fi?"-0":r}function mi(e){return e==null?"":gi(e)}function j(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function yi(e){return e===!0||e===!1||vi(e)&&Xt(e)=="[object Boolean]"}function Jt(e){return Oe(e)==="object"}function vi(e){return Jt(e)&&e!==null}function N(e){return e!=null}function Ee(e){return!e.trim().length}function Xt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var bi="Incorrect 'index' type",Ai=function(r){return"Invalid value for key ".concat(r)},Mi=function(r){return"Pattern length exceeds max of ".concat(r,".")},Ci=function(r){return"Missing ".concat(r," property in key")},Fi=function(r){return"Property 'weight' in key '".concat(r,"' must be a positive integer")},Gt=Object.prototype.hasOwnProperty,ki=function(){function e(r){var t=this;_(this,e),this._keys=[],this._keyMap={};var i=0;r.forEach(function(n){var a=Zt(n);i+=a.weight,t._keys.push(a),t._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return E(e,[{key:"get",value:function(t){return this._keyMap[t]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function Zt(e){var r=null,t=null,i=null,n=1,a=null;if(j(e)||U(e))i=e,r=Kt(e),t=$e(e);else{if(!Gt.call(e,"name"))throw new Error(Ci("name"));var s=e.name;if(i=s,Gt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Fi(s));r=Kt(s),t=$e(s),a=e.getFn}return{path:r,id:t,weight:n,src:i,getFn:a}}function Kt(e){return U(e)?e:e.split(".")}function $e(e){return U(e)?e.join("."):e}function Si(e,r){var t=[],i=!1,n=function a(s,o,c){if(N(s))if(!o[c])t.push(s);else{var u=o[c],d=s[u];if(!N(d))return;if(c===o.length-1&&(j(d)||Qt(d)||yi(d)))t.push(mi(d));else if(U(d)){i=!0;for(var f=0,p=d.length;f<p;f+=1)a(d[f],o,c+1)}else o.length&&a(d,o,c+1)}};return n(e,j(r)?r.split("."):r,0),i?t:t[0]}var Ti={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},xi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(r,t){return r.score===t.score?r.idx<t.idx?-1:1:r.score<t.score?-1:1}},Li={location:0,threshold:.6,distance:100},wi={useExtendedSearch:!1,getFn:Si,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},F=ne(ne(ne(ne({},xi),Ti),Li),wi),Pi=/[^ ]+/g;function Bi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,t=new Map,i=Math.pow(10,r);return{get:function(a){var s=a.match(Pi).length;if(t.has(s))return t.get(s);var o=1/Math.pow(s,.5*e),c=parseFloat(Math.round(o*i)/i);return t.set(s,c),c},clear:function(){t.clear()}}}var Ue=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.getFn,i=t===void 0?F.getFn:t,n=r.fieldNormWeight,a=n===void 0?F.fieldNormWeight:n;_(this,e),this.norm=Bi(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return E(e,[{key:"setSources",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=t}},{key:"setIndexRecords",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=t}},{key:"setKeys",value:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){t._keysMap[n.id]=a})}},{key:"create",value:function(){var t=this;this.isCreated||!this.docs.length||(this.isCreated=!0,j(this.docs[0])?this.docs.forEach(function(i,n){t._addString(i,n)}):this.docs.forEach(function(i,n){t._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(t){var i=this.size();j(t)?this._addString(t,i):this._addObject(t,i)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var i=t,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(t,i){return t[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(t,i){if(!(!N(t)||Ee(t))){var n={v:t,i,n:this.norm.get(t)};this.records.push(n)}}},{key:"_addObject",value:function(t,i){var n=this,a={i,$:{}};this.keys.forEach(function(s,o){var c=s.getFn?s.getFn(t):n.getFn(t,s.path);if(N(c)){if(U(c))(function(){for(var d=[],f=[{nestedArrIndex:-1,value:c}];f.length;){var p=f.pop(),m=p.nestedArrIndex,y=p.value;if(N(y))if(j(y)&&!Ee(y)){var g={v:y,i:m,n:n.norm.get(y)};d.push(g)}else U(y)&&y.forEach(function(h,v){f.push({nestedArrIndex:v,value:h})})}a.$[o]=d})();else if(j(c)&&!Ee(c)){var u={v:c,n:n.norm.get(c)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function qt(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.getFn,n=i===void 0?F.getFn:i,a=t.fieldNormWeight,s=a===void 0?F.fieldNormWeight:a,o=new Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Zt)),o.setSources(r),o.create(),o}function Ri(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.getFn,i=t===void 0?F.getFn:t,n=r.fieldNormWeight,a=n===void 0?F.fieldNormWeight:n,s=e.keys,o=e.records,c=new Ue({getFn:i,fieldNormWeight:a});return c.setKeys(s),c.setIndexRecords(o),c}function ge(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.errors,i=t===void 0?0:t,n=r.currentLocation,a=n===void 0?0:n,s=r.expectedLocation,o=s===void 0?0:s,c=r.distance,u=c===void 0?F.distance:c,d=r.ignoreLocation,f=d===void 0?F.ignoreLocation:d,p=i/e.length;if(f)return p;var m=Math.abs(o-a);return u?p+m/u:m?1:p}function Ii(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F.minMatchCharLength,t=[],i=-1,n=-1,a=0,s=e.length;a<s;a+=1){var o=e[a];o&&i===-1?i=a:!o&&i!==-1&&(n=a-1,n-i+1>=r&&t.push([i,n]),i=-1)}return e[a-1]&&a-i>=r&&t.push([i,a-1]),t}var ee=32;function Di(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?F.location:n,s=i.distance,o=s===void 0?F.distance:s,c=i.threshold,u=c===void 0?F.threshold:c,d=i.findAllMatches,f=d===void 0?F.findAllMatches:d,p=i.minMatchCharLength,m=p===void 0?F.minMatchCharLength:p,y=i.includeMatches,g=y===void 0?F.includeMatches:y,h=i.ignoreLocation,v=h===void 0?F.ignoreLocation:h;if(r.length>ee)throw new Error(Mi(ee));for(var b=r.length,A=e.length,T=Math.max(0,Math.min(a,A)),L=u,S=T,w=m>1||g,R=w?Array(A):[],I;(I=e.indexOf(r,S))>-1;){var Y=ge(r,{currentLocation:I,expectedLocation:T,distance:o,ignoreLocation:v});if(L=Math.min(Y,L),S=I+b,w)for(var O=0;O<b;)R[I+O]=1,O+=1}S=-1;for(var B=[],z=1,re=b+A,Hr=1<<b-1,q=0;q<b;q+=1){for(var de=0,V=re;de<V;){var $r=ge(r,{errors:q,currentLocation:T+V,expectedLocation:T,distance:o,ignoreLocation:v});$r<=L?de=V:re=V,V=Math.floor((re-de)/2+de)}re=V;var ft=Math.max(1,T-V+1),Ie=f?A:Math.min(T+V,A)+b,ie=Array(Ie+2);ie[Ie+1]=(1<<q)-1;for(var H=Ie;H>=ft;H-=1){var pe=H-1,gt=t[e.charAt(pe)];if(w&&(R[pe]=+!!gt),ie[H]=(ie[H+1]<<1|1)>,q&&(ie[H]|=(B[H+1]|B[H])<<1|1|B[H+1]),ie[H]&Hr&&(z=ge(r,{errors:q,currentLocation:pe,expectedLocation:T,distance:o,ignoreLocation:v}),z<=L)){if(L=z,S=pe,S<=T)break;ft=Math.max(1,2*T-S)}}var Wr=ge(r,{errors:q+1,currentLocation:T,expectedLocation:T,distance:o,ignoreLocation:v});if(Wr>L)break;B=ie}var De={isMatch:S>=0,score:Math.max(.001,z)};if(w){var mt=Ii(R,m);mt.length?g&&(De.indices=mt):De.isMatch=!1}return De}function _i(e){for(var r={},t=0,i=e.length;t<i;t+=1){var n=e.charAt(t);r[n]=(r[n]||0)|1<<i-t-1}return r}var er=function(){function e(r){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?F.location:n,s=i.threshold,o=s===void 0?F.threshold:s,c=i.distance,u=c===void 0?F.distance:c,d=i.includeMatches,f=d===void 0?F.includeMatches:d,p=i.findAllMatches,m=p===void 0?F.findAllMatches:p,y=i.minMatchCharLength,g=y===void 0?F.minMatchCharLength:y,h=i.isCaseSensitive,v=h===void 0?F.isCaseSensitive:h,b=i.ignoreLocation,A=b===void 0?F.ignoreLocation:b;if(_(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:A},this.pattern=v?r:r.toLowerCase(),this.chunks=[],!!this.pattern.length){var T=function(O,B){t.chunks.push({pattern:O,alphabet:_i(O),startIndex:B})},L=this.pattern.length;if(L>ee){for(var S=0,w=L%ee,R=L-w;S<R;)T(this.pattern.substr(S,ee),S),S+=ee;if(w){var I=L-ee;T(this.pattern.substr(I),I)}}else T(this.pattern,0)}}return E(e,[{key:"searchIn",value:function(t){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(t=t.toLowerCase()),this.pattern===t){var s={isMatch:!0,score:0};return a&&(s.indices=[[0,t.length-1]]),s}var o=this.options,c=o.location,u=o.distance,d=o.threshold,f=o.findAllMatches,p=o.minMatchCharLength,m=o.ignoreLocation,y=[],g=0,h=!1;this.chunks.forEach(function(b){var A=b.pattern,T=b.alphabet,L=b.startIndex,S=Di(t,A,T,{location:c+L,distance:u,threshold:d,findAllMatches:f,minMatchCharLength:p,includeMatches:a,ignoreLocation:m}),w=S.isMatch,R=S.score,I=S.indices;w&&(h=!0),g+=R,w&&I&&(y=[].concat(te(y),te(I)))});var v={isMatch:h,score:h?g/this.chunks.length:1};return h&&a&&(v.indices=y),v}}]),e}(),X=function(){function e(r){_(this,e),this.pattern=r}return E(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(t){return Ut(t,this.multiRegex)}},{key:"isSingleMatch",value:function(t){return Ut(t,this.singleRegex)}}]),e}();function Ut(e,r){var t=e.match(r);return t?t[1]:null}var Ei=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),t}(X),Oi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.indexOf(this.pattern),s=a===-1;return{isMatch:s,score:s?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),t}(X),Ni=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),t}(X),zi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=!n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),t}(X),Hi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),t}(X),$i=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=!n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),t}(X),tr=function(e){Q(t,e);var r=J(t);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.location,o=s===void 0?F.location:s,c=a.threshold,u=c===void 0?F.threshold:c,d=a.distance,f=d===void 0?F.distance:d,p=a.includeMatches,m=p===void 0?F.includeMatches:p,y=a.findAllMatches,g=y===void 0?F.findAllMatches:y,h=a.minMatchCharLength,v=h===void 0?F.minMatchCharLength:h,b=a.isCaseSensitive,A=b===void 0?F.isCaseSensitive:b,T=a.ignoreLocation,L=T===void 0?F.ignoreLocation:T;return _(this,t),n=r.call(this,i),n._bitapSearch=new er(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:g,minMatchCharLength:v,isCaseSensitive:A,ignoreLocation:L}),n}return E(t,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),t}(X),rr=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){for(var a=0,s,o=[],c=this.pattern.length;(s=n.indexOf(this.pattern,a))>-1;)a=s+c,o.push([s,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),t}(X),We=[Ei,rr,Ni,zi,$i,Hi,Oi,tr],Yt=We.length,Wi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ji="|";function Gi(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(ji).map(function(t){for(var i=t.trim().split(Wi).filter(function(y){return y&&!!y.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],c=!1,u=-1;!c&&++u<Yt;){var d=We[u],f=d.isMultiMatch(o);f&&(n.push(new d(f,r)),c=!0)}if(!c)for(u=-1;++u<Yt;){var p=We[u],m=p.isSingleMatch(o);if(m){n.push(new p(m,r));break}}}return n})}var Ki=new Set([tr.type,rr.type]),Ui=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.isCaseSensitive,n=i===void 0?F.isCaseSensitive:i,a=t.includeMatches,s=a===void 0?F.includeMatches:a,o=t.minMatchCharLength,c=o===void 0?F.minMatchCharLength:o,u=t.ignoreLocation,d=u===void 0?F.ignoreLocation:u,f=t.findAllMatches,p=f===void 0?F.findAllMatches:f,m=t.location,y=m===void 0?F.location:m,g=t.threshold,h=g===void 0?F.threshold:g,v=t.distance,b=v===void 0?F.distance:v;_(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:c,findAllMatches:p,ignoreLocation:d,location:y,threshold:h,distance:b},this.pattern=n?r:r.toLowerCase(),this.query=Gi(this.pattern,this.options)}return E(e,[{key:"searchIn",value:function(t){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,s=n.isCaseSensitive;t=s?t:t.toLowerCase();for(var o=0,c=[],u=0,d=0,f=i.length;d<f;d+=1){var p=i[d];c.length=0,o=0;for(var m=0,y=p.length;m<y;m+=1){var g=p[m],h=g.search(t),v=h.isMatch,b=h.indices,A=h.score;if(v){if(o+=1,u+=A,a){var T=g.constructor.type;Ki.has(T)?c=[].concat(te(c),te(b)):c.push(b)}}else{u=0,o=0,c.length=0;break}}if(o){var L={isMatch:!0,score:u/o};return a&&(L.indices=c),L}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(t,i){return i.useExtendedSearch}}]),e}(),ye=[];function Yi(){ye.push.apply(ye,arguments)}function je(e,r){for(var t=0,i=ye.length;t<i;t+=1){var n=ye[t];if(n.condition(e,r))return new n(e,r)}return new er(e,r)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(r){return!!(r[ve.AND]||r[ve.OR])},Vi=function(r){return!!r[Ge.PATH]},Qi=function(r){return!U(r)&&Jt(r)&&!Ke(r)},Vt=function(r){return Ne({},ve.AND,Object.keys(r).map(function(t){return Ne({},t,r[t])}))};function ir(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.auto,n=i===void 0?!0:i,a=function s(o){var c=Object.keys(o),u=Vi(o);if(!u&&c.length>1&&!Ke(o))return s(Vt(o));if(Qi(o)){var d=u?o[Ge.PATH]:c[0],f=u?o[Ge.PATTERN]:o[d];if(!j(f))throw new Error(Ai(d));var p={keyId:$e(d),pattern:f};return n&&(p.searcher=je(f,r)),p}var m={children:[],operator:c[0]};return c.forEach(function(y){var g=o[y];U(g)&&g.forEach(function(h){m.children.push(s(h))})}),m};return Ke(e)||(e=Vt(e)),a(e)}function Ji(e,r){var t=r.ignoreFieldNorm,i=t===void 0?F.ignoreFieldNorm:t;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,c=s.norm,u=s.score,d=o?o.weight:null;a*=Math.pow(u===0&&d?Number.EPSILON:u,(d||1)*(i?1:c))}),n.score=a})}function Xi(e,r){var t=e.matches;r.matches=[],N(t)&&t.forEach(function(i){if(!(!N(i.indices)||!i.indices.length)){var n=i.indices,a=i.value,s={indices:n,value:a};i.key&&(s.key=i.key.src),i.idx>-1&&(s.refIndex=i.idx),r.matches.push(s)}})}function Zi(e,r){r.score=e.score}function qi(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.includeMatches,n=i===void 0?F.includeMatches:i,a=t.includeScore,s=a===void 0?F.includeScore:a,o=[];return n&&o.push(Xi),s&&o.push(Zi),e.map(function(c){var u=c.idx,d={item:r[u],refIndex:u};return o.length&&o.forEach(function(f){f(c,d)}),d})}var ae=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;_(this,e),this.options=ne(ne({},F),t),this.options.useExtendedSearch,this._keyStore=new ki(this.options.keys),this.setCollection(r,i)}return E(e,[{key:"setCollection",value:function(t,i){if(this._docs=t,i&&!(i instanceof Ue))throw new Error(bi);this._myIndex=i||qt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(t){N(t)&&(this._docs.push(t),this._myIndex.add(t))}},{key:"remove",value:function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},i=[],n=0,a=this._docs.length;n<a;n+=1){var s=this._docs[n];t(s,n)&&(this.removeAt(n),n-=1,a-=1,i.push(s))}return i}},{key:"removeAt",value:function(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.limit,a=n===void 0?-1:n,s=this.options,o=s.includeMatches,c=s.includeScore,u=s.shouldSort,d=s.sortFn,f=s.ignoreFieldNorm,p=j(t)?j(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Ji(p,{ignoreFieldNorm:f}),u&&p.sort(d),Qt(a)&&a>-1&&(p=p.slice(0,a)),qi(p,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(t){var i=je(t,this.options),n=this._myIndex.records,a=[];return n.forEach(function(s){var o=s.v,c=s.i,u=s.n;if(N(o)){var d=i.searchIn(o),f=d.isMatch,p=d.score,m=d.indices;f&&a.push({item:o,idx:c,matches:[{score:p,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(t){var i=this,n=ir(t,this.options),a=function u(d,f,p){if(!d.children){var m=d.keyId,y=d.searcher,g=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return g&&g.length?[{idx:p,item:f,matches:g}]:[]}for(var h=[],v=0,b=d.children.length;v<b;v+=1){var A=d.children[v],T=u(A,f,p);if(T.length)h.push.apply(h,te(T));else if(d.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},c=[];return s.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var p=a(n,d,f);p.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},c.push(o[f])),p.forEach(function(m){var y,g=m.matches;(y=o[f].matches).push.apply(y,te(g))}))}}),c}},{key:"_searchObjectList",value:function(t){var i=this,n=je(t,this.options),a=this._myIndex,s=a.keys,o=a.records,c=[];return o.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var p=[];s.forEach(function(m,y){p.push.apply(p,te(i._findMatches({key:m,value:d[y],searcher:n})))}),p.length&&c.push({idx:f,item:d,matches:p})}}),c}},{key:"_findMatches",value:function(t){var i=t.key,n=t.value,a=t.searcher;if(!N(n))return[];var s=[];if(U(n))n.forEach(function(m){var y=m.v,g=m.i,h=m.n;if(N(y)){var v=a.searchIn(y),b=v.isMatch,A=v.score,T=v.indices;b&&s.push({score:A,key:i,value:y,idx:g,norm:h,indices:T})}});else{var o=n.v,c=n.n,u=a.searchIn(o),d=u.isMatch,f=u.score,p=u.indices;d&&s.push({score:f,key:i,value:o,norm:c,indices:p})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=qt;ae.parseIndex=Ri;ae.config=F;ae.parseQuery=ir;Yi(Ui);var en=ae;nr.exports=en});var za={};Vr(za,{PUNCTUATION:()=>x,abbreviations:()=>Qe,availableExclusions:()=>Br,availableModifiers:()=>Pr,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Ve,default:()=>_r,filterCard:()=>Er,filtersToCardPropertyMappings:()=>Pe,getAbbreviation:()=>Ae,getAbbreviationByCard:()=>tn,getCardByName:()=>lt,getDeckFilters:()=>aa,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>_a,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>ht,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>Na,heroHasFilters:()=>oa,shorthands:()=>rt});module.exports=Qr(za);var P=$(W()),ct=$(ar());var be=$(W()),Ye=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],Ve=[{heroes:[be.Hero.Briar],cardIdentifiers:["rosetta-thorn"]},{heroes:[be.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[be.Hero.Prism],cardIdentifiers:["figment-of-erudition-yellow","figment-of-judgment-yellow","figment-of-protection-yellow","figment-of-ravages-yellow","figment-of-rebirth-yellow","figment-of-tenacity-yellow","figment-of-triumph-yellow","figment-of-war-yellow"]}];var x=/[!"#$%&'’()+,-./:;<=>?@[\]^_`|~]/g;var k=$(W());var Ae=e=>Qe.find(({abbreviations:r})=>r.find(t=>t.toLowerCase()===e)),tn=e=>Qe.find(({card:r})=>r.toLowerCase()===e.name.toLowerCase()),Qe=[{abbreviations:["3oak"],card:"Three of a Kind"},{abbreviations:["ALS"],card:"Arc Light Sentinel"},{abbreviations:["AoW"],card:"Art of War"},{abbreviations:["BBD"],card:"Barraging Beatdown"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["BEB"],card:"Bull's Eye Bracers"},{abbreviations:["BLW"],card:"Be Like Water"},{abbreviations:["BOHH"],card:"Blood on Her Hands"},{abbreviations:["BRB"],card:"Bloodrush Bellow"},{abbreviations:["Breezies"],card:"Breeze Rider Boots"},{abbreviations:["BTA"],card:"Burn Them All"},{abbreviations:["\u{1F382}","Cake"],card:"Ninth Blade of the Blood Oath"},{abbreviations:["CLF"],card:"Channel Lake Frigid"},{abbreviations:["CMH"],card:"Channel Mount Heroic"},{abbreviations:["C&C","CnC"],card:"Command and Conquer"},{abbreviations:["CStrike","C-Strike","C Strike"],card:"Celestial Cataclysm"},{abbreviations:["CtW"],card:"Crush the Weak"},{abbreviations:["CoD"],card:"Crown of Dominion"},{abbreviations:["CoP"],card:"Crown of Providence"},{abbreviations:["DD"],card:"Death Dealer"},{abbreviations:["DPot","D Pot"],card:"Potion of Deja Vu"},{abbreviations:["Dullcap"],card:"Arcanite Skullcap"},{abbreviations:["EBTT"],card:"Even Bigger Than That!"},{abbreviations:["EPot","E Pot"],card:"Energy Potion"},{abbreviations:["EStrike","E-Strike","E Strike"],card:"Enlightened Strike"},{abbreviations:["FFS"],card:"Fyendal's Fighting Spirit"},{abbreviations:["FoN"],card:"Force of Nature"},{abbreviations:["Frosty","\u{1F976}","\u{1F9CA}","\u2744\uFE0F"],card:"Frostbite"},{abbreviations:["Frosty Hammer"],card:"Winter's Wail"},{abbreviations:["GnT"],card:"Give and Take"},{abbreviations:["HMH"],card:"Hope Merchant's Hood"},{abbreviations:["HoI"],card:"Heart of Ice"},{abbreviations:["KKBB"],card:"Knick Knack Bric-a-brac"},{abbreviations:["LAG","Twominaris"],card:"Luminaris, Angel's Glow"},{abbreviations:["LCF","Newminaris"],card:"Luminaris, Celestial Fury"},{abbreviations:["LDE"],card:"Last Ditch Effort"},{abbreviations:["LFaL","L4aL"],card:"Life for a Life"},{abbreviations:["LiT"],card:"Lost in Thought"},{abbreviations:["LNW"],card:"Leave No Witnesses"},{abbreviations:["LoW"],card:"Lord of Wind"},{abbreviations:["LtC"],card:"Lead the Charge"},{abbreviations:["MaxV"],card:"Maximum Velocity"},{abbreviations:["MMB"],card:"Mage Master Boots"},{abbreviations:["MnG"],card:"Meat and Greet"},{abbreviations:["MoM"],card:"Mask of Momentum"},{abbreviations:["PJs","Pajamas"],card:"Alluvion Constellas"},{abbreviations:["Ponder Run"],card:"Premeditate"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["Pumpkin"],card:"Jack-o'-lantern"},{abbreviations:["Qi Unbound"],card:"Qi Unleashed"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["Thanos","Infinity Gauntlet"],card:"Polarity Reversal Script"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["Ultron"],card:"Teklovossen, the Mechropotent"},{abbreviations:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var l=$(W());var Se=Array.from(Array(50).keys()).map(e=>`${e}`),M=(e,r=[])=>{let t=[...e,l.Class.Generic];return r.length>0&&t.push(l.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:t.map(i=>i.toLowerCase()),isOr:!0},rn(r)]},C=(e,r=[])=>{let t=Object.values(l.Hero).filter(i=>i!==e&&!r.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:t,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:t,excluded:!0,isOr:!0}]},rn=e=>{let r=Object.values(l.Talent).filter(t=>!e.includes(t)).map(t=>t.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:r,excluded:!0}},Te=[l.Talent.Draconic],nn=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice,l.Talent.Lightning],an=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice],on=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Lightning],sn=[l.Talent.Elemental,l.Talent.Ice],ln=[l.Talent.Elemental,l.Talent.Ice,l.Talent.Lightning],Ze=[l.Talent.Light],qe=[l.Talent.Shadow],cn=[...M([l.Class.Assassin]),...C(l.Hero.Arakni)],un=[...M([l.Class.Ranger]),...C(l.Hero.Azalea)],dn=[...M([l.Class.Ninja]),...C(l.Hero.Benji)],pn=[...M([l.Class.Guardian]),...C(l.Hero.Betsy)],hn=[...M([l.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...C(l.Hero.Boltyn)],fn=[...M([l.Class.Guardian]),...C(l.Hero.Bravo)],gn=[...M([l.Class.Guardian]),...C(l.Hero.Brevant)],mn=[...M([l.Class.Runeblade],on),...C(l.Hero.Briar)],yn=[...M([l.Class.Adjudicator]),...C(l.Hero.Brutus)],vn=[...M([l.Class.Runeblade],qe),...C(l.Hero.Chane)],bn=[...M([l.Class.Mechanologist]),...C(l.Hero.Dash)],Je=[...M([l.Class.Mechanologist]),...C(l.Hero.DataDoll)],or=[...M([l.Class.Warrior]),...C(l.Hero.Dorinthea)],An=[...M([l.Class.Illusionist],Te),...C(l.Hero.Dromai,[l.Hero.Fai])],Mn=[...M([l.Class.Warrior,l.Class.Wizard],Te),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[l.Type.Action,l.Type.AttackReaction,l.Type.DefenseReaction,l.Type.Instant,l.Type.Mentor,l.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...C(l.Hero.Emperor)],Cn=[...M([l.Class.Ninja],Te),...C(l.Hero.Fai,[l.Hero.Dromai])],sr=[...M([l.Class.Merchant]),...C(l.Hero.GenisWotchuneed)],Fn=[...M([l.Class.Ninja]),...C(l.Hero.Ira)],lr=[...M([l.Class.Wizard],sn),...C(l.Hero.Iyslander)],kn=[...M([l.Class.Wizard])],Sn=[...M([l.Class.Warrior]),...C(l.Hero.Kassai)],Tn=[...M([l.Class.Ninja]),...C(l.Hero.Katsu)],xn=[...M([l.Class.Merchant]),...C(l.Hero.Kavdaen)],Ln=[...M([l.Class.Brute]),...C(l.Hero.Kayo)],wn=[...M([l.Class.Brute],qe),...C(l.Hero.Levia)],Pn=[...M([l.Class.Ranger],ln),...C(l.Hero.Lexi)],Bn=[...M([l.Class.Mechanologist]),...C(l.Hero.Maxx)],Rn=[...M([l.Class.Bard]),...C(l.Hero.Melody)],In=[...M([l.Class.Guardian],an),...C(l.Hero.Oldhim)],Dn=[...M([l.Class.Warrior]),...C(l.Hero.Olympia)],_n=[...M([l.Class.Illusionist],Ze),...C(l.Hero.Prism)],En=[...M([l.Class.Brute]),...C(l.Hero.Rhinar)],On=[...M([l.Class.Ranger]),...C(l.Hero.Riptide)],Nn=[...M([l.Class.Merchant]),...C(l.Hero.Ruudi)],zn=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Hn=[...M([l.Class.Merchant]),...C(l.Hero.Squizzy)],$n=[...M([l.Class.Guardian],nn),...C(l.Hero.Bravo)],Wn=[...M([l.Class.Adjudicator],Te),...C(l.Hero.Taipanis)],jn=[...M([]),...C(l.Hero.Taylor)],Gn=[...M([l.Class.Mechanologist]),...C(l.Hero.Teklovossen)],Kn=[...M([l.Class.Adjudicator],Ze),...C(l.Hero.Theryon)],Un=[...M([l.Class.Assassin]),...C(l.Hero.Uzuri)],Yn=[...M([l.Class.Guardian]),...C(l.Hero.Valda)],Vn=[...M([l.Class.Guardian]),...C(l.Hero.Victor)],Qn=[...M([l.Class.Runeblade]),...C(l.Hero.Viserai)],Jn=[...M([l.Class.Runeblade],qe),...C(l.Hero.Vynnset)],Xn=[...M([l.Class.Bard]),...C(l.Hero.Yorick)],Zn=[...M([l.Class.Guardian]),...C(l.Hero.Yoji)],qn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],cr=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ea=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Me=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],oe=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],ta=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Xe=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ce={blitz:qn,"blitz ll":cr,"blitz living legend":cr,clash:ea,cc:Me,classic:Me,"classic constructed":Me,ll:oe,"living legend":oe,"cc ll":oe,"ll cc":oe,"classic constructed ll":oe,"classic constructed living legend":oe,constructed:Me,commoner:ta,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:cn,azalea:un,benji:dn,betsy:pn,boltyn:hn,bravo:fn,brevant:gn,briar:mn,brutus:yn,chane:vn,dash:bn,data:Je,"data doll":Je,datadoll:Je,dori:or,dorinthea:or,dromai:An,emperor:Mn,fai:Cn,genis:sr,geniswotchuneed:sr,ira:Fn,iyslander:lr,islander:lr,kano:kn,kassai:Sn,katsu:Tn,kavdaen:xn,kayo:Ln,levia:wn,lexi:Pn,maxx:Bn,melody:Rn,oldhim:In,olympia:Dn,prism:_n,rhinar:En,riptide:On,ruudi:Nn,shiyana:zn,squizzy:Hn,starvo:$n,taipanis:Wn,taylor:jn,teklovossen:Gn,theryon:Kn,uzuri:Un,valda:Yn,victor:Vn,viserai:Qn,vynnset:Jn,yorick:Xn,yoji:Zn},Ce=["common","rare","super rare","majestic","legendary","fabled"],ra=(e,r,t)=>{let i=[];if(!r)i.push(...e);else for(let n of e)switch(r){case">=":let a=!1;for(let u of Ce)a?i.push(u):u===n&&(a=!0,i.push(u));break;case">":let s=!1;for(let u of Ce)s?i.push(u):u===n&&(s=!0);break;case"<=":let o=!1;for(let u of Ce.slice().reverse())o?i.push(u):u===n&&(o=!0,i.push(u));break;case"<":let c=!1;for(let u of Ce.slice().reverse())c?i.push(u):u===n&&(c=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:t}},ia=(e,r)=>{let t=[];for(let i of e)if(ce[i]){let n=ce[i];for(let a of n){let s=he({},a);r&&!a.filterToPropertyMapping.isString&&(s.excluded=!a.excluded),t.push(s)}}return t},et=(e,r,t,i)=>{let n=[];return la(r)?n.push(...ia(t,e)):ua(r)&&n.push(ra(t,i,e)),n},se=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialCost",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0}],G=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialDefense",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","placeholder","token","weapon"],excluded:!0}],Fe=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],Z=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],ke=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(l.Talent).map(e=>e.toLowerCase())}],na={"!co":se,"-co":se,"!cost":se,"-cost":se,"!color":se,"-color":se,"!b":G,"-b":G,"!block":G,"-block":G,"!d":G,"-d":G,"!def":G,"-def":G,"!defense":G,"-defense":G,"!pitch":Fe,"-pitch":Fe,"!p":Fe,"-p":Fe,"!attack":Z,"-attack":Z,"!power":Z,"-power":Z,"!pwr":Z,"-pwr":Z,"!pow":Z,"-pow":Z,"!talents":ke,"-talents":ke,"!tal":ke,"-tal":ke},tt=e=>{let r=[],t=na[e];return t&&r.push(...t),r},aa=(e,r)=>[...ce[e.toLowerCase()],...r?ce[r.toLowerCase()]:[]],oa=e=>{var r;return((r=ce[e.toLowerCase().split(" ")[0]])==null?void 0:r.length)>0},sa=["l","legal","hero"],la=e=>sa.includes(e),ca=["r","rarity"],ua=e=>ca.includes(e);var rt={aa:["st:attack"],ab:['k:"arcane barrier"'],ar:['t:"attack reaction"'],dr:['t:"defense reaction"'],ga:['k:"go again"'],naa:["t:action","st:nonattack"],poppers:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],popper:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],sv:['k:"spellvoid"']};var Pr=[">=",">","<=","<"],Br=["!","-"],it={property:"artists",isArray:!0,partialMatch:!0},da={property:"n/a"},ur={property:"classes",isArray:!0,partialMatch:!0},dr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},pr={nestedProperty:"foiling",property:"printings",isArray:!0},hr={property:"fusions",isArray:!0},fr={property:"intellect",isNumber:!0},gr={property:"keywords",isArray:!0,partialMatch:!0},nt={property:"n/a",isMeta:!0},mr={property:"life",specialProperty:"specialLife",isNumber:!0},yr={property:"name",isString:!0},at={property:"pitch",isNumber:!0},xe={property:"power",specialProperty:"specialPower",isNumber:!0},vr={property:"n/a",isMeta:!0},pa={property:"n/a"},ha={property:"n/a"},br={property:"restrictedFormats",isArray:!0,partialMatch:!0},Ar={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Mr={property:"subtypes",isArray:!0},Cr={property:"types",isArray:!0},Fr={property:"talents",isArray:!0},fa={property:"functionalText",isString:!0,partialMatch:!0},ga={property:"typeText",isString:!0,partialMatch:!0},we={nestedProperty:"treatment",property:"printings",isArray:!0},Pe={a:it,artist:it,art:it,attack:xe,b:ue,block:ue,c:ur,class:ur,chain:da,co:dr,cost:dr,color:at,d:ue,def:ue,defense:ue,f:hr,fusion:hr,foil:pr,foiling:pr,i:fr,intellect:fr,k:gr,keyword:gr,l:nt,legal:nt,hero:nt,li:mr,life:mr,n:yr,name:yr,p:at,pitch:at,pwr:xe,pow:xe,power:xe,r:vr,rarity:vr,referencedby:pa,references:ha,rf:br,restricted:br,s:Ar,set:Ar,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Mr,subtype:Mr,t:Cr,type:Cr,tal:Fr,talent:Fr,text:fa,treat:we,treatment:we,var:we,variation:we,x:ga},ma=[{text:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(x,"")}],ya=e=>{var n;let r=[],t=e.trim().toLowerCase();for(let{text:a,override:s}of ma)t.includes(a)&&(t=t.replace(a,s));if((n=Ae(t))==null?void 0:n.card)r.push(t);else{let a=t.split(/[ ]+/),s="",o=0;for(let c of a)o===2&&(r.push(s.trim().replaceAll('"',"")),s="",o=0),o<2&&c.split('"').length===2?(s+=" "+c,o++):o===0&&s===""?r.push(c):o===1&&(s+=" "+c);o===2&&(r.push(s.trim().replaceAll('"',"")),s="",o=0)}return r},va=[k.Hero.Briar,k.Hero.Brutus,k.Hero.Emperor,k.Hero.Prism,k.Hero.Shiyana,k.Hero.Taylor],st=(e,r)=>{var f;let t=ya(e),i=[];for(let p of t){let m=rt[p];m?i.push(...m):i.push(p)}let n=[],a=[],s=[],o=[],c=[],u=[],d={isClash:!1,heroes:[]};for(let p of i)if(xa(p)){let[m,y]=p.split(":"),{modifier:g,values:h,isAnd:v,isOr:b}=Sa(y),{filterKey:A,excluded:T,isMeta:L}=Ta(m);if(L){if(["rarity","r"].includes(A)&&(h=ka(h)),["legal","l","hero"].includes(A)){for(let S of va)y.includes(S.toLowerCase())&&(d.heroes.includes(S)||d.heroes.push(S));y.includes("clash")&&(d.isClash=!0)}n.push(...et(T,A,h,g))}else{if(["chain"].includes(A)){let S=B=>B.name.toLowerCase().replaceAll(x,""),w=h.map(B=>lt(B,r)).filter(B=>!!B).map(S),R=new Set(w);A="name",b=!0;let I=20,Y=0,O=B=>{if(!B.types.includes(k.Type.Hero)){let z=S(B);R.add(z),w.includes(z)||w.push(z)}};for(let B of w){if(Y>I)break;let{referencedBy:z,references:re}=Be(B,r);re.forEach(O),Y===0&&z.forEach(O),Y++}h=Array.from(R)}else if(["referencedby","references"].includes(A)){let S=A,w=[...h].filter(R=>!!R);h=[],A="name",b=!0;for(let R of w){let{referencedBy:I,references:Y}=Be(R,r);["referencedby"].includes(S)?h.push(...Y.map(({name:O})=>O.toLowerCase().replaceAll(x,""))):["references"].includes(S)&&h.push(...I.map(({name:O})=>O.toLowerCase().replaceAll(x,"")))}}else["art","artist"].includes(A)?a=h:["foiling","foil"].includes(A)?(o=Ca(h),h=o.map(S=>S.toLowerCase())):["treat","treatment","var","variation"].includes(A)?(u=Fa(h),h=u.map(S=>S.toLowerCase())):["set","s"].includes(A)?(c=ba(h),h=c.map(S=>S.toLowerCase().replaceAll(x,""))):["pitch","p","color"].includes(A)&&(h=Ma(h));Pe[A]&&n.push({filterToPropertyMapping:Pe[A],values:h,isAnd:v,isOr:b,modifier:g,excluded:T})}}else if(p){let m=(f=Ae(p))==null?void 0:f.card,y=tt(p);m?s.push(`"${m.toLowerCase().replace(x,"")}"`):y&&y.length>0?n.push(...y):s.push(p.replace(x,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:c,treatments:u},keywords:s,specialConditions:d}},ba=e=>{let r=[];for(let t of e)r.push(...Aa(t));return r},Aa=e=>{let r=[],t=Object.values(k.Release).find(i=>i.toLowerCase().replaceAll(x,"")===e);if(t&&r.push(t),r.length===0){let i=k.setIdentifierToSetMappings[e];i&&r.push(i)}if(r.length===0){let i=Object.values(k.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&r.push(...i)}return r},ot={blue:3,yellow:2,red:1,white:0},Ma=e=>{let r=[];for(let t of e)ot[t]||ot[t]===0?r.push(ot[t].toString()):r.push(t);return r},kr={r:k.Foiling.R,rf:k.Foiling.R,rainbow:k.Foiling.R,c:k.Foiling.C,cf:k.Foiling.C,cold:k.Foiling.C,g:k.Foiling.G,gf:k.Foiling.G,gold:k.Foiling.G},Ca=e=>{let r=[];for(let t of e)kr[t]&&r.push(kr[t]);return r},Sr={aa:k.Treatment.AA,alt:k.Treatment.AA,"alt art":k.Treatment.AA,ab:k.Treatment.AB,"alt border":k.Treatment.AB,at:k.Treatment.AT,"alt text":k.Treatment.AT,ds:k.Treatment.DS,"double sided":k.Treatment.DS,ea:k.Treatment.EA,extended:k.Treatment.EA,"extended art":k.Treatment.EA,fa:k.Treatment.FA,full:k.Treatment.FA,"full art":k.Treatment.FA},Fa=e=>{let r=[];for(let t of e)Sr[t]?r.push(Sr[t]):k.Treatment[t.toUpperCase()]&&r.push(k.Treatment[t.toUpperCase()]);return r},Tr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},ka=e=>{let r=[];for(let t of e)Tr[t]?r.push(Tr[t]):r.push(t);return r},Sa=e=>{let r=[],t,i,n=Pr.find(a=>e.includes(a));if(n){let[,a]=e.split(n);xr(a)?(t=!0,r.push(...a.trim().split("+").map(s=>s.replace(x,"")))):Lr(a)?(i=!0,r.push(...a.trim().split(",").map(s=>s.replace(x,"")))):r.push(a.trim().replace(x,""))}else xr(e)?(t=!0,r.push(...e.trim().split("+").map(a=>a.replace(x,"")))):Lr(e)?(i=!0,r.push(...e.trim().split(",").map(a=>a.replace(x,"")))):e.startsWith('"')&&e.endsWith('"')?r.push(e.trim().replaceAll('"',"").replace(x,"")):r.push(e.trim().replace(x,""));return{modifier:n,values:r,isAnd:t,isOr:i}},Ta=e=>{let r=La(e);if(r){let[,t]=e.split(r);return{excluded:!0,filterKey:t,isMeta:wr(t)}}else return{excluded:!1,filterKey:e,isMeta:wr(e)}},xa=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Lr=e=>e.indexOf(",")>=0,wr=e=>{var r;return!!((r=Pe[e])!=null&&r.isMeta)},La=e=>{var r;return(r=Br.find(t=>e.includes(t)))==null?void 0:r.slice(0,1)};var D=$(W()),Rr={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[D.Class.Generic],defaultImage:"FNG000",functionalText:"If Fangs A Lot is put into your banished zone from your graveyard, instead put it into your hand.",printings:[{artist:"Hoodwill",identifier:"FNG000",image:"FNG000",print:"FNG000",set:D.Release.Promos},{artist:"Hoodwill",identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${D.Treatment.FA}`,set:D.Release.Promos,treatment:D.Treatment.FA}],name:"Fangs A Lot",rarities:[D.Rarity.Rare],rarity:D.Rarity.Rare,sets:[D.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[D.Subtype.Attack],types:[D.Type.Action],typeText:"Generic Action - Attack"},Ir=[{keyword:Rr.name.toLowerCase(),card:Rr}];var Dr=$(W());var ut=class{constructor(r){this.search=(r,t)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(r,this.cards),c=s.join(" "),u=t?Ir.filter(g=>g.keyword===c):[];if(u.length>0?i=u.map(({card:g})=>g):s.length?i=this.fuse.search(c).map(g=>g.item):i=[...this.cards],n.length&&(i=i.filter(g=>g&&Er(g,n,o)),n.some(({excluded:g,values:h})=>!g&&h.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(g=>!g.young)),n.some(({excluded:g,values:h})=>!g&&(h.includes(P.Format.Blitz.toLowerCase())||h.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(g=>{let{types:h,young:v}=g;return!(h.includes(P.Type.Hero)&&!v)}))),s.length===0){let g="";if(a.releases.length===1)try{let h=a.releases[0];g=P.setToSetIdentifierMappings[h][0].toUpperCase()}catch(h){console.error("Error getting set identifier from search",h)}g?i.sort((h,v)=>{var T,L;let b=(T=h.setIdentifiers.find(S=>S.includes(g)))==null?void 0:T.replace(g,""),A=(L=v.setIdentifiers.find(S=>S.includes(g)))==null?void 0:L.replace(g,"");return b&&A?b.localeCompare(A):-1}):i.sort((h,v)=>h.name===v.name?`${h.pitch}`.localeCompare(`${v.pitch}`):h.name.localeCompare(v.name))}else{let g=[],h=[],v=s.map(b=>b.toLowerCase().replace(x,"")).join(" ");for(let b of i)b.name.toLowerCase().replace(x,"")===v?g.push(b):h.push(b);i=[...g,...h]}let d,{artists:f,foilings:p,releases:m,treatments:y}=a;return(f.length>0||p.length>0||m.length>0||y.length>0)&&(d=i.map(g=>{let h=g.printings.filter(v=>{let b=!!v.image,A=f.length===0||f.some(w=>v.artist.replace(x,"").toLowerCase().includes(w)),T=p.length===0||p.includes(v.foiling),L=m.length===0||m.includes(v.set),S=y.length===0||y.includes(v.treatment);return b&&A&&T&&L&&S});return he({matchingPrintings:h},g)})),{appliedFilters:n,attributes:a,keywords:s,searchResults:d||i}};let t={getFn:(i,n)=>{let a=ct.default.config.getFn(i,n);return a&&(Array.isArray(a)?a.map(s=>s.replace(x,"")):a.replace(x,""))},ignoreLocation:!0,includeScore:!0,keys:[{name:"name",weight:10},{name:"functionalText",weight:6},{name:"setIdentifiers",weight:2},{name:"typeText",weight:6}],threshold:.15,useExtendedSearch:!0};this.cards=[...r],this.fuse=new ct.default([...r],t)}},_r=ut,Er=(e,r,t)=>{var n,a,s;let i=!0;for(let o of r){let{isNumber:c,isString:u,isArray:d,isBoolean:f,property:p}=o.filterToPropertyMapping;if((c&&!wa(e,o)||u&&!Pa(e,o)||d&&!Ba(e,o)||f&&!Ra(e,o))&&(i=!1),t.isClash&&["rarities","bannedFormats"].includes(p)){let b=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(w=>e.rarities.includes(w)),A=!1;for(let{cardIdentifiers:w,heroes:R}of Ve)for(let I of t.heroes)R.includes(I)&&w.includes(e.cardIdentifier)&&(A=!0);let T=!!e.specializations&&e.specializations.length>0||A,L=[P.Type.Mentor,P.Type.Weapon].some(w=>e.types.includes(w)),S=Ye.includes(e.name);!i&&!S&&(T||L)&&b&&(i=!0),S&&(i=!1)}if(t.isClash&&t.heroes.includes(P.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&t.heroes.includes(P.Hero.Brutus)){let b=((n=e.specializations)==null?void 0:n.length)>0;((a=e.keywords)==null?void 0:a.includes(Dr.Keyword.Clash))&&!b&&(i=!0)}!i&&t.heroes.includes(P.Hero.Shiyana)&&["classes"].includes(p)&&((s=e.specializations)==null?void 0:s.length)>0&&(i=!0);let h=e.types.includes(P.Type.Equipment);if(!i&&t.heroes.includes(P.Hero.Taylor)&&h&&h&&(i=!0),!i)break}return i},wa=(e,r)=>{var t;if(Re(r,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=r,o=dt(e,r);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let c=i==null?void 0:i.some(p=>o>=parseInt(p));return a?!c:c;case">":let u=i==null?void 0:i.some(p=>o>parseInt(p));return a?!u:u;case"<=":let d=i==null?void 0:i.some(p=>o<=parseInt(p));return a?!d:d;case"<":let f=i==null?void 0:i.some(p=>o<parseInt(p));return a?!f:f;default:return!1}else{let c=i==null?void 0:i.some(u=>o===parseInt(u));return a?!c:c}else{let c=(t=Da(e,r))==null?void 0:t.toLowerCase(),u=s?i==null?void 0:i.some(d=>c==null?void 0:c.includes(d)):i==null?void 0:i.some(d=>c===d);return a?!u:u}}else return!0},Pa=(e,r)=>{var t;if(Re(r,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=r,o=(t=dt(e,r))==null?void 0:t.replaceAll(x,"");if(s){let c=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!c:c}else{let c=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!c:c}}else return!0},Ba=(e,r)=>{if(Re(r,e)){let{values:t,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=r,s=Ia(e,r).map(o=>o==null?void 0:o.replaceAll(x,""));if(a){let o=i?t.every(u=>s==null?void 0:s.some(d=>d==null?void 0:d.toLowerCase().includes(u))):t.some(u=>s==null?void 0:s.some(d=>d==null?void 0:d.toLowerCase().includes(u))),c=s.length===0;return n?!o||c:o}else{let o=i?t.every(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c)):t.some(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c));return n?!o:o}}else return!0},Ra=(e,r)=>{if(Re(r,e)){let{excluded:t}=r,i=dt(e,r);return t?!i:i}else return!0},dt=(e,r)=>{let{filterToPropertyMapping:t}=r;return e[t.property]},Ia=(e,r)=>{let{filterToPropertyMapping:{nestedProperty:t,property:i}}=r,n=e[i]||[];return t?n.map(a=>a[t]).filter(a=>!!a):n},Da=(e,r)=>{let{filterToPropertyMapping:t}=r;return e[t.specialProperty]},Re=({cardTypes:e},{types:r,subtypes:t})=>!e||(e==null?void 0:e.some(i=>r.map(n=>n.toLowerCase()).includes(i.toLowerCase())||t.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var lt=(e,r)=>{let t=r.find(i=>i.name.toLowerCase().replace(x,"")===e);return t||(t=r.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),t};var K=$(W()),_a=e=>{let r=e.filter(o=>o.types.includes(K.Type.Hero)).sort((o,c)=>o.name.localeCompare(c.name)),t=r.filter(o=>!o.young&&!o.classes.includes(K.Class.Adjudicator)),i=r.filter(o=>{let c=o.rarities.some(d=>d!==K.Rarity.Promo),u=o.sets.some(d=>d!==K.Release.Promos);return c||u}),n=r.filter(o=>{let c=o.rarities.every(d=>d===K.Rarity.Promo),u=o.sets.every(d=>d===K.Release.Promos);return c&&u}),a=r.filter(o=>o.young),s=a.filter(({hero:o})=>!t.find(c=>c.hero===o));return{all:r,adult:t,nonPromo:i,promoOnly:n,young:a,youngOnly:s}};var zr=$(W());var pt=$(W()),Ea={"Dawnblade, Resplendent":"Dawnblade"},Or=e=>Ea[e.name]||e.name,Nr=e=>{var r;return(r=e.functionalText)==null?void 0:r.replaceAll(e.name,"")},Be=(e,r)=>{let t=r.find(i=>i.name.toLowerCase().replace(x,"")===e);return t||(t=r.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),ht(t,r)},ht=(e,r)=>{var a,s;let t=[],i=[],n=[];if(e){let o=[],c=[],u=Or(e);for(let d of r){let f=Or(d),p=u===f,m=e.pitch!==d.pitch;if(p&&m)t.push(d);else if(!p){let y=e.name==="Seismic Surge",g=(a=d.keywords)==null?void 0:a.includes(pt.Keyword.Heave),h=y&&g,v=Nr(d),b=v==null?void 0:v.includes(u),A=Nr(e),T=A==null?void 0:A.includes(f);(b||h)&&o.push(d);let L=d.name==="Seismic Surge",S=(s=e.keywords)==null?void 0:s.includes(pt.Keyword.Heave);(T||L&&S)&&c.push(d)}}for(let d of o)i.push(d);for(let d of c){let f=d.name;u!==f&&!c.some(p=>{let m=p.name;return m!==f&&m.includes(f)})&&n.push(d)}}return{otherPitches:t,referencedBy:i,references:n}},Oa=["cash-in-yellow"],Na=(e,r,t)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!Oa.includes(a))){let{references:a}=ht(n,r);for(let s of a.filter(o=>{let c=o.name==="Hyper Driver",u=t===zr.Hero.Maxx;return!c||u}))i.add(s)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,shorthands});
|
|
1
|
+
var jr=Object.create;var le=Object.defineProperty;var Gr=Object.getOwnPropertyDescriptor;var Kr=Object.getOwnPropertyNames,vt=Object.getOwnPropertySymbols,Ur=Object.getPrototypeOf,At=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var bt=(e,r,t)=>r in e?le(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,he=(e,r)=>{for(var t in r||(r={}))At.call(r,t)&&bt(e,t,r[t]);if(vt)for(var t of vt(r))Yr.call(r,t)&&bt(e,t,r[t]);return e};var Mt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vr=(e,r)=>{for(var t in r)le(e,t,{get:r[t],enumerable:!0})},Ct=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Kr(r))!At.call(e,n)&&n!==t&&le(e,n,{get:()=>r[n],enumerable:!(i=Gr(r,n))||i.enumerable});return e};var W=(e,r,t)=>(t=e!=null?jr(Ur(e)):{},Ct(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e)),Qr=e=>Ct(le({},"__esModule",{value:!0}),e);var j=Mt(($a,Wt)=>{var fe=Object.defineProperty,Jr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptor,Zr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertyNames,Ft=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,kt=(e,r,t)=>r in e?fe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ti=(e,r)=>{for(var t in r||(r={}))St.call(r,t)&&kt(e,t,r[t]);if(Ft)for(var t of Ft(r))ei.call(r,t)&&kt(e,t,r[t]);return e},ri=(e,r)=>Jr(e,Zr(r)),ii=(e,r)=>{for(var t in r)fe(e,t,{get:r[t],enumerable:!0})},ni=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of qr(r))!St.call(e,n)&&n!==t&&fe(e,n,{get:()=>r[n],enumerable:!(i=Xr(r,n))||i.enumerable});return e},ai=e=>ni(fe({},"__esModule",{value:!0}),e),Tt={};ii(Tt,{Class:()=>wt,Foiling:()=>xt,Format:()=>Pt,Fusion:()=>Bt,Hero:()=>Nt,Keyword:()=>zt,Rarity:()=>Rt,Release:()=>It,ReleaseEdition:()=>Dt,Subtype:()=>Ot,Talent:()=>_t,Treatment:()=>Lt,Type:()=>Et,fullSetIdentifiers:()=>Ht,setIdentifierToSetMappings:()=>$t,setToSetIdentifierMappings:()=>oi});Wt.exports=ai(Tt);var xt=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(xt||{}),Lt=(e=>(e.AB="Alternate Border",e.AA="Alternate Art",e.AT="Alternate Text",e.DS="Double Sided",e.EA="Extended Art",e.FA="Full Art",e))(Lt||{}),wt=(e=>(e.NotClassed="NotClassed",e.Generic="Generic",e.Adjudicator="Adjudicator",e.Assassin="Assassin",e.Bard="Bard",e.Brute="Brute",e.Guardian="Guardian",e.Illusionist="Illusionist",e.Mechanologist="Mechanologist",e.Merchant="Merchant",e.Ninja="Ninja",e.Ranger="Ranger",e.Runeblade="Runeblade",e.Shapeshifter="Shapeshifter",e.Warrior="Warrior",e.Wizard="Wizard",e))(wt||{}),Pt=(e=>(e.Blitz="Blitz",e.BlitzLivingLegend="Blitz (Living Legend)",e.Clash="Clash",e.ClassicConstructed="Classic Constructed",e.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",e.Commoner="Commoner",e.Draft="Draft",e.Open="Open",e.Sealed="Sealed",e.UltimatePitFight="Ultimate Pit Fight",e))(Pt||{}),Bt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Bt||{}),Rt=(e=>(e.Token="Token",e.Common="Common",e.Rare="Rare",e.SuperRare="Super Rare",e.Majestic="Majestic",e.Marvel="Marvel",e.Legendary="Legendary",e.Fabled="Fabled",e.Promo="Promo",e))(Rt||{}),It=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.DromaiBlitzDeck="Dromai Blitz Deck",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.IraWelcomeDeck="Ira Welcome Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.RoundTheTable="Round the Table",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.Promos="Promos",e))(It||{}),Dt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(Dt||{}),_t=(e=>(e.Royal="Royal",e.Draconic="Draconic",e.Earth="Earth",e.Elemental="Elemental",e.Ice="Ice",e.Light="Light",e.Lightning="Lightning",e.Shadow="Shadow",e))(_t||{}),Et=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(Et||{}),Ot=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Ot||{}),Nt=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Brutus="Brutus",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Fai="Fai",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(Nt||{}),zt=(e=>(e.Ambush="Ambush",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BeatChest="Beat Chest",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",e.Clash="Clash",e.Combo="Combo",e.Contract="Contract",e.Crank="Crank",e.Crush="Crush",e.Dominate="Dominate",e.Ephemeral="Ephemeral",e.Essence="Essence",e.EvoUpgrade="Evo Upgrade",e.Freeze="Freeze",e.Fusion="Fusion",e.Galvanize="Galvanize",e.GoAgain="Go again",e.Guardwell="Guardwell",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",e.Modular="Modular",e.Mirage="Mirage",e.Negate="Negate",e.Opt="Opt",e.Overpower="Overpower",e.Pairs="Pairs",e.Piercing="Piercing",e.Phantasm="Phantasm",e.Protect="Protect",e.Quell="Quell",e.Reload="Reload",e.Reprise="Reprise",e.RuneGate="Rune Gate",e.Rupture="Rupture",e.Scrap="Scrap",e.Solflare="Solflare",e.Specialization="Specialization",e.Spectra="Spectra",e.Spellvoid="Spellvoid",e.Stealth="Stealth",e.Surge="Surge",e.Temper="Temper",e.Tower="Tower",e.Transform="Transform",e.Universal="Universal",e.Unfreeze="Unfreeze",e.Unity="Unity",e.Wager="Wager",e.Ward="Ward",e))(zt||{}),Ht={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters"},$t=ri(ti({},Ht),{ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),_e={};for(let[e,r]of Object.entries($t)){let t=_e[r];t?t.push(e):_e[r]=[e]}var oi=_e});var or=Mt((Wa,ar)=>{"use strict";function jt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function ne(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?jt(Object(t),!0).forEach(function(i){Ne(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jt(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function Oe(e){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Oe(e)}function _(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Gt(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,r,t){return r&&Gt(e.prototype,r),t&&Gt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Q(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),r&&ze(e,r)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},me(e)}function ze(e,r){return ze=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},ze(e,r)}function si(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function li(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function J(e){var r=si();return function(){var i=me(e),n;if(r){var a=me(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return ci(this,n)}}function te(e){return ui(e)||di(e)||pi(e)||hi()}function ui(e){if(Array.isArray(e))return He(e)}function di(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pi(e,r){if(e){if(typeof e=="string")return He(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return He(e,r)}}function He(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}function hi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(e){return Array.isArray?Array.isArray(e):Zt(e)==="[object Array]"}var fi=1/0;function gi(e){if(typeof e=="string")return e;var r=e+"";return r=="0"&&1/e==-fi?"-0":r}function mi(e){return e==null?"":gi(e)}function G(e){return typeof e=="string"}function Jt(e){return typeof e=="number"}function yi(e){return e===!0||e===!1||vi(e)&&Zt(e)=="[object Boolean]"}function Xt(e){return Oe(e)==="object"}function vi(e){return Xt(e)&&e!==null}function N(e){return e!=null}function Ee(e){return!e.trim().length}function Zt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var bi="Incorrect 'index' type",Ai=function(r){return"Invalid value for key ".concat(r)},Mi=function(r){return"Pattern length exceeds max of ".concat(r,".")},Ci=function(r){return"Missing ".concat(r," property in key")},Fi=function(r){return"Property 'weight' in key '".concat(r,"' must be a positive integer")},Kt=Object.prototype.hasOwnProperty,ki=function(){function e(r){var t=this;_(this,e),this._keys=[],this._keyMap={};var i=0;r.forEach(function(n){var a=qt(n);i+=a.weight,t._keys.push(a),t._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return E(e,[{key:"get",value:function(t){return this._keyMap[t]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function qt(e){var r=null,t=null,i=null,n=1,a=null;if(G(e)||Y(e))i=e,r=Ut(e),t=$e(e);else{if(!Kt.call(e,"name"))throw new Error(Ci("name"));var s=e.name;if(i=s,Kt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Fi(s));r=Ut(s),t=$e(s),a=e.getFn}return{path:r,id:t,weight:n,src:i,getFn:a}}function Ut(e){return Y(e)?e:e.split(".")}function $e(e){return Y(e)?e.join("."):e}function Si(e,r){var t=[],i=!1,n=function a(s,o,l){if(N(s))if(!o[l])t.push(s);else{var u=o[l],d=s[u];if(!N(d))return;if(l===o.length-1&&(G(d)||Jt(d)||yi(d)))t.push(mi(d));else if(Y(d)){i=!0;for(var f=0,p=d.length;f<p;f+=1)a(d[f],o,l+1)}else o.length&&a(d,o,l+1)}};return n(e,G(r)?r.split("."):r,0),i?t:t[0]}var Ti={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},xi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(r,t){return r.score===t.score?r.idx<t.idx?-1:1:r.score<t.score?-1:1}},Li={location:0,threshold:.6,distance:100},wi={useExtendedSearch:!1,getFn:Si,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},C=ne(ne(ne(ne({},xi),Ti),Li),wi),Pi=/[^ ]+/g;function Bi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,t=new Map,i=Math.pow(10,r);return{get:function(a){var s=a.match(Pi).length;if(t.has(s))return t.get(s);var o=1/Math.pow(s,.5*e),l=parseFloat(Math.round(o*i)/i);return t.set(s,l),l},clear:function(){t.clear()}}}var Ue=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.getFn,i=t===void 0?C.getFn:t,n=r.fieldNormWeight,a=n===void 0?C.fieldNormWeight:n;_(this,e),this.norm=Bi(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return E(e,[{key:"setSources",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=t}},{key:"setIndexRecords",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=t}},{key:"setKeys",value:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){t._keysMap[n.id]=a})}},{key:"create",value:function(){var t=this;this.isCreated||!this.docs.length||(this.isCreated=!0,G(this.docs[0])?this.docs.forEach(function(i,n){t._addString(i,n)}):this.docs.forEach(function(i,n){t._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(t){var i=this.size();G(t)?this._addString(t,i):this._addObject(t,i)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var i=t,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(t,i){return t[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(t,i){if(!(!N(t)||Ee(t))){var n={v:t,i,n:this.norm.get(t)};this.records.push(n)}}},{key:"_addObject",value:function(t,i){var n=this,a={i,$:{}};this.keys.forEach(function(s,o){var l=s.getFn?s.getFn(t):n.getFn(t,s.path);if(N(l)){if(Y(l))(function(){for(var d=[],f=[{nestedArrIndex:-1,value:l}];f.length;){var p=f.pop(),m=p.nestedArrIndex,y=p.value;if(N(y))if(G(y)&&!Ee(y)){var g={v:y,i:m,n:n.norm.get(y)};d.push(g)}else Y(y)&&y.forEach(function(h,v){f.push({nestedArrIndex:v,value:h})})}a.$[o]=d})();else if(G(l)&&!Ee(l)){var u={v:l,n:n.norm.get(l)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function er(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.getFn,n=i===void 0?C.getFn:i,a=t.fieldNormWeight,s=a===void 0?C.fieldNormWeight:a,o=new Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(qt)),o.setSources(r),o.create(),o}function Ri(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.getFn,i=t===void 0?C.getFn:t,n=r.fieldNormWeight,a=n===void 0?C.fieldNormWeight:n,s=e.keys,o=e.records,l=new Ue({getFn:i,fieldNormWeight:a});return l.setKeys(s),l.setIndexRecords(o),l}function ge(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.errors,i=t===void 0?0:t,n=r.currentLocation,a=n===void 0?0:n,s=r.expectedLocation,o=s===void 0?0:s,l=r.distance,u=l===void 0?C.distance:l,d=r.ignoreLocation,f=d===void 0?C.ignoreLocation:d,p=i/e.length;if(f)return p;var m=Math.abs(o-a);return u?p+m/u:m?1:p}function Ii(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C.minMatchCharLength,t=[],i=-1,n=-1,a=0,s=e.length;a<s;a+=1){var o=e[a];o&&i===-1?i=a:!o&&i!==-1&&(n=a-1,n-i+1>=r&&t.push([i,n]),i=-1)}return e[a-1]&&a-i>=r&&t.push([i,a-1]),t}var ee=32;function Di(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?C.location:n,s=i.distance,o=s===void 0?C.distance:s,l=i.threshold,u=l===void 0?C.threshold:l,d=i.findAllMatches,f=d===void 0?C.findAllMatches:d,p=i.minMatchCharLength,m=p===void 0?C.minMatchCharLength:p,y=i.includeMatches,g=y===void 0?C.includeMatches:y,h=i.ignoreLocation,v=h===void 0?C.ignoreLocation:h;if(r.length>ee)throw new Error(Mi(ee));for(var F=r.length,b=e.length,k=Math.max(0,Math.min(a,b)),x=u,S=k,w=m>1||g,B=w?Array(b):[],I;(I=e.indexOf(r,S))>-1;){var z=ge(r,{currentLocation:I,expectedLocation:k,distance:o,ignoreLocation:v});if(x=Math.min(z,x),S=I+F,w)for(var O=0;O<F;)B[I+O]=1,O+=1}S=-1;for(var R=[],H=1,re=F+b,Hr=1<<F-1,q=0;q<F;q+=1){for(var de=0,V=re;de<V;){var $r=ge(r,{errors:q,currentLocation:k+V,expectedLocation:k,distance:o,ignoreLocation:v});$r<=x?de=V:re=V,V=Math.floor((re-de)/2+de)}re=V;var gt=Math.max(1,k-V+1),Ie=f?b:Math.min(k+V,b)+F,ie=Array(Ie+2);ie[Ie+1]=(1<<q)-1;for(var $=Ie;$>=gt;$-=1){var pe=$-1,mt=t[e.charAt(pe)];if(w&&(B[pe]=+!!mt),ie[$]=(ie[$+1]<<1|1)&mt,q&&(ie[$]|=(R[$+1]|R[$])<<1|1|R[$+1]),ie[$]&Hr&&(H=ge(r,{errors:q,currentLocation:pe,expectedLocation:k,distance:o,ignoreLocation:v}),H<=x)){if(x=H,S=pe,S<=k)break;gt=Math.max(1,2*k-S)}}var Wr=ge(r,{errors:q+1,currentLocation:k,expectedLocation:k,distance:o,ignoreLocation:v});if(Wr>x)break;R=ie}var De={isMatch:S>=0,score:Math.max(.001,H)};if(w){var yt=Ii(B,m);yt.length?g&&(De.indices=yt):De.isMatch=!1}return De}function _i(e){for(var r={},t=0,i=e.length;t<i;t+=1){var n=e.charAt(t);r[n]=(r[n]||0)|1<<i-t-1}return r}var tr=function(){function e(r){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?C.location:n,s=i.threshold,o=s===void 0?C.threshold:s,l=i.distance,u=l===void 0?C.distance:l,d=i.includeMatches,f=d===void 0?C.includeMatches:d,p=i.findAllMatches,m=p===void 0?C.findAllMatches:p,y=i.minMatchCharLength,g=y===void 0?C.minMatchCharLength:y,h=i.isCaseSensitive,v=h===void 0?C.isCaseSensitive:h,F=i.ignoreLocation,b=F===void 0?C.ignoreLocation:F;if(_(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:b},this.pattern=v?r:r.toLowerCase(),this.chunks=[],!!this.pattern.length){var k=function(O,R){t.chunks.push({pattern:O,alphabet:_i(O),startIndex:R})},x=this.pattern.length;if(x>ee){for(var S=0,w=x%ee,B=x-w;S<B;)k(this.pattern.substr(S,ee),S),S+=ee;if(w){var I=x-ee;k(this.pattern.substr(I),I)}}else k(this.pattern,0)}}return E(e,[{key:"searchIn",value:function(t){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(t=t.toLowerCase()),this.pattern===t){var s={isMatch:!0,score:0};return a&&(s.indices=[[0,t.length-1]]),s}var o=this.options,l=o.location,u=o.distance,d=o.threshold,f=o.findAllMatches,p=o.minMatchCharLength,m=o.ignoreLocation,y=[],g=0,h=!1;this.chunks.forEach(function(F){var b=F.pattern,k=F.alphabet,x=F.startIndex,S=Di(t,b,k,{location:l+x,distance:u,threshold:d,findAllMatches:f,minMatchCharLength:p,includeMatches:a,ignoreLocation:m}),w=S.isMatch,B=S.score,I=S.indices;w&&(h=!0),g+=B,w&&I&&(y=[].concat(te(y),te(I)))});var v={isMatch:h,score:h?g/this.chunks.length:1};return h&&a&&(v.indices=y),v}}]),e}(),X=function(){function e(r){_(this,e),this.pattern=r}return E(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(t){return Yt(t,this.multiRegex)}},{key:"isSingleMatch",value:function(t){return Yt(t,this.singleRegex)}}]),e}();function Yt(e,r){var t=e.match(r);return t?t[1]:null}var Ei=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),t}(X),Oi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.indexOf(this.pattern),s=a===-1;return{isMatch:s,score:s?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),t}(X),Ni=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),t}(X),zi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=!n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),t}(X),Hi=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),t}(X),$i=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){var a=!n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),t}(X),rr=function(e){Q(t,e);var r=J(t);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.location,o=s===void 0?C.location:s,l=a.threshold,u=l===void 0?C.threshold:l,d=a.distance,f=d===void 0?C.distance:d,p=a.includeMatches,m=p===void 0?C.includeMatches:p,y=a.findAllMatches,g=y===void 0?C.findAllMatches:y,h=a.minMatchCharLength,v=h===void 0?C.minMatchCharLength:h,F=a.isCaseSensitive,b=F===void 0?C.isCaseSensitive:F,k=a.ignoreLocation,x=k===void 0?C.ignoreLocation:k;return _(this,t),n=r.call(this,i),n._bitapSearch=new tr(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:g,minMatchCharLength:v,isCaseSensitive:b,ignoreLocation:x}),n}return E(t,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),t}(X),ir=function(e){Q(t,e);var r=J(t);function t(i){return _(this,t),r.call(this,i)}return E(t,[{key:"search",value:function(n){for(var a=0,s,o=[],l=this.pattern.length;(s=n.indexOf(this.pattern,a))>-1;)a=s+l,o.push([s,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),t}(X),We=[Ei,ir,Ni,zi,$i,Hi,Oi,rr],Vt=We.length,Wi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ji="|";function Gi(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(ji).map(function(t){for(var i=t.trim().split(Wi).filter(function(y){return y&&!!y.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],l=!1,u=-1;!l&&++u<Vt;){var d=We[u],f=d.isMultiMatch(o);f&&(n.push(new d(f,r)),l=!0)}if(!l)for(u=-1;++u<Vt;){var p=We[u],m=p.isSingleMatch(o);if(m){n.push(new p(m,r));break}}}return n})}var Ki=new Set([rr.type,ir.type]),Ui=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.isCaseSensitive,n=i===void 0?C.isCaseSensitive:i,a=t.includeMatches,s=a===void 0?C.includeMatches:a,o=t.minMatchCharLength,l=o===void 0?C.minMatchCharLength:o,u=t.ignoreLocation,d=u===void 0?C.ignoreLocation:u,f=t.findAllMatches,p=f===void 0?C.findAllMatches:f,m=t.location,y=m===void 0?C.location:m,g=t.threshold,h=g===void 0?C.threshold:g,v=t.distance,F=v===void 0?C.distance:v;_(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:l,findAllMatches:p,ignoreLocation:d,location:y,threshold:h,distance:F},this.pattern=n?r:r.toLowerCase(),this.query=Gi(this.pattern,this.options)}return E(e,[{key:"searchIn",value:function(t){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,s=n.isCaseSensitive;t=s?t:t.toLowerCase();for(var o=0,l=[],u=0,d=0,f=i.length;d<f;d+=1){var p=i[d];l.length=0,o=0;for(var m=0,y=p.length;m<y;m+=1){var g=p[m],h=g.search(t),v=h.isMatch,F=h.indices,b=h.score;if(v){if(o+=1,u+=b,a){var k=g.constructor.type;Ki.has(k)?l=[].concat(te(l),te(F)):l.push(F)}}else{u=0,o=0,l.length=0;break}}if(o){var x={isMatch:!0,score:u/o};return a&&(x.indices=l),x}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(t,i){return i.useExtendedSearch}}]),e}(),ye=[];function Yi(){ye.push.apply(ye,arguments)}function je(e,r){for(var t=0,i=ye.length;t<i;t+=1){var n=ye[t];if(n.condition(e,r))return new n(e,r)}return new tr(e,r)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(r){return!!(r[ve.AND]||r[ve.OR])},Vi=function(r){return!!r[Ge.PATH]},Qi=function(r){return!Y(r)&&Xt(r)&&!Ke(r)},Qt=function(r){return Ne({},ve.AND,Object.keys(r).map(function(t){return Ne({},t,r[t])}))};function nr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.auto,n=i===void 0?!0:i,a=function s(o){var l=Object.keys(o),u=Vi(o);if(!u&&l.length>1&&!Ke(o))return s(Qt(o));if(Qi(o)){var d=u?o[Ge.PATH]:l[0],f=u?o[Ge.PATTERN]:o[d];if(!G(f))throw new Error(Ai(d));var p={keyId:$e(d),pattern:f};return n&&(p.searcher=je(f,r)),p}var m={children:[],operator:l[0]};return l.forEach(function(y){var g=o[y];Y(g)&&g.forEach(function(h){m.children.push(s(h))})}),m};return Ke(e)||(e=Qt(e)),a(e)}function Ji(e,r){var t=r.ignoreFieldNorm,i=t===void 0?C.ignoreFieldNorm:t;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,l=s.norm,u=s.score,d=o?o.weight:null;a*=Math.pow(u===0&&d?Number.EPSILON:u,(d||1)*(i?1:l))}),n.score=a})}function Xi(e,r){var t=e.matches;r.matches=[],N(t)&&t.forEach(function(i){if(!(!N(i.indices)||!i.indices.length)){var n=i.indices,a=i.value,s={indices:n,value:a};i.key&&(s.key=i.key.src),i.idx>-1&&(s.refIndex=i.idx),r.matches.push(s)}})}function Zi(e,r){r.score=e.score}function qi(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.includeMatches,n=i===void 0?C.includeMatches:i,a=t.includeScore,s=a===void 0?C.includeScore:a,o=[];return n&&o.push(Xi),s&&o.push(Zi),e.map(function(l){var u=l.idx,d={item:r[u],refIndex:u};return o.length&&o.forEach(function(f){f(l,d)}),d})}var ae=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;_(this,e),this.options=ne(ne({},C),t),this.options.useExtendedSearch,this._keyStore=new ki(this.options.keys),this.setCollection(r,i)}return E(e,[{key:"setCollection",value:function(t,i){if(this._docs=t,i&&!(i instanceof Ue))throw new Error(bi);this._myIndex=i||er(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(t){N(t)&&(this._docs.push(t),this._myIndex.add(t))}},{key:"remove",value:function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},i=[],n=0,a=this._docs.length;n<a;n+=1){var s=this._docs[n];t(s,n)&&(this.removeAt(n),n-=1,a-=1,i.push(s))}return i}},{key:"removeAt",value:function(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.limit,a=n===void 0?-1:n,s=this.options,o=s.includeMatches,l=s.includeScore,u=s.shouldSort,d=s.sortFn,f=s.ignoreFieldNorm,p=G(t)?G(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Ji(p,{ignoreFieldNorm:f}),u&&p.sort(d),Jt(a)&&a>-1&&(p=p.slice(0,a)),qi(p,this._docs,{includeMatches:o,includeScore:l})}},{key:"_searchStringList",value:function(t){var i=je(t,this.options),n=this._myIndex.records,a=[];return n.forEach(function(s){var o=s.v,l=s.i,u=s.n;if(N(o)){var d=i.searchIn(o),f=d.isMatch,p=d.score,m=d.indices;f&&a.push({item:o,idx:l,matches:[{score:p,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(t){var i=this,n=nr(t,this.options),a=function u(d,f,p){if(!d.children){var m=d.keyId,y=d.searcher,g=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return g&&g.length?[{idx:p,item:f,matches:g}]:[]}for(var h=[],v=0,F=d.children.length;v<F;v+=1){var b=d.children[v],k=u(b,f,p);if(k.length)h.push.apply(h,te(k));else if(d.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},l=[];return s.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var p=a(n,d,f);p.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},l.push(o[f])),p.forEach(function(m){var y,g=m.matches;(y=o[f].matches).push.apply(y,te(g))}))}}),l}},{key:"_searchObjectList",value:function(t){var i=this,n=je(t,this.options),a=this._myIndex,s=a.keys,o=a.records,l=[];return o.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var p=[];s.forEach(function(m,y){p.push.apply(p,te(i._findMatches({key:m,value:d[y],searcher:n})))}),p.length&&l.push({idx:f,item:d,matches:p})}}),l}},{key:"_findMatches",value:function(t){var i=t.key,n=t.value,a=t.searcher;if(!N(n))return[];var s=[];if(Y(n))n.forEach(function(m){var y=m.v,g=m.i,h=m.n;if(N(y)){var v=a.searchIn(y),F=v.isMatch,b=v.score,k=v.indices;F&&s.push({score:b,key:i,value:y,idx:g,norm:h,indices:k})}});else{var o=n.v,l=n.n,u=a.searchIn(o),d=u.isMatch,f=u.score,p=u.indices;d&&s.push({score:f,key:i,value:o,norm:l,indices:p})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=er;ae.parseIndex=Ri;ae.config=C;ae.parseQuery=nr;Yi(Ui);var en=ae;ar.exports=en});var za={};Vr(za,{PUNCTUATION:()=>L,abbreviations:()=>Qe,availableExclusions:()=>Rr,availableModifiers:()=>Br,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Ve,default:()=>_r,filterCard:()=>Er,filtersToCardPropertyMappings:()=>Pe,getAbbreviation:()=>Ae,getAbbreviationByCard:()=>tn,getCardByName:()=>lt,getDeckFilters:()=>aa,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>_a,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>ft,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>Na,heroHasFilters:()=>oa,shorthands:()=>rt});module.exports=Qr(za);var P=W(j()),ct=W(or());var be=W(j()),Ye=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],Ve=[{heroes:[be.Hero.Briar],cardIdentifiers:["rosetta-thorn"]},{heroes:[be.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[be.Hero.Prism],cardIdentifiers:["figment-of-erudition-yellow","figment-of-judgment-yellow","figment-of-protection-yellow","figment-of-ravages-yellow","figment-of-rebirth-yellow","figment-of-tenacity-yellow","figment-of-triumph-yellow","figment-of-war-yellow"]}];var L=/[!"#$%&'’()+,-./:;<=>?@[\]^_`|~]/g;var T=W(j());var Ae=e=>Qe.find(({abbreviations:r})=>r.find(t=>t.toLowerCase()===e)),tn=e=>Qe.find(({card:r})=>r.toLowerCase()===e.name.toLowerCase()),Qe=[{abbreviations:["3oak"],card:"Three of a Kind"},{abbreviations:["ALS"],card:"Arc Light Sentinel"},{abbreviations:["AoW"],card:"Art of War"},{abbreviations:["BBD"],card:"Barraging Beatdown"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["BEB"],card:"Bull's Eye Bracers"},{abbreviations:["BLW"],card:"Be Like Water"},{abbreviations:["BoJ"],card:"Balance of Justice"},{abbreviations:["BOHH"],card:"Blood on Her Hands"},{abbreviations:["BRB"],card:"Bloodrush Bellow"},{abbreviations:["Breezies"],card:"Breeze Rider Boots"},{abbreviations:["BTA"],card:"Burn Them All"},{abbreviations:["\u{1F382}","Cake"],card:"Ninth Blade of the Blood Oath"},{abbreviations:["CLF"],card:"Channel Lake Frigid"},{abbreviations:["CMH"],card:"Channel Mount Heroic"},{abbreviations:["C&C","CnC"],card:"Command and Conquer"},{abbreviations:["CStrike","C-Strike","C Strike"],card:"Celestial Cataclysm"},{abbreviations:["CtW"],card:"Crush the Weak"},{abbreviations:["CoD"],card:"Crown of Dominion"},{abbreviations:["CoP"],card:"Crown of Providence"},{abbreviations:["DD"],card:"Death Dealer"},{abbreviations:["DPot","D Pot"],card:"Potion of Deja Vu"},{abbreviations:["Dullcap"],card:"Arcanite Skullcap"},{abbreviations:["EBTT"],card:"Even Bigger Than That!"},{abbreviations:["EPot","E Pot"],card:"Energy Potion"},{abbreviations:["EStrike","E-Strike","E Strike"],card:"Enlightened Strike"},{abbreviations:["FFS"],card:"Fyendal's Fighting Spirit"},{abbreviations:["FoN"],card:"Force of Nature"},{abbreviations:["Frosty","\u{1F976}","\u{1F9CA}","\u2744\uFE0F"],card:"Frostbite"},{abbreviations:["Frosty Hammer"],card:"Winter's Wail"},{abbreviations:["GnT"],card:"Give and Take"},{abbreviations:["HMH"],card:"Hope Merchant's Hood"},{abbreviations:["HoI"],card:"Heart of Ice"},{abbreviations:["KKBB"],card:"Knick Knack Bric-a-brac"},{abbreviations:["LAG","Twominaris"],card:"Luminaris, Angel's Glow"},{abbreviations:["LCF","Newminaris"],card:"Luminaris, Celestial Fury"},{abbreviations:["LDE"],card:"Last Ditch Effort"},{abbreviations:["LFaL","L4aL"],card:"Life for a Life"},{abbreviations:["LiT"],card:"Lost in Thought"},{abbreviations:["LNW"],card:"Leave No Witnesses"},{abbreviations:["LoW"],card:"Lord of Wind"},{abbreviations:["LtC"],card:"Lead the Charge"},{abbreviations:["MaxV"],card:"Maximum Velocity"},{abbreviations:["MMB"],card:"Mage Master Boots"},{abbreviations:["MnG"],card:"Meat and Greet"},{abbreviations:["MoM"],card:"Mask of Momentum"},{abbreviations:["PJs","Pajamas"],card:"Alluvion Constellas"},{abbreviations:["Ponder Run"],card:"Premeditate"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["Pumpkin"],card:"Jack-o'-lantern"},{abbreviations:["Qi Unbound"],card:"Qi Unleashed"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["Thanos","Infinity Gauntlet"],card:"Polarity Reversal Script"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["ToS"],card:"Test of Strength"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["Ultron"],card:"Teklovossen, the Mechropotent"},{abbreviations:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var c=W(j());var Se=Array.from(Array(50).keys()).map(e=>`${e}`),A=(e,r=[])=>{let t=[...e,c.Class.Generic];return r.length>0&&t.push(c.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:t.map(i=>i.toLowerCase()),isOr:!0},rn(r)]},M=(e,r=[])=>{let t=Object.values(c.Hero).filter(i=>i!==e&&!r.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:t,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:t,excluded:!0,isOr:!0}]},rn=e=>{let r=Object.values(c.Talent).filter(t=>!e.includes(t)).map(t=>t.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:r,excluded:!0}},Te=[c.Talent.Draconic],nn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Ice,c.Talent.Lightning],an=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Ice],on=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Lightning],sn=[c.Talent.Elemental,c.Talent.Ice],ln=[c.Talent.Elemental,c.Talent.Ice,c.Talent.Lightning],Ze=[c.Talent.Light],qe=[c.Talent.Shadow],cn=[...A([c.Class.Assassin]),...M(c.Hero.Arakni)],un=[...A([c.Class.Ranger]),...M(c.Hero.Azalea)],dn=[...A([c.Class.Ninja]),...M(c.Hero.Benji)],pn=[...A([c.Class.Guardian]),...M(c.Hero.Betsy)],hn=[...A([c.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...M(c.Hero.Boltyn)],fn=[...A([c.Class.Guardian]),...M(c.Hero.Bravo)],gn=[...A([c.Class.Guardian]),...M(c.Hero.Brevant)],mn=[...A([c.Class.Runeblade],on),...M(c.Hero.Briar)],yn=[...A([c.Class.Adjudicator]),...M(c.Hero.Brutus)],vn=[...A([c.Class.Runeblade],qe),...M(c.Hero.Chane)],bn=[...A([c.Class.Mechanologist]),...M(c.Hero.Dash)],Je=[...A([c.Class.Mechanologist]),...M(c.Hero.DataDoll)],sr=[...A([c.Class.Warrior]),...M(c.Hero.Dorinthea)],An=[...A([c.Class.Illusionist],Te),...M(c.Hero.Dromai,[c.Hero.Fai])],Mn=[...A([c.Class.Warrior,c.Class.Wizard],Te),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[c.Type.Action,c.Type.AttackReaction,c.Type.DefenseReaction,c.Type.Instant,c.Type.Mentor,c.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...M(c.Hero.Emperor)],Cn=[...A([c.Class.Ninja],Te),...M(c.Hero.Fai,[c.Hero.Dromai])],lr=[...A([c.Class.Merchant]),...M(c.Hero.GenisWotchuneed)],Fn=[...A([c.Class.Ninja]),...M(c.Hero.Ira)],cr=[...A([c.Class.Wizard],sn),...M(c.Hero.Iyslander)],kn=[...A([c.Class.Wizard])],Sn=[...A([c.Class.Warrior]),...M(c.Hero.Kassai)],Tn=[...A([c.Class.Ninja]),...M(c.Hero.Katsu)],xn=[...A([c.Class.Merchant]),...M(c.Hero.Kavdaen)],Ln=[...A([c.Class.Brute]),...M(c.Hero.Kayo)],wn=[...A([c.Class.Brute],qe),...M(c.Hero.Levia)],Pn=[...A([c.Class.Ranger],ln),...M(c.Hero.Lexi)],Bn=[...A([c.Class.Mechanologist]),...M(c.Hero.Maxx)],Rn=[...A([c.Class.Bard]),...M(c.Hero.Melody)],In=[...A([c.Class.Guardian],an),...M(c.Hero.Oldhim)],Dn=[...A([c.Class.Warrior]),...M(c.Hero.Olympia)],_n=[...A([c.Class.Illusionist],Ze),...M(c.Hero.Prism)],En=[...A([c.Class.Brute]),...M(c.Hero.Rhinar)],On=[...A([c.Class.Ranger]),...M(c.Hero.Riptide)],Nn=[...A([c.Class.Merchant]),...M(c.Hero.Ruudi)],zn=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Hn=[...A([c.Class.Merchant]),...M(c.Hero.Squizzy)],$n=[...A([c.Class.Guardian],nn),...M(c.Hero.Bravo)],Wn=[...A([c.Class.Adjudicator],Te),...M(c.Hero.Taipanis)],jn=[...A([]),...M(c.Hero.Taylor)],Gn=[...A([c.Class.Mechanologist]),...M(c.Hero.Teklovossen)],Kn=[...A([c.Class.Adjudicator],Ze),...M(c.Hero.Theryon)],Un=[...A([c.Class.Assassin]),...M(c.Hero.Uzuri)],Yn=[...A([c.Class.Guardian]),...M(c.Hero.Valda)],Vn=[...A([c.Class.Guardian]),...M(c.Hero.Victor)],Qn=[...A([c.Class.Runeblade]),...M(c.Hero.Viserai)],Jn=[...A([c.Class.Runeblade],qe),...M(c.Hero.Vynnset)],Xn=[...A([c.Class.Bard]),...M(c.Hero.Yorick)],Zn=[...A([c.Class.Guardian]),...M(c.Hero.Yoji)],qn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ur=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ea=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Me=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],oe=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],ta=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Xe=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],ce={blitz:qn,"blitz ll":ur,"blitz living legend":ur,clash:ea,cc:Me,classic:Me,"classic constructed":Me,ll:oe,"living legend":oe,"cc ll":oe,"ll cc":oe,"classic constructed ll":oe,"classic constructed living legend":oe,constructed:Me,commoner:ta,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:cn,azalea:un,benji:dn,betsy:pn,boltyn:hn,bravo:fn,brevant:gn,briar:mn,brutus:yn,chane:vn,dash:bn,data:Je,"data doll":Je,datadoll:Je,dori:sr,dorinthea:sr,dromai:An,emperor:Mn,fai:Cn,genis:lr,geniswotchuneed:lr,ira:Fn,iyslander:cr,islander:cr,kano:kn,kassai:Sn,katsu:Tn,kavdaen:xn,kayo:Ln,levia:wn,lexi:Pn,maxx:Bn,melody:Rn,oldhim:In,olympia:Dn,prism:_n,rhinar:En,riptide:On,ruudi:Nn,shiyana:zn,squizzy:Hn,starvo:$n,taipanis:Wn,taylor:jn,teklovossen:Gn,theryon:Kn,uzuri:Un,valda:Yn,victor:Vn,viserai:Qn,vynnset:Jn,yorick:Xn,yoji:Zn},Ce=["common","rare","super rare","majestic","legendary","fabled"],ra=(e,r,t)=>{let i=[];if(!r)i.push(...e);else for(let n of e)switch(r){case">=":let a=!1;for(let u of Ce)a?i.push(u):u===n&&(a=!0,i.push(u));break;case">":let s=!1;for(let u of Ce)s?i.push(u):u===n&&(s=!0);break;case"<=":let o=!1;for(let u of Ce.slice().reverse())o?i.push(u):u===n&&(o=!0,i.push(u));break;case"<":let l=!1;for(let u of Ce.slice().reverse())l?i.push(u):u===n&&(l=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:t}},ia=(e,r)=>{let t=[];for(let i of e)if(ce[i]){let n=ce[i];for(let a of n){let s=he({},a);r&&!a.filterToPropertyMapping.isString&&(s.excluded=!a.excluded),t.push(s)}}return t},et=(e,r,t,i)=>{let n=[];return la(r)?n.push(...ia(t,e)):ua(r)&&n.push(ra(t,i,e)),n},se=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialCost",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0}],K=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:Se,excluded:!0},{filterToPropertyMapping:{property:"specialDefense",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","placeholder","token","weapon"],excluded:!0}],Fe=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],Z=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:Se},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],ke=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(c.Talent).map(e=>e.toLowerCase())}],na={"!co":se,"-co":se,"!cost":se,"-cost":se,"!color":se,"-color":se,"!b":K,"-b":K,"!block":K,"-block":K,"!d":K,"-d":K,"!def":K,"-def":K,"!defense":K,"-defense":K,"!pitch":Fe,"-pitch":Fe,"!p":Fe,"-p":Fe,"!attack":Z,"-attack":Z,"!power":Z,"-power":Z,"!pwr":Z,"-pwr":Z,"!pow":Z,"-pow":Z,"!talents":ke,"-talents":ke,"!tal":ke,"-tal":ke},tt=e=>{let r=[],t=na[e];return t&&r.push(...t),r},aa=(e,r)=>[...ce[e.toLowerCase()],...r?ce[r.toLowerCase()]:[]],oa=e=>{var r;return((r=ce[e.toLowerCase().split(" ")[0]])==null?void 0:r.length)>0},sa=["l","legal","hero"],la=e=>sa.includes(e),ca=["r","rarity"],ua=e=>ca.includes(e);var rt={aa:["st:attack"],ab:['k:"arcane barrier"'],ar:['t:"attack reaction"'],dr:['t:"defense reaction"'],ga:['k:"go again"'],naa:["t:action","st:nonattack"],poppers:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],popper:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],sv:['k:"spellvoid"']};var Br=[">=",">","<=","<"],Rr=["!","-"],it={property:"artists",isArray:!0,partialMatch:!0},da={property:"n/a"},dr={property:"classes",isArray:!0,partialMatch:!0},pr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},hr={nestedProperty:"foiling",property:"printings",isArray:!0},fr={property:"fusions",isArray:!0},gr={property:"intellect",isNumber:!0},mr={property:"keywords",isArray:!0,partialMatch:!0},nt={property:"n/a",isMeta:!0},yr={property:"life",specialProperty:"specialLife",isNumber:!0},vr={property:"name",isString:!0},at={property:"pitch",isNumber:!0},xe={property:"power",specialProperty:"specialPower",isNumber:!0},br={property:"n/a",isMeta:!0},pa={property:"n/a"},ha={property:"n/a"},Ar={property:"restrictedFormats",isArray:!0,partialMatch:!0},Mr={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Cr={property:"subtypes",isArray:!0},Fr={property:"types",isArray:!0},kr={property:"talents",isArray:!0},fa={property:"functionalText",isString:!0,partialMatch:!0},ga={property:"typeText",isString:!0,partialMatch:!0},we={nestedProperty:"treatment",property:"printings",isArray:!0},Pe={a:it,artist:it,art:it,attack:xe,b:ue,block:ue,c:dr,class:dr,chain:da,co:pr,cost:pr,color:at,d:ue,def:ue,defense:ue,f:fr,fusion:fr,foil:hr,foiling:hr,i:gr,intellect:gr,k:mr,keyword:mr,l:nt,legal:nt,hero:nt,li:yr,life:yr,n:vr,name:vr,p:at,pitch:at,pwr:xe,pow:xe,power:xe,r:br,rarity:br,referencedby:pa,references:ha,rf:Ar,restricted:Ar,s:Mr,set:Mr,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Cr,subtype:Cr,t:Fr,type:Fr,tal:kr,talent:kr,text:fa,treat:we,treatment:we,var:we,variation:we,x:ga},ma=[{text:T.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:T.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(L,"")}],ya=e=>{var n;let r=[],t=e.trim().toLowerCase();for(let{text:a,override:s}of ma)t.includes(a)&&(t=t.replace(a,s));if((n=Ae(t))==null?void 0:n.card)r.push(t);else{let a=t.split(/[ ]+/),s="",o=0;for(let l of a)o===2&&(r.push(s.trim().replaceAll('"',"")),s="",o=0),o<2&&l.split('"').length===2?(s+=" "+l,o++):o===0&&s===""?r.push(l):o===1&&(s+=" "+l);o===2&&(r.push(s.trim().replaceAll('"',"")),s="",o=0)}return r},va=[T.Hero.Briar,T.Hero.Brutus,T.Hero.Emperor,T.Hero.Prism,T.Hero.Shiyana,T.Hero.Taylor],st=(e,r)=>{var f;let t=ya(e),i=[];for(let p of t){let m=rt[p];m?i.push(...m):i.push(p)}let n=[],a=[],s=[],o=[],l=[],u=[],d={isClash:!1,heroes:[]};for(let p of i)if(xa(p)){let[m,y]=p.split(":"),{modifier:g,values:h,isAnd:v,isOr:F}=Sa(y),{filterKey:b,excluded:k,isMeta:x}=Ta(m);if(x){if(["rarity","r"].includes(b)&&(h=ka(h)),["legal","l","hero"].includes(b)){for(let S of va)y.includes(S.toLowerCase())&&(d.heroes.includes(S)||d.heroes.push(S));y.includes("clash")&&(d.isClash=!0)}n.push(...et(k,b,h,g))}else{if(["chain"].includes(b)){let S=R=>R.name.toLowerCase().replaceAll(L,""),w=h.map(R=>lt(R,r)).filter(R=>!!R).map(S),B=new Set(w);b="name",F=!0;let I=20,z=0,O=R=>{if(!R.types.includes(T.Type.Hero)){let H=S(R);B.add(H),w.includes(H)||w.push(H)}};for(let R of w){if(z>I)break;let{referencedBy:H,references:re}=Be(R,r);re.forEach(O),z===0&&H.forEach(O),z++}h=Array.from(B)}else if(["referencedby","references"].includes(b)){let S=b,w=[...h].filter(B=>!!B);h=[],b="name",F=!0;for(let B of w){let{referencedBy:I,references:z}=Be(B,r);["referencedby"].includes(S)?h.push(...z.map(({name:O})=>O.toLowerCase().replaceAll(L,""))):["references"].includes(S)&&h.push(...I.map(({name:O})=>O.toLowerCase().replaceAll(L,"")))}}else["art","artist"].includes(b)?a=h:["foiling","foil"].includes(b)?(o=Ca(h),h=o.map(S=>S.toLowerCase())):["treat","treatment","var","variation"].includes(b)?(u=Fa(h),h=u.map(S=>S.toLowerCase())):["set","s"].includes(b)?(l=ba(h),h=l.map(S=>S.toLowerCase().replaceAll(L,""))):["pitch","p","color"].includes(b)&&(h=Ma(h));Pe[b]&&n.push({filterToPropertyMapping:Pe[b],values:h,isAnd:v,isOr:F,modifier:g,excluded:k})}}else if(p){let m=(f=Ae(p))==null?void 0:f.card,y=tt(p);m?s.push(`"${m.toLowerCase().replace(L,"")}"`):y&&y.length>0?n.push(...y):s.push(p.replace(L,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:l,treatments:u},keywords:s,specialConditions:d}},ba=e=>{let r=[];for(let t of e)r.push(...Aa(t));return r},Aa=e=>{let r=[],t=Object.values(T.Release).find(i=>i.toLowerCase().replaceAll(L,"")===e);if(t&&r.push(t),r.length===0){let i=T.setIdentifierToSetMappings[e];i&&r.push(i)}if(r.length===0){let i=Object.values(T.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&r.push(...i)}return r},ot={blue:3,yellow:2,red:1,white:0},Ma=e=>{let r=[];for(let t of e)ot[t]||ot[t]===0?r.push(ot[t].toString()):r.push(t);return r},Sr={r:T.Foiling.R,rf:T.Foiling.R,rainbow:T.Foiling.R,c:T.Foiling.C,cf:T.Foiling.C,cold:T.Foiling.C,g:T.Foiling.G,gf:T.Foiling.G,gold:T.Foiling.G},Ca=e=>{let r=[];for(let t of e)Sr[t]&&r.push(Sr[t]);return r},Tr={aa:T.Treatment.AA,alt:T.Treatment.AA,"alt art":T.Treatment.AA,ab:T.Treatment.AB,"alt border":T.Treatment.AB,at:T.Treatment.AT,"alt text":T.Treatment.AT,ds:T.Treatment.DS,"double sided":T.Treatment.DS,ea:T.Treatment.EA,extended:T.Treatment.EA,"extended art":T.Treatment.EA,fa:T.Treatment.FA,full:T.Treatment.FA,"full art":T.Treatment.FA},Fa=e=>{let r=[];for(let t of e)Tr[t]?r.push(Tr[t]):T.Treatment[t.toUpperCase()]&&r.push(T.Treatment[t.toUpperCase()]);return r},xr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},ka=e=>{let r=[];for(let t of e)xr[t]?r.push(xr[t]):r.push(t);return r},Sa=e=>{let r=[],t,i,n=Br.find(a=>e.includes(a));if(n){let[,a]=e.split(n);Lr(a)?(t=!0,r.push(...a.trim().split("+").map(s=>s.replace(L,"")))):wr(a)?(i=!0,r.push(...a.trim().split(",").map(s=>s.replace(L,"")))):r.push(a.trim().replace(L,""))}else Lr(e)?(t=!0,r.push(...e.trim().split("+").map(a=>a.replace(L,"")))):wr(e)?(i=!0,r.push(...e.trim().split(",").map(a=>a.replace(L,"")))):e.startsWith('"')&&e.endsWith('"')?r.push(e.trim().replaceAll('"',"").replace(L,"")):r.push(e.trim().replace(L,""));return{modifier:n,values:r,isAnd:t,isOr:i}},Ta=e=>{let r=La(e);if(r){let[,t]=e.split(r);return{excluded:!0,filterKey:t,isMeta:Pr(t)}}else return{excluded:!1,filterKey:e,isMeta:Pr(e)}},xa=e=>e.indexOf(":")>=0,Lr=e=>e.indexOf("+")>=0,wr=e=>e.indexOf(",")>=0,Pr=e=>{var r;return!!((r=Pe[e])!=null&&r.isMeta)},La=e=>{var r;return(r=Rr.find(t=>e.includes(t)))==null?void 0:r.slice(0,1)};var D=W(j()),Ir={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[D.Class.Generic],defaultImage:"FNG000",functionalText:"If Fangs A Lot is put into your banished zone from your graveyard, instead put it into your hand.",printings:[{artist:"Hoodwill",identifier:"FNG000",image:"FNG000",print:"FNG000",set:D.Release.Promos},{artist:"Hoodwill",identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${D.Treatment.FA}`,set:D.Release.Promos,treatment:D.Treatment.FA}],name:"Fangs A Lot",rarities:[D.Rarity.Rare],rarity:D.Rarity.Rare,sets:[D.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[D.Subtype.Attack],types:[D.Type.Action],typeText:"Generic Action - Attack"},Dr=[{keyword:Ir.name.toLowerCase(),card:Ir}];var ut=W(j());var dt=class{constructor(r){this.search=(r,t)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(r,this.cards),l=s.join(" "),u=t?Dr.filter(g=>g.keyword===l):[];if(u.length>0?i=u.map(({card:g})=>g):s.length?i=this.fuse.search(l).map(g=>g.item):i=[...this.cards],n.length&&(i=i.filter(g=>g&&Er(g,n,o)),n.some(({excluded:g,values:h})=>!g&&h.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(g=>!g.young)),n.some(({excluded:g,values:h})=>!g&&(h.includes(P.Format.Blitz.toLowerCase())||h.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(g=>{let{types:h,young:v}=g;return!(h.includes(P.Type.Hero)&&!v)}))),s.length===0){let g="";if(a.releases.length===1)try{let h=a.releases[0];g=P.setToSetIdentifierMappings[h][0].toUpperCase()}catch(h){console.error("Error getting set identifier from search",h)}g?i.sort((h,v)=>{var k,x;let F=(k=h.setIdentifiers.find(S=>S.includes(g)))==null?void 0:k.replace(g,""),b=(x=v.setIdentifiers.find(S=>S.includes(g)))==null?void 0:x.replace(g,"");return F&&b?F.localeCompare(b):-1}):i.sort((h,v)=>h.name===v.name?`${h.pitch}`.localeCompare(`${v.pitch}`):h.name.localeCompare(v.name))}else{let g=[],h=[],v=s.map(F=>F.toLowerCase().replace(L,"")).join(" ");for(let F of i)F.name.toLowerCase().replace(L,"")===v?g.push(F):h.push(F);i=[...g,...h]}let d,{artists:f,foilings:p,releases:m,treatments:y}=a;return(f.length>0||p.length>0||m.length>0||y.length>0)&&(d=i.map(g=>{let h=g.printings.filter(v=>{let F=!!v.image,b=f.length===0||f.some(w=>v.artist.replace(L,"").toLowerCase().includes(w)),k=p.length===0||p.includes(v.foiling),x=m.length===0||m.includes(v.set),S=y.length===0||y.includes(v.treatment);return F&&b&&k&&x&&S});return he({matchingPrintings:h},g)})),{appliedFilters:n,attributes:a,keywords:s,searchResults:d||i}};let t={getFn:(i,n)=>{let a=ct.default.config.getFn(i,n);return a&&(Array.isArray(a)?a.map(s=>s.replace(L,"")):a.replace(L,""))},ignoreLocation:!0,includeScore:!0,keys:[{name:"name",weight:10},{name:"functionalText",weight:6},{name:"setIdentifiers",weight:2},{name:"typeText",weight:6}],threshold:.15,useExtendedSearch:!0};this.cards=[...r],this.fuse=new ct.default([...r],t)}},_r=dt,Er=(e,r,t)=>{var n,a,s,o;let i=!0;for(let l of r){let{isNumber:u,isString:d,isArray:f,isBoolean:p,property:m}=l.filterToPropertyMapping;if((u&&!wa(e,l)||d&&!Pa(e,l)||f&&!Ba(e,l)||p&&!Ra(e,l))&&(i=!1),t.isClash&&["rarities","bannedFormats"].includes(m)){let b=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(B=>e.rarities.includes(B)),k=!1;for(let{cardIdentifiers:B,heroes:I}of Ve)for(let z of t.heroes)I.includes(z)&&B.includes(e.cardIdentifier)&&(k=!0);let x=!!e.specializations&&e.specializations.length>0||k,S=[P.Type.Mentor,P.Type.Weapon].some(B=>e.types.includes(B)),w=Ye.includes(e.name);!i&&!w&&(x||S)&&b&&(i=!0),w&&(i=!1)}if(t.isClash&&t.heroes.includes(P.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&t.heroes.includes(P.Hero.Brutus)){let b=((n=e.specializations)==null?void 0:n.length)>0;((a=e.keywords)==null?void 0:a.includes(ut.Keyword.Clash))&&!b&&(i=!0)}if(!i&&t.heroes.includes(P.Hero.Shiyana)&&["classes"].includes(m)){let b=((s=e.specializations)==null?void 0:s.length)>0,k=e.types.includes(P.Type.Token),x=e.cardIdentifier==="cracked-bauble-yellow",S=(o=e.keywords)==null?void 0:o.includes(ut.Keyword.Ephemeral);(b||k||x||S)&&(i=!0)}let v=e.types.includes(P.Type.Equipment);if(!i&&t.heroes.includes(P.Hero.Taylor)&&v&&v&&(i=!0),!i)break}return i},wa=(e,r)=>{var t;if(Re(r,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=r,o=pt(e,r);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let l=i==null?void 0:i.some(p=>o>=parseInt(p));return a?!l:l;case">":let u=i==null?void 0:i.some(p=>o>parseInt(p));return a?!u:u;case"<=":let d=i==null?void 0:i.some(p=>o<=parseInt(p));return a?!d:d;case"<":let f=i==null?void 0:i.some(p=>o<parseInt(p));return a?!f:f;default:return!1}else{let l=i==null?void 0:i.some(u=>o===parseInt(u));return a?!l:l}else{let l=(t=Da(e,r))==null?void 0:t.toLowerCase(),u=s?i==null?void 0:i.some(d=>l==null?void 0:l.includes(d)):i==null?void 0:i.some(d=>l===d);return a?!u:u}}else return!0},Pa=(e,r)=>{var t;if(Re(r,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=r,o=(t=pt(e,r))==null?void 0:t.replaceAll(L,"");if(s){let l=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!l:l}else{let l=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!l:l}}else return!0},Ba=(e,r)=>{if(Re(r,e)){let{values:t,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=r,s=Ia(e,r).map(o=>o==null?void 0:o.replaceAll(L,""));if(a){let o=i?t.every(u=>s==null?void 0:s.some(d=>d==null?void 0:d.toLowerCase().includes(u))):t.some(u=>s==null?void 0:s.some(d=>d==null?void 0:d.toLowerCase().includes(u))),l=s.length===0;return n?!o||l:o}else{let o=i?t.every(l=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===l)):t.some(l=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===l));return n?!o:o}}else return!0},Ra=(e,r)=>{if(Re(r,e)){let{excluded:t}=r,i=pt(e,r);return t?!i:i}else return!0},pt=(e,r)=>{let{filterToPropertyMapping:t}=r;return e[t.property]},Ia=(e,r)=>{let{filterToPropertyMapping:{nestedProperty:t,property:i}}=r,n=e[i]||[];return t?n.map(a=>a[t]).filter(a=>!!a):n},Da=(e,r)=>{let{filterToPropertyMapping:t}=r;return e[t.specialProperty]},Re=({cardTypes:e},{types:r,subtypes:t})=>!e||(e==null?void 0:e.some(i=>r.map(n=>n.toLowerCase()).includes(i.toLowerCase())||t.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var lt=(e,r)=>{let t=r.find(i=>i.name.toLowerCase().replace(L,"")===e);return t||(t=r.find(i=>i.name.toLowerCase().replace(L,"").includes(e))),t};var U=W(j()),_a=e=>{let r=e.filter(o=>o.types.includes(U.Type.Hero)).sort((o,l)=>o.name.localeCompare(l.name)),t=r.filter(o=>!o.young&&!o.classes.includes(U.Class.Adjudicator)),i=r.filter(o=>{let l=o.rarities.some(d=>d!==U.Rarity.Promo),u=o.sets.some(d=>d!==U.Release.Promos);return l||u}),n=r.filter(o=>{let l=o.rarities.every(d=>d===U.Rarity.Promo),u=o.sets.every(d=>d===U.Release.Promos);return l&&u}),a=r.filter(o=>o.young),s=a.filter(({hero:o})=>!t.find(l=>l.hero===o));return{all:r,adult:t,nonPromo:i,promoOnly:n,young:a,youngOnly:s}};var zr=W(j());var ht=W(j()),Ea={"Dawnblade, Resplendent":"Dawnblade"},Or=e=>Ea[e.name]||e.name,Nr=e=>{var r;return(r=e.functionalText)==null?void 0:r.replaceAll(e.name,"")},Be=(e,r)=>{let t=r.find(i=>i.name.toLowerCase().replace(L,"")===e);return t||(t=r.find(i=>i.name.toLowerCase().replace(L,"").includes(e))),ft(t,r)},ft=(e,r)=>{var a,s;let t=[],i=[],n=[];if(e){let o=[],l=[],u=Or(e);for(let d of r){let f=Or(d),p=u===f,m=e.pitch!==d.pitch;if(p&&m)t.push(d);else if(!p){let y=e.name==="Seismic Surge",g=(a=d.keywords)==null?void 0:a.includes(ht.Keyword.Heave),h=y&&g,v=Nr(d),F=v==null?void 0:v.includes(u),b=Nr(e),k=b==null?void 0:b.includes(f);(F||h)&&o.push(d);let x=d.name==="Seismic Surge",S=(s=e.keywords)==null?void 0:s.includes(ht.Keyword.Heave);(k||x&&S)&&l.push(d)}}for(let d of o)i.push(d);for(let d of l){let f=d.name;u!==f&&!l.some(p=>{let m=p.name;return m!==f&&m.includes(f)})&&n.push(d)}}return{otherPitches:t,referencedBy:i,references:n}},Oa=["cash-in-yellow"],Na=(e,r,t)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!Oa.includes(a))){let{references:a}=ft(n,r);for(let s of a.filter(o=>{let l=o.name==="Hyper Driver",u=t===zr.Hero.Maxx;return!l||u}))i.add(s)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,shorthands});
|
package/dist/search.d.ts
CHANGED
|
@@ -3,21 +3,22 @@ import { AppliedFilter, SpecialConditions } from "./filters";
|
|
|
3
3
|
export interface SearchCard extends DoubleSidedCard {
|
|
4
4
|
matchingPrintings?: Printing[];
|
|
5
5
|
}
|
|
6
|
+
export interface SearchResults {
|
|
7
|
+
appliedFilters: AppliedFilter[];
|
|
8
|
+
keywords: string[];
|
|
9
|
+
attributes: {
|
|
10
|
+
artists: string[];
|
|
11
|
+
foilings: Foiling[];
|
|
12
|
+
releases: Release[];
|
|
13
|
+
treatments: Treatment[];
|
|
14
|
+
};
|
|
15
|
+
searchResults: SearchCard[];
|
|
16
|
+
}
|
|
6
17
|
declare class Search {
|
|
7
18
|
private cards;
|
|
8
19
|
private fuse;
|
|
9
20
|
constructor(cards: DoubleSidedCard[]);
|
|
10
|
-
search: (text: string, includeMemes?: boolean) =>
|
|
11
|
-
appliedFilters: AppliedFilter[];
|
|
12
|
-
keywords: string[];
|
|
13
|
-
attributes: {
|
|
14
|
-
artists: string[];
|
|
15
|
-
foilings: Foiling[];
|
|
16
|
-
releases: Release[];
|
|
17
|
-
treatments: Treatment[];
|
|
18
|
-
};
|
|
19
|
-
searchResults: SearchCard[];
|
|
20
|
-
};
|
|
21
|
+
search: (text: string, includeMemes?: boolean) => SearchResults;
|
|
21
22
|
}
|
|
22
23
|
export default Search;
|
|
23
24
|
export declare const filterCard: (card: Card, appliedFilters: AppliedFilter[], specialConditions: SpecialConditions) => boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flesh-and-blood/search",
|
|
3
3
|
"description": "TypeScript search engine for Flesh and Blood cards",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.46",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"fuse.js": "^6.6.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@flesh-and-blood/cards": "^2.0.
|
|
19
|
+
"@flesh-and-blood/cards": "^2.0.46",
|
|
20
20
|
"@types/jest": "^29.5.11",
|
|
21
21
|
"@types/node": "^20.10.5",
|
|
22
22
|
"esbuild": "^0.19.10",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"FAB",
|
|
47
47
|
"FABTCG"
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e8588c5e1d9ffdd4c396620373ebbeff66d424ec"
|
|
50
50
|
}
|