@opfr/services 0.15.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,8 +2,7 @@ var cr = Object.defineProperty;
2
2
  var ur = (t, a, s) => a in t ? cr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
3
3
  var e = (t, a, s) => ur(t, typeof a != "symbol" ? a + "" : a, s);
4
4
  import { Schema as S, models as Y, model as F, isValidObjectId as fr, connect as pr, Types as mr } from "mongoose";
5
- import { findItem as gs, isBackgroundItem as hr, isTitleItem as yr, isChestItem as gr, isBoostItem as _r, isRepairItem as wr, isStoreItem as br, isObjectItem as vr, isCookedMeal as Mr, getAllItemsLimit as _s } from "@opfr/items";
6
- import { EQUIPMENT_SLOT as xr, fromDBToEquipableEquipment as kr, AllPanoplies as Sr, isEquipmentId as ws } from "@opfr/equipments";
5
+ import { findItem as gs, isBackgroundItem as hr, isTitleItem as yr, isChestItem as gr, isBoostItem as _r, isRepairItem as wr, isStoreItem as br, isObjectItem as vr, EQUIPMENT_SLOT as Mr, fromDBToEquipableEquipment as xr, AllPanoplies as kr, isEquipmentId as _s, isCookedMeal as Sr, getAllItemsLimit as ws } from "@opfr/items";
7
6
  import { getComputedCharacteristicValue as Ur } from "@opfr/raids";
8
7
  import { RANKS as o, getCurrentLevel as L, CHARACTERISTICS as Dr, HP_PER_VITALITY as Or, DEFAULT_MAX_HP as Cr, DEFAULT_FACTION as Br } from "@opfr/utils-type";
9
8
  import * as $r from "events";
@@ -20,14 +19,14 @@ ta.index({ unbannedTimestamp: 1 });
20
19
  var Ka;
21
20
  const Je = ((Ka = Y) == null ? void 0 : Ka.Bans) || F("Bans", ta), Rr = async () => await Je.find({
22
21
  unbannedTimestamp: { $lte: /* @__PURE__ */ new Date(), $ne: null }
23
- }), lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
+ }), oh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
23
  __proto__: null,
25
24
  getUnbanUsers: Rr
26
- }, Symbol.toStringTag, { value: "Module" })), oh = async (t) => await Je.create({
25
+ }, Symbol.toStringTag, { value: "Module" })), dh = async (t) => await Je.create({
27
26
  ...t
28
- }), dh = async (t) => await Je.findOne({ bannedUserId: t }), ch = async (t) => {
27
+ }), ch = async (t) => await Je.findOne({ bannedUserId: t }), uh = async (t) => {
29
28
  await Je.deleteOne({ bannedUserId: t });
30
- }, uh = (t) => Je.exists({ bannedUserId: t }), Yr = new S({
29
+ }, fh = (t) => Je.exists({ bannedUserId: t }), Yr = new S({
31
30
  betOwner: String,
32
31
  betId: Number,
33
32
  channelId: String,
@@ -50,10 +49,10 @@ const Je = ((Ka = Y) == null ? void 0 : Ka.Bans) || F("Bans", ta), Rr = async ()
50
49
  }
51
50
  });
52
51
  var es;
53
- const bs = ((es = Y) == null ? void 0 : es.Bets) || F("Bets", Yr), fh = async (t, a = {}) => {
52
+ const bs = ((es = Y) == null ? void 0 : es.Bets) || F("Bets", Yr), ph = async (t, a = {}) => {
54
53
  const s = await bs.findById(t, a);
55
54
  return s || null;
56
- }, ph = async (t) => await bs.create({
55
+ }, mh = async (t) => await bs.create({
57
56
  ...t
58
57
  }), ut = (t) => new Intl.NumberFormat("de-DE").format(t), vs = (t, a, s = Math.random) => Math.floor(s() * (a - t) + t), ft = (t, a, s = (n) => n) => t.filter((n) => !a.some((r) => s(r) === s(n))), Ms = (t, a) => [...new Set(t.map((s) => a(s)))], Fr = (t) => t.filter((a) => a != null);
59
58
  //! moment.js
@@ -2719,7 +2718,7 @@ const st = (t, a, s = !0) => (s ? t.getFullYear() === a.getFullYear() : !0) && t
2719
2718
  "userOrnamentsUpdate"
2720
2719
  ], hn = new $r.EventEmitter(), nt = (t, a, s) => {
2721
2720
  hn.emit(t, a, s);
2722
- }, mh = (t) => {
2721
+ }, hh = (t) => {
2723
2722
  for (const a of Ld)
2724
2723
  hn.on(a, (s, n) => {
2725
2724
  t(s, n);
@@ -6240,7 +6239,7 @@ const bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6240
6239
  send100Messages: Df,
6241
6240
  send200000Messages: $f,
6242
6241
  send25000Messages: Cf
6243
- }, Symbol.toStringTag, { value: "Module" })), hh = [
6242
+ }, Symbol.toStringTag, { value: "Module" })), yh = [
6244
6243
  ...Object.values(_n),
6245
6244
  ...Object.values(wn),
6246
6245
  ...Object.values(gn),
@@ -6336,7 +6335,7 @@ const rt = ((ts = Y) == null ? void 0 : ts.Crew) || F("Crew", Sa), Kf = (t, a) =
6336
6335
  ]))[0], ap = async () => rt.aggregate([
6337
6336
  { $sort: { "meta.xp.amount": -1 } },
6338
6337
  { $limit: 10 }
6339
- ]), yh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6338
+ ]), gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6340
6339
  __proto__: null,
6341
6340
  calcXp: Kf,
6342
6341
  getCrewRank: tp,
@@ -6450,7 +6449,7 @@ const rt = ((ts = Y) == null ? void 0 : ts.Crew) || F("Crew", Sa), Kf = (t, a) =
6450
6449
  "quest.meta.maxVoiceMembers": a
6451
6450
  }
6452
6451
  });
6453
- }, gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6452
+ }, _h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6454
6453
  __proto__: null,
6455
6454
  addBerry: np,
6456
6455
  addMember: op,
@@ -6464,10 +6463,10 @@ const rt = ((ts = Y) == null ? void 0 : ts.Crew) || F("Crew", Sa), Kf = (t, a) =
6464
6463
  setActualVoiceMembers: cp,
6465
6464
  setMaxVoiceMembers: up,
6466
6465
  unlockBadge: kn
6467
- }, Symbol.toStringTag, { value: "Module" })), _h = async (t, a = {}) => {
6466
+ }, Symbol.toStringTag, { value: "Module" })), wh = async (t, a = {}) => {
6468
6467
  const s = await rt.findById(t, a);
6469
6468
  return s || null;
6470
- }, wh = async (t, {
6469
+ }, bh = async (t, {
6471
6470
  name: a,
6472
6471
  description: s,
6473
6472
  channelId: n,
@@ -6490,14 +6489,14 @@ const rt = ((ts = Y) == null ? void 0 : ts.Crew) || F("Crew", Sa), Kf = (t, a) =
6490
6489
  });
6491
6490
  Sn.index({ receiverId: 1 });
6492
6491
  var as;
6493
- const Ua = ((as = Y) == null ? void 0 : as.Invitations) || F("Invitations", Sn), bh = async (t) => {
6492
+ const Ua = ((as = Y) == null ? void 0 : as.Invitations) || F("Invitations", Sn), vh = async (t) => {
6494
6493
  const a = await Ua.findOne({
6495
6494
  ...t
6496
6495
  });
6497
6496
  return a || null;
6498
- }, vh = async (t) => await Ua.create({
6497
+ }, Mh = async (t) => await Ua.create({
6499
6498
  ...t
6500
- }), Mh = async (t) => {
6499
+ }), xh = async (t) => {
6501
6500
  await Ua.deleteMany({
6502
6501
  ...t
6503
6502
  });
@@ -6605,7 +6604,7 @@ const Da = ((ss = Y) == null ? void 0 : ss.Settings) || F("Settings", Un), N = a
6605
6604
  await N(t, {
6606
6605
  $push: { "crew.crewChannelIds": { channelId: s, crewId: a } }
6607
6606
  });
6608
- }, xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6607
+ }, kh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6609
6608
  __proto__: null,
6610
6609
  addCrewChannelId: Dp,
6611
6610
  randomizeEditoPrice: gp,
@@ -6625,7 +6624,7 @@ const Da = ((ss = Y) == null ? void 0 : ss.Settings) || F("Settings", Un), N = a
6625
6624
  setSuggestionChannel: fp
6626
6625
  }, Symbol.toStringTag, { value: "Module" })), Op = async (t) => await Da.create({
6627
6626
  guildId: t
6628
- }), kh = async (t, a = {}) => {
6627
+ }), Sh = async (t, a = {}) => {
6629
6628
  const s = await Da.findOne({ guildId: t }, a);
6630
6629
  return s || Op(t);
6631
6630
  };
@@ -6812,7 +6811,7 @@ const Dn = (t, a) => {
6812
6811
  n && a.push(n);
6813
6812
  }
6814
6813
  return a;
6815
- }, Sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6814
+ }, Uh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6816
6815
  __proto__: null,
6817
6816
  getShopItem: Dn,
6818
6817
  getShopItemList: Ip
@@ -6877,7 +6876,7 @@ const Oa = ((ns = Y) == null ? void 0 : ns.Shop) || F("Shop", On), Ep = async (t
6877
6876
  items: [...a]
6878
6877
  }
6879
6878
  });
6880
- }, Uh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6879
+ }, Dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6881
6880
  __proto__: null,
6882
6881
  buyShopItem: Np,
6883
6882
  publish: Pp,
@@ -6885,7 +6884,7 @@ const Oa = ((ns = Y) == null ? void 0 : ns.Shop) || F("Shop", On), Ep = async (t
6885
6884
  updateShopStats: Ap
6886
6885
  }, Symbol.toStringTag, { value: "Module" })), Hp = (t) => Oa.create({
6887
6886
  shopType: t
6888
- }), Dh = async (t, a = {}) => {
6887
+ }), Oh = async (t, a = {}) => {
6889
6888
  const s = await jp({ shopType: t }, a);
6890
6889
  return s || await Hp(t);
6891
6890
  }, jp = (t, a = {}) => Oa.findOne(t, a), Ba = new S({
@@ -6922,15 +6921,15 @@ const it = ((rs = Y) == null ? void 0 : rs.UserCrew) || F("UserCrew", Ba), Qp =
6922
6921
  percent: a
6923
6922
  }
6924
6923
  });
