@opfr/definitions 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,4 @@
1
1
  export declare const USAGE_MODES: readonly ["single", "multiple", "all"];
2
+ export declare const ENTITY_TYPES: readonly ["boost", "bottle", "repair", "chest", "scroll", "object", "store", "cookedMeal", "enchant", "alcohol", "ring", "strap", "boots", "helmet", "collar", "belt", "weapon"];
3
+ export declare const ENTITY_CATEGORY: readonly ["item", "resource", "enchant", "equipment"];
2
4
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/entities/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,wCAAyC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/entities/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,wCAAyC,CAAC;AAElE,eAAO,MAAM,YAAY,kLAA6C,CAAC;AAEvE,eAAO,MAAM,eAAe,uDAGlB,CAAC"}
@@ -1,2 +1,9 @@
1
+ import { EQUIPMENT_CATEGORY, EQUIPMENT_TYPE } from './equipments';
2
+ import { ITEM_CATEGORY, ITEM_TYPE } from './items';
1
3
  export const USAGE_MODES = ['single', 'multiple', 'all'];
4
+ export const ENTITY_TYPES = [...ITEM_TYPE, ...EQUIPMENT_TYPE];
5
+ export const ENTITY_CATEGORY = [
6
+ ...ITEM_CATEGORY,
7
+ ...EQUIPMENT_CATEGORY,
8
+ ];
2
9
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/entities/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,CAAU,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/entities/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,CAAU,CAAC;AAElE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,SAAS,EAAE,GAAG,cAAc,CAAU,CAAC;AAEvE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,aAAa;IAChB,GAAG,kBAAkB;CACb,CAAC"}
@@ -2,4 +2,5 @@ import type { EquipmentSlot, EquipmentType } from './';
2
2
  export declare const EQUIPMENT_TYPE: readonly ["ring", "strap", "boots", "helmet", "collar", "belt", "weapon"];
3
3
  export declare const EQUIPMENT_SLOT: readonly ["ring_left", "ring_right", "strap_left", "strap_right", "boots", "helmet", "collar", "belt", "weapon"];
4
4
  export declare const EQUIPMENT_FROM_SLOT_TO_TYPE: Record<EquipmentSlot, EquipmentType>;
5
+ export declare const EQUIPMENT_CATEGORY: readonly ["equipment"];
5
6
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/entities/equipments/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEvD,eAAO,MAAM,cAAc,2EAQjB,CAAC;AAEX,eAAO,MAAM,cAAc,kHAUjB,CAAC;AAEX,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,aAAa,EAAE,aAAa,CAWjE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/entities/equipments/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEvD,eAAO,MAAM,cAAc,2EAQjB,CAAC;AAEX,eAAO,MAAM,cAAc,kHAUjB,CAAC;AAEX,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,aAAa,EAAE,aAAa,CAWjE,CAAC;AAEb,eAAO,MAAM,kBAAkB,wBAAyB,CAAC"}
@@ -29,4 +29,5 @@ export const EQUIPMENT_FROM_SLOT_TO_TYPE = {
29
29
  belt: 'belt',
30
30
  weapon: 'weapon',
31
31
  };
32
+ export const EQUIPMENT_CATEGORY = ['equipment'];
32
33
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/entities/equipments/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GACtC;IACE,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/entities/equipments/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GACtC;IACE,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAEb,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,WAAW,CAAU,CAAC"}
@@ -1,10 +1,11 @@
1
- import type { EQUIPMENT_SLOT, EQUIPMENT_TYPE } from '../';
1
+ import { EQUIPMENT_CATEGORY, type EQUIPMENT_SLOT, type EQUIPMENT_TYPE } from '../';
2
2
  import { type Entity } from '../';
3
3
  import type { Buff } from '../../buffs';
4
4
  import type { Characteristic, CharacteristicsRecord } from '../../characteristics';
5
5
  import type { EQUIPMENT_IMAGE_IDS } from '../generated/imageIds';
6
6
  export type EquipmentType = (typeof EQUIPMENT_TYPE)[number];
7
7
  export type EquipmentSlot = (typeof EQUIPMENT_SLOT)[number];
8
+ export type EquipmentCategory = (typeof EQUIPMENT_CATEGORY)[number];
8
9
  export type EquipmentImageId = (typeof EQUIPMENT_IMAGE_IDS)[number];
