aoi-comp 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { V as e, u as t } from "./Geometry-CQNqhx0Z.js";
1
+ import { V as e, u as t } from "./Geometry-Cgp_B-U6.js";
2
2
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs
3
3
  var n = {};
4
4
  function r(e, t, r) {
@@ -1,4 +1,4 @@
1
- import { $ as e, B as t, D as n, I as r, J as i, O as a, T as o, X as s, _t as c, b as l, c as u, d, ft as f, ht as p, it as m, p as h, q as g, rt as _, s as v, t as y, tt as b, y as x, z as S } from "./packages-Sbaw1wWA.js";
1
+ import { B as e, D as t, I as n, J as r, O as i, T as a, Z as o, at as s, b as c, c as l, d as u, et as d, gt as f, it as p, nt as m, p as h, pt as g, q as _, s as v, t as y, vt as b, y as x, z as S } from "./packages-CrmSAScp.js";
2
2
  import { message as C } from "antd";
3
3
  import { createContext as w, use as T, useCallback as E, useContext as D, useEffect as O, useMemo as k, useRef as A, useState as j } from "react";
4
4
  //#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/utils.js
@@ -45,30 +45,30 @@ var M = (e, t, n, r) => {
45
45
  getUsedNamespaces() {
46
46
  return Object.keys(this.usedNamespaces);
47
47
  }
48
- }, U = /* @__PURE__ */ p(((e) => {
49
- var t = c("react");
48
+ }, ee = /* @__PURE__ */ f(((e) => {
49
+ var t = b("react");
50
50
  function n(e, t) {
51
51
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
52
52
  }
53
53
  var r = typeof Object.is == "function" ? Object.is : n, i = t.useState, a = t.useEffect, o = t.useLayoutEffect, s = t.useDebugValue;
54
- function l(e, t) {
54
+ function c(e, t) {
55
55
  var n = t(), r = i({ inst: {
56
56
  value: n,
57
57
  getSnapshot: t
58
- } }), c = r[0].inst, l = r[1];
58
+ } }), c = r[0].inst, u = r[1];
59
59
  return o(function() {
60
- c.value = n, c.getSnapshot = t, u(c) && l({ inst: c });
60
+ c.value = n, c.getSnapshot = t, l(c) && u({ inst: c });
61
61
  }, [
62
62
  e,
63
63
  n,
64
64
  t
65
65
  ]), a(function() {
66
- return u(c) && l({ inst: c }), e(function() {
67
- u(c) && l({ inst: c });
66
+ return l(c) && u({ inst: c }), e(function() {
67
+ l(c) && u({ inst: c });
68
68
  });
69
69
  }, [e]), s(n), n;
70
70
  }
71
- function u(e) {
71
+ function l(e) {
72
72
  var t = e.getSnapshot;
73
73
  e = e.value;
74
74
  try {
@@ -78,39 +78,39 @@ var M = (e, t, n, r) => {
78
78
  return !0;
79
79
  }
80
80
  }
81
- function d(e, t) {
81
+ function u(e, t) {
82
82
  return t();
83
83
  }
84
- var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
85
- e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
86
- })), W = /* @__PURE__ */ p(((e) => {
84
+ var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
85
+ e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
86
+ })), te = /* @__PURE__ */ f(((e) => {
87
87
  process.env.NODE_ENV !== "production" && (function() {
88
88
  function t(e, t) {
89
89
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
90
90
  }
91
91
  function n(e, t) {
92
- f || a.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
92
+ d || a.startTransition === void 0 || (d = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
93
93
  var n = t();
94
- if (!p) {
94
+ if (!f) {
95
95
  var i = t();
96
- o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
96
+ o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
97
97
  }
98
98
  i = s({ inst: {
99
99
  value: n,
100
100
  getSnapshot: t
101
101
  } });
102
- var c = i[0].inst, m = i[1];
103
- return u(function() {
104
- c.value = n, c.getSnapshot = t, r(c) && m({ inst: c });
102
+ var p = i[0].inst, m = i[1];
103
+ return l(function() {
104
+ p.value = n, p.getSnapshot = t, r(p) && m({ inst: p });
105
105
  }, [
106
106
  e,
107
107
  n,
108
108
  t
109
- ]), l(function() {
110
- return r(c) && m({ inst: c }), e(function() {
111
- r(c) && m({ inst: c });
109
+ ]), c(function() {
110
+ return r(p) && m({ inst: p }), e(function() {
111
+ r(p) && m({ inst: p });
112
112
  });
113
- }, [e]), d(n), n;
113
+ }, [e]), u(n), n;
114
114
  }
115
115
  function r(e) {
116
116
  var t = e.getSnapshot;
@@ -126,12 +126,12 @@ var M = (e, t, n, r) => {
126
126
  return t();
127
127
  }
128
128
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
129
- var a = c("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, l = a.useEffect, u = a.useLayoutEffect, d = a.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
130
- e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? m : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
129
+ var a = b("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
130
+ e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
131
131
  })();
132
- })), G = (/* @__PURE__ */ p(((e, t) => {
133
- t.exports = process.env.NODE_ENV === "production" ? U() : W();
134
- })))(), K = {
132
+ })), ne = (/* @__PURE__ */ f(((e, t) => {
133
+ t.exports = process.env.NODE_ENV === "production" ? ee() : te();
134
+ })))(), re = {
135
135
  t: (e, t) => {
136
136
  if (z(t)) return t;
137
137
  if (B(t) && z(t.defaultValue)) return t.defaultValue;
@@ -143,53 +143,53 @@ var M = (e, t, n, r) => {
143
143
  return e;
144
144
  },
145
145
  ready: !1
146
- }, q = () => () => {}, J = (e, t = {}) => {
147
- let { i18n: n } = t, { i18n: r, defaultNS: i } = D(V) || {}, a = n || r || _();
146
+ }, U = () => () => {}, W = (e, t = {}) => {
147
+ let { i18n: n } = t, { i18n: r, defaultNS: i } = D(V) || {}, a = n || r || p();
148
148
  a && !a.reportNamespaces && (a.reportNamespaces = new H()), a || P(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");
149
149
  let o = k(() => ({
150
- ...m(),
150
+ ...s(),
151
151
  ...a?.options?.react,
152
152
  ...t
153
- }), [a, t]), { useSuspense: s, keyPrefix: c } = o, l = e || i || a?.options?.defaultNS, u = z(l) ? [l] : l || ["translation"], d = k(() => u, u);
154
- a?.reportNamespaces?.addUsedNamespaces?.(d);
155
- let f = A(0), p = E((e) => {
156
- if (!a) return q;
153
+ }), [a, t]), { useSuspense: c, keyPrefix: l } = o, u = e || i || a?.options?.defaultNS, d = z(u) ? [u] : u || ["translation"], f = k(() => d, d);
154
+ a?.reportNamespaces?.addUsedNamespaces?.(f);
155
+ let m = A(0), h = E((e) => {
156
+ if (!a) return U;
157
157
  let { bindI18n: t, bindI18nStore: n } = o, r = () => {
158
- f.current += 1, e();
158
+ m.current += 1, e();
159
159
  };
160
160
  return t && a.on(t, r), n && a.store.on(n, r), () => {
161
161
  t && t.split(" ").forEach((e) => a.off(e, r)), n && n.split(" ").forEach((e) => a.store.off(e, r));
162
162
  };
163
- }, [a, o]), h = A(), g = E(() => {
164
- if (!a) return K;
165
- let e = !!(a.isInitialized || a.initializedStoreOnce) && d.every((e) => R(e, a, o)), n = t.lng || a.language, r = f.current, i = h.current;
166
- if (i && i.ready === e && i.lng === n && i.keyPrefix === c && i.revision === r) return i;
163
+ }, [a, o]), g = A(), _ = E(() => {
164
+ if (!a) return re;
165
+ let e = !!(a.isInitialized || a.initializedStoreOnce) && f.every((e) => R(e, a, o)), n = t.lng || a.language, r = m.current, i = g.current;
166
+ if (i && i.ready === e && i.lng === n && i.keyPrefix === l && i.revision === r) return i;
167
167
  let s = {
168
- t: a.getFixedT(n, o.nsMode === "fallback" ? d : d[0], c, { scopeNs: d }),
168
+ t: a.getFixedT(n, o.nsMode === "fallback" ? f : f[0], l, { scopeNs: f }),
169
169
  ready: e,
170
170
  lng: n,
171
- keyPrefix: c,
171
+ keyPrefix: l,
172
172
  revision: r
173
173
  };
174
- return h.current = s, s;
174
+ return g.current = s, s;
175
175
  }, [
176
176
  a,
177
- d,
178
- c,
177
+ f,
178
+ l,
179
179
  o,
180
180
  t.lng
181
- ]), [v, y] = j(0), { t: b, ready: x } = (0, G.useSyncExternalStore)(p, g, g);
181
+ ]), [v, y] = j(0), { t: b, ready: x } = (0, ne.useSyncExternalStore)(h, _, _);
182
182
  O(() => {
183
- if (a && !x && !s) {
183
+ if (a && !x && !c) {
184
184
  let e = () => y((e) => e + 1);
185
- t.lng ? L(a, t.lng, d, e) : I(a, d, e);
185
+ t.lng ? L(a, t.lng, f, e) : I(a, f, e);
186
186
  }
187
187
  }, [
188
188
  a,
189
189
  t.lng,
190
- d,
190
+ f,
191
191
  x,
192
- s,
192
+ c,
193
193
  v
194
194
  ]);
195
195
  let S = a || {}, C = A(null), w = A(), T = (e) => {
@@ -208,7 +208,7 @@ var M = (e, t, n, r) => {
208
208
  }, M = k(() => {
209
209
  let e = S, t = e?.language, n = e;
210
210
  e && (C.current && C.current.__original === e && w.current === t ? n = C.current : (n = T(e), C.current = n, w.current = t));
211
- let r = !x && !s ? (...e) => (P(a, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
211
+ let r = !x && !c ? (...e) => (P(a, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
212
212
  r,
213
213
  n,
214
214
  x
@@ -222,39 +222,39 @@ var M = (e, t, n, r) => {
222
222
  S.language,
223
223
  S.languages
224
224
  ]);
225
- if (a && s && !x) {
225
+ if (a && c && !x) {
226
226
  let e = !1;
227
227
  try {
228
228
  e = process.env.NODE_ENV !== "production";
229
229
  } catch {}
230
230
  throw e && P(a, "SUSPENDED_WHILE_LOADING", "useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"), new Promise((e) => {
231
231
  let n = () => e();
232
- t.lng ? L(a, t.lng, d, n) : I(a, d, n);
232
+ t.lng ? L(a, t.lng, f, n) : I(a, f, n);
233
233
  });
234
234
  }
235
235
  return M;
236
- }, Y = { app: w("app") }, ee = (e = "app") => {
237
- Y[e] || (Y[e] = w(e));
238
- let t = T(Y[e]);
239
- if (!t) throw Error(s.use.contextErr({ key: e }));
236
+ }, G = { app: w("app") }, K = (e = "app") => {
237
+ G[e] || (G[e] = w(e));
238
+ let t = T(G[e]);
239
+ if (!t) throw Error(o.use.contextErr({ key: e }));
240
240
  return t;
241
- }, X = (e) => {
241
+ }, q = (e) => {
242
242
  let t = A(), n = A();
243
243
  return t.current = e, n.current ||= (...e) => t.current(...e), n.current;
244
- }, te = (t = {}) => {
245
- let [n, r] = j(Object.keys(t).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), i = A(t), a = A(!1), s = X((e) => {
246
- let t = `vast-${e}-${o("-")}`;
247
- r({
248
- ...n,
249
- [e]: t
244
+ }, J = (e = {}) => {
245
+ let [t, n] = j(Object.keys(e).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), r = A(e), i = A(!1), o = q((e) => {
246
+ let r = `vast-${e}-${a("-")}`;
247
+ n({
248
+ ...t,
249
+ [e]: r
250
250
  });
251
- }), c = (n, r = t) => {
252
- let a = n ? r[n] : r;
253
- if (typeof a != "object" || !a) return;
254
- let o = new Proxy(a, {
255
- get(t, r, i) {
256
- let a = b(t), o = Reflect.get(t, r, a === "map" || a === "set" ? t : i);
257
- return e(o, "function") ? [
251
+ }), s = (t, n = e) => {
252
+ let i = t ? n[t] : n;
253
+ if (typeof i != "object" || !i) return;
254
+ let a = new Proxy(i, {
255
+ get(e, n, r) {
256
+ let i = m(e), a = Reflect.get(e, n, i === "map" || i === "set" ? e : r);
257
+ return d(a, "function") ? [
258
258
  "add",
259
259
  "set",
260
260
  "delete",
@@ -267,35 +267,35 @@ var M = (e, t, n, r) => {
267
267
  "sort",
268
268
  "splice",
269
269
  "unshift"
270
- ].includes(r) ? (...e) => {
271
- let i = o.apply(t, e);
272
- return s(n ?? r), i;
273
- } : (...e) => o.apply(t, e) : o;
270
+ ].includes(n) ? (...r) => {
271
+ let i = a.apply(e, r);
272
+ return o(t ?? n), i;
273
+ } : (...t) => a.apply(e, t) : a;
274
274
  },
275
- set(e, t, r, i) {
276
- if (Reflect.get(e, t, i) === r) return !0;
277
- let a = Reflect.set(e, t, r, i);
278
- return s(n ?? t), a;
275
+ set(e, n, r, i) {
276
+ if (Reflect.get(e, n, i) === r) return !0;
277
+ let a = Reflect.set(e, n, r, i);
278
+ return o(t ?? n), a;
279
279
  },
280
- deleteProperty(e, t) {
281
- if (!Reflect.has(e, t)) return !0;
282
- let r = Reflect.deleteProperty(e, t);
283
- return s(n ?? t), r;
280
+ deleteProperty(e, n) {
281
+ if (!Reflect.has(e, n)) return !0;
282
+ let r = Reflect.deleteProperty(e, n);
283
+ return o(t ?? n), r;
284
284
  }
285
285
  });
286
- if (n) i.current[n] = o;
287
- else return o;
286
+ if (t) r.current[t] = a;
287
+ else return a;
288
288
  };
289
- if (!a.current) {
290
- i.current = c();
291
- for (let e in t) c(e);
292
- a.current = !0;
289
+ if (!i.current) {
290
+ r.current = s();
291
+ for (let t in e) s(t);
292
+ i.current = !0;
293
293
  }
294
294
  return O(() => () => {
295
- for (let e in i.current) delete i.current[e];
296
- a.current = !1;
297
- }, []), [n, i.current];
298
- }, ne = (e, t) => {
295
+ for (let e in r.current) delete r.current[e];
296
+ i.current = !1;
297
+ }, []), [t, r.current];
298
+ }, Y = (e, t) => {
299
299
  let [n, r] = j(!0), i = A({
300
300
  isMounted: !1,
301
301
  lastCallId: 0
@@ -312,7 +312,7 @@ var M = (e, t, n, r) => {
312
312
  return n || r(!0), e(...t).then((e) => (i.isMounted && a === i.lastCallId && r(!1), e), (e) => (i.isMounted && a === i.lastCallId && r(!1), e));
313
313
  }, t);
314
314
  return [n, a];
315
- }, Z = (e = "simple", t = []) => {
315
+ }, X = (e = "simple", t = []) => {
316
316
  let n = {
317
317
  exe: y.exe,
318
318
  cv: y.cv,
@@ -325,7 +325,7 @@ var M = (e, t, n, r) => {
325
325
  "defects",
326
326
  "running",
327
327
  ...t
328
- ]).current, i = T(Y.app);
328
+ ]).current, i = T(G.app);
329
329
  switch (e) {
330
330
  case "privatize": return Object.assign(n, i);
331
331
  case "simple": return r.reduce((e, t) => (e[t] = i[t], e), n);
@@ -334,86 +334,86 @@ var M = (e, t, n, r) => {
334
334
  setRunning: i.setRunning,
335
335
  proAction: i.proAction
336
336
  }];
337
- default: throw Error(s.use.patternErr({ pattern: e }));
337
+ default: throw Error(o.use.patternErr({ pattern: e }));
338
338
  }
339
- }, Q = (e, t, n = { immediate: !1 }) => {
339
+ }, Z = (e, t, n = { immediate: !1 }) => {
340
340
  let r = A({
341
341
  oldValue: null,
342
342
  isInit: n.immediate,
343
343
  isWatch: !0
344
344
  }).current;
345
345
  return O(() => {
346
- r.isWatch && (r.isInit ? (u(t, r.oldValue) || e(t, r.oldValue), r.oldValue = v(t)) : r.isInit = !0);
346
+ r.isWatch && (r.isInit ? (l(t, r.oldValue) || e(t, r.oldValue), r.oldValue = v(t)) : r.isInit = !0);
347
347
  }, t), () => {
348
348
  r.isWatch = !1;
349
349
  };
350
- }, re = (e = "") => {
351
- if (!e) throw Error(s.use.prefixErr());
352
- let { t } = J("translation", { keyPrefix: e });
350
+ }, ie = (e = "") => {
351
+ if (!e) throw Error(o.use.prefixErr());
352
+ let { t } = W("translation", { keyPrefix: e });
353
353
  return t;
354
- }, ie = (e, t, n = !1) => {
355
- let r = X(e);
356
- return O(() => (n && r(), i(t, r), () => g(t, r)), []), r;
357
- }, $ = (t, n) => {
358
- let r = A({
354
+ }, ae = (e, t, n = !1) => {
355
+ let i = q(e);
356
+ return O(() => (n && i(), r(t, i), () => _(t, i)), []), i;
357
+ }, Q = (e, t) => {
358
+ let n = A({
359
359
  immediate: !1,
360
360
  fps: 17,
361
361
  beforeFn: null
362
362
  }).current;
363
- if (e(n, "boolean")) r.immediate = n;
364
- else if (e(n, "number")) r.fps = n;
365
- else if (e(n, "function")) r.beforeFn = n;
366
- else if (e(n, "object")) for (let e in n) Object.hasOwn(r, e) && (r[e] = n[e]);
367
- let i = l(t, 60 * r.fps);
368
- O(() => (r.beforeFn?.(), r.immediate && i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i)), []);
369
- }, ae = (t, n, r) => {
370
- let [i, a] = j({
371
- width: r?.width || 0,
372
- height: r?.height || 0
373
- }), o = A(), s = A({
363
+ if (d(t, "boolean")) n.immediate = t;
364
+ else if (d(t, "number")) n.fps = t;
365
+ else if (d(t, "function")) n.beforeFn = t;
366
+ else if (d(t, "object")) for (let e in t) Object.hasOwn(n, e) && (n[e] = t[e]);
367
+ let r = c(e, 60 * n.fps);
368
+ O(() => (n.beforeFn?.(), n.immediate && r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), []);
369
+ }, $ = (e, t, n) => {
370
+ let [r, i] = j({
371
+ width: n?.width || 0,
372
+ height: n?.height || 0
373
+ }), a = A(), o = A({
374
374
  immediate: !1,
375
375
  fps: 12,
376
376
  beforeFn: null
377
377
  }).current;
378
- if (e(r, "boolean")) s.immediate = r;
379
- else if (e(r, "number")) s.fps = r;
380
- else if (e(r, "function")) s.beforeFn = r;
381
- else if (e(r, "object")) for (let e in r) Object.hasOwn(s, e) && (s[e] = r[e]);
382
- let c = () => o.current?.observe?.(n.current), u = () => o.current?.unobserve?.(n.current), d = X((e) => {
383
- let n = e[0].contentRect, { width: r, height: o } = n;
384
- (r !== i.width || o !== i.height) && t?.(n, i), a({
385
- width: r,
378
+ if (d(n, "boolean")) o.immediate = n;
379
+ else if (d(n, "number")) o.fps = n;
380
+ else if (d(n, "function")) o.beforeFn = n;
381
+ else if (d(n, "object")) for (let e in n) Object.hasOwn(o, e) && (o[e] = n[e]);
382
+ let s = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u = q((t) => {
383
+ let n = t[0].contentRect, { width: a, height: o } = n;
384
+ (a !== r.width || o !== r.height) && e?.(n, r), i({
385
+ width: a,
386
386
  height: o
387
387
  });
388
388
  });
389
389
  return O(() => {
390
- if (n.current) return o.current = new ResizeObserver(l(d, 10 * s.fps)), o.current.observe(n.current), () => o.current?.disconnect?.();
391
- }, [n, t]), $(() => {
392
- if (!n.current) return;
393
- let e = n.current;
394
- a({
390
+ if (t.current) return a.current = new ResizeObserver(c(u, 10 * o.fps)), a.current.observe(t.current), () => a.current?.disconnect?.();
391
+ }, [t, e]), Q(() => {
392
+ if (!t.current) return;
393
+ let e = t.current;
394
+ i({
395
395
  width: e.offsetWidth,
396
396
  height: e.offsetHeight
397
397
  });
398
- }, r), [i, {
399
- observe: c,
400
- unobserve: u
398
+ }, n), [r, {
399
+ observe: s,
400
+ unobserve: l
401
401
  }];
402
402
  }, oe = (e = "app", t = !1) => {
403
- let { context: n } = Z("privatize"), r = A(C.useMessage()), i = A([]), a = (e, t, { key: n, duration: a = 3, onClose: s } = {}) => {
404
- let c = n || `msg_${o()}`;
403
+ let { context: n } = X("privatize"), r = A(C.useMessage()), i = A([]), o = (e, t, { key: n, duration: o = 3, onClose: s } = {}) => {
404
+ let c = n || `msg_${a()}`;
405
405
  return i.current.push(c), r.current[0].open({
406
406
  key: c,
407
407
  type: e,
408
408
  content: t,
409
- duration: a,
409
+ duration: o,
410
410
  classNames: { root: "aoi-message" },
411
411
  onClose: () => {
412
412
  let e = i.current.indexOf(c);
413
413
  e !== -1 && i.current.splice(e, 1), s?.();
414
414
  }
415
415
  }), c;
416
- }, s = (e, t = {}) => a("success", e, t), c = (e, t = {}) => a("error", e, t);
416
+ }, s = (e, t = {}) => o("success", e, t), c = (e, t = {}) => o("error", e, t);
417
417
  return O(() => {
418
418
  if (!n.msgs) return;
419
419
  let i = n.msgs.get(e);
@@ -423,10 +423,10 @@ var M = (e, t, n, r) => {
423
423
  }, []), [{
424
424
  success: s,
425
425
  error: c,
426
- info: (e, t = {}) => a("info", e, t),
427
- warning: (e, t = {}) => a("warning", e, t),
426
+ info: (e, t = {}) => o("info", e, t),
427
+ warning: (e, t = {}) => o("warning", e, t),
428
428
  loading: (e, t = {}) => {
429
- let n = a("loading", e, {
429
+ let n = o("loading", e, {
430
430
  duration: 0,
431
431
  ...t
432
432
  });
@@ -437,42 +437,42 @@ var M = (e, t, n, r) => {
437
437
  };
438
438
  }
439
439
  }, t ? r.current[1] : void 0];
440
- }, se = (t, i = {}) => {
441
- let [a, o] = j(i), c = A(e(t, "function")).current, l = () => {
442
- h(t, (e) => {
440
+ }, se = (e, r = {}) => {
441
+ let [i, a] = j(r), s = A(d(e, "function")).current, c = () => {
442
+ h(e, (e) => {
443
443
  let t = {};
444
- for (let n in i) t[n] = e?.[n] ?? i[n];
445
- o(t);
444
+ for (let n in r) t[n] = e?.[n] ?? r[n];
445
+ a(t);
446
446
  });
447
- }, u = (e) => {
448
- n(t, e);
449
- }, d = X((e, n, i = null) => {
450
- let { db: l } = y, u = a[e];
451
- a[e] = n, o({
452
- ...a,
453
- [e]: n
454
- }), c && t(e, n), i?.(s.tool.setOk(), { key: r }), l && l.logOperate(S.INFO, { setProject: {
455
- key: e,
447
+ }, l = (n) => {
448
+ t(e, n);
449
+ }, u = q((t, r, c = null) => {
450
+ let { db: l } = y, u = i[t];
451
+ i[t] = r, a({
452
+ ...i,
453
+ [t]: r
454
+ }), s && e(t, r), c?.(o.tool.setOk(), { key: n }), l && l.logOperate(S.INFO, { setProject: {
455
+ key: t,
456
456
  oldValue: u,
457
- value: n
457
+ value: r
458
458
  } });
459
- }), f = X((e, n = null) => {
460
- o({
461
- ...a,
462
- ...e
463
- }), c && t(e), n?.(s.tool.setOk(), { key: r });
459
+ }), f = q((t, r = null) => {
460
+ a({
461
+ ...i,
462
+ ...t
463
+ }), s && e(t), r?.(o.tool.setOk(), { key: n });
464
464
  });
465
465
  O(() => {
466
- c || l();
466
+ s || c();
467
467
  }, []);
468
- let p = Q(([e]) => {
469
- u(e);
470
- }, [a]);
471
- return c && p(), [a, {
468
+ let p = Z(([e]) => {
469
+ l(e);
470
+ }, [i]);
471
+ return s && p(), [i, {
472
472
  setData: f,
473
- setKey: d
473
+ setKey: u
474
474
  }];
475
- }, ce = (e, n = t) => {
475
+ }, ce = (t, n = e) => {
476
476
  let [r, i] = j([]), [a, o] = j(0), [s, c] = j({
477
477
  current: 1,
478
478
  pageSize: n[0]
@@ -483,43 +483,43 @@ var M = (e, t, n, r) => {
483
483
  pageSize: s.pageSize,
484
484
  options: n,
485
485
  total: a,
486
- setValue: (t, n) => {
486
+ setValue: (e, n) => {
487
487
  let r = s.pageSize, a = s.current;
488
- d(n) && (a = 1, !e && (l.current = t), o(n), c({
488
+ u(n) && (a = 1, !t && (l.current = e), o(n), c({
489
489
  current: a,
490
490
  pageSize: r
491
491
  }));
492
- let u = (a - 1) * r, f = u + r;
493
- i(e ? t : t.slice(u, f));
492
+ let d = (a - 1) * r, f = d + r;
493
+ i(t ? e : e.slice(d, f));
494
494
  },
495
- onChange: (t, n) => {
496
- let r = (t - 1) * n, a = r + n, o = {
497
- current: t,
495
+ onChange: (e, n) => {
496
+ let r = (e - 1) * n, a = r + n, o = {
497
+ current: e,
498
498
  pageSize: n
499
499
  };
500
- e ? e(o) : i(l.current.slice(r, a)), c(o);
500
+ t ? t(o) : i(l.current.slice(r, a)), c(o);
501
501
  }
502
502
  }];
503
503
  }, le = (e) => {
504
- let t = A([]), n = A(null), [r, i] = j(null), c = () => {
504
+ let t = A([]), n = A(null), [r, s] = j(null), c = () => {
505
505
  let e = t.current.shift();
506
- e ? (n.current = e, i(e._id)) : (n.current = null, i(null));
507
- }, l = X((e) => {
508
- e._id = o("#"), t.current.push(e), !r && !n.current && c();
506
+ e ? (n.current = e, s(e._id)) : (n.current = null, s(null));
507
+ }, l = q((e) => {
508
+ e._id = a("#"), t.current.push(e), !r && !n.current && c();
509
509
  });
510
510
  return O(() => {
511
511
  let { exe: t, db: n } = y;
512
512
  t && t.on("summaryDataUploaded(HeilsSummaryDataInfo)", async (t) => {
513
513
  if (!t) {
514
- let e = s.main.dataEmpty({ data: x(t) });
515
- a.warning(e, s.exe.disposeErr()), n.logMessage(S.WARN, { dataEmpty: { data: t } });
514
+ let e = o.main.dataEmpty({ data: x(t) });
515
+ i.warning(e, o.exe.disposeErr()), n.logMessage(S.WARN, { dataEmpty: { data: t } });
516
516
  return;
517
517
  }
518
518
  y.dev && console.log("Received data ...");
519
519
  let r = await e?.(t);
520
520
  if (!r) {
521
- let e = s.main.dataErr({ data: x(t) });
522
- a.error(e, s.exe.disposeErr()), n.logMessage(S.ERROR, { dataErr: { data: t } }), y.dev && console.error(t);
521
+ let e = o.main.dataErr({ data: x(t) });
522
+ i.error(e, o.exe.disposeErr()), n.logMessage(S.ERROR, { dataErr: { data: t } }), y.dev && console.error(t);
523
523
  return;
524
524
  }
525
525
  l(r);
@@ -533,7 +533,7 @@ var M = (e, t, n, r) => {
533
533
  let [e, t] = j({
534
534
  ok: 0,
535
535
  ng: 0
536
- }), n = X((n) => {
536
+ }), n = q((n) => {
537
537
  let r = { ...e };
538
538
  r[n ? "ok" : "ng"] += 1, t(r);
539
539
  });
@@ -542,11 +542,11 @@ var M = (e, t, n, r) => {
542
542
  data: k(() => [{
543
543
  label: "OK",
544
544
  value: e.ok,
545
- color: f.ok
545
+ color: g.ok
546
546
  }, {
547
547
  label: "NG",
548
548
  value: e.ng,
549
- color: f.ng
549
+ color: g.ng
550
550
  }], [e]),
551
551
  increment: n,
552
552
  clear: () => {
@@ -559,4 +559,4 @@ var M = (e, t, n, r) => {
559
559
  };
560
560
  };
561
561
  //#endregion
562
- export { P as S, J as _, le as a, z as b, ae as c, X as d, re as f, Q as g, te as h, ne as i, ie as l, Z as m, Y as n, se as o, $ as p, ee as r, oe as s, ue as t, ce as u, V as v, M as x, B as y };
562
+ export { P as S, W as _, le as a, z as b, $ as c, q as d, ie as f, Z as g, J as h, Y as i, ae as l, X as m, G as n, se as o, Q as p, K as r, oe as s, ue as t, ce as u, V as v, M as x, B as y };
package/dist/hooks.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./hooks-Dbbx_ZCW.js";
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./hooks-Bg2vQv8s.js";
2
2
  export { l as Contexts, f as useAppContext, o as useAsync, e as useDataQueue, u as useFileState, p as useMessage, t as useObserver, s as useOnEvent, h as usePagination, n as usePersistFn, r as usePrefixT, d as useResize, m as useRunStatis, c as useStore, a as useVastState, i as useWatch };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./packages-Sbaw1wWA.js";
1
+ import { n as e, t } from "./packages-CrmSAScp.js";
2
2
  export { t as AoiGlobal, e as aoiInit };