6925
- }, Oh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6924
+ }, Ch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6926
6925
  __proto__: null,
6927
6926
  updatePercent: Gp
6928
- }, Symbol.toStringTag, { value: "Module" })), qp = (t) => it.findOne({ user: t }), Ch = async (t, a, s, n) => await it.create({
6927
+ }, Symbol.toStringTag, { value: "Module" })), qp = (t) => it.findOne({ user: t }), Bh = async (t, a, s, n) => await it.create({
6929
6928
  user: t,
6930
6929
  crew: a,
6931
6930
  percent: n,
6932
6931
  permission: s
6933
- }), Bh = (t) => it.exists({ user: t }), Bn = new S({
6932
+ }), $h = (t) => it.exists({ user: t }), Bn = new S({
6934
6933
  user: {
6935
6934
  type: S.Types.ObjectId,
6936
6935
  required: !0,
@@ -6965,7 +6964,7 @@ const $a = ((is = Y) == null ? void 0 : is.UserDailyReport) || F("UserDailyRepor
6965
6964
  previousMessageSent: a.questMeta.messageSent
6966
6965
  }
6967
6966
  });
6968
- }, $h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6967
+ }, Th = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6969
6968
  __proto__: null,
6970
6969
  updateDailyReport: Vp
6971
6970
  }, Symbol.toStringTag, { value: "Module" })), $n = new S({
@@ -7009,14 +7008,14 @@ const Yt = ((ls = Y) == null ? void 0 : ls.UserGames) || F("UserGames", $n), Ta
7009
7008
  "guess.tries": 1
7010
7009
  }
7011
7010
  });
7012
- }, Th = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7011
+ }, Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7013
7012
  __proto__: null,
7014
7013
  resetGuessGame: Xp,
7015
7014
  setGuessGame: zp,
7016
7015
  updateGuessGame: Zp
7017
7016
  }, Symbol.toStringTag, { value: "Module" })), Tn = async (t) => await Yt.create({
7018
7017
  user: t
7019
- }), Rh = async (t, a) => {
7018
+ }), Yh = async (t, a) => {
7020
7019
  const s = await Yt.findOne({ user: t }, a);
7021
7020
  return s || await Tn(t);
7022
7021
  }, Jp = (t, a) => {
@@ -7035,15 +7034,15 @@ const Yt = ((ls = Y) == null ? void 0 : ls.UserGames) || F("UserGames", $n), Ta
7035
7034
  intelligence: 0,
7036
7035
  wisdom: 0
7037
7036
  };
7038
- for (const s of xr) {
7037
+ for (const s of Mr) {
7039
7038
  const n = t.equippedItems[s];
7040
7039
  n && (a = Jt(
7041
7040
  a,
7042
- kr(n).characteristics,
7041
+ xr(n).characteristics,
7043
7042
  (r, i) => r + i
7044
7043
  ));
7045
7044
  }
7046
- for (const s of Sr) {
7045
+ for (const s of kr) {
7047
7046
  const n = Jp(t, s);
7048
7047
  n && (a = Jt(a, n, (r, i) => r + i));
7049
7048
  }
@@ -7064,13 +7063,14 @@ const Yt = ((ls = Y) == null ? void 0 : ls.UserGames) || F("UserGames", $n), Ta
7064
7063
  }, t0 = (t, a) => Pd(a).reduce(
7065
7064
  (s, [n, r]) => s && (t.itemList.get(n) ?? 0) >= (r ?? 0),
7066
7065
  !0
7067
- ), Yh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7066
+ ), a0 = (t) => Object.fromEntries(t.itemList), Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7068
7067
  __proto__: null,
7068
+ getItemList: a0,
7069
7069
  getUserEquipmentsCharacteristics: Ra,
7070
7070
  hasEnoughItemsForRecipe: e0,
7071
7071
  hasInventoryRequirements: t0,
7072
7072
  maxCraftQuantity: Kp
7073
- }, Symbol.toStringTag, { value: "Module" })), a0 = async (t) => {
7073
+ }, Symbol.toStringTag, { value: "Module" })), s0 = async (t) => {
7074
7074
  var s;
7075
7075
  const a = [];
7076
7076
  for (const n of Object.values(_n)) {
@@ -7083,7 +7083,7 @@ const Yt = ((ls = Y) == null ? void 0 : ls.UserGames) || F("UserGames", $n), Ta
7083
7083
  }
7084
7084
  }
7085
7085
  a.length > 0 && nt("userMetaUpdate", t.user._id, a);
7086
- }, s0 = async (t) => {
7086
+ }, n0 = async (t) => {
7087
7087
  var s;
7088
7088
  const a = [];
7089
7089
  for (const n of Object.values(bn)) {
@@ -7177,7 +7177,7 @@ lt.index({ user: 1 });
7177
7177
  lt.index({ "xp.amount": -1 });
7178
7178
  lt.index({ berry: -1 });
7179
7179
  lt.post("findOneAndUpdate", async function(t) {
7180
- await a0(t);
7180
+ await s0(t);
7181
7181
  });
7182
7182
  var os;
7183
7183
  const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn = async (t) => await Oe.create({
@@ -7190,37 +7190,37 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7190
7190
  a,
7191
7191
  Ur(t.characteristics[a]) + t.scrolls[a]
7192
7192
  ])
7193
- ), n0 = (t) => Date.now() - t.xp.lastMessageWithXp.getTime() > 60 * 1e3, Fa = (t) => {
7193
+ ), r0 = (t) => Date.now() - t.xp.lastMessageWithXp.getTime() > 60 * 1e3, Fa = (t) => {
7194
7194
  const { boost: a } = t.xp;
7195
7195
  return (a !== null && Date.now() < a.getTime() ? 0.2 : 0) + (t.premium ? 0.5 : 0) + t.buffs.xp.global.reduce(
7196
7196
  (s, { expireAt: n, startAt: r, multiplier: i }) => s + ((r ?? /* @__PURE__ */ new Date()) <= /* @__PURE__ */ new Date() && !He(n) ? i : 0),
7197
7197
  0
7198
7198
  );
7199
- }, r0 = (t) => {
7199
+ }, i0 = (t) => {
7200
7200
  const a = t.trim().length, s = 2;
7201
7201
  return a < 10 ? 10 * s : a > 300 ? 300 * s : a * s;
7202
- }, i0 = (t, a, s) => (a *= 1 + Fa(t), Math.ceil(a * s)), l0 = (t, a) => {
7202
+ }, l0 = (t, a, s) => (a *= 1 + Fa(t), Math.ceil(a * s)), o0 = (t, a) => {
7203
7203
  const s = Yn(t);
7204
7204
  return a <= 0 ? a : Math.ceil(a * (s || 1));
7205
- }, o0 = (t) => t.buffs.cooldown.work.reduce(
7205
+ }, d0 = (t) => t.buffs.cooldown.work.reduce(
7206
7206
  (a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && !He(s) ? r : 0),
7207
7207
  1
7208
- ), d0 = (t) => t.buffs.drop.work.reduce(
7208
+ ), c0 = (t) => t.buffs.drop.work.reduce(
7209
7209
  (a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && !He(s) ? r : 0),
7210
7210
  1
7211
- ), c0 = (t) => t.buffs.berry.work.reduce(
7211
+ ), u0 = (t) => t.buffs.berry.work.reduce(
7212
7212
  (a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && !He(s) ? r : 0),
7213
7213
  1
7214
7214
  ), Yn = (t) => t.buffs.berry.global.reduce(
7215
7215
  (a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && !He(s) ? r : 0),
7216
7216
  1
7217
- ), u0 = (t) => t.buffs.cooldown.casino.reduce(
7217
+ ), f0 = (t) => t.buffs.cooldown.casino.reduce(
7218
7218
  (a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && !He(s) ? r : 0),
7219
7219
  1
7220
7220
  ), ve = async (t, a, s) => {
7221
7221
  const n = a ?? await Ft(t, { buffs: -1, xp: -1 }), r = s ?? await Ea(t, { itemList: -1, equipmentList: -1 });
7222
7222
  return ((Ya(n).vitality ?? 0) + Ra(r).vitality) * Or + Cr;
7223
- }, f0 = async (t, a, s, n) => {
7223
+ }, p0 = async (t, a, s, n) => {
7224
7224
  const r = s ?? await Ft(t, { buffs: -1, xp: -1 }), i = n ?? await Ea(t, { itemList: -1, equipmentList: -1 }), l = Jt(
7225
7225
  Ya(r),
7226
7226
  Ra(i),
@@ -7230,7 +7230,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7230
7230
  if (l[c] < (a[c] ?? 0))
7231
7231
  return !1;
7232
7232
  return !0;
7233
- }, p0 = async (t) => (await Oe.aggregate([
7233
+ }, m0 = async (t) => (await Oe.aggregate([
7234
7234
  {
7235
7235
  $setWindowFields: {
7236
7236
  sortBy: { "xp.amount": -1 },
@@ -7241,7 +7241,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7241
7241
  },
7242
7242
  { $match: { _id: t } },
7243
7243
  { $project: { rank: 1 } }
7244
- ]))[0], m0 = async (t) => (await Oe.aggregate([
7244
+ ]))[0], h0 = async (t) => (await Oe.aggregate([
7245
7245
  {
7246
7246
  $setWindowFields: {
7247
7247
  sortBy: { berry: -1 },
@@ -7252,7 +7252,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7252
7252
  },
7253
7253
  { $match: { _id: t } },
7254
7254
  { $project: { rank: 1 } }
7255
- ]))[0], h0 = (t) => {
7255
+ ]))[0], y0 = (t) => {
7256
7256
  const a = [
7257
7257
  ...t.buffs.xp.global,
7258
7258
  ...t.buffs.berry.global,
@@ -7265,25 +7265,25 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7265
7265
  if (s < 0 && /* @__PURE__ */ new Date() < r && (n ?? /* @__PURE__ */ new Date()) <= /* @__PURE__ */ new Date())
7266
7266
  return !0;
7267
7267
  return !1;
7268
- }, Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7268
+ }, Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7269
7269
  __proto__: null,
7270
- calcBerry: l0,
7270
+ calcBerry: o0,
7271
7271
  calcBerryGlobalBuff: Yn,
7272
- calcBerryWorkBuff: c0,
7273
- calcCooldownCasinoBuff: u0,
7274
- calcCooldownWorkBuff: o0,
7275
- calcDropWorkBuff: d0,
7276
- calcMessageXp: r0,
7277
- calcXp: i0,
7272
+ calcBerryWorkBuff: u0,
7273
+ calcCooldownCasinoBuff: f0,
7274
+ calcCooldownWorkBuff: d0,
7275
+ calcDropWorkBuff: c0,
7276
+ calcMessageXp: i0,
7277
+ calcXp: l0,
7278
7278
  calcXpBoost: Fa,
7279
- getBerryRank: m0,
7280
- getGlobalRank: p0,
7279
+ getBerryRank: h0,
7280
+ getGlobalRank: m0,
7281
7281
  getMaxHp: ve,
7282
7282
  getTotalCharacteristics: Ya,
7283
- hasCharacteristicRequirement: f0,
7284
- hasMalusBuff: h0,
7285
- isCooldownForXpPassed: n0
7286
- }, Symbol.toStringTag, { value: "Module" })), y0 = (t, a) => Oe.findOneAndUpdate({ user: t }, a, {
7283
+ hasCharacteristicRequirement: p0,
7284
+ hasMalusBuff: y0,
7285
+ isCooldownForXpPassed: r0
7286
+ }, Symbol.toStringTag, { value: "Module" })), g0 = (t, a) => Oe.findOneAndUpdate({ user: t }, a, {
7287
7287
  returnDocument: "after",
7288
7288
  upsert: !0
7289
7289
  }), P = async (t, a) => {
@@ -7291,11 +7291,11 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7291
7291
  returnDocument: "after",
7292
7292
  upsert: !0
7293
7293
  });
