@flesh-and-blood/search 1.0.13 → 1.0.15

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 +2 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var $r=Object.create;var le=Object.defineProperty;var Wr=Object.getOwnPropertyDescriptor;var jr=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,Gr=Object.getPrototypeOf,vt=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var yt=(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={}))vt.call(t,r)&&yt(e,r,t[r]);if(mt)for(var r of mt(t))Kr.call(t,r)&&yt(e,r,t[r]);return e};var bt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ur=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},Mt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jr(t))!vt.call(e,n)&&n!==r&&le(e,n,{get:()=>t[n],enumerable:!(i=Wr(t,n))||i.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?$r(Gr(e)):{},Mt(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),Yr=e=>Mt(le({},"__esModule",{value:!0}),e);var Q=bt((Da,Ht)=>{var fe=Object.defineProperty,Qr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertyNames,At=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Ct=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qr=(e,t)=>{for(var r in t||(t={}))Ft.call(t,r)&&Ct(e,r,t[r]);if(At)for(var r of At(t))Zr.call(t,r)&&Ct(e,r,t[r]);return e},ei=(e,t)=>Qr(e,Jr(t)),ti=(e,t)=>{for(var r in t)fe(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))!Ft.call(e,n)&&n!==r&&fe(e,n,{get:()=>t[n],enumerable:!(i=Vr(t,n))||i.enumerable});return e},ii=e=>ri(fe({},"__esModule",{value:!0}),e),kt={};ti(kt,{Class:()=>St,Foiling:()=>Tt,Format:()=>Lt,Fusion:()=>Pt,Hero:()=>Ot,Keyword:()=>Dt,Rarity:()=>wt,Release:()=>Bt,ReleaseEdition:()=>It,Subtype:()=>Et,Talent:()=>Rt,Treatment:()=>xt,Type:()=>_t,fullSetIdentifiers:()=>Nt,setIdentifierToSetMappings:()=>zt,setToSetIdentifierMappings:()=>ni});Ht.exports=ii(kt);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||{}),St=(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))(St||{}),Lt=(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))(Lt||{}),Pt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Pt||{}),wt=(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))(wt||{}),Bt=(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))(Bt||{}),It=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(It||{}),Rt=(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))(Rt||{}),_t=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(_t||{}),Et=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Et||{}),Ot=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.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.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(Ot||{}),Dt=(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))(Dt||{}),Nt={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"},zt=ei(qr({},Nt),{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(zt)){let r=Ee[t];r?r.push(e):Ee[t]=[e]}var ni=Ee});var nr=bt((Na,ir)=>{"use strict";function $t(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?$t(Object(r),!0).forEach(function(i){Ne(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(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 Wt(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&&Wt(e.prototype,t),r&&Wt(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 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 J(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 te(e){return li(e)||ci(e)||ui(e)||pi()}function li(e){if(Array.isArray(e))return He(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 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 pi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e){return Array.isArray?Array.isArray(e):Jt(e)==="[object Array]"}var di=1/0;function hi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-di?"-0":t}function fi(e){return e==null?"":hi(e)}function $(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function gi(e){return e===!0||e===!1||mi(e)&&Jt(e)=="[object Boolean]"}function Vt(e){return De(e)==="object"}function mi(e){return Vt(e)&&e!==null}function N(e){return e!=null}function Oe(e){return!e.trim().length}function Jt(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")},jt=Object.prototype.hasOwnProperty,Ci=function(){function e(t){var r=this;E(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=Xt(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 Xt(e){var t=null,r=null,i=null,n=1,a=null;if($(e)||G(e))i=e,t=Gt(e),r=$e(e);else{if(!jt.call(e,"name"))throw new Error(Mi("name"));var s=e.name;if(i=s,jt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ai(s));t=Gt(s),r=$e(s),a=e.getFn}return{path:t,id:r,weight:n,src:i,getFn:a}}function Gt(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(N(s))if(!o[l])r.push(s);else{var u=o[l],p=s[u];if(!N(p))return;if(l===o.length-1&&($(p)||Qt(p)||gi(p)))r.push(fi(p));else if(G(p)){i=!0;for(var g=0,d=p.length;g<d;g+=1)a(p[g],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=ne(ne(ne(ne({},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 Ue=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;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 l=s.getFn?s.getFn(r):n.getFn(r,s.path);if(N(l)){if(G(l))(function(){for(var p=[],g=[{nestedArrIndex:-1,value:l}];g.length;){var d=g.pop(),y=d.nestedArrIndex,m=d.value;if(N(m))if($(m)&&!Oe(m)){var f={v:m,i:y,n:n.norm.get(m)};p.push(f)}else G(m)&&m.forEach(function(h,v){g.push({nestedArrIndex:v,value:h})})}a.$[o]=p})();else if($(l)&&!Oe(l)){var u={v:l,n:n.norm.get(l)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function Zt(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 Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Xt)),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 Ue({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,u=l===void 0?b.distance:l,p=t.ignoreLocation,g=p===void 0?b.ignoreLocation:p,d=i/e.length;if(g)return d;var y=Math.abs(o-a);return u?d+y/u:y?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 ee=32;function Ii(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,u=l===void 0?b.threshold:l,p=i.findAllMatches,g=p===void 0?b.findAllMatches:p,d=i.minMatchCharLength,y=d===void 0?b.minMatchCharLength:d,m=i.includeMatches,f=m===void 0?b.includeMatches:m,h=i.ignoreLocation,v=h===void 0?b.ignoreLocation:h;if(t.length>ee)throw new Error(bi(ee));for(var A=t.length,C=e.length,x=Math.max(0,Math.min(a,C)),L=u,T=x,w=y>1||f,R=w?Array(C):[],_;(_=e.indexOf(t,T))>-1;){var K=ge(t,{currentLocation:_,expectedLocation:x,distance:o,ignoreLocation:v});if(L=Math.min(K,L),T=_+A,w)for(var D=0;D<A;)R[_+D]=1,D+=1}T=-1;for(var B=[],z=1,re=A+C,Nr=1<<A-1,q=0;q<A;q+=1){for(var pe=0,U=re;pe<U;){var zr=ge(t,{errors:q,currentLocation:x+U,expectedLocation:x,distance:o,ignoreLocation:v});zr<=L?pe=U:re=U,U=Math.floor((re-pe)/2+pe)}re=U;var ht=Math.max(1,x-U+1),Re=g?C:Math.min(x+U,C)+A,ie=Array(Re+2);ie[Re+1]=(1<<q)-1;for(var H=Re;H>=ht;H-=1){var de=H-1,ft=r[e.charAt(de)];if(w&&(R[de]=+!!ft),ie[H]=(ie[H+1]<<1|1)&ft,q&&(ie[H]|=(B[H+1]|B[H])<<1|1|B[H+1]),ie[H]&Nr&&(z=ge(t,{errors:q,currentLocation:de,expectedLocation:x,distance:o,ignoreLocation:v}),z<=L)){if(L=z,T=de,T<=x)break;ht=Math.max(1,2*x-T)}}var Hr=ge(t,{errors:q+1,currentLocation:x,expectedLocation:x,distance:o,ignoreLocation:v});if(Hr>L)break;B=ie}var _e={isMatch:T>=0,score:Math.max(.001,z)};if(w){var gt=Bi(R,y);gt.length?f&&(_e.indices=gt):_e.isMatch=!1}return _e}function Ri(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 qt=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,u=l===void 0?b.distance:l,p=i.includeMatches,g=p===void 0?b.includeMatches:p,d=i.findAllMatches,y=d===void 0?b.findAllMatches:d,m=i.minMatchCharLength,f=m===void 0?b.minMatchCharLength:m,h=i.isCaseSensitive,v=h===void 0?b.isCaseSensitive:h,A=i.ignoreLocation,C=A===void 0?b.ignoreLocation:A;if(E(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:g,findAllMatches:y,minMatchCharLength:f,isCaseSensitive:v,ignoreLocation:C},this.pattern=v?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var x=function(D,B){r.chunks.push({pattern:D,alphabet:Ri(D),startIndex:B})},L=this.pattern.length;if(L>ee){for(var T=0,w=L%ee,R=L-w;T<R;)x(this.pattern.substr(T,ee),T),T+=ee;if(w){var _=L-ee;x(this.pattern.substr(_),_)}}else x(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,l=o.location,u=o.distance,p=o.threshold,g=o.findAllMatches,d=o.minMatchCharLength,y=o.ignoreLocation,m=[],f=0,h=!1;this.chunks.forEach(function(A){var C=A.pattern,x=A.alphabet,L=A.startIndex,T=Ii(r,C,x,{location:l+L,distance:u,threshold:p,findAllMatches:g,minMatchCharLength:d,includeMatches:a,ignoreLocation:y}),w=T.isMatch,R=T.score,_=T.indices;w&&(h=!0),f+=R,w&&_&&(m=[].concat(te(m),te(_)))});var v={isMatch:h,score:h?f/this.chunks.length:1};return h&&a&&(v.indices=m),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 Kt(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return Kt(r,this.singleRegex)}}]),e}();function Kt(e,t){var r=e.match(t);return r?r[1]:null}var _i=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),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.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),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.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),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,n.length-1]}}}],[{key:"type",get:function(){return"inverse-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.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),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:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),r}(X),er=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?b.location:s,l=a.threshold,u=l===void 0?b.threshold:l,p=a.distance,g=p===void 0?b.distance:p,d=a.includeMatches,y=d===void 0?b.includeMatches:d,m=a.findAllMatches,f=m===void 0?b.findAllMatches:m,h=a.minMatchCharLength,v=h===void 0?b.minMatchCharLength:h,A=a.isCaseSensitive,C=A===void 0?b.isCaseSensitive:A,x=a.ignoreLocation,L=x===void 0?b.ignoreLocation:x;return E(this,r),n=t.call(this,i),n._bitapSearch=new qt(i,{location:o,threshold:u,distance:g,includeMatches:y,findAllMatches:f,minMatchCharLength:v,isCaseSensitive:C,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),tr=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=[],l=this.pattern.length;(s=n.indexOf(this.pattern,a))>-1;)a=s+l,o.push([s,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(X),We=[_i,tr,Oi,Di,zi,Ni,Ei,er],Ut=We.length,Hi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$i="|";function Wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split($i).map(function(r){for(var i=r.trim().split(Hi).filter(function(m){return m&&!!m.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],l=!1,u=-1;!l&&++u<Ut;){var p=We[u],g=p.isMultiMatch(o);g&&(n.push(new p(g,t)),l=!0)}if(!l)for(u=-1;++u<Ut;){var d=We[u],y=d.isSingleMatch(o);if(y){n.push(new d(y,t));break}}}return n})}var ji=new Set([er.type,tr.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,u=r.ignoreLocation,p=u===void 0?b.ignoreLocation:u,g=r.findAllMatches,d=g===void 0?b.findAllMatches:g,y=r.location,m=y===void 0?b.location:y,f=r.threshold,h=f===void 0?b.threshold:f,v=r.distance,A=v===void 0?b.distance:v;E(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:l,findAllMatches:d,ignoreLocation:p,location:m,threshold:h,distance:A},this.pattern=n?t:t.toLowerCase(),this.query=Wi(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,l=[],u=0,p=0,g=i.length;p<g;p+=1){var d=i[p];l.length=0,o=0;for(var y=0,m=d.length;y<m;y+=1){var f=d[y],h=f.search(r),v=h.isMatch,A=h.indices,C=h.score;if(v){if(o+=1,u+=C,a){var x=f.constructor.type;ji.has(x)?l=[].concat(te(l),te(A)):l.push(A)}}else{u=0,o=0,l.length=0;break}}if(o){var L={isMatch:!0,score:u/o};return a&&(L.indices=l),L}}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 qt(e,t)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(t){return!!(t[ve.AND]||t[ve.OR])},Ui=function(t){return!!t[Ge.PATH]},Yi=function(t){return!G(t)&&Vt(t)&&!Ke(t)},Yt=function(t){return Ne({},ve.AND,Object.keys(t).map(function(r){return Ne({},r,t[r])}))};function rr(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),u=Ui(o);if(!u&&l.length>1&&!Ke(o))return s(Yt(o));if(Yi(o)){var p=u?o[Ge.PATH]:l[0],g=u?o[Ge.PATTERN]:o[p];if(!$(g))throw new Error(vi(p));var d={keyId:$e(p),pattern:g};return n&&(d.searcher=je(g,t)),d}var y={children:[],operator:l[0]};return l.forEach(function(m){var f=o[m];G(f)&&f.forEach(function(h){y.children.push(s(h))})}),y};return Ke(e)||(e=Yt(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,u=s.score,p=o?o.weight:null;a*=Math.pow(u===0&&p?Number.EPSILON:u,(p||1)*(i?1:l))}),n.score=a})}function Vi(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 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 u=l.idx,p={item:t[u],refIndex:u};return o.length&&o.forEach(function(g){g(l,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({},b),r),this.options.useExtendedSearch,this._keyStore=new Ci(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(yi);this._myIndex=i||Zt(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,l=s.includeScore,u=s.shouldSort,p=s.sortFn,g=s.ignoreFieldNorm,d=$(r)?$(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Qi(d,{ignoreFieldNorm:g}),u&&d.sort(p),Qt(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,u=s.n;if(N(o)){var p=i.searchIn(o),g=p.isMatch,d=p.score,y=p.indices;g&&a.push({item:o,idx:l,matches:[{score:d,value:o,norm:u,indices:y}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=rr(r,this.options),a=function u(p,g,d){if(!p.children){var y=p.keyId,m=p.searcher,f=i._findMatches({key:i._keyStore.get(y),value:i._myIndex.getValueForItemAtKeyId(g,y),searcher:m});return f&&f.length?[{idx:d,item:g,matches:f}]:[]}for(var h=[],v=0,A=p.children.length;v<A;v+=1){var C=p.children[v],x=u(C,g,d);if(x.length)h.push.apply(h,te(x));else if(p.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},l=[];return s.forEach(function(u){var p=u.$,g=u.i;if(N(p)){var d=a(n,p,g);d.length&&(o[g]||(o[g]={idx:g,item:p,matches:[]},l.push(o[g])),d.forEach(function(y){var m,f=y.matches;(m=o[g].matches).push.apply(m,te(f))}))}}),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(u){var p=u.$,g=u.i;if(N(p)){var d=[];s.forEach(function(y,m){d.push.apply(d,te(i._findMatches({key:y,value:p[m],searcher:n})))}),d.length&&l.push({idx:g,item:p,matches:d})}}),l}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.searcher;if(!N(n))return[];var s=[];if(G(n))n.forEach(function(y){var m=y.v,f=y.i,h=y.n;if(N(m)){var v=a.searchIn(m),A=v.isMatch,C=v.score,x=v.indices;A&&s.push({score:C,key:i,value:m,idx:f,norm:h,indices:x})}});else{var o=n.v,l=n.n,u=a.searchIn(o),p=u.isMatch,g=u.score,d=u.indices;p&&s.push({score:g,key:i,value:o,norm:l,indices:d})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=Zt;ae.parseIndex=wi;ae.config=b;ae.parseQuery=rr;Ki(Gi);var Zi=ae;ir.exports=Zi});var Ea={};Ur(Ea,{PUNCTUATION:()=>S,abbreviations:()=>Ve,availableExclusions:()=>wr,availableModifiers:()=>Pr,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Qe,default:()=>Rr,filterCard:()=>_r,filtersToCardPropertyMappings:()=>we,getAbbreviation:()=>Me,getAbbreviationByCard:()=>qi,getCardByName:()=>lt,getDeckFilters:()=>ta,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>Ba,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>dt,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>_a,heroHasFilters:()=>ra,shorthands:()=>rt});module.exports=Yr(Ea);var P=Y(Q()),ct=Y(nr());var be=Y(Q()),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 S=/[!"#$%&'’()*+,-./:;<=>?@[\]^_`{|}~]/g;var k=Y(Q());var Me=e=>Ve.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),qi=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 c=Y(Q());var Te=Array.from(Array(50).keys()).map(e=>`${e}`),M=(e,t=[])=>{let r=[...e,c.Class.Generic];return t.length>0&&r.push(c.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},en(t)]},F=(e,t=[])=>{let r=Object.values(c.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(c.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},xe=[c.Talent.Draconic],tn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Ice,c.Talent.Lightning],rn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Ice],nn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Lightning],an=[c.Talent.Elemental,c.Talent.Ice],on=[c.Talent.Elemental,c.Talent.Ice,c.Talent.Lightning],Ze=[c.Talent.Light],qe=[c.Talent.Shadow],sn=[...M([c.Class.Assassin]),...F(c.Hero.Arakni)],ln=[...M([c.Class.Ranger]),...F(c.Hero.Azalea)],cn=[...M([c.Class.Ninja]),...F(c.Hero.Benji)],un=[...M([c.Class.Guardian]),...F(c.Hero.Betsy)],pn=[...M([c.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...F(c.Hero.Boltyn)],dn=[...M([c.Class.Guardian]),...F(c.Hero.Bravo)],hn=[...M([c.Class.Guardian]),...F(c.Hero.Brevant)],fn=[...M([c.Class.Runeblade],nn),...F(c.Hero.Briar)],gn=[...M([c.Class.Runeblade],qe),...F(c.Hero.Chane)],mn=[...M([c.Class.Mechanologist]),...F(c.Hero.Dash)],Je=[...M([c.Class.Mechanologist]),...F(c.Hero.DataDoll)],ar=[...M([c.Class.Warrior]),...F(c.Hero.Dorinthea)],yn=[...M([c.Class.Illusionist],xe),...F(c.Hero.Dromai,[c.Hero.Fai])],vn=[...M([c.Class.Warrior,c.Class.Wizard],xe),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[c.Type.Action,c.Type.AttackReaction,c.Type.DefenseReaction,c.Type.Instant,c.Type.Mentor,c.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...F(c.Hero.Emperor)],bn=[...M([c.Class.Ninja],xe),...F(c.Hero.Fai,[c.Hero.Dromai])],or=[...M([c.Class.Merchant]),...F(c.Hero.GenisWotchuneed)],Mn=[...M([c.Class.Ninja]),...F(c.Hero.Ira)],sr=[...M([c.Class.Wizard],an),...F(c.Hero.Iyslander)],An=[...M([c.Class.Wizard])],Cn=[...M([c.Class.Warrior]),...F(c.Hero.Kassai)],Fn=[...M([c.Class.Ninja]),...F(c.Hero.Katsu)],kn=[...M([c.Class.Merchant]),...F(c.Hero.Kavdaen)],Tn=[...M([c.Class.Brute]),...F(c.Hero.Kayo)],xn=[...M([c.Class.Brute],qe),...F(c.Hero.Levia)],Sn=[...M([c.Class.Ranger],on),...F(c.Hero.Lexi)],Ln=[...M([c.Class.Mechanologist]),...F(c.Hero.Maxx)],Pn=[...M([c.Class.Bard]),...F(c.Hero.Melody)],wn=[...M([c.Class.Guardian],rn),...F(c.Hero.Oldhim)],Bn=[...M([c.Class.Warrior]),...F(c.Hero.Olympia)],In=[...M([c.Class.Illusionist],Ze),...F(c.Hero.Prism)],Rn=[...M([c.Class.Brute]),...F(c.Hero.Rhinar)],_n=[...M([c.Class.Ranger]),...F(c.Hero.Riptide)],En=[...M([c.Class.Merchant]),...F(c.Hero.Ruudi)],On=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Dn=[...M([c.Class.Merchant]),...F(c.Hero.Squizzy)],Nn=[...M([c.Class.Guardian],tn),...F(c.Hero.Bravo)],zn=[...M([c.Class.Adjudicator],xe),...F(c.Hero.Taipanis)],Hn=[...M([]),...F(c.Hero.Taylor)],$n=[...M([c.Class.Mechanologist]),...F(c.Hero.Teklovossen)],Wn=[...M([c.Class.Adjudicator],Ze),...F(c.Hero.Theryon)],jn=[...M([c.Class.Assassin]),...F(c.Hero.Uzuri)],Gn=[...M([c.Class.Guardian]),...F(c.Hero.Valda)],Kn=[...M([c.Class.Runeblade]),...F(c.Hero.Viserai)],Un=[...M([c.Class.Runeblade],qe),...F(c.Hero.Vynnset)],Yn=[...M([c.Class.Bard]),...F(c.Hero.Yorick)],Qn=[...M([c.Class.Guardian]),...F(c.Hero.Yoji)],Vn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],lr=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Jn=[{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}],Xn=[{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:Vn,"blitz ll":lr,"blitz living legend":lr,clash:Jn,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:Xn,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:sn,azalea:ln,benji:cn,betsy:un,boltyn:pn,bravo:dn,brevant:hn,briar:fn,chane:gn,dash:mn,data:Je,"data doll":Je,datadoll:Je,dori:ar,dorinthea:ar,dromai:yn,emperor:vn,fai:bn,genis:or,geniswotchuneed:or,ira:Mn,iyslander:sr,islander:sr,kano:An,kassai:Cn,katsu:Fn,kavdaen:kn,kayo:Tn,levia:xn,lexi:Sn,maxx:Ln,melody:Pn,oldhim:wn,olympia:Bn,prism:In,rhinar:Rn,riptide:_n,ruudi:En,shiyana:On,squizzy:Dn,starvo:Nn,taipanis:zn,taylor:Hn,teklovossen:$n,theryon:Wn,uzuri:jn,valda:Gn,viserai:Kn,vynnset:Un,yorick:Yn,yoji:Qn},Ce=["common","rare","super rare","majestic","legendary","fabled"],Zn=(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 l=!1;for(let u of Ce.slice().reverse())l?i.push(u):u===n&&(l=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:r}},qn=(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 na(t)?n.push(...qn(r,e)):oa(t)&&n.push(Zn(r,i,e)),n},se=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:Te,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:Te,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:Te},{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:Te},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],ke=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(c.Talent).map(e=>e.toLowerCase())}],ea={"!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=ea[e];return r&&t.push(...r),t},ta=(e,t)=>[...ce[e.toLowerCase()],...t?ce[t.toLowerCase()]:[]],ra=e=>{var t;return((t=ce[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},ia=["l","legal","hero"],na=e=>ia.includes(e),aa=["r","rarity"],oa=e=>aa.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=[">=",">","<=","<"],wr=["!","-"],it={property:"artists",isArray:!0,partialMatch:!0},sa={property:"n/a"},cr={property:"classes",isArray:!0,partialMatch:!0},ur={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},pr={nestedProperty:"foiling",property:"printings",isArray:!0},dr={property:"fusions",isArray:!0},hr={property:"intellect",isNumber:!0},fr={property:"keywords",isArray:!0,partialMatch:!0},nt={property:"n/a",isMeta:!0},gr={property:"life",specialProperty:"specialLife",isNumber:!0},mr={property:"name",isString:!0},at={property:"pitch",isNumber:!0},Se={property:"power",specialProperty:"specialPower",isNumber:!0},yr={property:"n/a",isMeta:!0},la={property:"n/a"},ca={property:"n/a"},vr={property:"restrictedFormats",isArray:!0,partialMatch:!0},br={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Mr={property:"subtypes",isArray:!0},Ar={property:"types",isArray:!0},Cr={property:"talents",isArray:!0},ua={property:"functionalText",isString:!0,partialMatch:!0},pa={property:"typeText",isString:!0,partialMatch:!0},Pe={nestedProperty:"treatment",property:"printings",isArray:!0},we={a:it,artist:it,art:it,attack:Se,b:ue,block:ue,c:cr,class:cr,chain:sa,co:ur,cost:ur,color:at,d:ue,def:ue,defense:ue,f:dr,fusion:dr,foil:pr,foiling:pr,i:hr,intellect:hr,k:fr,keyword:fr,l:nt,legal:nt,hero:nt,li:gr,life:gr,n:mr,name:mr,p:at,pitch:at,pwr:Se,pow:Se,power:Se,r:yr,rarity:yr,referencedby:la,references:ca,rf:vr,restricted:vr,s:br,set:br,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Mr,subtype:Mr,t:Ar,type:Ar,tal:Cr,talent:Cr,text:ua,treat:Pe,treatment:Pe,var:Pe,variation:Pe,x:pa},da=[{text:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(S,"")}],ha=e=>{var n;let t=[],r=e.trim().toLowerCase();for(let{text:a,override:s}of da)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 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},fa=[k.Hero.Briar,k.Hero.Emperor,k.Hero.Prism,k.Hero.Shiyana,k.Hero.Taylor],st=(e,t)=>{var g;let r=ha(e),i=[];for(let d of r){let y=rt[d];y?i.push(...y):i.push(d)}let n=[],a=[],s=[],o=[],l=[],u=[],p={isClash:!1,heroes:[]};for(let d of i)if(Fa(d)){let[y,m]=d.split(":"),{modifier:f,values:h,isAnd:v,isOr:A}=Aa(m),{filterKey:C,excluded:x,isMeta:L}=Ca(y);if(L){if(["rarity","r"].includes(C)&&(h=Ma(h)),["legal","l","hero"].includes(C)){for(let T of fa)m.includes(T.toLowerCase())&&(p.heroes.includes(T)||p.heroes.push(T));m.includes("clash")&&(p.isClash=!0)}n.push(...et(x,C,h,f))}else{if(["chain"].includes(C)){let T=B=>B.name.toLowerCase().replaceAll(S,""),w=h.map(B=>lt(B,t)).filter(B=>!!B).map(T),R=new Set(w);C="name",A=!0;let _=20,K=0,D=B=>{if(!B.types.includes(k.Type.Hero)){let z=T(B);R.add(z),w.includes(z)||w.push(z)}};for(let B of w){if(K>_)break;let{referencedBy:z,references:re}=Be(B,t);re.forEach(D),K===0&&z.forEach(D),K++}h=Array.from(R)}else if(["referencedby","references"].includes(C)){let T=C,w=[...h].filter(R=>!!R);h=[],C="name",A=!0;for(let R of w){let{referencedBy:_,references:K}=Be(R,t);["referencedby"].includes(T)?h.push(...K.map(({name:D})=>D.toLowerCase().replaceAll(S,""))):["references"].includes(T)&&h.push(..._.map(({name:D})=>D.toLowerCase().replaceAll(S,"")))}}else["art","artist"].includes(C)?a=h:["foiling","foil"].includes(C)?(o=va(h),h=o.map(T=>T.toLowerCase())):["treat","treatment","var","variation"].includes(C)?(u=ba(h),h=u.map(T=>T.toLowerCase())):["set","s"].includes(C)?(l=ga(h),h=l.map(T=>T.toLowerCase().replaceAll(S,""))):["pitch","p","color"].includes(C)&&(h=ya(h));we[C]&&n.push({filterToPropertyMapping:we[C],values:h,isAnd:v,isOr:A,modifier:f,excluded:x})}}else if(d){let y=(g=Me(d))==null?void 0:g.card,m=tt(d);y?s.push(`"${y.toLowerCase().replace(S,"")}"`):m&&m.length>0?n.push(...m):s.push(d.replace(S,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:l,treatments:u},keywords:s,specialConditions:p}},ga=e=>{let t=[];for(let r of e)t.push(...ma(r));return t},ma=e=>{let t=[],r=Object.values(k.Release).find(i=>i.toLowerCase().replaceAll(S,"")===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},ya=e=>{let t=[];for(let r of e)ot[r]||ot[r]===0?t.push(ot[r].toString()):t.push(r);return t},Fr={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},va=e=>{let t=[];for(let r of e)Fr[r]&&t.push(Fr[r]);return t},kr={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},ba=e=>{let t=[];for(let r of e)kr[r]?t.push(kr[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"},Ma=e=>{let t=[];for(let r of e)Tr[r]?t.push(Tr[r]):t.push(r);return t},Aa=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(S,"")))):Sr(a)?(i=!0,t.push(...a.trim().split(",").map(s=>s.replace(S,"")))):t.push(a.trim().replace(S,""))}else xr(e)?(r=!0,t.push(...e.trim().split("+").map(a=>a.replace(S,"")))):Sr(e)?(i=!0,t.push(...e.trim().split(",").map(a=>a.replace(S,"")))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"").replace(S,"")):t.push(e.trim().replace(S,""));return{modifier:n,values:t,isAnd:r,isOr:i}},Ca=e=>{let t=ka(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)}},Fa=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Sr=e=>e.indexOf(",")>=0,Lr=e=>{var t;return!!((t=we[e])!=null&&t.isMeta)},ka=e=>{var t;return(t=wr.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var I=Y(Q()),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:[{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"},Ir=[{keyword:Br.name.toLowerCase(),card:Br}];var ut=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(t,this.cards),l=s.join(" "),u=r?Ir.filter(f=>f.keyword===l):[];if(u.length>0?i=u.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:h})=>!f&&h.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(f=>!f.young)),n.some(({excluded:f,values:h})=>!f&&(h.includes(P.Format.Blitz.toLowerCase())||h.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(f=>{let{types:h,young:v}=f;return!(h.includes(P.Type.Hero)&&!v)}))),s.length===0){let f="";if(a.releases.length===1)try{let h=a.releases[0];f=P.setToSetIdentifierMappings[h][0].toUpperCase()}catch(h){console.error("Error getting set identifier from search",h)}f?i.sort((h,v)=>{var x,L;let A=(x=h.setIdentifiers.find(T=>T.includes(f)))==null?void 0:x.replace(f,""),C=(L=v.setIdentifiers.find(T=>T.includes(f)))==null?void 0:L.replace(f,"");return A&&C?A.localeCompare(C):-1}):i.sort((h,v)=>h.name===v.name?`${h.pitch}`.localeCompare(`${v.pitch}`):h.name.localeCompare(v.name))}else{let f=[],h=[],v=s.map(A=>A.toLowerCase().replace(S,"")).join(" ");for(let A of i)A.name.toLowerCase().replace(S,"")===v?f.push(A):h.push(A);i=[...f,...h]}let p,{artists:g,foilings:d,releases:y,treatments:m}=a;return(g.length>0||d.length>0||y.length>0||m.length>0)&&(p=i.map(f=>{let h=f.printings.filter(v=>{let A=!!v.image,C=g.length===0||g.some(w=>v.artist.replace(S,"").toLowerCase().includes(w)),x=d.length===0||d.includes(v.foiling),L=y.length===0||y.includes(v.set),T=m.length===0||m.includes(v.treatment);return A&&C&&x&&L&&T});return he({matchingPrintings:h},f)})),{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(S,"")):a.replace(S,""))},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)}},Rr=ut,_r=(e,t,r)=>{let i=!0;for(let n of t){let{isNumber:a,isString:s,isArray:o,isBoolean:l,property:u}=n.filterToPropertyMapping;if((a&&!Ta(e,n)||s&&!xa(e,n)||o&&!Sa(e,n)||l&&!La(e,n))&&(i=!1),r.isClash&&["rarities","bannedFormats"].includes(u)){let m=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(C=>e.rarities.includes(C)),f=!1;for(let{cardIdentifiers:C,heroes:x}of Qe)for(let L of r.heroes)x.includes(L)&&C.includes(e.cardIdentifier)&&(f=!0);let h=!!e.specializations&&e.specializations.length>0||f,v=[P.Type.Mentor,P.Type.Weapon].some(C=>e.types.includes(C)),A=Ye.includes(e.name);!i&&!A&&(h||v)&&m&&(i=!0),A&&(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},Ta=(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 l=i==null?void 0:i.some(d=>o>=parseInt(d));return a?!l:l;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 g=i==null?void 0:i.some(d=>o<parseInt(d));return a?!g:g;default:return!1}else{let l=i==null?void 0:i.some(u=>o===parseInt(u));return a?!l:l}else{let l=(r=wa(e,t))==null?void 0:r.toLowerCase(),u=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?!u:u}}else return!0},xa=(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(S,"");if(s){let l=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!l:l}else{let l=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!l:l}}else return!0},Sa=(e,t)=>{if(Ie(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,s=Pa(e,t).map(o=>o==null?void 0:o.replaceAll(S,""));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))),l=s.length===0;return n?!o||l:o}else{let o=i?r.every(l=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===l)):r.some(l=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===l));return n?!o:o}}else return!0},La=(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]},Pa=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},wa=(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(S,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(S,"").includes(e))),r};var j=Y(Q()),Ba=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),u=o.sets.some(p=>p!==j.Release.Promos);return l||u}),n=t.filter(o=>{let l=o.rarities.every(p=>p===j.Rarity.Promo),u=o.sets.every(p=>p===j.Release.Promos);return l&&u}),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 Dr=Y(Q());var Ia={"Dawnblade, Resplendent":"Dawnblade"},Er=e=>Ia[e.name]||e.name,Or=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(S,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(S,"").includes(e))),dt(r,t)},dt=(e,t)=>{let r=[],i=[],n=[];if(e){let a=[],s=[],o=Er(e);for(let l of t){let u=Er(l),p=o===u,g=e.pitch!==l.pitch;if(p&&g)r.push(l);else if(!p){let d=Or(l),y=d==null?void 0:d.includes(o),m=Or(e),f=m==null?void 0:m.includes(u);y&&a.push(l),f&&s.push(l)}}for(let l of a)i.push(l);for(let l of s){let u=l.name;o!==u&&!s.some(p=>{let g=p.name;return g!==u&&g.includes(u)})&&n.push(l)}}return{otherPitches:r,referencedBy:i,references:n}},Ra=["cash-in-yellow"],_a=(e,t,r)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!Ra.includes(a))){let{references:a}=dt(n,t);for(let s of a.filter(o=>{let l=o.name==="Hyper Driver",u=r===Dr.Hero.Maxx;return!l||u}))i.add(s)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,shorthands});
1
+ var $r=Object.create;var le=Object.defineProperty;var Wr=Object.getOwnPropertyDescriptor;var jr=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,Gr=Object.getPrototypeOf,vt=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var yt=(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={}))vt.call(t,r)&&yt(e,r,t[r]);if(mt)for(var r of mt(t))Kr.call(t,r)&&yt(e,r,t[r]);return e};var bt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ur=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},Mt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jr(t))!vt.call(e,n)&&n!==r&&le(e,n,{get:()=>t[n],enumerable:!(i=Wr(t,n))||i.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?$r(Gr(e)):{},Mt(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),Yr=e=>Mt(le({},"__esModule",{value:!0}),e);var Q=bt((Na,Ht)=>{var fe=Object.defineProperty,Qr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertyNames,At=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Ct=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qr=(e,t)=>{for(var r in t||(t={}))Ft.call(t,r)&&Ct(e,r,t[r]);if(At)for(var r of At(t))Zr.call(t,r)&&Ct(e,r,t[r]);return e},ei=(e,t)=>Qr(e,Jr(t)),ti=(e,t)=>{for(var r in t)fe(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))!Ft.call(e,n)&&n!==r&&fe(e,n,{get:()=>t[n],enumerable:!(i=Vr(t,n))||i.enumerable});return e},ii=e=>ri(fe({},"__esModule",{value:!0}),e),kt={};ti(kt,{Class:()=>St,Foiling:()=>Tt,Format:()=>Lt,Fusion:()=>Pt,Hero:()=>Ot,Keyword:()=>Dt,Rarity:()=>wt,Release:()=>Bt,ReleaseEdition:()=>It,Subtype:()=>Et,Talent:()=>Rt,Treatment:()=>xt,Type:()=>_t,fullSetIdentifiers:()=>Nt,setIdentifierToSetMappings:()=>zt,setToSetIdentifierMappings:()=>ni});Ht.exports=ii(kt);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||{}),St=(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))(St||{}),Lt=(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))(Lt||{}),Pt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Pt||{}),wt=(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))(wt||{}),Bt=(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))(Bt||{}),It=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(It||{}),Rt=(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))(Rt||{}),_t=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(_t||{}),Et=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Et||{}),Ot=(e=>(e.Arakni="Arakni",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Fai="Fai",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e))(Ot||{}),Dt=(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))(Dt||{}),Nt={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"},zt=ei(qr({},Nt),{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(zt)){let r=Ee[t];r?r.push(e):Ee[t]=[e]}var ni=Ee});var nr=bt((za,ir)=>{"use strict";function $t(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?$t(Object(r),!0).forEach(function(i){Ne(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(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 Wt(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&&Wt(e.prototype,t),r&&Wt(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 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 J(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 te(e){return li(e)||ci(e)||ui(e)||pi()}function li(e){if(Array.isArray(e))return He(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 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 pi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e){return Array.isArray?Array.isArray(e):Jt(e)==="[object Array]"}var di=1/0;function hi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-di?"-0":t}function fi(e){return e==null?"":hi(e)}function $(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function gi(e){return e===!0||e===!1||mi(e)&&Jt(e)=="[object Boolean]"}function Vt(e){return De(e)==="object"}function mi(e){return Vt(e)&&e!==null}function N(e){return e!=null}function Oe(e){return!e.trim().length}function Jt(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")},jt=Object.prototype.hasOwnProperty,Ci=function(){function e(t){var r=this;E(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=Xt(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 Xt(e){var t=null,r=null,i=null,n=1,a=null;if($(e)||G(e))i=e,t=Gt(e),r=$e(e);else{if(!jt.call(e,"name"))throw new Error(Mi("name"));var s=e.name;if(i=s,jt.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ai(s));t=Gt(s),r=$e(s),a=e.getFn}return{path:t,id:r,weight:n,src:i,getFn:a}}function Gt(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(N(s))if(!o[l])r.push(s);else{var u=o[l],p=s[u];if(!N(p))return;if(l===o.length-1&&($(p)||Qt(p)||gi(p)))r.push(fi(p));else if(G(p)){i=!0;for(var g=0,d=p.length;g<d;g+=1)a(p[g],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},M=ne(ne(ne(ne({},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 Ue=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,i=r===void 0?M.getFn:r,n=t.fieldNormWeight,a=n===void 0?M.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 l=s.getFn?s.getFn(r):n.getFn(r,s.path);if(N(l)){if(G(l))(function(){for(var p=[],g=[{nestedArrIndex:-1,value:l}];g.length;){var d=g.pop(),y=d.nestedArrIndex,m=d.value;if(N(m))if($(m)&&!Oe(m)){var f={v:m,i:y,n:n.norm.get(m)};p.push(f)}else G(m)&&m.forEach(function(h,v){g.push({nestedArrIndex:v,value:h})})}a.$[o]=p})();else if($(l)&&!Oe(l)){var u={v:l,n:n.norm.get(l)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function Zt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.getFn,n=i===void 0?M.getFn:i,a=r.fieldNormWeight,s=a===void 0?M.fieldNormWeight:a,o=new Ue({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Xt)),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?M.getFn:r,n=t.fieldNormWeight,a=n===void 0?M.fieldNormWeight:n,s=e.keys,o=e.records,l=new Ue({getFn:i,fieldNormWeight:a});return l.setKeys(s),l.setIndexRecords(o),l}function ge(e){var 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,u=l===void 0?M.distance:l,p=t.ignoreLocation,g=p===void 0?M.ignoreLocation:p,d=i/e.length;if(g)return d;var y=Math.abs(o-a);return u?d+y/u:y?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]:M.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 Ii(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?M.location:n,s=i.distance,o=s===void 0?M.distance:s,l=i.threshold,u=l===void 0?M.threshold:l,p=i.findAllMatches,g=p===void 0?M.findAllMatches:p,d=i.minMatchCharLength,y=d===void 0?M.minMatchCharLength:d,m=i.includeMatches,f=m===void 0?M.includeMatches:m,h=i.ignoreLocation,v=h===void 0?M.ignoreLocation:h;if(t.length>ee)throw new Error(bi(ee));for(var C=t.length,F=e.length,x=Math.max(0,Math.min(a,F)),L=u,T=x,w=y>1||f,R=w?Array(F):[],_;(_=e.indexOf(t,T))>-1;){var K=ge(t,{currentLocation:_,expectedLocation:x,distance:o,ignoreLocation:v});if(L=Math.min(K,L),T=_+C,w)for(var D=0;D<C;)R[_+D]=1,D+=1}T=-1;for(var B=[],z=1,re=C+F,Nr=1<<C-1,q=0;q<C;q+=1){for(var pe=0,U=re;pe<U;){var zr=ge(t,{errors:q,currentLocation:x+U,expectedLocation:x,distance:o,ignoreLocation:v});zr<=L?pe=U:re=U,U=Math.floor((re-pe)/2+pe)}re=U;var ht=Math.max(1,x-U+1),Re=g?F:Math.min(x+U,F)+C,ie=Array(Re+2);ie[Re+1]=(1<<q)-1;for(var H=Re;H>=ht;H-=1){var de=H-1,ft=r[e.charAt(de)];if(w&&(R[de]=+!!ft),ie[H]=(ie[H+1]<<1|1)&ft,q&&(ie[H]|=(B[H+1]|B[H])<<1|1|B[H+1]),ie[H]&Nr&&(z=ge(t,{errors:q,currentLocation:de,expectedLocation:x,distance:o,ignoreLocation:v}),z<=L)){if(L=z,T=de,T<=x)break;ht=Math.max(1,2*x-T)}}var Hr=ge(t,{errors:q+1,currentLocation:x,expectedLocation:x,distance:o,ignoreLocation:v});if(Hr>L)break;B=ie}var _e={isMatch:T>=0,score:Math.max(.001,z)};if(w){var gt=Bi(R,y);gt.length?f&&(_e.indices=gt):_e.isMatch=!1}return _e}function Ri(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 qt=function(){function e(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?M.location:n,s=i.threshold,o=s===void 0?M.threshold:s,l=i.distance,u=l===void 0?M.distance:l,p=i.includeMatches,g=p===void 0?M.includeMatches:p,d=i.findAllMatches,y=d===void 0?M.findAllMatches:d,m=i.minMatchCharLength,f=m===void 0?M.minMatchCharLength:m,h=i.isCaseSensitive,v=h===void 0?M.isCaseSensitive:h,C=i.ignoreLocation,F=C===void 0?M.ignoreLocation:C;if(E(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:g,findAllMatches:y,minMatchCharLength:f,isCaseSensitive:v,ignoreLocation:F},this.pattern=v?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var x=function(D,B){r.chunks.push({pattern:D,alphabet:Ri(D),startIndex:B})},L=this.pattern.length;if(L>ee){for(var T=0,w=L%ee,R=L-w;T<R;)x(this.pattern.substr(T,ee),T),T+=ee;if(w){var _=L-ee;x(this.pattern.substr(_),_)}}else x(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,l=o.location,u=o.distance,p=o.threshold,g=o.findAllMatches,d=o.minMatchCharLength,y=o.ignoreLocation,m=[],f=0,h=!1;this.chunks.forEach(function(C){var F=C.pattern,x=C.alphabet,L=C.startIndex,T=Ii(r,F,x,{location:l+L,distance:u,threshold:p,findAllMatches:g,minMatchCharLength:d,includeMatches:a,ignoreLocation:y}),w=T.isMatch,R=T.score,_=T.indices;w&&(h=!0),f+=R,w&&_&&(m=[].concat(te(m),te(_)))});var v={isMatch:h,score:h?f/this.chunks.length:1};return h&&a&&(v.indices=m),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 Kt(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return Kt(r,this.singleRegex)}}]),e}();function Kt(e,t){var r=e.match(t);return r?r[1]:null}var _i=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),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.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),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.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),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,n.length-1]}}}],[{key:"type",get:function(){return"inverse-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.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),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:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),r}(X),er=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?M.location:s,l=a.threshold,u=l===void 0?M.threshold:l,p=a.distance,g=p===void 0?M.distance:p,d=a.includeMatches,y=d===void 0?M.includeMatches:d,m=a.findAllMatches,f=m===void 0?M.findAllMatches:m,h=a.minMatchCharLength,v=h===void 0?M.minMatchCharLength:h,C=a.isCaseSensitive,F=C===void 0?M.isCaseSensitive:C,x=a.ignoreLocation,L=x===void 0?M.ignoreLocation:x;return E(this,r),n=t.call(this,i),n._bitapSearch=new qt(i,{location:o,threshold:u,distance:g,includeMatches:y,findAllMatches:f,minMatchCharLength:v,isCaseSensitive:F,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),tr=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=[],l=this.pattern.length;(s=n.indexOf(this.pattern,a))>-1;)a=s+l,o.push([s,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(X),We=[_i,tr,Oi,Di,zi,Ni,Ei,er],Ut=We.length,Hi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$i="|";function Wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split($i).map(function(r){for(var i=r.trim().split(Hi).filter(function(m){return m&&!!m.trim()}),n=[],a=0,s=i.length;a<s;a+=1){for(var o=i[a],l=!1,u=-1;!l&&++u<Ut;){var p=We[u],g=p.isMultiMatch(o);g&&(n.push(new p(g,t)),l=!0)}if(!l)for(u=-1;++u<Ut;){var d=We[u],y=d.isSingleMatch(o);if(y){n.push(new d(y,t));break}}}return n})}var ji=new Set([er.type,tr.type]),Gi=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.isCaseSensitive,n=i===void 0?M.isCaseSensitive:i,a=r.includeMatches,s=a===void 0?M.includeMatches:a,o=r.minMatchCharLength,l=o===void 0?M.minMatchCharLength:o,u=r.ignoreLocation,p=u===void 0?M.ignoreLocation:u,g=r.findAllMatches,d=g===void 0?M.findAllMatches:g,y=r.location,m=y===void 0?M.location:y,f=r.threshold,h=f===void 0?M.threshold:f,v=r.distance,C=v===void 0?M.distance:v;E(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:l,findAllMatches:d,ignoreLocation:p,location:m,threshold:h,distance:C},this.pattern=n?t:t.toLowerCase(),this.query=Wi(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,l=[],u=0,p=0,g=i.length;p<g;p+=1){var d=i[p];l.length=0,o=0;for(var y=0,m=d.length;y<m;y+=1){var f=d[y],h=f.search(r),v=h.isMatch,C=h.indices,F=h.score;if(v){if(o+=1,u+=F,a){var x=f.constructor.type;ji.has(x)?l=[].concat(te(l),te(C)):l.push(C)}}else{u=0,o=0,l.length=0;break}}if(o){var L={isMatch:!0,score:u/o};return a&&(L.indices=l),L}}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 qt(e,t)}var ve={AND:"$and",OR:"$or"},Ge={PATH:"$path",PATTERN:"$val"},Ke=function(t){return!!(t[ve.AND]||t[ve.OR])},Ui=function(t){return!!t[Ge.PATH]},Yi=function(t){return!G(t)&&Vt(t)&&!Ke(t)},Yt=function(t){return Ne({},ve.AND,Object.keys(t).map(function(r){return Ne({},r,t[r])}))};function rr(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),u=Ui(o);if(!u&&l.length>1&&!Ke(o))return s(Yt(o));if(Yi(o)){var p=u?o[Ge.PATH]:l[0],g=u?o[Ge.PATTERN]:o[p];if(!$(g))throw new Error(vi(p));var d={keyId:$e(p),pattern:g};return n&&(d.searcher=je(g,t)),d}var y={children:[],operator:l[0]};return l.forEach(function(m){var f=o[m];G(f)&&f.forEach(function(h){y.children.push(s(h))})}),y};return Ke(e)||(e=Yt(e)),a(e)}function Qi(e,t){var r=t.ignoreFieldNorm,i=r===void 0?M.ignoreFieldNorm:r;e.forEach(function(n){var a=1;n.matches.forEach(function(s){var o=s.key,l=s.norm,u=s.score,p=o?o.weight:null;a*=Math.pow(u===0&&p?Number.EPSILON:u,(p||1)*(i?1:l))}),n.score=a})}function Vi(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 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?M.includeMatches:i,a=r.includeScore,s=a===void 0?M.includeScore:a,o=[];return n&&o.push(Vi),s&&o.push(Ji),e.map(function(l){var u=l.idx,p={item:t[u],refIndex:u};return o.length&&o.forEach(function(g){g(l,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({},M),r),this.options.useExtendedSearch,this._keyStore=new Ci(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(yi);this._myIndex=i||Zt(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,l=s.includeScore,u=s.shouldSort,p=s.sortFn,g=s.ignoreFieldNorm,d=$(r)?$(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Qi(d,{ignoreFieldNorm:g}),u&&d.sort(p),Qt(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,u=s.n;if(N(o)){var p=i.searchIn(o),g=p.isMatch,d=p.score,y=p.indices;g&&a.push({item:o,idx:l,matches:[{score:d,value:o,norm:u,indices:y}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=rr(r,this.options),a=function u(p,g,d){if(!p.children){var y=p.keyId,m=p.searcher,f=i._findMatches({key:i._keyStore.get(y),value:i._myIndex.getValueForItemAtKeyId(g,y),searcher:m});return f&&f.length?[{idx:d,item:g,matches:f}]:[]}for(var h=[],v=0,C=p.children.length;v<C;v+=1){var F=p.children[v],x=u(F,g,d);if(x.length)h.push.apply(h,te(x));else if(p.operator===ve.AND)return[]}return h},s=this._myIndex.records,o={},l=[];return s.forEach(function(u){var p=u.$,g=u.i;if(N(p)){var d=a(n,p,g);d.length&&(o[g]||(o[g]={idx:g,item:p,matches:[]},l.push(o[g])),d.forEach(function(y){var m,f=y.matches;(m=o[g].matches).push.apply(m,te(f))}))}}),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(u){var p=u.$,g=u.i;if(N(p)){var d=[];s.forEach(function(y,m){d.push.apply(d,te(i._findMatches({key:y,value:p[m],searcher:n})))}),d.length&&l.push({idx:g,item:p,matches:d})}}),l}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.searcher;if(!N(n))return[];var s=[];if(G(n))n.forEach(function(y){var m=y.v,f=y.i,h=y.n;if(N(m)){var v=a.searchIn(m),C=v.isMatch,F=v.score,x=v.indices;C&&s.push({score:F,key:i,value:m,idx:f,norm:h,indices:x})}});else{var o=n.v,l=n.n,u=a.searchIn(o),p=u.isMatch,g=u.score,d=u.indices;p&&s.push({score:g,key:i,value:o,norm:l,indices:d})}return s}}]),e}();ae.version="6.6.2";ae.createIndex=Zt;ae.parseIndex=wi;ae.config=M;ae.parseQuery=rr;Ki(Gi);var Zi=ae;ir.exports=Zi});var Oa={};Ur(Oa,{PUNCTUATION:()=>S,abbreviations:()=>Ve,availableExclusions:()=>wr,availableModifiers:()=>Pr,clashBannedCards:()=>Ye,clashSpecializationOverrides:()=>Qe,default:()=>Rr,filterCard:()=>_r,filtersToCardPropertyMappings:()=>we,getAbbreviation:()=>Me,getAbbreviationByCard:()=>qi,getCardByName:()=>lt,getDeckFilters:()=>ra,getExcludedMetaFilters:()=>tt,getHeroBreakdown:()=>Ia,getKeywordsAndAppliedFiltersFromText:()=>st,getMetaFilters:()=>et,getRelatedCards:()=>dt,getRelatedCardsByName:()=>Be,getTokensReferencedByCards:()=>Ea,heroHasFilters:()=>ia,shorthands:()=>rt});module.exports=Yr(Oa);var P=Y(Q()),ct=Y(nr());var be=Y(Q()),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 S=/[!"#$%&'’()*+,-./:;<=>?@[\]^_`{|}~]/g;var k=Y(Q());var Me=e=>Ve.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),qi=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 c=Y(Q());var Te=Array.from(Array(50).keys()).map(e=>`${e}`),b=(e,t=[])=>{let r=[...e,c.Class.Generic];return t.length>0&&r.push(c.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},en(t)]},A=(e,t=[])=>{let r=Object.values(c.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(c.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},xe=[c.Talent.Draconic],tn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Ice,c.Talent.Lightning],rn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Ice],nn=[c.Talent.Elemental,c.Talent.Earth,c.Talent.Lightning],an=[c.Talent.Elemental,c.Talent.Ice],on=[c.Talent.Elemental,c.Talent.Ice,c.Talent.Lightning],Ze=[c.Talent.Light],qe=[c.Talent.Shadow],sn=[...b([c.Class.Assassin]),...A(c.Hero.Arakni)],ln=[...b([c.Class.Ranger]),...A(c.Hero.Azalea)],cn=[...b([c.Class.Ninja]),...A(c.Hero.Benji)],un=[...b([c.Class.Guardian]),...A(c.Hero.Betsy)],pn=[...b([c.Class.Warrior],Ze),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...A(c.Hero.Boltyn)],dn=[...b([c.Class.Guardian]),...A(c.Hero.Bravo)],hn=[...b([c.Class.Guardian]),...A(c.Hero.Brevant)],fn=[...b([c.Class.Runeblade],nn),...A(c.Hero.Briar)],gn=[...b([c.Class.Runeblade],qe),...A(c.Hero.Chane)],mn=[...b([c.Class.Mechanologist]),...A(c.Hero.Dash)],Je=[...b([c.Class.Mechanologist]),...A(c.Hero.DataDoll)],ar=[...b([c.Class.Warrior]),...A(c.Hero.Dorinthea)],yn=[...b([c.Class.Illusionist],xe),...A(c.Hero.Dromai,[c.Hero.Fai])],vn=[...b([c.Class.Warrior,c.Class.Wizard],xe),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:["0","2","3"],cardTypes:[c.Type.Action,c.Type.AttackReaction,c.Type.DefenseReaction,c.Type.Instant,c.Type.Mentor,c.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...A(c.Hero.Emperor)],bn=[...b([c.Class.Ninja],xe),...A(c.Hero.Fai,[c.Hero.Dromai])],or=[...b([c.Class.Merchant]),...A(c.Hero.GenisWotchuneed)],Mn=[...b([c.Class.Ninja]),...A(c.Hero.Ira)],sr=[...b([c.Class.Wizard],an),...A(c.Hero.Iyslander)],An=[...b([c.Class.Wizard])],Cn=[...b([c.Class.Warrior]),...A(c.Hero.Kassai)],Fn=[...b([c.Class.Ninja]),...A(c.Hero.Katsu)],kn=[...b([c.Class.Merchant]),...A(c.Hero.Kavdaen)],Tn=[...b([c.Class.Brute]),...A(c.Hero.Kayo)],xn=[...b([c.Class.Brute],qe),...A(c.Hero.Levia)],Sn=[...b([c.Class.Ranger],on),...A(c.Hero.Lexi)],Ln=[...b([c.Class.Mechanologist]),...A(c.Hero.Maxx)],Pn=[...b([c.Class.Bard]),...A(c.Hero.Melody)],wn=[...b([c.Class.Guardian],rn),...A(c.Hero.Oldhim)],Bn=[...b([c.Class.Warrior]),...A(c.Hero.Olympia)],In=[...b([c.Class.Illusionist],Ze),...A(c.Hero.Prism)],Rn=[...b([c.Class.Brute]),...A(c.Hero.Rhinar)],_n=[...b([c.Class.Ranger]),...A(c.Hero.Riptide)],En=[...b([c.Class.Merchant]),...A(c.Hero.Ruudi)],On=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Dn=[...b([c.Class.Merchant]),...A(c.Hero.Squizzy)],Nn=[...b([c.Class.Guardian],tn),...A(c.Hero.Bravo)],zn=[...b([c.Class.Adjudicator],xe),...A(c.Hero.Taipanis)],Hn=[...b([]),...A(c.Hero.Taylor)],$n=[...b([c.Class.Mechanologist]),...A(c.Hero.Teklovossen)],Wn=[...b([c.Class.Adjudicator],Ze),...A(c.Hero.Theryon)],jn=[...b([c.Class.Assassin]),...A(c.Hero.Uzuri)],Gn=[...b([c.Class.Guardian]),...A(c.Hero.Valda)],Kn=[...b([c.Class.Guardian]),...A(c.Hero.Victor)],Un=[...b([c.Class.Runeblade]),...A(c.Hero.Viserai)],Yn=[...b([c.Class.Runeblade],qe),...A(c.Hero.Vynnset)],Qn=[...b([c.Class.Bard]),...A(c.Hero.Yorick)],Vn=[...b([c.Class.Guardian]),...A(c.Hero.Yoji)],Jn=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],lr=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Xn=[{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}],Zn=[{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:Jn,"blitz ll":lr,"blitz living legend":lr,clash:Xn,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:Zn,upf:Xe,ultimate:Xe,"ultimate pit fight":Xe,arakni:sn,azalea:ln,benji:cn,betsy:un,boltyn:pn,bravo:dn,brevant:hn,briar:fn,chane:gn,dash:mn,data:Je,"data doll":Je,datadoll:Je,dori:ar,dorinthea:ar,dromai:yn,emperor:vn,fai:bn,genis:or,geniswotchuneed:or,ira:Mn,iyslander:sr,islander:sr,kano:An,kassai:Cn,katsu:Fn,kavdaen:kn,kayo:Tn,levia:xn,lexi:Sn,maxx:Ln,melody:Pn,oldhim:wn,olympia:Bn,prism:In,rhinar:Rn,riptide:_n,ruudi:En,shiyana:On,squizzy:Dn,starvo:Nn,taipanis:zn,taylor:Hn,teklovossen:$n,theryon:Wn,uzuri:jn,valda:Gn,victor:Kn,viserai:Un,vynnset:Yn,yorick:Qn,yoji:Vn},Ce=["common","rare","super rare","majestic","legendary","fabled"],qn=(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 l=!1;for(let u of Ce.slice().reverse())l?i.push(u):u===n&&(l=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:r}},ea=(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 aa(t)?n.push(...ea(r,e)):sa(t)&&n.push(qn(r,i,e)),n},se=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:Te,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:Te,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:Te},{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:Te},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],ke=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(c.Talent).map(e=>e.toLowerCase())}],ta={"!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=ta[e];return r&&t.push(...r),t},ra=(e,t)=>[...ce[e.toLowerCase()],...t?ce[t.toLowerCase()]:[]],ia=e=>{var t;return((t=ce[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},na=["l","legal","hero"],aa=e=>na.includes(e),oa=["r","rarity"],sa=e=>oa.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=[">=",">","<=","<"],wr=["!","-"],it={property:"artists",isArray:!0,partialMatch:!0},la={property:"n/a"},cr={property:"classes",isArray:!0,partialMatch:!0},ur={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},ue={property:"defense",specialProperty:"specialDefense",isNumber:!0},pr={nestedProperty:"foiling",property:"printings",isArray:!0},dr={property:"fusions",isArray:!0},hr={property:"intellect",isNumber:!0},fr={property:"keywords",isArray:!0,partialMatch:!0},nt={property:"n/a",isMeta:!0},gr={property:"life",specialProperty:"specialLife",isNumber:!0},mr={property:"name",isString:!0},at={property:"pitch",isNumber:!0},Se={property:"power",specialProperty:"specialPower",isNumber:!0},yr={property:"n/a",isMeta:!0},ca={property:"n/a"},ua={property:"n/a"},vr={property:"restrictedFormats",isArray:!0,partialMatch:!0},br={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Mr={property:"subtypes",isArray:!0},Ar={property:"types",isArray:!0},Cr={property:"talents",isArray:!0},pa={property:"functionalText",isString:!0,partialMatch:!0},da={property:"typeText",isString:!0,partialMatch:!0},Pe={nestedProperty:"treatment",property:"printings",isArray:!0},we={a:it,artist:it,art:it,attack:Se,b:ue,block:ue,c:cr,class:cr,chain:la,co:ur,cost:ur,color:at,d:ue,def:ue,defense:ue,f:dr,fusion:dr,foil:pr,foiling:pr,i:hr,intellect:hr,k:fr,keyword:fr,l:nt,legal:nt,hero:nt,li:gr,life:gr,n:mr,name:mr,p:at,pitch:at,pwr:Se,pow:Se,power:Se,r:yr,rarity:yr,referencedby:ca,references:ua,rf:vr,restricted:vr,s:br,set:br,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Mr,subtype:Mr,t:Ar,type:Ar,tal:Cr,talent:Cr,text:pa,treat:Pe,treatment:Pe,var:Pe,variation:Pe,x:da},ha=[{text:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:k.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(S,"")}],fa=e=>{var n;let t=[],r=e.trim().toLowerCase();for(let{text:a,override:s}of ha)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 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},ga=[k.Hero.Briar,k.Hero.Emperor,k.Hero.Prism,k.Hero.Shiyana,k.Hero.Taylor],st=(e,t)=>{var g;let r=fa(e),i=[];for(let d of r){let y=rt[d];y?i.push(...y):i.push(d)}let n=[],a=[],s=[],o=[],l=[],u=[],p={isClash:!1,heroes:[]};for(let d of i)if(ka(d)){let[y,m]=d.split(":"),{modifier:f,values:h,isAnd:v,isOr:C}=Ca(m),{filterKey:F,excluded:x,isMeta:L}=Fa(y);if(L){if(["rarity","r"].includes(F)&&(h=Aa(h)),["legal","l","hero"].includes(F)){for(let T of ga)m.includes(T.toLowerCase())&&(p.heroes.includes(T)||p.heroes.push(T));m.includes("clash")&&(p.isClash=!0)}n.push(...et(x,F,h,f))}else{if(["chain"].includes(F)){let T=B=>B.name.toLowerCase().replaceAll(S,""),w=h.map(B=>lt(B,t)).filter(B=>!!B).map(T),R=new Set(w);F="name",C=!0;let _=20,K=0,D=B=>{if(!B.types.includes(k.Type.Hero)){let z=T(B);R.add(z),w.includes(z)||w.push(z)}};for(let B of w){if(K>_)break;let{referencedBy:z,references:re}=Be(B,t);re.forEach(D),K===0&&z.forEach(D),K++}h=Array.from(R)}else if(["referencedby","references"].includes(F)){let T=F,w=[...h].filter(R=>!!R);h=[],F="name",C=!0;for(let R of w){let{referencedBy:_,references:K}=Be(R,t);["referencedby"].includes(T)?h.push(...K.map(({name:D})=>D.toLowerCase().replaceAll(S,""))):["references"].includes(T)&&h.push(..._.map(({name:D})=>D.toLowerCase().replaceAll(S,"")))}}else["art","artist"].includes(F)?a=h:["foiling","foil"].includes(F)?(o=ba(h),h=o.map(T=>T.toLowerCase())):["treat","treatment","var","variation"].includes(F)?(u=Ma(h),h=u.map(T=>T.toLowerCase())):["set","s"].includes(F)?(l=ma(h),h=l.map(T=>T.toLowerCase().replaceAll(S,""))):["pitch","p","color"].includes(F)&&(h=va(h));we[F]&&n.push({filterToPropertyMapping:we[F],values:h,isAnd:v,isOr:C,modifier:f,excluded:x})}}else if(d){let y=(g=Me(d))==null?void 0:g.card,m=tt(d);y?s.push(`"${y.toLowerCase().replace(S,"")}"`):m&&m.length>0?n.push(...m):s.push(d.replace(S,""))}return{appliedFilters:n,attributes:{artists:a,foilings:o,releases:l,treatments:u},keywords:s,specialConditions:p}},ma=e=>{let t=[];for(let r of e)t.push(...ya(r));return t},ya=e=>{let t=[],r=Object.values(k.Release).find(i=>i.toLowerCase().replaceAll(S,"")===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},va=e=>{let t=[];for(let r of e)ot[r]||ot[r]===0?t.push(ot[r].toString()):t.push(r);return t},Fr={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},ba=e=>{let t=[];for(let r of e)Fr[r]&&t.push(Fr[r]);return t},kr={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},Ma=e=>{let t=[];for(let r of e)kr[r]?t.push(kr[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"},Aa=e=>{let t=[];for(let r of e)Tr[r]?t.push(Tr[r]):t.push(r);return t},Ca=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(S,"")))):Sr(a)?(i=!0,t.push(...a.trim().split(",").map(s=>s.replace(S,"")))):t.push(a.trim().replace(S,""))}else xr(e)?(r=!0,t.push(...e.trim().split("+").map(a=>a.replace(S,"")))):Sr(e)?(i=!0,t.push(...e.trim().split(",").map(a=>a.replace(S,"")))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"").replace(S,"")):t.push(e.trim().replace(S,""));return{modifier:n,values:t,isAnd:r,isOr:i}},Fa=e=>{let t=Ta(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)}},ka=e=>e.indexOf(":")>=0,xr=e=>e.indexOf("+")>=0,Sr=e=>e.indexOf(",")>=0,Lr=e=>{var t;return!!((t=we[e])!=null&&t.isMeta)},Ta=e=>{var t;return(t=wr.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var I=Y(Q()),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:[{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"},Ir=[{keyword:Br.name.toLowerCase(),card:Br}];var ut=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:s,specialConditions:o}=st(t,this.cards),l=s.join(" "),u=r?Ir.filter(f=>f.keyword===l):[];if(u.length>0?i=u.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:h})=>!f&&h.includes(P.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(f=>!f.young)),n.some(({excluded:f,values:h})=>!f&&(h.includes(P.Format.Blitz.toLowerCase())||h.includes(P.Format.Commoner.toLowerCase())))&&(i=i.filter(f=>{let{types:h,young:v}=f;return!(h.includes(P.Type.Hero)&&!v)}))),s.length===0){let f="";if(a.releases.length===1)try{let h=a.releases[0];f=P.setToSetIdentifierMappings[h][0].toUpperCase()}catch(h){console.error("Error getting set identifier from search",h)}f?i.sort((h,v)=>{var x,L;let C=(x=h.setIdentifiers.find(T=>T.includes(f)))==null?void 0:x.replace(f,""),F=(L=v.setIdentifiers.find(T=>T.includes(f)))==null?void 0:L.replace(f,"");return C&&F?C.localeCompare(F):-1}):i.sort((h,v)=>h.name===v.name?`${h.pitch}`.localeCompare(`${v.pitch}`):h.name.localeCompare(v.name))}else{let f=[],h=[],v=s.map(C=>C.toLowerCase().replace(S,"")).join(" ");for(let C of i)C.name.toLowerCase().replace(S,"")===v?f.push(C):h.push(C);i=[...f,...h]}let p,{artists:g,foilings:d,releases:y,treatments:m}=a;return(g.length>0||d.length>0||y.length>0||m.length>0)&&(p=i.map(f=>{let h=f.printings.filter(v=>{let C=!!v.image,F=g.length===0||g.some(w=>v.artist.replace(S,"").toLowerCase().includes(w)),x=d.length===0||d.includes(v.foiling),L=y.length===0||y.includes(v.set),T=m.length===0||m.includes(v.treatment);return C&&F&&x&&L&&T});return he({matchingPrintings:h},f)})),{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(S,"")):a.replace(S,""))},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)}},Rr=ut,_r=(e,t,r)=>{let i=!0;for(let n of t){let{isNumber:a,isString:s,isArray:o,isBoolean:l,property:u}=n.filterToPropertyMapping;if((a&&!xa(e,n)||s&&!Sa(e,n)||o&&!La(e,n)||l&&!Pa(e,n))&&(i=!1),r.isClash&&["rarities","bannedFormats"].includes(u)){let m=[P.Rarity.SuperRare,P.Rarity.Majestic,P.Rarity.Legendary,P.Rarity.Fabled].some(F=>e.rarities.includes(F)),f=!1;for(let{cardIdentifiers:F,heroes:x}of Qe)for(let L of r.heroes)x.includes(L)&&F.includes(e.cardIdentifier)&&(f=!0);let h=!!e.specializations&&e.specializations.length>0||f,v=[P.Type.Mentor,P.Type.Weapon].some(F=>e.types.includes(F)),C=Ye.includes(e.name);!i&&!C&&(h||v)&&m&&(i=!0),C&&(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 l=i==null?void 0:i.some(d=>o>=parseInt(d));return a?!l:l;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 g=i==null?void 0:i.some(d=>o<parseInt(d));return a?!g:g;default:return!1}else{let l=i==null?void 0:i.some(u=>o===parseInt(u));return a?!l:l}else{let l=(r=Ba(e,t))==null?void 0:r.toLowerCase(),u=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?!u:u}}else return!0},Sa=(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(S,"");if(s){let l=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!l:l}else{let l=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!l:l}}else return!0},La=(e,t)=>{if(Ie(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,s=wa(e,t).map(o=>o==null?void 0:o.replaceAll(S,""));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))),l=s.length===0;return n?!o||l:o}else{let o=i?r.every(l=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===l)):r.some(l=>s==null?void 0:s.some(u=>(u==null?void 0:u.toLowerCase())===l));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]},wa=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},Ba=(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(S,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(S,"").includes(e))),r};var j=Y(Q()),Ia=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),u=o.sets.some(p=>p!==j.Release.Promos);return l||u}),n=t.filter(o=>{let l=o.rarities.every(p=>p===j.Rarity.Promo),u=o.sets.every(p=>p===j.Release.Promos);return l&&u}),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 Dr=Y(Q());var Ra={"Dawnblade, Resplendent":"Dawnblade"},Er=e=>Ra[e.name]||e.name,Or=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(S,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(S,"").includes(e))),dt(r,t)},dt=(e,t)=>{let r=[],i=[],n=[];if(e){let a=[],s=[],o=Er(e);for(let l of t){let u=Er(l),p=o===u,g=e.pitch!==l.pitch;if(p&&g)r.push(l);else if(!p){let d=Or(l),y=d==null?void 0:d.includes(o),m=Or(e),f=m==null?void 0:m.includes(u);y&&a.push(l),f&&s.push(l)}}for(let l of a)i.push(l);for(let l of s){let u=l.name;o!==u&&!s.some(p=>{let g=p.name;return g!==u&&g.includes(u)})&&n.push(l)}}return{otherPitches:r,referencedBy:i,references:n}},_a=["cash-in-yellow"],Ea=(e,t,r)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!_a.includes(a))){let{references:a}=dt(n,t);for(let s of a.filter(o=>{let l=o.name==="Hyper Driver",u=r===Dr.Hero.Maxx;return!l||u}))i.add(s)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,shorthands});
package/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": "1.0.13",
4
+ "version": "1.0.15",
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": "^1.0.8",
15
+ "@flesh-and-blood/types": "^1.0.15",
16
16
  "fuse.js": "^6.6.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@flesh-and-blood/cards": "^1.0.13",
19
+ "@flesh-and-blood/cards": "^1.0.15",
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": "9fca8d923bd241ffd52663a603d2a5b620a7ab7b"
49
+ "gitHead": "323c365fefbd092d971b8fb06a5228712e153509"
50
50
  }