aoi-comp 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/{BufferResource-DFDBAnSq.js → BufferResource-o2LGGq1U.js} +2 -2
- package/dist/{CanvasPool-BsgAe0a6.js → CanvasPool-x1nSZDIx.js} +1 -1
- package/dist/{Geometry-aazo6sAf.js → Geometry-BM7su788.js} +3 -3
- package/dist/{RenderTargetSystem-CZF50Fmm.js → RenderTargetSystem-BNp9VOlY.js} +245 -245
- package/dist/{browserAll-DaWcejVe.js → browserAll-EL05LSIx.js} +11 -11
- package/dist/{canvasUtils-De2q5tyg.js → canvasUtils-C0wKvLC1.js} +1 -1
- package/dist/comps.js +19300 -16632
- package/dist/{getTextureBatchBindGroup-DQkuEaQe.js → getTextureBatchBindGroup-BFZcnSby.js} +1 -1
- package/dist/{hooks-CdZsOQlG.js → hooks-MstF8Y3K.js} +158 -158
- package/dist/hooks.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-DVx9p_OT.js → init-C4yLp8yD.js} +17 -17
- package/dist/{init-Dhh1Ipn5.js → init-CCTyMlTU.js} +16 -15
- package/dist/{packages-CZzUFKwt.js → packages-C9qBCygN.js} +475 -437
- package/dist/style.css +1 -1
- package/dist/utils.js +2 -2
- package/dist/webworkerAll-CytR-OcT.js +2 -0
- package/package.json +6 -6
- package/dist/webworkerAll-c3PtPRAK.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e, u as t } from "./Geometry-
|
|
1
|
+
import { V as e, u as t } from "./Geometry-BM7su788.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, E as t,
|
|
1
|
+
import { $ as e, E as t, F as n, G as r, J as i, K as a, R as o, Z as s, f as c, ht as l, nt as u, o as d, pt as f, s as p, t as m, tt as h, u as g, ut as _, w as v, y } from "./packages-C9qBCygN.js";
|
|
2
2
|
import { message as b } from "antd";
|
|
3
3
|
import { createContext as x, use as S, useCallback as C, useContext as w, useEffect as T, useMemo as E, useRef as D, useState as O } from "react";
|
|
4
4
|
//#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/utils.js
|
|
@@ -45,8 +45,8 @@ var k = (e, t, n, r) => {
|
|
|
45
45
|
getUsedNamespaces() {
|
|
46
46
|
return Object.keys(this.usedNamespaces);
|
|
47
47
|
}
|
|
48
|
-
}, B = /* @__PURE__ */
|
|
49
|
-
var t =
|
|
48
|
+
}, B = /* @__PURE__ */ f(((e) => {
|
|
49
|
+
var t = l("react");
|
|
50
50
|
function n(e, t) {
|
|
51
51
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
52
52
|
}
|
|
@@ -55,20 +55,20 @@ var k = (e, t, n, r) => {
|
|
|
55
55
|
var n = t(), r = i({ inst: {
|
|
56
56
|
value: n,
|
|
57
57
|
getSnapshot: t
|
|
58
|
-
} }), c = r[0].inst,
|
|
58
|
+
} }), c = r[0].inst, l = r[1];
|
|
59
59
|
return o(function() {
|
|
60
|
-
c.value = n, c.getSnapshot = t,
|
|
60
|
+
c.value = n, c.getSnapshot = t, u(c) && l({ inst: c });
|
|
61
61
|
}, [
|
|
62
62
|
e,
|
|
63
63
|
n,
|
|
64
64
|
t
|
|
65
65
|
]), a(function() {
|
|
66
|
-
return
|
|
67
|
-
|
|
66
|
+
return u(c) && l({ inst: c }), e(function() {
|
|
67
|
+
u(c) && l({ inst: c });
|
|
68
68
|
});
|
|
69
69
|
}, [e]), s(n), n;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function u(e) {
|
|
72
72
|
var t = e.getSnapshot;
|
|
73
73
|
e = e.value;
|
|
74
74
|
try {
|
|
@@ -78,39 +78,39 @@ var k = (e, t, n, r) => {
|
|
|
78
78
|
return !0;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function d(e, t) {
|
|
82
82
|
return t();
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ?
|
|
86
|
-
})), V = /* @__PURE__ */
|
|
84
|
+
var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : c;
|
|
85
|
+
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
|
|
86
|
+
})), V = /* @__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
|
-
|
|
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."));
|
|
93
93
|
var n = t();
|
|
94
|
-
if (!
|
|
94
|
+
if (!p) {
|
|
95
95
|
var i = t();
|
|
96
|
-
o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"),
|
|
96
|
+
o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
|
|
97
97
|
}
|
|
98
98
|
i = s({ inst: {
|
|
99
99
|
value: n,
|
|
100
100
|
getSnapshot: t
|
|
101
101
|
} });
|
|
102
|
-
var
|
|
103
|
-
return
|
|
104
|
-
|
|
102
|
+
var l = i[0].inst, m = i[1];
|
|
103
|
+
return u(function() {
|
|
104
|
+
l.value = n, l.getSnapshot = t, r(l) && m({ inst: l });
|
|
105
105
|
}, [
|
|
106
106
|
e,
|
|
107
107
|
n,
|
|
108
108
|
t
|
|
109
109
|
]), c(function() {
|
|
110
|
-
return r(
|
|
111
|
-
r(
|
|
110
|
+
return r(l) && m({ inst: l }), e(function() {
|
|
111
|
+
r(l) && m({ inst: l });
|
|
112
112
|
});
|
|
113
|
-
}, [e]),
|
|
113
|
+
}, [e]), d(n), n;
|
|
114
114
|
}
|
|
115
115
|
function r(e) {
|
|
116
116
|
var t = e.getSnapshot;
|
|
@@ -126,12 +126,12 @@ var k = (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 =
|
|
130
|
-
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ?
|
|
129
|
+
var a = l("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = 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());
|
|
131
131
|
})();
|
|
132
|
-
})), H = (/* @__PURE__ */
|
|
132
|
+
})), H = (/* @__PURE__ */ f(((e, t) => {
|
|
133
133
|
t.exports = process.env.NODE_ENV === "production" ? B() : V();
|
|
134
|
-
})))(),
|
|
134
|
+
})))(), U = {
|
|
135
135
|
t: (e, t) => {
|
|
136
136
|
if (I(t)) return t;
|
|
137
137
|
if (L(t) && I(t.defaultValue)) return t.defaultValue;
|
|
@@ -143,56 +143,56 @@ var k = (e, t, n, r) => {
|
|
|
143
143
|
return e;
|
|
144
144
|
},
|
|
145
145
|
ready: !1
|
|
146
|
-
},
|
|
147
|
-
let { i18n:
|
|
148
|
-
|
|
149
|
-
let
|
|
150
|
-
...
|
|
151
|
-
...
|
|
152
|
-
...
|
|
153
|
-
}), [
|
|
154
|
-
|
|
155
|
-
let
|
|
156
|
-
if (!
|
|
157
|
-
let { bindI18n: t, bindI18nStore: n } =
|
|
158
|
-
|
|
146
|
+
}, W = () => () => {}, G = (e, t = {}) => {
|
|
147
|
+
let { i18n: n } = t, { i18n: r, defaultNS: i } = w(R) || {}, a = n || r || h();
|
|
148
|
+
a && !a.reportNamespaces && (a.reportNamespaces = new z()), a || j(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
|
+
let o = E(() => ({
|
|
150
|
+
...u(),
|
|
151
|
+
...a?.options?.react,
|
|
152
|
+
...t
|
|
153
|
+
}), [a, t]), { useSuspense: s, keyPrefix: c } = o, l = e || i || a?.options?.defaultNS, d = I(l) ? [l] : l || ["translation"], f = E(() => d, d);
|
|
154
|
+
a?.reportNamespaces?.addUsedNamespaces?.(f);
|
|
155
|
+
let p = D(0), m = C((e) => {
|
|
156
|
+
if (!a) return W;
|
|
157
|
+
let { bindI18n: t, bindI18nStore: n } = o, r = () => {
|
|
158
|
+
p.current += 1, e();
|
|
159
159
|
};
|
|
160
|
-
return t &&
|
|
161
|
-
t && t.split(" ").forEach((e) =>
|
|
160
|
+
return t && a.on(t, r), n && a.store.on(n, r), () => {
|
|
161
|
+
t && t.split(" ").forEach((e) => a.off(e, r)), n && n.split(" ").forEach((e) => a.store.off(e, r));
|
|
162
162
|
};
|
|
163
|
-
}, [
|
|
164
|
-
if (!
|
|
165
|
-
let e = !!(
|
|
166
|
-
if (i && i.ready === e && i.lng ===
|
|
167
|
-
let
|
|
168
|
-
t:
|
|
163
|
+
}, [a, o]), g = D(), _ = C(() => {
|
|
164
|
+
if (!a) return U;
|
|
165
|
+
let e = !!(a.isInitialized || a.initializedStoreOnce) && f.every((e) => F(e, a, o)), n = t.lng || a.language, r = p.current, i = g.current;
|
|
166
|
+
if (i && i.ready === e && i.lng === n && i.keyPrefix === c && i.revision === r) return i;
|
|
167
|
+
let s = {
|
|
168
|
+
t: a.getFixedT(n, o.nsMode === "fallback" ? f : f[0], c, { scopeNs: f }),
|
|
169
169
|
ready: e,
|
|
170
|
-
lng:
|
|
171
|
-
keyPrefix:
|
|
170
|
+
lng: n,
|
|
171
|
+
keyPrefix: c,
|
|
172
172
|
revision: r
|
|
173
173
|
};
|
|
174
|
-
return g.current =
|
|
174
|
+
return g.current = s, s;
|
|
175
175
|
}, [
|
|
176
|
+
a,
|
|
177
|
+
f,
|
|
178
|
+
c,
|
|
176
179
|
o,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
s,
|
|
180
|
-
n.lng
|
|
181
|
-
]), [v, y] = O(0), { t: b, ready: x } = (0, H.useSyncExternalStore)(h, _, _);
|
|
180
|
+
t.lng
|
|
181
|
+
]), [v, y] = O(0), { t: b, ready: x } = (0, H.useSyncExternalStore)(m, _, _);
|
|
182
182
|
T(() => {
|
|
183
|
-
if (
|
|
183
|
+
if (a && !x && !s) {
|
|
184
184
|
let e = () => y((e) => e + 1);
|
|
185
|
-
|
|
185
|
+
t.lng ? P(a, t.lng, f, e) : N(a, f, e);
|
|
186
186
|
}
|
|
187
187
|
}, [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
a,
|
|
189
|
+
t.lng,
|
|
190
|
+
f,
|
|
191
191
|
x,
|
|
192
|
-
|
|
192
|
+
s,
|
|
193
193
|
v
|
|
194
194
|
]);
|
|
195
|
-
let S =
|
|
195
|
+
let S = a || {}, k = D(null), A = D(), M = (e) => {
|
|
196
196
|
let t = Object.getOwnPropertyDescriptors(e);
|
|
197
197
|
t.__original && delete t.__original;
|
|
198
198
|
let n = Object.create(Object.getPrototypeOf(e), t);
|
|
@@ -208,7 +208,7 @@ var k = (e, t, n, r) => {
|
|
|
208
208
|
}, L = E(() => {
|
|
209
209
|
let e = S, t = e?.language, n = e;
|
|
210
210
|
e && (k.current && k.current.__original === e && A.current === t ? n = k.current : (n = M(e), k.current = n, A.current = t));
|
|
211
|
-
let r = !x && !
|
|
211
|
+
let r = !x && !s ? (...e) => (j(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 k = (e, t, n, r) => {
|
|
|
222
222
|
S.language,
|
|
223
223
|
S.languages
|
|
224
224
|
]);
|
|
225
|
-
if (
|
|
225
|
+
if (a && s && !x) {
|
|
226
226
|
let e = !1;
|
|
227
227
|
try {
|
|
228
228
|
e = process.env.NODE_ENV !== "production";
|
|
229
229
|
} catch {}
|
|
230
|
-
throw e && j(
|
|
231
|
-
let
|
|
232
|
-
|
|
230
|
+
throw e && j(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
|
+
let n = () => e();
|
|
232
|
+
t.lng ? P(a, t.lng, f, n) : N(a, f, n);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
return L;
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
let t = S(
|
|
239
|
-
if (!t) throw Error(
|
|
236
|
+
}, K = { app: x("app") }, q = (e = "app") => {
|
|
237
|
+
K[e] || (K[e] = x(e));
|
|
238
|
+
let t = S(K[e]);
|
|
239
|
+
if (!t) throw Error(i.use.contextErr({ key: e }));
|
|
240
240
|
return t;
|
|
241
|
-
},
|
|
241
|
+
}, J = (e) => {
|
|
242
242
|
let t = D(), n = D();
|
|
243
243
|
return t.current = e, n.current ||= (...e) => t.current(...e), n.current;
|
|
244
|
-
},
|
|
245
|
-
let [
|
|
246
|
-
let
|
|
247
|
-
|
|
248
|
-
...
|
|
249
|
-
[e]:
|
|
244
|
+
}, Y = (t = {}) => {
|
|
245
|
+
let [n, r] = O(Object.keys(t).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), i = D(t), a = D(!1), o = J((e) => {
|
|
246
|
+
let t = `vast-${e}-${v("-")}`;
|
|
247
|
+
r({
|
|
248
|
+
...n,
|
|
249
|
+
[e]: t
|
|
250
250
|
});
|
|
251
|
-
}),
|
|
252
|
-
let
|
|
253
|
-
if (typeof
|
|
254
|
-
let
|
|
255
|
-
get(
|
|
256
|
-
let
|
|
257
|
-
return s(
|
|
251
|
+
}), c = (n, r = t) => {
|
|
252
|
+
let a = n ? r[n] : r;
|
|
253
|
+
if (typeof a != "object" || !a) return;
|
|
254
|
+
let c = new Proxy(a, {
|
|
255
|
+
get(t, r, i) {
|
|
256
|
+
let a = e(t), c = Reflect.get(t, r, a === "map" || a === "set" ? t : i);
|
|
257
|
+
return s(c, "function") ? [
|
|
258
258
|
"add",
|
|
259
259
|
"set",
|
|
260
260
|
"delete",
|
|
@@ -267,35 +267,35 @@ var k = (e, t, n, r) => {
|
|
|
267
267
|
"sort",
|
|
268
268
|
"splice",
|
|
269
269
|
"unshift"
|
|
270
|
-
].includes(
|
|
271
|
-
let i =
|
|
272
|
-
return
|
|
273
|
-
} : (...
|
|
270
|
+
].includes(r) ? (...e) => {
|
|
271
|
+
let i = c.apply(t, e);
|
|
272
|
+
return o(n ?? r), i;
|
|
273
|
+
} : (...e) => c.apply(t, e) : c;
|
|
274
274
|
},
|
|
275
|
-
set(e,
|
|
276
|
-
if (Reflect.get(e,
|
|
277
|
-
let
|
|
278
|
-
return
|
|
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 o(n ?? t), a;
|
|
279
279
|
},
|
|
280
|
-
deleteProperty(e,
|
|
281
|
-
if (!Reflect.has(e,
|
|
282
|
-
let r = Reflect.deleteProperty(e,
|
|
283
|
-
return
|
|
280
|
+
deleteProperty(e, t) {
|
|
281
|
+
if (!Reflect.has(e, t)) return !0;
|
|
282
|
+
let r = Reflect.deleteProperty(e, t);
|
|
283
|
+
return o(n ?? t), r;
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
if (
|
|
287
|
-
else return
|
|
286
|
+
if (n) i.current[n] = c;
|
|
287
|
+
else return c;
|
|
288
288
|
};
|
|
289
|
-
if (!
|
|
290
|
-
|
|
291
|
-
for (let
|
|
292
|
-
|
|
289
|
+
if (!a.current) {
|
|
290
|
+
i.current = c();
|
|
291
|
+
for (let e in t) c(e);
|
|
292
|
+
a.current = !0;
|
|
293
293
|
}
|
|
294
294
|
return T(() => () => {
|
|
295
|
-
for (let e in
|
|
296
|
-
|
|
297
|
-
}, []), [
|
|
298
|
-
},
|
|
295
|
+
for (let e in i.current) delete i.current[e];
|
|
296
|
+
a.current = !1;
|
|
297
|
+
}, []), [n, i.current];
|
|
298
|
+
}, X = (e, t) => {
|
|
299
299
|
let [n, r] = O(!0), i = D({
|
|
300
300
|
isMounted: !1,
|
|
301
301
|
lastCallId: 0
|
|
@@ -312,12 +312,12 @@ var k = (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
|
-
},
|
|
315
|
+
}, Z = (e = "simple", t = []) => {
|
|
316
316
|
let n = {
|
|
317
|
-
exe:
|
|
318
|
-
cv:
|
|
319
|
-
db:
|
|
320
|
-
},
|
|
317
|
+
exe: m.exe,
|
|
318
|
+
cv: m.cv,
|
|
319
|
+
db: m.db
|
|
320
|
+
}, r = D([
|
|
321
321
|
"store",
|
|
322
322
|
"system",
|
|
323
323
|
"project",
|
|
@@ -325,35 +325,35 @@ var k = (e, t, n, r) => {
|
|
|
325
325
|
"defects",
|
|
326
326
|
"running",
|
|
327
327
|
...t
|
|
328
|
-
]).current, a = S(
|
|
328
|
+
]).current, a = S(K.app);
|
|
329
329
|
switch (e) {
|
|
330
330
|
case "privatize": return Object.assign(n, a);
|
|
331
|
-
case "simple": return
|
|
332
|
-
case "action": return [
|
|
331
|
+
case "simple": return r.reduce((e, t) => (e[t] = a[t], e), n);
|
|
332
|
+
case "action": return [r.reduce((e, t) => (e[t] = a[t], e), n), {
|
|
333
333
|
sysAction: a.sysAction,
|
|
334
334
|
setRunning: a.setRunning,
|
|
335
335
|
proAction: a.proAction
|
|
336
336
|
}];
|
|
337
|
-
default: throw Error(
|
|
337
|
+
default: throw Error(i.use.patternErr({ pattern: e }));
|
|
338
338
|
}
|
|
339
|
-
},
|
|
339
|
+
}, Q = (e, t, n = { immediate: !1 }) => {
|
|
340
340
|
let r = D({
|
|
341
341
|
oldValue: null,
|
|
342
342
|
isInit: n.immediate,
|
|
343
343
|
isWatch: !0
|
|
344
344
|
}).current;
|
|
345
345
|
return T(() => {
|
|
346
|
-
r.isWatch && (r.isInit ? (
|
|
346
|
+
r.isWatch && (r.isInit ? (p(t, r.oldValue) || e(t, r.oldValue), r.oldValue = d(t)) : r.isInit = !0);
|
|
347
347
|
}, t), () => {
|
|
348
348
|
r.isWatch = !1;
|
|
349
349
|
};
|
|
350
|
-
},
|
|
351
|
-
if (!e) throw Error(
|
|
352
|
-
let { t } =
|
|
350
|
+
}, ee = (e = "") => {
|
|
351
|
+
if (!e) throw Error(i.use.prefixErr());
|
|
352
|
+
let { t } = G("translation", { keyPrefix: e });
|
|
353
353
|
return t;
|
|
354
354
|
}, te = (e, t, n = !1) => {
|
|
355
|
-
let
|
|
356
|
-
return T(() => (n &&
|
|
355
|
+
let i = J(e);
|
|
356
|
+
return T(() => (n && i(), a(t, i), () => r(t, i)), []), i;
|
|
357
357
|
}, $ = (e, t) => {
|
|
358
358
|
let n = D({
|
|
359
359
|
immediate: !1,
|
|
@@ -372,14 +372,14 @@ var k = (e, t, n, r) => {
|
|
|
372
372
|
height: n?.height || 0
|
|
373
373
|
}), a = D(), o = D({
|
|
374
374
|
immediate: !1,
|
|
375
|
-
fps:
|
|
375
|
+
fps: 12,
|
|
376
376
|
beforeFn: null
|
|
377
377
|
}).current;
|
|
378
378
|
if (s(n, "boolean")) o.immediate = n;
|
|
379
379
|
else if (s(n, "number")) o.fps = n;
|
|
380
380
|
else if (s(n, "function")) o.beforeFn = n;
|
|
381
381
|
else if (s(n, "object")) for (let e in n) Object.hasOwn(o, e) && (o[e] = n[e]);
|
|
382
|
-
let c = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u =
|
|
382
|
+
let c = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u = J((t) => {
|
|
383
383
|
let n = t[0].contentRect, { width: a, height: o } = n;
|
|
384
384
|
(a !== r.width || o !== r.height) && e?.(n, r), i({
|
|
385
385
|
width: a,
|
|
@@ -400,7 +400,7 @@ var k = (e, t, n, r) => {
|
|
|
400
400
|
unobserve: l
|
|
401
401
|
}];
|
|
402
402
|
}, re = (e = "app", t = !1) => {
|
|
403
|
-
let { context: n } =
|
|
403
|
+
let { context: n } = Z("privatize"), r = D(b.useMessage()), i = D([]), a = (e, t, { key: n, duration: a = 3, onClose: o } = {}) => {
|
|
404
404
|
let s = n || `msg_${v()}`;
|
|
405
405
|
return i.current.push(s), r.current[0].open({
|
|
406
406
|
key: s,
|
|
@@ -437,69 +437,69 @@ var k = (e, t, n, r) => {
|
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
}, t ? r.current[1] : void 0];
|
|
440
|
-
}, ie = (e,
|
|
441
|
-
let [a, o] = O(
|
|
442
|
-
|
|
440
|
+
}, ie = (e, r = {}) => {
|
|
441
|
+
let [a, o] = O(r), l = D(s(e, "function")).current, u = () => {
|
|
442
|
+
c(e, (e) => {
|
|
443
443
|
let t = {};
|
|
444
|
-
for (let
|
|
444
|
+
for (let n in r) t[n] = e?.[n] ?? r[n];
|
|
445
445
|
o(t);
|
|
446
446
|
});
|
|
447
|
-
},
|
|
447
|
+
}, d = (n) => {
|
|
448
448
|
t(e, n);
|
|
449
|
-
},
|
|
450
|
-
a[t] =
|
|
449
|
+
}, f = J((t, r, s = null) => {
|
|
450
|
+
a[t] = r, o({
|
|
451
451
|
...a,
|
|
452
|
-
[t]:
|
|
453
|
-
}),
|
|
454
|
-
}), p =
|
|
452
|
+
[t]: r
|
|
453
|
+
}), l && e(t, r), s?.(i.tool.setOk(), { key: n });
|
|
454
|
+
}), p = J((t, r = null) => {
|
|
455
455
|
o({
|
|
456
456
|
...a,
|
|
457
457
|
...t
|
|
458
|
-
}),
|
|
458
|
+
}), l && e(t), r?.(i.tool.setOk(), { key: n });
|
|
459
459
|
});
|
|
460
460
|
T(() => {
|
|
461
|
-
|
|
461
|
+
l || u();
|
|
462
462
|
}, []);
|
|
463
|
-
let m =
|
|
464
|
-
|
|
463
|
+
let m = Q(([e]) => {
|
|
464
|
+
d(e);
|
|
465
465
|
}, [a]);
|
|
466
|
-
return
|
|
466
|
+
return l && m(), [a, {
|
|
467
467
|
setData: p,
|
|
468
|
-
setKey:
|
|
468
|
+
setKey: f
|
|
469
469
|
}];
|
|
470
|
-
}, ae = (e, t =
|
|
471
|
-
let [
|
|
470
|
+
}, ae = (e, t = o) => {
|
|
471
|
+
let [n, r] = O([]), [i, a] = O(0), [s, c] = O({
|
|
472
472
|
current: 1,
|
|
473
473
|
pageSize: t[0]
|
|
474
474
|
}), l = D([]);
|
|
475
|
-
return [
|
|
475
|
+
return [n, {
|
|
476
476
|
value: l.current,
|
|
477
477
|
current: s.current,
|
|
478
478
|
pageSize: s.pageSize,
|
|
479
479
|
options: t,
|
|
480
|
-
total:
|
|
480
|
+
total: i,
|
|
481
481
|
setValue: (t, n) => {
|
|
482
|
-
let
|
|
483
|
-
|
|
484
|
-
current:
|
|
485
|
-
pageSize:
|
|
482
|
+
let i = s.pageSize, o = s.current;
|
|
483
|
+
g(n) && (o = 1, !e && (l.current = t), a(n), c({
|
|
484
|
+
current: o,
|
|
485
|
+
pageSize: i
|
|
486
486
|
}));
|
|
487
|
-
let u = (
|
|
488
|
-
|
|
487
|
+
let u = (o - 1) * i, d = u + i;
|
|
488
|
+
r(e ? t : t.slice(u, d));
|
|
489
489
|
},
|
|
490
490
|
onChange: (t, n) => {
|
|
491
|
-
let
|
|
492
|
-
e ? e(t, n) : i(l.current.slice(r, a)), c({
|
|
491
|
+
let i = (t - 1) * n, a = i + n, o = {
|
|
493
492
|
current: t,
|
|
494
493
|
pageSize: n
|
|
495
|
-
}
|
|
494
|
+
};
|
|
495
|
+
e ? e(o) : r(l.current.slice(i, a)), c(o);
|
|
496
496
|
}
|
|
497
497
|
}];
|
|
498
498
|
}, oe = () => {
|
|
499
499
|
let [e, t] = O({
|
|
500
500
|
ok: 0,
|
|
501
501
|
ng: 0
|
|
502
|
-
}), n =
|
|
502
|
+
}), n = J((n) => {
|
|
503
503
|
let r = { ...e };
|
|
504
504
|
r[n ? "ok" : "ng"] += 1, t(r);
|
|
505
505
|
});
|
|
@@ -508,11 +508,11 @@ var k = (e, t, n, r) => {
|
|
|
508
508
|
data: E(() => [{
|
|
509
509
|
label: "OK",
|
|
510
510
|
value: e.ok,
|
|
511
|
-
color:
|
|
511
|
+
color: _.ok
|
|
512
512
|
}, {
|
|
513
513
|
label: "NG",
|
|
514
514
|
value: e.ng,
|
|
515
|
-
color:
|
|
515
|
+
color: _.ng
|
|
516
516
|
}], [e]),
|
|
517
517
|
increment: n,
|
|
518
518
|
clear: () => {
|
|
@@ -524,4 +524,4 @@ var k = (e, t, n, r) => {
|
|
|
524
524
|
};
|
|
525
525
|
};
|
|
526
526
|
//#endregion
|
|
527
|
-
export { R as _, ie as a, k as b, te as c,
|
|
527
|
+
export { R as _, ie as a, k as b, te as c, ee as d, $ as f, G as g, Q as h, X as i, ae as l, Y as m, K as n, re as o, Z as p, q as r, ne as s, oe as t, J as u, L as v, j as x, I 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, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./hooks-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./hooks-MstF8Y3K.js";
|
|
2
2
|
export { c as Contexts, d as useAppContext, a as useAsync, e as useFileState, l as useMessage, f as useObserver, t as useOnEvent, o as usePagination, m as usePersistFn, n as usePrefixT, r as useResize, p as useRunStatis, u as useStore, s as useVastState, i as useWatch };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./packages-
|
|
1
|
+
import { n as e, t } from "./packages-C9qBCygN.js";
|
|
2
2
|
export { t as AoiGlobal, e as aoiInit };
|