@flesh-and-blood/search 2.0.4 → 2.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var Wr=Object.create;var le=Object.defineProperty;var jr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames,yt=Object.getOwnPropertySymbols,Kr=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var vt=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t)=>{for(var r in t||(t={}))bt.call(t,r)&&vt(e,r,t[r]);if(yt)for(var r of yt(t))Ur.call(t,r)&&vt(e,r,t[r]);return e};var Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yr=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},At=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gr(t))!bt.call(e,n)&&n!==r&&le(e,n,{get:()=>t[n],enumerable:!(i=jr(t,n))||i.enumerable});return e};var G=(e,t,r)=>(r=e!=null?Wr(Kr(e)):{},At(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),Qr=e=>At(le({},"__esModule",{value:!0}),e);var K=Mt((za,$t)=>{var fe=Object.defineProperty,Vr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptor,Xr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))kt.call(t,r)&&Ft(e,r,t[r]);if(Ct)for(var r of Ct(t))qr.call(t,r)&&Ft(e,r,t[r]);return e},ti=(e,t)=>Vr(e,Xr(t)),ri=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},ii=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zr(t))!kt.call(e,n)&&n!==r&&fe(e,n,{get:()=>t[n],enumerable:!(i=Jr(t,n))||i.enumerable});return e},ni=e=>ii(fe({},"__esModule",{value:!0}),e),St={};ri(St,{Class:()=>Lt,Foiling:()=>Tt,Format:()=>wt,Fusion:()=>Pt,Hero:()=>Dt,Keyword:()=>Nt,Rarity:()=>Bt,Release:()=>It,ReleaseEdition:()=>Rt,Subtype:()=>Ot,Talent:()=>_t,Treatment:()=>xt,Type:()=>Et,fullSetIdentifiers:()=>zt,setIdentifierToSetMappings:()=>Ht,setToSetIdentifierMappings:()=>ai});$t.exports=ni(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||{}),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.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.KatsuBlitzDeck="Katsu Blitz Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.RoundTheTable="Round the Table",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.Promos="Promos",e))(It||{}),Rt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(Rt||{}),_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||{}),Dt=(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.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))(Dt||{}),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.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=ti(ei({},zt),{ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji 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",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",old:"Oldhim Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",uzu:"Uzuri 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",rnr:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),Ee={};for(let[e,t]of Object.entries(Ht)){let r=Ee[t];r?r.push(e):Ee[t]=[e]}var ai=Ee});var ar=Mt((Ha,nr)=>{"use strict";function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(i){Ne(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function De(e){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function O(e,t,r){return t&&jt(e.prototype,t),r&&jt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ze(e,t)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},me(e)}function ze(e,t){return ze=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},ze(e,t)}function oi(){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 si(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function li(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return si(e)}function J(e){var t=oi();return function(){var i=me(e),n;if(t){var a=me(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return li(this,n)}}function te(e){return ci(e)||ui(e)||pi(e)||di()}function ci(e){if(Array.isArray(e))return He(e)}function ui(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pi(e,t){if(e){if(typeof e=="string")return He(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return He(e,t)}}function He(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function di(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ var Wr=Object.create;var le=Object.defineProperty;var jr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames,yt=Object.getOwnPropertySymbols,Kr=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var vt=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t)=>{for(var r in t||(t={}))bt.call(t,r)&&vt(e,r,t[r]);if(yt)for(var r of yt(t))Ur.call(t,r)&&vt(e,r,t[r]);return e};var Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yr=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},At=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gr(t))!bt.call(e,n)&&n!==r&&le(e,n,{get:()=>t[n],enumerable:!(i=jr(t,n))||i.enumerable});return e};var G=(e,t,r)=>(r=e!=null?Wr(Kr(e)):{},At(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),Qr=e=>At(le({},"__esModule",{value:!0}),e);var K=Mt((za,$t)=>{var fe=Object.defineProperty,Vr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptor,Xr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))kt.call(t,r)&&Ft(e,r,t[r]);if(Ct)for(var r of Ct(t))qr.call(t,r)&&Ft(e,r,t[r]);return e},ti=(e,t)=>Vr(e,Xr(t)),ri=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},ii=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zr(t))!kt.call(e,n)&&n!==r&&fe(e,n,{get:()=>t[n],enumerable:!(i=Jr(t,n))||i.enumerable});return e},ni=e=>ii(fe({},"__esModule",{value:!0}),e),St={};ri(St,{Class:()=>Lt,Foiling:()=>Tt,Format:()=>wt,Fusion:()=>Pt,Hero:()=>Dt,Keyword:()=>Nt,Rarity:()=>Bt,Release:()=>It,ReleaseEdition:()=>Rt,Subtype:()=>Ot,Talent:()=>_t,Treatment:()=>xt,Type:()=>Et,fullSetIdentifiers:()=>zt,setIdentifierToSetMappings:()=>Ht,setToSetIdentifierMappings:()=>ai});$t.exports=ni(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||{}),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.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.KatsuBlitzDeck="Katsu Blitz Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.RoundTheTable="Round the Table",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.Promos="Promos",e))(It||{}),Rt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(Rt||{}),_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||{}),Dt=(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.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))(Dt||{}),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=ti(ei({},zt),{ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji 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",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",old:"Oldhim Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",uzu:"Uzuri 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",rnr:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),Ee={};for(let[e,t]of Object.entries(Ht)){let r=Ee[t];r?r.push(e):Ee[t]=[e]}var ai=Ee});var ar=Mt((Ha,nr)=>{"use strict";function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(i){Ne(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function De(e){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function O(e,t,r){return t&&jt(e.prototype,t),r&&jt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ze(e,t)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},me(e)}function ze(e,t){return ze=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},ze(e,t)}function oi(){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 si(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function li(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return si(e)}function J(e){var t=oi();return function(){var i=me(e),n;if(t){var a=me(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return li(this,n)}}function te(e){return ci(e)||ui(e)||pi(e)||di()}function ci(e){if(Array.isArray(e))return He(e)}function ui(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pi(e,t){if(e){if(typeof e=="string")return He(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return He(e,t)}}function He(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function di(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
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 hi=1/0;function fi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-hi?"-0":t}function gi(e){return e==null?"":fi(e)}function $(e){return typeof e=="string"}function Vt(e){return typeof e=="number"}function mi(e){return e===!0||e===!1||yi(e)&&Xt(e)=="[object Boolean]"}function Jt(e){return De(e)==="object"}function yi(e){return Jt(e)&&e!==null}function N(e){return e!=null}function Oe(e){return!e.trim().length}function Xt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var vi="Incorrect 'index' type",bi=function(t){return"Invalid value for key ".concat(t)},Mi=function(t){return"Pattern length exceeds max of ".concat(t,".")},Ai=function(t){return"Missing ".concat(t," property in key")},Ci=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},Gt=Object.prototype.hasOwnProperty,Fi=function(){function e(t){var r=this;E(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=Zt(n);i+=a.weight,r._keys.push(a),r._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return O(e,[{key:"get",value:function(r){return this._keyMap[r]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function Zt(e){var t=null,r=null,i=null,n=1,a=null;if($(e)||U(e))i=e,t=Kt(e),r=$e(e);else{if(!Gt.call(e,"name"))throw new Error(Ai("name"));var s=e.name;if(i=s,Gt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ci(s));t=Kt(s),r=$e(s),a=e.getFn}return{path:t,id:r,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 ki(e,t){var r=[],i=!1,n=function a(s,o,c){if(N(s))if(!o[c])r.push(s);else{var u=o[c],p=s[u];if(!N(p))return;if(c===o.length-1&&($(p)||Vt(p)||mi(p)))r.push(gi(p));else if(U(p)){i=!0;for(var f=0,d=p.length;f<d;f+=1)a(p[f],o,c+1)}else o.length&&a(p,o,c+1)}};return n(e,$(t)?t.split("."):t,0),i?r:r[0]}var Si={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ti={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,r){return t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1}},xi={location:0,threshold:.6,distance:100},Li={useExtendedSearch:!1,getFn:ki,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},C=ne(ne(ne(ne({},Ti),Si),xi),Li),wi=/[^ ]+/g;function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,r=new Map,i=Math.pow(10,t);return{get:function(a){var s=a.match(wi).length;if(r.has(s))return r.get(s);var o=1/Math.pow(s,.5*e),c=parseFloat(Math.round(o*i)/i);return r.set(s,c),c},clear:function(){r.clear()}}}var Ue=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,i=r===void 0?C.getFn:r,n=t.fieldNormWeight,a=n===void 0?C.fieldNormWeight:n;E(this,e),this.norm=Pi(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return O(e,[{key:"setSources",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=r}},{key:"setIndexRecords",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=r}},{key:"setKeys",value:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){r._keysMap[n.id]=a})}},{key:"create",value:function(){var r=this;this.isCreated||!this.docs.length||(this.isCreated=!0,$(this.docs[0])?this.docs.forEach(function(i,n){r._addString(i,n)}):this.docs.forEach(function(i,n){r._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(r){var i=this.size();$(r)?this._addString(r,i):this._addObject(r,i)}},{key:"removeAt",value:function(r){this.records.splice(r,1);for(var i=r,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(r,i){return r[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(r,i){if(!(!N(r)||Oe(r))){var n={v:r,i,n:this.norm.get(r)};this.records.push(n)}}},{key:"_addObject",value:function(r,i){var n=this,a={i,$:{}};this.keys.forEach(function(s,o){var c=s.getFn?s.getFn(r):n.getFn(r,s.path);if(N(c)){if(U(c))(function(){for(var p=[],f=[{nestedArrIndex:-1,value:c}];f.length;){var d=f.pop(),m=d.nestedArrIndex,y=d.value;if(N(y))if($(y)&&!Oe(y)){var g={v:y,i:m,n:n.norm.get(y)};p.push(g)}else U(y)&&y.forEach(function(h,v){f.push({nestedArrIndex:v,value:h})})}a.$[o]=p})();else if($(c)&&!Oe(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,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.getFn,n=i===void 0?C.getFn:i,a=r.fieldNormWeight,s=a===void 0?C.fieldNormWeight:a,o=new Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Zt)),o.setSources(t),o.create(),o}function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getFn,i=r===void 0?C.getFn:r,n=t.fieldNormWeight,a=n===void 0?C.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 t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.errors,i=r===void 0?0:r,n=t.currentLocation,a=n===void 0?0:n,s=t.expectedLocation,o=s===void 0?0:s,c=t.distance,u=c===void 0?C.distance:c,p=t.ignoreLocation,f=p===void 0?C.ignoreLocation:p,d=i/e.length;if(f)return d;var m=Math.abs(o-a);return u?d+m/u:m?1:d}function Ii(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C.minMatchCharLength,r=[],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>=t&&r.push([i,n]),i=-1)}return e[a-1]&&a-i>=t&&r.push([i,a-1]),r}var ee=32;function Ri(e,t,r){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,c=i.threshold,u=c===void 0?C.threshold:c,p=i.findAllMatches,f=p===void 0?C.findAllMatches:p,d=i.minMatchCharLength,m=d===void 0?C.minMatchCharLength:d,y=i.includeMatches,g=y===void 0?C.includeMatches:y,h=i.ignoreLocation,v=h===void 0?C.ignoreLocation:h;if(t.length>ee)throw new Error(Mi(ee));for(var M=t.length,b=e.length,T=Math.max(0,Math.min(a,b)),L=u,S=T,w=m>1||g,R=w?Array(b):[],_;(_=e.indexOf(t,S))>-1;){var Y=ge(t,{currentLocation:_,expectedLocation:T,distance:o,ignoreLocation:v});if(L=Math.min(Y,L),S=_+M,w)for(var D=0;D<M;)R[_+D]=1,D+=1}S=-1;for(var B=[],z=1,re=M+b,zr=1<<M-1,q=0;q<M;q+=1){for(var pe=0,Q=re;pe<Q;){var Hr=ge(t,{errors:q,currentLocation:T+Q,expectedLocation:T,distance:o,ignoreLocation:v});Hr<=L?pe=Q:re=Q,Q=Math.floor((re-pe)/2+pe)}re=Q;var ft=Math.max(1,T-Q+1),Re=f?b:Math.min(T+Q,b)+M,ie=Array(Re+2);ie[Re+1]=(1<<q)-1;for(var H=Re;H>=ft;H-=1){var de=H-1,gt=r[e.charAt(de)];if(w&&(R[de]=+!!gt),ie[H]=(ie[H+1]<<1|1)&gt,q&&(ie[H]|=(B[H+1]|B[H])<<1|1|B[H+1]),ie[H]&zr&&(z=ge(t,{errors:q,currentLocation:de,expectedLocation:T,distance:o,ignoreLocation:v}),z<=L)){if(L=z,S=de,S<=T)break;ft=Math.max(1,2*T-S)}}var $r=ge(t,{errors:q+1,currentLocation:T,expectedLocation:T,distance:o,ignoreLocation:v});if($r>L)break;B=ie}var _e={isMatch:S>=0,score:Math.max(.001,z)};if(w){var mt=Ii(R,m);mt.length?g&&(_e.indices=mt):_e.isMatch=!1}return _e}function _i(e){for(var t={},r=0,i=e.length;r<i;r+=1){var n=e.charAt(r);t[n]=(t[n]||0)|1<<i-r-1}return t}var er=function(){function e(t){var r=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,c=i.distance,u=c===void 0?C.distance:c,p=i.includeMatches,f=p===void 0?C.includeMatches:p,d=i.findAllMatches,m=d===void 0?C.findAllMatches:d,y=i.minMatchCharLength,g=y===void 0?C.minMatchCharLength:y,h=i.isCaseSensitive,v=h===void 0?C.isCaseSensitive:h,M=i.ignoreLocation,b=M===void 0?C.ignoreLocation:M;if(E(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:b},this.pattern=v?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var T=function(D,B){r.chunks.push({pattern:D,alphabet:_i(D),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 _=L-ee;T(this.pattern.substr(_),_)}}else T(this.pattern,0)}}return O(e,[{key:"searchIn",value:function(r){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(r=r.toLowerCase()),this.pattern===r){var s={isMatch:!0,score:0};return a&&(s.indices=[[0,r.length-1]]),s}var o=this.options,c=o.location,u=o.distance,p=o.threshold,f=o.findAllMatches,d=o.minMatchCharLength,m=o.ignoreLocation,y=[],g=0,h=!1;this.chunks.forEach(function(M){var b=M.pattern,T=M.alphabet,L=M.startIndex,S=Ri(r,b,T,{location:c+L,distance:u,threshold:p,findAllMatches:f,minMatchCharLength:d,includeMatches:a,ignoreLocation:m}),w=S.isMatch,R=S.score,_=S.indices;w&&(h=!0),g+=R,w&&_&&(y=[].concat(te(y),te(_)))});var v={isMatch:h,score:h?g/this.chunks.length:1};return h&&a&&(v.indices=y),v}}]),e}(),X=function(){function e(t){E(this,e),this.pattern=t}return O(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(r){return Ut(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return Ut(r,this.singleRegex)}}]),e}();function Ut(e,t){var r=e.match(t);return r?r[1]:null}var Ei=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^=(.*)$/}}]),r}(X),Oi=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^!(.*)$/}}]),r}(X),Di=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^\^(.*)$/}}]),r}(X),Ni=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^!\^(.*)$/}}]),r}(X),zi=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^(.*)\$$/}}]),r}(X),Hi=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^!(.*)\$$/}}]),r}(X),tr=function(e){V(r,e);var t=J(r);function r(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.location,o=s===void 0?C.location:s,c=a.threshold,u=c===void 0?C.threshold:c,p=a.distance,f=p===void 0?C.distance:p,d=a.includeMatches,m=d===void 0?C.includeMatches:d,y=a.findAllMatches,g=y===void 0?C.findAllMatches:y,h=a.minMatchCharLength,v=h===void 0?C.minMatchCharLength:h,M=a.isCaseSensitive,b=M===void 0?C.isCaseSensitive:M,T=a.ignoreLocation,L=T===void 0?C.ignoreLocation:T;return E(this,r),n=t.call(this,i),n._bitapSearch=new er(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:g,minMatchCharLength:v,isCaseSensitive:b,ignoreLocation:L}),n}return O(r,[{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/^(.*)$/}}]),r}(X),rr=function(e){V(r,e);var t=J(r);function r(i){return E(this,r),t.call(this,i)}return O(r,[{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/^'(.*)$/}}]),r}(X),We=[Ei,rr,Di,Ni,Hi,zi,Oi,tr],Yt=We.length,$i=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Wi="|";function ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(Wi).map(function(r){for(var i=r.trim().split($i).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 p=We[u],f=p.isMultiMatch(o);f&&(n.push(new p(f,t)),c=!0)}if(!c)for(u=-1;++u<Yt;){var d=We[u],m=d.isSingleMatch(o);if(m){n.push(new d(m,t));break}}}return n})}var Gi=new Set([tr.type,rr.type]),Ki=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.isCaseSensitive,n=i===void 0?C.isCaseSensitive:i,a=r.includeMatches,s=a===void 0?C.includeMatches:a,o=r.minMatchCharLength,c=o===void 0?C.minMatchCharLength:o,u=r.ignoreLocation,p=u===void 0?C.ignoreLocation:u,f=r.findAllMatches,d=f===void 0?C.findAllMatches:f,m=r.location,y=m===void 0?C.location:m,g=r.threshold,h=g===void 0?C.threshold:g,v=r.distance,M=v===void 0?C.distance:v;E(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:c,findAllMatches:d,ignoreLocation:p,location:y,threshold:h,distance:M},this.pattern=n?t:t.toLowerCase(),this.query=ji(this.pattern,this.options)}return O(e,[{key:"searchIn",value:function(r){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,s=n.isCaseSensitive;r=s?r:r.toLowerCase();for(var o=0,c=[],u=0,p=0,f=i.length;p<f;p+=1){var d=i[p];c.length=0,o=0;for(var m=0,y=d.length;m<y;m+=1){var g=d[m],h=g.search(r),v=h.isMatch,M=h.indices,b=h.score;if(v){if(o+=1,u+=b,a){var T=g.constructor.type;Gi.has(T)?c=[].concat(te(c),te(M)):c.push(M)}}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(r,i){return i.useExtendedSearch}}]),e}(),ye=[];function Ui(){ye.push.apply(ye,arguments)}function je(e,t){for(var r=0,i=ye.length;r<i;r+=1){var n=ye[r];if(n.condition(e,t))return new n(e,t)}return new er(e,t)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(t){return!!(t[ve.AND]||t[ve.OR])},Yi=function(t){return!!t[Ge.PATH]},Qi=function(t){return!U(t)&&Jt(t)&&!Ke(t)},Qt=function(t){return Ne({},ve.AND,Object.keys(t).map(function(r){return Ne({},r,t[r])}))};function ir(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.auto,n=i===void 0?!0:i,a=function s(o){var c=Object.keys(o),u=Yi(o);if(!u&&c.length>1&&!Ke(o))return s(Qt(o));if(Qi(o)){var p=u?o[Ge.PATH]:c[0],f=u?o[Ge.PATTERN]:o[p];if(!$(f))throw new Error(bi(p));var d={keyId:$e(p),pattern:f};return n&&(d.searcher=je(f,t)),d}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=Qt(e)),a(e)}function Vi(e,t){var r=t.ignoreFieldNorm,i=r===void 0?C.ignoreFieldNorm:r;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,c=s.norm,u=s.score,p=o?o.weight:null;a*=Math.pow(u===0&&p?Number.EPSILON:u,(p||1)*(i?1:c))}),n.score=a})}function Ji(e,t){var r=e.matches;t.matches=[],N(r)&&r.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),t.matches.push(s)}})}function Xi(e,t){t.score=e.score}function Zi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.includeMatches,n=i===void 0?C.includeMatches:i,a=r.includeScore,s=a===void 0?C.includeScore:a,o=[];return n&&o.push(Ji),s&&o.push(Xi),e.map(function(c){var u=c.idx,p={item:t[u],refIndex:u};return o.length&&o.forEach(function(f){f(c,p)}),p})}var ae=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;E(this,e),this.options=ne(ne({},C),r),this.options.useExtendedSearch,this._keyStore=new Fi(this.options.keys),this.setCollection(t,i)}return O(e,[{key:"setCollection",value:function(r,i){if(this._docs=r,i&&!(i instanceof Ue))throw new Error(vi);this._myIndex=i||qt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(r){N(r)&&(this._docs.push(r),this._myIndex.add(r))}},{key:"remove",value:function(){for(var r=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];r(s,n)&&(this.removeAt(n),n-=1,a-=1,i.push(s))}return i}},{key:"removeAt",value:function(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(r){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,p=s.sortFn,f=s.ignoreFieldNorm,d=$(r)?$(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Vi(d,{ignoreFieldNorm:f}),u&&d.sort(p),Vt(a)&&a>-1&&(d=d.slice(0,a)),Zi(d,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(r){var i=je(r,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 p=i.searchIn(o),f=p.isMatch,d=p.score,m=p.indices;f&&a.push({item:o,idx:c,matches:[{score:d,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=ir(r,this.options),a=function u(p,f,d){if(!p.children){var m=p.keyId,y=p.searcher,g=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return g&&g.length?[{idx:d,item:f,matches:g}]:[]}for(var h=[],v=0,M=p.children.length;v<M;v+=1){var b=p.children[v],T=u(b,f,d);if(T.length)h.push.apply(h,te(T));else if(p.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},c=[];return s.forEach(function(u){var p=u.$,f=u.i;if(N(p)){var d=a(n,p,f);d.length&&(o[f]||(o[f]={idx:f,item:p,matches:[]},c.push(o[f])),d.forEach(function(m){var y,g=m.matches;(y=o[f].matches).push.apply(y,te(g))}))}}),c}},{key:"_searchObjectList",value:function(r){var i=this,n=je(r,this.options),a=this._myIndex,s=a.keys,o=a.records,c=[];return o.forEach(function(u){var p=u.$,f=u.i;if(N(p)){var d=[];s.forEach(function(m,y){d.push.apply(d,te(i._findMatches({key:m,value:p[y],searcher:n})))}),d.length&&c.push({idx:f,item:p,matches:d})}}),c}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.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),M=v.isMatch,b=v.score,T=v.indices;M&&s.push({score:b,key:i,value:y,idx:g,norm:h,indices:T})}});else{var o=n.v,c=n.n,u=a.searchIn(o),p=u.isMatch,f=u.score,d=u.indices;p&&s.push({score:f,key:i,value:o,norm:c,indices:d})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=qt;ae.parseIndex=Bi;ae.config=C;ae.parseQuery=ir;Ui(Ki);var qi=ae;nr.exports=qi});var Da={};Yr(Da,{PUNCTUATION:()=>x,abbreviations:()=>Ve,availableExclusions:()=>Br,availableModifiers:()=>Pr,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Qe,default:()=>_r,filterCard:()=>Er,filtersToCardPropertyMappings:()=>Pe,getAbbreviation:()=>Me,getAbbreviationByCard:()=>en,getCardByName:()=>lt,getDeckFilters:()=>ia,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>Ra,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>ht,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>Oa,heroHasFilters:()=>na,shorthands:()=>rt});module.exports=Qr(Da);var P=G(K()),ct=G(ar());var be=G(K()),Ye=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],Qe=[{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=G(K());var Me=e=>Ve.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),en=e=>Ve.find(({card:t})=>t.toLowerCase()===e.name.toLowerCase()),Ve=[{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=G(K());var Se=Array.from(Array(50).keys()).map(e=>`${e}`),A=(e,t=[])=>{let r=[...e,l.Class.Generic];return t.length>0&&r.push(l.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},tn(t)]},F=(e,t=[])=>{let r=Object.values(l.Hero).filter(i=>i!==e&&!t.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:r,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:r,excluded:!0,isOr:!0}]},tn=e=>{let t=Object.values(l.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},Te=[l.Talent.Draconic],rn=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice,l.Talent.Lightning],nn=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Ice],an=[l.Talent.Elemental,l.Talent.Earth,l.Talent.Lightning],on=[l.Talent.Elemental,l.Talent.Ice],sn=[l.Talent.Elemental,l.Talent.Ice,l.Talent.Lightning],Ze=[l.Talent.Light],qe=[l.Talent.Shadow],ln=[...A([l.Class.Assassin]),...F(l.Hero.Arakni)],cn=[...A([l.Class.Ranger]),...F(l.Hero.Azalea)],un=[...A([l.Class.Ninja]),...F(l.Hero.Benji)],pn=[...A([l.Class.Guardian]),...F(l.Hero.Betsy)],dn=[...A([l.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...F(l.Hero.Boltyn)],hn=[...A([l.Class.Guardian]),...F(l.Hero.Bravo)],fn=[...A([l.Class.Guardian]),...F(l.Hero.Brevant)],gn=[...A([l.Class.Runeblade],an),...F(l.Hero.Briar)],mn=[...A([l.Class.Runeblade],qe),...F(l.Hero.Chane)],yn=[...A([l.Class.Mechanologist]),...F(l.Hero.Dash)],Je=[...A([l.Class.Mechanologist]),...F(l.Hero.DataDoll)],or=[...A([l.Class.Warrior]),...F(l.Hero.Dorinthea)],vn=[...A([l.Class.Illusionist],Te),...F(l.Hero.Dromai,[l.Hero.Fai])],bn=[...A([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},...F(l.Hero.Emperor)],Mn=[...A([l.Class.Ninja],Te),...F(l.Hero.Fai,[l.Hero.Dromai])],sr=[...A([l.Class.Merchant]),...F(l.Hero.GenisWotchuneed)],An=[...A([l.Class.Ninja]),...F(l.Hero.Ira)],lr=[...A([l.Class.Wizard],on),...F(l.Hero.Iyslander)],Cn=[...A([l.Class.Wizard])],Fn=[...A([l.Class.Warrior]),...F(l.Hero.Kassai)],kn=[...A([l.Class.Ninja]),...F(l.Hero.Katsu)],Sn=[...A([l.Class.Merchant]),...F(l.Hero.Kavdaen)],Tn=[...A([l.Class.Brute]),...F(l.Hero.Kayo)],xn=[...A([l.Class.Brute],qe),...F(l.Hero.Levia)],Ln=[...A([l.Class.Ranger],sn),...F(l.Hero.Lexi)],wn=[...A([l.Class.Mechanologist]),...F(l.Hero.Maxx)],Pn=[...A([l.Class.Bard]),...F(l.Hero.Melody)],Bn=[...A([l.Class.Guardian],nn),...F(l.Hero.Oldhim)],In=[...A([l.Class.Warrior]),...F(l.Hero.Olympia)],Rn=[...A([l.Class.Illusionist],Ze),...F(l.Hero.Prism)],_n=[...A([l.Class.Brute]),...F(l.Hero.Rhinar)],En=[...A([l.Class.Ranger]),...F(l.Hero.Riptide)],On=[...A([l.Class.Merchant]),...F(l.Hero.Ruudi)],Dn=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Nn=[...A([l.Class.Merchant]),...F(l.Hero.Squizzy)],zn=[...A([l.Class.Guardian],rn),...F(l.Hero.Bravo)],Hn=[...A([l.Class.Adjudicator],Te),...F(l.Hero.Taipanis)],$n=[...A([]),...F(l.Hero.Taylor)],Wn=[...A([l.Class.Mechanologist]),...F(l.Hero.Teklovossen)],jn=[...A([l.Class.Adjudicator],Ze),...F(l.Hero.Theryon)],Gn=[...A([l.Class.Assassin]),...F(l.Hero.Uzuri)],Kn=[...A([l.Class.Guardian]),...F(l.Hero.Valda)],Un=[...A([l.Class.Guardian]),...F(l.Hero.Victor)],Yn=[...A([l.Class.Runeblade]),...F(l.Hero.Viserai)],Qn=[...A([l.Class.Runeblade],qe),...F(l.Hero.Vynnset)],Vn=[...A([l.Class.Bard]),...F(l.Hero.Yorick)],Jn=[...A([l.Class.Guardian]),...F(l.Hero.Yoji)],Xn=[{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"]}],Zn=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Ae=[{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}],qn=[{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:Xn,"blitz ll":cr,"blitz living legend":cr,clash:Zn,cc:Ae,classic:Ae,"classic constructed":Ae,ll:oe,"living legend":oe,"cc ll":oe,"ll cc":oe,"classic constructed ll":oe,"classic constructed living legend":oe,constructed:Ae,commoner:qn,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:ln,azalea:cn,benji:un,betsy:pn,boltyn:dn,bravo:hn,brevant:fn,briar:gn,chane:mn,dash:yn,data:Je,"data doll":Je,datadoll:Je,dori:or,dorinthea:or,dromai:vn,emperor:bn,fai:Mn,genis:sr,geniswotchuneed:sr,ira:An,iyslander:lr,islander:lr,kano:Cn,kassai:Fn,katsu:kn,kavdaen:Sn,kayo:Tn,levia:xn,lexi:Ln,maxx:wn,melody:Pn,oldhim:Bn,olympia:In,prism:Rn,rhinar:_n,riptide:En,ruudi:On,shiyana:Dn,squizzy:Nn,starvo:zn,taipanis:Hn,taylor:$n,teklovossen:Wn,theryon:jn,uzuri:Gn,valda:Kn,victor:Un,viserai:Yn,vynnset:Qn,yorick:Vn,yoji:Jn},Ce=["common","rare","super rare","majestic","legendary","fabled"],ea=(e,t,r)=>{let i=[];if(!t)i.push(...e);else for(let n of e)switch(t){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:r}},ta=(e,t)=>{let r=[];for(let i of e)if(ce[i]){let n=ce[i];for(let a of n){let s=he({},a);t&&!a.filterToPropertyMapping.isString&&(s.excluded=!a.excluded),r.push(s)}}return r},et=(e,t,r,i)=>{let n=[];return oa(t)?n.push(...ta(r,e)):la(t)&&n.push(ea(r,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}],W=[{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())}],ra={"!co":se,"-co":se,"!cost":se,"-cost":se,"!color":se,"-color":se,"!b":W,"-b":W,"!block":W,"-block":W,"!d":W,"-d":W,"!def":W,"-def":W,"!defense":W,"-defense":W,"!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 t=[],r=ra[e];return r&&t.push(...r),t},ia=(e,t)=>[...ce[e.toLowerCase()],...t?ce[t.toLowerCase()]:[]],na=e=>{var t;return((t=ce[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},aa=["l","legal","hero"],oa=e=>aa.includes(e),sa=["r","rarity"],la=e=>sa.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},ca={property:"n/a"},ur={property:"classes",isArray:!0,partialMatch:!0},pr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},dr={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},ua={property:"n/a"},pa={property:"n/a"},br={property:"restrictedFormats",isArray:!0,partialMatch:!0},Mr={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Ar={property:"subtypes",isArray:!0},Cr={property:"types",isArray:!0},Fr={property:"talents",isArray:!0},da={property:"functionalText",isString:!0,partialMatch:!0},ha={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:ca,co:pr,cost:pr,color:at,d:ue,def:ue,defense:ue,f:hr,fusion:hr,foil:dr,foiling:dr,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:ua,references:pa,rf:br,restricted:br,s:Mr,set:Mr,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Ar,subtype:Ar,t:Cr,type:Cr,tal:Fr,talent:Fr,text:da,treat:we,treatment:we,var:we,variation:we,x:ha},fa=[{text:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(x,"")}],ga=e=>{var n;let t=[],r=e.trim().toLowerCase();for(let{text:a,override:s}of fa)r.includes(a)&&(r=r.replace(a,s));if((n=Me(r))==null?void 0:n.card)t.push(r);else{let a=r.split(/[ ]+/),s="",o=0;for(let c of a)o===2&&(t.push(s.trim().replaceAll('"',"")),s="",o=0),o<2&&c.split('"').length===2?(s+=" "+c,o++):o===0&&s===""?t.push(c):o===1&&(s+=" "+c);o===2&&(t.push(s.trim().replaceAll('"',"")),s="",o=0)}return t},ma=[k.Hero.Briar,k.Hero.Emperor,k.Hero.Prism,k.Hero.Shiyana,k.Hero.Taylor],st=(e,t)=>{var f;let r=ga(e),i=[];for(let d of r){let m=rt[d];m?i.push(...m):i.push(d)}let n=[],a=[],s=[],o=[],c=[],u=[],p={isClash:!1,heroes:[]};for(let d of i)if(Sa(d)){let[m,y]=d.split(":"),{modifier:g,values:h,isAnd:v,isOr:M}=Fa(y),{filterKey:b,excluded:T,isMeta:L}=ka(m);if(L){if(["rarity","r"].includes(b)&&(h=Ca(h)),["legal","l","hero"].includes(b)){for(let S of ma)y.includes(S.toLowerCase())&&(p.heroes.includes(S)||p.heroes.push(S));y.includes("clash")&&(p.isClash=!0)}n.push(...et(T,b,h,g))}else{if(["chain"].includes(b)){let S=B=>B.name.toLowerCase().replaceAll(x,""),w=h.map(B=>lt(B,t)).filter(B=>!!B).map(S),R=new Set(w);b="name",M=!0;let _=20,Y=0,D=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>_)break;let{referencedBy:z,references:re}=Be(B,t);re.forEach(D),Y===0&&z.forEach(D),Y++}h=Array.from(R)}else if(["referencedby","references"].includes(b)){let S=b,w=[...h].filter(R=>!!R);h=[],b="name",M=!0;for(let R of w){let{referencedBy:_,references:Y}=Be(R,t);["referencedby"].includes(S)?h.push(...Y.map(({name:D})=>D.toLowerCase().replaceAll(x,""))):["references"].includes(S)&&h.push(..._.map(({name:D})=>D.toLowerCase().replaceAll(x,"")))}}else["art","artist"].includes(b)?a=h:["foiling","foil"].includes(b)?(o=Ma(h),h=o.map(S=>S.toLowerCase())):["treat","treatment","var","variation"].includes(b)?(u=Aa(h),h=u.map(S=>S.toLowerCase())):["set","s"].includes(b)?(c=ya(h),h=c.map(S=>S.toLowerCase().replaceAll(x,""))):["pitch","p","color"].includes(b)&&(h=ba(h));Pe[b]&&n.push({filterToPropertyMapping:Pe[b],values:h,isAnd:v,isOr:M,modifier:g,excluded:T})}}else if(d){let m=(f=Me(d))==null?void 0:f.card,y=tt(d);m?s.push(`"${m.toLowerCase().replace(x,"")}"`):y&&y.length>0?n.push(...y):s.push(d.replace(x,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:c,treatments:u},keywords:s,specialConditions:p}},ya=e=>{let t=[];for(let r of e)t.push(...va(r));return t},va=e=>{let t=[],r=Object.values(k.Release).find(i=>i.toLowerCase().replaceAll(x,"")===e);if(r&&t.push(r),t.length===0){let i=k.setIdentifierToSetMappings[e];i&&t.push(i)}if(t.length===0){let i=Object.values(k.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&t.push(...i)}return t},ot={blue:3,yellow:2,red:1,white:0},ba=e=>{let t=[];for(let r of e)ot[r]||ot[r]===0?t.push(ot[r].toString()):t.push(r);return t},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},Ma=e=>{let t=[];for(let r of e)kr[r]&&t.push(kr[r]);return t},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},Aa=e=>{let t=[];for(let r of e)Sr[r]?t.push(Sr[r]):k.Treatment[r.toUpperCase()]&&t.push(k.Treatment[r.toUpperCase()]);return t},Tr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},Ca=e=>{let t=[];for(let r of e)Tr[r]?t.push(Tr[r]):t.push(r);return t},Fa=e=>{let t=[],r,i,n=Pr.find(a=>e.includes(a));if(n){let[,a]=e.split(n);xr(a)?(r=!0,t.push(...a.trim().split("+").map(s=>s.replace(x,"")))):Lr(a)?(i=!0,t.push(...a.trim().split(",").map(s=>s.replace(x,"")))):t.push(a.trim().replace(x,""))}else xr(e)?(r=!0,t.push(...e.trim().split("+").map(a=>a.replace(x,"")))):Lr(e)?(i=!0,t.push(...e.trim().split(",").map(a=>a.replace(x,"")))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"").replace(x,"")):t.push(e.trim().replace(x,""));return{modifier:n,values:t,isAnd:r,isOr:i}},ka=e=>{let t=Ta(e);if(t){let[,r]=e.split(t);return{excluded:!0,filterKey:r,isMeta:wr(r)}}else return{excluded:!1,filterKey:e,isMeta:wr(e)}},Sa=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Lr=e=>e.indexOf(",")>=0,wr=e=>{var t;return!!((t=Pe[e])!=null&&t.isMeta)},Ta=e=>{var t;return(t=Br.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var I=G(K()),Ir={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[I.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:I.Release.Promos},{artist:"Hoodwill",identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${I.Treatment.FA}`,set:I.Release.Promos,treatment:I.Treatment.FA}],name:"Fangs A Lot",rarities:[I.Rarity.Rare],rarity:I.Rarity.Rare,sets:[I.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[I.Subtype.Attack],types:[I.Type.Action],typeText:"Generic Action - Attack"},Rr=[{keyword:Ir.name.toLowerCase(),card:Ir}];var ut=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(t,this.cards),c=s.join(" "),u=r?Rr.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 M=(T=h.setIdentifiers.find(S=>S.includes(g)))==null?void 0:T.replace(g,""),b=(L=v.setIdentifiers.find(S=>S.includes(g)))==null?void 0:L.replace(g,"");return M&&b?M.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(M=>M.toLowerCase().replace(x,"")).join(" ");for(let M of i)M.name.toLowerCase().replace(x,"")===v?g.push(M):h.push(M);i=[...g,...h]}let p,{artists:f,foilings:d,releases:m,treatments:y}=a;return(f.length>0||d.length>0||m.length>0||y.length>0)&&(p=i.map(g=>{let h=g.printings.filter(v=>{let M=!!v.image,b=f.length===0||f.some(w=>v.artist.replace(x,"").toLowerCase().includes(w)),T=d.length===0||d.includes(v.foiling),L=m.length===0||m.includes(v.set),S=y.length===0||y.includes(v.treatment);return M&&b&&T&&L&&S});return he({matchingPrintings:h},g)})),{appliedFilters:n,attributes:a,keywords:s,searchResults:p||i}};let r={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=[...t],this.fuse=new ct.default([...t],r)}},_r=ut,Er=(e,t,r)=>{let i=!0;for(let n of t){let{isNumber:a,isString:s,isArray:o,isBoolean:c,property:u}=n.filterToPropertyMapping;if((a&&!xa(e,n)||s&&!La(e,n)||o&&!wa(e,n)||c&&!Pa(e,n))&&(i=!1),r.isClash&&["rarities","bannedFormats"].includes(u)){let y=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(b=>e.rarities.includes(b)),g=!1;for(let{cardIdentifiers:b,heroes:T}of Qe)for(let L of r.heroes)T.includes(L)&&b.includes(e.cardIdentifier)&&(g=!0);let h=!!e.specializations&&e.specializations.length>0||g,v=[P.Type.Mentor,P.Type.Weapon].some(b=>e.types.includes(b)),M=Ye.includes(e.name);!i&&!M&&(h||v)&&y&&(i=!0),M&&(i=!1)}r.isClash&&r.heroes.includes(P.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&r.heroes.includes(P.Hero.Shiyana)&&["classes"].includes(u)&&e.specializations&&e.specializations.length>0&&(i=!0);let d=e.types.includes(P.Type.Equipment);if(!i&&r.heroes.includes(P.Hero.Taylor)&&d&&d&&(i=!0),!i)break}return i},xa=(e,t)=>{var r;if(Ie(t,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=t,o=pt(e,t);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let c=i==null?void 0:i.some(d=>o>=parseInt(d));return a?!c:c;case">":let u=i==null?void 0:i.some(d=>o>parseInt(d));return a?!u:u;case"<=":let p=i==null?void 0:i.some(d=>o<=parseInt(d));return a?!p:p;case"<":let f=i==null?void 0:i.some(d=>o<parseInt(d));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=(r=Ia(e,t))==null?void 0:r.toLowerCase(),u=s?i==null?void 0:i.some(p=>c==null?void 0:c.includes(p)):i==null?void 0:i.some(p=>c===p);return a?!u:u}}else return!0},La=(e,t)=>{var r;if(Ie(t,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=t,o=(r=pt(e,t))==null?void 0:r.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},wa=(e,t)=>{if(Ie(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,s=Ba(e,t).map(o=>o==null?void 0:o.replaceAll(x,""));if(a){let o=i?r.every(u=>s==null?void 0:s.some(p=>p==null?void 0:p.toLowerCase().includes(u))):r.some(u=>s==null?void 0:s.some(p=>p==null?void 0:p.toLowerCase().includes(u))),c=s.length===0;return n?!o||c:o}else{let o=i?r.every(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c)):r.some(c=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===c));return n?!o:o}}else return!0},Pa=(e,t)=>{if(Ie(t,e)){let{excluded:r}=t,i=pt(e,t);return r?!i:i}else return!0},pt=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.property]},Ba=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},Ia=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.specialProperty]},Ie=({cardTypes:e},{types:t,subtypes:r})=>!e||(e==null?void 0:e.some(i=>t.map(n=>n.toLowerCase()).includes(i.toLowerCase())||r.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var lt=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(x,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),r};var j=G(K()),Ra=e=>{let t=e.filter(o=>o.types.includes(j.Type.Hero)).sort((o,c)=>o.name.localeCompare(c.name)),r=t.filter(o=>!o.young&&!o.classes.includes(j.Class.Adjudicator)),i=t.filter(o=>{let c=o.rarities.some(p=>p!==j.Rarity.Promo),u=o.sets.some(p=>p!==j.Release.Promos);return c||u}),n=t.filter(o=>{let c=o.rarities.every(p=>p===j.Rarity.Promo),u=o.sets.every(p=>p===j.Release.Promos);return c&&u}),a=t.filter(o=>o.young),s=a.filter(({hero:o})=>!r.find(c=>c.hero===o));return{all:t,adult:r,nonPromo:i,promoOnly:n,young:a,youngOnly:s}};var Nr=G(K());var dt=G(K()),_a={"Dawnblade, Resplendent":"Dawnblade"},Or=e=>_a[e.name]||e.name,Dr=e=>{var t;return(t=e.functionalText)==null?void 0:t.replaceAll(e.name,"")},Be=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(x,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(x,"").includes(e))),ht(r,t)},ht=(e,t)=>{var a,s;let r=[],i=[],n=[];if(e){let o=[],c=[],u=Or(e);for(let p of t){let f=Or(p),d=u===f,m=e.pitch!==p.pitch;if(d&&m)r.push(p);else if(!d){let y=e.name==="Seismic Surge",g=(a=p.keywords)==null?void 0:a.includes(dt.Keyword.Heave),h=y&&g,v=Dr(p),M=v==null?void 0:v.includes(u),b=Dr(e),T=b==null?void 0:b.includes(f);(M||h)&&o.push(p);let L=p.name==="Seismic Surge",S=(s=e.keywords)==null?void 0:s.includes(dt.Keyword.Heave);(T||L&&S)&&c.push(p)}}for(let p of o)i.push(p);for(let p of c){let f=p.name;u!==f&&!c.some(d=>{let m=d.name;return m!==f&&m.includes(f)})&&n.push(p)}}return{otherPitches:r,referencedBy:i,references:n}},Ea=["cash-in-yellow"],Oa=(e,t,r)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!Ea.includes(a))){let{references:a}=ht(n,t);for(let s of a.filter(o=>{let c=o.name==="Hyper Driver",u=r===Nr.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});
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",
4
+ "version": "2.0.6",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -12,11 +12,11 @@
12
12
  "full": "npm run build"
13
13
  },
14
14
  "dependencies": {
15
- "@flesh-and-blood/types": "^2.0.0",
15
+ "@flesh-and-blood/types": "^2.0.6",
16
16
  "fuse.js": "^6.6.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@flesh-and-blood/cards": "^2.0.4",
19
+ "@flesh-and-blood/cards": "^2.0.6",
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": "5a068435c0f033189b7b1dc76f606badc2a35453"
49
+ "gitHead": "3b55c9697a77a9660daa2d64fc2cbb3a37616d4c"
50
50
  }