7294
- }, g0 = async (t) => {
7294
+ }, _0 = async (t) => {
7295
7295
  await P(t, {
7296
7296
  $set: { "xp.lastMessageWithXp": /* @__PURE__ */ new Date() }
7297
7297
  });
7298
- }, _0 = async (t, a) => {
7298
+ }, w0 = async (t, a) => {
7299
7299
  await P(t, { $inc: { "xp.amount": a } });
7300
7300
  }, Fn = async (t, a) => {
7301
7301
  await P(t, [
@@ -7307,12 +7307,12 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7307
7307
  }
7308
7308
  }
7309
7309
  ]);
7310
- }, w0 = async (t, a) => {
7311
- await P(t, { $set: { premium: a } });
7312
7310
  }, b0 = async (t, a) => {
7311
+ await P(t, { $set: { premium: a } });
7312
+ }, v0 = async (t, a) => {
7313
7313
  const {
7314
7314
  xp: { boost: s }
7315
- } = await y0(t, [
7315
+ } = await g0(t, [
7316
7316
  {
7317
7317
  $set: {
7318
7318
  "xp.boost": {
@@ -7328,7 +7328,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7328
7328
  }
7329
7329
  ]);
7330
7330
  return s;
7331
- }, v0 = async (t, a, s, n, r, i) => {
7331
+ }, M0 = async (t, a, s, n, r, i) => {
7332
7332
  await P(t, [
7333
7333
  {
7334
7334
  $set: {
@@ -7422,7 +7422,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7422
7422
  }
7423
7423
  }
7424
7424
  ]);
7425
- }, M0 = async (t, a, {
7425
+ }, x0 = async (t, a, {
7426
7426
  userMeta: s,
7427
7427
  userInventory: n
7428
7428
  }) => {
@@ -7430,7 +7430,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7430
7430
  await P(t, {
7431
7431
  $set: { hp: r.hp + Math.floor(Math.min(a, c)) }
7432
7432
  });
7433
- }, x0 = async (t, a) => {
7433
+ }, k0 = async (t, a) => {
7434
7434
  await P(t, [
7435
7435
  {
7436
7436
  $set: { hp: { $max: [{ $add: ["$hp", -a] }, 0] } }
@@ -7452,21 +7452,21 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7452
7452
  }
7453
7453
  }
7454
7454
  ]);
7455
- }, k0 = async (t, a) => {
7455
+ }, S0 = async (t, a) => {
7456
7456
  const s = await ve(t), n = Object.fromEntries(
7457
7457
  Object.entries(a).filter(([, r]) => r !== 0).map(([r, i]) => [`characteristics.${r}`, i])
7458
7458
  );
7459
7459
  await P(t, {
7460
7460
  $inc: n
7461
7461
  }), je(t, s);
7462
- }, S0 = async (t, a) => {
7462
+ }, U0 = async (t, a) => {
7463
7463
  const s = await ve(t), n = Object.fromEntries(
7464
7464
  Object.entries(a).filter(([, r]) => r !== 0).map(([r, i]) => [`scrolls.${r}`, i])
7465
7465
  );
7466
7466
  await P(t, {
7467
7467
  $inc: n
7468
7468
  }), je(t, s);
7469
- }, U0 = async (t, a, s) => {
7469
+ }, D0 = async (t, a, s) => {
7470
7470
  const n = await ve(t, s), r = {
7471
7471
  vitality: 0,
7472
7472
  strength: 0,
@@ -7491,34 +7491,34 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7491
7491
  berry: -1e8
7492
7492
  }
7493
7493
  }), je(t, n);
7494
- }, D0 = async (t) => {
7494
+ }, O0 = async (t) => {
7495
7495
  await P(t, { $set: { "xp.voice.minutesInVoiceToday": 0 } });
7496
- }, O0 = async (t, a) => {
7496
+ }, C0 = async (t, a) => {
7497
7497
  await P(t, {
7498
7498
  $inc: { "xp.voice.minutesInVoiceToday": a }
7499
7499
  });
7500
- }, C0 = async (t, a) => {
7500
+ }, B0 = async (t, a) => {
7501
7501
  await P(t, {
7502
7502
  $set: { "xp.voice.lastConnection": a }
7503
7503
  });
7504
- }, Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7504
+ }, Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7505
7505
  __proto__: null,
7506
7506
  addBerry: Fn,
7507
- addCharacteristics: k0,
7508
- addMinutesInVoiceToday: O0,
7509
- addScrollCharacteristic: S0,
7510
- addXp: _0,
7511
- gainHp: M0,
7512
- loseHp: x0,
7513
- resetCharacteristics: U0,
7514
- resetMinutesInVoiceToday: D0,
7515
- updateBoost: b0,
7516
- updateBuff: v0,
7507
+ addCharacteristics: S0,
7508
+ addMinutesInVoiceToday: C0,
7509
+ addScrollCharacteristic: U0,
7510
+ addXp: w0,
7511
+ gainHp: x0,
7512
+ loseHp: k0,
7513
+ resetCharacteristics: D0,
7514
+ resetMinutesInVoiceToday: O0,
7515
+ updateBoost: v0,
7516
+ updateBuff: M0,
7517
7517
  updateHp: je,
7518
- updateLastMessageTime: g0,
7519
- updateLastVoiceConnection: C0,
7520
- updatePremium: w0
7521
- }, Symbol.toStringTag, { value: "Module" })), B0 = async (t) => {
7518
+ updateLastMessageTime: _0,
7519
+ updateLastVoiceConnection: B0,
7520
+ updatePremium: b0
7521
+ }, Symbol.toStringTag, { value: "Module" })), $0 = async (t) => {
7522
7522
  var s;
7523
7523
  const a = [];
7524
7524
  for (const n of Object.values(gn)) {
@@ -7549,7 +7549,7 @@ const Oe = ((os = Y) == null ? void 0 : os.UserMeta) || F("UserMeta", lt), Rn =
7549
7549
  );
7550
7550
  Ia.index({ user: 1 });
7551
7551
  Ia.post("findOneAndUpdate", async function(t) {
7552
- await B0(t);
7552
+ await $0(t);
7553
7553
  });
7554
7554
  var ds;
7555
7555
  const It = ((ds = Y) == null ? void 0 : ds.UserInventory) || F("UserInventory", Ia), Me = async (t, a) => {
@@ -7558,7 +7558,7 @@ const It = ((ds = Y) == null ? void 0 : ds.UserInventory) || F("UserInventory",
7558
7558
  });
7559
7559
  }, Ce = async (t, a, s) => {
7560
7560
  await Me(t, { $inc: { [`itemList.${a}`]: s } });
7561
- }, $0 = async (t, a) => {
7561
+ }, T0 = async (t, a) => {
7562
7562
  await Me(t, {
7563
7563
  $inc: Object.fromEntries(
7564
7564
  Object.entries(a).filter(([, s]) => s > 0).map(([s, n]) => [`itemList.${s}`, n])
@@ -7574,48 +7574,48 @@ const It = ((ds = Y) == null ? void 0 : ds.UserInventory) || F("UserInventory",
7574
7574
  }
7575
7575
  }
7576
7576
  ]);
7577
- }, T0 = async (t, a) => {
7577
+ }, R0 = async (t, a) => {
7578
7578
  await Me(t, { $set: { [`itemList.${a}`]: 0 } });
7579
7579
  }, En = async (t, a) => {
7580
7580
  await Me(t, { $push: { equipmentList: { $each: a } } });
7581
- }, R0 = async (t, a, s) => {
7581
+ }, Y0 = async (t, a, s) => {
7582
7582
  const n = await ve(t);
7583
7583
  await Me(t, {
7584
7584
  $set: {
7585
7585
  [`equippedItems.${a}`]: s
7586
7586
  }
7587
7587
  }), await je(t, n);
7588
- }, Y0 = async (t, a) => {
7588
+ }, F0 = async (t, a) => {
7589
7589
  const s = await ve(t);
7590
7590
  await Me(t, {
7591
7591
  $set: {
7592
7592
  [`equippedItems.${a}`]: null
7593
7593
  }
7594
7594
  }), await je(t, s);
7595
- }, F0 = async (t, a, s, n, r) => {
7595
+ }, I0 = async (t, a, s, n, r) => {
7596
7596
  for (const { itemId: c, size: h } of a)
7597
7597
  await In(t, c, h * n);
7598
7598
  const { itemId: i, size: l } = s;
7599
- ws(i) ? await En(t, [{ id: i, seed: r }]) : await Ce(t, i, l * n);
7600
- }, I0 = async (t, a) => {
7599
+ _s(i) ? await En(t, [{ id: i, seed: r }]) : await Ce(t, i, l * n);
7600
+ }, E0 = async (t, a) => {
7601
7601
  await Me(t, { $addToSet: { recipes: a } });
7602
- }, Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7602
+ }, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7603
7603
  __proto__: null,
