nolo-cli 0.30.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-MYLWE5K2.js} +31 -30
  2. package/{action-FENWPT3C.js → action-P5NVIGGG.js} +7 -7
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-V2QQUJ32.js} +6 -6
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-536QKJ6L.js} +5 -5
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-RIILFDSH.js} +24 -23
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-KWJ5CUHY.js} +36 -35
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-BZZSDNCU.js} +26 -25
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-Q7LS3LQH.js} +24 -23
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-SJUBM3AJ.js} +35 -34
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-6O2VTHXQ.js} +35 -34
  11. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-43ZQHP35.js} +21 -20
  12. package/{agentSlice-3ZHY7RAO.js → agentSlice-JLADUWUP.js} +6 -6
  13. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-4UNQSSWN.js} +25 -24
  14. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-KG2BZXOG.js} +25 -24
  15. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-KF7DF2YA.js} +25 -24
  16. package/{appGetCommands-UOCWYJPV.js → appGetCommands-QPHSEE5N.js} +25 -24
  17. package/{appListCommands-EOKWTXPW.js → appListCommands-F3EP542I.js} +25 -24
  18. package/{authCommand-H5KE7K7K.js → authCommand-YLP77TMC.js} +5 -5
  19. package/{chunk-IZ3CBMD5.js → chunk-2U6OW2C3.js} +4 -4
  20. package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
  21. package/{chunk-TJYWZ3LO.js → chunk-75XQT73Q.js} +2 -2
  22. package/{chunk-7CD24PU4.js → chunk-B4HGX366.js} +6 -6
  23. package/{chunk-KWKD3BCC.js → chunk-BSMTXN5T.js} +11 -11
  24. package/{chunk-MMCVBEAD.js → chunk-D6K6XCUJ.js} +25 -23
  25. package/{chunk-A4JDTA5T.js → chunk-DFPTW7QE.js} +6 -6
  26. package/{chunk-YWGSCF37.js → chunk-DWZMXGKK.js} +1 -1
  27. package/{chunk-ZFTCLBEX.js → chunk-E5WZMGFH.js} +417 -237
  28. package/{chunk-DCWBP2O7.js → chunk-EAKXD6CA.js} +10 -10
  29. package/{chunk-VSTUQGLT.js → chunk-ECHKECDC.js} +170 -42
  30. package/{chunk-QLV2GKU5.js → chunk-FCHECEX7.js} +7 -5
  31. package/{chunk-DWQNDGO7.js → chunk-FD6FKCDH.js} +2 -2
  32. package/{chunk-GAGUBI42.js → chunk-GD5XAUJ3.js} +5 -5
  33. package/{chunk-VP4WJWKW.js → chunk-GM6PU7B6.js} +431 -345
  34. package/{chunk-KW47OSRJ.js → chunk-HC73BU6M.js} +50 -70
  35. package/{chunk-3LY4F7SV.js → chunk-INZZJSQF.js} +348 -331
  36. package/{chunk-G6VITLCZ.js → chunk-IT7IN5AX.js} +2 -2
  37. package/{chunk-Q24P6TUS.js → chunk-JQFRQWGN.js} +1 -1
  38. package/{chunk-FS5TTXPS.js → chunk-JZTOEZJ4.js} +4 -4
  39. package/{chunk-UKC5HU2C.js → chunk-KHYNTGOT.js} +5 -5
  40. package/{chunk-MEUZFIAJ.js → chunk-KMGSN747.js} +1 -1
  41. package/{chunk-CV6I4HBA.js → chunk-KR6G42Z2.js} +1 -1
  42. package/{chunk-HI7QZNWX.js → chunk-KU6JXKVW.js} +4 -4
  43. package/{chunk-2XM5KUNE.js → chunk-LE5PV7CF.js} +2 -2
  44. package/{chunk-SWOTB2TX.js → chunk-LOZF4FBI.js} +43 -36
  45. package/{chunk-66O5MZYH.js → chunk-MZIHJGB5.js} +1 -1
  46. package/{chunk-T3Y5EMJS.js → chunk-N6F6HKEE.js} +1 -1
  47. package/{chunk-DI6MXJK5.js → chunk-NHOV2D4N.js} +16 -14
  48. package/{chunk-HLG6GAUD.js → chunk-NLEEVJZU.js} +1 -1
  49. package/{chunk-446VANPP.js → chunk-OJE3M2CY.js} +4 -4
  50. package/{chunk-DKRT67FG.js → chunk-OMR6FM26.js} +3 -3
  51. package/{chunk-GVKTKT3O.js → chunk-ORCLFNKB.js} +3 -3
  52. package/{chunk-BOL2D2JW.js → chunk-QGSD46W6.js} +2 -2
  53. package/{chunk-L3VQOVKK.js → chunk-R3YEGS4D.js} +3 -3
  54. package/{chunk-56IUA7RU.js → chunk-RXGTXWYH.js} +1 -1
  55. package/{chunk-UTQZ73QQ.js → chunk-SVZ6MSA3.js} +1 -1
  56. package/{chunk-YLADSPDU.js → chunk-U2I2DYUD.js} +2 -2
  57. package/chunk-UD4A2FNM.js +7923 -0
  58. package/{chunk-OYK7PA5U.js → chunk-UEH4ANWR.js} +6 -6
  59. package/chunk-UUNZE2KQ.js +5558 -0
  60. package/{chunk-3RIWR23B.js → chunk-VWBCW4JY.js} +1 -1
  61. package/{chunk-SZ5CBYMZ.js → chunk-W427FQJD.js} +2 -2
  62. package/{chunk-W2YKDXT7.js → chunk-XBACY73D.js} +1 -1
  63. package/{chunk-G5JHHUAK.js → chunk-XD6JM3SC.js} +1 -1
  64. package/{chunk-XD5NQEOH.js → chunk-ZIKG63EC.js} +1 -1
  65. package/{clipboardy-BVE3LVEH.js → clipboardy-MMBYVRLF.js} +166 -372
  66. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-B6ZSNUUI.js} +12 -11
  67. package/{createDialogAction-R5MCL4RE.js → createDialogAction-G34J7HP5.js} +13 -12
  68. package/{createPageAction-QYTG656R.js → createPageAction-KL4OCNNH.js} +14 -13
  69. package/{dbSlice-OBV7VFCF.js → dbSlice-6IRTSQLA.js} +5 -5
  70. package/{deleteFile-AC45HYSM.js → deleteFile-TSEW36N4.js} +3 -3
  71. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-PHH75OPO.js} +25 -24
  72. package/{dialogSlice-CFDECXEU.js → dialogSlice-2B5AGZXL.js} +11 -11
  73. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-2EZAGRNU.js} +24 -23
  74. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-ZYL2JBF2.js} +25 -24
  75. package/{docReadCommands-6J7MUUX6.js → docReadCommands-Q5HGLLRZ.js} +24 -23
  76. package/{docStore-MZZWJM4F.js → docStore-CCQWPWYV.js} +13 -12
  77. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-KGOPINTR.js} +24 -23
  78. package/{getPricing-XQYSSVV6.js → getPricing-6FIKFX4A.js} +2 -2
  79. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-TS5MF7R4.js} +11 -11
  80. package/index.js +58 -58
  81. package/{lib-FYYBQIXS.js → lib-2ZTNRXR4.js} +432 -183
  82. package/{machineCommands-Z2QEWTHZ.js → machineCommands-4UGY53XP.js} +34 -33
  83. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-6KNOLLYI.js} +34 -33
  84. package/package.json +1 -1
  85. package/{read-QK7ZRX6G.js → read-UMWKE5D4.js} +3 -3
  86. package/{readDocTool-EYDMVRBL.js → readDocTool-FEHZDVEE.js} +1 -1
  87. package/{readlineWorkspace-EY3BPXIU.js → readlineWorkspace-7YWWGBSU.js} +97 -59
  88. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-X32EDHZX.js} +7 -7
  89. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-UQ23LEWR.js} +27 -26
  90. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-VGI5CCSY.js} +6 -6
  91. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-QOFXGQT6.js} +7 -7
  92. package/{settingSlice-JKKV2T7O.js → settingSlice-RHSYAKFT.js} +6 -6
  93. package/{slateUtils-2M7MUTWX.js → slateUtils-VO2FU36K.js} +1 -1
  94. package/{spaceCommands-R6AEQNLG.js → spaceCommands-GH5DTWKY.js} +208 -26
  95. package/{spaceSlice-MCH7RLLP.js → spaceSlice-AW66HZHQ.js} +12 -11
  96. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-TZQZFDJQ.js} +32 -30
  97. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-KX56UKUF.js} +5 -5
  98. package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
  99. package/{tools-Y3UBLLYW.js → tools-FO7J53WL.js} +22 -21
  100. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-OX5M2GJW.js} +3 -3
  101. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-FVDTGJNA.js} +15 -13
  102. package/chunk-THTAR67C.js +0 -16338
