ai-client-sdk 4.1.1 → 4.1.2

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.
@@ -42962,16 +42962,16 @@ function eP() {
42962
42962
  k = $N();
42963
42963
  }, t;
42964
42964
  }
42965
- var tP = eP(), nP = async (e) => {
42966
- let t = await tC().use(fE).use(Ek).use(NA, { allowDangerousHtml: !0 }).use(LM, { allowDangerousHtml: !0 }).process(e), n = String(t);
42965
+ var tP = eP(), nP = tC().use(fE).use(Ek).use(NA, { allowDangerousHtml: !0 }).use(LM, { allowDangerousHtml: !0 }), rP = async (e) => {
42966
+ let t = await nP.process(e), n = String(t);
42967
42967
  return tP.sanitize(n);
42968
- }, rP = (e) => e.role === "assistant", iP = (0, U.forwardRef)(({ message: e }, t) => {
42968
+ }, iP = (e) => e.role === "assistant", aP = (0, U.forwardRef)(({ message: e }, t) => {
42969
42969
  let [n, r] = (0, U.useState)(!1), [i, a] = (0, U.useState)(""), [o, s] = (0, U.useState)(""), [c, l] = (0, U.useState)(!0), u = (0, U.useRef)(null);
42970
42970
  (0, U.useEffect)(() => {
42971
- e.content ? nP(e.content).then(s) : s("");
42972
- let t = rP(e) ? e.reasoning_content : void 0;
42973
- t ? nP(t).then(a) : a("");
42974
- }, [e.content, rP(e) ? e.reasoning_content : void 0]), (0, U.useEffect)(() => () => {
42971
+ e.content ? rP(e.content).then(s) : s("");
42972
+ let t = iP(e) ? e.reasoning_content : void 0;
42973
+ t ? rP(t).then(a) : a("");
42974
+ }, [e.content, iP(e) ? e.reasoning_content : void 0]), (0, U.useEffect)(() => () => {
42975
42975
  u.current && clearTimeout(u.current);
42976
42976
  }, []);
42977
42977
  let d = () => {
@@ -42991,7 +42991,7 @@ var tP = eP(), nP = async (e) => {
42991
42991
  ref: t,
42992
42992
  className: `message ${e.role} ${p ? "loading" : ""}`,
42993
42993
  children: [
42994
- rP(e) && i && /* @__PURE__ */ (0, Q.jsxs)("div", {
42994
+ iP(e) && i && /* @__PURE__ */ (0, Q.jsxs)("div", {
42995
42995
  className: `reasoning-container ${c ? "collapsed" : ""}`,
42996
42996
  children: [/* @__PURE__ */ (0, Q.jsxs)("button", {
42997
42997
  className: "reasoning-header plain",
@@ -43026,7 +43026,7 @@ var tP = eP(), nP = async (e) => {
43026
43026
  })
43027
43027
  ]
43028
43028
  });
43029
- }), aP = (0, U.memo)(iP), oP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43029
+ }), oP = (0, U.memo)(aP), sP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43030
43030
  xmlns: "http://www.w3.org/2000/svg",
43031
43031
  width: "18",
43032
43032
  height: "18",
@@ -43034,28 +43034,28 @@ var tP = eP(), nP = async (e) => {
43034
43034
  fill: "currentColor",
43035
43035
  ...e,
43036
43036
  children: /* @__PURE__ */ (0, Q.jsx)("path", { d: "M597.333 128v85.333H170.667v571.094l75.221-59.094h607.445V426.667h85.334V768A42.667 42.667 0 0 1 896 810.667H275.413L85.333 960V170.667A42.667 42.667 0 0 1 128 128h469.333zm213.334 0V0H896v128h128v85.333H896v128h-85.333v-128h-128V128h128z" })
43037
- })), sP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43037
+ })), cP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43038
43038
  xmlns: "http://www.w3.org/2000/svg",
43039
43039
  width: "14",
43040
43040
  height: "14",
43041
43041
  fill: "currentColor",
43042
43042
  ...e,
43043
43043
  children: /* @__PURE__ */ (0, Q.jsx)("path", { d: "M7 8.414L3.293 12.121a1 1 0 0 1-1.414-1.414L5.586 7 1.879 3.293a1 1 0 0 1 1.414-1.414L7 5.586l3.707-3.707a1 1 0 1 1 1.414 1.414L8.414 7l3.707 3.707a1 1 0 0 1-1.414 1.414L7 8.414z" })
43044
- })), cP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43044
+ })), lP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43045
43045
  xmlns: "http://www.w3.org/2000/svg",
43046
43046
  width: "20",
43047
43047
  height: "20",
43048
43048
  fill: "currentColor",
43049
43049
  ...e,
43050
43050
  children: /* @__PURE__ */ (0, Q.jsx)("path", { d: "M4.5 5.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25v-8.5Z" })
43051
- })), lP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43051
+ })), uP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43052
43052
  xmlns: "http://www.w3.org/2000/svg",
43053
43053
  width: "20",
43054
43054
  height: "20",
43055
43055
  fill: "currentColor",
43056
43056
  ...e,
43057
43057
  children: /* @__PURE__ */ (0, Q.jsx)("path", { d: "M9 16V6.414L5.707 9.707a1 1 0 1 1-1.414-1.414l5-5 .076-.068a1 1 0 0 1 1.338.068l5 5 .068.076a1 1 0 0 1-1.406 1.406l-.076-.068L11 6.414V16a1 1 0 1 1-2 0Z" })
43058
- })), uP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43058
+ })), dP = (0, U.memo)((e) => /* @__PURE__ */ (0, Q.jsx)("svg", {
43059
43059
  viewBox: "0 0 1024 1024",
43060
43060
  xmlns: "http://www.w3.org/2000/svg",
43061
43061
  width: "18",
@@ -43063,14 +43063,20 @@ var tP = eP(), nP = async (e) => {
43063
43063
  fill: "currentColor",
43064
43064
  ...e,
43065
43065
  children: /* @__PURE__ */ (0, Q.jsx)("path", { d: "M512 938.667c235.648 0 426.667-191.019 426.667-426.667S747.648 85.333 512 85.333 85.333 276.352 85.333 512 276.352 938.667 512 938.667z m0 85.333C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m42.667-486.87V298.54C554.667 275.328 535.552 256 512 256c-23.723 0-42.667 19.03-42.667 42.539v256.256a41.984 41.984 0 0 0 12.203 29.866L602.795 705.92a42.368 42.368 0 0 0 60.032-0.299 42.667 42.667 0 0 0 0.298-60.032L554.667 537.131z" })
43066
- })), dP = "*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}button{cursor:pointer;border:0;outline:0;justify-content:center;align-items:center;display:flex}button.icon{padding:4px}button.text{height:28px;padding:0 12px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:#0000}button.error{color:#fff;background-color:#ff4d4f}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}.loading-dots{margin-left:3px;font-weight:700}.loading-dots:after{content:\"\";animation:1.5s infinite typing}@keyframes typing{0%{content:\".\"}33%{content:\"..\"}66%{content:\"...\"}to{content:\".\"}}.app-container{background:#fff;height:100%}.bottom-container{background:#fff;padding:12px;position:fixed;bottom:0;left:0;right:0}.action-bar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.user-input-container{border:1px solid #72768b29;border-radius:16px;flex-direction:column;padding:12px;display:flex;box-shadow:0 10px 30px #0003}.user-input{resize:none;border:0;width:100%;font-size:14px;line-height:1.5}.button-wrap{justify-content:flex-end;align-items:center;gap:12px;display:flex}.messages-container{height:100%;padding:12px 12px calc(100vh - 12px);overflow:hidden auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{color:#000;border-radius:8px;padding:0 14px;overflow-x:auto}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{margin-top:4px;display:flex}.button-container button{align-items:center;height:26px;display:flex}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.send-icon,.stop-icon{color:#fff;background-color:#000;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{color:#6b7280;background-color:#f9fafb;border-radius:8px;margin-bottom:8px;font-size:12px;overflow-x:auto}.message.assistant .reasoning-container .reasoning-header{padding-top:8px;padding-bottom:8px;justify-content:flex-start;gap:4px;width:100%;padding-inline:14px;display:flex}.message.assistant .reasoning-container .reasoning-header svg{transition:transform .3s;transform:rotate(90deg)}.message.assistant .reasoning-container .reasoning-content{padding:0 14px}.message.assistant .reasoning-container.collapsed .reasoning-header svg{transition:transform .3s;transform:rotate(0)}.message.assistant .reasoning-container.collapsed .reasoning-content{height:0;overflow:hidden}.context-container{background:#f3f4f6;border-radius:8px;align-items:center;gap:8px;margin-bottom:12px;padding:8px 12px;display:flex}.context-text{color:#374151;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:13px;overflow:hidden}.context-delete{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:4px;transition:background-color .2s;display:flex}.context-delete:hover{color:#374151;background-color:#e5e7eb}.history-list{scrollbar-width:none;-ms-overflow-style:none;max-height:400px;overflow-y:auto}.history-list::-webkit-scrollbar{display:none}.history-items{margin:0;padding:0;list-style:none}.history-item{cursor:pointer;border-radius:8px;margin-top:8px;padding:12px 16px;transition:background-color .2s}.history-item:hover{background-color:#0000000d}.history-item.selected{background-color:#3b82f61a;border:1px solid #3b82f64d}.history-content{color:#333;word-break:break-all;margin-bottom:4px;font-size:14px}.history-time{color:#999;font-size:12px}.history-empty{text-align:center;color:#999;padding:40px 0}", fP = () => crypto.randomUUID(), pP = (0, U.forwardRef)(({ onReady: e }, t) => {
43067
- let [n, r] = (0, U.useState)([]), [i, a] = (0, U.useState)(""), [o, s] = (0, U.useState)(!1), [c, l] = (0, U.useState)(""), [u, d] = vS.useNotification(), [p, m] = (0, U.useState)([]), [h, g] = (0, U.useState)(!1), [_, v] = (0, U.useState)(""), y = (0, U.useRef)(null), b = (0, U.useRef)(null), x = (0, U.useRef)(!1), S = (0, U.useCallback)((e) => {
43066
+ })), fP = "*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}button{cursor:pointer;border:0;outline:0;justify-content:center;align-items:center;display:flex}button.icon{padding:4px}button.text{height:28px;padding:0 12px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:#0000}button.error{color:#fff;background-color:#ff4d4f}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}.loading-dots{margin-left:3px;font-weight:700}.loading-dots:after{content:\"\";animation:1.5s infinite typing}@keyframes typing{0%{content:\".\"}33%{content:\"..\"}66%{content:\"...\"}to{content:\".\"}}.app-container{background:#fff;height:100%}.bottom-container{background:#fff;padding:12px;position:fixed;bottom:0;left:0;right:0}.action-bar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.user-input-container{border:1px solid #72768b29;border-radius:16px;flex-direction:column;padding:12px;display:flex;box-shadow:0 10px 30px #0003}.user-input{resize:none;border:0;width:100%;font-size:14px;line-height:1.5}.button-wrap{justify-content:flex-end;align-items:center;gap:12px;display:flex}.messages-container{height:100%;padding:12px 12px calc(100vh - 12px);overflow:hidden auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{color:#000;border-radius:8px;padding:0 14px;overflow-x:auto}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{margin-top:4px;display:flex}.button-container button{align-items:center;height:26px;display:flex}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.send-icon,.stop-icon{color:#fff;background-color:#000;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{color:#6b7280;background-color:#f9fafb;border-radius:8px;margin-bottom:8px;font-size:12px;overflow-x:auto}.message.assistant .reasoning-container .reasoning-header{padding-top:8px;padding-bottom:8px;justify-content:flex-start;gap:4px;width:100%;padding-inline:14px;display:flex}.message.assistant .reasoning-container .reasoning-header svg{transition:transform .3s;transform:rotate(90deg)}.message.assistant .reasoning-container .reasoning-content{padding:0 14px}.message.assistant .reasoning-container.collapsed .reasoning-header svg{transition:transform .3s;transform:rotate(0)}.message.assistant .reasoning-container.collapsed .reasoning-content{height:0;overflow:hidden}.context-container{background:#f3f4f6;border-radius:8px;align-items:center;gap:8px;margin-bottom:12px;padding:8px 12px;display:flex}.context-text{color:#374151;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:13px;overflow:hidden}.context-delete{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:4px;transition:background-color .2s;display:flex}.context-delete:hover{color:#374151;background-color:#e5e7eb}.history-list{scrollbar-width:none;-ms-overflow-style:none;max-height:400px;overflow-y:auto}.history-list::-webkit-scrollbar{display:none}.history-items{margin:0;padding:0;list-style:none}.history-item{cursor:pointer;border-radius:8px;margin-top:8px;padding:12px 16px;transition:background-color .2s}.history-item:hover{background-color:#0000000d}.history-item.selected{background-color:#3b82f61a;border:1px solid #3b82f64d}.history-content{color:#333;word-break:break-all;margin-bottom:4px;font-size:14px}.history-time{color:#999;font-size:12px}.history-empty{text-align:center;color:#999;padding:40px 0}", pP = () => crypto.randomUUID(), mP = (0, U.forwardRef)(({ onReady: e }, t) => {
43067
+ let [n, r] = (0, U.useState)([]), [i, a] = (0, U.useState)(""), [o, s] = (0, U.useState)(!1), [c, l] = (0, U.useState)(""), [u, d] = vS.useNotification(), [p, m] = (0, U.useState)([]), [h, g] = (0, U.useState)(!1), [_, v] = (0, U.useState)(""), y = (0, U.useRef)(null), b = (0, U.useRef)(null), x = (0, U.useRef)(!1), S = (0, U.useRef)([]), C = (0, U.useCallback)((e) => {
43068
43068
  localStorage.setItem("chatHistory", JSON.stringify(e));
43069
- }, []), C = (0, U.useMemo)(() => dr(S, 500, { trailing: !0 }), [S]);
43069
+ }, []);
43070
+ (0, U.useEffect)(() => {
43071
+ S.current = p;
43072
+ }, [p]);
43073
+ let w = (0, U.useMemo)(() => dr(() => {
43074
+ C(S.current);
43075
+ }, 500), [C]);
43070
43076
  (0, U.useEffect)(() => {
43071
43077
  if (x.current) return;
43072
43078
  x.current = !0;
43073
- let t = fP();
43079
+ let t = pP();
43074
43080
  v(t), e();
43075
43081
  let n = localStorage.getItem("chatHistory"), r = [];
43076
43082
  if (n) try {
@@ -43090,32 +43096,28 @@ var tP = eP(), nP = async (e) => {
43090
43096
  messages: n
43091
43097
  } : e));
43092
43098
  }, [n, _]), (0, U.useEffect)(() => {
43093
- if (p.length !== 0) return C(p), () => {
43094
- C.cancel(), S(p);
43095
- };
43096
- }, [
43097
- p,
43098
- C,
43099
- S
43100
- ]);
43101
- let w = (0, U.useCallback)((e) => {
43102
- e.id ||= fP(), r((t) => [...t, e]);
43103
- }, []), T = (0, U.useCallback)((e) => {
43099
+ w();
43100
+ }, [p, w]), (0, U.useEffect)(() => () => {
43101
+ w.cancel(), C(S.current);
43102
+ }, [w, C]);
43103
+ let T = (0, U.useCallback)((e) => {
43104
+ e.id ||= pP(), r((t) => [...t, e]);
43105
+ }, []), E = (0, U.useCallback)((e) => {
43104
43106
  if (!e.length) return;
43105
43107
  let t = e.map((e) => ({
43106
43108
  ...e,
43107
- id: e.id || fP()
43109
+ id: e.id || pP()
43108
43110
  }));
43109
43111
  r((e) => [...e, ...t]);
43110
- }, []), E = (0, U.useCallback)(() => {
43112
+ }, []), D = (0, U.useCallback)(() => {
43111
43113
  let e = {
43112
- id: fP(),
43114
+ id: pP(),
43113
43115
  role: "assistant",
43114
43116
  reasoning_content: "",
43115
43117
  content: ""
43116
43118
  };
43117
43119
  r((t) => [...t, e]);
43118
- }, []), D = (0, U.useCallback)((e, t) => {
43120
+ }, []), O = (0, U.useCallback)((e, t) => {
43119
43121
  (0, U.startTransition)(() => {
43120
43122
  r((n) => {
43121
43123
  let r = [...n];
@@ -43129,30 +43131,30 @@ var tP = eP(), nP = async (e) => {
43129
43131
  return r;
43130
43132
  });
43131
43133
  });
43132
- }, []), O = (0, U.useCallback)((e) => {
43134
+ }, []), k = (0, U.useCallback)((e) => {
43133
43135
  l(e);
43134
- }, []), k = (0, U.useCallback)(() => {
43136
+ }, []), A = (0, U.useCallback)(() => {
43135
43137
  l("");
43136
43138
  }, []);
43137
43139
  (0, U.useImperativeHandle)(t, () => ({
43138
- pushMessage: w,
43139
- pushMessages: T,
43140
- pushLoadingMessage: E,
43141
- updateLoadingMessage: D,
43142
- updateContext: O
43140
+ pushMessage: T,
43141
+ pushMessages: E,
43142
+ pushLoadingMessage: D,
43143
+ updateLoadingMessage: O,
43144
+ updateContext: k
43143
43145
  }), [
43144
- w,
43145
43146
  T,
43146
43147
  E,
43147
43148
  D,
43148
- O
43149
+ O,
43150
+ k
43149
43151
  ]);
43150
- let A = (0, U.useCallback)(async () => {
43152
+ let j = (0, U.useCallback)(async () => {
43151
43153
  let e = i.trim();
43152
43154
  if (e) try {
43153
43155
  s(!0), a("");
43154
43156
  let t = c.trim() ? `${c}\n\n${e}` : e, n = {
43155
- id: fP(),
43157
+ id: pP(),
43156
43158
  role: "user",
43157
43159
  content: t
43158
43160
  };
@@ -43161,15 +43163,15 @@ var tP = eP(), nP = async (e) => {
43161
43163
  } finally {
43162
43164
  s(!1), y.current?.focus();
43163
43165
  }
43164
- }, [i, c]), j = (0, U.useCallback)(async () => {
43166
+ }, [i, c]), M = (0, U.useCallback)(async () => {
43165
43167
  await f.emit("stop"), s(!1), y.current?.focus(), u.info({
43166
43168
  title: "已停止",
43167
43169
  description: "对话已停止",
43168
43170
  placement: "top",
43169
43171
  closable: !1
43170
43172
  });
43171
- }, [u]), M = (0, U.useCallback)(async () => {
43172
- let e = fP(), t = {
43173
+ }, [u]), N = (0, U.useCallback)(async () => {
43174
+ let e = pP(), t = {
43173
43175
  id: e,
43174
43176
  createdAt: Date.now(),
43175
43177
  messages: []
@@ -43180,27 +43182,27 @@ var tP = eP(), nP = async (e) => {
43180
43182
  placement: "top",
43181
43183
  closable: !1
43182
43184
  });
43183
- }, [u]), N = (0, U.useCallback)((e) => {
43184
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), A());
43185
- }, [A]), ee = (0, U.useCallback)(() => {
43185
+ }, [u]), ee = (0, U.useCallback)((e) => {
43186
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), j());
43187
+ }, [j]), te = (0, U.useCallback)(() => {
43186
43188
  g(!0);
43187
- }, []), te = (0, U.useCallback)(() => {
43189
+ }, []), P = (0, U.useCallback)(() => {
43188
43190
  g(!1);
43189
- }, []), P = (0, U.useCallback)((e) => {
43190
- r(e.messages), v(e.id), g(!1);
43191
43191
  }, []), F = (0, U.useCallback)((e) => {
43192
+ r(e.messages), v(e.id), g(!1);
43193
+ }, []), ne = (0, U.useCallback)((e) => {
43192
43194
  let t = new Date(e);
43193
43195
  return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")} ${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
43194
- }, []), ne = (0, U.useMemo)(() => n.map((e) => /* @__PURE__ */ (0, Q.jsx)(aP, { message: e }, e.id)), [n]);
43196
+ }, []), I = (0, U.useMemo)(() => n.map((e) => /* @__PURE__ */ (0, Q.jsx)(oP, { message: e }, e.id)), [n]);
43195
43197
  return /* @__PURE__ */ (0, Q.jsxs)("div", {
43196
43198
  className: "app-container",
43197
43199
  children: [
43198
- /* @__PURE__ */ (0, Q.jsx)("style", { children: dP }),
43200
+ /* @__PURE__ */ (0, Q.jsx)("style", { children: fP }),
43199
43201
  d,
43200
43202
  /* @__PURE__ */ (0, Q.jsx)("div", {
43201
43203
  className: "messages-container",
43202
43204
  ref: b,
43203
- children: ne
43205
+ children: I
43204
43206
  }),
43205
43207
  /* @__PURE__ */ (0, Q.jsxs)("div", {
43206
43208
  className: "bottom-container",
@@ -43214,8 +43216,8 @@ var tP = eP(), nP = async (e) => {
43214
43216
  className: "icon square plain",
43215
43217
  type: "button",
43216
43218
  "aria-label": "新对话",
43217
- onClick: M,
43218
- children: /* @__PURE__ */ (0, Q.jsx)(oP, {})
43219
+ onClick: N,
43220
+ children: /* @__PURE__ */ (0, Q.jsx)(sP, {})
43219
43221
  })
43220
43222
  }), /* @__PURE__ */ (0, Q.jsx)(eS, {
43221
43223
  title: "历史对话",
@@ -43224,8 +43226,8 @@ var tP = eP(), nP = async (e) => {
43224
43226
  className: "icon square plain",
43225
43227
  type: "button",
43226
43228
  "aria-label": "历史对话",
43227
- onClick: ee,
43228
- children: /* @__PURE__ */ (0, Q.jsx)(uP, {})
43229
+ onClick: te,
43230
+ children: /* @__PURE__ */ (0, Q.jsx)(dP, {})
43229
43231
  })
43230
43232
  })]
43231
43233
  }),
@@ -43241,8 +43243,8 @@ var tP = eP(), nP = async (e) => {
43241
43243
  className: "context-delete",
43242
43244
  type: "button",
43243
43245
  "aria-label": "删除上下文",
43244
- onClick: k,
43245
- children: /* @__PURE__ */ (0, Q.jsx)(sP, {})
43246
+ onClick: A,
43247
+ children: /* @__PURE__ */ (0, Q.jsx)(cP, {})
43246
43248
  })
43247
43249
  })]
43248
43250
  }),
@@ -43253,7 +43255,7 @@ var tP = eP(), nP = async (e) => {
43253
43255
  placeholder: "发消息...",
43254
43256
  value: i,
43255
43257
  onChange: (e) => a(e.target.value),
43256
- onKeyDown: N,
43258
+ onKeyDown: ee,
43257
43259
  ref: y
43258
43260
  }), /* @__PURE__ */ (0, Q.jsx)("div", {
43259
43261
  className: "button-wrap",
@@ -43264,10 +43266,10 @@ var tP = eP(), nP = async (e) => {
43264
43266
  className: "icon square plain",
43265
43267
  type: "button",
43266
43268
  "aria-label": "停止",
43267
- onClick: j,
43269
+ onClick: M,
43268
43270
  children: /* @__PURE__ */ (0, Q.jsx)("div", {
43269
43271
  className: "stop-icon",
43270
- children: /* @__PURE__ */ (0, Q.jsx)(cP, {})
43272
+ children: /* @__PURE__ */ (0, Q.jsx)(lP, {})
43271
43273
  })
43272
43274
  })
43273
43275
  }) : /* @__PURE__ */ (0, Q.jsx)(eS, {
@@ -43277,10 +43279,10 @@ var tP = eP(), nP = async (e) => {
43277
43279
  className: "icon square plain",
43278
43280
  type: "button",
43279
43281
  "aria-label": "发送",
43280
- onClick: A,
43282
+ onClick: j,
43281
43283
  children: /* @__PURE__ */ (0, Q.jsx)("div", {
43282
43284
  className: "send-icon",
43283
- children: /* @__PURE__ */ (0, Q.jsx)(lP, {})
43285
+ children: /* @__PURE__ */ (0, Q.jsx)(uP, {})
43284
43286
  })
43285
43287
  })
43286
43288
  })
@@ -43291,7 +43293,7 @@ var tP = eP(), nP = async (e) => {
43291
43293
  /* @__PURE__ */ (0, Q.jsx)(iS, {
43292
43294
  title: "历史对话",
43293
43295
  open: h,
43294
- onCancel: te,
43296
+ onCancel: P,
43295
43297
  footer: null,
43296
43298
  children: /* @__PURE__ */ (0, Q.jsx)("div", {
43297
43299
  className: "history-list",
@@ -43302,13 +43304,13 @@ var tP = eP(), nP = async (e) => {
43302
43304
  className: "history-items",
43303
43305
  children: p.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {
43304
43306
  className: `history-item ${_ === e.id ? "selected" : ""}`,
43305
- onClick: () => P(e),
43307
+ onClick: () => F(e),
43306
43308
  children: [/* @__PURE__ */ (0, Q.jsx)("div", {
43307
43309
  className: "history-content",
43308
43310
  children: e.messages[0]?.content || ""
43309
43311
  }), /* @__PURE__ */ (0, Q.jsx)("div", {
43310
43312
  className: "history-time",
43311
- children: F(e.createdAt)
43313
+ children: ne(e.createdAt)
43312
43314
  })]
43313
43315
  }, e.id))
43314
43316
  })
@@ -43316,48 +43318,48 @@ var tP = eP(), nP = async (e) => {
43316
43318
  })
43317
43319
  ]
43318
43320
  });
