maplestory-openapi
Advanced tools
Comparing version 2.4.1 to 2.6.1
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs"),require("xml2js")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs","xml2js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs,t.xml2js)}(this,(function(t,e,a,i){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=r(e),n=r(a),o=r(i),c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});!function(t,e){var a,i;t.exports=(a={year:0,month:1,day:2,hour:3,minute:4,second:5},i={},function(t,e,r){var s,n=function(t,e,a){void 0===a&&(a={});var r=new Date(t),s=function(t,e){void 0===e&&(e={});var a=e.timeZoneName||"short",r=t+"|"+a,s=i[r];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),i[r]=s),s}(e,a);return s.formatToParts(r)},o=function(t,e){for(var i=n(t,e),s=[],o=0;o<i.length;o+=1){var c=i[o],l=c.type,h=c.value,p=a[l];p>=0&&(s[p]=parseInt(h,10))}var m=s[3],d=24===m?0:m,u=s[0]+"-"+s[1]+"-"+s[2]+" "+d+":"+s[4]+":"+s[5]+":000",_=+t;return(r.utc(u).valueOf()-(_-=_%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=s);var a=this.utcOffset(),i=this.toDate(),n=i.toLocaleString("en-US",{timeZone:t}),o=Math.round((i-new Date(n))/1e3/60),c=r(n,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-o,!0);if(e){var l=c.utcOffset();c=c.add(a-l,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||r.tz.guess(),a=n(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return a&&a.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var a=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,t,e).tz(this.$x.$timezone,!0)},r.tz=function(t,e,a){var i=a&&e,n=a||e||s,c=o(+r(),n);if("string"!=typeof t)return r(t).tz(n);var l=function(t,e,a){var i=t-60*e*1e3,r=o(i,a);if(e===r)return[i,e];var s=o(i-=60*(r-e)*1e3,a);return r===s?[i,r]:[t-60*Math.min(r,s)*1e3,Math.max(r,s)]}(r.utc(t,i).valueOf(),c,n),h=l[0],p=l[1],m=r(h).utcOffset(p);return m.$x.$timezone=n,m},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(t){s=t}})}(c);var l=c.exports,h={exports:{}};!function(t,e){var a,i,r;t.exports=(a="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g,function(t,e,s){var n=e.prototype;s.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=s(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),a):e},n.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var o=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var c=n.init;n.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=n.utcOffset;n.utcOffset=function(t,e){var s=this.$utils().u;if(s(t))return this.$u?0:s(this.$offset)?l.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(i);if(!e)return null;var a=(""+e[0]).match(r)||["-",0,0],s=a[0],n=60*+a[1]+ +a[2];return 0===n?0:"+"===s?n:-n}(t),null===t))return this;var n=Math.abs(t)<=16?60*t:t,o=this;if(e)return o.$offset=n,o.$u=0===t,o;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(n+c,a)).$offset=n,o.$x.$localOffset=c}else o=this.utc();return o};var h=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var p=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=n.diff;n.diff=function(t,e,a){if(t&&this.$u===t.$u)return m.call(this,t,e,a);var i=this.local(),r=s(t).local();return m.call(i,r,e,a)}})}(h);var p,m=h.exports;class d{abilityNo;abilityGrade;abilityValue;constructor(t){const{ability_no:e,ability_grade:a,ability_value:i}=t;this.abilityNo=e,this.abilityGrade=a,this.abilityValue=i}}class u{abilityPresetGrade;abilityInfo;constructor(t){const{ability_preset_grade:e,ability_info:a}=t;this.abilityPresetGrade=e,this.abilityInfo=a.map((t=>new d(t)))}}class _{date;abilityGrade;abilityInfo;remainFame;presetNo;abilityPreset1;abilityPreset2;abilityPreset3;constructor(t){const{date:e,ability_grade:a,ability_info:i,remain_fame:r,preset_no:s,ability_preset_1:n,ability_preset_2:o,ability_preset_3:c}=t;this.date=new Date(e),this.abilityGrade=a,this.abilityInfo=i.map((t=>new d(t))),this.remainFame=r,this.presetNo=s,this.abilityPreset1=n?new u(n):null,this.abilityPreset2=o?new u(o):null,this.abilityPreset3=c?new u(c):null}}class g{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:r}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=r}}class f{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class y{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:r,cash_item_description:s,cash_item_option:n,date_expire:o,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=r,this.cashItemDescription=s,this.cashItemOption=n.map((t=>new f(t))),this.dateExpire=o?new Date(o):null,this.dateOptionExpire=c?new Date(c):null,this.cashItemLabel=l,this.cashItemColoringPrism=h?new g(h):null}}class w{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class D{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class k{androidName;androidNickname;androidIcon;androidDescription;androidGender;androidGrade;androidSkinName;androidHair;androidFace;androidEarSensorClipFlag;androidNonHumanoidFlag;androidShopUsableFlag;constructor(t){const{android_name:e,android_nickname:a,android_icon:i,android_description:r,android_gender:s,android_grade:n,android_skin_name:o,android_hair:c,android_face:l,android_ear_sensor_clip_flag:h,android_non_humanoid_flag:p,android_shop_usable_flag:m}=t;this.androidName=e,this.androidNickname=a,this.androidIcon=i,this.androidDescription=r,this.androidGender=s,this.androidGrade=n,this.androidSkinName=o,this.androidHair=new D(c),this.androidFace=new w(l),this.androidEarSensorClipFlag=h,this.androidNonHumanoidFlag=p,this.androidShopUsableFlag=m}}class P{date;androidName;androidNickname;androidIcon;androidDescription;androidHair;androidFace;androidSkinName;androidCashItemEquipment;androidEarSensorClipFlag;androidGender;androidGrade;androidNonHumanoidFlag;androidShopUsableFlag;presetNo;androidPreset1;androidPreset2;androidPreset3;constructor(t){const{date:e,android_name:a,android_nickname:i,android_icon:r,android_description:s,android_hair:n,android_face:o,android_skin_name:c,android_cash_item_equipment:l,android_ear_sensor_clip_flag:h,android_gender:p,android_grade:m,android_non_humanoid_flag:d,android_shop_usable_flag:u,preset_no:_,android_preset_1:g,android_preset_2:f,android_preset_3:P}=t;this.date=new Date(e),this.androidName=a,this.androidNickname=i,this.androidIcon=r,this.androidDescription=s,this.androidHair=new D(n),this.androidFace=new w(o),this.androidSkinName=c,this.androidCashItemEquipment=l.map((t=>new y(t))),this.androidEarSensorClipFlag=h??null,this.androidGender=p,this.androidGrade=m,this.androidNonHumanoidFlag=d,this.androidShopUsableFlag=u,this.presetNo=_,this.androidPreset1=g?new k(g):null,this.androidPreset2=f?new k(f):null,this.androidPreset3=P?new k(P):null}}class C{date;characterName;worldName;characterGender;characterClass;characterClassLevel;characterLevel;characterExp;characterExpRate;characterGuildName;characterImage;constructor(t){const{date:e,character_name:a,world_name:i,character_gender:r,character_class:s,character_class_level:n,character_level:o,character_exp:c,character_exp_rate:l,character_guild_name:h,character_image:p}=t;this.date=new Date(e),this.characterName=a,this.worldName=i,this.characterGender=r,this.characterClass=s,this.characterClassLevel=n,this.characterLevel=o,this.characterExp=c,this.characterExpRate=l,this.characterGuildName=h,this.characterImage=p}}class v{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class O{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class E{date;characterGender;characterClass;characterHair;characterFace;characterSkinName;additionalCharacterHair;additionalCharacterFace;additionalCharacterSkinName;constructor(t){const{date:e,character_gender:a,character_class:i,character_hair:r,character_face:s,character_skin_name:n,additional_character_hair:o,additional_character_face:c,additional_character_skin_name:l}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.characterHair=new O(r),this.characterFace=new v(s),this.characterSkinName=n,this.additionalCharacterHair=o?new O(o):null,this.additionalCharacterFace=c?new v(c):null,this.additionalCharacterSkinName=l}}class x{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:r}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=r}}class S{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class b{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;itemGender;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:r,cash_item_description:s,cash_item_option:n,date_expire:o,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h,item_gender:p}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=r,this.cashItemDescription=s,this.cashItemOption=n.map((t=>new S(t))),this.dateExpire=o,this.dateOptionExpire=c,this.cashItemLabel=l,this.cashItemColoringPrism=h?new x(h):null,this.itemGender=p}}class I{date;characterGender;characterClass;presetNo;cashItemEquipmentBase;cashItemEquipmentPreset1;cashItemEquipmentPreset2;cashItemEquipmentPreset3;additionalCashItemEquipmentBase;additionalCashItemEquipmentPreset1;additionalCashItemEquipmentPreset2;additionalCashItemEquipmentPreset3;constructor(t){const{date:e,character_gender:a,character_class:i,preset_no:r,cash_item_equipment_base:s,cash_item_equipment_preset_1:n,cash_item_equipment_preset_2:o,cash_item_equipment_preset_3:c,additional_cash_item_equipment_base:l,additional_cash_item_equipment_preset_1:h,additional_cash_item_equipment_preset_2:p,additional_cash_item_equipment_preset_3:m}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.presetNo=r,this.cashItemEquipmentBase=s.map((t=>new b(t))),this.cashItemEquipmentPreset1=n.map((t=>new b(t))),this.cashItemEquipmentPreset2=o.map((t=>new b(t))),this.cashItemEquipmentPreset3=c.map((t=>new b(t))),this.additionalCashItemEquipmentBase=l.map((t=>new b(t))),this.additionalCashItemEquipmentPreset1=h.map((t=>new b(t))),this.additionalCashItemEquipmentPreset2=p.map((t=>new b(t))),this.additionalCashItemEquipmentPreset3=m.map((t=>new b(t)))}}class N{date;characterClass;worldName;dojangBestFloor;dateDojangRecord;dojangBestTime;constructor(t){const{date:e,character_class:a,world_name:i,dojang_best_floor:r,date_dojang_record:s,dojang_best_time:n}=t;this.date=new Date(e),this.characterClass=a,this.worldName=i,this.dojangBestFloor=r,this.dateDojangRecord=s?new Date(s):null,this.dojangBestTime=n}}class q{ocid;constructor(t){const{ocid:e}=t;this.ocid=e}}class A{hexaSkillId;constructor(t){const{hexa_skill_id:e}=t;this.hexaSkillId=e}}class L{hexaCoreName;hexaCoreLevel;hexaCoreType;linkedSkill;constructor(t){const{hexa_core_name:e,hexa_core_level:a,hexa_core_type:i,linked_skill:r}=t;this.hexaCoreName=e,this.hexaCoreLevel=a,this.hexaCoreType=i,this.linkedSkill=r.map((t=>new A(t)))}}class R{date;characterHexaCoreEquipment;constructor(t){const{date:e,character_hexa_core_equipment:a}=t;this.date=new Date(e),this.characterHexaCoreEquipment=a.map((t=>new L(t)))}}class G{slotId;mainStatName;subStatName1;subStatName2;mainStatLevel;subStatLevel1;subStatLevel2;statGrade;constructor(t){const{slot_id:e,main_stat_name:a,sub_stat_name_1:i,sub_stat_name_2:r,main_stat_level:s,sub_stat_level_1:n,sub_stat_level_2:o,stat_grade:c}=t;this.slotId=e,this.mainStatName=a,this.subStatName1=i,this.subStatName2=r,this.mainStatLevel=s,this.subStatLevel1=n,this.subStatLevel2=o,this.statGrade=c}}class M{date;characterClass;characterHexaStatCore;presetHexaStatCore;constructor(t){const{date:e,character_class:a,character_hexa_stat_core:i,preset_hexa_stat_core:r}=t;this.date=new Date(e),this.characterClass=a,this.characterHexaStatCore=i.map((t=>new G(t))),this.presetHexaStatCore=r.map((t=>new G(t)))}}class T{statType;statPoint;statLevel;statIncrease;constructor(t){const{stat_type:e,stat_point:a,stat_level:i,stat_increase:r}=t;this.statType=e,this.statPoint=a,this.statLevel=i,this.statIncrease=r}}class H{date;characterClass;usePresetNo;useAvailableHyperStat;hyperStatPreset1;hyperStatPreset1RemainPoint;hyperStatPreset2;hyperStatPreset2RemainPoint;hyperStatPreset3;hyperStatPreset3RemainPoint;constructor(t){const{date:e,character_class:a,use_preset_no:i,use_available_hyper_stat:r,hyper_stat_preset_1:s,hyper_stat_preset_1_remain_point:n,hyper_stat_preset_2:o,hyper_stat_preset_2_remain_point:c,hyper_stat_preset_3:l,hyper_stat_preset_3_remain_point:h}=t;this.date=new Date(e),this.characterClass=a,this.usePresetNo=i,this.useAvailableHyperStat=r,this.hyperStatPreset1=s.map((t=>new T(t))),this.hyperStatPreset1RemainPoint=n,this.hyperStatPreset2=o.map((t=>new T(t))),this.hyperStatPreset2RemainPoint=c,this.hyperStatPreset3=l.map((t=>new T(t))),this.hyperStatPreset3RemainPoint=h}}class U{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;damage;allStat;equipmentLevelDecrease;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p,boss_damage:m,damage:d,all_stat:u,equipment_level_decrease:_}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p,this.bossDamage=m,this.damage=d,this.allStat=u,this.equipmentLevelDecrease=_}}class F{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;maxHpRate;maxMpRate;baseEquipmentLevel;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p,boss_damage:m,ignore_monster_armor:d,all_stat:u,max_hp_rate:_,max_mp_rate:g,base_equipment_level:f}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p,this.bossDamage=m,this.ignoreMonsterArmor=d,this.allStat=u,this.maxHpRate=_,this.maxMpRate=g,this.baseEquipmentLevel=f}}class ${str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p}}class j{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c}}class B{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p}}class Y{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;damage;equipmentLevelDecrease;maxHpRate;maxMpRate;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p,boss_damage:m,ignore_monster_armor:d,all_stat:u,damage:_,equipment_level_decrease:g,max_hp_rate:f,max_mp_rate:y}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p,this.bossDamage=m,this.ignoreMonsterArmor=d,this.allStat=u,this.damage=_,this.equipmentLevelDecrease=g,this.maxHpRate=f,this.maxMpRate=y}}class V{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:a,item_name:i,item_icon:r,item_description:s,item_shape_name:n,item_shape_icon:o,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:p,item_exceptional_option:m,item_add_option:d,growth_exp:u,growth_level:_,scroll_upgrade:g,cuttable_count:f,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:D,soul_name:k,soul_option:P,item_etc_option:C,starforce:v,starforce_scroll_flag:O,item_starforce_option:E,special_ring_level:x,date_expire:S}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=a,this.itemName=i,this.itemIcon=r,this.itemDescription=s,this.itemShapeName=n,this.itemShapeIcon=o,this.itemGender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new F(h),this.equipmentLevelIncrease=p,this.itemExceptionalOption=new j(m),this.itemAddOption=new U(d),this.growthExp=u,this.growthLevel=_,this.scrollUpgrade=g,this.cuttableCount=f,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=D,this.soulName=k,this.soulOption=P,this.itemEtcOption=new $(C),this.starforce=v,this.starforceScrollFlag=O,this.itemStarforceOption=new B(E),this.specialRingLevel=x,this.dateExpire=S?new Date(S):null}}class z{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;potentialOptionGrade;additionalPotentialOptionGrade;potentialOption1;potentialOption2;potentialOption3;additionalPotentialOption1;additionalPotentialOption2;additionalPotentialOption3;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:a,item_name:i,item_icon:r,item_description:s,item_shape_name:n,item_shape_icon:o,item_gender:c,item_total_option:l,item_base_option:h,potential_option_grade:p,additional_potential_option_grade:m,potential_option_1:d,potential_option_2:u,potential_option_3:_,additional_potential_option_1:g,additional_potential_option_2:f,additional_potential_option_3:y,equipment_level_increase:w,item_exceptional_option:D,item_add_option:k,growth_exp:P,growth_level:C,scroll_upgrade:v,cuttable_count:O,golden_hammer_flag:E,scroll_resilience_count:x,scroll_upgradeable_count:S,soul_name:b,soul_option:I,item_etc_option:N,starforce:q,starforce_scroll_flag:A,item_starforce_option:L,special_ring_level:R,date_expire:G}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=a,this.itemName=i,this.itemIcon=r,this.itemDescription=s,this.itemShapeName=n,this.itemShapeIcon=o,this.itemGender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new F(h),this.potentialOptionGrade=p,this.additionalPotentialOptionGrade=m,this.potentialOption1=d,this.potentialOption2=u,this.potentialOption3=_,this.additionalPotentialOption1=g,this.additionalPotentialOption2=f,this.additionalPotentialOption3=y,this.equipmentLevelIncrease=w,this.itemExceptionalOption=new j(D),this.itemAddOption=new U(k),this.growthExp=P,this.growthLevel=C,this.scrollUpgrade=v,this.cuttableCount=O,this.goldenHammerFlag=E,this.scrollResilienceCount=x,this.scrollUpgradeableCount=S,this.soulName=b,this.soulOption=I,this.itemEtcOption=new $(N),this.starforce=q,this.starforceScrollFlag=A,this.itemStarforceOption=new B(L),this.specialRingLevel=R,this.dateExpire=G?new Date(G):null}}class Z{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:a,item_name:i,item_icon:r,item_description:s,item_shape_name:n,item_shape_icon:o,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:p,item_exceptional_option:m,item_add_option:d,growth_exp:u,growth_level:_,scroll_upgrade:g,cuttable_count:f,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:D,soul_name:k,soul_option:P,item_etc_option:C,starforce:v,starforce_scroll_flag:O,item_starforce_option:E,special_ring_level:x,date_expire:S}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=a,this.itemName=i,this.itemIcon=r,this.itemDescription=s,this.itemShapeName=n,this.itemShapeIcon=o,this.itemGender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new F(h),this.equipmentLevelIncrease=p,this.itemExceptionalOption=new j(m),this.itemAddOption=new U(d),this.growthExp=u,this.growthLevel=_,this.scrollUpgrade=g,this.cuttableCount=f,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=D,this.soulName=k,this.soulOption=P,this.itemEtcOption=new $(C),this.starforce=v,this.starforceScrollFlag=O,this.itemStarforceOption=new B(E),this.specialRingLevel=x,this.dateExpire=S?new Date(S):null}}class K{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire=null;isOptionExpired=null;constructor(t){const{title_name:e,title_icon:a,title_description:i,date_expire:r,date_option_expire:s}=t;this.titleName=e,this.titleIcon=a,this.titleDescription=i,this.dateExpire=r?new Date(r):null,"expired"===s?this.isOptionExpired=!0:"string"==typeof s&&(this.dateOptionExpire=s?new Date(s):null)}}class Q{date;characterGender;characterClass;presetNo;itemEquipment;itemEquipmentPreset1;itemEquipmentPreset2;itemEquipmentPreset3;title;dragonEquipment;mechanicEquipment;constructor(t){const{date:e,character_gender:a,character_class:i,preset_no:r,item_equipment:s,item_equipment_preset_1:n,item_equipment_preset_2:o,item_equipment_preset_3:c,title:l,dragon_equipment:h,mechanic_equipment:p}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.presetNo=r,this.itemEquipment=s.map((t=>new z(t))),this.itemEquipmentPreset1=n?n.map((t=>new z(t))):null,this.itemEquipmentPreset2=o?o.map((t=>new z(t))):null,this.itemEquipmentPreset3=c?c.map((t=>new z(t))):null,this.title=l?new K(l):null,this.dragonEquipment=h.map((t=>new V(t))),this.mechanicEquipment=p.map((t=>new Z(t)))}}class X{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:r,skill_icon:s}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=r,this.skillIcon=s}}class W{date;characterClass;characterLinkSkill;characterLinkSkillPreset1;characterLinkSkillPreset2;characterLinkSkillPreset3;characterOwnedLinkSkill;characterOwnedLinkSkillPreset1;characterOwnedLinkSkillPreset2;characterOwnedLinkSkillPreset3;constructor(t){const{date:e,character_class:a,character_link_skill:i,character_link_skill_preset_1:r,character_link_skill_preset_2:s,character_link_skill_preset_3:n,character_owned_link_skill:o,character_owned_link_skill_preset_1:c,character_owned_link_skill_preset_2:l,character_owned_link_skill_preset_3:h}=t;this.date=new Date(e),this.characterClass=a,this.characterLinkSkill=i.map((t=>new X(t))),this.characterLinkSkillPreset1=r.map((t=>new X(t))),this.characterLinkSkillPreset2=s.map((t=>new X(t))),this.characterLinkSkillPreset3=n.map((t=>new X(t))),this.characterOwnedLinkSkill=new X(o),this.characterOwnedLinkSkillPreset1=c?new X(c):null,this.characterOwnedLinkSkillPreset2=l?new X(l):null,this.characterOwnedLinkSkillPreset3=h?new X(h):null}}class J{skill1;skill1Icon;skill2;skill2Icon;constructor(t){const{skill_1:e,skill_1_icon:a,skill_2:i,skill_2_icon:r}=t;this.skill1=e,this.skill1Icon=a,this.skill2=i,this.skill2Icon=r}}class tt{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class et{itemName;itemIcon;itemDescription;itemOption;scrollUpgrade;scrollUpgradable;itemShape;itemShapeIcon;constructor(t){const{item_name:e,item_icon:a,item_description:i,item_option:r,scroll_upgrade:s,scroll_upgradable:n,item_shape:o,item_shape_icon:c}=t;this.itemName=e,this.itemIcon=a,this.itemDescription=i,this.itemOption=r.map((t=>new tt(t))),this.scrollUpgrade=s,this.scrollUpgradable=n,this.itemShape=o,this.itemShapeIcon=c}}class at{date;pet1Name;pet1Nickname;pet1Icon;pet1Description;pet1Equipment;pet1AutoSkill;pet1PetType;pet1Skill;pet1DateExpire;pet1Appearance;pet1AppearanceIcon;pet2Name;pet2Nickname;pet2Icon;pet2Description;pet2Equipment;pet2AutoSkill;pet2PetType;pet2Skill;pet2DateExpire;pet2Appearance;pet2AppearanceIcon;pet3Name;pet3Nickname;pet3Icon;pet3Description;pet3Equipment;pet3AutoSkill;pet3PetType;pet3Skill;pet3DateExpire;pet3Appearance;pet3AppearanceIcon;constructor(t){const{date:e,pet_1_name:a,pet_1_nickname:i,pet_1_icon:r,pet_1_description:s,pet_1_equipment:n,pet_1_auto_skill:o,pet_1_pet_type:c,pet_1_skill:l,pet_1_date_expire:h,pet_1_appearance:p,pet_1_appearance_icon:m,pet_2_name:d,pet_2_nickname:u,pet_2_icon:_,pet_2_description:g,pet_2_equipment:f,pet_2_auto_skill:y,pet_2_pet_type:w,pet_2_skill:D,pet_2_date_expire:k,pet_2_appearance:P,pet_2_appearance_icon:C,pet_3_name:v,pet_3_nickname:O,pet_3_icon:E,pet_3_description:x,pet_3_equipment:S,pet_3_auto_skill:b,pet_3_pet_type:I,pet_3_skill:N,pet_3_date_expire:q,pet_3_appearance:A,pet_3_appearance_icon:L}=t;this.date=new Date(e),this.pet1Name=a,this.pet1Nickname=i,this.pet1Icon=r,this.pet1Description=s,this.pet1Equipment=n?new et(n):null,this.pet1AutoSkill=o?new J(o):null,this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=h?new Date(h):null,this.pet1Appearance=p,this.pet1AppearanceIcon=m,this.pet2Name=d,this.pet2Nickname=u,this.pet2Icon=_,this.pet2Description=g,this.pet2Equipment=f?new et(f):null,this.pet2AutoSkill=y?new J(y):null,this.pet2PetType=w,this.pet2Skill=D,this.pet2DateExpire=k?new Date(k):null,this.pet2Appearance=P,this.pet2AppearanceIcon=C,this.pet3Name=v,this.pet3Nickname=O,this.pet3Icon=E,this.pet3Description=x,this.pet3Equipment=S?new et(S):null,this.pet3AutoSkill=b?new J(b):null,this.pet3PetType=I,this.pet3Skill=N,this.pet3DateExpire=q?new Date(q):null,this.pet3Appearance=A,this.pet3AppearanceIcon=L}}class it{date;popularity;constructor(t){const{date:e,popularity:a}=t;this.date=new Date(e),this.popularity=a}}class rt{date;charismaLevel;sensibilityLevel;insightLevel;willingnessLevel;handicraftLevel;charmLevel;constructor(t){const{date:e,charisma_level:a,sensibility_level:i,insight_level:r,willingness_level:s,handicraft_level:n,charm_level:o}=t;this.date=new Date(e),this.charismaLevel=a,this.sensibilityLevel=i,this.insightLevel=r,this.willingnessLevel=s,this.handicraftLevel=n,this.charmLevel=o}}class st{setCount;setOption;constructor(t){const{set_count:e,set_option:a}=t;this.setCount=e,this.setOption=a}}class nt{setName;totalSetCount;setEffectInfo;constructor(t){const{set_name:e,total_set_count:a,set_effect_info:i}=t;this.setName=e,this.totalSetCount=a,this.setEffectInfo=i.map((t=>new st(t)))}}class ot{date;setEffect;constructor(t){const{date:e,set_effect:a}=t;this.date=new Date(e),this.setEffect=a.map((t=>new nt(t)))}}class ct{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:r,skill_icon:s}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=r,this.skillIcon=s}}class lt{date;characterClass;characterSkillGrade;characterSkill;constructor(t){const{date:e,character_class:a,character_skill_grade:i,character_skill:r}=t;this.date=new Date(e),this.characterClass=a,this.characterSkillGrade=i,this.characterSkill=r.map((t=>new ct(t)))}}class ht{date;characterClass;finalStat;remainAP;constructor(t){const{date:e,character_class:a,final_stat:i,remain_ap:r}=t;this.date=new Date(e),this.characterClass=a,this.finalStat=i.map((t=>({statName:t.stat_name,statValue:t.stat_value}))),this.remainAP=r}}class pt{symbolName;symbolIcon;symbolDescription;symbolForce;symbolLevel;symbolStr;symbolDex;symbolInt;symbolLuk;symbolHp;symbolGrowthCount;symbolRequireGrowthCount;constructor(t){const{symbol_name:e,symbol_icon:a,symbol_description:i,symbol_force:r,symbol_level:s,symbol_str:n,symbol_dex:o,symbol_int:c,symbol_luk:l,symbol_hp:h,symbol_growth_count:p,symbol_require_growth_count:m}=t;this.symbolName=e,this.symbolIcon=a,this.symbolDescription=i,this.symbolForce=r,this.symbolLevel=s,this.symbolStr=n,this.symbolDex=o,this.symbolInt=c,this.symbolLuk=l,this.symbolHp=h,this.symbolGrowthCount=p,this.symbolRequireGrowthCount=m}}class mt{date;characterClass;symbol;constructor(t){const{date:e,character_class:a,symbol:i}=t;this.date=new Date(e),this.characterClass=a,this.symbol=i.map((t=>new pt(t)))}}class dt{slotId;slotLevel;vCoreName;vCoreType;vCoreLevel;vCoreSkill1;vCoreSkill2;vCoreSkill3;constructor(t){const{slot_id:e,slot_level:a,v_core_name:i,v_core_type:r,v_core_level:s,v_core_skill_1:n,v_core_skill_2:o,v_core_skill_3:c}=t;this.slotId=e,this.slotLevel=a,this.vCoreName=i,this.vCoreType=r,this.vCoreLevel=s,this.vCoreSkill1=n,this.vCoreSkill2=o,this.vCoreSkill3=c}}class ut{date;characterClass;characterVCoreEquipment;characterVMatrixRemainSlotUpgradePoint;constructor(t){const{date:e,character_class:a,character_v_core_equipment:i,character_v_matrix_remain_slot_upgrade_point:r}=t;this.date=new Date(e),this.characterClass=a,this.characterVCoreEquipment=i.map((t=>new dt(t))),this.characterVMatrixRemainSlotUpgradePoint=r}}class _t{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:r,skill_icon:s}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=r,this.skillIcon=s}}class gt{date;worldName;guildName;guildLevel;guildFame;guildPoint;guildMasterName;guildMemberCount;guildMember;guildSkill;guildNoblesseSkill;guildMark;guildMarkCustom;constructor(t){const{date:e,world_name:a,guild_name:i,guild_level:r,guild_fame:s,guild_point:n,guild_master_name:o,guild_member_count:c,guild_member:l,guild_skill:h,guild_noblesse_skill:p,guild_mark:m,guild_mark_custom:d}=t;this.date=new Date(e),this.worldName=a,this.guildName=i,this.guildLevel=r,this.guildFame=s,this.guildPoint=n,this.guildMasterName=o,this.guildMemberCount=c,this.guildMember=l,this.guildSkill=h.map((t=>new _t(t))),this.guildNoblesseSkill=p.map((t=>new _t(t))),this.guildMark=m,this.guildMarkCustom=d}}class ft{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}t.PotentialOptionGrade=void 0,(p=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[p.RARE=0]="RARE",p[p.EPIC=1]="EPIC",p[p.UNIQUE=2]="UNIQUE",p[p.LEGENDARY=3]="LEGENDARY";const yt=e=>{const a={"레어":t.PotentialOptionGrade.RARE,"에픽":t.PotentialOptionGrade.EPIC,"유니크":t.PotentialOptionGrade.UNIQUE,"레전드리":t.PotentialOptionGrade.LEGENDARY}[e];if(!a)throw new TypeError("No enum constant for string: "+e);return a};class wt{value;grade;constructor(t){const{value:e,grade:a}=t;this.value=e,this.grade=a}get gradeEnum(){return yt(this.grade)}}class Dt{id;characterName;worldName;dateCreate;cubeType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:a,world_name:i,date_create:r,cube_type:s,item_upgrade_result:n,miracle_time_flag:o,item_equipment_part:c,item_level:l,target_item:h,potential_option_grade:p,additional_potential_option_grade:m,upgrade_guarantee:d,upgrade_guarantee_count:u,before_potential_option:_,before_additional_potential_option:g,after_potential_option:f,after_additional_potential_option:y}=t;this.id=e,this.characterName=a,this.worldName=i,this.dateCreate=new Date(r),this.cubeType=s,this.itemUpgradeResult=n,this.miracleTimeFlag=o,this.itemEquipmentPart=c,this.itemLevel=l,this.targetItem=h,this.potentialOptionGrade=p,this.additionalPotentialOptionGrade=m,this.upgradeGuarantee=d,this.upgradeGuaranteeCount=u,this.beforePotentialOption=_.map((t=>new wt(t))),this.beforeAdditionalPotentialOption=g.map((t=>new wt(t))),this.afterPotentialOption=f.map((t=>new wt(t))),this.afterAdditionalPotentialOption=y.map((t=>new wt(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return yt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return yt(this.additionalPotentialOptionGrade)}}class kt{count;cubeHistory;nextCursor;constructor(t){const{count:e,cube_history:a,next_cursor:i}=t;this.count=e,this.cubeHistory=a.map((t=>new Dt(t))),this.nextCursor=i}}class Pt{value;grade;constructor(t){const{value:e,grade:a}=t;this.value=e,this.grade=a}get gradeEnum(){return yt(this.grade)}}class Ct{id;characterName;dateCreate;potentialType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:a,date_create:i,potential_type:r,item_upgrade_result:s,miracle_time_flag:n,item_equipment_part:o,item_level:c,target_item:l,potential_option_grade:h,additional_potential_option_grade:p,upgrade_guarantee:m,upgrade_guarantee_count:d,before_potential_option:u,before_additional_potential_option:_,after_potential_option:g,after_additional_potential_option:f}=t;this.id=e,this.characterName=a,this.dateCreate=new Date(i),this.potentialType=r,this.itemUpgradeResult=s,this.miracleTimeFlag=n,this.itemEquipmentPart=o,this.itemLevel=c,this.targetItem=l,this.potentialOptionGrade=h,this.additionalPotentialOptionGrade=p,this.upgradeGuarantee=m,this.upgradeGuaranteeCount=d,this.beforePotentialOption=u.map((t=>new Pt(t))),this.beforeAdditionalPotentialOption=_.map((t=>new Pt(t))),this.afterPotentialOption=g.map((t=>new Pt(t))),this.afterAdditionalPotentialOption=f.map((t=>new Pt(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return yt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return yt(this.additionalPotentialOptionGrade)}}class vt{count;potentialHistory;nextCursor;constructor(t){const{count:e,potential_history:a,next_cursor:i}=t;this.count=e,this.potentialHistory=a.map((t=>new Ct(t))),this.nextCursor=i}}class Ot{successRate;costDiscountRate;plusValue;starforceEventRange;constructor(t){const{success_rate:e,cost_discount_rate:a,plus_value:i,starforce_event_range:r}=t;this.successRate=e,this.costDiscountRate=a,this.plusValue=i,this.starforceEventRange=r}}class Et{id;itemUpgradeResult;beforeStarforceCount;afterStarforceCount;starCatchResult;superiorItemFlag;destroyDefence;chanceTime;eventFieldFlag;upgradeItem;protectShield;bonusStatUpgrade;characterName;worldName;targetItem;dateCreate;starforceEventList;constructor(t){const{id:e,item_upgrade_result:a,before_starforce_count:i,after_starforce_count:r,starcatch_result:s,superior_item_flag:n,destroy_defence:o,chance_time:c,event_field_flag:l,upgrade_item:h,protect_shield:p,bonus_stat_upgrade:m,character_name:d,world_name:u,target_item:_,date_create:g,starforce_event_list:f}=t;this.id=e,this.itemUpgradeResult=a,this.beforeStarforceCount=i,this.afterStarforceCount=r,this.starCatchResult=s,this.superiorItemFlag=n,this.destroyDefence=o,this.chanceTime=c,this.eventFieldFlag=l,this.upgradeItem=h,this.protectShield=p,this.bonusStatUpgrade=m,this.characterName=d,this.worldName=u,this.targetItem=_,this.dateCreate=new Date(g),this.starforceEventList=f.map((t=>new Ot(t)))}}class xt{count;starforceHistory;nextCursor;constructor(t){const{count:e,starforce_history:a,next_cursor:i}=t;this.count=e,this.starforceHistory=a.map((t=>new Et(t))),this.nextCursor=i}}class St{serviceCode;startDateTime;endDateTime;strObstacleContents;constructor(t){const e=t["soap:Envelope"]["soap:Body"][0].GetInspectionInfoResponse[0].GetInspectionInfoResult[0]["diffgr:diffgram"][0].NewDataSet[0].InspectionInfo[0];this.serviceCode=Number(e.serviceCode[0]),this.startDateTime=new Date(e.startDateTime[0]),this.endDateTime=new Date(e.endDateTime[0]),this.strObstacleContents=e.strObstacleContents[0]}}class bt{date;ranking;characterName;worldName;className;subClassName;trophyGrade;trophyScore;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,trophy_grade:o,trophy_score:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.trophyGrade=o,this.trophyScore=c}}class It{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new bt(t)))}}class Nt{date;ranking;characterName;worldName;className;subClassName;characterLevel;dojangFloor;dojangTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,character_level:o,dojang_floor:c,dojang_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.characterLevel=o,this.dojangFloor=c,this.dojangTimeRecord=l}}class qt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Nt(t)))}}class At{date;ranking;guildName;worldName;guildLevel;guildMasterName;guildMark;guildPoint;constructor(t){const{date:e,ranking:a,guild_name:i,world_name:r,guild_level:s,guild_master_name:n,guild_mark:o,guild_point:c}=t;this.date=new Date(e),this.ranking=a,this.guildName=i,this.worldName=r,this.guildLevel=s,this.guildMasterName=n,this.guildMark=o,this.guildPoint=c}}class Lt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new At(t)))}}class Rt{date;ranking;characterName;worldName;className;subClassName;characterLevel;characterExp;characterPopularity;characterGuildName;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,character_level:o,character_exp:c,character_popularity:l,character_guildname:h}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.characterLevel=o,this.characterExp=c,this.characterPopularity=l,this.characterGuildName=h}}class Gt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Rt(t)))}}class Mt{date;ranking;characterName;worldName;className;subClassName;characterLevel;theSeedFloor;theSeedTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,character_level:o,theseed_floor:c,theseed_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.characterLevel=o,this.theSeedFloor=c,this.theSeedTimeRecord=l}}class Tt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Mt(t)))}}class Ht{date;ranking;characterName;worldName;className;subClassName;unionLevel;unionPower;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,union_level:o,union_power:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.unionLevel=o,this.unionPower=c}}class Ut{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Ht(t)))}}class Ft{name;validityFlag;dateExpire;level;crystalOptionName1;crystalOptionName2;crystalOptionName3;constructor(t){const{name:e,validity_flag:a,date_expire:i,level:r,crystal_option_name_1:s,crystal_option_name_2:n,crystal_option_name_3:o}=t;this.name=e,this.validityFlag=a,this.dateExpire=new Date(i),this.level=r,this.crystalOptionName1=s,this.crystalOptionName2=n,this.crystalOptionName3=o}}class $t{name;level;constructor(t){const{name:e,level:a}=t;this.name=e,this.level=a}}class jt{date;unionArtifactEffect;unionArtifactCrystal;unionArtifactRemainAp;constructor(t){const{date:e,union_artifact_effect:a,union_artifact_crystal:i,union_artifact_remain_ap:r}=t;this.date=new Date(e),this.unionArtifactEffect=a.map((t=>new $t(t))),this.unionArtifactCrystal=i.map((t=>new Ft(t))),this.unionArtifactRemainAp=r}}class Bt{date;unionLevel;unionGrade;unionArtifactLevel;unionArtifactExp;unionArtifactPoint;constructor(t){const{date:e,union_level:a,union_grade:i,union_artifact_level:r,union_artifact_exp:s,union_artifact_point:n}=t;this.date=new Date(e),this.unionLevel=a,this.unionGrade=i,this.unionArtifactLevel=r,this.unionArtifactExp=s,this.unionArtifactPoint=n}}class Yt{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Vt{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class zt{blockType;blockClass;blockLevel;blockControlPoint;blockPosition;constructor(t){const{block_type:e,block_class:a,block_level:i,block_control_point:r,block_position:s}=t;this.blockType=e,this.blockClass=a,this.blockLevel=i,this.blockControlPoint=new Vt(r),this.blockPosition=s?s.map((t=>new Yt(t))):null}}class Zt{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:a}=t;this.statFieldId=e,this.statFieldEffect=a}}class Kt{date;unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;constructor(t){const{date:e,union_raider_stat:a,union_occupied_stat:i,union_inner_stat:r,union_block:s}=t;this.date=new Date(e),this.unionRaiderStat=a,this.unionOccupiedStat=i,this.unionInnerStat=r.map((t=>new Zt(t))),this.unionBlock=s.map((t=>new zt(t)))}}class Qt extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:a}=t.error;super(a),this.errorCode=Wt[e],this.message=a}}var Xt;t.MapleStoryApiErrorCode=void 0,(Xt=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[Xt.OPENAPI00001=0]="OPENAPI00001",Xt[Xt.OPENAPI00002=1]="OPENAPI00002",Xt[Xt.OPENAPI00003=2]="OPENAPI00003",Xt[Xt.OPENAPI00004=3]="OPENAPI00004",Xt[Xt.OPENAPI00005=4]="OPENAPI00005",Xt[Xt.OPENAPI00006=5]="OPENAPI00006",Xt[Xt.OPENAPI00007=6]="OPENAPI00007",Xt[Xt.OPENAPI00009=7]="OPENAPI00009",Xt[Xt.OPENAPI00010=8]="OPENAPI00010";const Wt={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007,OPENAPI00009:t.MapleStoryApiErrorCode.OPENAPI00009,OPENAPI00010:t.MapleStoryApiErrorCode.OPENAPI00010};n.default.extend(l),n.default.extend(m);class Jt{apiKey;client;static BASE_URL="https://open.api.nexon.com/";static DEFAULT_TIMEOUT=5e3;static kstOffset=540;get timeout(){return this.client.defaults.timeout}set timeout(t){this.client.defaults.timeout=t}constructor(t){this.apiKey=t,this.client=s.default.create({baseURL:Jt.BASE_URL,timeout:Jt.DEFAULT_TIMEOUT,headers:{"x-nxopen-api-key":this.apiKey}}),this.client.interceptors.response.use((t=>t),(t=>{if(t instanceof e.AxiosError){const e=t.response.data;throw new Qt(e)}throw t}))}async getCharacter(t){const{data:e}=await this.client.get("maplestory/v1/id",{params:{character_name:t}});return new q(e)}async getCharacterBasic(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/basic",{params:a});return new C(i)}async getCharacterPopularity(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/popularity",{params:a});return new it(i)}async getCharacterStat(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/stat",{params:a});return new ht(i)}async getCharacterHyperStat(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/hyper-stat",{params:a});return new H(i)}async getCharacterPropensity(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/propensity",{params:a});return new rt(i)}async getCharacterAbility(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/ability",{params:a});return new _(i)}async getCharacterItemEquipment(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/item-equipment",{params:a});return new Q(i)}async getCharacterCashItemEquipment(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/cashitem-equipment",{params:a});return new I(i)}async getCharacterSymbolEquipment(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/symbol-equipment",{params:a});return new mt(i)}async getCharacterSetEffect(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/set-effect",{params:a});return new ot(i)}async getCharacterBeautyEquipment(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/beauty-equipment",{params:a});return new E(i)}async getCharacterAndroidEquipment(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/android-equipment",{params:a});return new P(i)}async getCharacterPetEquipment(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/pet-equipment",{params:a});return new at(i)}async getCharacterSkill(t,e,a=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,character_skill_grade:e,date:Jt.toDateString({year:2023,month:12,day:21},a)},{data:r}=await this.client.get("maplestory/v1/character/skill",{params:i});return new lt(r)}async getCharacterLinkSkill(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/link-skill",{params:a});return new W(i)}async getCharacterVMatrix(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/vmatrix",{params:a});return new ut(i)}async getCharacterHexaMatrix(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/hexamatrix",{params:a});return new R(i)}async getCharacterHexaMatrixStat(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/hexamatrix-stat",{params:a});return new M(i)}async getCharacterDojang(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/character/dojang",{params:a});return new N(i)}async getUnion(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/user/union",{params:a});return new Bt(i)}async getUnionRaider(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/user/union-raider",{params:a});return new Kt(i)}async getUnionArtifact(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={ocid:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/user/union-artifact",{params:a});return new jt(i)}async getGuild(t,e){const{data:a}=await this.client.get("maplestory/v1/guild/id",{params:{guild_name:t,world_name:e}});return new ft(a)}async getGuildBasic(t,e=Jt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const a={oguild_id:t,date:Jt.toDateString({year:2023,month:12,day:21},e)},{data:i}=await this.client.get("maplestory/v1/guild/basic",{params:a});return new gt(i)}async getStarforceHistory(t,e){const a={count:t};"string"==typeof e?a.cursor=e:"object"==typeof e&&(a.date=Jt.toDateString({year:2023,month:12,day:27},e??Jt.getProperDefaultDateOptions({hour:0,minute:0,dateOffset:0})));const{data:i}=await this.client.get("maplestory/v1/history/starforce",{params:a});return new xt(i)}async getCubeHistory(t,e){const a={count:t};"string"==typeof e?a.cursor=e:"object"!=typeof e&&void 0!==e||(a.date=Jt.toDateString({year:2022,month:11,day:25},e??Jt.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:i}=await this.client.get("maplestory/v1/history/cube",{params:a});return new kt(i)}async getPotentialHistory(t,e){const a={count:t};"string"==typeof e?a.cursor=e:"object"!=typeof e&&void 0!==e||(a.date=Jt.toDateString({year:2024,month:1,day:25},e??Jt.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:i}=await this.client.get("maplestory/v1/history/potential",{params:a});return new vt(i)}async getOverallRanking(t,e=Jt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:Jt.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,worldType:i,characterClass:r,ocid:s,page:n}=t;a.world_name=e,a.world_type=i,a.class=r,a.ocid=s,a.page=n}const{data:i}=await this.client.get("maplestory/v1/ranking/overall",{params:a});return new Gt(i)}async getUnionRanking(t,e=Jt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:Jt.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:i,page:r}=t;a.world_name=e,a.ocid=i,a.page=r}const{data:i}=await this.client.get("maplestory/v1/ranking/union",{params:a});return new Ut(i)}async getGuildRanking(t,e=Jt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:Jt.toDateString({year:2023,month:12,day:22},e),ranking_type:0};if(t){const{worldName:e,rankingType:i,ocid:r,page:s}=t;a.world_name=e,a.ranking_type=i,a.ocid=r,a.page=s}const{data:i}=await this.client.get("maplestory/v1/ranking/guild",{params:a});return new Lt(i)}async getDojangRanking(t,e=Jt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:Jt.toDateString({year:2023,month:12,day:22},e),difficulty:0};if(t){const{worldName:e,difficulty:i,characterClass:r,ocid:s,page:n}=t;a.world_name=e,a.difficulty=i,a.class=r,a.ocid=s,a.page=n}const{data:i}=await this.client.get("maplestory/v1/ranking/dojang",{params:a});return new qt(i)}async getSeedRanking(t,e=Jt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:Jt.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:i,page:r}=t;a.world_name=e,a.ocid=i,a.page=r}const{data:i}=await this.client.get("maplestory/v1/ranking/theseed",{params:a});return new Tt(i)}async getAchievementRanking(t,e=Jt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:Jt.toDateString({year:2023,month:12,day:22},e)};if(t){const{ocid:e,page:i}=t;a.ocid=e,a.page=i}const{data:i}=await this.client.get("maplestory/v1/ranking/achievement",{params:a});return new It(i)}async getInspectionInfo(){const t=(new o.default.Builder).buildObject({"soap:Envelope":{$:{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/"},"soap:Body":{GetInspectionInfo:{$:{xmlns:"https://api.maplestory.nexon.com/soap/"}}}}}),e=await s.default.post("soap/maplestory.asmx",t,{baseURL:"https://api.maplestory.nexon.com/",timeout:this.timeout,headers:{SOAPAction:"https://api.maplestory.nexon.com/soap/GetInspectionInfo","Content-Type":"text/xml; charset=utf-8"}}),a=await o.default.parseStringPromise(e.data);return new St(a)}static getProperDefaultDateOptions(t){const{hour:e,minute:a,dateOffset:i}=t,r=n.default().utcOffset(Jt.kstOffset),s=n.default().utcOffset(Jt.kstOffset).hour(e).minute(a);let o;return o=r.isAfter(s)?r:r.subtract(1,"day"),o=o.subtract(i??0,"day"),{year:o.year(),month:o.month()+1,day:o.date()}}static toDateString(t,e){const{year:a,month:i,day:r}=t,{year:s,month:o,day:c}=e;if(s<a||s===a&&o<i||s===a&&o===i&&c<r)throw new Error(`You can only retrieve data after ${n.default(`${a}-${i}-${r}`).format("YYYY-MM-DD")}.`);return n.default(`${s}-${o}-${c}`).utcOffset(Jt.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=bt,t.AchievementRankingResponseDto=It,t.CharacterAbilityDto=_,t.CharacterAbilityInfoDto=d,t.CharacterAbilityPresetDto=u,t.CharacterAndroidCashItemEquipmentColoringPrismDto=g,t.CharacterAndroidCashItemEquipmentDto=y,t.CharacterAndroidCashItemEquipmentOptionDto=f,t.CharacterAndroidEquipmentDto=P,t.CharacterAndroidEquipmentFaceDto=w,t.CharacterAndroidEquipmentHairDto=D,t.CharacterAndroidEquipmentPresetDto=k,t.CharacterBasicDto=C,t.CharacterBeautyEquipmentDto=E,t.CharacterBeautyEquipmentFaceDto=v,t.CharacterBeautyEquipmentHairDto=O,t.CharacterCashItemEquipmentColoringPrismDto=x,t.CharacterCashItemEquipmentDto=I,t.CharacterCashItemEquipmentOptionDto=S,t.CharacterCashItemEquipmentPresetDto=b,t.CharacterDojangDto=N,t.CharacterDto=q,t.CharacterHexaMatrixDto=R,t.CharacterHexaMatrixEquipmentDto=L,t.CharacterHexaMatrixEquipmentLinkedSkillDto=A,t.CharacterHexaMatrixStatCoreDto=G,t.CharacterHexaMatrixStatDto=M,t.CharacterHyperStatDto=H,t.CharacterHyperStatPresetDto=T,t.CharacterItemEquipmentAddOptionDto=U,t.CharacterItemEquipmentBaseOptionDto=F,t.CharacterItemEquipmentDragonInfoDto=V,t.CharacterItemEquipmentDto=Q,t.CharacterItemEquipmentEtcOptionDto=$,t.CharacterItemEquipmentExceptionalOptionDto=j,t.CharacterItemEquipmentInfoDto=z,t.CharacterItemEquipmentMechanicInfoDto=Z,t.CharacterItemEquipmentStarforceOptionDto=B,t.CharacterItemEquipmentTitleDto=K,t.CharacterItemEquipmentTotalOptionDto=Y,t.CharacterLinkSkillDto=W,t.CharacterLinkSkillInfoDto=X,t.CharacterPetEquipmentAutoSkillDto=J,t.CharacterPetEquipmentDto=at,t.CharacterPetEquipmentItemDto=et,t.CharacterPetEquipmentItemOptionDto=tt,t.CharacterPopularityDto=it,t.CharacterPropensityDto=rt,t.CharacterSetEffectDto=ot,t.CharacterSetEffectInfoDto=nt,t.CharacterSetEffectOptionInfoDto=st,t.CharacterSkillDto=lt,t.CharacterSkillInfoDto=ct,t.CharacterStatDto=ht,t.CharacterSymbolEquipmentDto=mt,t.CharacterSymbolEquipmentInfoDto=pt,t.CharacterVMatrixCodeEquipmentDto=dt,t.CharacterVMatrixDto=ut,t.CubeHistoryDto=Dt,t.CubeHistoryResponseDto=kt,t.CubeResultOptionDto=wt,t.DojangRankingDto=Nt,t.DojangRankingResponseDto=qt,t.GuildBasicDto=gt,t.GuildDto=ft,t.GuildRankingDto=At,t.GuildRankingResponseDto=Lt,t.GuildSkillDto=_t,t.InspectionInfoDto=St,t.MapleStoryApi=Jt,t.MapleStoryApiError=Qt,t.OverallRankingDto=Rt,t.OverallRankingResponseDto=Gt,t.PotentialHistoryDto=Ct,t.PotentialHistoryResponseDto=vt,t.PotentialResultOptionDto=Pt,t.StarforceEventDto=Ot,t.StarforceHistoryDto=Et,t.StarforceHistoryResponseDto=xt,t.TheSeedRankingDto=Mt,t.TheSeedRankingResponseDto=Tt,t.UnionArtifactCrystalDto=Ft,t.UnionArtifactDto=jt,t.UnionArtifactEffectDto=$t,t.UnionDto=Bt,t.UnionRaiderBlockControlPointDto=Vt,t.UnionRaiderBlockDto=zt,t.UnionRaiderBlockPositionDto=Yt,t.UnionRaiderDto=Kt,t.UnionRaiderInnerStatDto=Zt,t.UnionRankingDto=Ht,t.UnionRankingResponseDto=Ut,t.potentialOptionGradeFromString=yt})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs"),require("xml2js")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs","xml2js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs,t.xml2js)}(this,(function(t,e,a,i){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=r(e),n=r(a),o=r(i),c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});!function(t,e){var a,i;t.exports=(a={year:0,month:1,day:2,hour:3,minute:4,second:5},i={},function(t,e,r){var s,n=function(t,e,a){void 0===a&&(a={});var r=new Date(t),s=function(t,e){void 0===e&&(e={});var a=e.timeZoneName||"short",r=t+"|"+a,s=i[r];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),i[r]=s),s}(e,a);return s.formatToParts(r)},o=function(t,e){for(var i=n(t,e),s=[],o=0;o<i.length;o+=1){var c=i[o],l=c.type,h=c.value,p=a[l];p>=0&&(s[p]=parseInt(h,10))}var m=s[3],d=24===m?0:m,u=s[0]+"-"+s[1]+"-"+s[2]+" "+d+":"+s[4]+":"+s[5]+":000",_=+t;return(r.utc(u).valueOf()-(_-=_%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=s);var a=this.utcOffset(),i=this.toDate(),n=i.toLocaleString("en-US",{timeZone:t}),o=Math.round((i-new Date(n))/1e3/60),c=r(n,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-o,!0);if(e){var l=c.utcOffset();c=c.add(a-l,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||r.tz.guess(),a=n(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return a&&a.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var a=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,t,e).tz(this.$x.$timezone,!0)},r.tz=function(t,e,a){var i=a&&e,n=a||e||s,c=o(+r(),n);if("string"!=typeof t)return r(t).tz(n);var l=function(t,e,a){var i=t-60*e*1e3,r=o(i,a);if(e===r)return[i,e];var s=o(i-=60*(r-e)*1e3,a);return r===s?[i,r]:[t-60*Math.min(r,s)*1e3,Math.max(r,s)]}(r.utc(t,i).valueOf(),c,n),h=l[0],p=l[1],m=r(h).utcOffset(p);return m.$x.$timezone=n,m},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(t){s=t}})}(c);var l=c.exports,h={exports:{}};!function(t,e){var a,i,r;t.exports=(a="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g,function(t,e,s){var n=e.prototype;s.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=s(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),a):e},n.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var o=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var c=n.init;n.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=n.utcOffset;n.utcOffset=function(t,e){var s=this.$utils().u;if(s(t))return this.$u?0:s(this.$offset)?l.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(i);if(!e)return null;var a=(""+e[0]).match(r)||["-",0,0],s=a[0],n=60*+a[1]+ +a[2];return 0===n?0:"+"===s?n:-n}(t),null===t))return this;var n=Math.abs(t)<=16?60*t:t,o=this;if(e)return o.$offset=n,o.$u=0===t,o;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(n+c,a)).$offset=n,o.$x.$localOffset=c}else o=this.utc();return o};var h=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var p=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=n.diff;n.diff=function(t,e,a){if(t&&this.$u===t.$u)return m.call(this,t,e,a);var i=this.local(),r=s(t).local();return m.call(i,r,e,a)}})}(h);var p,m=h.exports;class d{abilityNo;abilityGrade;abilityValue;constructor(t){const{ability_no:e,ability_grade:a,ability_value:i}=t;this.abilityNo=e,this.abilityGrade=a,this.abilityValue=i}}class u{abilityPresetGrade;abilityInfo;constructor(t){const{ability_preset_grade:e,ability_info:a}=t;this.abilityPresetGrade=e,this.abilityInfo=a.map((t=>new d(t)))}}class _{date;abilityGrade;abilityInfo;remainFame;presetNo;abilityPreset1;abilityPreset2;abilityPreset3;constructor(t){const{date:e,ability_grade:a,ability_info:i,remain_fame:r,preset_no:s,ability_preset_1:n,ability_preset_2:o,ability_preset_3:c}=t;this.date=e?new Date(e):null,this.abilityGrade=a,this.abilityInfo=i.map((t=>new d(t))),this.remainFame=r,this.presetNo=s,this.abilityPreset1=n?new u(n):null,this.abilityPreset2=o?new u(o):null,this.abilityPreset3=c?new u(c):null}}class g{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:r}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=r}}class f{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class y{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:r,cash_item_description:s,cash_item_option:n,date_expire:o,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=r,this.cashItemDescription=s,this.cashItemOption=n.map((t=>new f(t))),this.dateExpire=o?new Date(o):null,this.dateOptionExpire=c?new Date(c):null,this.cashItemLabel=l,this.cashItemColoringPrism=h?new g(h):null}}class w{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class k{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class v{androidName;androidNickname;androidIcon;androidDescription;androidGender;androidGrade;androidSkinName;androidHair;androidFace;androidEarSensorClipFlag;androidNonHumanoidFlag;androidShopUsableFlag;constructor(t){const{android_name:e,android_nickname:a,android_icon:i,android_description:r,android_gender:s,android_grade:n,android_skin_name:o,android_hair:c,android_face:l,android_ear_sensor_clip_flag:h,android_non_humanoid_flag:p,android_shop_usable_flag:m}=t;this.androidName=e,this.androidNickname=a,this.androidIcon=i,this.androidDescription=r,this.androidGender=s,this.androidGrade=n,this.androidSkinName=o,this.androidHair=new k(c),this.androidFace=new w(l),this.androidEarSensorClipFlag=h,this.androidNonHumanoidFlag=p,this.androidShopUsableFlag=m}}class C{date;androidName;androidNickname;androidIcon;androidDescription;androidHair;androidFace;androidSkinName;androidCashItemEquipment;androidEarSensorClipFlag;androidGender;androidGrade;androidNonHumanoidFlag;androidShopUsableFlag;presetNo;androidPreset1;androidPreset2;androidPreset3;constructor(t){const{date:e,android_name:a,android_nickname:i,android_icon:r,android_description:s,android_hair:n,android_face:o,android_skin_name:c,android_cash_item_equipment:l,android_ear_sensor_clip_flag:h,android_gender:p,android_grade:m,android_non_humanoid_flag:d,android_shop_usable_flag:u,preset_no:_,android_preset_1:g,android_preset_2:f,android_preset_3:C}=t;this.date=e?new Date(e):null,this.androidName=a,this.androidNickname=i,this.androidIcon=r,this.androidDescription=s,this.androidHair=new k(n),this.androidFace=new w(o),this.androidSkinName=c,this.androidCashItemEquipment=l.map((t=>new y(t))),this.androidEarSensorClipFlag=h??null,this.androidGender=p,this.androidGrade=m,this.androidNonHumanoidFlag=d,this.androidShopUsableFlag=u,this.presetNo=_,this.androidPreset1=g?new v(g):null,this.androidPreset2=f?new v(f):null,this.androidPreset3=C?new v(C):null}}class P{date;characterName;worldName;characterGender;characterClass;characterClassLevel;characterLevel;characterExp;characterExpRate;characterGuildName;characterImage;characterDateCreate;accessFlag;liberationQuestClearFlag;constructor(t){const{date:e,character_name:a,world_name:i,character_gender:r,character_class:s,character_class_level:n,character_level:o,character_exp:c,character_exp_rate:l,character_guild_name:h,character_image:p,character_date_create:m,access_flag:d,liberation_quest_clear_flag:u}=t;this.date=e?new Date(e):null,this.characterName=a,this.worldName=i,this.characterGender=r,this.characterClass=s,this.characterClassLevel=n,this.characterLevel=o,this.characterExp=c,this.characterExpRate=l,this.characterGuildName=h,this.characterImage=p,this.characterDateCreate=new Date(m),this.accessFlag=d,this.liberationQuestClearFlag=u}get isAccessFlag(){return"true"===this.accessFlag}get isLiberationQuestClearFlag(){return"true"===this.liberationQuestClearFlag}}class D{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class E{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:r}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=r}}class S{date;characterGender;characterClass;characterHair;characterFace;characterSkinName;additionalCharacterHair;additionalCharacterFace;additionalCharacterSkinName;constructor(t){const{date:e,character_gender:a,character_class:i,character_hair:r,character_face:s,character_skin_name:n,additional_character_hair:o,additional_character_face:c,additional_character_skin_name:l}=t;this.date=e?new Date(e):null,this.characterGender=a,this.characterClass=i,this.characterHair=new E(r),this.characterFace=new D(s),this.characterSkinName=n,this.additionalCharacterHair=o?new E(o):null,this.additionalCharacterFace=c?new D(c):null,this.additionalCharacterSkinName=l}}class x{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:r}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=r}}class b{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class O{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;itemGender;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:r,cash_item_description:s,cash_item_option:n,date_expire:o,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h,item_gender:p}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=r,this.cashItemDescription=s,this.cashItemOption=n.map((t=>new b(t))),this.dateExpire=o,this.dateOptionExpire=c,this.cashItemLabel=l,this.cashItemColoringPrism=h?new x(h):null,this.itemGender=p}}class N{date;characterGender;characterClass;presetNo;cashItemEquipmentBase;cashItemEquipmentPreset1;cashItemEquipmentPreset2;cashItemEquipmentPreset3;additionalCashItemEquipmentBase;additionalCashItemEquipmentPreset1;additionalCashItemEquipmentPreset2;additionalCashItemEquipmentPreset3;constructor(t){const{date:e,character_gender:a,character_class:i,preset_no:r,cash_item_equipment_base:s,cash_item_equipment_preset_1:n,cash_item_equipment_preset_2:o,cash_item_equipment_preset_3:c,additional_cash_item_equipment_base:l,additional_cash_item_equipment_preset_1:h,additional_cash_item_equipment_preset_2:p,additional_cash_item_equipment_preset_3:m}=t;this.date=e?new Date(e):null,this.characterGender=a,this.characterClass=i,this.presetNo=r,this.cashItemEquipmentBase=s.map((t=>new O(t))),this.cashItemEquipmentPreset1=n.map((t=>new O(t))),this.cashItemEquipmentPreset2=o.map((t=>new O(t))),this.cashItemEquipmentPreset3=c.map((t=>new O(t))),this.additionalCashItemEquipmentBase=l.map((t=>new O(t))),this.additionalCashItemEquipmentPreset1=h.map((t=>new O(t))),this.additionalCashItemEquipmentPreset2=p.map((t=>new O(t))),this.additionalCashItemEquipmentPreset3=m.map((t=>new O(t)))}}class I{date;characterClass;worldName;dojangBestFloor;dateDojangRecord;dojangBestTime;constructor(t){const{date:e,character_class:a,world_name:i,dojang_best_floor:r,date_dojang_record:s,dojang_best_time:n}=t;this.date=e?new Date(e):null,this.characterClass=a,this.worldName=i,this.dojangBestFloor=r,this.dateDojangRecord=s?new Date(s):null,this.dojangBestTime=n}}class q{ocid;constructor(t){const{ocid:e}=t;this.ocid=e}}class A{hexaSkillId;constructor(t){const{hexa_skill_id:e}=t;this.hexaSkillId=e}}class L{hexaCoreName;hexaCoreLevel;hexaCoreType;linkedSkill;constructor(t){const{hexa_core_name:e,hexa_core_level:a,hexa_core_type:i,linked_skill:r}=t;this.hexaCoreName=e,this.hexaCoreLevel=a,this.hexaCoreType=i,this.linkedSkill=r.map((t=>new A(t)))}}class R{date;characterHexaCoreEquipment;constructor(t){const{date:e,character_hexa_core_equipment:a}=t;this.date=e?new Date(e):null,this.characterHexaCoreEquipment=a.map((t=>new L(t)))}}class G{slotId;mainStatName;subStatName1;subStatName2;mainStatLevel;subStatLevel1;subStatLevel2;statGrade;constructor(t){const{slot_id:e,main_stat_name:a,sub_stat_name_1:i,sub_stat_name_2:r,main_stat_level:s,sub_stat_level_1:n,sub_stat_level_2:o,stat_grade:c}=t;this.slotId=e,this.mainStatName=a,this.subStatName1=i,this.subStatName2=r,this.mainStatLevel=s,this.subStatLevel1=n,this.subStatLevel2=o,this.statGrade=c}}class T{date;characterClass;characterHexaStatCore;presetHexaStatCore;constructor(t){const{date:e,character_class:a,character_hexa_stat_core:i,preset_hexa_stat_core:r}=t;this.date=e?new Date(e):null,this.characterClass=a,this.characterHexaStatCore=i.map((t=>new G(t))),this.presetHexaStatCore=r.map((t=>new G(t)))}}class M{statType;statPoint;statLevel;statIncrease;constructor(t){const{stat_type:e,stat_point:a,stat_level:i,stat_increase:r}=t;this.statType=e,this.statPoint=a,this.statLevel=i,this.statIncrease=r}}class F{date;characterClass;usePresetNo;useAvailableHyperStat;hyperStatPreset1;hyperStatPreset1RemainPoint;hyperStatPreset2;hyperStatPreset2RemainPoint;hyperStatPreset3;hyperStatPreset3RemainPoint;constructor(t){const{date:e,character_class:a,use_preset_no:i,use_available_hyper_stat:r,hyper_stat_preset_1:s,hyper_stat_preset_1_remain_point:n,hyper_stat_preset_2:o,hyper_stat_preset_2_remain_point:c,hyper_stat_preset_3:l,hyper_stat_preset_3_remain_point:h}=t;this.date=e?new Date(e):null,this.characterClass=a,this.usePresetNo=i,this.useAvailableHyperStat=r,this.hyperStatPreset1=s.map((t=>new M(t))),this.hyperStatPreset1RemainPoint=n,this.hyperStatPreset2=o.map((t=>new M(t))),this.hyperStatPreset2RemainPoint=c,this.hyperStatPreset3=l.map((t=>new M(t))),this.hyperStatPreset3RemainPoint=h}}class H{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;damage;allStat;equipmentLevelDecrease;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p,boss_damage:m,damage:d,all_stat:u,equipment_level_decrease:_}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p,this.bossDamage=m,this.damage=d,this.allStat=u,this.equipmentLevelDecrease=_}}class U{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;maxHpRate;maxMpRate;baseEquipmentLevel;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p,boss_damage:m,ignore_monster_armor:d,all_stat:u,max_hp_rate:_,max_mp_rate:g,base_equipment_level:f}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p,this.bossDamage=m,this.ignoreMonsterArmor=d,this.allStat=u,this.maxHpRate=_,this.maxMpRate=g,this.baseEquipmentLevel=f}}class ${str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p}}class j{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c}}class B{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p}}class Y{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;damage;equipmentLevelDecrease;maxHpRate;maxMpRate;constructor(t){const{str:e,dex:a,int:i,luk:r,max_hp:s,max_mp:n,attack_power:o,magic_power:c,armor:l,speed:h,jump:p,boss_damage:m,ignore_monster_armor:d,all_stat:u,damage:_,equipment_level_decrease:g,max_hp_rate:f,max_mp_rate:y}=t;this.str=e,this.dex=a,this.int=i,this.luk=r,this.maxHp=s,this.maxMp=n,this.attackPower=o,this.magicPower=c,this.armor=l,this.speed=h,this.jump=p,this.bossDamage=m,this.ignoreMonsterArmor=d,this.allStat=u,this.damage=_,this.equipmentLevelDecrease=g,this.maxHpRate=f,this.maxMpRate=y}}class V{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:a,item_name:i,item_icon:r,item_description:s,item_shape_name:n,item_shape_icon:o,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:p,item_exceptional_option:m,item_add_option:d,growth_exp:u,growth_level:_,scroll_upgrade:g,cuttable_count:f,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:k,soul_name:v,soul_option:C,item_etc_option:P,starforce:D,starforce_scroll_flag:E,item_starforce_option:S,special_ring_level:x,date_expire:b}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=a,this.itemName=i,this.itemIcon=r,this.itemDescription=s,this.itemShapeName=n,this.itemShapeIcon=o,this.itemGender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new U(h),this.equipmentLevelIncrease=p,this.itemExceptionalOption=new j(m),this.itemAddOption=new H(d),this.growthExp=u,this.growthLevel=_,this.scrollUpgrade=g,this.cuttableCount=f,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=k,this.soulName=v,this.soulOption=C,this.itemEtcOption=new $(P),this.starforce=D,this.starforceScrollFlag=E,this.itemStarforceOption=new B(S),this.specialRingLevel=x,this.dateExpire=b?new Date(b):null}}class z{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;potentialOptionGrade;additionalPotentialOptionGrade;potentialOption1;potentialOption2;potentialOption3;additionalPotentialOption1;additionalPotentialOption2;additionalPotentialOption3;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:a,item_name:i,item_icon:r,item_description:s,item_shape_name:n,item_shape_icon:o,item_gender:c,item_total_option:l,item_base_option:h,potential_option_grade:p,additional_potential_option_grade:m,potential_option_1:d,potential_option_2:u,potential_option_3:_,additional_potential_option_1:g,additional_potential_option_2:f,additional_potential_option_3:y,equipment_level_increase:w,item_exceptional_option:k,item_add_option:v,growth_exp:C,growth_level:P,scroll_upgrade:D,cuttable_count:E,golden_hammer_flag:S,scroll_resilience_count:x,scroll_upgradeable_count:b,soul_name:O,soul_option:N,item_etc_option:I,starforce:q,starforce_scroll_flag:A,item_starforce_option:L,special_ring_level:R,date_expire:G}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=a,this.itemName=i,this.itemIcon=r,this.itemDescription=s,this.itemShapeName=n,this.itemShapeIcon=o,this.itemGender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new U(h),this.potentialOptionGrade=p,this.additionalPotentialOptionGrade=m,this.potentialOption1=d,this.potentialOption2=u,this.potentialOption3=_,this.additionalPotentialOption1=g,this.additionalPotentialOption2=f,this.additionalPotentialOption3=y,this.equipmentLevelIncrease=w,this.itemExceptionalOption=new j(k),this.itemAddOption=new H(v),this.growthExp=C,this.growthLevel=P,this.scrollUpgrade=D,this.cuttableCount=E,this.goldenHammerFlag=S,this.scrollResilienceCount=x,this.scrollUpgradeableCount=b,this.soulName=O,this.soulOption=N,this.itemEtcOption=new $(I),this.starforce=q,this.starforceScrollFlag=A,this.itemStarforceOption=new B(L),this.specialRingLevel=R,this.dateExpire=G?new Date(G):null}}class Q{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:a,item_name:i,item_icon:r,item_description:s,item_shape_name:n,item_shape_icon:o,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:p,item_exceptional_option:m,item_add_option:d,growth_exp:u,growth_level:_,scroll_upgrade:g,cuttable_count:f,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:k,soul_name:v,soul_option:C,item_etc_option:P,starforce:D,starforce_scroll_flag:E,item_starforce_option:S,special_ring_level:x,date_expire:b}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=a,this.itemName=i,this.itemIcon=r,this.itemDescription=s,this.itemShapeName=n,this.itemShapeIcon=o,this.itemGender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new U(h),this.equipmentLevelIncrease=p,this.itemExceptionalOption=new j(m),this.itemAddOption=new H(d),this.growthExp=u,this.growthLevel=_,this.scrollUpgrade=g,this.cuttableCount=f,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=k,this.soulName=v,this.soulOption=C,this.itemEtcOption=new $(P),this.starforce=D,this.starforceScrollFlag=E,this.itemStarforceOption=new B(S),this.specialRingLevel=x,this.dateExpire=b?new Date(b):null}}class Z{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire=null;isOptionExpired=null;constructor(t){const{title_name:e,title_icon:a,title_description:i,date_expire:r,date_option_expire:s}=t;this.titleName=e,this.titleIcon=a,this.titleDescription=i,this.dateExpire=r?new Date(r):null,"expired"===s?this.isOptionExpired=!0:"string"==typeof s&&(this.dateOptionExpire=s?new Date(s):null)}}class K{date;characterGender;characterClass;presetNo;itemEquipment;itemEquipmentPreset1;itemEquipmentPreset2;itemEquipmentPreset3;title;dragonEquipment;mechanicEquipment;constructor(t){const{date:e,character_gender:a,character_class:i,preset_no:r,item_equipment:s,item_equipment_preset_1:n,item_equipment_preset_2:o,item_equipment_preset_3:c,title:l,dragon_equipment:h,mechanic_equipment:p}=t;this.date=e?new Date(e):null,this.characterGender=a,this.characterClass=i,this.presetNo=r,this.itemEquipment=s.map((t=>new z(t))),this.itemEquipmentPreset1=n?n.map((t=>new z(t))):null,this.itemEquipmentPreset2=o?o.map((t=>new z(t))):null,this.itemEquipmentPreset3=c?c.map((t=>new z(t))):null,this.title=l?new Z(l):null,this.dragonEquipment=h.map((t=>new V(t))),this.mechanicEquipment=p.map((t=>new Q(t)))}}class X{skillName;skillDescription;skillLevel;skillEffect;skillEffectNext;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:r,skill_effect_next:s,skill_icon:n}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=r,this.skillEffectNext=s,this.skillIcon=n}}class W{date;characterClass;characterLinkSkill;characterLinkSkillPreset1;characterLinkSkillPreset2;characterLinkSkillPreset3;characterOwnedLinkSkill;characterOwnedLinkSkillPreset1;characterOwnedLinkSkillPreset2;characterOwnedLinkSkillPreset3;constructor(t){const{date:e,character_class:a,character_link_skill:i,character_link_skill_preset_1:r,character_link_skill_preset_2:s,character_link_skill_preset_3:n,character_owned_link_skill:o,character_owned_link_skill_preset_1:c,character_owned_link_skill_preset_2:l,character_owned_link_skill_preset_3:h}=t;this.date=e?new Date(e):null,this.characterClass=a,this.characterLinkSkill=i.map((t=>new X(t))),this.characterLinkSkillPreset1=r.map((t=>new X(t))),this.characterLinkSkillPreset2=s.map((t=>new X(t))),this.characterLinkSkillPreset3=n.map((t=>new X(t))),this.characterOwnedLinkSkill=new X(o),this.characterOwnedLinkSkillPreset1=c?new X(c):null,this.characterOwnedLinkSkillPreset2=l?new X(l):null,this.characterOwnedLinkSkillPreset3=h?new X(h):null}}class J{ocid;characterName;worldName;characterClass;characterLevel;constructor(t){const{ocid:e,character_name:a,world_name:i,character_class:r,character_level:s}=t;this.ocid=e,this.characterName=a,this.worldName=i,this.characterClass=r,this.characterLevel=s}}class tt{accountId;characterList;constructor(t){const{account_id:e,character_list:a}=t;this.accountId=e,this.characterList=a.map((t=>new J(t)))}}class et{accountList;constructor(t){const{account_list:e}=t;this.accountList=e.map((t=>new tt(t)))}}class at{skill1;skill1Icon;skill2;skill2Icon;constructor(t){const{skill_1:e,skill_1_icon:a,skill_2:i,skill_2_icon:r}=t;this.skill1=e,this.skill1Icon=a,this.skill2=i,this.skill2Icon=r}}class it{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class rt{itemName;itemIcon;itemDescription;itemOption;scrollUpgrade;scrollUpgradable;itemShape;itemShapeIcon;constructor(t){const{item_name:e,item_icon:a,item_description:i,item_option:r,scroll_upgrade:s,scroll_upgradable:n,item_shape:o,item_shape_icon:c}=t;this.itemName=e,this.itemIcon=a,this.itemDescription=i,this.itemOption=r.map((t=>new it(t))),this.scrollUpgrade=s,this.scrollUpgradable=n,this.itemShape=o,this.itemShapeIcon=c}}class st{date;pet1Name;pet1Nickname;pet1Icon;pet1Description;pet1Equipment;pet1AutoSkill;pet1PetType;pet1Skill;pet1DateExpire;pet1Appearance;pet1AppearanceIcon;pet2Name;pet2Nickname;pet2Icon;pet2Description;pet2Equipment;pet2AutoSkill;pet2PetType;pet2Skill;pet2DateExpire;pet2Appearance;pet2AppearanceIcon;pet3Name;pet3Nickname;pet3Icon;pet3Description;pet3Equipment;pet3AutoSkill;pet3PetType;pet3Skill;pet3DateExpire;pet3Appearance;pet3AppearanceIcon;constructor(t){const{date:e,pet_1_name:a,pet_1_nickname:i,pet_1_icon:r,pet_1_description:s,pet_1_equipment:n,pet_1_auto_skill:o,pet_1_pet_type:c,pet_1_skill:l,pet_1_date_expire:h,pet_1_appearance:p,pet_1_appearance_icon:m,pet_2_name:d,pet_2_nickname:u,pet_2_icon:_,pet_2_description:g,pet_2_equipment:f,pet_2_auto_skill:y,pet_2_pet_type:w,pet_2_skill:k,pet_2_date_expire:v,pet_2_appearance:C,pet_2_appearance_icon:P,pet_3_name:D,pet_3_nickname:E,pet_3_icon:S,pet_3_description:x,pet_3_equipment:b,pet_3_auto_skill:O,pet_3_pet_type:N,pet_3_skill:I,pet_3_date_expire:q,pet_3_appearance:A,pet_3_appearance_icon:L}=t;this.date=e?new Date(e):null,this.pet1Name=a,this.pet1Nickname=i,this.pet1Icon=r,this.pet1Description=s,this.pet1Equipment=n?new rt(n):null,this.pet1AutoSkill=o?new at(o):null,this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=h?new Date(h):null,this.pet1Appearance=p,this.pet1AppearanceIcon=m,this.pet2Name=d,this.pet2Nickname=u,this.pet2Icon=_,this.pet2Description=g,this.pet2Equipment=f?new rt(f):null,this.pet2AutoSkill=y?new at(y):null,this.pet2PetType=w,this.pet2Skill=k,this.pet2DateExpire=v?new Date(v):null,this.pet2Appearance=C,this.pet2AppearanceIcon=P,this.pet3Name=D,this.pet3Nickname=E,this.pet3Icon=S,this.pet3Description=x,this.pet3Equipment=b?new rt(b):null,this.pet3AutoSkill=O?new at(O):null,this.pet3PetType=N,this.pet3Skill=I,this.pet3DateExpire=q?new Date(q):null,this.pet3Appearance=A,this.pet3AppearanceIcon=L}}class nt{date;popularity;constructor(t){const{date:e,popularity:a}=t;this.date=e?new Date(e):null,this.popularity=a}}class ot{date;charismaLevel;sensibilityLevel;insightLevel;willingnessLevel;handicraftLevel;charmLevel;constructor(t){const{date:e,charisma_level:a,sensibility_level:i,insight_level:r,willingness_level:s,handicraft_level:n,charm_level:o}=t;this.date=e?new Date(e):null,this.charismaLevel=a,this.sensibilityLevel=i,this.insightLevel=r,this.willingnessLevel=s,this.handicraftLevel=n,this.charmLevel=o}}class ct{setCount;setOption;constructor(t){const{set_count:e,set_option:a}=t;this.setCount=e,this.setOption=a}}class lt{setCount;setOption;constructor(t){const{set_count:e,set_option:a}=t;this.setCount=e,this.setOption=a}}class ht{setName;totalSetCount;setEffectInfo;setOptionFull;constructor(t){const{set_name:e,total_set_count:a,set_effect_info:i,set_option_full:r}=t;this.setName=e,this.totalSetCount=a,this.setEffectInfo=i.map((t=>new lt(t))),this.setOptionFull=r.map((t=>new ct(t)))}}class pt{date;setEffect;constructor(t){const{date:e,set_effect:a}=t;this.date=e?new Date(e):null,this.setEffect=a.map((t=>new ht(t)))}}class mt{skillName;skillDescription;skillLevel;skillEffect;skillEffectNext;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:r,skill_effect_next:s,skill_icon:n}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=r,this.skillEffectNext=s,this.skillIcon=n}}class dt{date;characterClass;characterSkillGrade;characterSkill;constructor(t){const{date:e,character_class:a,character_skill_grade:i,character_skill:r}=t;this.date=e?new Date(e):null,this.characterClass=a,this.characterSkillGrade=i,this.characterSkill=r.map((t=>new mt(t)))}}class ut{date;characterClass;finalStat;remainAP;constructor(t){const{date:e,character_class:a,final_stat:i,remain_ap:r}=t;this.date=e?new Date(e):null,this.characterClass=a,this.finalStat=i.map((t=>({statName:t.stat_name,statValue:t.stat_value}))),this.remainAP=r}}class _t{symbolName;symbolIcon;symbolDescription;symbolForce;symbolLevel;symbolStr;symbolDex;symbolInt;symbolLuk;symbolHp;symbolGrowthCount;symbolRequireGrowthCount;constructor(t){const{symbol_name:e,symbol_icon:a,symbol_description:i,symbol_force:r,symbol_level:s,symbol_str:n,symbol_dex:o,symbol_int:c,symbol_luk:l,symbol_hp:h,symbol_growth_count:p,symbol_require_growth_count:m}=t;this.symbolName=e,this.symbolIcon=a,this.symbolDescription=i,this.symbolForce=r,this.symbolLevel=s,this.symbolStr=n,this.symbolDex=o,this.symbolInt=c,this.symbolLuk=l,this.symbolHp=h,this.symbolGrowthCount=p,this.symbolRequireGrowthCount=m}}class gt{date;characterClass;symbol;constructor(t){const{date:e,character_class:a,symbol:i}=t;this.date=e?new Date(e):null,this.characterClass=a,this.symbol=i.map((t=>new _t(t)))}}class ft{slotId;slotLevel;vCoreName;vCoreType;vCoreLevel;vCoreSkill1;vCoreSkill2;vCoreSkill3;constructor(t){const{slot_id:e,slot_level:a,v_core_name:i,v_core_type:r,v_core_level:s,v_core_skill_1:n,v_core_skill_2:o,v_core_skill_3:c}=t;this.slotId=e,this.slotLevel=a,this.vCoreName=i,this.vCoreType=r,this.vCoreLevel=s,this.vCoreSkill1=n,this.vCoreSkill2=o,this.vCoreSkill3=c}}class yt{date;characterClass;characterVCoreEquipment;characterVMatrixRemainSlotUpgradePoint;constructor(t){const{date:e,character_class:a,character_v_core_equipment:i,character_v_matrix_remain_slot_upgrade_point:r}=t;this.date=e?new Date(e):null,this.characterClass=a,this.characterVCoreEquipment=i.map((t=>new ft(t))),this.characterVMatrixRemainSlotUpgradePoint=r}}class wt{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:r,skill_icon:s}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=r,this.skillIcon=s}}class kt{date;worldName;guildName;guildLevel;guildFame;guildPoint;guildMasterName;guildMemberCount;guildMember;guildSkill;guildNoblesseSkill;constructor(t){const{date:e,world_name:a,guild_name:i,guild_level:r,guild_fame:s,guild_point:n,guild_master_name:o,guild_member_count:c,guild_member:l,guild_skill:h,guild_noblesse_skill:p}=t;this.date=e?new Date(e):null,this.worldName=a,this.guildName=i,this.guildLevel=r,this.guildFame=s,this.guildPoint=n,this.guildMasterName=o,this.guildMemberCount=c,this.guildMember=l,this.guildSkill=h.map((t=>new wt(t))),this.guildNoblesseSkill=p.map((t=>new wt(t)))}}class vt{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}t.PotentialOptionGrade=void 0,(p=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[p.RARE=0]="RARE",p[p.EPIC=1]="EPIC",p[p.UNIQUE=2]="UNIQUE",p[p.LEGENDARY=3]="LEGENDARY";const Ct=e=>{const a={"레어":t.PotentialOptionGrade.RARE,"에픽":t.PotentialOptionGrade.EPIC,"유니크":t.PotentialOptionGrade.UNIQUE,"레전드리":t.PotentialOptionGrade.LEGENDARY}[e];if(!a)throw new TypeError("No enum constant for string: "+e);return a};class Pt{value;grade;constructor(t){const{value:e,grade:a}=t;this.value=e,this.grade=a}get gradeEnum(){return Ct(this.grade)}}class Dt{id;characterName;worldName;dateCreate;cubeType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:a,world_name:i,date_create:r,cube_type:s,item_upgrade_result:n,miracle_time_flag:o,item_equipment_part:c,item_level:l,target_item:h,potential_option_grade:p,additional_potential_option_grade:m,upgrade_guarantee:d,upgrade_guarantee_count:u,before_potential_option:_,before_additional_potential_option:g,after_potential_option:f,after_additional_potential_option:y}=t;this.id=e,this.characterName=a,this.worldName=i,this.dateCreate=new Date(r),this.cubeType=s,this.itemUpgradeResult=n,this.miracleTimeFlag=o,this.itemEquipmentPart=c,this.itemLevel=l,this.targetItem=h,this.potentialOptionGrade=p,this.additionalPotentialOptionGrade=m,this.upgradeGuarantee=d,this.upgradeGuaranteeCount=u,this.beforePotentialOption=_.map((t=>new Pt(t))),this.beforeAdditionalPotentialOption=g.map((t=>new Pt(t))),this.afterPotentialOption=f.map((t=>new Pt(t))),this.afterAdditionalPotentialOption=y.map((t=>new Pt(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Ct(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Ct(this.additionalPotentialOptionGrade)}}class Et{count;cubeHistory;nextCursor;constructor(t){const{count:e,cube_history:a,next_cursor:i}=t;this.count=e,this.cubeHistory=a.map((t=>new Dt(t))),this.nextCursor=i}}class St{value;grade;constructor(t){const{value:e,grade:a}=t;this.value=e,this.grade=a}get gradeEnum(){return Ct(this.grade)}}class xt{id;characterName;dateCreate;potentialType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:a,date_create:i,potential_type:r,item_upgrade_result:s,miracle_time_flag:n,item_equipment_part:o,item_level:c,target_item:l,potential_option_grade:h,additional_potential_option_grade:p,upgrade_guarantee:m,upgrade_guarantee_count:d,before_potential_option:u,before_additional_potential_option:_,after_potential_option:g,after_additional_potential_option:f}=t;this.id=e,this.characterName=a,this.dateCreate=new Date(i),this.potentialType=r,this.itemUpgradeResult=s,this.miracleTimeFlag=n,this.itemEquipmentPart=o,this.itemLevel=c,this.targetItem=l,this.potentialOptionGrade=h,this.additionalPotentialOptionGrade=p,this.upgradeGuarantee=m,this.upgradeGuaranteeCount=d,this.beforePotentialOption=u.map((t=>new St(t))),this.beforeAdditionalPotentialOption=_.map((t=>new St(t))),this.afterPotentialOption=g.map((t=>new St(t))),this.afterAdditionalPotentialOption=f.map((t=>new St(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Ct(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Ct(this.additionalPotentialOptionGrade)}}class bt{count;potentialHistory;nextCursor;constructor(t){const{count:e,potential_history:a,next_cursor:i}=t;this.count=e,this.potentialHistory=a.map((t=>new xt(t))),this.nextCursor=i}}class Ot{successRate;costDiscountRate;plusValue;starforceEventRange;constructor(t){const{success_rate:e,cost_discount_rate:a,plus_value:i,starforce_event_range:r}=t;this.successRate=e,this.costDiscountRate=a,this.plusValue=i,this.starforceEventRange=r}}class Nt{id;itemUpgradeResult;beforeStarforceCount;afterStarforceCount;starCatchResult;superiorItemFlag;destroyDefence;chanceTime;eventFieldFlag;upgradeItem;protectShield;bonusStatUpgrade;characterName;worldName;targetItem;dateCreate;starforceEventList;constructor(t){const{id:e,item_upgrade_result:a,before_starforce_count:i,after_starforce_count:r,starcatch_result:s,superior_item_flag:n,destroy_defence:o,chance_time:c,event_field_flag:l,upgrade_item:h,protect_shield:p,bonus_stat_upgrade:m,character_name:d,world_name:u,target_item:_,date_create:g,starforce_event_list:f}=t;this.id=e,this.itemUpgradeResult=a,this.beforeStarforceCount=i,this.afterStarforceCount=r,this.starCatchResult=s,this.superiorItemFlag=n,this.destroyDefence=o,this.chanceTime=c,this.eventFieldFlag=l,this.upgradeItem=h,this.protectShield=p,this.bonusStatUpgrade=m,this.characterName=d,this.worldName=u,this.targetItem=_,this.dateCreate=new Date(g),this.starforceEventList=f?.map((t=>new Ot(t)))??null}}class It{count;starforceHistory;nextCursor;constructor(t){const{count:e,starforce_history:a,next_cursor:i}=t;this.count=e,this.starforceHistory=a.map((t=>new Nt(t))),this.nextCursor=i}}class qt{serviceCode;startDateTime;endDateTime;strObstacleContents;constructor(t){const e=t["soap:Envelope"]["soap:Body"][0].GetInspectionInfoResponse[0].GetInspectionInfoResult[0]["diffgr:diffgram"][0].NewDataSet[0].InspectionInfo[0];this.serviceCode=Number(e.serviceCode[0]),this.startDateTime=new Date(e.startDateTime[0]),this.endDateTime=new Date(e.endDateTime[0]),this.strObstacleContents=e.strObstacleContents[0]}}class At{date;ranking;characterName;worldName;className;subClassName;trophyGrade;trophyScore;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,trophy_grade:o,trophy_score:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.trophyGrade=o,this.trophyScore=c}}class Lt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new At(t)))}}class Rt{date;ranking;characterName;worldName;className;subClassName;characterLevel;dojangFloor;dojangTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,character_level:o,dojang_floor:c,dojang_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.characterLevel=o,this.dojangFloor=c,this.dojangTimeRecord=l}}class Gt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Rt(t)))}}class Tt{date;ranking;guildName;worldName;guildLevel;guildMasterName;guildMark;guildPoint;constructor(t){const{date:e,ranking:a,guild_name:i,world_name:r,guild_level:s,guild_master_name:n,guild_mark:o,guild_point:c}=t;this.date=new Date(e),this.ranking=a,this.guildName=i,this.worldName=r,this.guildLevel=s,this.guildMasterName=n,this.guildMark=o,this.guildPoint=c}}class Mt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Tt(t)))}}class Ft{date;ranking;characterName;worldName;className;subClassName;characterLevel;characterExp;characterPopularity;characterGuildName;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,character_level:o,character_exp:c,character_popularity:l,character_guildname:h}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.characterLevel=o,this.characterExp=c,this.characterPopularity=l,this.characterGuildName=h}}class Ht{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Ft(t)))}}class Ut{date;ranking;characterName;worldName;className;subClassName;characterLevel;theSeedFloor;theSeedTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,character_level:o,theseed_floor:c,theseed_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.characterLevel=o,this.theSeedFloor=c,this.theSeedTimeRecord=l}}class $t{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Ut(t)))}}class jt{date;ranking;characterName;worldName;className;subClassName;unionLevel;unionPower;constructor(t){const{date:e,ranking:a,character_name:i,world_name:r,class_name:s,sub_class_name:n,union_level:o,union_power:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=r,this.className=s,this.subClassName=n,this.unionLevel=o,this.unionPower=c}}class Bt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new jt(t)))}}class Yt{name;validityFlag;dateExpire;level;crystalOptionName1;crystalOptionName2;crystalOptionName3;constructor(t){const{name:e,validity_flag:a,date_expire:i,level:r,crystal_option_name_1:s,crystal_option_name_2:n,crystal_option_name_3:o}=t;this.name=e,this.validityFlag=a,this.dateExpire=new Date(i),this.level=r,this.crystalOptionName1=s,this.crystalOptionName2=n,this.crystalOptionName3=o}}class Vt{name;level;constructor(t){const{name:e,level:a}=t;this.name=e,this.level=a}}class zt{date;unionArtifactEffect;unionArtifactCrystal;unionArtifactRemainAp;constructor(t){const{date:e,union_artifact_effect:a,union_artifact_crystal:i,union_artifact_remain_ap:r}=t;this.date=e?new Date(e):null,this.unionArtifactEffect=a.map((t=>new Vt(t))),this.unionArtifactCrystal=i.map((t=>new Yt(t))),this.unionArtifactRemainAp=r}}class Qt{date;unionLevel;unionGrade;unionArtifactLevel;unionArtifactExp;unionArtifactPoint;constructor(t){const{date:e,union_level:a,union_grade:i,union_artifact_level:r,union_artifact_exp:s,union_artifact_point:n}=t;this.date=e?new Date(e):null,this.unionLevel=a,this.unionGrade=i,this.unionArtifactLevel=r,this.unionArtifactExp=s,this.unionArtifactPoint=n}}class Zt{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Kt{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Xt{blockType;blockClass;blockLevel;blockControlPoint;blockPosition;constructor(t){const{block_type:e,block_class:a,block_level:i,block_control_point:r,block_position:s}=t;this.blockType=e,this.blockClass=a,this.blockLevel=i,this.blockControlPoint=new Kt(r),this.blockPosition=s?s.map((t=>new Zt(t))):null}}class Wt{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:a}=t;this.statFieldId=e,this.statFieldEffect=a}}class Jt{unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;constructor(t){const{union_raider_stat:e,union_occupied_stat:a,union_inner_stat:i,union_block:r}=t;this.unionRaiderStat=e,this.unionOccupiedStat=a,this.unionInnerStat=i.map((t=>new Wt(t))),this.unionBlock=r.map((t=>new Xt(t)))}}class te{date;unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;usePresetNo;unionRaiderPreset1;unionRaiderPreset2;unionRaiderPreset3;unionRaiderPreset4;unionRaiderPreset5;constructor(t){const{date:e,union_raider_stat:a,union_occupied_stat:i,union_inner_stat:r,union_block:s,use_preset_no:n,union_raider_preset_1:o,union_raider_preset_2:c,union_raider_preset_3:l,union_raider_preset_4:h,union_raider_preset_5:p}=t;this.date=e?new Date(e):null,this.unionRaiderStat=a,this.unionOccupiedStat=i,this.unionInnerStat=r.map((t=>new Wt(t))),this.unionBlock=s.map((t=>new Xt(t))),this.usePresetNo=n,this.unionRaiderPreset1=o?new Jt(o):null,this.unionRaiderPreset2=c?new Jt(c):null,this.unionRaiderPreset3=l?new Jt(l):null,this.unionRaiderPreset4=h?new Jt(h):null,this.unionRaiderPreset5=p?new Jt(p):null}}class ee extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:a}=t.error;super(a),this.errorCode=ie[e],this.message=a}}var ae;t.MapleStoryApiErrorCode=void 0,(ae=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[ae.OPENAPI00001=0]="OPENAPI00001",ae[ae.OPENAPI00002=1]="OPENAPI00002",ae[ae.OPENAPI00003=2]="OPENAPI00003",ae[ae.OPENAPI00004=3]="OPENAPI00004",ae[ae.OPENAPI00005=4]="OPENAPI00005",ae[ae.OPENAPI00006=5]="OPENAPI00006",ae[ae.OPENAPI00007=6]="OPENAPI00007",ae[ae.OPENAPI00009=7]="OPENAPI00009",ae[ae.OPENAPI00010=8]="OPENAPI00010",ae[ae.OPENAPI00011=9]="OPENAPI00011";const ie={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007,OPENAPI00009:t.MapleStoryApiErrorCode.OPENAPI00009,OPENAPI00010:t.MapleStoryApiErrorCode.OPENAPI00010,OPENAPI00011:t.MapleStoryApiErrorCode.OPENAPI00011};n.default.extend(l),n.default.extend(m);class re{apiKey;client;static BASE_URL="https://open.api.nexon.com/";static DEFAULT_TIMEOUT=5e3;static kstOffset=540;get timeout(){return this.client.defaults.timeout}set timeout(t){this.client.defaults.timeout=t}constructor(t){this.apiKey=t,this.client=s.default.create({baseURL:re.BASE_URL,timeout:re.DEFAULT_TIMEOUT,headers:{"x-nxopen-api-key":this.apiKey}}),this.client.interceptors.response.use((t=>t),(t=>{if(t instanceof e.AxiosError){const e=t.response.data;throw new ee(e)}throw t}))}async getCharacter(t){const{data:e}=await this.client.get("maplestory/v1/id",{params:{character_name:t}});return new q(e)}async getCharacterList(){const{data:t}=await this.client.get("maplestory/v1/character/list");return new et(t)}async getCharacterBasic(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/basic",{params:a});return new P(i)}async getCharacterPopularity(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/popularity",{params:a});return new nt(i)}async getCharacterStat(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/stat",{params:a});return new ut(i)}async getCharacterHyperStat(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/hyper-stat",{params:a});return new F(i)}async getCharacterPropensity(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/propensity",{params:a});return new ot(i)}async getCharacterAbility(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/ability",{params:a});return new _(i)}async getCharacterItemEquipment(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/item-equipment",{params:a});return new K(i)}async getCharacterCashItemEquipment(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/cashitem-equipment",{params:a});return new N(i)}async getCharacterSymbolEquipment(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/symbol-equipment",{params:a});return new gt(i)}async getCharacterSetEffect(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/set-effect",{params:a});return new pt(i)}async getCharacterBeautyEquipment(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/beauty-equipment",{params:a});return new S(i)}async getCharacterAndroidEquipment(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/android-equipment",{params:a});return new C(i)}async getCharacterPetEquipment(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/pet-equipment",{params:a});return new st(i)}async getCharacterSkill(t,e,a){const i={ocid:t,character_skill_grade:e,date:a?re.toDateString({year:2023,month:12,day:21},a):void 0},{data:r}=await this.client.get("maplestory/v1/character/skill",{params:i});return new dt(r)}async getCharacterLinkSkill(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/link-skill",{params:a});return new W(i)}async getCharacterVMatrix(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/vmatrix",{params:a});return new yt(i)}async getCharacterHexaMatrix(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/hexamatrix",{params:a});return new R(i)}async getCharacterHexaMatrixStat(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/hexamatrix-stat",{params:a});return new T(i)}async getCharacterDojang(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/character/dojang",{params:a});return new I(i)}async getUnion(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/user/union",{params:a});return new Qt(i)}async getUnionRaider(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/user/union-raider",{params:a});return new te(i)}async getUnionArtifact(t,e){const a={ocid:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/user/union-artifact",{params:a});return new zt(i)}async getGuild(t,e){const{data:a}=await this.client.get("maplestory/v1/guild/id",{params:{guild_name:t,world_name:e}});return new vt(a)}async getGuildBasic(t,e){const a={oguild_id:t,date:e?re.toDateString({year:2023,month:12,day:21},e):void 0},{data:i}=await this.client.get("maplestory/v1/guild/basic",{params:a});return new kt(i)}async getStarforceHistory(t,e){const a={count:t};"string"==typeof e?a.cursor=e:"object"!=typeof e&&void 0!==e||(a.date=re.toDateString({year:2023,month:12,day:27},e??re.getProperDefaultDateOptions({hour:0,minute:0,dateOffset:0})));const{data:i}=await this.client.get("maplestory/v1/history/starforce",{params:a});return new It(i)}async getCubeHistory(t,e){const a={count:t};"string"==typeof e?a.cursor=e:"object"!=typeof e&&void 0!==e||(a.date=re.toDateString({year:2022,month:11,day:25},e??re.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:i}=await this.client.get("maplestory/v1/history/cube",{params:a});return new Et(i)}async getPotentialHistory(t,e){const a={count:t};"string"==typeof e?a.cursor=e:"object"!=typeof e&&void 0!==e||(a.date=re.toDateString({year:2024,month:1,day:25},e??re.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:i}=await this.client.get("maplestory/v1/history/potential",{params:a});return new bt(i)}async getOverallRanking(t,e=re.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:re.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,worldType:i,characterClass:r,ocid:s,page:n}=t;a.world_name=e,a.world_type=i,a.class=r,a.ocid=s,a.page=n}const{data:i}=await this.client.get("maplestory/v1/ranking/overall",{params:a});return new Ht(i)}async getUnionRanking(t,e=re.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:re.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:i,page:r}=t;a.world_name=e,a.ocid=i,a.page=r}const{data:i}=await this.client.get("maplestory/v1/ranking/union",{params:a});return new Bt(i)}async getGuildRanking(t,e=re.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:re.toDateString({year:2023,month:12,day:22},e),ranking_type:0};if(t){const{worldName:e,rankingType:i,ocid:r,page:s}=t;a.world_name=e,a.ranking_type=i,a.ocid=r,a.page=s}const{data:i}=await this.client.get("maplestory/v1/ranking/guild",{params:a});return new Mt(i)}async getDojangRanking(t,e=re.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:re.toDateString({year:2023,month:12,day:22},e),difficulty:0};if(t){const{worldName:e,difficulty:i,characterClass:r,ocid:s,page:n}=t;a.world_name=e,a.difficulty=i,a.class=r,a.ocid=s,a.page=n}const{data:i}=await this.client.get("maplestory/v1/ranking/dojang",{params:a});return new Gt(i)}async getSeedRanking(t,e=re.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:re.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:i,page:r}=t;a.world_name=e,a.ocid=i,a.page=r}const{data:i}=await this.client.get("maplestory/v1/ranking/theseed",{params:a});return new $t(i)}async getAchievementRanking(t,e=re.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const a={date:re.toDateString({year:2023,month:12,day:22},e)};if(t){const{ocid:e,page:i}=t;a.ocid=e,a.page=i}const{data:i}=await this.client.get("maplestory/v1/ranking/achievement",{params:a});return new Lt(i)}async getInspectionInfo(){const t=(new o.default.Builder).buildObject({"soap:Envelope":{$:{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/"},"soap:Body":{GetInspectionInfo:{$:{xmlns:"https://api.maplestory.nexon.com/soap/"}}}}}),e=await s.default.post("soap/maplestory.asmx",t,{baseURL:"https://api.maplestory.nexon.com/",timeout:this.timeout,headers:{SOAPAction:"https://api.maplestory.nexon.com/soap/GetInspectionInfo","Content-Type":"text/xml; charset=utf-8"}}),a=await o.default.parseStringPromise(e.data);return new qt(a)}static getProperDefaultDateOptions(t){const{hour:e,minute:a,dateOffset:i}=t,r=n.default().utcOffset(re.kstOffset),s=n.default().utcOffset(re.kstOffset).hour(e).minute(a);let o;return o=r.isAfter(s)?r:r.subtract(1,"day"),o=o.subtract(i??0,"day"),{year:o.year(),month:o.month()+1,day:o.date()}}static toDateString(t,e){const{year:a,month:i,day:r}=t,{year:s,month:o,day:c}=e;if(s<a||s===a&&o<i||s===a&&o===i&&c<r)throw new Error(`You can only retrieve data after ${n.default(`${a}-${i}-${r}`).format("YYYY-MM-DD")}.`);return n.default(`${s}-${o}-${c}`).utcOffset(re.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=At,t.AchievementRankingResponseDto=Lt,t.CharacterAbilityDto=_,t.CharacterAbilityInfoDto=d,t.CharacterAbilityPresetDto=u,t.CharacterAndroidCashItemEquipmentColoringPrismDto=g,t.CharacterAndroidCashItemEquipmentDto=y,t.CharacterAndroidCashItemEquipmentOptionDto=f,t.CharacterAndroidEquipmentDto=C,t.CharacterAndroidEquipmentFaceDto=w,t.CharacterAndroidEquipmentHairDto=k,t.CharacterAndroidEquipmentPresetDto=v,t.CharacterBasicDto=P,t.CharacterBeautyEquipmentDto=S,t.CharacterBeautyEquipmentFaceDto=D,t.CharacterBeautyEquipmentHairDto=E,t.CharacterCashItemEquipmentColoringPrismDto=x,t.CharacterCashItemEquipmentDto=N,t.CharacterCashItemEquipmentOptionDto=b,t.CharacterCashItemEquipmentPresetDto=O,t.CharacterDojangDto=I,t.CharacterDto=q,t.CharacterHexaMatrixDto=R,t.CharacterHexaMatrixEquipmentDto=L,t.CharacterHexaMatrixEquipmentLinkedSkillDto=A,t.CharacterHexaMatrixStatCoreDto=G,t.CharacterHexaMatrixStatDto=T,t.CharacterHyperStatDto=F,t.CharacterHyperStatPresetDto=M,t.CharacterItemEquipmentAddOptionDto=H,t.CharacterItemEquipmentBaseOptionDto=U,t.CharacterItemEquipmentDragonInfoDto=V,t.CharacterItemEquipmentDto=K,t.CharacterItemEquipmentEtcOptionDto=$,t.CharacterItemEquipmentExceptionalOptionDto=j,t.CharacterItemEquipmentInfoDto=z,t.CharacterItemEquipmentMechanicInfoDto=Q,t.CharacterItemEquipmentStarforceOptionDto=B,t.CharacterItemEquipmentTitleDto=Z,t.CharacterItemEquipmentTotalOptionDto=Y,t.CharacterLinkSkillDto=W,t.CharacterLinkSkillInfoDto=X,t.CharacterListAccountCharacterDto=J,t.CharacterListAccountDto=tt,t.CharacterListDto=et,t.CharacterPetEquipmentAutoSkillDto=at,t.CharacterPetEquipmentDto=st,t.CharacterPetEquipmentItemDto=rt,t.CharacterPetEquipmentItemOptionDto=it,t.CharacterPopularityDto=nt,t.CharacterPropensityDto=ot,t.CharacterSetEffectDto=pt,t.CharacterSetEffectInfoDto=lt,t.CharacterSetEffectOptionFullDto=ct,t.CharacterSetEffectSetDto=ht,t.CharacterSkillDto=dt,t.CharacterSkillInfoDto=mt,t.CharacterStatDto=ut,t.CharacterSymbolEquipmentDto=gt,t.CharacterSymbolEquipmentInfoDto=_t,t.CharacterVMatrixCodeEquipmentDto=ft,t.CharacterVMatrixDto=yt,t.CubeHistoryDto=Dt,t.CubeHistoryResponseDto=Et,t.CubeResultOptionDto=Pt,t.DojangRankingDto=Rt,t.DojangRankingResponseDto=Gt,t.GuildBasicDto=kt,t.GuildDto=vt,t.GuildRankingDto=Tt,t.GuildRankingResponseDto=Mt,t.GuildSkillDto=wt,t.InspectionInfoDto=qt,t.MapleStoryApi=re,t.MapleStoryApiError=ee,t.OverallRankingDto=Ft,t.OverallRankingResponseDto=Ht,t.PotentialHistoryDto=xt,t.PotentialHistoryResponseDto=bt,t.PotentialResultOptionDto=St,t.StarforceEventDto=Ot,t.StarforceHistoryDto=Nt,t.StarforceHistoryResponseDto=It,t.TheSeedRankingDto=Ut,t.TheSeedRankingResponseDto=$t,t.UnionArtifactCrystalDto=Yt,t.UnionArtifactDto=zt,t.UnionArtifactEffectDto=Vt,t.UnionDto=Qt,t.UnionRaiderBlockControlPointDto=Kt,t.UnionRaiderBlockDto=Xt,t.UnionRaiderBlockPositionDto=Zt,t.UnionRaiderDto=te,t.UnionRaiderInnerStatDto=Wt,t.UnionRaiderPresetDto=Jt,t.UnionRankingDto=jt,t.UnionRankingResponseDto=Bt,t.potentialOptionGradeFromString=Ct})); |
{ | ||
"name": "maplestory-openapi", | ||
"version": "2.4.1", | ||
"version": "2.6.1", | ||
"description": "This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.", | ||
@@ -45,4 +45,4 @@ "keywords": [ | ||
"prepublishOnly": "npm run build", | ||
"test": "uvu -r tsm test", | ||
"ts_sample": "ts-node sample/ts_sample.ts", | ||
"test": "jest", | ||
"ts_sample": "ts-node -r tsconfig-paths/register sample/ts_sample.ts", | ||
"types": "tsc --noEmit" | ||
@@ -58,2 +58,3 @@ }, | ||
"@rollup/plugin-node-resolve": "13.1.3", | ||
"@types/jest": "^29.5.12", | ||
"@types/xml2js": "^0.4.14", | ||
@@ -72,6 +73,8 @@ "@typescript-eslint/eslint-plugin": "^6.15.0", | ||
"rollup-plugin-typescript2": "0.27.1", | ||
"jest": "^29.7.0", | ||
"tsconfig-paths": "^4.2.0", | ||
"ts-jest": "^29.1.4", | ||
"ts-node": "^10.9.1", | ||
"tsm": "2.2.1", | ||
"typescript": "^5.2.2", | ||
"uvu": "0.5.3" | ||
"typescript": "^5.2.2" | ||
}, | ||
@@ -78,0 +81,0 @@ "engines": { |
# MapleStory OpenAPI JavaScript Library | ||
[![npm](https://img.shields.io/npm/v/maplestory-openapi)](https://www.npmjs.com/package/maplestory-openapi) | ||
[![JS](https://github.com/SpiralMoon/maplestory.openapi/actions/workflows/js_test.yaml/badge.svg)](https://github.com/SpiralMoon/maplestory.openapi/actions/workflows/js_test.yaml) | ||
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon. | ||
넥슨의 MapleStory OpenAPI를 Javascript 환경에서 사용할 수 있게 해주는 라이브러리입니다. | ||
Packages written in other languages can be found [HERE](https://github.com/SpiralMoon/maplestory.openapi). | ||
다른 언어로 작성된 패키지는 [여기](https://github.com/SpiralMoon/maplestory.openapi)에서 확인할 수 있습니다. | ||
(한국어 문서는 [이쪽](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/README-ko.md)입니다.) | ||
(English document is [HERE](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/README-en.md)) | ||
## Installation | ||
Install the latest version of the JavaScript/TypeScript library in your npm project: | ||
npm 기반 프로젝트에 아래 정보를 입력하여 패키지를 추가하세요: | ||
```bash | ||
npm install maplestory-openapi@2.4.1 # Replace with the latest version | ||
npm install maplestory-openapi | ||
``` | ||
@@ -23,7 +24,7 @@ | ||
Before using the library, register your application and obtain an **api key** from the [Nexon Open API Console](https://openapi.nexon.com/my-application/). | ||
라이브러리를 사용하기 전에 [Nexon Open API 콘솔](https://openapi.nexon.com/my-application/)에서 애플리케이션을 등록하고 **api key**를 발급 받으세요. | ||
### Supports | ||
1. **CommonJS, ESM Support**: The library supports both CommonJS and ESM usage. | ||
1. **CommonJS, ESM 지원**: 이 라이브러리는 CommonJS 와 ESM 방식을 모두 지원합니다. | ||
@@ -37,6 +38,8 @@ ```javascript | ||
2. **TypeScript Support**: TypeScript is fully supported. Type definitions are included. | ||
2. **TypeScript 지원**: 타입 정의가 포함되어 있으므로 타입스크립트 환경에서도 사용 가능합니다. | ||
### Sample Code | ||
아래 코드는 닉네임을 바탕으로 특정 캐릭터의 식별자를 조회한 후 캐릭터의 기본 정보를 조회하는 예시입니다. | ||
```javascript | ||
@@ -48,41 +51,47 @@ const {MapleStoryApi, MapleStoryApiError} = require('maplestory-openapi'); | ||
api.getCubeHistory(1000, { | ||
year: 2023, | ||
month: 10, | ||
day: 15 | ||
}) | ||
.then((dto) => { | ||
const {count, cubeHistory, nextCursor} = dto; | ||
try { | ||
// run your code | ||
const character = await api.getCharacter('{Your Character Name}'); | ||
const characterBasic = await api.getCharacterBasic(character.ocid); | ||
console.log(characterBasic); | ||
} catch (e) { | ||
// exception handling | ||
if (e instanceof MapleStoryApiError) { | ||
// handle MapleStoryApiError | ||
} else { | ||
// handle other errors | ||
} | ||
} | ||
``` | ||
console.log('You used ' + count + ' cubes.'); | ||
}) | ||
.catch((e) => { | ||
if (e instanceof MapleStoryApiError) { | ||
// handle MapleStoryApiError | ||
} else { | ||
// handle other errors | ||
} | ||
더 많은 예시는 아래 링크의 테스트 케이스에서 확인할 수 있습니다. | ||
console.log(e); | ||
}); | ||
``` | ||
- [캐릭터 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/characterApi.test.ts) | ||
- [유니온 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/unionApi.test.ts) | ||
- [길드 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/guildApi.test.ts) | ||
- [확률 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/historyApi.test.ts) | ||
- [랭킹 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/rankingApi.test.ts) | ||
### Exception Handling | ||
Handle `MapleStoryApiError` to safely make calls, ensuring that specific Status defined in the [MapleStory OpenAPI Guide](https://openapi.nexon.com/guide/request-api) are not encountered. | ||
[MapleStory OpenAPI 가이드](https://openapi.nexon.com/guide/request-api/)에 서술된 에러 사유를 `MapleStoryApiError`를 통해 예외 처리 해야합니다. | ||
While `MapleStoryApi` is designed to prevent the occurrence of certain Status, exceptions may arise due to developer mistakes. | ||
`MapleStoryApi`는 특정 상태의 예외를 발생시키지 않도록 설계되었으나, 라이브러리를 사용하는 개발자의 실수로 인해 여전히 일부 상태의 예외가 발생할 수 있습니다. | ||
Therefore, it's recommended to use `MapleStoryApiError` for exception handling based on the `MapleStoryApiErrorCode` list described in the table below. | ||
따라서 아래 표에 설명된 `MapleStoryApiErrorCode` 목록을 기반으로 `MapleStoryApiError`를 예외 처리하시기 바랍니다. | ||
| ErrorCode | Description | | ||
|--------------|------------------------------------------| | ||
| OPENAPI00001 | Internal server error | | ||
| OPENAPI00002 | Access denied | | ||
| OPENAPI00003 | Invalid identifier | | ||
| OPENAPI00004 | Request format error (incorrect parameter input) | | ||
| OPENAPI00005 | Invalid api key | | ||
| OPENAPI00006 | Invalid api path | | ||
| OPENAPI00007 | Request allowance (Rate Limit) exceeded | | ||
| OPENAPI00009 | Not prepared data | | ||
| OPENAPI00010 | API server mainternence | | ||
| ErrorCode | Description | | ||
|--------------|--------------------| | ||
| OPENAPI00001 | 서버 내부 오류 | | ||
| OPENAPI00002 | 권한이 없는 경우 | | ||
| OPENAPI00003 | 유효하지 않은 식별자 | | ||
| OPENAPI00004 | 파라미터 누락 또는 유효하지 않음 | | ||
| OPENAPI00005 | 유효하지 않은 API KEY | | ||
| OPENAPI00006 | 유효하지 않은 API PATH | | ||
| OPENAPI00007 | API 호출량 초과 | | ||
| OPENAPI00009 | 데이터 준비 중 | | ||
| OPENAPI00010 | 게임 점검 중 | | ||
| OPENAPI00011 | API 점검 중 | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
590347
151
16929
0
95
22
1