@malib/gear 1.0.0-next.3 → 1.0.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var mt=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Jt=Object.prototype.hasOwnProperty;var Xt=(t,o)=>{for(var r in o)mt(t,r,{get:o[r],enumerable:!0})},$t=(t,o,r,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of Nt(o))!Jt.call(t,n)&&n!==r&&mt(t,n,{get:()=>o[n],enumerable:!(a=Ft(o,n))||a.enumerable});return t};var Kt=t=>$t(mt({},"__esModule",{value:!0}),t);var Ue={};Xt(Ue,{AddOptionCan:()=>ht,AddOptionType:()=>gt,Gear:()=>dt,GearAttribute:()=>C,GearCuttable:()=>xt,GearReq:()=>E,GearShare:()=>St,GearTrade:()=>ft,GearType:()=>O,PotentialCan:()=>bt,PotentialGrade:()=>Y,SpellTraceType:()=>Pt,applyExceptional:()=>y,applyGoldenHammer:()=>tt,applyScroll:()=>_,applySoulEnchant:()=>ct,applySpellTrace:()=>at,canApplyExceptional:()=>H,canApplyScroll:()=>B,canApplySoulEnchant:()=>$,canFailScroll:()=>M,canGoldenHammer:()=>L,canResetExceptional:()=>q,canResetStarforce:()=>N,canResetUpgrade:()=>j,canResileScroll:()=>G,canSetSoul:()=>K,canSetSoulCharge:()=>Q,canStarScroll:()=>v,canStarforce:()=>R,failScroll:()=>et,getAddOption:()=>z,getAddOptionValue:()=>At,getSpellTraceScroll:()=>_t,isAccessory:()=>b,isArmor:()=>h,isDoubleHandWeapon:()=>wt,isDragonGear:()=>It,isLeftWeapon:()=>Ot,isMechanicGear:()=>Ut,isShield:()=>I,isSubWeapon:()=>Et,isWeapon:()=>u,resetExceptional:()=>T,resetSoulEnchant:()=>ut,resetStarforce:()=>lt,resetUpgrade:()=>rt,resileScroll:()=>ot,setSoul:()=>st,setSoulCharge:()=>pt,starScroll:()=>F,starforce:()=>V,supportsAddOption:()=>Z,supportsExceptional:()=>P,supportsSoul:()=>X,supportsStarforce:()=>k,supportsUpgrade:()=>S,toGearOption:()=>d});module.exports=Kt(Ue);var ft=(a=>(a[a.Tradeable=0]="Tradeable",a[a.TradeBlock=1]="TradeBlock",a[a.EquipTradeBlock=2]="EquipTradeBlock",a))(ft||{}),St=(a=>(a[a.None=0]="None",a[a.AccountSharable=1]="AccountSharable",a[a.AccountSharableOnce=2]="AccountSharableOnce",a))(St||{}),ht=(a=>(a[a.None=0]="None",a[a.Can=1]="Can",a[a.Cannot=2]="Cannot",a))(ht||{}),bt=(n=>(n[n.None=0]="None",n[n.Can=1]="Can",n[n.Cannot=2]="Cannot",n[n.Fixed=3]="Fixed",n))(bt||{}),xt=(a=>(a[a.None=0]="None",a[a.Silver=1]="Silver",a[a.Platinum=2]="Platinum",a))(xt||{});var O=(e=>(e[e.cap=100]="cap",e[e.faceAccessory=101]="faceAccessory",e[e.eyeAccessory=102]="eyeAccessory",e[e.earrings=103]="earrings",e[e.coat=104]="coat",e[e.longcoat=105]="longcoat",e[e.pants=106]="pants",e[e.shoes=107]="shoes",e[e.glove=108]="glove",e[e.cape=110]="cape",e[e.ring=111]="ring",e[e.pendant=112]="pendant",e[e.belt=113]="belt",e[e.medal=114]="medal",e[e.shoulder=115]="shoulder",e[e.pocket=116]="pocket",e[e.badge=118]="badge",e[e.android=166]="android",e[e.machineHeart=167]="machineHeart",e[e.shield=109]="shield",e[e.emblem=119]="emblem",e[e.powerSource=119020]="powerSource",e[e.shiningRod=1212]="shiningRod",e[e.tuner=1213]="tuner",e[e.breathShooter=1214]="breathShooter",e[e.soulShooter=122]="soulShooter",e[e.desperado=123]="desperado",e[e.energySword=124]="energySword",e[e.espLimiter=126]="espLimiter",e[e.chain=127]="chain",e[e.magicGauntlet=128]="magicGauntlet",e[e.ritualFan=129]="ritualFan",e[e.ohSword=130]="ohSword",e[e.ohAxe=131]="ohAxe",e[e.ohBlunt=132]="ohBlunt",e[e.dagger=133]="dagger",e[e.katara=134]="katara",e[e.cane=136]="cane",e[e.wand=137]="wand",e[e.staff=138]="staff",e[e.thSword=140]="thSword",e[e.chakram=1404]="chakram",e[e.thAxe=141]="thAxe",e[e.thBlunt=142]="thBlunt",e[e.spear=143]="spear",e[e.polearm=144]="polearm",e[e.bow=145]="bow",e[e.crossbow=146]="crossbow",e[e.claw=147]="claw",e[e.knuckle=148]="knuckle",e[e.gun=149]="gun",e[e.shovel=150]="shovel",e[e.pickaxe=151]="pickaxe",e[e.dualBowguns=152]="dualBowguns",e[e.handCannon=153]="handCannon",e[e.heavySword=156]="heavySword",e[e.longSword=157]="longSword",e[e.gauntletRevolver=158]="gauntletRevolver",e[e.ancientBow=159]="ancientBow",e[e.soulShield=1098]="soulShield",e[e.demonShield=1099]="demonShield",e[e.magicArrow=135200]="magicArrow",e[e.card=135210]="card",e[e.medallion=135220]="medallion",e[e.rosary=135221]="rosary",e[e.ironChain=135222]="ironChain",e[e.magicBook1=135223]="magicBook1",e[e.magicBook2=135224]="magicBook2",e[e.magicBook3=135225]="magicBook3",e[e.arrowFletching=135226]="arrowFletching",e[e.bowThimble=135227]="bowThimble",e[e.daggerScabbard=135228]="daggerScabbard",e[e.charm=135229]="charm",e[e.orb=135240]="orb",e[e.dragonEssence=135250]="dragonEssence",e[e.soulRing=135260]="soulRing",e[e.magnum=135270]="magnum",e[e.wristBand=135290]="wristBand",e[e.farSight=135291]="farSight",e[e.powderKeg=135292]="powderKeg",e[e.mass=135293]="mass",e[e.document=135294]="document",e[e.magicMarble=135295]="magicMarble",e[e.arrowhead=135296]="arrowhead",e[e.jewel=135297]="jewel",e[e.powderKeg2=135298]="powderKeg2",e[e.controller=135300]="controller",e[e.foxMarble=135310]="foxMarble",e[e.chessPiece=135320]="chessPiece",e[e.transmitter=135330]="transmitter",e[e.charge=135340]="charge",e[e.magicWing=135350]="magicWing",e[e.pathOfAbyss=135360]="pathOfAbyss",e[e.relic=135370]="relic",e[e.fanTassel=135380]="fanTassel",e[e.bracelet=135400]="bracelet",e[e.weaponBelt=135401]="weaponBelt",e[e.ornament=135402]="ornament",e[e.hexSeeker=135403]="hexSeeker",e[e.petEquip=180]="petEquip",e[e.machineEngine=161]="machineEngine",e[e.machineArms=162]="machineArms",e[e.machineLegs=163]="machineLegs",e[e.machineBody=164]="machineBody",e[e.machineTransistors=165]="machineTransistors",e[e.dragonMask=194]="dragonMask",e[e.dragonPendant=195]="dragonPendant",e[e.dragonWings=196]="dragonWings",e[e.dragonTail=197]="dragonTail",e))(O||{});var Y=(i=>(i[i.Normal=0]="Normal",i[i.Rare=1]="Rare",i[i.Epic=2]="Epic",i[i.Unique=3]="Unique",i[i.Legendary=4]="Legendary",i))(Y||{});function u(t){return Ot(t)||wt(t)}function Ot(t){return 121<=t&&t<=139&&t!==134||Math.floor(t/10)===121}function wt(t){return t>=140&&t<=149||t>=152&&t<=159||Math.floor(t/10)===140}function Et(t){if(I(t))return!0;switch(t){case 134:return!0;default:return Math.floor(t/1e3)===135}}function I(t){switch(t){case 109:case 1099:case 1098:return!0;default:return!1}}function h(t){return t===100||t>=104&&t<=110||t===1098||t===1099}function b(t){return t>=101&&t<=103||t>=111&&t<=113||t===115}function Ut(t){return t>=161&&t<=165}function It(t){return t>=194&&t<=197}var gt=(p=>(p.str="str",p.dex="dex",p.int="int",p.luk="luk",p.str_dex="str&dex",p.str_int="str&int",p.str_luk="str&luk",p.dex_int="dex&int",p.dex_luk="dex&luk",p.int_luk="int&luk",p.maxHp="maxHp",p.maxMp="maxMp",p.attackPower="attackPower",p.magicPower="magicPower",p.armor="armor",p.speed="speed",p.jump="jump",p.bossDamage="bossDamage",p.damage="damage",p.allStat="allStat",p.reqLevelDecrease="reqLevelDecrease",p))(gt||{});function Z(t){return u(t)?!0:h(t)?!I(t):b(t)?![111,115].includes(t):t===116}function z(t,o,r){let a=ne(o),n=At(t,o,r),i=a.map(c=>[c,n]);return Object.fromEntries(i)}function At(t,o,r){let a={type:o,reqLevel:t.req.level,gearType:t.type,bossReward:t.attributes.bossReward,attackPower:t.baseOption.attackPower,magicPower:t.baseOption.magicPower};switch(o){case"str":case"dex":case"int":case"luk":return Dt(r,a);case"str&dex":case"str&int":case"str&luk":case"dex&int":case"dex&luk":case"int&luk":return Qt(r,a);case"armor":return Dt(r,a);case"attackPower":case"magicPower":return Yt(r,a);case"maxHp":case"maxMp":return yt(r,a);case"speed":return Tt(r,a);case"jump":return te(r,a);case"damage":return ee(r,a);case"bossDamage":return oe(r,a);case"allStat":return re(r,a);case"reqLevelDecrease":return ae(r,a)}}function Dt(t,{reqLevel:o}){return o>=250?Math.floor(o/20)*t:(Math.floor(o/20)+1)*t}function Qt(t,{reqLevel:o}){return(Math.floor(o/40)+1)*t}function Yt(t,o){let{reqLevel:r,gearType:a}=o;if(u(a))return Zt(t,o);if(r>=60)return t;throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 60 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.")}function Zt(t,o){let{reqLevel:r,type:a,gearType:n,bossReward:i,attackPower:c,magicPower:l}=o,m=i?[0,0,1,1.4666,2.0166,2.663,3.4166]:[1,2.222,3.63,5.325,7.32,8.777,10.25];if(n===156||n===157){let f=zt(n,o),U=r>180?6:r>160?5:r>110?4:3;return Math.ceil(f*m[t-1]*U/100)}else{let f=a==="magicPower"&&l>c?l:c;if(i){let U=r>160?6:r>150?5:r>110?4:3;return Math.ceil(f*m[t-1]*U*3/100)}else{let U=r>110?4:3;return Math.ceil(f*m[t-1]*U/100)}}}function zt(t,{attackPower:o}){if(t===156)return o;let a=new Map([[100,102],[103,105],[105,107],[112,114],[117,121],[135,139],[169,173],[203,207],[293,297],[337,342]]).get(o);if(a===void 0)throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC744 \uBD80\uC5EC\uD560 \uC218 \uC5C6\uB294 \uD0DC\uB3C4 \uC7A5\uBE44\uC785\uB2C8\uB2E4. (Please submit issue with the gear info)");return a}function yt(t,{reqLevel:o}){return o<10?3*t:o>=250?700*t:Math.floor(o/10)*30*t}function Tt(t,{gearType:o}){if(u(o))throw TypeError("\uC774\uB3D9\uC18D\uB3C4 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function te(t,{gearType:o}){if(u(o))throw TypeError("\uC810\uD504\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function ee(t,{gearType:o}){if(!u(o))throw TypeError("\uB370\uBBF8\uC9C0(%) \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function oe(t,{reqLevel:o,gearType:r}){if(o<90||!u(r))throw TypeError("\uBCF4\uC2A4 \uACF5\uACA9 \uC2DC \uB370\uBBF8\uC9C0 \uC99D\uAC00(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 90 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return 2*t}function re(t,{reqLevel:o,gearType:r}){if(o<70&&!u(r))throw TypeError("\uC62C\uC2A4\uD0EF(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 70 \uC774\uC0C1 \uB610\uB294 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function ae(t,{reqLevel:o}){if(o<=0)throw TypeError("\uCC29\uC6A9 \uB808\uBCA8 \uAC10\uC18C \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 1 \uC774\uC0C1\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return Math.min(o,5*t)}function ne(t){return t.split("&")}function w(t,...o){let r=t;for(let a of o)for(let[n,i]of Object.entries(a))n in r?r[n]+=i:r[n]=i}function Ht(...t){let o={};return w(o,...t),o}function P(t){return t.exceptionalTotalUpgradeableCount>0}function H(t){return P(t)&&t.exceptionalUpgradeableCount>0}function y(t,o){if(!H(t))throw TypeError("\uC775\uC149\uC154\uB110 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption===void 0&&(t.data.exceptionalOption={}),w(t.data.exceptionalOption,o.option),t.data.exceptionalUpgradeableCount=t.exceptionalUpgradeableCount-1,t.data.exceptionalUpgradeCount=t.exceptionalUpgradeCount+1}function q(t){return P(t)}function T(t){if(!q(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption={},t.data.exceptionalUpgradeableCount=t.exceptionalTotalUpgradeableCount,t.data.exceptionalUpgradeCount=void 0}function S(t){return!t.attributes.cannotUpgrade&&t.scrollTotalUpgradeableCount>0}function L(t){return S(t)&&!t.attributes.blockGoldenHammer&&t.goldenHammer===0}function tt(t){if(!L(t))throw TypeError("\uD669\uAE08 \uB9DD\uCE58\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.goldenHammer=t.goldenHammer+1,t.data.scrollUpgradeableCount=t.scrollUpgradeableCount+1}function M(t){return S(t)&&t.scrollUpgradeableCount>0}function et(t){if(!M(t))throw TypeError("\uC8FC\uBB38\uC11C \uC2E4\uD328\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollResilienceCount=t.scrollResilienceCount+1}function G(t){return S(t)&&t.scrollResilienceCount>0}function ot(t){if(!G(t))throw TypeError("\uC5C5\uADF8\uB808\uC774\uB4DC \uAC00\uB2A5 \uD69F\uC218\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollResilienceCount=t.scrollResilienceCount-1,t.data.scrollUpgradeableCount=t.scrollUpgradeableCount+1}function j(t){return S(t)}function rt(t){if(!j(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption={},t.data.scrollUpgradeableCount=t.scrollTotalUpgradeableCount,t.data.scrollUpgradeCount=void 0,t.data.scrollResilienceCount=void 0,t.data.goldenHammer=void 0}function B(t){return S(t)&&t.scrollUpgradeableCount>0}function _(t,o){if(!B(t))throw TypeError("\uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption===void 0&&(t.data.upgradeOption={}),w(t.data.upgradeOption,o.option),t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollUpgradeCount=t.scrollUpgradeCount+1}var Pt=(c=>(c.str="str",c.dex="dex",c.int="int",c.luk="luk",c.maxHp="maxHp",c.allStat="allStat",c))(Pt||{});function at(t,o,r){let a=_t(t,o,r);_(t,a)}function _t(t,o,r){if(u(t.type)||t.type===134)return ie(t,o,r);if(t.type===108)return le(t,o,r);if(h(t.type)||t.type===115)return ce(t,o,r);if(b(t.type))return se(t,o,r);if(t.type===167)return pe(t,o,r);throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44 \uBD84\uB958\uC785\uB2C8\uB2E4.")}function ie(t,o,r){if(o==="allStat")throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let a=W(t),[n,i]=ue[r][a];o==="maxHp"&&(i*=50);let c=Rt(o),l,m;return i===0?(l=A(r,g(c)),m={[c]:n}):(l=A(r,g(c),g(o)),m={[c]:n,[o]:i}),{name:l,option:m,type:o,rate:r}}function le(t,o,r){let a=W(t),n=me[r][a],i,c;if(n===0)i=A(r,"\uBC29\uC5B4\uB825"),c={armor:3};else{let l=Rt(o);i=A(r,g(l)),c={[l]:n}}return{name:i,option:c,rate:r,type:o}}function ce(t,o,r){let a=W(t),[n,i,c]=de[r][a],l={maxHp:i,armor:c};switch(o){case"str":case"dex":case"int":case"luk":l[o]=n;break;case"maxHp":l.maxHp+=n*50;break;case"allStat":{if(!(r in qt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let f=qt[r][a];l.str=f,l.dex=f,l.int=f,l.luk=f;break}}return t.scrollUpgradeCount===3&&(t.req.beginner()?(l.attackPower=1,l.magicPower=1):t.req.magician()?l.magicPower=1:l.attackPower=1),{name:A(r,g(o)),option:l,type:o,rate:r}}function se(t,o,r){if(!(r in kt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let a=W(t),n=kt[r][a],i={};switch(o){case"str":case"dex":case"int":case"luk":i[o]=n;break;case"maxHp":i.maxHp=n*50;break;case"allStat":{if(!(r in Lt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let l=Lt[r][a];i.str=l,i.dex=l,i.int=l,i.luk=l;break}}return{name:A(r,g(o)),option:i,type:o,rate:r}}function pe(t,o,r){if(!(r in kt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let a=W(t),n=fe[r][a],i=Rt(o),c=A(r,g(i)),l={[i]:n};return{name:c,option:l,type:o,rate:r}}function A(t,o,r){return r?`${t.toString()}% ${o}(${r}) \uC8FC\uBB38\uC11C`:`${t.toString()}% ${o} \uC8FC\uBB38\uC11C`}function g(t){switch(t){case"str":return"\uD798";case"dex":return"\uBBFC\uCCA9";case"int":return"\uC9C0\uB825";case"luk":return"\uC6B4";case"maxHp":return"\uCCB4\uB825";case"allStat":return"\uC62C\uC2A4\uD0EF";case"attackPower":return"\uACF5\uACA9\uB825";case"magicPower":return"\uB9C8\uB825"}}function W(t){return t.req.level>110?2:t.req.level>70?1:0}function Rt(t){return t==="int"?"magicPower":"attackPower"}var ue={100:[[1,0],[2,0],[3,1]],70:[[2,0],[3,1],[5,2]],30:[[3,1],[5,2],[7,3]],15:[[5,2],[7,3],[9,4]]},de={100:[[1,5,1],[2,20,2],[3,30,3]],70:[[2,15,2],[3,40,4],[4,70,5]],30:[[3,30,4],[5,70,7],[7,120,10]],15:[[4,45,6],[7,110,10],[10,170,15]]},qt={30:[1,2,3],15:[2,3,4]},me={100:[0,1,1],70:[1,2,2],30:[2,3,3],15:[3,4,4]},kt={100:[1,1,2],70:[2,2,3],30:[3,4,5]},Lt={30:[1,2,3]},fe={100:[1,2,3],70:[2,3,5],30:[3,5,7]};var Mt="__GearOption_s87Ns2aQ";function d(t){return Mt in t?t:new Proxy(t,{get(o,r){if(r===Mt)return!0;if(r in vt)return o[r]??vt[r]},set(o,r,a){return r in vt?(o[r]=a,!0):!1},ownKeys(o){return Object.entries(o).filter(([,r])=>r!=0).map(([r])=>r)}})}var vt={str:0,dex:0,int:0,luk:0,strRate:0,dexRate:0,intRate:0,lukRate:0,maxHp:0,maxMp:0,maxHpRate:0,maxMpRate:0,maxDemonForce:0,attackPower:0,magicPower:0,attackPowerRate:0,magicPowerRate:0,armor:0,armorRate:0,speed:0,jump:0,knockback:0,bossDamage:0,normalDamage:0,ignoreMonsterArmor:0,allStat:0,damage:0,reqLevelDecrease:0,criticalRate:0,criticalDamage:0,cooltimeReduce:0,strLv:0,dexLv:0,intLv:0,lukLv:0};var Se=25,it=15,he=15,be=150;function k(t){return(t.data.maxStar??0)>0}function R(t,o=!1){if(!k(t))return!1;if(t.attributes.superior)return t.star<Math.min(he,t.maxStar);if(!o&&t.star>=t.maxStar)return!1;let r=t.starScroll?it:Se;return t.star<r}function V(t,o=!1){if(!R(t,o))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.star=t.star+1,t.attributes.superior?xe(t):u(t.type)||t.type===134?Oe(t):we(t)}function v(t,o=!1){return!k(t)||t.attributes.superior||t.req.level>be||!o&&t.star>=t.maxStar?!1:t.star<it}function F(t,o=!1,r=!1){if(!v(t,r))throw TypeError("\uB180\uB77C\uC6B4 \uC7A5\uBE44 \uAC15\uD654 \uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starScroll=!0,t.data.star=t.star+1;let a=x(Ce,t),n=x(Ee,t),i=u(t.type)||t.type===134;for(let l of J)Ct(t,l)>0&&(s(t)[l]+=a,o&&b(t.type)&&(s(t)[l]+=t.star>5?2:1));for(let l of jt){let m=Ct(t,l);m>0&&(i&&(s(t)[l]+=Math.floor(m/50)+1),s(t)[l]+=n,o&&(i||t.type===109)&&(s(t)[l]+=1))}o&&h(t.type)&&(s(t).maxHp+=50);let c=Ct(t,"armor");c>0&&(s(t).armor+=Math.floor(c/20)+1)}function N(t){return!!k(t)}function lt(t){if(!N(t))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starforceOption={},t.data.star=void 0,t.data.starScroll=void 0}function xe(t){let o=x(_e,t),r=x(Pe,t);for(let n of J)t.baseOption[n]>0&&(s(t)[n]+=o);for(let n of jt)t.baseOption[n]>0&&(s(t)[n]+=r);let a=nt(t,"armor");s(t).armor+=Math.floor(a/20)+1}function Oe(t){let o=x(Bt,t),r=x(ke,t),a=Gt(t);for(let c of J)(a.has(c)||t.star>15&&(t.baseOption[c]>0||t.upgradeOption[c]>0))&&(s(t)[c]+=o);let n=t.req.magician()||t.upgradeOption.magicPower>0;if(t.star>15)s(t).attackPower+=r,n&&(s(t).magicPower+=r);else{let c=nt(t,"attackPower");if(s(t).attackPower+=Math.floor(c/50)+1,n){let l=nt(t,"magicPower");s(t).magicPower+=Math.floor(l/50)+1}}let i=Wt[t.star];s(t).maxHp+=i,s(t).maxMp+=i}function we(t){let o=x(Bt,t),r=x(Ae,t),a=Gt(t);for(let n of J)(a.has(n)||t.star>15&&(t.baseOption[n]>0||t.upgradeOption[n]>0))&&(s(t)[n]+=o);if(s(t).attackPower+=r,s(t).magicPower+=r,t.type===108){let n=Re[t.star];t.req.beginner()?(s(t).attackPower+=n,s(t).magicPower+=n):t.req.magician()?s(t).magicPower+=n:s(t).attackPower+=n}if(t.type!==167){let n=nt(t,"armor");s(t).armor+=Math.floor(n/20)+1}if(ge.includes(t.type)){let n=Wt[t.star];s(t).maxHp+=n}if(t.type===107){let n=ve[t.star];s(t).speed+=n,s(t).jump+=n}}function Gt(t){if(t.req.beginner())return new Set(J);let o=[];return t.req.warrior()&&o.push("str","dex"),t.req.magician()&&o.push("int","luk"),t.req.bowman()&&o.push("dex","str"),t.req.thief()&&o.push("luk","dex"),t.req.pirate()&&o.push("str","dex"),new Set(o)}function x(t,o){let r=o.req.level;for(let a=t.length-1;a>=0;a--){let n=t[a];if(r>=n[0])return n[o.star]}throw TypeError("\uC7A5\uBE44\uC758 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8\uC740 0 \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.")}function s(t){return t.data.starforceOption===void 0&&(t.data.starforceOption={}),d(t.data.starforceOption)}function nt(t,o){return t.baseOption[o]+t.upgradeOption[o]+t.starforceOption[o]}function Ct(t,o){return t.baseOption[o]+t.addOption[o]+t.upgradeOption[o]+t.starforceOption[o]}var J=["str","dex","int","luk"],jt=["attackPower","magicPower"],ge=[100,104,105,106,110,111,112,113,115,109],Bt=[[0,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0],[108,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0],[118,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,0,0,0],[128,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,7,7,7,7,7,7,7,0,0,0],[138,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,9,9,9,9,9,9,9,0,0,0],[148,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,11,11,11,11,11,11,11,0,0,0],[158,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,13,13,13,13,13,13,13,0,0,0],[198,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,15,15,15,15,15,15,15,0,0,0],[248,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,17,17,17,17,17,17,17,0,0,0]],Ae=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,7,8,9,10,12,13,15,17],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,8,9,10,11,13,14,16,18],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,17,19,21,23],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,13,14,15,16,17,19,21,23,25],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,15,16,17,18,19,21,23,25,27]],ke=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,5,5,6,7,8,9,27,28,29],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,6,7,8,9,10,28,29,30],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,7,8,9,10,11,29,30,31],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,8,9,10,11,12,30,31,32],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,9,10,11,12,13,31,32,33],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,10,11,12,13,14,32,33,34],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,13,14,14,15,16,17,34,35,36],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,16,16,17,18,19,36,37,38]],Pe=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[110,0,0,0,0,0,5,6,7,0,0,0,0,0,0,0],[150,0,0,0,0,0,9,10,11,12,13,15,17,19,21,23]],_e=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Re=[-1,0,0,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0],Wt=[-1,5,5,5,10,10,15,15,20,20,25,25,25,25,25,25,0,0,0,0,0,0,0,0,0,0],ve=[-1,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0],Ce=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[85,3,4,6,9,13,0,0,0,0,0,0,0,0,0,0],[90,4,5,7,10,14,0,0,0,0,0,0,0,0,0,0],[95,5,6,8,11,15,0,0,0,0,0,0,0,0,0,0],[100,7,8,10,13,17,0,0,0,0,0,0,0,0,0,0],[105,8,9,11,14,18,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[115,10,11,13,16,20,0,0,0,0,0,0,0,0,0,0],[120,12,13,15,18,22,0,0,0,0,0,0,0,0,0,0],[125,13,14,16,19,23,0,0,0,0,0,0,0,0,0,0],[130,14,15,17,20,24,0,0,0,0,0,0,0,0,0,0],[135,15,16,18,21,25,0,0,0,0,0,0,0,0,0,0],[140,17,18,20,23,27,0,0,0,0,0,0,0,0,0,0],[145,18,19,21,24,28,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Ee=[[0,0,0,0,0,0,1,2,3,4,5,6,8,10,12,14],[80,0,0,0,0,0,2,3,4,5,6,7,9,11,13,15],[90,0,0,0,0,0,3,4,5,6,7,8,10,12,14,16],[100,0,0,0,0,0,4,5,6,7,8,9,11,13,15,17],[110,0,0,0,0,0,5,6,7,8,9,10,12,14,16,18],[120,0,0,0,0,0,6,7,8,9,10,11,13,15,17,19],[130,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[140,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21],[150,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22]];var C=class{data;constructor(o){this.data=o}get only(){return this.data.only??!1}get trade(){return this.data.trade??0}set trade(o){this.data.trade=o}get onlyEquip(){return this.data.onlyEquip??!1}get share(){return this.data.share??0}get blockGoldenHammer(){return this.data.blockGoldenHammer??!1}get superior(){return this.data.superior??!1}get attackSpeed(){return this.data.attackSpeed}get cannotUpgrade(){return this.data.cannotUpgrade??!1}get canAddOption(){return this.data.canAddOption??0}get canPotential(){return this.data.canPotential??0}get canAdditionalPotential(){return this.data.canAdditionalPotential??0}get specialGrade(){return this.data.specialGrade??!1}get reqLevelIncrease(){return this.data.reqLevelIncrease??0}get cuttable(){return this.data.cuttable??0}get cuttableCount(){return this.data.cuttableCount}set cuttableCount(o){this.data.cuttableCount=o}get accountShareTag(){return this.data.accountShareTag??!1}get lucky(){return this.data.lucky??!1}get incline(){return{charisma:0,insight:0,will:0,craft:0,sense:0,charm:0,...this.data.incline}}set incline(o){this.data.incline=o}get bossReward(){return this.data.bossReward??!1}get growthExp(){return this.data.growthExp}set growthExp(o){(o===void 0||0<=o&&o<=100)&&(this.data.growthExp=o)}get growthLevel(){return this.data.growthLevel}set growthLevel(o){this.data.growthLevel=o}get dateExpire(){return this.data.dateExpire}set dateExpire(o){(o===void 0||!Number.isNaN(Date.parse(o)))&&(this.data.dateExpire=o)}};var E=class{data;constructor(o){this.data=o}get level(){return this.data.level??0}get str(){return this.data.str??0}get dex(){return this.data.dex??0}get int(){return this.data.int??0}get luk(){return this.data.luk??0}get job(){return this.data.job??0}get class(){return this.data.class??0}beginner(){return this.job===0}warrior(){return this.job===0||(this.job&1)!=0}magician(){return this.job===0||(this.job&2)!=0}bowman(){return this.job===0||(this.job&4)!=0}thief(){return this.job===0||(this.job&8)!=0}pirate(){return this.job===0||(this.job&16)!=0}};function X(t){return u(t.type)&&t.req.level>=30}function $(t){return X(t)&&!t.soulEnchanted}function ct(t){if(!$(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0\uC740 \uC911\uBCF5\uD574\uC11C \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");t.data.soulSlot={}}function K(t){return t.soulEnchanted}function st(t,o){if(!K(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uC18C\uC6B8\uC744 \uC7A5\uCC29\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.soul=o,Vt(t)}function Q(t){return t.soulEnchanted}function pt(t,o){if(!Q(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uB9CC \uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC744 \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");if(o<0||o>1e3)throw TypeError("\uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC740 0 \uC774\uC0C1 1000 \uC774\uD558\uC758 \uAC12\uC73C\uB85C\uB9CC \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.charge=o,Vt(t)}function ut(t){t.data.soulSlot=void 0}function Vt(t){let o;if(t.soulCharge===0)o={};else{let r=t.baseOption.attackPower>=t.baseOption.magicPower?"attackPower":"magicPower",a=Math.min(5,Math.ceil(t.soulCharge/100)-1);t.soul?o={[r]:10+a*(t.soul.chargeFactor??1)}:o={[r]:5+a}}t.data.soulSlot.chargeOption=o}var dt=class{data;constructor(o){this.data=o}get meta(){return this.data.meta}get name(){return this.data.name}get icon(){return this.data.icon??""}get desc(){return this.data.desc}get shape(){return this.data.shape}set shape(o){this.data.shape=o}get shapeIcon(){return this.shape?.icon??this.icon}get type(){return this.data.type}get req(){return new E(this.data.req)}get attributes(){return new C(this.data.attributes)}get totalOption(){return d(Ht(this.baseOption,this.addOption,this.upgradeOption,this.starforceOption))}get baseOption(){return d(this.data.baseOption??{})}get addOption(){return d(this.data.addOption??{})}get upgradeOption(){return d(this.data.upgradeOption??{})}get starforceOption(){return d(this.data.starforceOption??{})}get scrollUpgradeCount(){return this.data.scrollUpgradeCount??0}get scrollResilienceCount(){return this.data.scrollResilienceCount??0}get scrollUpgradeableCount(){return this.data.scrollUpgradeableCount??0}get goldenHammer(){return this.data.goldenHammer??0}get scrollTotalUpgradeableCount(){return this.scrollUpgradeCount+this.scrollUpgradeableCount+this.scrollResilienceCount-this.goldenHammer}get star(){return this.data.star??0}get maxStar(){let o=this.data.maxStar??0;return Math.max(this.star,this.starScroll?Math.min(it,o):o)}get starScroll(){return this.data.starScroll??!1}get soulEnchanted(){return this.data.soulSlot!==void 0}get soul(){if(this.data.soulSlot?.soul)return{...this.data.soulSlot.soul,option:d(this.data.soulSlot.soul.option)}}get soulCharge(){return this.data.soulSlot?.charge??0}get soulChargeOption(){return d(this.data.soulSlot?.chargeOption??{})}get potentialGrade(){return this.data.potentialGrade??0}set potentialGrade(o){this.data.potentialGrade=o}get potentials(){return this.data.potentials===void 0&&(this.data.potentials=[]),this.data.potentials}set potentials(o){this.data.potentials=[...o]}get additionalPotentialGrade(){return this.data.additionalPotentialGrade??0}set additionalPotentialGrade(o){this.data.additionalPotentialGrade=o}get additionalPotentials(){return this.data.additionalPotentials===void 0&&(this.data.additionalPotentials=[]),this.data.additionalPotentials}set additionalPotentials(o){this.data.additionalPotentials=o}get exceptionalOption(){return d(this.data.exceptionalOption??{})}get exceptionalUpgradeCount(){return this.data.exceptionalUpgradeCount??0}get exceptionalUpgradeableCount(){return this.data.exceptionalUpgradeableCount??0}get exceptionalTotalUpgradeableCount(){return this.exceptionalUpgradeCount+this.exceptionalUpgradeableCount}get supportsAddOption(){return Z(this.type)}applyAddOption(o,r){let a=z(this,o,r);this.data.addOption||(this.data.addOption={}),w(this.data.addOption,a),this.meta.add.push([o,r])}resetAddOption(){this.data.addOption=void 0,this.meta.add=[]}get supportsUpgrade(){return S(this)}get canApplyGoldenHammer(){return L(this)}applyGoldenHammer(){tt(this)}get canApplyFailScroll(){return M(this)}applyScrollFail(){et(this)}get canApplyResileScroll(){return G(this)}applyScrollResile(){ot(this)}get canResetUpgrade(){return j(this)}resetUpgrade(){rt(this)}get canApplyScroll(){return B(this)}applyScroll(o){_(this,o)}applySpellTrace(o,r){at(this,o,r)}get supportsStarforce(){return k(this)}get canApplyStarforce(){return R(this)}applyStarforce(){V(this)}get canApplyStarforceIgnoringMaxStar(){return R(this,!0)}applyStarforceIgnoringMaxStar(){V(this,!0)}get canApplyStarScroll(){return v(this)}applyStarScroll(o=!1){F(this,o)}get canApplyStarScrollIgnoringMaxStar(){return v(this,!0)}applyStarScrollIgnoringMaxStar(o=!1){F(this,o,!0)}get canResetStarforce(){return N(this)}resetStarforce(){lt(this)}get supportsSoul(){return X(this)}get canApplySoulEnchant(){return $(this)}applySoulEnchant(){ct(this)}get canSetSoul(){return K(this)}setSoul(o){st(this,o)}get canSetSoulCharge(){return Q(this)}setSoulCharge(o){pt(this,o)}resetSoulEnchant(){ut(this)}get supportsExceptional(){return P(this)}get canApplyExceptional(){return H(this)}applyExceptional(o){y(this,o)}get canResetExceptional(){return q(this)}resetExceptional(){T(this)}};
1
+ "use strict";var _t=Object.defineProperty;var Tt=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ee=Object.prototype.hasOwnProperty;var oe=(t,o)=>{for(var a in o)_t(t,a,{get:o[a],enumerable:!0})},ae=(t,o,a,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of te(o))!ee.call(t,r)&&r!==a&&_t(t,r,{get:()=>o[r],enumerable:!(n=Tt(o,r))||n.enumerable});return t};var ne=t=>ae(_t({},"__esModule",{value:!0}),t);var Xe={};oe(Xe,{AddOptionType:()=>et,Gear:()=>gt,GearAttribute:()=>U,GearCapability:()=>b,GearCuttable:()=>kt,GearReq:()=>G,GearShare:()=>Ct,GearTrade:()=>vt,GearType:()=>x,PotentialGrade:()=>H,ReadonlyGear:()=>q,SpellTraceType:()=>qt,applyAddOption:()=>ot,applyExceptional:()=>rt,applyScroll:()=>I,applySoulEnchant:()=>ft,applySpellTrace:()=>Pt,canApplyAddOption:()=>M,canApplyExceptional:()=>j,canApplyScroll:()=>Q,canApplySoulEnchant:()=>N,canFailScroll:()=>X,canResetAddOption:()=>B,canResetExceptional:()=>W,canResetStarforce:()=>T,canResetUpgrade:()=>K,canResileScroll:()=>$,canSetAdditionalPotential:()=>E,canSetPotential:()=>k,canSetSoul:()=>F,canSetSoulCharge:()=>J,canStarScroll:()=>D,canStarforce:()=>y,failScroll:()=>bt,getAddOption:()=>Ut,getAddOptionValue:()=>nt,getMaxStar:()=>Rt,getSpellTraceScroll:()=>Lt,isAccessory:()=>g,isArmor:()=>R,isDoubleHandWeapon:()=>yt,isDragonGear:()=>Ft,isLeftWeapon:()=>It,isMechanicGear:()=>Nt,isShield:()=>Dt,isSubWeapon:()=>Vt,isWeapon:()=>p,resetAddOption:()=>at,resetAdditionalPotential:()=>ut,resetExceptional:()=>it,resetPotential:()=>ct,resetSoulEnchant:()=>ht,resetStarforce:()=>At,resetUpgrade:()=>Ot,resileScroll:()=>xt,setAdditionalPotential:()=>pt,setPotential:()=>st,setSoul:()=>mt,setSoulCharge:()=>St,starScroll:()=>z,starforce:()=>Z,supportsAddOption:()=>v,supportsAdditionalPotential:()=>dt,supportsExceptional:()=>C,supportsPotential:()=>lt,supportsSoul:()=>V,supportsStarforce:()=>A,supportsUpgrade:()=>S,toGearOption:()=>u});module.exports=ne(Xe);var et=(d=>(d.str="str",d.dex="dex",d.int="int",d.luk="luk",d.str_dex="str,dex",d.str_int="str,int",d.str_luk="str,luk",d.dex_int="dex,int",d.dex_luk="dex,luk",d.int_luk="int,luk",d.maxHp="maxHp",d.maxMp="maxMp",d.attackPower="attackPower",d.magicPower="magicPower",d.armor="armor",d.speed="speed",d.jump="jump",d.bossDamage="bossDamage",d.damage="damage",d.allStat="allStat",d.reqLevelDecrease="reqLevelDecrease",d))(et||{});var vt=(n=>(n[n.Tradeable=0]="Tradeable",n[n.TradeBlock=1]="TradeBlock",n[n.EquipTradeBlock=2]="EquipTradeBlock",n))(vt||{}),Ct=(n=>(n[n.None=0]="None",n[n.AccountSharable=1]="AccountSharable",n[n.AccountSharableOnce=2]="AccountSharableOnce",n))(Ct||{}),b=(n=>(n[n.Cannot=0]="Cannot",n[n.Can=1]="Can",n[n.Fixed=2]="Fixed",n))(b||{}),kt=(n=>(n[n.None=0]="None",n[n.Silver=1]="Silver",n[n.Platinum=2]="Platinum",n))(kt||{});var x=(e=>(e[e.cap=100]="cap",e[e.faceAccessory=101]="faceAccessory",e[e.eyeAccessory=102]="eyeAccessory",e[e.earrings=103]="earrings",e[e.coat=104]="coat",e[e.longcoat=105]="longcoat",e[e.pants=106]="pants",e[e.shoes=107]="shoes",e[e.glove=108]="glove",e[e.cape=110]="cape",e[e.ring=111]="ring",e[e.pendant=112]="pendant",e[e.belt=113]="belt",e[e.medal=114]="medal",e[e.shoulder=115]="shoulder",e[e.pocket=116]="pocket",e[e.badge=118]="badge",e[e.android=166]="android",e[e.machineHeart=167]="machineHeart",e[e.shield=109]="shield",e[e.emblem=119]="emblem",e[e.powerSource=119020]="powerSource",e[e.shiningRod=1212]="shiningRod",e[e.tuner=1213]="tuner",e[e.breathShooter=1214]="breathShooter",e[e.soulShooter=122]="soulShooter",e[e.desperado=123]="desperado",e[e.energySword=124]="energySword",e[e.espLimiter=126]="espLimiter",e[e.chain=127]="chain",e[e.magicGauntlet=128]="magicGauntlet",e[e.ritualFan=129]="ritualFan",e[e.ohSword=130]="ohSword",e[e.ohAxe=131]="ohAxe",e[e.ohBlunt=132]="ohBlunt",e[e.dagger=133]="dagger",e[e.katara=134]="katara",e[e.cane=136]="cane",e[e.wand=137]="wand",e[e.staff=138]="staff",e[e.thSword=140]="thSword",e[e.chakram=1404]="chakram",e[e.thAxe=141]="thAxe",e[e.thBlunt=142]="thBlunt",e[e.spear=143]="spear",e[e.polearm=144]="polearm",e[e.bow=145]="bow",e[e.crossbow=146]="crossbow",e[e.claw=147]="claw",e[e.knuckle=148]="knuckle",e[e.gun=149]="gun",e[e.shovel=150]="shovel",e[e.pickaxe=151]="pickaxe",e[e.dualBowguns=152]="dualBowguns",e[e.handCannon=153]="handCannon",e[e.heavySword=156]="heavySword",e[e.longSword=157]="longSword",e[e.gauntletRevolver=158]="gauntletRevolver",e[e.ancientBow=159]="ancientBow",e[e.soulShield=1098]="soulShield",e[e.demonShield=1099]="demonShield",e[e.magicArrow=135200]="magicArrow",e[e.card=135210]="card",e[e.medallion=135220]="medallion",e[e.rosary=135221]="rosary",e[e.ironChain=135222]="ironChain",e[e.magicBook1=135223]="magicBook1",e[e.magicBook2=135224]="magicBook2",e[e.magicBook3=135225]="magicBook3",e[e.arrowFletching=135226]="arrowFletching",e[e.bowThimble=135227]="bowThimble",e[e.daggerScabbard=135228]="daggerScabbard",e[e.charm=135229]="charm",e[e.orb=135240]="orb",e[e.dragonEssence=135250]="dragonEssence",e[e.soulRing=135260]="soulRing",e[e.magnum=135270]="magnum",e[e.wristBand=135290]="wristBand",e[e.farSight=135291]="farSight",e[e.powderKeg=135292]="powderKeg",e[e.mass=135293]="mass",e[e.document=135294]="document",e[e.magicMarble=135295]="magicMarble",e[e.arrowhead=135296]="arrowhead",e[e.jewel=135297]="jewel",e[e.powderKeg2=135298]="powderKeg2",e[e.controller=135300]="controller",e[e.foxMarble=135310]="foxMarble",e[e.chessPiece=135320]="chessPiece",e[e.transmitter=135330]="transmitter",e[e.charge=135340]="charge",e[e.magicWing=135350]="magicWing",e[e.pathOfAbyss=135360]="pathOfAbyss",e[e.relic=135370]="relic",e[e.fanTassel=135380]="fanTassel",e[e.bracelet=135400]="bracelet",e[e.weaponBelt=135401]="weaponBelt",e[e.ornament=135402]="ornament",e[e.hexSeeker=135403]="hexSeeker",e[e.petEquip=180]="petEquip",e[e.machineEngine=161]="machineEngine",e[e.machineArms=162]="machineArms",e[e.machineLegs=163]="machineLegs",e[e.machineBody=164]="machineBody",e[e.machineTransistors=165]="machineTransistors",e[e.dragonMask=194]="dragonMask",e[e.dragonPendant=195]="dragonPendant",e[e.dragonWings=196]="dragonWings",e[e.dragonTail=197]="dragonTail",e))(x||{});var H=(i=>(i[i.Normal=0]="Normal",i[i.Rare=1]="Rare",i[i.Epic=2]="Epic",i[i.Unique=3]="Unique",i[i.Legendary=4]="Legendary",i))(H||{});var jt="__GearOption_s87Ns2aQ";function u(t){return jt in t?t:new Proxy(t,{get(o,a){if(a===jt)return!0;if(a in Et)return o[a]??Et[a]},set(o,a,n){return a in Et?(o[a]=n,!0):!1},ownKeys(o){return Object.entries(o).filter(([,a])=>a!=0).map(([a])=>a)}})}function O(t,...o){let a=t;for(let n of o)for(let[r,i]of Object.entries(n))r in a?a[r]+=i:a[r]=i}function Wt(...t){let o={};return O(o,...t),o}var Et={str:0,dex:0,int:0,luk:0,strRate:0,dexRate:0,intRate:0,lukRate:0,maxHp:0,maxMp:0,maxHpRate:0,maxMpRate:0,maxDemonForce:0,attackPower:0,magicPower:0,attackPowerRate:0,magicPowerRate:0,armor:0,armorRate:0,speed:0,jump:0,bossDamage:0,normalDamage:0,ignoreMonsterArmor:0,allStat:0,damage:0,reqLevelDecrease:0,criticalRate:0,criticalDamage:0,cooltimeReduce:0,strLv:0,dexLv:0,intLv:0,lukLv:0};function p(t){return It(t)||yt(t)}function It(t){return 121<=t&&t<=139&&t!==134||Math.floor(t/10)===121}function yt(t){return t>=140&&t<=149||t>=152&&t<=159||Math.floor(t/10)===140}function Vt(t){if(Dt(t))return!0;switch(t){case 134:return!0;default:return Math.floor(t/1e3)===135}}function Dt(t){switch(t){case 109:case 1099:case 1098:return!0;default:return!1}}function R(t){return t===100||t>=104&&t<=110||t===1098||t===1099}function g(t){return t>=101&&t<=103||t>=111&&t<=113||t===115}function Nt(t){return t>=161&&t<=165}function Ft(t){return t>=194&&t<=197}var re=4;function v(t){return t.attributes.canAddOption===1}function M(t){return!(!v(t)||t.addOptions.length===re)}function ot(t,o,a){if(!M(t))throw TypeError("\uCD94\uAC00 \uC635\uC158\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.addOption===void 0&&(t.data.addOption={});let n=Ut(t,o,a);O(t.data.addOption,n),t.data.addOptions===void 0&&(t.data.addOptions=[]);let r=nt(t,o,a);t.data.addOptions.push({type:o,grade:a,value:r})}function B(t){return!!v(t)}function at(t){if(!B(t))throw TypeError("\uCD94\uAC00 \uC635\uC158\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.addOption=void 0,t.data.addOptions=void 0}function Ut(t,o,a){let n=be(o),r=nt(t,o,a),i=n.map(s=>[s,r]);return Object.fromEntries(i)}function nt(t,o,a){let n={type:o,reqLevel:t.req.level+t.req.levelIncrease,gearType:t.type,bossReward:t.attributes.bossReward,attackPower:t.baseOption.attackPower,magicPower:t.baseOption.magicPower};switch(o){case"str":case"dex":case"int":case"luk":return Jt(a,n);case"str,dex":case"str,int":case"str,luk":case"dex,int":case"dex,luk":case"int,luk":return ie(a,n);case"armor":return Jt(a,n);case"attackPower":case"magicPower":return le(a,n);case"maxHp":case"maxMp":return de(a,n);case"speed":return pe(a,n);case"jump":return ue(a,n);case"damage":return fe(a,n);case"bossDamage":return me(a,n);case"allStat":return Se(a,n);case"reqLevelDecrease":return he(a,n)}}function Jt(t,{reqLevel:o}){return o>=250?Math.floor(o/20)*t:(Math.floor(o/20)+1)*t}function ie(t,{reqLevel:o}){return(Math.floor(o/40)+1)*t}function le(t,o){let{reqLevel:a,gearType:n}=o;if(p(n))return se(t,o);if(a>=60)return t;throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 60 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.")}function se(t,o){let{reqLevel:a,type:n,gearType:r,bossReward:i,attackPower:s,magicPower:l}=o,f=i?[0,0,1,1.4666,2.0166,2.663,3.4166]:[1,2.222,3.63,5.325,7.32,8.777,10.25];if(r===156||r===157){let m=ce(r,o),L=a>180?6:a>160?5:a>110?4:3;return Math.ceil(m*f[t-1]*L/100)}else{let m=n==="magicPower"&&l>s?l:s;if(i){let L=a>160?6:a>150?5:a>110?4:3;return Math.ceil(m*f[t-1]*L*3/100)}else{let L=a>110?4:3;return Math.ceil(m*f[t-1]*L/100)}}}function ce(t,{attackPower:o}){if(t===156)return o;let n=new Map([[100,102],[103,105],[105,107],[112,114],[117,121],[135,139],[169,173],[203,207],[293,297],[337,342]]).get(o);if(n===void 0)throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC744 \uBD80\uC5EC\uD560 \uC218 \uC5C6\uB294 \uD0DC\uB3C4 \uC7A5\uBE44\uC785\uB2C8\uB2E4. (Please submit issue with the gear info)");return n}function de(t,{reqLevel:o}){return o<10?3*t:o>=250?700*t:Math.floor(o/10)*30*t}function pe(t,{gearType:o}){if(p(o))throw TypeError("\uC774\uB3D9\uC18D\uB3C4 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function ue(t,{gearType:o}){if(p(o))throw TypeError("\uC810\uD504\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function fe(t,{gearType:o}){if(!p(o))throw TypeError("\uB370\uBBF8\uC9C0(%) \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function me(t,{reqLevel:o,gearType:a}){if(o<90||!p(a))throw TypeError("\uBCF4\uC2A4 \uACF5\uACA9 \uC2DC \uB370\uBBF8\uC9C0 \uC99D\uAC00(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 90 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return 2*t}function Se(t,{reqLevel:o,gearType:a}){if(o<70&&!p(a))throw TypeError("\uC62C\uC2A4\uD0EF(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 70 \uC774\uC0C1 \uB610\uB294 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function he(t,{reqLevel:o}){if(o<=0)throw TypeError("\uCC29\uC6A9 \uB808\uBCA8 \uAC10\uC18C \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 1 \uC774\uC0C1\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return Math.min(o,5*t)}function be(t){return t.split(",")}function C(t){return t.exceptionalTotalUpgradeableCount>0}function j(t){return C(t)&&t.exceptionalUpgradeableCount>0}function rt(t,o){if(!j(t))throw TypeError("\uC775\uC149\uC154\uB110 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption===void 0&&(t.data.exceptionalOption={}),O(t.data.exceptionalOption,o.option),t.data.exceptionalUpgradeableCount=t.exceptionalUpgradeableCount-1,t.data.exceptionalUpgradeCount=t.exceptionalUpgradeCount+1}function W(t){return C(t)}function it(t){if(!W(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption={},t.data.exceptionalUpgradeableCount=t.exceptionalTotalUpgradeableCount,t.data.exceptionalUpgradeCount=void 0}function lt(t){return t.attributes.canPotential===1}function k(t){return t.attributes.canPotential===1}function st(t,o,a){if(!k(t))throw new TypeError("\uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");if(o===0)throw new TypeError("\uC7A0\uC7AC\uB2A5\uB825 \uB4F1\uAE09\uC744 Normal\uB85C \uC124\uC815\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. (\uC7A0\uC7AC\uB2A5\uB825\uC744 \uCD08\uAE30\uD654\uD558\uB824\uBA74 resetPotential\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.)");if(a.length<1||a.length>3)throw new TypeError("\uC7A0\uC7AC\uC635\uC158 \uAC1C\uC218\uB294 1\uAC1C\uC5D0\uC11C 3\uAC1C \uC0AC\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4.");t.data.potentialGrade=o,t.data.potentials=a}function ct(t){if(!k(t))throw new TypeError("\uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.potentialGrade=0,t.data.potentials=void 0}function dt(t){return t.attributes.canAdditionalPotential===1}function E(t){return t.attributes.canAdditionalPotential===1}function pt(t,o,a){if(!E(t))throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");if(o===0)throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825 \uB4F1\uAE09\uC744 Normal\uB85C \uC124\uC815\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. (\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825\uC744 \uCD08\uAE30\uD654\uD558\uB824\uBA74 resetAdditionalPotential\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.)");if(a.length<1||a.length>3)throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uC635\uC158 \uAC1C\uC218\uB294 1\uAC1C\uC5D0\uC11C 3\uAC1C \uC0AC\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4.");t.data.additionalPotentialGrade=o,t.data.additionalPotentials=a}function ut(t){if(!E(t))throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.additionalPotentialGrade=0,t.data.additionalPotentials=void 0}function V(t){return p(t.type)}function N(t){return V(t)&&!t.soulEnchanted}function ft(t){if(!N(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0\uC740 \uC911\uBCF5\uD574\uC11C \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");t.data.soulSlot={}}function F(t){return t.soulEnchanted}function mt(t,o){if(!F(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uC18C\uC6B8\uC744 \uC7A5\uCC29\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.soul=o,Xt(t)}function J(t){return t.soulEnchanted}function St(t,o){if(!J(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uB9CC \uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC744 \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");if(o<0||o>1e3)throw TypeError("\uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC740 0 \uC774\uC0C1 1000 \uC774\uD558\uC758 \uAC12\uC73C\uB85C\uB9CC \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.charge=o,Xt(t)}function ht(t){t.data.soulSlot=void 0}function Xt(t){let o;if(t.soulCharge===0)o={};else{let a=t.baseOption.attackPower>=t.baseOption.magicPower?"attackPower":"magicPower",n=Math.min(5,Math.ceil(t.soulCharge/100)-1);t.soul?o={[a]:10+n*(t.soul.chargeFactor??1)}:o={[a]:5+n}}t.data.soulSlot.chargeOption=o}function S(t){return t.attributes.canScroll===1}function X(t){return S(t)&&t.scrollUpgradeableCount>0}function bt(t){if(!X(t))throw TypeError("\uC8FC\uBB38\uC11C \uC2E4\uD328\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollResilienceCount=t.scrollResilienceCount+1}function $(t){return S(t)&&t.scrollResilienceCount>0}function xt(t){if(!$(t))throw TypeError("\uC5C5\uADF8\uB808\uC774\uB4DC \uAC00\uB2A5 \uD69F\uC218\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollResilienceCount=t.scrollResilienceCount-1,t.data.scrollUpgradeableCount=t.scrollUpgradeableCount+1}function K(t){return S(t)}function Ot(t){if(!K(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption={},t.data.scrollUpgradeableCount=t.scrollTotalUpgradeableCount,t.data.scrollUpgradeCount=void 0,t.data.scrollResilienceCount=void 0}function Q(t){return S(t)&&t.scrollUpgradeableCount>0}function I(t,o){if(!Q(t))throw TypeError("\uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption===void 0&&(t.data.upgradeOption={}),O(t.data.upgradeOption,o.option),t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollUpgradeCount=t.scrollUpgradeCount+1}var qt=(s=>(s.str="str",s.dex="dex",s.int="int",s.luk="luk",s.maxHp="maxHp",s.allStat="allStat",s))(qt||{});function Pt(t,o,a){let n=Lt(t,o,a);I(t,n)}function Lt(t,o,a){if(p(t.type)||t.type===134)return xe(t,o,a);if(t.type===108)return Oe(t,o,a);if(R(t.type)||t.type===115)return Pe(t,o,a);if(g(t.type))return we(t,o,a);if(t.type===167)return Ae(t,o,a);throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44 \uBD84\uB958\uC785\uB2C8\uB2E4.")}function xe(t,o,a){if(o==="allStat")throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let n=Y(t),[r,i]=Re[a][n];o==="maxHp"&&(i*=50);let s=Ht(o),l,f;return i===0?(l=w(a,P(s)),f={[s]:r}):(l=w(a,P(s),P(o)),f={[s]:r,[o]:i}),{name:l,option:f,type:o,rate:a}}function Oe(t,o,a){let n=Y(t),r=_e[a][n],i,s;if(r===0)i=w(a,"\uBC29\uC5B4\uB825"),s={armor:3};else{let l=Ht(o);i=w(a,P(l)),s={[l]:r}}return{name:i,option:s,rate:a,type:o}}function Pe(t,o,a){let n=Y(t),[r,i,s]=ge[a][n],l={maxHp:i,armor:s};switch(o){case"str":case"dex":case"int":case"luk":l[o]=r;break;case"maxHp":l.maxHp+=r*50;break;case"allStat":{if(!(a in $t))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let m=$t[a][n];l.str=m,l.dex=m,l.int=m,l.luk=m;break}}return t.scrollUpgradeCount===3&&(t.req.beginner()?(l.attackPower=1,l.magicPower=1):t.req.magician()?l.magicPower=1:l.attackPower=1),{name:w(a,P(o)),option:l,type:o,rate:a}}function we(t,o,a){if(!(a in Gt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let n=Y(t),r=Gt[a][n],i={};switch(o){case"str":case"dex":case"int":case"luk":i[o]=r;break;case"maxHp":i.maxHp=r*50;break;case"allStat":{if(!(a in Kt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let l=Kt[a][n];i.str=l,i.dex=l,i.int=l,i.luk=l;break}}return{name:w(a,P(o)),option:i,type:o,rate:a}}function Ae(t,o,a){if(!(a in Gt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let n=Y(t),r=ve[a][n],i=Ht(o),s=w(a,P(i)),l={[i]:r};return{name:s,option:l,type:o,rate:a}}function w(t,o,a){return a?`${t.toString()}% ${o}(${a}) \uC8FC\uBB38\uC11C`:`${t.toString()}% ${o} \uC8FC\uBB38\uC11C`}function P(t){switch(t){case"str":return"\uD798";case"dex":return"\uBBFC\uCCA9";case"int":return"\uC9C0\uB825";case"luk":return"\uC6B4";case"maxHp":return"\uCCB4\uB825";case"allStat":return"\uC62C\uC2A4\uD0EF";case"attackPower":return"\uACF5\uACA9\uB825";case"magicPower":return"\uB9C8\uB825"}}function Y(t){let o=t.req.level+t.req.levelIncrease;return o>110?2:o>70?1:0}function Ht(t){return t==="int"?"magicPower":"attackPower"}var Re={100:[[1,0],[2,0],[3,1]],70:[[2,0],[3,1],[5,2]],30:[[3,1],[5,2],[7,3]],15:[[5,2],[7,3],[9,4]]},ge={100:[[1,5,1],[2,20,2],[3,30,3]],70:[[2,15,2],[3,40,4],[4,70,5]],30:[[3,30,4],[5,70,7],[7,120,10]],15:[[4,45,6],[7,110,10],[10,170,15]]},$t={30:[1,2,3],15:[2,3,4]},_e={100:[0,1,1],70:[1,2,2],30:[2,3,3],15:[3,4,4]},Gt={100:[1,1,2],70:[2,2,3],30:[3,4,5]},Kt={30:[1,2,3]},ve={100:[1,2,3],70:[2,3,5],30:[3,5,7]};var Ce=30,Bt=15,ke=15,Ee=150;function A(t){return t.attributes.canStarforce===1}function y(t,o=!1){if(!A(t))return!1;if(t.attributes.superior)return t.star<Math.min(ke,t.maxStar);if(o){if(t.star>=Ge(t))return!1}else if(t.star>=t.maxStar)return!1;let a=t.starScroll?Bt:Ce;return t.star<a}function Z(t,o=!1){if(!y(t,o))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.star=t.star+1,t.attributes.superior?Ie(t):p(t.type)||t.type===134?ye(t):De(t)}function D(t,o=!1){return!A(t)||t.attributes.superior||t.req.level>Ee||!o&&t.star>=t.maxStar?!1:t.star<Bt}function z(t,o=!1,a=!1){if(!D(t,a))throw TypeError("\uB180\uB77C\uC6B4 \uC7A5\uBE44 \uAC15\uD654 \uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starScroll=!0,t.data.star=t.star+1;let n=h(Fe,t),r=h(Je,t),i=p(t.type)||t.type===134;for(let l of tt)Mt(t,l)>0&&(c(t)[l]+=n,o&&g(t.type)&&(c(t)[l]+=t.star>5?2:1));for(let l of Yt){let f=Mt(t,l);f>0&&(i&&(c(t)[l]+=Math.floor(f/50)+1),c(t)[l]+=r,o&&(i||t.type===109)&&(c(t)[l]+=1))}o&&R(t.type)&&(c(t).maxHp+=50);let s=Mt(t,"armor");s>0&&(c(t).armor+=Math.floor(s/20)+1)}function T(t){return!!A(t)}function At(t){if(!T(t))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starforceOption={},t.data.star=void 0,t.data.starScroll=void 0}function Rt(t){if(t.attributes.canStarforce===0)return 0;let o=Ue(t);return t.starScroll?Math.min(Bt,o):o}function Ie(t){let o=h(We,t),a=h(je,t);for(let r of tt)t.baseOption[r]>0&&(c(t)[r]+=o);for(let r of Yt)t.baseOption[r]>0&&(c(t)[r]+=a);let n=wt(t,"armor");c(t).armor+=Math.floor(n/20)+1}function ye(t){let o=h(Zt,t),a=h(Be,t),n=Qt(t);for(let s of tt)(n.has(s)||t.star>15&&(t.baseOption[s]>0||t.upgradeOption[s]>0))&&(c(t)[s]+=o);let r=t.req.magician()||t.upgradeOption.magicPower>0;if(t.star>15)c(t).attackPower+=a,r&&(c(t).magicPower+=a);else{let s=wt(t,"attackPower");if(c(t).attackPower+=Math.floor(s/50)+1,r){let l=wt(t,"magicPower");c(t).magicPower+=Math.floor(l/50)+1}}let i=zt[t.star];c(t).maxHp+=i,c(t).maxMp+=i}function De(t){let o=h(Zt,t),a=h(Me,t),n=Qt(t);for(let r of tt)(n.has(r)||t.star>15&&(t.baseOption[r]>0||t.upgradeOption[r]>0))&&(c(t)[r]+=o);if(c(t).attackPower+=a,c(t).magicPower+=a,t.type===108&&t.req.level>=130){let r=Ve[t.star];t.req.beginner()?(c(t).attackPower+=r,c(t).magicPower+=r):t.req.magician()?c(t).magicPower+=r:c(t).attackPower+=r}if(t.type!==167){let r=wt(t,"armor");c(t).armor+=Math.floor(r/20)+1}if(He.includes(t.type)){let r=zt[t.star];c(t).maxHp+=r}if(t.type===107){let r=Ne[t.star];c(t).speed+=r,c(t).jump+=r}}function Qt(t){if(t.req.beginner())return new Set(tt);let o=[];return t.req.warrior()&&o.push("str","dex"),t.req.magician()&&o.push("int","luk"),t.req.bowman()&&o.push("dex","str"),t.req.thief()&&o.push("luk","dex"),t.req.pirate()&&o.push("str","dex"),new Set(o)}function h(t,o){let a=o.req.level;for(let n=t.length-1;n>=0;n--){let r=t[n];if(a>=r[0])return r[o.star]}throw TypeError("\uC7A5\uBE44\uC758 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8\uC740 0 \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.")}function c(t){return t.data.starforceOption===void 0&&(t.data.starforceOption={}),u(t.data.starforceOption)}function wt(t,o){return t.baseOption[o]+t.upgradeOption[o]+t.starforceOption[o]}function Mt(t,o){return t.baseOption[o]+t.addOption[o]+t.upgradeOption[o]+t.starforceOption[o]}function Ue(t){let o=t.req.level+t.req.levelIncrease,a;for(let n of qe)if(o>=n[0])a=n;else break;return a?t.attributes.superior?a[2]:a[1]:0}function Ge(t){let o=t.req.level,a;for(let n of Le)if(o>=n[0])a=n;else break;return a?a[1]:0}var qe=[[0,5,3],[95,8,5],[110,10,8],[120,15,10],[130,20,12],[140,30,15]],Le=[[0,15],[101,19],[111,29],[140,30]],tt=["str","dex","int","luk"],Yt=["attackPower","magicPower"],He=[100,104,105,106,110,111,112,113,115,109],Zt=[[0,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,0,0,0,0,0],[108,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0],[118,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,0,0,0],[128,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,7,7,7,7,7,7,7,0,0,0],[138,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0],[148,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,11,11,11,11,11,11,11,0,0,0,0,0,0,0,0],[158,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,13,13,13,13,13,13,13,0,0,0,0,0,0,0,0],[198,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,15,15,15,15,15,15,15,0,0,0,0,0,0,0,0],[248,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,17,17,17,17,17,17,17,0,0,0,0,0,0,0,0]],Me=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,5,6,7,8,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,7,8,9,10,12,13,15,17],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,8,9,10,11,13,14,16,18],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21,22,23,24,25,26],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22,23,24,25,26,27],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,17,19,21,23,24,25,26,27,28],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,13,14,15,16,17,19,21,23,25,26,27,28,29,30],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,15,16,17,18,19,21,23,25,27,28,29,30,31,32]],Be=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,4,5,6,7,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,5,5,6,7,8,9,27,28,29],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,6,7,8,9,10,28,29,30],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,7,8,9,10,11,29,30,31],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,8,9,10,11,12,30,31,32,33,34,35,36,37],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,9,10,11,12,13,31,32,33,34,35,36,37,38],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,10,11,12,13,14,32,33,34,35,36,37,38,39],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,13,14,14,15,16,17,34,35,36,37,38,39,40,41],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,16,16,17,18,19,36,37,38,39,40,41,42,43]],je=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[110,0,0,0,0,0,5,6,7,0,0,0,0,0,0,0],[150,0,0,0,0,0,9,10,11,12,13,15,17,19,21,23]],We=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Ve=[-1,0,0,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],zt=[-1,5,5,5,10,10,15,15,20,20,25,25,25,25,25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ne=[-1,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Fe=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[85,3,4,6,9,13,0,0,0,0,0,0,0,0,0,0],[90,4,5,7,10,14,0,0,0,0,0,0,0,0,0,0],[95,5,6,8,11,15,0,0,0,0,0,0,0,0,0,0],[100,7,8,10,13,17,0,0,0,0,0,0,0,0,0,0],[105,8,9,11,14,18,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[115,10,11,13,16,20,0,0,0,0,0,0,0,0,0,0],[120,12,13,15,18,22,0,0,0,0,0,0,0,0,0,0],[125,13,14,16,19,23,0,0,0,0,0,0,0,0,0,0],[130,14,15,17,20,24,0,0,0,0,0,0,0,0,0,0],[135,15,16,18,21,25,0,0,0,0,0,0,0,0,0,0],[140,17,18,20,23,27,0,0,0,0,0,0,0,0,0,0],[145,18,19,21,24,28,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Je=[[0,0,0,0,0,0,1,2,3,4,5,6,8,10,12,14],[80,0,0,0,0,0,2,3,4,5,6,7,9,11,13,15],[90,0,0,0,0,0,3,4,5,6,7,8,10,12,14,16],[100,0,0,0,0,0,4,5,6,7,8,9,11,13,15,17],[110,0,0,0,0,0,5,6,7,8,9,10,12,14,16,18],[120,0,0,0,0,0,6,7,8,9,10,11,13,15,17,19],[130,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[140,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21],[150,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22]];var U=class{data;constructor(o){this.data=o}get only(){return this.data.only??!1}get trade(){return this.data.trade??0}set trade(o){this.data.trade=o}get onlyEquip(){return this.data.onlyEquip??!1}get share(){return this.data.share??0}get superior(){return this.data.superior??!1}get attackSpeed(){return this.data.attackSpeed}get canScroll(){return this.data.canScroll??0}get canStarforce(){return this.data.canStarforce??0}get canAddOption(){return this.data.canAddOption??0}get canPotential(){return this.data.canPotential??0}get canAdditionalPotential(){return this.data.canAdditionalPotential??0}get specialGrade(){return this.data.specialGrade??!1}get cuttable(){return this.data.cuttable??0}get cuttableCount(){return this.data.cuttableCount}set cuttableCount(o){this.data.cuttableCount=o}get totalCuttableCount(){return this.data.totalCuttableCount}get accountShareTag(){return this.data.accountShareTag??!1}get setItemId(){return this.data.setItemId}get lucky(){return this.data.lucky??!1}get incline(){return{charisma:0,insight:0,will:0,craft:0,sense:0,charm:0,...this.data.incline}}set incline(o){this.data.incline=o}get bossReward(){return this.data.bossReward??!1}get skills(){return this.data.skills??[]}get growthExp(){return this.data.growthExp}set growthExp(o){(o===void 0||0<=o&&o<=100)&&(this.data.growthExp=o)}get growthLevel(){return this.data.growthLevel}set growthLevel(o){this.data.growthLevel=o}get dateExpire(){return this.data.dateExpire}set dateExpire(o){(o===void 0||!Number.isNaN(Date.parse(o)))&&(this.data.dateExpire=o)}};var G=class{data;constructor(o){this.data=o}get level(){return this.data.level??0}get levelIncrease(){return this.data.levelIncrease??0}get job(){return this.data.job??0}get class(){return this.data.class??0}beginner(){return this.job===0}warrior(){return this.job===0||(this.job&1)!=0}magician(){return this.job===0||(this.job&2)!=0}bowman(){return this.job===0||(this.job&4)!=0}thief(){return this.job===0||(this.job&8)!=0}pirate(){return this.job===0||(this.job&16)!=0}};var q=class{_data;constructor(o){this._data=o}get data(){return this._data}get meta(){return this.data.meta}get name(){return this.data.name}get icon(){return this.data.icon??""}get desc(){return this.data.desc}get shape(){return this.data.shape}get shapeIcon(){return this.shape?.icon??this.icon}get type(){return this.data.type}get req(){return new G(this.data.req)}get attributes(){return new U(this.data.attributes)}get totalOption(){return u(Wt(this.baseOption,this.addOption,this.upgradeOption,this.starforceOption))}get baseOption(){return u(this.data.baseOption??{})}get addOption(){return u(this.data.addOption??{})}get upgradeOption(){return u(this.data.upgradeOption??{})}get starforceOption(){return u(this.data.starforceOption??{})}get addOptions(){return this.data.addOptions??[]}get scrollUpgradeCount(){return this.data.scrollUpgradeCount??0}get scrollResilienceCount(){return this.data.scrollResilienceCount??0}get scrollUpgradeableCount(){return this.data.scrollUpgradeableCount??0}get scrollTotalUpgradeableCount(){return this.scrollUpgradeCount+this.scrollUpgradeableCount+this.scrollResilienceCount}get star(){return this.data.star??0}get maxStar(){return Rt(this)}get starScroll(){return this.data.starScroll??!1}get soulEnchanted(){return this.data.soulSlot!==void 0}get soul(){if(this.data.soulSlot?.soul)return{...this.data.soulSlot.soul,option:u(this.data.soulSlot.soul.option)}}get soulCharge(){return this.data.soulSlot?.charge??0}get soulChargeOption(){return u(this.data.soulSlot?.chargeOption??{})}get potentialGrade(){return this.data.potentialGrade??0}get potentials(){return this.data.potentials?this.data.potentials.map(o=>({...o,option:u(o.option)})):[]}get additionalPotentialGrade(){return this.data.additionalPotentialGrade??0}get additionalPotentials(){return this.data.additionalPotentials?this.data.additionalPotentials.map(o=>({...o,option:u(o.option)})):[]}get exceptionalOption(){return u(this.data.exceptionalOption??{})}get exceptionalUpgradeCount(){return this.data.exceptionalUpgradeCount??0}get exceptionalUpgradeableCount(){return this.data.exceptionalUpgradeableCount??0}get exceptionalTotalUpgradeableCount(){return this.exceptionalUpgradeCount+this.exceptionalUpgradeableCount}};var gt=class extends q{get data(){return this._data}get shape(){return this.data.shape}set shape(o){this.data.shape=o}get supportsAddOption(){return v(this)}get canApplyAddOption(){return M(this)}applyAddOption(o,a){ot(this,o,a)}get canResetAddOption(){return B(this)}resetAddOption(){at(this)}get supportsUpgrade(){return S(this)}get canApplyScrollFail(){return X(this)}applyScrollFail(){bt(this)}get canApplyResileScroll(){return $(this)}applyResileScroll(){xt(this)}get canResetUpgrade(){return K(this)}resetUpgrade(){Ot(this)}get canApplyScroll(){return Q(this)}applyScroll(o){I(this,o)}applySpellTrace(o,a){Pt(this,o,a)}get supportsStarforce(){return A(this)}get canApplyStarforce(){return y(this)}applyStarforce(){Z(this)}get canApplyStarforceIgnoringMaxStar(){return y(this,!0)}applyStarforceIgnoringMaxStar(){Z(this,!0)}get canApplyStarScroll(){return D(this)}applyStarScroll(o=!1){z(this,o)}get canApplyStarScrollIgnoringMaxStar(){return D(this,!0)}applyStarScrollIgnoringMaxStar(o=!1){z(this,o,!0)}get canResetStarforce(){return T(this)}resetStarforce(){At(this)}get supportsPotential(){return lt(this)}get canSetPotential(){return k(this)}setPotential(o,a){st(this,o,a)}resetPotential(){ct(this)}get supportsAdditionalPotential(){return dt(this)}get canSetAdditionalPotential(){return E(this)}setAdditionalPotential(o,a){pt(this,o,a)}resetAdditionalPotential(){ut(this)}get supportsSoul(){return V(this)}get canApplySoulEnchant(){return N(this)}applySoulEnchant(){ft(this)}get canSetSoul(){return F(this)}setSoul(o){mt(this,o)}get canSetSoulCharge(){return J(this)}setSoulCharge(o){St(this,o)}resetSoulEnchant(){ht(this)}get supportsExceptional(){return C(this)}get canApplyExceptional(){return j(this)}applyExceptional(o){rt(this,o)}get canResetExceptional(){return W(this)}resetExceptional(){it(this)}};
package/dist/index.d.ts CHANGED
@@ -1,12 +1,14 @@
1
- export { type GearAttributeData, GearTrade, GearShare, AddOptionCan, PotentialCan, GearCuttable, type GearIncline, type GearData, type GearMetadata, type GearShapeData, type GearReqData, type GearBaseOption, type GearAddOption, type GearUpgradeOption, type GearStarforceOption, type GearExceptionalOption, type GearOption, GearType, type PotentialData, type PotentialOption, PotentialGrade, type SoulSlotData, type SoulData, type ReadonlySoulData, type SoulChargeOption, type SoulOption, } from './lib/data';
2
- export { AddOptionType, type AddOptionGrade, supportsAddOption, getAddOption, getAddOptionValue, } from './lib/enhance/addOption';
1
+ export { AddOptionType, type AddOptionGrade, type AddOptionData, type GearAttributeData, GearTrade, GearShare, GearCapability, GearCuttable, type GearIncline, type GearData, type GearMetadata, type GearShapeData, type GearReqData, type GearBaseOption, type GearAddOption, type GearUpgradeOption, type GearStarforceOption, type GearExceptionalOption, type GearOption, GearType, type PotentialData, type PotentialOption, PotentialGrade, type SoulSlotData, type SoulData, type ReadonlySoulData, type SoulChargeOption, type SoulOption, } from './lib/data';
2
+ export { supportsAddOption, canApplyAddOption, applyAddOption, canResetAddOption, resetAddOption, getAddOption, getAddOptionValue, } from './lib/enhance/addOption';
3
3
  export { type ExceptionalHammer, supportsExceptional, canApplyExceptional, applyExceptional, canResetExceptional, resetExceptional, } from './lib/enhance/exceptional';
4
+ export { type ReadonlyPotential, supportsPotential, canSetPotential, setPotential, resetPotential, supportsAdditionalPotential, canSetAdditionalPotential, setAdditionalPotential, resetAdditionalPotential, } from './lib/enhance/potential';
5
+ export { supportsSoul, canApplySoulEnchant, applySoulEnchant, canSetSoul, setSoul, canSetSoulCharge, setSoulCharge, resetSoulEnchant, } from './lib/enhance/soulSlot';
4
6
  export { SpellTraceType, type SpellTraceRate, type SpellTrace, applySpellTrace, getSpellTraceScroll, } from './lib/enhance/spellTrace';
5
- export { supportsStarforce, canStarforce, starforce, canStarScroll, starScroll, canResetStarforce, resetStarforce, } from './lib/enhance/starforce';
6
- export { type Scroll, supportsUpgrade, canGoldenHammer, applyGoldenHammer, canFailScroll, failScroll, canResileScroll, resileScroll, canResetUpgrade, resetUpgrade, canApplyScroll, applyScroll, } from './lib/enhance/upgrade';
7
+ export { supportsStarforce, canStarforce, starforce, canStarScroll, starScroll, canResetStarforce, resetStarforce, getMaxStar, } from './lib/enhance/starforce';
8
+ export { type Scroll, supportsUpgrade, canFailScroll, failScroll, canResileScroll, resileScroll, canResetUpgrade, resetUpgrade, canApplyScroll, applyScroll, } from './lib/enhance/upgrade';
7
9
  export { Gear } from './lib/Gear';
10
+ export { ReadonlyGear } from './lib/ReadonlyGear';
8
11
  export { GearAttribute } from './lib/GearAttribute';
9
12
  export { toGearOption } from './lib/gearOption';
10
13
  export { GearReq } from './lib/GearReq';
11
14
  export { isWeapon, isLeftWeapon, isDoubleHandWeapon, isSubWeapon, isShield, isArmor, isAccessory, isMechanicGear, isDragonGear, } from './lib/gearType';
12
- export { supportsSoul, canApplySoulEnchant, applySoulEnchant, canSetSoul, setSoul, canSetSoulCharge, setSoulCharge, resetSoulEnchant, } from './lib/soulSlot';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var bt=(a=>(a[a.Tradeable=0]="Tradeable",a[a.TradeBlock=1]="TradeBlock",a[a.EquipTradeBlock=2]="EquipTradeBlock",a))(bt||{}),xt=(a=>(a[a.None=0]="None",a[a.AccountSharable=1]="AccountSharable",a[a.AccountSharableOnce=2]="AccountSharableOnce",a))(xt||{}),Ot=(a=>(a[a.None=0]="None",a[a.Can=1]="Can",a[a.Cannot=2]="Cannot",a))(Ot||{}),wt=(n=>(n[n.None=0]="None",n[n.Can=1]="Can",n[n.Cannot=2]="Cannot",n[n.Fixed=3]="Fixed",n))(wt||{}),gt=(a=>(a[a.None=0]="None",a[a.Silver=1]="Silver",a[a.Platinum=2]="Platinum",a))(gt||{});var A=(e=>(e[e.cap=100]="cap",e[e.faceAccessory=101]="faceAccessory",e[e.eyeAccessory=102]="eyeAccessory",e[e.earrings=103]="earrings",e[e.coat=104]="coat",e[e.longcoat=105]="longcoat",e[e.pants=106]="pants",e[e.shoes=107]="shoes",e[e.glove=108]="glove",e[e.cape=110]="cape",e[e.ring=111]="ring",e[e.pendant=112]="pendant",e[e.belt=113]="belt",e[e.medal=114]="medal",e[e.shoulder=115]="shoulder",e[e.pocket=116]="pocket",e[e.badge=118]="badge",e[e.android=166]="android",e[e.machineHeart=167]="machineHeart",e[e.shield=109]="shield",e[e.emblem=119]="emblem",e[e.powerSource=119020]="powerSource",e[e.shiningRod=1212]="shiningRod",e[e.tuner=1213]="tuner",e[e.breathShooter=1214]="breathShooter",e[e.soulShooter=122]="soulShooter",e[e.desperado=123]="desperado",e[e.energySword=124]="energySword",e[e.espLimiter=126]="espLimiter",e[e.chain=127]="chain",e[e.magicGauntlet=128]="magicGauntlet",e[e.ritualFan=129]="ritualFan",e[e.ohSword=130]="ohSword",e[e.ohAxe=131]="ohAxe",e[e.ohBlunt=132]="ohBlunt",e[e.dagger=133]="dagger",e[e.katara=134]="katara",e[e.cane=136]="cane",e[e.wand=137]="wand",e[e.staff=138]="staff",e[e.thSword=140]="thSword",e[e.chakram=1404]="chakram",e[e.thAxe=141]="thAxe",e[e.thBlunt=142]="thBlunt",e[e.spear=143]="spear",e[e.polearm=144]="polearm",e[e.bow=145]="bow",e[e.crossbow=146]="crossbow",e[e.claw=147]="claw",e[e.knuckle=148]="knuckle",e[e.gun=149]="gun",e[e.shovel=150]="shovel",e[e.pickaxe=151]="pickaxe",e[e.dualBowguns=152]="dualBowguns",e[e.handCannon=153]="handCannon",e[e.heavySword=156]="heavySword",e[e.longSword=157]="longSword",e[e.gauntletRevolver=158]="gauntletRevolver",e[e.ancientBow=159]="ancientBow",e[e.soulShield=1098]="soulShield",e[e.demonShield=1099]="demonShield",e[e.magicArrow=135200]="magicArrow",e[e.card=135210]="card",e[e.medallion=135220]="medallion",e[e.rosary=135221]="rosary",e[e.ironChain=135222]="ironChain",e[e.magicBook1=135223]="magicBook1",e[e.magicBook2=135224]="magicBook2",e[e.magicBook3=135225]="magicBook3",e[e.arrowFletching=135226]="arrowFletching",e[e.bowThimble=135227]="bowThimble",e[e.daggerScabbard=135228]="daggerScabbard",e[e.charm=135229]="charm",e[e.orb=135240]="orb",e[e.dragonEssence=135250]="dragonEssence",e[e.soulRing=135260]="soulRing",e[e.magnum=135270]="magnum",e[e.wristBand=135290]="wristBand",e[e.farSight=135291]="farSight",e[e.powderKeg=135292]="powderKeg",e[e.mass=135293]="mass",e[e.document=135294]="document",e[e.magicMarble=135295]="magicMarble",e[e.arrowhead=135296]="arrowhead",e[e.jewel=135297]="jewel",e[e.powderKeg2=135298]="powderKeg2",e[e.controller=135300]="controller",e[e.foxMarble=135310]="foxMarble",e[e.chessPiece=135320]="chessPiece",e[e.transmitter=135330]="transmitter",e[e.charge=135340]="charge",e[e.magicWing=135350]="magicWing",e[e.pathOfAbyss=135360]="pathOfAbyss",e[e.relic=135370]="relic",e[e.fanTassel=135380]="fanTassel",e[e.bracelet=135400]="bracelet",e[e.weaponBelt=135401]="weaponBelt",e[e.ornament=135402]="ornament",e[e.hexSeeker=135403]="hexSeeker",e[e.petEquip=180]="petEquip",e[e.machineEngine=161]="machineEngine",e[e.machineArms=162]="machineArms",e[e.machineLegs=163]="machineLegs",e[e.machineBody=164]="machineBody",e[e.machineTransistors=165]="machineTransistors",e[e.dragonMask=194]="dragonMask",e[e.dragonPendant=195]="dragonPendant",e[e.dragonWings=196]="dragonWings",e[e.dragonTail=197]="dragonTail",e))(A||{});var z=(i=>(i[i.Normal=0]="Normal",i[i.Rare=1]="Rare",i[i.Epic=2]="Epic",i[i.Unique=3]="Unique",i[i.Legendary=4]="Legendary",i))(z||{});function u(t){return At(t)||kt(t)}function At(t){return 121<=t&&t<=139&&t!==134||Math.floor(t/10)===121}function kt(t){return t>=140&&t<=149||t>=152&&t<=159||Math.floor(t/10)===140}function jt(t){if(q(t))return!0;switch(t){case 134:return!0;default:return Math.floor(t/1e3)===135}}function q(t){switch(t){case 109:case 1099:case 1098:return!0;default:return!1}}function b(t){return t===100||t>=104&&t<=110||t===1098||t===1099}function x(t){return t>=101&&t<=103||t>=111&&t<=113||t===115}function Bt(t){return t>=161&&t<=165}function Wt(t){return t>=194&&t<=197}var _t=(p=>(p.str="str",p.dex="dex",p.int="int",p.luk="luk",p.str_dex="str&dex",p.str_int="str&int",p.str_luk="str&luk",p.dex_int="dex&int",p.dex_luk="dex&luk",p.int_luk="int&luk",p.maxHp="maxHp",p.maxMp="maxMp",p.attackPower="attackPower",p.magicPower="magicPower",p.armor="armor",p.speed="speed",p.jump="jump",p.bossDamage="bossDamage",p.damage="damage",p.allStat="allStat",p.reqLevelDecrease="reqLevelDecrease",p))(_t||{});function y(t){return u(t)?!0:b(t)?!q(t):x(t)?![111,115].includes(t):t===116}function T(t,o,r){let a=yt(o),n=Rt(t,o,r),i=a.map(c=>[c,n]);return Object.fromEntries(i)}function Rt(t,o,r){let a={type:o,reqLevel:t.req.level,gearType:t.type,bossReward:t.attributes.bossReward,attackPower:t.baseOption.attackPower,magicPower:t.baseOption.magicPower};switch(o){case"str":case"dex":case"int":case"luk":return Pt(r,a);case"str&dex":case"str&int":case"str&luk":case"dex&int":case"dex&luk":case"int&luk":return Vt(r,a);case"armor":return Pt(r,a);case"attackPower":case"magicPower":return Ft(r,a);case"maxHp":case"maxMp":return Xt(r,a);case"speed":return $t(r,a);case"jump":return Kt(r,a);case"damage":return Qt(r,a);case"bossDamage":return Yt(r,a);case"allStat":return Zt(r,a);case"reqLevelDecrease":return zt(r,a)}}function Pt(t,{reqLevel:o}){return o>=250?Math.floor(o/20)*t:(Math.floor(o/20)+1)*t}function Vt(t,{reqLevel:o}){return(Math.floor(o/40)+1)*t}function Ft(t,o){let{reqLevel:r,gearType:a}=o;if(u(a))return Nt(t,o);if(r>=60)return t;throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 60 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.")}function Nt(t,o){let{reqLevel:r,type:a,gearType:n,bossReward:i,attackPower:c,magicPower:l}=o,m=i?[0,0,1,1.4666,2.0166,2.663,3.4166]:[1,2.222,3.63,5.325,7.32,8.777,10.25];if(n===156||n===157){let f=Jt(n,o),P=r>180?6:r>160?5:r>110?4:3;return Math.ceil(f*m[t-1]*P/100)}else{let f=a==="magicPower"&&l>c?l:c;if(i){let P=r>160?6:r>150?5:r>110?4:3;return Math.ceil(f*m[t-1]*P*3/100)}else{let P=r>110?4:3;return Math.ceil(f*m[t-1]*P/100)}}}function Jt(t,{attackPower:o}){if(t===156)return o;let a=new Map([[100,102],[103,105],[105,107],[112,114],[117,121],[135,139],[169,173],[203,207],[293,297],[337,342]]).get(o);if(a===void 0)throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC744 \uBD80\uC5EC\uD560 \uC218 \uC5C6\uB294 \uD0DC\uB3C4 \uC7A5\uBE44\uC785\uB2C8\uB2E4. (Please submit issue with the gear info)");return a}function Xt(t,{reqLevel:o}){return o<10?3*t:o>=250?700*t:Math.floor(o/10)*30*t}function $t(t,{gearType:o}){if(u(o))throw TypeError("\uC774\uB3D9\uC18D\uB3C4 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function Kt(t,{gearType:o}){if(u(o))throw TypeError("\uC810\uD504\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function Qt(t,{gearType:o}){if(!u(o))throw TypeError("\uB370\uBBF8\uC9C0(%) \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function Yt(t,{reqLevel:o,gearType:r}){if(o<90||!u(r))throw TypeError("\uBCF4\uC2A4 \uACF5\uACA9 \uC2DC \uB370\uBBF8\uC9C0 \uC99D\uAC00(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 90 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return 2*t}function Zt(t,{reqLevel:o,gearType:r}){if(o<70&&!u(r))throw TypeError("\uC62C\uC2A4\uD0EF(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 70 \uC774\uC0C1 \uB610\uB294 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function zt(t,{reqLevel:o}){if(o<=0)throw TypeError("\uCC29\uC6A9 \uB808\uBCA8 \uAC10\uC18C \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 1 \uC774\uC0C1\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return Math.min(o,5*t)}function yt(t){return t.split("&")}function O(t,...o){let r=t;for(let a of o)for(let[n,i]of Object.entries(a))n in r?r[n]+=i:r[n]=i}function vt(...t){let o={};return O(o,...t),o}function R(t){return t.exceptionalTotalUpgradeableCount>0}function L(t){return R(t)&&t.exceptionalUpgradeableCount>0}function tt(t,o){if(!L(t))throw TypeError("\uC775\uC149\uC154\uB110 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption===void 0&&(t.data.exceptionalOption={}),O(t.data.exceptionalOption,o.option),t.data.exceptionalUpgradeableCount=t.exceptionalUpgradeableCount-1,t.data.exceptionalUpgradeCount=t.exceptionalUpgradeCount+1}function M(t){return R(t)}function et(t){if(!M(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption={},t.data.exceptionalUpgradeableCount=t.exceptionalTotalUpgradeableCount,t.data.exceptionalUpgradeCount=void 0}function S(t){return!t.attributes.cannotUpgrade&&t.scrollTotalUpgradeableCount>0}function G(t){return S(t)&&!t.attributes.blockGoldenHammer&&t.goldenHammer===0}function ot(t){if(!G(t))throw TypeError("\uD669\uAE08 \uB9DD\uCE58\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.goldenHammer=t.goldenHammer+1,t.data.scrollUpgradeableCount=t.scrollUpgradeableCount+1}function j(t){return S(t)&&t.scrollUpgradeableCount>0}function rt(t){if(!j(t))throw TypeError("\uC8FC\uBB38\uC11C \uC2E4\uD328\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollResilienceCount=t.scrollResilienceCount+1}function B(t){return S(t)&&t.scrollResilienceCount>0}function at(t){if(!B(t))throw TypeError("\uC5C5\uADF8\uB808\uC774\uB4DC \uAC00\uB2A5 \uD69F\uC218\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollResilienceCount=t.scrollResilienceCount-1,t.data.scrollUpgradeableCount=t.scrollUpgradeableCount+1}function W(t){return S(t)}function nt(t){if(!W(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption={},t.data.scrollUpgradeableCount=t.scrollTotalUpgradeableCount,t.data.scrollUpgradeCount=void 0,t.data.scrollResilienceCount=void 0,t.data.goldenHammer=void 0}function V(t){return S(t)&&t.scrollUpgradeableCount>0}function v(t,o){if(!V(t))throw TypeError("\uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption===void 0&&(t.data.upgradeOption={}),O(t.data.upgradeOption,o.option),t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollUpgradeCount=t.scrollUpgradeCount+1}var Ut=(c=>(c.str="str",c.dex="dex",c.int="int",c.luk="luk",c.maxHp="maxHp",c.allStat="allStat",c))(Ut||{});function lt(t,o,r){let a=It(t,o,r);v(t,a)}function It(t,o,r){if(u(t.type)||t.type===134)return Tt(t,o,r);if(t.type===108)return te(t,o,r);if(b(t.type)||t.type===115)return ee(t,o,r);if(x(t.type))return oe(t,o,r);if(t.type===167)return re(t,o,r);throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44 \uBD84\uB958\uC785\uB2C8\uB2E4.")}function Tt(t,o,r){if(o==="allStat")throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let a=C(t),[n,i]=ae[r][a];o==="maxHp"&&(i*=50);let c=ct(o),l,m;return i===0?(l=g(r,w(c)),m={[c]:n}):(l=g(r,w(c),w(o)),m={[c]:n,[o]:i}),{name:l,option:m,type:o,rate:r}}function te(t,o,r){let a=C(t),n=ie[r][a],i,c;if(n===0)i=g(r,"\uBC29\uC5B4\uB825"),c={armor:3};else{let l=ct(o);i=g(r,w(l)),c={[l]:n}}return{name:i,option:c,rate:r,type:o}}function ee(t,o,r){let a=C(t),[n,i,c]=ne[r][a],l={maxHp:i,armor:c};switch(o){case"str":case"dex":case"int":case"luk":l[o]=n;break;case"maxHp":l.maxHp+=n*50;break;case"allStat":{if(!(r in Ct))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let f=Ct[r][a];l.str=f,l.dex=f,l.int=f,l.luk=f;break}}return t.scrollUpgradeCount===3&&(t.req.beginner()?(l.attackPower=1,l.magicPower=1):t.req.magician()?l.magicPower=1:l.attackPower=1),{name:g(r,w(o)),option:l,type:o,rate:r}}function oe(t,o,r){if(!(r in it))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let a=C(t),n=it[r][a],i={};switch(o){case"str":case"dex":case"int":case"luk":i[o]=n;break;case"maxHp":i.maxHp=n*50;break;case"allStat":{if(!(r in Et))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let l=Et[r][a];i.str=l,i.dex=l,i.int=l,i.luk=l;break}}return{name:g(r,w(o)),option:i,type:o,rate:r}}function re(t,o,r){if(!(r in it))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let a=C(t),n=le[r][a],i=ct(o),c=g(r,w(i)),l={[i]:n};return{name:c,option:l,type:o,rate:r}}function g(t,o,r){return r?`${t.toString()}% ${o}(${r}) \uC8FC\uBB38\uC11C`:`${t.toString()}% ${o} \uC8FC\uBB38\uC11C`}function w(t){switch(t){case"str":return"\uD798";case"dex":return"\uBBFC\uCCA9";case"int":return"\uC9C0\uB825";case"luk":return"\uC6B4";case"maxHp":return"\uCCB4\uB825";case"allStat":return"\uC62C\uC2A4\uD0EF";case"attackPower":return"\uACF5\uACA9\uB825";case"magicPower":return"\uB9C8\uB825"}}function C(t){return t.req.level>110?2:t.req.level>70?1:0}function ct(t){return t==="int"?"magicPower":"attackPower"}var ae={100:[[1,0],[2,0],[3,1]],70:[[2,0],[3,1],[5,2]],30:[[3,1],[5,2],[7,3]],15:[[5,2],[7,3],[9,4]]},ne={100:[[1,5,1],[2,20,2],[3,30,3]],70:[[2,15,2],[3,40,4],[4,70,5]],30:[[3,30,4],[5,70,7],[7,120,10]],15:[[4,45,6],[7,110,10],[10,170,15]]},Ct={30:[1,2,3],15:[2,3,4]},ie={100:[0,1,1],70:[1,2,2],30:[2,3,3],15:[3,4,4]},it={100:[1,1,2],70:[2,2,3],30:[3,4,5]},Et={30:[1,2,3]},le={100:[1,2,3],70:[2,3,5],30:[3,5,7]};var Dt="__GearOption_s87Ns2aQ";function d(t){return Dt in t?t:new Proxy(t,{get(o,r){if(r===Dt)return!0;if(r in st)return o[r]??st[r]},set(o,r,a){return r in st?(o[r]=a,!0):!1},ownKeys(o){return Object.entries(o).filter(([,r])=>r!=0).map(([r])=>r)}})}var st={str:0,dex:0,int:0,luk:0,strRate:0,dexRate:0,intRate:0,lukRate:0,maxHp:0,maxMp:0,maxHpRate:0,maxMpRate:0,maxDemonForce:0,attackPower:0,magicPower:0,attackPowerRate:0,magicPowerRate:0,armor:0,armorRate:0,speed:0,jump:0,knockback:0,bossDamage:0,normalDamage:0,ignoreMonsterArmor:0,allStat:0,damage:0,reqLevelDecrease:0,criticalRate:0,criticalDamage:0,cooltimeReduce:0,strLv:0,dexLv:0,intLv:0,lukLv:0};var ce=25,N=15,se=15,pe=150;function k(t){return(t.data.maxStar??0)>0}function E(t,o=!1){if(!k(t))return!1;if(t.attributes.superior)return t.star<Math.min(se,t.maxStar);if(!o&&t.star>=t.maxStar)return!1;let r=t.starScroll?N:ce;return t.star<r}function J(t,o=!1){if(!E(t,o))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.star=t.star+1,t.attributes.superior?ue(t):u(t.type)||t.type===134?de(t):me(t)}function U(t,o=!1){return!k(t)||t.attributes.superior||t.req.level>pe||!o&&t.star>=t.maxStar?!1:t.star<N}function X(t,o=!1,r=!1){if(!U(t,r))throw TypeError("\uB180\uB77C\uC6B4 \uC7A5\uBE44 \uAC15\uD654 \uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starScroll=!0,t.data.star=t.star+1;let a=h(ge,t),n=h(Ae,t),i=u(t.type)||t.type===134;for(let l of I)pt(t,l)>0&&(s(t)[l]+=a,o&&x(t.type)&&(s(t)[l]+=t.star>5?2:1));for(let l of qt){let m=pt(t,l);m>0&&(i&&(s(t)[l]+=Math.floor(m/50)+1),s(t)[l]+=n,o&&(i||t.type===109)&&(s(t)[l]+=1))}o&&b(t.type)&&(s(t).maxHp+=50);let c=pt(t,"armor");c>0&&(s(t).armor+=Math.floor(c/20)+1)}function $(t){return!!k(t)}function ut(t){if(!$(t))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starforceOption={},t.data.star=void 0,t.data.starScroll=void 0}function ue(t){let o=h(xe,t),r=h(be,t);for(let n of I)t.baseOption[n]>0&&(s(t)[n]+=o);for(let n of qt)t.baseOption[n]>0&&(s(t)[n]+=r);let a=F(t,"armor");s(t).armor+=Math.floor(a/20)+1}function de(t){let o=h(Lt,t),r=h(he,t),a=Ht(t);for(let c of I)(a.has(c)||t.star>15&&(t.baseOption[c]>0||t.upgradeOption[c]>0))&&(s(t)[c]+=o);let n=t.req.magician()||t.upgradeOption.magicPower>0;if(t.star>15)s(t).attackPower+=r,n&&(s(t).magicPower+=r);else{let c=F(t,"attackPower");if(s(t).attackPower+=Math.floor(c/50)+1,n){let l=F(t,"magicPower");s(t).magicPower+=Math.floor(l/50)+1}}let i=Mt[t.star];s(t).maxHp+=i,s(t).maxMp+=i}function me(t){let o=h(Lt,t),r=h(Se,t),a=Ht(t);for(let n of I)(a.has(n)||t.star>15&&(t.baseOption[n]>0||t.upgradeOption[n]>0))&&(s(t)[n]+=o);if(s(t).attackPower+=r,s(t).magicPower+=r,t.type===108){let n=Oe[t.star];t.req.beginner()?(s(t).attackPower+=n,s(t).magicPower+=n):t.req.magician()?s(t).magicPower+=n:s(t).attackPower+=n}if(t.type!==167){let n=F(t,"armor");s(t).armor+=Math.floor(n/20)+1}if(fe.includes(t.type)){let n=Mt[t.star];s(t).maxHp+=n}if(t.type===107){let n=we[t.star];s(t).speed+=n,s(t).jump+=n}}function Ht(t){if(t.req.beginner())return new Set(I);let o=[];return t.req.warrior()&&o.push("str","dex"),t.req.magician()&&o.push("int","luk"),t.req.bowman()&&o.push("dex","str"),t.req.thief()&&o.push("luk","dex"),t.req.pirate()&&o.push("str","dex"),new Set(o)}function h(t,o){let r=o.req.level;for(let a=t.length-1;a>=0;a--){let n=t[a];if(r>=n[0])return n[o.star]}throw TypeError("\uC7A5\uBE44\uC758 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8\uC740 0 \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.")}function s(t){return t.data.starforceOption===void 0&&(t.data.starforceOption={}),d(t.data.starforceOption)}function F(t,o){return t.baseOption[o]+t.upgradeOption[o]+t.starforceOption[o]}function pt(t,o){return t.baseOption[o]+t.addOption[o]+t.upgradeOption[o]+t.starforceOption[o]}var I=["str","dex","int","luk"],qt=["attackPower","magicPower"],fe=[100,104,105,106,110,111,112,113,115,109],Lt=[[0,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0],[108,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0],[118,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,0,0,0],[128,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,7,7,7,7,7,7,7,0,0,0],[138,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,9,9,9,9,9,9,9,0,0,0],[148,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,11,11,11,11,11,11,11,0,0,0],[158,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,13,13,13,13,13,13,13,0,0,0],[198,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,15,15,15,15,15,15,15,0,0,0],[248,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,17,17,17,17,17,17,17,0,0,0]],Se=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,7,8,9,10,12,13,15,17],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,8,9,10,11,13,14,16,18],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,17,19,21,23],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,13,14,15,16,17,19,21,23,25],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,15,16,17,18,19,21,23,25,27]],he=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,5,5,6,7,8,9,27,28,29],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,6,7,8,9,10,28,29,30],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,7,8,9,10,11,29,30,31],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,8,9,10,11,12,30,31,32],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,9,10,11,12,13,31,32,33],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,10,11,12,13,14,32,33,34],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,13,14,14,15,16,17,34,35,36],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,16,16,17,18,19,36,37,38]],be=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[110,0,0,0,0,0,5,6,7,0,0,0,0,0,0,0],[150,0,0,0,0,0,9,10,11,12,13,15,17,19,21,23]],xe=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Oe=[-1,0,0,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0],Mt=[-1,5,5,5,10,10,15,15,20,20,25,25,25,25,25,25,0,0,0,0,0,0,0,0,0,0],we=[-1,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0],ge=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[85,3,4,6,9,13,0,0,0,0,0,0,0,0,0,0],[90,4,5,7,10,14,0,0,0,0,0,0,0,0,0,0],[95,5,6,8,11,15,0,0,0,0,0,0,0,0,0,0],[100,7,8,10,13,17,0,0,0,0,0,0,0,0,0,0],[105,8,9,11,14,18,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[115,10,11,13,16,20,0,0,0,0,0,0,0,0,0,0],[120,12,13,15,18,22,0,0,0,0,0,0,0,0,0,0],[125,13,14,16,19,23,0,0,0,0,0,0,0,0,0,0],[130,14,15,17,20,24,0,0,0,0,0,0,0,0,0,0],[135,15,16,18,21,25,0,0,0,0,0,0,0,0,0,0],[140,17,18,20,23,27,0,0,0,0,0,0,0,0,0,0],[145,18,19,21,24,28,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Ae=[[0,0,0,0,0,0,1,2,3,4,5,6,8,10,12,14],[80,0,0,0,0,0,2,3,4,5,6,7,9,11,13,15],[90,0,0,0,0,0,3,4,5,6,7,8,10,12,14,16],[100,0,0,0,0,0,4,5,6,7,8,9,11,13,15,17],[110,0,0,0,0,0,5,6,7,8,9,10,12,14,16,18],[120,0,0,0,0,0,6,7,8,9,10,11,13,15,17,19],[130,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[140,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21],[150,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22]];var D=class{data;constructor(o){this.data=o}get only(){return this.data.only??!1}get trade(){return this.data.trade??0}set trade(o){this.data.trade=o}get onlyEquip(){return this.data.onlyEquip??!1}get share(){return this.data.share??0}get blockGoldenHammer(){return this.data.blockGoldenHammer??!1}get superior(){return this.data.superior??!1}get attackSpeed(){return this.data.attackSpeed}get cannotUpgrade(){return this.data.cannotUpgrade??!1}get canAddOption(){return this.data.canAddOption??0}get canPotential(){return this.data.canPotential??0}get canAdditionalPotential(){return this.data.canAdditionalPotential??0}get specialGrade(){return this.data.specialGrade??!1}get reqLevelIncrease(){return this.data.reqLevelIncrease??0}get cuttable(){return this.data.cuttable??0}get cuttableCount(){return this.data.cuttableCount}set cuttableCount(o){this.data.cuttableCount=o}get accountShareTag(){return this.data.accountShareTag??!1}get lucky(){return this.data.lucky??!1}get incline(){return{charisma:0,insight:0,will:0,craft:0,sense:0,charm:0,...this.data.incline}}set incline(o){this.data.incline=o}get bossReward(){return this.data.bossReward??!1}get growthExp(){return this.data.growthExp}set growthExp(o){(o===void 0||0<=o&&o<=100)&&(this.data.growthExp=o)}get growthLevel(){return this.data.growthLevel}set growthLevel(o){this.data.growthLevel=o}get dateExpire(){return this.data.dateExpire}set dateExpire(o){(o===void 0||!Number.isNaN(Date.parse(o)))&&(this.data.dateExpire=o)}};var H=class{data;constructor(o){this.data=o}get level(){return this.data.level??0}get str(){return this.data.str??0}get dex(){return this.data.dex??0}get int(){return this.data.int??0}get luk(){return this.data.luk??0}get job(){return this.data.job??0}get class(){return this.data.class??0}beginner(){return this.job===0}warrior(){return this.job===0||(this.job&1)!=0}magician(){return this.job===0||(this.job&2)!=0}bowman(){return this.job===0||(this.job&4)!=0}thief(){return this.job===0||(this.job&8)!=0}pirate(){return this.job===0||(this.job&16)!=0}};function K(t){return u(t.type)&&t.req.level>=30}function Q(t){return K(t)&&!t.soulEnchanted}function dt(t){if(!Q(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0\uC740 \uC911\uBCF5\uD574\uC11C \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");t.data.soulSlot={}}function Y(t){return t.soulEnchanted}function mt(t,o){if(!Y(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uC18C\uC6B8\uC744 \uC7A5\uCC29\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.soul=o,Gt(t)}function Z(t){return t.soulEnchanted}function ft(t,o){if(!Z(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uB9CC \uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC744 \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");if(o<0||o>1e3)throw TypeError("\uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC740 0 \uC774\uC0C1 1000 \uC774\uD558\uC758 \uAC12\uC73C\uB85C\uB9CC \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.charge=o,Gt(t)}function St(t){t.data.soulSlot=void 0}function Gt(t){let o;if(t.soulCharge===0)o={};else{let r=t.baseOption.attackPower>=t.baseOption.magicPower?"attackPower":"magicPower",a=Math.min(5,Math.ceil(t.soulCharge/100)-1);t.soul?o={[r]:10+a*(t.soul.chargeFactor??1)}:o={[r]:5+a}}t.data.soulSlot.chargeOption=o}var ht=class{data;constructor(o){this.data=o}get meta(){return this.data.meta}get name(){return this.data.name}get icon(){return this.data.icon??""}get desc(){return this.data.desc}get shape(){return this.data.shape}set shape(o){this.data.shape=o}get shapeIcon(){return this.shape?.icon??this.icon}get type(){return this.data.type}get req(){return new H(this.data.req)}get attributes(){return new D(this.data.attributes)}get totalOption(){return d(vt(this.baseOption,this.addOption,this.upgradeOption,this.starforceOption))}get baseOption(){return d(this.data.baseOption??{})}get addOption(){return d(this.data.addOption??{})}get upgradeOption(){return d(this.data.upgradeOption??{})}get starforceOption(){return d(this.data.starforceOption??{})}get scrollUpgradeCount(){return this.data.scrollUpgradeCount??0}get scrollResilienceCount(){return this.data.scrollResilienceCount??0}get scrollUpgradeableCount(){return this.data.scrollUpgradeableCount??0}get goldenHammer(){return this.data.goldenHammer??0}get scrollTotalUpgradeableCount(){return this.scrollUpgradeCount+this.scrollUpgradeableCount+this.scrollResilienceCount-this.goldenHammer}get star(){return this.data.star??0}get maxStar(){let o=this.data.maxStar??0;return Math.max(this.star,this.starScroll?Math.min(N,o):o)}get starScroll(){return this.data.starScroll??!1}get soulEnchanted(){return this.data.soulSlot!==void 0}get soul(){if(this.data.soulSlot?.soul)return{...this.data.soulSlot.soul,option:d(this.data.soulSlot.soul.option)}}get soulCharge(){return this.data.soulSlot?.charge??0}get soulChargeOption(){return d(this.data.soulSlot?.chargeOption??{})}get potentialGrade(){return this.data.potentialGrade??0}set potentialGrade(o){this.data.potentialGrade=o}get potentials(){return this.data.potentials===void 0&&(this.data.potentials=[]),this.data.potentials}set potentials(o){this.data.potentials=[...o]}get additionalPotentialGrade(){return this.data.additionalPotentialGrade??0}set additionalPotentialGrade(o){this.data.additionalPotentialGrade=o}get additionalPotentials(){return this.data.additionalPotentials===void 0&&(this.data.additionalPotentials=[]),this.data.additionalPotentials}set additionalPotentials(o){this.data.additionalPotentials=o}get exceptionalOption(){return d(this.data.exceptionalOption??{})}get exceptionalUpgradeCount(){return this.data.exceptionalUpgradeCount??0}get exceptionalUpgradeableCount(){return this.data.exceptionalUpgradeableCount??0}get exceptionalTotalUpgradeableCount(){return this.exceptionalUpgradeCount+this.exceptionalUpgradeableCount}get supportsAddOption(){return y(this.type)}applyAddOption(o,r){let a=T(this,o,r);this.data.addOption||(this.data.addOption={}),O(this.data.addOption,a),this.meta.add.push([o,r])}resetAddOption(){this.data.addOption=void 0,this.meta.add=[]}get supportsUpgrade(){return S(this)}get canApplyGoldenHammer(){return G(this)}applyGoldenHammer(){ot(this)}get canApplyFailScroll(){return j(this)}applyScrollFail(){rt(this)}get canApplyResileScroll(){return B(this)}applyScrollResile(){at(this)}get canResetUpgrade(){return W(this)}resetUpgrade(){nt(this)}get canApplyScroll(){return V(this)}applyScroll(o){v(this,o)}applySpellTrace(o,r){lt(this,o,r)}get supportsStarforce(){return k(this)}get canApplyStarforce(){return E(this)}applyStarforce(){J(this)}get canApplyStarforceIgnoringMaxStar(){return E(this,!0)}applyStarforceIgnoringMaxStar(){J(this,!0)}get canApplyStarScroll(){return U(this)}applyStarScroll(o=!1){X(this,o)}get canApplyStarScrollIgnoringMaxStar(){return U(this,!0)}applyStarScrollIgnoringMaxStar(o=!1){X(this,o,!0)}get canResetStarforce(){return $(this)}resetStarforce(){ut(this)}get supportsSoul(){return K(this)}get canApplySoulEnchant(){return Q(this)}applySoulEnchant(){dt(this)}get canSetSoul(){return Y(this)}setSoul(o){mt(this,o)}get canSetSoulCharge(){return Z(this)}setSoulCharge(o){ft(this,o)}resetSoulEnchant(){St(this)}get supportsExceptional(){return R(this)}get canApplyExceptional(){return L(this)}applyExceptional(o){tt(this,o)}get canResetExceptional(){return M(this)}resetExceptional(){et(this)}};export{Ot as AddOptionCan,_t as AddOptionType,ht as Gear,D as GearAttribute,gt as GearCuttable,H as GearReq,xt as GearShare,bt as GearTrade,A as GearType,wt as PotentialCan,z as PotentialGrade,Ut as SpellTraceType,tt as applyExceptional,ot as applyGoldenHammer,v as applyScroll,dt as applySoulEnchant,lt as applySpellTrace,L as canApplyExceptional,V as canApplyScroll,Q as canApplySoulEnchant,j as canFailScroll,G as canGoldenHammer,M as canResetExceptional,$ as canResetStarforce,W as canResetUpgrade,B as canResileScroll,Y as canSetSoul,Z as canSetSoulCharge,U as canStarScroll,E as canStarforce,rt as failScroll,T as getAddOption,Rt as getAddOptionValue,It as getSpellTraceScroll,x as isAccessory,b as isArmor,kt as isDoubleHandWeapon,Wt as isDragonGear,At as isLeftWeapon,Bt as isMechanicGear,q as isShield,jt as isSubWeapon,u as isWeapon,et as resetExceptional,St as resetSoulEnchant,ut as resetStarforce,nt as resetUpgrade,at as resileScroll,mt as setSoul,ft as setSoulCharge,X as starScroll,J as starforce,y as supportsAddOption,R as supportsExceptional,K as supportsSoul,k as supportsStarforce,S as supportsUpgrade,d as toGearOption};
1
+ var ot=(d=>(d.str="str",d.dex="dex",d.int="int",d.luk="luk",d.str_dex="str,dex",d.str_int="str,int",d.str_luk="str,luk",d.dex_int="dex,int",d.dex_luk="dex,luk",d.int_luk="int,luk",d.maxHp="maxHp",d.maxMp="maxMp",d.attackPower="attackPower",d.magicPower="magicPower",d.armor="armor",d.speed="speed",d.jump="jump",d.bossDamage="bossDamage",d.damage="damage",d.allStat="allStat",d.reqLevelDecrease="reqLevelDecrease",d))(ot||{});var It=(n=>(n[n.Tradeable=0]="Tradeable",n[n.TradeBlock=1]="TradeBlock",n[n.EquipTradeBlock=2]="EquipTradeBlock",n))(It||{}),yt=(n=>(n[n.None=0]="None",n[n.AccountSharable=1]="AccountSharable",n[n.AccountSharableOnce=2]="AccountSharableOnce",n))(yt||{}),P=(n=>(n[n.Cannot=0]="Cannot",n[n.Can=1]="Can",n[n.Fixed=2]="Fixed",n))(P||{}),Dt=(n=>(n[n.None=0]="None",n[n.Silver=1]="Silver",n[n.Platinum=2]="Platinum",n))(Dt||{});var w=(e=>(e[e.cap=100]="cap",e[e.faceAccessory=101]="faceAccessory",e[e.eyeAccessory=102]="eyeAccessory",e[e.earrings=103]="earrings",e[e.coat=104]="coat",e[e.longcoat=105]="longcoat",e[e.pants=106]="pants",e[e.shoes=107]="shoes",e[e.glove=108]="glove",e[e.cape=110]="cape",e[e.ring=111]="ring",e[e.pendant=112]="pendant",e[e.belt=113]="belt",e[e.medal=114]="medal",e[e.shoulder=115]="shoulder",e[e.pocket=116]="pocket",e[e.badge=118]="badge",e[e.android=166]="android",e[e.machineHeart=167]="machineHeart",e[e.shield=109]="shield",e[e.emblem=119]="emblem",e[e.powerSource=119020]="powerSource",e[e.shiningRod=1212]="shiningRod",e[e.tuner=1213]="tuner",e[e.breathShooter=1214]="breathShooter",e[e.soulShooter=122]="soulShooter",e[e.desperado=123]="desperado",e[e.energySword=124]="energySword",e[e.espLimiter=126]="espLimiter",e[e.chain=127]="chain",e[e.magicGauntlet=128]="magicGauntlet",e[e.ritualFan=129]="ritualFan",e[e.ohSword=130]="ohSword",e[e.ohAxe=131]="ohAxe",e[e.ohBlunt=132]="ohBlunt",e[e.dagger=133]="dagger",e[e.katara=134]="katara",e[e.cane=136]="cane",e[e.wand=137]="wand",e[e.staff=138]="staff",e[e.thSword=140]="thSword",e[e.chakram=1404]="chakram",e[e.thAxe=141]="thAxe",e[e.thBlunt=142]="thBlunt",e[e.spear=143]="spear",e[e.polearm=144]="polearm",e[e.bow=145]="bow",e[e.crossbow=146]="crossbow",e[e.claw=147]="claw",e[e.knuckle=148]="knuckle",e[e.gun=149]="gun",e[e.shovel=150]="shovel",e[e.pickaxe=151]="pickaxe",e[e.dualBowguns=152]="dualBowguns",e[e.handCannon=153]="handCannon",e[e.heavySword=156]="heavySword",e[e.longSword=157]="longSword",e[e.gauntletRevolver=158]="gauntletRevolver",e[e.ancientBow=159]="ancientBow",e[e.soulShield=1098]="soulShield",e[e.demonShield=1099]="demonShield",e[e.magicArrow=135200]="magicArrow",e[e.card=135210]="card",e[e.medallion=135220]="medallion",e[e.rosary=135221]="rosary",e[e.ironChain=135222]="ironChain",e[e.magicBook1=135223]="magicBook1",e[e.magicBook2=135224]="magicBook2",e[e.magicBook3=135225]="magicBook3",e[e.arrowFletching=135226]="arrowFletching",e[e.bowThimble=135227]="bowThimble",e[e.daggerScabbard=135228]="daggerScabbard",e[e.charm=135229]="charm",e[e.orb=135240]="orb",e[e.dragonEssence=135250]="dragonEssence",e[e.soulRing=135260]="soulRing",e[e.magnum=135270]="magnum",e[e.wristBand=135290]="wristBand",e[e.farSight=135291]="farSight",e[e.powderKeg=135292]="powderKeg",e[e.mass=135293]="mass",e[e.document=135294]="document",e[e.magicMarble=135295]="magicMarble",e[e.arrowhead=135296]="arrowhead",e[e.jewel=135297]="jewel",e[e.powderKeg2=135298]="powderKeg2",e[e.controller=135300]="controller",e[e.foxMarble=135310]="foxMarble",e[e.chessPiece=135320]="chessPiece",e[e.transmitter=135330]="transmitter",e[e.charge=135340]="charge",e[e.magicWing=135350]="magicWing",e[e.pathOfAbyss=135360]="pathOfAbyss",e[e.relic=135370]="relic",e[e.fanTassel=135380]="fanTassel",e[e.bracelet=135400]="bracelet",e[e.weaponBelt=135401]="weaponBelt",e[e.ornament=135402]="ornament",e[e.hexSeeker=135403]="hexSeeker",e[e.petEquip=180]="petEquip",e[e.machineEngine=161]="machineEngine",e[e.machineArms=162]="machineArms",e[e.machineLegs=163]="machineLegs",e[e.machineBody=164]="machineBody",e[e.machineTransistors=165]="machineTransistors",e[e.dragonMask=194]="dragonMask",e[e.dragonPendant=195]="dragonPendant",e[e.dragonWings=196]="dragonWings",e[e.dragonTail=197]="dragonTail",e))(w||{});var B=(i=>(i[i.Normal=0]="Normal",i[i.Rare=1]="Rare",i[i.Epic=2]="Epic",i[i.Unique=3]="Unique",i[i.Legendary=4]="Legendary",i))(B||{});var Ut="__GearOption_s87Ns2aQ";function u(t){return Ut in t?t:new Proxy(t,{get(o,a){if(a===Ut)return!0;if(a in at)return o[a]??at[a]},set(o,a,n){return a in at?(o[a]=n,!0):!1},ownKeys(o){return Object.entries(o).filter(([,a])=>a!=0).map(([a])=>a)}})}function h(t,...o){let a=t;for(let n of o)for(let[r,i]of Object.entries(n))r in a?a[r]+=i:a[r]=i}function Gt(...t){let o={};return h(o,...t),o}var at={str:0,dex:0,int:0,luk:0,strRate:0,dexRate:0,intRate:0,lukRate:0,maxHp:0,maxMp:0,maxHpRate:0,maxMpRate:0,maxDemonForce:0,attackPower:0,magicPower:0,attackPowerRate:0,magicPowerRate:0,armor:0,armorRate:0,speed:0,jump:0,bossDamage:0,normalDamage:0,ignoreMonsterArmor:0,allStat:0,damage:0,reqLevelDecrease:0,criticalRate:0,criticalDamage:0,cooltimeReduce:0,strLv:0,dexLv:0,intLv:0,lukLv:0};function p(t){return qt(t)||Lt(t)}function qt(t){return 121<=t&&t<=139&&t!==134||Math.floor(t/10)===121}function Lt(t){return t>=140&&t<=149||t>=152&&t<=159||Math.floor(t/10)===140}function Qt(t){if(Ht(t))return!0;switch(t){case 134:return!0;default:return Math.floor(t/1e3)===135}}function Ht(t){switch(t){case 109:case 1099:case 1098:return!0;default:return!1}}function _(t){return t===100||t>=104&&t<=110||t===1098||t===1099}function v(t){return t>=101&&t<=103||t>=111&&t<=113||t===115}function Yt(t){return t>=161&&t<=165}function Zt(t){return t>=194&&t<=197}var zt=4;function C(t){return t.attributes.canAddOption===1}function j(t){return!(!C(t)||t.addOptions.length===zt)}function nt(t,o,a){if(!j(t))throw TypeError("\uCD94\uAC00 \uC635\uC158\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.addOption===void 0&&(t.data.addOption={});let n=Bt(t,o,a);h(t.data.addOption,n),t.data.addOptions===void 0&&(t.data.addOptions=[]);let r=it(t,o,a);t.data.addOptions.push({type:o,grade:a,value:r})}function W(t){return!!C(t)}function rt(t){if(!W(t))throw TypeError("\uCD94\uAC00 \uC635\uC158\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.addOption=void 0,t.data.addOptions=void 0}function Bt(t,o,a){let n=de(o),r=it(t,o,a),i=n.map(s=>[s,r]);return Object.fromEntries(i)}function it(t,o,a){let n={type:o,reqLevel:t.req.level+t.req.levelIncrease,gearType:t.type,bossReward:t.attributes.bossReward,attackPower:t.baseOption.attackPower,magicPower:t.baseOption.magicPower};switch(o){case"str":case"dex":case"int":case"luk":return Mt(a,n);case"str,dex":case"str,int":case"str,luk":case"dex,int":case"dex,luk":case"int,luk":return Tt(a,n);case"armor":return Mt(a,n);case"attackPower":case"magicPower":return te(a,n);case"maxHp":case"maxMp":return ae(a,n);case"speed":return ne(a,n);case"jump":return re(a,n);case"damage":return ie(a,n);case"bossDamage":return le(a,n);case"allStat":return se(a,n);case"reqLevelDecrease":return ce(a,n)}}function Mt(t,{reqLevel:o}){return o>=250?Math.floor(o/20)*t:(Math.floor(o/20)+1)*t}function Tt(t,{reqLevel:o}){return(Math.floor(o/40)+1)*t}function te(t,o){let{reqLevel:a,gearType:n}=o;if(p(n))return ee(t,o);if(a>=60)return t;throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 60 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.")}function ee(t,o){let{reqLevel:a,type:n,gearType:r,bossReward:i,attackPower:s,magicPower:l}=o,f=i?[0,0,1,1.4666,2.0166,2.663,3.4166]:[1,2.222,3.63,5.325,7.32,8.777,10.25];if(r===156||r===157){let m=oe(r,o),g=a>180?6:a>160?5:a>110?4:3;return Math.ceil(m*f[t-1]*g/100)}else{let m=n==="magicPower"&&l>s?l:s;if(i){let g=a>160?6:a>150?5:a>110?4:3;return Math.ceil(m*f[t-1]*g*3/100)}else{let g=a>110?4:3;return Math.ceil(m*f[t-1]*g/100)}}}function oe(t,{attackPower:o}){if(t===156)return o;let n=new Map([[100,102],[103,105],[105,107],[112,114],[117,121],[135,139],[169,173],[203,207],[293,297],[337,342]]).get(o);if(n===void 0)throw TypeError("\uACF5\uACA9\uB825/\uB9C8\uB825 \uCD94\uAC00 \uC635\uC158\uC744 \uBD80\uC5EC\uD560 \uC218 \uC5C6\uB294 \uD0DC\uB3C4 \uC7A5\uBE44\uC785\uB2C8\uB2E4. (Please submit issue with the gear info)");return n}function ae(t,{reqLevel:o}){return o<10?3*t:o>=250?700*t:Math.floor(o/10)*30*t}function ne(t,{gearType:o}){if(p(o))throw TypeError("\uC774\uB3D9\uC18D\uB3C4 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function re(t,{gearType:o}){if(p(o))throw TypeError("\uC810\uD504\uB825 \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30\uAC00 \uC544\uB2CC \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function ie(t,{gearType:o}){if(!p(o))throw TypeError("\uB370\uBBF8\uC9C0(%) \uCD94\uAC00 \uC635\uC158\uC740 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function le(t,{reqLevel:o,gearType:a}){if(o<90||!p(a))throw TypeError("\uBCF4\uC2A4 \uACF5\uACA9 \uC2DC \uB370\uBBF8\uC9C0 \uC99D\uAC00(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 90 \uC774\uC0C1\uC758 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return 2*t}function se(t,{reqLevel:o,gearType:a}){if(o<70&&!p(a))throw TypeError("\uC62C\uC2A4\uD0EF(%) \uCD94\uAC00 \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 70 \uC774\uC0C1 \uB610\uB294 \uBB34\uAE30 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return t}function ce(t,{reqLevel:o}){if(o<=0)throw TypeError("\uCC29\uC6A9 \uB808\uBCA8 \uAC10\uC18C \uC635\uC158\uC740 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8 1 \uC774\uC0C1\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uBD80\uC5EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");return Math.min(o,5*t)}function de(t){return t.split(",")}function k(t){return t.exceptionalTotalUpgradeableCount>0}function V(t){return k(t)&&t.exceptionalUpgradeableCount>0}function lt(t,o){if(!V(t))throw TypeError("\uC775\uC149\uC154\uB110 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption===void 0&&(t.data.exceptionalOption={}),h(t.data.exceptionalOption,o.option),t.data.exceptionalUpgradeableCount=t.exceptionalUpgradeableCount-1,t.data.exceptionalUpgradeCount=t.exceptionalUpgradeCount+1}function N(t){return k(t)}function st(t){if(!N(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.exceptionalOption={},t.data.exceptionalUpgradeableCount=t.exceptionalTotalUpgradeableCount,t.data.exceptionalUpgradeCount=void 0}function ct(t){return t.attributes.canPotential===1}function E(t){return t.attributes.canPotential===1}function dt(t,o,a){if(!E(t))throw new TypeError("\uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");if(o===0)throw new TypeError("\uC7A0\uC7AC\uB2A5\uB825 \uB4F1\uAE09\uC744 Normal\uB85C \uC124\uC815\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. (\uC7A0\uC7AC\uB2A5\uB825\uC744 \uCD08\uAE30\uD654\uD558\uB824\uBA74 resetPotential\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.)");if(a.length<1||a.length>3)throw new TypeError("\uC7A0\uC7AC\uC635\uC158 \uAC1C\uC218\uB294 1\uAC1C\uC5D0\uC11C 3\uAC1C \uC0AC\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4.");t.data.potentialGrade=o,t.data.potentials=a}function pt(t){if(!E(t))throw new TypeError("\uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.potentialGrade=0,t.data.potentials=void 0}function ut(t){return t.attributes.canAdditionalPotential===1}function I(t){return t.attributes.canAdditionalPotential===1}function ft(t,o,a){if(!I(t))throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");if(o===0)throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825 \uB4F1\uAE09\uC744 Normal\uB85C \uC124\uC815\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. (\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825\uC744 \uCD08\uAE30\uD654\uD558\uB824\uBA74 resetAdditionalPotential\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.)");if(a.length<1||a.length>3)throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uC635\uC158 \uAC1C\uC218\uB294 1\uAC1C\uC5D0\uC11C 3\uAC1C \uC0AC\uC774\uC5EC\uC57C \uD569\uB2C8\uB2E4.");t.data.additionalPotentialGrade=o,t.data.additionalPotentials=a}function mt(t){if(!I(t))throw new TypeError("\uC5D0\uB514\uC154\uB110 \uC7A0\uC7AC\uB2A5\uB825\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.additionalPotentialGrade=0,t.data.additionalPotentials=void 0}function F(t){return p(t.type)}function J(t){return F(t)&&!t.soulEnchanted}function St(t){if(!J(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0\uC740 \uC911\uBCF5\uD574\uC11C \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");t.data.soulSlot={}}function X(t){return t.soulEnchanted}function ht(t,o){if(!X(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC5D0\uB9CC \uC18C\uC6B8\uC744 \uC7A5\uCC29\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.soul=o,jt(t)}function $(t){return t.soulEnchanted}function bt(t,o){if(!$(t))throw TypeError("\uC18C\uC6B8\uC6E8\uD3F0 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uB9CC \uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC744 \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");if(o<0||o>1e3)throw TypeError("\uC18C\uC6B8 \uCDA9\uC804\uB7C9\uC740 0 \uC774\uC0C1 1000 \uC774\uD558\uC758 \uAC12\uC73C\uB85C\uB9CC \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");t.data.soulSlot.charge=o,jt(t)}function xt(t){t.data.soulSlot=void 0}function jt(t){let o;if(t.soulCharge===0)o={};else{let a=t.baseOption.attackPower>=t.baseOption.magicPower?"attackPower":"magicPower",n=Math.min(5,Math.ceil(t.soulCharge/100)-1);t.soul?o={[a]:10+n*(t.soul.chargeFactor??1)}:o={[a]:5+n}}t.data.soulSlot.chargeOption=o}function b(t){return t.attributes.canScroll===1}function K(t){return b(t)&&t.scrollUpgradeableCount>0}function Ot(t){if(!K(t))throw TypeError("\uC8FC\uBB38\uC11C \uC2E4\uD328\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollResilienceCount=t.scrollResilienceCount+1}function Q(t){return b(t)&&t.scrollResilienceCount>0}function Pt(t){if(!Q(t))throw TypeError("\uC5C5\uADF8\uB808\uC774\uB4DC \uAC00\uB2A5 \uD69F\uC218\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.scrollResilienceCount=t.scrollResilienceCount-1,t.data.scrollUpgradeableCount=t.scrollUpgradeableCount+1}function Y(t){return b(t)}function wt(t){if(!Y(t))throw TypeError("\uC8FC\uBB38\uC11C \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption={},t.data.scrollUpgradeableCount=t.scrollTotalUpgradeableCount,t.data.scrollUpgradeCount=void 0,t.data.scrollResilienceCount=void 0}function Z(t){return b(t)&&t.scrollUpgradeableCount>0}function y(t,o){if(!Z(t))throw TypeError("\uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.upgradeOption===void 0&&(t.data.upgradeOption={}),h(t.data.upgradeOption,o.option),t.data.scrollUpgradeableCount=t.scrollUpgradeableCount-1,t.data.scrollUpgradeCount=t.scrollUpgradeCount+1}var Nt=(s=>(s.str="str",s.dex="dex",s.int="int",s.luk="luk",s.maxHp="maxHp",s.allStat="allStat",s))(Nt||{});function Rt(t,o,a){let n=Ft(t,o,a);y(t,n)}function Ft(t,o,a){if(p(t.type)||t.type===134)return pe(t,o,a);if(t.type===108)return ue(t,o,a);if(_(t.type)||t.type===115)return fe(t,o,a);if(v(t.type))return me(t,o,a);if(t.type===167)return Se(t,o,a);throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44 \uBD84\uB958\uC785\uB2C8\uB2E4.")}function pe(t,o,a){if(o==="allStat")throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let n=D(t),[r,i]=he[a][n];o==="maxHp"&&(i*=50);let s=gt(o),l,f;return i===0?(l=O(a,x(s)),f={[s]:r}):(l=O(a,x(s),x(o)),f={[s]:r,[o]:i}),{name:l,option:f,type:o,rate:a}}function ue(t,o,a){let n=D(t),r=xe[a][n],i,s;if(r===0)i=O(a,"\uBC29\uC5B4\uB825"),s={armor:3};else{let l=gt(o);i=O(a,x(l)),s={[l]:r}}return{name:i,option:s,rate:a,type:o}}function fe(t,o,a){let n=D(t),[r,i,s]=be[a][n],l={maxHp:i,armor:s};switch(o){case"str":case"dex":case"int":case"luk":l[o]=r;break;case"maxHp":l.maxHp+=r*50;break;case"allStat":{if(!(a in Wt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let m=Wt[a][n];l.str=m,l.dex=m,l.int=m,l.luk=m;break}}return t.scrollUpgradeCount===3&&(t.req.beginner()?(l.attackPower=1,l.magicPower=1):t.req.magician()?l.magicPower=1:l.attackPower=1),{name:O(a,x(o)),option:l,type:o,rate:a}}function me(t,o,a){if(!(a in At))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let n=D(t),r=At[a][n],i={};switch(o){case"str":case"dex":case"int":case"luk":i[o]=r;break;case"maxHp":i.maxHp=r*50;break;case"allStat":{if(!(a in Vt))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let l=Vt[a][n];i.str=l,i.dex=l,i.int=l,i.luk=l;break}}return{name:O(a,x(o)),option:i,type:o,rate:a}}function Se(t,o,a){if(!(a in At))throw TypeError("\uC8FC\uBB38\uC758 \uD754\uC801\uC744 \uC7A5\uBE44\uC5D0 \uC801\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let n=D(t),r=Oe[a][n],i=gt(o),s=O(a,x(i)),l={[i]:r};return{name:s,option:l,type:o,rate:a}}function O(t,o,a){return a?`${t.toString()}% ${o}(${a}) \uC8FC\uBB38\uC11C`:`${t.toString()}% ${o} \uC8FC\uBB38\uC11C`}function x(t){switch(t){case"str":return"\uD798";case"dex":return"\uBBFC\uCCA9";case"int":return"\uC9C0\uB825";case"luk":return"\uC6B4";case"maxHp":return"\uCCB4\uB825";case"allStat":return"\uC62C\uC2A4\uD0EF";case"attackPower":return"\uACF5\uACA9\uB825";case"magicPower":return"\uB9C8\uB825"}}function D(t){let o=t.req.level+t.req.levelIncrease;return o>110?2:o>70?1:0}function gt(t){return t==="int"?"magicPower":"attackPower"}var he={100:[[1,0],[2,0],[3,1]],70:[[2,0],[3,1],[5,2]],30:[[3,1],[5,2],[7,3]],15:[[5,2],[7,3],[9,4]]},be={100:[[1,5,1],[2,20,2],[3,30,3]],70:[[2,15,2],[3,40,4],[4,70,5]],30:[[3,30,4],[5,70,7],[7,120,10]],15:[[4,45,6],[7,110,10],[10,170,15]]},Wt={30:[1,2,3],15:[2,3,4]},xe={100:[0,1,1],70:[1,2,2],30:[2,3,3],15:[3,4,4]},At={100:[1,1,2],70:[2,2,3],30:[3,4,5]},Vt={30:[1,2,3]},Oe={100:[1,2,3],70:[2,3,5],30:[3,5,7]};var Pe=30,vt=15,we=15,Ae=150;function R(t){return t.attributes.canStarforce===1}function U(t,o=!1){if(!R(t))return!1;if(t.attributes.superior)return t.star<Math.min(we,t.maxStar);if(o){if(t.star>=Ce(t))return!1}else if(t.star>=t.maxStar)return!1;let a=t.starScroll?vt:Pe;return t.star<a}function T(t,o=!1){if(!U(t,o))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.star=t.star+1,t.attributes.superior?Re(t):p(t.type)||t.type===134?ge(t):_e(t)}function G(t,o=!1){return!R(t)||t.attributes.superior||t.req.level>Ae||!o&&t.star>=t.maxStar?!1:t.star<vt}function tt(t,o=!1,a=!1){if(!G(t,a))throw TypeError("\uB180\uB77C\uC6B4 \uC7A5\uBE44 \uAC15\uD654 \uC8FC\uBB38\uC11C\uB97C \uC801\uC6A9\uD560 \uC218 \uC5C6\uB294 \uC0C1\uD0DC\uC758 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starScroll=!0,t.data.star=t.star+1;let n=S(He,t),r=S(Me,t),i=p(t.type)||t.type===134;for(let l of q)_t(t,l)>0&&(c(t)[l]+=n,o&&v(t.type)&&(c(t)[l]+=t.star>5?2:1));for(let l of Xt){let f=_t(t,l);f>0&&(i&&(c(t)[l]+=Math.floor(f/50)+1),c(t)[l]+=r,o&&(i||t.type===109)&&(c(t)[l]+=1))}o&&_(t.type)&&(c(t).maxHp+=50);let s=_t(t,"armor");s>0&&(c(t).armor+=Math.floor(s/20)+1)}function et(t){return!!R(t)}function Ct(t){if(!et(t))throw TypeError("\uC2A4\uD0C0\uD3EC\uC2A4 \uAC15\uD654\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uB294 \uC7A5\uBE44\uC785\uB2C8\uB2E4.");t.data.starforceOption={},t.data.star=void 0,t.data.starScroll=void 0}function kt(t){if(t.attributes.canStarforce===0)return 0;let o=ve(t);return t.starScroll?Math.min(vt,o):o}function Re(t){let o=S(Ge,t),a=S(Ue,t);for(let r of q)t.baseOption[r]>0&&(c(t)[r]+=o);for(let r of Xt)t.baseOption[r]>0&&(c(t)[r]+=a);let n=z(t,"armor");c(t).armor+=Math.floor(n/20)+1}function ge(t){let o=S($t,t),a=S(De,t),n=Jt(t);for(let s of q)(n.has(s)||t.star>15&&(t.baseOption[s]>0||t.upgradeOption[s]>0))&&(c(t)[s]+=o);let r=t.req.magician()||t.upgradeOption.magicPower>0;if(t.star>15)c(t).attackPower+=a,r&&(c(t).magicPower+=a);else{let s=z(t,"attackPower");if(c(t).attackPower+=Math.floor(s/50)+1,r){let l=z(t,"magicPower");c(t).magicPower+=Math.floor(l/50)+1}}let i=Kt[t.star];c(t).maxHp+=i,c(t).maxMp+=i}function _e(t){let o=S($t,t),a=S(ye,t),n=Jt(t);for(let r of q)(n.has(r)||t.star>15&&(t.baseOption[r]>0||t.upgradeOption[r]>0))&&(c(t)[r]+=o);if(c(t).attackPower+=a,c(t).magicPower+=a,t.type===108&&t.req.level>=130){let r=qe[t.star];t.req.beginner()?(c(t).attackPower+=r,c(t).magicPower+=r):t.req.magician()?c(t).magicPower+=r:c(t).attackPower+=r}if(t.type!==167){let r=z(t,"armor");c(t).armor+=Math.floor(r/20)+1}if(Ie.includes(t.type)){let r=Kt[t.star];c(t).maxHp+=r}if(t.type===107){let r=Le[t.star];c(t).speed+=r,c(t).jump+=r}}function Jt(t){if(t.req.beginner())return new Set(q);let o=[];return t.req.warrior()&&o.push("str","dex"),t.req.magician()&&o.push("int","luk"),t.req.bowman()&&o.push("dex","str"),t.req.thief()&&o.push("luk","dex"),t.req.pirate()&&o.push("str","dex"),new Set(o)}function S(t,o){let a=o.req.level;for(let n=t.length-1;n>=0;n--){let r=t[n];if(a>=r[0])return r[o.star]}throw TypeError("\uC7A5\uBE44\uC758 \uCC29\uC6A9 \uAC00\uB2A5 \uB808\uBCA8\uC740 0 \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.")}function c(t){return t.data.starforceOption===void 0&&(t.data.starforceOption={}),u(t.data.starforceOption)}function z(t,o){return t.baseOption[o]+t.upgradeOption[o]+t.starforceOption[o]}function _t(t,o){return t.baseOption[o]+t.addOption[o]+t.upgradeOption[o]+t.starforceOption[o]}function ve(t){let o=t.req.level+t.req.levelIncrease,a;for(let n of ke)if(o>=n[0])a=n;else break;return a?t.attributes.superior?a[2]:a[1]:0}function Ce(t){let o=t.req.level,a;for(let n of Ee)if(o>=n[0])a=n;else break;return a?a[1]:0}var ke=[[0,5,3],[95,8,5],[110,10,8],[120,15,10],[130,20,12],[140,30,15]],Ee=[[0,15],[101,19],[111,29],[140,30]],q=["str","dex","int","luk"],Xt=["attackPower","magicPower"],Ie=[100,104,105,106,110,111,112,113,115,109],$t=[[0,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,0,0,0,0,0],[108,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0],[118,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,0,0,0],[128,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,7,7,7,7,7,7,7,0,0,0],[138,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0],[148,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,11,11,11,11,11,11,11,0,0,0,0,0,0,0,0],[158,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,13,13,13,13,13,13,13,0,0,0,0,0,0,0,0],[198,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,15,15,15,15,15,15,15,0,0,0,0,0,0,0,0],[248,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,17,17,17,17,17,17,17,0,0,0,0,0,0,0,0]],ye=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,5,6,7,8,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,7,8,9,10,12,13,15,17],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,8,9,10,11,13,14,16,18],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21,22,23,24,25,26],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22,23,24,25,26,27],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,17,19,21,23,24,25,26,27,28],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,13,14,15,16,17,19,21,23,25,26,27,28,29,30],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,15,16,17,18,19,21,23,25,27,28,29,30,31,32]],De=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,4,5,6,7,0,0,0,0,0],[108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,5,5,6,7,8,9,27,28,29],[118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,6,6,7,8,9,10,28,29,30],[128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,7,8,9,10,11,29,30,31],[138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,8,8,9,10,11,12,30,31,32,33,34,35,36,37],[148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,9,9,10,11,12,13,31,32,33,34,35,36,37,38],[158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,10,11,12,13,14,32,33,34,35,36,37,38,39],[198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,13,14,14,15,16,17,34,35,36,37,38,39,40,41],[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,16,16,17,18,19,36,37,38,39,40,41,42,43]],Ue=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[110,0,0,0,0,0,5,6,7,0,0,0,0,0,0,0],[150,0,0,0,0,0,9,10,11,12,13,15,17,19,21,23]],Ge=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],qe=[-1,0,0,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Kt=[-1,5,5,5,10,10,15,15,20,20,25,25,25,25,25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Le=[-1,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],He=[[0,1,2,4,7,11,0,0,0,0,0,0,0,0,0,0],[80,2,3,5,8,12,0,0,0,0,0,0,0,0,0,0],[85,3,4,6,9,13,0,0,0,0,0,0,0,0,0,0],[90,4,5,7,10,14,0,0,0,0,0,0,0,0,0,0],[95,5,6,8,11,15,0,0,0,0,0,0,0,0,0,0],[100,7,8,10,13,17,0,0,0,0,0,0,0,0,0,0],[105,8,9,11,14,18,0,0,0,0,0,0,0,0,0,0],[110,9,10,12,15,19,0,0,0,0,0,0,0,0,0,0],[115,10,11,13,16,20,0,0,0,0,0,0,0,0,0,0],[120,12,13,15,18,22,0,0,0,0,0,0,0,0,0,0],[125,13,14,16,19,23,0,0,0,0,0,0,0,0,0,0],[130,14,15,17,20,24,0,0,0,0,0,0,0,0,0,0],[135,15,16,18,21,25,0,0,0,0,0,0,0,0,0,0],[140,17,18,20,23,27,0,0,0,0,0,0,0,0,0,0],[145,18,19,21,24,28,0,0,0,0,0,0,0,0,0,0],[150,19,20,22,25,29,0,0,0,0,0,0,0,0,0,0]],Me=[[0,0,0,0,0,0,1,2,3,4,5,6,8,10,12,14],[80,0,0,0,0,0,2,3,4,5,6,7,9,11,13,15],[90,0,0,0,0,0,3,4,5,6,7,8,10,12,14,16],[100,0,0,0,0,0,4,5,6,7,8,9,11,13,15,17],[110,0,0,0,0,0,5,6,7,8,9,10,12,14,16,18],[120,0,0,0,0,0,6,7,8,9,10,11,13,15,17,19],[130,0,0,0,0,0,7,8,9,10,11,12,14,16,18,20],[140,0,0,0,0,0,8,9,10,11,12,13,15,17,19,21],[150,0,0,0,0,0,9,10,11,12,13,14,16,18,20,22]];var L=class{data;constructor(o){this.data=o}get only(){return this.data.only??!1}get trade(){return this.data.trade??0}set trade(o){this.data.trade=o}get onlyEquip(){return this.data.onlyEquip??!1}get share(){return this.data.share??0}get superior(){return this.data.superior??!1}get attackSpeed(){return this.data.attackSpeed}get canScroll(){return this.data.canScroll??0}get canStarforce(){return this.data.canStarforce??0}get canAddOption(){return this.data.canAddOption??0}get canPotential(){return this.data.canPotential??0}get canAdditionalPotential(){return this.data.canAdditionalPotential??0}get specialGrade(){return this.data.specialGrade??!1}get cuttable(){return this.data.cuttable??0}get cuttableCount(){return this.data.cuttableCount}set cuttableCount(o){this.data.cuttableCount=o}get totalCuttableCount(){return this.data.totalCuttableCount}get accountShareTag(){return this.data.accountShareTag??!1}get setItemId(){return this.data.setItemId}get lucky(){return this.data.lucky??!1}get incline(){return{charisma:0,insight:0,will:0,craft:0,sense:0,charm:0,...this.data.incline}}set incline(o){this.data.incline=o}get bossReward(){return this.data.bossReward??!1}get skills(){return this.data.skills??[]}get growthExp(){return this.data.growthExp}set growthExp(o){(o===void 0||0<=o&&o<=100)&&(this.data.growthExp=o)}get growthLevel(){return this.data.growthLevel}set growthLevel(o){this.data.growthLevel=o}get dateExpire(){return this.data.dateExpire}set dateExpire(o){(o===void 0||!Number.isNaN(Date.parse(o)))&&(this.data.dateExpire=o)}};var H=class{data;constructor(o){this.data=o}get level(){return this.data.level??0}get levelIncrease(){return this.data.levelIncrease??0}get job(){return this.data.job??0}get class(){return this.data.class??0}beginner(){return this.job===0}warrior(){return this.job===0||(this.job&1)!=0}magician(){return this.job===0||(this.job&2)!=0}bowman(){return this.job===0||(this.job&4)!=0}thief(){return this.job===0||(this.job&8)!=0}pirate(){return this.job===0||(this.job&16)!=0}};var M=class{_data;constructor(o){this._data=o}get data(){return this._data}get meta(){return this.data.meta}get name(){return this.data.name}get icon(){return this.data.icon??""}get desc(){return this.data.desc}get shape(){return this.data.shape}get shapeIcon(){return this.shape?.icon??this.icon}get type(){return this.data.type}get req(){return new H(this.data.req)}get attributes(){return new L(this.data.attributes)}get totalOption(){return u(Gt(this.baseOption,this.addOption,this.upgradeOption,this.starforceOption))}get baseOption(){return u(this.data.baseOption??{})}get addOption(){return u(this.data.addOption??{})}get upgradeOption(){return u(this.data.upgradeOption??{})}get starforceOption(){return u(this.data.starforceOption??{})}get addOptions(){return this.data.addOptions??[]}get scrollUpgradeCount(){return this.data.scrollUpgradeCount??0}get scrollResilienceCount(){return this.data.scrollResilienceCount??0}get scrollUpgradeableCount(){return this.data.scrollUpgradeableCount??0}get scrollTotalUpgradeableCount(){return this.scrollUpgradeCount+this.scrollUpgradeableCount+this.scrollResilienceCount}get star(){return this.data.star??0}get maxStar(){return kt(this)}get starScroll(){return this.data.starScroll??!1}get soulEnchanted(){return this.data.soulSlot!==void 0}get soul(){if(this.data.soulSlot?.soul)return{...this.data.soulSlot.soul,option:u(this.data.soulSlot.soul.option)}}get soulCharge(){return this.data.soulSlot?.charge??0}get soulChargeOption(){return u(this.data.soulSlot?.chargeOption??{})}get potentialGrade(){return this.data.potentialGrade??0}get potentials(){return this.data.potentials?this.data.potentials.map(o=>({...o,option:u(o.option)})):[]}get additionalPotentialGrade(){return this.data.additionalPotentialGrade??0}get additionalPotentials(){return this.data.additionalPotentials?this.data.additionalPotentials.map(o=>({...o,option:u(o.option)})):[]}get exceptionalOption(){return u(this.data.exceptionalOption??{})}get exceptionalUpgradeCount(){return this.data.exceptionalUpgradeCount??0}get exceptionalUpgradeableCount(){return this.data.exceptionalUpgradeableCount??0}get exceptionalTotalUpgradeableCount(){return this.exceptionalUpgradeCount+this.exceptionalUpgradeableCount}};var Et=class extends M{get data(){return this._data}get shape(){return this.data.shape}set shape(o){this.data.shape=o}get supportsAddOption(){return C(this)}get canApplyAddOption(){return j(this)}applyAddOption(o,a){nt(this,o,a)}get canResetAddOption(){return W(this)}resetAddOption(){rt(this)}get supportsUpgrade(){return b(this)}get canApplyScrollFail(){return K(this)}applyScrollFail(){Ot(this)}get canApplyResileScroll(){return Q(this)}applyResileScroll(){Pt(this)}get canResetUpgrade(){return Y(this)}resetUpgrade(){wt(this)}get canApplyScroll(){return Z(this)}applyScroll(o){y(this,o)}applySpellTrace(o,a){Rt(this,o,a)}get supportsStarforce(){return R(this)}get canApplyStarforce(){return U(this)}applyStarforce(){T(this)}get canApplyStarforceIgnoringMaxStar(){return U(this,!0)}applyStarforceIgnoringMaxStar(){T(this,!0)}get canApplyStarScroll(){return G(this)}applyStarScroll(o=!1){tt(this,o)}get canApplyStarScrollIgnoringMaxStar(){return G(this,!0)}applyStarScrollIgnoringMaxStar(o=!1){tt(this,o,!0)}get canResetStarforce(){return et(this)}resetStarforce(){Ct(this)}get supportsPotential(){return ct(this)}get canSetPotential(){return E(this)}setPotential(o,a){dt(this,o,a)}resetPotential(){pt(this)}get supportsAdditionalPotential(){return ut(this)}get canSetAdditionalPotential(){return I(this)}setAdditionalPotential(o,a){ft(this,o,a)}resetAdditionalPotential(){mt(this)}get supportsSoul(){return F(this)}get canApplySoulEnchant(){return J(this)}applySoulEnchant(){St(this)}get canSetSoul(){return X(this)}setSoul(o){ht(this,o)}get canSetSoulCharge(){return $(this)}setSoulCharge(o){bt(this,o)}resetSoulEnchant(){xt(this)}get supportsExceptional(){return k(this)}get canApplyExceptional(){return V(this)}applyExceptional(o){lt(this,o)}get canResetExceptional(){return N(this)}resetExceptional(){st(this)}};export{ot as AddOptionType,Et as Gear,L as GearAttribute,P as GearCapability,Dt as GearCuttable,H as GearReq,yt as GearShare,It as GearTrade,w as GearType,B as PotentialGrade,M as ReadonlyGear,Nt as SpellTraceType,nt as applyAddOption,lt as applyExceptional,y as applyScroll,St as applySoulEnchant,Rt as applySpellTrace,j as canApplyAddOption,V as canApplyExceptional,Z as canApplyScroll,J as canApplySoulEnchant,K as canFailScroll,W as canResetAddOption,N as canResetExceptional,et as canResetStarforce,Y as canResetUpgrade,Q as canResileScroll,I as canSetAdditionalPotential,E as canSetPotential,X as canSetSoul,$ as canSetSoulCharge,G as canStarScroll,U as canStarforce,Ot as failScroll,Bt as getAddOption,it as getAddOptionValue,kt as getMaxStar,Ft as getSpellTraceScroll,v as isAccessory,_ as isArmor,Lt as isDoubleHandWeapon,Zt as isDragonGear,qt as isLeftWeapon,Yt as isMechanicGear,Ht as isShield,Qt as isSubWeapon,p as isWeapon,rt as resetAddOption,mt as resetAdditionalPotential,st as resetExceptional,pt as resetPotential,xt as resetSoulEnchant,Ct as resetStarforce,wt as resetUpgrade,Pt as resileScroll,ft as setAdditionalPotential,dt as setPotential,ht as setSoul,bt as setSoulCharge,tt as starScroll,T as starforce,C as supportsAddOption,ut as supportsAdditionalPotential,k as supportsExceptional,ct as supportsPotential,F as supportsSoul,R as supportsStarforce,b as supportsUpgrade,u as toGearOption};