@ikonai/sdk-react-ui 1.0.39 → 1.0.41
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/index.d.ts +1 -0
- package/index.js +950 -824
- package/inspect/inspect-overlay.d.ts +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IkonUiCore as Pt, UiStreamStore as Mt } from "@ikonai/sdk-ui";
|
|
2
|
-
import { UiStreamStore as
|
|
3
|
-
import
|
|
4
|
-
import { createLogger as
|
|
2
|
+
import { UiStreamStore as Bo } from "@ikonai/sdk-ui";
|
|
3
|
+
import Lt, { useSyncExternalStore as $e, useMemo as V, memo as Y, useRef as w, useCallback as D, Fragment as jt, useEffect as U, useState as J, createContext as mt, use as Ve } from "react";
|
|
4
|
+
import { createLogger as Re, isInspectModeEnabled as Ut, getOrCreateDeviceId as xt, deriveAuthUrl as Le, parseUrlParams as Dt, clearSessionParamsFromUrl as Ft, isCloudEnvironment as Ge, extractUserIdFromToken as Bt, deriveBackendType as He, IkonClient as $t, AccessDeniedError as Vt, AuthenticationError as Kt, subscribeToLogEvents as Yt, isDebugModeEnabled as zt, LogLevel as Je, getLangParam as Wt } from "@ikonai/sdk";
|
|
5
5
|
var ge = { exports: {} }, ie = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -13,7 +13,7 @@ var ge = { exports: {} }, ie = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var Xe;
|
|
16
|
-
function
|
|
16
|
+
function qt() {
|
|
17
17
|
if (Xe) return ie;
|
|
18
18
|
Xe = 1;
|
|
19
19
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
@@ -45,244 +45,244 @@ var ae = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var Ze;
|
|
48
|
-
function
|
|
48
|
+
function Gt() {
|
|
49
49
|
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
function t(
|
|
51
|
-
if (
|
|
52
|
-
if (typeof
|
|
53
|
-
return
|
|
54
|
-
if (typeof
|
|
55
|
-
switch (
|
|
50
|
+
function t(f) {
|
|
51
|
+
if (f == null) return null;
|
|
52
|
+
if (typeof f == "function")
|
|
53
|
+
return f.$$typeof === x ? null : f.displayName || f.name || null;
|
|
54
|
+
if (typeof f == "string") return f;
|
|
55
|
+
switch (f) {
|
|
56
56
|
case b:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case y:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case g:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case O:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case K:
|
|
65
65
|
return "SuspenseList";
|
|
66
66
|
case _:
|
|
67
67
|
return "Activity";
|
|
68
68
|
}
|
|
69
|
-
if (typeof
|
|
70
|
-
switch (typeof
|
|
69
|
+
if (typeof f == "object")
|
|
70
|
+
switch (typeof f.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
|
-
),
|
|
73
|
-
case
|
|
72
|
+
), f.$$typeof) {
|
|
73
|
+
case m:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
76
|
-
return (
|
|
75
|
+
case E:
|
|
76
|
+
return (f.displayName || "Context") + ".Provider";
|
|
77
77
|
case v:
|
|
78
|
-
return (
|
|
79
|
-
case I:
|
|
80
|
-
var S = d.render;
|
|
81
|
-
return d = d.displayName, d || (d = S.displayName || S.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
|
|
82
|
-
case Q:
|
|
83
|
-
return S = d.displayName || null, S !== null ? S : t(d.type) || "Memo";
|
|
78
|
+
return (f._context.displayName || "Context") + ".Consumer";
|
|
84
79
|
case T:
|
|
85
|
-
S =
|
|
80
|
+
var S = f.render;
|
|
81
|
+
return f = f.displayName, f || (f = S.displayName || S.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
|
|
82
|
+
case Q:
|
|
83
|
+
return S = f.displayName || null, S !== null ? S : t(f.type) || "Memo";
|
|
84
|
+
case C:
|
|
85
|
+
S = f._payload, f = f._init;
|
|
86
86
|
try {
|
|
87
|
-
return t(
|
|
87
|
+
return t(f(S));
|
|
88
88
|
} catch {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
-
function e(
|
|
94
|
-
return "" +
|
|
93
|
+
function e(f) {
|
|
94
|
+
return "" + f;
|
|
95
95
|
}
|
|
96
|
-
function r(
|
|
96
|
+
function r(f) {
|
|
97
97
|
try {
|
|
98
|
-
e(
|
|
98
|
+
e(f);
|
|
99
99
|
var S = !1;
|
|
100
100
|
} catch {
|
|
101
101
|
S = !0;
|
|
102
102
|
}
|
|
103
103
|
if (S) {
|
|
104
104
|
S = console;
|
|
105
|
-
var
|
|
106
|
-
return
|
|
105
|
+
var A = S.error, M = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
|
106
|
+
return A.call(
|
|
107
107
|
S,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
110
|
-
), e(
|
|
109
|
+
M
|
|
110
|
+
), e(f);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function n(
|
|
114
|
-
if (
|
|
115
|
-
if (typeof
|
|
113
|
+
function n(f) {
|
|
114
|
+
if (f === b) return "<>";
|
|
115
|
+
if (typeof f == "object" && f !== null && f.$$typeof === C)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
|
-
var S = t(
|
|
118
|
+
var S = t(f);
|
|
119
119
|
return S ? "<" + S + ">" : "<...>";
|
|
120
120
|
} catch {
|
|
121
121
|
return "<...>";
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function o() {
|
|
125
|
-
var
|
|
126
|
-
return
|
|
125
|
+
var f = P.A;
|
|
126
|
+
return f === null ? null : f.getOwner();
|
|
127
127
|
}
|
|
128
128
|
function s() {
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
|
-
function i(
|
|
132
|
-
if (F.call(
|
|
133
|
-
var S = Object.getOwnPropertyDescriptor(
|
|
131
|
+
function i(f) {
|
|
132
|
+
if (F.call(f, "key")) {
|
|
133
|
+
var S = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
134
134
|
if (S && S.isReactWarning) return !1;
|
|
135
135
|
}
|
|
136
|
-
return
|
|
136
|
+
return f.key !== void 0;
|
|
137
137
|
}
|
|
138
|
-
function a(
|
|
139
|
-
function
|
|
138
|
+
function a(f, S) {
|
|
139
|
+
function A() {
|
|
140
140
|
he || (he = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
142
|
S
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
get:
|
|
145
|
+
A.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
146
|
+
get: A,
|
|
147
147
|
configurable: !0
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
function c() {
|
|
151
|
-
var
|
|
152
|
-
return
|
|
151
|
+
var f = t(this.type);
|
|
152
|
+
return pe[f] || (pe[f] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
|
-
)),
|
|
154
|
+
)), f = this.props.ref, f !== void 0 ? f : null;
|
|
155
155
|
}
|
|
156
|
-
function f
|
|
157
|
-
return
|
|
158
|
-
$$typeof:
|
|
159
|
-
type:
|
|
156
|
+
function h(f, S, A, M, W, I, q, te) {
|
|
157
|
+
return A = I.ref, f = {
|
|
158
|
+
$$typeof: p,
|
|
159
|
+
type: f,
|
|
160
160
|
key: S,
|
|
161
|
-
props:
|
|
161
|
+
props: I,
|
|
162
162
|
_owner: W
|
|
163
|
-
}, (
|
|
163
|
+
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(f, "ref", {
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
get: c
|
|
166
|
-
}) : Object.defineProperty(
|
|
166
|
+
}) : Object.defineProperty(f, "ref", { enumerable: !1, value: null }), f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
167
167
|
configurable: !1,
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
writable: !0,
|
|
170
170
|
value: 0
|
|
171
|
-
}), Object.defineProperty(
|
|
171
|
+
}), Object.defineProperty(f, "_debugInfo", {
|
|
172
172
|
configurable: !1,
|
|
173
173
|
enumerable: !1,
|
|
174
174
|
writable: !0,
|
|
175
175
|
value: null
|
|
176
|
-
}), Object.defineProperty(
|
|
176
|
+
}), Object.defineProperty(f, "_debugStack", {
|
|
177
177
|
configurable: !1,
|
|
178
178
|
enumerable: !1,
|
|
179
179
|
writable: !0,
|
|
180
180
|
value: q
|
|
181
|
-
}), Object.defineProperty(
|
|
181
|
+
}), Object.defineProperty(f, "_debugTask", {
|
|
182
182
|
configurable: !1,
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
writable: !0,
|
|
185
185
|
value: te
|
|
186
|
-
}), Object.freeze && (Object.freeze(
|
|
186
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
var
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
if (z(
|
|
193
|
-
for (
|
|
194
|
-
|
|
195
|
-
Object.freeze && Object.freeze(
|
|
188
|
+
function d(f, S, A, M, W, I, q, te) {
|
|
189
|
+
var N = S.children;
|
|
190
|
+
if (N !== void 0)
|
|
191
|
+
if (M)
|
|
192
|
+
if (z(N)) {
|
|
193
|
+
for (M = 0; M < N.length; M++)
|
|
194
|
+
l(N[M]);
|
|
195
|
+
Object.freeze && Object.freeze(N);
|
|
196
196
|
} else
|
|
197
197
|
console.error(
|
|
198
198
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
199
199
|
);
|
|
200
|
-
else
|
|
200
|
+
else l(N);
|
|
201
201
|
if (F.call(S, "key")) {
|
|
202
|
-
|
|
202
|
+
N = t(f);
|
|
203
203
|
var G = Object.keys(S).filter(function(Te) {
|
|
204
204
|
return Te !== "key";
|
|
205
205
|
});
|
|
206
|
-
|
|
206
|
+
M = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", ee[N + M] || (G = 0 < G.length ? "{" + G.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
207
207
|
`A props object containing a "key" prop is being spread into JSX:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s {...props} />
|
|
210
210
|
React keys must be passed directly to JSX without using spread:
|
|
211
211
|
let props = %s;
|
|
212
212
|
<%s key={someKey} {...props} />`,
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
M,
|
|
214
|
+
N,
|
|
215
215
|
G,
|
|
216
|
-
|
|
217
|
-
), ee[
|
|
216
|
+
N
|
|
217
|
+
), ee[N + M] = !0);
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
220
|
-
|
|
219
|
+
if (N = null, A !== void 0 && (r(A), N = "" + A), i(S) && (r(S.key), N = "" + S.key), "key" in S) {
|
|
220
|
+
A = {};
|
|
221
221
|
for (var re in S)
|
|
222
|
-
re !== "key" && (
|
|
223
|
-
} else
|
|
224
|
-
return
|
|
225
|
-
|
|
226
|
-
typeof
|
|
227
|
-
),
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
222
|
+
re !== "key" && (A[re] = S[re]);
|
|
223
|
+
} else A = S;
|
|
224
|
+
return N && a(
|
|
225
|
+
A,
|
|
226
|
+
typeof f == "function" ? f.displayName || f.name || "Unknown" : f
|
|
227
|
+
), h(
|
|
228
|
+
f,
|
|
229
|
+
N,
|
|
230
|
+
I,
|
|
231
231
|
W,
|
|
232
232
|
o(),
|
|
233
|
-
|
|
233
|
+
A,
|
|
234
234
|
q,
|
|
235
235
|
te
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
typeof
|
|
238
|
+
function l(f) {
|
|
239
|
+
typeof f == "object" && f !== null && f.$$typeof === p && f._store && (f._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var u = Lt, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), E = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), x = Symbol.for("react.client.reference"), P = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, z = Array.isArray, ne = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
245
|
-
"react-stack-bottom-frame": function(
|
|
246
|
-
return
|
|
244
|
+
u = {
|
|
245
|
+
"react-stack-bottom-frame": function(f) {
|
|
246
|
+
return f();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var he,
|
|
250
|
-
|
|
249
|
+
var he, pe = {}, se = u["react-stack-bottom-frame"].bind(
|
|
250
|
+
u,
|
|
251
251
|
s
|
|
252
|
-
)(),
|
|
253
|
-
ae.Fragment = b, ae.jsx = function(
|
|
254
|
-
var
|
|
255
|
-
return
|
|
256
|
-
|
|
252
|
+
)(), me = ne(n(s)), ee = {};
|
|
253
|
+
ae.Fragment = b, ae.jsx = function(f, S, A, M, W) {
|
|
254
|
+
var I = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return d(
|
|
256
|
+
f,
|
|
257
257
|
S,
|
|
258
|
-
|
|
258
|
+
A,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
260
|
+
M,
|
|
261
261
|
W,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
I ? Error("react-stack-top-frame") : se,
|
|
263
|
+
I ? ne(n(f)) : me
|
|
264
264
|
);
|
|
265
|
-
}, ae.jsxs = function(
|
|
266
|
-
var
|
|
267
|
-
return
|
|
268
|
-
|
|
265
|
+
}, ae.jsxs = function(f, S, A, M, W) {
|
|
266
|
+
var I = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
267
|
+
return d(
|
|
268
|
+
f,
|
|
269
269
|
S,
|
|
270
|
-
|
|
270
|
+
A,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
272
|
+
M,
|
|
273
273
|
W,
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
I ? Error("react-stack-top-frame") : se,
|
|
275
|
+
I ? ne(n(f)) : me
|
|
276
276
|
);
|
|
277
277
|
};
|
|
278
278
|
}()), ae;
|
|
279
279
|
}
|
|
280
280
|
var Qe;
|
|
281
|
-
function
|
|
282
|
-
return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? ge.exports =
|
|
281
|
+
function Ht() {
|
|
282
|
+
return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? ge.exports = qt() : ge.exports = Gt()), ge.exports;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
function
|
|
284
|
+
var R = Ht();
|
|
285
|
+
function Jt(t, e) {
|
|
286
286
|
const r = $e(
|
|
287
287
|
(n) => t.subscribe(n),
|
|
288
288
|
() => {
|
|
@@ -310,8 +310,8 @@ function Z(t, e) {
|
|
|
310
310
|
);
|
|
311
311
|
return V(() => t.getNode(e), [t, e, r]);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
function
|
|
313
|
+
const Xt = Re("UIRenderer");
|
|
314
|
+
function Zt(t) {
|
|
315
315
|
if (t === void 0)
|
|
316
316
|
return "{}";
|
|
317
317
|
if (typeof t == "string")
|
|
@@ -322,18 +322,18 @@ function Xt(t) {
|
|
|
322
322
|
return "{}";
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Qt(t) {
|
|
326
326
|
const e = t.styleIds;
|
|
327
327
|
return Array.isArray(e) ? e : [];
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function er(t) {
|
|
330
330
|
const e = t.children;
|
|
331
331
|
return Array.isArray(e) ? e : [];
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function tr(t, e) {
|
|
334
334
|
return t.nodeId === e.nodeId && t.context === e.context;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function rr(t) {
|
|
337
337
|
if (t.length === 0) return "";
|
|
338
338
|
if (t.length === 1) return t[0].id;
|
|
339
339
|
let e = t[0].id;
|
|
@@ -341,66 +341,66 @@ function tr(t) {
|
|
|
341
341
|
e += "," + t[r].id;
|
|
342
342
|
return e;
|
|
343
343
|
}
|
|
344
|
-
const
|
|
345
|
-
const n = Z(r.store, e), o = n ?
|
|
346
|
-
() => o.length === 0 ? null : o.map((
|
|
344
|
+
const je = Y(function t({ nodeId: e, context: r }) {
|
|
345
|
+
const n = Z(r.store, e), o = n ? er(n) : [], s = rr(o), i = V(
|
|
346
|
+
() => o.length === 0 ? null : o.map((l) => /* @__PURE__ */ R.jsx(t, { nodeId: l.id, context: r }, l.id)),
|
|
347
347
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
348
348
|
[s, r]
|
|
349
349
|
);
|
|
350
350
|
if (!n)
|
|
351
351
|
return null;
|
|
352
352
|
if (n.type === "root")
|
|
353
|
-
return /* @__PURE__ */
|
|
353
|
+
return /* @__PURE__ */ R.jsx(jt, { children: i }, n.id);
|
|
354
354
|
const a = r.library.resolve(n);
|
|
355
355
|
if (!a)
|
|
356
|
-
return
|
|
357
|
-
const c =
|
|
358
|
-
return /* @__PURE__ */
|
|
359
|
-
},
|
|
360
|
-
function rr(t, e) {
|
|
361
|
-
return !Array.isArray(t) || t.length === 0 ? null : t.map((r) => /* @__PURE__ */ E.jsx(Ue, { nodeId: r.id, context: e }, r.id));
|
|
362
|
-
}
|
|
356
|
+
return Xt.warn(`No renderer for node type ${n.type}`), null;
|
|
357
|
+
const c = Qt(n), h = c.length > 0 ? c.join(" ") : void 0, d = a;
|
|
358
|
+
return /* @__PURE__ */ R.jsx(d, { nodeId: e, context: r, className: h });
|
|
359
|
+
}, tr);
|
|
363
360
|
function nr(t, e) {
|
|
361
|
+
return !Array.isArray(t) || t.length === 0 ? null : t.map((r) => /* @__PURE__ */ R.jsx(je, { nodeId: r.id, context: e }, r.id));
|
|
362
|
+
}
|
|
363
|
+
function or(t, e) {
|
|
364
364
|
return t.store === e.store && t.library === e.library && t.viewId === e.viewId && t.emptyFallback === e.emptyFallback;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
367
|
-
const { rootViewId: c, rootNodeId:
|
|
368
|
-
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
const
|
|
366
|
+
const sr = Y(function({ store: e, library: r, viewId: n, emptyFallback: o = null, onAction: s, client: i, video: a }) {
|
|
367
|
+
const { rootViewId: c, rootNodeId: h } = Jt(e, n), d = w(s);
|
|
368
|
+
d.current = s;
|
|
369
|
+
const l = w(i);
|
|
370
|
+
l.current = i;
|
|
371
|
+
const u = w(a);
|
|
372
|
+
u.current = a;
|
|
373
|
+
const p = D((b, g) => {
|
|
374
374
|
if (!b)
|
|
375
375
|
return;
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
}, []),
|
|
376
|
+
const y = Zt(g);
|
|
377
|
+
d.current?.(b, y);
|
|
378
|
+
}, []), m = V(() => {
|
|
379
379
|
const b = {
|
|
380
380
|
store: e,
|
|
381
381
|
library: r,
|
|
382
382
|
handlerCache: e.handlerCache,
|
|
383
383
|
// Access payloads from store at call time, not captured snapshot
|
|
384
|
-
getPayload: (
|
|
385
|
-
renderChildren: (
|
|
386
|
-
renderView: (
|
|
387
|
-
const
|
|
388
|
-
return
|
|
384
|
+
getPayload: (g) => e.getSnapshot().payloads.get(g),
|
|
385
|
+
renderChildren: (g) => nr(g, b),
|
|
386
|
+
renderView: (g) => {
|
|
387
|
+
const y = e.getSnapshot().views.get(g);
|
|
388
|
+
return y ? /* @__PURE__ */ R.jsx(je, { nodeId: y.id, context: b }) : null;
|
|
389
389
|
},
|
|
390
|
-
dispatchAction:
|
|
390
|
+
dispatchAction: p,
|
|
391
391
|
// Access client/video via refs to avoid context recreation
|
|
392
392
|
get client() {
|
|
393
|
-
return
|
|
393
|
+
return l.current;
|
|
394
394
|
},
|
|
395
395
|
get video() {
|
|
396
|
-
return
|
|
396
|
+
return u.current;
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
return b;
|
|
400
|
-
}, [e, r,
|
|
401
|
-
return !c || !
|
|
402
|
-
},
|
|
403
|
-
class
|
|
400
|
+
}, [e, r, p]);
|
|
401
|
+
return !c || !h ? o : /* @__PURE__ */ R.jsx("div", { "data-ikon-view-id": c, style: { display: "contents" }, children: /* @__PURE__ */ R.jsx(je, { nodeId: h, context: m }) });
|
|
402
|
+
}, or);
|
|
403
|
+
class ir {
|
|
404
404
|
constructor(e, r) {
|
|
405
405
|
if (this.fallback = r, e)
|
|
406
406
|
for (const [n, o] of e)
|
|
@@ -417,41 +417,159 @@ class sr {
|
|
|
417
417
|
return this.renderers.get(e.type) ?? this.fallback;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Eo(t, e) {
|
|
421
421
|
const r = Object.entries(t);
|
|
422
|
-
return new
|
|
422
|
+
return new ir(r, e);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Ro(t) {
|
|
425
425
|
return $e(
|
|
426
426
|
(e) => t.subscribe(e),
|
|
427
427
|
() => t.getSnapshot(),
|
|
428
428
|
() => t.getSnapshot()
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
function ar() {
|
|
432
|
+
const t = Ut();
|
|
433
|
+
return U(() => {
|
|
434
|
+
if (!t)
|
|
435
|
+
return;
|
|
436
|
+
let e = null, r = [];
|
|
437
|
+
const n = document.createElement("div");
|
|
438
|
+
n.style.cssText = "position:fixed;z-index:99999;pointer-events:none;padding:2px 6px;background:#1e1e2e;color:#cdd6f4;font-size:11px;border-radius:4px;border:1px solid #45475a;white-space:nowrap;display:none;font-family:monospace;", document.body.appendChild(n);
|
|
439
|
+
function o() {
|
|
440
|
+
e && !r.includes(e) && (e.style.outline = "", e.style.outlineOffset = ""), e = null, n.style.display = "none";
|
|
441
|
+
}
|
|
442
|
+
function s(u) {
|
|
443
|
+
for (const m of r)
|
|
444
|
+
m !== e && (m.style.outline = "", m.style.outlineOffset = "");
|
|
445
|
+
r = [];
|
|
446
|
+
const p = new Set(u);
|
|
447
|
+
for (const m of document.querySelectorAll("[data-ikon-source]")) {
|
|
448
|
+
const b = m.getAttribute("data-ikon-source") ?? "";
|
|
449
|
+
p.has(b) && (m.style.outline = "2px solid #a6e3a1", m.style.outlineOffset = "1px", r.push(m));
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function i(u) {
|
|
453
|
+
const p = u.target.closest?.("[data-ikon-source]");
|
|
454
|
+
if (!p || p === e)
|
|
455
|
+
return;
|
|
456
|
+
o(), e = p, e.style.outline = "2px solid #89b4fa", e.style.outlineOffset = "1px";
|
|
457
|
+
const m = p.getAttribute("data-ikon-source") ?? "";
|
|
458
|
+
n.textContent = m, n.style.display = "block";
|
|
459
|
+
const b = p.getBoundingClientRect();
|
|
460
|
+
n.style.left = `${b.left}px`, n.style.top = `${Math.max(0, b.top - 24)}px`;
|
|
461
|
+
}
|
|
462
|
+
function a(u) {
|
|
463
|
+
u.relatedTarget?.closest?.("[data-ikon-source]") !== e && o();
|
|
464
|
+
}
|
|
465
|
+
function c(u) {
|
|
466
|
+
const p = u.target.closest?.("[data-ikon-source]");
|
|
467
|
+
if (!p)
|
|
468
|
+
return;
|
|
469
|
+
u.preventDefault(), u.stopPropagation();
|
|
470
|
+
const m = {
|
|
471
|
+
sourceMarker: p.getAttribute("data-ikon-source") ?? "",
|
|
472
|
+
tagName: p.tagName.toLowerCase(),
|
|
473
|
+
textContent: (p.textContent ?? "").trim().substring(0, 200)
|
|
474
|
+
};
|
|
475
|
+
window.dispatchEvent(new CustomEvent("ikon-inspect-select", { detail: m })), window.parent.postMessage({ type: "ikon-element-selected", payload: m }, "*");
|
|
476
|
+
}
|
|
477
|
+
function h(u, p) {
|
|
478
|
+
return document.elementFromPoint(u, p)?.closest?.("[data-ikon-source]");
|
|
479
|
+
}
|
|
480
|
+
function d(u) {
|
|
481
|
+
if (u === e || (o(), !u))
|
|
482
|
+
return;
|
|
483
|
+
e = u, e.style.outline = `2px solid ${r.includes(u) ? "#a6e3a1" : "#89b4fa"}`, e.style.outlineOffset = "1px";
|
|
484
|
+
const p = u.getAttribute("data-ikon-source") ?? "";
|
|
485
|
+
n.textContent = p, n.style.display = "block";
|
|
486
|
+
const m = u.getBoundingClientRect();
|
|
487
|
+
n.style.left = `${m.left}px`, n.style.top = `${Math.max(0, m.top - 24)}px`;
|
|
488
|
+
}
|
|
489
|
+
function l(u) {
|
|
490
|
+
if (u.data?.type === "ikon-inspect-at") {
|
|
491
|
+
const p = h(u.data.x, u.data.y);
|
|
492
|
+
d(p);
|
|
493
|
+
const m = p?.getAttribute("data-ikon-source") ?? "";
|
|
494
|
+
window.parent.postMessage({
|
|
495
|
+
type: "ikon-inspect-hover-result",
|
|
496
|
+
payload: { sourceMarker: m }
|
|
497
|
+
}, "*");
|
|
498
|
+
}
|
|
499
|
+
if (u.data?.type === "ikon-inspect-click") {
|
|
500
|
+
const p = h(u.data.x, u.data.y);
|
|
501
|
+
if (p) {
|
|
502
|
+
const m = {
|
|
503
|
+
sourceMarker: p.getAttribute("data-ikon-source") ?? "",
|
|
504
|
+
tagName: p.tagName.toLowerCase(),
|
|
505
|
+
textContent: (p.textContent ?? "").trim().substring(0, 200)
|
|
506
|
+
};
|
|
507
|
+
window.dispatchEvent(new CustomEvent("ikon-inspect-select", { detail: m })), window.parent.postMessage({ type: "ikon-element-selected", payload: m }, "*");
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (u.data?.type === "ikon-inspect-click-add") {
|
|
511
|
+
const p = h(u.data.x, u.data.y);
|
|
512
|
+
if (p) {
|
|
513
|
+
const m = {
|
|
514
|
+
sourceMarker: p.getAttribute("data-ikon-source") ?? "",
|
|
515
|
+
tagName: p.tagName.toLowerCase(),
|
|
516
|
+
textContent: (p.textContent ?? "").trim().substring(0, 200)
|
|
517
|
+
};
|
|
518
|
+
window.parent.postMessage({
|
|
519
|
+
type: "ikon-inspect-rect-result",
|
|
520
|
+
payload: { elements: [m], append: !0 }
|
|
521
|
+
}, "*");
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
if (u.data?.type === "ikon-inspect-rect") {
|
|
525
|
+
const { x1: p, y1: m, x2: b, y2: g, append: y } = u.data, v = document.querySelectorAll("[data-ikon-source]"), E = [];
|
|
526
|
+
for (const T of v) {
|
|
527
|
+
const O = T.getBoundingClientRect();
|
|
528
|
+
O.right > p && O.left < b && O.bottom > m && O.top < g && E.push({
|
|
529
|
+
sourceMarker: T.getAttribute("data-ikon-source") ?? "",
|
|
530
|
+
tagName: T.tagName.toLowerCase(),
|
|
531
|
+
textContent: (T.textContent ?? "").trim().substring(0, 200)
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
E.length > 0 && window.parent.postMessage({
|
|
535
|
+
type: "ikon-inspect-rect-result",
|
|
536
|
+
payload: { elements: E, append: y ?? !1 }
|
|
537
|
+
}, "*");
|
|
538
|
+
}
|
|
539
|
+
u.data?.type === "ikon-inspect-highlight" && s(u.data.markers ?? []), u.data?.type === "ikon-inspect-clear" && o();
|
|
540
|
+
}
|
|
541
|
+
return document.addEventListener("mouseover", i, !0), document.addEventListener("mouseout", a, !0), document.addEventListener("click", c, !0), window.addEventListener("message", l), () => {
|
|
542
|
+
document.removeEventListener("mouseover", i, !0), document.removeEventListener("mouseout", a, !0), document.removeEventListener("click", c, !0), window.removeEventListener("message", l), o(), s([]), n.remove();
|
|
543
|
+
};
|
|
544
|
+
}, [t]), null;
|
|
545
|
+
}
|
|
546
|
+
const Ue = "ikon-ui";
|
|
547
|
+
function cr(t, e) {
|
|
433
548
|
return t === e;
|
|
434
549
|
}
|
|
435
|
-
const
|
|
550
|
+
const ko = Y(function({ stores: e, registry: r, category: n = Ue, onAction: o, client: s }) {
|
|
436
551
|
const i = V(() => Array.from(e.keys()).sort().join(","), [e]), a = w(o);
|
|
437
552
|
a.current = o;
|
|
438
553
|
const c = w(s);
|
|
439
554
|
c.current = s;
|
|
440
|
-
const
|
|
555
|
+
const h = V(
|
|
441
556
|
() => {
|
|
442
|
-
const
|
|
443
|
-
for (const [
|
|
444
|
-
const
|
|
445
|
-
|
|
557
|
+
const d = [];
|
|
558
|
+
for (const [l, u] of e) {
|
|
559
|
+
const p = u.store.getSnapshot();
|
|
560
|
+
cr(u.category, n) && (!p.rootViewId || !p.views.has(p.rootViewId) || d.push({ key: l, store: u.store }));
|
|
446
561
|
}
|
|
447
|
-
return
|
|
562
|
+
return d;
|
|
448
563
|
},
|
|
449
564
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
450
565
|
[e, n, i]
|
|
451
566
|
);
|
|
452
|
-
return
|
|
567
|
+
return h.length === 0 ? null : /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
568
|
+
/* @__PURE__ */ R.jsx(ar, {}),
|
|
569
|
+
h.map(({ key: d, store: l }) => /* @__PURE__ */ R.jsx(sr, { store: l, library: r, onAction: a.current, client: c.current, video: c.current?.media?.video }, d))
|
|
570
|
+
] });
|
|
453
571
|
});
|
|
454
|
-
class
|
|
572
|
+
class ur {
|
|
455
573
|
core;
|
|
456
574
|
ownsCore;
|
|
457
575
|
stores = /* @__PURE__ */ new Map();
|
|
@@ -509,7 +627,7 @@ class ar {
|
|
|
509
627
|
if (r)
|
|
510
628
|
return r;
|
|
511
629
|
const n = {
|
|
512
|
-
category:
|
|
630
|
+
category: Ue,
|
|
513
631
|
store: new Mt()
|
|
514
632
|
};
|
|
515
633
|
return this.stores.set(e, n), n;
|
|
@@ -518,7 +636,7 @@ class ar {
|
|
|
518
636
|
const n = this.stores.get(e);
|
|
519
637
|
if (!n)
|
|
520
638
|
return !1;
|
|
521
|
-
const o = r ?? this.core.uiStore.getSnapshot(e)?.category ??
|
|
639
|
+
const o = r ?? this.core.uiStore.getSnapshot(e)?.category ?? Ue;
|
|
522
640
|
return n.category === o ? !1 : (this.stores.set(e, { ...n, category: o }), !0);
|
|
523
641
|
}
|
|
524
642
|
notify(e) {
|
|
@@ -526,7 +644,7 @@ class ar {
|
|
|
526
644
|
r(e);
|
|
527
645
|
}
|
|
528
646
|
}
|
|
529
|
-
function
|
|
647
|
+
function lr(t) {
|
|
530
648
|
if (typeof t == "string") {
|
|
531
649
|
const e = t.trim();
|
|
532
650
|
return e.length > 0 ? e : void 0;
|
|
@@ -551,10 +669,10 @@ function Ke(...t) {
|
|
|
551
669
|
}
|
|
552
670
|
return e || void 0;
|
|
553
671
|
}
|
|
554
|
-
const et = /* @__PURE__ */ new WeakMap(),
|
|
672
|
+
const et = /* @__PURE__ */ new WeakMap(), dr = {};
|
|
555
673
|
function Ye(t) {
|
|
556
674
|
if (!t)
|
|
557
|
-
return
|
|
675
|
+
return dr;
|
|
558
676
|
const e = et.get(t);
|
|
559
677
|
if (e)
|
|
560
678
|
return e;
|
|
@@ -563,50 +681,51 @@ function Ye(t) {
|
|
|
563
681
|
o != null && (typeof o == "string" || typeof o == "number" || typeof o == "boolean") && (r[n] = o);
|
|
564
682
|
return et.set(t, r), r;
|
|
565
683
|
}
|
|
566
|
-
function
|
|
567
|
-
const t =
|
|
568
|
-
const o = Z(n.store, r), s = w(null), i = fe(o?.props?.targetViewId), a = o?.props?.focusOnly, c = typeof a == "boolean" ? a : void 0,
|
|
684
|
+
function fr() {
|
|
685
|
+
const t = Y(function({ nodeId: r, context: n }) {
|
|
686
|
+
const o = Z(n.store, r), s = w(null), i = fe(o?.props?.targetViewId), a = o?.props?.focusOnly, c = typeof a == "boolean" ? a : void 0, h = fe(o?.props?.key), d = o?.props?.preciseGeneratedAt;
|
|
569
687
|
return U(() => {
|
|
570
688
|
if (typeof document > "u")
|
|
571
689
|
return;
|
|
572
|
-
const
|
|
573
|
-
if (!
|
|
690
|
+
const u = s.current;
|
|
691
|
+
if (!u || i && u.closest("[data-ikon-view-id]")?.getAttribute("data-ikon-view-id") !== i)
|
|
574
692
|
return;
|
|
575
693
|
if (c !== !0) {
|
|
576
|
-
const
|
|
577
|
-
let
|
|
578
|
-
for (;
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
581
|
-
return
|
|
582
|
-
|
|
694
|
+
const y = ((v) => {
|
|
695
|
+
let E = v.parentElement;
|
|
696
|
+
for (; E; ) {
|
|
697
|
+
const O = window.getComputedStyle(E).overflowY;
|
|
698
|
+
if (O === "auto" || O === "scroll" || E.hasAttribute("data-radix-scroll-area-viewport"))
|
|
699
|
+
return E;
|
|
700
|
+
E = E.parentElement;
|
|
583
701
|
}
|
|
584
702
|
return null;
|
|
585
|
-
})(
|
|
586
|
-
|
|
587
|
-
const v =
|
|
588
|
-
"scrollBehavior" in document.documentElement.style ?
|
|
589
|
-
}) : typeof
|
|
703
|
+
})(u);
|
|
704
|
+
y ? requestAnimationFrame(() => {
|
|
705
|
+
const v = y.getBoundingClientRect(), E = u.getBoundingClientRect(), T = y.scrollTop + (E.bottom - v.bottom) + 16;
|
|
706
|
+
"scrollBehavior" in document.documentElement.style ? y.scrollTo({ top: T, behavior: "smooth" }) : y.scrollTop = T;
|
|
707
|
+
}) : typeof u.scrollIntoView == "function" && requestAnimationFrame(() => {
|
|
590
708
|
try {
|
|
591
|
-
|
|
709
|
+
u.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" });
|
|
592
710
|
} catch {
|
|
593
|
-
|
|
711
|
+
u.scrollIntoView(!1);
|
|
594
712
|
}
|
|
595
713
|
});
|
|
596
714
|
}
|
|
597
|
-
const
|
|
598
|
-
if (!(
|
|
715
|
+
const m = document.activeElement;
|
|
716
|
+
if (!(m instanceof HTMLInputElement || m instanceof HTMLTextAreaElement || m?.getAttribute("contenteditable") === "true") && typeof u.focus == "function")
|
|
599
717
|
try {
|
|
600
|
-
|
|
718
|
+
u.focus({ preventScroll: !0 });
|
|
601
719
|
} catch {
|
|
602
|
-
|
|
720
|
+
u.focus();
|
|
603
721
|
}
|
|
604
|
-
}, [c, i,
|
|
722
|
+
}, [c, i, h, d]), o ? /* @__PURE__ */ R.jsx(
|
|
605
723
|
"span",
|
|
606
724
|
{
|
|
607
725
|
ref: s,
|
|
608
726
|
"aria-hidden": "true",
|
|
609
727
|
"data-ikon-node-id": o.id,
|
|
728
|
+
"data-ikon-source": o.sourceMarker,
|
|
610
729
|
"data-ikon-focus-hint": "true",
|
|
611
730
|
tabIndex: -1,
|
|
612
731
|
style: { display: "block", width: 0, height: 0, overflow: "hidden" }
|
|
@@ -618,25 +737,26 @@ function lr() {
|
|
|
618
737
|
return t;
|
|
619
738
|
};
|
|
620
739
|
}
|
|
621
|
-
function
|
|
622
|
-
const t =
|
|
623
|
-
const s = Z(n.store, r), i =
|
|
740
|
+
function hr() {
|
|
741
|
+
const t = Y(function({ nodeId: r, context: n, className: o }) {
|
|
742
|
+
const s = Z(n.store, r), i = lr(s?.props?.onInvokeId), a = D(() => {
|
|
624
743
|
i && n.dispatchAction(i);
|
|
625
744
|
}, [i, n]);
|
|
626
745
|
if (!s)
|
|
627
746
|
return null;
|
|
628
747
|
const c = Ye(s.props);
|
|
629
748
|
delete c.onInvokeId;
|
|
630
|
-
const
|
|
631
|
-
return /* @__PURE__ */
|
|
749
|
+
const h = Ke(fe(s.props?.className), o), d = s.children?.length ? n.renderChildren(s.children) : void 0;
|
|
750
|
+
return /* @__PURE__ */ R.jsx(
|
|
632
751
|
"div",
|
|
633
752
|
{
|
|
634
753
|
...c,
|
|
635
754
|
"data-ikon-node-id": s.id,
|
|
636
|
-
|
|
755
|
+
"data-ikon-source": s.sourceMarker,
|
|
756
|
+
className: h,
|
|
637
757
|
onClick: i ? a : void 0,
|
|
638
758
|
style: i ? { cursor: "pointer" } : void 0,
|
|
639
|
-
children:
|
|
759
|
+
children: d
|
|
640
760
|
}
|
|
641
761
|
);
|
|
642
762
|
});
|
|
@@ -645,45 +765,45 @@ function dr() {
|
|
|
645
765
|
return t;
|
|
646
766
|
};
|
|
647
767
|
}
|
|
648
|
-
function
|
|
649
|
-
const t =
|
|
768
|
+
function pr() {
|
|
769
|
+
const t = Y(function({ nodeId: r, context: n, className: o }) {
|
|
650
770
|
const s = Z(n.store, r);
|
|
651
771
|
if (!s)
|
|
652
772
|
return null;
|
|
653
773
|
const i = Ye(s.props), a = Ke("relative", fe(s.props?.className), o), c = s.children?.length ? n.renderChildren(s.children) : void 0;
|
|
654
|
-
return /* @__PURE__ */
|
|
774
|
+
return /* @__PURE__ */ R.jsx("div", { ...i, "data-ikon-node-id": s.id, "data-ikon-source": s.sourceMarker, className: a, children: c });
|
|
655
775
|
});
|
|
656
776
|
return ({ type: e }) => {
|
|
657
777
|
if (e === "std.stack")
|
|
658
778
|
return t;
|
|
659
779
|
};
|
|
660
780
|
}
|
|
661
|
-
function
|
|
662
|
-
const t =
|
|
781
|
+
function mr() {
|
|
782
|
+
const t = Y(function({ nodeId: r, context: n, className: o }) {
|
|
663
783
|
const s = Z(n.store, r);
|
|
664
784
|
if (!s)
|
|
665
785
|
return null;
|
|
666
786
|
const i = Ye(s.props), a = Ke("absolute", fe(s.props?.className), o), c = s.children?.length ? n.renderChildren(s.children) : void 0;
|
|
667
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ R.jsx("div", { ...i, "data-ikon-node-id": s.id, "data-ikon-source": s.sourceMarker, className: a, children: c });
|
|
668
788
|
});
|
|
669
789
|
return ({ type: e }) => {
|
|
670
790
|
if (e === "std.layer")
|
|
671
791
|
return t;
|
|
672
792
|
};
|
|
673
793
|
}
|
|
674
|
-
function
|
|
794
|
+
function gr() {
|
|
675
795
|
return [
|
|
676
|
-
dr(),
|
|
677
|
-
fr(),
|
|
678
796
|
hr(),
|
|
679
|
-
|
|
797
|
+
pr(),
|
|
798
|
+
mr(),
|
|
799
|
+
fr()
|
|
680
800
|
];
|
|
681
801
|
}
|
|
682
|
-
const
|
|
683
|
-
function
|
|
684
|
-
t.registerModule(
|
|
802
|
+
const yr = "base", br = async () => gr();
|
|
803
|
+
function Sr(t) {
|
|
804
|
+
t.registerModule(yr, br);
|
|
685
805
|
}
|
|
686
|
-
function
|
|
806
|
+
function wr(t) {
|
|
687
807
|
if (typeof t == "string") {
|
|
688
808
|
const e = t.trim();
|
|
689
809
|
return e.length > 0 ? e : void 0;
|
|
@@ -693,7 +813,7 @@ function br(t) {
|
|
|
693
813
|
return e.length > 0 ? e.join(" ") : void 0;
|
|
694
814
|
}
|
|
695
815
|
}
|
|
696
|
-
function
|
|
816
|
+
function vr(...t) {
|
|
697
817
|
const e = [];
|
|
698
818
|
for (const r of t)
|
|
699
819
|
r && r.trim() && e.push(r.trim());
|
|
@@ -714,9 +834,9 @@ function ye(t) {
|
|
|
714
834
|
if (e === "false") return !1;
|
|
715
835
|
}
|
|
716
836
|
}
|
|
717
|
-
const
|
|
718
|
-
function
|
|
719
|
-
const t =
|
|
837
|
+
const Er = "std.audio-url-player";
|
|
838
|
+
function Rr() {
|
|
839
|
+
const t = Y(function({
|
|
720
840
|
nodeId: r,
|
|
721
841
|
context: n,
|
|
722
842
|
className: o
|
|
@@ -724,23 +844,24 @@ function vr() {
|
|
|
724
844
|
const s = Z(n.store, r);
|
|
725
845
|
if (!s)
|
|
726
846
|
return null;
|
|
727
|
-
const i =
|
|
728
|
-
return /* @__PURE__ */
|
|
847
|
+
const i = vr(wr(s.props?.className), o), a = tt(s.props?.src), c = tt(s.props?.preload), h = ye(s.props?.controls), d = ye(s.props?.autoplay), l = ye(s.props?.loop), u = ye(s.props?.muted);
|
|
848
|
+
return /* @__PURE__ */ R.jsx(
|
|
729
849
|
"audio",
|
|
730
850
|
{
|
|
731
851
|
src: a,
|
|
732
852
|
...c !== void 0 ? { preload: c } : {},
|
|
733
|
-
...
|
|
734
|
-
...
|
|
735
|
-
...
|
|
736
|
-
...
|
|
853
|
+
...h !== void 0 ? { controls: h } : {},
|
|
854
|
+
...d !== void 0 ? { autoPlay: d } : {},
|
|
855
|
+
...l !== void 0 ? { loop: l } : {},
|
|
856
|
+
...u !== void 0 ? { muted: u } : {},
|
|
737
857
|
"data-ikon-node-id": s.id,
|
|
858
|
+
"data-ikon-source": s.sourceMarker,
|
|
738
859
|
className: i
|
|
739
860
|
}
|
|
740
861
|
);
|
|
741
862
|
});
|
|
742
863
|
return ({ type: e }) => {
|
|
743
|
-
if (e ===
|
|
864
|
+
if (e === Er)
|
|
744
865
|
return t;
|
|
745
866
|
};
|
|
746
867
|
}
|
|
@@ -775,23 +896,23 @@ function xe(t) {
|
|
|
775
896
|
const e = t.trim();
|
|
776
897
|
return e.length > 0 ? e : void 0;
|
|
777
898
|
}
|
|
778
|
-
const
|
|
779
|
-
function
|
|
780
|
-
const t =
|
|
781
|
-
const s = Z(n.store, r), i = w(null), a = w(null), c = n.video,
|
|
899
|
+
const kr = "std.video-canvas", Ar = "std.video-url-player";
|
|
900
|
+
function Tr() {
|
|
901
|
+
const t = Y(function({ nodeId: r, context: n, className: o }) {
|
|
902
|
+
const s = Z(n.store, r), i = w(null), a = w(null), c = n.video, h = n.client, d = s ? xe(s.props?.streamId) : void 0, l = s ? Se(s.props?.width) : void 0, u = s ? Se(s.props?.height) : void 0, p = s ? yt(gt(s.props?.className), o) : o, m = h?.isWebRtcEnabled && d ? h.getWebRtcVideoStreamByStreamId(d) : null;
|
|
782
903
|
return U(() => {
|
|
783
904
|
const b = i.current;
|
|
784
|
-
if (!(!c || !b || !
|
|
785
|
-
return c.attachCanvas(
|
|
786
|
-
c.detachCanvas(
|
|
905
|
+
if (!(!c || !b || !d || m))
|
|
906
|
+
return c.attachCanvas(d, b), () => {
|
|
907
|
+
c.detachCanvas(d);
|
|
787
908
|
};
|
|
788
|
-
}, [c,
|
|
909
|
+
}, [c, d, m]), U(() => {
|
|
789
910
|
const b = a.current;
|
|
790
|
-
if (!(!b || !
|
|
791
|
-
return b.srcObject =
|
|
911
|
+
if (!(!b || !m))
|
|
912
|
+
return b.srcObject = m, () => {
|
|
792
913
|
b.srcObject = null;
|
|
793
914
|
};
|
|
794
|
-
}, [
|
|
915
|
+
}, [m]), s ? m ? /* @__PURE__ */ R.jsx(
|
|
795
916
|
"video",
|
|
796
917
|
{
|
|
797
918
|
ref: a,
|
|
@@ -799,32 +920,34 @@ function Ar() {
|
|
|
799
920
|
playsInline: !0,
|
|
800
921
|
muted: !0,
|
|
801
922
|
"data-ikon-node-id": s.id,
|
|
802
|
-
"data-ikon-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
...
|
|
923
|
+
"data-ikon-source": s.sourceMarker,
|
|
924
|
+
"data-ikon-video-stream-id": d,
|
|
925
|
+
className: p,
|
|
926
|
+
...l ? { width: l } : {},
|
|
927
|
+
...u ? { height: u } : {}
|
|
806
928
|
},
|
|
807
|
-
|
|
808
|
-
) : /* @__PURE__ */
|
|
929
|
+
d
|
|
930
|
+
) : /* @__PURE__ */ R.jsx(
|
|
809
931
|
"canvas",
|
|
810
932
|
{
|
|
811
933
|
ref: i,
|
|
812
934
|
"data-ikon-node-id": s.id,
|
|
813
|
-
"data-ikon-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
...
|
|
935
|
+
"data-ikon-source": s.sourceMarker,
|
|
936
|
+
"data-ikon-video-stream-id": d,
|
|
937
|
+
className: p,
|
|
938
|
+
...l ? { width: l } : {},
|
|
939
|
+
...u ? { height: u } : {}
|
|
817
940
|
},
|
|
818
|
-
|
|
941
|
+
d
|
|
819
942
|
) : null;
|
|
820
943
|
});
|
|
821
944
|
return ({ type: e }) => {
|
|
822
|
-
if (e ===
|
|
945
|
+
if (e === kr)
|
|
823
946
|
return t;
|
|
824
947
|
};
|
|
825
948
|
}
|
|
826
|
-
function
|
|
827
|
-
return [
|
|
949
|
+
function Cr() {
|
|
950
|
+
return [Tr(), Ir(), Rr()];
|
|
828
951
|
}
|
|
829
952
|
function ce(t) {
|
|
830
953
|
if (typeof t == "boolean")
|
|
@@ -835,8 +958,8 @@ function ce(t) {
|
|
|
835
958
|
if (e === "false") return !1;
|
|
836
959
|
}
|
|
837
960
|
}
|
|
838
|
-
function
|
|
839
|
-
const t =
|
|
961
|
+
function Ir() {
|
|
962
|
+
const t = Y(function({
|
|
840
963
|
nodeId: r,
|
|
841
964
|
context: n,
|
|
842
965
|
className: o
|
|
@@ -844,47 +967,48 @@ function Tr() {
|
|
|
844
967
|
const s = Z(n.store, r);
|
|
845
968
|
if (!s)
|
|
846
969
|
return null;
|
|
847
|
-
const i = yt(gt(s.props?.className), o), a = xe(s.props?.src), c = xe(s.props?.poster),
|
|
848
|
-
return /* @__PURE__ */
|
|
970
|
+
const i = yt(gt(s.props?.className), o), a = xe(s.props?.src), c = xe(s.props?.poster), h = ce(s.props?.controls), d = ce(s.props?.autoplay), l = ce(s.props?.loop), u = ce(s.props?.muted), p = ce(s.props?.playsInline), m = Se(s.props?.width), b = Se(s.props?.height), g = s.children?.length ? n.renderChildren(s.children) : void 0;
|
|
971
|
+
return /* @__PURE__ */ R.jsx(
|
|
849
972
|
"video",
|
|
850
973
|
{
|
|
851
974
|
src: a,
|
|
852
975
|
poster: c,
|
|
853
|
-
...
|
|
854
|
-
...
|
|
855
|
-
...
|
|
856
|
-
...
|
|
857
|
-
...
|
|
858
|
-
...
|
|
976
|
+
...h !== void 0 ? { controls: h } : {},
|
|
977
|
+
...d !== void 0 ? { autoPlay: d } : {},
|
|
978
|
+
...l !== void 0 ? { loop: l } : {},
|
|
979
|
+
...u !== void 0 ? { muted: u } : {},
|
|
980
|
+
...p !== void 0 ? { playsInline: p } : {},
|
|
981
|
+
...m ? { width: m } : {},
|
|
859
982
|
...b ? { height: b } : {},
|
|
860
983
|
"data-ikon-node-id": s.id,
|
|
984
|
+
"data-ikon-source": s.sourceMarker,
|
|
861
985
|
className: i,
|
|
862
|
-
children:
|
|
986
|
+
children: g
|
|
863
987
|
}
|
|
864
988
|
);
|
|
865
989
|
});
|
|
866
990
|
return ({ type: e }) => {
|
|
867
|
-
if (e ===
|
|
991
|
+
if (e === Ar)
|
|
868
992
|
return t;
|
|
869
993
|
};
|
|
870
994
|
}
|
|
871
|
-
const
|
|
872
|
-
function
|
|
873
|
-
t.registerModule(
|
|
995
|
+
const Or = "media", Nr = async () => Cr();
|
|
996
|
+
function _r(t) {
|
|
997
|
+
t.registerModule(Or, Nr);
|
|
874
998
|
}
|
|
875
|
-
const
|
|
999
|
+
const Pr = `#version 300 es
|
|
876
1000
|
in vec4 a_position;
|
|
877
1001
|
void main() {
|
|
878
1002
|
gl_Position = a_position;
|
|
879
1003
|
}
|
|
880
1004
|
`;
|
|
881
|
-
function
|
|
1005
|
+
function Mr(t, e) {
|
|
882
1006
|
return new RegExp(`\\buniform\\s+\\w+\\s+${e}\\s*;`, "g").test(t);
|
|
883
1007
|
}
|
|
884
|
-
function
|
|
1008
|
+
function Lr(t, e) {
|
|
885
1009
|
const r = [];
|
|
886
1010
|
for (const [n, o] of Object.entries(e)) {
|
|
887
|
-
if (
|
|
1011
|
+
if (Mr(t, n))
|
|
888
1012
|
continue;
|
|
889
1013
|
let s;
|
|
890
1014
|
switch (o.type) {
|
|
@@ -937,7 +1061,7 @@ void main() {
|
|
|
937
1061
|
}
|
|
938
1062
|
`;
|
|
939
1063
|
}
|
|
940
|
-
class
|
|
1064
|
+
class jr {
|
|
941
1065
|
gl;
|
|
942
1066
|
program = null;
|
|
943
1067
|
positionBuffer = null;
|
|
@@ -973,10 +1097,10 @@ class Mr {
|
|
|
973
1097
|
}
|
|
974
1098
|
compile(e, r = {}) {
|
|
975
1099
|
this.lastError = null, this.customUniforms = r, this.currentShaderSource = e;
|
|
976
|
-
const n = this.gl, o = this.compileShader(n.VERTEX_SHADER,
|
|
1100
|
+
const n = this.gl, o = this.compileShader(n.VERTEX_SHADER, Pr);
|
|
977
1101
|
if (!o)
|
|
978
1102
|
return !1;
|
|
979
|
-
const s =
|
|
1103
|
+
const s = Lr(e, r), i = this.compileShader(n.FRAGMENT_SHADER, s);
|
|
980
1104
|
if (!i)
|
|
981
1105
|
return n.deleteShader(o), !1;
|
|
982
1106
|
const a = n.createProgram();
|
|
@@ -1014,46 +1138,46 @@ class Mr {
|
|
|
1014
1138
|
this.lastFrameTime = s, this.frameCount++, e.clearColor(0, 0, 0, 1), e.clear(e.COLOR_BUFFER_BIT), e.useProgram(this.program), e.bindVertexArray(this.vao);
|
|
1015
1139
|
const c = this.uniformLocations.get("iResolution");
|
|
1016
1140
|
c && e.uniform3f(c, n, o, 1);
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1025
|
-
const
|
|
1026
|
-
if (
|
|
1027
|
-
const
|
|
1028
|
-
e.uniform4f(
|
|
1141
|
+
const h = this.uniformLocations.get("iTime");
|
|
1142
|
+
h && e.uniform1f(h, i);
|
|
1143
|
+
const d = this.uniformLocations.get("iTimeDelta");
|
|
1144
|
+
d && e.uniform1f(d, a);
|
|
1145
|
+
const l = this.uniformLocations.get("iFrame");
|
|
1146
|
+
l && e.uniform1i(l, this.frameCount);
|
|
1147
|
+
const u = this.uniformLocations.get("iMouse");
|
|
1148
|
+
u && e.uniform4f(u, this.mouseX, this.mouseY, this.mouseClickX, this.mouseClickY);
|
|
1149
|
+
const p = this.uniformLocations.get("iDate");
|
|
1150
|
+
if (p) {
|
|
1151
|
+
const m = /* @__PURE__ */ new Date();
|
|
1152
|
+
e.uniform4f(p, m.getFullYear(), m.getMonth(), m.getDate(), m.getHours() * 3600 + m.getMinutes() * 60 + m.getSeconds() + m.getMilliseconds() / 1e3);
|
|
1029
1153
|
}
|
|
1030
|
-
for (const [
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1154
|
+
for (const [m, b] of Object.entries(this.customUniforms)) {
|
|
1155
|
+
const g = this.uniformLocations.get(m);
|
|
1156
|
+
if (g)
|
|
1033
1157
|
switch (b.type) {
|
|
1034
1158
|
case "float":
|
|
1035
|
-
e.uniform1f(
|
|
1159
|
+
e.uniform1f(g, b.value);
|
|
1036
1160
|
break;
|
|
1037
1161
|
case "vec2": {
|
|
1038
|
-
const
|
|
1039
|
-
e.uniform2f(
|
|
1162
|
+
const y = b.value;
|
|
1163
|
+
e.uniform2f(g, y[0], y[1]);
|
|
1040
1164
|
break;
|
|
1041
1165
|
}
|
|
1042
1166
|
case "vec3": {
|
|
1043
|
-
const
|
|
1044
|
-
e.uniform3f(
|
|
1167
|
+
const y = b.value;
|
|
1168
|
+
e.uniform3f(g, y[0], y[1], y[2]);
|
|
1045
1169
|
break;
|
|
1046
1170
|
}
|
|
1047
1171
|
case "vec4": {
|
|
1048
|
-
const
|
|
1049
|
-
e.uniform4f(
|
|
1172
|
+
const y = b.value;
|
|
1173
|
+
e.uniform4f(g, y[0], y[1], y[2], y[3]);
|
|
1050
1174
|
break;
|
|
1051
1175
|
}
|
|
1052
1176
|
case "int":
|
|
1053
|
-
e.uniform1i(
|
|
1177
|
+
e.uniform1i(g, b.value);
|
|
1054
1178
|
break;
|
|
1055
1179
|
case "bool":
|
|
1056
|
-
e.uniform1i(
|
|
1180
|
+
e.uniform1i(g, b.value ? 1 : 0);
|
|
1057
1181
|
break;
|
|
1058
1182
|
}
|
|
1059
1183
|
}
|
|
@@ -1067,7 +1191,7 @@ class Mr {
|
|
|
1067
1191
|
this.program && (e.deleteProgram(this.program), this.program = null), this.positionBuffer && (e.deleteBuffer(this.positionBuffer), this.positionBuffer = null), this.vao && (e.deleteVertexArray(this.vao), this.vao = null), this.uniformLocations.clear();
|
|
1068
1192
|
}
|
|
1069
1193
|
}
|
|
1070
|
-
function
|
|
1194
|
+
function Ur(t) {
|
|
1071
1195
|
if (typeof t == "string") {
|
|
1072
1196
|
const e = t.trim();
|
|
1073
1197
|
return e.length > 0 ? e : void 0;
|
|
@@ -1077,7 +1201,7 @@ function jr(t) {
|
|
|
1077
1201
|
return e.length > 0 ? e.join(" ") : void 0;
|
|
1078
1202
|
}
|
|
1079
1203
|
}
|
|
1080
|
-
function
|
|
1204
|
+
function xr(...t) {
|
|
1081
1205
|
const e = [];
|
|
1082
1206
|
for (const r of t)
|
|
1083
1207
|
r && r.trim() && e.push(r.trim());
|
|
@@ -1092,10 +1216,10 @@ function Ce(t) {
|
|
|
1092
1216
|
return Math.floor(e);
|
|
1093
1217
|
}
|
|
1094
1218
|
}
|
|
1095
|
-
function
|
|
1219
|
+
function Dr(t) {
|
|
1096
1220
|
return typeof t == "string" ? t : "";
|
|
1097
1221
|
}
|
|
1098
|
-
function
|
|
1222
|
+
function Fr(t) {
|
|
1099
1223
|
if (typeof t == "boolean")
|
|
1100
1224
|
return t;
|
|
1101
1225
|
if (typeof t == "string") {
|
|
@@ -1104,7 +1228,7 @@ function xr(t) {
|
|
|
1104
1228
|
if (e === "false") return !1;
|
|
1105
1229
|
}
|
|
1106
1230
|
}
|
|
1107
|
-
function
|
|
1231
|
+
function Br(t) {
|
|
1108
1232
|
if (!t || typeof t != "object")
|
|
1109
1233
|
return {};
|
|
1110
1234
|
const e = {}, r = t;
|
|
@@ -1119,7 +1243,7 @@ function Dr(t) {
|
|
|
1119
1243
|
}
|
|
1120
1244
|
return e;
|
|
1121
1245
|
}
|
|
1122
|
-
function
|
|
1246
|
+
function $r(t, e) {
|
|
1123
1247
|
const r = Object.keys(t), n = Object.keys(e);
|
|
1124
1248
|
if (r.length !== n.length)
|
|
1125
1249
|
return !1;
|
|
@@ -1140,21 +1264,21 @@ function Fr(t, e) {
|
|
|
1140
1264
|
}
|
|
1141
1265
|
return !0;
|
|
1142
1266
|
}
|
|
1143
|
-
const
|
|
1144
|
-
function
|
|
1145
|
-
const t =
|
|
1146
|
-
const s = Z(n.store, r), i = w(null), a = w(null), c = w(null),
|
|
1267
|
+
const Vr = "std.shadertoy-canvas";
|
|
1268
|
+
function Kr() {
|
|
1269
|
+
const t = Y(function({ nodeId: r, context: n, className: o }) {
|
|
1270
|
+
const s = Z(n.store, r), i = w(null), a = w(null), c = w(null), h = w(0), d = w(""), l = w({}), u = w({
|
|
1147
1271
|
x: 0,
|
|
1148
1272
|
y: 0,
|
|
1149
1273
|
clickX: 0,
|
|
1150
1274
|
clickY: 0,
|
|
1151
1275
|
isDown: !1
|
|
1152
|
-
}),
|
|
1276
|
+
}), p = s ? Dr(s.props?.shaderSource) : "", m = s ? Ce(s.props?.fps) ?? 60 : 60, b = s?.props?.uniforms, g = V(() => Br(b), [b]), y = s ? Fr(s.props?.enableMouse) ?? !0 : !0, v = s ? Ce(s.props?.width) : void 0, E = s ? Ce(s.props?.height) : void 0, T = s ? xr(Ur(s.props?.className), o) : o;
|
|
1153
1277
|
U(() => {
|
|
1154
|
-
const
|
|
1155
|
-
if (
|
|
1278
|
+
const C = i.current;
|
|
1279
|
+
if (C) {
|
|
1156
1280
|
try {
|
|
1157
|
-
const _ = new
|
|
1281
|
+
const _ = new jr(C);
|
|
1158
1282
|
a.current = _;
|
|
1159
1283
|
} catch (_) {
|
|
1160
1284
|
console.error("[ShadertoyRenderer] Failed to create WebGL2 context:", _);
|
|
@@ -1164,75 +1288,76 @@ function $r() {
|
|
|
1164
1288
|
};
|
|
1165
1289
|
}
|
|
1166
1290
|
}, []), U(() => {
|
|
1167
|
-
const
|
|
1168
|
-
if (!(!
|
|
1169
|
-
if (
|
|
1170
|
-
|
|
1291
|
+
const C = a.current;
|
|
1292
|
+
if (!(!C || !p) && d.current !== p)
|
|
1293
|
+
if (C.compile(p, g))
|
|
1294
|
+
d.current = p, l.current = g;
|
|
1171
1295
|
else {
|
|
1172
|
-
const x =
|
|
1296
|
+
const x = C.getError();
|
|
1173
1297
|
console.error("[ShadertoyRenderer] Shader compilation failed:", x);
|
|
1174
1298
|
}
|
|
1175
|
-
}, [
|
|
1176
|
-
const
|
|
1177
|
-
!
|
|
1178
|
-
}, [
|
|
1179
|
-
const
|
|
1180
|
-
if (!
|
|
1181
|
-
const _ = 1e3 /
|
|
1182
|
-
const F =
|
|
1183
|
-
F >= _ && (
|
|
1299
|
+
}, [p, g]), U(() => {
|
|
1300
|
+
const C = a.current;
|
|
1301
|
+
!C || !d.current || $r(l.current, g) || (C.setCustomUniforms(g), l.current = g);
|
|
1302
|
+
}, [g]), U(() => {
|
|
1303
|
+
const C = a.current;
|
|
1304
|
+
if (!C || !d.current) return;
|
|
1305
|
+
const _ = 1e3 / m, x = (P) => {
|
|
1306
|
+
const F = P - h.current;
|
|
1307
|
+
F >= _ && (h.current = P - F % _, C.draw()), c.current = requestAnimationFrame(x);
|
|
1184
1308
|
};
|
|
1185
1309
|
return c.current = requestAnimationFrame(x), () => {
|
|
1186
1310
|
c.current !== null && (cancelAnimationFrame(c.current), c.current = null);
|
|
1187
1311
|
};
|
|
1188
|
-
}, [
|
|
1189
|
-
const
|
|
1190
|
-
(
|
|
1191
|
-
if (!
|
|
1312
|
+
}, [m]);
|
|
1313
|
+
const O = D(
|
|
1314
|
+
(C) => {
|
|
1315
|
+
if (!y) return;
|
|
1192
1316
|
const _ = i.current, x = a.current;
|
|
1193
1317
|
if (!_ || !x) return;
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1318
|
+
const P = _.getBoundingClientRect(), F = C.clientX - P.left, z = P.height - (C.clientY - P.top);
|
|
1319
|
+
u.current.x = F, u.current.y = z, x.setMouse(F, z, u.current.clickX, u.current.clickY);
|
|
1196
1320
|
},
|
|
1197
|
-
[
|
|
1198
|
-
),
|
|
1199
|
-
(
|
|
1200
|
-
if (!
|
|
1321
|
+
[y]
|
|
1322
|
+
), K = D(
|
|
1323
|
+
(C) => {
|
|
1324
|
+
if (!y) return;
|
|
1201
1325
|
const _ = i.current, x = a.current;
|
|
1202
1326
|
if (!_ || !x) return;
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1327
|
+
const P = _.getBoundingClientRect(), F = C.clientX - P.left, z = P.height - (C.clientY - P.top);
|
|
1328
|
+
u.current.isDown = !0, u.current.clickX = F, u.current.clickY = z, x.setMouse(F, z, F, z);
|
|
1205
1329
|
},
|
|
1206
|
-
[
|
|
1330
|
+
[y]
|
|
1207
1331
|
), Q = D(() => {
|
|
1208
|
-
|
|
1209
|
-
}, [
|
|
1210
|
-
return s ? /* @__PURE__ */
|
|
1332
|
+
y && (u.current.isDown = !1, u.current.clickX = -Math.abs(u.current.clickX));
|
|
1333
|
+
}, [y]);
|
|
1334
|
+
return s ? /* @__PURE__ */ R.jsx(
|
|
1211
1335
|
"canvas",
|
|
1212
1336
|
{
|
|
1213
1337
|
ref: i,
|
|
1214
1338
|
"data-ikon-node-id": s.id,
|
|
1215
|
-
|
|
1339
|
+
"data-ikon-source": s.sourceMarker,
|
|
1340
|
+
className: T,
|
|
1216
1341
|
...v ? { width: v } : {},
|
|
1217
|
-
...
|
|
1218
|
-
onMouseMove:
|
|
1219
|
-
onMouseDown:
|
|
1342
|
+
...E ? { height: E } : {},
|
|
1343
|
+
onMouseMove: O,
|
|
1344
|
+
onMouseDown: K,
|
|
1220
1345
|
onMouseUp: Q,
|
|
1221
1346
|
onMouseLeave: Q
|
|
1222
1347
|
}
|
|
1223
1348
|
) : null;
|
|
1224
1349
|
});
|
|
1225
1350
|
return ({ type: e }) => {
|
|
1226
|
-
if (e ===
|
|
1351
|
+
if (e === Vr)
|
|
1227
1352
|
return t;
|
|
1228
1353
|
};
|
|
1229
1354
|
}
|
|
1230
|
-
const
|
|
1231
|
-
function
|
|
1232
|
-
t.registerModule(
|
|
1355
|
+
const Yr = "shadertoy", zr = async () => Kr();
|
|
1356
|
+
function Wr(t) {
|
|
1357
|
+
t.registerModule(Yr, zr);
|
|
1233
1358
|
}
|
|
1234
|
-
const rt =
|
|
1235
|
-
class
|
|
1359
|
+
const rt = Re("UIRegistry");
|
|
1360
|
+
class qr {
|
|
1236
1361
|
baseResolvers = [];
|
|
1237
1362
|
moduleLoaders = /* @__PURE__ */ new Map();
|
|
1238
1363
|
moduleResolvers = /* @__PURE__ */ new Map();
|
|
@@ -1254,7 +1379,7 @@ class zr {
|
|
|
1254
1379
|
for (const [n, o] of this.moduleLoaders.entries())
|
|
1255
1380
|
if (!this.moduleResolvers.has(n))
|
|
1256
1381
|
try {
|
|
1257
|
-
const s = await o(), i =
|
|
1382
|
+
const s = await o(), i = Jr(s);
|
|
1258
1383
|
this.moduleResolvers.set(n, i), e = !0;
|
|
1259
1384
|
} catch (s) {
|
|
1260
1385
|
rt.error(`[IkonUiRegistry] Failed to load module '${n}'.`, s);
|
|
@@ -1262,7 +1387,7 @@ class zr {
|
|
|
1262
1387
|
const r = [];
|
|
1263
1388
|
for (const n of this.moduleLoaders.keys())
|
|
1264
1389
|
this.moduleResolvers.has(n) && r.push(n);
|
|
1265
|
-
return
|
|
1390
|
+
return Xr(r, this.activeModuleOrder) || (this.activeModuleOrder = r, e = !0), e;
|
|
1266
1391
|
}
|
|
1267
1392
|
resolve(e) {
|
|
1268
1393
|
for (const r of this.baseResolvers) {
|
|
@@ -1282,17 +1407,17 @@ class zr {
|
|
|
1282
1407
|
}
|
|
1283
1408
|
}
|
|
1284
1409
|
}
|
|
1285
|
-
function
|
|
1286
|
-
const t = new
|
|
1287
|
-
return
|
|
1410
|
+
function Gr() {
|
|
1411
|
+
const t = new qr();
|
|
1412
|
+
return Sr(t), _r(t), Wr(t), t.loadRegisteredModules(), t;
|
|
1288
1413
|
}
|
|
1289
|
-
function
|
|
1414
|
+
function Hr(t) {
|
|
1290
1415
|
return Array.isArray(t) ? t : [t];
|
|
1291
1416
|
}
|
|
1292
|
-
function
|
|
1293
|
-
return t ?
|
|
1417
|
+
function Jr(t) {
|
|
1418
|
+
return t ? Hr(t).flatMap((e) => e ? Array.isArray(e) ? e.filter(Boolean) : [e] : []) : [];
|
|
1294
1419
|
}
|
|
1295
|
-
function
|
|
1420
|
+
function Xr(t, e) {
|
|
1296
1421
|
if (t.length !== e.length)
|
|
1297
1422
|
return !1;
|
|
1298
1423
|
for (let r = 0; r < t.length; r += 1)
|
|
@@ -1300,7 +1425,7 @@ function Hr(t, e) {
|
|
|
1300
1425
|
return !1;
|
|
1301
1426
|
return !0;
|
|
1302
1427
|
}
|
|
1303
|
-
const Ie =
|
|
1428
|
+
const Ie = Re("MotionController"), nt = {
|
|
1304
1429
|
ease: [0.25, 0.1, 0.25, 1],
|
|
1305
1430
|
"ease-in": [0.42, 0, 1, 1],
|
|
1306
1431
|
"ease-out": [0, 0, 0.58, 1],
|
|
@@ -1344,51 +1469,51 @@ function st(t) {
|
|
|
1344
1469
|
return typeof CSS < "u" && CSS.escape ? CSS.escape(t) : t.replace(/[^a-zA-Z0-9_-]/g, (e) => `\\${e}`);
|
|
1345
1470
|
}
|
|
1346
1471
|
function it(t, e, r, n) {
|
|
1347
|
-
const
|
|
1348
|
-
function
|
|
1349
|
-
return ((3 *
|
|
1472
|
+
const d = new Float32Array(11);
|
|
1473
|
+
function l(g, y, v) {
|
|
1474
|
+
return ((3 * y - 3 * v + 1) * g + (3 * v - 6 * y)) * g * g + 3 * y * g;
|
|
1350
1475
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return 3 * (3 *
|
|
1476
|
+
function u(g, y, v) {
|
|
1477
|
+
return 3 * (3 * y - 3 * v + 1) * g * g + 2 * (3 * v - 6 * y) * g + 3 * y;
|
|
1353
1478
|
}
|
|
1354
|
-
function
|
|
1479
|
+
function p(g, y) {
|
|
1355
1480
|
for (let v = 0; v < 4; v += 1) {
|
|
1356
|
-
const
|
|
1357
|
-
if (
|
|
1358
|
-
return
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1481
|
+
const E = u(y, t, r);
|
|
1482
|
+
if (E === 0)
|
|
1483
|
+
return y;
|
|
1484
|
+
const T = l(y, t, r) - g;
|
|
1485
|
+
y -= T / E;
|
|
1361
1486
|
}
|
|
1362
|
-
return
|
|
1487
|
+
return y;
|
|
1363
1488
|
}
|
|
1364
|
-
function
|
|
1365
|
-
let
|
|
1489
|
+
function m(g, y, v) {
|
|
1490
|
+
let E = 0, T = 0, O = 0;
|
|
1366
1491
|
do
|
|
1367
|
-
|
|
1368
|
-
while (Math.abs(
|
|
1369
|
-
return
|
|
1370
|
-
}
|
|
1371
|
-
function b(
|
|
1372
|
-
let
|
|
1373
|
-
const
|
|
1374
|
-
for (; v !==
|
|
1375
|
-
|
|
1492
|
+
T = y + (v - y) / 2, E = l(T, t, r) - g, E > 0 ? v = T : y = T;
|
|
1493
|
+
while (Math.abs(E) > 1e-7 && ++O < 10);
|
|
1494
|
+
return T;
|
|
1495
|
+
}
|
|
1496
|
+
function b(g) {
|
|
1497
|
+
let y = 0, v = 1;
|
|
1498
|
+
const E = 10;
|
|
1499
|
+
for (; v !== E && d[v] <= g; v += 1)
|
|
1500
|
+
y += 0.1;
|
|
1376
1501
|
v -= 1;
|
|
1377
|
-
const
|
|
1378
|
-
return
|
|
1502
|
+
const T = (g - d[v]) / (d[v + 1] - d[v]), O = y + T * 0.1, K = u(O, t, r);
|
|
1503
|
+
return K >= 1e-3 ? p(g, O) : K === 0 ? O : m(g, y, y + 0.1);
|
|
1379
1504
|
}
|
|
1380
|
-
for (let
|
|
1381
|
-
|
|
1382
|
-
return (
|
|
1505
|
+
for (let g = 0; g < 11; g += 1)
|
|
1506
|
+
d[g] = l(g * 0.1, t, r);
|
|
1507
|
+
return (g) => g <= 0 ? 0 : g >= 1 ? 1 : l(b(g), e, n);
|
|
1383
1508
|
}
|
|
1384
|
-
function
|
|
1509
|
+
function Zr(t) {
|
|
1385
1510
|
const e = /steps\(\s*([0-9]+)\s*(?:,\s*([a-z-]+)\s*)?\)/i.exec(t);
|
|
1386
1511
|
if (!e)
|
|
1387
1512
|
return (o) => B(o);
|
|
1388
1513
|
const r = Math.max(1, parseInt(e[1], 10)), n = (e[2] ?? "end").toLowerCase();
|
|
1389
1514
|
return n === "start" || n === "jump-start" ? (o) => B(Math.ceil(o * r) / r) : n === "none" || n === "jump-none" ? (o) => B(Math.round(o * r) / r) : n === "both" || n === "jump-both" ? (o) => B((Math.floor(o * r) + 0.5) / r) : (o) => B(Math.floor(o * r) / r);
|
|
1390
1515
|
}
|
|
1391
|
-
function
|
|
1516
|
+
function Qr(t) {
|
|
1392
1517
|
if (!t)
|
|
1393
1518
|
return (r) => B(r);
|
|
1394
1519
|
const e = t.trim().toLowerCase();
|
|
@@ -1402,16 +1527,16 @@ function Xr(t) {
|
|
|
1402
1527
|
const n = e.slice(13, -1).split(",").map((o) => Number.parseFloat(o.trim()));
|
|
1403
1528
|
if (n.length === 4 && n.every((o) => Number.isFinite(o))) {
|
|
1404
1529
|
const [o, s, i, a] = n, c = it(o, s, i, a);
|
|
1405
|
-
return (
|
|
1530
|
+
return (h) => B(c(B(h)));
|
|
1406
1531
|
}
|
|
1407
1532
|
}
|
|
1408
1533
|
if (e.startsWith("steps(") && e.endsWith(")")) {
|
|
1409
|
-
const r =
|
|
1534
|
+
const r = Zr(e);
|
|
1410
1535
|
return (n) => r(B(n));
|
|
1411
1536
|
}
|
|
1412
1537
|
return (r) => B(r);
|
|
1413
1538
|
}
|
|
1414
|
-
function
|
|
1539
|
+
function en(t) {
|
|
1415
1540
|
if (!t)
|
|
1416
1541
|
return;
|
|
1417
1542
|
const e = /(-?\d+(?:\.\d+)?)\s*\.\.\s*(-?\d+(?:\.\d+)?)\s*->\s*(-?\d+(?:\.\d+)?)\s*\.\.\s*(-?\d+(?:\.\d+)?)/.exec(t);
|
|
@@ -1421,7 +1546,7 @@ function Zr(t) {
|
|
|
1421
1546
|
if (![r, n, o, s].some((i) => !Number.isFinite(i)))
|
|
1422
1547
|
return { inStart: r, inEnd: n, outStart: o, outEnd: s };
|
|
1423
1548
|
}
|
|
1424
|
-
class
|
|
1549
|
+
class tn {
|
|
1425
1550
|
bindingsByStyle = /* @__PURE__ */ new Map();
|
|
1426
1551
|
observer;
|
|
1427
1552
|
observeScheduled = !1;
|
|
@@ -1466,7 +1591,7 @@ class Qr {
|
|
|
1466
1591
|
const r = e.source?.trim();
|
|
1467
1592
|
if (!r)
|
|
1468
1593
|
return;
|
|
1469
|
-
const n = ot(e.min) ?? 0, o = ot(e.max), s = o === void 0 ? n + 100 : o, i = (e.clamp ?? "clamp").trim().toLowerCase(), a = !!e.reverse, c =
|
|
1594
|
+
const n = ot(e.min) ?? 0, o = ot(e.max), s = o === void 0 ? n + 100 : o, i = (e.clamp ?? "clamp").trim().toLowerCase(), a = !!e.reverse, c = Qr(e.ease), h = en(e.map), d = e.targetId?.trim() || void 0;
|
|
1470
1595
|
return Number.isNaN(n) || Number.isNaN(s) ? void 0 : {
|
|
1471
1596
|
source: r.toLowerCase(),
|
|
1472
1597
|
min: n,
|
|
@@ -1474,8 +1599,8 @@ class Qr {
|
|
|
1474
1599
|
clamp: i === "freeze-start" || i === "freeze-end" || i === "unclamped" ? i : "clamp",
|
|
1475
1600
|
reverse: a,
|
|
1476
1601
|
ease: c,
|
|
1477
|
-
map:
|
|
1478
|
-
targetId:
|
|
1602
|
+
map: h,
|
|
1603
|
+
targetId: d
|
|
1479
1604
|
};
|
|
1480
1605
|
}
|
|
1481
1606
|
ensureObserver() {
|
|
@@ -1574,10 +1699,10 @@ class Qr {
|
|
|
1574
1699
|
const o = r.max - r.min, s = o === 0 ? n > r.min ? 1 : 0 : (n - r.min) / o;
|
|
1575
1700
|
let i = this.applyClamp(s, r.clamp);
|
|
1576
1701
|
r.reverse && (i = 1 - i);
|
|
1577
|
-
const a = r.ease(i), c = Number.isFinite(a) ? a : 0,
|
|
1578
|
-
if (e.style.setProperty("--tw-motion-bind-source-value", `${n}`), e.style.setProperty("--tw-motion-bind-progress-ratio", `${c}`), e.style.setProperty("--tw-motion-bind-progress", `${
|
|
1579
|
-
const
|
|
1580
|
-
|
|
1702
|
+
const a = r.ease(i), c = Number.isFinite(a) ? a : 0, h = c * 100;
|
|
1703
|
+
if (e.style.setProperty("--tw-motion-bind-source-value", `${n}`), e.style.setProperty("--tw-motion-bind-progress-ratio", `${c}`), e.style.setProperty("--tw-motion-bind-progress", `${h}`), r.map) {
|
|
1704
|
+
const d = this.applyMap(h, r.map);
|
|
1705
|
+
d !== void 0 && e.style.setProperty("--tw-motion-bind-value", `${d}`);
|
|
1581
1706
|
} else
|
|
1582
1707
|
e.style.removeProperty("--tw-motion-bind-value");
|
|
1583
1708
|
}
|
|
@@ -1679,8 +1804,8 @@ class Qr {
|
|
|
1679
1804
|
}
|
|
1680
1805
|
}
|
|
1681
1806
|
}
|
|
1682
|
-
const Oe = new
|
|
1683
|
-
function
|
|
1807
|
+
const Oe = new tn();
|
|
1808
|
+
function rn(t) {
|
|
1684
1809
|
const e = w(/* @__PURE__ */ new Map()), r = D(({ styleId: s, css: i, common: a }) => {
|
|
1685
1810
|
if (!(!s || typeof document > "u")) {
|
|
1686
1811
|
if (i) {
|
|
@@ -1713,7 +1838,7 @@ function en(t) {
|
|
|
1713
1838
|
};
|
|
1714
1839
|
}, [t, o, r, n]), U(() => () => o(), [o]), { setStyle: r, deleteStyles: n, reset: o };
|
|
1715
1840
|
}
|
|
1716
|
-
function
|
|
1841
|
+
function nn(t) {
|
|
1717
1842
|
const e = [];
|
|
1718
1843
|
for (const [r, n] of t) {
|
|
1719
1844
|
const o = n.store.getSnapshot(), s = o.rootViewId && o.views.has(o.rootViewId);
|
|
@@ -1721,7 +1846,7 @@ function tn(t) {
|
|
|
1721
1846
|
}
|
|
1722
1847
|
return e.sort(), e.join(",");
|
|
1723
1848
|
}
|
|
1724
|
-
function
|
|
1849
|
+
function on(t) {
|
|
1725
1850
|
const [e, r] = J(), n = w("");
|
|
1726
1851
|
return U(() => {
|
|
1727
1852
|
if (!t) {
|
|
@@ -1729,54 +1854,54 @@ function rn(t) {
|
|
|
1729
1854
|
return;
|
|
1730
1855
|
}
|
|
1731
1856
|
const o = () => {
|
|
1732
|
-
const s = t.getStores(), i =
|
|
1857
|
+
const s = t.getStores(), i = nn(s);
|
|
1733
1858
|
i !== n.current && (n.current = i, r(s));
|
|
1734
1859
|
};
|
|
1735
1860
|
return o(), t.subscribe(o);
|
|
1736
1861
|
}, [t]), e;
|
|
1737
1862
|
}
|
|
1738
|
-
var
|
|
1739
|
-
function
|
|
1740
|
-
var e =
|
|
1863
|
+
var sn = typeof global == "object" && global && global.Object === Object && global, an = typeof self == "object" && self && self.Object === Object && self, cn = sn || an || Function("return this")(), we = cn.Symbol, bt = Object.prototype, un = bt.hasOwnProperty, ln = bt.toString, ue = we ? we.toStringTag : void 0;
|
|
1864
|
+
function dn(t) {
|
|
1865
|
+
var e = un.call(t, ue), r = t[ue];
|
|
1741
1866
|
try {
|
|
1742
1867
|
t[ue] = void 0;
|
|
1743
1868
|
var n = !0;
|
|
1744
1869
|
} catch {
|
|
1745
1870
|
}
|
|
1746
|
-
var o =
|
|
1871
|
+
var o = ln.call(t);
|
|
1747
1872
|
return n && (e ? t[ue] = r : delete t[ue]), o;
|
|
1748
1873
|
}
|
|
1749
|
-
var
|
|
1750
|
-
function fn(t) {
|
|
1751
|
-
return dn.call(t);
|
|
1752
|
-
}
|
|
1753
|
-
var hn = "[object Null]", mn = "[object Undefined]", at = we ? we.toStringTag : void 0;
|
|
1874
|
+
var fn = Object.prototype, hn = fn.toString;
|
|
1754
1875
|
function pn(t) {
|
|
1755
|
-
return
|
|
1876
|
+
return hn.call(t);
|
|
1756
1877
|
}
|
|
1757
|
-
|
|
1878
|
+
var mn = "[object Null]", gn = "[object Undefined]", at = we ? we.toStringTag : void 0;
|
|
1879
|
+
function yn(t) {
|
|
1880
|
+
return t == null ? t === void 0 ? gn : mn : at && at in Object(t) ? dn(t) : pn(t);
|
|
1881
|
+
}
|
|
1882
|
+
function bn(t) {
|
|
1758
1883
|
return t != null && typeof t == "object";
|
|
1759
1884
|
}
|
|
1760
|
-
var
|
|
1761
|
-
function
|
|
1762
|
-
return typeof t == "string" || !
|
|
1885
|
+
var Sn = Array.isArray, wn = "[object String]";
|
|
1886
|
+
function vn(t) {
|
|
1887
|
+
return typeof t == "string" || !Sn(t) && bn(t) && yn(t) == wn;
|
|
1763
1888
|
}
|
|
1764
1889
|
const ct = "ikonUiModules";
|
|
1765
1890
|
function De(t) {
|
|
1766
1891
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1767
1892
|
}
|
|
1768
|
-
function
|
|
1893
|
+
function En(t) {
|
|
1769
1894
|
if (!Array.isArray(t))
|
|
1770
1895
|
return;
|
|
1771
1896
|
const e = /* @__PURE__ */ new Set();
|
|
1772
1897
|
for (const r of t) {
|
|
1773
|
-
if (!
|
|
1898
|
+
if (!vn(r)) continue;
|
|
1774
1899
|
const n = r.trim();
|
|
1775
1900
|
n && (e.has(n) || e.add(n));
|
|
1776
1901
|
}
|
|
1777
1902
|
return Array.from(e);
|
|
1778
1903
|
}
|
|
1779
|
-
function
|
|
1904
|
+
function Ao(t, e) {
|
|
1780
1905
|
if (t === e)
|
|
1781
1906
|
return !0;
|
|
1782
1907
|
if (!t || !e)
|
|
@@ -1788,18 +1913,18 @@ function Eo(t, e) {
|
|
|
1788
1913
|
return !1;
|
|
1789
1914
|
return !0;
|
|
1790
1915
|
}
|
|
1791
|
-
function
|
|
1916
|
+
function Rn(t) {
|
|
1792
1917
|
if (!(!De(t) || !Object.prototype.hasOwnProperty.call(t, ct)))
|
|
1793
|
-
return
|
|
1918
|
+
return En(t[ct]);
|
|
1794
1919
|
}
|
|
1795
|
-
function
|
|
1920
|
+
function To(...t) {
|
|
1796
1921
|
for (const e of t) {
|
|
1797
|
-
const r =
|
|
1922
|
+
const r = Rn(e);
|
|
1798
1923
|
if (r !== void 0)
|
|
1799
1924
|
return r;
|
|
1800
1925
|
}
|
|
1801
1926
|
}
|
|
1802
|
-
function
|
|
1927
|
+
function Co(t) {
|
|
1803
1928
|
if (!De(t))
|
|
1804
1929
|
return;
|
|
1805
1930
|
const e = t, r = Object.keys(e).find((c) => c.toLowerCase() === "modules");
|
|
@@ -1821,36 +1946,36 @@ function ko(t) {
|
|
|
1821
1946
|
}
|
|
1822
1947
|
if (!De(c))
|
|
1823
1948
|
continue;
|
|
1824
|
-
const
|
|
1825
|
-
if (!
|
|
1949
|
+
const h = c, d = Object.keys(h).find((b) => b.toLowerCase() === "name");
|
|
1950
|
+
if (!d)
|
|
1826
1951
|
continue;
|
|
1827
|
-
const
|
|
1828
|
-
if (typeof
|
|
1952
|
+
const l = h[d];
|
|
1953
|
+
if (typeof l != "string")
|
|
1829
1954
|
continue;
|
|
1830
|
-
const
|
|
1831
|
-
if (!
|
|
1955
|
+
const u = l.trim();
|
|
1956
|
+
if (!u)
|
|
1832
1957
|
continue;
|
|
1833
|
-
const
|
|
1834
|
-
typeof
|
|
1958
|
+
const p = Object.keys(h).find((b) => b.toLowerCase() === "javascript"), m = p ? h[p] : void 0;
|
|
1959
|
+
typeof m == "string" && s.set(u, m), i.has(u) || (o.push(u), i.add(u));
|
|
1835
1960
|
}
|
|
1836
1961
|
if (!o.length && s.size === 0)
|
|
1837
1962
|
return { modules: [] };
|
|
1838
|
-
const a = Array.from(s.entries()).map(([c,
|
|
1963
|
+
const a = Array.from(s.entries()).map(([c, h]) => ({
|
|
1839
1964
|
name: c,
|
|
1840
|
-
javascript:
|
|
1965
|
+
javascript: h
|
|
1841
1966
|
}));
|
|
1842
1967
|
return a.length > 0 ? { modules: o, inlineModules: a } : { modules: o };
|
|
1843
1968
|
}
|
|
1844
|
-
const
|
|
1969
|
+
const k = {
|
|
1845
1970
|
None: 0,
|
|
1846
1971
|
Letter: 1,
|
|
1847
1972
|
Word: 2,
|
|
1848
1973
|
Line: 4,
|
|
1849
1974
|
Paragraph: 8,
|
|
1850
1975
|
Emoji: 16
|
|
1851
|
-
},
|
|
1976
|
+
}, kn = [
|
|
1852
1977
|
{
|
|
1853
|
-
flag:
|
|
1978
|
+
flag: k.Letter,
|
|
1854
1979
|
hints: [
|
|
1855
1980
|
"[data-motion-letter]",
|
|
1856
1981
|
"[data-letter]",
|
|
@@ -1859,7 +1984,7 @@ const R = {
|
|
|
1859
1984
|
]
|
|
1860
1985
|
},
|
|
1861
1986
|
{
|
|
1862
|
-
flag:
|
|
1987
|
+
flag: k.Word,
|
|
1863
1988
|
hints: [
|
|
1864
1989
|
"[data-motion-word]",
|
|
1865
1990
|
"[data-word]",
|
|
@@ -1868,7 +1993,7 @@ const R = {
|
|
|
1868
1993
|
]
|
|
1869
1994
|
},
|
|
1870
1995
|
{
|
|
1871
|
-
flag:
|
|
1996
|
+
flag: k.Line,
|
|
1872
1997
|
hints: [
|
|
1873
1998
|
"[data-motion-line]",
|
|
1874
1999
|
"[data-line]",
|
|
@@ -1877,7 +2002,7 @@ const R = {
|
|
|
1877
2002
|
]
|
|
1878
2003
|
},
|
|
1879
2004
|
{
|
|
1880
|
-
flag:
|
|
2005
|
+
flag: k.Paragraph,
|
|
1881
2006
|
hints: [
|
|
1882
2007
|
"[data-motion-paragraph]",
|
|
1883
2008
|
"[data-paragraph]",
|
|
@@ -1888,7 +2013,7 @@ const R = {
|
|
|
1888
2013
|
]
|
|
1889
2014
|
},
|
|
1890
2015
|
{
|
|
1891
|
-
flag:
|
|
2016
|
+
flag: k.Emoji,
|
|
1892
2017
|
hints: [
|
|
1893
2018
|
":is([data-motion-emoji],[data-emoji],.tw-motion-emoji,.tw-emoji)",
|
|
1894
2019
|
"[data-motion-emoji]",
|
|
@@ -1897,42 +2022,42 @@ const R = {
|
|
|
1897
2022
|
"[data-emoji]"
|
|
1898
2023
|
]
|
|
1899
2024
|
}
|
|
1900
|
-
], Fe =
|
|
1901
|
-
function
|
|
1902
|
-
if (!t || t.length >
|
|
2025
|
+
], Fe = k.Letter | k.Word | k.Line | k.Paragraph | k.Emoji, An = k.Letter | k.Word | k.Line | k.Paragraph, ut = /* @__PURE__ */ new Map(), Tn = 16384;
|
|
2026
|
+
function Io(t, e) {
|
|
2027
|
+
if (!t || t.length > Tn)
|
|
1903
2028
|
return t;
|
|
1904
|
-
const r =
|
|
1905
|
-
if (o ===
|
|
2029
|
+
const r = Kn(e), n = oe(r, k.Emoji), o = r & An;
|
|
2030
|
+
if (o === k.None && !n)
|
|
1906
2031
|
return t;
|
|
1907
2032
|
const s = t.replace(/\r\n/g, `
|
|
1908
2033
|
`).replace(/\r/g, `
|
|
1909
2034
|
`);
|
|
1910
|
-
if (o ===
|
|
2035
|
+
if (o === k.None)
|
|
1911
2036
|
return ht(s);
|
|
1912
|
-
const i =
|
|
2037
|
+
const i = $n(s);
|
|
1913
2038
|
if (i.length === 0)
|
|
1914
2039
|
return n ? ht(s) : t;
|
|
1915
|
-
const a =
|
|
1916
|
-
for (const
|
|
1917
|
-
const
|
|
1918
|
-
|
|
2040
|
+
const a = Vn(i), c = { letter: 0, word: 0, line: 0, paragraph: 0, br: 0, emoji: 0 }, h = [];
|
|
2041
|
+
for (const d of a) {
|
|
2042
|
+
const l = Cn(d, r, c);
|
|
2043
|
+
h.push(...l);
|
|
1919
2044
|
}
|
|
1920
|
-
return
|
|
2045
|
+
return h;
|
|
1921
2046
|
}
|
|
1922
|
-
function
|
|
2047
|
+
function Cn(t, e, r) {
|
|
1923
2048
|
const n = [];
|
|
1924
2049
|
for (const o of t) {
|
|
1925
|
-
const s =
|
|
2050
|
+
const s = In(o, e, r);
|
|
1926
2051
|
n.push(...s);
|
|
1927
2052
|
}
|
|
1928
|
-
if (oe(e,
|
|
2053
|
+
if (oe(e, k.Paragraph)) {
|
|
1929
2054
|
const o = r.paragraph++;
|
|
1930
2055
|
return [
|
|
1931
|
-
/* @__PURE__ */
|
|
2056
|
+
/* @__PURE__ */ R.jsx(
|
|
1932
2057
|
"span",
|
|
1933
2058
|
{
|
|
1934
2059
|
"data-motion-paragraph": !0,
|
|
1935
|
-
style:
|
|
2060
|
+
style: ke(o),
|
|
1936
2061
|
children: n
|
|
1937
2062
|
},
|
|
1938
2063
|
`motion-paragraph-${o}`
|
|
@@ -1941,23 +2066,23 @@ function kn(t, e, r) {
|
|
|
1941
2066
|
}
|
|
1942
2067
|
return n;
|
|
1943
2068
|
}
|
|
1944
|
-
function
|
|
1945
|
-
const n =
|
|
1946
|
-
if (oe(e,
|
|
2069
|
+
function In(t, e, r) {
|
|
2070
|
+
const n = On(t.text, e, r), o = [];
|
|
2071
|
+
if (oe(e, k.Line)) {
|
|
1947
2072
|
const s = r.line++;
|
|
1948
2073
|
o.push(
|
|
1949
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ R.jsx("span", { "data-motion-line": !0, style: ke(s), children: n }, `motion-line-${s}`)
|
|
1950
2075
|
);
|
|
1951
2076
|
} else
|
|
1952
2077
|
o.push(...n);
|
|
1953
2078
|
for (let s = 0; s < t.breaks; s++)
|
|
1954
|
-
o.push(/* @__PURE__ */
|
|
2079
|
+
o.push(/* @__PURE__ */ R.jsx("br", {}, `motion-break-${r.br++}`));
|
|
1955
2080
|
return o;
|
|
1956
2081
|
}
|
|
1957
|
-
function
|
|
2082
|
+
function On(t, e, r) {
|
|
1958
2083
|
if (!t)
|
|
1959
2084
|
return [];
|
|
1960
|
-
const n = oe(e,
|
|
2085
|
+
const n = oe(e, k.Word), o = [], s = /(\s+)/g;
|
|
1961
2086
|
let i = 0, a;
|
|
1962
2087
|
for (; (a = s.exec(t)) !== null; ) {
|
|
1963
2088
|
if (a.index > i) {
|
|
@@ -1973,16 +2098,16 @@ function Cn(t, e, r) {
|
|
|
1973
2098
|
return o;
|
|
1974
2099
|
}
|
|
1975
2100
|
function lt(t, e, r, n) {
|
|
1976
|
-
const o = e.word++, s =
|
|
1977
|
-
return n ? /* @__PURE__ */
|
|
2101
|
+
const o = e.word++, s = _n(t, r, e), i = `motion-word-${o}`, a = Nn(o, n);
|
|
2102
|
+
return n ? /* @__PURE__ */ R.jsx("span", { "data-motion-word": !0, style: a, children: s }, i) : /* @__PURE__ */ R.jsx("span", { style: a, children: s }, i);
|
|
1978
2103
|
}
|
|
1979
|
-
function
|
|
1980
|
-
return e ? { ...
|
|
2104
|
+
function Nn(t, e) {
|
|
2105
|
+
return e ? { ...ke(t), whiteSpace: "nowrap" } : { whiteSpace: "nowrap" };
|
|
1981
2106
|
}
|
|
1982
|
-
function
|
|
2107
|
+
function _n(t, e, r) {
|
|
1983
2108
|
if (!t)
|
|
1984
2109
|
return [];
|
|
1985
|
-
const n = oe(e,
|
|
2110
|
+
const n = oe(e, k.Letter), o = oe(e, k.Emoji);
|
|
1986
2111
|
if (!n) {
|
|
1987
2112
|
if (!o)
|
|
1988
2113
|
return [t];
|
|
@@ -1994,17 +2119,17 @@ function On(t, e, r) {
|
|
|
1994
2119
|
}
|
|
1995
2120
|
const s = [], i = Be(t);
|
|
1996
2121
|
for (const a of i) {
|
|
1997
|
-
const c = r.letter++,
|
|
2122
|
+
const c = r.letter++, h = `motion-letter-${c}`, d = ke(c);
|
|
1998
2123
|
if (a === `
|
|
1999
2124
|
`) {
|
|
2000
2125
|
s.push(
|
|
2001
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ R.jsx("span", { "data-motion-letter": !0, style: d, children: /* @__PURE__ */ R.jsx("br", {}) }, h)
|
|
2002
2127
|
);
|
|
2003
2128
|
continue;
|
|
2004
2129
|
}
|
|
2005
|
-
const
|
|
2130
|
+
const u = o && St(a) ? { "data-motion-emoji": !0 } : void 0, p = a === " " ? " " : a;
|
|
2006
2131
|
s.push(
|
|
2007
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ R.jsx("span", { "data-motion-letter": !0, style: d, ...u, children: p }, h)
|
|
2008
2133
|
);
|
|
2009
2134
|
}
|
|
2010
2135
|
return s;
|
|
@@ -2012,33 +2137,33 @@ function On(t, e, r) {
|
|
|
2012
2137
|
function Be(t) {
|
|
2013
2138
|
if (!t)
|
|
2014
2139
|
return [];
|
|
2015
|
-
const e =
|
|
2016
|
-
return e ? Array.from(e.segment(t), (r) => r.segment) :
|
|
2140
|
+
const e = Pn();
|
|
2141
|
+
return e ? Array.from(e.segment(t), (r) => r.segment) : Mn(t);
|
|
2017
2142
|
}
|
|
2018
2143
|
let le;
|
|
2019
|
-
function
|
|
2144
|
+
function Pn() {
|
|
2020
2145
|
return le !== void 0 || (typeof Intl < "u" && typeof Intl.Segmenter == "function" ? le = new Intl.Segmenter(void 0, { granularity: "grapheme" }) : le = null), le;
|
|
2021
2146
|
}
|
|
2022
|
-
function
|
|
2147
|
+
function Mn(t) {
|
|
2023
2148
|
const e = [], r = Array.from(t);
|
|
2024
2149
|
let n = "";
|
|
2025
2150
|
for (let o = 0; o < r.length; o++) {
|
|
2026
2151
|
const s = r[o], i = r[o + 1];
|
|
2027
|
-
n += s, !(i &&
|
|
2152
|
+
n += s, !(i && Ln(s, i)) && (e.push(n), n = "");
|
|
2028
2153
|
}
|
|
2029
2154
|
return n && e.push(n), e;
|
|
2030
2155
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return e ? !!(dt(t) || dt(e) ||
|
|
2156
|
+
function Ln(t, e) {
|
|
2157
|
+
return e ? !!(dt(t) || dt(e) || xn(e) || jn(e) || Un(e) || ft(t) && ft(e)) : !1;
|
|
2033
2158
|
}
|
|
2034
2159
|
function dt(t) {
|
|
2035
2160
|
return t.codePointAt(0) === 8205;
|
|
2036
2161
|
}
|
|
2037
|
-
function
|
|
2162
|
+
function jn(t) {
|
|
2038
2163
|
const e = t.codePointAt(0);
|
|
2039
2164
|
return e === void 0 ? !1 : e >= 65024 && e <= 65039 || e >= 917760 && e <= 917999;
|
|
2040
2165
|
}
|
|
2041
|
-
function
|
|
2166
|
+
function Un(t) {
|
|
2042
2167
|
const e = t.codePointAt(0);
|
|
2043
2168
|
return e === void 0 ? !1 : e >= 127995 && e <= 127999;
|
|
2044
2169
|
}
|
|
@@ -2046,11 +2171,11 @@ function ft(t) {
|
|
|
2046
2171
|
const e = t.codePointAt(0);
|
|
2047
2172
|
return e === void 0 ? !1 : e >= 127462 && e <= 127487;
|
|
2048
2173
|
}
|
|
2049
|
-
let
|
|
2050
|
-
function
|
|
2051
|
-
return t ? (
|
|
2174
|
+
let Ne;
|
|
2175
|
+
function xn(t) {
|
|
2176
|
+
return t ? (Ne || (Ne = Dn()), Ne(t)) : !1;
|
|
2052
2177
|
}
|
|
2053
|
-
function
|
|
2178
|
+
function Dn() {
|
|
2054
2179
|
try {
|
|
2055
2180
|
const t = new RegExp("\\p{Mark}", "u");
|
|
2056
2181
|
return (e) => t.test(e);
|
|
@@ -2061,19 +2186,19 @@ function Ln() {
|
|
|
2061
2186
|
};
|
|
2062
2187
|
}
|
|
2063
2188
|
}
|
|
2064
|
-
let
|
|
2189
|
+
let _e;
|
|
2065
2190
|
function St(t) {
|
|
2066
|
-
return t ? (
|
|
2191
|
+
return t ? (_e || (_e = Fn()), _e(t)) : !1;
|
|
2067
2192
|
}
|
|
2068
|
-
function
|
|
2193
|
+
function Fn() {
|
|
2069
2194
|
try {
|
|
2070
2195
|
const t = new RegExp("\\p{Extended_Pictographic}", "u");
|
|
2071
2196
|
return (e) => t.test(e);
|
|
2072
2197
|
} catch {
|
|
2073
|
-
return
|
|
2198
|
+
return Bn;
|
|
2074
2199
|
}
|
|
2075
2200
|
}
|
|
2076
|
-
function
|
|
2201
|
+
function Bn(t) {
|
|
2077
2202
|
if (!t)
|
|
2078
2203
|
return !1;
|
|
2079
2204
|
for (const e of Array.from(t)) {
|
|
@@ -2083,7 +2208,7 @@ function Dn(t) {
|
|
|
2083
2208
|
}
|
|
2084
2209
|
return !1;
|
|
2085
2210
|
}
|
|
2086
|
-
function
|
|
2211
|
+
function $n(t) {
|
|
2087
2212
|
const e = [];
|
|
2088
2213
|
let r = "", n = 0;
|
|
2089
2214
|
for (let o = 0; o < t.length; o++) {
|
|
@@ -2097,7 +2222,7 @@ function Fn(t) {
|
|
|
2097
2222
|
}
|
|
2098
2223
|
return (n > 0 || r.length > 0) && e.push({ text: r, breaks: n }), e;
|
|
2099
2224
|
}
|
|
2100
|
-
function
|
|
2225
|
+
function Vn(t) {
|
|
2101
2226
|
if (t.length === 0)
|
|
2102
2227
|
return [];
|
|
2103
2228
|
const e = [];
|
|
@@ -2109,7 +2234,7 @@ function Bn(t) {
|
|
|
2109
2234
|
function oe(t, e) {
|
|
2110
2235
|
return (t & e) === e;
|
|
2111
2236
|
}
|
|
2112
|
-
function
|
|
2237
|
+
function ke(t) {
|
|
2113
2238
|
return {
|
|
2114
2239
|
"--tw-motion-seq-index": t.toString(),
|
|
2115
2240
|
backgroundColor: "inherit",
|
|
@@ -2144,9 +2269,9 @@ function wt(t, e) {
|
|
|
2144
2269
|
for (const a of t) {
|
|
2145
2270
|
if (St(a)) {
|
|
2146
2271
|
o = !0, i();
|
|
2147
|
-
const
|
|
2272
|
+
const h = `motion-emoji-${e ? e.emoji++ : s++}`;
|
|
2148
2273
|
r.push(
|
|
2149
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ R.jsx("span", { "data-motion-emoji": !0, children: a }, h)
|
|
2150
2275
|
);
|
|
2151
2276
|
continue;
|
|
2152
2277
|
}
|
|
@@ -2154,51 +2279,51 @@ function wt(t, e) {
|
|
|
2154
2279
|
}
|
|
2155
2280
|
return i(), o ? { nodes: r, sawEmoji: !0 } : { nodes: [t.join("")], sawEmoji: !1 };
|
|
2156
2281
|
}
|
|
2157
|
-
function
|
|
2282
|
+
function Kn(t) {
|
|
2158
2283
|
if (!t)
|
|
2159
|
-
return
|
|
2284
|
+
return k.None;
|
|
2160
2285
|
const e = t.trim();
|
|
2161
2286
|
if (!e)
|
|
2162
|
-
return
|
|
2287
|
+
return k.None;
|
|
2163
2288
|
const r = ut.get(e);
|
|
2164
2289
|
if (typeof r == "number")
|
|
2165
2290
|
return r;
|
|
2166
2291
|
if (typeof document > "u")
|
|
2167
|
-
return
|
|
2292
|
+
return k.None;
|
|
2168
2293
|
const n = e.split(/\s+/).filter(Boolean);
|
|
2169
2294
|
if (n.length === 0)
|
|
2170
|
-
return
|
|
2171
|
-
const s = n.map((c) => `.${
|
|
2172
|
-
(c) => new RegExp(`(^|[^a-zA-Z0-9_-])${
|
|
2295
|
+
return k.None;
|
|
2296
|
+
const s = n.map((c) => `.${Yn(c)}`).map(
|
|
2297
|
+
(c) => new RegExp(`(^|[^a-zA-Z0-9_-])${zn(c)}(?![a-zA-Z0-9_-])`)
|
|
2173
2298
|
);
|
|
2174
|
-
let i =
|
|
2299
|
+
let i = k.None, a = !1;
|
|
2175
2300
|
for (const c of Array.from(document.styleSheets)) {
|
|
2176
|
-
let
|
|
2301
|
+
let h;
|
|
2177
2302
|
try {
|
|
2178
|
-
|
|
2303
|
+
h = c.cssRules;
|
|
2179
2304
|
} catch {
|
|
2180
2305
|
continue;
|
|
2181
2306
|
}
|
|
2182
|
-
const
|
|
2183
|
-
if (
|
|
2307
|
+
const d = vt(h, s);
|
|
2308
|
+
if (d.mask && (i |= d.mask, i === Fe))
|
|
2184
2309
|
break;
|
|
2185
|
-
a ||=
|
|
2310
|
+
a ||= d.sawStyleRule;
|
|
2186
2311
|
}
|
|
2187
|
-
return (i !==
|
|
2312
|
+
return (i !== k.None || a) && ut.set(e, i), i;
|
|
2188
2313
|
}
|
|
2189
2314
|
function vt(t, e) {
|
|
2190
2315
|
if (!t)
|
|
2191
|
-
return { mask:
|
|
2192
|
-
let r =
|
|
2316
|
+
return { mask: k.None, sawStyleRule: !1 };
|
|
2317
|
+
let r = k.None, n = !1;
|
|
2193
2318
|
for (let o = 0; o < t.length; o++) {
|
|
2194
2319
|
const s = t[o];
|
|
2195
2320
|
if (s) {
|
|
2196
2321
|
if (s.type === CSSRule.STYLE_RULE) {
|
|
2197
2322
|
const a = s.selectorText ?? "";
|
|
2198
|
-
if (!a || !e.some((
|
|
2323
|
+
if (!a || !e.some((h) => h.test(a))) continue;
|
|
2199
2324
|
n = !0;
|
|
2200
|
-
for (const
|
|
2201
|
-
|
|
2325
|
+
for (const h of kn)
|
|
2326
|
+
h.hints.some((d) => a.includes(d)) && (r |= h.flag);
|
|
2202
2327
|
if (r === Fe)
|
|
2203
2328
|
return { mask: r, sawStyleRule: !0 };
|
|
2204
2329
|
} else if ("cssRules" in s) {
|
|
@@ -2211,36 +2336,36 @@ function vt(t, e) {
|
|
|
2211
2336
|
}
|
|
2212
2337
|
return { mask: r, sawStyleRule: n };
|
|
2213
2338
|
}
|
|
2214
|
-
function
|
|
2339
|
+
function Yn(t) {
|
|
2215
2340
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(t) : t.replace(/[^a-zA-Z0-9_-]/g, (e) => `\\${e}`);
|
|
2216
2341
|
}
|
|
2217
|
-
function
|
|
2342
|
+
function zn(t) {
|
|
2218
2343
|
return t.replace(/[.*+?^${}()|[\]\\]/g, (e) => `\\${e}`);
|
|
2219
2344
|
}
|
|
2220
|
-
const ze = "ikon_auth_session",
|
|
2221
|
-
function
|
|
2345
|
+
const ze = "ikon_auth_session", Wn = 7 * 24 * 60 * 60 * 1e3, qn = 60 * 1e3;
|
|
2346
|
+
function Gn(t) {
|
|
2222
2347
|
try {
|
|
2223
2348
|
const e = t.split(".");
|
|
2224
2349
|
if (e.length !== 3) return !0;
|
|
2225
2350
|
const r = JSON.parse(atob(e[1]));
|
|
2226
|
-
return typeof r.exp != "number" ? !1 : Date.now() >= r.exp * 1e3 -
|
|
2351
|
+
return typeof r.exp != "number" ? !1 : Date.now() >= r.exp * 1e3 - qn;
|
|
2227
2352
|
} catch {
|
|
2228
2353
|
return !0;
|
|
2229
2354
|
}
|
|
2230
2355
|
}
|
|
2231
|
-
function
|
|
2356
|
+
function Ae(t) {
|
|
2232
2357
|
try {
|
|
2233
2358
|
localStorage.setItem(ze, JSON.stringify(t));
|
|
2234
2359
|
} catch {
|
|
2235
2360
|
console.warn("Failed to save auth session to localStorage");
|
|
2236
2361
|
}
|
|
2237
2362
|
}
|
|
2238
|
-
function
|
|
2363
|
+
function Et() {
|
|
2239
2364
|
try {
|
|
2240
2365
|
const t = localStorage.getItem(ze);
|
|
2241
2366
|
if (!t) return null;
|
|
2242
2367
|
const e = JSON.parse(t);
|
|
2243
|
-
return Date.now() - e.authenticatedAt >
|
|
2368
|
+
return Date.now() - e.authenticatedAt > Wn || Gn(e.token) ? (ve(), null) : e;
|
|
2244
2369
|
} catch {
|
|
2245
2370
|
return console.warn("Failed to load auth session from localStorage"), null;
|
|
2246
2371
|
}
|
|
@@ -2260,8 +2385,8 @@ function de(t) {
|
|
|
2260
2385
|
authenticatedAt: t.authenticatedAt
|
|
2261
2386
|
};
|
|
2262
2387
|
}
|
|
2263
|
-
async function
|
|
2264
|
-
const r =
|
|
2388
|
+
async function Rt(t, e) {
|
|
2389
|
+
const r = xt(), n = await fetch(`${e}/anonymous`, {
|
|
2265
2390
|
method: "POST",
|
|
2266
2391
|
headers: { "Content-Type": "application/json" },
|
|
2267
2392
|
body: JSON.stringify({ deviceId: r, space: t })
|
|
@@ -2275,9 +2400,9 @@ async function Et(t, e) {
|
|
|
2275
2400
|
provider: "anonymous",
|
|
2276
2401
|
authenticatedAt: Date.now()
|
|
2277
2402
|
};
|
|
2278
|
-
return
|
|
2403
|
+
return Ae(s), s;
|
|
2279
2404
|
}
|
|
2280
|
-
async function
|
|
2405
|
+
async function Oo(t) {
|
|
2281
2406
|
const { email: e, spaceId: r, authUrl: n, returnUrl: o = window.location.origin + window.location.pathname } = t, s = await fetch(`${n}/email/send`, {
|
|
2282
2407
|
method: "POST",
|
|
2283
2408
|
headers: { "Content-Type": "application/json" },
|
|
@@ -2292,22 +2417,22 @@ async function Co(t) {
|
|
|
2292
2417
|
throw new Error(i);
|
|
2293
2418
|
}
|
|
2294
2419
|
}
|
|
2295
|
-
function
|
|
2420
|
+
function Hn() {
|
|
2296
2421
|
const t = new URLSearchParams(window.location.search), e = t.get("ikon_token"), r = t.get("ikon_provider");
|
|
2297
2422
|
return e && r ? { token: e, provider: r } : null;
|
|
2298
2423
|
}
|
|
2299
|
-
function
|
|
2424
|
+
function Jn() {
|
|
2300
2425
|
const e = new URLSearchParams(window.location.search).get("error");
|
|
2301
2426
|
return e ? decodeURIComponent(e) : null;
|
|
2302
2427
|
}
|
|
2303
|
-
function
|
|
2428
|
+
function pt() {
|
|
2304
2429
|
window.history.replaceState({}, "", window.location.pathname);
|
|
2305
2430
|
}
|
|
2306
|
-
function
|
|
2431
|
+
function Xn(t, e, r, n) {
|
|
2307
2432
|
const o = n ?? window.location.origin + window.location.pathname + window.location.search;
|
|
2308
2433
|
return `${r}/oauth/${t}?space=${encodeURIComponent(e)}&return=${encodeURIComponent(o)}`;
|
|
2309
2434
|
}
|
|
2310
|
-
async function
|
|
2435
|
+
async function Zn(t) {
|
|
2311
2436
|
const e = await fetch(`${t}/passkey/registration/options`, {
|
|
2312
2437
|
method: "POST",
|
|
2313
2438
|
headers: { "Content-Type": "application/json" }
|
|
@@ -2318,7 +2443,7 @@ async function Jn(t) {
|
|
|
2318
2443
|
}
|
|
2319
2444
|
return e.json();
|
|
2320
2445
|
}
|
|
2321
|
-
async function
|
|
2446
|
+
async function Qn(t, e, r) {
|
|
2322
2447
|
const n = await fetch(`${t}/passkey/registration/verify`, {
|
|
2323
2448
|
method: "POST",
|
|
2324
2449
|
headers: { "Content-Type": "application/json" },
|
|
@@ -2333,9 +2458,9 @@ async function Xn(t, e, r) {
|
|
|
2333
2458
|
provider: "passkey",
|
|
2334
2459
|
authenticatedAt: Date.now()
|
|
2335
2460
|
};
|
|
2336
|
-
return
|
|
2461
|
+
return Ae(s), s;
|
|
2337
2462
|
}
|
|
2338
|
-
async function
|
|
2463
|
+
async function eo(t, e) {
|
|
2339
2464
|
const r = await fetch(`${t}/passkey/authentication/options`, {
|
|
2340
2465
|
method: "POST",
|
|
2341
2466
|
headers: { "Content-Type": "application/json" },
|
|
@@ -2347,7 +2472,7 @@ async function Zn(t, e) {
|
|
|
2347
2472
|
}
|
|
2348
2473
|
return r.json();
|
|
2349
2474
|
}
|
|
2350
|
-
async function
|
|
2475
|
+
async function to(t, e) {
|
|
2351
2476
|
const r = await fetch(`${t}/passkey/authentication/verify`, {
|
|
2352
2477
|
method: "POST",
|
|
2353
2478
|
headers: { "Content-Type": "application/json" },
|
|
@@ -2362,7 +2487,7 @@ async function Qn(t, e) {
|
|
|
2362
2487
|
provider: "passkey",
|
|
2363
2488
|
authenticatedAt: Date.now()
|
|
2364
2489
|
};
|
|
2365
|
-
return
|
|
2490
|
+
return Ae(o), o;
|
|
2366
2491
|
}
|
|
2367
2492
|
function X(t) {
|
|
2368
2493
|
const e = new Uint8Array(t);
|
|
@@ -2371,23 +2496,23 @@ function X(t) {
|
|
|
2371
2496
|
r += String.fromCharCode(o);
|
|
2372
2497
|
return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
2373
2498
|
}
|
|
2374
|
-
function
|
|
2499
|
+
function Ee(t) {
|
|
2375
2500
|
const e = t.replace(/-/g, "+").replace(/_/g, "/"), r = (4 - e.length % 4) % 4, n = e.padEnd(e.length + r, "="), o = atob(n), s = new ArrayBuffer(o.length), i = new Uint8Array(s);
|
|
2376
2501
|
for (let a = 0; a < o.length; a++)
|
|
2377
2502
|
i[a] = o.charCodeAt(a);
|
|
2378
2503
|
return s;
|
|
2379
2504
|
}
|
|
2380
2505
|
function We() {
|
|
2381
|
-
return
|
|
2506
|
+
return ro.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
|
2382
2507
|
}
|
|
2383
|
-
const
|
|
2508
|
+
const ro = {
|
|
2384
2509
|
stubThis: (t) => t
|
|
2385
2510
|
};
|
|
2386
|
-
function
|
|
2511
|
+
function kt(t) {
|
|
2387
2512
|
const { id: e } = t;
|
|
2388
2513
|
return {
|
|
2389
2514
|
...t,
|
|
2390
|
-
id:
|
|
2515
|
+
id: Ee(e),
|
|
2391
2516
|
/**
|
|
2392
2517
|
* `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer
|
|
2393
2518
|
* transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports
|
|
@@ -2396,7 +2521,7 @@ function At(t) {
|
|
|
2396
2521
|
transports: t.transports
|
|
2397
2522
|
};
|
|
2398
2523
|
}
|
|
2399
|
-
function
|
|
2524
|
+
function At(t) {
|
|
2400
2525
|
return (
|
|
2401
2526
|
// Consider localhost valid as well since it's okay wrt Secure Contexts
|
|
2402
2527
|
t === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)
|
|
@@ -2412,7 +2537,7 @@ class j extends Error {
|
|
|
2412
2537
|
}), this.name = o ?? n.name, this.code = r;
|
|
2413
2538
|
}
|
|
2414
2539
|
}
|
|
2415
|
-
function
|
|
2540
|
+
function no({ error: t, options: e }) {
|
|
2416
2541
|
const { publicKey: r } = e;
|
|
2417
2542
|
if (!r)
|
|
2418
2543
|
throw Error("options was missing required publicKey property");
|
|
@@ -2470,7 +2595,7 @@ function to({ error: t, options: e }) {
|
|
|
2470
2595
|
});
|
|
2471
2596
|
if (t.name === "SecurityError") {
|
|
2472
2597
|
const n = globalThis.location.hostname;
|
|
2473
|
-
if (
|
|
2598
|
+
if (At(n)) {
|
|
2474
2599
|
if (r.rp.id !== n)
|
|
2475
2600
|
return new j({
|
|
2476
2601
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
|
@@ -2498,7 +2623,7 @@ function to({ error: t, options: e }) {
|
|
|
2498
2623
|
}
|
|
2499
2624
|
return t;
|
|
2500
2625
|
}
|
|
2501
|
-
class
|
|
2626
|
+
class oo {
|
|
2502
2627
|
constructor() {
|
|
2503
2628
|
Object.defineProperty(this, "controller", {
|
|
2504
2629
|
enumerable: !0,
|
|
@@ -2522,58 +2647,58 @@ class ro {
|
|
|
2522
2647
|
}
|
|
2523
2648
|
}
|
|
2524
2649
|
}
|
|
2525
|
-
const Tt = new
|
|
2650
|
+
const Tt = new oo(), so = ["cross-platform", "platform"];
|
|
2526
2651
|
function Ct(t) {
|
|
2527
|
-
if (t && !(
|
|
2652
|
+
if (t && !(so.indexOf(t) < 0))
|
|
2528
2653
|
return t;
|
|
2529
2654
|
}
|
|
2530
|
-
async function
|
|
2655
|
+
async function io(t) {
|
|
2531
2656
|
!t.optionsJSON && t.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), t = { optionsJSON: t });
|
|
2532
2657
|
const { optionsJSON: e, useAutoRegister: r = !1 } = t;
|
|
2533
2658
|
if (!We())
|
|
2534
2659
|
throw new Error("WebAuthn is not supported in this browser");
|
|
2535
2660
|
const n = {
|
|
2536
2661
|
...e,
|
|
2537
|
-
challenge:
|
|
2662
|
+
challenge: Ee(e.challenge),
|
|
2538
2663
|
user: {
|
|
2539
2664
|
...e.user,
|
|
2540
|
-
id:
|
|
2665
|
+
id: Ee(e.user.id)
|
|
2541
2666
|
},
|
|
2542
|
-
excludeCredentials: e.excludeCredentials?.map(
|
|
2667
|
+
excludeCredentials: e.excludeCredentials?.map(kt)
|
|
2543
2668
|
}, o = {};
|
|
2544
2669
|
r && (o.mediation = "conditional"), o.publicKey = n, o.signal = Tt.createNewAbortSignal();
|
|
2545
2670
|
let s;
|
|
2546
2671
|
try {
|
|
2547
2672
|
s = await navigator.credentials.create(o);
|
|
2548
|
-
} catch (
|
|
2549
|
-
throw
|
|
2673
|
+
} catch (m) {
|
|
2674
|
+
throw no({ error: m, options: o });
|
|
2550
2675
|
}
|
|
2551
2676
|
if (!s)
|
|
2552
2677
|
throw new Error("Registration was not completed");
|
|
2553
|
-
const { id: i, rawId: a, response: c, type:
|
|
2678
|
+
const { id: i, rawId: a, response: c, type: h } = s;
|
|
2679
|
+
let d;
|
|
2680
|
+
typeof c.getTransports == "function" && (d = c.getTransports());
|
|
2554
2681
|
let l;
|
|
2555
|
-
typeof c.getTransports == "function" && (l = c.getTransports());
|
|
2556
|
-
let u;
|
|
2557
2682
|
if (typeof c.getPublicKeyAlgorithm == "function")
|
|
2558
2683
|
try {
|
|
2559
|
-
|
|
2560
|
-
} catch (
|
|
2561
|
-
Pe("getPublicKeyAlgorithm()",
|
|
2684
|
+
l = c.getPublicKeyAlgorithm();
|
|
2685
|
+
} catch (m) {
|
|
2686
|
+
Pe("getPublicKeyAlgorithm()", m);
|
|
2562
2687
|
}
|
|
2563
|
-
let
|
|
2688
|
+
let u;
|
|
2564
2689
|
if (typeof c.getPublicKey == "function")
|
|
2565
2690
|
try {
|
|
2566
|
-
const
|
|
2567
|
-
|
|
2568
|
-
} catch (
|
|
2569
|
-
Pe("getPublicKey()",
|
|
2691
|
+
const m = c.getPublicKey();
|
|
2692
|
+
m !== null && (u = X(m));
|
|
2693
|
+
} catch (m) {
|
|
2694
|
+
Pe("getPublicKey()", m);
|
|
2570
2695
|
}
|
|
2571
|
-
let
|
|
2696
|
+
let p;
|
|
2572
2697
|
if (typeof c.getAuthenticatorData == "function")
|
|
2573
2698
|
try {
|
|
2574
|
-
|
|
2575
|
-
} catch (
|
|
2576
|
-
Pe("getAuthenticatorData()",
|
|
2699
|
+
p = X(c.getAuthenticatorData());
|
|
2700
|
+
} catch (m) {
|
|
2701
|
+
Pe("getAuthenticatorData()", m);
|
|
2577
2702
|
}
|
|
2578
2703
|
return {
|
|
2579
2704
|
id: i,
|
|
@@ -2581,12 +2706,12 @@ async function oo(t) {
|
|
|
2581
2706
|
response: {
|
|
2582
2707
|
attestationObject: X(c.attestationObject),
|
|
2583
2708
|
clientDataJSON: X(c.clientDataJSON),
|
|
2584
|
-
transports:
|
|
2585
|
-
publicKeyAlgorithm:
|
|
2586
|
-
publicKey:
|
|
2587
|
-
authenticatorData:
|
|
2709
|
+
transports: d,
|
|
2710
|
+
publicKeyAlgorithm: l,
|
|
2711
|
+
publicKey: u,
|
|
2712
|
+
authenticatorData: p
|
|
2588
2713
|
},
|
|
2589
|
-
type:
|
|
2714
|
+
type: h,
|
|
2590
2715
|
clientExtensionResults: s.getClientExtensionResults(),
|
|
2591
2716
|
authenticatorAttachment: Ct(s.authenticatorAttachment)
|
|
2592
2717
|
};
|
|
@@ -2595,7 +2720,7 @@ function Pe(t, e) {
|
|
|
2595
2720
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${t}. You should report this error to them.
|
|
2596
2721
|
`, e);
|
|
2597
2722
|
}
|
|
2598
|
-
function
|
|
2723
|
+
function ao() {
|
|
2599
2724
|
if (!We())
|
|
2600
2725
|
return Me.stubThis(new Promise((e) => e(!1)));
|
|
2601
2726
|
const t = globalThis.PublicKeyCredential;
|
|
@@ -2604,7 +2729,7 @@ function so() {
|
|
|
2604
2729
|
const Me = {
|
|
2605
2730
|
stubThis: (t) => t
|
|
2606
2731
|
};
|
|
2607
|
-
function
|
|
2732
|
+
function co({ error: t, options: e }) {
|
|
2608
2733
|
const { publicKey: r } = e;
|
|
2609
2734
|
if (!r)
|
|
2610
2735
|
throw Error("options was missing required publicKey property");
|
|
@@ -2624,7 +2749,7 @@ function io({ error: t, options: e }) {
|
|
|
2624
2749
|
});
|
|
2625
2750
|
if (t.name === "SecurityError") {
|
|
2626
2751
|
const n = globalThis.location.hostname;
|
|
2627
|
-
if (
|
|
2752
|
+
if (At(n)) {
|
|
2628
2753
|
if (r.rpId !== n)
|
|
2629
2754
|
return new j({
|
|
2630
2755
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
|
@@ -2645,20 +2770,20 @@ function io({ error: t, options: e }) {
|
|
|
2645
2770
|
}
|
|
2646
2771
|
return t;
|
|
2647
2772
|
}
|
|
2648
|
-
async function
|
|
2773
|
+
async function uo(t) {
|
|
2649
2774
|
!t.optionsJSON && t.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), t = { optionsJSON: t });
|
|
2650
2775
|
const { optionsJSON: e, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: n = !0 } = t;
|
|
2651
2776
|
if (!We())
|
|
2652
2777
|
throw new Error("WebAuthn is not supported in this browser");
|
|
2653
2778
|
let o;
|
|
2654
|
-
e.allowCredentials?.length !== 0 && (o = e.allowCredentials?.map(
|
|
2779
|
+
e.allowCredentials?.length !== 0 && (o = e.allowCredentials?.map(kt));
|
|
2655
2780
|
const s = {
|
|
2656
2781
|
...e,
|
|
2657
|
-
challenge:
|
|
2782
|
+
challenge: Ee(e.challenge),
|
|
2658
2783
|
allowCredentials: o
|
|
2659
2784
|
}, i = {};
|
|
2660
2785
|
if (r) {
|
|
2661
|
-
if (!await
|
|
2786
|
+
if (!await ao())
|
|
2662
2787
|
throw Error("Browser does not support WebAuthn autofill");
|
|
2663
2788
|
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && n)
|
|
2664
2789
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
@@ -2668,29 +2793,29 @@ async function ao(t) {
|
|
|
2668
2793
|
let a;
|
|
2669
2794
|
try {
|
|
2670
2795
|
a = await navigator.credentials.get(i);
|
|
2671
|
-
} catch (
|
|
2672
|
-
throw
|
|
2796
|
+
} catch (p) {
|
|
2797
|
+
throw co({ error: p, options: i });
|
|
2673
2798
|
}
|
|
2674
2799
|
if (!a)
|
|
2675
2800
|
throw new Error("Authentication was not completed");
|
|
2676
|
-
const { id: c, rawId:
|
|
2677
|
-
let
|
|
2678
|
-
return
|
|
2801
|
+
const { id: c, rawId: h, response: d, type: l } = a;
|
|
2802
|
+
let u;
|
|
2803
|
+
return d.userHandle && (u = X(d.userHandle)), {
|
|
2679
2804
|
id: c,
|
|
2680
|
-
rawId: X(
|
|
2805
|
+
rawId: X(h),
|
|
2681
2806
|
response: {
|
|
2682
|
-
authenticatorData: X(
|
|
2683
|
-
clientDataJSON: X(
|
|
2684
|
-
signature: X(
|
|
2685
|
-
userHandle:
|
|
2807
|
+
authenticatorData: X(d.authenticatorData),
|
|
2808
|
+
clientDataJSON: X(d.clientDataJSON),
|
|
2809
|
+
signature: X(d.signature),
|
|
2810
|
+
userHandle: u
|
|
2686
2811
|
},
|
|
2687
|
-
type:
|
|
2812
|
+
type: l,
|
|
2688
2813
|
clientExtensionResults: a.getClientExtensionResults(),
|
|
2689
2814
|
authenticatorAttachment: Ct(a.authenticatorAttachment)
|
|
2690
2815
|
};
|
|
2691
2816
|
}
|
|
2692
|
-
const qe =
|
|
2693
|
-
function
|
|
2817
|
+
const qe = mt(null);
|
|
2818
|
+
function No({ children: t, config: e }) {
|
|
2694
2819
|
const [r, n] = J({
|
|
2695
2820
|
isAuthenticated: !1,
|
|
2696
2821
|
isLoading: !0,
|
|
@@ -2699,37 +2824,37 @@ function Io({ children: t, config: e }) {
|
|
|
2699
2824
|
});
|
|
2700
2825
|
U(() => {
|
|
2701
2826
|
(() => {
|
|
2702
|
-
const
|
|
2703
|
-
if (
|
|
2704
|
-
|
|
2827
|
+
const d = Jn();
|
|
2828
|
+
if (d) {
|
|
2829
|
+
pt(), n({
|
|
2705
2830
|
isAuthenticated: !1,
|
|
2706
2831
|
isLoading: !1,
|
|
2707
2832
|
user: null,
|
|
2708
|
-
error:
|
|
2833
|
+
error: d
|
|
2709
2834
|
});
|
|
2710
2835
|
return;
|
|
2711
2836
|
}
|
|
2712
|
-
const
|
|
2713
|
-
if (
|
|
2714
|
-
const
|
|
2715
|
-
token:
|
|
2716
|
-
provider:
|
|
2837
|
+
const l = Hn();
|
|
2838
|
+
if (l) {
|
|
2839
|
+
const p = {
|
|
2840
|
+
token: l.token,
|
|
2841
|
+
provider: l.provider,
|
|
2717
2842
|
authenticatedAt: Date.now()
|
|
2718
2843
|
};
|
|
2719
|
-
|
|
2844
|
+
Ae(p), pt(), n({
|
|
2720
2845
|
isAuthenticated: !0,
|
|
2721
2846
|
isLoading: !1,
|
|
2722
|
-
user: de(
|
|
2847
|
+
user: de(p),
|
|
2723
2848
|
error: null
|
|
2724
2849
|
});
|
|
2725
2850
|
return;
|
|
2726
2851
|
}
|
|
2727
|
-
const
|
|
2728
|
-
if (
|
|
2852
|
+
const u = Et();
|
|
2853
|
+
if (u) {
|
|
2729
2854
|
n({
|
|
2730
2855
|
isAuthenticated: !0,
|
|
2731
2856
|
isLoading: !1,
|
|
2732
|
-
user: de(
|
|
2857
|
+
user: de(u),
|
|
2733
2858
|
error: null
|
|
2734
2859
|
});
|
|
2735
2860
|
return;
|
|
@@ -2743,54 +2868,54 @@ function Io({ children: t, config: e }) {
|
|
|
2743
2868
|
})();
|
|
2744
2869
|
}, []);
|
|
2745
2870
|
const o = D(
|
|
2746
|
-
async (
|
|
2871
|
+
async (h) => {
|
|
2747
2872
|
if (!e.spaceId) {
|
|
2748
|
-
n((
|
|
2749
|
-
...
|
|
2873
|
+
n((l) => ({
|
|
2874
|
+
...l,
|
|
2750
2875
|
error: "Space ID is not configured"
|
|
2751
2876
|
}));
|
|
2752
2877
|
return;
|
|
2753
2878
|
}
|
|
2754
|
-
const
|
|
2755
|
-
if (
|
|
2756
|
-
n((
|
|
2879
|
+
const d = Le(e.authUrl);
|
|
2880
|
+
if (h === "guest") {
|
|
2881
|
+
n((l) => ({ ...l, isLoading: !0 }));
|
|
2757
2882
|
try {
|
|
2758
|
-
const
|
|
2883
|
+
const l = await Rt(e.spaceId, d);
|
|
2759
2884
|
n({
|
|
2760
2885
|
isAuthenticated: !0,
|
|
2761
2886
|
isLoading: !1,
|
|
2762
|
-
user: de(
|
|
2887
|
+
user: de(l),
|
|
2763
2888
|
error: null
|
|
2764
2889
|
});
|
|
2765
|
-
} catch (
|
|
2766
|
-
n((
|
|
2767
|
-
...
|
|
2890
|
+
} catch (l) {
|
|
2891
|
+
n((u) => ({
|
|
2892
|
+
...u,
|
|
2768
2893
|
isLoading: !1,
|
|
2769
|
-
error:
|
|
2894
|
+
error: l instanceof Error ? l.message : "Guest login failed"
|
|
2770
2895
|
}));
|
|
2771
2896
|
}
|
|
2772
2897
|
return;
|
|
2773
2898
|
}
|
|
2774
|
-
if (
|
|
2775
|
-
n((
|
|
2899
|
+
if (h === "passkey") {
|
|
2900
|
+
n((l) => ({ ...l, isLoading: !0, error: null }));
|
|
2776
2901
|
try {
|
|
2777
|
-
const
|
|
2902
|
+
const l = await eo(d), u = await uo({ optionsJSON: l }), p = await to(d, u);
|
|
2778
2903
|
n({
|
|
2779
2904
|
isAuthenticated: !0,
|
|
2780
2905
|
isLoading: !1,
|
|
2781
|
-
user: de(
|
|
2906
|
+
user: de(p),
|
|
2782
2907
|
error: null
|
|
2783
2908
|
});
|
|
2784
|
-
} catch (
|
|
2785
|
-
n((
|
|
2786
|
-
...
|
|
2909
|
+
} catch (l) {
|
|
2910
|
+
n((u) => ({
|
|
2911
|
+
...u,
|
|
2787
2912
|
isLoading: !1,
|
|
2788
|
-
error:
|
|
2913
|
+
error: l instanceof Error ? l.message : "Passkey login failed"
|
|
2789
2914
|
}));
|
|
2790
2915
|
}
|
|
2791
2916
|
return;
|
|
2792
2917
|
}
|
|
2793
|
-
window.location.href =
|
|
2918
|
+
window.location.href = Xn(h, e.spaceId, d);
|
|
2794
2919
|
},
|
|
2795
2920
|
[e.authUrl, e.spaceId]
|
|
2796
2921
|
), s = D(() => {
|
|
@@ -2801,22 +2926,22 @@ function Io({ children: t, config: e }) {
|
|
|
2801
2926
|
error: null
|
|
2802
2927
|
});
|
|
2803
2928
|
}, []), i = D(
|
|
2804
|
-
async (
|
|
2805
|
-
const
|
|
2806
|
-
n((
|
|
2929
|
+
async (h) => {
|
|
2930
|
+
const d = Le(e.authUrl);
|
|
2931
|
+
n((l) => ({ ...l, isLoading: !0, error: null }));
|
|
2807
2932
|
try {
|
|
2808
|
-
const
|
|
2933
|
+
const l = await Zn(d), u = await io({ optionsJSON: l }), p = await Qn(d, u, h);
|
|
2809
2934
|
n({
|
|
2810
2935
|
isAuthenticated: !0,
|
|
2811
2936
|
isLoading: !1,
|
|
2812
|
-
user: de(
|
|
2937
|
+
user: de(p),
|
|
2813
2938
|
error: null
|
|
2814
2939
|
});
|
|
2815
|
-
} catch (
|
|
2816
|
-
n((
|
|
2817
|
-
...
|
|
2940
|
+
} catch (l) {
|
|
2941
|
+
n((u) => ({
|
|
2942
|
+
...u,
|
|
2818
2943
|
isLoading: !1,
|
|
2819
|
-
error:
|
|
2944
|
+
error: l instanceof Error ? l.message : "Passkey registration failed"
|
|
2820
2945
|
}));
|
|
2821
2946
|
}
|
|
2822
2947
|
},
|
|
@@ -2831,27 +2956,27 @@ function Io({ children: t, config: e }) {
|
|
|
2831
2956
|
}),
|
|
2832
2957
|
[r, o, s, a, i]
|
|
2833
2958
|
);
|
|
2834
|
-
return /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ R.jsx(qe, { value: c, children: t });
|
|
2835
2960
|
}
|
|
2836
|
-
function
|
|
2961
|
+
function lo() {
|
|
2837
2962
|
const t = Ve(qe);
|
|
2838
2963
|
if (!t)
|
|
2839
2964
|
throw new Error("useAuth must be used within an AuthProvider");
|
|
2840
2965
|
return t;
|
|
2841
2966
|
}
|
|
2842
|
-
function
|
|
2967
|
+
function fo() {
|
|
2843
2968
|
return Ve(qe);
|
|
2844
2969
|
}
|
|
2845
|
-
function
|
|
2846
|
-
const { config: e, guestUrlParam: r } = t, { state: n, login: o } =
|
|
2970
|
+
function _o(t) {
|
|
2971
|
+
const { config: e, guestUrlParam: r } = t, { state: n, login: o } = lo(), s = w(!1);
|
|
2847
2972
|
return U(() => {
|
|
2848
2973
|
if (!r || n.isAuthenticated || n.isLoading || s.current || !e.methods.includes("guest"))
|
|
2849
2974
|
return;
|
|
2850
2975
|
const i = new URLSearchParams(window.location.search), a = i.get(r);
|
|
2851
2976
|
if (a === "true" || a === "1" || a === "") {
|
|
2852
2977
|
i.delete(r);
|
|
2853
|
-
const c = i.toString(),
|
|
2854
|
-
window.history.replaceState({}, "",
|
|
2978
|
+
const c = i.toString(), h = window.location.pathname + (c ? `?${c}` : "");
|
|
2979
|
+
window.history.replaceState({}, "", h), s.current = !0, o("guest");
|
|
2855
2980
|
}
|
|
2856
2981
|
}, [r, n.isAuthenticated, n.isLoading, e.methods, o]), {
|
|
2857
2982
|
shouldRenderChildren: n.isAuthenticated,
|
|
@@ -2860,7 +2985,7 @@ function Oo(t) {
|
|
|
2860
2985
|
error: n.error
|
|
2861
2986
|
};
|
|
2862
2987
|
}
|
|
2863
|
-
function
|
|
2988
|
+
function Po({
|
|
2864
2989
|
connectionState: t,
|
|
2865
2990
|
error: e,
|
|
2866
2991
|
isReady: r,
|
|
@@ -2870,138 +2995,138 @@ function _o({
|
|
|
2870
2995
|
onAction: i,
|
|
2871
2996
|
renderIdle: a,
|
|
2872
2997
|
renderConnecting: c,
|
|
2873
|
-
renderConnectingSlow:
|
|
2874
|
-
renderConnected:
|
|
2875
|
-
renderOffline:
|
|
2876
|
-
renderError:
|
|
2998
|
+
renderConnectingSlow: h,
|
|
2999
|
+
renderConnected: d,
|
|
3000
|
+
renderOffline: l,
|
|
3001
|
+
renderError: u
|
|
2877
3002
|
}) {
|
|
2878
|
-
const
|
|
3003
|
+
const p = w(!1);
|
|
2879
3004
|
switch (t) {
|
|
2880
3005
|
case "idle":
|
|
2881
3006
|
return a();
|
|
2882
3007
|
case "connecting":
|
|
2883
3008
|
return c();
|
|
2884
3009
|
case "connectingSlow":
|
|
2885
|
-
return
|
|
3010
|
+
return h();
|
|
2886
3011
|
case "connected":
|
|
2887
3012
|
case "reconnecting": {
|
|
2888
3013
|
if (!r || !n || !o) return null;
|
|
2889
|
-
t === "reconnecting" && (
|
|
2890
|
-
const
|
|
2891
|
-
return
|
|
3014
|
+
t === "reconnecting" && (p.current = !0);
|
|
3015
|
+
const m = n.size > 0;
|
|
3016
|
+
return m && (p.current = !1), d({
|
|
2892
3017
|
stores: n,
|
|
2893
3018
|
registry: o,
|
|
2894
3019
|
client: s,
|
|
2895
3020
|
onAction: i,
|
|
2896
|
-
isReconnecting: t === "reconnecting" ||
|
|
3021
|
+
isReconnecting: t === "reconnecting" || p.current && !m
|
|
2897
3022
|
});
|
|
2898
3023
|
}
|
|
2899
3024
|
case "offline":
|
|
2900
|
-
return
|
|
3025
|
+
return p.current = !1, l();
|
|
2901
3026
|
case "offlineError":
|
|
2902
|
-
return
|
|
3027
|
+
return p.current = !1, u(e ?? s?.lastError?.message ?? null);
|
|
2903
3028
|
default:
|
|
2904
3029
|
return null;
|
|
2905
3030
|
}
|
|
2906
3031
|
}
|
|
2907
|
-
const be =
|
|
2908
|
-
function
|
|
3032
|
+
const be = Re("useIkonApp");
|
|
3033
|
+
function ho() {
|
|
2909
3034
|
if (typeof window < "u" && window.__IKON_AUTH_CONFIG__)
|
|
2910
3035
|
return window.__IKON_AUTH_CONFIG__;
|
|
2911
3036
|
}
|
|
2912
|
-
function
|
|
3037
|
+
function po() {
|
|
2913
3038
|
if (typeof window < "u" && window.__IKON_LOCAL_IKON_SERVER_CONFIG__)
|
|
2914
3039
|
return window.__IKON_LOCAL_IKON_SERVER_CONFIG__;
|
|
2915
3040
|
}
|
|
2916
|
-
function
|
|
2917
|
-
const { authConfig: e, modules: r, timeouts: n, backgroundAudio: o, webRtc: s, audio: i, video: a, websocket: c, webtransport:
|
|
2918
|
-
|
|
2919
|
-
const [
|
|
3041
|
+
function Mo(t) {
|
|
3042
|
+
const { authConfig: e, modules: r, timeouts: n, backgroundAudio: o, webRtc: s, audio: i, video: a, websocket: c, webtransport: h, proxy: d } = t, l = e === void 0 ? ho() ?? null : e, u = po(), p = fo(), m = w(null), b = w(null), g = w(null), y = w(!1), v = w(!1), E = w(o), T = w(n), O = w(s), K = w(i), Q = w(a), C = w(c), _ = w(h), x = w(d);
|
|
3043
|
+
E.current = o, T.current = n, O.current = s, K.current = i, Q.current = a, C.current = c, _.current = h, x.current = d;
|
|
3044
|
+
const [P, F] = J("idle"), [z, ne] = J(null), [he, pe] = J(null), [se, me] = J(null), [ee, f] = J(null), [S, A] = J(!1), [M, W] = J(0), I = V(() => {
|
|
2920
3045
|
try {
|
|
2921
|
-
const
|
|
2922
|
-
return (
|
|
3046
|
+
const L = Dt();
|
|
3047
|
+
return (L.sessionId || L.channelKey) && Ft(), L;
|
|
2923
3048
|
} catch {
|
|
2924
3049
|
return { parameters: {} };
|
|
2925
3050
|
}
|
|
2926
|
-
}, []), q = V(() =>
|
|
3051
|
+
}, []), q = V(() => l?.enabled ? Et() : null, [l?.enabled, M]), te = u?.enabled ?? !1, N = u?.host ?? "localhost", G = u?.port ?? 8443;
|
|
2927
3052
|
U(() => {
|
|
2928
|
-
!te && Ge() &&
|
|
2929
|
-
|
|
3053
|
+
!te && Ge() && l && !l.enabled && l.spaceId && !ee && !S && (A(!0), Rt(l.spaceId, Le(l.authUrl)).then(($) => {
|
|
3054
|
+
f($.token);
|
|
2930
3055
|
}).catch(($) => {
|
|
2931
3056
|
be.error("Anonymous auth failed:", $), ne($ instanceof Error ? $.message : "Anonymous auth failed");
|
|
2932
3057
|
}).finally(() => {
|
|
2933
|
-
|
|
3058
|
+
A(!1);
|
|
2934
3059
|
}));
|
|
2935
|
-
}, [te,
|
|
3060
|
+
}, [te, l, ee, S]);
|
|
2936
3061
|
const re = V(() => {
|
|
2937
3062
|
if (te) {
|
|
2938
|
-
const
|
|
3063
|
+
const L = q?.token ? Bt(q.token) ?? void 0 : void 0;
|
|
2939
3064
|
return {
|
|
2940
3065
|
local: {
|
|
2941
|
-
host:
|
|
3066
|
+
host: N,
|
|
2942
3067
|
httpsPort: G,
|
|
2943
|
-
userId:
|
|
3068
|
+
userId: L,
|
|
2944
3069
|
token: q?.token ?? void 0,
|
|
2945
|
-
spaceId:
|
|
2946
|
-
backendUrl:
|
|
2947
|
-
authUrl:
|
|
2948
|
-
parameters:
|
|
3070
|
+
spaceId: l?.spaceId,
|
|
3071
|
+
backendUrl: l?.backendUrl,
|
|
3072
|
+
authUrl: l?.authUrl,
|
|
3073
|
+
parameters: I.parameters
|
|
2949
3074
|
}
|
|
2950
3075
|
};
|
|
2951
3076
|
}
|
|
2952
|
-
return q?.token &&
|
|
3077
|
+
return q?.token && l?.spaceId ? {
|
|
2953
3078
|
sessionToken: {
|
|
2954
3079
|
token: q.token,
|
|
2955
|
-
spaceId:
|
|
3080
|
+
spaceId: l.spaceId,
|
|
2956
3081
|
backendType: He(),
|
|
2957
|
-
sessionId:
|
|
2958
|
-
channelKey:
|
|
2959
|
-
parameters:
|
|
3082
|
+
sessionId: I.sessionId,
|
|
3083
|
+
channelKey: I.channelKey,
|
|
3084
|
+
parameters: I.parameters
|
|
2960
3085
|
}
|
|
2961
|
-
} : ee &&
|
|
3086
|
+
} : ee && l?.spaceId ? {
|
|
2962
3087
|
sessionToken: {
|
|
2963
3088
|
token: ee,
|
|
2964
|
-
spaceId:
|
|
3089
|
+
spaceId: l.spaceId,
|
|
2965
3090
|
backendType: He(),
|
|
2966
|
-
sessionId:
|
|
2967
|
-
channelKey:
|
|
2968
|
-
parameters:
|
|
3091
|
+
sessionId: I.sessionId,
|
|
3092
|
+
channelKey: I.channelKey,
|
|
3093
|
+
parameters: I.parameters
|
|
2969
3094
|
}
|
|
2970
3095
|
} : Ge() ? null : {
|
|
2971
3096
|
local: {
|
|
2972
|
-
host:
|
|
3097
|
+
host: N,
|
|
2973
3098
|
httpsPort: G,
|
|
2974
|
-
spaceId:
|
|
2975
|
-
backendUrl:
|
|
2976
|
-
authUrl:
|
|
2977
|
-
parameters:
|
|
3099
|
+
spaceId: l?.spaceId,
|
|
3100
|
+
backendUrl: l?.backendUrl,
|
|
3101
|
+
authUrl: l?.authUrl,
|
|
3102
|
+
parameters: I.parameters
|
|
2978
3103
|
}
|
|
2979
3104
|
};
|
|
2980
|
-
}, [te,
|
|
2981
|
-
|
|
2982
|
-
const Te =
|
|
3105
|
+
}, [te, N, G, q?.token, l?.spaceId, l?.backendUrl, l?.authUrl, ee, I.sessionId, I.channelKey, I.parameters]);
|
|
3106
|
+
rn(se);
|
|
3107
|
+
const Te = on(se);
|
|
2983
3108
|
U(() => {
|
|
2984
|
-
if (!
|
|
2985
|
-
if (
|
|
2986
|
-
for (const
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
be.error("Failed to load UI modules",
|
|
3109
|
+
if (!y.current) {
|
|
3110
|
+
if (y.current = !0, g.current = Gr(), r)
|
|
3111
|
+
for (const L of r)
|
|
3112
|
+
L(g.current);
|
|
3113
|
+
g.current.loadRegisteredModules().catch((L) => {
|
|
3114
|
+
be.error("Failed to load UI modules", L);
|
|
2990
3115
|
});
|
|
2991
3116
|
}
|
|
2992
3117
|
}, []), U(() => {
|
|
2993
3118
|
if (!re) return;
|
|
2994
|
-
const
|
|
3119
|
+
const L = new $t({
|
|
2995
3120
|
...re,
|
|
2996
|
-
timeouts:
|
|
2997
|
-
audio:
|
|
2998
|
-
enabled:
|
|
2999
|
-
...
|
|
3121
|
+
timeouts: T.current,
|
|
3122
|
+
audio: K.current !== void 0 || E.current ? {
|
|
3123
|
+
enabled: K.current,
|
|
3124
|
+
...E.current ? { background: { allowOnDesktop: !0, allowOnMobile: !0 } } : {}
|
|
3000
3125
|
} : void 0,
|
|
3001
3126
|
video: Q.current !== void 0 ? { enabled: Q.current } : void 0,
|
|
3002
3127
|
mediaSession: { title: document.title || void 0, artist: document.title || void 0 },
|
|
3003
|
-
webRtc:
|
|
3004
|
-
websocket:
|
|
3128
|
+
webRtc: O.current ? { enabled: !0 } : void 0,
|
|
3129
|
+
websocket: C.current,
|
|
3005
3130
|
webtransport: _.current,
|
|
3006
3131
|
proxy: x.current,
|
|
3007
3132
|
onConnectionStateChange: (H) => {
|
|
@@ -3011,39 +3136,39 @@ function No(t) {
|
|
|
3011
3136
|
ne(H.message);
|
|
3012
3137
|
}
|
|
3013
3138
|
});
|
|
3014
|
-
|
|
3015
|
-
const $ = new
|
|
3016
|
-
return b.current = $,
|
|
3017
|
-
if (be.error("Connection failed:", H), H instanceof
|
|
3018
|
-
|
|
3139
|
+
m.current = L;
|
|
3140
|
+
const $ = new ur({ client: L });
|
|
3141
|
+
return b.current = $, me($), L.connect().catch((H) => {
|
|
3142
|
+
if (be.error("Connection failed:", H), H instanceof Vt) {
|
|
3143
|
+
pe(H.reason);
|
|
3019
3144
|
return;
|
|
3020
3145
|
}
|
|
3021
|
-
H instanceof
|
|
3146
|
+
H instanceof Kt && !v.current && (v.current = !0, be.warn("Auth session appears stale, clearing and retrying"), p ? p.logout() : (ve(), W((_t) => _t + 1)));
|
|
3022
3147
|
}), () => {
|
|
3023
|
-
|
|
3148
|
+
L.disconnect(), m.current = null, $.dispose(), b.current = null;
|
|
3024
3149
|
};
|
|
3025
3150
|
}, [re]);
|
|
3026
|
-
const Ot = D((
|
|
3151
|
+
const Ot = D((L, $) => {
|
|
3027
3152
|
const H = typeof $ == "string" ? $ : JSON.stringify($ ?? {});
|
|
3028
|
-
|
|
3029
|
-
}, []),
|
|
3153
|
+
m.current?.sendActionCall(L, H);
|
|
3154
|
+
}, []), Nt = P === "connected" || P === "reconnecting";
|
|
3030
3155
|
return {
|
|
3031
|
-
connectionState:
|
|
3156
|
+
connectionState: P,
|
|
3032
3157
|
error: z,
|
|
3033
3158
|
accessDeniedReason: he,
|
|
3034
3159
|
stores: Te,
|
|
3035
|
-
client:
|
|
3036
|
-
registry:
|
|
3037
|
-
clientRef:
|
|
3160
|
+
client: m.current,
|
|
3161
|
+
registry: g.current,
|
|
3162
|
+
clientRef: m,
|
|
3038
3163
|
uiRef: b,
|
|
3039
|
-
registryRef:
|
|
3164
|
+
registryRef: g,
|
|
3040
3165
|
onAction: Ot,
|
|
3041
|
-
isReady:
|
|
3042
|
-
webRtcVideoStreams:
|
|
3043
|
-
webRtcTrackMap:
|
|
3166
|
+
isReady: Nt,
|
|
3167
|
+
webRtcVideoStreams: m.current?.webRtcVideoStreams ?? /* @__PURE__ */ new Map(),
|
|
3168
|
+
webRtcTrackMap: m.current?.webRtcTrackMap ?? /* @__PURE__ */ new Map()
|
|
3044
3169
|
};
|
|
3045
3170
|
}
|
|
3046
|
-
function
|
|
3171
|
+
function Lo(t) {
|
|
3047
3172
|
const e = w(!1);
|
|
3048
3173
|
return D(() => {
|
|
3049
3174
|
if (e.current) return;
|
|
@@ -3052,28 +3177,28 @@ function Po(t) {
|
|
|
3052
3177
|
r.rel = "stylesheet", r.href = t, document.head.appendChild(r);
|
|
3053
3178
|
}, [t]);
|
|
3054
3179
|
}
|
|
3055
|
-
let
|
|
3056
|
-
function
|
|
3180
|
+
let mo = 0;
|
|
3181
|
+
function jo(t = 5, e = 5e3) {
|
|
3057
3182
|
const [r, n] = J([]), o = w(/* @__PURE__ */ new Map()), s = D((i) => {
|
|
3058
3183
|
const a = o.current.get(i);
|
|
3059
|
-
a && (clearTimeout(a), o.current.delete(i)), n((c) => c.filter((
|
|
3184
|
+
a && (clearTimeout(a), o.current.delete(i)), n((c) => c.filter((h) => h.id !== i));
|
|
3060
3185
|
}, []);
|
|
3061
3186
|
return U(() => {
|
|
3062
|
-
const i = o.current, a =
|
|
3187
|
+
const i = o.current, a = Yt(
|
|
3063
3188
|
(c) => {
|
|
3064
|
-
if (!
|
|
3189
|
+
if (!zt())
|
|
3065
3190
|
return;
|
|
3066
|
-
const
|
|
3067
|
-
id:
|
|
3068
|
-
level:
|
|
3191
|
+
const h = `toast-${++mo}`, d = c.level === Je.ERROR ? "error" : "warn", l = {
|
|
3192
|
+
id: h,
|
|
3193
|
+
level: d,
|
|
3069
3194
|
message: c.message,
|
|
3070
3195
|
component: c.component
|
|
3071
3196
|
};
|
|
3072
|
-
n((
|
|
3073
|
-
const
|
|
3074
|
-
s(
|
|
3197
|
+
n((p) => [...p, l].slice(-t));
|
|
3198
|
+
const u = setTimeout(() => {
|
|
3199
|
+
s(h);
|
|
3075
3200
|
}, e);
|
|
3076
|
-
i.set(
|
|
3201
|
+
i.set(h, u);
|
|
3077
3202
|
},
|
|
3078
3203
|
{ minLevel: Je.WARN }
|
|
3079
3204
|
);
|
|
@@ -3085,100 +3210,101 @@ function Mo(t = 5, e = 5e3) {
|
|
|
3085
3210
|
};
|
|
3086
3211
|
}, [t, e, s]), { toasts: r, dismissToast: s };
|
|
3087
3212
|
}
|
|
3088
|
-
const It =
|
|
3089
|
-
function
|
|
3213
|
+
const It = mt(null);
|
|
3214
|
+
function go(t, e) {
|
|
3090
3215
|
return e ? t.replace(/\{(\w+)\}/g, (r, n) => e[n] ?? `{${n}}`) : t;
|
|
3091
3216
|
}
|
|
3092
|
-
function
|
|
3093
|
-
const r =
|
|
3217
|
+
function yo(t, e) {
|
|
3218
|
+
const r = Wt();
|
|
3094
3219
|
if (r && t.includes(r))
|
|
3095
3220
|
return r;
|
|
3096
3221
|
const n = navigator.language.split("-")[0];
|
|
3097
3222
|
return t.includes(n) ? n : e && t.includes(e) ? e : "en";
|
|
3098
3223
|
}
|
|
3099
|
-
function
|
|
3100
|
-
return e ?
|
|
3224
|
+
function bo(t, e, r) {
|
|
3225
|
+
return e ? yo(t, r) : r && t.includes(r) ? r : "en";
|
|
3101
3226
|
}
|
|
3102
|
-
function
|
|
3227
|
+
function Uo({
|
|
3103
3228
|
children: t,
|
|
3104
3229
|
translations: e,
|
|
3105
3230
|
defaultLanguage: r,
|
|
3106
3231
|
detectLanguage: n = !1
|
|
3107
3232
|
}) {
|
|
3108
|
-
const o = Object.keys(e), s =
|
|
3233
|
+
const o = Object.keys(e), s = bo(o, n, r), i = e[s] ?? e.en, a = V(
|
|
3109
3234
|
() => ({
|
|
3110
|
-
t: (c,
|
|
3111
|
-
const
|
|
3112
|
-
return
|
|
3235
|
+
t: (c, h) => {
|
|
3236
|
+
const d = i[c];
|
|
3237
|
+
return go(d, h);
|
|
3113
3238
|
},
|
|
3114
3239
|
locale: s,
|
|
3115
3240
|
translations: i
|
|
3116
3241
|
}),
|
|
3117
3242
|
[i, s]
|
|
3118
3243
|
);
|
|
3119
|
-
return /* @__PURE__ */
|
|
3244
|
+
return /* @__PURE__ */ R.jsx(It, { value: a, children: t });
|
|
3120
3245
|
}
|
|
3121
|
-
function
|
|
3246
|
+
function xo() {
|
|
3122
3247
|
const t = Ve(It);
|
|
3123
3248
|
if (!t)
|
|
3124
3249
|
throw new Error("useI18n must be used within an I18nProvider");
|
|
3125
3250
|
return t;
|
|
3126
3251
|
}
|
|
3127
3252
|
export {
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3253
|
+
No as AuthProvider,
|
|
3254
|
+
Po as ConnectionStateRenderer,
|
|
3255
|
+
Uo as I18nProvider,
|
|
3256
|
+
yr as IKON_UI_BASE_MODULE,
|
|
3257
|
+
Or as IKON_UI_MEDIA_MODULE,
|
|
3258
|
+
Yr as IKON_UI_SHADERTOY_MODULE,
|
|
3259
|
+
Vr as IKON_UI_SHADERTOY_TYPE,
|
|
3260
|
+
Ue as IKON_UI_STREAM_CATEGORY,
|
|
3261
|
+
kr as IKON_UI_VIDEO_CANVAS_TYPE,
|
|
3262
|
+
Ar as IKON_UI_VIDEO_URL_PLAYER_TYPE,
|
|
3263
|
+
ur as IkonUi,
|
|
3264
|
+
qr as IkonUiRegistry,
|
|
3265
|
+
ko as IkonUiSurface,
|
|
3266
|
+
ar as InspectOverlay,
|
|
3267
|
+
ir as UiComponentRegistry,
|
|
3268
|
+
sr as UiRenderer,
|
|
3269
|
+
Bo as UiStreamStore,
|
|
3270
|
+
Ao as areIkonUiModuleListsEqual,
|
|
3271
|
+
Rt as authenticateAnonymous,
|
|
3272
|
+
Xn as buildOAuthRedirectUrl,
|
|
3147
3273
|
ve as clearAuthSession,
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3274
|
+
pt as clearOAuthParams,
|
|
3275
|
+
gr as createBaseResolvers,
|
|
3276
|
+
Eo as createComponentLibrary,
|
|
3277
|
+
Gr as createIkonUiRegistry,
|
|
3278
|
+
Cr as createMediaResolvers,
|
|
3279
|
+
Kr as createShadertoyRendererResolver,
|
|
3280
|
+
cr as isIkonUiCategoryMatch,
|
|
3281
|
+
Et as loadAuthSession,
|
|
3282
|
+
br as loadBaseModule,
|
|
3283
|
+
Nr as loadMediaModule,
|
|
3284
|
+
zr as loadShadertoyModule,
|
|
3285
|
+
En as normalizeIkonUiModuleList,
|
|
3286
|
+
Co as parseIkonUiInitPayload,
|
|
3287
|
+
Hn as parseOAuthCallback,
|
|
3288
|
+
Jn as parseOAuthError,
|
|
3289
|
+
Rn as readIkonUiModules,
|
|
3290
|
+
To as readIkonUiModulesFromSources,
|
|
3291
|
+
Sr as registerBaseModule,
|
|
3292
|
+
_r as registerMediaModule,
|
|
3293
|
+
Wr as registerShadertoyModule,
|
|
3294
|
+
nr as renderChildren,
|
|
3295
|
+
Io as renderMotionLetters,
|
|
3296
|
+
Ae as saveAuthSession,
|
|
3297
|
+
Oo as sendMagicLink,
|
|
3172
3298
|
de as sessionToUser,
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3299
|
+
lo as useAuth,
|
|
3300
|
+
_o as useAuthGuard,
|
|
3301
|
+
fo as useAuthOptional,
|
|
3302
|
+
xo as useI18n,
|
|
3303
|
+
Mo as useIkonApp,
|
|
3304
|
+
rn as useIkonStyles,
|
|
3305
|
+
on as useIkonUiStores,
|
|
3306
|
+
Lo as useLazyFont,
|
|
3307
|
+
jo as useToasts,
|
|
3182
3308
|
Z as useUiNode,
|
|
3183
|
-
|
|
3309
|
+
Ro as useUiStore
|
|
3184
3310
|
};
|