narrat 2.10.6 → 2.10.7

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/narrat.es.js CHANGED
@@ -38459,7 +38459,7 @@ const vL = "gameSave", Qp = "###_--_~=:;_JUMP", aw = "###_--_~=:;_RETURN", Uee =
38459
38459
  function Wee(t) {
38460
38460
  return t === Qp || t === aw || t === Uee || t === Yp;
38461
38461
  }
38462
- const Kee = "2.10.6", Jee = new Date("2023-02-05T18:31:59.117Z"), Gee = 400, jy = 20, mL = "1.4.0";
38462
+ const Kee = "2.10.7", Jee = new Date("2023-02-13T22:28:38.149Z"), Gee = 400, jy = 20, mL = "1.4.0";
38463
38463
  let Zr;
38464
38464
  function gL() {
38465
38465
  if (Zr)
@@ -40354,6 +40354,18 @@ function sA(t) {
40354
40354
  function Jre(t) {
40355
40355
  return typeof t == "object" && t !== null && t._entityType === "sprite";
40356
40356
  }
40357
+ function Gre(t) {
40358
+ if (t.includes(" ")) {
40359
+ const e = t.split(" ");
40360
+ return {
40361
+ label: e[0],
40362
+ args: e.slice(1)
40363
+ };
40364
+ } else
40365
+ return {
40366
+ label: t
40367
+ };
40368
+ }
40357
40369
  const Oo = hi("screenObjects", {
40358
40370
  state: () => ({
40359
40371
  tree: [],
@@ -40410,7 +40422,23 @@ const Oo = hi("screenObjects", {
40410
40422
  return this.objectsList[t];
40411
40423
  },
40412
40424
  clickObject(t) {
40413
- !bD(t) || t.onClick && (console.log("click", Date.now()), Vu("onSpriteClicked"), t.clickMethod === "run" ? En().runThenGoBackToPreviousDialog(t.onClick, !0) : t.clickMethod === "jump" || !t.clickMethod ? En().jumpToLabel(t.onClick) : Zt(`Unknown sprite click method ${t.clickMethod}`));
40425
+ var e, n, r;
40426
+ if (!!bD(t) && t.onClick) {
40427
+ console.log("click", Date.now()), Vu("onSpriteClicked");
40428
+ let i;
40429
+ if (typeof t.onClick == "string") {
40430
+ const o = Gre(t.onClick);
40431
+ i = {
40432
+ label: o.label,
40433
+ args: o.args
40434
+ };
40435
+ } else
40436
+ i = t.onClick;
40437
+ i.method = (n = (e = i.method) != null ? e : t.clickMethod) != null ? n : "jump", i.args = (r = i.args) != null ? r : [], i.method === "run" ? En().runThenGoBackToPreviousDialog(
40438
+ i.label,
40439
+ ...i.args
40440
+ ) : i.method === "jump" ? En().jumpToLabel(i.label, ...i.args) : Zt(`Unknown sprite click method ${t.clickMethod}`);
40441
+ }
40414
40442
  },
40415
40443
  generateSaveData() {
40416
40444
  return {
@@ -40500,7 +40528,7 @@ const Oo = hi("screenObjects", {
40500
40528
  i = {
40501
40529
  ...i,
40502
40530
  ...Dre(
40503
- (u, l, f) => vie(u, l, f),
40531
+ (u, l, f) => mie(u, l, f),
40504
40532
  s,
40505
40533
  t[a]
40506
40534
  )
@@ -40728,7 +40756,7 @@ const Oo = hi("screenObjects", {
40728
40756
  }
40729
40757
  }
40730
40758
  });
40731
- class Gre {
40759
+ class Qre {
40732
40760
  constructor() {
40733
40761
  ii(this, "plugins", []);
40734
40762
  ii(this, "pinia");
@@ -40755,7 +40783,7 @@ class Gre {
40755
40783
  return e;
40756
40784
  }
40757
40785
  }
40758
- const Jn = new Gre();
40786
+ const Jn = new Qre();
40759
40787
  async function wD(t, e) {
40760
40788
  var r;
40761
40789
  const n = En();
@@ -40770,7 +40798,7 @@ async function wD(t, e) {
40770
40798
  );
40771
40799
  }
40772
40800
  }
40773
- async function Qre(t, e) {
40801
+ async function Yre(t, e) {
40774
40802
  const n = t.command, r = Jn.commands[n.commandType];
40775
40803
  if (r) {
40776
40804
  const i = {
@@ -40792,7 +40820,7 @@ async function Qre(t, e) {
40792
40820
  if (s.search(wL) === 0)
40793
40821
  u = Xs(s.substring(3));
40794
40822
  else if (jL(s)) {
40795
- const l = oc(), f = que(l, s);
40823
+ const l = oc(), f = Vue(l, s);
40796
40824
  if (f) {
40797
40825
  const [c, d] = f;
40798
40826
  u = c[d];
@@ -40812,12 +40840,12 @@ async function Qre(t, e) {
40812
40840
  throw new Error(`${n.commandType} is not a valid command`);
40813
40841
  }
40814
40842
  async function mw(t, e) {
40815
- const n = await Qre(t, e), r = Jn.commands[n.commandType];
40843
+ const n = await Yre(t, e), r = Jn.commands[n.commandType];
40816
40844
  if (r)
40817
40845
  return await r.run(n, e);
40818
40846
  throw new Error(`${n.commandType} is not a valid command`);
40819
40847
  }
40820
- async function Yre(t) {
40848
+ async function Xre(t) {
40821
40849
  Vu("onPlayerAnswered");
40822
40850
  const e = En(), n = e.popAnswerQueue(), r = e.currentLine;
40823
40851
  try {
@@ -40832,44 +40860,44 @@ async function Yre(t) {
40832
40860
  );
40833
40861
  }
40834
40862
  }
40835
- var Xre = function(e) {
40836
- return Zre(e) && !eie(e);
40863
+ var Zre = function(e) {
40864
+ return eie(e) && !tie(e);
40837
40865
  };
40838
- function Zre(t) {
40866
+ function eie(t) {
40839
40867
  return !!t && typeof t == "object";
40840
40868
  }
40841
- function eie(t) {
40869
+ function tie(t) {
40842
40870
  var e = Object.prototype.toString.call(t);
40843
- return e === "[object RegExp]" || e === "[object Date]" || rie(t);
40844
- }
40845
- var tie = typeof Symbol == "function" && Symbol.for, nie = tie ? Symbol.for("react.element") : 60103;
40846
- function rie(t) {
40847
- return t.$$typeof === nie;
40871
+ return e === "[object RegExp]" || e === "[object Date]" || iie(t);
40848
40872
  }
40873
+ var nie = typeof Symbol == "function" && Symbol.for, rie = nie ? Symbol.for("react.element") : 60103;
40849
40874
  function iie(t) {
40875
+ return t.$$typeof === rie;
40876
+ }
40877
+ function oie(t) {
40850
40878
  return Array.isArray(t) ? [] : {};
40851
40879
  }
40852
40880
  function Qf(t, e) {
40853
- return e.clone !== !1 && e.isMergeableObject(t) ? ec(iie(t), t, e) : t;
40881
+ return e.clone !== !1 && e.isMergeableObject(t) ? ec(oie(t), t, e) : t;
40854
40882
  }
40855
- function oie(t, e, n) {
40883
+ function aie(t, e, n) {
40856
40884
  return t.concat(e).map(function(r) {
40857
40885
  return Qf(r, n);
40858
40886
  });
40859
40887
  }
40860
- function aie(t, e) {
40888
+ function sie(t, e) {
40861
40889
  if (!e.customMerge)
40862
40890
  return ec;
40863
40891
  var n = e.customMerge(t);
40864
40892
  return typeof n == "function" ? n : ec;
40865
40893
  }
40866
- function sie(t) {
40894
+ function uie(t) {
40867
40895
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
40868
40896
  return t.propertyIsEnumerable(e);
40869
40897
  }) : [];
40870
40898
  }
40871
40899
  function uA(t) {
40872
- return Object.keys(t).concat(sie(t));
40900
+ return Object.keys(t).concat(uie(t));
40873
40901
  }
40874
40902
  function kD(t, e) {
40875
40903
  try {
@@ -40878,21 +40906,21 @@ function kD(t, e) {
40878
40906
  return !1;
40879
40907
  }
40880
40908
  }
40881
- function uie(t, e) {
40909
+ function lie(t, e) {
40882
40910
  return kD(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
40883
40911
  }
40884
- function lie(t, e, n) {
40912
+ function cie(t, e, n) {
40885
40913
  var r = {};
40886
40914
  return n.isMergeableObject(t) && uA(t).forEach(function(i) {
40887
40915
  r[i] = Qf(t[i], n);
40888
40916
  }), uA(e).forEach(function(i) {
40889
- uie(t, i) || (kD(t, i) && n.isMergeableObject(e[i]) ? r[i] = aie(i, n)(t[i], e[i], n) : r[i] = Qf(e[i], n));
40917
+ lie(t, i) || (kD(t, i) && n.isMergeableObject(e[i]) ? r[i] = sie(i, n)(t[i], e[i], n) : r[i] = Qf(e[i], n));
40890
40918
  }), r;
40891
40919
  }
40892
40920
  function ec(t, e, n) {
40893
- n = n || {}, n.arrayMerge = n.arrayMerge || oie, n.isMergeableObject = n.isMergeableObject || Xre, n.cloneUnlessOtherwiseSpecified = Qf;
40921
+ n = n || {}, n.arrayMerge = n.arrayMerge || aie, n.isMergeableObject = n.isMergeableObject || Zre, n.cloneUnlessOtherwiseSpecified = Qf;
40894
40922
  var r = Array.isArray(e), i = Array.isArray(t), o = r === i;
40895
- return o ? r ? n.arrayMerge(t, e, n) : lie(t, e, n) : Qf(e, n);
40923
+ return o ? r ? n.arrayMerge(t, e, n) : cie(t, e, n) : Qf(e, n);
40896
40924
  }
40897
40925
  ec.all = function(e, n) {
40898
40926
  if (!Array.isArray(e))
@@ -40901,7 +40929,7 @@ ec.all = function(e, n) {
40901
40929
  return ec(r, i, n);
40902
40930
  }, {});
40903
40931
  };
40904
- var cie = ec, rv = cie;
40932
+ var fie = ec, rv = fie;
40905
40933
  const is = hi("hud", {
40906
40934
  state: () => ({
40907
40935
  hudStats: {}
@@ -41134,7 +41162,7 @@ const is = hi("hud", {
41134
41162
  }
41135
41163
  }
41136
41164
  });
41137
- function fie(t, e, n, r) {
41165
+ function die(t, e, n, r) {
41138
41166
  const i = t / n, o = e / r;
41139
41167
  return Math.min(i, o);
41140
41168
  }
@@ -41151,7 +41179,7 @@ const Mo = hi("rendering", {
41151
41179
  },
41152
41180
  getters: {
41153
41181
  gameScaleRatio(t) {
41154
- return fie(
41182
+ return die(
41155
41183
  this.screenWidth,
41156
41184
  this.screenHeight,
41157
41185
  this.gameWidth,
@@ -41199,13 +41227,13 @@ const Mo = hi("rendering", {
41199
41227
  }
41200
41228
  }
41201
41229
  }), Hh = {};
41202
- function die(t) {
41230
+ function hie(t) {
41203
41231
  var e;
41204
41232
  return (e = Hh[t]) != null ? e : {};
41205
41233
  }
41206
41234
  function lA(t, e, n) {
41207
41235
  var s, u, l, f;
41208
- const r = die(t.transition), i = (u = (s = t.duration) != null ? s : r.duration) != null ? u : 500, o = (f = (l = t.delay) != null ? l : r.delay) != null ? f : 0;
41236
+ const r = hie(t.transition), i = (u = (s = t.duration) != null ? s : r.duration) != null ? u : 500, o = (f = (l = t.delay) != null ? l : r.delay) != null ? f : 0;
41209
41237
  return {
41210
41238
  ...t,
41211
41239
  resolve: n,
@@ -41408,7 +41436,7 @@ const ea = hi("menu", {
41408
41436
  }
41409
41437
  }
41410
41438
  });
41411
- function hie() {
41439
+ function pie() {
41412
41440
  return {
41413
41441
  baseAssetsPath: "",
41414
41442
  baseDataPath: "",
@@ -41417,7 +41445,7 @@ function hie() {
41417
41445
  debug: !1
41418
41446
  };
41419
41447
  }
41420
- class pie extends gw {
41448
+ class vie extends gw {
41421
41449
  }
41422
41450
  const rn = hi("main", {
41423
41451
  state: () => ({
@@ -41446,7 +41474,7 @@ const rn = hi("main", {
41446
41474
  },
41447
41475
  alerts: [],
41448
41476
  saving: null,
41449
- listener: new pie(),
41477
+ listener: new vie(),
41450
41478
  inScript: !1
41451
41479
  }),
41452
41480
  actions: {
@@ -41553,7 +41581,7 @@ const rn = hi("main", {
41553
41581
  ), this.alert("Success", "Game saved!")) : Zt("There was no data to save!"), this.saving.resolver(), this.saving = null;
41554
41582
  },
41555
41583
  playerAnswered(t) {
41556
- Yre(t);
41584
+ Xre(t);
41557
41585
  },
41558
41586
  menuReturn() {
41559
41587
  this.reset(), this.setFlowState("menu"), es().options.defaultMusic && wi().playChannel("music", es().options.defaultMusic, 0);
@@ -41680,7 +41708,7 @@ const rn = hi("main", {
41680
41708
  }
41681
41709
  }
41682
41710
  });
41683
- function vie(t, e, n) {
41711
+ function mie(t, e, n) {
41684
41712
  console.error(`Parser error: ${t.fileName}:${t.currentLine}`, n);
41685
41713
  const r = `[Parser Error] in <span class="error-filename">${t.fileName}:${e + 1}</span> - <b>${n}</b>`;
41686
41714
  Zt(r);
@@ -41921,25 +41949,25 @@ var X = {};
41921
41949
  }
41922
41950
  t.TypeBuilder = n, t.Type = new n();
41923
41951
  })(X);
41924
- const mie = X.Type.Object({
41952
+ const gie = X.Type.Object({
41925
41953
  src: X.Type.String(),
41926
41954
  path: X.Type.Optional(X.Type.String()),
41927
41955
  volume: X.Type.Optional(X.Type.Number()),
41928
41956
  rate: X.Type.Optional(X.Type.Number()),
41929
41957
  html5: X.Type.Optional(X.Type.Boolean())
41930
- }), gie = X.Type.Record(
41958
+ }), yie = X.Type.Record(
41931
41959
  X.Type.String(),
41932
- mie
41933
- ), yie = X.Type.Object({
41960
+ gie
41961
+ ), bie = X.Type.Object({
41934
41962
  volume: X.Type.Optional(X.Type.Number()),
41935
41963
  defaultMusic: X.Type.Optional(X.Type.String()),
41936
41964
  musicFadeInTime: X.Type.Optional(X.Type.Number()),
41937
41965
  musicFadeOutTime: X.Type.Optional(X.Type.Number()),
41938
41966
  musicFadeInDelay: X.Type.Optional(X.Type.Number())
41939
- }), bie = X.Type.Record(X.Type.String(), X.Type.String()), _D = X.Type.Object({
41940
- files: gie,
41941
- audioTriggers: bie,
41942
- options: yie
41967
+ }), wie = X.Type.Record(X.Type.String(), X.Type.String()), _D = X.Type.Object({
41968
+ files: yie,
41969
+ audioTriggers: wie,
41970
+ options: bie
41943
41971
  }), xD = {
41944
41972
  files: {},
41945
41973
  audioTriggers: {},
@@ -41949,7 +41977,7 @@ const mie = X.Type.Object({
41949
41977
  musicFadeInDelay: 0.5,
41950
41978
  musicFadeOutTime: 0.5
41951
41979
  }
41952
- }, wie = X.Type.Object({
41980
+ }, kie = X.Type.Object({
41953
41981
  name: X.Type.String(),
41954
41982
  description: X.Type.String(),
41955
41983
  icon: X.Type.String(),
@@ -41965,7 +41993,7 @@ const mie = X.Type.Object({
41965
41993
  }), jD = X.Type.Object({
41966
41994
  id: X.Type.String(),
41967
41995
  title: X.Type.String()
41968
- }), SD = X.Type.Record(X.Type.String(), wie);
41996
+ }), SD = X.Type.Record(X.Type.String(), kie);
41969
41997
  X.Type.Object({
41970
41998
  categories: X.Type.Array(jD),
41971
41999
  items: SD
@@ -41981,20 +42009,20 @@ const CD = X.Type.Object({
41981
42009
  }
41982
42010
  ],
41983
42011
  items: {}
41984
- }, kie = X.Type.Object({
42012
+ }, _ie = X.Type.Object({
41985
42013
  description: X.Type.String(),
41986
42014
  hidden: X.Type.Optional(X.Type.Boolean())
41987
- }), _ie = X.Type.Object({
42015
+ }), xie = X.Type.Object({
41988
42016
  title: X.Type.String(),
41989
42017
  description: X.Type.String(),
41990
- objectives: X.Type.Record(X.Type.String(), kie),
42018
+ objectives: X.Type.Record(X.Type.String(), _ie),
41991
42019
  category: X.Type.Optional(X.Type.String())
41992
- }), xie = X.Type.Object({
42020
+ }), jie = X.Type.Object({
41993
42021
  id: X.Type.String(),
41994
42022
  title: X.Type.String()
41995
- }), jie = X.Type.Record(X.Type.String(), _ie), OD = X.Type.Object({
41996
- quests: jie,
41997
- categories: X.Type.Array(xie)
42023
+ }), Sie = X.Type.Record(X.Type.String(), xie), OD = X.Type.Object({
42024
+ quests: Sie,
42025
+ categories: X.Type.Array(jie)
41998
42026
  }), TD = {
41999
42027
  quests: {},
42000
42028
  categories: [
@@ -42024,23 +42052,23 @@ const CD = X.Type.Object({
42024
42052
  actionType: X.Type.Optional(X.Type.String()),
42025
42053
  scriptClickable: X.Type.Optional(X.Type.Boolean()),
42026
42054
  tag: X.Type.Optional(X.Type.String())
42027
- }), Sie = X.Type.Record(X.Type.String(), AD), ED = X.Type.Object({
42028
- buttons: Sie,
42055
+ }), Cie = X.Type.Record(X.Type.String(), AD), ED = X.Type.Object({
42056
+ buttons: Cie,
42029
42057
  clickableDuringScriptsByDefault: X.Type.Optional(X.Type.Boolean())
42030
42058
  }), MD = {
42031
42059
  buttons: {},
42032
42060
  clickableDuringScriptsByDefault: !1
42033
- }, Cie = X.Type.Intersect([
42061
+ }, $ie = X.Type.Intersect([
42034
42062
  AD,
42035
42063
  X.Type.Object({
42036
42064
  id: X.Type.String()
42037
42065
  })
42038
- ]), $ie = X.Type.Object({
42066
+ ]), Oie = X.Type.Object({
42039
42067
  background: X.Type.String(),
42040
42068
  buttons: X.Type.Optional(
42041
- X.Type.Array(X.Type.Union([X.Type.String(), Cie]))
42069
+ X.Type.Array(X.Type.Union([X.Type.String(), $ie]))
42042
42070
  )
42043
- }), PD = X.Type.Record(X.Type.String(), $ie);
42071
+ }), PD = X.Type.Record(X.Type.String(), Oie);
42044
42072
  X.Type.Object({
42045
42073
  screens: PD
42046
42074
  });
@@ -42048,7 +42076,7 @@ const ID = X.Type.Object({
42048
42076
  screens: X.Type.Optional(PD)
42049
42077
  }), ND = {
42050
42078
  screens: {}
42051
- }, Oie = X.Type.Object({
42079
+ }, Tie = X.Type.Object({
42052
42080
  name: X.Type.String(),
42053
42081
  description: X.Type.String(),
42054
42082
  startingLevel: X.Type.Number(),
@@ -42056,7 +42084,7 @@ const ID = X.Type.Object({
42056
42084
  icon: X.Type.String()
42057
42085
  }), LD = X.Type.Record(
42058
42086
  X.Type.String(),
42059
- Oie
42087
+ Tie
42060
42088
  ), DD = X.Type.Object({
42061
42089
  xpPerLevel: X.Type.Number(),
42062
42090
  notifyLevelUp: X.Type.Boolean()
@@ -42095,26 +42123,26 @@ const zD = X.Type.Object({
42095
42123
  xpPerLevel: 10,
42096
42124
  notifyLevelUp: !0
42097
42125
  }
42098
- }, Tie = X.Type.Object({
42126
+ }, Aie = X.Type.Object({
42099
42127
  color: X.Type.Optional(X.Type.String()),
42100
42128
  boxCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any())),
42101
42129
  nameCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any())),
42102
42130
  textCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any()))
42103
- }), Aie = X.Type.Object({
42131
+ }), Eie = X.Type.Object({
42104
42132
  sprites: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.String())),
42105
42133
  name: X.Type.String(),
42106
- style: X.Type.Optional(Tie)
42134
+ style: X.Type.Optional(Aie)
42107
42135
  }), BD = X.Type.Object({
42108
42136
  config: X.Type.Object({
42109
42137
  imagesPath: X.Type.String()
42110
42138
  }),
42111
- characters: X.Type.Record(X.Type.String(), Aie)
42139
+ characters: X.Type.Record(X.Type.String(), Eie)
42112
42140
  }), qD = {
42113
42141
  config: {
42114
42142
  imagesPath: ""
42115
42143
  },
42116
42144
  characters: {}
42117
- }, Eie = X.Type.Object({
42145
+ }, Mie = X.Type.Object({
42118
42146
  backgrounds: X.Type.Object({
42119
42147
  width: X.Type.Number(),
42120
42148
  height: X.Type.Number()
@@ -42142,7 +42170,7 @@ const zD = X.Type.Object({
42142
42170
  })
42143
42171
  )
42144
42172
  })
42145
- }), Mie = {
42173
+ }), Pie = {
42146
42174
  backgrounds: {
42147
42175
  width: 880,
42148
42176
  height: 720
@@ -42178,7 +42206,7 @@ const zD = X.Type.Object({
42178
42206
  baseDataPath: "",
42179
42207
  gameTitle: "Narrat Game",
42180
42208
  images: {},
42181
- layout: Mie,
42209
+ layout: Pie,
42182
42210
  gameFlow: {},
42183
42211
  dialogPanel: {
42184
42212
  overlayMode: !0,
@@ -42228,7 +42256,7 @@ const zD = X.Type.Object({
42228
42256
  this.config = t;
42229
42257
  }
42230
42258
  }
42231
- }), Pie = X.Type.Optional(
42259
+ }), Iie = X.Type.Optional(
42232
42260
  X.Type.Object({
42233
42261
  animateText: X.Type.Optional(X.Type.Boolean()),
42234
42262
  textSpeed: X.Type.Optional(X.Type.Number()),
@@ -42239,7 +42267,7 @@ const zD = X.Type.Object({
42239
42267
  width: X.Type.Optional(X.Type.Number()),
42240
42268
  height: X.Type.Optional(X.Type.Number())
42241
42269
  })
42242
- ), Iie = X.Type.Object({
42270
+ ), Nie = X.Type.Object({
42243
42271
  engineSplashScreen: X.Type.Optional(
42244
42272
  X.Type.Object({
42245
42273
  skip: X.Type.Optional(X.Type.Boolean()),
@@ -42254,67 +42282,67 @@ const zD = X.Type.Object({
42254
42282
  startButtonText: X.Type.Optional(X.Type.String())
42255
42283
  })
42256
42284
  )
42257
- }), Nie = X.Type.Object({
42285
+ }), Lie = X.Type.Object({
42258
42286
  timeOnScreen: X.Type.Number(),
42259
42287
  alsoPrintInDialogue: X.Type.Optional(X.Type.Boolean())
42260
- }), Lie = X.Type.Object({
42288
+ }), Die = X.Type.Object({
42261
42289
  name: X.Type.String(),
42262
42290
  icon: X.Type.String(),
42263
42291
  startingValue: X.Type.Number(),
42264
42292
  maxValue: X.Type.Optional(X.Type.Number()),
42265
42293
  minValue: X.Type.Optional(X.Type.Number())
42266
- }), Die = X.Type.Record(
42294
+ }), Rie = X.Type.Record(
42267
42295
  X.Type.String(),
42268
- Lie
42269
- ), Rie = X.Type.Record(
42296
+ Die
42297
+ ), zie = X.Type.Record(
42270
42298
  X.Type.String(),
42271
42299
  X.Type.Object({
42272
42300
  onlyInteractOutsideOfScripts: X.Type.Optional(X.Type.Boolean())
42273
42301
  })
42274
- ), zie = X.Type.Object({
42302
+ ), Fie = X.Type.Object({
42275
42303
  delay: X.Type.Optional(X.Type.Number()),
42276
42304
  duration: X.Type.Optional(X.Type.Number())
42277
- }), Fie = X.Type.Record(
42305
+ }), Bie = X.Type.Record(
42278
42306
  X.Type.String(),
42279
- zie
42280
- ), Bie = X.Type.Object({
42307
+ Fie
42308
+ ), qie = X.Type.Object({
42281
42309
  text: X.Type.String()
42282
- }), qie = X.Type.Record(
42310
+ }), Vie = X.Type.Record(
42283
42311
  X.Type.String(),
42284
- Bie
42285
- ), Vie = X.Type.Object({
42312
+ qie
42313
+ ), Hie = X.Type.Object({
42286
42314
  showScriptFinishedMessage: X.Type.Optional(X.Type.Boolean())
42287
- }), Hie = X.Type.Object({
42315
+ }), Uie = X.Type.Object({
42288
42316
  mode: X.Type.String(),
42289
42317
  slots: X.Type.Number()
42290
- }), WD = X.Type.Array(X.Type.String()), Uie = [], Wie = X.Type.Object({
42318
+ }), WD = X.Type.Array(X.Type.String()), Wie = [], Kie = X.Type.Object({
42291
42319
  baseAssetsPath: X.Type.Optional(X.Type.String()),
42292
42320
  baseDataPath: X.Type.Optional(X.Type.String()),
42293
42321
  gameTitle: X.Type.String(),
42294
42322
  images: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.String())),
42295
- layout: Eie,
42323
+ layout: Mie,
42296
42324
  gameFlow: X.Type.Optional(
42297
42325
  X.Type.Object({
42298
42326
  labelToJumpOnScriptEnd: X.Type.Optional(X.Type.String())
42299
42327
  })
42300
42328
  ),
42301
- dialogPanel: X.Type.Optional(Pie),
42302
- splashScreens: X.Type.Optional(Iie),
42329
+ dialogPanel: X.Type.Optional(Iie),
42330
+ splashScreens: X.Type.Optional(Nie),
42303
42331
  screens: X.Type.Union([X.Type.String(), ID]),
42304
42332
  buttons: X.Type.Optional(X.Type.Union([X.Type.String(), ED])),
42305
42333
  skills: X.Type.Optional(X.Type.Union([X.Type.String(), zD])),
42306
42334
  scripts: X.Type.Union([X.Type.String(), WD]),
42307
42335
  audio: X.Type.Union([X.Type.String(), _D]),
42308
- notifications: X.Type.Optional(Nie),
42336
+ notifications: X.Type.Optional(Lie),
42309
42337
  tooltips: X.Type.Optional(X.Type.Union([X.Type.String(), VD])),
42310
- hudStats: Die,
42338
+ hudStats: Rie,
42311
42339
  items: X.Type.Optional(X.Type.Union([X.Type.String(), CD])),
42312
- interactionTags: X.Type.Optional(Rie),
42340
+ interactionTags: X.Type.Optional(zie),
42313
42341
  quests: X.Type.Optional(X.Type.Union([X.Type.String(), OD])),
42314
- transitions: X.Type.Optional(Fie),
42315
- menuButtons: X.Type.Optional(qie),
42316
- debugging: X.Type.Optional(Vie),
42317
- saves: X.Type.Optional(Hie),
42342
+ transitions: X.Type.Optional(Bie),
42343
+ menuButtons: X.Type.Optional(Vie),
42344
+ debugging: X.Type.Optional(Hie),
42345
+ saves: X.Type.Optional(Uie),
42318
42346
  characters: X.Type.Union([X.Type.String(), BD])
42319
42347
  });
42320
42348
  var My = { exports: {} }, KD = {}, ra = {}, nc = {}, jd = {}, Pn = {}, Yf = {};
@@ -43229,7 +43257,7 @@ var Vn = {};
43229
43257
  })(Vn);
43230
43258
  var Ha = {};
43231
43259
  Object.defineProperty(Ha, "__esModule", { value: !0 });
43232
- const yi = Pn, Kie = {
43260
+ const yi = Pn, Jie = {
43233
43261
  data: new yi.Name("data"),
43234
43262
  valCxt: new yi.Name("valCxt"),
43235
43263
  instancePath: new yi.Name("instancePath"),
@@ -43247,7 +43275,7 @@ const yi = Pn, Kie = {
43247
43275
  jsonLen: new yi.Name("jsonLen"),
43248
43276
  jsonPart: new yi.Name("jsonPart")
43249
43277
  };
43250
- Ha.default = Kie;
43278
+ Ha.default = Jie;
43251
43279
  (function(t) {
43252
43280
  Object.defineProperty(t, "__esModule", { value: !0 }), t.extendErrors = t.resetErrorsCount = t.reportExtraError = t.reportError = t.keyword$DataError = t.keywordError = void 0;
43253
43281
  const e = Pn, n = Vn, r = Ha;
@@ -43322,19 +43350,19 @@ Ha.default = Kie;
43322
43350
  })(jd);
43323
43351
  Object.defineProperty(nc, "__esModule", { value: !0 });
43324
43352
  nc.boolOrEmptySchema = nc.topBoolOrEmptySchema = void 0;
43325
- const Jie = jd, Gie = Pn, Qie = Ha, Yie = {
43353
+ const Gie = jd, Qie = Pn, Yie = Ha, Xie = {
43326
43354
  message: "boolean schema is false"
43327
43355
  };
43328
- function Xie(t) {
43356
+ function Zie(t) {
43329
43357
  const { gen: e, schema: n, validateName: r } = t;
43330
- n === !1 ? JD(t, !1) : typeof n == "object" && n.$async === !0 ? e.return(Qie.default.data) : (e.assign((0, Gie._)`${r}.errors`, null), e.return(!0));
43358
+ n === !1 ? JD(t, !1) : typeof n == "object" && n.$async === !0 ? e.return(Yie.default.data) : (e.assign((0, Qie._)`${r}.errors`, null), e.return(!0));
43331
43359
  }
43332
- nc.topBoolOrEmptySchema = Xie;
43333
- function Zie(t, e) {
43360
+ nc.topBoolOrEmptySchema = Zie;
43361
+ function eoe(t, e) {
43334
43362
  const { gen: n, schema: r } = t;
43335
43363
  r === !1 ? (n.var(e, !1), JD(t)) : n.var(e, !0);
43336
43364
  }
43337
- nc.boolOrEmptySchema = Zie;
43365
+ nc.boolOrEmptySchema = eoe;
43338
43366
  function JD(t, e) {
43339
43367
  const { gen: n, data: r } = t, i = {
43340
43368
  gen: n,
@@ -43346,17 +43374,17 @@ function JD(t, e) {
43346
43374
  params: {},
43347
43375
  it: t
43348
43376
  };
43349
- (0, Jie.reportError)(i, Yie, void 0, e);
43377
+ (0, Gie.reportError)(i, Xie, void 0, e);
43350
43378
  }
43351
43379
  var Sd = {}, Uu = {};
43352
43380
  Object.defineProperty(Uu, "__esModule", { value: !0 });
43353
43381
  Uu.getRules = Uu.isJSONType = void 0;
43354
- const eoe = ["string", "number", "integer", "boolean", "null", "object", "array"], toe = new Set(eoe);
43355
- function noe(t) {
43356
- return typeof t == "string" && toe.has(t);
43382
+ const toe = ["string", "number", "integer", "boolean", "null", "object", "array"], noe = new Set(toe);
43383
+ function roe(t) {
43384
+ return typeof t == "string" && noe.has(t);
43357
43385
  }
43358
- Uu.isJSONType = noe;
43359
- function roe() {
43386
+ Uu.isJSONType = roe;
43387
+ function ioe() {
43360
43388
  const t = {
43361
43389
  number: { type: "number", rules: [] },
43362
43390
  string: { type: "string", rules: [] },
@@ -43371,15 +43399,15 @@ function roe() {
43371
43399
  keywords: {}
43372
43400
  };
43373
43401
  }
43374
- Uu.getRules = roe;
43402
+ Uu.getRules = ioe;
43375
43403
  var ss = {};
43376
43404
  Object.defineProperty(ss, "__esModule", { value: !0 });
43377
43405
  ss.shouldUseRule = ss.shouldUseGroup = ss.schemaHasRulesForType = void 0;
43378
- function ioe({ schema: t, self: e }, n) {
43406
+ function ooe({ schema: t, self: e }, n) {
43379
43407
  const r = e.RULES.types[n];
43380
43408
  return r && r !== !0 && GD(t, r);
43381
43409
  }
43382
- ss.schemaHasRulesForType = ioe;
43410
+ ss.schemaHasRulesForType = ooe;
43383
43411
  function GD(t, e) {
43384
43412
  return e.rules.some((n) => QD(t, n));
43385
43413
  }
@@ -43537,8 +43565,8 @@ ss.shouldUseRule = QD;
43537
43565
  var sm = {};
43538
43566
  Object.defineProperty(sm, "__esModule", { value: !0 });
43539
43567
  sm.assignDefaults = void 0;
43540
- const ul = Pn, ooe = Vn;
43541
- function aoe(t, e) {
43568
+ const ul = Pn, aoe = Vn;
43569
+ function soe(t, e) {
43542
43570
  const { properties: n, items: r } = t.schema;
43543
43571
  if (e === "object" && n)
43544
43572
  for (const i in n)
@@ -43546,14 +43574,14 @@ function aoe(t, e) {
43546
43574
  else
43547
43575
  e === "array" && Array.isArray(r) && r.forEach((i, o) => cA(t, o, i.default));
43548
43576
  }
43549
- sm.assignDefaults = aoe;
43577
+ sm.assignDefaults = soe;
43550
43578
  function cA(t, e, n) {
43551
43579
  const { gen: r, compositeRule: i, data: o, opts: a } = t;
43552
43580
  if (n === void 0)
43553
43581
  return;
43554
43582
  const s = (0, ul._)`${o}${(0, ul.getProperty)(e)}`;
43555
43583
  if (i) {
43556
- (0, ooe.checkStrictMode)(t, `default is ignored for: ${s}`);
43584
+ (0, aoe.checkStrictMode)(t, `default is ignored for: ${s}`);
43557
43585
  return;
43558
43586
  }
43559
43587
  let u = (0, ul._)`${s} === undefined`;
@@ -43562,22 +43590,22 @@ function cA(t, e, n) {
43562
43590
  var Ta = {}, An = {};
43563
43591
  Object.defineProperty(An, "__esModule", { value: !0 });
43564
43592
  An.validateUnion = An.validateArray = An.usePattern = An.callValidateCode = An.schemaProperties = An.allSchemaProperties = An.noPropertyInData = An.propertyInData = An.isOwnProperty = An.hasPropFunc = An.reportMissingProp = An.checkMissingProp = An.checkReportMissingProp = void 0;
43565
- const br = Pn, yw = Vn, $s = Ha, soe = Vn;
43566
- function uoe(t, e) {
43593
+ const br = Pn, yw = Vn, $s = Ha, uoe = Vn;
43594
+ function loe(t, e) {
43567
43595
  const { gen: n, data: r, it: i } = t;
43568
43596
  n.if(ww(n, r, e, i.opts.ownProperties), () => {
43569
43597
  t.setParams({ missingProperty: (0, br._)`${e}` }, !0), t.error();
43570
43598
  });
43571
43599
  }
43572
- An.checkReportMissingProp = uoe;
43573
- function loe({ gen: t, data: e, it: { opts: n } }, r, i) {
43600
+ An.checkReportMissingProp = loe;
43601
+ function coe({ gen: t, data: e, it: { opts: n } }, r, i) {
43574
43602
  return (0, br.or)(...r.map((o) => (0, br.and)(ww(t, e, o, n.ownProperties), (0, br._)`${i} = ${o}`)));
43575
43603
  }
43576
- An.checkMissingProp = loe;
43577
- function coe(t, e) {
43604
+ An.checkMissingProp = coe;
43605
+ function foe(t, e) {
43578
43606
  t.setParams({ missingProperty: e }, !0), t.error();
43579
43607
  }
43580
- An.reportMissingProp = coe;
43608
+ An.reportMissingProp = foe;
43581
43609
  function YD(t) {
43582
43610
  return t.scopeValue("func", {
43583
43611
  ref: Object.prototype.hasOwnProperty,
@@ -43589,11 +43617,11 @@ function bw(t, e, n) {
43589
43617
  return (0, br._)`${YD(t)}.call(${e}, ${n})`;
43590
43618
  }
43591
43619
  An.isOwnProperty = bw;
43592
- function foe(t, e, n, r) {
43620
+ function doe(t, e, n, r) {
43593
43621
  const i = (0, br._)`${e}${(0, br.getProperty)(n)} !== undefined`;
43594
43622
  return r ? (0, br._)`${i} && ${bw(t, e, n)}` : i;
43595
43623
  }
43596
- An.propertyInData = foe;
43624
+ An.propertyInData = doe;
43597
43625
  function ww(t, e, n, r) {
43598
43626
  const i = (0, br._)`${e}${(0, br.getProperty)(n)} === undefined`;
43599
43627
  return r ? (0, br.or)(i, (0, br.not)(bw(t, e, n))) : i;
@@ -43603,11 +43631,11 @@ function XD(t) {
43603
43631
  return t ? Object.keys(t).filter((e) => e !== "__proto__") : [];
43604
43632
  }
43605
43633
  An.allSchemaProperties = XD;
43606
- function doe(t, e) {
43634
+ function hoe(t, e) {
43607
43635
  return XD(e).filter((n) => !(0, yw.alwaysValidSchema)(t, e[n]));
43608
43636
  }
43609
- An.schemaProperties = doe;
43610
- function hoe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath: i, errorPath: o }, it: a }, s, u, l) {
43637
+ An.schemaProperties = hoe;
43638
+ function poe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath: i, errorPath: o }, it: a }, s, u, l) {
43611
43639
  const f = l ? (0, br._)`${t}, ${e}, ${r}${i}` : e, c = [
43612
43640
  [$s.default.instancePath, (0, br.strConcat)($s.default.instancePath, o)],
43613
43641
  [$s.default.parentData, a.parentData],
@@ -43618,18 +43646,18 @@ function hoe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath
43618
43646
  const d = (0, br._)`${f}, ${n.object(...c)}`;
43619
43647
  return u !== br.nil ? (0, br._)`${s}.call(${u}, ${d})` : (0, br._)`${s}(${d})`;
43620
43648
  }
43621
- An.callValidateCode = hoe;
43622
- const poe = (0, br._)`new RegExp`;
43623
- function voe({ gen: t, it: { opts: e } }, n) {
43649
+ An.callValidateCode = poe;
43650
+ const voe = (0, br._)`new RegExp`;
43651
+ function moe({ gen: t, it: { opts: e } }, n) {
43624
43652
  const r = e.unicodeRegExp ? "u" : "", { regExp: i } = e.code, o = i(n, r);
43625
43653
  return t.scopeValue("pattern", {
43626
43654
  key: o.toString(),
43627
43655
  ref: o,
43628
- code: (0, br._)`${i.code === "new RegExp" ? poe : (0, soe.useFunc)(t, i)}(${n}, ${r})`
43656
+ code: (0, br._)`${i.code === "new RegExp" ? voe : (0, uoe.useFunc)(t, i)}(${n}, ${r})`
43629
43657
  });
43630
43658
  }
43631
- An.usePattern = voe;
43632
- function moe(t) {
43659
+ An.usePattern = moe;
43660
+ function goe(t) {
43633
43661
  const { gen: e, data: n, keyword: r, it: i } = t, o = e.name("valid");
43634
43662
  if (i.allErrors) {
43635
43663
  const s = e.let("valid", !0);
@@ -43647,8 +43675,8 @@ function moe(t) {
43647
43675
  });
43648
43676
  }
43649
43677
  }
43650
- An.validateArray = moe;
43651
- function goe(t) {
43678
+ An.validateArray = goe;
43679
+ function yoe(t) {
43652
43680
  const { gen: e, schema: n, keyword: r, it: i } = t;
43653
43681
  if (!Array.isArray(n))
43654
43682
  throw new Error("ajv implementation error");
@@ -43664,11 +43692,11 @@ function goe(t) {
43664
43692
  e.assign(a, (0, br._)`${a} || ${s}`), t.mergeValidEvaluated(f, s) || e.if((0, br.not)(a));
43665
43693
  })), t.result(a, () => t.reset(), () => t.error(!0));
43666
43694
  }
43667
- An.validateUnion = goe;
43695
+ An.validateUnion = yoe;
43668
43696
  Object.defineProperty(Ta, "__esModule", { value: !0 });
43669
43697
  Ta.validateKeywordUsage = Ta.validSchemaType = Ta.funcKeywordCode = Ta.macroKeywordCode = void 0;
43670
- const Ii = Pn, bu = Ha, yoe = An, boe = jd;
43671
- function woe(t, e) {
43698
+ const Ii = Pn, bu = Ha, boe = An, woe = jd;
43699
+ function koe(t, e) {
43672
43700
  const { gen: n, keyword: r, schema: i, parentSchema: o, it: a } = t, s = e.macro.call(a.self, i, o, a), u = ZD(n, r, s);
43673
43701
  a.opts.validateSchema !== !1 && a.self.validateSchema(s, !0);
43674
43702
  const l = n.name("valid");
@@ -43680,11 +43708,11 @@ function woe(t, e) {
43680
43708
  compositeRule: !0
43681
43709
  }, l), t.pass(l, () => t.error(!0));
43682
43710
  }
43683
- Ta.macroKeywordCode = woe;
43684
- function koe(t, e) {
43711
+ Ta.macroKeywordCode = koe;
43712
+ function _oe(t, e) {
43685
43713
  var n;
43686
43714
  const { gen: r, keyword: i, schema: o, parentSchema: a, $data: s, it: u } = t;
43687
- xoe(u, e);
43715
+ joe(u, e);
43688
43716
  const l = !s && e.compile ? e.compile.call(u.self, o, a, u) : e.validate, f = ZD(r, i, l), c = r.let("valid");
43689
43717
  t.block$data(c, d), t.ok((n = e.valid) !== null && n !== void 0 ? n : c);
43690
43718
  function d() {
@@ -43692,7 +43720,7 @@ function koe(t, e) {
43692
43720
  v(), e.modifying && fA(t), g(() => t.error());
43693
43721
  else {
43694
43722
  const m = e.async ? h() : p();
43695
- e.modifying && fA(t), g(() => _oe(t, m));
43723
+ e.modifying && fA(t), g(() => xoe(t, m));
43696
43724
  }
43697
43725
  }
43698
43726
  function h() {
@@ -43705,25 +43733,25 @@ function koe(t, e) {
43705
43733
  }
43706
43734
  function v(m = e.async ? (0, Ii._)`await ` : Ii.nil) {
43707
43735
  const y = u.opts.passContext ? bu.default.this : bu.default.self, b = !("compile" in e && !s || e.schema === !1);
43708
- r.assign(c, (0, Ii._)`${m}${(0, yoe.callValidateCode)(t, f, y, b)}`, e.modifying);
43736
+ r.assign(c, (0, Ii._)`${m}${(0, boe.callValidateCode)(t, f, y, b)}`, e.modifying);
43709
43737
  }
43710
43738
  function g(m) {
43711
43739
  var y;
43712
43740
  r.if((0, Ii.not)((y = e.valid) !== null && y !== void 0 ? y : c), m);
43713
43741
  }
43714
43742
  }
43715
- Ta.funcKeywordCode = koe;
43743
+ Ta.funcKeywordCode = _oe;
43716
43744
  function fA(t) {
43717
43745
  const { gen: e, data: n, it: r } = t;
43718
43746
  e.if(r.parentData, () => e.assign(n, (0, Ii._)`${r.parentData}[${r.parentDataProperty}]`));
43719
43747
  }
43720
- function _oe(t, e) {
43748
+ function xoe(t, e) {
43721
43749
  const { gen: n } = t;
43722
43750
  n.if((0, Ii._)`Array.isArray(${e})`, () => {
43723
- n.assign(bu.default.vErrors, (0, Ii._)`${bu.default.vErrors} === null ? ${e} : ${bu.default.vErrors}.concat(${e})`).assign(bu.default.errors, (0, Ii._)`${bu.default.vErrors}.length`), (0, boe.extendErrors)(t);
43751
+ n.assign(bu.default.vErrors, (0, Ii._)`${bu.default.vErrors} === null ? ${e} : ${bu.default.vErrors}.concat(${e})`).assign(bu.default.errors, (0, Ii._)`${bu.default.vErrors}.length`), (0, woe.extendErrors)(t);
43724
43752
  }, () => t.error());
43725
43753
  }
43726
- function xoe({ schemaEnv: t }, e) {
43754
+ function joe({ schemaEnv: t }, e) {
43727
43755
  if (e.async && !t.$async)
43728
43756
  throw new Error("async keyword in sync schema");
43729
43757
  }
@@ -43732,11 +43760,11 @@ function ZD(t, e, n) {
43732
43760
  throw new Error(`keyword "${e}" failed to compile`);
43733
43761
  return t.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, Ii.stringify)(n) });
43734
43762
  }
43735
- function joe(t, e, n = !1) {
43763
+ function Soe(t, e, n = !1) {
43736
43764
  return !e.length || e.some((r) => r === "array" ? Array.isArray(t) : r === "object" ? t && typeof t == "object" && !Array.isArray(t) : typeof t == r || n && typeof t > "u");
43737
43765
  }
43738
- Ta.validSchemaType = joe;
43739
- function Soe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
43766
+ Ta.validSchemaType = Soe;
43767
+ function Coe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
43740
43768
  if (Array.isArray(i.keyword) ? !i.keyword.includes(o) : i.keyword !== o)
43741
43769
  throw new Error("ajv implementation error");
43742
43770
  const a = i.dependencies;
@@ -43750,12 +43778,12 @@ function Soe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
43750
43778
  throw new Error(u);
43751
43779
  }
43752
43780
  }
43753
- Ta.validateKeywordUsage = Soe;
43781
+ Ta.validateKeywordUsage = Coe;
43754
43782
  var Bs = {};
43755
43783
  Object.defineProperty(Bs, "__esModule", { value: !0 });
43756
43784
  Bs.extendSubschemaMode = Bs.extendSubschemaData = Bs.getSubschema = void 0;
43757
43785
  const xa = Pn, eR = Vn;
43758
- function Coe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: o, topSchemaRef: a }) {
43786
+ function $oe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: o, topSchemaRef: a }) {
43759
43787
  if (e !== void 0 && r !== void 0)
43760
43788
  throw new Error('both "keyword" and "schema" passed, only one allowed');
43761
43789
  if (e !== void 0) {
@@ -43782,8 +43810,8 @@ function Coe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchema
43782
43810
  }
43783
43811
  throw new Error('either "keyword" or "schema" must be passed');
43784
43812
  }
43785
- Bs.getSubschema = Coe;
43786
- function $oe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, propertyName: a }) {
43813
+ Bs.getSubschema = $oe;
43814
+ function Ooe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, propertyName: a }) {
43787
43815
  if (i !== void 0 && n !== void 0)
43788
43816
  throw new Error('both "data" and "dataProp" passed, only one allowed');
43789
43817
  const { gen: s } = e;
@@ -43800,11 +43828,11 @@ function $oe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, proper
43800
43828
  t.data = l, t.dataLevel = e.dataLevel + 1, t.dataTypes = [], e.definedProperties = /* @__PURE__ */ new Set(), t.parentData = e.data, t.dataNames = [...e.dataNames, l];
43801
43829
  }
43802
43830
  }
43803
- Bs.extendSubschemaData = $oe;
43804
- function Ooe(t, { jtdDiscriminator: e, jtdMetadata: n, compositeRule: r, createErrors: i, allErrors: o }) {
43831
+ Bs.extendSubschemaData = Ooe;
43832
+ function Toe(t, { jtdDiscriminator: e, jtdMetadata: n, compositeRule: r, createErrors: i, allErrors: o }) {
43805
43833
  r !== void 0 && (t.compositeRule = r), i !== void 0 && (t.createErrors = i), o !== void 0 && (t.allErrors = o), t.jtdDiscriminator = e, t.jtdMetadata = n;
43806
43834
  }
43807
- Bs.extendSubschemaMode = Ooe;
43835
+ Bs.extendSubschemaMode = Toe;
43808
43836
  var ui = {}, tR = function t(e, n) {
43809
43837
  if (e === n)
43810
43838
  return !0;
@@ -43902,19 +43930,19 @@ function Uh(t, e, n, r, i, o, a, s, u, l) {
43902
43930
  } else if (f in Ns.propsKeywords) {
43903
43931
  if (c && typeof c == "object")
43904
43932
  for (var h in c)
43905
- Uh(t, e, n, c[h], i + "/" + f + "/" + Toe(h), o, i, f, r, h);
43933
+ Uh(t, e, n, c[h], i + "/" + f + "/" + Aoe(h), o, i, f, r, h);
43906
43934
  } else
43907
43935
  (f in Ns.keywords || t.allKeys && !(f in Ns.skipKeywords)) && Uh(t, e, n, c, i + "/" + f, o, i, f, r);
43908
43936
  }
43909
43937
  n(r, i, o, a, s, u, l);
43910
43938
  }
43911
43939
  }
43912
- function Toe(t) {
43940
+ function Aoe(t) {
43913
43941
  return t.replace(/~/g, "~0").replace(/\//g, "~1");
43914
43942
  }
43915
43943
  Object.defineProperty(ui, "__esModule", { value: !0 });
43916
43944
  ui.getSchemaRefs = ui.resolveUrl = ui.normalizeId = ui._getFullPath = ui.getFullPath = ui.inlineRef = void 0;
43917
- const Aoe = Vn, Eoe = tR, Moe = nR.exports, Poe = /* @__PURE__ */ new Set([
43945
+ const Eoe = Vn, Moe = tR, Poe = nR.exports, Ioe = /* @__PURE__ */ new Set([
43918
43946
  "type",
43919
43947
  "format",
43920
43948
  "pattern",
@@ -43932,11 +43960,11 @@ const Aoe = Vn, Eoe = tR, Moe = nR.exports, Poe = /* @__PURE__ */ new Set([
43932
43960
  "enum",
43933
43961
  "const"
43934
43962
  ]);
43935
- function Ioe(t, e = !0) {
43963
+ function Noe(t, e = !0) {
43936
43964
  return typeof t == "boolean" ? !0 : e === !0 ? !Iy(t) : e ? rR(t) <= e : !1;
43937
43965
  }
43938
- ui.inlineRef = Ioe;
43939
- const Noe = /* @__PURE__ */ new Set([
43966
+ ui.inlineRef = Noe;
43967
+ const Loe = /* @__PURE__ */ new Set([
43940
43968
  "$ref",
43941
43969
  "$recursiveRef",
43942
43970
  "$recursiveAnchor",
@@ -43945,7 +43973,7 @@ const Noe = /* @__PURE__ */ new Set([
43945
43973
  ]);
43946
43974
  function Iy(t) {
43947
43975
  for (const e in t) {
43948
- if (Noe.has(e))
43976
+ if (Loe.has(e))
43949
43977
  return !0;
43950
43978
  const n = t[e];
43951
43979
  if (Array.isArray(n) && n.some(Iy) || typeof n == "object" && Iy(n))
@@ -43958,7 +43986,7 @@ function rR(t) {
43958
43986
  for (const n in t) {
43959
43987
  if (n === "$ref")
43960
43988
  return 1 / 0;
43961
- if (e++, !Poe.has(n) && (typeof t[n] == "object" && (0, Aoe.eachItem)(t[n], (r) => e += rR(r)), e === 1 / 0))
43989
+ if (e++, !Ioe.has(n) && (typeof t[n] == "object" && (0, Eoe.eachItem)(t[n], (r) => e += rR(r)), e === 1 / 0))
43962
43990
  return 1 / 0;
43963
43991
  }
43964
43992
  return e;
@@ -43973,21 +44001,21 @@ function oR(t, e) {
43973
44001
  return t.serialize(e).split("#")[0] + "#";
43974
44002
  }
43975
44003
  ui._getFullPath = oR;
43976
- const Loe = /#\/?$/;
44004
+ const Doe = /#\/?$/;
43977
44005
  function Ll(t) {
43978
- return t ? t.replace(Loe, "") : "";
44006
+ return t ? t.replace(Doe, "") : "";
43979
44007
  }
43980
44008
  ui.normalizeId = Ll;
43981
- function Doe(t, e, n) {
44009
+ function Roe(t, e, n) {
43982
44010
  return n = Ll(n), t.resolve(e, n);
43983
44011
  }
43984
- ui.resolveUrl = Doe;
43985
- const Roe = /^[a-z_][-a-z0-9._]*$/i;
43986
- function zoe(t, e) {
44012
+ ui.resolveUrl = Roe;
44013
+ const zoe = /^[a-z_][-a-z0-9._]*$/i;
44014
+ function Foe(t, e) {
43987
44015
  if (typeof t == "boolean")
43988
44016
  return {};
43989
44017
  const { schemaId: n, uriResolver: r } = this.opts, i = Ll(t[n] || e), o = { "": i }, a = iR(r, i, !1), s = {}, u = /* @__PURE__ */ new Set();
43990
- return Moe(t, { allKeys: !0 }, (c, d, h, p) => {
44018
+ return Poe(t, { allKeys: !0 }, (c, d, h, p) => {
43991
44019
  if (p === void 0)
43992
44020
  return;
43993
44021
  const v = a + d;
@@ -44003,54 +44031,54 @@ function zoe(t, e) {
44003
44031
  }
44004
44032
  function y(b) {
44005
44033
  if (typeof b == "string") {
44006
- if (!Roe.test(b))
44034
+ if (!zoe.test(b))
44007
44035
  throw new Error(`invalid anchor "${b}"`);
44008
44036
  m.call(this, `#${b}`);
44009
44037
  }
44010
44038
  }
44011
44039
  }), s;
44012
44040
  function l(c, d, h) {
44013
- if (d !== void 0 && !Eoe(c, d))
44041
+ if (d !== void 0 && !Moe(c, d))
44014
44042
  throw f(h);
44015
44043
  }
44016
44044
  function f(c) {
44017
44045
  return new Error(`reference "${c}" resolves to more than one schema`);
44018
44046
  }
44019
44047
  }
44020
- ui.getSchemaRefs = zoe;
44048
+ ui.getSchemaRefs = Foe;
44021
44049
  Object.defineProperty(ra, "__esModule", { value: !0 });
44022
44050
  ra.getData = ra.KeywordCxt = ra.validateFunctionCode = void 0;
44023
- const aR = nc, dA = Sd, kw = ss, iv = Sd, Foe = sm, lf = Ta, Cg = Bs, Dt = Pn, ln = Ha, Boe = ui, us = Vn, Lc = jd;
44024
- function qoe(t) {
44051
+ const aR = nc, dA = Sd, kw = ss, iv = Sd, Boe = sm, lf = Ta, Cg = Bs, Dt = Pn, ln = Ha, qoe = ui, us = Vn, Lc = jd;
44052
+ function Voe(t) {
44025
44053
  if (lR(t) && (cR(t), uR(t))) {
44026
- Uoe(t);
44054
+ Woe(t);
44027
44055
  return;
44028
44056
  }
44029
44057
  sR(t, () => (0, aR.topBoolOrEmptySchema)(t));
44030
44058
  }
44031
- ra.validateFunctionCode = qoe;
44059
+ ra.validateFunctionCode = Voe;
44032
44060
  function sR({ gen: t, validateName: e, schema: n, schemaEnv: r, opts: i }, o) {
44033
44061
  i.code.es5 ? t.func(e, (0, Dt._)`${ln.default.data}, ${ln.default.valCxt}`, r.$async, () => {
44034
- t.code((0, Dt._)`"use strict"; ${hA(n, i)}`), Hoe(t, i), t.code(o);
44035
- }) : t.func(e, (0, Dt._)`${ln.default.data}, ${Voe(i)}`, r.$async, () => t.code(hA(n, i)).code(o));
44062
+ t.code((0, Dt._)`"use strict"; ${hA(n, i)}`), Uoe(t, i), t.code(o);
44063
+ }) : t.func(e, (0, Dt._)`${ln.default.data}, ${Hoe(i)}`, r.$async, () => t.code(hA(n, i)).code(o));
44036
44064
  }
44037
- function Voe(t) {
44065
+ function Hoe(t) {
44038
44066
  return (0, Dt._)`{${ln.default.instancePath}="", ${ln.default.parentData}, ${ln.default.parentDataProperty}, ${ln.default.rootData}=${ln.default.data}${t.dynamicRef ? (0, Dt._)`, ${ln.default.dynamicAnchors}={}` : Dt.nil}}={}`;
44039
44067
  }
44040
- function Hoe(t, e) {
44068
+ function Uoe(t, e) {
44041
44069
  t.if(ln.default.valCxt, () => {
44042
44070
  t.var(ln.default.instancePath, (0, Dt._)`${ln.default.valCxt}.${ln.default.instancePath}`), t.var(ln.default.parentData, (0, Dt._)`${ln.default.valCxt}.${ln.default.parentData}`), t.var(ln.default.parentDataProperty, (0, Dt._)`${ln.default.valCxt}.${ln.default.parentDataProperty}`), t.var(ln.default.rootData, (0, Dt._)`${ln.default.valCxt}.${ln.default.rootData}`), e.dynamicRef && t.var(ln.default.dynamicAnchors, (0, Dt._)`${ln.default.valCxt}.${ln.default.dynamicAnchors}`);
44043
44071
  }, () => {
44044
44072
  t.var(ln.default.instancePath, (0, Dt._)`""`), t.var(ln.default.parentData, (0, Dt._)`undefined`), t.var(ln.default.parentDataProperty, (0, Dt._)`undefined`), t.var(ln.default.rootData, ln.default.data), e.dynamicRef && t.var(ln.default.dynamicAnchors, (0, Dt._)`{}`);
44045
44073
  });
44046
44074
  }
44047
- function Uoe(t) {
44075
+ function Woe(t) {
44048
44076
  const { schema: e, opts: n, gen: r } = t;
44049
44077
  sR(t, () => {
44050
- n.$comment && e.$comment && dR(t), Qoe(t), r.let(ln.default.vErrors, null), r.let(ln.default.errors, 0), n.unevaluated && Woe(t), fR(t), Zoe(t);
44078
+ n.$comment && e.$comment && dR(t), Yoe(t), r.let(ln.default.vErrors, null), r.let(ln.default.errors, 0), n.unevaluated && Koe(t), fR(t), eae(t);
44051
44079
  });
44052
44080
  }
44053
- function Woe(t) {
44081
+ function Koe(t) {
44054
44082
  const { gen: e, validateName: n } = t;
44055
44083
  t.evaluated = e.const("evaluated", (0, Dt._)`${n}.evaluated`), e.if((0, Dt._)`${t.evaluated}.dynamicProps`, () => e.assign((0, Dt._)`${t.evaluated}.props`, (0, Dt._)`undefined`)), e.if((0, Dt._)`${t.evaluated}.dynamicItems`, () => e.assign((0, Dt._)`${t.evaluated}.items`, (0, Dt._)`undefined`));
44056
44084
  }
@@ -44058,9 +44086,9 @@ function hA(t, e) {
44058
44086
  const n = typeof t == "object" && t[e.schemaId];
44059
44087
  return n && (e.code.source || e.code.process) ? (0, Dt._)`/*# sourceURL=${n} */` : Dt.nil;
44060
44088
  }
44061
- function Koe(t, e) {
44089
+ function Joe(t, e) {
44062
44090
  if (lR(t) && (cR(t), uR(t))) {
44063
- Joe(t, e);
44091
+ Goe(t, e);
44064
44092
  return;
44065
44093
  }
44066
44094
  (0, aR.boolOrEmptySchema)(t, e);
@@ -44076,14 +44104,14 @@ function uR({ schema: t, self: e }) {
44076
44104
  function lR(t) {
44077
44105
  return typeof t.schema != "boolean";
44078
44106
  }
44079
- function Joe(t, e) {
44107
+ function Goe(t, e) {
44080
44108
  const { schema: n, gen: r, opts: i } = t;
44081
- i.$comment && n.$comment && dR(t), Yoe(t), Xoe(t);
44109
+ i.$comment && n.$comment && dR(t), Xoe(t), Zoe(t);
44082
44110
  const o = r.const("_errs", ln.default.errors);
44083
44111
  fR(t, o), r.var(e, (0, Dt._)`${o} === ${ln.default.errors}`);
44084
44112
  }
44085
44113
  function cR(t) {
44086
- (0, us.checkUnknownRules)(t), Goe(t);
44114
+ (0, us.checkUnknownRules)(t), Qoe(t);
44087
44115
  }
44088
44116
  function fR(t, e) {
44089
44117
  if (t.opts.jtd)
@@ -44091,19 +44119,19 @@ function fR(t, e) {
44091
44119
  const n = (0, dA.getSchemaTypes)(t.schema), r = (0, dA.coerceAndCheckDataType)(t, n);
44092
44120
  pA(t, n, !r, e);
44093
44121
  }
44094
- function Goe(t) {
44122
+ function Qoe(t) {
44095
44123
  const { schema: e, errSchemaPath: n, opts: r, self: i } = t;
44096
44124
  e.$ref && r.ignoreKeywordsWithRef && (0, us.schemaHasRulesButRef)(e, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
44097
44125
  }
44098
- function Qoe(t) {
44126
+ function Yoe(t) {
44099
44127
  const { schema: e, opts: n } = t;
44100
44128
  e.default !== void 0 && n.useDefaults && n.strictSchema && (0, us.checkStrictMode)(t, "default is ignored in the schema root");
44101
44129
  }
44102
- function Yoe(t) {
44130
+ function Xoe(t) {
44103
44131
  const e = t.schema[t.opts.schemaId];
44104
- e && (t.baseId = (0, Boe.resolveUrl)(t.opts.uriResolver, t.baseId, e));
44132
+ e && (t.baseId = (0, qoe.resolveUrl)(t.opts.uriResolver, t.baseId, e));
44105
44133
  }
44106
- function Xoe(t) {
44134
+ function Zoe(t) {
44107
44135
  if (t.schema.$async && !t.schemaEnv.$async)
44108
44136
  throw new Error("async schema in sync schema");
44109
44137
  }
@@ -44116,11 +44144,11 @@ function dR({ gen: t, schemaEnv: e, schema: n, errSchemaPath: r, opts: i }) {
44116
44144
  t.code((0, Dt._)`${ln.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`);
44117
44145
  }
44118
44146
  }
44119
- function Zoe(t) {
44147
+ function eae(t) {
44120
44148
  const { gen: e, schemaEnv: n, validateName: r, ValidationError: i, opts: o } = t;
44121
- n.$async ? e.if((0, Dt._)`${ln.default.errors} === 0`, () => e.return(ln.default.data), () => e.throw((0, Dt._)`new ${i}(${ln.default.vErrors})`)) : (e.assign((0, Dt._)`${r}.errors`, ln.default.vErrors), o.unevaluated && eae(t), e.return((0, Dt._)`${ln.default.errors} === 0`));
44149
+ n.$async ? e.if((0, Dt._)`${ln.default.errors} === 0`, () => e.return(ln.default.data), () => e.throw((0, Dt._)`new ${i}(${ln.default.vErrors})`)) : (e.assign((0, Dt._)`${r}.errors`, ln.default.vErrors), o.unevaluated && tae(t), e.return((0, Dt._)`${ln.default.errors} === 0`));
44122
44150
  }
44123
- function eae({ gen: t, evaluated: e, props: n, items: r }) {
44151
+ function tae({ gen: t, evaluated: e, props: n, items: r }) {
44124
44152
  n instanceof Dt.Name && t.assign((0, Dt._)`${e}.props`, n), r instanceof Dt.Name && t.assign((0, Dt._)`${e}.items`, r);
44125
44153
  }
44126
44154
  function pA(t, e, n, r) {
@@ -44129,7 +44157,7 @@ function pA(t, e, n, r) {
44129
44157
  i.block(() => pR(t, "$ref", f.all.$ref.definition));
44130
44158
  return;
44131
44159
  }
44132
- u.jtd || tae(t, e), i.block(() => {
44160
+ u.jtd || nae(t, e), i.block(() => {
44133
44161
  for (const d of f.rules)
44134
44162
  c(d);
44135
44163
  c(f.post);
@@ -44140,15 +44168,15 @@ function pA(t, e, n, r) {
44140
44168
  }
44141
44169
  function vA(t, e) {
44142
44170
  const { gen: n, schema: r, opts: { useDefaults: i } } = t;
44143
- i && (0, Foe.assignDefaults)(t, e.type), n.block(() => {
44171
+ i && (0, Boe.assignDefaults)(t, e.type), n.block(() => {
44144
44172
  for (const o of e.rules)
44145
44173
  (0, kw.shouldUseRule)(r, o) && pR(t, o.keyword, o.definition, e.type);
44146
44174
  });
44147
44175
  }
44148
- function tae(t, e) {
44149
- t.schemaEnv.meta || !t.opts.strictTypes || (nae(t, e), t.opts.allowUnionTypes || rae(t, e), iae(t, t.dataTypes));
44150
- }
44151
44176
  function nae(t, e) {
44177
+ t.schemaEnv.meta || !t.opts.strictTypes || (rae(t, e), t.opts.allowUnionTypes || iae(t, e), oae(t, t.dataTypes));
44178
+ }
44179
+ function rae(t, e) {
44152
44180
  if (!!e.length) {
44153
44181
  if (!t.dataTypes.length) {
44154
44182
  t.dataTypes = e;
@@ -44159,20 +44187,20 @@ function nae(t, e) {
44159
44187
  }), t.dataTypes = t.dataTypes.filter((n) => mA(e, n));
44160
44188
  }
44161
44189
  }
44162
- function rae(t, e) {
44190
+ function iae(t, e) {
44163
44191
  e.length > 1 && !(e.length === 2 && e.includes("null")) && _w(t, "use allowUnionTypes to allow union type keyword");
44164
44192
  }
44165
- function iae(t, e) {
44193
+ function oae(t, e) {
44166
44194
  const n = t.self.RULES.all;
44167
44195
  for (const r in n) {
44168
44196
  const i = n[r];
44169
44197
  if (typeof i == "object" && (0, kw.shouldUseRule)(t.schema, i)) {
44170
44198
  const { type: o } = i.definition;
44171
- o.length && !o.some((a) => oae(e, a)) && _w(t, `missing type "${o.join(",")}" for keyword "${r}"`);
44199
+ o.length && !o.some((a) => aae(e, a)) && _w(t, `missing type "${o.join(",")}" for keyword "${r}"`);
44172
44200
  }
44173
44201
  }
44174
44202
  }
44175
- function oae(t, e) {
44203
+ function aae(t, e) {
44176
44204
  return t.includes(e) || e === "number" && t.includes("integer");
44177
44205
  }
44178
44206
  function mA(t, e) {
@@ -44270,7 +44298,7 @@ class hR {
44270
44298
  const r = (0, Cg.getSubschema)(this.it, e);
44271
44299
  (0, Cg.extendSubschemaData)(r, this.it, e), (0, Cg.extendSubschemaMode)(r, e);
44272
44300
  const i = { ...this.it, ...r, items: void 0, props: void 0 };
44273
- return Koe(i, n), i;
44301
+ return Joe(i, n), i;
44274
44302
  }
44275
44303
  mergeEvaluated(e, n) {
44276
44304
  const { it: r, gen: i } = this;
@@ -44287,17 +44315,17 @@ function pR(t, e, n, r) {
44287
44315
  const i = new hR(t, n, e);
44288
44316
  "code" in n ? n.code(i, r) : i.$data && n.validate ? (0, lf.funcKeywordCode)(i, n) : "macro" in n ? (0, lf.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, lf.funcKeywordCode)(i, n);
44289
44317
  }
44290
- const aae = /^\/(?:[^~]|~0|~1)*$/, sae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
44318
+ const sae = /^\/(?:[^~]|~0|~1)*$/, uae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
44291
44319
  function vR(t, { dataLevel: e, dataNames: n, dataPathArr: r }) {
44292
44320
  let i, o;
44293
44321
  if (t === "")
44294
44322
  return ln.default.rootData;
44295
44323
  if (t[0] === "/") {
44296
- if (!aae.test(t))
44324
+ if (!sae.test(t))
44297
44325
  throw new Error(`Invalid JSON-pointer: ${t}`);
44298
44326
  i = t, o = ln.default.rootData;
44299
44327
  } else {
44300
- const l = sae.exec(t);
44328
+ const l = uae.exec(t);
44301
44329
  if (!l)
44302
44330
  throw new Error(`Invalid JSON-pointer: ${t}`);
44303
44331
  const f = +l[1];
@@ -44323,25 +44351,25 @@ function vR(t, { dataLevel: e, dataNames: n, dataPathArr: r }) {
44323
44351
  ra.getData = vR;
44324
44352
  var um = {};
44325
44353
  Object.defineProperty(um, "__esModule", { value: !0 });
44326
- class uae extends Error {
44354
+ class lae extends Error {
44327
44355
  constructor(e) {
44328
44356
  super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
44329
44357
  }
44330
44358
  }
44331
- um.default = uae;
44359
+ um.default = lae;
44332
44360
  var lm = {};
44333
44361
  Object.defineProperty(lm, "__esModule", { value: !0 });
44334
44362
  const $g = ui;
44335
- class lae extends Error {
44363
+ class cae extends Error {
44336
44364
  constructor(e, n, r, i) {
44337
44365
  super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, $g.resolveUrl)(e, n, r), this.missingSchema = (0, $g.normalizeId)((0, $g.getFullPath)(e, this.missingRef));
44338
44366
  }
44339
44367
  }
44340
- lm.default = lae;
44368
+ lm.default = cae;
44341
44369
  var Yi = {};
44342
44370
  Object.defineProperty(Yi, "__esModule", { value: !0 });
44343
44371
  Yi.resolveSchema = Yi.getCompilingSchema = Yi.resolveRef = Yi.compileSchema = Yi.SchemaEnv = void 0;
44344
- const Vo = Pn, cae = um, fu = Ha, Jo = ui, gA = Vn, fae = ra;
44372
+ const Vo = Pn, fae = um, fu = Ha, Jo = ui, gA = Vn, dae = ra;
44345
44373
  class cm {
44346
44374
  constructor(e) {
44347
44375
  var n;
@@ -44358,7 +44386,7 @@ function xw(t) {
44358
44386
  const n = (0, Jo.getFullPath)(this.opts.uriResolver, t.root.baseId), { es5: r, lines: i } = this.opts.code, { ownProperties: o } = this.opts, a = new Vo.CodeGen(this.scope, { es5: r, lines: i, ownProperties: o });
44359
44387
  let s;
44360
44388
  t.$async && (s = a.scopeValue("Error", {
44361
- ref: cae.default,
44389
+ ref: fae.default,
44362
44390
  code: (0, Vo._)`require("ajv/dist/runtime/validation_error").default`
44363
44391
  }));
44364
44392
  const u = a.scopeName("validate");
@@ -44389,7 +44417,7 @@ function xw(t) {
44389
44417
  };
44390
44418
  let f;
44391
44419
  try {
44392
- this._compilations.add(t), (0, fae.validateFunctionCode)(l), a.optimize(this.opts.code.optimize);
44420
+ this._compilations.add(t), (0, dae.validateFunctionCode)(l), a.optimize(this.opts.code.optimize);
44393
44421
  const c = a.toString();
44394
44422
  f = `${a.scopeRefs(fu.default.scope)}return ${c}`, this.opts.code.process && (f = this.opts.code.process(f, t));
44395
44423
  const h = new Function(`${fu.default.self}`, `${fu.default.scope}`, f)(this, this.scope.get());
@@ -44410,34 +44438,34 @@ function xw(t) {
44410
44438
  }
44411
44439
  }
44412
44440
  Yi.compileSchema = xw;
44413
- function dae(t, e, n) {
44441
+ function hae(t, e, n) {
44414
44442
  var r;
44415
44443
  n = (0, Jo.resolveUrl)(this.opts.uriResolver, e, n);
44416
44444
  const i = t.refs[n];
44417
44445
  if (i)
44418
44446
  return i;
44419
- let o = vae.call(this, t, n);
44447
+ let o = mae.call(this, t, n);
44420
44448
  if (o === void 0) {
44421
44449
  const a = (r = t.localRefs) === null || r === void 0 ? void 0 : r[n], { schemaId: s } = this.opts;
44422
44450
  a && (o = new cm({ schema: a, schemaId: s, root: t, baseId: e }));
44423
44451
  }
44424
44452
  if (o !== void 0)
44425
- return t.refs[n] = hae.call(this, o);
44453
+ return t.refs[n] = pae.call(this, o);
44426
44454
  }
44427
- Yi.resolveRef = dae;
44428
- function hae(t) {
44455
+ Yi.resolveRef = hae;
44456
+ function pae(t) {
44429
44457
  return (0, Jo.inlineRef)(t.schema, this.opts.inlineRefs) ? t.schema : t.validate ? t : xw.call(this, t);
44430
44458
  }
44431
44459
  function mR(t) {
44432
44460
  for (const e of this._compilations)
44433
- if (pae(e, t))
44461
+ if (vae(e, t))
44434
44462
  return e;
44435
44463
  }
44436
44464
  Yi.getCompilingSchema = mR;
44437
- function pae(t, e) {
44465
+ function vae(t, e) {
44438
44466
  return t.schema === e.schema && t.root === e.root && t.baseId === e.baseId;
44439
44467
  }
44440
- function vae(t, e) {
44468
+ function mae(t, e) {
44441
44469
  let n;
44442
44470
  for (; typeof (n = this.refs[e]) == "string"; )
44443
44471
  e = n;
@@ -44462,7 +44490,7 @@ function fm(t, e) {
44462
44490
  }
44463
44491
  }
44464
44492
  Yi.resolveSchema = fm;
44465
- const mae = /* @__PURE__ */ new Set([
44493
+ const gae = /* @__PURE__ */ new Set([
44466
44494
  "properties",
44467
44495
  "patternProperties",
44468
44496
  "enum",
@@ -44481,7 +44509,7 @@ function Og(t, { baseId: e, schema: n, root: r }) {
44481
44509
  return;
44482
44510
  n = u;
44483
44511
  const l = typeof n == "object" && n[this.opts.schemaId];
44484
- !mae.has(s) && l && (e = (0, Jo.resolveUrl)(this.opts.uriResolver, e, l));
44512
+ !gae.has(s) && l && (e = (0, Jo.resolveUrl)(this.opts.uriResolver, e, l));
44485
44513
  }
44486
44514
  let o;
44487
44515
  if (typeof n != "boolean" && n.$ref && !(0, gA.schemaHasRulesButRef)(n, this.RULES)) {
@@ -44492,9 +44520,9 @@ function Og(t, { baseId: e, schema: n, root: r }) {
44492
44520
  if (o = o || new cm({ schema: n, schemaId: a, root: r, baseId: e }), o.schema !== o.root.schema)
44493
44521
  return o;
44494
44522
  }
44495
- const gae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", yae = "Meta-schema for $data reference (JSON AnySchema extension proposal)", bae = "object", wae = [
44523
+ const yae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", bae = "Meta-schema for $data reference (JSON AnySchema extension proposal)", wae = "object", kae = [
44496
44524
  "$data"
44497
- ], kae = {
44525
+ ], _ae = {
44498
44526
  $data: {
44499
44527
  type: "string",
44500
44528
  anyOf: [
@@ -44506,13 +44534,13 @@ const gae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs
44506
44534
  }
44507
44535
  ]
44508
44536
  }
44509
- }, _ae = !1, xae = {
44510
- $id: gae,
44511
- description: yae,
44512
- type: bae,
44513
- required: wae,
44514
- properties: kae,
44515
- additionalProperties: _ae
44537
+ }, xae = !1, jae = {
44538
+ $id: yae,
44539
+ description: bae,
44540
+ type: wae,
44541
+ required: kae,
44542
+ properties: _ae,
44543
+ additionalProperties: xae
44516
44544
  };
44517
44545
  var jw = {}, Ny = { exports: {} };
44518
44546
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
@@ -45064,7 +45092,7 @@ jw.default = gR;
45064
45092
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
45065
45093
  return n.CodeGen;
45066
45094
  } });
45067
- const r = um, i = lm, o = Uu, a = Yi, s = Pn, u = ui, l = Sd, f = Vn, c = xae, d = jw, h = (I, N) => new RegExp(I, N);
45095
+ const r = um, i = lm, o = Uu, a = Yi, s = Pn, u = ui, l = Sd, f = Vn, c = jae, d = jw, h = (I, N) => new RegExp(I, N);
45068
45096
  h.code = "new RegExp";
45069
45097
  const p = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
45070
45098
  "validate",
@@ -45473,17 +45501,17 @@ jw.default = gR;
45473
45501
  })(KD);
45474
45502
  var Sw = {}, Cw = {}, $w = {};
45475
45503
  Object.defineProperty($w, "__esModule", { value: !0 });
45476
- const jae = {
45504
+ const Sae = {
45477
45505
  keyword: "id",
45478
45506
  code() {
45479
45507
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
45480
45508
  }
45481
45509
  };
45482
- $w.default = jae;
45510
+ $w.default = Sae;
45483
45511
  var Wu = {};
45484
45512
  Object.defineProperty(Wu, "__esModule", { value: !0 });
45485
45513
  Wu.callRef = Wu.getValidate = void 0;
45486
- const Sae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, Cae = {
45514
+ const Cae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, $ae = {
45487
45515
  keyword: "$ref",
45488
45516
  schemaType: "string",
45489
45517
  code(t) {
@@ -45492,7 +45520,7 @@ const Sae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, Cae = {
45492
45520
  return c();
45493
45521
  const f = bA.resolveRef.call(u, l, i, n);
45494
45522
  if (f === void 0)
45495
- throw new Sae.default(r.opts.uriResolver, i, n);
45523
+ throw new Cae.default(r.opts.uriResolver, i, n);
45496
45524
  if (f instanceof bA.SchemaEnv)
45497
45525
  return d(f);
45498
45526
  return h(f);
@@ -45565,19 +45593,19 @@ function Wh(t, e, n, r) {
45565
45593
  }
45566
45594
  }
45567
45595
  Wu.callRef = Wh;
45568
- Wu.default = Cae;
45596
+ Wu.default = $ae;
45569
45597
  Object.defineProperty(Cw, "__esModule", { value: !0 });
45570
- const $ae = $w, Oae = Wu, Tae = [
45598
+ const Oae = $w, Tae = Wu, Aae = [
45571
45599
  "$schema",
45572
45600
  "$id",
45573
45601
  "$defs",
45574
45602
  "$vocabulary",
45575
45603
  { keyword: "$comment" },
45576
45604
  "definitions",
45577
- $ae.default,
45578
- Oae.default
45605
+ Oae.default,
45606
+ Tae.default
45579
45607
  ];
45580
- Cw.default = Tae;
45608
+ Cw.default = Aae;
45581
45609
  var Ow = {}, Tw = {};
45582
45610
  Object.defineProperty(Tw, "__esModule", { value: !0 });
45583
45611
  const ov = Pn, Os = ov.operators, av = {
@@ -45585,38 +45613,38 @@ const ov = Pn, Os = ov.operators, av = {
45585
45613
  minimum: { okStr: ">=", ok: Os.GTE, fail: Os.LT },
45586
45614
  exclusiveMaximum: { okStr: "<", ok: Os.LT, fail: Os.GTE },
45587
45615
  exclusiveMinimum: { okStr: ">", ok: Os.GT, fail: Os.LTE }
45588
- }, Aae = {
45616
+ }, Eae = {
45589
45617
  message: ({ keyword: t, schemaCode: e }) => (0, ov.str)`must be ${av[t].okStr} ${e}`,
45590
45618
  params: ({ keyword: t, schemaCode: e }) => (0, ov._)`{comparison: ${av[t].okStr}, limit: ${e}}`
45591
- }, Eae = {
45619
+ }, Mae = {
45592
45620
  keyword: Object.keys(av),
45593
45621
  type: "number",
45594
45622
  schemaType: "number",
45595
45623
  $data: !0,
45596
- error: Aae,
45624
+ error: Eae,
45597
45625
  code(t) {
45598
45626
  const { keyword: e, data: n, schemaCode: r } = t;
45599
45627
  t.fail$data((0, ov._)`${n} ${av[e].fail} ${r} || isNaN(${n})`);
45600
45628
  }
45601
45629
  };
45602
- Tw.default = Eae;
45630
+ Tw.default = Mae;
45603
45631
  var Aw = {};
45604
45632
  Object.defineProperty(Aw, "__esModule", { value: !0 });
45605
- const cf = Pn, Mae = {
45633
+ const cf = Pn, Pae = {
45606
45634
  message: ({ schemaCode: t }) => (0, cf.str)`must be multiple of ${t}`,
45607
45635
  params: ({ schemaCode: t }) => (0, cf._)`{multipleOf: ${t}}`
45608
- }, Pae = {
45636
+ }, Iae = {
45609
45637
  keyword: "multipleOf",
45610
45638
  type: "number",
45611
45639
  schemaType: "number",
45612
45640
  $data: !0,
45613
- error: Mae,
45641
+ error: Pae,
45614
45642
  code(t) {
45615
45643
  const { gen: e, data: n, schemaCode: r, it: i } = t, o = i.opts.multipleOfPrecision, a = e.let("res"), s = o ? (0, cf._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}` : (0, cf._)`${a} !== parseInt(${a})`;
45616
45644
  t.fail$data((0, cf._)`(${r} === 0 || (${a} = ${n}/${r}, ${s}))`);
45617
45645
  }
45618
45646
  };
45619
- Aw.default = Pae;
45647
+ Aw.default = Iae;
45620
45648
  var Ew = {}, Mw = {};
45621
45649
  Object.defineProperty(Mw, "__esModule", { value: !0 });
45622
45650
  function bR(t) {
@@ -45629,72 +45657,72 @@ function bR(t) {
45629
45657
  Mw.default = bR;
45630
45658
  bR.code = 'require("ajv/dist/runtime/ucs2length").default';
45631
45659
  Object.defineProperty(Ew, "__esModule", { value: !0 });
45632
- const wu = Pn, Iae = Vn, Nae = Mw, Lae = {
45660
+ const wu = Pn, Nae = Vn, Lae = Mw, Dae = {
45633
45661
  message({ keyword: t, schemaCode: e }) {
45634
45662
  const n = t === "maxLength" ? "more" : "fewer";
45635
45663
  return (0, wu.str)`must NOT have ${n} than ${e} characters`;
45636
45664
  },
45637
45665
  params: ({ schemaCode: t }) => (0, wu._)`{limit: ${t}}`
45638
- }, Dae = {
45666
+ }, Rae = {
45639
45667
  keyword: ["maxLength", "minLength"],
45640
45668
  type: "string",
45641
45669
  schemaType: "number",
45642
45670
  $data: !0,
45643
- error: Lae,
45671
+ error: Dae,
45644
45672
  code(t) {
45645
- const { keyword: e, data: n, schemaCode: r, it: i } = t, o = e === "maxLength" ? wu.operators.GT : wu.operators.LT, a = i.opts.unicode === !1 ? (0, wu._)`${n}.length` : (0, wu._)`${(0, Iae.useFunc)(t.gen, Nae.default)}(${n})`;
45673
+ const { keyword: e, data: n, schemaCode: r, it: i } = t, o = e === "maxLength" ? wu.operators.GT : wu.operators.LT, a = i.opts.unicode === !1 ? (0, wu._)`${n}.length` : (0, wu._)`${(0, Nae.useFunc)(t.gen, Lae.default)}(${n})`;
45646
45674
  t.fail$data((0, wu._)`${a} ${o} ${r}`);
45647
45675
  }
45648
45676
  };
45649
- Ew.default = Dae;
45677
+ Ew.default = Rae;
45650
45678
  var Pw = {};
45651
45679
  Object.defineProperty(Pw, "__esModule", { value: !0 });
45652
- const Rae = An, sv = Pn, zae = {
45680
+ const zae = An, sv = Pn, Fae = {
45653
45681
  message: ({ schemaCode: t }) => (0, sv.str)`must match pattern "${t}"`,
45654
45682
  params: ({ schemaCode: t }) => (0, sv._)`{pattern: ${t}}`
45655
- }, Fae = {
45683
+ }, Bae = {
45656
45684
  keyword: "pattern",
45657
45685
  type: "string",
45658
45686
  schemaType: "string",
45659
45687
  $data: !0,
45660
- error: zae,
45688
+ error: Fae,
45661
45689
  code(t) {
45662
- const { data: e, $data: n, schema: r, schemaCode: i, it: o } = t, a = o.opts.unicodeRegExp ? "u" : "", s = n ? (0, sv._)`(new RegExp(${i}, ${a}))` : (0, Rae.usePattern)(t, r);
45690
+ const { data: e, $data: n, schema: r, schemaCode: i, it: o } = t, a = o.opts.unicodeRegExp ? "u" : "", s = n ? (0, sv._)`(new RegExp(${i}, ${a}))` : (0, zae.usePattern)(t, r);
45663
45691
  t.fail$data((0, sv._)`!${s}.test(${e})`);
45664
45692
  }
45665
45693
  };
45666
- Pw.default = Fae;
45694
+ Pw.default = Bae;
45667
45695
  var Iw = {};
45668
45696
  Object.defineProperty(Iw, "__esModule", { value: !0 });
45669
- const ff = Pn, Bae = {
45697
+ const ff = Pn, qae = {
45670
45698
  message({ keyword: t, schemaCode: e }) {
45671
45699
  const n = t === "maxProperties" ? "more" : "fewer";
45672
45700
  return (0, ff.str)`must NOT have ${n} than ${e} properties`;
45673
45701
  },
45674
45702
  params: ({ schemaCode: t }) => (0, ff._)`{limit: ${t}}`
45675
- }, qae = {
45703
+ }, Vae = {
45676
45704
  keyword: ["maxProperties", "minProperties"],
45677
45705
  type: "object",
45678
45706
  schemaType: "number",
45679
45707
  $data: !0,
45680
- error: Bae,
45708
+ error: qae,
45681
45709
  code(t) {
45682
45710
  const { keyword: e, data: n, schemaCode: r } = t, i = e === "maxProperties" ? ff.operators.GT : ff.operators.LT;
45683
45711
  t.fail$data((0, ff._)`Object.keys(${n}).length ${i} ${r}`);
45684
45712
  }
45685
45713
  };
45686
- Iw.default = qae;
45714
+ Iw.default = Vae;
45687
45715
  var Nw = {};
45688
45716
  Object.defineProperty(Nw, "__esModule", { value: !0 });
45689
- const Dc = An, df = Pn, Vae = Vn, Hae = {
45717
+ const Dc = An, df = Pn, Hae = Vn, Uae = {
45690
45718
  message: ({ params: { missingProperty: t } }) => (0, df.str)`must have required property '${t}'`,
45691
45719
  params: ({ params: { missingProperty: t } }) => (0, df._)`{missingProperty: ${t}}`
45692
- }, Uae = {
45720
+ }, Wae = {
45693
45721
  keyword: "required",
45694
45722
  type: "object",
45695
45723
  schemaType: "array",
45696
45724
  $data: !0,
45697
- error: Hae,
45725
+ error: Uae,
45698
45726
  code(t) {
45699
45727
  const { gen: e, schema: n, schemaCode: r, data: i, $data: o, it: a } = t, { opts: s } = a;
45700
45728
  if (!o && n.length === 0)
@@ -45705,7 +45733,7 @@ const Dc = An, df = Pn, Vae = Vn, Hae = {
45705
45733
  for (const v of n)
45706
45734
  if ((h == null ? void 0 : h[v]) === void 0 && !p.has(v)) {
45707
45735
  const g = a.schemaEnv.baseId + a.errSchemaPath, m = `required property "${v}" is not defined at "${g}" (strictRequired)`;
45708
- (0, Vae.checkStrictMode)(a, m, a.opts.strictRequired);
45736
+ (0, Hae.checkStrictMode)(a, m, a.opts.strictRequired);
45709
45737
  }
45710
45738
  }
45711
45739
  function l() {
@@ -45737,42 +45765,42 @@ const Dc = An, df = Pn, Vae = Vn, Hae = {
45737
45765
  }
45738
45766
  }
45739
45767
  };
45740
- Nw.default = Uae;
45768
+ Nw.default = Wae;
45741
45769
  var Lw = {};
45742
45770
  Object.defineProperty(Lw, "__esModule", { value: !0 });
45743
- const hf = Pn, Wae = {
45771
+ const hf = Pn, Kae = {
45744
45772
  message({ keyword: t, schemaCode: e }) {
45745
45773
  const n = t === "maxItems" ? "more" : "fewer";
45746
45774
  return (0, hf.str)`must NOT have ${n} than ${e} items`;
45747
45775
  },
45748
45776
  params: ({ schemaCode: t }) => (0, hf._)`{limit: ${t}}`
45749
- }, Kae = {
45777
+ }, Jae = {
45750
45778
  keyword: ["maxItems", "minItems"],
45751
45779
  type: "array",
45752
45780
  schemaType: "number",
45753
45781
  $data: !0,
45754
- error: Wae,
45782
+ error: Kae,
45755
45783
  code(t) {
45756
45784
  const { keyword: e, data: n, schemaCode: r } = t, i = e === "maxItems" ? hf.operators.GT : hf.operators.LT;
45757
45785
  t.fail$data((0, hf._)`${n}.length ${i} ${r}`);
45758
45786
  }
45759
45787
  };
45760
- Lw.default = Kae;
45788
+ Lw.default = Jae;
45761
45789
  var Dw = {}, Cd = {};
45762
45790
  Object.defineProperty(Cd, "__esModule", { value: !0 });
45763
45791
  const wR = tR;
45764
45792
  wR.code = 'require("ajv/dist/runtime/equal").default';
45765
45793
  Cd.default = wR;
45766
45794
  Object.defineProperty(Dw, "__esModule", { value: !0 });
45767
- const Tg = Sd, ai = Pn, Jae = Vn, Gae = Cd, Qae = {
45795
+ const Tg = Sd, ai = Pn, Gae = Vn, Qae = Cd, Yae = {
45768
45796
  message: ({ params: { i: t, j: e } }) => (0, ai.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,
45769
45797
  params: ({ params: { i: t, j: e } }) => (0, ai._)`{i: ${t}, j: ${e}}`
45770
- }, Yae = {
45798
+ }, Xae = {
45771
45799
  keyword: "uniqueItems",
45772
45800
  type: "array",
45773
45801
  schemaType: "boolean",
45774
45802
  $data: !0,
45775
- error: Qae,
45803
+ error: Yae,
45776
45804
  code(t) {
45777
45805
  const { gen: e, data: n, $data: r, schema: i, parentSchema: o, schemaCode: a, it: s } = t;
45778
45806
  if (!r && !i)
@@ -45795,46 +45823,46 @@ const Tg = Sd, ai = Pn, Jae = Vn, Gae = Cd, Qae = {
45795
45823
  });
45796
45824
  }
45797
45825
  function h(p, v) {
45798
- const g = (0, Jae.useFunc)(e, Gae.default), m = e.name("outer");
45826
+ const g = (0, Gae.useFunc)(e, Qae.default), m = e.name("outer");
45799
45827
  e.label(m).for((0, ai._)`;${p}--;`, () => e.for((0, ai._)`${v} = ${p}; ${v}--;`, () => e.if((0, ai._)`${g}(${n}[${p}], ${n}[${v}])`, () => {
45800
45828
  t.error(), e.assign(u, !1).break(m);
45801
45829
  })));
45802
45830
  }
45803
45831
  }
45804
45832
  };
45805
- Dw.default = Yae;
45833
+ Dw.default = Xae;
45806
45834
  var Rw = {};
45807
45835
  Object.defineProperty(Rw, "__esModule", { value: !0 });
45808
- const Ly = Pn, Xae = Vn, Zae = Cd, ese = {
45836
+ const Ly = Pn, Zae = Vn, ese = Cd, tse = {
45809
45837
  message: "must be equal to constant",
45810
45838
  params: ({ schemaCode: t }) => (0, Ly._)`{allowedValue: ${t}}`
45811
- }, tse = {
45839
+ }, nse = {
45812
45840
  keyword: "const",
45813
45841
  $data: !0,
45814
- error: ese,
45842
+ error: tse,
45815
45843
  code(t) {
45816
45844
  const { gen: e, data: n, $data: r, schemaCode: i, schema: o } = t;
45817
- r || o && typeof o == "object" ? t.fail$data((0, Ly._)`!${(0, Xae.useFunc)(e, Zae.default)}(${n}, ${i})`) : t.fail((0, Ly._)`${o} !== ${n}`);
45845
+ r || o && typeof o == "object" ? t.fail$data((0, Ly._)`!${(0, Zae.useFunc)(e, ese.default)}(${n}, ${i})`) : t.fail((0, Ly._)`${o} !== ${n}`);
45818
45846
  }
45819
45847
  };
45820
- Rw.default = tse;
45848
+ Rw.default = nse;
45821
45849
  var zw = {};
45822
45850
  Object.defineProperty(zw, "__esModule", { value: !0 });
45823
- const Kc = Pn, nse = Vn, rse = Cd, ise = {
45851
+ const Kc = Pn, rse = Vn, ise = Cd, ose = {
45824
45852
  message: "must be equal to one of the allowed values",
45825
45853
  params: ({ schemaCode: t }) => (0, Kc._)`{allowedValues: ${t}}`
45826
- }, ose = {
45854
+ }, ase = {
45827
45855
  keyword: "enum",
45828
45856
  schemaType: "array",
45829
45857
  $data: !0,
45830
- error: ise,
45858
+ error: ose,
45831
45859
  code(t) {
45832
45860
  const { gen: e, data: n, $data: r, schema: i, schemaCode: o, it: a } = t;
45833
45861
  if (!r && i.length === 0)
45834
45862
  throw new Error("enum must have non-empty array");
45835
45863
  const s = i.length >= a.opts.loopEnum;
45836
45864
  let u;
45837
- const l = () => u != null ? u : u = (0, nse.useFunc)(e, rse.default);
45865
+ const l = () => u != null ? u : u = (0, rse.useFunc)(e, ise.default);
45838
45866
  let f;
45839
45867
  if (s || r)
45840
45868
  f = e.let("valid"), t.block$data(f, c);
@@ -45854,10 +45882,9 @@ const Kc = Pn, nse = Vn, rse = Cd, ise = {
45854
45882
  }
45855
45883
  }
45856
45884
  };
45857
- zw.default = ose;
45885
+ zw.default = ase;
45858
45886
  Object.defineProperty(Ow, "__esModule", { value: !0 });
45859
- const ase = Tw, sse = Aw, use = Ew, lse = Pw, cse = Iw, fse = Nw, dse = Lw, hse = Dw, pse = Rw, vse = zw, mse = [
45860
- ase.default,
45887
+ const sse = Tw, use = Aw, lse = Ew, cse = Pw, fse = Iw, dse = Nw, hse = Lw, pse = Dw, vse = Rw, mse = zw, gse = [
45861
45888
  sse.default,
45862
45889
  use.default,
45863
45890
  lse.default,
@@ -45865,24 +45892,25 @@ const ase = Tw, sse = Aw, use = Ew, lse = Pw, cse = Iw, fse = Nw, dse = Lw, hse
45865
45892
  fse.default,
45866
45893
  dse.default,
45867
45894
  hse.default,
45895
+ pse.default,
45868
45896
  { keyword: "type", schemaType: ["string", "array"] },
45869
45897
  { keyword: "nullable", schemaType: "boolean" },
45870
- pse.default,
45871
- vse.default
45898
+ vse.default,
45899
+ mse.default
45872
45900
  ];
45873
- Ow.default = mse;
45901
+ Ow.default = gse;
45874
45902
  var Fw = {}, Sc = {};
45875
45903
  Object.defineProperty(Sc, "__esModule", { value: !0 });
45876
45904
  Sc.validateAdditionalItems = void 0;
45877
- const ku = Pn, Dy = Vn, gse = {
45905
+ const ku = Pn, Dy = Vn, yse = {
45878
45906
  message: ({ params: { len: t } }) => (0, ku.str)`must NOT have more than ${t} items`,
45879
45907
  params: ({ params: { len: t } }) => (0, ku._)`{limit: ${t}}`
45880
- }, yse = {
45908
+ }, bse = {
45881
45909
  keyword: "additionalItems",
45882
45910
  type: "array",
45883
45911
  schemaType: ["boolean", "object"],
45884
45912
  before: "uniqueItems",
45885
- error: gse,
45913
+ error: yse,
45886
45914
  code(t) {
45887
45915
  const { parentSchema: e, it: n } = t, { items: r } = e;
45888
45916
  if (!Array.isArray(r)) {
@@ -45909,11 +45937,11 @@ function kR(t, e) {
45909
45937
  }
45910
45938
  }
45911
45939
  Sc.validateAdditionalItems = kR;
45912
- Sc.default = yse;
45940
+ Sc.default = bse;
45913
45941
  var Bw = {}, Cc = {};
45914
45942
  Object.defineProperty(Cc, "__esModule", { value: !0 });
45915
45943
  Cc.validateTuple = void 0;
45916
- const wA = Pn, Kh = Vn, bse = An, wse = {
45944
+ const wA = Pn, Kh = Vn, wse = An, kse = {
45917
45945
  keyword: "items",
45918
45946
  type: "array",
45919
45947
  schemaType: ["object", "array", "boolean"],
@@ -45922,7 +45950,7 @@ const wA = Pn, Kh = Vn, bse = An, wse = {
45922
45950
  const { schema: e, it: n } = t;
45923
45951
  if (Array.isArray(e))
45924
45952
  return _R(t, "additionalItems", e);
45925
- n.items = !0, !(0, Kh.alwaysValidSchema)(n, e) && t.ok((0, bse.validateArray)(t));
45953
+ n.items = !0, !(0, Kh.alwaysValidSchema)(n, e) && t.ok((0, wse.validateArray)(t));
45926
45954
  }
45927
45955
  };
45928
45956
  function _R(t, e, n = t.schema) {
@@ -45945,45 +45973,45 @@ function _R(t, e, n = t.schema) {
45945
45973
  }
45946
45974
  }
45947
45975
  Cc.validateTuple = _R;
45948
- Cc.default = wse;
45976
+ Cc.default = kse;
45949
45977
  Object.defineProperty(Bw, "__esModule", { value: !0 });
45950
- const kse = Cc, _se = {
45978
+ const _se = Cc, xse = {
45951
45979
  keyword: "prefixItems",
45952
45980
  type: "array",
45953
45981
  schemaType: ["array"],
45954
45982
  before: "uniqueItems",
45955
- code: (t) => (0, kse.validateTuple)(t, "items")
45983
+ code: (t) => (0, _se.validateTuple)(t, "items")
45956
45984
  };
45957
- Bw.default = _se;
45985
+ Bw.default = xse;
45958
45986
  var qw = {};
45959
45987
  Object.defineProperty(qw, "__esModule", { value: !0 });
45960
- const kA = Pn, xse = Vn, jse = An, Sse = Sc, Cse = {
45988
+ const kA = Pn, jse = Vn, Sse = An, Cse = Sc, $se = {
45961
45989
  message: ({ params: { len: t } }) => (0, kA.str)`must NOT have more than ${t} items`,
45962
45990
  params: ({ params: { len: t } }) => (0, kA._)`{limit: ${t}}`
45963
- }, $se = {
45991
+ }, Ose = {
45964
45992
  keyword: "items",
45965
45993
  type: "array",
45966
45994
  schemaType: ["object", "boolean"],
45967
45995
  before: "uniqueItems",
45968
- error: Cse,
45996
+ error: $se,
45969
45997
  code(t) {
45970
45998
  const { schema: e, parentSchema: n, it: r } = t, { prefixItems: i } = n;
45971
- r.items = !0, !(0, xse.alwaysValidSchema)(r, e) && (i ? (0, Sse.validateAdditionalItems)(t, i) : t.ok((0, jse.validateArray)(t)));
45999
+ r.items = !0, !(0, jse.alwaysValidSchema)(r, e) && (i ? (0, Cse.validateAdditionalItems)(t, i) : t.ok((0, Sse.validateArray)(t)));
45972
46000
  }
45973
46001
  };
45974
- qw.default = $se;
46002
+ qw.default = Ose;
45975
46003
  var Vw = {};
45976
46004
  Object.defineProperty(Vw, "__esModule", { value: !0 });
45977
- const _o = Pn, gh = Vn, Ose = {
46005
+ const _o = Pn, gh = Vn, Tse = {
45978
46006
  message: ({ params: { min: t, max: e } }) => e === void 0 ? (0, _o.str)`must contain at least ${t} valid item(s)` : (0, _o.str)`must contain at least ${t} and no more than ${e} valid item(s)`,
45979
46007
  params: ({ params: { min: t, max: e } }) => e === void 0 ? (0, _o._)`{minContains: ${t}}` : (0, _o._)`{minContains: ${t}, maxContains: ${e}}`
45980
- }, Tse = {
46008
+ }, Ase = {
45981
46009
  keyword: "contains",
45982
46010
  type: "array",
45983
46011
  schemaType: ["object", "boolean"],
45984
46012
  before: "uniqueItems",
45985
46013
  trackErrors: !0,
45986
- error: Ose,
46014
+ error: Tse,
45987
46015
  code(t) {
45988
46016
  const { gen: e, schema: n, parentSchema: r, data: i, it: o } = t;
45989
46017
  let a, s;
@@ -46025,7 +46053,7 @@ const _o = Pn, gh = Vn, Ose = {
46025
46053
  }
46026
46054
  }
46027
46055
  };
46028
- Vw.default = Tse;
46056
+ Vw.default = Ase;
46029
46057
  var xR = {};
46030
46058
  (function(t) {
46031
46059
  Object.defineProperty(t, "__esModule", { value: !0 }), t.validateSchemaDeps = t.validatePropertyDeps = t.error = void 0;
@@ -46097,17 +46125,17 @@ var xR = {};
46097
46125
  })(xR);
46098
46126
  var Hw = {};
46099
46127
  Object.defineProperty(Hw, "__esModule", { value: !0 });
46100
- const jR = Pn, Ase = Vn, Ese = {
46128
+ const jR = Pn, Ese = Vn, Mse = {
46101
46129
  message: "property name must be valid",
46102
46130
  params: ({ params: t }) => (0, jR._)`{propertyName: ${t.propertyName}}`
46103
- }, Mse = {
46131
+ }, Pse = {
46104
46132
  keyword: "propertyNames",
46105
46133
  type: "object",
46106
46134
  schemaType: ["object", "boolean"],
46107
- error: Ese,
46135
+ error: Mse,
46108
46136
  code(t) {
46109
46137
  const { gen: e, schema: n, data: r, it: i } = t;
46110
- if ((0, Ase.alwaysValidSchema)(i, n))
46138
+ if ((0, Ese.alwaysValidSchema)(i, n))
46111
46139
  return;
46112
46140
  const o = e.name("valid");
46113
46141
  e.forIn("key", r, (a) => {
@@ -46123,19 +46151,19 @@ const jR = Pn, Ase = Vn, Ese = {
46123
46151
  }), t.ok(o);
46124
46152
  }
46125
46153
  };
46126
- Hw.default = Mse;
46154
+ Hw.default = Pse;
46127
46155
  var dm = {};
46128
46156
  Object.defineProperty(dm, "__esModule", { value: !0 });
46129
- const yh = An, Ho = Pn, Pse = Ha, bh = Vn, Ise = {
46157
+ const yh = An, Ho = Pn, Ise = Ha, bh = Vn, Nse = {
46130
46158
  message: "must NOT have additional properties",
46131
46159
  params: ({ params: t }) => (0, Ho._)`{additionalProperty: ${t.additionalProperty}}`
46132
- }, Nse = {
46160
+ }, Lse = {
46133
46161
  keyword: "additionalProperties",
46134
46162
  type: ["object"],
46135
46163
  schemaType: ["boolean", "object"],
46136
46164
  allowUndefined: !0,
46137
46165
  trackErrors: !0,
46138
- error: Ise,
46166
+ error: Nse,
46139
46167
  code(t) {
46140
46168
  const { gen: e, schema: n, parentSchema: r, data: i, errsCount: o, it: a } = t;
46141
46169
  if (!o)
@@ -46144,7 +46172,7 @@ const yh = An, Ho = Pn, Pse = Ha, bh = Vn, Ise = {
46144
46172
  if (a.props = !0, u.removeAdditional !== "all" && (0, bh.alwaysValidSchema)(a, n))
46145
46173
  return;
46146
46174
  const l = (0, yh.allSchemaProperties)(r.properties), f = (0, yh.allSchemaProperties)(r.patternProperties);
46147
- c(), t.ok((0, Ho._)`${o} === ${Pse.default.errors}`);
46175
+ c(), t.ok((0, Ho._)`${o} === ${Ise.default.errors}`);
46148
46176
  function c() {
46149
46177
  e.forIn("key", i, (g) => {
46150
46178
  !l.length && !f.length ? p(g) : e.if(d(g), () => p(g));
@@ -46192,16 +46220,16 @@ const yh = An, Ho = Pn, Pse = Ha, bh = Vn, Ise = {
46192
46220
  }
46193
46221
  }
46194
46222
  };
46195
- dm.default = Nse;
46223
+ dm.default = Lse;
46196
46224
  var Uw = {};
46197
46225
  Object.defineProperty(Uw, "__esModule", { value: !0 });
46198
- const Lse = ra, _A = An, Ag = Vn, xA = dm, Dse = {
46226
+ const Dse = ra, _A = An, Ag = Vn, xA = dm, Rse = {
46199
46227
  keyword: "properties",
46200
46228
  type: "object",
46201
46229
  schemaType: "object",
46202
46230
  code(t) {
46203
46231
  const { gen: e, schema: n, parentSchema: r, data: i, it: o } = t;
46204
- o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && xA.default.code(new Lse.KeywordCxt(o, xA.default, "additionalProperties"));
46232
+ o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && xA.default.code(new Dse.KeywordCxt(o, xA.default, "additionalProperties"));
46205
46233
  const a = (0, _A.allSchemaProperties)(n);
46206
46234
  for (const c of a)
46207
46235
  o.definedProperties.add(c);
@@ -46224,10 +46252,10 @@ const Lse = ra, _A = An, Ag = Vn, xA = dm, Dse = {
46224
46252
  }
46225
46253
  }
46226
46254
  };
46227
- Uw.default = Dse;
46255
+ Uw.default = Rse;
46228
46256
  var Ww = {};
46229
46257
  Object.defineProperty(Ww, "__esModule", { value: !0 });
46230
- const jA = An, wh = Pn, SA = Vn, CA = Vn, Rse = {
46258
+ const jA = An, wh = Pn, SA = Vn, CA = Vn, zse = {
46231
46259
  keyword: "patternProperties",
46232
46260
  type: "object",
46233
46261
  schemaType: "object",
@@ -46262,16 +46290,16 @@ const jA = An, wh = Pn, SA = Vn, CA = Vn, Rse = {
46262
46290
  }
46263
46291
  }
46264
46292
  };
46265
- Ww.default = Rse;
46293
+ Ww.default = zse;
46266
46294
  var Kw = {};
46267
46295
  Object.defineProperty(Kw, "__esModule", { value: !0 });
46268
- const zse = Vn, Fse = {
46296
+ const Fse = Vn, Bse = {
46269
46297
  keyword: "not",
46270
46298
  schemaType: ["object", "boolean"],
46271
46299
  trackErrors: !0,
46272
46300
  code(t) {
46273
46301
  const { gen: e, schema: n, it: r } = t;
46274
- if ((0, zse.alwaysValidSchema)(r, n)) {
46302
+ if ((0, Fse.alwaysValidSchema)(r, n)) {
46275
46303
  t.fail();
46276
46304
  return;
46277
46305
  }
@@ -46285,27 +46313,27 @@ const zse = Vn, Fse = {
46285
46313
  },
46286
46314
  error: { message: "must NOT be valid" }
46287
46315
  };
46288
- Kw.default = Fse;
46316
+ Kw.default = Bse;
46289
46317
  var Jw = {};
46290
46318
  Object.defineProperty(Jw, "__esModule", { value: !0 });
46291
- const Bse = An, qse = {
46319
+ const qse = An, Vse = {
46292
46320
  keyword: "anyOf",
46293
46321
  schemaType: "array",
46294
46322
  trackErrors: !0,
46295
- code: Bse.validateUnion,
46323
+ code: qse.validateUnion,
46296
46324
  error: { message: "must match a schema in anyOf" }
46297
46325
  };
46298
- Jw.default = qse;
46326
+ Jw.default = Vse;
46299
46327
  var Gw = {};
46300
46328
  Object.defineProperty(Gw, "__esModule", { value: !0 });
46301
- const Jh = Pn, Vse = Vn, Hse = {
46329
+ const Jh = Pn, Hse = Vn, Use = {
46302
46330
  message: "must match exactly one schema in oneOf",
46303
46331
  params: ({ params: t }) => (0, Jh._)`{passingSchemas: ${t.passing}}`
46304
- }, Use = {
46332
+ }, Wse = {
46305
46333
  keyword: "oneOf",
46306
46334
  schemaType: "array",
46307
46335
  trackErrors: !0,
46308
- error: Hse,
46336
+ error: Use,
46309
46337
  code(t) {
46310
46338
  const { gen: e, schema: n, parentSchema: r, it: i } = t;
46311
46339
  if (!Array.isArray(n))
@@ -46317,7 +46345,7 @@ const Jh = Pn, Vse = Vn, Hse = {
46317
46345
  function l() {
46318
46346
  o.forEach((f, c) => {
46319
46347
  let d;
46320
- (0, Vse.alwaysValidSchema)(i, f) ? e.var(u, !0) : d = t.subschema({
46348
+ (0, Hse.alwaysValidSchema)(i, f) ? e.var(u, !0) : d = t.subschema({
46321
46349
  keyword: "oneOf",
46322
46350
  schemaProp: c,
46323
46351
  compositeRule: !0
@@ -46328,10 +46356,10 @@ const Jh = Pn, Vse = Vn, Hse = {
46328
46356
  }
46329
46357
  }
46330
46358
  };
46331
- Gw.default = Use;
46359
+ Gw.default = Wse;
46332
46360
  var Qw = {};
46333
46361
  Object.defineProperty(Qw, "__esModule", { value: !0 });
46334
- const Wse = Vn, Kse = {
46362
+ const Kse = Vn, Jse = {
46335
46363
  keyword: "allOf",
46336
46364
  schemaType: "array",
46337
46365
  code(t) {
@@ -46340,24 +46368,24 @@ const Wse = Vn, Kse = {
46340
46368
  throw new Error("ajv implementation error");
46341
46369
  const i = e.name("valid");
46342
46370
  n.forEach((o, a) => {
46343
- if ((0, Wse.alwaysValidSchema)(r, o))
46371
+ if ((0, Kse.alwaysValidSchema)(r, o))
46344
46372
  return;
46345
46373
  const s = t.subschema({ keyword: "allOf", schemaProp: a }, i);
46346
46374
  t.ok(i), t.mergeEvaluated(s);
46347
46375
  });
46348
46376
  }
46349
46377
  };
46350
- Qw.default = Kse;
46378
+ Qw.default = Jse;
46351
46379
  var Yw = {};
46352
46380
  Object.defineProperty(Yw, "__esModule", { value: !0 });
46353
- const uv = Pn, SR = Vn, Jse = {
46381
+ const uv = Pn, SR = Vn, Gse = {
46354
46382
  message: ({ params: t }) => (0, uv.str)`must match "${t.ifClause}" schema`,
46355
46383
  params: ({ params: t }) => (0, uv._)`{failingKeyword: ${t.ifClause}}`
46356
- }, Gse = {
46384
+ }, Qse = {
46357
46385
  keyword: "if",
46358
46386
  schemaType: ["object", "boolean"],
46359
46387
  trackErrors: !0,
46360
- error: Jse,
46388
+ error: Gse,
46361
46389
  code(t) {
46362
46390
  const { gen: e, parentSchema: n, it: r } = t;
46363
46391
  n.then === void 0 && n.else === void 0 && (0, SR.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
@@ -46392,47 +46420,47 @@ function $A(t, e) {
46392
46420
  const n = t.schema[e];
46393
46421
  return n !== void 0 && !(0, SR.alwaysValidSchema)(t, n);
46394
46422
  }
46395
- Yw.default = Gse;
46423
+ Yw.default = Qse;
46396
46424
  var Xw = {};
46397
46425
  Object.defineProperty(Xw, "__esModule", { value: !0 });
46398
- const Qse = Vn, Yse = {
46426
+ const Yse = Vn, Xse = {
46399
46427
  keyword: ["then", "else"],
46400
46428
  schemaType: ["object", "boolean"],
46401
46429
  code({ keyword: t, parentSchema: e, it: n }) {
46402
- e.if === void 0 && (0, Qse.checkStrictMode)(n, `"${t}" without "if" is ignored`);
46430
+ e.if === void 0 && (0, Yse.checkStrictMode)(n, `"${t}" without "if" is ignored`);
46403
46431
  }
46404
46432
  };
46405
- Xw.default = Yse;
46433
+ Xw.default = Xse;
46406
46434
  Object.defineProperty(Fw, "__esModule", { value: !0 });
46407
- const Xse = Sc, Zse = Bw, eue = Cc, tue = qw, nue = Vw, rue = xR, iue = Hw, oue = dm, aue = Uw, sue = Ww, uue = Kw, lue = Jw, cue = Gw, fue = Qw, due = Yw, hue = Xw;
46408
- function pue(t = !1) {
46435
+ const Zse = Sc, eue = Bw, tue = Cc, nue = qw, rue = Vw, iue = xR, oue = Hw, aue = dm, sue = Uw, uue = Ww, lue = Kw, cue = Jw, fue = Gw, due = Qw, hue = Yw, pue = Xw;
46436
+ function vue(t = !1) {
46409
46437
  const e = [
46410
- uue.default,
46411
46438
  lue.default,
46412
46439
  cue.default,
46413
46440
  fue.default,
46414
46441
  due.default,
46415
46442
  hue.default,
46416
- iue.default,
46443
+ pue.default,
46417
46444
  oue.default,
46418
- rue.default,
46419
46445
  aue.default,
46420
- sue.default
46446
+ iue.default,
46447
+ sue.default,
46448
+ uue.default
46421
46449
  ];
46422
- return t ? e.push(Zse.default, tue.default) : e.push(Xse.default, eue.default), e.push(nue.default), e;
46450
+ return t ? e.push(eue.default, nue.default) : e.push(Zse.default, tue.default), e.push(rue.default), e;
46423
46451
  }
46424
- Fw.default = pue;
46452
+ Fw.default = vue;
46425
46453
  var Zw = {}, ek = {};
46426
46454
  Object.defineProperty(ek, "__esModule", { value: !0 });
46427
- const Lr = Pn, vue = {
46455
+ const Lr = Pn, mue = {
46428
46456
  message: ({ schemaCode: t }) => (0, Lr.str)`must match format "${t}"`,
46429
46457
  params: ({ schemaCode: t }) => (0, Lr._)`{format: ${t}}`
46430
- }, mue = {
46458
+ }, gue = {
46431
46459
  keyword: "format",
46432
46460
  type: ["number", "string"],
46433
46461
  schemaType: "string",
46434
46462
  $data: !0,
46435
- error: vue,
46463
+ error: mue,
46436
46464
  code(t, e) {
46437
46465
  const { gen: n, data: r, $data: i, schema: o, schemaCode: a, it: s } = t, { opts: u, errSchemaPath: l, schemaEnv: f, self: c } = s;
46438
46466
  if (!u.validateFormats)
@@ -46487,10 +46515,10 @@ const Lr = Pn, vue = {
46487
46515
  }
46488
46516
  }
46489
46517
  };
46490
- ek.default = mue;
46518
+ ek.default = gue;
46491
46519
  Object.defineProperty(Zw, "__esModule", { value: !0 });
46492
- const gue = ek, yue = [gue.default];
46493
- Zw.default = yue;
46520
+ const yue = ek, bue = [yue.default];
46521
+ Zw.default = bue;
46494
46522
  var rc = {};
46495
46523
  Object.defineProperty(rc, "__esModule", { value: !0 });
46496
46524
  rc.contentVocabulary = rc.metadataVocabulary = void 0;
@@ -46509,15 +46537,15 @@ rc.contentVocabulary = [
46509
46537
  "contentSchema"
46510
46538
  ];
46511
46539
  Object.defineProperty(Sw, "__esModule", { value: !0 });
46512
- const bue = Cw, wue = Ow, kue = Fw, _ue = Zw, OA = rc, xue = [
46513
- bue.default,
46540
+ const wue = Cw, kue = Ow, _ue = Fw, xue = Zw, OA = rc, jue = [
46514
46541
  wue.default,
46515
- (0, kue.default)(),
46516
- _ue.default,
46542
+ kue.default,
46543
+ (0, _ue.default)(),
46544
+ xue.default,
46517
46545
  OA.metadataVocabulary,
46518
46546
  OA.contentVocabulary
46519
46547
  ];
46520
- Sw.default = xue;
46548
+ Sw.default = jue;
46521
46549
  var tk = {}, CR = {};
46522
46550
  (function(t) {
46523
46551
  Object.defineProperty(t, "__esModule", { value: !0 }), t.DiscrError = void 0, function(e) {
@@ -46525,14 +46553,14 @@ var tk = {}, CR = {};
46525
46553
  }(t.DiscrError || (t.DiscrError = {}));
46526
46554
  })(CR);
46527
46555
  Object.defineProperty(tk, "__esModule", { value: !0 });
46528
- const ml = Pn, Ry = CR, TA = Yi, jue = Vn, Sue = {
46556
+ const ml = Pn, Ry = CR, TA = Yi, Sue = Vn, Cue = {
46529
46557
  message: ({ params: { discrError: t, tagName: e } }) => t === Ry.DiscrError.Tag ? `tag "${e}" must be string` : `value of tag "${e}" must be in oneOf`,
46530
46558
  params: ({ params: { discrError: t, tag: e, tagName: n } }) => (0, ml._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`
46531
- }, Cue = {
46559
+ }, $ue = {
46532
46560
  keyword: "discriminator",
46533
46561
  type: "object",
46534
46562
  schemaType: "object",
46535
- error: Sue,
46563
+ error: Cue,
46536
46564
  code(t) {
46537
46565
  const { gen: e, data: n, schema: r, parentSchema: i, it: o } = t, { oneOf: a } = i;
46538
46566
  if (!o.opts.discriminator)
@@ -46563,7 +46591,7 @@ const ml = Pn, Ry = CR, TA = Yi, jue = Vn, Sue = {
46563
46591
  let g = !0;
46564
46592
  for (let w = 0; w < a.length; w++) {
46565
46593
  let k = a[w];
46566
- (k == null ? void 0 : k.$ref) && !(0, jue.schemaHasRulesButRef)(k, o.self.RULES) && (k = TA.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, k == null ? void 0 : k.$ref), k instanceof TA.SchemaEnv && (k = k.schema));
46594
+ (k == null ? void 0 : k.$ref) && !(0, Sue.schemaHasRulesButRef)(k, o.self.RULES) && (k = TA.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, k == null ? void 0 : k.$ref), k instanceof TA.SchemaEnv && (k = k.schema));
46567
46595
  const j = (h = k == null ? void 0 : k.properties) === null || h === void 0 ? void 0 : h[s];
46568
46596
  if (typeof j != "object")
46569
46597
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);
@@ -46592,8 +46620,8 @@ const ml = Pn, Ry = CR, TA = Yi, jue = Vn, Sue = {
46592
46620
  }
46593
46621
  }
46594
46622
  };
46595
- tk.default = Cue;
46596
- const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema.org/draft-07/schema#", Tue = "Core schema meta-schema", Aue = {
46623
+ tk.default = $ue;
46624
+ const Oue = "http://json-schema.org/draft-07/schema#", Tue = "http://json-schema.org/draft-07/schema#", Aue = "Core schema meta-schema", Eue = {
46597
46625
  schemaArray: {
46598
46626
  type: "array",
46599
46627
  minItems: 1,
@@ -46634,10 +46662,10 @@ const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema
46634
46662
  uniqueItems: !0,
46635
46663
  default: []
46636
46664
  }
46637
- }, Eue = [
46665
+ }, Mue = [
46638
46666
  "object",
46639
46667
  "boolean"
46640
- ], Mue = {
46668
+ ], Pue = {
46641
46669
  $id: {
46642
46670
  type: "string",
46643
46671
  format: "uri-reference"
@@ -46825,18 +46853,18 @@ const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema
46825
46853
  not: {
46826
46854
  $ref: "#"
46827
46855
  }
46828
- }, Pue = {
46829
- $schema: $ue,
46830
- $id: Oue,
46831
- title: Tue,
46832
- definitions: Aue,
46833
- type: Eue,
46834
- properties: Mue,
46856
+ }, Iue = {
46857
+ $schema: Oue,
46858
+ $id: Tue,
46859
+ title: Aue,
46860
+ definitions: Eue,
46861
+ type: Mue,
46862
+ properties: Pue,
46835
46863
  default: !0
46836
46864
  };
46837
46865
  (function(t, e) {
46838
46866
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
46839
- const n = KD, r = Sw, i = tk, o = Pue, a = ["/properties"], s = "http://json-schema.org/draft-07/schema";
46867
+ const n = KD, r = Sw, i = tk, o = Iue, a = ["/properties"], s = "http://json-schema.org/draft-07/schema";
46840
46868
  class u extends n.default {
46841
46869
  _addVocabularies() {
46842
46870
  super._addVocabularies(), r.default.forEach((d) => this.addVocabulary(d)), this.opts.discriminator && this.addKeyword(i.default);
@@ -46873,17 +46901,17 @@ const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema
46873
46901
  })(My, My.exports);
46874
46902
  const $R = /* @__PURE__ */ QR(My.exports);
46875
46903
  let Rc;
46876
- const Iue = [
46904
+ const Nue = [
46877
46905
  ["items", CD, $D],
46878
46906
  ["screens", ID, ND],
46879
46907
  ["skills", zD, FD],
46880
46908
  ["buttons", ED, MD],
46881
- ["scripts", WD, Uie],
46909
+ ["scripts", WD, Wie],
46882
46910
  ["audio", _D, xD],
46883
46911
  ["quests", OD, TD],
46884
46912
  ["tooltips", VD, HD],
46885
46913
  ["characters", BD, qD]
46886
- ], Nue = [
46914
+ ], Lue = [
46887
46915
  "baseAssetsPath",
46888
46916
  "baseDataPath",
46889
46917
  "gameTitle",
@@ -46900,22 +46928,22 @@ const Iue = [
46900
46928
  "debugging",
46901
46929
  "saves"
46902
46930
  ];
46903
- async function Lue(t) {
46931
+ async function Due(t) {
46904
46932
  const e = { ...Hu };
46905
- for (const n of Nue) {
46933
+ for (const n of Lue) {
46906
46934
  const r = t[n];
46907
46935
  r && (typeof r == "object" && !Array.isArray(r) ? e[n] = {
46908
46936
  ...e[n],
46909
46937
  ...r
46910
46938
  } : e[n] = r);
46911
46939
  }
46912
- for (const n of Iue) {
46940
+ for (const n of Nue) {
46913
46941
  const r = n[0], i = n[1], o = n[2];
46914
46942
  let a = t[r];
46915
46943
  if (a && typeof a == "string")
46916
46944
  try {
46917
46945
  a = await vw(
46918
- Rue(t.baseDataPath, a)
46946
+ zue(t.baseDataPath, a)
46919
46947
  );
46920
46948
  const s = new $R({ allErrors: !0 });
46921
46949
  if (!s.validate(i, a))
@@ -46930,11 +46958,11 @@ async function Lue(t) {
46930
46958
  Hh[n] ? Object.assign(Hh[n], Rc.transitions[n]) : Hh[n] = Rc.transitions[n];
46931
46959
  return e;
46932
46960
  }
46933
- async function Due(t) {
46961
+ async function Rue(t) {
46934
46962
  const e = await vw(t.configPath);
46935
46963
  t.baseAssetsPath ? e.baseAssetsPath = t.baseAssetsPath : e.baseAssetsPath = e.baseAssetsPath || "", t.baseDataPath ? e.baseDataPath = t.baseDataPath : e.baseDataPath = e.baseDataPath || "";
46936
46964
  const n = new $R({ allErrors: !0 });
46937
- return n.validate(Wie, e) || (Zt("Config file validation failed."), console.log(n.errors), Zt(n.errorsText())), Lue(e);
46965
+ return n.validate(Kie, e) || (Zt("Config file validation failed."), console.log(n.errors), Zt(n.errorsText())), Due(e);
46938
46966
  }
46939
46967
  function wt() {
46940
46968
  return UD().config;
@@ -46977,7 +47005,7 @@ function lv(t) {
46977
47005
  function gs(t) {
46978
47006
  return t.startsWith("http") ? t : wt().baseAssetsPath ? `${wt().baseAssetsPath}${t}` : t;
46979
47007
  }
46980
- function Rue(t, e) {
47008
+ function zue(t, e) {
46981
47009
  return `${t}${e}`;
46982
47010
  }
46983
47011
  function MR(t) {
@@ -46987,7 +47015,7 @@ function pu(t) {
46987
47015
  const e = OR().buttons[t];
46988
47016
  return e || Zt(`Button config for button ${t} doesn't exist`), e;
46989
47017
  }
46990
- function zue(t) {
47018
+ function Fue(t) {
46991
47019
  const e = rk().screens[t];
46992
47020
  return e || Zt(`Screen config for screen ${t} doesn't exist`), e;
46993
47021
  }
@@ -47020,11 +47048,11 @@ function PR(t, e, n) {
47020
47048
  u,
47021
47049
  l
47022
47050
  );
47023
- isNaN(Number(f)) || (f = Number(f)), u > 0 && (s = s[a]), [s, a] = Bue(s, f);
47051
+ isNaN(Number(f)) || (f = Number(f)), u > 0 && (s = s[a]), [s, a] = que(s, f);
47024
47052
  }
47025
47053
  if (o !== -1) {
47026
47054
  u = o;
47027
- const l = n.substring(o + 1), f = Fue(l) + o, c = n.substring(o + 1, f), [d, h] = PR(
47055
+ const l = n.substring(o + 1), f = Bue(l) + o, c = n.substring(o + 1, f), [d, h] = PR(
47028
47056
  t,
47029
47057
  t,
47030
47058
  c
@@ -47040,7 +47068,7 @@ function PR(t, e, n) {
47040
47068
  }
47041
47069
  return [s, a];
47042
47070
  }
47043
- function Fue(t) {
47071
+ function Bue(t) {
47044
47072
  let e = !1, n = 0, r, i = 1;
47045
47073
  for (; !e; ) {
47046
47074
  r = t.substring(n);
@@ -47049,7 +47077,7 @@ function Fue(t) {
47049
47077
  }
47050
47078
  return n;
47051
47079
  }
47052
- function Bue(t, e) {
47080
+ function que(t, e) {
47053
47081
  if (typeof e == "number")
47054
47082
  return [t, e];
47055
47083
  e.startsWith(".") && (e = e.substring(1));
@@ -47064,7 +47092,7 @@ function Bue(t, e) {
47064
47092
  function vm(t, e) {
47065
47093
  return PR(t, t, e);
47066
47094
  }
47067
- function que(t, e) {
47095
+ function Vue(t, e) {
47068
47096
  return vm(t, e);
47069
47097
  }
47070
47098
  function IR(t, e, n) {
@@ -47220,7 +47248,7 @@ const Dr = hi("skills", {
47220
47248
  }
47221
47249
  });
47222
47250
  let AA;
47223
- const Vue = Nn({
47251
+ const Hue = Nn({
47224
47252
  components: {
47225
47253
  Modal: uc
47226
47254
  },
@@ -47374,42 +47402,42 @@ const Vue = Nn({
47374
47402
  }
47375
47403
  }
47376
47404
  });
47377
- const Hue = { class: "debug-menu" }, Uue = {
47405
+ const Uue = { class: "debug-menu" }, Wue = {
47378
47406
  key: 0,
47379
47407
  class: "debug-info"
47380
- }, Wue = /* @__PURE__ */ HR("<h3>Debug mode is ON</h3><ul><li><b>j</b>: Quick Label Jump</li><li><b>d</b>: Debug Menu</li><li><b>a</b>: Auto Play</li><li><b>s</b>: Skip</li><li><b>Space</b>: New Game</li><li><b>c</b>: Continue</li><li><b>Escape</b>: Toggle Menu</li></ul>", 2), Kue = [
47381
- Wue
47382
- ], Jue = /* @__PURE__ */ Ie("h3", { class: "title" }, "Jump to label", -1), Gue = {
47408
+ }, Kue = /* @__PURE__ */ HR("<h3>Debug mode is ON</h3><ul><li><b>j</b>: Quick Label Jump</li><li><b>d</b>: Debug Menu</li><li><b>a</b>: Auto Play</li><li><b>s</b>: Skip</li><li><b>Space</b>: New Game</li><li><b>c</b>: Continue</li><li><b>Escape</b>: Toggle Menu</li></ul>", 2), Jue = [
47409
+ Kue
47410
+ ], Gue = /* @__PURE__ */ Ie("h3", { class: "title" }, "Jump to label", -1), Que = {
47383
47411
  key: 0,
47384
47412
  class: "search-results"
47385
- }, Que = { key: 1 }, Yue = /* @__PURE__ */ Ie("h3", null, "No matches found", -1), Xue = [
47386
- Yue
47387
- ], Zue = /* @__PURE__ */ Ie("h3", { class: "title" }, "Error(s)", -1), ele = /* @__PURE__ */ sc(" There are errors in your dialogue scripts. Open the developer console for more details. "), tle = ["innerHTML"], nle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Debug Menu!", -1), rle = { class: "container" }, ile = /* @__PURE__ */ sc(" Hello this is the debug menu. "), ole = /* @__PURE__ */ Ie("option", {
47413
+ }, Yue = { key: 1 }, Xue = /* @__PURE__ */ Ie("h3", null, "No matches found", -1), Zue = [
47414
+ Xue
47415
+ ], ele = /* @__PURE__ */ Ie("h3", { class: "title" }, "Error(s)", -1), tle = /* @__PURE__ */ sc(" There are errors in your dialogue scripts. Open the developer console for more details. "), nle = ["innerHTML"], rle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Debug Menu!", -1), ile = { class: "container" }, ole = /* @__PURE__ */ sc(" Hello this is the debug menu. "), ale = /* @__PURE__ */ Ie("option", {
47388
47416
  class: "option",
47389
47417
  selected: "",
47390
47418
  disabled: ""
47391
- }, "Jump to a label", -1), ale = ["value"], sle = { class: "grid grid-cols-3 gap-4" }, ule = /* @__PURE__ */ Ie("h2", null, "Variables Editor", -1), lle = { ref: "variablesViewer" }, cle = /* @__PURE__ */ Ie("h2", null, "Skill Checks", -1), fle = { class: "table-auto" }, dle = /* @__PURE__ */ Ie("thead", null, [
47419
+ }, "Jump to a label", -1), sle = ["value"], ule = { class: "grid grid-cols-3 gap-4" }, lle = /* @__PURE__ */ Ie("h2", null, "Variables Editor", -1), cle = { ref: "variablesViewer" }, fle = /* @__PURE__ */ Ie("h2", null, "Skill Checks", -1), dle = { class: "table-auto" }, hle = /* @__PURE__ */ Ie("thead", null, [
47392
47420
  /* @__PURE__ */ Ie("tr", null, [
47393
47421
  /* @__PURE__ */ Ie("th", null, "Skill Check"),
47394
47422
  /* @__PURE__ */ Ie("th", null, "Happened"),
47395
47423
  /* @__PURE__ */ Ie("th", null, "Succeeded")
47396
47424
  ])
47397
- ], -1), hle = /* @__PURE__ */ Ie("h2", null, "App State editor (entire app and engine", -1), ple = /* @__PURE__ */ Ie("h3", { style: { color: "pink" } }, " Use for debugging, editing some of those things can cause issues ", -1), vle = { ref: "stateViewer" };
47398
- function mle(t, e, n, r, i, o) {
47425
+ ], -1), ple = /* @__PURE__ */ Ie("h2", null, "App State editor (entire app and engine", -1), vle = /* @__PURE__ */ Ie("h3", { style: { color: "pink" } }, " Use for debugging, editing some of those things can cause issues ", -1), mle = { ref: "stateViewer" };
47426
+ function gle(t, e, n, r, i, o) {
47399
47427
  const a = Ni("modal");
47400
- return Ee(), Ye("div", Hue, [
47428
+ return Ee(), Ye("div", Uue, [
47401
47429
  Ie("button", {
47402
47430
  onClick: e[0] || (e[0] = (...s) => t.open && t.open(...s)),
47403
47431
  class: "button debug-button"
47404
47432
  }, "Debug Menu"),
47405
- !t.playing && t.flowState === "menu" ? (Ee(), Ye("div", Uue, Kue)) : vn("", !0),
47433
+ !t.playing && t.flowState === "menu" ? (Ee(), Ye("div", Wue, Jue)) : vn("", !0),
47406
47434
  t.jumping ? (Ee(), pn(a, {
47407
47435
  key: 1,
47408
47436
  onClose: t.finishJumping,
47409
47437
  containerCssClass: "jump-menu-container"
47410
47438
  }, {
47411
47439
  header: sr(() => [
47412
- Jue
47440
+ Gue
47413
47441
  ]),
47414
47442
  body: sr(() => [
47415
47443
  mf(Ie("input", {
@@ -47421,13 +47449,13 @@ function mle(t, e, n, r, i, o) {
47421
47449
  }, null, 544), [
47422
47450
  [hv, t.searchString]
47423
47451
  ]),
47424
- t.matches.length > 0 ? (Ee(), Ye("div", Gue, [
47452
+ t.matches.length > 0 ? (Ee(), Ye("div", Que, [
47425
47453
  (Ee(!0), Ye(Zn, null, cr(t.matches, (s, u) => (Ee(), Ye("div", {
47426
47454
  class: "search-result",
47427
47455
  style: lr(t.getMatchResultStyle(u)),
47428
47456
  key: u
47429
47457
  }, zt(s), 5))), 128))
47430
- ])) : (Ee(), Ye("div", Que, Xue))
47458
+ ])) : (Ee(), Ye("div", Yue, Zue))
47431
47459
  ]),
47432
47460
  _: 1
47433
47461
  }, 8, ["onClose"])) : vn("", !0),
@@ -47437,16 +47465,16 @@ function mle(t, e, n, r, i, o) {
47437
47465
  containerCssClass: "debug-menu-container"
47438
47466
  }, {
47439
47467
  header: sr(() => [
47440
- Zue
47468
+ ele
47441
47469
  ]),
47442
47470
  body: sr(() => [
47443
- ele,
47471
+ tle,
47444
47472
  Ie("ul", null, [
47445
47473
  (Ee(!0), Ye(Zn, null, cr(t.errors, (s, u) => (Ee(), Ye("li", {
47446
47474
  key: u,
47447
47475
  class: vr(["error-message list-disc", s.type === "error" ? "error" : "warning"]),
47448
47476
  innerHTML: s.text
47449
- }, null, 10, tle))), 128))
47477
+ }, null, 10, nle))), 128))
47450
47478
  ])
47451
47479
  ]),
47452
47480
  _: 1
@@ -47457,24 +47485,24 @@ function mle(t, e, n, r, i, o) {
47457
47485
  containerCssClass: "debug-menu-container"
47458
47486
  }, {
47459
47487
  header: sr(() => [
47460
- nle
47488
+ rle
47461
47489
  ]),
47462
47490
  body: sr(() => [
47463
- Ie("div", rle, [
47464
- ile,
47491
+ Ie("div", ile, [
47492
+ ole,
47465
47493
  Ie("select", {
47466
47494
  class: "select",
47467
47495
  name: "label-selector",
47468
47496
  onChange: e[3] || (e[3] = (s) => t.labelSelected(s))
47469
47497
  }, [
47470
- ole,
47498
+ ale,
47471
47499
  (Ee(!0), Ye(Zn, null, cr(t.labels, (s) => (Ee(), Ye("option", {
47472
47500
  class: "option",
47473
47501
  value: s,
47474
47502
  key: s
47475
- }, zt(s), 9, ale))), 128))
47503
+ }, zt(s), 9, sle))), 128))
47476
47504
  ], 32),
47477
- Ie("div", sle, [
47505
+ Ie("div", ule, [
47478
47506
  Ie("button", {
47479
47507
  onClick: e[4] || (e[4] = (...s) => t.wordCount && t.wordCount(...s)),
47480
47508
  class: "button"
@@ -47485,11 +47513,11 @@ function mle(t, e, n, r, i, o) {
47485
47513
  }, "Save Game")
47486
47514
  ]),
47487
47515
  Ie("h3", null, "Play time: " + zt(t.getPlayTimeString()), 1),
47488
- ule,
47489
- Ie("div", lle, null, 512),
47490
- cle,
47491
- Ie("table", fle, [
47492
- dle,
47516
+ lle,
47517
+ Ie("div", cle, null, 512),
47518
+ fle,
47519
+ Ie("table", dle, [
47520
+ hle,
47493
47521
  Ie("tbody", null, [
47494
47522
  (Ee(!0), Ye(Zn, null, cr(t.skillChecks, (s, u) => (Ee(), Ye("tr", { key: u }, [
47495
47523
  Ie("td", null, zt(u), 1),
@@ -47498,22 +47526,22 @@ function mle(t, e, n, r, i, o) {
47498
47526
  ]))), 128))
47499
47527
  ])
47500
47528
  ]),
47501
- hle,
47502
47529
  ple,
47503
- Ie("div", vle, null, 512)
47530
+ vle,
47531
+ Ie("div", mle, null, 512)
47504
47532
  ])
47505
47533
  ]),
47506
47534
  _: 1
47507
47535
  }, 8, ["onClose"])) : vn("", !0)
47508
47536
  ]);
47509
47537
  }
47510
- const gle = /* @__PURE__ */ go(Vue, [["render", mle]]), yle = Nn({
47538
+ const yle = /* @__PURE__ */ go(Hue, [["render", gle]]), ble = Nn({
47511
47539
  computed: {
47512
47540
  ...vs(To, ["notifications"])
47513
47541
  }
47514
47542
  });
47515
- const ble = ["innerHTML"];
47516
- function wle(t, e, n, r, i, o) {
47543
+ const wle = ["innerHTML"];
47544
+ function kle(t, e, n, r, i, o) {
47517
47545
  return Ee(), pn(Gc, {
47518
47546
  name: "notification",
47519
47547
  tag: "div",
@@ -47526,13 +47554,13 @@ function wle(t, e, n, r, i, o) {
47526
47554
  }, [
47527
47555
  Ie("h3", {
47528
47556
  innerHTML: a.text
47529
- }, null, 8, ble)
47557
+ }, null, 8, wle)
47530
47558
  ]))), 128))
47531
47559
  ]),
47532
47560
  _: 1
47533
47561
  });
47534
47562
  }
47535
- const kle = /* @__PURE__ */ go(yle, [["render", wle]]);
47563
+ const _le = /* @__PURE__ */ go(ble, [["render", kle]]);
47536
47564
  function LR(t, e = 50, n = {}) {
47537
47565
  var c, d;
47538
47566
  let r;
@@ -47568,10 +47596,10 @@ function LR(t, e = 50, n = {}) {
47568
47596
  r !== void 0 && clearTimeout(r), u.forEach(({ reject: p }) => p(h)), u = [];
47569
47597
  }, f;
47570
47598
  }
47571
- const _le = { class: "save-slot flex flex-row" }, xle = { class: "used-save-slot flex flex-row justify-between items-center grow" }, jle = { class: "flex flex-col save-slot-number-container" }, Sle = { class: "save-slot-number" }, Cle = { class: "flex flex-col justify-center save-info" }, $le = {
47599
+ const xle = { class: "save-slot flex flex-row" }, jle = { class: "used-save-slot flex flex-row justify-between items-center grow" }, Sle = { class: "flex flex-col save-slot-number-container" }, Cle = { class: "save-slot-number" }, $le = { class: "flex flex-col justify-center save-info" }, Ole = {
47572
47600
  key: 1,
47573
47601
  class: "save-name"
47574
- }, Ole = { class: "flex flex-col" }, Tle = { key: 0 }, Ale = { key: 1 }, Ele = { key: 2 }, Mle = { class: "flex flex-row" }, Ple = ["onClick"], Eg = /* @__PURE__ */ Nn({
47602
+ }, Tle = { class: "flex flex-col" }, Ale = { key: 0 }, Ele = { key: 1 }, Mle = { key: 2 }, Ple = { class: "flex flex-row" }, Ile = ["onClick"], Eg = /* @__PURE__ */ Nn({
47575
47603
  __name: "save-slot-ui",
47576
47604
  props: {
47577
47605
  saveSlot: {
@@ -47616,17 +47644,17 @@ const _le = { class: "save-slot flex flex-row" }, xle = { class: "used-save-slot
47616
47644
  const g = n.saveSlot.slotNumber;
47617
47645
  return g === 0 && wt().saves.mode === "manual" ? "AUTO" : (p >= 10 && g < 10 && (v += "0"), p >= 100 && g < 100 && (v += "0"), v + g);
47618
47646
  }
47619
- return (p, v) => (Ee(), Ye("div", _le, [
47620
- Ie("div", xle, [
47621
- Ie("div", jle, [
47622
- Ie("h1", Sle, zt(c()), 1)
47647
+ return (p, v) => (Ee(), Ye("div", xle, [
47648
+ Ie("div", jle, [
47649
+ Ie("div", Sle, [
47650
+ Ie("h1", Cle, zt(c()), 1)
47623
47651
  ]),
47624
47652
  bt(s) ? (Ee(), Ye("div", {
47625
47653
  key: 0,
47626
47654
  class: "save-slot-screenshot",
47627
47655
  style: lr(bt(s))
47628
47656
  }, null, 4)) : vn("", !0),
47629
- Ie("div", Cle, [
47657
+ Ie("div", $le, [
47630
47658
  bt(i) ? mf((Ee(), Ye("input", {
47631
47659
  key: 0,
47632
47660
  type: "text",
@@ -47635,27 +47663,27 @@ const _le = { class: "save-slot flex flex-row" }, xle = { class: "used-save-slot
47635
47663
  onInput: f
47636
47664
  }, null, 544)), [
47637
47665
  [hv, r.value]
47638
- ]) : (Ee(), Ye("h3", $le, zt(r.value), 1)),
47639
- Ie("div", Ole, [
47640
- bt(o) ? (Ee(), Ye("p", Tle, zt(new Date(bt(o).metadata.saveDate).toLocaleString()), 1)) : vn("", !0),
47641
- bt(o) ? (Ee(), Ye("p", Ale, "Play time: " + zt(l(t.saveSlot)), 1)) : vn("", !0),
47642
- bt(a) === "game-slots" ? (Ee(), Ye("p", Ele, zt(t.saveSlot.slotType === "auto" ? "Auto Save" : "Manual Save"), 1)) : vn("", !0)
47666
+ ]) : (Ee(), Ye("h3", Ole, zt(r.value), 1)),
47667
+ Ie("div", Tle, [
47668
+ bt(o) ? (Ee(), Ye("p", Ale, zt(new Date(bt(o).metadata.saveDate).toLocaleString()), 1)) : vn("", !0),
47669
+ bt(o) ? (Ee(), Ye("p", Ele, "Play time: " + zt(l(t.saveSlot)), 1)) : vn("", !0),
47670
+ bt(a) === "game-slots" ? (Ee(), Ye("p", Mle, zt(t.saveSlot.slotType === "auto" ? "Auto Save" : "Manual Save"), 1)) : vn("", !0)
47643
47671
  ])
47644
47672
  ]),
47645
- Ie("div", Mle, [
47673
+ Ie("div", Ple, [
47646
47674
  (Ee(!0), Ye(Zn, null, cr(t.actions, (g, m) => (Ee(), Ye("button", {
47647
47675
  class: "button",
47648
47676
  onClick: () => u(m),
47649
47677
  key: m
47650
47678
  }, [
47651
47679
  Ie("h3", null, zt(g), 1)
47652
- ], 8, Ple))), 128))
47680
+ ], 8, Ile))), 128))
47653
47681
  ])
47654
47682
  ])
47655
47683
  ]));
47656
47684
  }
47657
47685
  });
47658
- const Ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Nle = { class: "flex justify-center" }, fv = /* @__PURE__ */ Nn({
47686
+ const Nle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Lle = { class: "flex justify-center" }, fv = /* @__PURE__ */ Nn({
47659
47687
  __name: "yes-no",
47660
47688
  props: {
47661
47689
  prompt: {
@@ -47682,11 +47710,11 @@ const Ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Nl
47682
47710
  containerCssClass: "yes-no-modal"
47683
47711
  }, {
47684
47712
  header: sr(() => [
47685
- Ile
47713
+ Nle
47686
47714
  ]),
47687
47715
  body: sr(() => [
47688
47716
  Ie("h3", null, zt(t.prompt), 1),
47689
- Ie("div", Nle, [
47717
+ Ie("div", Lle, [
47690
47718
  Ie("button", {
47691
47719
  class: "button",
47692
47720
  onClick: o[0] || (o[0] = () => r(!0))
@@ -47701,10 +47729,10 @@ const Ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Nl
47701
47729
  }));
47702
47730
  }
47703
47731
  });
47704
- const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section" }, zle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Auto save", -1), Fle = { class: "saves-section" }, Ble = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Manual Saves", -1), qle = {
47732
+ const Dle = { class: "title" }, Rle = { key: 0 }, zle = { class: "saves-section" }, Fle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Auto save", -1), Ble = { class: "saves-section" }, qle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Manual Saves", -1), Vle = {
47705
47733
  key: 1,
47706
47734
  class: "saves-section"
47707
- }, Vle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Save Slots", -1), Hle = { class: "saves-container flex flex-col" }, DR = /* @__PURE__ */ Nn({
47735
+ }, Hle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Save Slots", -1), Ule = { class: "saves-container flex flex-col" }, DR = /* @__PURE__ */ Nn({
47708
47736
  __name: "save-slots",
47709
47737
  props: {
47710
47738
  mode: {
@@ -47777,12 +47805,12 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47777
47805
  cantClose: !1
47778
47806
  }, {
47779
47807
  header: sr(() => [
47780
- Ie("h3", Lle, zt(t.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
47808
+ Ie("h3", Dle, zt(t.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
47781
47809
  ]),
47782
47810
  body: sr(() => [
47783
- bt(s) === "manual" ? (Ee(), Ye("div", Dle, [
47784
- Ie("div", Rle, [
47785
- zle,
47811
+ bt(s) === "manual" ? (Ee(), Ye("div", Rle, [
47812
+ Ie("div", zle, [
47813
+ Fle,
47786
47814
  Br(Gc, {
47787
47815
  name: "list",
47788
47816
  tag: "div"
@@ -47799,8 +47827,8 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47799
47827
  _: 1
47800
47828
  })
47801
47829
  ]),
47802
- Ie("div", Fle, [
47803
- Ble,
47830
+ Ie("div", Ble, [
47831
+ qle,
47804
47832
  Br(Gc, {
47805
47833
  name: "list",
47806
47834
  tag: "div"
@@ -47817,9 +47845,9 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47817
47845
  _: 1
47818
47846
  })
47819
47847
  ])
47820
- ])) : (Ee(), Ye("div", qle, [
47821
- Vle,
47822
- Ie("div", Hle, [
47848
+ ])) : (Ee(), Ye("div", Vle, [
47849
+ Hle,
47850
+ Ie("div", Ule, [
47823
47851
  Br(Gc, {
47824
47852
  name: "list",
47825
47853
  tag: "div"
@@ -47854,7 +47882,7 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47854
47882
  }));
47855
47883
  }
47856
47884
  });
47857
- class Ule extends gw {
47885
+ class Wle extends gw {
47858
47886
  setup(e = !1) {
47859
47887
  const r = e ? "keydown" : "keyup", i = LR(
47860
47888
  (o) => {
@@ -47873,7 +47901,7 @@ class Ule extends gw {
47873
47901
  });
47874
47902
  }
47875
47903
  }
47876
- const fa = new Ule(), RR = hi("startMenu", {
47904
+ const fa = new Wle(), RR = hi("startMenu", {
47877
47905
  state: () => ({
47878
47906
  buttons: []
47879
47907
  }),
@@ -47887,10 +47915,10 @@ const fa = new Ule(), RR = hi("startMenu", {
47887
47915
  });
47888
47916
  }
47889
47917
  }
47890
- }), Wle = { id: "game-menu" }, Kle = {
47918
+ }), Kle = { id: "game-menu" }, Jle = {
47891
47919
  id: "game-header",
47892
47920
  class: "flex flex-col justify-between items-center"
47893
- }, Jle = { id: "game-title-container" }, Gle = { id: "game-title-text" }, Qle = { class: "flex flex-col start-menu-buttons-container" }, Yle = ["onClick"], Xle = { class: "title" }, Zle = /* @__PURE__ */ Nn({
47921
+ }, Gle = { id: "game-title-container" }, Qle = { id: "game-title-text" }, Yle = { class: "flex flex-col start-menu-buttons-container" }, Xle = ["onClick"], Zle = { class: "title" }, ece = /* @__PURE__ */ Nn({
47894
47922
  __name: "StartMenu",
47895
47923
  setup(t) {
47896
47924
  const e = Hn(!1), n = Hn(!1), r = Hn(null), i = Hn(null), o = Hn(!1), a = Hn(!1), s = Hn(null), u = RR(), l = Hn(!1), f = ft(() => u.buttons);
@@ -47957,7 +47985,7 @@ const fa = new Ule(), RR = hi("startMenu", {
47957
47985
  s.value && fa.off("debouncedKeydown", s.value);
47958
47986
  });
47959
47987
  const w = ft(() => wt().gameTitle);
47960
- return (k, j) => (Ee(), Ye("div", Wle, [
47988
+ return (k, j) => (Ee(), Ye("div", Kle, [
47961
47989
  o.value ? (Ee(), pn(DR, {
47962
47990
  key: 0,
47963
47991
  mode: "load",
@@ -47970,11 +47998,11 @@ const fa = new Ule(), RR = hi("startMenu", {
47970
47998
  onConfirm: d,
47971
47999
  onRefuse: v
47972
48000
  })) : vn("", !0),
47973
- Ie("div", Kle, [
47974
- Ie("div", Jle, [
47975
- Ie("h1", Gle, zt(bt(w)), 1)
48001
+ Ie("div", Jle, [
48002
+ Ie("div", Gle, [
48003
+ Ie("h1", Qle, zt(bt(w)), 1)
47976
48004
  ]),
47977
- Ie("div", Qle, [
48005
+ Ie("div", Yle, [
47978
48006
  r.value ? (Ee(), Ye("button", {
47979
48007
  key: 0,
47980
48008
  class: "button menu-button main-menu-button large continue-button override",
@@ -47994,7 +48022,7 @@ const fa = new Ule(), RR = hi("startMenu", {
47994
48022
  key: S.id,
47995
48023
  class: vr(["button menu-button main-menu-button large override", `${S.id}-start-menu-button`]),
47996
48024
  onClick: (A) => h(S)
47997
- }, zt(S.text), 11, Yle))), 128))
48025
+ }, zt(S.text), 11, Xle))), 128))
47998
48026
  ])
47999
48027
  ]),
48000
48028
  l.value ? (Ee(), pn(qy, {
@@ -48006,7 +48034,7 @@ const fa = new Ule(), RR = hi("startMenu", {
48006
48034
  class: vr(`start-menu-popup-${l.value.id}`)
48007
48035
  }, {
48008
48036
  header: sr(() => [
48009
- Ie("h3", Xle, zt(l.value.text), 1)
48037
+ Ie("h3", Zle, zt(l.value.text), 1)
48010
48038
  ]),
48011
48039
  body: sr(() => [
48012
48040
  l.value.popupComponent ? (Ee(), pn(PA(l.value.popupComponent.component), {
@@ -48020,7 +48048,7 @@ const fa = new Ule(), RR = hi("startMenu", {
48020
48048
  ]));
48021
48049
  }
48022
48050
  });
48023
- const ece = { class: "title" }, tce = /* @__PURE__ */ Nn({
48051
+ const tce = { class: "title" }, nce = /* @__PURE__ */ Nn({
48024
48052
  __name: "alert-modal",
48025
48053
  props: {
48026
48054
  title: {
@@ -48040,7 +48068,7 @@ const ece = { class: "title" }, tce = /* @__PURE__ */ Nn({
48040
48068
  header: sr(() => {
48041
48069
  var r;
48042
48070
  return [
48043
- Ie("h3", ece, zt((r = t.title) != null ? r : "Alert"), 1)
48071
+ Ie("h3", tce, zt((r = t.title) != null ? r : "Alert"), 1)
48044
48072
  ];
48045
48073
  }),
48046
48074
  body: sr(() => [
@@ -48054,7 +48082,7 @@ function ik(t) {
48054
48082
  const e = TR().characters[t];
48055
48083
  return e || Zt(`Character ${t} not found`), e;
48056
48084
  }
48057
- function nce(t, e) {
48085
+ function rce(t, e) {
48058
48086
  const n = ik(t);
48059
48087
  if (!!n && (e || (e = "default"), n.sprites)) {
48060
48088
  const r = `${TR().config.imagesPath}${n.sprites[e]}`;
@@ -48065,7 +48093,7 @@ function kh(t) {
48065
48093
  var e;
48066
48094
  return t ? ((e = ik(t)) == null ? void 0 : e.style) || {} : {};
48067
48095
  }
48068
- const rce = Nn({
48096
+ const ice = Nn({
48069
48097
  props: {
48070
48098
  pictureUrl: String
48071
48099
  },
@@ -48100,8 +48128,8 @@ const rce = Nn({
48100
48128
  }
48101
48129
  }
48102
48130
  });
48103
- const ice = ["src"];
48104
- function oce(t, e, n, r, i, o) {
48131
+ const oce = ["src"];
48132
+ function ace(t, e, n, r, i, o) {
48105
48133
  return Ee(), Ye("div", {
48106
48134
  class: "dialog-picture override",
48107
48135
  style: lr(t.boxStyle)
@@ -48109,10 +48137,10 @@ function oce(t, e, n, r, i, o) {
48109
48137
  Ie("img", {
48110
48138
  src: t.getAssetUrl(t.pictureUrl),
48111
48139
  class: "picture override"
48112
- }, null, 8, ice)
48140
+ }, null, 8, oce)
48113
48141
  ], 4);
48114
48142
  }
48115
- const ace = /* @__PURE__ */ go(rce, [["render", oce]]), sce = Nn({
48143
+ const sce = /* @__PURE__ */ go(ice, [["render", ace]]), uce = Nn({
48116
48144
  data() {
48117
48145
  return {
48118
48146
  playerText: "",
@@ -48329,38 +48357,38 @@ const ace = /* @__PURE__ */ go(rce, [["render", oce]]), sce = Nn({
48329
48357
  }
48330
48358
  }
48331
48359
  });
48332
- const uce = { class: "dialog-content" }, lce = ["innerHTML"], cce = ["innerHTML"], fce = ["innerHTML"], dce = { key: 1 }, hce = {
48360
+ const lce = { class: "dialog-content" }, cce = ["innerHTML"], fce = ["innerHTML"], dce = ["innerHTML"], hce = { key: 1 }, pce = {
48333
48361
  key: 0,
48334
48362
  class: "dialog-choices"
48335
- }, pce = ["onClick", "innerHTML"], vce = { key: 1 }, mce = {
48363
+ }, vce = ["onClick", "innerHTML"], mce = { key: 1 }, gce = {
48336
48364
  key: 2,
48337
48365
  class: "buttons-container"
48338
48366
  };
48339
- function gce(t, e, n, r, i, o) {
48367
+ function yce(t, e, n, r, i, o) {
48340
48368
  const a = UR("visible");
48341
48369
  return Ee(), Ye("div", {
48342
48370
  class: vr(["dialog-box w-full override", t.dialogBoxClass]),
48343
48371
  style: lr(t.dialogBoxStyle)
48344
48372
  }, [
48345
- Ie("div", uce, [
48373
+ Ie("div", lce, [
48346
48374
  t.options.title ? (Ee(), Ye("span", {
48347
48375
  key: 0,
48348
48376
  class: "dialog-title override",
48349
48377
  style: lr(t.titleStyle),
48350
48378
  innerHTML: t.options.title
48351
- }, null, 12, lce)) : vn("", !0),
48379
+ }, null, 12, cce)) : vn("", !0),
48352
48380
  Ie("span", {
48353
48381
  class: "dialog-text dialog-separator override",
48354
48382
  style: lr(t.textStyle),
48355
48383
  innerHTML: t.preText
48356
- }, null, 12, cce),
48384
+ }, null, 12, fce),
48357
48385
  Ie("span", {
48358
48386
  class: vr(["dialog-text override", t.options.cssClass]),
48359
48387
  style: lr(t.textStyle),
48360
48388
  innerHTML: t.text
48361
- }, null, 14, fce),
48362
- t.options.old ? vn("", !0) : mf((Ee(), Ye("div", dce, [
48363
- t.choices ? (Ee(), Ye("div", hce, [
48389
+ }, null, 14, dce),
48390
+ t.options.old ? vn("", !0) : mf((Ee(), Ye("div", hce, [
48391
+ t.choices ? (Ee(), Ye("div", pce, [
48364
48392
  (Ee(!0), Ye(Zn, null, cr(t.choices, (s, u) => (Ee(), Ye("p", {
48365
48393
  key: u,
48366
48394
  style: lr(t.dialogStyle(s)),
@@ -48369,8 +48397,8 @@ function gce(t, e, n, r, i, o) {
48369
48397
  ref_for: !0,
48370
48398
  ref: "choices",
48371
48399
  innerHTML: `${u + 1}. \u2013\xA0 ${s.choice}`
48372
- }, null, 14, pce))), 128))
48373
- ])) : t.options.textField ? (Ee(), Ye("div", vce, [
48400
+ }, null, 14, vce))), 128))
48401
+ ])) : t.options.textField ? (Ee(), Ye("div", mce, [
48374
48402
  mf(Ie("input", {
48375
48403
  type: "text",
48376
48404
  class: "label-input input",
@@ -48385,7 +48413,7 @@ function gce(t, e, n, r, i, o) {
48385
48413
  class: "button",
48386
48414
  id: "player-input-submit"
48387
48415
  }, " Submit ")
48388
- ])) : (Ee(), Ye("div", mce, [
48416
+ ])) : (Ee(), Ye("div", gce, [
48389
48417
  Ie("div", {
48390
48418
  onClick: e[2] || (e[2] = (s) => t.chooseOption(0)),
48391
48419
  ref: "continue",
@@ -48398,7 +48426,7 @@ function gce(t, e, n, r, i, o) {
48398
48426
  ])
48399
48427
  ], 6);
48400
48428
  }
48401
- const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie("div", { class: "anchor" }, null, -1), wce = /* @__PURE__ */ Nn({
48429
+ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie("div", { class: "anchor" }, null, -1), kce = /* @__PURE__ */ Nn({
48402
48430
  __name: "game-dialog",
48403
48431
  props: {
48404
48432
  layoutMode: String,
@@ -48418,7 +48446,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48418
48446
  if (h.value) {
48419
48447
  const j = h.value.speaker;
48420
48448
  let S = h.value.pose;
48421
- return j ? (S || (S = "idle"), nce(j, S)) : void 0;
48449
+ return j ? (S || (S = "idle"), rce(j, S)) : void 0;
48422
48450
  }
48423
48451
  }), v = ft(() => i.dialogWidth), g = ft(() => rn().inScript);
48424
48452
  Gh(g, (j) => {
@@ -48486,7 +48514,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48486
48514
  }), (j, S) => (Ee(), Ye(Zn, null, [
48487
48515
  Br(pf, { name: "fade" }, {
48488
48516
  default: sr(() => [
48489
- bt(p) && bt(i).showDialog ? (Ee(), pn(ace, {
48517
+ bt(p) && bt(i).showDialog ? (Ee(), pn(sce, {
48490
48518
  key: 0,
48491
48519
  pictureUrl: bt(p)
48492
48520
  }, null, 8, ["pictureUrl"])) : vn("", !0)
@@ -48509,7 +48537,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48509
48537
  style: lr(bt(d))
48510
48538
  }, {
48511
48539
  default: sr(() => [
48512
- (Ee(!0), Ye(Zn, null, cr(bt(u), (A, C) => (Ee(), pn(yce, {
48540
+ (Ee(!0), Ye(Zn, null, cr(bt(u), (A, C) => (Ee(), pn(bce, {
48513
48541
  ref_for: !0,
48514
48542
  ref: (O) => f.value = O,
48515
48543
  key: A.id,
@@ -48531,7 +48559,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48531
48559
  }, " Skip ")
48532
48560
  ])
48533
48561
  ])),
48534
- bce
48562
+ wce
48535
48563
  ], 4)) : vn("", !0)
48536
48564
  ]),
48537
48565
  _: 1
@@ -48539,7 +48567,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48539
48567
  ], 64));
48540
48568
  }
48541
48569
  });
48542
- const kce = ["id"], _ce = ["src"], xce = { class: "tab-title" }, jce = /* @__PURE__ */ Nn({
48570
+ const _ce = ["id"], xce = ["src"], jce = { class: "tab-title" }, Sce = /* @__PURE__ */ Nn({
48543
48571
  __name: "tab-selector",
48544
48572
  props: {
48545
48573
  tab: null,
@@ -48564,23 +48592,23 @@ const kce = ["id"], _ce = ["src"], xce = { class: "tab-title" }, jce = /* @__PUR
48564
48592
  src: t.tab.icon,
48565
48593
  alt: "tab icon",
48566
48594
  class: "tab-icon"
48567
- }, null, 8, _ce)) : vn("", !0),
48568
- Ie("span", xce, zt(t.tab.label), 1)
48595
+ }, null, 8, xce)) : vn("", !0),
48596
+ Ie("span", jce, zt(t.tab.label), 1)
48569
48597
  ], 2)
48570
- ], 10, kce));
48598
+ ], 10, _ce));
48571
48599
  }
48572
48600
  });
48573
- const Sce = { class: "tabs-controller" }, Cce = {
48601
+ const Cce = { class: "tabs-controller" }, $ce = {
48574
48602
  key: 0,
48575
48603
  class: "tabs-controller__tabs"
48576
- }, $ce = {
48604
+ }, Oce = {
48577
48605
  key: 1,
48578
48606
  class: "tab-content"
48579
- }, Oce = { key: 2 }, Tce = /* @__PURE__ */ Ie("div", { class: "tab-content__empty" }, [
48607
+ }, Tce = { key: 2 }, Ace = /* @__PURE__ */ Ie("div", { class: "tab-content__empty" }, [
48580
48608
  /* @__PURE__ */ Ie("p", null, "No tab selected")
48581
- ], -1), Ace = [
48582
- Tce
48583
- ], Ece = /* @__PURE__ */ Nn({
48609
+ ], -1), Ece = [
48610
+ Ace
48611
+ ], Mce = /* @__PURE__ */ Nn({
48584
48612
  __name: "TabsController",
48585
48613
  props: {
48586
48614
  tabs: null,
@@ -48596,25 +48624,25 @@ const Sce = { class: "tabs-controller" }, Cce = {
48596
48624
  r.value = n.tabs[u].id, e("tab-change", u);
48597
48625
  }
48598
48626
  const o = ft(() => n.tabs.find((u) => u.id === r.value));
48599
- return (u, l) => (Ee(), Ye("div", Sce, [
48600
- t.tabs.length > 1 ? (Ee(), Ye("div", Cce, [
48601
- (Ee(!0), Ye(Zn, null, cr(t.tabs, (f, c) => (Ee(), pn(jce, {
48627
+ return (u, l) => (Ee(), Ye("div", Cce, [
48628
+ t.tabs.length > 1 ? (Ee(), Ye("div", $ce, [
48629
+ (Ee(!0), Ye(Zn, null, cr(t.tabs, (f, c) => (Ee(), pn(Sce, {
48602
48630
  key: f.id,
48603
48631
  tab: f,
48604
48632
  active: f.id === r.value,
48605
48633
  onClick: () => i(c)
48606
48634
  }, null, 8, ["tab", "active", "onClick"]))), 128))
48607
48635
  ])) : vn("", !0),
48608
- bt(o) ? (Ee(), Ye("div", $ce, [
48636
+ bt(o) ? (Ee(), Ye("div", Oce, [
48609
48637
  bt(o) ? (Ee(), pn(PA(bt(o).component), {
48610
48638
  key: 0,
48611
48639
  onClose: l[0] || (l[0] = (f) => u.$emit("close"))
48612
48640
  }, null, 32)) : vn("", !0)
48613
- ])) : (Ee(), Ye("div", Oce, Ace))
48641
+ ])) : (Ee(), Ye("div", Tce, Ece))
48614
48642
  ]));
48615
48643
  }
48616
48644
  });
48617
- const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class: "title" }, Nce = /* @__PURE__ */ Nn({
48645
+ const Pce = { class: "menu-container" }, Ice = ["onClick", "id"], Nce = { class: "title" }, Lce = /* @__PURE__ */ Nn({
48618
48646
  __name: "menu-buttons",
48619
48647
  setup(t) {
48620
48648
  const e = ea(), n = Hn(null);
@@ -48645,7 +48673,7 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48645
48673
  function l() {
48646
48674
  return s();
48647
48675
  }
48648
- return (f, c) => (Ee(), Ye("div", Mce, [
48676
+ return (f, c) => (Ee(), Ye("div", Pce, [
48649
48677
  (Ee(!0), Ye(Zn, null, cr(bt(i), (d, h) => {
48650
48678
  var p;
48651
48679
  return Ee(), Ye("button", {
@@ -48653,7 +48681,7 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48653
48681
  onClick: (v) => r(d.id),
48654
48682
  id: (p = d.cssId) != null ? p : `${h}-menu-button`,
48655
48683
  class: "button menu-toggle-button"
48656
- }, zt(d.label), 9, Pce);
48684
+ }, zt(d.label), 9, Ice);
48657
48685
  }), 128)),
48658
48686
  bt(o) ? (Ee(), pn(qy, {
48659
48687
  key: 0,
@@ -48666,11 +48694,11 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48666
48694
  header: sr(() => {
48667
48695
  var d, h;
48668
48696
  return [
48669
- Ie("h3", Ice, zt((h = (d = bt(e).tab) == null ? void 0 : d.text) != null ? h : bt(o).label), 1)
48697
+ Ie("h3", Nce, zt((h = (d = bt(e).tab) == null ? void 0 : d.text) != null ? h : bt(o).label), 1)
48670
48698
  ];
48671
48699
  }),
48672
48700
  body: sr(() => [
48673
- Br(Ece, {
48701
+ Br(Mce, {
48674
48702
  onTabChange: u,
48675
48703
  onClose: l,
48676
48704
  tabs: bt(a),
@@ -48683,7 +48711,7 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48683
48711
  ]));
48684
48712
  }
48685
48713
  });
48686
- const Lce = ["id"], Dce = ["innerHTML"], Rce = /* @__PURE__ */ Nn({
48714
+ const Dce = ["id"], Rce = ["innerHTML"], zce = /* @__PURE__ */ Nn({
48687
48715
  __name: "screen-object",
48688
48716
  props: {
48689
48717
  screenObject: null,
@@ -48726,17 +48754,17 @@ const Lce = ["id"], Dce = ["innerHTML"], Rce = /* @__PURE__ */ Nn({
48726
48754
  }, [
48727
48755
  Ie("span", {
48728
48756
  innerHTML: e.screenObject.text ? bt(Xs)(e.screenObject.text) : void 0
48729
- }, null, 8, Dce),
48757
+ }, null, 8, Rce),
48730
48758
  (Ee(!0), Ye(Zn, null, cr(e.screenObject.children, (u) => (Ee(), pn(s, {
48731
48759
  transitioning: t.transitioning,
48732
48760
  key: u.id,
48733
48761
  screenObject: u
48734
48762
  }, null, 8, ["transitioning", "screenObject"]))), 128))
48735
- ], 14, Lce);
48763
+ ], 14, Dce);
48736
48764
  };
48737
48765
  }
48738
48766
  });
48739
- const zce = ["id"], Fce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ Nn({
48767
+ const Fce = ["id"], Bce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ Nn({
48740
48768
  __name: "screen-layer",
48741
48769
  props: {
48742
48770
  layer: String,
@@ -48817,16 +48845,16 @@ const zce = ["id"], Fce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ N
48817
48845
  onClick: (C) => y(S),
48818
48846
  style: lr(m(S)),
48819
48847
  innerHTML: b(S)
48820
- }, null, 14, Fce))), 128)),
48821
- (Ee(!0), Ye(Zn, null, cr(bt(o).tree, (S) => (Ee(), pn(Rce, {
48848
+ }, null, 14, Bce))), 128)),
48849
+ (Ee(!0), Ye(Zn, null, cr(bt(o).tree, (S) => (Ee(), pn(zce, {
48822
48850
  key: S.id,
48823
48851
  screenObject: S,
48824
48852
  transitioning: t.transitioning
48825
48853
  }, null, 8, ["screenObject", "transitioning"]))), 128))
48826
- ], 12, zce)) : vn("", !0);
48854
+ ], 12, Fce)) : vn("", !0);
48827
48855
  }
48828
48856
  });
48829
- const Bce = /* @__PURE__ */ Nn({
48857
+ const qce = /* @__PURE__ */ Nn({
48830
48858
  __name: "NarratTransition",
48831
48859
  props: {
48832
48860
  name: {
@@ -48877,7 +48905,7 @@ const Bce = /* @__PURE__ */ Nn({
48877
48905
  ], 64));
48878
48906
  }
48879
48907
  });
48880
- const qce = /* @__PURE__ */ Nn({
48908
+ const Vce = /* @__PURE__ */ Nn({
48881
48909
  __name: "screens",
48882
48910
  setup(t) {
48883
48911
  const e = Mo(), n = rn(), r = Oa(), i = ft(() => r.nonEmptyLayers), o = ft(() => e.layoutMode), a = ft(() => wt().layout.backgrounds.width), s = ft(() => wt().layout.backgrounds.height), u = ft(() => n.isInGame);
@@ -48901,7 +48929,7 @@ const qce = /* @__PURE__ */ Nn({
48901
48929
  key: p,
48902
48930
  class: "layer-container"
48903
48931
  }, [
48904
- h.transition ? (Ee(), pn(Bce, {
48932
+ h.transition ? (Ee(), pn(qce, {
48905
48933
  key: 0,
48906
48934
  name: h.transition.transition,
48907
48935
  duration: h.transition.duration,
@@ -48931,7 +48959,7 @@ const qce = /* @__PURE__ */ Nn({
48931
48959
  ], 4)) : vn("", !0);
48932
48960
  }
48933
48961
  });
48934
- const Vce = Nn({
48962
+ const Hce = Nn({
48935
48963
  data() {
48936
48964
  return {};
48937
48965
  },
@@ -48958,8 +48986,8 @@ const Vce = Nn({
48958
48986
  }
48959
48987
  }
48960
48988
  });
48961
- const Hce = ["src"], Uce = { class: "bold hud-text" }, Wce = /* @__PURE__ */ sc(": ");
48962
- function Kce(t, e, n, r, i, o) {
48989
+ const Uce = ["src"], Wce = { class: "bold hud-text" }, Kce = /* @__PURE__ */ sc(": ");
48990
+ function Jce(t, e, n, r, i, o) {
48963
48991
  return Ee(), Ye("div", {
48964
48992
  class: "hud",
48965
48993
  style: lr(t.hudStyle)
@@ -48971,28 +48999,28 @@ function Kce(t, e, n, r, i, o) {
48971
48999
  Ie("img", {
48972
49000
  class: "hud-icon",
48973
49001
  src: t.getStatImage(s)
48974
- }, null, 8, Hce),
48975
- Ie("span", Uce, zt(t.statsConfig[s].name), 1),
48976
- Wce,
49002
+ }, null, 8, Uce),
49003
+ Ie("span", Wce, zt(t.statsConfig[s].name), 1),
49004
+ Kce,
48977
49005
  Ie("span", null, zt(Math.floor(a.value * 100) / 100), 1)
48978
49006
  ]))), 128))
48979
49007
  ], 4);
48980
49008
  }
48981
- const Jce = /* @__PURE__ */ go(Vce, [["render", Kce]]), Gce = {
49009
+ const Gce = /* @__PURE__ */ go(Hce, [["render", Jce]]), Qce = {
48982
49010
  key: 0,
48983
49011
  class: "auto-play-feedback-container"
48984
- }, Qce = /* @__PURE__ */ Nn({
49012
+ }, Yce = /* @__PURE__ */ Nn({
48985
49013
  __name: "AutoPlayFeedback",
48986
49014
  setup(t) {
48987
49015
  const e = Xn(), n = ft(() => e.playMode === "auto"), r = ft(() => e.playMode === "skip"), i = ft(() => n.value ? "auto-play-feedback-auto" : r.value ? "auto-play-feedback-skip" : {}), o = ft(() => n.value ? "Auto Play" : r.value ? "Skip" : "");
48988
- return (a, s) => bt(o) ? (Ee(), Ye("div", Gce, [
49016
+ return (a, s) => bt(o) ? (Ee(), Ye("div", Qce, [
48989
49017
  Ie("div", {
48990
49018
  class: vr(["auto-play-feedback", bt(i)])
48991
49019
  }, zt(bt(o)), 3)
48992
49020
  ])) : vn("", !0);
48993
49021
  }
48994
49022
  });
48995
- const Yce = /* @__PURE__ */ Nn({
49023
+ const Xce = /* @__PURE__ */ Nn({
48996
49024
  __name: "in-game",
48997
49025
  setup(t) {
48998
49026
  const e = rn(), n = Mo(), r = ft(() => n.layoutMode), i = ft(() => e.saving), o = Hn(null), a = Xn(), s = Hn(null), u = ft(
@@ -49026,10 +49054,10 @@ const Yce = /* @__PURE__ */ Nn({
49026
49054
  class: "game",
49027
49055
  style: lr(bt(l))
49028
49056
  }, [
49029
- Br(Jce),
49030
- Br(Nce, { class: "menu-toggle" }),
49031
- Br(qce),
49032
- Br(wce, {
49057
+ Br(Gce),
49058
+ Br(Lce, { class: "menu-toggle" }),
49059
+ Br(Vce),
49060
+ Br(kce, {
49033
49061
  inGame: !0,
49034
49062
  layoutMode: bt(r)
49035
49063
  }, null, 8, ["layoutMode"]),
@@ -49039,7 +49067,7 @@ const Yce = /* @__PURE__ */ Nn({
49039
49067
  onChosen: f,
49040
49068
  onClose: p[0] || (p[0] = () => f(null))
49041
49069
  })) : vn("", !0),
49042
- Br(Qce),
49070
+ Br(Yce),
49043
49071
  bt(i) && bt(i).withPrompt && o.value === null ? (Ee(), pn(fv, {
49044
49072
  key: 1,
49045
49073
  prompt: "Would you like to save the game?",
@@ -49049,7 +49077,7 @@ const Yce = /* @__PURE__ */ Nn({
49049
49077
  ], 4));
49050
49078
  }
49051
49079
  });
49052
- const Xce = Nn({
49080
+ const Zce = Nn({
49053
49081
  props: {
49054
49082
  percentage: Number,
49055
49083
  step: String
@@ -49063,22 +49091,22 @@ const Xce = Nn({
49063
49091
  },
49064
49092
  computed: {}
49065
49093
  });
49066
- const Zce = { id: "loading-bar" }, efe = { id: "loading-text" };
49067
- function tfe(t, e, n, r, i, o) {
49068
- return Ee(), Ye("div", Zce, [
49094
+ const efe = { id: "loading-bar" }, tfe = { id: "loading-text" };
49095
+ function nfe(t, e, n, r, i, o) {
49096
+ return Ee(), Ye("div", efe, [
49069
49097
  Ie("div", {
49070
49098
  id: "inner-loading-bar",
49071
49099
  style: lr(t.loadingStyle())
49072
49100
  }, null, 4),
49073
- Ie("div", efe, [
49101
+ Ie("div", tfe, [
49074
49102
  Ie("h3", null, "Loading " + zt(Math.floor(t.percentage * 100)) + "% - " + zt(t.step), 1)
49075
49103
  ])
49076
49104
  ]);
49077
49105
  }
49078
- const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlJhdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDU5NS4zIDU5NS4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OTUuMyA1OTUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNFMjNCMzM7fQo8L3N0eWxlPgo8cGF0aCBpZD0iUmF0X1NoYXBlIiBjbGFzcz0ic3QwIiBkPSJNNTU2LjksODIuNWMtMTAuOC0yNC4zLTQ3LTU3LjEtNzEuMy02NS42Yy0yNC4zLTguNC02NC4xLTAuMy04OC43LDIyLjMKCWMtMjAsMTguNC0yNiwyOC4yLTI5LjEsMzdjLTIuMSw1LjktNC44LDEzLjUtNiwyMC45djBjLTAuNSw0LjEtNC41LDctOC42LDYuMWMtMTAuNC0yLjMtMjkuNS02LTQ0LjQtNi4zCgljLTEzLjctMC4yLTMwLjEsMy4yLTQwLjQsNS43Yy00LjUsMS4xLTguOC0yLjItOC44LTYuOGMtMC4xLTUuMy0xLjEtMTIuMy00LjgtMTkuNmMtOC41LTE2LjktMTkuNi0zMi42LTU3LjgtNDcuNAoJYy0zMS45LTEyLjQtNzUuMS05LjctMTAwLjgsMS44Yy0yOC4xLDEyLjYtNDIuNCwzNy45LTU0LDYxLjhjLTE0LjQsMjkuOC0xNC45LDgzLjYtNi40LDEwNGMxMi44LDMwLjcsMzUuOCw0Ny4yLDUyLjYsNTMKCWMxMS4zLDMuOCwyOC4yLDMuNywzOC4yLDMuM2M0LjItMC4yLDcuNywzLjMsNy41LDcuNWMtMC43LDEzLjYtMC45LDQxLjUsNyw2MS40YzcuNywxOS40LDI5LjcsNjIuMyw1MC43LDEwMS4yCgljMCwwLjEtMTQuNiwyLjktMzEuNCw2LjhjLTIzLjksNS41LTUyLjYsMTIuNy01NC4zLDEzLjdjLTMuNSwyLjEtMywxMC0yLjcsMTJjMC41LDMuNCw1LjMsOC4xLDYuOSw4LjNjMy45LDAuMywzMS4zLTcuNiw1NS43LTE0LjYKCWMxOC41LTUuMywzNC45LTkuMywzNS41LTguMmM1LjEsOS4zLDEwLDE4LDE0LjQsMjUuOGM1LjIsOS4xLDEwLjcsMTYuNCwxNC4xLDIzLjZjMS4xLDIuMy0xNi42LDUuOC0zMi41LDE0LjcKCWMtMTYuNCw5LjEtMjkuNywyMS0zMi4zLDI0Yy0xLjgsMi4xLTMsNi0xLjIsMTAuN2MxLjEsMi45LDEwLDUuNywxMi40LDUuMWM2LjgtMS43LDE2LjUtMTIuNSwzMy4xLTIxLjEKCWMxNi4zLTguNSwzMi45LTE0LjksMzMuOC0xMy42YzkuNywxNC4zLDE2LjksMjEuNiwyMi42LDMxLjJjOS44LDE2LjUsMjcuMyw0NS45LDQ2LjYsMzkuNWM2LjQtMi4xLDMxLjEtMzMuNiw1My4zLTY4LjYKCWMxLjMtMi4xLDE2LjEsMTEuMywzMC40LDIzLjJjMTMuOCwxMS40LDIyLjcsMjAuNiwyNy4xLDIxLjRjNS40LDEsMTQuMi03LjcsMTQuMS0xNC43Yy0wLjEtMi43LTE0LjMtMTMuOC0yOS4xLTI2LjIKCWMtMTQuNS0xMi4xLTMwLjEtMjIuOC0yOS4yLTI0LjNjNy42LTEyLDE0LjUtMjMuNywyMC4xLTMzLjljNC4zLTcuOCw4LjktMTYsMTMtMjQuN2MwLjYtMS4yLDE1LjksMywzMS40LDcuMWMxNS4zLDQsMjYuNywxMCwzMSw4CgljNi45LTMsMTEuNi0xMy44LDkuNC0xOC4zYy0xLjEtMi4zLTE3LTcuMy0zMy4yLTEyYy0xNC4yLTQuMS0yOC02LjUtMjcuNy03LjNjMTUuNS0zNCwyOC44LTY0LjgsMjcuNi02OS42CgljLTEuNy03LjEsMi42LTExLjksNy0zNi41YzMuMi0xOC4xLDQuNy00MC45LDUuMi01MS43YzAuMi0zLjUsMi44LTYuMyw2LjMtNi43YzMuMS0wLjMsNi45LTAuOSwxMC41LTEuOWM3LjgtMiwxOC42LTcuOCwzNi40LTIwLjYKCWMxNy45LTEyLjgsMzguNy00OS42LDQ0LjQtNjcuOFM1NjcuNiwxMDYuOCw1NTYuOSw4Mi41eiBNMjY1LjEsMzM2LjJjLTguMSw0LTEzLDctMjYuNCw5LjZjLTYuOSwxLjQtMjkuNC0wLjItNDAuNy00LjYKCWMtMTAuNS00LjEtMTkuOS03LjYtMzAtMTUuNHMtMTUuNy0xMy4yLTE1LjctMTUuM2MwLTQuNCw2LTkuNCwxMS05LjRjNS4xLDAsMTQuNSw5LjIsMjkuNywxNi42YzE0LjMsNywxNy45LDYuMSwyNS40LDcuMwoJYzIuOSwwLjUsNy43LDAuNiwxMC43LDAuNGMxNC4xLTEuMywyMS40LTUuOSwyNS4zLTguOGM0LTMsMTMuNy0xMi45LDE3LjItMTIuNWM4LDEsMTguOSwzLjQsMTguOSw3LjEKCUMyOTAuNCwzMTksMjczLjIsMzMyLjEsMjY1LjEsMzM2LjJ6IE0zMjAuOSw1MjEuNGMtNC4zLDMuNy0xNy43LDEzLjUtMjMuMywxMy41Yy0yLjgsMC03LjQtOC4yLTExLjUtMTYuOAoJYy00LjEtOC41LTkuMS0yMS4xLTkuMS0zMS42YzAtNC42LDYtNy40LDEzLjQtOS4yYzcuMi0xLjcsMjcuMy0xLjgsMjkuOS0xLjFjNi44LDEuNywxMi45LDIuMiwxMi43LDYuNGMtMC40LDEyLjctNywxOC45LTguMywyNC4zCglDMzIzLjQsNTEyLjMsMzIzLjQsNTE5LjIsMzIwLjksNTIxLjR6IE00MzEuMSwzMjAuM2MtOS4yLDcuNC0xMC42LDguMS0yNC45LDEzLjdjLTExLjMsNC40LTI4LjYsNS44LTQxLjYsMy42CgljLTEyLjItMi4xLTIyLjMtNC42LTI5LjUtMTAuMWMtOS43LTcuMy0xNi40LTE1LjEtMTYuNC0xOS44YzAtMy43LDYuNC00LjMsMTQuNS00LjljMy41LTAuMyw5LjMsNS45LDEzLjIsOS4yCgljOC4xLDYuOCwxNC44LDgsMjguOCw5LjljMi45LDAuNCw3LjgsMC40LDEwLjcsMC4xYzcuNS0wLjksMTItMC40LDI1LjgtOC4yYzIwLTExLjIsMTcuOC0xNC40LDI1LjEtMTIuNmMyLjIsMC42LDUuOCwxLjIsNS42LDUuNgoJQzQ0Mi40LDMwOSw0NDAuNSwzMTIuNyw0MzEuMSwzMjAuM3oiLz4KPC9zdmc+Cg==", ife = {
49106
+ const rfe = /* @__PURE__ */ go(Zce, [["render", nfe]]), ife = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlJhdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDU5NS4zIDU5NS4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OTUuMyA1OTUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNFMjNCMzM7fQo8L3N0eWxlPgo8cGF0aCBpZD0iUmF0X1NoYXBlIiBjbGFzcz0ic3QwIiBkPSJNNTU2LjksODIuNWMtMTAuOC0yNC4zLTQ3LTU3LjEtNzEuMy02NS42Yy0yNC4zLTguNC02NC4xLTAuMy04OC43LDIyLjMKCWMtMjAsMTguNC0yNiwyOC4yLTI5LjEsMzdjLTIuMSw1LjktNC44LDEzLjUtNiwyMC45djBjLTAuNSw0LjEtNC41LDctOC42LDYuMWMtMTAuNC0yLjMtMjkuNS02LTQ0LjQtNi4zCgljLTEzLjctMC4yLTMwLjEsMy4yLTQwLjQsNS43Yy00LjUsMS4xLTguOC0yLjItOC44LTYuOGMtMC4xLTUuMy0xLjEtMTIuMy00LjgtMTkuNmMtOC41LTE2LjktMTkuNi0zMi42LTU3LjgtNDcuNAoJYy0zMS45LTEyLjQtNzUuMS05LjctMTAwLjgsMS44Yy0yOC4xLDEyLjYtNDIuNCwzNy45LTU0LDYxLjhjLTE0LjQsMjkuOC0xNC45LDgzLjYtNi40LDEwNGMxMi44LDMwLjcsMzUuOCw0Ny4yLDUyLjYsNTMKCWMxMS4zLDMuOCwyOC4yLDMuNywzOC4yLDMuM2M0LjItMC4yLDcuNywzLjMsNy41LDcuNWMtMC43LDEzLjYtMC45LDQxLjUsNyw2MS40YzcuNywxOS40LDI5LjcsNjIuMyw1MC43LDEwMS4yCgljMCwwLjEtMTQuNiwyLjktMzEuNCw2LjhjLTIzLjksNS41LTUyLjYsMTIuNy01NC4zLDEzLjdjLTMuNSwyLjEtMywxMC0yLjcsMTJjMC41LDMuNCw1LjMsOC4xLDYuOSw4LjNjMy45LDAuMywzMS4zLTcuNiw1NS43LTE0LjYKCWMxOC41LTUuMywzNC45LTkuMywzNS41LTguMmM1LjEsOS4zLDEwLDE4LDE0LjQsMjUuOGM1LjIsOS4xLDEwLjcsMTYuNCwxNC4xLDIzLjZjMS4xLDIuMy0xNi42LDUuOC0zMi41LDE0LjcKCWMtMTYuNCw5LjEtMjkuNywyMS0zMi4zLDI0Yy0xLjgsMi4xLTMsNi0xLjIsMTAuN2MxLjEsMi45LDEwLDUuNywxMi40LDUuMWM2LjgtMS43LDE2LjUtMTIuNSwzMy4xLTIxLjEKCWMxNi4zLTguNSwzMi45LTE0LjksMzMuOC0xMy42YzkuNywxNC4zLDE2LjksMjEuNiwyMi42LDMxLjJjOS44LDE2LjUsMjcuMyw0NS45LDQ2LjYsMzkuNWM2LjQtMi4xLDMxLjEtMzMuNiw1My4zLTY4LjYKCWMxLjMtMi4xLDE2LjEsMTEuMywzMC40LDIzLjJjMTMuOCwxMS40LDIyLjcsMjAuNiwyNy4xLDIxLjRjNS40LDEsMTQuMi03LjcsMTQuMS0xNC43Yy0wLjEtMi43LTE0LjMtMTMuOC0yOS4xLTI2LjIKCWMtMTQuNS0xMi4xLTMwLjEtMjIuOC0yOS4yLTI0LjNjNy42LTEyLDE0LjUtMjMuNywyMC4xLTMzLjljNC4zLTcuOCw4LjktMTYsMTMtMjQuN2MwLjYtMS4yLDE1LjksMywzMS40LDcuMWMxNS4zLDQsMjYuNywxMCwzMSw4CgljNi45LTMsMTEuNi0xMy44LDkuNC0xOC4zYy0xLjEtMi4zLTE3LTcuMy0zMy4yLTEyYy0xNC4yLTQuMS0yOC02LjUtMjcuNy03LjNjMTUuNS0zNCwyOC44LTY0LjgsMjcuNi02OS42CgljLTEuNy03LjEsMi42LTExLjksNy0zNi41YzMuMi0xOC4xLDQuNy00MC45LDUuMi01MS43YzAuMi0zLjUsMi44LTYuMyw2LjMtNi43YzMuMS0wLjMsNi45LTAuOSwxMC41LTEuOWM3LjgtMiwxOC42LTcuOCwzNi40LTIwLjYKCWMxNy45LTEyLjgsMzguNy00OS42LDQ0LjQtNjcuOFM1NjcuNiwxMDYuOCw1NTYuOSw4Mi41eiBNMjY1LjEsMzM2LjJjLTguMSw0LTEzLDctMjYuNCw5LjZjLTYuOSwxLjQtMjkuNC0wLjItNDAuNy00LjYKCWMtMTAuNS00LjEtMTkuOS03LjYtMzAtMTUuNHMtMTUuNy0xMy4yLTE1LjctMTUuM2MwLTQuNCw2LTkuNCwxMS05LjRjNS4xLDAsMTQuNSw5LjIsMjkuNywxNi42YzE0LjMsNywxNy45LDYuMSwyNS40LDcuMwoJYzIuOSwwLjUsNy43LDAuNiwxMC43LDAuNGMxNC4xLTEuMywyMS40LTUuOSwyNS4zLTguOGM0LTMsMTMuNy0xMi45LDE3LjItMTIuNWM4LDEsMTguOSwzLjQsMTguOSw3LjEKCUMyOTAuNCwzMTksMjczLjIsMzMyLjEsMjY1LjEsMzM2LjJ6IE0zMjAuOSw1MjEuNGMtNC4zLDMuNy0xNy43LDEzLjUtMjMuMywxMy41Yy0yLjgsMC03LjQtOC4yLTExLjUtMTYuOAoJYy00LjEtOC41LTkuMS0yMS4xLTkuMS0zMS42YzAtNC42LDYtNy40LDEzLjQtOS4yYzcuMi0xLjcsMjcuMy0xLjgsMjkuOS0xLjFjNi44LDEuNywxMi45LDIuMiwxMi43LDYuNGMtMC40LDEyLjctNywxOC45LTguMywyNC4zCglDMzIzLjQsNTEyLjMsMzIzLjQsNTE5LjIsMzIwLjksNTIxLjR6IE00MzEuMSwzMjAuM2MtOS4yLDcuNC0xMC42LDguMS0yNC45LDEzLjdjLTExLjMsNC40LTI4LjYsNS44LTQxLjYsMy42CgljLTEyLjItMi4xLTIyLjMtNC42LTI5LjUtMTAuMWMtOS43LTcuMy0xNi40LTE1LjEtMTYuNC0xOS44YzAtMy43LDYuNC00LjMsMTQuNS00LjljMy41LTAuMyw5LjMsNS45LDEzLjIsOS4yCgljOC4xLDYuOCwxNC44LDgsMjguOCw5LjljMi45LDAuNCw3LjgsMC40LDEwLjcsMC4xYzcuNS0wLjksMTItMC40LDI1LjgtOC4yYzIwLTExLjIsMTcuOC0xNC40LDI1LjEtMTIuNmMyLjIsMC42LDUuOCwxLjIsNS42LDUuNgoJQzQ0Mi40LDMwOSw0NDAuNSwzMTIuNyw0MzEuMSwzMjAuM3oiLz4KPC9zdmc+Cg==", ofe = {
49079
49107
  id: "engine-splash-screen",
49080
49108
  class: "flex justify-center items-center"
49081
- }, ofe = { id: "engine-splash-title" }, afe = ["src"], sfe = /* @__PURE__ */ Nn({
49109
+ }, afe = { id: "engine-splash-title" }, sfe = ["src"], ufe = /* @__PURE__ */ Nn({
49082
49110
  __name: "engine-splash",
49083
49111
  emits: ["finished"],
49084
49112
  setup(t, { emit: e }) {
@@ -49095,7 +49123,7 @@ const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xm
49095
49123
  () => typeof a.value.overrideText == "string" ? a.value.overrideText : "Made with narrat engine"
49096
49124
  ), u = ft(() => {
49097
49125
  var d;
49098
- return (d = a.value.overrideLogo) != null ? d : rfe;
49126
+ return (d = a.value.overrideLogo) != null ? d : ife;
49099
49127
  }), l = ft(
49100
49128
  () => typeof a.value.fadeDuration == "number" ? a.value.fadeDuration : 2
49101
49129
  ), f = ft(
@@ -49113,19 +49141,19 @@ const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xm
49113
49141
  e("finished");
49114
49142
  });
49115
49143
  }
49116
- return (d, h) => (Ee(), Ye("div", ife, [
49144
+ return (d, h) => (Ee(), Ye("div", ofe, [
49117
49145
  Ie("div", {
49118
49146
  id: "engine-splash-header",
49119
49147
  class: vr(["flex justify-center flex-col items-center", bt(i)]),
49120
49148
  style: lr(bt(r))
49121
49149
  }, [
49122
- Ie("h1", ofe, zt(bt(s)), 1),
49150
+ Ie("h1", afe, zt(bt(s)), 1),
49123
49151
  Ie("img", {
49124
49152
  src: bt(u),
49125
49153
  alt: "Narrat Logo",
49126
49154
  id: "engine-splash-logo"
49127
- }, null, 8, afe),
49128
- Br(nfe, {
49155
+ }, null, 8, sfe),
49156
+ Br(rfe, {
49129
49157
  percentage: bt(o).loading.percentage,
49130
49158
  step: bt(o).loading.step
49131
49159
  }, null, 8, ["percentage", "step"])
@@ -49133,17 +49161,17 @@ const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xm
49133
49161
  ]));
49134
49162
  }
49135
49163
  });
49136
- const ufe = {
49164
+ const lfe = {
49137
49165
  id: "game-splash-screen",
49138
49166
  style: { height: "100%", padding: "20px" },
49139
49167
  class: "flex justify-center items-center"
49140
- }, lfe = {
49168
+ }, cfe = {
49141
49169
  id: "game-splash-screen-header flex justify-center flex-col items-center",
49142
49170
  class: "flex justify-center flex-col items-center"
49143
- }, cfe = {
49171
+ }, ffe = {
49144
49172
  class: "title",
49145
49173
  id: "game-splash-title"
49146
- }, ffe = /* @__PURE__ */ Nn({
49174
+ }, dfe = /* @__PURE__ */ Nn({
49147
49175
  __name: "game-splash",
49148
49176
  setup(t) {
49149
49177
  const e = rn(), n = ft(
@@ -49159,9 +49187,9 @@ const ufe = {
49159
49187
  }
49160
49188
  return ys(() => {
49161
49189
  e.options.debug && a();
49162
- }), (s, u) => (Ee(), Ye("div", ufe, [
49163
- Ie("div", lfe, [
49164
- Ie("h1", cfe, zt(bt(o)), 1),
49190
+ }), (s, u) => (Ee(), Ye("div", lfe, [
49191
+ Ie("div", cfe, [
49192
+ Ie("h1", ffe, zt(bt(o)), 1),
49165
49193
  bt(i) ? (Ee(), Ye("button", {
49166
49194
  key: 0,
49167
49195
  class: "button menu-button main-menu-button large splash-start-button override",
@@ -49171,10 +49199,10 @@ const ufe = {
49171
49199
  ]));
49172
49200
  }
49173
49201
  });
49174
- const dfe = {
49202
+ const hfe = {
49175
49203
  key: 0,
49176
49204
  class: "floating-tooltip-title"
49177
- }, hfe = /* @__PURE__ */ Ie("hr", null, null, -1), pfe = { class: "floating-tooltip-text" }, vfe = /* @__PURE__ */ Nn({
49205
+ }, pfe = /* @__PURE__ */ Ie("hr", null, null, -1), vfe = { class: "floating-tooltip-text" }, mfe = /* @__PURE__ */ Nn({
49178
49206
  __name: "floating-tooltip",
49179
49207
  props: {
49180
49208
  title: null,
@@ -49201,26 +49229,26 @@ const dfe = {
49201
49229
  ref_key: "element",
49202
49230
  ref: r
49203
49231
  }, [
49204
- t.title ? (Ee(), Ye("div", dfe, [
49232
+ t.title ? (Ee(), Ye("div", hfe, [
49205
49233
  sc(zt(e.title) + " ", 1),
49206
- hfe
49234
+ pfe
49207
49235
  ])) : vn("", !0),
49208
- Ie("div", pfe, zt(e.text), 1)
49236
+ Ie("div", vfe, zt(e.text), 1)
49209
49237
  ], 4)
49210
49238
  ]),
49211
49239
  _: 1
49212
49240
  }));
49213
49241
  }
49214
49242
  });
49215
- const mfe = { class: "tooltips-ui" }, gfe = /* @__PURE__ */ Nn({
49243
+ const gfe = { class: "tooltips-ui" }, yfe = /* @__PURE__ */ Nn({
49216
49244
  __name: "tooltips-ui",
49217
49245
  setup(t) {
49218
49246
  const e = ft(() => sw().tooltip);
49219
- return ft(() => pm().options.width), (n, r) => (Ee(), Ye("div", mfe, [
49220
- bt(e) ? (Ee(), pn(vfe, KR(JR({ key: 0 }, bt(e))), null, 16)) : vn("", !0)
49247
+ return ft(() => pm().options.width), (n, r) => (Ee(), Ye("div", gfe, [
49248
+ bt(e) ? (Ee(), pn(mfe, KR(JR({ key: 0 }, bt(e))), null, 16)) : vn("", !0)
49221
49249
  ]));
49222
49250
  }
49223
- }), yfe = Nn({
49251
+ }), bfe = Nn({
49224
49252
  setup() {
49225
49253
  const t = Xn(), e = En(), n = rn();
49226
49254
  return {
@@ -49235,14 +49263,14 @@ const mfe = { class: "tooltips-ui" }, gfe = /* @__PURE__ */ Nn({
49235
49263
  },
49236
49264
  inject: ["mq"],
49237
49265
  components: {
49238
- DebugMenu: gle,
49239
- NotificationToast: kle,
49240
- StartMenu: Zle,
49241
- AlertModal: tce,
49242
- InGame: Yce,
49243
- EngineSplash: sfe,
49244
- GameSplash: ffe,
49245
- TooltipsUi: gfe
49266
+ DebugMenu: yle,
49267
+ NotificationToast: _le,
49268
+ StartMenu: ece,
49269
+ AlertModal: nce,
49270
+ InGame: Xce,
49271
+ EngineSplash: ufe,
49272
+ GameSplash: dfe,
49273
+ TooltipsUi: yfe
49246
49274
  },
49247
49275
  data() {
49248
49276
  return {
@@ -49306,7 +49334,7 @@ const mfe = { class: "tooltips-ui" }, gfe = /* @__PURE__ */ Nn({
49306
49334
  }
49307
49335
  }
49308
49336
  });
49309
- function bfe(t, e, n, r, i, o) {
49337
+ function wfe(t, e, n, r, i, o) {
49310
49338
  const a = Ni("EngineSplash"), s = Ni("GameSplash"), u = Ni("StartMenu"), l = Ni("InGame"), f = Ni("DebugMenu"), c = Ni("NotificationToast"), d = Ni("AlertModal"), h = Ni("TooltipsUi");
49311
49339
  return Ee(), Ye(Zn, null, [
49312
49340
  Ie("div", {
@@ -49342,13 +49370,13 @@ function bfe(t, e, n, r, i, o) {
49342
49370
  Br(h)
49343
49371
  ], 64);
49344
49372
  }
49345
- const wfe = /* @__PURE__ */ go(yfe, [["render", bfe]]);
49373
+ const kfe = /* @__PURE__ */ go(bfe, [["render", wfe]]);
49346
49374
  function Jt(t, e) {
49347
49375
  console.error("Runtime error ========================="), console.error(`Command: ${t.commandType}`), console.error("Args: ", t.args), console.error("Options: ", t.options), Zt(`Runtime error at ${t.fileName}:${t.line} (${t.commandType}) ${t.code}. -
49348
49376
  <br />
49349
49377
  Error: ${e}`), console.error("============================");
49350
49378
  }
49351
- function kfe(t, ...e) {
49379
+ function _fe(t, ...e) {
49352
49380
  console.log(`[${t.fileName}:${t.line}] log: `, ...e);
49353
49381
  }
49354
49382
  class Qe {
@@ -49409,7 +49437,7 @@ function mm(t, e) {
49409
49437
  });
49410
49438
  };
49411
49439
  }
49412
- const _fe = new Qe(
49440
+ const xfe = new Qe(
49413
49441
  "add_level",
49414
49442
  [
49415
49443
  {
@@ -49434,7 +49462,7 @@ const _fe = new Qe(
49434
49462
  }
49435
49463
  Dr().incrementSkill(e, n);
49436
49464
  }
49437
- ), xfe = Qe.FromOptions({
49465
+ ), jfe = Qe.FromOptions({
49438
49466
  keyword: "set_level",
49439
49467
  argTypes: [
49440
49468
  { name: "skill", type: "string" },
@@ -49453,7 +49481,7 @@ const _fe = new Qe(
49453
49481
  }
49454
49482
  Dr().setSkillLevel(e, n);
49455
49483
  }
49456
- }), jfe = new Qe(
49484
+ }), Sfe = new Qe(
49457
49485
  "add_xp",
49458
49486
  [
49459
49487
  { name: "xpKey", type: "string" },
@@ -49466,7 +49494,7 @@ const _fe = new Qe(
49466
49494
  "add_xp command needs a skill id and a value as parameters"
49467
49495
  ), Dr().addXp(e, n);
49468
49496
  }
49469
- ), Sfe = new Qe(
49497
+ ), Cfe = new Qe(
49470
49498
  "get_level",
49471
49499
  [
49472
49500
  {
@@ -49483,7 +49511,7 @@ const _fe = new Qe(
49483
49511
  const n = Dr().getSkill(e);
49484
49512
  return n || Jt(t, `Skill ${e} not found`), n.level;
49485
49513
  }
49486
- ), Cfe = new Qe(
49514
+ ), $fe = new Qe(
49487
49515
  "get_xp",
49488
49516
  [
49489
49517
  {
@@ -49497,7 +49525,7 @@ const _fe = new Qe(
49497
49525
  const n = Dr().getSkillXp(e);
49498
49526
  return n || Jt(t, `XP ${e} not found`), n;
49499
49527
  }
49500
- ), $fe = new Qe(
49528
+ ), Ofe = new Qe(
49501
49529
  "roll",
49502
49530
  [
49503
49531
  { name: "id", type: "string" },
@@ -49516,15 +49544,15 @@ const _fe = new Qe(
49516
49544
  repeatable: a
49517
49545
  }).succeeded;
49518
49546
  }
49519
- ), Ofe = new Qe(
49547
+ ), Tfe = new Qe(
49520
49548
  "get_skill_check",
49521
49549
  [{ name: "skillCheckId", type: "string" }],
49522
49550
  async (t) => Dr().getSkillCheck(t.options.skillCheckId)
49523
- ), Tfe = new Qe(
49551
+ ), Afe = new Qe(
49524
49552
  "skill_check_result",
49525
49553
  [{ name: "skillCheckId", type: "string" }],
49526
49554
  async (t) => Dr().getSkillCheck(t.options.skillCheckId).succeeded
49527
- ), Afe = new Qe(
49555
+ ), Efe = new Qe(
49528
49556
  "reset_roll",
49529
49557
  [
49530
49558
  {
@@ -49533,7 +49561,7 @@ const _fe = new Qe(
49533
49561
  }
49534
49562
  ],
49535
49563
  async (t) => Dr().resetSkillCheck(t.options.id)
49536
- ), Efe = new Qe(
49564
+ ), Mfe = new Qe(
49537
49565
  "add_stat",
49538
49566
  [
49539
49567
  { name: "statKey", type: "string" },
@@ -49546,7 +49574,7 @@ const _fe = new Qe(
49546
49574
  "add_stat command needs a stat id and a value as parameters"
49547
49575
  ), is().addStat(e, n);
49548
49576
  }
49549
- ), Mfe = new Qe(
49577
+ ), Pfe = new Qe(
49550
49578
  "set_stat",
49551
49579
  [
49552
49580
  { name: "statKey", type: "string" },
@@ -49559,13 +49587,13 @@ const _fe = new Qe(
49559
49587
  "set_stat command needs a stat id and a value as parameters"
49560
49588
  ), is().setStat(e, n);
49561
49589
  }
49562
- ), Pfe = new Qe("get_stat_value", [{ name: "statKey", type: "string" }], async (t) => {
49590
+ ), Ife = new Qe("get_stat_value", [{ name: "statKey", type: "string" }], async (t) => {
49563
49591
  const { statKey: e } = t.options;
49564
49592
  return e || Jt(
49565
49593
  t,
49566
49594
  "get_stat_value command needs a stat id as parameter"
49567
49595
  ), is().getStatValue(e);
49568
- }), Ife = Qe.FromOptions({
49596
+ }), Nfe = Qe.FromOptions({
49569
49597
  keyword: "jump",
49570
49598
  argTypes: "any",
49571
49599
  runner: async (t) => {
@@ -49582,7 +49610,7 @@ const _fe = new Qe(
49582
49610
  }
49583
49611
  return n.jumpTarget = r, Qp;
49584
49612
  }
49585
- }), Nfe = Qe.FromOptions({
49613
+ }), Lfe = Qe.FromOptions({
49586
49614
  keyword: "run",
49587
49615
  argTypes: "any",
49588
49616
  runner: async (t) => {
@@ -49590,7 +49618,7 @@ const _fe = new Qe(
49590
49618
  const e = t.args[0];
49591
49619
  return await En().runLabelFunction(e, ...t.args.slice(1));
49592
49620
  }
49593
- }), Lfe = Qe.FromOptions({
49621
+ }), Dfe = Qe.FromOptions({
49594
49622
  keyword: "var",
49595
49623
  argTypes: [
49596
49624
  { name: "name", type: "string" },
@@ -49600,30 +49628,30 @@ const _fe = new Qe(
49600
49628
  const { name: e, value: n } = t.options;
49601
49629
  En().addScopedVariable(e, n);
49602
49630
  }
49603
- }), Dfe = Qe.FromOptions({
49631
+ }), Rfe = Qe.FromOptions({
49604
49632
  keyword: "return",
49605
49633
  argTypes: [{ name: "value", type: "any" }],
49606
49634
  runner: async (t) => {
49607
49635
  const { value: e } = t.options;
49608
49636
  return En().setReturnValue(e), aw;
49609
49637
  }
49610
- }), Rfe = Qe.FromOptions({
49638
+ }), zfe = Qe.FromOptions({
49611
49639
  keyword: "log",
49612
49640
  argTypes: "any",
49613
49641
  runner: async (t) => {
49614
- kfe(t, ...t.args);
49642
+ _fe(t, ...t.args);
49615
49643
  }
49616
- }), zfe = Qe.FromOptions({
49644
+ }), Ffe = Qe.FromOptions({
49617
49645
  keyword: "menu_return",
49618
49646
  argTypes: [],
49619
49647
  runner: async (t) => (rn().menuReturn(), Yp)
49620
- }), Ffe = Qe.FromOptions({
49648
+ }), Bfe = Qe.FromOptions({
49621
49649
  keyword: "save",
49622
49650
  argTypes: [{ name: "name", type: "string", optional: !0 }],
49623
49651
  runner: async (t) => {
49624
49652
  await rn().manualSave({ saveName: t.options.name });
49625
49653
  }
49626
- }), Bfe = Qe.FromOptions({
49654
+ }), qfe = Qe.FromOptions({
49627
49655
  keyword: "save_prompt",
49628
49656
  argTypes: [{ name: "name", type: "string", optional: !0 }],
49629
49657
  runner: async (t) => {
@@ -49632,7 +49660,7 @@ const _fe = new Qe(
49632
49660
  withPrompt: !0
49633
49661
  });
49634
49662
  }
49635
- }), qfe = Qe.FromOptions({
49663
+ }), Vfe = Qe.FromOptions({
49636
49664
  keyword: "new",
49637
49665
  argTypes: [
49638
49666
  { name: "name", type: "string" },
@@ -49645,18 +49673,18 @@ const _fe = new Qe(
49645
49673
  if (e === "Object")
49646
49674
  return {};
49647
49675
  }
49648
- }), Vfe = [
49676
+ }), Hfe = [
49649
49677
  { name: "mode", type: "string" },
49650
49678
  { name: "audio", type: "string" },
49651
49679
  { name: "channel", type: "number", optional: !0 }
49652
- ], Hfe = new Qe(
49680
+ ], Ufe = new Qe(
49653
49681
  "play",
49654
- Vfe,
49682
+ Hfe,
49655
49683
  async (t) => {
49656
49684
  const e = wi(), { mode: n, audio: r, channel: i } = t.options, o = ok(t, n);
49657
49685
  o && e.playChannel(o, r, i != null ? i : 0);
49658
49686
  }
49659
- ), Ufe = new Qe(
49687
+ ), Wfe = new Qe(
49660
49688
  "pause",
49661
49689
  [
49662
49690
  { name: "mode", type: "string" },
@@ -49666,7 +49694,7 @@ const _fe = new Qe(
49666
49694
  const e = wi(), { mode: n, channel: r } = t.options, i = ok(t, n);
49667
49695
  i && e.pauseChannel(i, r != null ? r : 0);
49668
49696
  }
49669
- ), Wfe = new Qe(
49697
+ ), Kfe = new Qe(
49670
49698
  "stop",
49671
49699
  [
49672
49700
  { name: "mode", type: "string" },
@@ -49678,12 +49706,12 @@ const _fe = new Qe(
49678
49706
  }
49679
49707
  );
49680
49708
  function ok(t, e) {
49681
- return Kfe(e) ? e : (Jt(t, `${e} is not a valid audio mode.`), !1);
49709
+ return Jfe(e) ? e : (Jt(t, `${e} is not a valid audio mode.`), !1);
49682
49710
  }
49683
- function Kfe(t) {
49711
+ function Jfe(t) {
49684
49712
  return !!dL.includes(t);
49685
49713
  }
49686
- const Jfe = new Qe(
49714
+ const Gfe = new Qe(
49687
49715
  "set",
49688
49716
  [
49689
49717
  { name: "key", type: "string" },
@@ -49693,7 +49721,7 @@ const Jfe = new Qe(
49693
49721
  const e = oc();
49694
49722
  IR(e, `$${t.options.key}`, t.options.value);
49695
49723
  }
49696
- ), Gfe = new Qe(
49724
+ ), Qfe = new Qe(
49697
49725
  "add",
49698
49726
  [
49699
49727
  { name: "key", type: "string" },
@@ -49703,7 +49731,7 @@ const Jfe = new Qe(
49703
49731
  const e = oc();
49704
49732
  NR(e, `$${t.options.key}`, t.options.value);
49705
49733
  }
49706
- ), Qfe = new Qe(
49734
+ ), Yfe = new Qe(
49707
49735
  "set_screen",
49708
49736
  [
49709
49737
  { name: "screen", type: "string" },
@@ -49715,7 +49743,7 @@ const Jfe = new Qe(
49715
49743
  async (t) => {
49716
49744
  var r;
49717
49745
  const e = Oa();
49718
- if (!zue(t.options.screen)) {
49746
+ if (!Fue(t.options.screen)) {
49719
49747
  Jt(
49720
49748
  t,
49721
49749
  `Screen ${t.options.screen} doesn't exist in the config`
@@ -49732,7 +49760,7 @@ const Jfe = new Qe(
49732
49760
  t.options.layer
49733
49761
  ) : e.setScreen(t.options.screen, (r = t.options.layer) != null ? r : 0);
49734
49762
  }
49735
- ), Yfe = new Qe(
49763
+ ), Xfe = new Qe(
49736
49764
  "empty_layer",
49737
49765
  [
49738
49766
  { name: "layer", type: "number" },
@@ -49748,7 +49776,7 @@ const Jfe = new Qe(
49748
49776
  delay: t.options.transitionDelay
49749
49777
  }) : e.emptyLayer(t.options.layer);
49750
49778
  }
49751
- ), Xfe = new Qe(
49779
+ ), Zfe = new Qe(
49752
49780
  "set_button",
49753
49781
  [
49754
49782
  { name: "buttonId", type: "string" },
@@ -49765,7 +49793,7 @@ const Jfe = new Qe(
49765
49793
  }
49766
49794
  r.changeButton(e, n);
49767
49795
  }
49768
- ), Zfe = Qe.FromOptions({
49796
+ ), ede = Qe.FromOptions({
49769
49797
  keyword: "talk",
49770
49798
  argTypes: [
49771
49799
  {
@@ -49792,7 +49820,7 @@ const Jfe = new Qe(
49792
49820
  });
49793
49821
  },
49794
49822
  returnAfterPlayerAnswer: !0
49795
- }), ede = Qe.FromOptions({
49823
+ }), tde = Qe.FromOptions({
49796
49824
  keyword: "think",
49797
49825
  argTypes: [
49798
49826
  {
@@ -49819,7 +49847,7 @@ const Jfe = new Qe(
49819
49847
  });
49820
49848
  },
49821
49849
  returnAfterPlayerAnswer: !0
49822
- }), tde = () => {
49850
+ }), nde = () => {
49823
49851
  const t = mm("text", []);
49824
49852
  return (e, n) => {
49825
49853
  const r = t(e, n);
@@ -49827,7 +49855,7 @@ const Jfe = new Qe(
49827
49855
  text: n.code.substring(1, n.code.length - 1)
49828
49856
  }, r;
49829
49857
  };
49830
- }, nde = Qe.FromOptions({
49858
+ }, rde = Qe.FromOptions({
49831
49859
  keyword: "text",
49832
49860
  argTypes: [],
49833
49861
  runner: async (t, e) => {
@@ -49839,9 +49867,9 @@ const Jfe = new Qe(
49839
49867
  interactive: !0
49840
49868
  });
49841
49869
  },
49842
- parser: tde(),
49870
+ parser: nde(),
49843
49871
  returnAfterPlayerAnswer: !0
49844
- }), rde = new Qe(
49872
+ }), ide = new Qe(
49845
49873
  "add_item",
49846
49874
  [
49847
49875
  { name: "id", type: "string" },
@@ -49854,7 +49882,7 @@ const Jfe = new Qe(
49854
49882
  amount: n
49855
49883
  });
49856
49884
  }
49857
- ), ide = new Qe(
49885
+ ), ode = new Qe(
49858
49886
  "remove_item",
49859
49887
  [
49860
49888
  { name: "id", type: "string" },
@@ -49867,7 +49895,7 @@ const Jfe = new Qe(
49867
49895
  amount: n
49868
49896
  });
49869
49897
  }
49870
- ), ode = new Qe(
49898
+ ), ade = new Qe(
49871
49899
  "has_item?",
49872
49900
  [
49873
49901
  { name: "id", type: "string" },
@@ -49877,35 +49905,35 @@ const Jfe = new Qe(
49877
49905
  const { id: e, amount: n } = t.options;
49878
49906
  return ti().hasItem(e, n);
49879
49907
  }
49880
- ), ade = new Qe(
49908
+ ), sde = new Qe(
49881
49909
  "item_amount?",
49882
49910
  [{ name: "id", type: "string" }],
49883
49911
  async (t) => {
49884
49912
  const { id: e } = t.options;
49885
49913
  return ti().getItemAmount(e);
49886
49914
  }
49887
- ), sde = new Qe(
49915
+ ), ude = new Qe(
49888
49916
  "enable_interaction",
49889
49917
  [{ name: "tag", type: "string" }],
49890
49918
  async (t) => {
49891
49919
  const e = t.options.tag;
49892
49920
  ti().enableInteraction(e);
49893
49921
  }
49894
- ), ude = new Qe(
49922
+ ), lde = new Qe(
49895
49923
  "disable_interaction",
49896
49924
  [{ name: "tag", type: "string" }],
49897
49925
  async (t) => {
49898
49926
  const e = t.options.tag;
49899
49927
  ti().disableInteraction(e);
49900
49928
  }
49901
- ), lde = new Qe(
49929
+ ), cde = new Qe(
49902
49930
  "start_quest",
49903
49931
  [{ name: "questId", type: "string" }],
49904
49932
  async (t) => {
49905
49933
  const e = t.options.questId;
49906
49934
  Vi().startQuest(e);
49907
49935
  }
49908
- ), cde = new Qe(
49936
+ ), fde = new Qe(
49909
49937
  "start_objective",
49910
49938
  [
49911
49939
  { name: "questId", type: "string" },
@@ -49915,7 +49943,7 @@ const Jfe = new Qe(
49915
49943
  const { questId: e, objectiveId: n } = t.options;
49916
49944
  Vi().startObjective(e, n);
49917
49945
  }
49918
- ), fde = new Qe(
49946
+ ), dde = new Qe(
49919
49947
  "complete_objective",
49920
49948
  [
49921
49949
  { name: "questId", type: "string" },
@@ -49925,7 +49953,7 @@ const Jfe = new Qe(
49925
49953
  const { questId: e, objectiveId: n } = t.options;
49926
49954
  Vi().completeObjective(e, n);
49927
49955
  }
49928
- ), dde = new Qe(
49956
+ ), hde = new Qe(
49929
49957
  "complete_quest",
49930
49958
  [
49931
49959
  { name: "questId", type: "string" },
@@ -49935,10 +49963,10 @@ const Jfe = new Qe(
49935
49963
  const { questId: e, ending: n } = t.options;
49936
49964
  Vi().completeQuest(e, n);
49937
49965
  }
49938
- ), hde = new Qe("quest_completed?", [{ name: "questId", type: "string" }], async (t) => {
49966
+ ), pde = new Qe("quest_completed?", [{ name: "questId", type: "string" }], async (t) => {
49939
49967
  const { questId: e } = t.options;
49940
49968
  return Vi().isQuestCompleted(e);
49941
- }), pde = new Qe(
49969
+ }), vde = new Qe(
49942
49970
  "objective_completed?",
49943
49971
  [
49944
49972
  { name: "questId", type: "string" },
@@ -49948,10 +49976,10 @@ const Jfe = new Qe(
49948
49976
  const { questId: e, objectiveId: n } = t.options;
49949
49977
  return Vi().isObjectiveCompleted(e, n);
49950
49978
  }
49951
- ), vde = new Qe("quest_started?", [{ name: "questId", type: "string" }], async (t) => {
49979
+ ), mde = new Qe("quest_started?", [{ name: "questId", type: "string" }], async (t) => {
49952
49980
  const { questId: e } = t.options;
49953
49981
  return Vi().isQuestStarted(e);
49954
- }), mde = new Qe(
49982
+ }), gde = new Qe(
49955
49983
  "objective_started?",
49956
49984
  [
49957
49985
  { name: "questId", type: "string" },
@@ -49961,38 +49989,38 @@ const Jfe = new Qe(
49961
49989
  const { questId: e, objectiveId: n } = t.options;
49962
49990
  return Vi().isObjectiveStarted(e, n);
49963
49991
  }
49964
- ), gde = Qe.FromOptions({
49992
+ ), yde = Qe.FromOptions({
49965
49993
  keyword: "wait",
49966
49994
  argTypes: [{ name: "duration", type: "number" }],
49967
49995
  runner: async (t) => {
49968
49996
  await Zo(t.options.duration);
49969
49997
  }
49970
- }), yde = new Qe(
49998
+ }), bde = new Qe(
49971
49999
  "notify",
49972
50000
  [{ name: "text", type: "string" }],
49973
50001
  async (t) => {
49974
50002
  const { text: e } = t.options;
49975
50003
  To().addNotification(e);
49976
50004
  }
49977
- ), bde = new Qe(
50005
+ ), wde = new Qe(
49978
50006
  "disable_notifications",
49979
50007
  [],
49980
50008
  async (t) => {
49981
50009
  To().disableNotifications();
49982
50010
  }
49983
- ), wde = new Qe(
50011
+ ), kde = new Qe(
49984
50012
  "enable_notifications",
49985
50013
  [],
49986
50014
  async (t) => {
49987
50015
  To().enableNotifications();
49988
50016
  }
49989
- ), kde = new Qe(
50017
+ ), _de = new Qe(
49990
50018
  "clear_dialog",
49991
50019
  [],
49992
50020
  async (t) => {
49993
50021
  Xn().clearDialog();
49994
50022
  }
49995
- ), _de = new Qe(
50023
+ ), xde = new Qe(
49996
50024
  "if",
49997
50025
  [{ name: "condition", type: "boolean" }],
49998
50026
  async (t) => {
@@ -50030,7 +50058,7 @@ const Jfe = new Qe(
50030
50058
  newLine: n
50031
50059
  };
50032
50060
  }
50033
- ), xde = new Qe(
50061
+ ), jde = new Qe(
50034
50062
  "==",
50035
50063
  "any",
50036
50064
  async (t) => {
@@ -50044,7 +50072,7 @@ const Jfe = new Qe(
50044
50072
  e = r;
50045
50073
  return n;
50046
50074
  }
50047
- ), jde = new Qe(
50075
+ ), Sde = new Qe(
50048
50076
  ">",
50049
50077
  [
50050
50078
  { name: "a", type: "any" },
@@ -50054,7 +50082,7 @@ const Jfe = new Qe(
50054
50082
  const { a: e, b: n } = t.options;
50055
50083
  return e > n;
50056
50084
  }
50057
- ), Sde = new Qe(
50085
+ ), Cde = new Qe(
50058
50086
  "<",
50059
50087
  [
50060
50088
  { name: "a", type: "any" },
@@ -50064,7 +50092,7 @@ const Jfe = new Qe(
50064
50092
  const { a: e, b: n } = t.options;
50065
50093
  return e < n;
50066
50094
  }
50067
- ), Cde = new Qe(
50095
+ ), $de = new Qe(
50068
50096
  ">=",
50069
50097
  [
50070
50098
  { name: "a", type: "any" },
@@ -50074,7 +50102,7 @@ const Jfe = new Qe(
50074
50102
  const { a: e, b: n } = t.options;
50075
50103
  return e >= n;
50076
50104
  }
50077
- ), $de = new Qe(
50105
+ ), Ode = new Qe(
50078
50106
  "<=",
50079
50107
  [
50080
50108
  { name: "a", type: "any" },
@@ -50084,7 +50112,7 @@ const Jfe = new Qe(
50084
50112
  const { a: e, b: n } = t.options;
50085
50113
  return e <= n;
50086
50114
  }
50087
- ), Ode = new Qe(
50115
+ ), Tde = new Qe(
50088
50116
  "!=",
50089
50117
  [
50090
50118
  { name: "a", type: "any" },
@@ -50094,25 +50122,25 @@ const Jfe = new Qe(
50094
50122
  const { a: e, b: n } = t.options;
50095
50123
  return e != n;
50096
50124
  }
50097
- ), Tde = new Qe(
50125
+ ), Ade = new Qe(
50098
50126
  "!",
50099
50127
  [{ name: "a", type: "any" }],
50100
50128
  async (t) => {
50101
50129
  const { a: e } = t.options;
50102
50130
  return !e;
50103
50131
  }
50104
- ), Ade = new Qe(
50132
+ ), Ede = new Qe(
50105
50133
  "&&",
50106
50134
  "any",
50107
50135
  async (t) => {
50108
50136
  const e = t.args;
50109
50137
  return t.args.length < 2 && Jt(t, "requires at least two arguments"), e.reduce((n, r) => n && r, !0);
50110
50138
  }
50111
- ), Ede = new Qe(
50139
+ ), Mde = new Qe(
50112
50140
  "||",
50113
50141
  "any",
50114
50142
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => e || n, !1))
50115
- ), Mde = new Qe(
50143
+ ), Pde = new Qe(
50116
50144
  "?",
50117
50145
  [
50118
50146
  { name: "a", type: "any" },
@@ -50123,27 +50151,27 @@ const Jfe = new Qe(
50123
50151
  const { a: e, b: n, c: r } = t.options;
50124
50152
  return e ? n : r;
50125
50153
  }
50126
- ), Pde = new Qe(
50154
+ ), Ide = new Qe(
50127
50155
  "+",
50128
50156
  "any",
50129
50157
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "number" ? e + n : (Jt(t, "requires all arguments to be numbers"), e), 0))
50130
- ), Ide = new Qe(
50158
+ ), Nde = new Qe(
50131
50159
  "-",
50132
50160
  "any",
50133
50161
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.slice(1).reduce((e, n) => typeof n == "number" ? e - n : (Jt(t, "requires all arguments to be numbers"), e), t.args[0]))
50134
- ), Nde = new Qe(
50162
+ ), Lde = new Qe(
50135
50163
  "neg",
50136
50164
  [{ name: "a", type: "number" }],
50137
50165
  async (t) => (t.args.length !== 1 && Jt(t, "requires one argument"), -t.options.a)
50138
- ), Lde = new Qe(
50166
+ ), Dde = new Qe(
50139
50167
  "abs",
50140
50168
  [{ name: "a", type: "number" }],
50141
50169
  async (t) => (t.args.length !== 1 && Jt(t, "requires one argument"), Math.abs(t.options.a))
50142
- ), Dde = new Qe(
50170
+ ), Rde = new Qe(
50143
50171
  "*",
50144
50172
  "any",
50145
50173
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "number" ? e * n : (Jt(t, "requires all arguments to be numbers"), e), 1))
50146
- ), Rde = new Qe(
50174
+ ), zde = new Qe(
50147
50175
  "/",
50148
50176
  "any",
50149
50177
  async (t) => {
@@ -50151,7 +50179,7 @@ const Jfe = new Qe(
50151
50179
  const e = t.args[0] / t.args[1];
50152
50180
  return t.args.slice(2).reduce((n, r) => typeof r == "number" ? n / r : (Jt(t, "requires all arguments to be numbers"), n), e);
50153
50181
  }
50154
- ), zde = async (t) => {
50182
+ ), Fde = async (t) => {
50155
50183
  const { prompt: e, choices: n } = t.staticOptions, r = [];
50156
50184
  for (const [, a] of n.entries()) {
50157
50185
  const s = await mw(a.prompt);
@@ -50167,9 +50195,9 @@ const Jfe = new Qe(
50167
50195
  allowed: u
50168
50196
  };
50169
50197
  }).filter((a) => a.choice), o = await wD(e, i);
50170
- return await Vde(t, o);
50198
+ return await Hde(t, o);
50171
50199
  };
50172
- function Fde(t, e) {
50200
+ function Bde(t, e) {
50173
50201
  e.branch || t.parserContext.error(
50174
50202
  e.line,
50175
50203
  `Choice option doesn't have any branch to go to (${e.code} - ${e.line})`
@@ -50196,7 +50224,7 @@ function Fde(t, e) {
50196
50224
  skillBranches: n
50197
50225
  };
50198
50226
  }
50199
- const Bde = (t, e) => {
50227
+ const qde = (t, e) => {
50200
50228
  let n = t.currentLine;
50201
50229
  mm("choice", []);
50202
50230
  const { line: r } = t, i = e.command;
@@ -50209,19 +50237,19 @@ const Bde = (t, e) => {
50209
50237
  const s = r.branch.slice(1).map((u, l) => (u.branch || t.parserContext.error(
50210
50238
  u.line,
50211
50239
  `Choice option doesn't have any branch to go to (${u.code})`
50212
- ), u = Hde(t.parserContext, u), Fde(t, u)));
50240
+ ), u = Ude(t.parserContext, u), Bde(t, u)));
50213
50241
  return i.staticOptions = {
50214
50242
  prompt: t.processCommandsFunction(t.parserContext, [o], r)[0],
50215
50243
  choices: s
50216
50244
  }, n++, {
50217
50245
  newLine: n
50218
50246
  };
50219
- }, qde = Qe.FromOptions({
50247
+ }, Vde = Qe.FromOptions({
50220
50248
  keyword: "choice",
50221
50249
  argTypes: [],
50222
- runner: zde,
50223
- parser: Bde
50224
- }), Vde = async (t, e) => {
50250
+ runner: Fde,
50251
+ parser: qde
50252
+ }), Hde = async (t, e) => {
50225
50253
  const n = e, r = En(), { choices: i } = t.staticOptions, o = i[n], a = t.options.choiceResults[n];
50226
50254
  let s = a.text, u;
50227
50255
  if (a.skillCheck ? (s = null, _L({
@@ -50248,7 +50276,7 @@ const Bde = (t, e) => {
50248
50276
  return await r.addAndRunBlock(l);
50249
50277
  }
50250
50278
  };
50251
- function Hde(t, e) {
50279
+ function Ude(t, e) {
50252
50280
  return {
50253
50281
  code: `choicePrompt ${e.code}`,
50254
50282
  indentation: e.indentation,
@@ -50257,7 +50285,7 @@ function Hde(t, e) {
50257
50285
  expression: ["choicePrompt", ...e.expression]
50258
50286
  };
50259
50287
  }
50260
- const Ude = new Qe(
50288
+ const Wde = new Qe(
50261
50289
  "choicePrompt",
50262
50290
  "any",
50263
50291
  async (t) => {
@@ -50317,7 +50345,7 @@ const Ude = new Qe(
50317
50345
  }
50318
50346
  });
50319
50347
  zR.onPlayerAnswered = async (t, e) => (typeof e != "string" && Jt(t, "The player's answer should be a string"), e);
50320
- const Wde = Qe.FromOptions({
50348
+ const Kde = Qe.FromOptions({
50321
50349
  keyword: "text_field_prompt",
50322
50350
  argTypes: [{ name: "prompt", type: "string" }],
50323
50351
  runner: async (t) => {
@@ -50329,7 +50357,7 @@ const Wde = Qe.FromOptions({
50329
50357
  };
50330
50358
  Xn().addDialog(e);
50331
50359
  }
50332
- }), Kde = new Qe(
50360
+ }), Jde = new Qe(
50333
50361
  "random",
50334
50362
  [
50335
50363
  { name: "a", type: "number" },
@@ -50342,7 +50370,7 @@ const Wde = Qe.FromOptions({
50342
50370
  "random command needs two numbers as parameters"
50343
50371
  ), 0) : Math.floor(Math.random() * (n - e + 1)) + e;
50344
50372
  }
50345
- ), Jde = new Qe(
50373
+ ), Gde = new Qe(
50346
50374
  "random_float",
50347
50375
  [
50348
50376
  { name: "a", type: "number" },
@@ -50355,7 +50383,7 @@ const Wde = Qe.FromOptions({
50355
50383
  "random_float command needs two numbers as parameters"
50356
50384
  ), 0) : Math.random() * (n - e) + e;
50357
50385
  }
50358
- ), Gde = new Qe(
50386
+ ), Qde = new Qe(
50359
50387
  "random_from_args",
50360
50388
  [],
50361
50389
  async (t) => {
@@ -50365,7 +50393,7 @@ const Wde = Qe.FromOptions({
50365
50393
  "random_from_args command needs at least one argument"
50366
50394
  ), 0) : e[Math.floor(Math.random() * e.length)];
50367
50395
  }
50368
- ), Qde = new Qe(
50396
+ ), Yde = new Qe(
50369
50397
  "random_from_array",
50370
50398
  [{ name: "a", type: "any" }],
50371
50399
  async (t) => {
@@ -50375,18 +50403,18 @@ const Wde = Qe.FromOptions({
50375
50403
  "random_from_array command needs an array as parameter"
50376
50404
  ), 0);
50377
50405
  }
50378
- ), Yde = new Qe(
50406
+ ), Xde = new Qe(
50379
50407
  "concat",
50380
50408
  "any",
50381
50409
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "string" ? `${e}${n}` : (Jt(t, "requires all arguments to be strings"), e), ""))
50382
- ), Xde = new Qe(
50410
+ ), Zde = new Qe(
50383
50411
  "join",
50384
50412
  "any",
50385
50413
  async (t) => {
50386
50414
  const e = t.args[0];
50387
50415
  return t.args.length < 3 && Jt(t, "requires at least 3 arguments"), t.args.slice(1).reduce((n, r) => typeof r == "string" ? `${n}${e}${r}` : (Jt(t, "requires all arguments to be strings"), n), "");
50388
50416
  }
50389
- ), Zde = Qe.FromOptions({
50417
+ ), ehe = Qe.FromOptions({
50390
50418
  keyword: "min",
50391
50419
  argTypes: [
50392
50420
  { name: "min", type: "number" },
@@ -50396,7 +50424,7 @@ const Wde = Qe.FromOptions({
50396
50424
  const { min: e, value: n } = t.options;
50397
50425
  return n < e ? n : e;
50398
50426
  }
50399
- }), ehe = Qe.FromOptions({
50427
+ }), the = Qe.FromOptions({
50400
50428
  keyword: "max",
50401
50429
  argTypes: [
50402
50430
  { name: "max", type: "number" },
@@ -50406,7 +50434,7 @@ const Wde = Qe.FromOptions({
50406
50434
  const { max: e, value: n } = t.options;
50407
50435
  return n > e ? n : e;
50408
50436
  }
50409
- }), the = Qe.FromOptions({
50437
+ }), nhe = Qe.FromOptions({
50410
50438
  keyword: "clamp",
50411
50439
  argTypes: [
50412
50440
  { name: "min", type: "number" },
@@ -50417,35 +50445,35 @@ const Wde = Qe.FromOptions({
50417
50445
  const { min: e, max: n, value: r } = t.options;
50418
50446
  return r < e ? e : r > n ? n : r;
50419
50447
  }
50420
- }), nhe = Qe.FromOptions({
50448
+ }), rhe = Qe.FromOptions({
50421
50449
  keyword: "floor",
50422
50450
  argTypes: [{ name: "value", type: "number" }],
50423
50451
  runner: async (t) => {
50424
50452
  const { value: e } = t.options;
50425
50453
  return Math.floor(e);
50426
50454
  }
50427
- }), rhe = Qe.FromOptions({
50455
+ }), ihe = Qe.FromOptions({
50428
50456
  keyword: "ceil",
50429
50457
  argTypes: [{ name: "value", type: "number" }],
50430
50458
  runner: async (t) => {
50431
50459
  const { value: e } = t.options;
50432
50460
  return Math.ceil(e);
50433
50461
  }
50434
- }), ihe = Qe.FromOptions({
50462
+ }), ohe = Qe.FromOptions({
50435
50463
  keyword: "round",
50436
50464
  argTypes: [{ name: "value", type: "number" }],
50437
50465
  runner: async (t) => {
50438
50466
  const { value: e } = t.options;
50439
50467
  return Math.round(e);
50440
50468
  }
50441
- }), ohe = Qe.FromOptions({
50469
+ }), ahe = Qe.FromOptions({
50442
50470
  keyword: "sqrt",
50443
50471
  argTypes: [{ name: "value", type: "number" }],
50444
50472
  runner: async (t) => {
50445
50473
  const { value: e } = t.options;
50446
50474
  return Math.sqrt(e);
50447
50475
  }
50448
- }), ahe = Qe.FromOptions({
50476
+ }), she = Qe.FromOptions({
50449
50477
  keyword: "^",
50450
50478
  argTypes: [
50451
50479
  { name: "base", type: "number" },
@@ -50455,7 +50483,7 @@ const Wde = Qe.FromOptions({
50455
50483
  const { base: e, exponent: n } = t.options;
50456
50484
  return Math.pow(e, n);
50457
50485
  }
50458
- }), she = new Qe(
50486
+ }), uhe = new Qe(
50459
50487
  "create_sprite",
50460
50488
  [
50461
50489
  { name: "image", type: "string" },
@@ -50467,7 +50495,7 @@ const Wde = Qe.FromOptions({
50467
50495
  const e = Oo(), { x: n, y: r, image: i, parent: o } = t.options, a = { x: n, y: r, image: i };
50468
50496
  return typeof o == "object" && (a.parent = o), typeof o == "string" && (a.parent = Oo().getObject(o)), e.createSprite(a);
50469
50497
  }
50470
- ), uhe = new Qe(
50498
+ ), lhe = new Qe(
50471
50499
  "create_object",
50472
50500
  [
50473
50501
  { name: "x", type: "number" },
@@ -50478,7 +50506,7 @@ const Wde = Qe.FromOptions({
50478
50506
  const e = Oo(), { x: n, y: r, parent: i } = t.options, o = { x: n, y: r };
50479
50507
  return typeof i == "object" && (o.parent = i), typeof i == "string" && (o.parent = Oo().getObject(i)), e.createObject(o);
50480
50508
  }
50481
- ), lhe = new Qe("delete_sprite", [{ name: "sprite", type: "any" }], async (t) => Oo().destroyObject(t.options.sprite)), che = Qe.FromOptions({
50509
+ ), che = new Qe("delete_sprite", [{ name: "sprite", type: "any" }], async (t) => Oo().destroyObject(t.options.sprite)), fhe = Qe.FromOptions({
50482
50510
  keyword: "shuffle",
50483
50511
  argTypes: [{ name: "array", type: "any" }],
50484
50512
  runner: async (t) => {
@@ -50487,9 +50515,9 @@ const Wde = Qe.FromOptions({
50487
50515
  Jt(t, "requires an array argument");
50488
50516
  return;
50489
50517
  }
50490
- return khe(e), e;
50518
+ return _he(e), e;
50491
50519
  }
50492
- }), fhe = Qe.FromOptions({
50520
+ }), dhe = Qe.FromOptions({
50493
50521
  keyword: "push",
50494
50522
  argTypes: [
50495
50523
  { name: "array", type: "any" },
@@ -50503,7 +50531,7 @@ const Wde = Qe.FromOptions({
50503
50531
  }
50504
50532
  return e.push(n), e;
50505
50533
  }
50506
- }), dhe = Qe.FromOptions({
50534
+ }), hhe = Qe.FromOptions({
50507
50535
  keyword: "pop",
50508
50536
  argTypes: [{ name: "array", type: "any" }],
50509
50537
  runner: async (t) => {
@@ -50514,7 +50542,7 @@ const Wde = Qe.FromOptions({
50514
50542
  }
50515
50543
  return e.pop();
50516
50544
  }
50517
- }), hhe = Qe.FromOptions({
50545
+ }), phe = Qe.FromOptions({
50518
50546
  keyword: "shift",
50519
50547
  argTypes: [{ name: "array", type: "any" }],
50520
50548
  runner: async (t) => {
@@ -50525,7 +50553,7 @@ const Wde = Qe.FromOptions({
50525
50553
  }
50526
50554
  return e.shift();
50527
50555
  }
50528
- }), phe = Qe.FromOptions({
50556
+ }), vhe = Qe.FromOptions({
50529
50557
  keyword: "array_join",
50530
50558
  argTypes: [
50531
50559
  { name: "array", type: "any" },
@@ -50543,7 +50571,7 @@ const Wde = Qe.FromOptions({
50543
50571
  }
50544
50572
  return e.join(n), e;
50545
50573
  }
50546
- }), vhe = Qe.FromOptions({
50574
+ }), mhe = Qe.FromOptions({
50547
50575
  keyword: "array_concat",
50548
50576
  argTypes: [
50549
50577
  { name: "array", type: "any" },
@@ -50562,7 +50590,7 @@ const Wde = Qe.FromOptions({
50562
50590
  }
50563
50591
  return e.concat(...n.slice(1));
50564
50592
  }
50565
- }), mhe = Qe.FromOptions({
50593
+ }), ghe = Qe.FromOptions({
50566
50594
  keyword: "includes",
50567
50595
  argTypes: [
50568
50596
  { name: "array", type: "any" },
@@ -50572,14 +50600,14 @@ const Wde = Qe.FromOptions({
50572
50600
  const { array: e, searchElement: n } = t.options;
50573
50601
  return Array.isArray(e) || Jt(t, "requires an array argument"), typeof n > "u" && Jt(t, "requires a search element argument"), e.includes(n);
50574
50602
  }
50575
- }), ghe = Qe.FromOptions({
50603
+ }), yhe = Qe.FromOptions({
50576
50604
  keyword: "reverse",
50577
50605
  argTypes: [{ name: "array", type: "any" }],
50578
50606
  runner: async (t) => {
50579
50607
  const { array: e } = t.options;
50580
50608
  return Array.isArray(e) || Jt(t, "requires an array argument"), e.reverse(), e;
50581
50609
  }
50582
- }), yhe = Qe.FromOptions({
50610
+ }), bhe = Qe.FromOptions({
50583
50611
  keyword: "slice",
50584
50612
  argTypes: [
50585
50613
  { name: "array", type: "any" },
@@ -50593,7 +50621,7 @@ const Wde = Qe.FromOptions({
50593
50621
  "end index argument must be a number if present"
50594
50622
  ), e.slice(n, r);
50595
50623
  }
50596
- }), bhe = Qe.FromOptions({
50624
+ }), whe = Qe.FromOptions({
50597
50625
  keyword: "splice",
50598
50626
  argTypes: [
50599
50627
  { name: "array", type: "any" },
@@ -50607,7 +50635,7 @@ const Wde = Qe.FromOptions({
50607
50635
  "end index argument must be a number if present"
50608
50636
  ), e.splice(n, r);
50609
50637
  }
50610
- }), whe = Qe.FromOptions({
50638
+ }), khe = Qe.FromOptions({
50611
50639
  keyword: "array_find_index",
50612
50640
  argTypes: [
50613
50641
  { name: "array", type: "any" },
@@ -50627,52 +50655,52 @@ const Wde = Qe.FromOptions({
50627
50655
  return -1;
50628
50656
  }
50629
50657
  });
50630
- function khe(t) {
50658
+ function _he(t) {
50631
50659
  for (let e = t.length - 1; e > 0; e--) {
50632
50660
  const n = Math.floor(Math.random() * (e + 1));
50633
50661
  [t[e], t[n]] = [t[n], t[e]];
50634
50662
  }
50635
50663
  }
50636
- const _he = Qe.FromOptions({
50664
+ const xhe = Qe.FromOptions({
50637
50665
  keyword: "load_data",
50638
50666
  argTypes: [{ name: "url", type: "string" }],
50639
50667
  runner: async (t) => {
50640
50668
  const { url: e } = t.options;
50641
50669
  return await vw(MR(e));
50642
50670
  }
50643
- }), xhe = Qe.FromOptions({
50671
+ }), jhe = Qe.FromOptions({
50644
50672
  keyword: "time_now",
50645
50673
  argTypes: [],
50646
50674
  runner: async (t) => Date.now()
50647
- }), jhe = Qe.FromOptions({
50675
+ }), She = Qe.FromOptions({
50648
50676
  keyword: "total_playtime",
50649
50677
  argTypes: [],
50650
50678
  runner: async (t) => rn().totalPlayTime
50651
- }), She = Qe.FromOptions({
50679
+ }), Che = Qe.FromOptions({
50652
50680
  keyword: "session_playtime",
50653
50681
  argTypes: [],
50654
50682
  runner: async (t) => rn().sessionPlayTime
50655
- }), Che = Qe.FromOptions({
50683
+ }), $he = Qe.FromOptions({
50656
50684
  keyword: "to_days",
50657
50685
  argTypes: [{ name: "time", type: "number" }],
50658
50686
  runner: async (t) => Math.floor(t.options.time / 864e5)
50659
- }), $he = Qe.FromOptions({
50687
+ }), Ohe = Qe.FromOptions({
50660
50688
  keyword: "to_hours",
50661
50689
  argTypes: [{ name: "time", type: "number" }],
50662
50690
  runner: async (t) => Math.floor(t.options.time / 36e5)
50663
- }), Ohe = Qe.FromOptions({
50691
+ }), The = Qe.FromOptions({
50664
50692
  keyword: "to_minutes",
50665
50693
  argTypes: [{ name: "time", type: "number" }],
50666
50694
  runner: async (t) => Math.floor(t.options.time / 6e4)
50667
- }), The = Qe.FromOptions({
50695
+ }), Ahe = Qe.FromOptions({
50668
50696
  keyword: "to_seconds",
50669
50697
  argTypes: [{ name: "time", type: "number" }],
50670
50698
  runner: async (t) => Math.floor(t.options.time / 1e3)
50671
50699
  });
50672
- function Ahe(t) {
50673
- t.addCommand(qde), t.addCommand(Ude), t.addCommand(_de), t.addCommand(Efe), t.addCommand(Mfe), t.addCommand(Pfe), t.addCommand(kde), t.addCommand(yde), t.addCommand(bde), t.addCommand(wde), t.addCommand(Ufe), t.addCommand(Hfe), t.addCommand(Wfe), t.addCommand(Xfe), t.addCommand(Qfe), t.addCommand(Yfe), t.addCommand(she), t.addCommand(uhe), t.addCommand(lhe), t.addCommand(gde), t.addCommand(xde), t.addCommand(jde), t.addCommand(Sde), t.addCommand(Cde), t.addCommand($de), t.addCommand(Ode), t.addCommand(Tde), t.addCommand(Ade), t.addCommand(Ede), t.addCommand(Mde), t.addCommand(Pde), t.addCommand(Ide), t.addCommand(Dde), t.addCommand(Rde), t.addCommand(Nde), t.addCommand(Lde), t.addCommand(Gfe), t.addCommand(Jfe), t.addCommand(nde), t.addCommand(Zfe), t.addCommand(ede), t.addCommand(Ife), t.addCommand(Nfe), t.addCommand(Lfe), t.addCommand(Dfe), t.addCommand(Rfe), t.addCommand(zfe), t.addCommand(Ffe), t.addCommand(Bfe), t.addCommand(qfe), t.addCommand(lde), t.addCommand(cde), t.addCommand(fde), t.addCommand(dde), t.addCommand(vde), t.addCommand(mde), t.addCommand(hde), t.addCommand(pde), t.addCommand(rde), t.addCommand(ide), t.addCommand(sde), t.addCommand(ude), t.addCommand(ode), t.addCommand(ade), t.addCommand(_fe), t.addCommand(xfe), t.addCommand(jfe), t.addCommand($fe), t.addCommand(Afe), t.addCommand(Ofe), t.addCommand(Tfe), t.addCommand(Sfe), t.addCommand(Cfe), t.addCommand(zR), t.addCommand(Wde), t.addCommand(Kde), t.addCommand(Jde), t.addCommand(Gde), t.addCommand(Qde), t.addCommand(Yde), t.addCommand(Xde), t.addCommand(Zde), t.addCommand(ehe), t.addCommand(the), t.addCommand(nhe), t.addCommand(ihe), t.addCommand(rhe), t.addCommand(ohe), t.addCommand(ahe), t.addCommand(che), t.addCommand(fhe), t.addCommand(dhe), t.addCommand(hhe), t.addCommand(phe), t.addCommand(vhe), t.addCommand(mhe), t.addCommand(ghe), t.addCommand(yhe), t.addCommand(bhe), t.addCommand(whe), t.addCommand(_he), t.addCommand(xhe), t.addCommand(jhe), t.addCommand(She), t.addCommand(Che), t.addCommand($he), t.addCommand(Ohe), t.addCommand(The);
50700
+ function Ehe(t) {
50701
+ t.addCommand(Vde), t.addCommand(Wde), t.addCommand(xde), t.addCommand(Mfe), t.addCommand(Pfe), t.addCommand(Ife), t.addCommand(_de), t.addCommand(bde), t.addCommand(wde), t.addCommand(kde), t.addCommand(Wfe), t.addCommand(Ufe), t.addCommand(Kfe), t.addCommand(Zfe), t.addCommand(Yfe), t.addCommand(Xfe), t.addCommand(uhe), t.addCommand(lhe), t.addCommand(che), t.addCommand(yde), t.addCommand(jde), t.addCommand(Sde), t.addCommand(Cde), t.addCommand($de), t.addCommand(Ode), t.addCommand(Tde), t.addCommand(Ade), t.addCommand(Ede), t.addCommand(Mde), t.addCommand(Pde), t.addCommand(Ide), t.addCommand(Nde), t.addCommand(Rde), t.addCommand(zde), t.addCommand(Lde), t.addCommand(Dde), t.addCommand(Qfe), t.addCommand(Gfe), t.addCommand(rde), t.addCommand(ede), t.addCommand(tde), t.addCommand(Nfe), t.addCommand(Lfe), t.addCommand(Dfe), t.addCommand(Rfe), t.addCommand(zfe), t.addCommand(Ffe), t.addCommand(Bfe), t.addCommand(qfe), t.addCommand(Vfe), t.addCommand(cde), t.addCommand(fde), t.addCommand(dde), t.addCommand(hde), t.addCommand(mde), t.addCommand(gde), t.addCommand(pde), t.addCommand(vde), t.addCommand(ide), t.addCommand(ode), t.addCommand(ude), t.addCommand(lde), t.addCommand(ade), t.addCommand(sde), t.addCommand(xfe), t.addCommand(jfe), t.addCommand(Sfe), t.addCommand(Ofe), t.addCommand(Efe), t.addCommand(Tfe), t.addCommand(Afe), t.addCommand(Cfe), t.addCommand($fe), t.addCommand(zR), t.addCommand(Kde), t.addCommand(Jde), t.addCommand(Gde), t.addCommand(Qde), t.addCommand(Yde), t.addCommand(Xde), t.addCommand(Zde), t.addCommand(ehe), t.addCommand(the), t.addCommand(nhe), t.addCommand(rhe), t.addCommand(ohe), t.addCommand(ihe), t.addCommand(ahe), t.addCommand(she), t.addCommand(fhe), t.addCommand(dhe), t.addCommand(hhe), t.addCommand(phe), t.addCommand(vhe), t.addCommand(mhe), t.addCommand(ghe), t.addCommand(yhe), t.addCommand(bhe), t.addCommand(whe), t.addCommand(khe), t.addCommand(xhe), t.addCommand(jhe), t.addCommand(She), t.addCommand(Che), t.addCommand($he), t.addCommand(Ohe), t.addCommand(The), t.addCommand(Ahe);
50674
50702
  }
50675
- const Ehe = Nn({
50703
+ const Mhe = Nn({
50676
50704
  data() {
50677
50705
  return {
50678
50706
  muted: !1,
@@ -50704,18 +50732,18 @@ const Ehe = Nn({
50704
50732
  }
50705
50733
  }
50706
50734
  });
50707
- const Mhe = { class: "volume-controls" }, Phe = /* @__PURE__ */ Ie("h3", { class: "subtitle" }, "Volume", -1), Ihe = {
50735
+ const Phe = { class: "volume-controls" }, Ihe = /* @__PURE__ */ Ie("h3", { class: "subtitle" }, "Volume", -1), Nhe = {
50708
50736
  for: "volume",
50709
50737
  class: "volume-label"
50710
- }, Nhe = ["onUpdate:modelValue", "onChange"];
50711
- function Lhe(t, e, n, r, i, o) {
50712
- return Ee(), Ye("div", Mhe, [
50713
- Phe,
50738
+ }, Lhe = ["onUpdate:modelValue", "onChange"];
50739
+ function Dhe(t, e, n, r, i, o) {
50740
+ return Ee(), Ye("div", Phe, [
50741
+ Ihe,
50714
50742
  (Ee(!0), Ye(Zn, null, cr(t.volumes, (a, s) => (Ee(), Ye("div", {
50715
50743
  class: "volume-control",
50716
50744
  key: a.mode
50717
50745
  }, [
50718
- Ie("label", Ihe, zt(t.modeNames[a.mode]), 1),
50746
+ Ie("label", Nhe, zt(t.modeNames[a.mode]), 1),
50719
50747
  mf(Ie("input", {
50720
50748
  ref_for: !0,
50721
50749
  ref: "slider",
@@ -50728,15 +50756,15 @@ function Lhe(t, e, n, r, i, o) {
50728
50756
  step: "0.1",
50729
50757
  "onUpdate:modelValue": (u) => t.volumes[s].volume = u,
50730
50758
  onChange: (u) => t.changeVolume(a.mode, u)
50731
- }, null, 40, Nhe), [
50759
+ }, null, 40, Lhe), [
50732
50760
  [hv, t.volumes[s].volume]
50733
50761
  ])
50734
50762
  ]))), 128))
50735
50763
  ]);
50736
50764
  }
50737
- const Dhe = /* @__PURE__ */ go(Ehe, [["render", Lhe]]), Rhe = Nn({
50765
+ const Rhe = /* @__PURE__ */ go(Mhe, [["render", Dhe]]), zhe = Nn({
50738
50766
  components: {
50739
- VolumeControls: Dhe
50767
+ VolumeControls: Rhe
50740
50768
  },
50741
50769
  data() {
50742
50770
  return {};
@@ -50762,10 +50790,10 @@ const Dhe = /* @__PURE__ */ go(Ehe, [["render", Lhe]]), Rhe = Nn({
50762
50790
  }
50763
50791
  }
50764
50792
  });
50765
- const zhe = { class: "menu-content" };
50766
- function Fhe(t, e, n, r, i, o) {
50793
+ const Fhe = { class: "menu-content" };
50794
+ function Bhe(t, e, n, r, i, o) {
50767
50795
  const a = Ni("VolumeControls");
50768
- return Ee(), Ye("div", zhe, [
50796
+ return Ee(), Ye("div", Fhe, [
50769
50797
  Ie("h3", null, "Play time: " + zt(t.getPlayTimeString()), 1),
50770
50798
  Br(a),
50771
50799
  Ie("button", {
@@ -50778,7 +50806,7 @@ function Fhe(t, e, n, r, i, o) {
50778
50806
  }, "Exit")
50779
50807
  ]);
50780
50808
  }
50781
- const Bhe = /* @__PURE__ */ go(Rhe, [["render", Fhe]]), qhe = { class: "inventory-section-items" }, Vhe = ["onClick"], Hhe = { class: "item-title" }, Uhe = { class: "item-amount" }, Whe = /* @__PURE__ */ Nn({
50809
+ const qhe = /* @__PURE__ */ go(zhe, [["render", Bhe]]), Vhe = { class: "inventory-section-items" }, Hhe = ["onClick"], Uhe = { class: "item-title" }, Whe = { class: "item-amount" }, Khe = /* @__PURE__ */ Nn({
50782
50810
  __name: "inventory-section",
50783
50811
  props: {
50784
50812
  items: null,
@@ -50799,21 +50827,21 @@ const Bhe = /* @__PURE__ */ go(Rhe, [["render", Fhe]]), qhe = { class: "inventor
50799
50827
  class: vr(["inventory-section", `section-${e.id}`])
50800
50828
  }, [
50801
50829
  Ie("h3", null, zt(t.title), 1),
50802
- Ie("div", qhe, [
50830
+ Ie("div", Vhe, [
50803
50831
  (Ee(!0), Ye(Zn, null, cr(t.items, (a) => (Ee(), Ye("button", {
50804
50832
  onClick: () => i.$emit("chosen", a.id),
50805
50833
  class: vr(["item-display", `item-${a.id}`]),
50806
50834
  style: lr(n(a.id)),
50807
50835
  key: a.id
50808
50836
  }, [
50809
- Ie("h3", Hhe, zt(r(a.id)), 1),
50810
- Ie("h3", Uhe, zt(a.amount), 1)
50811
- ], 14, Vhe))), 128))
50837
+ Ie("h3", Uhe, zt(r(a.id)), 1),
50838
+ Ie("h3", Whe, zt(a.amount), 1)
50839
+ ], 14, Hhe))), 128))
50812
50840
  ])
50813
50841
  ], 2));
50814
50842
  }
50815
50843
  });
50816
- const Khe = { class: "flex flex-row item-description-container" }, Jhe = { class: "flex item-left" }, Ghe = { class: "flex item-right" }, Qhe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1), Yhe = /* @__PURE__ */ Nn({
50844
+ const Jhe = { class: "flex flex-row item-description-container" }, Ghe = { class: "flex item-left" }, Qhe = { class: "flex item-right" }, Yhe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1), Xhe = /* @__PURE__ */ Nn({
50817
50845
  __name: "item-details",
50818
50846
  props: {
50819
50847
  item: null
@@ -50824,16 +50852,16 @@ const Khe = { class: "flex flex-row item-description-container" }, Jhe = { class
50824
50852
  backgroundImage: `url(${gs(r.value.icon)})`
50825
50853
  })), o = ft(() => ti().canUseItem(n.item));
50826
50854
  return (a, s) => (Ee(), Ye("div", null, [
50827
- Ie("div", Khe, [
50828
- Ie("div", Jhe, [
50855
+ Ie("div", Jhe, [
50856
+ Ie("div", Ghe, [
50829
50857
  Ie("div", {
50830
50858
  class: "item-display",
50831
50859
  style: lr(bt(i))
50832
50860
  }, null, 4)
50833
50861
  ]),
50834
- Ie("div", Ghe, [
50862
+ Ie("div", Qhe, [
50835
50863
  Ie("h2", null, zt(bt(r).name), 1),
50836
- Qhe,
50864
+ Yhe,
50837
50865
  Ie("h3", null, "Amount: " + zt(t.item.amount), 1),
50838
50866
  Ie("p", null, zt(bt(r).description), 1),
50839
50867
  Ie("button", {
@@ -50849,7 +50877,7 @@ const Khe = { class: "flex flex-row item-description-container" }, Jhe = { class
50849
50877
  ]));
50850
50878
  }
50851
50879
  });
50852
- const Xhe = Nn({
50880
+ const Zhe = Nn({
50853
50881
  setup() {
50854
50882
  const t = ti(), e = Xn(), n = ft(() => t.items), r = ft(() => e.currentDialog.choices);
50855
50883
  return { items: n, currentlyChoosing: r };
@@ -50911,14 +50939,14 @@ const Xhe = Nn({
50911
50939
  }, e);
50912
50940
  }
50913
50941
  },
50914
- components: { InventorySection: Whe, ItemDetails: Yhe }
50942
+ components: { InventorySection: Khe, ItemDetails: Xhe }
50915
50943
  });
50916
- const Zhe = { key: 0 }, epe = { key: 2 }, tpe = /* @__PURE__ */ Ie("h2", null, "The inventory is empty!", -1), npe = [
50917
- tpe
50944
+ const epe = { key: 0 }, tpe = { key: 2 }, npe = /* @__PURE__ */ Ie("h2", null, "The inventory is empty!", -1), rpe = [
50945
+ npe
50918
50946
  ];
50919
- function rpe(t, e, n, r, i, o) {
50947
+ function ipe(t, e, n, r, i, o) {
50920
50948
  const a = Ni("InventorySection"), s = Ni("ItemDetails");
50921
- return !t.chosenItem && Object.keys(t.itemsToDisplay).length > 0 ? (Ee(), Ye("div", Zhe, [
50949
+ return !t.chosenItem && Object.keys(t.itemsToDisplay).length > 0 ? (Ee(), Ye("div", epe, [
50922
50950
  (Ee(!0), Ye(Zn, null, cr(t.sections, (u) => (Ee(), pn(a, {
50923
50951
  key: u.id,
50924
50952
  items: u.items,
@@ -50931,12 +50959,12 @@ function rpe(t, e, n, r, i, o) {
50931
50959
  item: t.items[t.chosenId],
50932
50960
  onUse: t.useItem,
50933
50961
  onClose: t.closeItem
50934
- }, null, 8, ["item", "onUse", "onClose"])) : (Ee(), Ye("div", epe, npe));
50962
+ }, null, 8, ["item", "onUse", "onClose"])) : (Ee(), Ye("div", tpe, rpe));
50935
50963
  }
50936
- const ipe = /* @__PURE__ */ go(Xhe, [["render", rpe]]), ope = { class: "quest-display" }, ape = { class: "quest-title" }, spe = { class: "quest-description" }, upe = {
50964
+ const ope = /* @__PURE__ */ go(Zhe, [["render", ipe]]), ape = { class: "quest-display" }, spe = { class: "quest-title" }, upe = { class: "quest-description" }, lpe = {
50937
50965
  key: 0,
50938
50966
  class: "quest-objectives-container list-disc"
50939
- }, lpe = /* @__PURE__ */ Nn({
50967
+ }, cpe = /* @__PURE__ */ Nn({
50940
50968
  __name: "QuestDetails",
50941
50969
  props: {
50942
50970
  quest: null
@@ -50960,17 +50988,17 @@ const ipe = /* @__PURE__ */ go(Xhe, [["render", rpe]]), ope = { class: "quest-di
50960
50988
  }), o = ft(() => e.quest.ending ? e.quest.ending : n.value.description), a = ft(() => Object.values(e.quest.objectives).filter(
50961
50989
  (s) => s.state !== "hidden"
50962
50990
  ));
50963
- return (s, u) => (Ee(), Ye("div", ope, [
50991
+ return (s, u) => (Ee(), Ye("div", ape, [
50964
50992
  Ie("div", {
50965
50993
  class: vr([
50966
50994
  "quest-header",
50967
50995
  t.quest.state === "completed" ? "quest-completed" : "quest-in-progress"
50968
50996
  ])
50969
50997
  }, [
50970
- Ie("h3", ape, zt(bt(n).title) + " " + zt(bt(i)), 1)
50998
+ Ie("h3", spe, zt(bt(n).title) + " " + zt(bt(i)), 1)
50971
50999
  ], 2),
50972
- Ie("p", spe, zt(bt(o)), 1),
50973
- t.quest.state !== "completed" ? (Ee(), Ye("ul", upe, [
51000
+ Ie("p", upe, zt(bt(o)), 1),
51001
+ t.quest.state !== "completed" ? (Ee(), Ye("ul", lpe, [
50974
51002
  (Ee(!0), Ye(Zn, null, cr(bt(a), (l) => (Ee(), Ye("li", {
50975
51003
  class: "quest-objective-display",
50976
51004
  key: l.id
@@ -50986,7 +51014,7 @@ const ipe = /* @__PURE__ */ go(Xhe, [["render", rpe]]), ope = { class: "quest-di
50986
51014
  ]));
50987
51015
  }
50988
51016
  });
50989
- const cpe = { class: "quest-list-title" }, fpe = /* @__PURE__ */ Nn({
51017
+ const fpe = { class: "quest-list-title" }, dpe = /* @__PURE__ */ Nn({
50990
51018
  __name: "QuestDisplay",
50991
51019
  props: {
50992
51020
  quest: null
@@ -50999,11 +51027,11 @@ const cpe = { class: "quest-list-title" }, fpe = /* @__PURE__ */ Nn({
50999
51027
  t.quest.state === "completed" ? "quest-list-completed" : "quest-list-in-progress"
51000
51028
  ])
51001
51029
  }, [
51002
- Ie("p", cpe, zt(bt(n).title), 1)
51030
+ Ie("p", fpe, zt(bt(n).title), 1)
51003
51031
  ], 2));
51004
51032
  }
51005
51033
  });
51006
- const dpe = { key: 0 }, hpe = { key: 0 }, ppe = { key: 1 }, vpe = /* @__PURE__ */ Nn({
51034
+ const hpe = { key: 0 }, ppe = { key: 0 }, vpe = { key: 1 }, mpe = /* @__PURE__ */ Nn({
51007
51035
  __name: "quests-list-section",
51008
51036
  props: {
51009
51037
  quests: null,
@@ -51033,29 +51061,29 @@ const dpe = { key: 0 }, hpe = { key: 0 }, ppe = { key: 1 }, vpe = /* @__PURE__ *
51033
51061
  class: vr([`${t.sectionId}-quests-container`, "quests-section"])
51034
51062
  }, [
51035
51063
  Ie("h3", null, zt(t.title), 1),
51036
- t.quests.length > 0 ? (Ee(), Ye("div", dpe, [
51064
+ t.quests.length > 0 ? (Ee(), Ye("div", hpe, [
51037
51065
  (Ee(!0), Ye(Zn, null, cr(bt(i), (s) => (Ee(), Ye("div", {
51038
51066
  class: vr([`${t.sectionId}-${s.category.id}-category`, "quests-category"]),
51039
51067
  key: s.category.id
51040
51068
  }, [
51041
- bt(r).length > 1 ? (Ee(), Ye("h4", hpe, zt(s.category.title), 1)) : vn("", !0),
51069
+ bt(r).length > 1 ? (Ee(), Ye("h4", ppe, zt(s.category.title), 1)) : vn("", !0),
51042
51070
  Ie("div", {
51043
51071
  class: vr(`${t.sectionId}-${s.category.id}-quests`)
51044
51072
  }, [
51045
- (Ee(!0), Ye(Zn, null, cr(s.quests, (u) => (Ee(), pn(fpe, {
51073
+ (Ee(!0), Ye(Zn, null, cr(s.quests, (u) => (Ee(), pn(dpe, {
51046
51074
  key: u.id,
51047
51075
  quest: u,
51048
51076
  onClick: (l) => o.$emit("quest-selected", u)
51049
51077
  }, null, 8, ["quest", "onClick"]))), 128))
51050
51078
  ], 2)
51051
51079
  ], 2))), 128))
51052
- ])) : (Ee(), Ye("div", ppe, [
51080
+ ])) : (Ee(), Ye("div", vpe, [
51053
51081
  Ie("p", null, zt(t.fallbackText), 1)
51054
51082
  ]))
51055
51083
  ], 2));
51056
51084
  }
51057
51085
  });
51058
- const mpe = Nn({
51086
+ const gpe = Nn({
51059
51087
  setup() {
51060
51088
  const t = Vi(), e = ft(() => t.quests), n = Hn(null);
51061
51089
  return { quests: e, selectedQuest: n };
@@ -51086,15 +51114,15 @@ const mpe = Nn({
51086
51114
  this.selectedQuest = t;
51087
51115
  }
51088
51116
  },
51089
- components: { QuestDetails: lpe, QuestsListSection: vpe }
51117
+ components: { QuestDetails: cpe, QuestsListSection: mpe }
51090
51118
  });
51091
- const gpe = { class: "quests-list-container" }, ype = { class: "quest-details" };
51092
- function bpe(t, e, n, r, i, o) {
51119
+ const ype = { class: "quests-list-container" }, bpe = { class: "quest-details" };
51120
+ function wpe(t, e, n, r, i, o) {
51093
51121
  const a = Ni("QuestsListSection"), s = Ni("QuestDetails");
51094
51122
  return Ee(), Ye("div", {
51095
51123
  class: vr(["quests-ui", t.questsUiClass])
51096
51124
  }, [
51097
- Ie("div", gpe, [
51125
+ Ie("div", ype, [
51098
51126
  Br(a, {
51099
51127
  quests: t.activeQuests,
51100
51128
  sectionId: "active",
@@ -51110,7 +51138,7 @@ function bpe(t, e, n, r, i, o) {
51110
51138
  onQuestSelected: t.clickOnQuest
51111
51139
  }, null, 8, ["quests", "onQuestSelected"])
51112
51140
  ]),
51113
- Ie("div", ype, [
51141
+ Ie("div", bpe, [
51114
51142
  t.selectedQuest ? (Ee(), pn(s, {
51115
51143
  key: 0,
51116
51144
  quest: t.selectedQuest
@@ -51118,7 +51146,7 @@ function bpe(t, e, n, r, i, o) {
51118
51146
  ])
51119
51147
  ], 2);
51120
51148
  }
51121
- const wpe = /* @__PURE__ */ go(mpe, [["render", bpe]]), kpe = Nn({
51149
+ const kpe = /* @__PURE__ */ go(gpe, [["render", wpe]]), _pe = Nn({
51122
51150
  setup() {
51123
51151
  const t = Dr();
51124
51152
  return { skills: ft(() => t.skills) };
@@ -51166,22 +51194,22 @@ const wpe = /* @__PURE__ */ go(mpe, [["render", bpe]]), kpe = Nn({
51166
51194
  }
51167
51195
  }
51168
51196
  });
51169
- const _pe = {
51197
+ const xpe = {
51170
51198
  key: 0,
51171
51199
  class: "skills-container"
51172
- }, xpe = ["onClick"], jpe = { class: "skill-title" }, Spe = { class: "skill-xp-container" }, Cpe = { class: "skill-xp-text" }, $pe = { class: "skill-level" }, Ope = { key: 1 }, Tpe = { class: "flex flex-row skill-description-container" }, Ape = { class: "flex skill-left" }, Epe = { class: "flex skill-right" }, Mpe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1);
51173
- function Ppe(t, e, n, r, i, o) {
51174
- return t.chosenSkill ? typeof t.chosenSkill == "string" ? (Ee(), Ye("div", Ope, [
51175
- Ie("div", Tpe, [
51176
- Ie("div", Ape, [
51200
+ }, jpe = ["onClick"], Spe = { class: "skill-title" }, Cpe = { class: "skill-xp-container" }, $pe = { class: "skill-xp-text" }, Ope = { class: "skill-level" }, Tpe = { key: 1 }, Ape = { class: "flex flex-row skill-description-container" }, Epe = { class: "flex skill-left" }, Mpe = { class: "flex skill-right" }, Ppe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1);
51201
+ function Ipe(t, e, n, r, i, o) {
51202
+ return t.chosenSkill ? typeof t.chosenSkill == "string" ? (Ee(), Ye("div", Tpe, [
51203
+ Ie("div", Ape, [
51204
+ Ie("div", Epe, [
51177
51205
  Ie("div", {
51178
51206
  class: "skill-display",
51179
51207
  style: lr(t.getSkillStyle(t.chosenSkill))
51180
51208
  }, null, 4)
51181
51209
  ]),
51182
- Ie("div", Epe, [
51210
+ Ie("div", Mpe, [
51183
51211
  Ie("h2", null, zt(t.getSkillName(t.chosenSkill)), 1),
51184
- Mpe,
51212
+ Ppe,
51185
51213
  Ie("h3", null, "Level: " + zt(t.skills[t.chosenSkill].level), 1),
51186
51214
  Ie("p", null, zt(t.skillConf[t.chosenSkill].description), 1)
51187
51215
  ])
@@ -51190,28 +51218,28 @@ function Ppe(t, e, n, r, i, o) {
51190
51218
  class: "button",
51191
51219
  onClick: e[0] || (e[0] = (...a) => t.closeSkill && t.closeSkill(...a))
51192
51220
  }, zt("<--"))
51193
- ])) : vn("", !0) : (Ee(), Ye("div", _pe, [
51221
+ ])) : vn("", !0) : (Ee(), Ye("div", xpe, [
51194
51222
  (Ee(!0), Ye(Zn, null, cr(t.skillsToDisplay, (a) => (Ee(), Ye("button", {
51195
51223
  onClick: () => t.clickSkill(a.id),
51196
51224
  class: "skill-display",
51197
51225
  style: lr(t.getSkillStyle(a.id)),
51198
51226
  key: a.id
51199
51227
  }, [
51200
- Ie("h3", jpe, zt(t.getSkillName(a.id)), 1),
51201
- Ie("div", Spe, [
51228
+ Ie("h3", Spe, zt(t.getSkillName(a.id)), 1),
51229
+ Ie("div", Cpe, [
51202
51230
  Ie("div", {
51203
51231
  class: "skill-xp-bar",
51204
51232
  style: lr(t.xpBarWidth(a.xp))
51205
51233
  }, null, 4),
51206
- Ie("h3", Cpe, zt(a.xp) + " / " + zt(t.xpPerLevel) + " XP", 1)
51234
+ Ie("h3", $pe, zt(a.xp) + " / " + zt(t.xpPerLevel) + " XP", 1)
51207
51235
  ]),
51208
- Ie("h3", $pe, zt(a.level), 1)
51209
- ], 12, xpe))), 128))
51236
+ Ie("h3", Ope, zt(a.level), 1)
51237
+ ], 12, jpe))), 128))
51210
51238
  ]));
51211
51239
  }
51212
- const Ipe = /* @__PURE__ */ go(kpe, [["render", Ppe]]);
51213
- function Npe(t) {
51214
- t.component("MainMenu", Bhe), t.component("InventoryUi", ipe), t.component("QuestsUi", wpe), t.component("SkillsWindow", Ipe), ea().menus = {
51240
+ const Npe = /* @__PURE__ */ go(_pe, [["render", Ipe]]);
51241
+ function Lpe(t) {
51242
+ t.component("MainMenu", qhe), t.component("InventoryUi", ope), t.component("QuestsUi", kpe), t.component("SkillsWindow", Npe), ea().menus = {
51215
51243
  system: {
51216
51244
  label: "System",
51217
51245
  cssClass: "system-menu",
@@ -51257,7 +51285,7 @@ function Npe(t) {
51257
51285
  }
51258
51286
  };
51259
51287
  }
51260
- function Lpe(t, e, n) {
51288
+ function Dpe(t, e, n) {
51261
51289
  const r = window.narrat.app;
51262
51290
  for (const i in e.tabs) {
51263
51291
  const o = e.tabs[i].component;
@@ -51265,20 +51293,20 @@ function Lpe(t, e, n) {
51265
51293
  }
51266
51294
  ea().addMenu(t, e);
51267
51295
  }
51268
- function Dpe(t, e, n) {
51296
+ function Rpe(t, e, n) {
51269
51297
  window.narrat.app.component(e.component, n), ea().addMenuOption(t, e);
51270
51298
  }
51271
- function Rpe() {
51299
+ function zpe() {
51272
51300
  for (const t of Jn.plugins) {
51273
51301
  if (t.customMenuButtons)
51274
51302
  for (const e of t.customMenuButtons)
51275
- Lpe(e.config.id, e.config, e.components);
51303
+ Dpe(e.config.id, e.config, e.components);
51276
51304
  if (t.customMenuTabs)
51277
51305
  for (const e of t.customMenuTabs)
51278
- Dpe(e.config.id, e.config, e.component);
51306
+ Rpe(e.config.id, e.config, e.component);
51279
51307
  }
51280
51308
  }
51281
- function zpe(t) {
51309
+ function Fpe(t) {
51282
51310
  t.directive("visible", {
51283
51311
  mounted(e, n) {
51284
51312
  n.value ? e.style.visibility = "visible" : e.style.visibility = "hidden";
@@ -51288,7 +51316,7 @@ function zpe(t) {
51288
51316
  }
51289
51317
  });
51290
51318
  }
51291
- class Fpe extends gw {
51319
+ class Bpe extends gw {
51292
51320
  setup() {
51293
51321
  const e = () => {
51294
51322
  this.emit("preUpdate"), this.emit("update"), this.emit("postUpdate"), requestAnimationFrame(e);
@@ -51296,7 +51324,7 @@ class Fpe extends gw {
51296
51324
  e();
51297
51325
  }
51298
51326
  }
51299
- const FR = new Fpe();
51327
+ const FR = new Bpe();
51300
51328
  var Ol;
51301
51329
  ((t) => {
51302
51330
  function e(p, v) {
@@ -51385,7 +51413,7 @@ var Ol;
51385
51413
  }
51386
51414
  t.dot = h;
51387
51415
  })(Ol || (Ol = {}));
51388
- class Bpe {
51416
+ class qpe {
51389
51417
  constructor() {
51390
51418
  ii(this, "gameActions", {});
51391
51419
  ii(this, "keyboardState", {});
@@ -51459,8 +51487,8 @@ class Bpe {
51459
51487
  });
51460
51488
  }
51461
51489
  }
51462
- const qpe = hi("inputs", {
51463
- state: () => ({ inputs: new Bpe() }),
51490
+ const Vpe = hi("inputs", {
51491
+ state: () => ({ inputs: new qpe() }),
51464
51492
  actions: {
51465
51493
  setupInputs() {
51466
51494
  this.inputs.startListening();
@@ -51469,14 +51497,14 @@ const qpe = hi("inputs", {
51469
51497
  });
51470
51498
  let Ja;
51471
51499
  Jn.callHook("onPageLoaded");
51472
- async function Upe(t) {
51500
+ async function Wpe(t) {
51473
51501
  FR.setup(), console.log("Starting narrat...");
51474
- const e = Object.assign(hie(), t), n = Lee();
51475
- Ja = GR(wfe, {
51502
+ const e = Object.assign(pie(), t), n = Lee();
51503
+ Ja = GR(kfe, {
51476
51504
  options: e
51477
- }), zpe(Ja), Ja.use(n);
51478
- const r = await Due(e);
51479
- UD().setConfig(r), qpe().setupInputs(), Jn.pinia = n, rn();
51505
+ }), Fpe(Ja), Ja.use(n);
51506
+ const r = await Rue(e);
51507
+ UD().setConfig(r), Vpe().setupInputs(), Jn.pinia = n, rn();
51480
51508
  const i = {
51481
51509
  app: Ja,
51482
51510
  vm: Jn,
@@ -51484,21 +51512,21 @@ async function Upe(t) {
51484
51512
  En().jumpToLabel(o);
51485
51513
  }
51486
51514
  };
51487
- return window.narrat = i, Npe(Ja), Rpe(), RR().addButtonsFromPlugins(), rn().setOptions(e), Ja.use(j9, {
51515
+ return window.narrat = i, Lpe(Ja), zpe(), RR().addButtonsFromPlugins(), rn().setOptions(e), Ja.use(j9, {
51488
51516
  breakpoints: {
51489
51517
  s: 0,
51490
51518
  m: 800,
51491
51519
  l: 1200
51492
51520
  }
51493
- }), Ahe(Jn), UA.setupDebugger(e.debug), console.log(
51521
+ }), Ehe(Jn), UA.setupDebugger(e.debug), console.log(
51494
51522
  `%c Narrat game engine v${Kee} - Built at ${Jee.toLocaleString()}`,
51495
51523
  "background: #222; color: #bada55"
51496
51524
  ), Jn.callHook("onNarratSetup"), Ja.mount("#game-holder"), Ja;
51497
51525
  }
51498
- function Wpe(t, e) {
51526
+ function Kpe(t, e) {
51499
51527
  Ja.component(t, e);
51500
51528
  }
51501
- class Kpe {
51529
+ class Jpe {
51502
51530
  constructor() {
51503
51531
  ii(this, "pluginId", "narrat-plugin");
51504
51532
  }
@@ -51519,21 +51547,21 @@ class Kpe {
51519
51547
  onGameDismounted() {
51520
51548
  }
51521
51549
  }
51522
- function Jpe(t) {
51550
+ function Gpe(t) {
51523
51551
  Jn.addPlugin(t);
51524
51552
  }
51525
- function Gpe(t) {
51553
+ function Qpe(t) {
51526
51554
  Jn.addCommand(t);
51527
51555
  }
51528
51556
  export {
51529
51557
  Qe as CommandPlugin,
51530
- Ule as InputsListener,
51558
+ Wle as InputsListener,
51531
51559
  HA as LogManager,
51532
51560
  uc as ModalWindow,
51533
- Kpe as NarratPlugin,
51561
+ Jpe as NarratPlugin,
51534
51562
  Ol as Vec2,
51535
- Gpe as addCommand,
51536
- fie as aspectRatioFit,
51563
+ Qpe as addCommand,
51564
+ die as aspectRatioFit,
51537
51565
  es as audioConfig,
51538
51566
  OR as buttonsConfig,
51539
51567
  TR as charactersConfig,
@@ -51550,9 +51578,9 @@ export {
51550
51578
  qs as getItemConfig,
51551
51579
  zy as getObjectiveConfig,
51552
51580
  ic as getQuestConfig,
51553
- zue as getScreenConfig,
51581
+ Fue as getScreenConfig,
51554
51582
  ER as getSkillConfig,
51555
- Rue as getSplitConfigUrl,
51583
+ zue as getSplitConfigUrl,
51556
51584
  bL as getWindow,
51557
51585
  fa as inputEvents,
51558
51586
  nk as itemsConfig,
@@ -51562,19 +51590,19 @@ export {
51562
51590
  Xs as processText,
51563
51591
  hm as questsConfig,
51564
51592
  Uf as randomId,
51565
- Wpe as registerComponent,
51566
- Lpe as registerMenuButton,
51567
- Jpe as registerPlugin,
51593
+ Kpe as registerComponent,
51594
+ Dpe as registerMenuButton,
51595
+ Gpe as registerPlugin,
51568
51596
  rk as screensConfig,
51569
51597
  ia as skillsConfig,
51570
- Upe as startApp,
51598
+ Wpe as startApp,
51571
51599
  Zo as timeout,
51572
51600
  pm as tooltipsConfig,
51573
51601
  wi as useAudio,
51574
51602
  UD as useConfig,
51575
51603
  Xn as useDialogStore,
51576
51604
  is as useHud,
51577
- qpe as useInputs,
51605
+ Vpe as useInputs,
51578
51606
  ti as useInventory,
51579
51607
  rn as useMain,
51580
51608
  ea as useMenu,