43319
- }), mP = ({ domNode: e, onReady: t }) => {
43321
+ }), hP = ({ domNode: e, onReady: t }) => {
43320
43322
  let n = xa(), r = (0, U.createRef)();
43321
43323
  return br.createRoot(e).render(/* @__PURE__ */ (0, Q.jsx)(U.StrictMode, { children: /* @__PURE__ */ (0, Q.jsx)(Ca, {
43322
43324
  cache: n,
43323
43325
  container: e,
43324
43326
  children: /* @__PURE__ */ (0, Q.jsx)(am, {
43325
43327
  getPopupContainer: () => e,
43326
- children: /* @__PURE__ */ (0, Q.jsx)(pP, {
43328
+ children: /* @__PURE__ */ (0, Q.jsx)(mP, {
43327
43329
  ref: r,
43328
43330
  onReady: t
43329
43331
  })
43330
43332
  })
43331
43333
  }) })), r;
43332
- }, hP;
43334
+ }, gP;
43333
43335
  (function(e) {
43334
43336
  e[e.AM = 0] = "AM", e[e.PM = 1] = "PM";
43335
- })(hP ||= {});
43336
- var gP;
43337
- (function(e) {
43338
- e[e.SUNDAY = 0] = "SUNDAY", e[e.MONDAY = 1] = "MONDAY", e[e.TUESDAY = 2] = "TUESDAY", e[e.WEDNESDAY = 3] = "WEDNESDAY", e[e.THURSDAY = 4] = "THURSDAY", e[e.FRIDAY = 5] = "FRIDAY", e[e.SATURDAY = 6] = "SATURDAY";
43339
43337
  })(gP ||= {});
43340
43338
  var _P;
43341
43339
  (function(e) {
43342
- e[e.JANUARY = 1] = "JANUARY", e[e.FEBRUARY = 2] = "FEBRUARY", e[e.MARCH = 3] = "MARCH", e[e.APRIL = 4] = "APRIL", e[e.MAY = 5] = "MAY", e[e.JUNE = 6] = "JUNE", e[e.JULY = 7] = "JULY", e[e.AUGUST = 8] = "AUGUST", e[e.SEPTEMBER = 9] = "SEPTEMBER", e[e.OCTOBER = 10] = "OCTOBER", e[e.NOVEMBER = 11] = "NOVEMBER", e[e.DECEMBER = 12] = "DECEMBER";
43340
+ e[e.SUNDAY = 0] = "SUNDAY", e[e.MONDAY = 1] = "MONDAY", e[e.TUESDAY = 2] = "TUESDAY", e[e.WEDNESDAY = 3] = "WEDNESDAY", e[e.THURSDAY = 4] = "THURSDAY", e[e.FRIDAY = 5] = "FRIDAY", e[e.SATURDAY = 6] = "SATURDAY";
43343
43341
  })(_P ||= {});
43342
+ var vP;
43343
+ (function(e) {
43344
+ e[e.JANUARY = 1] = "JANUARY", e[e.FEBRUARY = 2] = "FEBRUARY", e[e.MARCH = 3] = "MARCH", e[e.APRIL = 4] = "APRIL", e[e.MAY = 5] = "MAY", e[e.JUNE = 6] = "JUNE", e[e.JULY = 7] = "JULY", e[e.AUGUST = 8] = "AUGUST", e[e.SEPTEMBER = 9] = "SEPTEMBER", e[e.OCTOBER = 10] = "OCTOBER", e[e.NOVEMBER = 11] = "NOVEMBER", e[e.DECEMBER = 12] = "DECEMBER";
43345
+ })(vP ||= {});
43344
43346
  //#endregion
43345
43347
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/utils/dates.js
43346
- function vP(e, t) {
43347
- e.assign("day", t.getDate()), e.assign("month", t.getMonth() + 1), e.assign("year", t.getFullYear());
43348
- }
43349
43348
  function yP(e, t) {
43350
- e.assign("hour", t.getHours()), e.assign("minute", t.getMinutes()), e.assign("second", t.getSeconds()), e.assign("millisecond", t.getMilliseconds()), e.assign("meridiem", t.getHours() < 12 ? hP.AM : hP.PM);
43349
+ e.assign("day", t.getDate()), e.assign("month", t.getMonth() + 1), e.assign("year", t.getFullYear());
43351
43350
  }
43352
43351
  function bP(e, t) {
43353
- e.imply("day", t.getDate()), e.imply("month", t.getMonth() + 1), e.imply("year", t.getFullYear());
43352
+ e.assign("hour", t.getHours()), e.assign("minute", t.getMinutes()), e.assign("second", t.getSeconds()), e.assign("millisecond", t.getMilliseconds()), e.assign("meridiem", t.getHours() < 12 ? gP.AM : gP.PM);
43354
43353
  }
43355
43354
  function xP(e, t) {
43356
- e.imply("hour", t.getHours()), e.imply("minute", t.getMinutes()), e.imply("second", t.getSeconds()), e.imply("millisecond", t.getMilliseconds()), e.imply("meridiem", t.getHours() < 12 ? hP.AM : hP.PM);
43355
+ e.imply("day", t.getDate()), e.imply("month", t.getMonth() + 1), e.imply("year", t.getFullYear());
43356
+ }
43357
+ function SP(e, t) {
43358
+ e.imply("hour", t.getHours()), e.imply("minute", t.getMinutes()), e.imply("second", t.getSeconds()), e.imply("millisecond", t.getMilliseconds()), e.imply("meridiem", t.getHours() < 12 ? gP.AM : gP.PM);
43357
43359
  }
43358
43360
  //#endregion
43359
43361
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/timezone.js
43360
- var SP = {
43362
+ var CP = {
43361
43363
  ACDT: 630,
43362
43364
  ACST: 570,
43363
43365
  ADT: -180,
@@ -43394,8 +43396,8 @@ var SP = {
43394
43396
  CET: {
43395
43397
  timezoneOffsetDuringDst: 120,
43396
43398
  timezoneOffsetNonDst: 60,
43397
- dstStart: (e) => wP(e, _P.MARCH, gP.SUNDAY, 2),
43398
- dstEnd: (e) => wP(e, _P.OCTOBER, gP.SUNDAY, 3)
43399
+ dstStart: (e) => TP(e, vP.MARCH, _P.SUNDAY, 2),
43400
+ dstEnd: (e) => TP(e, vP.OCTOBER, _P.SUNDAY, 3)
43399
43401
  },
43400
43402
  CHADT: 825,
43401
43403
  CHAST: 765,
@@ -43407,8 +43409,8 @@ var SP = {
43407
43409
  CT: {
43408
43410
  timezoneOffsetDuringDst: -300,
43409
43411
  timezoneOffsetNonDst: -360,
43410
- dstStart: (e) => CP(e, _P.MARCH, gP.SUNDAY, 2, 2),
43411
- dstEnd: (e) => CP(e, _P.NOVEMBER, gP.SUNDAY, 1, 2)
43412
+ dstStart: (e) => wP(e, vP.MARCH, _P.SUNDAY, 2, 2),
43413
+ dstEnd: (e) => wP(e, vP.NOVEMBER, _P.SUNDAY, 1, 2)
43412
43414
  },
43413
43415
  CVT: -60,
43414
43416
  CXT: 420,
@@ -43427,8 +43429,8 @@ var SP = {
43427
43429
  ET: {
43428
43430
  timezoneOffsetDuringDst: -240,
43429
43431
  timezoneOffsetNonDst: -300,
43430
- dstStart: (e) => CP(e, _P.MARCH, gP.SUNDAY, 2, 2),
43431
- dstEnd: (e) => CP(e, _P.NOVEMBER, gP.SUNDAY, 1, 2)
43432
+ dstStart: (e) => wP(e, vP.MARCH, _P.SUNDAY, 2, 2),
43433
+ dstEnd: (e) => wP(e, vP.NOVEMBER, _P.SUNDAY, 1, 2)
43432
43434
  },
43433
43435
  FJST: 780,
43434
43436
  FJT: 720,
@@ -43494,8 +43496,8 @@ var SP = {
43494
43496
  MT: {
43495
43497
  timezoneOffsetDuringDst: -360,
43496
43498
  timezoneOffsetNonDst: -420,
43497
- dstStart: (e) => CP(e, _P.MARCH, gP.SUNDAY, 2, 2),
43498
- dstEnd: (e) => CP(e, _P.NOVEMBER, gP.SUNDAY, 1, 2)
43499
+ dstStart: (e) => wP(e, vP.MARCH, _P.SUNDAY, 2, 2),
43500
+ dstEnd: (e) => wP(e, vP.NOVEMBER, _P.SUNDAY, 1, 2)
43499
43501
  },
43500
43502
  MUT: 240,
43501
43503
  MVT: 300,
@@ -43527,8 +43529,8 @@ var SP = {
43527
43529
  PT: {
43528
43530
  timezoneOffsetDuringDst: -420,
43529
43531
  timezoneOffsetNonDst: -480,
43530
- dstStart: (e) => CP(e, _P.MARCH, gP.SUNDAY, 2, 2),
43531
- dstEnd: (e) => CP(e, _P.NOVEMBER, gP.SUNDAY, 1, 2)
43532
+ dstStart: (e) => wP(e, vP.MARCH, _P.SUNDAY, 2, 2),
43533
+ dstEnd: (e) => wP(e, vP.NOVEMBER, _P.SUNDAY, 1, 2)
43532
43534
  },
43533
43535
  PWT: 540,
43534
43536
  PYST: -180,
@@ -43577,29 +43579,29 @@ var SP = {
43577
43579
  YEKST: 360,
43578
43580
  YEKT: 360
43579
43581
  };
43580
- function CP(e, t, n, r, i = 0) {
43582
+ function wP(e, t, n, r, i = 0) {
43581
43583
  let a = 0, o = 0;
43582
43584
  for (; o < r;) a++, new Date(e, t - 1, a).getDay() === n && o++;
43583
43585
  return new Date(e, t - 1, a, i);
43584
43586
  }
43585
- function wP(e, t, n, r = 0) {
43587
+ function TP(e, t, n, r = 0) {
43586
43588
  let i = n === 0 ? 7 : n, a = new Date(e, t - 1 + 1, 1, 12), o = a.getDay() === 0 ? 7 : a.getDay(), s;
43587
43589
  return s = o === i ? 7 : o < i ? 7 + o - i : o - i, a.setDate(a.getDate() - s), new Date(e, t - 1, a.getDate(), r);
43588
43590
  }
43589
- function TP(e, t, n = {}) {
43591
+ function EP(e, t, n = {}) {
43590
43592
  if (e == null) return null;
43591
43593
  if (typeof e == "number") return e;
43592
- let r = n[e] ?? SP[e];
43594
+ let r = n[e] ?? CP[e];
43593
43595
  return r == null ? null : typeof r == "number" ? r : t == null ? null : t > r.dstStart(t.getFullYear()) && !(t > r.dstEnd(t.getFullYear())) ? r.timezoneOffsetDuringDst : r.timezoneOffsetNonDst;
43594
43596
  }
43595
43597
  //#endregion
43596
43598
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/calculation/duration.js
43597
- var EP = {
43599
+ var DP = {
43598
43600
  day: 0,
43599
43601
  second: 0,
43600
43602
  millisecond: 0
43601
43603
  };
43602
- function DP(e, t) {
43604
+ function OP(e, t) {
43603
43605
  let n = new Date(e);
43604
43606
  if (t.y && (t.year = t.y, delete t.y), t.mo && (t.month = t.mo, delete t.mo), t.M && (t.month = t.M, delete t.M), t.w && (t.week = t.w, delete t.w), t.d && (t.day = t.d, delete t.d), t.h && (t.hour = t.h, delete t.h), t.m && (t.minute = t.m, delete t.m), t.s && (t.second = t.s, delete t.s), t.ms && (t.millisecond = t.ms, delete t.ms), "year" in t) {
43605
43607
  let e = Math.floor(t.year);
@@ -43653,14 +43655,14 @@ function DP(e, t) {
43653
43655
  }
43654
43656
  return n;
43655
43657
  }
43656
- function OP(e) {
43658
+ function kP(e) {
43657
43659
  let t = {};
43658
43660
  for (let n in e) t[n] = -e[n];
43659
43661
  return t;
43660
43662
  }
43661
43663
  //#endregion
43662
43664
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/results.js
43663
- var kP = class e {
43665
+ var AP = class e {
43664
43666
  instant;
43665
43667
  timezoneOffset;
43666
43668
  constructor(e, t) {
@@ -43672,7 +43674,7 @@ var kP = class e {
43672
43674
  static fromInput(t, n) {
43673
43675
  if (t instanceof Date) return e.fromDate(t);
43674
43676
  let r = t?.instant ?? /* @__PURE__ */ new Date();
43675
- return new e(r, TP(t?.timezone, r, n));
43677
+ return new e(r, EP(t?.timezone, r, n));
43676
43678
  }
43677
43679
  getDateWithAdjustedTimezone() {
43678
43680
  let e = new Date(this.instant);
@@ -43686,7 +43688,7 @@ var kP = class e {
43686
43688
  getTimezoneOffset() {
43687
43689
  return this.timezoneOffset ?? -this.instant.getTimezoneOffset();
43688
43690
  }
43689
- }, AP = class e {
43691
+ }, jP = class e {
43690
43692
  knownValues;
43691
43693
  impliedValues;
43692
43694
  reference;
@@ -43696,9 +43698,9 @@ var kP = class e {
43696
43698
  let n = e.getDateWithAdjustedTimezone();
43697
43699
  this.imply("day", n.getDate()), this.imply("month", n.getMonth() + 1), this.imply("year", n.getFullYear()), this.imply("hour", 12), this.imply("minute", 0), this.imply("second", 0), this.imply("millisecond", 0);
43698
43700
  }
43699
- static createRelativeFromReference(t, n = EP) {
43700
- let r = DP(t.getDateWithAdjustedTimezone(), n), i = new e(t);
43701
- return i.addTag("result/relativeDate"), "hour" in n || "minute" in n || "second" in n || "millisecond" in n ? (i.addTag("result/relativeDateAndTime"), yP(i, r), vP(i, r), i.assign("timezoneOffset", t.getTimezoneOffset())) : (xP(i, r), i.imply("timezoneOffset", t.getTimezoneOffset()), "day" in n ? (i.assign("day", r.getDate()), i.assign("month", r.getMonth() + 1), i.assign("year", r.getFullYear()), i.assign("weekday", r.getDay())) : "week" in n ? (i.assign("day", r.getDate()), i.assign("month", r.getMonth() + 1), i.assign("year", r.getFullYear()), i.imply("weekday", r.getDay())) : (i.imply("day", r.getDate()), "month" in n ? (i.assign("month", r.getMonth() + 1), i.assign("year", r.getFullYear())) : (i.imply("month", r.getMonth() + 1), "year" in n ? i.assign("year", r.getFullYear()) : i.imply("year", r.getFullYear())))), i;
43701
+ static createRelativeFromReference(t, n = DP) {
43702
+ let r = OP(t.getDateWithAdjustedTimezone(), n), i = new e(t);
43703
+ return i.addTag("result/relativeDate"), "hour" in n || "minute" in n || "second" in n || "millisecond" in n ? (i.addTag("result/relativeDateAndTime"), bP(i, r), yP(i, r), i.assign("timezoneOffset", t.getTimezoneOffset())) : (SP(i, r), i.imply("timezoneOffset", t.getTimezoneOffset()), "day" in n ? (i.assign("day", r.getDate()), i.assign("month", r.getMonth() + 1), i.assign("year", r.getFullYear()), i.assign("weekday", r.getDay())) : "week" in n ? (i.assign("day", r.getDate()), i.assign("month", r.getMonth() + 1), i.assign("year", r.getFullYear()), i.imply("weekday", r.getDay())) : (i.imply("day", r.getDate()), "month" in n ? (i.assign("month", r.getMonth() + 1), i.assign("year", r.getFullYear())) : (i.imply("month", r.getMonth() + 1), "year" in n ? i.assign("year", r.getFullYear()) : i.imply("year", r.getFullYear())))), i;
43702
43704
  }
43703
43705
  get(e) {
43704
43706
  return e in this.knownValues ? this.knownValues[e] : e in this.impliedValues ? this.impliedValues[e] : null;
@@ -43716,7 +43718,7 @@ var kP = class e {
43716
43718
  return this.knownValues[e] = t, delete this.impliedValues[e], this;
43717
43719
  }
43718
43720
  addDurationAsImplied(e) {
43719
- let t = DP(this.dateWithoutTimezoneAdjustment(), e);
43721
+ let t = OP(this.dateWithoutTimezoneAdjustment(), e);
43720
43722
  return ("day" in e || "week" in e || "month" in e || "year" in e) && (this.delete([
43721
43723
  "day",
43722
43724
  "weekday",
@@ -43780,7 +43782,7 @@ var kP = class e {
43780
43782
  let e = new Date(this.get("year"), this.get("month") - 1, this.get("day"), this.get("hour"), this.get("minute"), this.get("second"), this.get("millisecond"));
43781
43783
  return e.setFullYear(this.get("year")), e;
43782
43784
  }
43783
- }, jP = class e {
43785
+ }, MP = class e {
43784
43786
  refDate;
43785
43787
  index;
43786
43788
  text;
@@ -43788,7 +43790,7 @@ var kP = class e {
43788
43790
  start;
43789
43791
  end;
43790
43792
  constructor(e, t, n, r, i) {
43791
- this.reference = e, this.refDate = e.instant, this.index = t, this.text = n, this.start = r || new AP(e), this.end = i;
43793
+ this.reference = e, this.refDate = e.instant, this.index = t, this.text = n, this.start = r || new jP(e), this.end = i;
43792
43794
  }
43793
43795
  clone() {
43794
43796
  let t = new e(this.reference, this.index, this.text);
@@ -43815,31 +43817,31 @@ var kP = class e {
43815
43817
  };
43816
43818
  //#endregion
43817
43819
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/utils/pattern.js
43818
- function MP(e, t, n = "\\s{0,5},?\\s{0,5}") {
43820
+ function NP(e, t, n = "\\s{0,5},?\\s{0,5}") {
43819
43821
  let r = t.replace(/\((?!\?)/g, "(?:");
43820
43822
  return `${e}${r}(?:${n}${r}){0,10}`;
43821
43823
  }
43822
- function NP(e) {
43824
+ function PP(e) {
43823
43825
  let t;
43824
43826
  return t = e instanceof Array ? [...e] : e instanceof Map ? Array.from(e.keys()) : Object.keys(e), t;
43825
43827
  }
43826
- function PP(e) {
43827
- return `(?:${NP(e).sort((e, t) => t.length - e.length).join("|").replace(/\./g, "\\.")})`;
43828
+ function FP(e) {
43829
+ return `(?:${PP(e).sort((e, t) => t.length - e.length).join("|").replace(/\./g, "\\.")})`;
43828
43830
  }
43829
43831
  //#endregion
43830
43832
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/calculation/years.js
43831
- function FP(e) {
43833
+ function IP(e) {
43832
43834
  return e < 100 && (e > 50 ? e += 1900 : e += 2e3), e;
43833
43835
  }
43834
- function IP(e, t, n) {
43836
+ function LP(e, t, n) {
43835
43837
  let r = new Date(e);
43836
43838
  r.setMonth(n - 1), r.setDate(t);
43837
- let i = DP(r, { year: 1 }), a = DP(r, { year: -1 });
43839
+ let i = OP(r, { year: 1 }), a = OP(r, { year: -1 });
43838
43840
  return Math.abs(i.getTime() - e.getTime()) < Math.abs(r.getTime() - e.getTime()) ? r = i : Math.abs(a.getTime() - e.getTime()) < Math.abs(r.getTime() - e.getTime()) && (r = a), r.getFullYear();
43839
43841
  }
43840
43842
  //#endregion
43841
43843
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/locales/en/constants.js
43842
- var LP = {
43844
+ var RP = {
43843
43845
  sunday: 0,
43844
43846
  sun: 0,
43845
43847
  "sun.": 0,
@@ -43865,7 +43867,7 @@ var LP = {
43865
43867
  saturday: 6,
43866
43868
  sat: 6,
43867
43869
  "sat.": 6
43868
- }, RP = {
43870
+ }, zP = {
43869
43871
  january: 1,
43870
43872
  february: 2,
43871
43873
  march: 3,
@@ -43878,8 +43880,8 @@ var LP = {
43878
43880
  october: 10,
43879
43881
  november: 11,
43880
43882
  december: 12
43881
- }, zP = {
43882
- ...RP,
43883
+ }, BP = {
43884
+ ...zP,
43883
43885
  jan: 1,
43884
43886
  "jan.": 1,
43885
43887
  feb: 2,
@@ -43904,7 +43906,7 @@ var LP = {
43904
43906
  "nov.": 11,
43905
43907
  dec: 12,
43906
43908
  "dec.": 12
43907
- }, BP = {
43909
+ }, VP = {
43908
43910
  one: 1,
43909
43911
  two: 2,
43910
43912
  three: 3,
@@ -43917,7 +43919,7 @@ var LP = {
43917
43919
  ten: 10,
43918
43920
  eleven: 11,
43919
43921
  twelve: 12
43920
- }, VP = {
43922
+ }, HP = {
43921
43923
  first: 1,
43922
43924
  second: 2,
43923
43925
  third: 3,
@@ -43959,7 +43961,7 @@ var LP = {
43959
43961
  thirtieth: 30,
43960
43962
  "thirty first": 31,
43961
43963
  "thirty-first": 31
43962
- }, HP = {
43964
+ }, UP = {
43963
43965
  second: "second",
43964
43966
  seconds: "second",
43965
43967
  minute: "minute",
@@ -43976,7 +43978,7 @@ var LP = {
43976
43978
  quarters: "quarter",
43977
43979
  year: "year",
43978
43980
  years: "year"
43979
- }, UP = {
43981
+ }, WP = {
43980
43982
  s: "second",
43981
43983
  sec: "second",
43982
43984
  second: "second",
@@ -44009,35 +44011,35 @@ var LP = {
44009
44011
  yr: "year",
44010
44012
  year: "year",
44011
44013
  years: "year",
44012
- ...HP
44013
- }, WP = `(?:${PP(BP)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;
44014
- function GP(e) {
44014
+ ...UP
44015
+ }, GP = `(?:${FP(VP)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;
44016
+ function KP(e) {
44015
44017
  let t = e.toLowerCase();
44016
- return BP[t] === void 0 ? t === "a" || t === "an" || t == "the" ? 1 : t.match(/few/) ? 3 : t.match(/half/) ? .5 : t.match(/couple/) ? 2 : t.match(/several/) ? 7 : parseFloat(t) : BP[t];
44018
+ return VP[t] === void 0 ? t === "a" || t === "an" || t == "the" ? 1 : t.match(/few/) ? 3 : t.match(/half/) ? .5 : t.match(/couple/) ? 2 : t.match(/several/) ? 7 : parseFloat(t) : VP[t];
44017
44019
  }
44018
- var KP = `(?:${PP(VP)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;
44019
- function qP(e) {
44020
+ var qP = `(?:${FP(HP)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;
44021
+ function JP(e) {
44020
44022
  let t = e.toLowerCase();
44021
- return VP[t] === void 0 ? (t = t.replace(/(?:st|nd|rd|th)$/i, ""), parseInt(t)) : VP[t];
44023
+ return HP[t] === void 0 ? (t = t.replace(/(?:st|nd|rd|th)$/i, ""), parseInt(t)) : HP[t];
44022
44024
  }
44023
- var JP = "(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[5-9][0-9]|2[0-5])";
44024
- function YP(e) {
44025
- return /BE/i.test(e) ? (e = e.replace(/BE/i, ""), parseInt(e) - 543) : /BCE?/i.test(e) ? (e = e.replace(/BCE?/i, ""), -parseInt(e)) : /(AD|CE)/i.test(e) ? (e = e.replace(/(AD|CE)/i, ""), parseInt(e)) : FP(parseInt(e));
44025
+ var YP = "(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[5-9][0-9]|2[0-5])";
44026
+ function XP(e) {
44027
+ return /BE/i.test(e) ? (e = e.replace(/BE/i, ""), parseInt(e) - 543) : /BCE?/i.test(e) ? (e = e.replace(/BCE?/i, ""), -parseInt(e)) : /(AD|CE)/i.test(e) ? (e = e.replace(/(AD|CE)/i, ""), parseInt(e)) : IP(parseInt(e));
44026
44028
  }
44027
- var XP = `(${WP})\\s{0,3}(${PP(UP)})`, ZP = new RegExp(XP, "i"), QP = `(${WP})\\s{0,3}(${PP(HP)})`, $P = "\\s{0,5},?(?:\\s*and)?\\s{0,5}", eF = MP("(?:(?:about|around)\\s{0,3})?", XP, $P), tF = MP("(?:(?:about|around)\\s{0,3})?", QP, $P);
44028
- function nF(e) {
44029
- let t = {}, n = e, r = ZP.exec(n);
44030
- for (; r;) rF(t, r), n = n.substring(r[0].length).trim(), r = ZP.exec(n);
44029
+ var ZP = `(${GP})\\s{0,3}(${FP(WP)})`, QP = new RegExp(ZP, "i"), $P = `(${GP})\\s{0,3}(${FP(UP)})`, eF = "\\s{0,5},?(?:\\s*and)?\\s{0,5}", tF = NP("(?:(?:about|around)\\s{0,3})?", ZP, eF), nF = NP("(?:(?:about|around)\\s{0,3})?", $P, eF);
44030
+ function rF(e) {
44031
+ let t = {}, n = e, r = QP.exec(n);
44032
+ for (; r;) iF(t, r), n = n.substring(r[0].length).trim(), r = QP.exec(n);
44031
44033
  return Object.keys(t).length == 0 ? null : t;
44032
44034
  }
44033
- function rF(e, t) {
44035
+ function iF(e, t) {
44034
44036
  if (t[0].match(/^[a-zA-Z]+$/)) return;
44035
- let n = GP(t[1]), r = UP[t[2].toLowerCase()];
44037
+ let n = KP(t[1]), r = WP[t[2].toLowerCase()];
44036
44038
  e[r] = n;
44037
44039
  }
44038
44040
  //#endregion
44039
44041
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/common/parsers/AbstractParserWithWordBoundary.js
44040
- var iF = class {
44042
+ var aF = class {
44041
44043
  innerPatternHasChange(e, t) {
44042
44044
  return this.innerPattern(e) !== t;
44043
44045
  }
@@ -44055,94 +44057,94 @@ var iF = class {
44055
44057
  for (let e = 2; e < t.length; e++) t[e - 1] = t[e];
44056
44058
  return this.innerExtract(e, t);
44057
44059
  }
44058
- }, aF = RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${eF})(?=\\W|$)`, "i"), oF = RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${eF})(?=\\W|$)`, "i"), sF = RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${tF})(?=\\W|$)`, "i"), cF = class extends iF {
44060
+ }, oF = RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${tF})(?=\\W|$)`, "i"), sF = RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${tF})(?=\\W|$)`, "i"), cF = RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${nF})(?=\\W|$)`, "i"), lF = class extends aF {
44059
44061
  strictMode;
44060
44062
  constructor(e) {
44061
44063
  super(), this.strictMode = e;
44062
44064
  }
44063
44065
  innerPattern(e) {
44064
- return this.strictMode ? sF : e.option.forwardDate ? aF : oF;
44066
+ return this.strictMode ? cF : e.option.forwardDate ? oF : sF;
44065
44067
  }
44066
44068
  innerExtract(e, t) {
44067
44069
  if (t[0].match(/^for\s*the\s*\w+/)) return null;
44068
- let n = nF(t[1]);
44069
- return n ? AP.createRelativeFromReference(e.reference, n) : null;
44070
+ let n = rF(t[1]);
44071
+ return n ? jP.createRelativeFromReference(e.reference, n) : null;
44070
44072
  }
44071
- }, lF = RegExp(`(?:on\\s{0,3})?(${KP})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${KP}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${PP(zP)})(?:(?:-|/|,?\\s{0,3})(${JP}(?!\\w)))?(?=\\W|\$)`, "i"), uF = 1, dF = 2, fF = 3, pF = 4, mF = class extends iF {
44073
+ }, uF = RegExp(`(?:on\\s{0,3})?(${qP})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${qP}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${FP(BP)})(?:(?:-|/|,?\\s{0,3})(${YP}(?!\\w)))?(?=\\W|\$)`, "i"), dF = 1, fF = 2, pF = 3, mF = 4, hF = class extends aF {
44072
44074
  innerPattern() {
44073
- return lF;
44075
+ return uF;
44074
44076
  }
44075
44077
  innerExtract(e, t) {
44076
- let n = e.createParsingResult(t.index, t[0]), r = zP[t[fF].toLowerCase()], i = qP(t[uF]);
44077
- if (i > 31) return t.index += t[uF].length, null;
44078
- if (n.start.assign("month", r), n.start.assign("day", i), t[pF]) {
44079
- let e = YP(t[pF]);
44078
+ let n = e.createParsingResult(t.index, t[0]), r = BP[t[pF].toLowerCase()], i = JP(t[dF]);
44079
+ if (i > 31) return t.index += t[dF].length, null;
44080
+ if (n.start.assign("month", r), n.start.assign("day", i), t[mF]) {
44081
+ let e = XP(t[mF]);
44080
44082
  n.start.assign("year", e);
44081
44083
  } else {
44082
- let t = IP(e.refDate, i, r);
44084
+ let t = LP(e.refDate, i, r);
44083
44085
  n.start.imply("year", t);
44084
44086
  }
44085
- if (t[dF]) {
44086
- let e = qP(t[dF]);
44087
+ if (t[fF]) {
44088
+ let e = JP(t[fF]);
44087
44089
  n.end = n.start.clone(), n.end.assign("day", e);
44088
44090
  }
44089
44091
  return n;
44090
44092
  }
44091
- }, hF = RegExp(`(${PP(zP)})(?:-|/|\\s*,?\\s*)(${KP})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${KP})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${JP}))?(?=\\W|\$)(?!\\:\\d)`, "i"), gF = 1, _F = 2, vF = 3, yF = 4, bF = class extends iF {
44093
+ }, gF = RegExp(`(${FP(BP)})(?:-|/|\\s*,?\\s*)(${qP})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${qP})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${YP}))?(?=\\W|\$)(?!\\:\\d)`, "i"), _F = 1, vF = 2, yF = 3, bF = 4, xF = class extends aF {
44092
44094
  shouldSkipYearLikeDate;
44093
44095
  constructor(e) {
44094
44096
  super(), this.shouldSkipYearLikeDate = e;
44095
44097
  }
44096
44098
  innerPattern() {
44097
- return hF;
44099
+ return gF;
44098
44100
  }
44099
44101
  innerExtract(e, t) {
44100
- let n = zP[t[gF].toLowerCase()], r = qP(t[_F]);
44101
- if (r > 31 || this.shouldSkipYearLikeDate && !t[vF] && !t[yF] && t[_F].match(/^2[0-5]$/)) return null;
44102
+ let n = BP[t[_F].toLowerCase()], r = JP(t[vF]);
44103
+ if (r > 31 || this.shouldSkipYearLikeDate && !t[yF] && !t[bF] && t[vF].match(/^2[0-5]$/)) return null;
44102
44104
  let i = e.createParsingComponents({
44103
44105
  day: r,
44104
44106
  month: n
44105
44107
  }).addTag("parser/ENMonthNameMiddleEndianParser");
44106
- if (t[yF]) {
44107
- let e = YP(t[yF]);
44108
+ if (t[bF]) {
44109
+ let e = XP(t[bF]);
44108
44110
  i.assign("year", e);
44109
44111
  } else {
44110
- let t = IP(e.refDate, r, n);
44112
+ let t = LP(e.refDate, r, n);
44111
44113
  i.imply("year", t);
44112
44114
  }
44113
- if (!t[vF]) return i;
44114
- let a = qP(t[vF]), o = e.createParsingResult(t.index, t[0]);
44115
+ if (!t[yF]) return i;
44116
+ let a = JP(t[yF]), o = e.createParsingResult(t.index, t[0]);
44115
44117
  return o.start = i, o.end = i.clone(), o.end.assign("day", a), o;
44116
44118
  }
44117
- }, xF = RegExp(`((?:in)\\s*)?(${PP(zP)})\\s*(?:(?:,|-|of)?\\s*(${JP})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+\$|\$)`, "i"), SF = 1, CF = 2, wF = 3, TF = class extends iF {
44119
+ }, SF = RegExp(`((?:in)\\s*)?(${FP(BP)})\\s*(?:(?:,|-|of)?\\s*(${YP})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+\$|\$)`, "i"), CF = 1, wF = 2, TF = 3, EF = class extends aF {
44118
44120
  innerPattern() {
44119
- return xF;
44121
+ return SF;
44120
44122
  }
44121
44123
  innerExtract(e, t) {
44122
- let n = t[CF].toLowerCase();
44123
- if (t[0].length <= 3 && !RP[n]) return null;
44124
- let r = e.createParsingResult(t.index + (t[SF] || "").length, t.index + t[0].length);
44124
+ let n = t[wF].toLowerCase();
44125
+ if (t[0].length <= 3 && !zP[n]) return null;
44126
+ let r = e.createParsingResult(t.index + (t[CF] || "").length, t.index + t[0].length);
44125
44127
  r.start.imply("day", 1), r.start.addTag("parser/ENMonthNameParser");
44126
- let i = zP[n];
44127
- if (r.start.assign("month", i), t[wF]) {
44128
- let e = YP(t[wF]);
44128
+ let i = BP[n];
44129
+ if (r.start.assign("month", i), t[TF]) {
44130
+ let e = XP(t[TF]);
44129
44131
  r.start.assign("year", e);
44130
44132
  } else {
44131
- let t = IP(e.refDate, 1, i);
44133
+ let t = LP(e.refDate, 1, i);
44132
44134
  r.start.imply("year", t);
44133
44135
  }
44134
44136
  return r;
44135
44137
  }
44136
- }, EF = RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${PP(zP)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|\$)`, "i"), DF = 1, OF = 2, kF = 3, AF = 4, jF = class extends iF {
44138
+ }, DF = RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${FP(BP)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|\$)`, "i"), OF = 1, kF = 2, AF = 3, jF = 4, MF = class extends aF {
44137
44139
  strictMonthDateOrder;
44138
44140
  constructor(e) {
44139
44141
  super(), this.strictMonthDateOrder = e;
44140
44142
  }
44141
44143
  innerPattern() {
44142
- return EF;
44144
+ return DF;
44143
44145
  }
44144
44146
  innerExtract(e, t) {
44145
- let n = parseInt(t[DF]), r = parseInt(t[AF]), i = t[kF] ? parseInt(t[kF]) : zP[t[OF].toLowerCase()];
44147
+ let n = parseInt(t[OF]), r = parseInt(t[jF]), i = t[AF] ? parseInt(t[AF]) : BP[t[kF].toLowerCase()];
44146
44148
  if (i < 1 || i > 12) {
44147
44149
  if (this.strictMonthDateOrder) return null;
44148
44150
  r >= 1 && r <= 12 && ([i, r] = [r, i]);
@@ -44153,24 +44155,24 @@ var iF = class {
44153
44155
  year: n
44154
44156
  };
44155
44157
  }
44156
- }, MF = /* @__PURE__ */ RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})", "i"), NF = 1, PF = 2, FF = class extends iF {
44158
+ }, NF = /* @__PURE__ */ RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})", "i"), PF = 1, FF = 2, IF = class extends aF {
44157
44159
  innerPattern() {
44158
- return MF;
44160
+ return NF;
44159
44161
  }
44160
44162
  innerExtract(e, t) {
44161
- let n = parseInt(t[PF]), r = parseInt(t[NF]);
44163
+ let n = parseInt(t[FF]), r = parseInt(t[PF]);
44162
44164
  return e.createParsingComponents().imply("day", 1).assign("month", r).assign("year", n);
44163
44165
  }
44164
44166
  };
44165
44167
  //#endregion
44166
44168
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/common/parsers/AbstractTimeExpressionParser.js
44167
- function IF(e, t, n, r) {
44169
+ function LF(e, t, n, r) {
44168
44170
  return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`, r);
44169
44171
  }
44170
- function LF(e, t) {
44172
+ function RF(e, t) {
44171
44173
  return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`, "i");
44172
44174
  }
44173
- var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44175
+ var zF = 2, BF = 3, VF = 4, HF = 5, UF = 6, WF = class {
44174
44176
  strictMode;
44175
44177
  constructor(e = !1) {
44176
44178
  this.strictMode = e;
@@ -44199,29 +44201,29 @@ var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44199
44201
  return i.match(/^\d{3,4}/) && s && (s[0].match(/^\s*([+-])\s*\d{2,4}$/) || s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/)) ? null : !s || s[0].match(/^\s*([+-])\s*\d{3,4}$/) ? this.checkAndReturnWithoutFollowingPattern(a) : (a.end = this.extractFollowingTimeComponents(e, s, a), a.end && (a.text += s[0]), this.checkAndReturnWithFollowingPattern(a));
44200
44202
  }
44201
44203
  extractPrimaryTimeComponents(e, t, n = !1) {
44202
- let r = e.createParsingComponents(), i = 0, a = null, o = parseInt(t[RF]);
44204
+ let r = e.createParsingComponents(), i = 0, a = null, o = parseInt(t[zF]);
44203
44205
  if (o > 100) {
44204
- if (t[RF].length == 4 && t[zF] == null && !t[HF] || this.strictMode || t[zF] != null) return null;
44206
+ if (t[zF].length == 4 && t[BF] == null && !t[UF] || this.strictMode || t[BF] != null) return null;
44205
44207
  i = o % 100, o = Math.floor(o / 100);
44206
44208
  }
44207
44209
  if (o > 24) return null;
44208
- if (t[zF] != null) {
44209
- if (t[zF].length == 1 && !t[HF]) return null;
44210
- i = parseInt(t[zF]);
44210
+ if (t[BF] != null) {
44211
+ if (t[BF].length == 1 && !t[UF]) return null;
44212
+ i = parseInt(t[BF]);
44211
44213
  }
44212
44214
  if (i >= 60) return null;
44213
- if (o > 12 && (a = hP.PM), t[HF] != null) {
44215
+ if (o > 12 && (a = gP.PM), t[UF] != null) {
44214
44216
  if (o > 12) return null;
44215
- let e = t[HF][0].toLowerCase();
44216
- e == "a" && (a = hP.AM, o == 12 && (o = 0)), e == "p" && (a = hP.PM, o != 12 && (o += 12));
44217
+ let e = t[UF][0].toLowerCase();
44218
+ e == "a" && (a = gP.AM, o == 12 && (o = 0)), e == "p" && (a = gP.PM, o != 12 && (o += 12));
44217
44219
  }
44218
- if (r.assign("hour", o), r.assign("minute", i), a === null ? o < 12 ? r.imply("meridiem", hP.AM) : r.imply("meridiem", hP.PM) : r.assign("meridiem", a), t[VF] != null) {
44219
- let e = parseInt(t[VF].substring(0, 3));
44220
+ if (r.assign("hour", o), r.assign("minute", i), a === null ? o < 12 ? r.imply("meridiem", gP.AM) : r.imply("meridiem", gP.PM) : r.assign("meridiem", a), t[HF] != null) {
44221
+ let e = parseInt(t[HF].substring(0, 3));
44220
44222
  if (e >= 1e3) return null;
44221
44223
  r.assign("millisecond", e);
44222
44224
  }
44223
- if (t[BF] != null) {
44224
- let e = parseInt(t[BF]);
44225
+ if (t[VF] != null) {
44226
+ let e = parseInt(t[VF]);
44225
44227
  if (e >= 60) return null;
44226
44228
  r.assign("second", e);
44227
44229
  }
@@ -44229,24 +44231,24 @@ var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44229
44231
  }
44230
44232
  extractFollowingTimeComponents(e, t, n) {
44231
44233
  let r = e.createParsingComponents();
44232
- if (t[VF] != null) {
44233
- let e = parseInt(t[VF].substring(0, 3));
44234
+ if (t[HF] != null) {
44235
+ let e = parseInt(t[HF].substring(0, 3));
44234
44236
  if (e >= 1e3) return null;
44235
44237
  r.assign("millisecond", e);
44236
44238
  }
44237
- if (t[BF] != null) {
44238
- let e = parseInt(t[BF]);
44239
+ if (t[VF] != null) {
44240
+ let e = parseInt(t[VF]);
44239
44241
  if (e >= 60) return null;
44240
44242
  r.assign("second", e);
44241
44243
  }
44242
- let i = parseInt(t[RF]), a = 0, o = -1;
44243
- if (t[zF] == null ? i > 100 && (a = i % 100, i = Math.floor(i / 100)) : a = parseInt(t[zF]), a >= 60 || i > 24) return null;
44244
- if (i >= 12 && (o = hP.PM), t[HF] != null) {
44244
+ let i = parseInt(t[zF]), a = 0, o = -1;
44245
+ if (t[BF] == null ? i > 100 && (a = i % 100, i = Math.floor(i / 100)) : a = parseInt(t[BF]), a >= 60 || i > 24) return null;
44246
+ if (i >= 12 && (o = gP.PM), t[UF] != null) {
44245
44247
  if (i > 12) return null;
44246
- let e = t[HF][0].toLowerCase();
44247
- e == "a" && (o = hP.AM, i == 12 && (i = 0, r.isCertain("day") || r.imply("day", r.get("day") + 1))), e == "p" && (o = hP.PM, i != 12 && (i += 12)), n.start.isCertain("meridiem") || (o == hP.AM ? (n.start.imply("meridiem", hP.AM), n.start.get("hour") == 12 && n.start.assign("hour", 0)) : (n.start.imply("meridiem", hP.PM), n.start.get("hour") != 12 && n.start.assign("hour", n.start.get("hour") + 12)));
44248
+ let e = t[UF][0].toLowerCase();
44249
+ e == "a" && (o = gP.AM, i == 12 && (i = 0, r.isCertain("day") || r.imply("day", r.get("day") + 1))), e == "p" && (o = gP.PM, i != 12 && (i += 12)), n.start.isCertain("meridiem") || (o == gP.AM ? (n.start.imply("meridiem", gP.AM), n.start.get("hour") == 12 && n.start.assign("hour", 0)) : (n.start.imply("meridiem", gP.PM), n.start.get("hour") != 12 && n.start.assign("hour", n.start.get("hour") + 12)));
44248
44250
  }
44249
- return r.assign("hour", i), r.assign("minute", a), o >= 0 ? r.assign("meridiem", o) : n.start.isCertain("meridiem") && n.start.get("hour") > 12 ? n.start.get("hour") - 12 > i ? r.imply("meridiem", hP.AM) : i <= 12 && (r.assign("hour", i + 12), r.assign("meridiem", hP.PM)) : i > 12 ? r.imply("meridiem", hP.PM) : i <= 12 && r.imply("meridiem", hP.AM), r.date().getTime() < n.start.date().getTime() && r.imply("day", r.get("day") + 1), r;
44251
+ return r.assign("hour", i), r.assign("minute", a), o >= 0 ? r.assign("meridiem", o) : n.start.isCertain("meridiem") && n.start.get("hour") > 12 ? n.start.get("hour") - 12 > i ? r.imply("meridiem", gP.AM) : i <= 12 && (r.assign("hour", i + 12), r.assign("meridiem", gP.PM)) : i > 12 ? r.imply("meridiem", gP.PM) : i <= 12 && r.imply("meridiem", gP.AM), r.date().getTime() < n.start.date().getTime() && r.imply("day", r.get("day") + 1), r;
44250
44252
  }
44251
44253
  checkAndReturnWithoutFollowingPattern(e) {
44252
44254
  if (e.text.match(/^\d$/) || e.text.match(/^\d\d\d+$/) || e.text.match(/\d[apAP]$/)) return null;
@@ -44272,16 +44274,16 @@ var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44272
44274
  cachedPrimaryTimePattern = null;
44273
44275
  getPrimaryTimePatternThroughCache() {
44274
44276
  let e = this.primaryPrefix(), t = this.primarySuffix();
44275
- return this.cachedPrimaryPrefix === e && this.cachedPrimarySuffix === t ? this.cachedPrimaryTimePattern : (this.cachedPrimaryTimePattern = IF(this.primaryPatternLeftBoundary(), e, t, this.patternFlags()), this.cachedPrimaryPrefix = e, this.cachedPrimarySuffix = t, this.cachedPrimaryTimePattern);
44277
+ return this.cachedPrimaryPrefix === e && this.cachedPrimarySuffix === t ? this.cachedPrimaryTimePattern : (this.cachedPrimaryTimePattern = LF(this.primaryPatternLeftBoundary(), e, t, this.patternFlags()), this.cachedPrimaryPrefix = e, this.cachedPrimarySuffix = t, this.cachedPrimaryTimePattern);
44276
44278
  }
44277
44279
  cachedFollowingPhase = null;
44278
44280
  cachedFollowingSuffix = null;
44279
44281
  cachedFollowingTimePatten = null;
44280
44282
  getFollowingTimePatternThroughCache() {
44281
44283
  let e = this.followingPhase(), t = this.followingSuffix();
44282
- return this.cachedFollowingPhase === e && this.cachedFollowingSuffix === t ? this.cachedFollowingTimePatten : (this.cachedFollowingTimePatten = LF(e, t), this.cachedFollowingPhase = e, this.cachedFollowingSuffix = t, this.cachedFollowingTimePatten);
44284
+ return this.cachedFollowingPhase === e && this.cachedFollowingSuffix === t ? this.cachedFollowingTimePatten : (this.cachedFollowingTimePatten = RF(e, t), this.cachedFollowingPhase = e, this.cachedFollowingSuffix = t, this.cachedFollowingTimePatten);
44283
44285
  }
44284
- }, WF = class extends UF {
44286
+ }, GF = class extends WF {
44285
44287
  constructor(e) {
44286
44288
  super(e);
44287
44289
  }
@@ -44299,48 +44301,48 @@ var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44299
44301
  if (!n) return n;
44300
44302
  if (t[0].endsWith("night")) {
44301
44303
  let e = n.get("hour");
44302
- e >= 6 && e < 12 ? (n.assign("hour", n.get("hour") + 12), n.assign("meridiem", hP.PM)) : e < 6 && n.assign("meridiem", hP.AM);
44304
+ e >= 6 && e < 12 ? (n.assign("hour", n.get("hour") + 12), n.assign("meridiem", gP.PM)) : e < 6 && n.assign("meridiem", gP.AM);
44303
44305
  }
44304
44306
  if (t[0].endsWith("afternoon")) {
44305
- n.assign("meridiem", hP.PM);
44307
+ n.assign("meridiem", gP.PM);
44306
44308
  let e = n.get("hour");
44307
44309
  e >= 0 && e <= 6 && n.assign("hour", n.get("hour") + 12);
44308
44310
  }
44309
- return t[0].endsWith("morning") && (n.assign("meridiem", hP.AM), n.get("hour") < 12 && n.assign("hour", n.get("hour"))), n.addTag("parser/ENTimeExpressionParser");
44311
+ return t[0].endsWith("morning") && (n.assign("meridiem", gP.AM), n.get("hour") < 12 && n.assign("hour", n.get("hour"))), n.addTag("parser/ENTimeExpressionParser");
44310
44312
  }
44311
44313
  extractFollowingTimeComponents(e, t, n) {
44312
44314
  let r = super.extractFollowingTimeComponents(e, t, n);
44313
44315
  return r && r.addTag("parser/ENTimeExpressionParser"), r;
44314
44316
  }
44315
- }, GF = RegExp(`(${eF})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`, "i"), KF = RegExp(`(${tF})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`, "i"), qF = class extends iF {
44317
+ }, KF = RegExp(`(${tF})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`, "i"), qF = RegExp(`(${nF})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`, "i"), JF = class extends aF {
44316
44318
  strictMode;
44317
44319
  constructor(e) {
44318
44320
  super(), this.strictMode = e;
44319
44321
  }
44320
44322
  innerPattern() {
44321
- return this.strictMode ? KF : GF;
44323
+ return this.strictMode ? qF : KF;
44322
44324
  }
44323
44325
  innerExtract(e, t) {
44324
- let n = nF(t[1]);
44325
- return n ? AP.createRelativeFromReference(e.reference, OP(n)) : null;
44326
+ let n = rF(t[1]);
44327
+ return n ? jP.createRelativeFromReference(e.reference, kP(n)) : null;
44326
44328
  }
44327
- }, JF = RegExp(`(${eF})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|\$))`, "i"), YF = RegExp(`(${tF})\\s{0,5}(later|after|from now)(?=\\W|$)`, "i"), XF = 1, ZF = class extends iF {
44329
+ }, YF = RegExp(`(${tF})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|\$))`, "i"), XF = RegExp(`(${nF})\\s{0,5}(later|after|from now)(?=\\W|$)`, "i"), ZF = 1, QF = class extends aF {
44328
44330
  strictMode;
44329
44331
  constructor(e) {
44330
44332
  super(), this.strictMode = e;
44331
44333
  }
44332
44334
  innerPattern() {
44333
- return this.strictMode ? YF : JF;
44335
+ return this.strictMode ? XF : YF;
44334
44336
  }
44335
44337
  innerExtract(e, t) {
44336
- let n = nF(t[XF]);
44337
- return n ? AP.createRelativeFromReference(e.reference, n) : null;
44338
+ let n = rF(t[ZF]);
44339
+ return n ? jP.createRelativeFromReference(e.reference, n) : null;
44338
44340
  }
44339
- }, QF = class {
44341
+ }, $F = class {
44340
44342
  refine(e, t) {
44341
44343
  return t.filter((t) => this.isValid(e, t));
44342
44344
  }
44343
- }, $F = class {
44345
+ }, eI = class {
44344
44346
  refine(e, t) {
44345
44347
  if (t.length < 2) return t;
44346
44348
  let n = [], r = t[0], i = null;
@@ -44357,7 +44359,7 @@ var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44357
44359
  }
44358
44360
  return r != null && n.push(r), n;
44359
44361
  }
44360
- }, eI = class extends $F {
44362
+ }, tI = class extends eI {
44361
44363
  shouldMergeResults(e, t, n) {
44362
44364
  return !t.end && !n.end && e.match(this.patternBetween()) != null;
44363
44365
  }
@@ -44368,51 +44370,51 @@ var RF = 2, zF = 3, BF = 4, VF = 5, HF = 6, UF = class {
44368
44370
  n.start.isCertain(e) || n.start.imply(e, t.start.get(e));
44369
44371
  })), t.start.date() > n.start.date()) {
44370
44372
  let e = t.start.date(), r = n.start.date();
44371
- n.start.isOnlyWeekdayComponent() && DP(r, { day: 7 }) > e ? (r = DP(r, { day: 7 }), n.start.imply("day", r.getDate()), n.start.imply("month", r.getMonth() + 1), n.start.imply("year", r.getFullYear())) : t.start.isOnlyWeekdayComponent() && DP(e, { day: -7 }) < r ? (e = DP(e, { day: -7 }), t.start.imply("day", e.getDate()), t.start.imply("month", e.getMonth() + 1), t.start.imply("year", e.getFullYear())) : n.start.isDateWithUnknownYear() && DP(r, { year: 1 }) > e ? (r = DP(r, { year: 1 }), n.start.imply("year", r.getFullYear())) : t.start.isDateWithUnknownYear() && DP(e, { year: -1 }) < r ? (e = DP(e, { year: -1 }), t.start.imply("year", e.getFullYear())) : [n, t] = [t, n];
44373
+ n.start.isOnlyWeekdayComponent() && OP(r, { day: 7 }) > e ? (r = OP(r, { day: 7 }), n.start.imply("day", r.getDate()), n.start.imply("month", r.getMonth() + 1), n.start.imply("year", r.getFullYear())) : t.start.isOnlyWeekdayComponent() && OP(e, { day: -7 }) < r ? (e = OP(e, { day: -7 }), t.start.imply("day", e.getDate()), t.start.imply("month", e.getMonth() + 1), t.start.imply("year", e.getFullYear())) : n.start.isDateWithUnknownYear() && OP(r, { year: 1 }) > e ? (r = OP(r, { year: 1 }), n.start.imply("year", r.getFullYear())) : t.start.isDateWithUnknownYear() && OP(e, { year: -1 }) < r ? (e = OP(e, { year: -1 }), t.start.imply("year", e.getFullYear())) : [n, t] = [t, n];
44372
44374
  }
44373
44375
  let r = t.clone();
44374
44376
  return r.start = t.start, r.end = n.start, r.index = Math.min(t.index, n.index), t.index < n.index ? r.text = t.text + e + n.text : r.text = n.text + e + t.text, r;
44375
44377
  }
44376
- }, tI = class extends eI {
44378
+ }, nI = class extends tI {
44377
44379
  patternBetween() {
44378
44380
  return /^\s*(to|-|–|until|through|till)\s*$/i;
44379
44381
  }
44380
44382
  };
44381
44383
  //#endregion
44382
44384
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/calculation/mergingCalculation.js
44383
- function nI(e, t) {
44385
+ function rI(e, t) {
44384
44386
  let n = e.clone(), r = e.start, i = t.start;
44385
- if (n.start = rI(r, i), e.end != null || t.end != null) {
44386
- let r = rI(e.end == null ? e.start : e.end, t.end == null ? t.start : t.end);
44387
+ if (n.start = iI(r, i), e.end != null || t.end != null) {
44388
+ let r = iI(e.end == null ? e.start : e.end, t.end == null ? t.start : t.end);
44387
44389
  if (e.end == null && r.date().getTime() < n.start.date().getTime()) {
44388
44390
  let e = new Date(r.date().getTime());
44389
- e.setDate(e.getDate() + 1), r.isCertain("day") ? vP(r, e) : bP(r, e);
44391
+ e.setDate(e.getDate() + 1), r.isCertain("day") ? yP(r, e) : xP(r, e);
44390
44392
  }
44391
44393
  n.end = r;
44392
44394
  }
44393
44395
  return n;
44394
44396
  }
44395
- function rI(e, t) {
44397
+ function iI(e, t) {
44396
44398
  let n = e.clone();
44397
44399
  t.isCertain("hour") ? (n.assign("hour", t.get("hour")), n.assign("minute", t.get("minute")), t.isCertain("second") ? (n.assign("second", t.get("second")), t.isCertain("millisecond") ? n.assign("millisecond", t.get("millisecond")) : n.imply("millisecond", t.get("millisecond"))) : (n.imply("second", t.get("second")), n.imply("millisecond", t.get("millisecond")))) : (n.imply("hour", t.get("hour")), n.imply("minute", t.get("minute")), n.imply("second", t.get("second")), n.imply("millisecond", t.get("millisecond"))), t.isCertain("timezoneOffset") && n.assign("timezoneOffset", t.get("timezoneOffset"));
44398
44400
  let r = e.get("meridiem") != null && (e.isCertain("meridiem") || Array.from(e.tags()).some((e) => e.startsWith("casualReference/")));
44399
- return t.isCertain("meridiem") ? n.assign("meridiem", t.get("meridiem")) : t.get("meridiem") != null && !r && n.imply("meridiem", t.get("meridiem")), n.get("meridiem") == hP.PM && n.get("hour") < 12 && (t.isCertain("hour") ? n.assign("hour", n.get("hour") + 12) : n.imply("hour", n.get("hour") + 12)), n.addTags(e.tags()), n.addTags(t.tags()), n;
44401
+ return t.isCertain("meridiem") ? n.assign("meridiem", t.get("meridiem")) : t.get("meridiem") != null && !r && n.imply("meridiem", t.get("meridiem")), n.get("meridiem") == gP.PM && n.get("hour") < 12 && (t.isCertain("hour") ? n.assign("hour", n.get("hour") + 12) : n.imply("hour", n.get("hour") + 12)), n.addTags(e.tags()), n.addTags(t.tags()), n;
44400
44402
  }
44401
44403
  //#endregion
44402
44404
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js
44403
- var iI = class extends $F {
44405
+ var aI = class extends eI {
44404
44406
  shouldMergeResults(e, t, n) {
44405
44407
  return (t.start.isOnlyDate() && n.start.isOnlyTime() || n.start.isOnlyDate() && t.start.isOnlyTime()) && e.match(this.patternBetween()) != null;
44406
44408
  }
44407
44409
  mergeResults(e, t, n) {
44408
- let r = t.start.isOnlyDate() ? nI(t, n) : nI(n, t);
44410
+ let r = t.start.isOnlyDate() ? rI(t, n) : rI(n, t);
44409
44411
  return r.index = t.index, r.text = t.text + e + n.text, r;
44410
44412
  }
44411
- }, aI = class extends iI {
44413
+ }, oI = class extends aI {
44412
44414
  patternBetween() {
44413
44415
  return /* @__PURE__ */ RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$");
44414
44416
  }
44415
- }, oI = /* @__PURE__ */ RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)", "i"), sI = class {
44417
+ }, sI = /* @__PURE__ */ RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)", "i"), cI = class {
44416
44418
  timezoneOverrides;
44417
44419
  constructor(e) {
44418
44420
  this.timezoneOverrides = e;
@@ -44420,9 +44422,9 @@ var iI = class extends $F {
44420
44422
  refine(e, t) {
44421
44423
  let n = e.option.timezones ?? {};
44422
44424
  return t.forEach((t) => {
44423
- let r = e.text.substring(t.index + t.text.length), i = oI.exec(r);
44425
+ let r = e.text.substring(t.index + t.text.length), i = sI.exec(r);
44424
44426
  if (!i) return;
44425
- let a = i[1].toUpperCase(), o = TP(a, t.start.date() ?? t.refDate ?? /* @__PURE__ */ new Date(), {
44427
+ let a = i[1].toUpperCase(), o = EP(a, t.start.date() ?? t.refDate ?? /* @__PURE__ */ new Date(), {
44426
44428
  ...this.timezoneOverrides,
44427
44429
  ...n
44428
44430
  });
@@ -44434,20 +44436,20 @@ var iI = class extends $F {
44434
44436
  s !== null && o != s && (t.start.isCertain("timezoneOffset") || a != i[1]) || t.start.isOnlyDate() && a != i[1] || (t.text += i[0], t.start.isCertain("timezoneOffset") || t.start.assign("timezoneOffset", o), t.end != null && !t.end.isCertain("timezoneOffset") && t.end.assign("timezoneOffset", o));
44435
44437
  }), t;
44436
44438
  }
44437
- }, cI = /* @__PURE__ */ RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?", "i"), lI = 1, uI = 2, dI = 3, fI = class {
44439
+ }, lI = /* @__PURE__ */ RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?", "i"), uI = 1, dI = 2, fI = 3, pI = class {
44438
44440
  refine(e, t) {
44439
44441
  return t.forEach(function(t) {
44440
44442
  if (t.start.isCertain("timezoneOffset")) return;
44441
- let n = e.text.substring(t.index + t.text.length), r = cI.exec(n);
44443
+ let n = e.text.substring(t.index + t.text.length), r = lI.exec(n);
44442
44444
  if (!r) return;
44443
44445
  e.debug(() => {
44444
44446
  console.log(`Extracting timezone: '${r[0]}' into : ${t}`);
44445
44447
  });
44446
- let i = parseInt(r[uI]), a = parseInt(r[dI] || "0"), o = i * 60 + a;
44447
- o > 840 || (r[lI] === "-" && (o = -o), t.end != null && t.end.assign("timezoneOffset", o), t.start.assign("timezoneOffset", o), t.text += r[0]);
44448
+ let i = parseInt(r[dI]), a = parseInt(r[fI] || "0"), o = i * 60 + a;
44449
+ o > 840 || (r[uI] === "-" && (o = -o), t.end != null && t.end.assign("timezoneOffset", o), t.start.assign("timezoneOffset", o), t.text += r[0]);
44448
44450
  }), t;
44449
44451
  }
44450
- }, pI = class {
44452
+ }, mI = class {
44451
44453
  refine(e, t) {
44452
44454
  if (t.length < 2) return t;
44453
44455
  let n = [], r = t[0];
@@ -44467,50 +44469,50 @@ var iI = class extends $F {
44467
44469
  };
44468
44470
  //#endregion
44469
44471
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/calculation/weekdays.js
44470
- function mI(e, t, n) {
44471
- let r = hI(e.getDateWithAdjustedTimezone(), t, n), i = new AP(e);
44472
+ function hI(e, t, n) {
44473
+ let r = gI(e.getDateWithAdjustedTimezone(), t, n), i = new jP(e);
44472
44474
  return i = i.addDurationAsImplied({ day: r }), i.assign("weekday", t), i;
44473
44475
  }
44474
- function hI(e, t, n) {
44476
+ function gI(e, t, n) {
44475
44477
  let r = e.getDay();
44476
44478
  switch (n) {
44477
- case "this": return _I(e, t);
44478
- case "last": return vI(e, t);
44479
- case "next": return r == gP.SUNDAY ? t == gP.SUNDAY ? 7 : t : r == gP.SATURDAY ? t == gP.SATURDAY ? 7 : t == gP.SUNDAY ? 8 : 1 + t : t < r && t != gP.SUNDAY ? _I(e, t) : _I(e, t) + 7;
44479
+ case "this": return vI(e, t);
44480
+ case "last": return yI(e, t);
44481
+ case "next": return r == _P.SUNDAY ? t == _P.SUNDAY ? 7 : t : r == _P.SATURDAY ? t == _P.SATURDAY ? 7 : t == _P.SUNDAY ? 8 : 1 + t : t < r && t != _P.SUNDAY ? vI(e, t) : vI(e, t) + 7;
44480
44482
  }
44481
- return gI(e, t);
44483
+ return _I(e, t);
44482
44484
  }
44483
- function gI(e, t) {
44484
- let n = vI(e, t), r = _I(e, t);
44485
+ function _I(e, t) {
44486
+ let n = yI(e, t), r = vI(e, t);
44485
44487
  return r < -n ? r : n;
44486
44488
  }
44487
- function _I(e, t) {
44489
+ function vI(e, t) {
44488
44490
  let n = t - e.getDay();
44489
44491
  return n < 0 && (n += 7), n;
44490
44492
  }
44491
- function vI(e, t) {
44493
+ function yI(e, t) {
44492
44494
  let n = t - e.getDay();
44493
44495
  return n >= 0 && (n -= 7), n;
44494
44496
  }
44495
44497
  //#endregion
44496
44498
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/common/refiners/ForwardDateRefiner.js
44497
- var yI = class {
44499
+ var bI = class {
44498
44500
  refine(e, t) {
44499
44501
  return e.option.forwardDate && t.forEach((t) => {
44500
44502
  let n = e.reference.getDateWithAdjustedTimezone();
44501
44503
  if (t.start.isOnlyTime() && e.reference.instant > t.start.date()) {
44502
44504
  let n = e.reference.getDateWithAdjustedTimezone(), r = new Date(n);
44503
- r.setDate(r.getDate() + 1), bP(t.start, r), e.debug(() => {
44505
+ r.setDate(r.getDate() + 1), xP(t.start, r), e.debug(() => {
44504
44506
  console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`);
44505
- }), t.end && t.end.isOnlyTime() && (bP(t.end, r), t.start.date() > t.end.date() && (r.setDate(r.getDate() + 1), bP(t.end, r)));
44507
+ }), t.end && t.end.isOnlyTime() && (xP(t.end, r), t.start.date() > t.end.date() && (r.setDate(r.getDate() + 1), xP(t.end, r)));
44506
44508
  }
44507
44509
  if (t.start.isOnlyWeekdayComponent() && n > t.start.date()) {
44508
- let r = DP(n, { day: _I(n, t.start.get("weekday")) || 7 });
44509
- if (bP(t.start, r), e.debug(() => {
44510
+ let r = OP(n, { day: vI(n, t.start.get("weekday")) || 7 });
44511
+ if (xP(t.start, r), e.debug(() => {
44510
44512
  console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`);
44511
44513
  }), t.end && t.start.date() > t.end.date()) {
44512
- let r = DP(n, { day: _I(n, t.start.get("weekday")) || 7 });
44513
- bP(t.end, r), e.debug(() => {
44514
+ let r = OP(n, { day: vI(n, t.start.get("weekday")) || 7 });
44515
+ xP(t.end, r), e.debug(() => {
44514
44516
  console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`);
44515
44517
  });
44516
44518
  }
@@ -44522,7 +44524,7 @@ var yI = class {
44522
44524
  }));
44523
44525
  }), t;
44524
44526
  }
44525
- }, bI = class extends QF {
44527
+ }, xI = class extends $F {
44526
44528
  strictMode;
44527
44529
  constructor(e) {
44528
44530
  super(), this.strictMode = e;
@@ -44541,27 +44543,27 @@ var yI = class {
44541
44543
  console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`);
44542
44544
  }), !1) : !0;
44543
44545
  }
44544
- }, xI = /* @__PURE__ */ RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)", "i"), SI = 1, CI = 2, wI = 3, TI = 4, EI = 5, DI = 6, OI = 7, kI = 8, AI = 9, jI = 10, MI = class extends iF {
44546
+ }, SI = /* @__PURE__ */ RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)", "i"), CI = 1, wI = 2, TI = 3, EI = 4, DI = 5, OI = 6, kI = 7, AI = 8, jI = 9, MI = 10, NI = class extends aF {
44545
44547
  innerPattern() {
44546
- return xI;
44548
+ return SI;
44547
44549
  }
44548
44550
  innerExtract(e, t) {
44549
44551
  let n = e.createParsingComponents({
44550
- year: parseInt(t[SI]),
44551
- month: parseInt(t[CI]),
44552
- day: parseInt(t[wI])
44552
+ year: parseInt(t[CI]),
44553
+ month: parseInt(t[wI]),
44554
+ day: parseInt(t[TI])
44553
44555
  });
44554
- if (t[TI] != null && (n.assign("hour", parseInt(t[TI])), n.assign("minute", parseInt(t[EI])), t[DI] != null && n.assign("second", parseInt(t[DI])), t[OI] != null && n.assign("millisecond", parseInt(t[OI])), t[kI] != null)) {
44556
+ if (t[EI] != null && (n.assign("hour", parseInt(t[EI])), n.assign("minute", parseInt(t[DI])), t[OI] != null && n.assign("second", parseInt(t[OI])), t[kI] != null && n.assign("millisecond", parseInt(t[kI])), t[AI] != null)) {
44555
44557
  let e = 0;
44556
- if (t[AI]) {
44557
- let n = parseInt(t[AI]), r = 0;
44558
- t[jI] != null && (r = parseInt(t[jI])), e = n * 60, e < 0 ? e -= r : e += r;
44558
+ if (t[jI]) {
44559
+ let n = parseInt(t[jI]), r = 0;
44560
+ t[MI] != null && (r = parseInt(t[MI])), e = n * 60, e < 0 ? e -= r : e += r;
44559
44561
  }
44560
44562
  n.assign("timezoneOffset", e);
44561
44563
  }
44562
44564
  return n.addTag("parser/ISOFormatParser");
44563
44565
  }
44564
- }, NI = class extends $F {
44566
+ }, PI = class extends eI {
44565
44567
  mergeResults(e, t, n) {
44566
44568
  let r = n.clone();
44567
44569
  return r.index = t.index, r.text = t.text + e + r.text, r.start.assign("weekday", t.start.get("weekday")), r.end && r.end.assign("weekday", t.start.get("weekday")), r;
@@ -44572,84 +44574,84 @@ var yI = class {
44572
44574
  };
44573
44575
  //#endregion
44574
44576
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/configurations.js
44575
- function PI(e, t = !1) {
44576
- return e.parsers.unshift(new MI()), e.refiners.unshift(new NI()), e.refiners.unshift(new fI()), e.refiners.unshift(new pI()), e.refiners.push(new sI()), e.refiners.push(new pI()), e.refiners.push(new yI()), e.refiners.push(new bI(t)), e;
44577
+ function FI(e, t = !1) {
44578
+ return e.parsers.unshift(new NI()), e.refiners.unshift(new PI()), e.refiners.unshift(new pI()), e.refiners.unshift(new mI()), e.refiners.push(new cI()), e.refiners.push(new mI()), e.refiners.push(new bI()), e.refiners.push(new xI(t)), e;
44577
44579
  }
44578
44580
  //#endregion
44579
44581
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/common/casualReferences.js
44580
- function FI(e) {
44581
- let t = e.getDateWithAdjustedTimezone(), n = new AP(e, {});
44582
- return vP(n, t), yP(n, t), n.assign("timezoneOffset", e.getTimezoneOffset()), n.addTag("casualReference/now"), n;
44583
- }
44584
44582
  function II(e) {
44585
- let t = e.getDateWithAdjustedTimezone(), n = new AP(e, {});
44586
- return vP(n, t), xP(n, t), n.delete("meridiem"), n.addTag("casualReference/today"), n;
44583
+ let t = e.getDateWithAdjustedTimezone(), n = new jP(e, {});
44584
+ return yP(n, t), bP(n, t), n.assign("timezoneOffset", e.getTimezoneOffset()), n.addTag("casualReference/now"), n;
44587
44585
  }
44588
44586
  function LI(e) {
44589
- return zI(e, 1).addTag("casualReference/yesterday");
44587
+ let t = e.getDateWithAdjustedTimezone(), n = new jP(e, {});
44588
+ return yP(n, t), SP(n, t), n.delete("meridiem"), n.addTag("casualReference/today"), n;
44590
44589
  }
44591
44590
  function RI(e) {
44592
- return BI(e, 1).addTag("casualReference/tomorrow");
44591
+ return BI(e, 1).addTag("casualReference/yesterday");
44593
44592
  }
44594
- function zI(e, t) {
44595
- return BI(e, -t);
44593
+ function zI(e) {
44594
+ return VI(e, 1).addTag("casualReference/tomorrow");
44596
44595
  }
44597
44596
  function BI(e, t) {
44598
- let n = e.getDateWithAdjustedTimezone(), r = new AP(e, {}), i = new Date(n.getTime());
44599
- return i.setDate(i.getDate() + t), vP(r, i), xP(r, i), r.delete("meridiem"), r;
44597
+ return VI(e, -t);
44598
+ }
44599
+ function VI(e, t) {
44600
+ let n = e.getDateWithAdjustedTimezone(), r = new jP(e, {}), i = new Date(n.getTime());
44601
+ return i.setDate(i.getDate() + t), yP(r, i), SP(r, i), r.delete("meridiem"), r;
44600
44602
  }
44601
- function VI(e, t = 22) {
44602
- let n = e.getDateWithAdjustedTimezone(), r = new AP(e, {});
44603
- return vP(r, n), r.imply("hour", t), r.imply("meridiem", hP.PM), r.addTag("casualReference/tonight"), r;
44603
+ function HI(e, t = 22) {
44604
+ let n = e.getDateWithAdjustedTimezone(), r = new jP(e, {});
44605
+ return yP(r, n), r.imply("hour", t), r.imply("meridiem", gP.PM), r.addTag("casualReference/tonight"), r;
44604
44606
  }
44605
- function HI(e, t = 20) {
44606
- let n = new AP(e, {});
44607
- return n.imply("meridiem", hP.PM), n.imply("hour", t), n.addTag("casualReference/evening"), n;
44607
+ function UI(e, t = 20) {
44608
+ let n = new jP(e, {});
44609
+ return n.imply("meridiem", gP.PM), n.imply("hour", t), n.addTag("casualReference/evening"), n;
44608
44610
  }
44609
- function UI(e) {
44610
- let t = new AP(e, {});
44611
+ function WI(e) {
44612
+ let t = new jP(e, {});
44611
44613
  return e.getDateWithAdjustedTimezone().getHours() > 2 && t.addDurationAsImplied({ day: 1 }), t.assign("hour", 0), t.imply("minute", 0), t.imply("second", 0), t.imply("millisecond", 0), t.addTag("casualReference/midnight"), t;
44612
44614
  }
44613
- function WI(e, t = 6) {
44614
- let n = new AP(e, {});
44615
- return n.imply("meridiem", hP.AM), n.imply("hour", t), n.imply("minute", 0), n.imply("second", 0), n.imply("millisecond", 0), n.addTag("casualReference/morning"), n;
44615
+ function GI(e, t = 6) {
44616
+ let n = new jP(e, {});
44617
+ return n.imply("meridiem", gP.AM), n.imply("hour", t), n.imply("minute", 0), n.imply("second", 0), n.imply("millisecond", 0), n.addTag("casualReference/morning"), n;
44616
44618
  }
44617
- function GI(e, t = 15) {
44618
- let n = new AP(e, {});
44619
- return n.imply("meridiem", hP.PM), n.imply("hour", t), n.imply("minute", 0), n.imply("second", 0), n.imply("millisecond", 0), n.addTag("casualReference/afternoon"), n;
44619
+ function KI(e, t = 15) {
44620
+ let n = new jP(e, {});
44621
+ return n.imply("meridiem", gP.PM), n.imply("hour", t), n.imply("minute", 0), n.imply("second", 0), n.imply("millisecond", 0), n.addTag("casualReference/afternoon"), n;
44620
44622
  }
44621
- function KI(e) {
44622
- let t = new AP(e, {});
44623
- return t.imply("meridiem", hP.AM), t.assign("hour", 12), t.imply("minute", 0), t.imply("second", 0), t.imply("millisecond", 0), t.addTag("casualReference/noon"), t;
44623
+ function qI(e) {
44624
+ let t = new jP(e, {});
44625
+ return t.imply("meridiem", gP.AM), t.assign("hour", 12), t.imply("minute", 0), t.imply("second", 0), t.imply("millisecond", 0), t.addTag("casualReference/noon"), t;
44624
44626
  }
44625
44627
  //#endregion
44626
44628
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/locales/en/parsers/ENCasualDateParser.js
44627
- var qI = /(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i, JI = class extends iF {
44629
+ var JI = /(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i, YI = class extends aF {
44628
44630
  innerPattern(e) {
44629
- return qI;
44631
+ return JI;
44630
44632
  }
44631
44633
  innerExtract(e, t) {
44632
44634
  let n = e.refDate, r = t[0].toLowerCase(), i = e.createParsingComponents();
44633
44635
  switch (r) {
44634
44636
  case "now":
44635
- i = FI(e.reference);
44637
+ i = II(e.reference);
44636
44638
  break;
44637
44639
  case "today":
44638
- i = II(e.reference);
44640
+ i = LI(e.reference);
44639
44641
  break;
44640
44642
  case "yesterday":
44641
- i = LI(e.reference);
44643
+ i = RI(e.reference);
44642
44644
  break;
44643
44645
  case "tomorrow":
44644
44646
  case "tmr":
44645
44647
  case "tmrw":
44646
- i = RI(e.reference);
44648
+ i = zI(e.reference);
44647
44649
  break;
44648
44650
  case "tonight":
44649
- i = VI(e.reference);
44651
+ i = HI(e.reference);
44650
44652
  break;
44651
44653
  case "overmorrow":
44652
- i = BI(e.reference, 2);
44654
+ i = VI(e.reference, 2);
44653
44655
  break;
44654
44656
  default:
44655
44657
  if (r.match(/last\s*night/)) {
@@ -44657,176 +44659,176 @@ var qI = /(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night
44657
44659
  let e = new Date(n.getTime());
44658
44660
  e.setDate(e.getDate() - 1), n = e;
44659
44661
  }
44660
- vP(i, n), i.imply("hour", 0);
44662
+ yP(i, n), i.imply("hour", 0);
44661
44663
  }
44662
44664
  break;
44663
44665
  }
44664
44666
  return i.addTag("parser/ENCasualDateParser"), i;
44665
44667
  }
44666
- }, YI = /(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i, XI = class extends iF {
44668
+ }, XI = /(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i, ZI = class extends aF {
44667
44669
  innerPattern() {
44668
- return YI;
44670
+ return XI;
44669
44671
  }
44670
44672
  innerExtract(e, t) {
44671
44673
  let n = null;
44672
44674
  switch (t[1].toLowerCase()) {
44673
44675
  case "afternoon":
44674
- n = GI(e.reference);
44676
+ n = KI(e.reference);
44675
44677
  break;
44676
44678
  case "evening":
44677
44679
  case "night":
44678
- n = HI(e.reference);
44680
+ n = UI(e.reference);
44679
44681
  break;
44680
44682
  case "midnight":
44681
- n = UI(e.reference);
44683
+ n = WI(e.reference);
44682
44684
  break;
44683
44685
  case "morning":
44684
- n = WI(e.reference);
44686
+ n = GI(e.reference);
44685
44687
  break;
44686
44688
  case "noon":
44687
44689
  case "midday":
44688
- n = KI(e.reference);
44690
+ n = qI(e.reference);
44689
44691
  break;
44690
44692
  }
44691
44693
  return n && n.addTag("parser/ENCasualTimeParser"), n;
44692
44694
  }
44693
- }, ZI = RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${PP(LP)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|\$)`, "i"), QI = 1, $I = 2, eL = 3, tL = class extends iF {
44695
+ }, QI = RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${FP(RP)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|\$)`, "i"), $I = 1, eL = 2, tL = 3, nL = class extends aF {
44694
44696
  innerPattern() {
44695
- return ZI;
44697
+ return QI;
44696
44698
  }
44697
44699
  innerExtract(e, t) {
44698
- let n = t[QI], r = t[eL], i = n || r;
44700
+ let n = t[$I], r = t[tL], i = n || r;
44699
44701
  i ||= "", i = i.toLowerCase();
44700
44702
  let a = null;
44701
44703
  i == "last" || i == "past" ? a = "last" : i == "next" ? a = "next" : i == "this" && (a = "this");
44702
- let o = t[$I].toLowerCase(), s;
44703
- if (LP[o] !== void 0) s = LP[o];
44704
- else if (o == "weekend") s = a == "last" ? gP.SUNDAY : gP.SATURDAY;
44704
+ let o = t[eL].toLowerCase(), s;
44705
+ if (RP[o] !== void 0) s = RP[o];
44706
+ else if (o == "weekend") s = a == "last" ? _P.SUNDAY : _P.SATURDAY;
44705
44707
  else if (o == "weekday") {
44706
44708
  let t = e.reference.getDateWithAdjustedTimezone().getDay();
44707
- t == gP.SUNDAY || t == gP.SATURDAY ? s = a == "last" ? gP.FRIDAY : gP.MONDAY : (s = t - 1, s = a == "last" ? s - 1 : s + 1, s = s % 5 + 1);
44709
+ t == _P.SUNDAY || t == _P.SATURDAY ? s = a == "last" ? _P.FRIDAY : _P.MONDAY : (s = t - 1, s = a == "last" ? s - 1 : s + 1, s = s % 5 + 1);
44708
44710
  } else return null;
44709
- return mI(e.reference, s, a);
44711
+ return hI(e.reference, s, a);
44710
44712
  }
44711
- }, nL = RegExp(`(this|last|past|next|after\\s*this)\\s*(${PP(UP)})(?=\\s*)(?=\\W|\$)`, "i"), rL = 1, iL = 2, aL = class extends iF {
44713
+ }, rL = RegExp(`(this|last|past|next|after\\s*this)\\s*(${FP(WP)})(?=\\s*)(?=\\W|\$)`, "i"), iL = 1, aL = 2, oL = class extends aF {
44712
44714
  innerPattern() {
44713
- return nL;
44715
+ return rL;
44714
44716
  }
44715
44717
  innerExtract(e, t) {
44716
- let n = t[rL].toLowerCase(), r = t[iL].toLowerCase(), i = UP[r];
44718
+ let n = t[iL].toLowerCase(), r = t[aL].toLowerCase(), i = WP[r];
44717
44719
  if (n == "next" || n.startsWith("after")) {
44718
44720
  let t = {};
44719
- return t[i] = 1, AP.createRelativeFromReference(e.reference, t);
44721
+ return t[i] = 1, jP.createRelativeFromReference(e.reference, t);
44720
44722
  }
44721
44723
  if (n == "last" || n == "past") {
44722
44724
  let t = {};
44723
- return t[i] = -1, AP.createRelativeFromReference(e.reference, t);
44725
+ return t[i] = -1, jP.createRelativeFromReference(e.reference, t);
44724
44726
  }
44725
44727
  let a = e.createParsingComponents(), o = new Date(e.reference.instant.getTime());
44726
44728
  return r.match(/week/i) ? (o.setDate(o.getDate() - o.getDay()), a.imply("day", o.getDate()), a.imply("month", o.getMonth() + 1), a.imply("year", o.getFullYear())) : r.match(/month/i) ? (o.setDate(1), a.imply("day", o.getDate()), a.assign("year", o.getFullYear()), a.assign("month", o.getMonth() + 1)) : r.match(/year/i) && (o.setDate(1), o.setMonth(0), a.imply("day", o.getDate()), a.imply("month", o.getMonth() + 1), a.assign("year", o.getFullYear())), a;
44727
44729
  }
44728
- }, oL = /* @__PURE__ */ RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)", "i"), sL = 1, cL = 5, lL = 2, uL = 3, dL = 4, fL = class {
44730
+ }, sL = /* @__PURE__ */ RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)", "i"), cL = 1, lL = 5, uL = 2, dL = 3, fL = 4, pL = class {
44729
44731
  groupNumberMonth;
44730
44732
  groupNumberDay;
44731
44733
  constructor(e) {
44732
- this.groupNumberMonth = e ? uL : lL, this.groupNumberDay = e ? lL : uL;
44734
+ this.groupNumberMonth = e ? dL : uL, this.groupNumberDay = e ? uL : dL;
44733
44735
  }
44734
44736
  pattern() {
44735
- return oL;
44737
+ return sL;
44736
44738
  }
44737
44739
  extract(e, t) {
44738
- let n = t.index + t[sL].length, r = t.index + t[0].length - t[cL].length;
44740
+ let n = t.index + t[cL].length, r = t.index + t[0].length - t[lL].length;
44739
44741
  if (n > 0 && e.text.substring(0, n).match("\\d/?$") || r < e.text.length && e.text.substring(r).match("^/?\\d")) return;
44740
44742
  let i = e.text.substring(n, r);
44741
- if (i.match(/^\d\.\d$/) || i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/) || !t[dL] && i.indexOf("/") < 0) return;
44743
+ if (i.match(/^\d\.\d$/) || i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/) || !t[fL] && i.indexOf("/") < 0) return;
44742
44744
  let a = e.createParsingResult(n, i), o = parseInt(t[this.groupNumberMonth]), s = parseInt(t[this.groupNumberDay]);
44743
44745
  if ((o < 1 || o > 12) && o > 12) if (s >= 1 && s <= 12 && o <= 31) [s, o] = [o, s];
44744
44746
  else return null;
44745
44747
  if (s < 1 || s > 31) return null;
44746
- if (a.start.assign("day", s), a.start.assign("month", o), t[dL]) {
44747
- let e = FP(parseInt(t[dL]));
44748
+ if (a.start.assign("day", s), a.start.assign("month", o), t[fL]) {
44749
+ let e = IP(parseInt(t[fL]));
44748
44750
  a.start.assign("year", e);
44749
44751
  } else {
44750
- let t = IP(e.refDate, s, o);
44752
+ let t = LP(e.refDate, s, o);
44751
44753
  a.start.imply("year", t);
44752
44754
  }
44753
44755
  return a.addTag("parser/SlashDateFormatParser");
44754
44756
  }
44755
- }, pL = RegExp(`(this|last|past|next|after|\\+|-)\\s*(${eF})(?=\\W|$)`, "i"), mL = RegExp(`(this|last|past|next|after|\\+|-)\\s*(${tF})(?=\\W|$)`, "i"), hL = class extends iF {
44757
+ }, mL = RegExp(`(this|last|past|next|after|\\+|-)\\s*(${tF})(?=\\W|$)`, "i"), hL = RegExp(`(this|last|past|next|after|\\+|-)\\s*(${nF})(?=\\W|$)`, "i"), gL = class extends aF {
44756
44758
  allowAbbreviations;
44757
44759
  constructor(e = !0) {
44758
44760
  super(), this.allowAbbreviations = e;
44759
44761
  }
44760
44762
  innerPattern() {
44761
- return this.allowAbbreviations ? pL : mL;
44763
+ return this.allowAbbreviations ? mL : hL;
44762
44764
  }
44763
44765
  innerExtract(e, t) {
44764
- let n = t[1].toLowerCase(), r = nF(t[2]);
44766
+ let n = t[1].toLowerCase(), r = rF(t[2]);
44765
44767
  if (!r) return null;
44766
44768
  switch (n) {
44767
44769
  case "last":
44768
44770
  case "past":
44769
44771
  case "-":
44770
- r = OP(r);
44772
+ r = kP(r);
44771
44773
  break;
44772
44774
  }
44773
- return AP.createRelativeFromReference(e.reference, r);
44775
+ return jP.createRelativeFromReference(e.reference, r);
44774
44776
  }
44775
44777
  };
44776
44778
  //#endregion
44777
44779
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeRelativeAfterDateRefiner.js
44778
- function gL(e) {
44780
+ function _L(e) {
44779
44781
  return e.text.match(/^[+-]/i) != null;
44780
44782
  }
44781
- function _L(e) {
44783
+ function vL(e) {
44782
44784
  return e.text.match(/^-/i) != null;
44783
44785
  }
44784
- var vL = class extends $F {
44786
+ var yL = class extends eI {
44785
44787
  shouldMergeResults(e, t, n) {
44786
- return e.match(/^\s*$/i) ? gL(n) || _L(n) : !1;
44788
+ return e.match(/^\s*$/i) ? _L(n) || vL(n) : !1;
44787
44789
  }
44788
44790
  mergeResults(e, t, n, r) {
44789
- let i = nF(n.text);
44790
- _L(n) && (i = OP(i));
44791
- let a = AP.createRelativeFromReference(kP.fromDate(t.start.date()), i);
44792
- return new jP(t.reference, t.index, `${t.text}${e}${n.text}`, a);
44791
+ let i = rF(n.text);
44792
+ vL(n) && (i = kP(i));
44793
+ let a = jP.createRelativeFromReference(AP.fromDate(t.start.date()), i);
44794
+ return new MP(t.reference, t.index, `${t.text}${e}${n.text}`, a);
44793
44795
  }
44794
44796
  };
44795
44797
  //#endregion
44796
44798
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeRelativeFollowByDateRefiner.js
44797
- function yL(e) {
44799
+ function bL(e) {
44798
44800
  return e.text.match(/\s+(before|from)$/i) != null;
44799
44801
  }
44800
- function bL(e) {
44802
+ function xL(e) {
44801
44803
  return e.text.match(/\s+(after|since)$/i) != null;
44802
44804
  }
44803
- var xL = class extends $F {
44805
+ var SL = class extends eI {
44804
44806
  patternBetween() {
44805
44807
  return /^\s*$/i;
44806
44808
  }
44807
44809
  shouldMergeResults(e, t, n) {
44808
- return !e.match(this.patternBetween()) || !yL(t) && !bL(t) ? !1 : !!n.start.get("day") && !!n.start.get("month") && !!n.start.get("year");
44810
+ return !e.match(this.patternBetween()) || !bL(t) && !xL(t) ? !1 : !!n.start.get("day") && !!n.start.get("month") && !!n.start.get("year");
44809
44811
  }
44810
44812
  mergeResults(e, t, n) {
44811
- let r = nF(t.text);
44812
- yL(t) && (r = OP(r));
44813
- let i = AP.createRelativeFromReference(kP.fromDate(n.start.date()), r);
44814
- return new jP(n.reference, t.index, `${t.text}${e}${n.text}`, i);
44813
+ let r = rF(t.text);
44814
+ bL(t) && (r = kP(r));
44815
+ let i = jP.createRelativeFromReference(AP.fromDate(n.start.date()), r);
44816
+ return new MP(n.reference, t.index, `${t.text}${e}${n.text}`, i);
44815
44817
  }
44816
- }, SL = RegExp(`^\\s*(${JP})`, "i"), CL = 1, wL = class {
44818
+ }, CL = RegExp(`^\\s*(${YP})`, "i"), wL = 1, TL = class {
44817
44819
  refine(e, t) {
44818
44820
  return t.forEach(function(t) {
44819
44821
  if (!t.start.isDateWithUnknownYear()) return;
44820
- let n = e.text.substring(t.index + t.text.length), r = SL.exec(n);
44822
+ let n = e.text.substring(t.index + t.text.length), r = CL.exec(n);
44821
44823
  if (!r || r[0].trim().length <= 3) return;
44822
44824
  e.debug(() => {
44823
44825
  console.log(`Extracting year: '${r[0]}' into : ${t}`);
44824
44826
  });
44825
- let i = YP(r[CL]);
44827
+ let i = XP(r[wL]);
44826
44828
  t.end != null && t.end.assign("year", i), t.start.assign("year", i), t.text += r[0];
44827
44829
  }), t;
44828
44830
  }
44829
- }, TL = class extends QF {
44831
+ }, EL = class extends $F {
44830
44832
  constructor() {
44831
44833
  super();
44832
44834
  }
@@ -44838,32 +44840,32 @@ var xL = class extends $F {
44838
44840
  console.log(`Removing unlikely result: ${t}`);
44839
44841
  }), !1) : !0;
44840
44842
  }
44841
- }, EL = class {
44843
+ }, DL = class {
44842
44844
  createCasualConfiguration(e = !1) {
44843
44845
  let t = this.createConfiguration(!1, e);
44844
- return t.parsers.push(new JI()), t.parsers.push(new XI()), t.parsers.push(new TF()), t.parsers.push(new aL()), t.parsers.push(new hL()), t.refiners.push(new TL()), t;
44846
+ return t.parsers.push(new YI()), t.parsers.push(new ZI()), t.parsers.push(new EF()), t.parsers.push(new oL()), t.parsers.push(new gL()), t.refiners.push(new EL()), t;
44845
44847
  }
44846
44848
  createConfiguration(e = !0, t = !1) {
44847
- let n = PI({
44849
+ let n = FI({
44848
44850
  parsers: [
44849
- new fL(t),
44850
- new cF(e),
44851
- new mF(),
44852
- new bF(t),
44853
- new tL(),
44854
- new FF(),
44855
- new WF(e),
44856
- new qF(e),
44857
- new ZF(e)
44851
+ new pL(t),
44852
+ new lF(e),
44853
+ new hF(),
44854
+ new xF(t),
44855
+ new nL(),
44856
+ new IF(),
44857
+ new GF(e),
44858
+ new JF(e),
44859
+ new QF(e)
44858
44860
  ],
44859
- refiners: [new aI()]
44861
+ refiners: [new oI()]
44860
44862
  }, e);
44861
- return n.parsers.unshift(new jF(e)), n.refiners.unshift(new xL()), n.refiners.unshift(new vL()), n.refiners.unshift(new pI()), n.refiners.push(new aI()), n.refiners.push(new wL()), n.refiners.push(new tI()), n;
44863
+ return n.parsers.unshift(new MF(e)), n.refiners.unshift(new SL()), n.refiners.unshift(new yL()), n.refiners.unshift(new mI()), n.refiners.push(new oI()), n.refiners.push(new TL()), n.refiners.push(new nI()), n;
44862
44864
  }
44863
- }, DL = class e {
44865
+ }, OL = class e {
44864
44866
  parsers;
44865
44867
  refiners;
44866
- defaultConfig = new EL();
44868
+ defaultConfig = new DL();
44867
44869
  constructor(e) {
44868
44870
  e ||= this.defaultConfig.createCasualConfiguration(), this.parsers = [...e.parsers], this.refiners = [...e.refiners];
44869
44871
  }
@@ -44878,7 +44880,7 @@ var xL = class extends $F {
44878
44880
  return r.length > 0 ? r[0].start.date() : null;
44879
44881
  }
44880
44882
  parse(t, n, r) {
44881
- let i = new OL(t, n, r), a = [];
44883
+ let i = new kL(t, n, r), a = [];
44882
44884
  return this.parsers.forEach((t) => {
44883
44885
  let n = e.executeParser(i, t);
44884
44886
  a = a.concat(n);
@@ -44897,31 +44899,31 @@ var xL = class extends $F {
44897
44899
  continue;
44898
44900
  }
44899
44901
  let l = null;
44900
- c instanceof jP ? l = c : c instanceof AP ? (l = e.createParsingResult(o.index, o[0]), l.start = c) : l = e.createParsingResult(o.index, o[0], c);
44902
+ c instanceof MP ? l = c : c instanceof jP ? (l = e.createParsingResult(o.index, o[0]), l.start = c) : l = e.createParsingResult(o.index, o[0], c);
44901
44903
  let u = l.index, d = l.text;
44902
44904
  e.debug(() => console.log(`${t.constructor.name} extracted (at index=${u}) '${d}'`)), n.push(l), a = i.substring(u + d.length), o = r.exec(a);
44903
44905
  }
44904
44906
  return n;
44905
44907
  }
44906
- }, OL = class {
44908
+ }, kL = class {
44907
44909
  text;
44908
44910
  option;
44909
44911
  reference;
44910
44912
  refDate;
44911
44913
  constructor(e, t, n) {
44912
- this.text = e, this.option = n ?? {}, this.reference = kP.fromInput(t, this.option.timezones), this.refDate = this.reference.instant;
44914
+ this.text = e, this.option = n ?? {}, this.reference = AP.fromInput(t, this.option.timezones), this.refDate = this.reference.instant;
44913
44915
  }
44914
44916
  createParsingComponents(e) {
44915
- return e instanceof AP ? e : new AP(this.reference, e);
44917
+ return e instanceof jP ? e : new jP(this.reference, e);
44916
44918
  }
44917
44919
  createParsingResult(e, t, n, r) {
44918
44920
  let i = typeof t == "string" ? t : this.text.substring(e, t), a = n ? this.createParsingComponents(n) : null, o = r ? this.createParsingComponents(r) : null;
44919
- return new jP(this.reference, e, i, a, o);
44921
+ return new MP(this.reference, e, i, a, o);
44920
44922
  }
44921
44923
  debug(e) {
44922
44924
  this.option.debug && (this.option.debug instanceof Function ? this.option.debug(e) : this.option.debug.debug(e));
44923
44925
  }
44924
- }, kL = {
44926
+ }, AL = {
44925
44927
  零: 0,
44926
44928
  〇: 0,
44927
44929
  一: 1,
@@ -44935,7 +44937,7 @@ var xL = class extends $F {
44935
44937
  八: 8,
44936
44938
  九: 9,
44937
44939
  十: 10
44938
- }, AL = {
44940
+ }, jL = {
44939
44941
  天: 0,
44940
44942
  日: 0,
44941
44943
  一: 1,
@@ -44945,68 +44947,68 @@ var xL = class extends $F {
44945
44947
  五: 5,
44946
44948
  六: 6
44947
44949
  };
44948
- function jL(e) {
44950
+ function ML(e) {
44949
44951
  let t = 0;
44950
44952
  for (let n = 0; n < e.length; n++) {
44951
44953
  let r = e[n];
44952
- r === "十" ? t = t === 0 ? kL[r] : t * kL[r] : t += kL[r];
44954
+ r === "十" ? t = t === 0 ? AL[r] : t * AL[r] : t += AL[r];
44953
44955
  }
44954
44956
  return t;
44955
44957
  }
44956
- function ML(e) {
44958
+ function NL(e) {
44957
44959
  let t = "";
44958
44960
  for (let n = 0; n < e.length; n++) {
44959
44961
  let r = e[n];
44960
- t += kL[r];
44962
+ t += AL[r];
44961
44963
  }
44962
44964
  return parseInt(t);
44963
44965
  }
44964
44966
  //#endregion
44965
44967
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js
44966
- var NL = 1, PL = 2, FL = 3, IL = class extends iF {
44968
+ var PL = 1, FL = 2, IL = 3, LL = class extends aF {
44967
44969
  innerPattern() {
44968
- return RegExp("(\\d{2,4}|[" + Object.keys(kL).join("") + "]{4}|[" + Object.keys(kL).join("") + "]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[" + Object.keys(kL).join("") + "]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[" + Object.keys(kL).join("") + "]{1,3})?(?:\\s*)(?:日|号)?");
44970
+ return RegExp("(\\d{2,4}|[" + Object.keys(AL).join("") + "]{4}|[" + Object.keys(AL).join("") + "]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[" + Object.keys(AL).join("") + "]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[" + Object.keys(AL).join("") + "]{1,3})?(?:\\s*)(?:日|号)?");
44969
44971
  }
44970
44972
  innerExtract(e, t) {
44971
- let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[PL]);
44972
- if (isNaN(r) && (r = jL(t[PL])), n.start.assign("month", r), t[FL]) {
44973
- let e = parseInt(t[FL]);
44974
- isNaN(e) && (e = jL(t[FL])), n.start.assign("day", e);
44973
+ let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[FL]);
44974
+ if (isNaN(r) && (r = ML(t[FL])), n.start.assign("month", r), t[IL]) {
44975
+ let e = parseInt(t[IL]);
44976
+ isNaN(e) && (e = ML(t[IL])), n.start.assign("day", e);
44975
44977
  } else n.start.imply("day", e.refDate.getDate());
44976
- if (t[NL]) {
44977
- let e = parseInt(t[NL]);
44978
- isNaN(e) && (e = ML(t[NL])), n.start.assign("year", e);
44978
+ if (t[PL]) {
44979
+ let e = parseInt(t[PL]);
44980
+ isNaN(e) && (e = NL(t[PL])), n.start.assign("year", e);
44979
44981
  } else n.start.imply("year", e.refDate.getFullYear());
44980
44982
  return n;
44981
44983
  }
44982
- }, LL = RegExp("(\\d+|[" + Object.keys(kL).join("") + "]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)", "i"), RL = 1, zL = 2, BL = class extends iF {
44984
+ }, RL = RegExp("(\\d+|[" + Object.keys(AL).join("") + "]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)", "i"), zL = 1, BL = 2, VL = class extends aF {
44983
44985
  innerPattern() {
44984
- return LL;
44986
+ return RL;
44985
44987
  }
44986
44988
  innerExtract(e, t) {
44987
- let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[RL]);
44988
- if (isNaN(r) && (r = jL(t[RL])), isNaN(r)) {
44989
- let e = t[RL];
44989
+ let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[zL]);
44990
+ if (isNaN(r) && (r = ML(t[zL])), isNaN(r)) {
44991
+ let e = t[zL];
44990
44992
  if (e === "几") r = 3;
44991
44993
  else if (e === "半") r = .5;
44992
44994
  else return null;
44993
44995
  }
44994
- let i = {}, a = t[zL][0];
44996
+ let i = {}, a = t[BL][0];
44995
44997
  if (a.match(/[日天星礼月年]/)) {
44996
44998
  a == "日" || a == "天" ? i.day = r : a == "星" || a == "礼" ? i.week = r : a == "月" ? i.month = r : a == "年" && (i.year = r);
44997
- let t = DP(e.refDate, i);
44999
+ let t = OP(e.refDate, i);
44998
45000
  return n.start.assign("year", t.getFullYear()), n.start.assign("month", t.getMonth() + 1), n.start.assign("day", t.getDate()), n;
44999
45001
  }
45000
45002
  a == "秒" ? i.second = r : a == "分" ? i.minute = r : (a == "小" || a == "钟") && (i.hour = r);
45001
- let o = DP(e.refDate, i);
45003
+ let o = OP(e.refDate, i);
45002
45004
  return n.start.imply("year", o.getFullYear()), n.start.imply("month", o.getMonth() + 1), n.start.imply("day", o.getDate()), n.start.assign("hour", o.getHours()), n.start.assign("minute", o.getMinutes()), n.start.assign("second", o.getSeconds()), n;
45003
45005
  }
45004
- }, VL = RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>" + Object.keys(AL).join("|") + ")"), HL = class extends iF {
45006
+ }, HL = RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>" + Object.keys(jL).join("|") + ")"), UL = class extends aF {
45005
45007
  innerPattern() {
45006
- return VL;
45008
+ return HL;
45007
45009
  }
45008
45010
  innerExtract(e, t) {
45009
- let n = e.createParsingResult(t.index, t[0]), r = AL[t.groups.weekday];
45011
+ let n = e.createParsingResult(t.index, t[0]), r = jL[t.groups.weekday];
45010
45012
  if (r === void 0) return null;
45011
45013
  let i = null, a = t.groups.prefix;
45012
45014
  a == "上" ? i = "last" : a == "下" ? i = "next" : a == "这" && (i = "this");
@@ -45020,104 +45022,104 @@ var NL = 1, PL = 2, FL = 3, IL = class extends iF {
45020
45022
  }
45021
45023
  return n.start.assign("weekday", r), s ? (n.start.assign("day", o.getDate()), n.start.assign("month", o.getMonth() + 1), n.start.assign("year", o.getFullYear())) : (n.start.imply("day", o.getDate()), n.start.imply("month", o.getMonth() + 1), n.start.imply("year", o.getFullYear())), n;
45022
45024
  }
45023
- }, UL = RegExp("(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(kL).join("") + "]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(kL).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(kL).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), WL = RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(kL).join("") + "]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(kL).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(kL).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), GL = 1, KL = 2, qL = 3, JL = 4, YL = 5, XL = 6, ZL = 7, QL = 8, $L = 9, eR = class extends iF {
45025
+ }, WL = RegExp("(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(AL).join("") + "]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(AL).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(AL).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), GL = RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(AL).join("") + "]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(AL).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(AL).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), KL = 1, qL = 2, JL = 3, YL = 4, XL = 5, ZL = 6, QL = 7, $L = 8, eR = 9, tR = class extends aF {
45024
45026
  patternLeftBoundary() {
45025
45027
  return "()";
45026
45028
  }
45027
45029
  innerPattern() {
45028
- return UL;
45030
+ return WL;
45029
45031
  }
45030
45032
  innerExtract(e, t) {
45031
45033
  if (t.index > 0 && e.text[t.index - 1].match(/\w/)) return null;
45032
45034
  let n = e.createParsingResult(t.index, t[0]), r = new Date(e.reference.instant.getTime());
45033
- if (t[GL]) {
45034
- let i = t[GL];
45035
+ if (t[KL]) {
45036
+ let i = t[KL];
45035
45037
  i == "明" ? e.reference.instant.getHours() > 1 && r.setDate(r.getDate() + 1) : i == "昨" ? r.setDate(r.getDate() - 1) : i == "前" ? r.setDate(r.getDate() - 2) : i == "大前" ? r.setDate(r.getDate() - 3) : i == "后" ? r.setDate(r.getDate() + 2) : i == "大后" && r.setDate(r.getDate() + 3), n.start.assign("day", r.getDate()), n.start.assign("month", r.getMonth() + 1), n.start.assign("year", r.getFullYear());
45036
- } else if (t[JL]) {
45037
- let e = t[JL];
45038
+ } else if (t[YL]) {
45039
+ let e = t[YL];
45038
45040
  e == "明" ? r.setDate(r.getDate() + 1) : e == "昨" ? r.setDate(r.getDate() - 1) : e == "前" ? r.setDate(r.getDate() - 2) : e == "大前" ? r.setDate(r.getDate() - 3) : e == "后" ? r.setDate(r.getDate() + 2) : e == "大后" && r.setDate(r.getDate() + 3), n.start.assign("day", r.getDate()), n.start.assign("month", r.getMonth() + 1), n.start.assign("year", r.getFullYear());
45039
45041
  } else n.start.imply("day", r.getDate()), n.start.imply("month", r.getMonth() + 1), n.start.imply("year", r.getFullYear());
45040
45042
  let i = 0, a = 0, o = -1;
45041
- if (t[QL]) {
45042
- let e = parseInt(t[QL]);
45043
- if (isNaN(e) && (e = jL(t[QL])), e >= 60) return null;
45043
+ if (t[$L]) {
45044
+ let e = parseInt(t[$L]);
45045
+ if (isNaN(e) && (e = ML(t[$L])), e >= 60) return null;
45044
45046
  n.start.assign("second", e);
45045
45047
  }
45046
- if (i = parseInt(t[XL]), isNaN(i) && (i = jL(t[XL])), t[ZL] ? t[ZL] == "半" ? a = 30 : t[ZL] == "正" || t[ZL] == "整" ? a = 0 : (a = parseInt(t[ZL]), isNaN(a) && (a = jL(t[ZL]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45047
- if (i >= 12 && (o = 1), t[$L]) {
45048
+ if (i = parseInt(t[ZL]), isNaN(i) && (i = ML(t[ZL])), t[QL] ? t[QL] == "半" ? a = 30 : t[QL] == "正" || t[QL] == "整" ? a = 0 : (a = parseInt(t[QL]), isNaN(a) && (a = ML(t[QL]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45049
+ if (i >= 12 && (o = 1), t[eR]) {
45048
45050
  if (i > 12) return null;
45049
- let e = t[$L][0].toLowerCase();
45051
+ let e = t[eR][0].toLowerCase();
45050
45052
  e == "a" && (o = 0, i == 12 && (i = 0)), e == "p" && (o = 1, i != 12 && (i += 12));
45051
- } else if (t[KL]) {
45052
- let e = t[KL][0];
45053
- e == "早" ? (o = 0, i == 12 && (i = 0)) : e == "晚" && (o = 1, i != 12 && (i += 12));
45054
45053
  } else if (t[qL]) {
45055
45054
  let e = t[qL][0];
45055
+ e == "早" ? (o = 0, i == 12 && (i = 0)) : e == "晚" && (o = 1, i != 12 && (i += 12));
45056
+ } else if (t[JL]) {
45057
+ let e = t[JL][0];
45056
45058
  e == "上" || e == "早" || e == "凌" ? (o = 0, i == 12 && (i = 0)) : (e == "下" || e == "晚") && (o = 1, i != 12 && (i += 12));
45057
- } else if (t[YL]) {
45058
- let e = t[YL][0];
45059
+ } else if (t[XL]) {
45060
+ let e = t[XL][0];
45059
45061
  e == "上" || e == "早" || e == "凌" ? (o = 0, i == 12 && (i = 0)) : (e == "下" || e == "晚") && (o = 1, i != 12 && (i += 12));
45060
45062
  }
45061
45063
  n.start.assign("hour", i), n.start.assign("minute", a), o >= 0 ? n.start.assign("meridiem", o) : i < 12 ? n.start.imply("meridiem", 0) : n.start.imply("meridiem", 1);
45062
- let s = WL.exec(e.text.substring(n.index + n.text.length));
45064
+ let s = GL.exec(e.text.substring(n.index + n.text.length));
45063
45065
  if (!s) return n.text.match(/^\d+$/) ? null : n;
45064
45066
  let c = new Date(r.getTime());
45065
- if ((s[GL] || s[JL]) && (c = new Date(e.reference.instant.getTime())), n.end = e.createParsingComponents(), s[GL]) {
45066
- let t = s[GL];
45067
+ if ((s[KL] || s[YL]) && (c = new Date(e.reference.instant.getTime())), n.end = e.createParsingComponents(), s[KL]) {
45068
+ let t = s[KL];
45067
45069
  t == "明" ? e.reference.instant.getHours() > 1 && c.setDate(c.getDate() + 1) : t == "昨" ? c.setDate(c.getDate() - 1) : t == "前" ? c.setDate(c.getDate() - 2) : t == "大前" ? c.setDate(c.getDate() - 3) : t == "后" ? c.setDate(c.getDate() + 2) : t == "大后" && c.setDate(c.getDate() + 3), n.end.assign("day", c.getDate()), n.end.assign("month", c.getMonth() + 1), n.end.assign("year", c.getFullYear());
45068
- } else if (s[JL]) {
45069
- let e = s[JL];
45070
+ } else if (s[YL]) {
45071
+ let e = s[YL];
45070
45072
  e == "明" ? c.setDate(c.getDate() + 1) : e == "昨" ? c.setDate(c.getDate() - 1) : e == "前" ? c.setDate(c.getDate() - 2) : e == "大前" ? c.setDate(c.getDate() - 3) : e == "后" ? c.setDate(c.getDate() + 2) : e == "大后" && c.setDate(c.getDate() + 3), n.end.assign("day", c.getDate()), n.end.assign("month", c.getMonth() + 1), n.end.assign("year", c.getFullYear());
45071
45073
  } else n.end.imply("day", c.getDate()), n.end.imply("month", c.getMonth() + 1), n.end.imply("year", c.getFullYear());
45072
- if (i = 0, a = 0, o = -1, s[QL]) {
45073
- let e = parseInt(s[QL]);
45074
- if (isNaN(e) && (e = jL(s[QL])), e >= 60) return null;
45074
+ if (i = 0, a = 0, o = -1, s[$L]) {
45075
+ let e = parseInt(s[$L]);
45076
+ if (isNaN(e) && (e = ML(s[$L])), e >= 60) return null;
45075
45077
  n.end.assign("second", e);
45076
45078
  }
45077
- if (i = parseInt(s[XL]), isNaN(i) && (i = jL(s[XL])), s[ZL] ? s[ZL] == "半" ? a = 30 : s[ZL] == "正" || s[ZL] == "整" ? a = 0 : (a = parseInt(s[ZL]), isNaN(a) && (a = jL(s[ZL]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45078
- if (i >= 12 && (o = 1), s[$L]) {
45079
+ if (i = parseInt(s[ZL]), isNaN(i) && (i = ML(s[ZL])), s[QL] ? s[QL] == "半" ? a = 30 : s[QL] == "正" || s[QL] == "整" ? a = 0 : (a = parseInt(s[QL]), isNaN(a) && (a = ML(s[QL]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45080
+ if (i >= 12 && (o = 1), s[eR]) {
45079
45081
  if (i > 12) return null;
45080
- let e = s[$L][0].toLowerCase();
45082
+ let e = s[eR][0].toLowerCase();
45081
45083
  e == "a" && (o = 0, i == 12 && (i = 0)), e == "p" && (o = 1, i != 12 && (i += 12)), n.start.isCertain("meridiem") || (o == 0 ? (n.start.imply("meridiem", 0), n.start.get("hour") == 12 && n.start.assign("hour", 0)) : (n.start.imply("meridiem", 1), n.start.get("hour") != 12 && n.start.assign("hour", n.start.get("hour") + 12)));
45082
- } else if (s[KL]) {
45083
- let e = s[KL][0];
45084
- e == "早" ? (o = 0, i == 12 && (i = 0)) : e == "晚" && (o = 1, i != 12 && (i += 12));
45085
45084
  } else if (s[qL]) {
45086
45085
  let e = s[qL][0];
45086
+ e == "早" ? (o = 0, i == 12 && (i = 0)) : e == "晚" && (o = 1, i != 12 && (i += 12));
45087
+ } else if (s[JL]) {
45088
+ let e = s[JL][0];
45087
45089
  e == "上" || e == "早" || e == "凌" ? (o = 0, i == 12 && (i = 0)) : (e == "下" || e == "晚") && (o = 1, i != 12 && (i += 12));
45088
- } else if (s[YL]) {
45089
- let e = s[YL][0];
45090
+ } else if (s[XL]) {
45091
+ let e = s[XL][0];
45090
45092
  e == "上" || e == "早" || e == "凌" ? (o = 0, i == 12 && (i = 0)) : (e == "下" || e == "晚") && (o = 1, i != 12 && (i += 12));
45091
45093
  }
45092
45094
  return n.text += s[0], n.end.assign("hour", i), n.end.assign("minute", a), o >= 0 ? n.end.assign("meridiem", o) : n.start.isCertain("meridiem") && n.start.get("meridiem") == 1 && n.start.get("hour") > i ? n.end.imply("meridiem", 0) : i > 12 && n.end.imply("meridiem", 1), n.end.date().getTime() < n.start.date().getTime() && n.end.imply("day", n.end.get("day") + 1), n;
45093
45095
  }
45094
- }, tR = RegExp("(?:星期|礼拜|周)(?<weekday>" + Object.keys(AL).join("|") + ")"), nR = class extends iF {
45096
+ }, nR = RegExp("(?:星期|礼拜|周)(?<weekday>" + Object.keys(jL).join("|") + ")"), rR = class extends aF {
45095
45097
  innerPattern() {
45096
- return tR;
45098
+ return nR;
45097
45099
  }
45098
45100
  innerExtract(e, t) {
45099
- let n = e.createParsingResult(t.index, t[0]), r = AL[t.groups.weekday];
45101
+ let n = e.createParsingResult(t.index, t[0]), r = jL[t.groups.weekday];
45100
45102
  if (r === void 0) return null;
45101
45103
  let i = new Date(e.refDate.getTime()), a = r - i.getDay();
45102
45104
  return Math.abs(a - 7) < Math.abs(a) && (a -= 7), Math.abs(a + 7) < Math.abs(a) && (a += 7), i.setDate(i.getDate() + a), n.start.assign("weekday", r), n.start.imply("day", i.getDate()), n.start.imply("month", i.getMonth() + 1), n.start.imply("year", i.getFullYear()), n;
45103
45105
  }
45104
- }, rR = 1, iR = 2, aR = 3, oR = 4, sR = 5, cR = 6, lR = class extends iF {
45106
+ }, iR = 1, aR = 2, oR = 3, sR = 4, cR = 5, lR = 6, uR = class extends aF {
45105
45107
  innerPattern(e) {
45106
45108
  return /* @__PURE__ */ RegExp("(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?", "i");
45107
45109
  }
45108
45110
  innerExtract(e, t) {
45109
45111
  let n = t.index, r = e.createParsingResult(n, t[0]), i = e.refDate, a = new Date(i.getTime());
45110
- if (t[rR]) r.start.imply("hour", i.getHours()), r.start.imply("minute", i.getMinutes()), r.start.imply("second", i.getSeconds()), r.start.imply("millisecond", i.getMilliseconds());
45111
- else if (t[iR]) {
45112
- let e = t[iR], n = t[aR];
45112
+ if (t[iR]) r.start.imply("hour", i.getHours()), r.start.imply("minute", i.getMinutes()), r.start.imply("second", i.getSeconds()), r.start.imply("millisecond", i.getMilliseconds());
45113
+ else if (t[aR]) {
45114
+ let e = t[aR], n = t[oR];
45113
45115
  e == "明" || e == "聽" ? i.getHours() > 1 && a.setDate(a.getDate() + 1) : e == "昨" || e == "尋" || e == "琴" ? a.setDate(a.getDate() - 1) : e == "前" ? a.setDate(a.getDate() - 2) : e == "大前" ? a.setDate(a.getDate() - 3) : e == "後" ? a.setDate(a.getDate() + 2) : e == "大後" && a.setDate(a.getDate() + 3), n == "早" || n == "朝" ? r.start.imply("hour", 6) : n == "晚" && (r.start.imply("hour", 22), r.start.imply("meridiem", 1));
45114
- } else if (t[oR]) {
45115
- let e = t[oR][0];
45116
- e == "早" || e == "朝" || e == "上" ? r.start.imply("hour", 6) : e == "下" || e == "晏" ? (r.start.imply("hour", 15), r.start.imply("meridiem", 1)) : e == "中" ? (r.start.imply("hour", 12), r.start.imply("meridiem", 1)) : e == "夜" || e == "晚" ? (r.start.imply("hour", 22), r.start.imply("meridiem", 1)) : e == "凌" && r.start.imply("hour", 0);
45117
45116
  } else if (t[sR]) {
45118
- let e = t[sR];
45117
+ let e = t[sR][0];
45118
+ e == "早" || e == "朝" || e == "上" ? r.start.imply("hour", 6) : e == "下" || e == "晏" ? (r.start.imply("hour", 15), r.start.imply("meridiem", 1)) : e == "中" ? (r.start.imply("hour", 12), r.start.imply("meridiem", 1)) : e == "夜" || e == "晚" ? (r.start.imply("hour", 22), r.start.imply("meridiem", 1)) : e == "凌" && r.start.imply("hour", 0);
45119
+ } else if (t[cR]) {
45120
+ let e = t[cR];
45119
45121
  e == "明" || e == "聽" ? i.getHours() > 1 && a.setDate(a.getDate() + 1) : e == "昨" || e == "尋" || e == "琴" ? a.setDate(a.getDate() - 1) : e == "前" ? a.setDate(a.getDate() - 2) : e == "大前" ? a.setDate(a.getDate() - 3) : e == "後" ? a.setDate(a.getDate() + 2) : e == "大後" && a.setDate(a.getDate() + 3);
45120
- let n = t[cR];
45122
+ let n = t[lR];
45121
45123
  if (n) {
45122
45124
  let e = n[0];
45123
45125
  e == "早" || e == "朝" || e == "上" ? r.start.imply("hour", 6) : e == "下" || e == "晏" ? (r.start.imply("hour", 15), r.start.imply("meridiem", 1)) : e == "中" ? (r.start.imply("hour", 12), r.start.imply("meridiem", 1)) : e == "夜" || e == "晚" ? (r.start.imply("hour", 22), r.start.imply("meridiem", 1)) : e == "凌" && r.start.imply("hour", 0);
@@ -45125,7 +45127,7 @@ var NL = 1, PL = 2, FL = 3, IL = class extends iF {
45125
45127
  }
45126
45128
  return r.start.assign("day", a.getDate()), r.start.assign("month", a.getMonth() + 1), r.start.assign("year", a.getFullYear()), r;
45127
45129
  }
45128
- }, uR = {
45130
+ }, dR = {
45129
45131
  零: 0,
45130
45132
  一: 1,
45131
45133
  二: 2,
@@ -45140,7 +45142,7 @@ var NL = 1, PL = 2, FL = 3, IL = class extends iF {
45140
45142
  十: 10,
45141
45143
  廿: 20,
45142
45144
  卅: 30
45143
- }, dR = {
45145
+ }, fR = {
45144
45146
  天: 0,
45145
45147
  日: 0,
45146
45148
  一: 1,
@@ -45150,68 +45152,68 @@ var NL = 1, PL = 2, FL = 3, IL = class extends iF {
45150
45152
  五: 5,
45151
45153
  六: 6
45152
45154
  };
45153
- function fR(e) {
45155
+ function pR(e) {
45154
45156
  let t = 0;
45155
45157
  for (let n = 0; n < e.length; n++) {
45156
45158
  let r = e[n];
45157
- r === "十" ? t = t === 0 ? uR[r] : t * uR[r] : t += uR[r];
45159
+ r === "十" ? t = t === 0 ? dR[r] : t * dR[r] : t += dR[r];
45158
45160
  }
45159
45161
  return t;
45160
45162
  }
45161
- function pR(e) {
45163
+ function mR(e) {
45162
45164
  let t = "";
45163
45165
  for (let n = 0; n < e.length; n++) {
45164
45166
  let r = e[n];
45165
- t += uR[r];
45167
+ t += dR[r];
45166
45168
  }
45167
45169
  return parseInt(t);
45168
45170
  }
45169
45171
  //#endregion
45170
45172
  //#region node_modules/.pnpm/chrono-node@2.9.1/node_modules/chrono-node/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js
45171
- var mR = 1, hR = 2, gR = 3, _R = class extends iF {
45173
+ var hR = 1, gR = 2, _R = 3, vR = class extends aF {
45172
45174
  innerPattern() {
45173
- return RegExp("(\\d{2,4}|[" + Object.keys(uR).join("") + "]{4}|[" + Object.keys(uR).join("") + "]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[" + Object.keys(uR).join("") + "]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[" + Object.keys(uR).join("") + "]{1,2})?(?:\\s*)(?:日|號)?");
45175
+ return RegExp("(\\d{2,4}|[" + Object.keys(dR).join("") + "]{4}|[" + Object.keys(dR).join("") + "]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[" + Object.keys(dR).join("") + "]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[" + Object.keys(dR).join("") + "]{1,2})?(?:\\s*)(?:日|號)?");
45174
45176
  }
45175
45177
  innerExtract(e, t) {
45176
- let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[hR]);
45177
- if (isNaN(r) && (r = fR(t[hR])), n.start.assign("month", r), t[gR]) {
45178
- let e = parseInt(t[gR]);
45179
- isNaN(e) && (e = fR(t[gR])), n.start.assign("day", e);
45178
+ let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[gR]);
45179
+ if (isNaN(r) && (r = pR(t[gR])), n.start.assign("month", r), t[_R]) {
45180
+ let e = parseInt(t[_R]);
45181
+ isNaN(e) && (e = pR(t[_R])), n.start.assign("day", e);
45180
45182
  } else n.start.imply("day", e.refDate.getDate());
45181
- if (t[mR]) {
45182
- let e = parseInt(t[mR]);
45183
- isNaN(e) && (e = pR(t[mR])), n.start.assign("year", e);
45183
+ if (t[hR]) {
45184
+ let e = parseInt(t[hR]);
45185
+ isNaN(e) && (e = mR(t[hR])), n.start.assign("year", e);
45184
45186
  } else n.start.imply("year", e.refDate.getFullYear());
45185
45187
  return n;
45186
45188
  }
45187
- }, vR = RegExp("(\\d+|[" + Object.keys(uR).join("") + "]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)", "i"), yR = 1, bR = 2, xR = class extends iF {
45189
+ }, yR = RegExp("(\\d+|[" + Object.keys(dR).join("") + "]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)", "i"), bR = 1, xR = 2, SR = class extends aF {
45188
45190
  innerPattern() {
45189
- return vR;
45191
+ return yR;
45190
45192
  }
45191
45193
  innerExtract(e, t) {
45192
- let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[yR]);
45193
- if (isNaN(r) && (r = fR(t[yR])), isNaN(r)) {
45194
- let e = t[yR];
45194
+ let n = e.createParsingResult(t.index, t[0]), r = parseInt(t[bR]);
45195
+ if (isNaN(r) && (r = pR(t[bR])), isNaN(r)) {
45196
+ let e = t[bR];
45195
45197
  if (e === "幾") r = 3;
45196
45198
  else if (e === "半") r = .5;
45197
45199
  else return null;
45198
45200
  }
45199
- let i = {}, a = t[bR][0];
45201
+ let i = {}, a = t[xR][0];
45200
45202
  if (a.match(/[日天星禮月年]/)) {
45201
45203
  a == "日" || a == "天" ? i.day = r : a == "星" || a == "禮" ? i.week = r : a == "月" ? i.month = r : a == "年" && (i.year = r);
45202
- let t = DP(e.refDate, i);
45204
+ let t = OP(e.refDate, i);
45203
45205
  return n.start.assign("year", t.getFullYear()), n.start.assign("month", t.getMonth() + 1), n.start.assign("day", t.getDate()), n;
45204
45206
  }
45205
45207
  a == "秒" ? i.second = r : a == "分" ? i.minute = r : (a == "小" || a == "鐘") && (i.hour = r);
45206
- let o = DP(e.refDate, i);
45208
+ let o = OP(e.refDate, i);
45207
45209
  return n.start.imply("year", o.getFullYear()), n.start.imply("month", o.getMonth() + 1), n.start.imply("day", o.getDate()), n.start.assign("hour", o.getHours()), n.start.assign("minute", o.getMinutes()), n.start.assign("second", o.getSeconds()), n;
45208
45210
  }
45209
- }, SR = RegExp("(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>" + Object.keys(dR).join("|") + ")"), CR = class extends iF {
45211
+ }, CR = RegExp("(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>" + Object.keys(fR).join("|") + ")"), wR = class extends aF {
45210
45212
  innerPattern() {
45211
- return SR;
45213
+ return CR;
45212
45214
  }
45213
45215
  innerExtract(e, t) {
45214
- let n = e.createParsingResult(t.index, t[0]), r = dR[t.groups.weekday];
45216
+ let n = e.createParsingResult(t.index, t[0]), r = fR[t.groups.weekday];
45215
45217
  if (r === void 0) return null;
45216
45218
  let i = null, a = t.groups.prefix;
45217
45219
  a == "上" ? i = "last" : a == "下" ? i = "next" : (a == "今" || a == "這" || a == "呢") && (i = "this");
@@ -45225,125 +45227,125 @@ var mR = 1, hR = 2, gR = 3, _R = class extends iF {
45225
45227
  }
45226
45228
  return n.start.assign("weekday", r), s ? (n.start.assign("day", o.getDate()), n.start.assign("month", o.getMonth() + 1), n.start.assign("year", o.getFullYear())) : (n.start.imply("day", o.getDate()), n.start.imply("month", o.getMonth() + 1), n.start.imply("year", o.getFullYear())), n;
45227
45229
  }
45228
- }, wR = RegExp("(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(uR).join("") + "]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(uR).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(uR).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), TR = RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(uR).join("") + "]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(uR).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(uR).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), ER = 1, DR = 2, OR = 3, kR = 4, AR = 5, jR = 6, MR = 7, NR = 8, PR = 9, FR = class extends iF {
45230
+ }, TR = RegExp("(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(dR).join("") + "]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(dR).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(dR).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), ER = RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[" + Object.keys(dR).join("") + "]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[" + Object.keys(dR).join("") + "]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[" + Object.keys(dR).join("") + "]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?", "i"), DR = 1, OR = 2, kR = 3, AR = 4, jR = 5, MR = 6, NR = 7, PR = 8, FR = 9, IR = class extends aF {
45229
45231
  patternLeftBoundary() {
45230
45232
  return "()";
45231
45233
  }
45232
45234
  innerPattern() {
45233
- return wR;
45235
+ return TR;
45234
45236
  }
45235
45237
  innerExtract(e, t) {
45236
45238
  if (t.index > 0 && e.text[t.index - 1].match(/\w/)) return null;
45237
45239
  let n = e.createParsingResult(t.index, t[0]), r = new Date(e.reference.instant.getTime());
45238
- if (t[ER]) {
45239
- let i = t[ER];
45240
+ if (t[DR]) {
45241
+ let i = t[DR];
45240
45242
  i == "明" || i == "聽" ? e.refDate.getHours() > 1 && r.setDate(r.getDate() + 1) : i == "昨" || i == "尋" || i == "琴" ? r.setDate(r.getDate() - 1) : i == "前" ? r.setDate(r.getDate() - 2) : i == "大前" ? r.setDate(r.getDate() - 3) : i == "後" ? r.setDate(r.getDate() + 2) : i == "大後" && r.setDate(r.getDate() + 3), n.start.assign("day", r.getDate()), n.start.assign("month", r.getMonth() + 1), n.start.assign("year", r.getFullYear());
45241
- } else if (t[kR]) {
45242
- let e = t[kR];
45243
+ } else if (t[AR]) {
45244
+ let e = t[AR];
45243
45245
  e == "明" || e == "聽" ? r.setDate(r.getDate() + 1) : e == "昨" || e == "尋" || e == "琴" ? r.setDate(r.getDate() - 1) : e == "前" ? r.setDate(r.getDate() - 2) : e == "大前" ? r.setDate(r.getDate() - 3) : e == "後" ? r.setDate(r.getDate() + 2) : e == "大後" && r.setDate(r.getDate() + 3), n.start.assign("day", r.getDate()), n.start.assign("month", r.getMonth() + 1), n.start.assign("year", r.getFullYear());
45244
45246
  } else n.start.imply("day", r.getDate()), n.start.imply("month", r.getMonth() + 1), n.start.imply("year", r.getFullYear());
45245
45247
  let i = 0, a = 0, o = -1;
45246
- if (t[NR]) {
45247
- var s = parseInt(t[NR]);
45248
- if (isNaN(s) && (s = fR(t[NR])), s >= 60) return null;
45248
+ if (t[PR]) {
45249
+ var s = parseInt(t[PR]);
45250
+ if (isNaN(s) && (s = pR(t[PR])), s >= 60) return null;
45249
45251
  n.start.assign("second", s);
45250
45252
  }
45251
- if (i = parseInt(t[jR]), isNaN(i) && (i = fR(t[jR])), t[MR] ? t[MR] == "半" ? a = 30 : t[MR] == "正" || t[MR] == "整" ? a = 0 : (a = parseInt(t[MR]), isNaN(a) && (a = fR(t[MR]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45252
- if (i >= 12 && (o = 1), t[PR]) {
45253
+ if (i = parseInt(t[MR]), isNaN(i) && (i = pR(t[MR])), t[NR] ? t[NR] == "半" ? a = 30 : t[NR] == "正" || t[NR] == "整" ? a = 0 : (a = parseInt(t[NR]), isNaN(a) && (a = pR(t[NR]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45254
+ if (i >= 12 && (o = 1), t[FR]) {
45253
45255
  if (i > 12) return null;
45254
- var c = t[PR][0].toLowerCase();
45256
+ var c = t[FR][0].toLowerCase();
45255
45257
  c == "a" && (o = 0, i == 12 && (i = 0)), c == "p" && (o = 1, i != 12 && (i += 12));
45256
- } else if (t[DR]) {
45257
- var l = t[DR][0];
45258
- l == "朝" || l == "早" ? (o = 0, i == 12 && (i = 0)) : l == "晚" && (o = 1, i != 12 && (i += 12));
45259
45258
  } else if (t[OR]) {
45260
- var u = t[OR][0];
45259
+ var l = t[OR][0];
45260
+ l == "朝" || l == "早" ? (o = 0, i == 12 && (i = 0)) : l == "晚" && (o = 1, i != 12 && (i += 12));
45261
+ } else if (t[kR]) {
45262
+ var u = t[kR][0];
45261
45263
  u == "上" || u == "朝" || u == "早" || u == "凌" ? (o = 0, i == 12 && (i = 0)) : (u == "下" || u == "晏" || u == "晚") && (o = 1, i != 12 && (i += 12));
45262
- } else if (t[AR]) {
45263
- var d = t[AR][0];
45264
+ } else if (t[jR]) {
45265
+ var d = t[jR][0];
45264
45266
  d == "上" || d == "朝" || d == "早" || d == "凌" ? (o = 0, i == 12 && (i = 0)) : (d == "下" || d == "晏" || d == "晚") && (o = 1, i != 12 && (i += 12));
45265
45267
  }
45266
45268
  n.start.assign("hour", i), n.start.assign("minute", a), o >= 0 ? n.start.assign("meridiem", o) : i < 12 ? n.start.imply("meridiem", 0) : n.start.imply("meridiem", 1);
45267
- let f = TR.exec(e.text.substring(n.index + n.text.length));
45269
+ let f = ER.exec(e.text.substring(n.index + n.text.length));
45268
45270
  if (!f) return n.text.match(/^\d+$/) ? null : n;
45269
45271
  let p = new Date(r.getTime());
45270
- if ((f[ER] || f[kR]) && (p = new Date(e.reference.instant.getTime())), n.end = e.createParsingComponents(), f[ER]) {
45271
- let t = f[ER];
45272
+ if ((f[DR] || f[AR]) && (p = new Date(e.reference.instant.getTime())), n.end = e.createParsingComponents(), f[DR]) {
45273
+ let t = f[DR];
45272
45274
  t == "明" || t == "聽" ? e.refDate.getHours() > 1 && p.setDate(p.getDate() + 1) : t == "昨" || t == "尋" || t == "琴" ? p.setDate(p.getDate() - 1) : t == "前" ? p.setDate(p.getDate() - 2) : t == "大前" ? p.setDate(p.getDate() - 3) : t == "後" ? p.setDate(p.getDate() + 2) : t == "大後" && p.setDate(p.getDate() + 3), n.end.assign("day", p.getDate()), n.end.assign("month", p.getMonth() + 1), n.end.assign("year", p.getFullYear());
45273
- } else if (f[kR]) {
45274
- let e = f[kR];
45275
+ } else if (f[AR]) {
45276
+ let e = f[AR];
45275
45277
  e == "明" || e == "聽" ? p.setDate(p.getDate() + 1) : e == "昨" || e == "尋" || e == "琴" ? p.setDate(p.getDate() - 1) : e == "前" ? p.setDate(p.getDate() - 2) : e == "大前" ? p.setDate(p.getDate() - 3) : e == "後" ? p.setDate(p.getDate() + 2) : e == "大後" && p.setDate(p.getDate() + 3), n.end.assign("day", p.getDate()), n.end.assign("month", p.getMonth() + 1), n.end.assign("year", p.getFullYear());
45276
45278
  } else n.end.imply("day", p.getDate()), n.end.imply("month", p.getMonth() + 1), n.end.imply("year", p.getFullYear());
45277
- if (i = 0, a = 0, o = -1, f[NR]) {
45278
- let e = parseInt(f[NR]);
45279
- if (isNaN(e) && (e = fR(f[NR])), e >= 60) return null;
45279
+ if (i = 0, a = 0, o = -1, f[PR]) {
45280
+ let e = parseInt(f[PR]);
45281
+ if (isNaN(e) && (e = pR(f[PR])), e >= 60) return null;
45280
45282
  n.end.assign("second", e);
45281
45283
  }
45282
- if (i = parseInt(f[jR]), isNaN(i) && (i = fR(f[jR])), f[MR] ? f[MR] == "半" ? a = 30 : f[MR] == "正" || f[MR] == "整" ? a = 0 : (a = parseInt(f[MR]), isNaN(a) && (a = fR(f[MR]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45283
- if (i >= 12 && (o = 1), f[PR]) {
45284
+ if (i = parseInt(f[MR]), isNaN(i) && (i = pR(f[MR])), f[NR] ? f[NR] == "半" ? a = 30 : f[NR] == "正" || f[NR] == "整" ? a = 0 : (a = parseInt(f[NR]), isNaN(a) && (a = pR(f[NR]))) : i > 100 && (a = i % 100, i = Math.floor(i / 100)), a >= 60 || i > 24) return null;
45285
+ if (i >= 12 && (o = 1), f[FR]) {
45284
45286
  if (i > 12) return null;
45285
- var c = f[PR][0].toLowerCase();
45287
+ var c = f[FR][0].toLowerCase();
45286
45288
  c == "a" && (o = 0, i == 12 && (i = 0)), c == "p" && (o = 1, i != 12 && (i += 12)), n.start.isCertain("meridiem") || (o == 0 ? (n.start.imply("meridiem", 0), n.start.get("hour") == 12 && n.start.assign("hour", 0)) : (n.start.imply("meridiem", 1), n.start.get("hour") != 12 && n.start.assign("hour", n.start.get("hour") + 12)));
45287
- } else if (f[DR]) {
45288
- var l = f[DR][0];
45289
- l == "朝" || l == "早" ? (o = 0, i == 12 && (i = 0)) : l == "晚" && (o = 1, i != 12 && (i += 12));
45290
45289
  } else if (f[OR]) {
45291
- var u = f[OR][0];
45290
+ var l = f[OR][0];
45291
+ l == "朝" || l == "早" ? (o = 0, i == 12 && (i = 0)) : l == "晚" && (o = 1, i != 12 && (i += 12));
45292
+ } else if (f[kR]) {
45293
+ var u = f[kR][0];
45292
45294
  u == "上" || u == "朝" || u == "早" || u == "凌" ? (o = 0, i == 12 && (i = 0)) : (u == "下" || u == "晏" || u == "晚") && (o = 1, i != 12 && (i += 12));
45293
- } else if (f[AR]) {
45294
- var d = f[AR][0];
45295
+ } else if (f[jR]) {
45296
+ var d = f[jR][0];
45295
45297
  d == "上" || d == "朝" || d == "早" || d == "凌" ? (o = 0, i == 12 && (i = 0)) : (d == "下" || d == "晏" || d == "晚") && (o = 1, i != 12 && (i += 12));
45296
45298
  }
45297
45299
  return n.text += f[0], n.end.assign("hour", i), n.end.assign("minute", a), o >= 0 ? n.end.assign("meridiem", o) : n.start.isCertain("meridiem") && n.start.get("meridiem") == 1 && n.start.get("hour") > i ? n.end.imply("meridiem", 0) : i > 12 && n.end.imply("meridiem", 1), n.end.date().getTime() < n.start.date().getTime() && n.end.imply("day", n.end.get("day") + 1), n;
45298
45300
  }
45299
- }, IR = RegExp("(?:星期|禮拜|週)(?<weekday>" + Object.keys(dR).join("|") + ")"), LR = class extends iF {
45301
+ }, LR = RegExp("(?:星期|禮拜|週)(?<weekday>" + Object.keys(fR).join("|") + ")"), RR = class extends aF {
45300
45302
  innerPattern() {
45301
- return IR;
45303
+ return LR;
45302
45304
  }
45303
45305
  innerExtract(e, t) {
45304
- let n = e.createParsingResult(t.index, t[0]), r = dR[t.groups.weekday];
45306
+ let n = e.createParsingResult(t.index, t[0]), r = fR[t.groups.weekday];
45305
45307
  if (r === void 0) return null;
45306
45308
  let i = new Date(e.refDate.getTime()), a = r - i.getDay();
45307
45309
  return Math.abs(a - 7) < Math.abs(a) && (a -= 7), Math.abs(a + 7) < Math.abs(a) && (a += 7), i.setDate(i.getDate() + a), n.start.assign("weekday", r), n.start.imply("day", i.getDate()), n.start.imply("month", i.getMonth() + 1), n.start.imply("year", i.getFullYear()), n;
45308
45310
  }
45309
- }, RR = class extends eI {
45311
+ }, zR = class extends tI {
45310
45312
  patternBetween() {
45311
45313
  return /^\s*(至|到|\-|\~|~|-|ー)\s*$/i;
45312
45314
  }
45313
- }, zR = class extends iI {
45315
+ }, BR = class extends aI {
45314
45316
  patternBetween() {
45315
45317
  return /^\s*$/i;
45316
45318
  }
45317
- }, BR = new DL(HR());
45318
- new DL(UR());
45319
- function VR(e, t, n) {
45320
- return BR.parseDate(e, t, n);
45321
- }
45322
- function HR() {
45323
- let e = UR();
45324
- return e.parsers.unshift(new lR()), e;
45319
+ }, VR = new OL(UR());
45320
+ new OL(WR());
45321
+ function HR(e, t, n) {
45322
+ return VR.parseDate(e, t, n);
45325
45323
  }
45326
45324
  function UR() {
45327
- let e = PI({
45325
+ let e = WR();
45326
+ return e.parsers.unshift(new uR()), e;
45327
+ }
45328
+ function WR() {
45329
+ let e = FI({
45328
45330
  parsers: [
45329
- new _R(),
45330
- new IL(),
45331
- new CR(),
45332
- new HL(),
45333
- new LR(),
45334
- new nR(),
45335
- new FR(),
45336
- new eR(),
45337
- new xR(),
45338
- new BL()
45331
+ new vR(),
45332
+ new LL(),
45333
+ new wR(),
45334
+ new UL(),
45335
+ new RR(),
45336
+ new rR(),
45337
+ new IR(),
45338
+ new tR(),
45339
+ new SR(),
45340
+ new VL()
45339
45341
  ],
45340
- refiners: [new RR(), new zR()]
45342
+ refiners: [new zR(), new BR()]
45341
45343
  });
45342
- return e.refiners = e.refiners.filter((e) => !(e instanceof fI)), e;
45344
+ return e.refiners = e.refiners.filter((e) => !(e instanceof pI)), e;
45343
45345
  }
45344
45346
  //#endregion
45345
45347
  //#region node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/isoWeek.js
45346
- var WR = /* @__PURE__ */ s(((e, t) => {
45348
+ var GR = /* @__PURE__ */ s(((e, t) => {
45347
45349
  (function(n, r) {
45348
45350
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isoWeek = r();
45349
45351
  })(e, (function() {
@@ -45368,27 +45370,27 @@ var WR = /* @__PURE__ */ s(((e, t) => {
45368
45370
  };
45369
45371
  };
45370
45372
  }));
45371
- })), GR = /* @__PURE__ */ u(tS()), KR = /* @__PURE__ */ u(WR());
45372
- GR.default.extend(KR.default);
45373
- function qR() {
45374
- return (0, GR.default)().startOf("isoWeek").toDate();
45375
- }
45376
- var JR = /大*后天/g;
45377
- function YR(e) {
45378
- if (!JR.test(e)) return e;
45379
- let t = (0, GR.default)();
45380
- return JR.lastIndex = 0, e.replace(JR, (e) => {
45373
+ })), KR = /* @__PURE__ */ u(tS()), qR = /* @__PURE__ */ u(GR());
45374
+ KR.default.extend(qR.default);
45375
+ function JR() {
45376
+ return (0, KR.default)().startOf("isoWeek").toDate();
45377
+ }
45378
+ var YR = /大*后天/g;
45379
+ function XR(e) {
45380
+ if (!YR.test(e)) return e;
45381
+ let t = (0, KR.default)();
45382
+ return YR.lastIndex = 0, e.replace(YR, (e) => {
45381
45383
  let n = 2 + (e.length - 2);
45382
45384
  return t.add(n, "day").format("YYYY年MM月DD日");
45383
45385
  });
45384
45386
  }
45385
- function XR(e) {
45386
- let t = YR(e), n = VR(t, { instant: /(?:本|这|上|下)?(?:周|星期)/.test(t) ? qR() : /* @__PURE__ */ new Date() });
45387
- return n ? (0, GR.default)(n).format("YYYY-MM-DD HH:mm:ss") : "无法解析,请输入具体时间";
45387
+ function ZR(e) {
45388
+ let t = XR(e), n = HR(t, { instant: /(?:本|这|上|下)?(?:周|星期)/.test(t) ? JR() : /* @__PURE__ */ new Date() });
45389
+ return n ? (0, KR.default)(n).format("YYYY-MM-DD HH:mm:ss") : "无法解析,请输入具体时间";
45388
45390
  }
45389
45391
  //#endregion
45390
45392
  //#region src/utils/tools.ts
45391
- var ZR = { parse_relative_date: {
45393
+ var QR = { parse_relative_date: {
45392
45394
  def: {
45393
45395
  type: "function",
45394
45396
  function: {
@@ -45404,8 +45406,8 @@ var ZR = { parse_relative_date: {
45404
45406
  }
45405
45407
  }
45406
45408
  },
45407
- handler: (e) => XR(e.input)
45408
- } }, QR = /* @__PURE__ */ s(((e) => {
45409
+ handler: (e) => ZR(e.input)
45410
+ } }, $R = /* @__PURE__ */ s(((e) => {
45409
45411
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
45410
45412
  var t = class {};
45411
45413
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
@@ -45510,9 +45512,9 @@ var ZR = { parse_relative_date: {
45510
45512
  return new r(e.toString());
45511
45513
  }
45512
45514
  e.regexpCode = g;
45513
- })), $R = /* @__PURE__ */ s(((e) => {
45515
+ })), ez = /* @__PURE__ */ s(((e) => {
45514
45516
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
45515
- var t = QR(), n = class extends Error {
45517
+ var t = $R(), n = class extends Error {
45516
45518
  constructor(e) {
45517
45519
  super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
45518
45520
  }
@@ -45621,9 +45623,9 @@ var ZR = { parse_relative_date: {
45621
45623
  return c;
45622
45624
  }
45623
45625
  };
45624
- })), ez = /* @__PURE__ */ s(((e) => {
45626
+ })), tz = /* @__PURE__ */ s(((e) => {
45625
45627
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
45626
- var t = QR(), n = $R(), r = QR();
45628
+ var t = $R(), n = ez(), r = $R();
45627
45629
  Object.defineProperty(e, "_", {
45628
45630
  enumerable: !0,
45629
45631
  get: function() {
@@ -45665,7 +45667,7 @@ var ZR = { parse_relative_date: {
45665
45667
  return r.Name;
45666
45668
  }
45667
45669
  });
45668
- var i = $R();
45670
+ var i = ez();
45669
45671
  Object.defineProperty(e, "Scope", {
45670
45672
  enumerable: !0,
45671
45673
  get: function() {
@@ -46136,9 +46138,9 @@ var ZR = { parse_relative_date: {
46136
46138
  function F(e) {
46137
46139
  return e instanceof t.Name ? e : (0, t._)`(${e})`;
46138
46140
  }
46139
- })), tz = /* @__PURE__ */ s(((e) => {
46141
+ })), nz = /* @__PURE__ */ s(((e) => {
46140
46142
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
46141
- var t = ez(), n = QR();
46143
+ var t = tz(), n = $R();
46142
46144
  function r(e) {
46143
46145
  let t = {};
46144
46146
  for (let n of e) t[n] = !0;
@@ -46261,9 +46263,9 @@ var ZR = { parse_relative_date: {
46261
46263
  }
46262
46264
  }
46263
46265
  e.checkStrictMode = x;
46264
- })), nz = /* @__PURE__ */ s(((e) => {
46266
+ })), rz = /* @__PURE__ */ s(((e) => {
46265
46267
  Object.defineProperty(e, "__esModule", { value: !0 });
46266
- var t = ez();
46268
+ var t = tz();
46267
46269
  e.default = {
46268
46270
  data: new t.Name("data"),
46269
46271
  valCxt: new t.Name("valCxt"),
@@ -46282,9 +46284,9 @@ var ZR = { parse_relative_date: {
46282
46284
  jsonLen: new t.Name("jsonLen"),
46283
46285
  jsonPart: new t.Name("jsonPart")
46284
46286
  };
46285
- })), rz = /* @__PURE__ */ s(((e) => {
46287
+ })), iz = /* @__PURE__ */ s(((e) => {
46286
46288
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
46287
- var t = ez(), n = tz(), r = nz();
46289
+ var t = tz(), n = nz(), r = rz();
46288
46290
  e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
46289
46291
  function i(n, r = e.keywordError, i, a) {
46290
46292
  let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
@@ -46346,9 +46348,9 @@ var ZR = { parse_relative_date: {
46346
46348
  let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
46347
46349
  a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
46348
46350
  }
46349
- })), iz = /* @__PURE__ */ s(((e) => {
46351
+ })), az = /* @__PURE__ */ s(((e) => {
46350
46352
  Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
46351
- var t = rz(), n = ez(), r = nz(), i = { message: "boolean schema is false" };
46353
+ var t = iz(), n = tz(), r = rz(), i = { message: "boolean schema is false" };
46352
46354
  function a(e) {
46353
46355
  let { gen: t, schema: i, validateName: a } = e;
46354
46356
  i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
@@ -46372,7 +46374,7 @@ var ZR = { parse_relative_date: {
46372
46374
  };
46373
46375
  (0, t.reportError)(o, i, void 0, n);
46374
46376
  }
46375
- })), az = /* @__PURE__ */ s(((e) => {
46377
+ })), oz = /* @__PURE__ */ s(((e) => {
46376
46378
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
46377
46379
  var t = new Set([
46378
46380
  "string",
@@ -46426,7 +46428,7 @@ var ZR = { parse_relative_date: {
46426
46428
  };
46427
46429
  }
46428
46430
  e.getRules = r;
46429
- })), oz = /* @__PURE__ */ s(((e) => {
46431
+ })), sz = /* @__PURE__ */ s(((e) => {
46430
46432
  Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
46431
46433
  function t({ schema: e, self: t }, r) {
46432
46434
  let i = t.RULES.types[r];
@@ -46441,9 +46443,9 @@ var ZR = { parse_relative_date: {
46441
46443
  return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
46442
46444
  }
46443
46445
  e.shouldUseRule = r;
46444
- })), sz = /* @__PURE__ */ s(((e) => {
46446
+ })), cz = /* @__PURE__ */ s(((e) => {
46445
46447
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
46446
- var t = az(), n = oz(), r = rz(), i = ez(), a = tz(), o;
46448
+ var t = oz(), n = sz(), r = iz(), i = tz(), a = nz(), o;
46447
46449
  (function(e) {
46448
46450
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
46449
46451
  })(o || (e.DataType = o = {}));
@@ -46578,9 +46580,9 @@ var ZR = { parse_relative_date: {
46578
46580
  it: e
46579
46581
  };
46580
46582
  }
46581
- })), cz = /* @__PURE__ */ s(((e) => {
46583
+ })), lz = /* @__PURE__ */ s(((e) => {
46582
46584
  Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
46583
- var t = ez(), n = tz();
46585
+ var t = tz(), n = nz();
46584
46586
  function r(e, t) {
46585
46587
  let { properties: n, items: r } = e.schema;
46586
46588
  if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
@@ -46598,9 +46600,9 @@ var ZR = { parse_relative_date: {
46598
46600
  let u = (0, t._)`${l} === undefined`;
46599
46601
  c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
46600
46602
  }
46601
- })), lz = /* @__PURE__ */ s(((e) => {
46603
+ })), uz = /* @__PURE__ */ s(((e) => {
46602
46604
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
46603
- var t = ez(), n = tz(), r = nz(), i = tz();
46605
+ var t = tz(), n = nz(), r = rz(), i = nz();
46604
46606
  function a(e, n) {
46605
46607
  let { gen: r, data: i, it: a } = e;
46606
46608
  r.if(d(r, i, n, a.opts.ownProperties), () => {
@@ -46702,9 +46704,9 @@ var ZR = { parse_relative_date: {
46702
46704
  })), e.result(s, () => e.reset(), () => e.error(!0));
46703
46705
  }
46704
46706
  e.validateUnion = v;
46705
- })), uz = /* @__PURE__ */ s(((e) => {
46707
+ })), dz = /* @__PURE__ */ s(((e) => {
46706
46708
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
46707
- var t = ez(), n = nz(), r = lz(), i = rz();
46709
+ var t = tz(), n = rz(), r = uz(), i = iz();
46708
46710
  function a(e, n) {
46709
46711
  let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
46710
46712
  s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
@@ -46783,9 +46785,9 @@ var ZR = { parse_relative_date: {
46783
46785
  }
46784
46786
  }
46785
46787
  e.validateKeywordUsage = f;
46786
- })), dz = /* @__PURE__ */ s(((e) => {
46788
+ })), fz = /* @__PURE__ */ s(((e) => {
46787
46789
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
46788
- var t = ez(), n = tz();
46790
+ var t = tz(), n = nz();
46789
46791
  function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
46790
46792
  if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
46791
46793
  if (r !== void 0) {
@@ -46829,7 +46831,7 @@ var ZR = { parse_relative_date: {
46829
46831
  r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
46830
46832
  }
46831
46833
  e.extendSubschemaMode = a;
46832
- })), fz = /* @__PURE__ */ s(((e, t) => {
46834
+ })), pz = /* @__PURE__ */ s(((e, t) => {
46833
46835
  t.exports = function e(t, n) {
46834
46836
  if (t === n) return !0;
46835
46837
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -46853,7 +46855,7 @@ var ZR = { parse_relative_date: {
46853
46855
  }
46854
46856
  return t !== t && n !== n;
46855
46857
  };
46856
- })), pz = /* @__PURE__ */ s(((e, t) => {
46858
+ })), mz = /* @__PURE__ */ s(((e, t) => {
46857
46859
  var n = t.exports = function(e, t, n) {
46858
46860
  typeof t == "function" && (n = t, t = {}), n = t.cb || n;
46859
46861
  var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
@@ -46916,9 +46918,9 @@ var ZR = { parse_relative_date: {
46916
46918
  function i(e) {
46917
46919
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
46918
46920
  }
46919
- })), mz = /* @__PURE__ */ s(((e) => {
46921
+ })), hz = /* @__PURE__ */ s(((e) => {
46920
46922
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
46921
- var t = tz(), n = fz(), r = pz(), i = new Set([
46923
+ var t = nz(), n = pz(), r = mz(), i = new Set([
46922
46924
  "type",
46923
46925
  "format",
46924
46926
  "pattern",
@@ -47007,9 +47009,9 @@ var ZR = { parse_relative_date: {
47007
47009
  }
47008
47010
  }
47009
47011
  e.getSchemaRefs = h;
47010
- })), hz = /* @__PURE__ */ s(((e) => {
47012
+ })), gz = /* @__PURE__ */ s(((e) => {
47011
47013
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
47012
- var t = iz(), n = sz(), r = oz(), i = sz(), a = cz(), o = uz(), s = dz(), c = ez(), l = nz(), u = mz(), d = tz(), f = rz();
47014
+ var t = az(), n = cz(), r = sz(), i = cz(), a = lz(), o = dz(), s = fz(), c = tz(), l = rz(), u = hz(), d = nz(), f = iz();
47013
47015
  function p(e) {
47014
47016
  if (S(e) && (w(e), x(e))) {
47015
47017
  _(e);
@@ -47299,23 +47301,23 @@ var ZR = { parse_relative_date: {
47299
47301
  }
47300
47302
  }
47301
47303
  e.getData = ce;
47302
- })), gz = /* @__PURE__ */ s(((e) => {
47304
+ })), _z = /* @__PURE__ */ s(((e) => {
47303
47305
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
47304
47306
  constructor(e) {
47305
47307
  super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
47306
47308
  }
47307
47309
  };
47308
- })), _z = /* @__PURE__ */ s(((e) => {
47310
+ })), vz = /* @__PURE__ */ s(((e) => {
47309
47311
  Object.defineProperty(e, "__esModule", { value: !0 });
47310
- var t = mz();
47312
+ var t = hz();
47311
47313
  e.default = class extends Error {
47312
47314
  constructor(e, n, r, i) {
47313
47315
  super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
47314
47316
  }
47315
47317
  };
47316
- })), vz = /* @__PURE__ */ s(((e) => {
47318
+ })), yz = /* @__PURE__ */ s(((e) => {
47317
47319
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
47318
- var t = ez(), n = gz(), r = nz(), i = mz(), a = tz(), o = hz(), s = class {
47320
+ var t = tz(), n = _z(), r = rz(), i = hz(), a = nz(), o = gz(), s = class {
47319
47321
  constructor(e) {
47320
47322
  this.refs = {}, this.dynamicAnchors = {};
47321
47323
  let t;
@@ -47474,27 +47476,27 @@ var ZR = { parse_relative_date: {
47474
47476
  baseId: t
47475
47477
  }), o.schema !== o.root.schema) return o;
47476
47478
  }
47477
- })), yz = /* @__PURE__ */ c({
47478
- $id: () => bz,
47479
+ })), bz = /* @__PURE__ */ c({
47480
+ $id: () => xz,
47479
47481
  additionalProperties: () => !1,
47480
- default: () => Tz,
47481
- description: () => xz,
47482
- properties: () => wz,
47483
- required: () => Cz,
47484
- type: () => Sz
47485
- }), bz, xz, Sz, Cz, wz, Tz, Ez = o((() => {
47486
- bz = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", xz = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Sz = "object", Cz = ["$data"], wz = { $data: {
47482
+ default: () => Ez,
47483
+ description: () => Sz,
47484
+ properties: () => Tz,
47485
+ required: () => wz,
47486
+ type: () => Cz
47487
+ }), xz, Sz, Cz, wz, Tz, Ez, Dz = o((() => {
47488
+ xz = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Sz = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Cz = "object", wz = ["$data"], Tz = { $data: {
47487
47489
  type: "string",
47488
47490
  anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
47489
- } }, Tz = {
47490
- $id: bz,
47491
- description: xz,
47492
- type: Sz,
47493
- required: Cz,
47494
- properties: wz,
47491
+ } }, Ez = {
47492
+ $id: xz,
47493
+ description: Sz,
47494
+ type: Cz,
47495
+ required: wz,
47496
+ properties: Tz,
47495
47497
  additionalProperties: !1
47496
47498
  };
47497
- })), Dz = /* @__PURE__ */ s(((e, t) => {
47499
+ })), Oz = /* @__PURE__ */ s(((e, t) => {
47498
47500
  var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
47499
47501
  function s(e) {
47500
47502
  let t = "", n = 0, r = 0;
@@ -47706,8 +47708,8 @@ var ZR = { parse_relative_date: {
47706
47708
  normalizeIPv6: f,
47707
47709
  stringArrayToHexStripped: s
47708
47710
  };
47709
- })), Oz = /* @__PURE__ */ s(((e, t) => {
47710
- var { isUUID: n } = Dz(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
47711
+ })), kz = /* @__PURE__ */ s(((e, t) => {
47712
+ var { isUUID: n } = Oz(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
47711
47713
  "http",
47712
47714
  "https",
47713
47715
  "ws",
@@ -47812,8 +47814,8 @@ var ZR = { parse_relative_date: {
47812
47814
  isValidSchemeName: a,
47813
47815
  getSchemeHandler: y
47814
47816
  };
47815
- })), kz = /* @__PURE__ */ s(((e, t) => {
47816
- var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = Dz(), { SCHEMES: d, getSchemeHandler: f } = Oz();
47817
+ })), Az = /* @__PURE__ */ s(((e, t) => {
47818
+ var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = Oz(), { SCHEMES: d, getSchemeHandler: f } = kz();
47817
47819
  function p(e, t) {
47818
47820
  return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
47819
47821
  }
@@ -47927,20 +47929,20 @@ var ZR = { parse_relative_date: {
47927
47929
  parse: x
47928
47930
  };
47929
47931
  t.exports = T, t.exports.default = T, t.exports.fastUri = T;
47930
- })), Az = /* @__PURE__ */ s(((e) => {
47932
+ })), jz = /* @__PURE__ */ s(((e) => {
47931
47933
  Object.defineProperty(e, "__esModule", { value: !0 });
47932
- var t = kz();
47934
+ var t = Az();
47933
47935
  t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
47934
- })), jz = /* @__PURE__ */ s(((e) => {
47936
+ })), Mz = /* @__PURE__ */ s(((e) => {
47935
47937
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
47936
- var t = hz();
47938
+ var t = gz();
47937
47939
  Object.defineProperty(e, "KeywordCxt", {
47938
47940
  enumerable: !0,
47939
47941
  get: function() {
47940
47942
  return t.KeywordCxt;
47941
47943
  }
47942
47944
  });
47943
- var n = ez();
47945
+ var n = tz();
47944
47946
  Object.defineProperty(e, "_", {
47945
47947
  enumerable: !0,
47946
47948
  get: function() {
@@ -47972,7 +47974,7 @@ var ZR = { parse_relative_date: {
47972
47974
  return n.CodeGen;
47973
47975
  }
47974
47976
  });
47975
- var r = gz(), i = _z(), a = az(), o = vz(), s = ez(), c = mz(), l = sz(), u = tz(), f = (Ez(), d(yz).default), p = Az(), m = (e, t) => new RegExp(e, t);
47977
+ var r = _z(), i = vz(), a = oz(), o = yz(), s = tz(), c = hz(), l = cz(), u = nz(), f = (Dz(), d(bz).default), p = jz(), m = (e, t) => new RegExp(e, t);
47976
47978
  m.code = "new RegExp";
47977
47979
  var h = [
47978
47980
  "removeAdditional",
@@ -48358,16 +48360,16 @@ var ZR = { parse_relative_date: {
48358
48360
  function P(e) {
48359
48361
  return { anyOf: [e, te] };
48360
48362
  }
48361
- })), Mz = /* @__PURE__ */ s(((e) => {
48363
+ })), Nz = /* @__PURE__ */ s(((e) => {
48362
48364
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
48363
48365
  keyword: "id",
48364
48366
  code() {
48365
48367
  throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
48366
48368
  }
48367
48369
  };
48368
- })), Nz = /* @__PURE__ */ s(((e) => {
48370
+ })), Pz = /* @__PURE__ */ s(((e) => {
48369
48371
  Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
48370
- var t = _z(), n = lz(), r = ez(), i = nz(), a = vz(), o = tz(), s = {
48372
+ var t = vz(), n = uz(), r = tz(), i = rz(), a = yz(), o = nz(), s = {
48371
48373
  keyword: "$ref",
48372
48374
  schemaType: "string",
48373
48375
  code(e) {
@@ -48440,9 +48442,9 @@ var ZR = { parse_relative_date: {
48440
48442
  }
48441
48443
  }
48442
48444
  e.callRef = l, e.default = s;
48443
- })), Pz = /* @__PURE__ */ s(((e) => {
48445
+ })), Fz = /* @__PURE__ */ s(((e) => {
48444
48446
  Object.defineProperty(e, "__esModule", { value: !0 });
48445
- var t = Mz(), n = Nz();
48447
+ var t = Nz(), n = Pz();
48446
48448
  e.default = [
48447
48449
  "$schema",
48448
48450
  "$id",
@@ -48453,9 +48455,9 @@ var ZR = { parse_relative_date: {
48453
48455
  t.default,
48454
48456
  n.default
48455
48457
  ];
48456
- })), Fz = /* @__PURE__ */ s(((e) => {
48458
+ })), Iz = /* @__PURE__ */ s(((e) => {
48457
48459
  Object.defineProperty(e, "__esModule", { value: !0 });
48458
- var t = ez(), n = t.operators, r = {
48460
+ var t = tz(), n = t.operators, r = {
48459
48461
  maximum: {
48460
48462
  okStr: "<=",
48461
48463
  ok: n.LTE,
@@ -48491,9 +48493,9 @@ var ZR = { parse_relative_date: {
48491
48493
  e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
48492
48494
  }
48493
48495
  };
48494
- })), Iz = /* @__PURE__ */ s(((e) => {
48496
+ })), Lz = /* @__PURE__ */ s(((e) => {
48495
48497
  Object.defineProperty(e, "__esModule", { value: !0 });
48496
- var t = ez();
48498
+ var t = tz();
48497
48499
  e.default = {
48498
48500
  keyword: "multipleOf",
48499
48501
  type: "number",
@@ -48508,7 +48510,7 @@ var ZR = { parse_relative_date: {
48508
48510
  e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
48509
48511
  }
48510
48512
  };
48511
- })), Lz = /* @__PURE__ */ s(((e) => {
48513
+ })), Rz = /* @__PURE__ */ s(((e) => {
48512
48514
  Object.defineProperty(e, "__esModule", { value: !0 });
48513
48515
  function t(e) {
48514
48516
  let t = e.length, n = 0, r = 0, i;
@@ -48516,9 +48518,9 @@ var ZR = { parse_relative_date: {
48516
48518
  return n;
48517
48519
  }
48518
48520
  e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
48519
- })), Rz = /* @__PURE__ */ s(((e) => {
48521
+ })), zz = /* @__PURE__ */ s(((e) => {
48520
48522
  Object.defineProperty(e, "__esModule", { value: !0 });
48521
- var t = ez(), n = tz(), r = Lz();
48523
+ var t = tz(), n = nz(), r = Rz();
48522
48524
  e.default = {
48523
48525
  keyword: ["maxLength", "minLength"],
48524
48526
  type: "string",
@@ -48536,9 +48538,9 @@ var ZR = { parse_relative_date: {
48536
48538
  e.fail$data((0, t._)`${l} ${c} ${o}`);
48537
48539
  }
48538
48540
  };
48539
- })), zz = /* @__PURE__ */ s(((e) => {
48541
+ })), Bz = /* @__PURE__ */ s(((e) => {
48540
48542
  Object.defineProperty(e, "__esModule", { value: !0 });
48541
- var t = lz(), n = tz(), r = ez();
48543
+ var t = uz(), n = nz(), r = tz();
48542
48544
  e.default = {
48543
48545
  keyword: "pattern",
48544
48546
  type: "string",
@@ -48559,9 +48561,9 @@ var ZR = { parse_relative_date: {
48559
48561
  }
48560
48562
  }
48561
48563
  };
48562
- })), Bz = /* @__PURE__ */ s(((e) => {
48564
+ })), Vz = /* @__PURE__ */ s(((e) => {
48563
48565
  Object.defineProperty(e, "__esModule", { value: !0 });
48564
- var t = ez();
48566
+ var t = tz();
48565
48567
  e.default = {
48566
48568
  keyword: ["maxProperties", "minProperties"],
48567
48569
  type: "object",
@@ -48579,9 +48581,9 @@ var ZR = { parse_relative_date: {
48579
48581
  e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
48580
48582
  }
48581
48583
  };
48582
- })), Vz = /* @__PURE__ */ s(((e) => {
48584
+ })), Hz = /* @__PURE__ */ s(((e) => {
48583
48585
  Object.defineProperty(e, "__esModule", { value: !0 });
48584
- var t = lz(), n = ez(), r = tz();
48586
+ var t = uz(), n = tz(), r = nz();
48585
48587
  e.default = {
48586
48588
  keyword: "required",
48587
48589
  type: "object",
@@ -48627,9 +48629,9 @@ var ZR = { parse_relative_date: {
48627
48629
  }
48628
48630
  }
48629
48631
  };
48630
- })), Hz = /* @__PURE__ */ s(((e) => {
48632
+ })), Uz = /* @__PURE__ */ s(((e) => {
48631
48633
  Object.defineProperty(e, "__esModule", { value: !0 });
48632
- var t = ez();
48634
+ var t = tz();
48633
48635
  e.default = {
48634
48636
  keyword: ["maxItems", "minItems"],
48635
48637
  type: "array",
@@ -48647,13 +48649,13 @@ var ZR = { parse_relative_date: {
48647
48649
  e.fail$data((0, t._)`${r}.length ${a} ${i}`);
48648
48650
  }
48649
48651
  };
48650
- })), Uz = /* @__PURE__ */ s(((e) => {
48652
+ })), Wz = /* @__PURE__ */ s(((e) => {
48651
48653
  Object.defineProperty(e, "__esModule", { value: !0 });
48652
- var t = fz();
48654
+ var t = pz();
48653
48655
  t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
48654
- })), Wz = /* @__PURE__ */ s(((e) => {
48656
+ })), Gz = /* @__PURE__ */ s(((e) => {
48655
48657
  Object.defineProperty(e, "__esModule", { value: !0 });
48656
- var t = sz(), n = ez(), r = tz(), i = Uz();
48658
+ var t = cz(), n = tz(), r = nz(), i = Wz();
48657
48659
  e.default = {
48658
48660
  keyword: "uniqueItems",
48659
48661
  type: "array",
@@ -48694,9 +48696,9 @@ var ZR = { parse_relative_date: {
48694
48696
  }
48695
48697
  }
48696
48698
  };
48697
- })), Gz = /* @__PURE__ */ s(((e) => {
48699
+ })), Kz = /* @__PURE__ */ s(((e) => {
48698
48700
  Object.defineProperty(e, "__esModule", { value: !0 });
48699
- var t = ez(), n = tz(), r = Uz();
48701
+ var t = tz(), n = nz(), r = Wz();
48700
48702
  e.default = {
48701
48703
  keyword: "const",
48702
48704
  $data: !0,
@@ -48709,9 +48711,9 @@ var ZR = { parse_relative_date: {
48709
48711
  o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
48710
48712
  }
48711
48713
  };
48712
- })), Kz = /* @__PURE__ */ s(((e) => {
48714
+ })), qz = /* @__PURE__ */ s(((e) => {
48713
48715
  Object.defineProperty(e, "__esModule", { value: !0 });
48714
- var t = ez(), n = tz(), r = Uz();
48716
+ var t = tz(), n = nz(), r = Wz();
48715
48717
  e.default = {
48716
48718
  keyword: "enum",
48717
48719
  schemaType: "array",
@@ -48741,9 +48743,9 @@ var ZR = { parse_relative_date: {
48741
48743
  }
48742
48744
  }
48743
48745
  };
48744
- })), qz = /* @__PURE__ */ s(((e) => {
48746
+ })), Jz = /* @__PURE__ */ s(((e) => {
48745
48747
  Object.defineProperty(e, "__esModule", { value: !0 });
48746
- var t = Fz(), n = Iz(), r = Rz(), i = zz(), a = Bz(), o = Vz(), s = Hz(), c = Wz(), l = Gz(), u = Kz();
48748
+ var t = Iz(), n = Lz(), r = zz(), i = Bz(), a = Vz(), o = Hz(), s = Uz(), c = Gz(), l = Kz(), u = qz();
48747
48749
  e.default = [
48748
48750
  t.default,
48749
48751
  n.default,
@@ -48764,9 +48766,9 @@ var ZR = { parse_relative_date: {
48764
48766
  l.default,
48765
48767
  u.default
48766
48768
  ];
48767
- })), Jz = /* @__PURE__ */ s(((e) => {
48769
+ })), Yz = /* @__PURE__ */ s(((e) => {
48768
48770
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
48769
- var t = ez(), n = tz(), r = {
48771
+ var t = tz(), n = nz(), r = {
48770
48772
  keyword: "additionalItems",
48771
48773
  type: "array",
48772
48774
  schemaType: ["boolean", "object"],
@@ -48804,9 +48806,9 @@ var ZR = { parse_relative_date: {
48804
48806
  }
48805
48807
  }
48806
48808
  e.validateAdditionalItems = i, e.default = r;
48807
- })), Yz = /* @__PURE__ */ s(((e) => {
48809
+ })), Xz = /* @__PURE__ */ s(((e) => {
48808
48810
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
48809
- var t = ez(), n = tz(), r = lz(), i = {
48811
+ var t = tz(), n = nz(), r = uz(), i = {
48810
48812
  keyword: "items",
48811
48813
  type: "array",
48812
48814
  schemaType: [
@@ -48841,9 +48843,9 @@ var ZR = { parse_relative_date: {
48841
48843
  }
48842
48844
  }
48843
48845
  e.validateTuple = a, e.default = i;
48844
- })), Xz = /* @__PURE__ */ s(((e) => {
48846
+ })), Zz = /* @__PURE__ */ s(((e) => {
48845
48847
  Object.defineProperty(e, "__esModule", { value: !0 });
48846
- var t = Yz();
48848
+ var t = Xz();
48847
48849
  e.default = {
48848
48850
  keyword: "prefixItems",
48849
48851
  type: "array",
@@ -48851,9 +48853,9 @@ var ZR = { parse_relative_date: {
48851
48853
  before: "uniqueItems",
48852
48854
  code: (e) => (0, t.validateTuple)(e, "items")
48853
48855
  };
48854
- })), Zz = /* @__PURE__ */ s(((e) => {
48856
+ })), Qz = /* @__PURE__ */ s(((e) => {
48855
48857
  Object.defineProperty(e, "__esModule", { value: !0 });
48856
- var t = ez(), n = tz(), r = lz(), i = Jz();
48858
+ var t = tz(), n = nz(), r = uz(), i = Yz();
48857
48859
  e.default = {
48858
48860
  keyword: "items",
48859
48861
  type: "array",
@@ -48868,9 +48870,9 @@ var ZR = { parse_relative_date: {
48868
48870
  o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
48869
48871
  }
48870
48872
  };
48871
- })), Qz = /* @__PURE__ */ s(((e) => {
48873
+ })), $z = /* @__PURE__ */ s(((e) => {
48872
48874
  Object.defineProperty(e, "__esModule", { value: !0 });
48873
- var t = ez(), n = tz();
48875
+ var t = tz(), n = nz();
48874
48876
  e.default = {
48875
48877
  keyword: "contains",
48876
48878
  type: "array",
@@ -48923,9 +48925,9 @@ var ZR = { parse_relative_date: {
48923
48925
  }
48924
48926
  }
48925
48927
  };
48926
- })), $z = /* @__PURE__ */ s(((e) => {
48928
+ })), eB = /* @__PURE__ */ s(((e) => {
48927
48929
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
48928
- var t = ez(), n = tz(), r = lz();
48930
+ var t = tz(), n = nz(), r = uz();
48929
48931
  e.error = {
48930
48932
  message: ({ params: { property: e, depsCount: n, deps: r } }) => {
48931
48933
  let i = n === 1 ? "property" : "properties";
@@ -48984,9 +48986,9 @@ var ZR = { parse_relative_date: {
48984
48986
  }, () => i.var(c, !0)), e.ok(c));
48985
48987
  }
48986
48988
  e.validateSchemaDeps = s, e.default = i;
48987
- })), eB = /* @__PURE__ */ s(((e) => {
48989
+ })), tB = /* @__PURE__ */ s(((e) => {
48988
48990
  Object.defineProperty(e, "__esModule", { value: !0 });
48989
- var t = ez(), n = tz();
48991
+ var t = tz(), n = nz();
48990
48992
  e.default = {
48991
48993
  keyword: "propertyNames",
48992
48994
  type: "object",
@@ -49012,9 +49014,9 @@ var ZR = { parse_relative_date: {
49012
49014
  }), e.ok(s);
49013
49015
  }
49014
49016
  };
49015
- })), tB = /* @__PURE__ */ s(((e) => {
49017
+ })), nB = /* @__PURE__ */ s(((e) => {
49016
49018
  Object.defineProperty(e, "__esModule", { value: !0 });
49017
- var t = lz(), n = ez(), r = nz(), i = tz();
49019
+ var t = uz(), n = tz(), r = rz(), i = nz();
49018
49020
  e.default = {
49019
49021
  keyword: "additionalProperties",
49020
49022
  type: ["object"],
@@ -49079,9 +49081,9 @@ var ZR = { parse_relative_date: {
49079
49081
  }
49080
49082
  }
49081
49083
  };
49082
- })), nB = /* @__PURE__ */ s(((e) => {
49084
+ })), rB = /* @__PURE__ */ s(((e) => {
49083
49085
  Object.defineProperty(e, "__esModule", { value: !0 });
49084
- var t = hz(), n = lz(), r = tz(), i = tB();
49086
+ var t = gz(), n = uz(), r = nz(), i = nB();
49085
49087
  e.default = {
49086
49088
  keyword: "properties",
49087
49089
  type: "object",
@@ -49108,9 +49110,9 @@ var ZR = { parse_relative_date: {
49108
49110
  }
49109
49111
  }
49110
49112
  };
49111
- })), rB = /* @__PURE__ */ s(((e) => {
49113
+ })), iB = /* @__PURE__ */ s(((e) => {
49112
49114
  Object.defineProperty(e, "__esModule", { value: !0 });
49113
- var t = lz(), n = ez(), r = tz(), i = tz();
49115
+ var t = uz(), n = tz(), r = nz(), i = nz();
49114
49116
  e.default = {
49115
49117
  keyword: "patternProperties",
49116
49118
  type: "object",
@@ -49143,9 +49145,9 @@ var ZR = { parse_relative_date: {
49143
49145
  }
49144
49146
  }
49145
49147
  };
49146
- })), iB = /* @__PURE__ */ s(((e) => {
49148
+ })), aB = /* @__PURE__ */ s(((e) => {
49147
49149
  Object.defineProperty(e, "__esModule", { value: !0 });
49148
- var t = tz();
49150
+ var t = nz();
49149
49151
  e.default = {
49150
49152
  keyword: "not",
49151
49153
  schemaType: ["object", "boolean"],
@@ -49166,17 +49168,17 @@ var ZR = { parse_relative_date: {
49166
49168
  },
49167
49169
  error: { message: "must NOT be valid" }
49168
49170
  };
49169
- })), aB = /* @__PURE__ */ s(((e) => {
49171
+ })), oB = /* @__PURE__ */ s(((e) => {
49170
49172
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
49171
49173
  keyword: "anyOf",
49172
49174
  schemaType: "array",
49173
49175
  trackErrors: !0,
49174
- code: lz().validateUnion,
49176
+ code: uz().validateUnion,
49175
49177
  error: { message: "must match a schema in anyOf" }
49176
49178
  };
49177
- })), oB = /* @__PURE__ */ s(((e) => {
49179
+ })), sB = /* @__PURE__ */ s(((e) => {
49178
49180
  Object.defineProperty(e, "__esModule", { value: !0 });
49179
- var t = ez(), n = tz();
49181
+ var t = tz(), n = nz();
49180
49182
  e.default = {
49181
49183
  keyword: "oneOf",
49182
49184
  schemaType: "array",
@@ -49206,9 +49208,9 @@ var ZR = { parse_relative_date: {
49206
49208
  }
49207
49209
  }
49208
49210
  };
49209
- })), sB = /* @__PURE__ */ s(((e) => {
49211
+ })), cB = /* @__PURE__ */ s(((e) => {
49210
49212
  Object.defineProperty(e, "__esModule", { value: !0 });
49211
- var t = tz();
49213
+ var t = nz();
49212
49214
  e.default = {
49213
49215
  keyword: "allOf",
49214
49216
  schemaType: "array",
@@ -49227,9 +49229,9 @@ var ZR = { parse_relative_date: {
49227
49229
  });
49228
49230
  }
49229
49231
  };
49230
- })), cB = /* @__PURE__ */ s(((e) => {
49232
+ })), lB = /* @__PURE__ */ s(((e) => {
49231
49233
  Object.defineProperty(e, "__esModule", { value: !0 });
49232
- var t = ez(), n = tz(), r = {
49234
+ var t = tz(), n = nz(), r = {
49233
49235
  keyword: "if",
49234
49236
  schemaType: ["object", "boolean"],
49235
49237
  trackErrors: !0,
@@ -49270,9 +49272,9 @@ var ZR = { parse_relative_date: {
49270
49272
  return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
49271
49273
  }
49272
49274
  e.default = r;
49273
- })), lB = /* @__PURE__ */ s(((e) => {
49275
+ })), uB = /* @__PURE__ */ s(((e) => {
49274
49276
  Object.defineProperty(e, "__esModule", { value: !0 });
49275
- var t = tz();
49277
+ var t = nz();
49276
49278
  e.default = {
49277
49279
  keyword: ["then", "else"],
49278
49280
  schemaType: ["object", "boolean"],
@@ -49280,9 +49282,9 @@ var ZR = { parse_relative_date: {
49280
49282
  n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
49281
49283
  }
49282
49284
  };
49283
- })), uB = /* @__PURE__ */ s(((e) => {
49285
+ })), dB = /* @__PURE__ */ s(((e) => {
49284
49286
  Object.defineProperty(e, "__esModule", { value: !0 });
49285
- var t = Jz(), n = Xz(), r = Yz(), i = Zz(), a = Qz(), o = $z(), s = eB(), c = tB(), l = nB(), u = rB(), d = iB(), f = aB(), p = oB(), m = sB(), h = cB(), g = lB();
49287
+ var t = Yz(), n = Zz(), r = Xz(), i = Qz(), a = $z(), o = eB(), s = tB(), c = nB(), l = rB(), u = iB(), d = aB(), f = oB(), p = sB(), m = cB(), h = lB(), g = uB();
49286
49288
  function _(e = !1) {
49287
49289
  let _ = [
49288
49290
  d.default,
@@ -49300,9 +49302,9 @@ var ZR = { parse_relative_date: {
49300
49302
  return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
49301
49303
  }
49302
49304
  e.default = _;
49303
- })), dB = /* @__PURE__ */ s(((e) => {
49305
+ })), fB = /* @__PURE__ */ s(((e) => {
49304
49306
  Object.defineProperty(e, "__esModule", { value: !0 });
49305
- var t = ez();
49307
+ var t = tz();
49306
49308
  e.default = {
49307
49309
  keyword: "format",
49308
49310
  type: ["number", "string"],
@@ -49375,9 +49377,9 @@ var ZR = { parse_relative_date: {
49375
49377
  }
49376
49378
  }
49377
49379
  };
49378
- })), fB = /* @__PURE__ */ s(((e) => {
49379
- Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [dB().default];
49380
49380
  })), pB = /* @__PURE__ */ s(((e) => {
49381
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [fB().default];
49382
+ })), mB = /* @__PURE__ */ s(((e) => {
49381
49383
  Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
49382
49384
  "title",
49383
49385
  "description",
@@ -49391,9 +49393,9 @@ var ZR = { parse_relative_date: {
49391
49393
  "contentEncoding",
49392
49394
  "contentSchema"
49393
49395
  ];
49394
- })), mB = /* @__PURE__ */ s(((e) => {
49396
+ })), hB = /* @__PURE__ */ s(((e) => {
49395
49397
  Object.defineProperty(e, "__esModule", { value: !0 });
49396
- var t = Pz(), n = qz(), r = uB(), i = fB(), a = pB();
49398
+ var t = Fz(), n = Jz(), r = dB(), i = pB(), a = mB();
49397
49399
  e.default = [
49398
49400
  t.default,
49399
49401
  n.default,
@@ -49402,15 +49404,15 @@ var ZR = { parse_relative_date: {
49402
49404
  a.metadataVocabulary,
49403
49405
  a.contentVocabulary
49404
49406
  ];
49405
- })), hB = /* @__PURE__ */ s(((e) => {
49407
+ })), gB = /* @__PURE__ */ s(((e) => {
49406
49408
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
49407
49409
  var t;
49408
49410
  (function(e) {
49409
49411
  e.Tag = "tag", e.Mapping = "mapping";
49410
49412
  })(t || (e.DiscrError = t = {}));
49411
- })), gB = /* @__PURE__ */ s(((e) => {
49413
+ })), _B = /* @__PURE__ */ s(((e) => {
49412
49414
  Object.defineProperty(e, "__esModule", { value: !0 });
49413
- var t = ez(), n = hB(), r = vz(), i = _z(), a = tz();
49415
+ var t = tz(), n = gB(), r = yz(), i = vz(), a = nz();
49414
49416
  e.default = {
49415
49417
  keyword: "discriminator",
49416
49418
  type: "object",
@@ -49478,16 +49480,16 @@ var ZR = { parse_relative_date: {
49478
49480
  }
49479
49481
  }
49480
49482
  };
49481
- })), _B = /* @__PURE__ */ c({
49482
- $id: () => yB,
49483
- $schema: () => vB,
49484
- default: () => wB,
49485
- definitions: () => xB,
49486
- properties: () => CB,
49487
- title: () => bB,
49488
- type: () => SB
49489
- }), vB, yB, bB, xB, SB, CB, wB, TB = o((() => {
49490
- vB = "http://json-schema.org/draft-07/schema#", yB = "http://json-schema.org/draft-07/schema#", bB = "Core schema meta-schema", xB = {
49483
+ })), vB = /* @__PURE__ */ c({
49484
+ $id: () => bB,
49485
+ $schema: () => yB,
49486
+ default: () => TB,
49487
+ definitions: () => SB,
49488
+ properties: () => wB,
49489
+ title: () => xB,
49490
+ type: () => CB
49491
+ }), yB, bB, xB, SB, CB, wB, TB, EB = o((() => {
49492
+ yB = "http://json-schema.org/draft-07/schema#", bB = "http://json-schema.org/draft-07/schema#", xB = "Core schema meta-schema", SB = {
49491
49493
  schemaArray: {
49492
49494
  type: "array",
49493
49495
  minItems: 1,
@@ -49513,7 +49515,7 @@ var ZR = { parse_relative_date: {
49513
49515
  uniqueItems: !0,
49514
49516
  default: []
49515
49517
  }
49516
- }, SB = ["object", "boolean"], CB = {
49518
+ }, CB = ["object", "boolean"], wB = {
49517
49519
  $id: {
49518
49520
  type: "string",
49519
49521
  format: "uri-reference"
@@ -49612,18 +49614,18 @@ var ZR = { parse_relative_date: {
49612
49614
  anyOf: { $ref: "#/definitions/schemaArray" },
49613
49615
  oneOf: { $ref: "#/definitions/schemaArray" },
49614
49616
  not: { $ref: "#" }
49615
- }, wB = {
49616
- $schema: vB,
49617
- $id: yB,
49618
- title: bB,
49619
- definitions: xB,
49620
- type: SB,
49621
- properties: CB,
49617
+ }, TB = {
49618
+ $schema: yB,
49619
+ $id: bB,
49620
+ title: xB,
49621
+ definitions: SB,
49622
+ type: CB,
49623
+ properties: wB,
49622
49624
  default: !0
49623
49625
  };
49624
- })), EB = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
49626
+ })), DB = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
49625
49627
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
49626
- var n = jz(), r = mB(), i = gB(), a = (TB(), d(_B).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
49628
+ var n = Mz(), r = hB(), i = _B(), a = (EB(), d(vB).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
49627
49629
  _addVocabularies() {
49628
49630
  super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
49629
49631
  }
@@ -49637,14 +49639,14 @@ var ZR = { parse_relative_date: {
49637
49639
  }
49638
49640
  };
49639
49641
  e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
49640
- var l = hz();
49642
+ var l = gz();
49641
49643
  Object.defineProperty(e, "KeywordCxt", {
49642
49644
  enumerable: !0,
49643
49645
  get: function() {
49644
49646
  return l.KeywordCxt;
49645
49647
  }
49646
49648
  });
49647
- var u = ez();
49649
+ var u = tz();
49648
49650
  Object.defineProperty(e, "_", {
49649
49651
  enumerable: !0,
49650
49652
  get: function() {
@@ -49676,23 +49678,23 @@ var ZR = { parse_relative_date: {
49676
49678
  return u.CodeGen;
49677
49679
  }
49678
49680
  });
49679
- var f = gz();
49681
+ var f = _z();
49680
49682
  Object.defineProperty(e, "ValidationError", {
49681
49683
  enumerable: !0,
49682
49684
  get: function() {
49683
49685
  return f.default;
49684
49686
  }
49685
49687
  });
49686
- var p = _z();
49688
+ var p = vz();
49687
49689
  Object.defineProperty(e, "MissingRefError", {
49688
49690
  enumerable: !0,
49689
49691
  get: function() {
49690
49692
  return p.default;
49691
49693
  }
49692
49694
  });
49693
- })))()), DB = class {
49695
+ })))()), OB = class {
49694
49696
  tools = Object.create(null);
49695
- ajv = new EB.default({
49697
+ ajv = new DB.default({
49696
49698
  allErrors: !0,
49697
49699
  strict: !1,
49698
49700
  allowUnionTypes: !0
@@ -49739,7 +49741,7 @@ var ZR = { parse_relative_date: {
49739
49741
  if (!n) throw Error(`${e} 没有 handler`);
49740
49742
  return n(t);
49741
49743
  }
49742
- }, OB = class extends DB {
49744
+ }, kB = class extends OB {
49743
49745
  model = "";
49744
49746
  url = "";
49745
49747
  messages = [];
@@ -49878,19 +49880,19 @@ var ZR = { parse_relative_date: {
49878
49880
  this.controller = null;
49879
49881
  }
49880
49882
  }
49881
- }, kB = class extends HTMLElement {
49882
- appRef;
49883
+ }, AB = class extends HTMLElement {
49884
+ appRef = null;
49883
49885
  promise;
49884
- resolve;
49886
+ resolve = null;
49885
49887
  constructor() {
49886
49888
  super(), this.attachShadow({ mode: "open" }), this.promise = new Promise((e) => {
49887
49889
  this.resolve = e;
49888
49890
  });
49889
49891
  }
49890
49892
  connectedCallback() {
49891
- this.shadowRoot && (this.appRef = mP({
49893
+ this.shadowRoot && (this.appRef = hP({
49892
49894
  domNode: this.shadowRoot,
49893
- onReady: () => this.resolve()
49895
+ onReady: () => this.resolve?.()
49894
49896
  }));
49895
49897
  }
49896
49898
  ready() {
@@ -49912,8 +49914,8 @@ var ZR = { parse_relative_date: {
49912
49914
  await this.promise, this.appRef?.current?.updateContext(e);
49913
49915
  }
49914
49916
  };
49915
- customElements.define("ai-chat-panel", kB);
49916
- var AB = class {
49917
+ customElements.define("ai-chat-panel", AB);
49918
+ var jB = class {
49917
49919
  on = f.on;
49918
49920
  panelElement;
49919
49921
  constructor(e) {
@@ -49941,4 +49943,4 @@ var AB = class {
49941
49943
  }
49942
49944
  };
49943
49945
  //#endregion
49944
- export { AB as AIChatPanel, OB as Agent, ZR as tools };
49946
+ export { jB as AIChatPanel, kB as Agent, QR as tools };