7604
7604
  addEquipments: En,
7605
7605
  addInventoryItem: Ce,
7606
- addInventoryItems: $0,
7607
- craftItem: F0,
7608
- equip: R0,
7609
- removeAllItemInventory: T0,
7606
+ addInventoryItems: T0,
7607
+ craftItem: I0,
7608
+ equip: Y0,
7609
+ removeAllItemInventory: R0,
7610
7610
  removeInventoryItem: In,
7611
- unequip: Y0,
7612
- unlockRecipe: I0
7611
+ unequip: F0,
7612
+ unlockRecipe: E0
7613
7613
  }, Symbol.toStringTag, { value: "Module" })), An = async (t) => await It.create({
7614
7614
  user: t
7615
7615
  }), Ea = async (t, a = {}) => {
7616
7616
  const s = await It.findOne({ user: t }, a);
7617
7617
  return s || await An(t);
7618
- }, E0 = async (t) => {
7618
+ }, A0 = async (t) => {
7619
7619
  var s;
7620
7620
  const a = [];
7621
7621
  for (const n of Object.values(wn)) {
@@ -7643,28 +7643,28 @@ const It = ((ds = Y) == null ? void 0 : ds.UserInventory) || F("UserInventory",
7643
7643
  });
7644
7644
  Aa.index({ user: 1 });
7645
7645
  Aa.post("findOneAndUpdate", async function(t) {
7646
- await E0(t);
7646
+ await A0(t);
7647
7647
  });
7648
7648
  var cs;
7649
7649
  const Et = ((cs = Y) == null ? void 0 : cs.UserOrnaments) || F("UserOrnaments", Aa), se = async (t, a) => {
7650
7650
  await Et.updateOne({ user: t }, a, { upsert: !0 });
7651
7651
  }, Na = async (t, a) => {
7652
7652
  await se(t, { $addToSet: { unlockedTitles: a } });
7653
- }, A0 = async (t, a) => {
7653
+ }, N0 = async (t, a) => {
7654
7654
  await se(t, {
7655
7655
  $addToSet: { unlockedTitles: { $each: a } }
7656
7656
  });
7657
- }, N0 = async (t, a) => {
7657
+ }, P0 = async (t, a) => {
7658
7658
  await se(t, { $set: { selectedTitle: a } });
7659
7659
  }, Nn = async (t, a) => {
7660
7660
  await se(t, {
7661
7661
  $addToSet: { unlockedBackgrounds: a }
7662
7662
  });
7663
- }, P0 = async (t, a) => {
7663
+ }, L0 = async (t, a) => {
7664
7664
  await se(t, {
7665
7665
  $addToSet: { unlockedBackgrounds: { $each: a } }
7666
7666
  });
7667
- }, L0 = async (t, a) => {
7667
+ }, H0 = async (t, a) => {
7668
7668
  await se(t, {
7669
7669
  $set: { selectedBackground: a }
7670
7670
  });
@@ -7690,20 +7690,20 @@ const Et = ((cs = Y) == null ? void 0 : cs.UserOrnaments) || F("UserOrnaments",
7690
7690
  await se(t, {
7691
7691
  $addToSet: { unlockedProfileAssets: a }
7692
7692
  });
7693
- }, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7693
+ }, Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7694
7694
  __proto__: null,
7695
- selectBackground: L0,
7696
- selectTitle: N0,
7695
+ selectBackground: H0,
7696
+ selectTitle: P0,
7697
7697
  unlockBackground: Nn,
7698
- unlockBackgrounds: P0,
7698
+ unlockBackgrounds: L0,
7699
7699
  unlockBadge: Pn,
7700
7700
  unlockFactionBadge: Ln,
7701
7701
  unlockProfileAsset: Hn,
7702
7702
  unlockTitle: Na,
7703
- unlockTitles: A0
7703
+ unlockTitles: N0
7704
7704
  }, Symbol.toStringTag, { value: "Module" })), jn = async (t) => await Et.create({
7705
7705
  user: t
7706
- }), Nh = async (t, a) => {
7706
+ }), Ph = async (t, a) => {
7707
7707
  const s = await Et.findOne({ user: t }, a);
7708
7708
  return s || await jn(t);
7709
7709
  }, Qn = (t, a) => t.completed.includes(a), Gn = (t, a) => {
@@ -7717,7 +7717,7 @@ const Et = ((cs = Y) == null ? void 0 : cs.UserOrnaments) || F("UserOrnaments",
7717
7717
  return Tr.find(
7718
7718
  (n) => n.strength === s && n.faction === a
7719
7719
  );
7720
- }, Ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7720
+ }, Lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7721
7721
  __proto__: null,
7722
7722
  getFactionTitle: Wn,
7723
7723
  getFactionTitleStrength: qn,
@@ -7757,7 +7757,7 @@ const At = ((us = Y) == null ? void 0 : us.UserQuest) || F("UserQuest", Vn), Ze
7757
7757
  }) : await Ze(t, {
7758
7758
  $set: { lastFullComplete: /* @__PURE__ */ new Date(), streak: 1 }
7759
7759
  });
7760
- }, Lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7760
+ }, Hh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7761
7761
  __proto__: null,
7762
7762
  completeDailyQuest: Xn,
7763
7763
  completeQuest: zn,
@@ -7838,7 +7838,7 @@ const At = ((us = Y) == null ? void 0 : us.UserQuest) || F("UserQuest", Vn), Ze
7838
7838
  });
7839
7839
  Ha.index({ user: 1 });
7840
7840
  Ha.post("findOneAndUpdate", async function(t) {
7841
- await s0(t);
7841
+ await n0(t);
7842
7842
  });
7843
7843
  var fs;
7844
7844
  const Ue = ((fs = Y) == null ? void 0 : fs.UserQuestMeta) || F("UserQuestMeta", Ha), k = async (t, a) => {
@@ -7846,15 +7846,15 @@ const Ue = ((fs = Y) == null ? void 0 : fs.UserQuestMeta) || F("UserQuestMeta",
7846
7846
  upsert: !0,
7847
7847
  returnDocument: "after"
7848
7848
  });
