@flesh-and-blood/search 0.0.22 → 0.0.24
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 +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Hr=Object.create;var se=Object.defineProperty;var jr=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames,ht=Object.getOwnPropertySymbols,Gr=Object.getPrototypeOf,mt=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var gt=(e,t,r)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fe=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&>(e,r,t[r]);if(ht)for(var r of ht(t))Kr.call(t,r)&>(e,r,t[r]);return e};var yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ur=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},vt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Wr(t))!mt.call(e,n)&&n!==r&&se(e,n,{get:()=>t[n],enumerable:!(i=jr(t,n))||i.enumerable});return e};var X=(e,t,r)=>(r=e!=null?Hr(Gr(e)):{},vt(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),Yr=e=>vt(se({},"__esModule",{value:!0}),e);var Z=yt((Ra,Nt)=>{var he=Object.defineProperty,Qr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Mt=(e,t,r)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qr=(e,t)=>{for(var r in t||(t={}))At.call(t,r)&&Mt(e,r,t[r]);if(bt)for(var r of bt(t))Zr.call(t,r)&&Mt(e,r,t[r]);return e},ei=(e,t)=>Qr(e,Jr(t)),ti=(e,t)=>{for(var r in t)he(e,r,{get:t[r],enumerable:!0})},ri=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xr(t))!At.call(e,n)&&n!==r&&he(e,n,{get:()=>t[n],enumerable:!(i=Vr(t,n))||i.enumerable});return e},ii=e=>ri(he({},"__esModule",{value:!0}),e),Ct={};ti(Ct,{Class:()=>Tt,Foiling:()=>Ft,Format:()=>xt,Fusion:()=>St,Hero:()=>_t,Keyword:()=>Et,Rarity:()=>Lt,Release:()=>Pt,ReleaseEdition:()=>wt,Subtype:()=>It,Talent:()=>Bt,Treatment:()=>kt,Type:()=>Rt,fullSetIdentifiers:()=>Ot,setIdentifierToSetMappings:()=>Dt,setToSetIdentifierMappings:()=>ni});Nt.exports=ii(Ct);var Ft=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(Ft||{}),kt=(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))(kt||{}),Tt=(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))(Tt||{}),xt=(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))(xt||{}),St=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(St||{}),Lt=(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))(Lt||{}),Pt=(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.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))(Pt||{}),wt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(wt||{}),Bt=(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))(Bt||{}),Rt=(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))(Rt||{}),It=(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.Young="Young",e))(It||{}),_t=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",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.ProfessorTeklovossen="Professor Teklovossen",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu\u2019di",e.Shiyana="Shiyana",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(_t||{}),Et=(e=>(e.Ambush="Ambush",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",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.GoAgain="Go again",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",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.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.Unfreeze="Unfreeze",e.Unity="Unity",e.Ward="Ward",e))(Et||{}),Ot={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"},Dt=ei(qr({},Ot),{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"}),_e={};for(let[e,t]of Object.entries(Dt)){let r=_e[t];r?r.push(e):_e[t]=[e]}var ni=_e});var rr=yt((Ia,tr)=>{"use strict";function zt(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 ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zt(Object(r),!0).forEach(function(i){De(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Oe(e){"@babel/helpers - typeof";return Oe=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},Oe(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $t(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 E(e,t,r){return t&&$t(e.prototype,t),r&&$t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(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&&Ne(e,t)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},me(e)}function Ne(e,t){return Ne=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},Ne(e,t)}function ai(){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 oi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function si(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 oi(e)}function Y(e){var t=ai();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 si(this,n)}}function ee(e){return li(e)||ci(e)||ui(e)||pi()}function li(e){if(Array.isArray(e))return ze(e)}function ci(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ui(e,t){if(e){if(typeof e=="string")return ze(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 ze(e,t)}}function ze(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 pi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1
|
+
var Hr=Object.create;var se=Object.defineProperty;var jr=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames,ht=Object.getOwnPropertySymbols,Gr=Object.getPrototypeOf,mt=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var gt=(e,t,r)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fe=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&>(e,r,t[r]);if(ht)for(var r of ht(t))Kr.call(t,r)&>(e,r,t[r]);return e};var yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ur=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},vt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Wr(t))!mt.call(e,n)&&n!==r&&se(e,n,{get:()=>t[n],enumerable:!(i=jr(t,n))||i.enumerable});return e};var X=(e,t,r)=>(r=e!=null?Hr(Gr(e)):{},vt(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),Yr=e=>vt(se({},"__esModule",{value:!0}),e);var Z=yt((Ra,Nt)=>{var he=Object.defineProperty,Qr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Mt=(e,t,r)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qr=(e,t)=>{for(var r in t||(t={}))At.call(t,r)&&Mt(e,r,t[r]);if(bt)for(var r of bt(t))Zr.call(t,r)&&Mt(e,r,t[r]);return e},ei=(e,t)=>Qr(e,Jr(t)),ti=(e,t)=>{for(var r in t)he(e,r,{get:t[r],enumerable:!0})},ri=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xr(t))!At.call(e,n)&&n!==r&&he(e,n,{get:()=>t[n],enumerable:!(i=Vr(t,n))||i.enumerable});return e},ii=e=>ri(he({},"__esModule",{value:!0}),e),Ct={};ti(Ct,{Class:()=>Tt,Foiling:()=>Ft,Format:()=>xt,Fusion:()=>St,Hero:()=>_t,Keyword:()=>Et,Rarity:()=>Lt,Release:()=>Pt,ReleaseEdition:()=>wt,Subtype:()=>It,Talent:()=>Bt,Treatment:()=>kt,Type:()=>Rt,fullSetIdentifiers:()=>Ot,setIdentifierToSetMappings:()=>Dt,setToSetIdentifierMappings:()=>ni});Nt.exports=ii(Ct);var Ft=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(Ft||{}),kt=(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))(kt||{}),Tt=(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))(Tt||{}),xt=(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))(xt||{}),St=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(St||{}),Lt=(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))(Lt||{}),Pt=(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.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))(Pt||{}),wt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(wt||{}),Bt=(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))(Bt||{}),Rt=(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))(Rt||{}),It=(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.Young="Young",e))(It||{}),_t=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",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.ProfessorTeklovossen="Professor Teklovossen",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu\u2019di",e.Shiyana="Shiyana",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(_t||{}),Et=(e=>(e.Ambush="Ambush",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",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.GoAgain="Go again",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",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.Unfreeze="Unfreeze",e.Unity="Unity",e.Ward="Ward",e))(Et||{}),Ot={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"},Dt=ei(qr({},Ot),{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"}),_e={};for(let[e,t]of Object.entries(Dt)){let r=_e[t];r?r.push(e):_e[t]=[e]}var ni=_e});var rr=yt((Ia,tr)=>{"use strict";function zt(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 ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zt(Object(r),!0).forEach(function(i){De(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Oe(e){"@babel/helpers - typeof";return Oe=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},Oe(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $t(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 E(e,t,r){return t&&$t(e.prototype,t),r&&$t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(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&&Ne(e,t)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},me(e)}function Ne(e,t){return Ne=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},Ne(e,t)}function ai(){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 oi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function si(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 oi(e)}function Y(e){var t=ai();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 si(this,n)}}function ee(e){return li(e)||ci(e)||ui(e)||pi()}function li(e){if(Array.isArray(e))return ze(e)}function ci(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ui(e,t){if(e){if(typeof e=="string")return ze(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 ze(e,t)}}function ze(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 pi(){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 G(e){return Array.isArray?Array.isArray(e):Qt(e)==="[object Array]"}var di=1/0;function fi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-di?"-0":t}function hi(e){return e==null?"":fi(e)}function $(e){return typeof e=="string"}function Ut(e){return typeof e=="number"}function gi(e){return e===!0||e===!1||mi(e)&&Qt(e)=="[object Boolean]"}function Yt(e){return Oe(e)==="object"}function mi(e){return Yt(e)&&e!==null}function O(e){return e!=null}function Ee(e){return!e.trim().length}function Qt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var yi="Incorrect 'index' type",vi=function(t){return"Invalid value for key ".concat(t)},bi=function(t){return"Pattern length exceeds max of ".concat(t,".")},Mi=function(t){return"Missing ".concat(t," property in key")},Ai=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},Ht=Object.prototype.hasOwnProperty,Ci=function(){function e(t){var r=this;_(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=Vt(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 E(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 Vt(e){var t=null,r=null,i=null,n=1,a=null;if($(e)||G(e))i=e,t=jt(e),r=$e(e);else{if(!Ht.call(e,"name"))throw new Error(Mi("name"));var s=e.name;if(i=s,Ht.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ai(s));t=jt(s),r=$e(s),a=e.getFn}return{path:t,id:r,weight:n,src:i,getFn:a}}function jt(e){return G(e)?e:e.split(".")}function $e(e){return G(e)?e.join("."):e}function Fi(e,t){var r=[],i=!1,n=function a(s,o,l){if(O(s))if(!o[l])r.push(s);else{var c=o[l],p=s[c];if(!O(p))return;if(l===o.length-1&&($(p)||Ut(p)||gi(p)))r.push(hi(p));else if(G(p)){i=!0;for(var h=0,d=p.length;h<d;h+=1)a(p[h],o,l+1)}else o.length&&a(p,o,l+1)}};return n(e,$(t)?t.split("."):t,0),i?r:r[0]}var ki={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},Si={useExtendedSearch:!1,getFn:Fi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},b=ie(ie(ie(ie({},Ti),ki),xi),Si),Li=/[^ ]+/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(Li).length;if(r.has(s))return r.get(s);var o=1/Math.pow(s,.5*e),l=parseFloat(Math.round(o*i)/i);return r.set(s,l),l},clear:function(){r.clear()}}}var Ke=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,i=r===void 0?b.getFn:r,n=t.fieldNormWeight,a=n===void 0?b.fieldNormWeight:n;_(this,e),this.norm=Pi(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return E(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(!(!O(r)||Ee(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 l=s.getFn?s.getFn(r):n.getFn(r,s.path);if(O(l)){if(G(l))(function(){for(var p=[],h=[{nestedArrIndex:-1,value:l}];h.length;){var d=h.pop(),m=d.nestedArrIndex,f=d.value;if(O(f))if($(f)&&!Ee(f)){var g={v:f,i:m,n:n.norm.get(f)};p.push(g)}else G(f)&&f.forEach(function(v,k){h.push({nestedArrIndex:k,value:v})})}a.$[o]=p})();else if($(l)&&!Ee(l)){var c={v:l,n:n.norm.get(l)};a.$[o]=c}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function Jt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.getFn,n=i===void 0?b.getFn:i,a=r.fieldNormWeight,s=a===void 0?b.fieldNormWeight:a,o=new Ke({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Vt)),o.setSources(t),o.create(),o}function wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getFn,i=r===void 0?b.getFn:r,n=t.fieldNormWeight,a=n===void 0?b.fieldNormWeight:n,s=e.keys,o=e.records,l=new Ke({getFn:i,fieldNormWeight:a});return l.setKeys(s),l.setIndexRecords(o),l}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,l=t.distance,c=l===void 0?b.distance:l,p=t.ignoreLocation,h=p===void 0?b.ignoreLocation:p,d=i/e.length;if(h)return d;var m=Math.abs(o-a);return c?d+m/c:m?1:d}function Bi(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b.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 q=32;function Ri(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?b.location:n,s=i.distance,o=s===void 0?b.distance:s,l=i.threshold,c=l===void 0?b.threshold:l,p=i.findAllMatches,h=p===void 0?b.findAllMatches:p,d=i.minMatchCharLength,m=d===void 0?b.minMatchCharLength:d,f=i.includeMatches,g=f===void 0?b.includeMatches:f,v=i.ignoreLocation,k=v===void 0?b.ignoreLocation:v;if(t.length>q)throw new Error(bi(q));for(var y=t.length,x=e.length,T=Math.max(0,Math.min(a,x)),F=c,S=T,w=m>1||g,N=w?Array(x):[],R;(R=e.indexOf(t,S))>-1;){var W=ge(t,{currentLocation:R,expectedLocation:T,distance:o,ignoreLocation:k});if(F=Math.min(W,F),S=R+y,w)for(var B=0;B<y;)N[R+B]=1,B+=1}S=-1;for(var D=[],te=1,ue=y+x,Nr=1<<y-1,J=0;J<y;J+=1){for(var pe=0,K=ue;pe<K;){var zr=ge(t,{errors:J,currentLocation:T+K,expectedLocation:T,distance:o,ignoreLocation:k});zr<=F?pe=K:ue=K,K=Math.floor((ue-pe)/2+pe)}ue=K;var pt=Math.max(1,T-K+1),Re=h?x:Math.min(T+K,x)+y,re=Array(Re+2);re[Re+1]=(1<<J)-1;for(var z=Re;z>=pt;z-=1){var de=z-1,dt=r[e.charAt(de)];if(w&&(N[de]=+!!dt),re[z]=(re[z+1]<<1|1)&dt,J&&(re[z]|=(D[z+1]|D[z])<<1|1|D[z+1]),re[z]&Nr&&(te=ge(t,{errors:J,currentLocation:de,expectedLocation:T,distance:o,ignoreLocation:k}),te<=F)){if(F=te,S=de,S<=T)break;pt=Math.max(1,2*T-S)}}var $r=ge(t,{errors:J+1,currentLocation:T,expectedLocation:T,distance:o,ignoreLocation:k});if($r>F)break;D=re}var Ie={isMatch:S>=0,score:Math.max(.001,te)};if(w){var ft=Bi(N,m);ft.length?g&&(Ie.indices=ft):Ie.isMatch=!1}return Ie}function Ii(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 Xt=function(){function e(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?b.location:n,s=i.threshold,o=s===void 0?b.threshold:s,l=i.distance,c=l===void 0?b.distance:l,p=i.includeMatches,h=p===void 0?b.includeMatches:p,d=i.findAllMatches,m=d===void 0?b.findAllMatches:d,f=i.minMatchCharLength,g=f===void 0?b.minMatchCharLength:f,v=i.isCaseSensitive,k=v===void 0?b.isCaseSensitive:v,y=i.ignoreLocation,x=y===void 0?b.ignoreLocation:y;if(_(this,e),this.options={location:a,threshold:o,distance:c,includeMatches:h,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:k,ignoreLocation:x},this.pattern=k?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var T=function(B,D){r.chunks.push({pattern:B,alphabet:Ii(B),startIndex:D})},F=this.pattern.length;if(F>q){for(var S=0,w=F%q,N=F-w;S<N;)T(this.pattern.substr(S,q),S),S+=q;if(w){var R=F-q;T(this.pattern.substr(R),R)}}else T(this.pattern,0)}}return E(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,l=o.location,c=o.distance,p=o.threshold,h=o.findAllMatches,d=o.minMatchCharLength,m=o.ignoreLocation,f=[],g=0,v=!1;this.chunks.forEach(function(y){var x=y.pattern,T=y.alphabet,F=y.startIndex,S=Ri(r,x,T,{location:l+F,distance:c,threshold:p,findAllMatches:h,minMatchCharLength:d,includeMatches:a,ignoreLocation:m}),w=S.isMatch,N=S.score,R=S.indices;w&&(v=!0),g+=N,w&&R&&(f=[].concat(ee(f),ee(R)))});var k={isMatch:v,score:v?g/this.chunks.length:1};return v&&a&&(k.indices=f),k}}]),e}(),Q=function(){function e(t){_(this,e),this.pattern=t}return E(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(r){return Wt(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return Wt(r,this.singleRegex)}}]),e}();function Wt(e,t){var r=e.match(t);return r?r[1]:null}var _i=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(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}(Q),Ei=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(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}(Q),Oi=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(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}(Q),Di=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(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}(Q),Ni=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(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}(Q),zi=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(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}(Q),Zt=function(e){U(r,e);var t=Y(r);function r(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.location,o=s===void 0?b.location:s,l=a.threshold,c=l===void 0?b.threshold:l,p=a.distance,h=p===void 0?b.distance:p,d=a.includeMatches,m=d===void 0?b.includeMatches:d,f=a.findAllMatches,g=f===void 0?b.findAllMatches:f,v=a.minMatchCharLength,k=v===void 0?b.minMatchCharLength:v,y=a.isCaseSensitive,x=y===void 0?b.isCaseSensitive:y,T=a.ignoreLocation,F=T===void 0?b.ignoreLocation:T;return _(this,r),n=t.call(this,i),n._bitapSearch=new Xt(i,{location:o,threshold:c,distance:h,includeMatches:m,findAllMatches:g,minMatchCharLength:k,isCaseSensitive:x,ignoreLocation:F}),n}return E(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}(Q),qt=function(e){U(r,e);var t=Y(r);function r(i){return _(this,r),t.call(this,i)}return E(r,[{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 c=!!o.length;return{isMatch:c,score:c?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(Q),He=[_i,qt,Oi,Di,zi,Ni,Ei,Zt],Gt=He.length,$i=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hi="|";function ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(Hi).map(function(r){for(var i=r.trim().split($i).filter(function(f){return f&&!!f.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],l=!1,c=-1;!l&&++c<Gt;){var p=He[c],h=p.isMultiMatch(o);h&&(n.push(new p(h,t)),l=!0)}if(!l)for(c=-1;++c<Gt;){var d=He[c],m=d.isSingleMatch(o);if(m){n.push(new d(m,t));break}}}return n})}var Wi=new Set([Zt.type,qt.type]),Gi=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.isCaseSensitive,n=i===void 0?b.isCaseSensitive:i,a=r.includeMatches,s=a===void 0?b.includeMatches:a,o=r.minMatchCharLength,l=o===void 0?b.minMatchCharLength:o,c=r.ignoreLocation,p=c===void 0?b.ignoreLocation:c,h=r.findAllMatches,d=h===void 0?b.findAllMatches:h,m=r.location,f=m===void 0?b.location:m,g=r.threshold,v=g===void 0?b.threshold:g,k=r.distance,y=k===void 0?b.distance:k;_(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:l,findAllMatches:d,ignoreLocation:p,location:f,threshold:v,distance:y},this.pattern=n?t:t.toLowerCase(),this.query=ji(this.pattern,this.options)}return E(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,l=[],c=0,p=0,h=i.length;p<h;p+=1){var d=i[p];l.length=0,o=0;for(var m=0,f=d.length;m<f;m+=1){var g=d[m],v=g.search(r),k=v.isMatch,y=v.indices,x=v.score;if(k){if(o+=1,c+=x,a){var T=g.constructor.type;Wi.has(T)?l=[].concat(ee(l),ee(y)):l.push(y)}}else{c=0,o=0,l.length=0;break}}if(o){var F={isMatch:!0,score:c/o};return a&&(F.indices=l),F}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(r,i){return i.useExtendedSearch}}]),e}(),ye=[];function Ki(){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 Xt(e,t)}var ve={AND:"$and",OR:"$or"},We={PATH:"$path",PATTERN:"$val"},Ge=function(t){return!!(t[ve.AND]||t[ve.OR])},Ui=function(t){return!!t[We.PATH]},Yi=function(t){return!G(t)&&Yt(t)&&!Ge(t)},Kt=function(t){return De({},ve.AND,Object.keys(t).map(function(r){return De({},r,t[r])}))};function er(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 l=Object.keys(o),c=Ui(o);if(!c&&l.length>1&&!Ge(o))return s(Kt(o));if(Yi(o)){var p=c?o[We.PATH]:l[0],h=c?o[We.PATTERN]:o[p];if(!$(h))throw new Error(vi(p));var d={keyId:$e(p),pattern:h};return n&&(d.searcher=je(h,t)),d}var m={children:[],operator:l[0]};return l.forEach(function(f){var g=o[f];G(g)&&g.forEach(function(v){m.children.push(s(v))})}),m};return Ge(e)||(e=Kt(e)),a(e)}function Qi(e,t){var r=t.ignoreFieldNorm,i=r===void 0?b.ignoreFieldNorm:r;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,l=s.norm,c=s.score,p=o?o.weight:null;a*=Math.pow(c===0&&p?Number.EPSILON:c,(p||1)*(i?1:l))}),n.score=a})}function Vi(e,t){var r=e.matches;t.matches=[],O(r)&&r.forEach(function(i){if(!(!O(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 Ji(e,t){t.score=e.score}function Xi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.includeMatches,n=i===void 0?b.includeMatches:i,a=r.includeScore,s=a===void 0?b.includeScore:a,o=[];return n&&o.push(Vi),s&&o.push(Ji),e.map(function(l){var c=l.idx,p={item:t[c],refIndex:c};return o.length&&o.forEach(function(h){h(l,p)}),p})}var ne=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;_(this,e),this.options=ie(ie({},b),r),this.options.useExtendedSearch,this._keyStore=new Ci(this.options.keys),this.setCollection(t,i)}return E(e,[{key:"setCollection",value:function(r,i){if(this._docs=r,i&&!(i instanceof Ke))throw new Error(yi);this._myIndex=i||Jt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(r){O(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,l=s.includeScore,c=s.shouldSort,p=s.sortFn,h=s.ignoreFieldNorm,d=$(r)?$(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Qi(d,{ignoreFieldNorm:h}),c&&d.sort(p),Ut(a)&&a>-1&&(d=d.slice(0,a)),Xi(d,this._docs,{includeMatches:o,includeScore:l})}},{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,l=s.i,c=s.n;if(O(o)){var p=i.searchIn(o),h=p.isMatch,d=p.score,m=p.indices;h&&a.push({item:o,idx:l,matches:[{score:d,value:o,norm:c,indices:m}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=er(r,this.options),a=function c(p,h,d){if(!p.children){var m=p.keyId,f=p.searcher,g=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(h,m),searcher:f});return g&&g.length?[{idx:d,item:h,matches:g}]:[]}for(var v=[],k=0,y=p.children.length;k<y;k+=1){var x=p.children[k],T=c(x,h,d);if(T.length)v.push.apply(v,ee(T));else if(p.operator===ve.AND)return[]}return v},s=this._myIndex.records,o={},l=[];return s.forEach(function(c){var p=c.$,h=c.i;if(O(p)){var d=a(n,p,h);d.length&&(o[h]||(o[h]={idx:h,item:p,matches:[]},l.push(o[h])),d.forEach(function(m){var f,g=m.matches;(f=o[h].matches).push.apply(f,ee(g))}))}}),l}},{key:"_searchObjectList",value:function(r){var i=this,n=je(r,this.options),a=this._myIndex,s=a.keys,o=a.records,l=[];return o.forEach(function(c){var p=c.$,h=c.i;if(O(p)){var d=[];s.forEach(function(m,f){d.push.apply(d,ee(i._findMatches({key:m,value:p[f],searcher:n})))}),d.length&&l.push({idx:h,item:p,matches:d})}}),l}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.searcher;if(!O(n))return[];var s=[];if(G(n))n.forEach(function(m){var f=m.v,g=m.i,v=m.n;if(O(f)){var k=a.searchIn(f),y=k.isMatch,x=k.score,T=k.indices;y&&s.push({score:x,key:i,value:f,idx:g,norm:v,indices:T})}});else{var o=n.v,l=n.n,c=a.searchIn(o),p=c.isMatch,h=c.score,d=c.indices;p&&s.push({score:h,key:i,value:o,norm:l,indices:d})}return s}}]),e}();ne.version="6.6.2";ne.createIndex=Jt;ne.parseIndex=wi;ne.config=b;ne.parseQuery=er;Ki(Gi);var Zi=ne;tr.exports=Zi});var wa={};Ur(wa,{PUNCTUATION:()=>L,abbreviations:()=>Ue,availableExclusions:()=>wr,availableModifiers:()=>Pr,clashSpecializationOverrides:()=>ct,default:()=>Ir,filterCard:()=>_r,filtersToCardPropertyMappings:()=>Pe,getAbbreviation:()=>be,getAbbreviationByCard:()=>qi,getCardByName:()=>at,getDeckFilters:()=>Zn,getExcludedMetaFilters:()=>Ze,getHeroBreakdown:()=>La,getKeywordsAndAppliedFiltersFromText:()=>nt,getMetaFilters:()=>Xe,getRelatedCards:()=>Dr,getRelatedCardsByName:()=>we,heroHasFilters:()=>qn,shorthands:()=>qe});module.exports=Yr(wa);var P=X(Z()),ot=X(rr());var ir=["Ball Lightning","Belittle","Drone of Brutality","Duskblade"];var L=/[!"#$%&'’()*+,-./:;<=>?@[\]^_`{|}~]/g;var C=X(Z());var be=e=>Ue.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),qi=e=>Ue.find(({card:t})=>t.toLowerCase()===e.name.toLowerCase()),Ue=[{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:["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:["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:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var u=X(Z());var ke=Array.from(Array(50).keys()).map(e=>`${e}`),M=(e,t=[])=>{let r=[...e,u.Class.Generic];return t.length>0&&r.push(u.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},en(t)]},A=(e,t=[])=>{let r=Object.values(u.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}]},en=e=>{let t=Object.values(u.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},Te=[u.Talent.Draconic],tn=[u.Talent.Elemental,u.Talent.Earth,u.Talent.Ice,u.Talent.Lightning],rn=[u.Talent.Elemental,u.Talent.Earth,u.Talent.Ice],nn=[u.Talent.Elemental,u.Talent.Earth,u.Talent.Lightning],an=[u.Talent.Elemental,u.Talent.Ice],on=[u.Talent.Elemental,u.Talent.Ice,u.Talent.Lightning],Ve=[u.Talent.Light],Je=[u.Talent.Shadow],sn=[...M([u.Class.Assassin]),...A(u.Hero.Arakni)],ln=[...M([u.Class.Ranger]),...A(u.Hero.Azalea)],cn=[...M([u.Class.Ninja]),...A(u.Hero.Benji)],un=[...M([u.Class.Warrior],Ve),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...A(u.Hero.Boltyn)],pn=[...M([u.Class.Guardian]),...A(u.Hero.Bravo)],dn=[...M([u.Class.Guardian]),...A(u.Hero.Brevant)],fn=[...M([u.Class.Runeblade],nn),...A(u.Hero.Briar)],hn=[...M([u.Class.Runeblade],Je),...A(u.Hero.Chane)],gn=[...M([u.Class.Mechanologist]),...A(u.Hero.Dash)],Ye=[...M([u.Class.Mechanologist]),...A(u.Hero.DataDoll)],nr=[...M([u.Class.Warrior]),...A(u.Hero.Dorinthea)],mn=[...M([u.Class.Illusionist],Te),...A(u.Hero.Dromai,[u.Hero.Fai])],yn=[...M([u.Class.Warrior,u.Class.Wizard],Te),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[u.Type.Action,u.Type.AttackReaction,u.Type.DefenseReaction,u.Type.Instant,u.Type.Mentor,u.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...A(u.Hero.Emperor)],vn=[...M([u.Class.Ninja],Te),...A(u.Hero.Fai,[u.Hero.Dromai])],ar=[...M([u.Class.Merchant]),...A(u.Hero.GenisWotchuneed)],bn=[...M([u.Class.Ninja]),...A(u.Hero.Ira)],or=[...M([u.Class.Wizard],an),...A(u.Hero.Iyslander)],Mn=[...M([u.Class.Wizard])],An=[...M([u.Class.Warrior]),...A(u.Hero.Kassai)],Cn=[...M([u.Class.Ninja]),...A(u.Hero.Katsu)],Fn=[...M([u.Class.Merchant]),...A(u.Hero.Kavdaen)],kn=[...M([u.Class.Brute]),...A(u.Hero.Kayo)],Tn=[...M([u.Class.Brute],Je),...A(u.Hero.Levia)],xn=[...M([u.Class.Ranger],on),...A(u.Hero.Lexi)],Sn=[...M([u.Class.Mechanologist]),...A(u.Hero.Maxx)],Ln=[...M([u.Class.Bard]),...A(u.Hero.Melody)],Pn=[...M([u.Class.Guardian],rn),...A(u.Hero.Oldhim)],wn=[...M([u.Class.Illusionist],Ve),...A(u.Hero.Prism)],Bn=[...M([u.Class.Brute]),...A(u.Hero.Rhinar)],Rn=[...M([u.Class.Ranger]),...A(u.Hero.Riptide)],In=[...M([u.Class.Merchant]),...A(u.Hero.Ruudi)],_n=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],En=[...M([u.Class.Guardian],tn),...A(u.Hero.Bravo)],On=[...M([u.Class.Adjudicator],Te),...A(u.Hero.Taipanis)],Dn=[...M([]),...A(u.Hero.Taylor)],sr=[...M([u.Class.Mechanologist]),...A(u.Hero.ProfessorTeklovossen)],Nn=[...M([u.Class.Mechanologist]),...A(u.Hero.Teklovossen)],zn=[...M([u.Class.Adjudicator],Ve),...A(u.Hero.Theryon)],$n=[...M([u.Class.Assassin]),...A(u.Hero.Uzuri)],Hn=[...M([u.Class.Guardian]),...A(u.Hero.Valda)],jn=[...M([u.Class.Runeblade]),...A(u.Hero.Viserai)],Wn=[...M([u.Class.Runeblade],Je),...A(u.Hero.Vynnset)],Gn=[...M([u.Class.Bard]),...A(u.Hero.Yorick)],Kn=[...M([u.Class.Guardian]),...A(u.Hero.Yoji)],Un=[{filterToPropertyMapping:{property:"restrictedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],lr=[{filterToPropertyMapping:{property:"restrictedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Yn=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Me=[{filterToPropertyMapping:{property:"restrictedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],ae=[{filterToPropertyMapping:{property:"restrictedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],Qn=[{filterToPropertyMapping:{property:"restrictedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Qe=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],le={blitz:Un,"blitz ll":lr,"blitz living legend":lr,clash:Yn,cc:Me,classic:Me,"classic constructed":Me,ll:ae,"living legend":ae,"cc ll":ae,"ll cc":ae,"classic constructed ll":ae,"classic constructed living legend":ae,constructed:Me,commoner:Qn,upf:Qe,ultimate:Qe,"ultimate pit fight":Qe,arakni:sn,azalea:ln,benji:cn,boltyn:un,bravo:pn,brevant:dn,briar:fn,chane:hn,dash:gn,data:Ye,"data doll":Ye,datadoll:Ye,dori:nr,dorinthea:nr,dromai:mn,emperor:yn,fai:vn,genis:ar,geniswotchuneed:ar,ira:bn,iyslander:or,islander:or,kano:Mn,kassai:An,katsu:Cn,kavdaen:Fn,kayo:kn,levia:Tn,lexi:xn,maxx:Sn,melody:Ln,oldhim:Pn,prism:wn,professor:sr,professorteklovossen:sr,rhinar:Bn,riptide:Rn,ruudi:In,shiyana:_n,starvo:En,taipanis:On,taylor:Dn,teklovossen:Nn,theryon:zn,uzuri:$n,valda:Hn,viserai:jn,vynnset:Wn,yorick:Gn,yoji:Kn},Ae=["common","rare","super rare","majestic","legendary","fabled"],Vn=(e,t,r)=>{let i=[];if(!t)i.push(...e);else for(let n of e)switch(t){case">=":let a=!1;for(let c of Ae)a?i.push(c):c===n&&(a=!0,i.push(c));break;case">":let s=!1;for(let c of Ae)s?i.push(c):c===n&&(s=!0);break;case"<=":let o=!1;for(let c of Ae.slice().reverse())o?i.push(c):c===n&&(o=!0,i.push(c));break;case"<":let l=!1;for(let c of Ae.slice().reverse())l?i.push(c):c===n&&(l=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:r}},Jn=(e,t)=>{let r=[];for(let i of e)if(le[i]){let n=le[i];for(let a of n){let s=fe({},a);t&&!a.filterToPropertyMapping.isString&&(s.excluded=!a.excluded),r.push(s)}}return r},Xe=(e,t,r,i)=>{let n=[];return ta(t)?n.push(...Jn(r,e)):ia(t)&&n.push(Vn(r,i,e)),n},oe=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:ke,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}],H=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:ke,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}],Ce=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:ke},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],V=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:ke},{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}],Fe=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(u.Talent).map(e=>e.toLowerCase())}],Xn={"!co":oe,"-co":oe,"!cost":oe,"-cost":oe,"!color":oe,"-color":oe,"!b":H,"-b":H,"!block":H,"-block":H,"!d":H,"-d":H,"!def":H,"-def":H,"!defense":H,"-defense":H,"!pitch":Ce,"-pitch":Ce,"!p":Ce,"-p":Ce,"!attack":V,"-attack":V,"!power":V,"-power":V,"!pwr":V,"-pwr":V,"!pow":V,"-pow":V,"!talents":Fe,"-talents":Fe,"!tal":Fe,"-tal":Fe},Ze=e=>{let t=[],r=Xn[e];return r&&t.push(...r),t},Zn=(e,t)=>[...le[e.toLowerCase()],...t?le[t.toLowerCase()]:[]],qn=e=>{var t;return((t=le[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},ea=["l","legal","hero"],ta=e=>ea.includes(e),ra=["r","rarity"],ia=e=>ra.includes(e);var qe={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=[">=",">","<=","<"],wr=["!","-"],et={property:"artists",isArray:!0,partialMatch:!0},na={property:"n/a"},cr={property:"classes",isArray:!0,partialMatch:!0},ur={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ce={property:"defense",specialProperty:"specialDefense",isNumber:!0},pr={nestedProperty:"foiling",property:"printings",isArray:!0},dr={property:"fusions",isArray:!0},fr={property:"intellect",isNumber:!0},hr={property:"keywords",isArray:!0,partialMatch:!0},tt={property:"n/a",isMeta:!0},gr={property:"life",specialProperty:"specialLife",isNumber:!0},mr={property:"name",isString:!0},rt={property:"pitch",isNumber:!0},xe={property:"power",specialProperty:"specialPower",isNumber:!0},yr={property:"n/a",isMeta:!0},aa={property:"n/a"},oa={property:"n/a"},vr={property:"restrictedFormats",isArray:!0,partialMatch:!0},br={property:"sets",isArray:!0,partialMatch:!0},Se={property:"specializations",isArray:!0,partialMatch:!0},Mr={property:"subtypes",isArray:!0},Ar={property:"types",isArray:!0},Cr={property:"talents",isArray:!0},sa={property:"functionalText",isString:!0,partialMatch:!0},la={property:"typeText",isString:!0,partialMatch:!0},Le={nestedProperty:"treatment",property:"printings",isArray:!0},Pe={a:et,artist:et,art:et,attack:xe,b:ce,block:ce,c:cr,class:cr,chain:na,co:ur,cost:ur,color:rt,d:ce,def:ce,defense:ce,f:dr,fusion:dr,foil:pr,foiling:pr,i:fr,intellect:fr,k:hr,keyword:hr,l:tt,legal:tt,hero:tt,li:gr,life:gr,n:mr,name:mr,p:rt,pitch:rt,pwr:xe,pow:xe,power:xe,r:yr,rarity:yr,referencedby:aa,references:oa,rf:vr,restricted:vr,s:br,set:br,sp:Se,spec:Se,specialization:Se,specializations:Se,st:Mr,subtype:Mr,t:Ar,type:Ar,tal:Cr,talent:Cr,text:sa,treat:Le,treatment:Le,var:Le,variation:Le,x:la},ca=[{text:C.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:C.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(L,"")}],ua=e=>{var n;let t=[],r=e.trim().toLowerCase();for(let{text:a,override:s}of ca)r.includes(a)&&(r=r.replace(a,s));if((n=be(r))==null?void 0:n.card)t.push(r);else{let a=r.split(/[ ]+/),s="",o=0;for(let l of a)o===2&&(t.push(s.trim().replaceAll('"',"")),s="",o=0),o<2&&l.split('"').length===2?(s+=" "+l,o++):o===0&&s===""?t.push(l):o===1&&(s+=" "+l);o===2&&(t.push(s.trim().replaceAll('"',"")),s="",o=0)}return t},pa=[C.Hero.Emperor,C.Hero.Prism,C.Hero.Shiyana,C.Hero.Taylor],nt=(e,t)=>{var p;let r=ua(e),i=[];for(let h of r){let d=qe[h];d?i.push(...d):i.push(h)}let n=[],a=[],s=[],o=[],l=[],c={isClash:!1,heroes:[]};for(let h of i)if(Ma(h)){let[d,m]=h.split(":"),{modifier:f,values:g,isAnd:v,isOr:k}=va(m),{filterKey:y,excluded:x,isMeta:T}=ba(d);if(T){if(["rarity","r"].includes(y)&&(g=ya(g)),["legal","l","hero"].includes(y)){for(let F of pa)m.includes(F.toLowerCase())&&(c.heroes.includes(F)||c.heroes.push(F));m.includes("clash")&&(c.isClash=!0)}n.push(...Xe(x,y,g,f))}else{if(["chain"].includes(y)){let F=B=>B.name.toLowerCase().replaceAll(L,""),S=g.map(B=>at(B,t)).filter(B=>!!B).map(F),w=new Set(S);y="name",k=!0;let N=20,R=0,W=B=>{if(!B.types.includes(C.Type.Hero)){let D=F(B);w.add(D),S.includes(D)||S.push(D)}};for(let B of S){if(R>N)break;let{referencedBy:D,references:te}=we(B,t);te.forEach(W),R===0&&D.forEach(W),R++}g=Array.from(w)}else if(["referencedby","references"].includes(y)){let F=y,S=[...g].filter(w=>!!w);g=[],y="name",k=!0;for(let w of S){let{referencedBy:N,references:R}=we(w,t);["referencedby"].includes(F)?g.push(...R.map(({name:W})=>W.toLowerCase().replaceAll(L,""))):["references"].includes(F)&&g.push(...N.map(({name:W})=>W.toLowerCase().replaceAll(L,"")))}}else["foiling","foil"].includes(y)?(s=ga(g),g=s.map(F=>F.toLowerCase())):["treat","treatment","var","variation"].includes(y)?(l=ma(g),g=l.map(F=>F.toLowerCase())):["set","s"].includes(y)?(o=da(g),g=o.map(F=>F.toLowerCase().replaceAll(L,""))):["pitch","p","color"].includes(y)&&(g=ha(g));Pe[y]&&n.push({filterToPropertyMapping:Pe[y],values:g,isAnd:v,isOr:k,modifier:f,excluded:x})}}else if(h){let d=(p=be(h))==null?void 0:p.card,m=Ze(h);d?a.push(`"${d.toLowerCase().replace(L,"")}"`):m&&m.length>0?n.push(...m):a.push(h.replace(L,""))}return{appliedFilters:n,attributes:{foilings:s,releases:o,treatments:l},keywords:a,specialConditions:c}},da=e=>{let t=[];for(let r of e)t.push(...fa(r));return t},fa=e=>{let t=[],r=Object.values(C.Release).find(i=>i.toLowerCase().replaceAll(L,"")===e);if(r&&t.push(r),t.length===0){let i=C.setIdentifierToSetMappings[e];i&&t.push(i)}if(t.length===0){let i=Object.values(C.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&t.push(...i)}return t},it={blue:3,yellow:2,red:1,white:0},ha=e=>{let t=[];for(let r of e)it[r]||it[r]===0?t.push(it[r].toString()):t.push(r);return t},Fr={r:C.Foiling.R,rf:C.Foiling.R,rainbow:C.Foiling.R,c:C.Foiling.C,cf:C.Foiling.C,cold:C.Foiling.C,g:C.Foiling.G,gf:C.Foiling.G,gold:C.Foiling.G},ga=e=>{let t=[];for(let r of e)Fr[r]&&t.push(Fr[r]);return t},kr={aa:C.Treatment.AA,alt:C.Treatment.AA,"alt art":C.Treatment.AA,ab:C.Treatment.AB,"alt border":C.Treatment.AB,at:C.Treatment.AT,"alt text":C.Treatment.AT,ds:C.Treatment.DS,"double sided":C.Treatment.DS,ea:C.Treatment.EA,extended:C.Treatment.EA,"extended art":C.Treatment.EA,fa:C.Treatment.FA,full:C.Treatment.FA,"full art":C.Treatment.FA},ma=e=>{let t=[];for(let r of e)kr[r]?t.push(kr[r]):C.Treatment[r.toUpperCase()]&&t.push(C.Treatment[r.toUpperCase()]);return t},Tr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},ya=e=>{let t=[];for(let r of e)Tr[r]?t.push(Tr[r]):t.push(r);return t},va=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("+"))):Sr(a)?(i=!0,t.push(...a.trim().split(","))):t.push(a.trim())}else xr(e)?(r=!0,t.push(...e.trim().split("+"))):Sr(e)?(i=!0,t.push(...e.trim().split(","))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"")):t.push(e.trim());return{modifier:n,values:t,isAnd:r,isOr:i}},ba=e=>{let t=Aa(e);if(t){let[,r]=e.split(t);return{excluded:!0,filterKey:r,isMeta:Lr(r)}}else return{excluded:!1,filterKey:e,isMeta:Lr(e)}},Ma=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Sr=e=>e.indexOf(",")>=0,Lr=e=>{var t;return!!((t=Pe[e])!=null&&t.isMeta)},Aa=e=>{var t;return(t=wr.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var I=X(Z()),Br={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:[{identifier:"FNG000",image:"FNG000",set:I.Release.Promos},{identifier:"FNG000",image:"FNG000_Marvel",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:Br.name.toLowerCase(),card:Br}];var st=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=nt(t,this.cards),l=s.join(" "),c=r?Rr.filter(f=>f.keyword===l):[];if(c.length>0?i=c.map(({card:f})=>f):s.length?i=this.fuse.search(l).map(f=>f.item):i=[...this.cards],n.length&&(i=i.filter(f=>f&&_r(f,n,o)),n.some(({excluded:f,values:g})=>!f&&g.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(f=>!f.young)),n.some(({excluded:f,values:g})=>!f&&(g.includes(P.Format.Blitz.toLowerCase())||g.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(f=>{let{types:g,young:v}=f;return!(g.includes(P.Type.Hero)&&!v)}))),s.length===0){let f="";if(a.releases.length===1)try{let g=a.releases[0];f=P.setToSetIdentifierMappings[g][0].toUpperCase()}catch(g){console.error("Error getting set identifier from search",g)}f?i.sort((g,v)=>{var x,T;let k=(x=g.setIdentifiers.find(F=>F.includes(f)))==null?void 0:x.replace(f,""),y=(T=v.setIdentifiers.find(F=>F.includes(f)))==null?void 0:T.replace(f,"");return k&&y?k.localeCompare(y):-1}):i.sort((g,v)=>g.name===v.name?`${g.pitch}`.localeCompare(`${v.pitch}`):g.name.localeCompare(v.name))}let p,{foilings:h,releases:d,treatments:m}=a;return(h.length>0||d.length>0||m.length>0)&&(p=i.map(f=>{let g=f.printings.filter(v=>{let k=h.length===0||h.includes(v.foiling),y=d.length===0||d.includes(v.set),x=m.length===0||m.includes(v.treatment);return!!v.image&&k&&y&&x});return fe({matchingPrintings:g},f)})),{appliedFilters:n,attributes:a,keywords:s,searchResults:p||i}};let r={getFn:(i,n)=>{let a=ot.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:.1,useExtendedSearch:!0};this.cards=[...t],this.fuse=new ot.default([...t],r)}},Ir=st,_r=(e,t,r)=>{let i=!0;for(let n of t){let{isNumber:a,isString:s,isArray:o,isBoolean:l,property:c}=n.filterToPropertyMapping;if((a&&!Ca(e,n)||s&&!Fa(e,n)||o&&!ka(e,n)||l&&!Ta(e,n))&&(i=!1),r.isClash&&["rarities","restrictedFormats"].includes(c)){let f=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(x=>e.rarities.includes(x)),g=!1;for(let{cardIdentifiers:x,heroes:T}of ct)for(let F of r.heroes)T.includes(F)&&x.includes(e.cardIdentifier)&&(g=!0);let v=!!e.specializations&&e.specializations.length>0||g,k=[P.Type.Mentor,P.Type.Weapon].some(x=>e.types.includes(x)),y=ir.includes(e.name);!i&&!y&&(v||k)&&f&&(i=!0),y&&(i=!1)}!i&&r.heroes.includes(P.Hero.Shiyana)&&["classes"].includes(c)&&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},Ca=(e,t)=>{var r;if(Be(t,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=t,o=lt(e,t);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let l=i==null?void 0:i.some(d=>o>=parseInt(d));return a?!l:l;case">":let c=i==null?void 0:i.some(d=>o>parseInt(d));return a?!c:c;case"<=":let p=i==null?void 0:i.some(d=>o<=parseInt(d));return a?!p:p;case"<":let h=i==null?void 0:i.some(d=>o<parseInt(d));return a?!h:h;default:return!1}else{let l=i==null?void 0:i.some(c=>o===parseInt(c));return a?!l:l}else{let l=(r=Sa(e,t))==null?void 0:r.toLowerCase(),c=s?i==null?void 0:i.some(p=>l==null?void 0:l.includes(p)):i==null?void 0:i.some(p=>l===p);return a?!c:c}}else return!0},Fa=(e,t)=>{var r;if(Be(t,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:s}}=t,o=(r=lt(e,t))==null?void 0:r.replaceAll(L,"");if(s){let l=n?i==null?void 0:i.every(c=>o==null?void 0:o.toLowerCase().includes(c)):i==null?void 0:i.some(c=>o==null?void 0:o.toLowerCase().includes(c));return a?!l:l}else{let l=n?i==null?void 0:i.every(c=>(o==null?void 0:o.toLowerCase())===c):i==null?void 0:i.some(c=>(o==null?void 0:o.toLowerCase())===c);return a?!l:l}}else return!0},ka=(e,t)=>{if(Be(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,s=xa(e,t).map(o=>o==null?void 0:o.replaceAll(L,""));if(a){let o=i?r.every(c=>s==null?void 0:s.some(p=>p==null?void 0:p.toLowerCase().includes(c))):r.some(c=>s==null?void 0:s.some(p=>p==null?void 0:p.toLowerCase().includes(c))),l=s.length===0;return n?!o||l:o}else{let o=i?r.every(l=>s==null?void 0:s.some(c=>(c==null?void 0:c.toLowerCase())===l)):r.some(l=>s==null?void 0:s.some(c=>(c==null?void 0:c.toLowerCase())===l));return n?!o:o}}else return!0},Ta=(e,t)=>{if(Be(t,e)){let{excluded:r}=t,i=lt(e,t);return r?!i:i}else return!0},lt=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.property]},xa=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},Sa=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.specialProperty]},Be=({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 ut=X(Z()),ct=[{heroes:[ut.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[ut.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 at=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(L,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(L,"").includes(e))),r};var j=X(Z()),La=e=>{let t=e.filter(o=>o.types.includes(j.Type.Hero)).sort((o,l)=>o.name.localeCompare(l.name)),r=t.filter(o=>!o.young&&!o.classes.includes(j.Class.Adjudicator)),i=t.filter(o=>{let l=o.rarities.some(p=>p!==j.Rarity.Promo),c=o.sets.some(p=>p!==j.Release.Promos);return l||c}),n=t.filter(o=>{let l=o.rarities.every(p=>p===j.Rarity.Promo),c=o.sets.every(p=>p===j.Release.Promos);return l&&c}),a=t.filter(o=>o.young),s=a.filter(({hero:o})=>!r.find(l=>l.hero===o));return{all:t,adult:r,nonPromo:i,promoOnly:n,young:a,youngOnly:s}};var Pa={"Dawnblade, Resplendent":"Dawnblade"},Er=e=>Pa[e.name]||e.name,Or=e=>{var t;return(t=e.functionalText)==null?void 0:t.replaceAll(e.name,"")},we=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(L,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(L,"").includes(e))),Dr(r,t)},Dr=(e,t)=>{let r=[],i=[],n=[];if(e){let a=[],s=[],o=Er(e);for(let l of t){let c=Er(l),p=o===c,h=e.pitch!==l.pitch;if(p&&h)r.push(l);else if(!p){let d=Or(l),m=d==null?void 0:d.includes(o),f=Or(e),g=f==null?void 0:f.includes(c);m&&a.push(l),g&&s.push(l)}}for(let l of a)i.push(l);for(let l of s){let c=l.name;o!==c&&!s.some(p=>{let h=p.name;return h!==c&&h.includes(c)})&&n.push(l)}}return{otherPitches:r,referencedBy:i,references:n}};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,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": "0.0.
|
|
4
|
+
"version": "0.0.24",
|
|
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 && npm test"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@flesh-and-blood/types": "^0.0.
|
|
15
|
+
"@flesh-and-blood/types": "^0.0.24",
|
|
16
16
|
"fuse.js": "^6.6.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@flesh-and-blood/cards": "^0.0.
|
|
19
|
+
"@flesh-and-blood/cards": "^0.0.24",
|
|
20
20
|
"@types/jest": "^29.5.4",
|
|
21
21
|
"@types/node": "^20.6.0",
|
|
22
22
|
"esbuild": "^0.19.3",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"FAB",
|
|
47
47
|
"FABTCG"
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2cfbdd35a683e3f0bd8d7b2fd545a552c36d81a8"
|
|
50
50
|
}
|