9
10
  export type DBEquipment = {
10
11
  entityId: string;
@@ -18,7 +19,7 @@ export interface Equipment extends Entity {
18
19
  };
19
20
  type: EquipmentType;
20
21
  image: EquipmentImageId;
21
- category: 'equipment';
22
+ category: EquipmentCategory;
22
23
  characteristics: Partial<Record<Characteristic, [number, number] | number>>;
23
24
  level: number;
24
25
  panoply: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/equipments/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA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F,MAAM,WAAW,SAAU,SAAQ,MAAM;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,iBAAiB,CAAC;IAE5B,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,eAAe,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAExE,cAAc,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { EQUIPMENT_CATEGORY, } from '../';
1
2
  import {} from '../';
2
3
  export * from './constants';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/equipments/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,MAAM,KAAK,CAAC;AA+ClC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/equipments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAGnB,MAAM,KAAK,CAAC;AACb,OAAO,EAAe,MAAM,KAAK,CAAC;AAgDlC,cAAc,aAAa,CAAC"}
@@ -1,14 +1,12 @@
1
1
  import type { Buff } from '../buffs';
2
2
  import type { Characteristic } from '../characteristics';
3
3
  import type { RankId } from '../ranks';
4
- import type { USAGE_MODES } from './constants';
4
+ import type { ENTITY_CATEGORY, ENTITY_TYPES, USAGE_MODES } from './constants';
5
5
  import type { Effect } from './effects';
6
- import type { EquipmentType } from './equipments';
7
6
  import type { ENTITY_IMAGE_IDS } from './generated/imageIds';
8
- import type { ItemType } from './items';
9
- export type EntityCategory = 'item' | 'resource' | 'equipment' | 'enchant';
7
+ export type EntityCategory = (typeof ENTITY_CATEGORY)[number];
10
8
  export type EntityImageId = (typeof ENTITY_IMAGE_IDS)[number];
11
- export type EntityType = ItemType | EquipmentType;
9
+ export type EntityType = (typeof ENTITY_TYPES)[number];
12
10
  export type UsageMode = (typeof USAGE_MODES)[number];
13
11
  export type UsageOptions = {
14
12
  mode?: UsageMode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,M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,GAAG,MAAM,CAAC;QAC9B,KAAK,EAAE,IAAI,EAAE,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACrB,CAAC;IAEF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,eAAe,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AA6DA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AA2DA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const ITEM_TYPE: readonly ["boost", "bottle", "repair", "chest", "scroll", "object", "store", "cookedMeal", "enchant", "alcohol"];
2
+ export declare const ITEM_CATEGORY: readonly ["item", "resource", "enchant"];
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/entities/items/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,kHAWZ,CAAC;AAEX,eAAO,MAAM,aAAa,0CAA2C,CAAC"}
@@ -0,0 +1,14 @@
1
+ export const ITEM_TYPE = [
2
+ 'boost',
3
+ 'bottle',
4
+ 'repair',
5
+ 'chest',
6
+ 'scroll',
7
+ 'object',
8
+ 'store',
9
+ 'cookedMeal',
10
+ 'enchant',
11
+ 'alcohol',
12
+ ];
13
+ export const ITEM_CATEGORY = ['item', 'resource', 'enchant'];
14
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/entities/items/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,SAAS;IACT,SAAS;CACD,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC"}
@@ -1,8 +1,9 @@
1
- import type { Entity, EquipableEquipment, ShopOptions } from '../';
1
+ import { type Entity, type EquipableEquipment, ITEM_CATEGORY, type ShopOptions } from '../';
2
2
  import type { Buff } from '../../buffs';
3
3
  import type { Background, Title } from '../../ornaments';
4
4
  import type { RankId } from '../../ranks';
5
5
  import type { ITEM_IMAGE_IDS } from '../generated/imageIds';
6
+ import type { ITEM_TYPE } from './constants';
6
7
  export type OddsArray = [number, number, number, number, number];
7
8
  export type ChestRewards = {
8
9
  berry: number;
@@ -50,12 +51,14 @@ export type ChestLootTable = {
50
51
  };
51
52
  };
52
53
  export type ItemImageId = (typeof ITEM_IMAGE_IDS)[number];
53
- export type ItemType = 'boost' | 'bottle' | 'repair' | 'chest' | 'scroll' | 'object' | 'store' | 'cookedMeal' | 'enchant' | 'alcohol';
54
+ export type ItemType = (typeof ITEM_TYPE)[number];
55
+ export type ItemCategory = (typeof ITEM_CATEGORY)[number];
54
56
  export interface Item extends Entity {
55
57
  entityId: string;
56
58
  type: ItemType;
57
59
  rankId: RankId;
58
60
  image: ItemImageId;
61
+ category: ItemCategory;
59
62
  }
60
63
  export interface SellableItem extends Item {
61
64
  shop: ShopOptions;
@@ -98,4 +101,5 @@ export interface EnchantItem extends Item {
98
101
  type: 'enchant';
99
102
  category: 'enchant';
100
103
  }
104
+ export * from './constants';
101
105
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/items/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE;QACF,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,UA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;CAChB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI;IAC1C,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI;IACvC,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,cAAc,aAAa,CAAC"}
@@ -1,2 +1,3 @@
1
- export {};
1
+ import { ITEM_CATEGORY, } from '../';
2
+ export * from './constants';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/items/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/items/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,GAEd,MAAM,KAAK,CAAC;AAwHb,cAAc,aAAa,CAAC"}
package/dist/index.es.js CHANGED
@@ -1,7 +1,18 @@
1
1
  import { t as o } from "i18next";
2
2
  import { emojis as s } from "@opfr/emojis";
3
3
  import { formatNumber as a } from "@opfr/utils-lang";
4
- const D = [
4
+ const R = [
5
+ "boost",
6
+ "bottle",
7
+ "repair",
8
+ "chest",
9
+ "scroll",
10
+ "object",
11
+ "store",
12
+ "cookedMeal",
13
+ "enchant",
14
+ "alcohol"
15
+ ], M = ["item", "resource", "enchant"], w = [
5
16
  "ring",
6
17
  "strap",
7
18
  "boots",
@@ -9,7 +20,7 @@ const D = [
9
20
  "collar",
10
21
  "belt",
11
22
  "weapon"
12
- ], L = [
23
+ ], v = [
13
24
  "ring_left",
14
25
  "ring_right",
15
26
  "strap_left",
@@ -19,7 +30,7 @@ const D = [
19
30
  "collar",
20
31
  "belt",
21
32
  "weapon"
22
- ], G = {
33
+ ], S = {
23
34
  collar: "collar",
24
35
  boots: "boots",
25
36
  ring_left: "ring",
@@ -29,7 +40,7 @@ const D = [
29
40
  helmet: "helmet",
30
41
  belt: "belt",
31
42
  weapon: "weapon"
32
- }, H = [
43
+ }, A = ["equipment"], y = [
33
44
  "OPEN_CHEST",
34
45
  "APPLY_BUFF",
35
46
  "ALCOHOL_DRINK",
@@ -45,7 +56,10 @@ const D = [
45
56
  "RAID_REDUCE_COOLDOWN",
46
57
  "CREW_XP_BUFF",
47
58
  "CREW_REPAIR"
48
- ], v = ["single", "multiple", "all"], R = [
59
+ ], k = ["single", "multiple", "all"], x = [...R, ...w], B = [
60
+ ...M,
61
+ ...A
62
+ ], I = [
49
63
  "aeronef",
50
64
  "anchor",
51
65
  "ancient_key",
@@ -170,7 +184,7 @@ const D = [
170
184
  "wine",
171
185
  "wood",
172
186
  "wood_plank"
173
- ], M = [
187
+ ], u = [
174
188
  "adventurer_belt",
175
189
  "adventurer_boots",
176
190
  "adventurer_collar",
@@ -204,10 +218,10 @@ const D = [
204
218
  "revolutionary_boots",
205
219
  "revolutionary_helmet",
206
220
  "revolutionary_ring"
207
- ], y = [
208
- ...R,
209
- ...M
210
- ], S = {
221
+ ], j = [
222
+ ...I,
223
+ ...u
224
+ ], F = {
211
225
  pirate: {
212
226
  name: "pirate",
213
227
  color: "#8A1623",
@@ -228,15 +242,15 @@ const D = [
228
242
  color: "#fff",
229
243
  role: "1147953458507423874"
230
244
  }
231
- }, k = "citizen";
245
+ }, U = "citizen";
232
246
  var e = /* @__PURE__ */ ((r) => (r.BASIC = "BASIC", r.COMMON = "COMMON", r.RARE = "RARE", r.EPIC = "EPIC", r.LEGENDARY = "LEGENDARY", r.MYTHIC = "MYTHIC", r))(e || {});
233
- const x = [
247
+ const V = [
234
248
  e.COMMON,
235
249
  e.RARE,
236
250
  e.EPIC,
237
251
  e.LEGENDARY,
238
252
  e.MYTHIC
239
- ], B = {
253
+ ], z = {
240
254
  BASIC: {
241
255
  color: "#fff",
242
256
  strength: 0,
@@ -293,7 +307,7 @@ const x = [
293
307
  ns: "common"
294
308
  })
295
309
  }
296
- }, j = "background_default", F = [
310
+ }, X = "background_default", $ = [
297
311
  {
298
312
  id: "berry",
299
313
  path: {
@@ -648,7 +662,7 @@ const x = [
648
662
  },
649
663
  progressive: !0
650
664
  }
651
- ], U = [
665
+ ], K = [
652
666
  {
653
667
  id: "black-jack",
654
668
  path: {
@@ -692,7 +706,7 @@ const x = [
692
706
  path: { default: "b_selfish.webp", cropped: "cropped_b_selfish.webp" },
693
707
  progressive: !1
694
708
  }
695
- ], w = {
709
+ ], O = {
696
710
  exploration: {
697
711
  id: "writeChat",
698
712
  img: "exploration",
@@ -1006,29 +1020,29 @@ const x = [
1006
1020
  ],
1007
1021
  crew: !1
1008
1022
  }
1009
- }, V = (r) => !!r.isProgressive, z = [
1023
+ }, W = (r) => !!r.isProgressive, Q = [
1010
1024
  "b_marine",
1011
1025
  "b_revolutionary",
1012
1026
  "b_pirate"
1013
- ], X = (r, p) => r.filter((_) => {
1014
- const [t] = _.split("_"), i = Object.values(w).find((c) => c.id === t);
1027
+ ], q = (r, p) => r.filter((_) => {
1028
+ const [t] = _.split("_"), i = Object.values(O).find((c) => c.id === t);
1015
1029
  return i ? i.crew === p : !1;
1016
- }), $ = (r) => r.filter((p, _, t) => {
1030
+ }), J = (r) => r.filter((p, _, t) => {
1017
1031
  const [i, c] = p.split("_");
1018
1032
  return !t.find((l) => {
1019
1033
  const [C, m] = l.split("_");
1020
1034
  return i !== C ? !1 : c < m;
1021
1035
  });
1022
- }), K = ["idiot", "satan", "edito", "toy"], W = {
1036
+ }), Z = ["idiot", "satan", "edito", "toy"], ee = {
1023
1037
  satan: "satan",
1024
1038
  idiot: "idiot",
1025
1039
  edito: "edito",
1026
1040
  toy: "toy"
1027
- }, Q = ["default", "christmas"], A = (r) => Math.round(5e3 * Math.pow(200, 0.01 * r) / 10) * 10, b = (r) => r >= 1 ? b(r - 1) + A(r) : 0, I = (r, p = 0) => r < b(p + 1) ? p : I(r, p + 1), u = (r) => Math.round(1e5 * Math.pow(50, 0.01 * r) / 10) * 10, n = (r) => r >= 1 ? n(r - 1) + u(r) : 0, O = (r, p = 0) => r < n(p + 1) ? p : O(r, p + 1), J = ([r, p]) => p ? `${o("xp.user", { ns: "common", amount: a(r), emoji: s.xp })} ${o("xp.crew", { amount: a(p), emoji: s.xp, ns: "common" })}` : o("xp.user", {
1041
+ }, re = ["default", "christmas"], h = (r) => Math.round(5e3 * Math.pow(200, 0.01 * r) / 10) * 10, b = (r) => r >= 1 ? b(r - 1) + h(r) : 0, N = (r, p = 0) => r < b(p + 1) ? p : N(r, p + 1), Y = (r) => Math.round(1e5 * Math.pow(50, 0.01 * r) / 10) * 10, n = (r) => r >= 1 ? n(r - 1) + Y(r) : 0, T = (r, p = 0) => r < n(p + 1) ? p : T(r, p + 1), pe = ([r, p]) => p ? `${o("xp.user", { ns: "common", amount: a(r), emoji: s.xp })} ${o("xp.crew", { amount: a(p), emoji: s.xp, ns: "common" })}` : o("xp.user", {
1028
1042
  amount: a(r),
1029
1043
  emoji: s.xp,
1030
1044
  ns: "common"
1031
- }), q = {
1045
+ }), _e = {
1032
1046
  cooldown: {
1033
1047
  casino: [],
1034
1048
  work: []
@@ -1043,7 +1057,7 @@ const x = [
1043
1057
  xp: {
1044
1058
  global: []
1045
1059
  }
1046
- }, Z = (r) => r.expireAt && r.expireAt < /* @__PURE__ */ new Date(), ee = ({
1060
+ }, oe = (r) => r.expireAt && r.expireAt < /* @__PURE__ */ new Date(), te = ({
1047
1061
  multiplier: r,
1048
1062
  origin: p,
1049
1063
  startIn: _,
@@ -1053,35 +1067,35 @@ const x = [
1053
1067
  origin: p,
1054
1068
  expireAt: t ? new Date(Date.now() + ((_ ?? 0) + t) * 60 * 60 * 1e3) : null,
1055
1069
  startAt: _ ? new Date(Date.now() + _ * 60 * 60 * 1e3) : null
1056
- }), re = [
1070
+ }), ie = [
1057
1071
  "vitality",
1058
1072
  "strength",
1059
1073
  "agility",
1060
1074
  "intelligence",
1061
1075
  "chance",
1062
1076
  "wisdom"
1063
- ], h = 10, E = 1, N = [
1077
+ ], P = 10, E = 1, g = [
1064
1078
  [200, 4],
1065
1079
  [100, 3],
1066
1080
  [50, 2],
1067
1081
  [0, E]
1068
- ], pe = 100, _e = 10, d = (r) => {
1069
- for (const [p, _] of N)
1082
+ ], ce = 100, se = 10, d = (r) => {
1083
+ for (const [p, _] of g)
1070
1084
  if (r >= p)
1071
1085
  return _;
1072
1086
  return E;
1073
- }, oe = (r, p) => {
1087
+ }, ae = (r, p) => {
1074
1088
  let _ = 0;
1075
1089
  for (; p > 0; p--)
1076
1090
  _ += d(r), r++;
1077
1091
  return _;
1078
- }, te = (r) => {
1092
+ }, be = (r) => {
1079
1093
  let p = 0;
1080
1094
  for (; r > 0; r -= d(p))
1081
1095
  p++;
1082
1096
  return p;
1083
- }, ie = (r, p) => p * h - Object.values(r).reduce((_, t) => _ + t, 0), ce = ["category", "alpha", "quantity"], se = (r, p) => p === null ? null : r === p ? `-${r}` : p, ae = 10;
1084
- class be {
1097
+ }, ne = (r, p) => p * P - Object.values(r).reduce((_, t) => _ + t, 0), Ee = ["category", "alpha", "quantity"], de = (r, p) => p === null ? null : r === p ? `-${r}` : p, le = 10;
1098
+ class Ce {
1085
1099
  title = void 0;
1086
1100
  titleId;
1087
1101
  badge;
@@ -1093,59 +1107,64 @@ class be {
1093
1107
  crew;
1094
1108
  repeatable;
1095
1109
  }
1096
- var Y = /* @__PURE__ */ ((r) => (r.COMPLETED = "COMPLETED", r.IN_PROGRESS = "IN_PROGRESS", r))(Y || {});
1097
- const ne = 0.1, Ee = 3, de = 100;
1110
+ var f = /* @__PURE__ */ ((r) => (r.COMPLETED = "COMPLETED", r.IN_PROGRESS = "IN_PROGRESS", r))(f || {});
1111
+ const me = 0.1, Re = 3, Me = 100;
1098
1112
  export {
1099
- Q as BAG_IDS,
1100
- w as BadgeList,
1101
- be as BaseQuest,
1102
- re as CHARACTERISTICS,
1113
+ re as BAG_IDS,
1114
+ O as BadgeList,
1115
+ Ce as BaseQuest,
1116
+ ie as CHARACTERISTICS,
1103
1117
  E as CHARACTERISTIC_DEFAULT_POINT_COST,
1104
- N as CHARACTERISTIC_POINT_COSTS,
1105
- h as CHARACTERISTIC_POINT_PER_LEVEL,
1106
- de as CREW_DEFAULT_DISINTEGRATION,
1107
- Ee as CREW_DEFAULT_MEMBER_LIMIT,
1108
- ne as CREW_DEFAULT_XP_PERCENT,
1109
- j as DEFAULT_BACKGROUND_ID,
1110
- q as DEFAULT_BUFF_TREE,
1111
- k as DEFAULT_FACTION,
1112
- pe as DEFAULT_MAX_HP,
1113
- H as EFFECT_KEYS,
1114
- y as ENTITY_IMAGE_IDS,
1115
- G as EQUIPMENT_FROM_SLOT_TO_TYPE,
1116
- M as EQUIPMENT_IMAGE_IDS,
1117
- L as EQUIPMENT_SLOT,
1118
- D as EQUIPMENT_TYPE,
1119
- S as FACTIONS,
1120
- z as FactionBadgeList,
1121
- _e as HP_PER_VITALITY,
1122
- R as ITEM_IMAGE_IDS,
1123
- K as PROFILE_ASSETS_ID,
1124
- F as PROGRESSIVE_BADGES,
1125
- Y as QuestStatus,
1126
- B as RANKS,
1127
- x as RANK_IDS_WITHOUT_BASIC,
1118
+ g as CHARACTERISTIC_POINT_COSTS,
1119
+ P as CHARACTERISTIC_POINT_PER_LEVEL,
1120
+ Me as CREW_DEFAULT_DISINTEGRATION,
1121
+ Re as CREW_DEFAULT_MEMBER_LIMIT,
1122
+ me as CREW_DEFAULT_XP_PERCENT,
1123
+ X as DEFAULT_BACKGROUND_ID,
1124
+ _e as DEFAULT_BUFF_TREE,
1125
+ U as DEFAULT_FACTION,
1126
+ ce as DEFAULT_MAX_HP,
1127
+ y as EFFECT_KEYS,
1128
+ B as ENTITY_CATEGORY,
1129
+ j as ENTITY_IMAGE_IDS,
1130
+ x as ENTITY_TYPES,
1131
+ A as EQUIPMENT_CATEGORY,
1132
+ S as EQUIPMENT_FROM_SLOT_TO_TYPE,
1133
+ u as EQUIPMENT_IMAGE_IDS,
1134
+ v as EQUIPMENT_SLOT,
1135
+ w as EQUIPMENT_TYPE,
1136
+ F as FACTIONS,
1137
+ Q as FactionBadgeList,
1138
+ se as HP_PER_VITALITY,
1139
+ M as ITEM_CATEGORY,
1140
+ I as ITEM_IMAGE_IDS,
1141
+ R as ITEM_TYPE,
1142
+ Z as PROFILE_ASSETS_ID,
1143
+ $ as PROGRESSIVE_BADGES,
1144
+ f as QuestStatus,
1145
+ z as RANKS,
1146
+ V as RANK_IDS_WITHOUT_BASIC,
1128
1147
  e as RankId,
1129
- ae as SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT,
1130
- ce as SORT_VALUES,
1131
- U as STRICT_BADGES,
1132
- v as USAGE_MODES,
1133
- u as crewXpToLevel,
1134
- J as displayXp,
1135
- X as filterCrewBadges,
1136
- $ as filterRarity,
1137
- ie as getAvailableCharacteristicPoints,
1148
+ le as SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT,
1149
+ Ee as SORT_VALUES,
1150
+ K as STRICT_BADGES,
1151
+ k as USAGE_MODES,
1152
+ Y as crewXpToLevel,
1153
+ pe as displayXp,
1154
+ q as filterCrewBadges,
1155
+ J as filterRarity,
1156
+ ne as getAvailableCharacteristicPoints,
1138
1157
  d as getCharacteristicCost,
1139
- oe as getComputedCharacteristicCost,
1140
- te as getComputedCharacteristicValue,
1141
- O as getCurrentCrewLevel,
1142
- I as getCurrentLevel,
1143
- se as getNewSortValue,
1144
- Z as hasBuffExpired,
1145
- W as profileAssets,
1146
- V as progressiveBadgeTypeGuard,
1158
+ ae as getComputedCharacteristicCost,
1159
+ be as getComputedCharacteristicValue,
1160
+ T as getCurrentCrewLevel,
1161
+ N as getCurrentLevel,
1162
+ de as getNewSortValue,
1163
+ oe as hasBuffExpired,
1164
+ ee as profileAssets,
1165
+ W as progressiveBadgeTypeGuard,
1147
1166
  n as totalCrewXpToLevel,
1148
1167
  b as totalXpToLevel,
1149
- ee as transformToDBBuff,
1150
- A as xpToLevel
1168
+ te as transformToDBBuff,
1169
+ h as xpToLevel
1151
1170
  };
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(_,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("i18next"),require("@opfr/emojis"),require("@opfr/utils-lang")):typeof define=="function"&&define.amd?define(["exports","i18next","@opfr/emojis","@opfr/utils-lang"],o):(_=typeof globalThis<"u"?globalThis:_||self,o(_.definitions={},_.i18next,_["@opfr/emojis"],_["@opfr/utils-lang"]))})(this,(function(_,o,c,s){"use strict";const T=["ring","strap","boots","helmet","collar","belt","weapon"],h=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],Y={collar:"collar",boots:"boots",ring_left:"ring",ring_right:"ring",strap_left:"strap",strap_right:"strap",helmet:"helmet",belt:"belt",weapon:"weapon"},P=["OPEN_CHEST","APPLY_BUFF","ALCOHOL_DRINK","HEAL_HP","GAIN_XP","GAIN_RANDOM_XP","BOOST","DRINK_BOTTLE","DROP","CLEAR_HANGOVER","UNLOCK_ASSET","ADD_SCROLL_CHARAC","RAID_REDUCE_COOLDOWN","CREW_XP_BUFF","CREW_REPAIR"],f=["single","multiple","all"],C=["aeronef","anchor","ancient_key","background","beer","boost_day","boost_week","bottle_xp_1","bottle_xp_2","bottle_xp_3","bottle_xp_4","bowl","bowl_cereal","bread","cereal","cheese","chest_1","chest_2","chest_3","chest_4","chest_blacksmith_1","chest_blacksmith_2","chest_blacksmith_3","chest_christmas","christmas_present","clover","compass","cotton","cursed_hawthorn","dragon_heart","ebony_poppy","edelweiss","egg","elemental_concentrate_earth","elemental_concentrate_fire","elemental_concentrate_life","elemental_concentrate_moon","elemental_concentrate_water","elemental_concentrate_wind","emerald","empty_chest","empty_scroll","enchant_cereal","enchant_clover","enchant_cotton","enchant_ebony_poppy","enchant_hemp","enchant_iron","enchant_leather","enchant_manganese","enchant_poppy","enchant_pure_water","enchant_rope","enchant_rose","enchant_sea_salt","enchant_tissue","enchant_wood","enchanted_emerald","enchanted_ruby","enchanted_sapphire","enchanted_stone","essence_earth","essence_fire","essence_life","essence_moon","essence_water","essence_wind","fairy_wing","flour","fruit","glass_bottle","glue","hammock","hemp","iron","iron_ore","leather","little_cookie_christmas","lock","mandrake","manganese","map_fragment","milk","mithril","mugwort","mysterious_egg_christmas","nail","obsidian","omelet","phoenix_feather","poppy","pure_water","repair_kit","rescue_boat","rhum","rope","rose","ruby","rudder","saffron","sailing_boat","salt_water","sapphire","scrap","scroll_agility","scroll_chance","scroll_intelligence","scroll_strength","scroll_vitality","scroll_wisdom","sea_salt","siren_tear","strange_gem","strange_stone","strawberry_cake","sugar","sugar_cane_christmas","tissue","title","tools","toy","wine","wood","wood_plank"],R=["adventurer_belt","adventurer_boots","adventurer_collar","adventurer_helmet","adventurer_strap","adventurer_weapon","christmas_belt","christmas_boots","christmas_collar","christmas_gloves","christmas_helmet","christmas_strap","christmas_weapon","herbalist_belt","herbalist_boots","herbalist_helmet","herbalist_weapon","little_blacksmith_collar","little_blacksmith_ring","little_blacksmith_strap","little_blacksmith_weapon","marine_collar","marine_helmet","marine_ring","marine_strap","pirate_belt","pirate_helmet","pirate_ring","pirate_weapon","revolutionary_belt","revolutionary_boots","revolutionary_helmet","revolutionary_ring"],D=[...C,...R],g={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},L="citizen";var e=(r=>(r.BASIC="BASIC",r.COMMON="COMMON",r.RARE="RARE",r.EPIC="EPIC",r.LEGENDARY="LEGENDARY",r.MYTHIC="MYTHIC",r))(e||{});const G=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],H={BASIC:{color:"#fff",strength:0,id:e.BASIC,name:(r,p=1)=>o.t(`ranks.${e.BASIC}.text`,{count:p,context:r,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(r,p=1)=>o.t(`ranks.${e.COMMON}.text`,{count:p,context:r,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(r,p=1)=>o.t(`ranks.${e.RARE}.text`,{count:p,context:r,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(r,p=1)=>o.t(`ranks.${e.EPIC}.text`,{count:p,context:r,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(r,p=1)=>o.t(`ranks.${e.LEGENDARY}.text`,{count:p,context:r,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(r,p=1)=>o.t(`ranks.${e.MYTHIC}.text`,{count:p,context:r,ns:"common"})}},v="background_default",S=[{id:"berry",path:{cropped:{RARE:"cropped_b_berry_RARE.webp",MYTHIC:"cropped_b_berry_MYTHIC.webp",LEGENDARY:"cropped_b_berry_LEGENDARY.webp",EPIC:"cropped_b_berry_EPIC.webp",COMMON:"cropped_b_berry_COMMON.webp"},default:{RARE:"b_berry_RARE.webp",MYTHIC:"b_berry_MYTHIC.webp",LEGENDARY:"b_berry_LEGENDARY.webp",EPIC:"b_berry_EPIC.webp",COMMON:"b_berry_COMMON.webp"}},progressive:!0},{id:"broship",path:{cropped:{RARE:"cropped_b_broship_RARE.webp",MYTHIC:"cropped_b_broship_MYTHIC.webp",LEGENDARY:"cropped_b_broship_LEGENDARY.webp",EPIC:"cropped_b_broship_EPIC.webp",COMMON:"cropped_b_broship_COMMON.webp"},default:{RARE:"b_broship_RARE.webp",MYTHIC:"b_broship_MYTHIC.webp",LEGENDARY:"b_broship_LEGENDARY.webp",EPIC:"b_broship_EPIC.webp",COMMON:"b_broship_COMMON.webp"}},progressive:!0},{id:"carpenter",path:{cropped:{RARE:"cropped_b_carpenter_RARE.webp",MYTHIC:"cropped_b_carpenter_MYTHIC.webp",LEGENDARY:"cropped_b_carpenter_LEGENDARY.webp",EPIC:"cropped_b_carpenter_EPIC.webp",COMMON:"cropped_b_carpenter_COMMON.webp"},default:{RARE:"b_carpenter_RARE.webp",MYTHIC:"b_carpenter_MYTHIC.webp",LEGENDARY:"b_carpenter_LEGENDARY.webp",EPIC:"b_carpenter_EPIC.webp",COMMON:"b_carpenter_COMMON.webp"}},progressive:!0},{id:"casino",path:{cropped:{MYTHIC:"cropped_b_casino_MYTHIC.webp",LEGENDARY:"cropped_b_casino_LEGENDARY.webp"},default:{MYTHIC:"b_casino_MYTHIC.webp",LEGENDARY:"b_casino_LEGENDARY.webp"}},progressive:!0},{id:"communism",path:{cropped:{RARE:"cropped_b_communism_RARE.webp",MYTHIC:"cropped_b_communism_MYTHIC.webp",LEGENDARY:"cropped_b_communism_LEGENDARY.webp",EPIC:"cropped_b_communism_EPIC.webp",COMMON:"cropped_b_communism_COMMON.webp"},default:{RARE:"b_communism_RARE.webp",MYTHIC:"b_communism_MYTHIC.webp",LEGENDARY:"b_communism_LEGENDARY.webp",EPIC:"b_communism_EPIC.webp",COMMON:"b_communism_COMMON.webp"}},progressive:!0},{id:"craft",path:{cropped:{RARE:"cropped_b_craft_RARE.webp",MYTHIC:"cropped_b_craft_MYTHIC.webp",LEGENDARY:"cropped_b_craft_LEGENDARY.webp",EPIC:"cropped_b_craft_EPIC.webp",COMMON:"cropped_b_craft_COMMON.webp"},default:{RARE:"b_craft_RARE.webp",MYTHIC:"b_craft_MYTHIC.webp",LEGENDARY:"b_craft_LEGENDARY.webp",EPIC:"b_craft_EPIC.webp",COMMON:"b_craft_COMMON.webp"}},progressive:!0},{id:"crewship",path:{cropped:{RARE:"cropped_b_crewship_RARE.webp",MYTHIC:"cropped_b_crewship_MYTHIC.webp",LEGENDARY:"cropped_b_crewship_LEGENDARY.webp",EPIC:"cropped_b_crewship_EPIC.webp",COMMON:"cropped_b_crewship_COMMON.webp"},default:{RARE:"b_crewship_RARE.webp",MYTHIC:"b_crewship_MYTHIC.webp",LEGENDARY:"b_crewship_LEGENDARY.webp",EPIC:"b_crewship_EPIC.webp",COMMON:"b_crewship_COMMON.webp"}},progressive:!0},{id:"default",path:{cropped:{RARE:"cropped_b_default_RARE.webp",MYTHIC:"cropped_b_default_MYTHIC.webp",LEGENDARY:"cropped_b_default_LEGENDARY.webp",EPIC:"cropped_b_default_EPIC.webp",COMMON:"cropped_b_default_COMMON.webp"},default:{RARE:"b_default_RARE.webp",MYTHIC:"b_default_MYTHIC.webp",LEGENDARY:"b_default_LEGENDARY.webp",EPIC:"b_default_EPIC.webp",COMMON:"b_default_COMMON.webp"}},progressive:!0},{id:"ecrire",path:{cropped:{RARE:"cropped_b_ecrire_RARE.webp",MYTHIC:"cropped_b_ecrire_MYTHIC.webp",LEGENDARY:"cropped_b_ecrire_LEGENDARY.webp",EPIC:"cropped_b_ecrire_EPIC.webp",COMMON:"cropped_b_ecrire_COMMON.webp"},default:{RARE:"b_ecrire_RARE.webp",MYTHIC:"b_ecrire_MYTHIC.webp",LEGENDARY:"b_ecrire_LEGENDARY.webp",EPIC:"b_ecrire_EPIC.webp",COMMON:"b_ecrire_COMMON.webp"}},progressive:!0},{id:"ermite",path:{cropped:{RARE:"cropped_b_ermite_RARE.webp",MYTHIC:"cropped_b_ermite_MYTHIC.webp",LEGENDARY:"cropped_b_ermite_LEGENDARY.webp",EPIC:"cropped_b_ermite_EPIC.webp",COMMON:"cropped_b_ermite_COMMON.webp"},default:{RARE:"b_ermite_RARE.webp",MYTHIC:"b_ermite_MYTHIC.webp",LEGENDARY:"b_ermite_LEGENDARY.webp",EPIC:"b_ermite_EPIC.webp",COMMON:"b_ermite_COMMON.webp"}},progressive:!0},{id:"exploration",path:{cropped:{RARE:"cropped_b_exploration_RARE.webp",MYTHIC:"cropped_b_exploration_MYTHIC.webp",LEGENDARY:"cropped_b_exploration_LEGENDARY.webp",EPIC:"cropped_b_exploration_EPIC.webp",COMMON:"cropped_b_exploration_COMMON.webp"},default:{RARE:"b_exploration_RARE.webp",MYTHIC:"b_exploration_MYTHIC.webp",LEGENDARY:"b_exploration_LEGENDARY.webp",EPIC:"b_exploration_EPIC.webp",COMMON:"b_exploration_COMMON.webp"}},progressive:!0},{id:"marine",path:{cropped:{RARE:"cropped_b_marine_RARE.webp",MYTHIC:"cropped_b_marine_MYTHIC.webp",LEGENDARY:"cropped_b_marine_LEGENDARY.webp",EPIC:"cropped_b_marine_EPIC.webp",COMMON:"cropped_b_marine_COMMON.webp"},default:{RARE:"b_marine_RARE.webp",MYTHIC:"b_marine_MYTHIC.webp",LEGENDARY:"b_marine_LEGENDARY.webp",EPIC:"b_marine_EPIC.webp",COMMON:"b_marine_COMMON.webp"}},progressive:!0},{id:"mode",path:{cropped:{RARE:"cropped_b_mode_RARE.webp",MYTHIC:"cropped_b_mode_MYTHIC.webp",LEGENDARY:"cropped_b_mode_LEGENDARY.webp",EPIC:"cropped_b_mode_EPIC.webp",COMMON:"cropped_b_mode_COMMON.webp"},default:{RARE:"b_mode_RARE.webp",MYTHIC:"b_mode_MYTHIC.webp",LEGENDARY:"b_mode_LEGENDARY.webp",EPIC:"b_mode_EPIC.webp",COMMON:"b_mode_COMMON.webp"}},progressive:!0},{id:"pirate",path:{cropped:{RARE:"cropped_b_pirate_RARE.webp",MYTHIC:"cropped_b_pirate_MYTHIC.webp",LEGENDARY:"cropped_b_pirate_LEGENDARY.webp",EPIC:"cropped_b_pirate_EPIC.webp",COMMON:"cropped_b_pirate_COMMON.webp"},default:{RARE:"b_pirate_RARE.webp",MYTHIC:"b_pirate_MYTHIC.webp",LEGENDARY:"b_pirate_LEGENDARY.webp",EPIC:"b_pirate_EPIC.webp",COMMON:"b_pirate_COMMON.webp"}},progressive:!0},{id:"recipe",path:{cropped:{RARE:"cropped_b_recipe_RARE.webp",MYTHIC:"cropped_b_recipe_MYTHIC.webp",LEGENDARY:"cropped_b_recipe_LEGENDARY.webp",EPIC:"cropped_b_recipe_EPIC.webp",COMMON:"cropped_b_recipe_COMMON.webp"},default:{RARE:"b_recipe_RARE.webp",MYTHIC:"b_recipe_MYTHIC.webp",LEGENDARY:"b_recipe_LEGENDARY.webp",EPIC:"b_recipe_EPIC.webp",COMMON:"b_recipe_COMMON.webp"}},progressive:!0},{id:"revolutionary",path:{cropped:{RARE:"cropped_b_revolutionary_RARE.webp",MYTHIC:"cropped_b_revolutionary_MYTHIC.webp",LEGENDARY:"cropped_b_revolutionary_LEGENDARY.webp",EPIC:"cropped_b_revolutionary_EPIC.webp",COMMON:"cropped_b_revolutionary_COMMON.webp"},default:{RARE:"b_revolutionary_RARE.webp",MYTHIC:"b_revolutionary_MYTHIC.webp",LEGENDARY:"b_revolutionary_LEGENDARY.webp",EPIC:"b_revolutionary_EPIC.webp",COMMON:"b_revolutionary_COMMON.webp"}},progressive:!0},{id:"sardine",path:{cropped:{RARE:"cropped_b_sardine_RARE.webp",MYTHIC:"cropped_b_sardine_MYTHIC.webp",LEGENDARY:"cropped_b_sardine_LEGENDARY.webp",EPIC:"cropped_b_sardine_EPIC.webp",COMMON:"cropped_b_sardine_COMMON.webp"},default:{RARE:"b_sardine_RARE.webp",MYTHIC:"b_sardine_MYTHIC.webp",LEGENDARY:"b_sardine_LEGENDARY.webp",EPIC:"b_sardine_EPIC.webp",COMMON:"b_sardine_COMMON.webp"}},progressive:!0},{id:"shipsecte",path:{cropped:{RARE:"cropped_b_shipsecte_RARE.webp",MYTHIC:"cropped_b_shipsecte_MYTHIC.webp",LEGENDARY:"cropped_b_shipsecte_LEGENDARY.webp",EPIC:"cropped_b_shipsecte_EPIC.webp",COMMON:"cropped_b_shipsecte_COMMON.webp"},default:{RARE:"b_shipsecte_RARE.webp",MYTHIC:"b_shipsecte_MYTHIC.webp",LEGENDARY:"b_shipsecte_LEGENDARY.webp",EPIC:"b_shipsecte_EPIC.webp",COMMON:"b_shipsecte_COMMON.webp"}},progressive:!0}],y=[{id:"black-jack",path:{default:"b_black-jack.webp",cropped:"cropped_b_black-jack.webp"},progressive:!1},{id:"calendar",path:{default:"b_calendar.webp",cropped:"cropped_b_calendar.webp"},progressive:!1},{id:"camarade",path:{default:"b_camarade.webp",cropped:"cropped_b_camarade.webp"},progressive:!1},{id:"chance",path:{default:"b_chance.webp",cropped:"cropped_b_chance.webp"},progressive:!1},{id:"doublesix",path:{default:"b_doublesix.webp",cropped:"cropped_b_doublesix.webp"},progressive:!1},{id:"noluck",path:{default:"b_noluck.webp",cropped:"cropped_b_noluck.webp"},progressive:!1},{id:"premium",path:{default:"b_premium.webp",cropped:"cropped_b_premium.webp"},progressive:!1},{id:"selfish",path:{default:"b_selfish.webp",cropped:"cropped_b_selfish.webp"},progressive:!1}],m={exploration:{id:"writeChat",img:"exploration",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[e.LEGENDARY,e.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},k=r=>!!r.isProgressive,B=["b_marine","b_revolutionary","b_pirate"],F=(r,p)=>r.filter(i=>{const[t]=i.split("_"),a=Object.values(m).find(l=>l.id===t);return a?a.crew===p:!1}),U=r=>r.filter((p,i,t)=>{const[a,l]=p.split("_");return!t.find(ce=>{const[se,be]=ce.split("_");return a!==se?!1:l<be})}),j=["idiot","satan","edito","toy"],V={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},X=["default","christmas"],M=r=>Math.round(5e3*Math.pow(200,.01*r)/10)*10,b=r=>r>=1?b(r-1)+M(r):0,A=(r,p=0)=>r<b(p+1)?p:A(r,p+1),w=r=>Math.round(1e5*Math.pow(50,.01*r)/10)*10,E=r=>r>=1?E(r-1)+w(r):0,I=(r,p=0)=>r<E(p+1)?p:I(r,p+1),z=([r,p])=>p?`${o.t("xp.user",{ns:"common",amount:s.formatNumber(r),emoji:c.emojis.xp})} ${o.t("xp.crew",{amount:s.formatNumber(p),emoji:c.emojis.xp,ns:"common"})}`:o.t("xp.user",{amount:s.formatNumber(r),emoji:c.emojis.xp,ns:"common"}),K={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Q=r=>r.expireAt&&r.expireAt<new Date,W=({multiplier:r,origin:p,startIn:i,endIn:t})=>({multiplier:r,origin:p,expireAt:t?new Date(Date.now()+((i??0)+t)*60*60*1e3):null,startAt:i?new Date(Date.now()+i*60*60*1e3):null}),$=["vitality","strength","agility","intelligence","chance","wisdom"],u=10,n=1,O=[[200,4],[100,3],[50,2],[0,n]],q=100,J=10,d=r=>{for(const[p,i]of O)if(r>=p)return i;return n},Z=(r,p)=>{let i=0;for(;p>0;p--)i+=d(r),r++;return i},x=r=>{let p=0;for(;r>0;r-=d(p))p++;return p},ee=(r,p)=>p*u-Object.values(r).reduce((i,t)=>i+t,0),re=["category","alpha","quantity"],_e=(r,p)=>p===null?null:r===p?`-${r}`:p,pe=10;class oe{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var N=(r=>(r.COMPLETED="COMPLETED",r.IN_PROGRESS="IN_PROGRESS",r))(N||{});const ie=.1,te=3,ae=100;_.BAG_IDS=X,_.BadgeList=m,_.BaseQuest=oe,_.CHARACTERISTICS=$,_.CHARACTERISTIC_DEFAULT_POINT_COST=n,_.CHARACTERISTIC_POINT_COSTS=O,_.CHARACTERISTIC_POINT_PER_LEVEL=u,_.CREW_DEFAULT_DISINTEGRATION=ae,_.CREW_DEFAULT_MEMBER_LIMIT=te,_.CREW_DEFAULT_XP_PERCENT=ie,_.DEFAULT_BACKGROUND_ID=v,_.DEFAULT_BUFF_TREE=K,_.DEFAULT_FACTION=L,_.DEFAULT_MAX_HP=q,_.EFFECT_KEYS=P,_.ENTITY_IMAGE_IDS=D,_.EQUIPMENT_FROM_SLOT_TO_TYPE=Y,_.EQUIPMENT_IMAGE_IDS=R,_.EQUIPMENT_SLOT=h,_.EQUIPMENT_TYPE=T,_.FACTIONS=g,_.FactionBadgeList=B,_.HP_PER_VITALITY=J,_.ITEM_IMAGE_IDS=C,_.PROFILE_ASSETS_ID=j,_.PROGRESSIVE_BADGES=S,_.QuestStatus=N,_.RANKS=H,_.RANK_IDS_WITHOUT_BASIC=G,_.RankId=e,_.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=pe,_.SORT_VALUES=re,_.STRICT_BADGES=y,_.USAGE_MODES=f,_.crewXpToLevel=w,_.displayXp=z,_.filterCrewBadges=F,_.filterRarity=U,_.getAvailableCharacteristicPoints=ee,_.getCharacteristicCost=d,_.getComputedCharacteristicCost=Z,_.getComputedCharacteristicValue=x,_.getCurrentCrewLevel=I,_.getCurrentLevel=A,_.getNewSortValue=_e,_.hasBuffExpired=Q,_.profileAssets=V,_.progressiveBadgeTypeGuard=k,_.totalCrewXpToLevel=E,_.totalXpToLevel=b,_.transformToDBBuff=W,_.xpToLevel=M,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(_,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("i18next"),require("@opfr/emojis"),require("@opfr/utils-lang")):typeof define=="function"&&define.amd?define(["exports","i18next","@opfr/emojis","@opfr/utils-lang"],o):(_=typeof globalThis<"u"?globalThis:_||self,o(_.definitions={},_.i18next,_["@opfr/emojis"],_["@opfr/utils-lang"]))})(this,(function(_,o,a,s){"use strict";const C=["boost","bottle","repair","chest","scroll","object","store","cookedMeal","enchant","alcohol"],R=["item","resource","enchant"],m=["ring","strap","boots","helmet","collar","belt","weapon"],f=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],D={collar:"collar",boots:"boots",ring_left:"ring",ring_right:"ring",strap_left:"strap",strap_right:"strap",helmet:"helmet",belt:"belt",weapon:"weapon"},M=["equipment"],g=["OPEN_CHEST","APPLY_BUFF","ALCOHOL_DRINK","HEAL_HP","GAIN_XP","GAIN_RANDOM_XP","BOOST","DRINK_BOTTLE","DROP","CLEAR_HANGOVER","UNLOCK_ASSET","ADD_SCROLL_CHARAC","RAID_REDUCE_COOLDOWN","CREW_XP_BUFF","CREW_REPAIR"],L=["single","multiple","all"],G=[...C,...m],H=[...R,...M],A=["aeronef","anchor","ancient_key","background","beer","boost_day","boost_week","bottle_xp_1","bottle_xp_2","bottle_xp_3","bottle_xp_4","bowl","bowl_cereal","bread","cereal","cheese","chest_1","chest_2","chest_3","chest_4","chest_blacksmith_1","chest_blacksmith_2","chest_blacksmith_3","chest_christmas","christmas_present","clover","compass","cotton","cursed_hawthorn","dragon_heart","ebony_poppy","edelweiss","egg","elemental_concentrate_earth","elemental_concentrate_fire","elemental_concentrate_life","elemental_concentrate_moon","elemental_concentrate_water","elemental_concentrate_wind","emerald","empty_chest","empty_scroll","enchant_cereal","enchant_clover","enchant_cotton","enchant_ebony_poppy","enchant_hemp","enchant_iron","enchant_leather","enchant_manganese","enchant_poppy","enchant_pure_water","enchant_rope","enchant_rose","enchant_sea_salt","enchant_tissue","enchant_wood","enchanted_emerald","enchanted_ruby","enchanted_sapphire","enchanted_stone","essence_earth","essence_fire","essence_life","essence_moon","essence_water","essence_wind","fairy_wing","flour","fruit","glass_bottle","glue","hammock","hemp","iron","iron_ore","leather","little_cookie_christmas","lock","mandrake","manganese","map_fragment","milk","mithril","mugwort","mysterious_egg_christmas","nail","obsidian","omelet","phoenix_feather","poppy","pure_water","repair_kit","rescue_boat","rhum","rope","rose","ruby","rudder","saffron","sailing_boat","salt_water","sapphire","scrap","scroll_agility","scroll_chance","scroll_intelligence","scroll_strength","scroll_vitality","scroll_wisdom","sea_salt","siren_tear","strange_gem","strange_stone","strawberry_cake","sugar","sugar_cane_christmas","tissue","title","tools","toy","wine","wood","wood_plank"],I=["adventurer_belt","adventurer_boots","adventurer_collar","adventurer_helmet","adventurer_strap","adventurer_weapon","christmas_belt","christmas_boots","christmas_collar","christmas_gloves","christmas_helmet","christmas_strap","christmas_weapon","herbalist_belt","herbalist_boots","herbalist_helmet","herbalist_weapon","little_blacksmith_collar","little_blacksmith_ring","little_blacksmith_strap","little_blacksmith_weapon","marine_collar","marine_helmet","marine_ring","marine_strap","pirate_belt","pirate_helmet","pirate_ring","pirate_weapon","revolutionary_belt","revolutionary_boots","revolutionary_helmet","revolutionary_ring"],S=[...A,...I],v={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},y="citizen";var e=(r=>(r.BASIC="BASIC",r.COMMON="COMMON",r.RARE="RARE",r.EPIC="EPIC",r.LEGENDARY="LEGENDARY",r.MYTHIC="MYTHIC",r))(e||{});const k=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],B={BASIC:{color:"#fff",strength:0,id:e.BASIC,name:(r,p=1)=>o.t(`ranks.${e.BASIC}.text`,{count:p,context:r,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(r,p=1)=>o.t(`ranks.${e.COMMON}.text`,{count:p,context:r,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(r,p=1)=>o.t(`ranks.${e.RARE}.text`,{count:p,context:r,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(r,p=1)=>o.t(`ranks.${e.EPIC}.text`,{count:p,context:r,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(r,p=1)=>o.t(`ranks.${e.LEGENDARY}.text`,{count:p,context:r,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(r,p=1)=>o.t(`ranks.${e.MYTHIC}.text`,{count:p,context:r,ns:"common"})}},F="background_default",U=[{id:"berry",path:{cropped:{RARE:"cropped_b_berry_RARE.webp",MYTHIC:"cropped_b_berry_MYTHIC.webp",LEGENDARY:"cropped_b_berry_LEGENDARY.webp",EPIC:"cropped_b_berry_EPIC.webp",COMMON:"cropped_b_berry_COMMON.webp"},default:{RARE:"b_berry_RARE.webp",MYTHIC:"b_berry_MYTHIC.webp",LEGENDARY:"b_berry_LEGENDARY.webp",EPIC:"b_berry_EPIC.webp",COMMON:"b_berry_COMMON.webp"}},progressive:!0},{id:"broship",path:{cropped:{RARE:"cropped_b_broship_RARE.webp",MYTHIC:"cropped_b_broship_MYTHIC.webp",LEGENDARY:"cropped_b_broship_LEGENDARY.webp",EPIC:"cropped_b_broship_EPIC.webp",COMMON:"cropped_b_broship_COMMON.webp"},default:{RARE:"b_broship_RARE.webp",MYTHIC:"b_broship_MYTHIC.webp",LEGENDARY:"b_broship_LEGENDARY.webp",EPIC:"b_broship_EPIC.webp",COMMON:"b_broship_COMMON.webp"}},progressive:!0},{id:"carpenter",path:{cropped:{RARE:"cropped_b_carpenter_RARE.webp",MYTHIC:"cropped_b_carpenter_MYTHIC.webp",LEGENDARY:"cropped_b_carpenter_LEGENDARY.webp",EPIC:"cropped_b_carpenter_EPIC.webp",COMMON:"cropped_b_carpenter_COMMON.webp"},default:{RARE:"b_carpenter_RARE.webp",MYTHIC:"b_carpenter_MYTHIC.webp",LEGENDARY:"b_carpenter_LEGENDARY.webp",EPIC:"b_carpenter_EPIC.webp",COMMON:"b_carpenter_COMMON.webp"}},progressive:!0},{id:"casino",path:{cropped:{MYTHIC:"cropped_b_casino_MYTHIC.webp",LEGENDARY:"cropped_b_casino_LEGENDARY.webp"},default:{MYTHIC:"b_casino_MYTHIC.webp",LEGENDARY:"b_casino_LEGENDARY.webp"}},progressive:!0},{id:"communism",path:{cropped:{RARE:"cropped_b_communism_RARE.webp",MYTHIC:"cropped_b_communism_MYTHIC.webp",LEGENDARY:"cropped_b_communism_LEGENDARY.webp",EPIC:"cropped_b_communism_EPIC.webp",COMMON:"cropped_b_communism_COMMON.webp"},default:{RARE:"b_communism_RARE.webp",MYTHIC:"b_communism_MYTHIC.webp",LEGENDARY:"b_communism_LEGENDARY.webp",EPIC:"b_communism_EPIC.webp",COMMON:"b_communism_COMMON.webp"}},progressive:!0},{id:"craft",path:{cropped:{RARE:"cropped_b_craft_RARE.webp",MYTHIC:"cropped_b_craft_MYTHIC.webp",LEGENDARY:"cropped_b_craft_LEGENDARY.webp",EPIC:"cropped_b_craft_EPIC.webp",COMMON:"cropped_b_craft_COMMON.webp"},default:{RARE:"b_craft_RARE.webp",MYTHIC:"b_craft_MYTHIC.webp",LEGENDARY:"b_craft_LEGENDARY.webp",EPIC:"b_craft_EPIC.webp",COMMON:"b_craft_COMMON.webp"}},progressive:!0},{id:"crewship",path:{cropped:{RARE:"cropped_b_crewship_RARE.webp",MYTHIC:"cropped_b_crewship_MYTHIC.webp",LEGENDARY:"cropped_b_crewship_LEGENDARY.webp",EPIC:"cropped_b_crewship_EPIC.webp",COMMON:"cropped_b_crewship_COMMON.webp"},default:{RARE:"b_crewship_RARE.webp",MYTHIC:"b_crewship_MYTHIC.webp",LEGENDARY:"b_crewship_LEGENDARY.webp",EPIC:"b_crewship_EPIC.webp",COMMON:"b_crewship_COMMON.webp"}},progressive:!0},{id:"default",path:{cropped:{RARE:"cropped_b_default_RARE.webp",MYTHIC:"cropped_b_default_MYTHIC.webp",LEGENDARY:"cropped_b_default_LEGENDARY.webp",EPIC:"cropped_b_default_EPIC.webp",COMMON:"cropped_b_default_COMMON.webp"},default:{RARE:"b_default_RARE.webp",MYTHIC:"b_default_MYTHIC.webp",LEGENDARY:"b_default_LEGENDARY.webp",EPIC:"b_default_EPIC.webp",COMMON:"b_default_COMMON.webp"}},progressive:!0},{id:"ecrire",path:{cropped:{RARE:"cropped_b_ecrire_RARE.webp",MYTHIC:"cropped_b_ecrire_MYTHIC.webp",LEGENDARY:"cropped_b_ecrire_LEGENDARY.webp",EPIC:"cropped_b_ecrire_EPIC.webp",COMMON:"cropped_b_ecrire_COMMON.webp"},default:{RARE:"b_ecrire_RARE.webp",MYTHIC:"b_ecrire_MYTHIC.webp",LEGENDARY:"b_ecrire_LEGENDARY.webp",EPIC:"b_ecrire_EPIC.webp",COMMON:"b_ecrire_COMMON.webp"}},progressive:!0},{id:"ermite",path:{cropped:{RARE:"cropped_b_ermite_RARE.webp",MYTHIC:"cropped_b_ermite_MYTHIC.webp",LEGENDARY:"cropped_b_ermite_LEGENDARY.webp",EPIC:"cropped_b_ermite_EPIC.webp",COMMON:"cropped_b_ermite_COMMON.webp"},default:{RARE:"b_ermite_RARE.webp",MYTHIC:"b_ermite_MYTHIC.webp",LEGENDARY:"b_ermite_LEGENDARY.webp",EPIC:"b_ermite_EPIC.webp",COMMON:"b_ermite_COMMON.webp"}},progressive:!0},{id:"exploration",path:{cropped:{RARE:"cropped_b_exploration_RARE.webp",MYTHIC:"cropped_b_exploration_MYTHIC.webp",LEGENDARY:"cropped_b_exploration_LEGENDARY.webp",EPIC:"cropped_b_exploration_EPIC.webp",COMMON:"cropped_b_exploration_COMMON.webp"},default:{RARE:"b_exploration_RARE.webp",MYTHIC:"b_exploration_MYTHIC.webp",LEGENDARY:"b_exploration_LEGENDARY.webp",EPIC:"b_exploration_EPIC.webp",COMMON:"b_exploration_COMMON.webp"}},progressive:!0},{id:"marine",path:{cropped:{RARE:"cropped_b_marine_RARE.webp",MYTHIC:"cropped_b_marine_MYTHIC.webp",LEGENDARY:"cropped_b_marine_LEGENDARY.webp",EPIC:"cropped_b_marine_EPIC.webp",COMMON:"cropped_b_marine_COMMON.webp"},default:{RARE:"b_marine_RARE.webp",MYTHIC:"b_marine_MYTHIC.webp",LEGENDARY:"b_marine_LEGENDARY.webp",EPIC:"b_marine_EPIC.webp",COMMON:"b_marine_COMMON.webp"}},progressive:!0},{id:"mode",path:{cropped:{RARE:"cropped_b_mode_RARE.webp",MYTHIC:"cropped_b_mode_MYTHIC.webp",LEGENDARY:"cropped_b_mode_LEGENDARY.webp",EPIC:"cropped_b_mode_EPIC.webp",COMMON:"cropped_b_mode_COMMON.webp"},default:{RARE:"b_mode_RARE.webp",MYTHIC:"b_mode_MYTHIC.webp",LEGENDARY:"b_mode_LEGENDARY.webp",EPIC:"b_mode_EPIC.webp",COMMON:"b_mode_COMMON.webp"}},progressive:!0},{id:"pirate",path:{cropped:{RARE:"cropped_b_pirate_RARE.webp",MYTHIC:"cropped_b_pirate_MYTHIC.webp",LEGENDARY:"cropped_b_pirate_LEGENDARY.webp",EPIC:"cropped_b_pirate_EPIC.webp",COMMON:"cropped_b_pirate_COMMON.webp"},default:{RARE:"b_pirate_RARE.webp",MYTHIC:"b_pirate_MYTHIC.webp",LEGENDARY:"b_pirate_LEGENDARY.webp",EPIC:"b_pirate_EPIC.webp",COMMON:"b_pirate_COMMON.webp"}},progressive:!0},{id:"recipe",path:{cropped:{RARE:"cropped_b_recipe_RARE.webp",MYTHIC:"cropped_b_recipe_MYTHIC.webp",LEGENDARY:"cropped_b_recipe_LEGENDARY.webp",EPIC:"cropped_b_recipe_EPIC.webp",COMMON:"cropped_b_recipe_COMMON.webp"},default:{RARE:"b_recipe_RARE.webp",MYTHIC:"b_recipe_MYTHIC.webp",LEGENDARY:"b_recipe_LEGENDARY.webp",EPIC:"b_recipe_EPIC.webp",COMMON:"b_recipe_COMMON.webp"}},progressive:!0},{id:"revolutionary",path:{cropped:{RARE:"cropped_b_revolutionary_RARE.webp",MYTHIC:"cropped_b_revolutionary_MYTHIC.webp",LEGENDARY:"cropped_b_revolutionary_LEGENDARY.webp",EPIC:"cropped_b_revolutionary_EPIC.webp",COMMON:"cropped_b_revolutionary_COMMON.webp"},default:{RARE:"b_revolutionary_RARE.webp",MYTHIC:"b_revolutionary_MYTHIC.webp",LEGENDARY:"b_revolutionary_LEGENDARY.webp",EPIC:"b_revolutionary_EPIC.webp",COMMON:"b_revolutionary_COMMON.webp"}},progressive:!0},{id:"sardine",path:{cropped:{RARE:"cropped_b_sardine_RARE.webp",MYTHIC:"cropped_b_sardine_MYTHIC.webp",LEGENDARY:"cropped_b_sardine_LEGENDARY.webp",EPIC:"cropped_b_sardine_EPIC.webp",COMMON:"cropped_b_sardine_COMMON.webp"},default:{RARE:"b_sardine_RARE.webp",MYTHIC:"b_sardine_MYTHIC.webp",LEGENDARY:"b_sardine_LEGENDARY.webp",EPIC:"b_sardine_EPIC.webp",COMMON:"b_sardine_COMMON.webp"}},progressive:!0},{id:"shipsecte",path:{cropped:{RARE:"cropped_b_shipsecte_RARE.webp",MYTHIC:"cropped_b_shipsecte_MYTHIC.webp",LEGENDARY:"cropped_b_shipsecte_LEGENDARY.webp",EPIC:"cropped_b_shipsecte_EPIC.webp",COMMON:"cropped_b_shipsecte_COMMON.webp"},default:{RARE:"b_shipsecte_RARE.webp",MYTHIC:"b_shipsecte_MYTHIC.webp",LEGENDARY:"b_shipsecte_LEGENDARY.webp",EPIC:"b_shipsecte_EPIC.webp",COMMON:"b_shipsecte_COMMON.webp"}},progressive:!0}],j=[{id:"black-jack",path:{default:"b_black-jack.webp",cropped:"cropped_b_black-jack.webp"},progressive:!1},{id:"calendar",path:{default:"b_calendar.webp",cropped:"cropped_b_calendar.webp"},progressive:!1},{id:"camarade",path:{default:"b_camarade.webp",cropped:"cropped_b_camarade.webp"},progressive:!1},{id:"chance",path:{default:"b_chance.webp",cropped:"cropped_b_chance.webp"},progressive:!1},{id:"doublesix",path:{default:"b_doublesix.webp",cropped:"cropped_b_doublesix.webp"},progressive:!1},{id:"noluck",path:{default:"b_noluck.webp",cropped:"cropped_b_noluck.webp"},progressive:!1},{id:"premium",path:{default:"b_premium.webp",cropped:"cropped_b_premium.webp"},progressive:!1},{id:"selfish",path:{default:"b_selfish.webp",cropped:"cropped_b_selfish.webp"},progressive:!1}],w={exploration:{id:"writeChat",img:"exploration",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[e.LEGENDARY,e.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},V=r=>!!r.isProgressive,X=["b_marine","b_revolutionary","b_pirate"],Q=(r,p)=>r.filter(i=>{const[t]=i.split("_"),c=Object.values(w).find(l=>l.id===t);return c?c.crew===p:!1}),z=r=>r.filter((p,i,t)=>{const[c,l]=p.split("_");return!t.find(de=>{const[le,Ce]=de.split("_");return c!==le?!1:l<Ce})}),K=["idiot","satan","edito","toy"],W={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},$=["default","christmas"],u=r=>Math.round(5e3*Math.pow(200,.01*r)/10)*10,E=r=>r>=1?E(r-1)+u(r):0,T=(r,p=0)=>r<E(p+1)?p:T(r,p+1),O=r=>Math.round(1e5*Math.pow(50,.01*r)/10)*10,b=r=>r>=1?b(r-1)+O(r):0,N=(r,p=0)=>r<b(p+1)?p:N(r,p+1),q=([r,p])=>p?`${o.t("xp.user",{ns:"common",amount:s.formatNumber(r),emoji:a.emojis.xp})} ${o.t("xp.crew",{amount:s.formatNumber(p),emoji:a.emojis.xp,ns:"common"})}`:o.t("xp.user",{amount:s.formatNumber(r),emoji:a.emojis.xp,ns:"common"}),J={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Z=r=>r.expireAt&&r.expireAt<new Date,x=({multiplier:r,origin:p,startIn:i,endIn:t})=>({multiplier:r,origin:p,expireAt:t?new Date(Date.now()+((i??0)+t)*60*60*1e3):null,startAt:i?new Date(Date.now()+i*60*60*1e3):null}),ee=["vitality","strength","agility","intelligence","chance","wisdom"],h=10,n=1,Y=[[200,4],[100,3],[50,2],[0,n]],re=100,_e=10,d=r=>{for(const[p,i]of Y)if(r>=p)return i;return n},pe=(r,p)=>{let i=0;for(;p>0;p--)i+=d(r),r++;return i},oe=r=>{let p=0;for(;r>0;r-=d(p))p++;return p},ie=(r,p)=>p*h-Object.values(r).reduce((i,t)=>i+t,0),te=["category","alpha","quantity"],ce=(r,p)=>p===null?null:r===p?`-${r}`:p,ae=10;class se{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var P=(r=>(r.COMPLETED="COMPLETED",r.IN_PROGRESS="IN_PROGRESS",r))(P||{});const Ee=.1,be=3,ne=100;_.BAG_IDS=$,_.BadgeList=w,_.BaseQuest=se,_.CHARACTERISTICS=ee,_.CHARACTERISTIC_DEFAULT_POINT_COST=n,_.CHARACTERISTIC_POINT_COSTS=Y,_.CHARACTERISTIC_POINT_PER_LEVEL=h,_.CREW_DEFAULT_DISINTEGRATION=ne,_.CREW_DEFAULT_MEMBER_LIMIT=be,_.CREW_DEFAULT_XP_PERCENT=Ee,_.DEFAULT_BACKGROUND_ID=F,_.DEFAULT_BUFF_TREE=J,_.DEFAULT_FACTION=y,_.DEFAULT_MAX_HP=re,_.EFFECT_KEYS=g,_.ENTITY_CATEGORY=H,_.ENTITY_IMAGE_IDS=S,_.ENTITY_TYPES=G,_.EQUIPMENT_CATEGORY=M,_.EQUIPMENT_FROM_SLOT_TO_TYPE=D,_.EQUIPMENT_IMAGE_IDS=I,_.EQUIPMENT_SLOT=f,_.EQUIPMENT_TYPE=m,_.FACTIONS=v,_.FactionBadgeList=X,_.HP_PER_VITALITY=_e,_.ITEM_CATEGORY=R,_.ITEM_IMAGE_IDS=A,_.ITEM_TYPE=C,_.PROFILE_ASSETS_ID=K,_.PROGRESSIVE_BADGES=U,_.QuestStatus=P,_.RANKS=B,_.RANK_IDS_WITHOUT_BASIC=k,_.RankId=e,_.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=ae,_.SORT_VALUES=te,_.STRICT_BADGES=j,_.USAGE_MODES=L,_.crewXpToLevel=O,_.displayXp=q,_.filterCrewBadges=Q,_.filterRarity=z,_.getAvailableCharacteristicPoints=ie,_.getCharacteristicCost=d,_.getComputedCharacteristicCost=pe,_.getComputedCharacteristicValue=oe,_.getCurrentCrewLevel=N,_.getCurrentLevel=T,_.getNewSortValue=ce,_.hasBuffExpired=Z,_.profileAssets=W,_.progressiveBadgeTypeGuard=V,_.totalCrewXpToLevel=b,_.totalXpToLevel=E,_.transformToDBBuff=x,_.xpToLevel=u,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opfr/definitions",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "description": "OPFR definitions",
6
6
  "author": "Matthieu VEIGA",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@opfr/emojis": "^1.0.1",
21
- "@opfr/utils-lang": "^1.0.2",
21
+ "@opfr/utils-lang": "^1.0.3",
22
22
  "i18next": "23.16.8"
23
23
  },
24
24
  "main": "./dist/index.umd.js",
@@ -44,5 +44,5 @@
44
44
  "node_modules",
45
45
  "dist"
46
46
  ],
47
- "gitHead": "5d49d967a17c70a6b770f8693a8fa22c06f16420"
47
+ "gitHead": "9018e130536944bf95cd5e0ccceb85594c739a89"
48
48
  }