7849
- }, H0 = async (t) => {
7850
- await k(t, { $inc: { work: 1 } });
7851
7849
  }, j0 = async (t) => {
7852
- await k(t, { $set: { hadMoreThanZeroBerry: !0 } });
7850
+ await k(t, { $inc: { work: 1 } });
7853
7851
  }, Q0 = async (t) => {
7854
- await k(t, { $set: { sevenQuitteOuDouble: !0 } });
7852
+ await k(t, { $set: { hadMoreThanZeroBerry: !0 } });
7855
7853
  }, G0 = async (t) => {
7854
+ await k(t, { $set: { sevenQuitteOuDouble: !0 } });
7855
+ }, q0 = async (t) => {
7856
7856
  await k(t, { $inc: { black_jack: 1 } });
7857
- }, q0 = async (t, a, s) => {
7857
+ }, W0 = async (t, a, s) => {
7858
7858
  await k(t, {
7859
7859
  $push: {
7860
7860
  lastGames: {
@@ -7864,9 +7864,9 @@ const Ue = ((fs = Y) == null ? void 0 : fs.UserQuestMeta) || F("UserQuestMeta",
7864
7864
  }
7865
7865
  }
7866
7866
  });
7867
- }, W0 = async (t) => {
7868
- await k(t, { $inc: { draw: 1 } });
7869
7867
  }, V0 = async (t) => {
7868
+ await k(t, { $inc: { draw: 1 } });
7869
+ }, z0 = async (t) => {
7870
7870
  const a = /* @__PURE__ */ new Date();
7871
7871
  a.setDate(a.getDate() - 1), a.setHours(0, 0, 0, 0);
7872
7872
  const s = /* @__PURE__ */ new Date();
@@ -7890,9 +7890,9 @@ const Ue = ((fs = Y) == null ? void 0 : fs.UserQuestMeta) || F("UserQuestMeta",
7890
7890
  $set: { "bet666.last": /* @__PURE__ */ new Date(), "bet666.amount": 1 }
7891
7891
  }
7892
7892
  );
7893
- }, z0 = async (t, a) => {
7894
- await k(t, { $inc: { totalBet: a } });
7895
7893
  }, X0 = async (t, a) => {
7894
+ await k(t, { $inc: { totalBet: a } });
7895
+ }, Z0 = async (t, a) => {
7896
7896
  await k(t, [
7897
7897
  {
7898
7898
  $set: {
@@ -7913,51 +7913,51 @@ const Ue = ((fs = Y) == null ? void 0 : fs.UserQuestMeta) || F("UserQuestMeta",
7913
7913
  totalSpentInShop: a
7914
7914
  }
7915
7915
  });
7916
- }, Z0 = async (t, a, s) => {
7917
- !ws(s) && Mr(gs(s)) && await k(t, {
7916
+ }, J0 = async (t, a, s) => {
7917
+ !_s(s) && Sr(gs(s)) && await k(t, {
7918
7918
  $inc: { "crafts.cookedMeal": a }
7919
7919
  }), await k(t, {
7920
7920
  $inc: { "crafts.total": a }
7921
7921
  });
7922
- }, J0 = async (t) => {
7923
- await k(t, { $set: { reportedSomeone: !0 } });
7924
7922
  }, K0 = async (t) => {
7925
- await k(t, { $inc: { randomMessage: 1 } });
7923
+ await k(t, { $set: { reportedSomeone: !0 } });
7926
7924
  }, em = async (t) => {
7927
- await k(t, { $inc: { botPing: 1 } });
7925
+ await k(t, { $inc: { randomMessage: 1 } });
7928
7926
  }, tm = async (t) => {
7929
- await k(t, { $inc: { guessInOne: 1 } });
7927
+ await k(t, { $inc: { botPing: 1 } });
7930
7928
  }, am = async (t) => {
7931
- await k(t, { $set: { hasCelebrateBirthday: !0 } });
7929
+ await k(t, { $inc: { guessInOne: 1 } });
7932
7930
  }, sm = async (t) => {
7933
- await k(t, { $inc: { double_six: 1 } });
7931
+ await k(t, { $set: { hasCelebrateBirthday: !0 } });
7934
7932
  }, nm = async (t) => {
7933
+ await k(t, { $inc: { double_six: 1 } });
7934
+ }, rm = async (t) => {
7935
7935
  await k(t, { $inc: { drawDoubleSix: 1 } });
7936
- }, rm = async (t, a) => {
7937
- a ? await k(t, { $set: { timeAt10Percent: 0 } }) : await k(t, { $inc: { timeAt10Percent: 1 } });
7938
7936
  }, im = async (t, a) => {
7937
+ a ? await k(t, { $set: { timeAt10Percent: 0 } }) : await k(t, { $inc: { timeAt10Percent: 1 } });
7938
+ }, lm = async (t, a) => {
7939
7939
  a ? await k(t, { $set: { timeAt90Percent: 0 } }) : await k(t, { $inc: { timeAt90Percent: 1 } });
7940
- }, lm = async (t) => {
7941
- await k(t, { $set: { tagEveryone: !0 } });
7942
7940
  }, om = async (t) => {
7943
- await k(t, { $set: { betMin: !0 } });
7941
+ await k(t, { $set: { tagEveryone: !0 } });
7944
7942
  }, dm = async (t) => {
7945
- await k(t, { $set: { loseEverything: !0 } });
7943
+ await k(t, { $set: { betMin: !0 } });
7946
7944
  }, cm = async (t) => {
7947
- await k(t, { $set: { bet10M: !0 } });
7945
+ await k(t, { $set: { loseEverything: !0 } });
7948
7946
  }, um = async (t) => {
7949
- await k(t, { $set: { winBet10M: !0 } });
7947
+ await k(t, { $set: { bet10M: !0 } });
7950
7948
  }, fm = async (t) => {
7949
+ await k(t, { $set: { winBet10M: !0 } });
7950
+ }, pm = async (t) => {
7951
7951
  await k(t, { $set: { lose10M: !0 } });
7952
- }, pm = async (t, a) => {
7952
+ }, mm = async (t, a) => {
7953
7953
  await k(t, {
7954
7954
  $addToSet: { writeDifferentChat: a }
7955
7955
  });
7956
- }, mm = async (t) => {
7956
+ }, hm = async (t) => {
7957
7957
  await k(t, {
7958
7958
  $inc: { messageSent: 1 }
7959
7959
  });
7960
- }, hm = async (t) => {
7960
+ }, ym = async (t) => {
7961
7961
  const a = /* @__PURE__ */ new Date();
7962
7962
  a.setDate(a.getDate() - 1), a.setHours(0, 0, 0, 0);
7963
7963
  const s = /* @__PURE__ */ new Date();
@@ -7984,47 +7984,47 @@ const Ue = ((fs = Y) == null ? void 0 : fs.UserQuestMeta) || F("UserQuestMeta",
7984
7984
  $set: { "edito.lastTimeRead": /* @__PURE__ */ new Date(), "edito.readToday": 1 }
7985
7985
  }
7986
7986
  );
7987
- }, ym = async (t, a) => {
7987
+ }, gm = async (t, a) => {
7988
7988
  await k(t, { $inc: { totalMinutesInVoice: a } });
7989
- }, Hh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7989
+ }, jh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7990
7990
  __proto__: null,
7991
- addTotalMinutesInVoice: ym,
7992
- addWrittenTextChannel: pm,
7993
- bet666: V0,
7994
- botPingIncrement: em,
7995
- drawDoubleSix: nm,
7996
- drawIncrement: W0,
7997
- hadMoreThanZeroBerry: j0,
7998
- hasBet10M: cm,
7999
- hasBetMin: om,
8000
- hasCelebrateBirthday: am,
8001
- hasGuessInOne: tm,
8002
- hasLose10M: fm,
8003
- hasLoseEverything: dm,
8004
- hasReportedSomeone: J0,
8005
- hasSevenQod: Q0,
8006
- hasTagEveryone: lm,
8007
- hasWinBet10M: um,
8008
- incrementMessageSend: mm,
8009
- randomMessageIncrement: K0,
8010
- readEdito: hm,
8011
- updateCrafts: Z0,
8012
- updateCrew10Percent: rm,
8013
- updateCrew90Percent: im,
8014
- updateLastGames: q0,
8015
- updateRps: X0,
8016
- updateTotalBet: z0,
7991
+ addTotalMinutesInVoice: gm,
7992
+ addWrittenTextChannel: mm,
7993
+ bet666: z0,
7994
+ botPingIncrement: tm,
7995
+ drawDoubleSix: rm,
7996
+ drawIncrement: V0,
7997
+ hadMoreThanZeroBerry: Q0,
7998
+ hasBet10M: um,
7999
+ hasBetMin: dm,
8000
+ hasCelebrateBirthday: sm,
8001
+ hasGuessInOne: am,
8002
+ hasLose10M: pm,
8003
+ hasLoseEverything: cm,
8004
+ hasReportedSomeone: K0,
8005
+ hasSevenQod: G0,
8006
+ hasTagEveryone: om,
8007
+ hasWinBet10M: fm,
8008
+ incrementMessageSend: hm,
8009
+ randomMessageIncrement: em,
8010
+ readEdito: ym,
8011
+ updateCrafts: J0,
8012
+ updateCrew10Percent: im,
8013
+ updateCrew90Percent: lm,
8014
+ updateLastGames: W0,
8015
+ updateRps: Z0,
8016
+ updateTotalBet: X0,
8017
8017
  updateTotalSpentInShop: er,
8018
- winBlackjack: G0,
8019
- winDoubleSix: sm,
8020
- workIncrement: H0
8021
- }, Symbol.toStringTag, { value: "Module" })), gm = (t, a) => {
8018
+ winBlackjack: q0,
8019
+ winDoubleSix: nm,
8020
+ workIncrement: j0
8021
+ }, Symbol.toStringTag, { value: "Module" })), _m = (t, a) => {
8022
8022
  var s;
8023
8023
  return (s = t.unlocked) == null ? void 0 : s[a];
8024
- }, _m = (t, a, s) => a in t.obtainedRewards ? t.obtainedRewards[a].includes(s) : !1, jh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8024
+ }, wm = (t, a, s) => a in t.obtainedRewards ? t.obtainedRewards[a].includes(s) : !1, Qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8025
8025
  __proto__: null,
8026
- alreadyObtainedRaidReward: _m,
8027
- hasUnlockedRaid: gm
8026
+ alreadyObtainedRaidReward: wm,
8027
+ hasUnlockedRaid: _m
8028
8028
  }, Symbol.toStringTag, { value: "Module" })), tr = new S(
8029
8029
  {
8030
8030
  user: {
@@ -8057,9 +8057,9 @@ const Nt = ((ps = Y) == null ? void 0 : ps.UserRaid) || F("UserRaid", tr), Be =
8057
8057
  await Nt.updateOne({ user: t }, a, {
8058
8058
  upsert: !0
8059
8059
  });
8060
- }, wm = async (t, a) => {
8061
- await Be(t, { $set: { [`unlocked.${a}`]: !0 } });
8062
8060
  }, bm = async (t, a) => {
8061
+ await Be(t, { $set: { [`unlocked.${a}`]: !0 } });
8062
+ }, vm = async (t, a) => {
8063
8063
  await Be(t, [
8064
8064
  {
8065
8065
  $set: {
@@ -8078,7 +8078,7 @@ const Nt = ((ps = Y) == null ? void 0 : ps.UserRaid) || F("UserRaid", tr), Be =
8078
8078
  }
8079
8079
  }
8080
8080
  ]);
8081
- }, vm = async (t, a, s, n) => {
8081
+ }, Mm = async (t, a, s, n) => {
8082
8082
  const r = Date.now();
8083
8083
  return await Be(t, {
8084
8084
  $set: {
@@ -8095,55 +8095,55 @@ const Nt = ((ps = Y) == null ? void 0 : ps.UserRaid) || F("UserRaid", tr), Be =
8095
8095
  }
8096
8096
  }
8097
8097
  }), r;
8098
- }, Mm = async (t) => {
8098
+ }, xm = async (t) => {
8099
8099
  await Be(t, {
8100
8100
  $set: {
8101
8101
  currentRaid: void 0
8102
8102
  }
8103
8103
  });
8104
- }, xm = async (t) => {
8104
+ }, km = async (t) => {
8105
8105
  await Be(t, {
8106
8106
  $set: {
8107
8107
  "currentRaid.progression": []
8108
8108
  }
8109
8109
  });
8110
- }, km = async (t, a) => {
8110
+ }, Sm = async (t, a) => {
8111
8111
  await Be(t, {
8112
8112
  $push: {
8113
8113
  "currentRaid.progression": a
8114
8114
  }
8115
8115
  });
8116
- }, Sm = async (t, a, s) => {
8116
+ }, Um = async (t, a, s) => {
8117
8117
  await Be(t, {
8118
8118
  $push: {
8119
8119
  [`obtainedRewards.${a}`]: s
8120
8120
  }
8121
8121
  });
8122
- }, Qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8122
+ }, Gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8123
8123
  __proto__: null,