@@ -12188,121 +12188,7 @@ var require_lib = __commonJS({
12188
12188
  var require_i18next = __commonJS({
12189
12189
  "node_modules/i18next/dist/cjs/i18next.js"(exports, module) {
12190
12190
  "use strict";
12191
- var consoleLogger = {
12192
- type: "logger",
12193
- log(args) {
12194
- this.output("log", args);
12195
- },
12196
- warn(args) {
12197
- this.output("warn", args);
12198
- },
12199
- error(args) {
12200
- this.output("error", args);
12201
- },
12202
- output(type, args) {
12203
- if (console && console[type]) console[type].apply(console, args);
12204
- }
12205
- };
12206
- var Logger = class _Logger {
12207
- constructor(concreteLogger) {
12208
- let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12209
- this.init(concreteLogger, options);
12210
- }
12211
- init(concreteLogger) {
12212
- let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12213
- this.prefix = options.prefix || "i18next:";
12214
- this.logger = concreteLogger || consoleLogger;
12215
- this.options = options;
12216
- this.debug = options.debug;
12217
- }
12218
- log() {
12219
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12220
- args[_key] = arguments[_key];
12221
- }
12222
- return this.forward(args, "log", "", true);
12223
- }
12224
- warn() {
12225
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
12226
- args[_key2] = arguments[_key2];
12227
- }
12228
- return this.forward(args, "warn", "", true);
12229
- }
12230
- error() {
12231
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
12232
- args[_key3] = arguments[_key3];
12233
- }
12234
- return this.forward(args, "error", "");
12235
- }
12236
- deprecate() {
12237
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
12238
- args[_key4] = arguments[_key4];
12239
- }
12240
- return this.forward(args, "warn", "WARNING DEPRECATED: ", true);
12241
- }
12242
- forward(args, lvl, prefix, debugOnly) {
12243
- if (debugOnly && !this.debug) return null;
12244
- if (typeof args[0] === "string") args[0] = `${prefix}${this.prefix} ${args[0]}`;
12245
- return this.logger[lvl](args);
12246
- }
12247
- create(moduleName) {
12248
- return new _Logger(this.logger, {
12249
- ...{
12250
- prefix: `${this.prefix}:${moduleName}:`
12251
- },
12252
- ...this.options
12253
- });
12254
- }
12255
- clone(options) {
12256
- options = options || this.options;
12257
- options.prefix = options.prefix || this.prefix;
12258
- return new _Logger(this.logger, options);
12259
- }
12260
- };
12261
- var baseLogger = new Logger();
12262
- var EventEmitter = class {
12263
- constructor() {
12264
- this.observers = {};
12265
- }
12266
- on(events, listener) {
12267
- events.split(" ").forEach((event) => {
12268
- if (!this.observers[event]) this.observers[event] = /* @__PURE__ */ new Map();
12269
- const numListeners = this.observers[event].get(listener) || 0;
12270
- this.observers[event].set(listener, numListeners + 1);
12271
- });
12272
- return this;
12273
- }
12274
- off(event, listener) {
12275
- if (!this.observers[event]) return;
12276
- if (!listener) {
12277
- delete this.observers[event];
12278
- return;
12279
- }
12280
- this.observers[event].delete(listener);
12281
- }
12282
- emit(event) {
12283
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
12284
- args[_key - 1] = arguments[_key];
12285
- }
12286
- if (this.observers[event]) {
12287
- const cloned = Array.from(this.observers[event].entries());
12288
- cloned.forEach((_ref) => {
12289
- let [observer, numTimesAdded] = _ref;
12290
- for (let i = 0; i < numTimesAdded; i++) {
12291
- observer(...args);
12292
- }
12293
- });
12294
- }
12295
- if (this.observers["*"]) {
12296
- const cloned = Array.from(this.observers["*"].entries());
12297
- cloned.forEach((_ref2) => {
12298
- let [observer, numTimesAdded] = _ref2;
12299
- for (let i = 0; i < numTimesAdded; i++) {
12300
- observer.apply(observer, [event, ...args]);
12301
- }
12302
- });
12303
- }
12304
- }
12305
- };
12191
+ var isString = (obj) => typeof obj === "string";
12306
12192
  var defer = () => {
12307
12193
  let res;
12308
12194
  let rej;
@@ -12325,9 +12211,9 @@ var require_i18next = __commonJS({
12325
12211
  };
12326
12212
  var lastOfPathSeparatorRegExp = /###/g;
12327
12213
  var cleanKey = (key) => key && key.indexOf("###") > -1 ? key.replace(lastOfPathSeparatorRegExp, ".") : key;
12328
- var canNotTraverseDeeper = (object) => !object || typeof object === "string";
12214
+ var canNotTraverseDeeper = (object) => !object || isString(object);
12329
12215
  var getLastOfPath = (object, path, Empty) => {
12330
- const stack = typeof path !== "string" ? path : path.split(".");
12216
+ const stack = !isString(path) ? path : path.split(".");
12331
12217
  let stackIndex = 0;
12332
12218
  while (stackIndex < stack.length - 1) {
12333
12219
  if (canNotTraverseDeeper(object)) return {};
@@ -12395,7 +12281,7 @@ var require_i18next = __commonJS({
12395
12281
  for (const prop in source) {
12396
12282
  if (prop !== "__proto__" && prop !== "constructor") {
12397
12283
  if (prop in target) {
12398
- if (typeof target[prop] === "string" || target[prop] instanceof String || typeof source[prop] === "string" || source[prop] instanceof String) {
12284
+ if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {
12399
12285
  if (overwrite) target[prop] = source[prop];
12400
12286
  } else {
12401
12287
  deepExtend(target[prop], source[prop], overwrite);
@@ -12417,7 +12303,7 @@ var require_i18next = __commonJS({
12417
12303
  "/": "&#x2F;"
12418
12304
  };
12419
12305
  var escape = (data) => {
12420
- if (typeof data === "string") {
12306
+ if (isString(data)) {
12421
12307
  return data.replace(/[&<>"'\/]/g, (s) => _entityMap[s]);
12422
12308
  }
12423
12309
  return data;
@@ -12489,9 +12375,121 @@ var require_i18next = __commonJS({
12489
12375
  }
12490
12376
  return current;
12491
12377
  };
12492
- var getCleanedCode = (code) => {
12493
- if (code && code.indexOf("_") > 0) return code.replace("_", "-");
12494
- return code;
12378
+ var getCleanedCode = (code) => code && code.replace("_", "-");
12379
+ var consoleLogger = {
12380
+ type: "logger",
12381
+ log(args) {
12382
+ this.output("log", args);
12383
+ },
12384
+ warn(args) {
12385
+ this.output("warn", args);
12386
+ },
12387
+ error(args) {
12388
+ this.output("error", args);
12389
+ },
12390
+ output(type, args) {
12391
+ if (console && console[type]) console[type].apply(console, args);
12392
+ }
12393
+ };
12394
+ var Logger = class _Logger {
12395
+ constructor(concreteLogger) {
12396
+ let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12397
+ this.init(concreteLogger, options);
12398
+ }
12399
+ init(concreteLogger) {
12400
+ let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12401
+ this.prefix = options.prefix || "i18next:";
12402
+ this.logger = concreteLogger || consoleLogger;
12403
+ this.options = options;
12404
+ this.debug = options.debug;
12405
+ }
12406
+ log() {
12407
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12408
+ args[_key] = arguments[_key];
12409
+ }
12410
+ return this.forward(args, "log", "", true);
12411
+ }
12412
+ warn() {
12413
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
12414
+ args[_key2] = arguments[_key2];
12415
+ }
12416
+ return this.forward(args, "warn", "", true);
12417
+ }
12418
+ error() {
12419
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
12420
+ args[_key3] = arguments[_key3];
12421
+ }
12422
+ return this.forward(args, "error", "");
12423
+ }
12424
+ deprecate() {
12425
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
12426
+ args[_key4] = arguments[_key4];
12427
+ }
12428
+ return this.forward(args, "warn", "WARNING DEPRECATED: ", true);
12429
+ }
12430
+ forward(args, lvl, prefix, debugOnly) {
12431
+ if (debugOnly && !this.debug) return null;
12432
+ if (isString(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`;
12433
+ return this.logger[lvl](args);
12434
+ }
12435
+ create(moduleName) {
12436
+ return new _Logger(this.logger, {
12437
+ ...{
12438
+ prefix: `${this.prefix}:${moduleName}:`
12439
+ },
12440
+ ...this.options
12441
+ });
12442
+ }
12443
+ clone(options) {
12444
+ options = options || this.options;
12445
+ options.prefix = options.prefix || this.prefix;
12446
+ return new _Logger(this.logger, options);
12447
+ }
12448
+ };
12449
+ var baseLogger = new Logger();
12450
+ var EventEmitter = class {
12451
+ constructor() {
12452
+ this.observers = {};
12453
+ }
12454
+ on(events, listener) {
12455
+ events.split(" ").forEach((event) => {
12456
+ if (!this.observers[event]) this.observers[event] = /* @__PURE__ */ new Map();
12457
+ const numListeners = this.observers[event].get(listener) || 0;
12458
+ this.observers[event].set(listener, numListeners + 1);
12459
+ });
12460
+ return this;
12461
+ }
12462
+ off(event, listener) {
12463
+ if (!this.observers[event]) return;
12464
+ if (!listener) {
12465
+ delete this.observers[event];
12466
+ return;
12467
+ }
12468
+ this.observers[event].delete(listener);
12469
+ }
12470
+ emit(event) {
12471
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
12472
+ args[_key - 1] = arguments[_key];
12473
+ }
12474
+ if (this.observers[event]) {
12475
+ const cloned = Array.from(this.observers[event].entries());
12476
+ cloned.forEach((_ref) => {
12477
+ let [observer, numTimesAdded] = _ref;
12478
+ for (let i = 0; i < numTimesAdded; i++) {
12479
+ observer(...args);
12480
+ }
12481
+ });
12482
+ }
12483
+ if (this.observers["*"]) {
12484
+ const cloned = Array.from(this.observers["*"].entries());
12485
+ cloned.forEach((_ref2) => {
12486
+ let [observer, numTimesAdded] = _ref2;
12487
+ for (let i = 0; i < numTimesAdded; i++) {
12488
+ observer.apply(observer, [event, ...args]);
12489
+ }
12490
+ });
12491
+ }
12492
+ }
12495
12493
  };
12496
12494
  var ResourceStore = class extends EventEmitter {
12497
12495
  constructor(data) {
@@ -12532,7 +12530,7 @@ var require_i18next = __commonJS({
12532
12530
  if (key) {
12533
12531
  if (Array.isArray(key)) {
12534
12532
  path.push(...key);
12535
- } else if (typeof key === "string" && keySeparator) {
12533
+ } else if (isString(key) && keySeparator) {
12536
12534
  path.push(...key.split(keySeparator));
12537
12535
  } else {
12538
12536
  path.push(key);
@@ -12545,7 +12543,7 @@ var require_i18next = __commonJS({
12545
12543
  ns = path[1];
12546
12544
  key = path.slice(2).join(".");
12547
12545
  }
12548
- if (result || !ignoreJSONStructure || typeof key !== "string") return result;
12546
+ if (result || !ignoreJSONStructure || !isString(key)) return result;
12549
12547
  return deepFind(this.data && this.data[lng] && this.data[lng][ns], key, keySeparator);
12550
12548
  }
12551
12549
  addResource(lng, ns, key, value) {
@@ -12569,7 +12567,7 @@ var require_i18next = __commonJS({
12569
12567
  silent: false
12570
12568
  };
12571
12569
  for (const m in resources) {
12572
- if (typeof resources[m] === "string" || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {
12570
+ if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {
12573
12571
  silent: true
12574
12572
  });
12575
12573
  }
@@ -12680,17 +12678,16 @@ var require_i18next = __commonJS({
12680
12678
  if (m && m.length > 0) {
12681
12679
  return {
12682
12680
  key,
12683
- namespaces
12681
+ namespaces: isString(namespaces) ? [namespaces] : namespaces
12684
12682
  };
12685
12683
  }
12686
12684
  const parts = key.split(nsSeparator);
12687
12685
  if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();
12688
12686
  key = parts.join(keySeparator);
12689
12687
  }
12690
- if (typeof namespaces === "string") namespaces = [namespaces];
12691
12688
  return {
12692
12689
  key,
12693
- namespaces
12690
+ namespaces: isString(namespaces) ? [namespaces] : namespaces
12694
12691
  };
12695
12692
  }
12696
12693
  translate(keys, options, lastKey) {
@@ -12747,8 +12744,8 @@ var require_i18next = __commonJS({
12747
12744
  const noObject = ["[object Number]", "[object Function]", "[object RegExp]"];
12748
12745
  const joinArrays = options.joinArrays !== void 0 ? options.joinArrays : this.options.joinArrays;
12749
12746
  const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
12750
- const handleAsObject = typeof res !== "string" && typeof res !== "boolean" && typeof res !== "number";
12751
- if (handleAsObjectInI18nFormat && res && handleAsObject && noObject.indexOf(resType) < 0 && !(typeof joinArrays === "string" && Array.isArray(res))) {
12747
+ const handleAsObject = !isString(res) && typeof res !== "boolean" && typeof res !== "number";
12748
+ if (handleAsObjectInI18nFormat && res && handleAsObject && noObject.indexOf(resType) < 0 && !(isString(joinArrays) && Array.isArray(res))) {
12752
12749
  if (!options.returnObjects && !this.options.returnObjects) {
12753
12750
  if (!this.options.returnedObjectHandler) {
12754
12751
  this.logger.warn("accessing an object - but returnObjects options is not enabled!");
@@ -12783,13 +12780,13 @@ var require_i18next = __commonJS({
12783
12780
  }
12784
12781
  res = copy2;
12785
12782
  }
12786
- } else if (handleAsObjectInI18nFormat && typeof joinArrays === "string" && Array.isArray(res)) {
12783
+ } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {
12787
12784
  res = res.join(joinArrays);
12788
12785
  if (res) res = this.extendTranslation(res, keys, options, lastKey);
12789
12786
  } else {
12790
12787
  let usedDefault = false;
12791
12788
  let usedKey = false;
12792
- const needsPluralHandling = options.count !== void 0 && typeof options.count !== "string";
12789
+ const needsPluralHandling = options.count !== void 0 && !isString(options.count);
12793
12790
  const hasDefaultValue = _Translator.hasDefaultValue(options);
12794
12791
  const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
12795
12792
  const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
@@ -12889,13 +12886,13 @@ var require_i18next = __commonJS({
12889
12886
  }
12890
12887
  }
12891
12888
  });
12892
- const skipOnVariables = typeof res === "string" && (options && options.interpolation && options.interpolation.skipOnVariables !== void 0 ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
12889
+ const skipOnVariables = isString(res) && (options && options.interpolation && options.interpolation.skipOnVariables !== void 0 ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
12893
12890
  let nestBef;
12894
12891
  if (skipOnVariables) {
12895
12892
  const nb = res.match(this.interpolator.nestingRegexp);
12896
12893
  nestBef = nb && nb.length;
12897
12894
  }
12898
- let data = options.replace && typeof options.replace !== "string" ? options.replace : options;
12895
+ let data = options.replace && !isString(options.replace) ? options.replace : options;
12899
12896
  if (this.options.interpolation.defaultVariables) data = {
12900
12897
  ...this.options.interpolation.defaultVariables,
12901
12898
  ...data
@@ -12920,7 +12917,7 @@ var require_i18next = __commonJS({
12920
12917
  if (options.interpolation) this.interpolator.reset();
12921
12918
  }
12922
12919
  const postProcess = options.postProcess || this.options.postProcess;
12923
- const postProcessorNames = typeof postProcess === "string" ? [postProcess] : postProcess;
12920
+ const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;
12924
12921
  if (res !== void 0 && res !== null && postProcessorNames && postProcessorNames.length && options.applyPostProcessor !== false) {
12925
12922
  res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {
12926
12923
  i18nResolved: {
@@ -12939,7 +12936,7 @@ var require_i18next = __commonJS({
12939
12936
  let exactUsedKey;
12940
12937
  let usedLng;
12941
12938
  let usedNS;
12942
- if (typeof keys === "string") keys = [keys];
12939
+ if (isString(keys)) keys = [keys];
12943
12940
  keys.forEach((k) => {
12944
12941
  if (this.isValidLookup(found)) return;
12945
12942
  const extracted = this.extractFromKey(k, options);
@@ -12947,9 +12944,9 @@ var require_i18next = __commonJS({
12947
12944
  usedKey = key;
12948
12945
  let namespaces = extracted.namespaces;
12949
12946
  if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);
12950
- const needsPluralHandling = options.count !== void 0 && typeof options.count !== "string";
12947
+ const needsPluralHandling = options.count !== void 0 && !isString(options.count);
12951
12948
  const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0 && this.pluralResolver.shouldUseIntlApi();
12952
- const needsContextHandling = options.context !== void 0 && (typeof options.context === "string" || typeof options.context === "number") && options.context !== "";
12949
+ const needsContextHandling = options.context !== void 0 && (isString(options.context) || typeof options.context === "number") && options.context !== "";
12953
12950
  const codes = options.lngs ? options.lngs : this.languageUtils.toResolveHierarchy(options.lng || this.language, options.fallbackLng);
12954
12951
  namespaces.forEach((ns) => {
12955
12952
  if (this.isValidLookup(found)) return;
@@ -13021,7 +13018,7 @@ var require_i18next = __commonJS({
13021
13018
  getUsedParamsDetails() {
13022
13019
  let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13023
13020
  const optionsKeys = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"];
13024
- const useOptionsReplaceForData = options.replace && typeof options.replace !== "string";
13021
+ const useOptionsReplaceForData = options.replace && !isString(options.replace);
13025
13022
  let data = useOptionsReplaceForData ? options.replace : options;
13026
13023
  if (useOptionsReplaceForData && typeof options.count !== "undefined") {
13027
13024
  data.count = options.count;
@@ -13075,7 +13072,17 @@ var require_i18next = __commonJS({
13075
13072
  return this.formatLanguageCode(p[0]);
13076
13073
  }
13077
13074
  formatLanguageCode(code) {
13078
- if (typeof code === "string" && code.indexOf("-") > -1) {
13075
+ if (isString(code) && code.indexOf("-") > -1) {
13076
+ if (typeof Intl !== "undefined" && typeof Intl.getCanonicalLocales !== "undefined") {
13077
+ try {
13078
+ let formattedCode = Intl.getCanonicalLocales(code)[0];
13079
+ if (formattedCode && this.options.lowerCaseLng) {
13080
+ formattedCode = formattedCode.toLowerCase();
13081
+ }
13082
+ if (formattedCode) return formattedCode;
13083
+ } catch (e) {
13084
+ }
13085
+ }
13079
13086
  const specialCases = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
13080
13087
  let p = code.split("-");
13081
13088
  if (this.options.lowerCaseLng) {
@@ -13128,7 +13135,7 @@ var require_i18next = __commonJS({
13128
13135
  getFallbackCodes(fallbacks, code) {
13129
13136
  if (!fallbacks) return [];
13130
13137
  if (typeof fallbacks === "function") fallbacks = fallbacks(code);
13131
- if (typeof fallbacks === "string") fallbacks = [fallbacks];
13138
+ if (isString(fallbacks)) fallbacks = [fallbacks];
13132
13139
  if (Array.isArray(fallbacks)) return fallbacks;
13133
13140
  if (!code) return fallbacks.default || [];
13134
13141
  let found = fallbacks[code];
@@ -13149,11 +13156,11 @@ var require_i18next = __commonJS({
13149
13156
  this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`);
13150
13157
  }
13151
13158
  };
13152
- if (typeof code === "string" && (code.indexOf("-") > -1 || code.indexOf("_") > -1)) {
13159
+ if (isString(code) && (code.indexOf("-") > -1 || code.indexOf("_") > -1)) {
13153
13160
  if (this.options.load !== "languageOnly") addCode(this.formatLanguageCode(code));
13154
13161
  if (this.options.load !== "languageOnly" && this.options.load !== "currentOnly") addCode(this.getScriptPartFromCode(code));
13155
13162
  if (this.options.load !== "currentOnly") addCode(this.getLanguagePartFromCode(code));
13156
- } else if (typeof code === "string") {
13163
+ } else if (isString(code)) {
13157
13164
  addCode(this.formatLanguageCode(code));
13158
13165
  }
13159
13166
  fallbackCodes.forEach((fc) => {
@@ -13323,24 +13330,27 @@ var require_i18next = __commonJS({
13323
13330
  getRule(code) {
13324
13331
  let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13325
13332
  if (this.shouldUseIntlApi()) {
13333
+ const cleanedCode = getCleanedCode(code === "dev" ? "en" : code);
13334
+ const type = options.ordinal ? "ordinal" : "cardinal";
13335
+ const cacheKey = JSON.stringify({
13336
+ cleanedCode,
13337
+ type
13338
+ });
13339
+ if (cacheKey in this.pluralRulesCache) {
13340
+ return this.pluralRulesCache[cacheKey];
13341
+ }
13342
+ let rule;
13326
13343
  try {
13327
- const cleanedCode = getCleanedCode(code === "dev" ? "en" : code);
13328
- const type = options.ordinal ? "ordinal" : "cardinal";
13329
- const cacheKey = JSON.stringify({
13330
- cleanedCode,
13344
+ rule = new Intl.PluralRules(cleanedCode, {
13331
13345
  type
13332
13346
  });
13333
- if (cacheKey in this.pluralRulesCache) {
13334
- return this.pluralRulesCache[cacheKey];
13335
- }
13336
- const rule = new Intl.PluralRules(cleanedCode, {
13337
- type
13338
- });
13339
- this.pluralRulesCache[cacheKey] = rule;
13340
- return rule;
13341
13347
  } catch (err) {
13342
- return;
13348
+ if (!code.match(/-|_/)) return;
13349
+ const lngPart = this.languageUtils.getLanguagePartFromCode(code);
13350
+ rule = this.getRule(lngPart, options);
13343
13351
  }
13352
+ this.pluralRulesCache[cacheKey] = rule;
13353
+ return rule;
13344
13354
  }
13345
13355
  return this.rules[code] || this.rules[this.languageUtils.getLanguagePartFromCode(code)];
13346
13356
  }
@@ -13409,7 +13419,7 @@ var require_i18next = __commonJS({
13409
13419
  let keySeparator = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".";
13410
13420
  let ignoreJSONStructure = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : true;
13411
13421
  let path = getPathWithDefaults(data, defaultData, key);
13412
- if (!path && ignoreJSONStructure && typeof key === "string") {
13422
+ if (!path && ignoreJSONStructure && isString(key)) {
13413
13423
  path = deepFind(data, key, keySeparator);
13414
13424
  if (path === void 0) path = deepFind(defaultData, key, keySeparator);
13415
13425
  }
@@ -13519,7 +13529,7 @@ var require_i18next = __commonJS({
13519
13529
  if (value === void 0) {
13520
13530
  if (typeof missingInterpolationHandler === "function") {
13521
13531
  const temp = missingInterpolationHandler(str, match, options);
13522
- value = typeof temp === "string" ? temp : "";
13532
+ value = isString(temp) ? temp : "";
13523
13533
  } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
13524
13534
  value = "";
13525
13535
  } else if (skipOnVariables) {
@@ -13529,7 +13539,7 @@ var require_i18next = __commonJS({
13529
13539
  this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
13530
13540
  value = "";
13531
13541
  }
13532
- } else if (typeof value !== "string" && !this.useRawValueToEscape) {
13542
+ } else if (!isString(value) && !this.useRawValueToEscape) {
13533
13543
  value = makeString(value);
13534
13544
  }
13535
13545
  const safeValue = todo.safeValue(value);
@@ -13583,7 +13593,7 @@ var require_i18next = __commonJS({
13583
13593
  clonedOptions = {
13584
13594
  ...options
13585
13595
  };
13586
- clonedOptions = clonedOptions.replace && typeof clonedOptions.replace !== "string" ? clonedOptions.replace : clonedOptions;
13596
+ clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;
13587
13597
  clonedOptions.applyPostProcessor = false;
13588
13598
  delete clonedOptions.defaultValue;
13589
13599
  let doReduce = false;
@@ -13594,8 +13604,8 @@ var require_i18next = __commonJS({
13594
13604
  doReduce = true;
13595
13605
  }
13596
13606
  value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);
13597
- if (value && match[0] === str && typeof value !== "string") return value;
13598
- if (typeof value !== "string") value = makeString(value);
13607
+ if (value && match[0] === str && !isString(value)) return value;
13608
+ if (!isString(value)) value = makeString(value);
13599
13609
  if (!value) {
13600
13610
  this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`);
13601
13611
  value = "";
@@ -13706,8 +13716,7 @@ var require_i18next = __commonJS({
13706
13716
  let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
13707
13717
  interpolation: {}
13708
13718
  };
13709
- const iOpts = options.interpolation;
13710
- this.formatSeparator = iOpts.formatSeparator ? iOpts.formatSeparator : iOpts.formatSeparator || ",";
13719
+ this.formatSeparator = options.interpolation.formatSeparator || ",";
13711
13720
  }
13712
13721
  add(name, fc) {
13713
13722
  this.formats[name.toLowerCase().trim()] = fc;
@@ -13908,8 +13917,8 @@ var require_i18next = __commonJS({
13908
13917
  this.logger.warn("No backend was added via i18next.use. Will not load resources.");
13909
13918
  return callback && callback();
13910
13919
  }
13911
- if (typeof languages === "string") languages = this.languageUtils.toResolveHierarchy(languages);
13912
- if (typeof namespaces === "string") namespaces = [namespaces];
13920
+ if (isString(languages)) languages = this.languageUtils.toResolveHierarchy(languages);
13921
+ if (isString(namespaces)) namespaces = [namespaces];
13913
13922
  const toLoad = this.queueLoad(languages, namespaces, options, callback);
13914
13923
  if (!toLoad.toLoad.length) {
13915
13924
  if (!toLoad.pending.length) callback();
@@ -14013,8 +14022,8 @@ var require_i18next = __commonJS({
14013
14022
  overloadTranslationOptionHandler: (args) => {
14014
14023
  let ret = {};
14015
14024
  if (typeof args[1] === "object") ret = args[1];
14016
- if (typeof args[1] === "string") ret.defaultValue = args[1];
14017
- if (typeof args[2] === "string") ret.tDescription = args[2];
14025
+ if (isString(args[1])) ret.defaultValue = args[1];
14026
+ if (isString(args[2])) ret.tDescription = args[2];
14018
14027
  if (typeof args[2] === "object" || typeof args[3] === "object") {
14019
14028
  const options = args[3] || args[2];
14020
14029
  Object.keys(options).forEach((key) => {
@@ -14038,9 +14047,9 @@ var require_i18next = __commonJS({
14038
14047
  }
14039
14048
  });
14040
14049
  var transformOptions = (options) => {
14041
- if (typeof options.ns === "string") options.ns = [options.ns];
14042
- if (typeof options.fallbackLng === "string") options.fallbackLng = [options.fallbackLng];
14043
- if (typeof options.fallbackNS === "string") options.fallbackNS = [options.fallbackNS];
14050
+ if (isString(options.ns)) options.ns = [options.ns];
14051
+ if (isString(options.fallbackLng)) options.fallbackLng = [options.fallbackLng];
14052
+ if (isString(options.fallbackNS)) options.fallbackNS = [options.fallbackNS];
14044
14053
  if (options.supportedLngs && options.supportedLngs.indexOf("cimode") < 0) {
14045
14054
  options.supportedLngs = options.supportedLngs.concat(["cimode"]);
14046
14055
  }
@@ -14088,7 +14097,7 @@ var require_i18next = __commonJS({
14088
14097
  options = {};
14089
14098
  }
14090
14099
  if (!options.defaultNS && options.defaultNS !== false && options.ns) {
14091
- if (typeof options.ns === "string") {
14100
+ if (isString(options.ns)) {
14092
14101
  options.defaultNS = options.ns;
14093
14102
  } else if (options.ns.indexOf("translation") < 0) {
14094
14103
  options.defaultNS = options.ns[0];
@@ -14221,7 +14230,7 @@ var require_i18next = __commonJS({
14221
14230
  loadResources(language) {
14222
14231
  let callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : noop;
14223
14232
  let usedCallback = callback;
14224
- const usedLng = typeof language === "string" ? language : this.language;
14233
+ const usedLng = isString(language) ? language : this.language;
14225
14234
  if (typeof language === "function") usedCallback = language;
14226
14235
  if (!this.options.resources || this.options.partialBundledLanguages) {
14227
14236
  if (usedLng && usedLng.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();
@@ -14339,7 +14348,7 @@ var require_i18next = __commonJS({
14339
14348
  };
14340
14349
  const setLng = (lngs) => {
14341
14350
  if (!lng && !lngs && this.services.languageDetector) lngs = [];
14342
- const l = typeof lngs === "string" ? lngs : this.services.languageUtils.getBestMatchFromCodes(lngs);
14351
+ const l = isString(lngs) ? lngs : this.services.languageUtils.getBestMatchFromCodes(lngs);
14343
14352
  if (l) {
14344
14353
  if (!this.language) {
14345
14354
  setLngProps(l);
@@ -14391,7 +14400,7 @@ var require_i18next = __commonJS({
14391
14400
  }
14392
14401
  return _this3.t(resultKey, options);
14393
14402
  };
14394
- if (typeof lng === "string") {
14403
+ if (isString(lng)) {
14395
14404
  fixedT.lng = lng;
14396
14405
  } else {
14397
14406
  fixedT.lngs = lng;
@@ -14442,7 +14451,7 @@ var require_i18next = __commonJS({
14442
14451
  if (callback) callback();
14443
14452
  return Promise.resolve();
14444
14453
  }
14445
- if (typeof ns === "string") ns = [ns];
14454
+ if (isString(ns)) ns = [ns];
14446
14455
  ns.forEach((n) => {
14447
14456
  if (this.options.ns.indexOf(n) < 0) this.options.ns.push(n);
14448
14457
  });
@@ -14454,7 +14463,7 @@ var require_i18next = __commonJS({
14454
14463
  }
14455
14464
  loadLanguages(lngs, callback) {
14456
14465
  const deferred = defer();
14457
- if (typeof lngs === "string") lngs = [lngs];
14466
+ if (isString(lngs)) lngs = [lngs];
14458
14467
  const preloaded = this.options.preload || [];
14459
14468
  const newLngs = lngs.filter((lng) => preloaded.indexOf(lng) < 0 && this.services.languageUtils.isSupportedCode(lng));
14460
14469
  if (!newLngs.length) {
@@ -15471,7 +15480,7 @@ var require_palace3 = __commonJS({
15471
15480
  propertyPalace: "\uC804\uD0DD",
15472
15481
  spiritPalace: "\uBCF5\uB355",
15473
15482
  parentsPalace: "\uBD80\uBAA8",
15474
- originalPalace: "\uB77C\uC778"
15483
+ originalPalace: "\uB798\uC778"
15475
15484
  };
15476
15485
  }
15477
15486
  });
@@ -17164,7 +17173,7 @@ var require_dayjs_min = __commonJS({
17164
17173
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
17165
17174
  }(exports, function() {
17166
17175
  "use strict";
17167
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
17176
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
17168
17177
  var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
17169
17178
  return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
17170
17179
  } }, m = function(t2, e2, n2) {
@@ -17423,9 +17432,9 @@ var require_dayjs_min = __commonJS({
17423
17432
  }, m2.toString = function() {
17424
17433
  return this.$d.toUTCString();
17425
17434
  }, M2;
17426
- }(), k = _.prototype;
17427
- return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
17428
- k[t2[1]] = function(e2) {
17435
+ }(), Y = _.prototype;
17436
+ return O.prototype = Y, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
17437
+ Y[t2[1]] = function(e2) {
17429
17438
  return this.$g(e2, t2[0], t2[1]);
17430
17439
  };
17431
17440
  }), O.extend = function(t2, e2) {
@@ -17437,6 +17446,57 @@ var require_dayjs_min = __commonJS({
17437
17446
  }
17438
17447
  });
17439
17448
 
17449
+ // node_modules/iztro/lib/utils/toJSON.js
17450
+ var require_toJSON = __commonJS({
17451
+ "node_modules/iztro/lib/utils/toJSON.js"(exports) {
17452
+ "use strict";
17453
+ Object.defineProperty(exports, "__esModule", { value: true });
17454
+ exports.serialize = void 0;
17455
+ var _clone = function(value, references) {
17456
+ if (typeof value === "function" || typeof value === "undefined" || typeof value === "symbol" || typeof value === "bigint") {
17457
+ return void 0;
17458
+ }
17459
+ if (value === null || typeof value !== "object") {
17460
+ return typeof value === "number" && !Number.isFinite(value) ? null : value;
17461
+ }
17462
+ if (references.has(value)) {
17463
+ return void 0;
17464
+ }
17465
+ references.add(value);
17466
+ if (Array.isArray(value)) {
17467
+ var result_1 = value.map(function(item) {
17468
+ var _a;
17469
+ return (_a = _clone(item, references)) !== null && _a !== void 0 ? _a : null;
17470
+ });
17471
+ references.delete(value);
17472
+ return result_1;
17473
+ }
17474
+ var result = {};
17475
+ Object.entries(value).forEach(function(_a) {
17476
+ var key = _a[0], item = _a[1];
17477
+ if (key === "plugins" || key === "astrolabe" || key.startsWith("_")) {
17478
+ return;
17479
+ }
17480
+ var clonedItem = _clone(item, references);
17481
+ if (typeof clonedItem !== "undefined") {
17482
+ Object.defineProperty(result, key, {
17483
+ value: clonedItem,
17484
+ enumerable: true,
17485
+ configurable: true,
17486
+ writable: true
17487
+ });
17488
+ }
17489
+ });
17490
+ references.delete(value);
17491
+ return result;
17492
+ };
17493
+ var serialize = function(instance) {
17494
+ return _clone(instance, /* @__PURE__ */ new WeakSet());
17495
+ };
17496
+ exports.serialize = serialize;
17497
+ }
17498
+ });
17499
+
17440
17500
  // node_modules/iztro/lib/astro/FunctionalSurpalaces.js
17441
17501
  var require_FunctionalSurpalaces = __commonJS({
17442
17502
  "node_modules/iztro/lib/astro/FunctionalSurpalaces.js"(exports) {
@@ -17444,12 +17504,16 @@ var require_FunctionalSurpalaces = __commonJS({
17444
17504
  Object.defineProperty(exports, "__esModule", { value: true });
17445
17505
  exports.FunctionalSurpalaces = void 0;
17446
17506
  var analyzer_1 = require_analyzer();
17507
+ var toJSON_1 = require_toJSON();
17447
17508
  var FunctionalSurpalaces = (
17448
17509
  /** @class */
17449
17510
  /* @__PURE__ */ function() {
17450
17511
  function FunctionalSurpalaces2(_a) {
17451
17512
  var _this = this;
17452
17513
  var target = _a.target, opposite = _a.opposite, wealth = _a.wealth, career = _a.career;
17514
+ this.toJSON = function() {
17515
+ return (0, toJSON_1.serialize)(_this);
17516
+ };
17453
17517
  this.have = function(stars) {
17454
17518
  return (0, analyzer_1.isSurroundedByStars)(_this, stars);
17455
17519
  };
@@ -17477,6 +17541,48 @@ var require_FunctionalSurpalaces = __commonJS({
17477
17541
  }
17478
17542
  });
17479
17543
 
17544
+ // node_modules/iztro/lib/astro/FunctionalFlankingPalaces.js
17545
+ var require_FunctionalFlankingPalaces = __commonJS({
17546
+ "node_modules/iztro/lib/astro/FunctionalFlankingPalaces.js"(exports) {
17547
+ "use strict";
17548
+ Object.defineProperty(exports, "__esModule", { value: true });
17549
+ exports.FunctionalFlankingPalaces = void 0;
17550
+ var toJSON_1 = require_toJSON();
17551
+ var analyzer_1 = require_analyzer();
17552
+ var FunctionalFlankingPalaces = (
17553
+ /** @class */
17554
+ /* @__PURE__ */ function() {
17555
+ function FunctionalFlankingPalaces2(_a) {
17556
+ var _this = this;
17557
+ var previous = _a.previous, next = _a.next;
17558
+ this.toJSON = function() {
17559
+ return (0, toJSON_1.serialize)(_this);
17560
+ };
17561
+ this.have = function(stars) {
17562
+ return (0, analyzer_1.isFlankedByStars)(_this, stars);
17563
+ };
17564
+ this.notHave = function(stars) {
17565
+ return (0, analyzer_1.notFlankedByStars)(_this, stars);
17566
+ };
17567
+ this.haveOneOf = function(stars) {
17568
+ return (0, analyzer_1.isFlankedByOneOfStars)(_this, stars);
17569
+ };
17570
+ this.haveMutagen = function(mutagen) {
17571
+ return _this.previous.hasMutagen(mutagen) || _this.next.hasMutagen(mutagen);
17572
+ };
17573
+ this.notHaveMutagen = function(mutagen) {
17574
+ return !_this.haveMutagen(mutagen);
17575
+ };
17576
+ this.previous = previous;
17577
+ this.next = next;
17578
+ }
17579
+ return FunctionalFlankingPalaces2;
17580
+ }()
17581
+ );
17582
+ exports.FunctionalFlankingPalaces = FunctionalFlankingPalaces;
17583
+ }
17584
+ });
17585
+
17480
17586
  // node_modules/iztro/lib/astro/analyzer.js
17481
17587
  var require_analyzer = __commonJS({
17482
17588
  "node_modules/iztro/lib/astro/analyzer.js"(exports) {
@@ -17491,11 +17597,12 @@ var require_analyzer = __commonJS({
17491
17597
  return to.concat(ar || Array.prototype.slice.call(from));
17492
17598
  };
17493
17599
  Object.defineProperty(exports, "__esModule", { value: true });
17494
- exports.mutagensToStars = exports.notSurroundedByStars = exports.isSurroundedByOneOfStars = exports.isSurroundedByStars = exports.hasOneOfStars = exports.notHaveStars = exports.notHaveMutagenInPalce = exports.hasMutagenInPlace = exports.hasStars = exports.getPalace = exports.getSurroundedPalaces = void 0;
17600
+ exports.mutagensToStars = exports.notFlankedByStars = exports.isFlankedByOneOfStars = exports.isFlankedByStars = exports.notSurroundedByStars = exports.isSurroundedByOneOfStars = exports.isSurroundedByStars = exports.hasOneOfStars = exports.notHaveStars = exports.notHaveMutagenInPalce = exports.hasMutagenInPlace = exports.hasStars = exports.getPalace = exports.getFlankingPalaces = exports.getSurroundedPalaces = void 0;
17495
17601
  var data_1 = require_data();
17496
17602
  var i18n_1 = require_i18n();
17497
17603
  var utils_1 = require_utils2();
17498
17604
  var FunctionalSurpalaces_1 = require_FunctionalSurpalaces();
17605
+ var FunctionalFlankingPalaces_1 = require_FunctionalFlankingPalaces();
17499
17606
  var _concatStars = function() {
17500
17607
  var stars = [];
17501
17608
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -17541,6 +17648,10 @@ var require_analyzer = __commonJS({
17541
17648
  var target = _a.target, opposite = _a.opposite, wealth = _a.wealth, career = _a.career;
17542
17649
  return _concatStars(target.majorStars, target.minorStars, target.adjectiveStars, opposite.majorStars, opposite.minorStars, opposite.adjectiveStars, wealth.majorStars, wealth.minorStars, wealth.adjectiveStars, career.majorStars, career.minorStars, career.adjectiveStars);
17543
17650
  };
17651
+ var _getAllStarsInFlankingPalaces = function(_a) {
17652
+ var previous = _a.previous, next = _a.next;
17653
+ return _concatStars(previous.majorStars, previous.minorStars, previous.adjectiveStars, next.majorStars, next.minorStars, next.adjectiveStars);
17654
+ };
17544
17655
  var getSurroundedPalaces = function($, indexOrName) {
17545
17656
  var palace = (0, exports.getPalace)($, indexOrName);
17546
17657
  if (!palace) {
@@ -17561,6 +17672,19 @@ var require_analyzer = __commonJS({
17561
17672
  });
17562
17673
  };
17563
17674
  exports.getSurroundedPalaces = getSurroundedPalaces;
17675
+ var getFlankingPalaces = function($, indexOrName) {
17676
+ var palace = (0, exports.getPalace)($, indexOrName);
17677
+ if (!palace) {
17678
+ throw new Error("invalid palace index or name.");
17679
+ }
17680
+ var previousPalace = (0, exports.getPalace)($, (0, utils_1.fixIndex)(palace.index - 1));
17681
+ var nextPalace = (0, exports.getPalace)($, (0, utils_1.fixIndex)(palace.index + 1));
17682
+ if (!previousPalace || !nextPalace) {
17683
+ throw new Error("invalid palace index or name.");
17684
+ }
17685
+ return new FunctionalFlankingPalaces_1.FunctionalFlankingPalaces({ previous: previousPalace, next: nextPalace });
17686
+ };
17687
+ exports.getFlankingPalaces = getFlankingPalaces;
17564
17688
  var getPalace = function($, indexOrName) {
17565
17689
  var palace;
17566
17690
  if (typeof indexOrName === "number") {
@@ -17624,6 +17748,18 @@ var require_analyzer = __commonJS({
17624
17748
  return _excludeAll(allStarsInPalace, stars);
17625
17749
  };
17626
17750
  exports.notSurroundedByStars = notSurroundedByStars;
17751
+ var isFlankedByStars = function($, stars) {
17752
+ return _includeAll(_getAllStarsInFlankingPalaces($), stars);
17753
+ };
17754
+ exports.isFlankedByStars = isFlankedByStars;
17755
+ var isFlankedByOneOfStars = function($, stars) {
17756
+ return _includeOneOf(_getAllStarsInFlankingPalaces($), stars);
17757
+ };
17758
+ exports.isFlankedByOneOfStars = isFlankedByOneOfStars;
17759
+ var notFlankedByStars = function($, stars) {
17760
+ return _excludeAll(_getAllStarsInFlankingPalaces($), stars);
17761
+ };
17762
+ exports.notFlankedByStars = notFlankedByStars;
17627
17763
  var mutagensToStars = function(heavenlyStem, mutagens) {
17628
17764
  var muts = Array.isArray(mutagens) ? mutagens : [mutagens];
17629
17765
  var stars = [];
@@ -17649,6 +17785,7 @@ var require_FunctionalHoroscope = __commonJS({
17649
17785
  var i18n_1 = require_i18n();
17650
17786
  var utils_1 = require_utils2();
17651
17787
  var data_1 = require_data();
17788
+ var toJSON_1 = require_toJSON();
17652
17789
  var _getHoroscopePalaceIndex = function($, scope, palaceName) {
17653
17790
  var palaceIndex = -1;
17654
17791
  if (scope === "origin") {
@@ -17669,6 +17806,9 @@ var require_FunctionalHoroscope = __commonJS({
17669
17806
  /* @__PURE__ */ function() {
17670
17807
  function FunctionalHoroscope2(data, astrolabe) {
17671
17808
  var _this = this;
17809
+ this.toJSON = function() {
17810
+ return (0, toJSON_1.serialize)(_this);
17811
+ };
17672
17812
  this.agePalace = function() {
17673
17813
  return _this.astrolabe.palace(_this.age.index);
17674
17814
  };
@@ -17785,6 +17925,7 @@ var require_FunctionalAstrolabe = __commonJS({
17785
17925
  Object.defineProperty(exports, "__esModule", { value: true });
17786
17926
  var dayjs_1 = __importDefault(require_dayjs_min());
17787
17927
  var lunar_lite_1 = require_lib();
17928
+ var lunar_typescript_1 = require_dist();
17788
17929
  var data_1 = require_data();
17789
17930
  var i18n_1 = require_i18n();
17790
17931
  var star_1 = require_star7();
@@ -17793,6 +17934,7 @@ var require_FunctionalAstrolabe = __commonJS({
17793
17934
  var palace_1 = require_palace7();
17794
17935
  var FunctionalHoroscope_1 = __importDefault(require_FunctionalHoroscope());
17795
17936
  var astro_1 = require_astro();
17937
+ var toJSON_1 = require_toJSON();
17796
17938
  var _getHoroscopeBySolarDate = function($, targetDate, timeIndex) {
17797
17939
  if (targetDate === void 0) {
17798
17940
  targetDate = /* @__PURE__ */ new Date();
@@ -17925,6 +18067,9 @@ var require_FunctionalAstrolabe = __commonJS({
17925
18067
  function FunctionalAstrolabe2(data) {
17926
18068
  var _this = this;
17927
18069
  this.plugins = [];
18070
+ this.toJSON = function() {
18071
+ return (0, toJSON_1.serialize)(_this);
18072
+ };
17928
18073
  this.star = function(starName) {
17929
18074
  var targetStar;
17930
18075
  _this.palaces.some(function(p) {
@@ -17947,12 +18092,108 @@ var require_FunctionalAstrolabe = __commonJS({
17947
18092
  }
17948
18093
  return _getHoroscopeBySolarDate(_this, targetDate, timeIndexOfTarget);
17949
18094
  };
18095
+ this.decadalList = function() {
18096
+ var birthYear = _this.rawDates.lunarDate.lunarYear;
18097
+ return __spreadArray([], _this.palaces, true).sort(function(previous, next) {
18098
+ return previous.decadal.range[0] - next.decadal.range[0];
18099
+ }).map(function(_a) {
18100
+ var index = _a.index, palaceName = _a.name, decadal = _a.decadal;
18101
+ return {
18102
+ index,
18103
+ name: (0, i18n_1.t)("decadal"),
18104
+ palaceName,
18105
+ ageRange: __spreadArray([], decadal.range, true),
18106
+ yearRange: [birthYear + decadal.range[0] - 1, birthYear + decadal.range[1] - 1],
18107
+ heavenlyStem: decadal.heavenlyStem,
18108
+ earthlyBranch: decadal.earthlyBranch,
18109
+ palaceNames: (0, palace_1.getPalaceNames)(index),
18110
+ mutagen: (0, utils_1.getMutagensByHeavenlyStem)(decadal.heavenlyStem),
18111
+ stars: (0, star_1.getHoroscopeStar)(decadal.heavenlyStem, decadal.earthlyBranch, "decadal")
18112
+ };
18113
+ });
18114
+ };
18115
+ this.yearlyList = function(indexOrName) {
18116
+ var decadalPalaces = __spreadArray([], _this.palaces, true).sort(function(previous, next) {
18117
+ return previous.decadal.range[0] - next.decadal.range[0];
18118
+ });
18119
+ var palace = typeof indexOrName === "number" ? decadalPalaces[indexOrName] : _this.palace(indexOrName);
18120
+ if (!palace) {
18121
+ throw new Error("invalid decadal index or palace name.");
18122
+ }
18123
+ var birthYear = _this.rawDates.lunarDate.lunarYear;
18124
+ var _a = palace.decadal.range, startAge = _a[0], endAge = _a[1];
18125
+ var timeIndex = data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)(_this.rawDates.chineseDate.hourly[1], "Earthly"));
18126
+ return Array.from({ length: endAge - startAge + 1 }, function(_, index) {
18127
+ var age = startAge + index;
18128
+ var year = birthYear + age - 1;
18129
+ var targetDate = (0, lunar_lite_1.lunar2solar)("".concat(year, "-6-1")).toString();
18130
+ var yearly = _this.horoscope(targetDate, timeIndex).yearly;
18131
+ return {
18132
+ index: yearly.index,
18133
+ name: yearly.name,
18134
+ age,
18135
+ year,
18136
+ heavenlyStem: yearly.heavenlyStem,
18137
+ earthlyBranch: yearly.earthlyBranch,
18138
+ palaceNames: yearly.palaceNames,
18139
+ mutagen: yearly.mutagen,
18140
+ stars: yearly.stars
18141
+ };
18142
+ });
18143
+ };
18144
+ this.monthlyList = function(year, fixLeap) {
18145
+ if (fixLeap === void 0) {
18146
+ fixLeap = true;
18147
+ }
18148
+ if (!Number.isInteger(year)) {
18149
+ throw new Error("invalid year.");
18150
+ }
18151
+ var age = year - _this.rawDates.lunarDate.lunarYear + 1;
18152
+ var timeIndex = data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)(_this.rawDates.chineseDate.hourly[1], "Earthly"));
18153
+ var periods = lunar_typescript_1.LunarYear.fromYear(year).getMonthsInYear().flatMap(function(lunarMonth) {
18154
+ var rawMonth = lunarMonth.getMonth();
18155
+ var month = Math.abs(rawMonth);
18156
+ var isLeapMonth = rawMonth < 0;
18157
+ var lastDay = lunarMonth.getDayCount();
18158
+ if (isLeapMonth && fixLeap) {
18159
+ return [
18160
+ { month, isLeapMonth, part: "first", dayRange: [1, 15] },
18161
+ { month, isLeapMonth, part: "second", dayRange: [16, lastDay] }
18162
+ ];
18163
+ }
18164
+ return [{ month, isLeapMonth, part: "normal", dayRange: [1, lastDay] }];
18165
+ });
18166
+ return periods.map(function(_a) {
18167
+ var month = _a.month, isLeapMonth = _a.isLeapMonth, part = _a.part, dayRange = _a.dayRange;
18168
+ var targetDay = part === "second" ? 16 : 1;
18169
+ var targetDate = (0, lunar_lite_1.lunar2solar)("".concat(year, "-").concat(month, "-").concat(targetDay), isLeapMonth).toString();
18170
+ var monthly = _this.horoscope(targetDate, timeIndex).monthly;
18171
+ return {
18172
+ index: monthly.index,
18173
+ name: monthly.name,
18174
+ age,
18175
+ year,
18176
+ month,
18177
+ isLeapMonth,
18178
+ part,
18179
+ dayRange,
18180
+ heavenlyStem: monthly.heavenlyStem,
18181
+ earthlyBranch: monthly.earthlyBranch,
18182
+ palaceNames: monthly.palaceNames,
18183
+ mutagen: monthly.mutagen,
18184
+ stars: monthly.stars
18185
+ };
18186
+ });
18187
+ };
17950
18188
  this.palace = function(indexOrName) {
17951
18189
  return (0, analyzer_1.getPalace)(_this, indexOrName);
17952
18190
  };
17953
18191
  this.surroundedPalaces = function(indexOrName) {
17954
18192
  return (0, analyzer_1.getSurroundedPalaces)(_this, indexOrName);
17955
18193
  };
18194
+ this.flankingPalaces = function(indexOrName) {
18195
+ return (0, analyzer_1.getFlankingPalaces)(_this, indexOrName);
18196
+ };
17956
18197
  this.isSurrounded = function(indexOrName, stars) {
17957
18198
  return _this.surroundedPalaces(indexOrName).have(stars);
17958
18199
  };
@@ -17997,11 +18238,15 @@ var require_FunctionalPalace = __commonJS({
17997
18238
  "use strict";
17998
18239
  Object.defineProperty(exports, "__esModule", { value: true });
17999
18240
  var analyzer_1 = require_analyzer();
18241
+ var toJSON_1 = require_toJSON();
18000
18242
  var FunctionalPalace = (
18001
18243
  /** @class */
18002
18244
  /* @__PURE__ */ function() {
18003
18245
  function FunctionalPalace2(data) {
18004
18246
  var _this = this;
18247
+ this.toJSON = function() {
18248
+ return (0, toJSON_1.serialize)(_this);
18249
+ };
18005
18250
  this.has = function(stars) {
18006
18251
  return (0, analyzer_1.hasStars)(_this, stars);
18007
18252
  };
@@ -18142,11 +18387,15 @@ var require_FunctionalStar = __commonJS({
18142
18387
  "use strict";
18143
18388
  Object.defineProperty(exports, "__esModule", { value: true });
18144
18389
  var i18n_1 = require_i18n();
18390
+ var toJSON_1 = require_toJSON();
18145
18391
  var FunctionalStar = (
18146
18392
  /** @class */
18147
18393
  /* @__PURE__ */ function() {
18148
18394
  function FunctionalStar2(data) {
18149
18395
  var _this = this;
18396
+ this.toJSON = function() {
18397
+ return (0, toJSON_1.serialize)(_this);
18398
+ };
18150
18399
  this.oppositePalace = function() {
18151
18400
  if (!_this._palace || !_this._astrolabe) {
18152
18401
  return void 0;