8124
- claimReward: Sm,
8125
- progressRaid: km,
8126
- reduceRaidCooldown: bm,
8127
- resetRaid: Mm,
8128
- resetRaidProgression: xm,
8129
- startRaid: vm,
8130
- unlockRaid: wm
8124
+ claimReward: Um,
8125
+ progressRaid: Sm,
8126
+ reduceRaidCooldown: vm,
8127
+ resetRaid: xm,
8128
+ resetRaidProgression: km,
8129
+ startRaid: Mm,
8130
+ unlockRaid: bm
8131
8131
  }, Symbol.toStringTag, { value: "Module" })), ar = async (t) => await Nt.create({
8132
8132
  user: t
8133
- }), Gh = async (t) => {
8133
+ }), qh = async (t) => {
8134
8134
  const a = await Nt.findOne({ user: t });
8135
8135
  return a || await ar(t);
8136
- }, Um = (t, a, s) => {
8137
- const n = _s()[a], r = t.limit ? t.limit[a] : void 0;
8136
+ }, Dm = (t, a, s) => {
8137
+ const n = ws()[a], r = t.limit ? t.limit[a] : void 0;
8138
8138
  return t.lastShopId !== s ? !1 : !!(n && r && r >= n);
8139
- }, Dm = (t, a, s, n) => {
8139
+ }, Om = (t, a, s, n) => {
8140
8140
  var l;
8141
- const r = _s()[a], i = (l = t.limit) == null ? void 0 : l[a];
8141
+ const r = ws()[a], i = (l = t.limit) == null ? void 0 : l[a];
8142
8142
  return r ? t.lastShopId !== s ? r : i ? r - i : Math.min(r, n) : n;
8143
- }, qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8143
+ }, Wh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8144
8144
  __proto__: null,
8145
- getShopItemRest: Dm,
8146
- isShopBuyLimitReached: Um
8145
+ getShopItemRest: Om,
8146
+ isShopBuyLimitReached: Dm
8147
8147
  }, Symbol.toStringTag, { value: "Module" })), sr = new S(
8148
8148
  {
8149
8149
  user: {
@@ -8159,12 +8159,12 @@ const Nt = ((ps = Y) == null ? void 0 : ps.UserRaid) || F("UserRaid", tr), Be =
8159
8159
  );
8160
8160
  sr.index({ user: 1 });
8161
8161
  var ms;
8162
- const ja = ((ms = Y) == null ? void 0 : ms.UserShop) || F("UserShop", sr), Om = async (t, a) => {
8162
+ const ja = ((ms = Y) == null ? void 0 : ms.UserShop) || F("UserShop", sr), Cm = async (t, a) => {
8163
8163
  await ja.updateOne({ user: t }, a, {
8164
8164
  upsert: !0
8165
8165
  });
8166
- }, Cm = async (t, a, s, n) => {
8167
- await Om(t, [
8166
+ }, Bm = async (t, a, s, n) => {
8167
+ await Cm(t, [
8168
8168
  {
8169
8169
  $set: {
8170
8170
  [`limit.${a}`]: {
@@ -8179,9 +8179,9 @@ const ja = ((ms = Y) == null ? void 0 : ms.UserShop) || F("UserShop", sr), Om =
8179
8179
  }
8180
8180
  }
8181
8181
  ]);
8182
- }, Wh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8182
+ }, Vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8183
8183
  __proto__: null,
8184
- increaseShopBuyLimit: Cm
8184
+ increaseShopBuyLimit: Bm
8185
8185
  }, Symbol.toStringTag, { value: "Module" })), ie = {
8186
8186
  localField: "_id",
8187
8187
  foreignField: "user",
@@ -8229,12 +8229,12 @@ q.post("deleteOne", async function() {
8229
8229
  await It.deleteOne({ user: t }), await Yt.deleteOne({ user: t }), await Et.deleteOne({ user: t }), await Nt.deleteOne({ user: t }), await it.deleteOne({ user: t }), await $a.deleteOne({ user: t }), await ja.deleteOne({ user: t }), await Oe.deleteOne({ user: t }), await At.deleteOne({ user: t }), await Ue.deleteOne({ user: t });
8230
8230
  });
8231
8231
  var hs;
8232
- const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.create({
8232
+ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), $m = (t) => X.create({
8233
8233
  userId: t
8234
8234
  }), nr = async (t, a = {}) => {
8235
- const s = await $m({ userId: t }, a);
8236
- return s || await Bm(t);
8237
- }, $m = (t, a = {}) => X.findOne(t, a), Tm = () => X.aggregate([
8235
+ const s = await Tm({ userId: t }, a);
8236
+ return s || await $m(t);
8237
+ }, Tm = (t, a = {}) => X.findOne(t, a), Rm = () => X.aggregate([
8238
8238
  {
8239
8239
  $match: {
8240
8240
  birthday: { $ne: null }
@@ -8291,7 +8291,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8291
8291
  nextBirthday: 1
8292
8292
  }
8293
8293
  }
8294
- ]), Rm = async (t) => await nr(t, { birthday: 1 }), Ym = async (t, a) => (await X.aggregate([
8294
+ ]), Ym = async (t) => await nr(t, { birthday: 1 }), Fm = async (t, a) => (await X.aggregate([
8295
8295
  {
8296
8296
  $lookup: {
8297
8297
  from: "usermetas",
@@ -8314,7 +8314,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8314
8314
  rank: 1
8315
8315
  }
8316
8316
  }
8317
- ]))[0], Fm = async (t) => X.aggregate([
8317
+ ]))[0], Im = async (t) => X.aggregate([
8318
8318
  { $match: { faction: t } },
8319
8319
  {
8320
8320
  $lookup: {
@@ -8334,7 +8334,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8334
8334
  "meta.xp.amount": 1
8335
8335
  }
8336
8336
  }
8337
- ]), Im = async () => X.aggregate([
8337
+ ]), Em = async () => X.aggregate([
8338
8338
  {
8339
8339
  $lookup: {
8340
8340
  from: "usermetas",
@@ -8353,7 +8353,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8353
8353
  "meta.xp.amount": 1
8354
8354
  }
8355
8355
  }
8356
- ]), Em = async () => X.aggregate([
8356
+ ]), Am = async () => X.aggregate([
8357
8357
  {
8358
8358
  $lookup: {
8359
8359
  from: "usermetas",
@@ -8372,7 +8372,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8372
8372
  "meta.berry": 1
8373
8373
  }
8374
8374
  }
8375
- ]), Am = async () => X.aggregate([
8375
+ ]), Nm = async () => X.aggregate([
8376
8376
  {
8377
8377
  $lookup: {
8378
8378
  from: "userquests",
@@ -8396,7 +8396,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8396
8396
  "quest.completed": 1
8397
8397
  }
8398
8398
  }
8399
- ]), Nm = (t) => {
8399
+ ]), Pm = (t) => {
8400
8400
  const { berry: a, xp: s } = t.meta, { voice: n, amount: r } = s, { unlockedBadges: i, unlockedBackgrounds: l, unlockedTitles: c } = t.ornaments, {
8401
8401
  previousOrnament: h,
8402
8402
  previousCompletedQuest: g,
@@ -8417,7 +8417,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8417
8417
  h.unlockedBackgrounds
8418
8418
  )
8419
8419
  };
8420
- }, Pm = () => X.aggregate([
8420
+ }, Lm = () => X.aggregate([
8421
8421
  { $match: { birthday: { $ne: null } } },
8422
8422
  {
8423
8423
  $addFields: {
@@ -8441,7 +8441,7 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8441
8441
  }
8442
8442
  }
8443
8443
  }
8444
- ]), Lm = async () => X.aggregate([
8444
+ ]), Hm = async () => X.aggregate([
8445
8445
  { $match: { "settings.sendDailyReport": { $eq: !0 } } },
8446
8446
  {
8447
8447
  $lookup: {
@@ -8469,64 +8469,64 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8469
8469
  }
8470
8470
  }
8471
8471
  }
8472
- ]), Vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8472
+ ]), zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8473
8473
  __proto__: null,
8474
- getAllDailyReport: Lm,
8475
- getBerryRanking: Em,
8476
- getDailyReport: Nm,
8477
- getFactionRank: Ym,
8478
- getFactionRanking: Fm,
8479
- getGlobalRanking: Im,
8480
- getNextBirthdays: Tm,
8481
- getSuccessRanking: Am,
8482
- getTodayAllBirthday: Pm,
8483
- getUserBirthday: Rm
8474
+ getAllDailyReport: Hm,
8475
+ getBerryRanking: Am,
8476
+ getDailyReport: Pm,
8477
+ getFactionRank: Fm,
8478
+ getFactionRanking: Im,
8479
+ getGlobalRanking: Em,
8480
+ getNextBirthdays: Rm,
8481
+ getSuccessRanking: Nm,
8482
+ getTodayAllBirthday: Lm,
8483
+ getUserBirthday: Ym
8484
8484
  }, Symbol.toStringTag, { value: "Module" })), $e = async (t, a, s = !1) => {
8485
8485
  await X.updateOne(t, a, { upsert: s });
8486
8486
  }, rr = async (t, a) => {
8487
8487
  await $e({ _id: t }, { $set: { canChooseFaction: a } });
8488
8488
  }, ir = async (t, a) => {
8489
8489
  await $e({ _id: t }, { $set: { canChangeFaction: a } });
8490
- }, Hm = async (t, a) => {
8490
+ }, jm = async (t, a) => {
8491
8491
  await $e({ userId: t }, { $set: { birthday: a } });
8492
- }, jm = async (t) => {
8492
+ }, Qm = async (t) => {
8493
8493
  await $e({ userId: t }, { $set: { birthday: null } });
8494
- }, Qm = async (t, a) => {
8494
+ }, Gm = async (t, a) => {
8495
8495
  await $e(
8496
8496
  { userId: t },
8497
8497
  { $set: { "settings.sendDailyQuest": a } }
8498
8498
  );
8499
- }, Gm = async (t, a) => {
8499
+ }, qm = async (t, a) => {
8500
8500
  await $e(
8501
8501
  { userId: t },
8502
8502
  { $set: { "settings.sendDailyReport": a } }
8503
8503
  );
8504
- }, qm = async (t, a) => {
8504
+ }, Wm = async (t, a) => {
8505
8505
  await $e(
8506
8506
  { _id: t },
8507
8507
  { $set: { "settings.sort.inventory": a } }
8508
8508
  );
8509
- }, zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8509
+ }, Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8510
8510
  __proto__: null,
8511
8511
  canChangeFaction: ir,
8512
8512
  canChooseFaction: rr,
8513
- removeBirthday: jm,
8514
- setBirthday: Hm,
8515
- updateInventorySort: qm,
8516
- updateSendDailyQuest: Qm,
8517
- updateSendDailyReport: Gm
8518
- }, Symbol.toStringTag, { value: "Module" })), Xh = async (t) => {
8513
+ removeBirthday: Qm,
8514
+ setBirthday: jm,
8515
+ updateInventorySort: Wm,
8516
+ updateSendDailyQuest: Gm,
8517
+ updateSendDailyReport: qm
8518
+ }, Symbol.toStringTag, { value: "Module" })), Zh = async (t) => {
8519
8519
  await X.deleteOne({ userId: t });
8520
- }, Wm = async (t) => await $a.create({
8520
+ }, Vm = async (t) => await $a.create({
8521
8521
  user: t
8522
- }), Vm = async (t) => await Ue.create({
8522
+ }), zm = async (t) => await Ue.create({
8523
8523
  user: t
8524
- }), zm = async (t) => await ja.create({
8524
+ }), Xm = async (t) => await ja.create({
8525
8525
  user: t
8526
8526
  }), Ja = (t, a) => {
8527
8527
  switch (t) {
8528
8528
  case "dailyReport":
8529
- return Wm(a);
8529
+ return Vm(a);
8530
8530
  case "games":
8531
8531
  return Tn(a);
8532
8532
  case "inventory":
@@ -8540,11 +8540,11 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8540
8540
  case "quest":
8541
8541
  return Jn(a);
8542
8542
  case "questMeta":
8543
- return Vm(a);
8544
- case "shop":
8545
8543
  return zm(a);
8544
+ case "shop":
8545
+ return Xm(a);
8546
8546
  }
8547
- }, Zh = async (t, a, s) => {
8547
+ }, Jh = async (t, a, s) => {
8548
8548
  if (Array.isArray(a)) {
8549
8549
  const n = await t.populate(a);
8550
8550
  for (const r of a)
@@ -8571,15 +8571,15 @@ const X = ((hs = Y) == null ? void 0 : hs.User) || F("User", q), Bm = (t) => X.c
8571
8571
  });
8572
8572
  lr.index({ warnedUserId: 1 });
8573
8573
  var ys;
8574
- const ot = ((ys = Y) == null ? void 0 : ys.Warns) || F("Warns", lr), Xm = async (t) => await ot.find({ warnedUserId: t }), Zm = async (t) => await ot.countDocuments({ warnedUserId: t }), Jh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8574
+ const ot = ((ys = Y) == null ? void 0 : ys.Warns) || F("Warns", lr), Zm = async (t) => await ot.find({ warnedUserId: t }), Jm = async (t) => await ot.countDocuments({ warnedUserId: t }), Kh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8575
8575
  __proto__: null,
8576
- getUserWarnCount: Zm,
8577
- getUserWarns: Xm
8578
- }, Symbol.toStringTag, { value: "Module" })), Kh = async (t) => await ot.findOne({ warnedUserId: t }), ey = async (t) => await ot.create({
8576
+ getUserWarnCount: Jm,
8577
+ getUserWarns: Zm
8578
+ }, Symbol.toStringTag, { value: "Module" })), ey = async (t) => await ot.findOne({ warnedUserId: t }), ty = async (t) => await ot.create({
8579
8579
  ...t
8580
- }), ty = async (t) => await ot.findByIdAndDelete(t), ay = (t) => {
8580
+ }), ay = async (t) => await ot.findByIdAndDelete(t), sy = (t) => {
8581
8581
  pr(t);
8582
- }, sy = async (t, a, s, { berry: n, xp: r }) => {
8582
+ }, ny = async (t, a, s, { berry: n, xp: r }) => {
8583
8583
  const i = await Kn(a).then(
8584
8584
  (T) => T.populate("user", "faction")
8585
8585
  ), l = La(i), c = Wn(
@@ -8621,7 +8621,7 @@ const ot = ((ys = Y) == null ? void 0 : ys.Warns) || F("Warns", lr), Xm = async
8621
8621
  ).setFont("poppins_bold", 35).setColor((D == null ? void 0 : D.rank.color) ?? "white").draw(!!D).next(
8622
8622
  (T, E) => le(T.Text((c == null ? void 0 : c.name) ?? ""), E)
8623
8623
  ).setColor((c == null ? void 0 : c.rank.color) ?? "white").draw(g && !!c), await s.encode("webp");
8624
- }, ny = 10, ry = 1e7, iy = 100, ly = [
8624
+ }, ry = 10, iy = 1e7, ly = 100, oy = [
8625
8625
  "berry",
8626
8626
  "success_COMMON",
8627
8627
  "success_RARE",
@@ -8629,7 +8629,108 @@ const ot = ((ys = Y) == null ? void 0 : ys.Warns) || F("Warns", lr), Xm = async
8629
8629
  "success_LEGENDARY",
8630
8630
  "success_MYTHIC",
8631
8631
  "xp"
8632
- ], Jm = {
8632
+ ], Km = {
8633
+ background: "<:background:1178465681809887334>",
8634
+ title: "<:title:1178465688915038208>",
8635
+ chest_1: "<:lootbox1:1186689926167810088>",
8636
+ chest_2: "<:lootbox2:1186258728882811051>",
8637
+ chest_3: "<:lootbox3:1243963722259501216>",
8638
+ chest_4: "<:lootbox3:1186259958216523786>",
8639
+ bottle_xp_1: "<:bottle_xp:1186204593667969035>",
8640
+ bottle_xp_2: "<:bottle_xp_2:1243980696083632208>",
8641
+ bottle_xp_3: "<:bottle_xp_3:1243980697773936740>",
8642
+ bottle_xp_4: "<:bottle_xp_4:1243980698927366256>",
8643
+ boost_week: "<:boost_week:1186258728073297971>",
8644
+ boost_day: "<:boost_day:1186258726030680145>",
8645
+ wood_plank: "<:Planchesdebois:1233782418478071930>",
8646
+ nail: "<:Clous:1233782384613261382>",
8647
+ glue: "<:Colle:1233782388497186846>",
8648
+ rope: "<:Corde:1233782392225927168>",
8649
+ repair_kit: "<:Kitderparation:1233782876223570011>",
8650
+ tissue: "<:Tissus:1233784184099573852>",
8651
+ lock: "<:Serrureclef:1233782436068982814>",
8652
+ iron: "<:Ferbrut:1233782399125426207>",
8653
+ clover: "<:Treflesixfeuilles:1233782439503990915> ",
8654
+ glass_bottle: "<:Fioleenverre:1233782402233532496>",
8655
+ pure_water: "<:Eaupure:1233782393572298802>",
8656
+ sea_salt: "<:SelMarin:1233784181696233602>",
8657
+ ebony_poppy: "<:Pavotebene:1233782416879915060>",
8658
+ rose: "<:Roseimmaculee:1233784180215644180>",
8659
+ poppy: "<:Coquelicotecarlate:1233782390099280023>",
8660
+ manganese: "<:Manganesescintillante:1233784177221042196>",
8661
+ cursed_hawthorn: "<:AubpineMaudite:1233782382872629329>",
8662
+ mugwort: "<:Armoiseblanche:1233782381400424519>",
8663
+ mandrake: "<:MandragoreAdulte:1233782409070247946>",
8664
+ obsidian: "<:Obsidiennesombre:1233784178307371110>",
8665
+ saffron: "<:Safranvermeille:1233782430385836124>",
8666
+ edelweiss: "<:Edelweiss:1233782395019329546>",
8667
+ emerald: "<:emeraude:1233782873165791273>",
8668
+ ruby: "<:Rubis:1233782426174619679>",
8669
+ sapphire: "<:Saphir:1233782432004837407>",
8670
+ siren_tear: "<:Larmedesirene:1233782405538517095>",
8671
+ compass: "<:Rosedesvents:1233782421892239360>",
8672
+ dragon_heart: "<:CoeurdeDragon:1233782386580258848>",
8673
+ fairy_wing: "<:Ailedefees:1233782379269722293>",
8674
+ phoenix_feather: "<:PlumedePhoenix:1233784783822127167>",
8675
+ mithril: "<:Mithril:1233782412434214974>",
8676
+ cereal: "<:craft_cereal:1243963641204703405>",
8677
+ cotton: "<:craft_cotton:1243963642567721080>",
8678
+ empty_box: "<:craft_empty_box:1243963643834535966>",
8679
+ enchanted_emerald: "<:craft_enchanted_emerald:1243963645092696105>",
8680
+ enchanted_ruby: "<:craft_enchanted_ruby:1243963647097569330>",
8681
+ enchanted_sapphire: "<:craft_enchanted_sapphire:1243963648486019082>",
8682
+ enchanted_stone: "<:craft_enchanted_stone:1243963650893545637>",
8683
+ flour: "<:craft_flour:1243963651719823451>",
8684
+ hemp: "<:craft_hemp:1243963653238030387>",
8685
+ scrap: "<:craft_scrap:1243963718895669268>",
8686
+ strange_gem: "<:craft_strange_gem:1243963656539078686>",
8687
+ strange_stone: "<:craft_strange_stone:1243963658766123192>",
8688
+ tools: "<:craft_tools:1243963720179122217>",
8689
+ wood: "<:craft_wood:1243963662763298897>",
8690
+ wine: "<:craft_wine:1249242713442746501>",
8691
+ toy: "<:craft_toy:1249242711907893278>",
8692
+ rhum: "<:craft_rhum:1249242707961057361>",
8693
+ milk: "<:craft_milk:1249242706501308488>",
8694
+ fruit: "<:craft_fruit:1249242705612115968>",
8695
+ sugar: "<:craft_sugar:1249242709684785184>",
8696
+ egg: "<:craft_egg:1249242703972007986>",
8697
+ omelet: "<:omelette:1288942044328493179>",
8698
+ cheese: "<:Fromage_Affine:1289695711398596761>",
8699
+ bread: "<:Pain_de_campagne:1289703440163016855>",
8700
+ strawberry_cake: "<:Fraisier:1289707903649058858>",
8701
+ bowl_cereal: "<:craft_bowl_cereal:1249242702462193686>",
8702
+ beer: "<:craft_beer:1249242701300240434>",
8703
+ bowl: "<:craft_bowl:1250116629275082873>",
8704
+ rudder: "<:craft_rudder:1250435943253540895>",
8705
+ rescue_boat: "<:craft_rescue_boat:1250435931635322950>",
8706
+ sailing_boat: "<:craft_sailing_boat:1250435942162894849>",
8707
+ salt_water: "<:craft_salt_water:1250435945216475317>",
8708
+ anchor: "<:craft_anchor:1250435934843834409>",
8709
+ hammock: "<:craft_hammock:1250435933300588687>",
8710
+ leather: "<:craft_leather:1253034980133834752>",
8711
+ ancient_key: "<:craft_ancient_key:1257447843355033742>",
8712
+ iron_ore: "<:craft_iron_ore:1257475847271612497>",
8713
+ map_fragment: "<:map_fragment:1281949667227205663>",
8714
+ scroll_agility: "<:scroll_agility:1254081331365810289>",
8715
+ scroll_chance: "<:scroll_chance:1254081332422639657>",
8716
+ scroll_intelligence: "<:scroll_intelligence:1254081334264070174>",
8717
+ scroll_strength: "<:scroll_strength:1254081335862099980>",
8718
+ scroll_vitality: "<:scroll_vitality:1254081337711919185>",
8719
+ scroll_wisdom: "<:scroll_wisdom:1254081340115259454>",
8720
+ elemental_concentrate_earth: "<:elemental_concentrate_earth:1269073512782499860>",
8721
+ elemental_concentrate_fire: "<:elemental_concentrate_fire:1269073513919156349>",
8722
+ elemental_concentrate_life: "<:elemental_concentrate_life:1269073515315728425>",
8723
+ elemental_concentrate_moon: "<:elemental_concentrate_moon:1269073517044039760>",
8724
+ elemental_concentrate_water: "<:elemental_concentrate_water:1269073518205599776>",
8725
+ elemental_concentrate_wind: "<:elemental_concentrate_wind:1269073510815367189>",
8726
+ essence_earth: "<:essence_earth:1269073149300052034>",
8727
+ essence_fire: "<:essence_fire:1269073150784700416>",
8728
+ essence_life: "<:essence_life:1269073151728287787>",
8729
+ essence_moon: "<:essence_moon:1269073153510998056>",
8730
+ essence_water: "<:essence_water:1269073154333081701>",
8731
+ essence_wind: "<:essence_wind:1269073156241625088>",
8732
+ empty_scroll: "<:empty_scroll:1269074077327298653>"
8733
+ }, eh = {
8633
8734
  d1: "<:d1:1159542168738873455>",
8634
8735
  d2: "<:d2:1159542071049334814>",
8635
8736
  d3: "<:d3:1159542073914032191>",
@@ -8750,29 +8851,30 @@ const ot = ((ys = Y) == null ? void 0 : ys.Warns) || F("Warns", lr), Xm = async
8750
8851
  equipment_adventurer_boots: "<:adventurer_boots:1253041083252867123>",
8751
8852
  equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
8752
8853
  equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
8753
- equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
8754
- }, oy = (t, a) => {
8854
+ equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>",
8855
+ items: Km
8856
+ }, dy = (t, a) => {
8755
8857
  const s = t.badge, n = t.isFactionBadge;
8756
- return s ? ea(s) ? s.emojis[s.isProgressive.findIndex((r) => r === t.rank.id)] : s.emojis : n ? Jm.factions[`b_${a}_${t.rank.id}`] : "";
8757
- }, dy = (t) => {
8858
+ return s ? ea(s) ? s.emojis[s.isProgressive.findIndex((r) => r === t.rank.id)] : s.emojis : n ? eh.factions[`b_${a}_${t.rank.id}`] : "";
8859
+ }, cy = (t) => {
8758
8860
  const [a, s] = t.split("_"), n = Object.values(p).find((r) => r.id === a);
8759
8861
  if (n)
8760
8862
  return ea(n) ? n.emojis[n.isProgressive.findIndex((r) => r === s)] : n.emojis;
8761
8863
  };
8762
- class cy extends mr.ObjectId {
8864
+ class uy extends mr.ObjectId {
8763
8865
  }
8764
8866
  export {
8765
- hh as ALL_QUESTS,
8766
- ry as BET_MAX_VALUE,
8767
- ny as BET_MIN_VALUE,
8867
+ yh as ALL_QUESTS,
8868
+ iy as BET_MAX_VALUE,
8869
+ ry as BET_MIN_VALUE,
8768
8870
  Cp as BackgroundShopItem,
8769
8871
  Bp as BoostXpShopItem,
8770
8872
  $p as ChestShopItem,
8771
8873
  Tp as CraftShopItem,
8772
8874
  yn as CrewQuests,
8773
- iy as EDITO_READ,
8774
- cy as ObjectId,
8775
- ly as QUEST_ASSET_IMAGES,
8875
+ ly as EDITO_READ,
8876
+ uy as ObjectId,
8877
+ oy as QUEST_ASSET_IMAGES,
8776
8878
  d as Quest,
8777
8879
  Rp as RepairShopItem,
8778
8880
  Yp as StoreShopItem,
@@ -8781,83 +8883,83 @@ export {
8781
8883
  _n as UserMetaQuests,
8782
8884
  wn as UserOrnamentsQuests,
8783
8885
  bn as UserQuestMetaQuests,
8784
- uh as banExists,
8785
- lh as banGetters,
8886
+ fh as banExists,
8887
+ oh as banGetters,
8786
8888
  Je as banModel,
8787
8889
  bs as betModel,
8788
- ay as connectToServices,
8789
- oh as createBan,
8790
- ph as createBet,
8791
- wh as createCrew,
8792
- vh as createInvitations,
8890
+ sy as connectToServices,
8891
+ dh as createBan,
8892
+ mh as createBet,
8893
+ bh as createCrew,
8894
+ Mh as createInvitations,
8793
8895
  Op as createSettings,
8794
- Ch as createUserCrew,
8795
- ey as createWarn,
8796
- yh as crewGetters,
8896
+ Bh as createUserCrew,
8897
+ ty as createWarn,
8898
+ gh as crewGetters,
8797
8899
  rt as crewModel,
8798
- gh as crewUpdates,
8799
- ch as deleteBan,
8800
- Mh as deleteInvitations,
8801
- Xh as deleteUserById,
8802
- ty as deleteWarn,
8900
+ _h as crewUpdates,
8901
+ uh as deleteBan,
8902
+ xh as deleteInvitations,
8903
+ Zh as deleteUserById,
8904
+ ay as deleteWarn,
8803
8905
  nt as emitQuestEvent,
8804
- Kh as finWarnById,
8805
- dh as findBan,
8806
- fh as findBetById,
8807
- _h as findCrewById,
8808
- bh as findInvitations,
8809
- kh as findSettingsByGuildId,
8906
+ ey as finWarnById,
8907
+ ch as findBan,
8908
+ ph as findBetById,
8909
+ wh as findCrewById,
8910
+ vh as findInvitations,
8911
+ Sh as findSettingsByGuildId,
8810
8912
  jp as findShop,
8811
- Dh as findShopByType,
8812
- $m as findUser,
8913
+ Oh as findShopByType,
8914
+ Tm as findUser,
8813
8915
  nr as findUserById,
8814
8916
  qp as findUserCrew,
8815
- Rh as findUserGames,
8917
+ Yh as findUserGames,
8816
8918
  Ea as findUserInventory,
8817
8919
  Ft as findUserMeta,
8818
- Nh as findUserOrnaments,
8920
+ Ph as findUserOrnaments,
8819
8921
  Kn as findUserQuest,
8820
- Gh as findUserRaid,
8821
- dy as getBadgeEmojisFromId,
8822
- oy as getQuestBadgeEmojis,
8922
+ qh as findUserRaid,
8923
+ cy as getBadgeEmojisFromId,
8924
+ dy as getQuestBadgeEmojis,
8823
8925
  Ua as invitationsModel,
8824
- mh as onQuestEvent,
8825
- Zh as populateUser,
8826
- sy as questCanvas,
8926
+ hh as onQuestEvent,
8927
+ Jh as populateUser,
8928
+ ny as questCanvas,
8827
8929
  Da as settingsModel,
8828
- xh as settingsUpdates,
8829
- Sh as shopGetters,
8930
+ kh as settingsUpdates,
8931
+ Uh as shopGetters,
8830
8932
  Oa as shopModel,
8831
- Uh as shopUpdates,
8832
- Bh as userCrewExists,
8933
+ Dh as shopUpdates,
8934
+ $h as userCrewExists,
8833
8935
  it as userCrewModel,
8834
- Oh as userCrewUpdates,
8936
+ Ch as userCrewUpdates,
8835
8937
  $a as userDailyReportModel,
8836
- $h as userDailyReportUpdates,
8938
+ Th as userDailyReportUpdates,
8837
8939
  Yt as userGamesModel,
8838
- Th as userGamesUpdates,
8839
- Vh as userGetters,
8840
- Yh as userInventoryGetters,
8940
+ Rh as userGamesUpdates,
8941
+ zh as userGetters,
8942
+ Fh as userInventoryGetters,
8841
8943
  It as userInventoryModel,
8842
- Eh as userInventoryUpdates,
8843
- Fh as userMetaGetters,
8944
+ Ah as userInventoryUpdates,
8945
+ Ih as userMetaGetters,
8844
8946
  Oe as userMetaModel,
8845
- Ih as userMetaUpdates,
8947
+ Eh as userMetaUpdates,
8846
8948
  X as userModel,
8847
8949
  Et as userOrnamentsModel,
8848
- Ah as userOrnamentsUpdates,
8849
- Ph as userQuestGetters,
8950
+ Nh as userOrnamentsUpdates,
8951
+ Lh as userQuestGetters,
8850
8952
  Ue as userQuestMetaModel,
8851
- Hh as userQuestMetaUpdates,
8953
+ jh as userQuestMetaUpdates,
8852
8954
  At as userQuestModel,
8853
- Lh as userQuestUpdates,
8854
- jh as userRaidGetters,
8955
+ Hh as userQuestUpdates,
8956
+ Qh as userRaidGetters,
8855
8957
  Nt as userRaidModel,
8856
- Qh as userRaidUpdates,
8857
- qh as userShopGetters,
8958
+ Gh as userRaidUpdates,
8959
+ Wh as userShopGetters,
8858
8960
  ja as userShopModel,
8859
- Wh as userShopUpdates,
8860
- zh as userUpdates,
8861
- Jh as warnGetters,
8961
+ Vh as userShopUpdates,
8962
+ Xh as userUpdates,
8963
+ Kh as warnGetters,
8862
8964
  ot as warnModel
8863
8965
  };