@nlxai/touchpoint-ui 1.2.2 → 1.2.3-alpha.1
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/lib/index.js +749 -748
- package/lib/index.umd.js +18 -18
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function gw() {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
var fe = /\/+/g;
|
|
78
|
-
function
|
|
78
|
+
function Ie(O, te) {
|
|
79
79
|
return typeof O == "object" && O !== null && O.key != null ? Y("" + O.key) : te.toString(36);
|
|
80
80
|
}
|
|
81
81
|
function We(O, te, Ve, Ke, Xe) {
|
|
@@ -95,15 +95,15 @@ function gw() {
|
|
|
95
95
|
et = !0;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
if (et) return et = O, Xe = Xe(et), O = Ke === "" ? "." +
|
|
98
|
+
if (et) return et = O, Xe = Xe(et), O = Ke === "" ? "." + Ie(et, 0) : Ke, L(Xe) ? (Ve = "", O != null && (Ve = O.replace(fe, "$&/") + "/"), We(Xe, te, Ve, "", function(At) {
|
|
99
99
|
return At;
|
|
100
100
|
})) : Xe != null && (q(Xe) && (Xe = $(Xe, Ve + (!Xe.key || et && et.key === Xe.key ? "" : ("" + Xe.key).replace(fe, "$&/") + "/") + O)), te.push(Xe)), 1;
|
|
101
101
|
if (et = 0, Ke = Ke === "" ? "." : Ke + ":", L(O)) for (var qe = 0; qe < O.length; qe++) {
|
|
102
102
|
Fe = O[qe];
|
|
103
|
-
var dt = Ke +
|
|
103
|
+
var dt = Ke + Ie(Fe, qe);
|
|
104
104
|
et += We(Fe, te, Ve, dt, Xe);
|
|
105
105
|
}
|
|
106
|
-
else if (dt = _(O), typeof dt == "function") for (O = dt.call(O), qe = 0; !(Fe = O.next()).done; ) Fe = Fe.value, dt = Ke +
|
|
106
|
+
else if (dt = _(O), typeof dt == "function") for (O = dt.call(O), qe = 0; !(Fe = O.next()).done; ) Fe = Fe.value, dt = Ke + Ie(Fe, qe++), et += We(Fe, te, Ve, dt, Xe);
|
|
107
107
|
else if (Fe === "object") throw te = String(O), Error("Objects are not valid as a React child (found: " + (te === "[object Object]" ? "object with keys {" + Object.keys(O).join(", ") + "}" : te) + "). If you meant to render a collection of children, use an array instead.");
|
|
108
108
|
return et;
|
|
109
109
|
}
|
|
@@ -114,7 +114,7 @@ function gw() {
|
|
|
114
114
|
return te.call(Ve, Fe, Xe++);
|
|
115
115
|
}), Ke;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Pe(O) {
|
|
118
118
|
if (O._status === -1) {
|
|
119
119
|
var te = O._result;
|
|
120
120
|
te = te(), te.then(function(Ve) {
|
|
@@ -126,7 +126,7 @@ function gw() {
|
|
|
126
126
|
if (O._status === 1) return O._result.default;
|
|
127
127
|
throw O._result;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var me = { current: null }, ce = { transition: null }, Ce = { ReactCurrentDispatcher: me, ReactCurrentBatchConfig: ce, ReactCurrentOwner: G };
|
|
130
130
|
function de() {
|
|
131
131
|
throw Error("act(...) is not supported in production builds of React.");
|
|
132
132
|
}
|
|
@@ -146,7 +146,7 @@ function gw() {
|
|
|
146
146
|
}, only: function(O) {
|
|
147
147
|
if (!q(O)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
148
148
|
return O;
|
|
149
|
-
} }, ut.Component = H, ut.Fragment = t, ut.Profiler = o, ut.PureComponent = ee, ut.StrictMode = r, ut.Suspense = f, ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
|
|
149
|
+
} }, ut.Component = H, ut.Fragment = t, ut.Profiler = o, ut.PureComponent = ee, ut.StrictMode = r, ut.Suspense = f, ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ce, ut.act = de, ut.cloneElement = function(O, te, Ve) {
|
|
150
150
|
if (O == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + O + ".");
|
|
151
151
|
var Ke = N({}, O.props), Xe = O.key, Fe = O.ref, et = O._owner;
|
|
152
152
|
if (te != null) {
|
|
@@ -171,46 +171,46 @@ function gw() {
|
|
|
171
171
|
}, ut.forwardRef = function(O) {
|
|
172
172
|
return { $$typeof: u, render: O };
|
|
173
173
|
}, ut.isValidElement = q, ut.lazy = function(O) {
|
|
174
|
-
return { $$typeof: g, _payload: { _status: -1, _result: O }, _init:
|
|
174
|
+
return { $$typeof: g, _payload: { _status: -1, _result: O }, _init: Pe };
|
|
175
175
|
}, ut.memo = function(O, te) {
|
|
176
176
|
return { $$typeof: p, type: O, compare: te === void 0 ? null : te };
|
|
177
177
|
}, ut.startTransition = function(O) {
|
|
178
|
-
var te =
|
|
179
|
-
|
|
178
|
+
var te = ce.transition;
|
|
179
|
+
ce.transition = {};
|
|
180
180
|
try {
|
|
181
181
|
O();
|
|
182
182
|
} finally {
|
|
183
|
-
|
|
183
|
+
ce.transition = te;
|
|
184
184
|
}
|
|
185
185
|
}, ut.unstable_act = de, ut.useCallback = function(O, te) {
|
|
186
|
-
return
|
|
186
|
+
return me.current.useCallback(O, te);
|
|
187
187
|
}, ut.useContext = function(O) {
|
|
188
|
-
return
|
|
188
|
+
return me.current.useContext(O);
|
|
189
189
|
}, ut.useDebugValue = function() {
|
|
190
190
|
}, ut.useDeferredValue = function(O) {
|
|
191
|
-
return
|
|
191
|
+
return me.current.useDeferredValue(O);
|
|
192
192
|
}, ut.useEffect = function(O, te) {
|
|
193
|
-
return
|
|
193
|
+
return me.current.useEffect(O, te);
|
|
194
194
|
}, ut.useId = function() {
|
|
195
|
-
return
|
|
195
|
+
return me.current.useId();
|
|
196
196
|
}, ut.useImperativeHandle = function(O, te, Ve) {
|
|
197
|
-
return
|
|
197
|
+
return me.current.useImperativeHandle(O, te, Ve);
|
|
198
198
|
}, ut.useInsertionEffect = function(O, te) {
|
|
199
|
-
return
|
|
199
|
+
return me.current.useInsertionEffect(O, te);
|
|
200
200
|
}, ut.useLayoutEffect = function(O, te) {
|
|
201
|
-
return
|
|
201
|
+
return me.current.useLayoutEffect(O, te);
|
|
202
202
|
}, ut.useMemo = function(O, te) {
|
|
203
|
-
return
|
|
203
|
+
return me.current.useMemo(O, te);
|
|
204
204
|
}, ut.useReducer = function(O, te, Ve) {
|
|
205
|
-
return
|
|
205
|
+
return me.current.useReducer(O, te, Ve);
|
|
206
206
|
}, ut.useRef = function(O) {
|
|
207
|
-
return
|
|
207
|
+
return me.current.useRef(O);
|
|
208
208
|
}, ut.useState = function(O) {
|
|
209
|
-
return
|
|
209
|
+
return me.current.useState(O);
|
|
210
210
|
}, ut.useSyncExternalStore = function(O, te, Ve) {
|
|
211
|
-
return
|
|
211
|
+
return me.current.useSyncExternalStore(O, te, Ve);
|
|
212
212
|
}, ut.useTransition = function() {
|
|
213
|
-
return
|
|
213
|
+
return me.current.useTransition();
|
|
214
214
|
}, ut.version = "18.3.1", ut;
|
|
215
215
|
}
|
|
216
216
|
var lv;
|
|
@@ -259,35 +259,35 @@ var Ou = {}, lh = { exports: {} }, cr = {}, ch = { exports: {} }, uh = {};
|
|
|
259
259
|
var dv;
|
|
260
260
|
function bw() {
|
|
261
261
|
return dv || (dv = 1, function(n) {
|
|
262
|
-
function e(
|
|
263
|
-
var de =
|
|
264
|
-
|
|
262
|
+
function e(ce, Ce) {
|
|
263
|
+
var de = ce.length;
|
|
264
|
+
ce.push(Ce);
|
|
265
265
|
e: for (; 0 < de; ) {
|
|
266
|
-
var O = de - 1 >>> 1, te =
|
|
267
|
-
if (0 < o(te,
|
|
266
|
+
var O = de - 1 >>> 1, te = ce[O];
|
|
267
|
+
if (0 < o(te, Ce)) ce[O] = Ce, ce[de] = te, de = O;
|
|
268
268
|
else break e;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
function t(
|
|
272
|
-
return
|
|
271
|
+
function t(ce) {
|
|
272
|
+
return ce.length === 0 ? null : ce[0];
|
|
273
273
|
}
|
|
274
|
-
function r(
|
|
275
|
-
if (
|
|
276
|
-
var
|
|
277
|
-
if (de !==
|
|
278
|
-
|
|
279
|
-
e: for (var O = 0, te =
|
|
280
|
-
var Ke = 2 * (O + 1) - 1, Xe =
|
|
281
|
-
if (0 > o(Xe, de)) Fe < te && 0 > o(et, Xe) ? (
|
|
282
|
-
else if (Fe < te && 0 > o(et, de))
|
|
274
|
+
function r(ce) {
|
|
275
|
+
if (ce.length === 0) return null;
|
|
276
|
+
var Ce = ce[0], de = ce.pop();
|
|
277
|
+
if (de !== Ce) {
|
|
278
|
+
ce[0] = de;
|
|
279
|
+
e: for (var O = 0, te = ce.length, Ve = te >>> 1; O < Ve; ) {
|
|
280
|
+
var Ke = 2 * (O + 1) - 1, Xe = ce[Ke], Fe = Ke + 1, et = ce[Fe];
|
|
281
|
+
if (0 > o(Xe, de)) Fe < te && 0 > o(et, Xe) ? (ce[O] = et, ce[Fe] = de, O = Fe) : (ce[O] = Xe, ce[Ke] = de, O = Ke);
|
|
282
|
+
else if (Fe < te && 0 > o(et, de)) ce[O] = et, ce[Fe] = de, O = Fe;
|
|
283
283
|
else break e;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
return
|
|
286
|
+
return Ce;
|
|
287
287
|
}
|
|
288
|
-
function o(
|
|
289
|
-
var de =
|
|
290
|
-
return de !== 0 ? de :
|
|
288
|
+
function o(ce, Ce) {
|
|
289
|
+
var de = ce.sortIndex - Ce.sortIndex;
|
|
290
|
+
return de !== 0 ? de : ce.id - Ce.id;
|
|
291
291
|
}
|
|
292
292
|
if (typeof performance == "object" && typeof performance.now == "function") {
|
|
293
293
|
var a = performance;
|
|
@@ -302,38 +302,38 @@ function bw() {
|
|
|
302
302
|
}
|
|
303
303
|
var f = [], p = [], g = 1, C = null, _ = 3, T = !1, N = !1, A = !1, H = typeof setTimeout == "function" ? setTimeout : null, z = typeof clearTimeout == "function" ? clearTimeout : null, ee = typeof setImmediate < "u" ? setImmediate : null;
|
|
304
304
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
305
|
-
function U(
|
|
306
|
-
for (var
|
|
307
|
-
if (
|
|
308
|
-
else if (
|
|
305
|
+
function U(ce) {
|
|
306
|
+
for (var Ce = t(p); Ce !== null; ) {
|
|
307
|
+
if (Ce.callback === null) r(p);
|
|
308
|
+
else if (Ce.startTime <= ce) r(p), Ce.sortIndex = Ce.expirationTime, e(f, Ce);
|
|
309
309
|
else break;
|
|
310
|
-
|
|
310
|
+
Ce = t(p);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function L(
|
|
314
|
-
if (A = !1, U(
|
|
313
|
+
function L(ce) {
|
|
314
|
+
if (A = !1, U(ce), !N) if (t(f) !== null) N = !0, Pe(F);
|
|
315
315
|
else {
|
|
316
|
-
var
|
|
317
|
-
|
|
316
|
+
var Ce = t(p);
|
|
317
|
+
Ce !== null && me(L, Ce.startTime - ce);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
function F(
|
|
320
|
+
function F(ce, Ce) {
|
|
321
321
|
N = !1, A && (A = !1, z(Q), Q = -1), T = !0;
|
|
322
322
|
var de = _;
|
|
323
323
|
try {
|
|
324
|
-
for (U(
|
|
324
|
+
for (U(Ce), C = t(f); C !== null && (!(C.expirationTime > Ce) || ce && !Y()); ) {
|
|
325
325
|
var O = C.callback;
|
|
326
326
|
if (typeof O == "function") {
|
|
327
327
|
C.callback = null, _ = C.priorityLevel;
|
|
328
|
-
var te = O(C.expirationTime <=
|
|
329
|
-
|
|
328
|
+
var te = O(C.expirationTime <= Ce);
|
|
329
|
+
Ce = n.unstable_now(), typeof te == "function" ? C.callback = te : C === t(f) && r(f), U(Ce);
|
|
330
330
|
} else r(f);
|
|
331
331
|
C = t(f);
|
|
332
332
|
}
|
|
333
333
|
if (C !== null) var Ve = !0;
|
|
334
334
|
else {
|
|
335
335
|
var Ke = t(p);
|
|
336
|
-
Ke !== null &&
|
|
336
|
+
Ke !== null && me(L, Ke.startTime - Ce), Ve = !1;
|
|
337
337
|
}
|
|
338
338
|
return Ve;
|
|
339
339
|
} finally {
|
|
@@ -346,67 +346,67 @@ function bw() {
|
|
|
346
346
|
}
|
|
347
347
|
function fe() {
|
|
348
348
|
if (se !== null) {
|
|
349
|
-
var
|
|
350
|
-
q =
|
|
351
|
-
var
|
|
349
|
+
var ce = n.unstable_now();
|
|
350
|
+
q = ce;
|
|
351
|
+
var Ce = !0;
|
|
352
352
|
try {
|
|
353
|
-
|
|
353
|
+
Ce = se(!0, ce);
|
|
354
354
|
} finally {
|
|
355
|
-
|
|
355
|
+
Ce ? Ie() : (G = !1, se = null);
|
|
356
356
|
}
|
|
357
357
|
} else G = !1;
|
|
358
358
|
}
|
|
359
|
-
var
|
|
360
|
-
if (typeof ee == "function")
|
|
359
|
+
var Ie;
|
|
360
|
+
if (typeof ee == "function") Ie = function() {
|
|
361
361
|
ee(fe);
|
|
362
362
|
};
|
|
363
363
|
else if (typeof MessageChannel < "u") {
|
|
364
364
|
var We = new MessageChannel(), oe = We.port2;
|
|
365
|
-
We.port1.onmessage = fe,
|
|
365
|
+
We.port1.onmessage = fe, Ie = function() {
|
|
366
366
|
oe.postMessage(null);
|
|
367
367
|
};
|
|
368
|
-
} else
|
|
368
|
+
} else Ie = function() {
|
|
369
369
|
H(fe, 0);
|
|
370
370
|
};
|
|
371
|
-
function
|
|
372
|
-
se =
|
|
371
|
+
function Pe(ce) {
|
|
372
|
+
se = ce, G || (G = !0, Ie());
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function me(ce, Ce) {
|
|
375
375
|
Q = H(function() {
|
|
376
|
-
|
|
377
|
-
},
|
|
376
|
+
ce(n.unstable_now());
|
|
377
|
+
}, Ce);
|
|
378
378
|
}
|
|
379
|
-
n.unstable_IdlePriority = 5, n.unstable_ImmediatePriority = 1, n.unstable_LowPriority = 4, n.unstable_NormalPriority = 3, n.unstable_Profiling = null, n.unstable_UserBlockingPriority = 2, n.unstable_cancelCallback = function(
|
|
380
|
-
|
|
379
|
+
n.unstable_IdlePriority = 5, n.unstable_ImmediatePriority = 1, n.unstable_LowPriority = 4, n.unstable_NormalPriority = 3, n.unstable_Profiling = null, n.unstable_UserBlockingPriority = 2, n.unstable_cancelCallback = function(ce) {
|
|
380
|
+
ce.callback = null;
|
|
381
381
|
}, n.unstable_continueExecution = function() {
|
|
382
|
-
N || T || (N = !0,
|
|
383
|
-
}, n.unstable_forceFrameRate = function(
|
|
384
|
-
0 >
|
|
382
|
+
N || T || (N = !0, Pe(F));
|
|
383
|
+
}, n.unstable_forceFrameRate = function(ce) {
|
|
384
|
+
0 > ce || 125 < ce ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : $ = 0 < ce ? Math.floor(1e3 / ce) : 5;
|
|
385
385
|
}, n.unstable_getCurrentPriorityLevel = function() {
|
|
386
386
|
return _;
|
|
387
387
|
}, n.unstable_getFirstCallbackNode = function() {
|
|
388
388
|
return t(f);
|
|
389
|
-
}, n.unstable_next = function(
|
|
389
|
+
}, n.unstable_next = function(ce) {
|
|
390
390
|
switch (_) {
|
|
391
391
|
case 1:
|
|
392
392
|
case 2:
|
|
393
393
|
case 3:
|
|
394
|
-
var
|
|
394
|
+
var Ce = 3;
|
|
395
395
|
break;
|
|
396
396
|
default:
|
|
397
|
-
|
|
397
|
+
Ce = _;
|
|
398
398
|
}
|
|
399
399
|
var de = _;
|
|
400
|
-
_ =
|
|
400
|
+
_ = Ce;
|
|
401
401
|
try {
|
|
402
|
-
return
|
|
402
|
+
return ce();
|
|
403
403
|
} finally {
|
|
404
404
|
_ = de;
|
|
405
405
|
}
|
|
406
406
|
}, n.unstable_pauseExecution = function() {
|
|
407
407
|
}, n.unstable_requestPaint = function() {
|
|
408
|
-
}, n.unstable_runWithPriority = function(
|
|
409
|
-
switch (
|
|
408
|
+
}, n.unstable_runWithPriority = function(ce, Ce) {
|
|
409
|
+
switch (ce) {
|
|
410
410
|
case 1:
|
|
411
411
|
case 2:
|
|
412
412
|
case 3:
|
|
@@ -414,18 +414,18 @@ function bw() {
|
|
|
414
414
|
case 5:
|
|
415
415
|
break;
|
|
416
416
|
default:
|
|
417
|
-
|
|
417
|
+
ce = 3;
|
|
418
418
|
}
|
|
419
419
|
var de = _;
|
|
420
|
-
_ =
|
|
420
|
+
_ = ce;
|
|
421
421
|
try {
|
|
422
|
-
return
|
|
422
|
+
return Ce();
|
|
423
423
|
} finally {
|
|
424
424
|
_ = de;
|
|
425
425
|
}
|
|
426
|
-
}, n.unstable_scheduleCallback = function(
|
|
426
|
+
}, n.unstable_scheduleCallback = function(ce, Ce, de) {
|
|
427
427
|
var O = n.unstable_now();
|
|
428
|
-
switch (typeof de == "object" && de !== null ? (de = de.delay, de = typeof de == "number" && 0 < de ? O + de : O) : de = O,
|
|
428
|
+
switch (typeof de == "object" && de !== null ? (de = de.delay, de = typeof de == "number" && 0 < de ? O + de : O) : de = O, ce) {
|
|
429
429
|
case 1:
|
|
430
430
|
var te = -1;
|
|
431
431
|
break;
|
|
@@ -441,14 +441,14 @@ function bw() {
|
|
|
441
441
|
default:
|
|
442
442
|
te = 5e3;
|
|
443
443
|
}
|
|
444
|
-
return te = de + te,
|
|
445
|
-
}, n.unstable_shouldYield = Y, n.unstable_wrapCallback = function(
|
|
446
|
-
var
|
|
444
|
+
return te = de + te, ce = { id: g++, callback: Ce, priorityLevel: ce, startTime: de, expirationTime: te, sortIndex: -1 }, de > O ? (ce.sortIndex = de, e(p, ce), t(f) === null && ce === t(p) && (A ? (z(Q), Q = -1) : A = !0, me(L, de - O))) : (ce.sortIndex = te, e(f, ce), N || T || (N = !0, Pe(F))), ce;
|
|
445
|
+
}, n.unstable_shouldYield = Y, n.unstable_wrapCallback = function(ce) {
|
|
446
|
+
var Ce = _;
|
|
447
447
|
return function() {
|
|
448
448
|
var de = _;
|
|
449
|
-
_ =
|
|
449
|
+
_ = Ce;
|
|
450
450
|
try {
|
|
451
|
-
return
|
|
451
|
+
return ce.apply(this, arguments);
|
|
452
452
|
} finally {
|
|
453
453
|
_ = de;
|
|
454
454
|
}
|
|
@@ -565,9 +565,9 @@ function ww() {
|
|
|
565
565
|
var b = H.hasOwnProperty(s) ? H[s] : null;
|
|
566
566
|
(b !== null ? b.type !== 0 : m || !(2 < s.length) || s[0] !== "o" && s[0] !== "O" || s[1] !== "n" && s[1] !== "N") && (N(s, c, b, m) && (c = null), m || b === null ? _(s) && (c === null ? i.removeAttribute(s) : i.setAttribute(s, "" + c)) : b.mustUseProperty ? i[b.propertyName] = c === null ? b.type === 3 ? !1 : "" : c : (s = b.attributeName, m = b.attributeNamespace, c === null ? i.removeAttribute(s) : (b = b.type, c = b === 3 || b === 4 && c === !0 ? "" : "" + c, m ? i.setAttributeNS(m, s, c) : i.setAttribute(s, c))));
|
|
567
567
|
}
|
|
568
|
-
var L = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, F = Symbol.for("react.element"), G = Symbol.for("react.portal"), se = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), Y = Symbol.for("react.context"), fe = Symbol.for("react.forward_ref"),
|
|
569
|
-
function
|
|
570
|
-
return i === null || typeof i != "object" ? null : (i =
|
|
568
|
+
var L = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, F = Symbol.for("react.element"), G = Symbol.for("react.portal"), se = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), Y = Symbol.for("react.context"), fe = Symbol.for("react.forward_ref"), Ie = Symbol.for("react.suspense"), We = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), Pe = Symbol.for("react.lazy"), me = Symbol.for("react.offscreen"), ce = Symbol.iterator;
|
|
569
|
+
function Ce(i) {
|
|
570
|
+
return i === null || typeof i != "object" ? null : (i = ce && i[ce] || i["@@iterator"], typeof i == "function" ? i : null);
|
|
571
571
|
}
|
|
572
572
|
var de = Object.assign, O;
|
|
573
573
|
function te(i) {
|
|
@@ -671,7 +671,7 @@ function ww() {
|
|
|
671
671
|
return "Profiler";
|
|
672
672
|
case Q:
|
|
673
673
|
return "StrictMode";
|
|
674
|
-
case
|
|
674
|
+
case Ie:
|
|
675
675
|
return "Suspense";
|
|
676
676
|
case We:
|
|
677
677
|
return "SuspenseList";
|
|
@@ -686,7 +686,7 @@ function ww() {
|
|
|
686
686
|
return i = i.displayName, i || (i = s.displayName || s.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
687
687
|
case oe:
|
|
688
688
|
return s = i.displayName || null, s !== null ? s : Fe(i.type) || "Memo";
|
|
689
|
-
case
|
|
689
|
+
case Pe:
|
|
690
690
|
s = i._payload, i = i._init;
|
|
691
691
|
try {
|
|
692
692
|
return Fe(i(s));
|
|
@@ -1886,20 +1886,20 @@ function ww() {
|
|
|
1886
1886
|
var m = c.window === c ? c.document : c.nodeType === 9 ? c : c.ownerDocument;
|
|
1887
1887
|
B || w == null || w !== vn(m) || (m = w, "selectionStart" in m && d(m) ? m = { start: m.selectionStart, end: m.selectionEnd } : (m = (m.ownerDocument && m.ownerDocument.defaultView || window).getSelection(), m = { anchorNode: m.anchorNode, anchorOffset: m.anchorOffset, focusNode: m.focusNode, focusOffset: m.focusOffset }), I && go(I, m) || (I = m, m = $c(x, "onSelect"), 0 < m.length && (s = new fo("onSelect", "select", null, s, c), i.push({ event: s, listeners: m }), s.target = w)));
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function le(i, s) {
|
|
1890
1890
|
var c = {};
|
|
1891
1891
|
return c[i.toLowerCase()] = s.toLowerCase(), c["Webkit" + i] = "webkit" + s, c["Moz" + i] = "moz" + s, c;
|
|
1892
1892
|
}
|
|
1893
|
-
var X = { animationend:
|
|
1893
|
+
var X = { animationend: le("Animation", "AnimationEnd"), animationiteration: le("Animation", "AnimationIteration"), animationstart: le("Animation", "AnimationStart"), transitionend: le("Transition", "TransitionEnd") }, Se = {}, Me = {};
|
|
1894
1894
|
u && (Me = document.createElement("div").style, "AnimationEvent" in window || (delete X.animationend.animation, delete X.animationiteration.animation, delete X.animationstart.animation), "TransitionEvent" in window || delete X.transitionend.transition);
|
|
1895
1895
|
function Ne(i) {
|
|
1896
|
-
if (
|
|
1896
|
+
if (Se[i]) return Se[i];
|
|
1897
1897
|
if (!X[i]) return i;
|
|
1898
1898
|
var s = X[i], c;
|
|
1899
|
-
for (c in s) if (s.hasOwnProperty(c) && c in Me) return
|
|
1899
|
+
for (c in s) if (s.hasOwnProperty(c) && c in Me) return Se[i] = s[c];
|
|
1900
1900
|
return i;
|
|
1901
1901
|
}
|
|
1902
|
-
var ne = Ne("animationend"),
|
|
1902
|
+
var ne = Ne("animationend"), pe = Ne("animationiteration"), Re = Ne("animationstart"), $e = Ne("transitionend"), Je = /* @__PURE__ */ new Map(), tt = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
|
|
1903
1903
|
function vt(i, s) {
|
|
1904
1904
|
Je.set(i, s), a(s, [i]);
|
|
1905
1905
|
}
|
|
@@ -1907,7 +1907,7 @@ function ww() {
|
|
|
1907
1907
|
var Ot = tt[It], Et = Ot.toLowerCase(), Xr = Ot[0].toUpperCase() + Ot.slice(1);
|
|
1908
1908
|
vt(Et, "on" + Xr);
|
|
1909
1909
|
}
|
|
1910
|
-
vt(ne, "onAnimationEnd"), vt(
|
|
1910
|
+
vt(ne, "onAnimationEnd"), vt(pe, "onAnimationIteration"), vt(Re, "onAnimationStart"), vt("dblclick", "onDoubleClick"), vt("focusin", "onFocus"), vt("focusout", "onBlur"), vt($e, "onTransitionEnd"), l("onMouseEnter", ["mouseout", "mouseover"]), l("onMouseLeave", ["mouseout", "mouseover"]), l("onPointerEnter", ["pointerout", "pointerover"]), l("onPointerLeave", ["pointerout", "pointerover"]), a("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), a("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), a("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), a("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), a("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), a("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
|
|
1911
1911
|
var Vi = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), _k = new Set("cancel close invalid load scroll toggle".split(" ").concat(Vi));
|
|
1912
1912
|
function wm(i, s, c) {
|
|
1913
1913
|
var m = i.type || "unknown-event";
|
|
@@ -1991,7 +1991,7 @@ function ww() {
|
|
|
1991
1991
|
m = m.return;
|
|
1992
1992
|
}
|
|
1993
1993
|
Cc(function() {
|
|
1994
|
-
var ae = k, we = Pn(c),
|
|
1994
|
+
var ae = k, we = Pn(c), Te = [];
|
|
1995
1995
|
e: {
|
|
1996
1996
|
var ke = Je.get(i);
|
|
1997
1997
|
if (ke !== void 0) {
|
|
@@ -2042,8 +2042,8 @@ function ww() {
|
|
|
2042
2042
|
je = ls;
|
|
2043
2043
|
break;
|
|
2044
2044
|
case ne:
|
|
2045
|
-
case
|
|
2046
|
-
case
|
|
2045
|
+
case pe:
|
|
2046
|
+
case Re:
|
|
2047
2047
|
je = Bd;
|
|
2048
2048
|
break;
|
|
2049
2049
|
case $e:
|
|
@@ -2078,7 +2078,7 @@ function ww() {
|
|
|
2078
2078
|
if (ie.tag === 5 && xe !== null && (ie = xe, Z !== null && (xe = Hr(W, Z), xe != null && ze.push(bl(W, xe, ie)))), Xt) break;
|
|
2079
2079
|
W = W.return;
|
|
2080
2080
|
}
|
|
2081
|
-
0 < ze.length && (ke = new je(ke, Be, null, c, we),
|
|
2081
|
+
0 < ze.length && (ke = new je(ke, Be, null, c, we), Te.push({ event: ke, listeners: ze }));
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
if ((s & 7) === 0) {
|
|
@@ -2097,7 +2097,7 @@ function ww() {
|
|
|
2097
2097
|
ze = null;
|
|
2098
2098
|
}
|
|
2099
2099
|
else ze = null;
|
|
2100
|
-
je !== null && Tm(
|
|
2100
|
+
je !== null && Tm(Te, ke, je, ze, !1), Be !== null && Xt !== null && Tm(Te, Xt, Be, ze, !0);
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
e: {
|
|
@@ -2109,7 +2109,7 @@ function ww() {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
else (je = ke.nodeName) && je.toLowerCase() === "input" && (ke.type === "checkbox" || ke.type === "radio") && (He = Qr);
|
|
2111
2111
|
if (He && (He = He(i, ae))) {
|
|
2112
|
-
Uc(
|
|
2112
|
+
Uc(Te, He, c, we);
|
|
2113
2113
|
break e;
|
|
2114
2114
|
}
|
|
2115
2115
|
Ye && Ye(i, ke, ae), i === "focusout" && (Ye = ke._wrapperState) && Ye.controlled && ke.type === "number" && yn(ke, "number", ke.value);
|
|
@@ -2127,13 +2127,13 @@ function ww() {
|
|
|
2127
2127
|
case "contextmenu":
|
|
2128
2128
|
case "mouseup":
|
|
2129
2129
|
case "dragend":
|
|
2130
|
-
B = !1, K(
|
|
2130
|
+
B = !1, K(Te, c, we);
|
|
2131
2131
|
break;
|
|
2132
2132
|
case "selectionchange":
|
|
2133
2133
|
if (v) break;
|
|
2134
2134
|
case "keydown":
|
|
2135
2135
|
case "keyup":
|
|
2136
|
-
K(
|
|
2136
|
+
K(Te, c, we);
|
|
2137
2137
|
}
|
|
2138
2138
|
var Qe;
|
|
2139
2139
|
if (Qt) e: {
|
|
@@ -2151,9 +2151,9 @@ function ww() {
|
|
|
2151
2151
|
nt = void 0;
|
|
2152
2152
|
}
|
|
2153
2153
|
else yi ? yr(i, c) && (nt = "onCompositionEnd") : i === "keydown" && c.keyCode === 229 && (nt = "onCompositionStart");
|
|
2154
|
-
nt && (oa && c.locale !== "ko" && (yi || nt !== "onCompositionStart" ? nt === "onCompositionEnd" && yi && (Qe = rs()) : (mi = we, vr = "value" in mi ? mi.value : mi.textContent, yi = !0)), Ye = $c(ae, nt), 0 < Ye.length && (nt = new ss(nt, i, null, c, we),
|
|
2154
|
+
nt && (oa && c.locale !== "ko" && (yi || nt !== "onCompositionStart" ? nt === "onCompositionEnd" && yi && (Qe = rs()) : (mi = we, vr = "value" in mi ? mi.value : mi.textContent, yi = !0)), Ye = $c(ae, nt), 0 < Ye.length && (nt = new ss(nt, i, null, c, we), Te.push({ event: nt, listeners: Ye }), Qe ? nt.data = Qe : (Qe = ll(c), Qe !== null && (nt.data = Qe)))), (Qe = $d ? Fc(i, c) : cl(i, c)) && (ae = $c(ae, "onBeforeInput"), 0 < ae.length && (we = new ss("onBeforeInput", "beforeinput", null, c, we), Te.push({ event: we, listeners: ae }), we.data = Qe));
|
|
2155
2155
|
}
|
|
2156
|
-
Cm(
|
|
2156
|
+
Cm(Te, s);
|
|
2157
2157
|
});
|
|
2158
2158
|
}
|
|
2159
2159
|
function bl(i, s, c) {
|
|
@@ -2502,7 +2502,7 @@ function ww() {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
function V(Z, W, ie, xe) {
|
|
2504
2504
|
var He = ie.type;
|
|
2505
|
-
return He === se ? we(Z, W, ie.props.children, xe, ie.key) : W !== null && (W.elementType === He || typeof He == "object" && He !== null && He.$$typeof ===
|
|
2505
|
+
return He === se ? we(Z, W, ie.props.children, xe, ie.key) : W !== null && (W.elementType === He || typeof He == "object" && He !== null && He.$$typeof === Pe && jm(He) === W.type) ? (xe = b(W, ie.props), xe.ref = Cl(Z, W, ie), xe.return = Z, xe) : (xe = _u(ie.type, ie.key, ie.props, null, Z.mode, xe), xe.ref = Cl(Z, W, ie), xe.return = Z, xe);
|
|
2506
2506
|
}
|
|
2507
2507
|
function ae(Z, W, ie, xe) {
|
|
2508
2508
|
return W === null || W.tag !== 4 || W.stateNode.containerInfo !== ie.containerInfo || W.stateNode.implementation !== ie.implementation ? (W = Zf(ie, Z.mode, xe), W.return = Z, W) : (W = b(W, ie.children || []), W.return = Z, W);
|
|
@@ -2510,7 +2510,7 @@ function ww() {
|
|
|
2510
2510
|
function we(Z, W, ie, xe, He) {
|
|
2511
2511
|
return W === null || W.tag !== 7 ? (W = Ss(ie, Z.mode, xe, He), W.return = Z, W) : (W = b(W, ie), W.return = Z, W);
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Te(Z, W, ie) {
|
|
2514
2514
|
if (typeof W == "string" && W !== "" || typeof W == "number") return W = Xf("" + W, Z.mode, ie), W.return = Z, W;
|
|
2515
2515
|
if (typeof W == "object" && W !== null) {
|
|
2516
2516
|
switch (W.$$typeof) {
|
|
@@ -2518,11 +2518,11 @@ function ww() {
|
|
|
2518
2518
|
return ie = _u(W.type, W.key, W.props, null, Z.mode, ie), ie.ref = Cl(Z, null, W), ie.return = Z, ie;
|
|
2519
2519
|
case G:
|
|
2520
2520
|
return W = Zf(W, Z.mode, ie), W.return = Z, W;
|
|
2521
|
-
case
|
|
2521
|
+
case Pe:
|
|
2522
2522
|
var xe = W._init;
|
|
2523
|
-
return
|
|
2523
|
+
return Te(Z, xe(W._payload), ie);
|
|
2524
2524
|
}
|
|
2525
|
-
if (Li(W) ||
|
|
2525
|
+
if (Li(W) || Ce(W)) return W = Ss(W, Z.mode, ie, null), W.return = Z, W;
|
|
2526
2526
|
tu(Z, W);
|
|
2527
2527
|
}
|
|
2528
2528
|
return null;
|
|
@@ -2536,7 +2536,7 @@ function ww() {
|
|
|
2536
2536
|
return ie.key === He ? V(Z, W, ie, xe) : null;
|
|
2537
2537
|
case G:
|
|
2538
2538
|
return ie.key === He ? ae(Z, W, ie, xe) : null;
|
|
2539
|
-
case
|
|
2539
|
+
case Pe:
|
|
2540
2540
|
return He = ie._init, ke(
|
|
2541
2541
|
Z,
|
|
2542
2542
|
W,
|
|
@@ -2544,7 +2544,7 @@ function ww() {
|
|
|
2544
2544
|
xe
|
|
2545
2545
|
);
|
|
2546
2546
|
}
|
|
2547
|
-
if (Li(ie) ||
|
|
2547
|
+
if (Li(ie) || Ce(ie)) return He !== null ? null : we(Z, W, ie, xe, null);
|
|
2548
2548
|
tu(Z, ie);
|
|
2549
2549
|
}
|
|
2550
2550
|
return null;
|
|
@@ -2557,11 +2557,11 @@ function ww() {
|
|
|
2557
2557
|
return Z = Z.get(xe.key === null ? ie : xe.key) || null, V(W, Z, xe, He);
|
|
2558
2558
|
case G:
|
|
2559
2559
|
return Z = Z.get(xe.key === null ? ie : xe.key) || null, ae(W, Z, xe, He);
|
|
2560
|
-
case
|
|
2560
|
+
case Pe:
|
|
2561
2561
|
var Ye = xe._init;
|
|
2562
2562
|
return je(Z, W, ie, Ye(xe._payload), He);
|
|
2563
2563
|
}
|
|
2564
|
-
if (Li(xe) ||
|
|
2564
|
+
if (Li(xe) || Ce(xe)) return Z = Z.get(ie) || null, we(W, Z, xe, He, null);
|
|
2565
2565
|
tu(W, xe);
|
|
2566
2566
|
}
|
|
2567
2567
|
return null;
|
|
@@ -2578,7 +2578,7 @@ function ww() {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
if (nt === ie.length) return c(Z, Qe), Nt && ms(Z, nt), He;
|
|
2580
2580
|
if (Qe === null) {
|
|
2581
|
-
for (; nt < ie.length; nt++) Qe =
|
|
2581
|
+
for (; nt < ie.length; nt++) Qe = Te(Z, ie[nt], xe), Qe !== null && (W = k(Qe, W, nt), Ye === null ? He = Qe : Ye.sibling = Qe, Ye = Qe);
|
|
2582
2582
|
return Nt && ms(Z, nt), He;
|
|
2583
2583
|
}
|
|
2584
2584
|
for (Qe = m(Z, Qe); nt < ie.length; nt++) pn = je(Qe, Z, nt, ie[nt], xe), pn !== null && (i && pn.alternate !== null && Qe.delete(pn.key === null ? nt : pn.key), W = k(pn, W, nt), Ye === null ? He = pn : Ye.sibling = pn, Ye = pn);
|
|
@@ -2587,7 +2587,7 @@ function ww() {
|
|
|
2587
2587
|
}), Nt && ms(Z, nt), He;
|
|
2588
2588
|
}
|
|
2589
2589
|
function ze(Z, W, ie, xe) {
|
|
2590
|
-
var He =
|
|
2590
|
+
var He = Ce(ie);
|
|
2591
2591
|
if (typeof He != "function") throw Error(t(150));
|
|
2592
2592
|
if (ie = He.call(ie), ie == null) throw Error(t(151));
|
|
2593
2593
|
for (var Ye = He = null, Qe = W, nt = W = 0, pn = null, bt = ie.next(); Qe !== null && !bt.done; nt++, bt = ie.next()) {
|
|
@@ -2604,7 +2604,7 @@ function ww() {
|
|
|
2604
2604
|
Qe
|
|
2605
2605
|
), Nt && ms(Z, nt), He;
|
|
2606
2606
|
if (Qe === null) {
|
|
2607
|
-
for (; !bt.done; nt++, bt = ie.next()) bt =
|
|
2607
|
+
for (; !bt.done; nt++, bt = ie.next()) bt = Te(Z, bt.value, xe), bt !== null && (W = k(bt, W, nt), Ye === null ? He = bt : Ye.sibling = bt, Ye = bt);
|
|
2608
2608
|
return Nt && ms(Z, nt), He;
|
|
2609
2609
|
}
|
|
2610
2610
|
for (Qe = m(Z, Qe); !bt.done; nt++, bt = ie.next()) bt = je(Qe, Z, nt, bt.value, xe), bt !== null && (i && bt.alternate !== null && Qe.delete(bt.key === null ? nt : bt.key), W = k(bt, W, nt), Ye === null ? He = bt : Ye.sibling = bt, Ye = bt);
|
|
@@ -2624,7 +2624,7 @@ function ww() {
|
|
|
2624
2624
|
c(Z, Ye.sibling), W = b(Ye, ie.props.children), W.return = Z, Z = W;
|
|
2625
2625
|
break e;
|
|
2626
2626
|
}
|
|
2627
|
-
} else if (Ye.elementType === He || typeof He == "object" && He !== null && He.$$typeof ===
|
|
2627
|
+
} else if (Ye.elementType === He || typeof He == "object" && He !== null && He.$$typeof === Pe && jm(He) === Ye.type) {
|
|
2628
2628
|
c(Z, Ye.sibling), W = b(Ye, ie.props), W.ref = Cl(Z, Ye, ie), W.return = Z, Z = W;
|
|
2629
2629
|
break e;
|
|
2630
2630
|
}
|
|
@@ -2652,11 +2652,11 @@ function ww() {
|
|
|
2652
2652
|
W = Zf(ie, Z.mode, xe), W.return = Z, Z = W;
|
|
2653
2653
|
}
|
|
2654
2654
|
return E(Z);
|
|
2655
|
-
case
|
|
2655
|
+
case Pe:
|
|
2656
2656
|
return Ye = ie._init, Xt(Z, W, Ye(ie._payload), xe);
|
|
2657
2657
|
}
|
|
2658
2658
|
if (Li(ie)) return Be(Z, W, ie, xe);
|
|
2659
|
-
if (
|
|
2659
|
+
if (Ce(ie)) return ze(Z, W, ie, xe);
|
|
2660
2660
|
tu(Z, ie);
|
|
2661
2661
|
}
|
|
2662
2662
|
return typeof ie == "string" && ie !== "" || typeof ie == "number" ? (ie = "" + ie, W !== null && W.tag === 6 ? (c(Z, W.sibling), W = b(W, ie), W.return = Z, Z = W) : (c(Z, W), W = Xf(ie, Z.mode, xe), W.return = Z, Z = W), E(Z)) : c(Z, W);
|
|
@@ -2756,7 +2756,7 @@ function ww() {
|
|
|
2756
2756
|
we !== null && (we = we.updateQueue, D = we.lastBaseUpdate, D !== E && (D === null ? we.firstBaseUpdate = ae : D.next = ae, we.lastBaseUpdate = V));
|
|
2757
2757
|
}
|
|
2758
2758
|
if (k !== null) {
|
|
2759
|
-
var
|
|
2759
|
+
var Te = b.baseState;
|
|
2760
2760
|
E = 0, we = ae = V = null, D = k;
|
|
2761
2761
|
do {
|
|
2762
2762
|
var ke = D.lane, je = D.eventTime;
|
|
@@ -2774,35 +2774,35 @@ function ww() {
|
|
|
2774
2774
|
switch (ke = s, je = c, ze.tag) {
|
|
2775
2775
|
case 1:
|
|
2776
2776
|
if (Be = ze.payload, typeof Be == "function") {
|
|
2777
|
-
|
|
2777
|
+
Te = Be.call(je, Te, ke);
|
|
2778
2778
|
break e;
|
|
2779
2779
|
}
|
|
2780
|
-
|
|
2780
|
+
Te = Be;
|
|
2781
2781
|
break e;
|
|
2782
2782
|
case 3:
|
|
2783
2783
|
Be.flags = Be.flags & -65537 | 128;
|
|
2784
2784
|
case 0:
|
|
2785
|
-
if (Be = ze.payload, ke = typeof Be == "function" ? Be.call(je,
|
|
2786
|
-
|
|
2785
|
+
if (Be = ze.payload, ke = typeof Be == "function" ? Be.call(je, Te, ke) : Be, ke == null) break e;
|
|
2786
|
+
Te = de({}, Te, ke);
|
|
2787
2787
|
break e;
|
|
2788
2788
|
case 2:
|
|
2789
2789
|
wo = !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
2792
|
D.callback !== null && D.lane !== 0 && (i.flags |= 64, ke = b.effects, ke === null ? b.effects = [D] : ke.push(D));
|
|
2793
|
-
} else je = { eventTime: je, lane: ke, tag: D.tag, payload: D.payload, callback: D.callback, next: null }, we === null ? (ae = we = je, V =
|
|
2793
|
+
} else je = { eventTime: je, lane: ke, tag: D.tag, payload: D.payload, callback: D.callback, next: null }, we === null ? (ae = we = je, V = Te) : we = we.next = je, E |= ke;
|
|
2794
2794
|
if (D = D.next, D === null) {
|
|
2795
2795
|
if (D = b.shared.pending, D === null) break;
|
|
2796
2796
|
ke = D, D = ke.next, ke.next = null, b.lastBaseUpdate = ke, b.shared.pending = null;
|
|
2797
2797
|
}
|
|
2798
2798
|
} while (!0);
|
|
2799
|
-
if (we === null && (V =
|
|
2799
|
+
if (we === null && (V = Te), b.baseState = V, b.firstBaseUpdate = ae, b.lastBaseUpdate = we, s = b.shared.interleaved, s !== null) {
|
|
2800
2800
|
b = s;
|
|
2801
2801
|
do
|
|
2802
2802
|
E |= b.lane, b = b.next;
|
|
2803
2803
|
while (b !== s);
|
|
2804
2804
|
} else k === null && (b.shared.lanes = 0);
|
|
2805
|
-
bs |= E, i.lanes = E, i.memoizedState =
|
|
2805
|
+
bs |= E, i.lanes = E, i.memoizedState = Te;
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
2808
|
function Wm(i, s, c) {
|
|
@@ -2930,14 +2930,14 @@ function ww() {
|
|
|
2930
2930
|
var we = ae.lane;
|
|
2931
2931
|
if ((ys & we) === we) V !== null && (V = V.next = { lane: 0, action: ae.action, hasEagerState: ae.hasEagerState, eagerState: ae.eagerState, next: null }), m = ae.hasEagerState ? ae.eagerState : i(m, ae.action);
|
|
2932
2932
|
else {
|
|
2933
|
-
var
|
|
2933
|
+
var Te = {
|
|
2934
2934
|
lane: we,
|
|
2935
2935
|
action: ae.action,
|
|
2936
2936
|
hasEagerState: ae.hasEagerState,
|
|
2937
2937
|
eagerState: ae.eagerState,
|
|
2938
2938
|
next: null
|
|
2939
2939
|
};
|
|
2940
|
-
V === null ? (D = V =
|
|
2940
|
+
V === null ? (D = V = Te, E = m) : V = V.next = Te, Vt.lanes |= we, bs |= we;
|
|
2941
2941
|
}
|
|
2942
2942
|
ae = ae.next;
|
|
2943
2943
|
} while (ae !== null && ae !== k);
|
|
@@ -3382,16 +3382,16 @@ Error generating stack: ` + k.message + `
|
|
|
3382
3382
|
E.props = D;
|
|
3383
3383
|
var V = E.context, ae = c.contextType;
|
|
3384
3384
|
typeof ae == "object" && ae !== null ? ae = Dr(ae) : (ae = or(c) ? hs : Ln.current, ae = fa(s, ae));
|
|
3385
|
-
var we = c.getDerivedStateFromProps,
|
|
3386
|
-
|
|
3385
|
+
var we = c.getDerivedStateFromProps, Te = typeof we == "function" || typeof E.getSnapshotBeforeUpdate == "function";
|
|
3386
|
+
Te || typeof E.UNSAFE_componentWillReceiveProps != "function" && typeof E.componentWillReceiveProps != "function" || (D !== m || V !== ae) && pg(s, E, m, ae), wo = !1;
|
|
3387
3387
|
var ke = s.memoizedState;
|
|
3388
|
-
E.state = ke, ou(s, m, E, b), V = s.memoizedState, D !== m || ke !== V || ir.current || wo ? (typeof we == "function" && (xf(s, c, we, m), V = s.memoizedState), (D = wo || fg(s, c, D, m, ke, V, ae)) ? (
|
|
3388
|
+
E.state = ke, ou(s, m, E, b), V = s.memoizedState, D !== m || ke !== V || ir.current || wo ? (typeof we == "function" && (xf(s, c, we, m), V = s.memoizedState), (D = wo || fg(s, c, D, m, ke, V, ae)) ? (Te || typeof E.UNSAFE_componentWillMount != "function" && typeof E.componentWillMount != "function" || (typeof E.componentWillMount == "function" && E.componentWillMount(), typeof E.UNSAFE_componentWillMount == "function" && E.UNSAFE_componentWillMount()), typeof E.componentDidMount == "function" && (s.flags |= 4194308)) : (typeof E.componentDidMount == "function" && (s.flags |= 4194308), s.memoizedProps = m, s.memoizedState = V), E.props = m, E.state = V, E.context = ae, m = D) : (typeof E.componentDidMount == "function" && (s.flags |= 4194308), m = !1);
|
|
3389
3389
|
} else {
|
|
3390
|
-
E = s.stateNode, Vm(i, s), D = s.memoizedProps, ae = s.type === s.elementType ? D : ei(s.type, D), E.props = ae,
|
|
3390
|
+
E = s.stateNode, Vm(i, s), D = s.memoizedProps, ae = s.type === s.elementType ? D : ei(s.type, D), E.props = ae, Te = s.pendingProps, ke = E.context, V = c.contextType, typeof V == "object" && V !== null ? V = Dr(V) : (V = or(c) ? hs : Ln.current, V = fa(s, V));
|
|
3391
3391
|
var je = c.getDerivedStateFromProps;
|
|
3392
|
-
(we = typeof je == "function" || typeof E.getSnapshotBeforeUpdate == "function") || typeof E.UNSAFE_componentWillReceiveProps != "function" && typeof E.componentWillReceiveProps != "function" || (D !==
|
|
3392
|
+
(we = typeof je == "function" || typeof E.getSnapshotBeforeUpdate == "function") || typeof E.UNSAFE_componentWillReceiveProps != "function" && typeof E.componentWillReceiveProps != "function" || (D !== Te || ke !== V) && pg(s, E, m, V), wo = !1, ke = s.memoizedState, E.state = ke, ou(s, m, E, b);
|
|
3393
3393
|
var Be = s.memoizedState;
|
|
3394
|
-
D !==
|
|
3394
|
+
D !== Te || ke !== Be || ir.current || wo ? (typeof je == "function" && (xf(s, c, je, m), Be = s.memoizedState), (ae = wo || fg(s, c, ae, m, ke, Be, V) || !1) ? (we || typeof E.UNSAFE_componentWillUpdate != "function" && typeof E.componentWillUpdate != "function" || (typeof E.componentWillUpdate == "function" && E.componentWillUpdate(m, Be, V), typeof E.UNSAFE_componentWillUpdate == "function" && E.UNSAFE_componentWillUpdate(m, Be, V)), typeof E.componentDidUpdate == "function" && (s.flags |= 4), typeof E.getSnapshotBeforeUpdate == "function" && (s.flags |= 1024)) : (typeof E.componentDidUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 4), typeof E.getSnapshotBeforeUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 1024), s.memoizedProps = m, s.memoizedState = Be), E.props = m, E.state = Be, E.context = V, m = ae) : (typeof E.componentDidUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 4), typeof E.getSnapshotBeforeUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 1024), m = !1);
|
|
3395
3395
|
}
|
|
3396
3396
|
return Mf(i, s, c, m, k, b);
|
|
3397
3397
|
}
|
|
@@ -3972,16 +3972,16 @@ Error generating stack: ` + k.message + `
|
|
|
3972
3972
|
c = null;
|
|
3973
3973
|
break e;
|
|
3974
3974
|
}
|
|
3975
|
-
var E = 0, D = -1, V = -1, ae = 0, we = 0,
|
|
3975
|
+
var E = 0, D = -1, V = -1, ae = 0, we = 0, Te = i, ke = null;
|
|
3976
3976
|
t: for (; ; ) {
|
|
3977
|
-
for (var je;
|
|
3978
|
-
ke =
|
|
3977
|
+
for (var je; Te !== c || b !== 0 && Te.nodeType !== 3 || (D = E + b), Te !== k || m !== 0 && Te.nodeType !== 3 || (V = E + m), Te.nodeType === 3 && (E += Te.nodeValue.length), (je = Te.firstChild) !== null; )
|
|
3978
|
+
ke = Te, Te = je;
|
|
3979
3979
|
for (; ; ) {
|
|
3980
|
-
if (
|
|
3981
|
-
if (ke === c && ++ae === b && (D = E), ke === k && ++we === m && (V = E), (je =
|
|
3982
|
-
|
|
3980
|
+
if (Te === i) break t;
|
|
3981
|
+
if (ke === c && ++ae === b && (D = E), ke === k && ++we === m && (V = E), (je = Te.nextSibling) !== null) break;
|
|
3982
|
+
Te = ke, ke = Te.parentNode;
|
|
3983
3983
|
}
|
|
3984
|
-
|
|
3984
|
+
Te = je;
|
|
3985
3985
|
}
|
|
3986
3986
|
c = D === -1 || V === -1 ? null : { start: D, end: V };
|
|
3987
3987
|
} else c = null;
|
|
@@ -4228,8 +4228,8 @@ Error generating stack: ` + k.message + `
|
|
|
4228
4228
|
D === "input" && k.type === "radio" && k.name != null && so(b, k), _t(D, E);
|
|
4229
4229
|
var ae = _t(D, k);
|
|
4230
4230
|
for (E = 0; E < V.length; E += 2) {
|
|
4231
|
-
var we = V[E],
|
|
4232
|
-
we === "style" ? ot(b,
|
|
4231
|
+
var we = V[E], Te = V[E + 1];
|
|
4232
|
+
we === "style" ? ot(b, Te) : we === "dangerouslySetInnerHTML" ? ue(b, Te) : we === "children" ? ye(b, Te) : U(b, we, Te, ae);
|
|
4233
4233
|
}
|
|
4234
4234
|
switch (D) {
|
|
4235
4235
|
case "input":
|
|
@@ -4282,7 +4282,7 @@ Error generating stack: ` + k.message + `
|
|
|
4282
4282
|
case 22:
|
|
4283
4283
|
if (we = c !== null && c.memoizedState !== null, i.mode & 1 ? (jn = (ae = jn) || we, ni(s, i), jn = ae) : ni(s, i), Si(i), m & 8192) {
|
|
4284
4284
|
if (ae = i.memoizedState !== null, (i.stateNode.isHidden = ae) && !we && (i.mode & 1) !== 0) for (Ue = i, we = i.child; we !== null; ) {
|
|
4285
|
-
for (
|
|
4285
|
+
for (Te = Ue = we; Ue !== null; ) {
|
|
4286
4286
|
switch (ke = Ue, je = ke.child, ke.tag) {
|
|
4287
4287
|
case 0:
|
|
4288
4288
|
case 11:
|
|
@@ -4307,40 +4307,40 @@ Error generating stack: ` + k.message + `
|
|
|
4307
4307
|
break;
|
|
4308
4308
|
case 22:
|
|
4309
4309
|
if (ke.memoizedState !== null) {
|
|
4310
|
-
Wg(
|
|
4310
|
+
Wg(Te);
|
|
4311
4311
|
continue;
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
|
-
je !== null ? (je.return = ke, Ue = je) : Wg(
|
|
4314
|
+
je !== null ? (je.return = ke, Ue = je) : Wg(Te);
|
|
4315
4315
|
}
|
|
4316
4316
|
we = we.sibling;
|
|
4317
4317
|
}
|
|
4318
|
-
e: for (we = null,
|
|
4319
|
-
if (
|
|
4318
|
+
e: for (we = null, Te = i; ; ) {
|
|
4319
|
+
if (Te.tag === 5) {
|
|
4320
4320
|
if (we === null) {
|
|
4321
|
-
we =
|
|
4321
|
+
we = Te;
|
|
4322
4322
|
try {
|
|
4323
|
-
b =
|
|
4323
|
+
b = Te.stateNode, ae ? (k = b.style, typeof k.setProperty == "function" ? k.setProperty("display", "none", "important") : k.display = "none") : (D = Te.stateNode, V = Te.memoizedProps.style, E = V != null && V.hasOwnProperty("display") ? V.display : null, D.style.display = Le("display", E));
|
|
4324
4324
|
} catch (ze) {
|
|
4325
4325
|
qt(i, i.return, ze);
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
|
-
} else if (
|
|
4328
|
+
} else if (Te.tag === 6) {
|
|
4329
4329
|
if (we === null) try {
|
|
4330
|
-
|
|
4330
|
+
Te.stateNode.nodeValue = ae ? "" : Te.memoizedProps;
|
|
4331
4331
|
} catch (ze) {
|
|
4332
4332
|
qt(i, i.return, ze);
|
|
4333
4333
|
}
|
|
4334
|
-
} else if ((
|
|
4335
|
-
|
|
4334
|
+
} else if ((Te.tag !== 22 && Te.tag !== 23 || Te.memoizedState === null || Te === i) && Te.child !== null) {
|
|
4335
|
+
Te.child.return = Te, Te = Te.child;
|
|
4336
4336
|
continue;
|
|
4337
4337
|
}
|
|
4338
|
-
if (
|
|
4339
|
-
for (;
|
|
4340
|
-
if (
|
|
4341
|
-
we ===
|
|
4338
|
+
if (Te === i) break e;
|
|
4339
|
+
for (; Te.sibling === null; ) {
|
|
4340
|
+
if (Te.return === null || Te.return === i) break e;
|
|
4341
|
+
we === Te && (we = null), Te = Te.return;
|
|
4342
4342
|
}
|
|
4343
|
-
we ===
|
|
4343
|
+
we === Te && (we = null), Te.sibling.return = Te.return, Te = Te.sibling;
|
|
4344
4344
|
}
|
|
4345
4345
|
}
|
|
4346
4346
|
break;
|
|
@@ -4476,8 +4476,8 @@ Error generating stack: ` + k.message + `
|
|
|
4476
4476
|
if (ae !== null) {
|
|
4477
4477
|
var we = ae.memoizedState;
|
|
4478
4478
|
if (we !== null) {
|
|
4479
|
-
var
|
|
4480
|
-
|
|
4479
|
+
var Te = we.dehydrated;
|
|
4480
|
+
Te !== null && Mn(Te);
|
|
4481
4481
|
}
|
|
4482
4482
|
}
|
|
4483
4483
|
}
|
|
@@ -4830,8 +4830,8 @@ Error generating stack: ` + k.message + `
|
|
|
4830
4830
|
e: {
|
|
4831
4831
|
var k = i, E = c.return, D = c, V = s;
|
|
4832
4832
|
if (s = Sn, D.flags |= 32768, V !== null && typeof V == "object" && typeof V.then == "function") {
|
|
4833
|
-
var ae = V, we = D,
|
|
4834
|
-
if ((we.mode & 1) === 0 && (
|
|
4833
|
+
var ae = V, we = D, Te = we.tag;
|
|
4834
|
+
if ((we.mode & 1) === 0 && (Te === 0 || Te === 11 || Te === 15)) {
|
|
4835
4835
|
var ke = we.alternate;
|
|
4836
4836
|
ke ? (we.updateQueue = ke.updateQueue, we.memoizedState = ke.memoizedState, we.lanes = ke.lanes) : (we.updateQueue = null, we.memoizedState = null);
|
|
4837
4837
|
}
|
|
@@ -5004,8 +5004,8 @@ Error generating stack: ` + k.message + `
|
|
|
5004
5004
|
case 15:
|
|
5005
5005
|
Ml(8, we, k);
|
|
5006
5006
|
}
|
|
5007
|
-
var
|
|
5008
|
-
if (
|
|
5007
|
+
var Te = we.child;
|
|
5008
|
+
if (Te !== null) Te.return = we, Ue = Te;
|
|
5009
5009
|
else for (; Ue !== null; ) {
|
|
5010
5010
|
we = Ue;
|
|
5011
5011
|
var ke = we.sibling, je = we.return;
|
|
@@ -5325,11 +5325,11 @@ Error generating stack: ` + k.message + `
|
|
|
5325
5325
|
break;
|
|
5326
5326
|
case $:
|
|
5327
5327
|
return i = Fr(12, c, s, b | 2), i.elementType = $, i.lanes = k, i;
|
|
5328
|
-
case
|
|
5329
|
-
return i = Fr(13, c, s, b), i.elementType =
|
|
5328
|
+
case Ie:
|
|
5329
|
+
return i = Fr(13, c, s, b), i.elementType = Ie, i.lanes = k, i;
|
|
5330
5330
|
case We:
|
|
5331
5331
|
return i = Fr(19, c, s, b), i.elementType = We, i.lanes = k, i;
|
|
5332
|
-
case
|
|
5332
|
+
case me:
|
|
5333
5333
|
return xu(c, b, k, s);
|
|
5334
5334
|
default:
|
|
5335
5335
|
if (typeof i == "object" && i !== null) switch (i.$$typeof) {
|
|
@@ -5345,7 +5345,7 @@ Error generating stack: ` + k.message + `
|
|
|
5345
5345
|
case oe:
|
|
5346
5346
|
E = 14;
|
|
5347
5347
|
break e;
|
|
5348
|
-
case
|
|
5348
|
+
case Pe:
|
|
5349
5349
|
E = 16, m = null;
|
|
5350
5350
|
break e;
|
|
5351
5351
|
}
|
|
@@ -5357,7 +5357,7 @@ Error generating stack: ` + k.message + `
|
|
|
5357
5357
|
return i = Fr(7, i, m, s), i.lanes = c, i;
|
|
5358
5358
|
}
|
|
5359
5359
|
function xu(i, s, c, m) {
|
|
5360
|
-
return i = Fr(22, i, m, s), i.elementType =
|
|
5360
|
+
return i = Fr(22, i, m, s), i.elementType = me, i.lanes = c, i.stateNode = { isHidden: !1 }, i;
|
|
5361
5361
|
}
|
|
5362
5362
|
function Xf(i, s, c) {
|
|
5363
5363
|
return i = Fr(6, i, null, s), i.lanes = c, i;
|
|
@@ -5997,7 +5997,7 @@ var Bw = /* @__PURE__ */ Ip(/* @__PURE__ */ ky([], Uw, function(n, e) {
|
|
|
5997
5997
|
l = e[o], a = n(l), t.add(a) && r.push(l), o += 1;
|
|
5998
5998
|
return r;
|
|
5999
5999
|
})), Vw = /* @__PURE__ */ Bw(Dw);
|
|
6000
|
-
const zw = "1.2.
|
|
6000
|
+
const zw = "1.2.3-alpha.1", Ww = {
|
|
6001
6001
|
version: zw
|
|
6002
6002
|
};
|
|
6003
6003
|
var _n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
@@ -6811,7 +6811,7 @@ function Av(n, e, t) {
|
|
|
6811
6811
|
const r = n.random || (n.rng || hC)();
|
|
6812
6812
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, pC(r);
|
|
6813
6813
|
}
|
|
6814
|
-
var gC = "@nlxai/core", vC = "1.
|
|
6814
|
+
var gC = "@nlxai/core", vC = "1.2.3-alpha.1", yC = "Low-level SDK for building NLX experiences", bC = "module", kC = "lib/index.cjs", wC = "lib/index.esm.js", CC = "lib/index.umd.js", SC = "lib/index.d.ts", TC = {
|
|
6815
6815
|
".": {
|
|
6816
6816
|
types: "./lib/index.d.ts",
|
|
6817
6817
|
import: "./lib/index.esm.js",
|
|
@@ -6846,7 +6846,7 @@ var gC = "@nlxai/core", vC = "1.1.8-alpha.0", yC = "Low-level SDK for building N
|
|
|
6846
6846
|
uuid: "^9.0.1"
|
|
6847
6847
|
}, IC = {
|
|
6848
6848
|
access: "public"
|
|
6849
|
-
}, MC = "
|
|
6849
|
+
}, MC = "13e26a6c67af7aa6c8dc100ad83d9c33e1112a08", gh = {
|
|
6850
6850
|
name: gC,
|
|
6851
6851
|
version: vC,
|
|
6852
6852
|
description: yC,
|
|
@@ -6910,12 +6910,12 @@ function DC(n) {
|
|
|
6910
6910
|
const C = () => {
|
|
6911
6911
|
var oe;
|
|
6912
6912
|
return `${Nv(u)}${((oe = n.experimental) == null ? void 0 : oe.completeApplicationUrl) === !0 ? "" : `-${g.languageCode}`}`;
|
|
6913
|
-
}, _ = (oe,
|
|
6913
|
+
}, _ = (oe, Pe) => {
|
|
6914
6914
|
g = {
|
|
6915
6915
|
...g,
|
|
6916
6916
|
...oe
|
|
6917
|
-
}, ee.forEach((
|
|
6918
|
-
|
|
6917
|
+
}, ee.forEach((me) => {
|
|
6918
|
+
me(Dv(g), Pe);
|
|
6919
6919
|
});
|
|
6920
6920
|
}, T = () => {
|
|
6921
6921
|
const oe = {
|
|
@@ -6930,22 +6930,22 @@ function DC(n) {
|
|
|
6930
6930
|
}, oe);
|
|
6931
6931
|
}, N = (oe) => {
|
|
6932
6932
|
if ((oe == null ? void 0 : oe.messages.length) > 0) {
|
|
6933
|
-
const
|
|
6933
|
+
const Pe = {
|
|
6934
6934
|
type: Kn.Application,
|
|
6935
6935
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
6936
6936
|
payload: {
|
|
6937
6937
|
...oe,
|
|
6938
|
-
messages: oe.messages.map((
|
|
6939
|
-
nodeId:
|
|
6940
|
-
messageId:
|
|
6941
|
-
text:
|
|
6942
|
-
choices:
|
|
6938
|
+
messages: oe.messages.map((me) => ({
|
|
6939
|
+
nodeId: me.nodeId,
|
|
6940
|
+
messageId: me.messageId,
|
|
6941
|
+
text: me.text,
|
|
6942
|
+
choices: me.choices ?? []
|
|
6943
6943
|
}))
|
|
6944
6944
|
}
|
|
6945
6945
|
};
|
|
6946
6946
|
_({
|
|
6947
|
-
responses: [...g.responses,
|
|
6948
|
-
},
|
|
6947
|
+
responses: [...g.responses, Pe]
|
|
6948
|
+
}, Pe), oe.metadata.hasPendingDataRequest && ($({ poll: !0 }), setTimeout(() => {
|
|
6949
6949
|
z({
|
|
6950
6950
|
request: {
|
|
6951
6951
|
structured: {
|
|
@@ -6961,33 +6961,33 @@ function DC(n) {
|
|
|
6961
6961
|
const H = (oe) => {
|
|
6962
6962
|
(o == null ? void 0 : o.readyState) === 1 ? o.send(JSON.stringify(oe)) : a = [...a, oe];
|
|
6963
6963
|
}, z = async (oe) => {
|
|
6964
|
-
var
|
|
6964
|
+
var me;
|
|
6965
6965
|
if (A != null) {
|
|
6966
|
-
A(oe, (
|
|
6967
|
-
const
|
|
6966
|
+
A(oe, (ce) => {
|
|
6967
|
+
const Ce = {
|
|
6968
6968
|
type: Kn.Application,
|
|
6969
6969
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
6970
|
-
payload:
|
|
6970
|
+
payload: ce
|
|
6971
6971
|
};
|
|
6972
6972
|
_({
|
|
6973
|
-
responses: [...g.responses,
|
|
6974
|
-
},
|
|
6973
|
+
responses: [...g.responses, Ce]
|
|
6974
|
+
}, Ce);
|
|
6975
6975
|
});
|
|
6976
6976
|
return;
|
|
6977
6977
|
}
|
|
6978
|
-
const
|
|
6978
|
+
const Pe = {
|
|
6979
6979
|
userId: g.userId,
|
|
6980
6980
|
conversationId: g.conversationId,
|
|
6981
6981
|
...oe,
|
|
6982
6982
|
languageCode: g.languageCode,
|
|
6983
|
-
channelType: (
|
|
6983
|
+
channelType: (me = n.experimental) == null ? void 0 : me.channelType,
|
|
6984
6984
|
environment: n.environment
|
|
6985
6985
|
};
|
|
6986
6986
|
if (Oo(u))
|
|
6987
|
-
(e == null ? void 0 : e.readyState) === 1 ? e.send(JSON.stringify(
|
|
6987
|
+
(e == null ? void 0 : e.readyState) === 1 ? e.send(JSON.stringify(Pe)) : t = [...t, Pe];
|
|
6988
6988
|
else
|
|
6989
6989
|
try {
|
|
6990
|
-
const
|
|
6990
|
+
const ce = await ph(C(), {
|
|
6991
6991
|
method: "POST",
|
|
6992
6992
|
headers: {
|
|
6993
6993
|
...n.headers ?? {},
|
|
@@ -6995,14 +6995,14 @@ function DC(n) {
|
|
|
6995
6995
|
"Content-Type": "application/json",
|
|
6996
6996
|
"nlx-sdk-version": gh.version
|
|
6997
6997
|
},
|
|
6998
|
-
body: JSON.stringify(
|
|
6998
|
+
body: JSON.stringify(Pe)
|
|
6999
6999
|
});
|
|
7000
|
-
if (
|
|
7001
|
-
throw new Error(`Responded with ${
|
|
7002
|
-
const
|
|
7003
|
-
N(
|
|
7004
|
-
} catch (
|
|
7005
|
-
Ea.warn(
|
|
7000
|
+
if (ce.status >= 400)
|
|
7001
|
+
throw new Error(`Responded with ${ce.status}`);
|
|
7002
|
+
const Ce = await ce.json();
|
|
7003
|
+
N(Ce);
|
|
7004
|
+
} catch (ce) {
|
|
7005
|
+
Ea.warn(ce), T();
|
|
7006
7006
|
}
|
|
7007
7007
|
};
|
|
7008
7008
|
let ee = [];
|
|
@@ -7011,37 +7011,37 @@ function DC(n) {
|
|
|
7011
7011
|
}, L = () => {
|
|
7012
7012
|
(o == null ? void 0 : o.readyState) === 1 && a[0] != null && (H(a[0]), a = a.slice(1));
|
|
7013
7013
|
}, F = () => {
|
|
7014
|
-
var
|
|
7014
|
+
var Pe;
|
|
7015
7015
|
se();
|
|
7016
7016
|
const oe = new URL(u);
|
|
7017
|
-
((
|
|
7017
|
+
((Pe = n.experimental) == null ? void 0 : Pe.completeApplicationUrl) !== !0 && (oe.searchParams.set("languageCode", g.languageCode), oe.searchParams.set("channelKey", `${oe.searchParams.get("channelKey") ?? ""}-${g.languageCode}`)), oe.searchParams.set("conversationId", g.conversationId), e = new mh(oe.href), r = setInterval(() => {
|
|
7018
7018
|
U();
|
|
7019
|
-
}, 500), e.onmessage = function(
|
|
7020
|
-
typeof (
|
|
7019
|
+
}, 500), e.onmessage = function(me) {
|
|
7020
|
+
typeof (me == null ? void 0 : me.data) == "string" && N(vh(me.data));
|
|
7021
7021
|
}, oe.searchParams.set("voice-plus", "true"), o = new mh(oe.href), l = setInterval(() => {
|
|
7022
7022
|
L();
|
|
7023
|
-
}, 500), o.onmessage = (
|
|
7024
|
-
if (typeof (
|
|
7025
|
-
const
|
|
7026
|
-
|
|
7027
|
-
|
|
7023
|
+
}, 500), o.onmessage = (me) => {
|
|
7024
|
+
if (typeof (me == null ? void 0 : me.data) == "string") {
|
|
7025
|
+
const ce = vh(me.data);
|
|
7026
|
+
ce != null && f.voicePlusCommand.forEach((Ce) => {
|
|
7027
|
+
Ce(ce);
|
|
7028
7028
|
});
|
|
7029
7029
|
}
|
|
7030
7030
|
};
|
|
7031
7031
|
}, G = () => {
|
|
7032
|
-
var
|
|
7032
|
+
var me;
|
|
7033
7033
|
if (Q(), n.bidirectional !== !0)
|
|
7034
7034
|
return;
|
|
7035
7035
|
const oe = new URL(OC(u));
|
|
7036
|
-
((
|
|
7037
|
-
const
|
|
7038
|
-
!Oo(u) &&
|
|
7036
|
+
((me = n.experimental) == null ? void 0 : me.completeApplicationUrl) !== !0 && (oe.searchParams.set("languageCode", g.languageCode), oe.searchParams.set("channelKey", `${oe.searchParams.get("channelKey") ?? ""}-${g.languageCode}`)), oe.searchParams.set("conversationId", g.conversationId), oe.searchParams.set("type", "voice-plus");
|
|
7037
|
+
const Pe = n.headers["nlx-api-key"];
|
|
7038
|
+
!Oo(u) && Pe != null && oe.searchParams.set("apiKey", Pe), o = new mh(oe.href), l = setInterval(() => {
|
|
7039
7039
|
L();
|
|
7040
|
-
}, 500), o.onmessage = (
|
|
7041
|
-
if (typeof (
|
|
7042
|
-
const
|
|
7043
|
-
|
|
7044
|
-
de(
|
|
7040
|
+
}, 500), o.onmessage = (ce) => {
|
|
7041
|
+
if (typeof (ce == null ? void 0 : ce.data) == "string") {
|
|
7042
|
+
const Ce = vh(ce.data);
|
|
7043
|
+
Ce != null && f.voicePlusCommand.forEach((de) => {
|
|
7044
|
+
de(Ce);
|
|
7045
7045
|
});
|
|
7046
7046
|
}
|
|
7047
7047
|
};
|
|
@@ -7051,83 +7051,83 @@ function DC(n) {
|
|
|
7051
7051
|
l != null && clearInterval(l), o != null && (o.onmessage = null, o.close(), o = void 0);
|
|
7052
7052
|
};
|
|
7053
7053
|
Oo(u) && F(), G();
|
|
7054
|
-
const $ = (oe,
|
|
7055
|
-
const
|
|
7054
|
+
const $ = (oe, Pe) => {
|
|
7055
|
+
const me = {
|
|
7056
7056
|
type: Kn.User,
|
|
7057
7057
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
7058
7058
|
payload: {
|
|
7059
7059
|
type: "structured",
|
|
7060
7060
|
...Lv(oe),
|
|
7061
|
-
context:
|
|
7061
|
+
context: Pe
|
|
7062
7062
|
}
|
|
7063
7063
|
};
|
|
7064
7064
|
_({
|
|
7065
|
-
responses: [...g.responses,
|
|
7066
|
-
},
|
|
7067
|
-
}, q = (oe,
|
|
7068
|
-
$({ intentId: oe },
|
|
7069
|
-
context:
|
|
7065
|
+
responses: [...g.responses, me]
|
|
7066
|
+
}, me);
|
|
7067
|
+
}, q = (oe, Pe) => {
|
|
7068
|
+
$({ intentId: oe }, Pe), z({
|
|
7069
|
+
context: Pe,
|
|
7070
7070
|
request: {
|
|
7071
7071
|
structured: {
|
|
7072
7072
|
intentId: oe
|
|
7073
7073
|
}
|
|
7074
7074
|
}
|
|
7075
7075
|
});
|
|
7076
|
-
}, Y = (oe,
|
|
7077
|
-
const
|
|
7076
|
+
}, Y = (oe, Pe) => {
|
|
7077
|
+
const me = {
|
|
7078
7078
|
type: Kn.User,
|
|
7079
7079
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
7080
7080
|
payload: {
|
|
7081
7081
|
type: "text",
|
|
7082
7082
|
text: oe,
|
|
7083
|
-
context:
|
|
7083
|
+
context: Pe
|
|
7084
7084
|
}
|
|
7085
7085
|
};
|
|
7086
7086
|
_({
|
|
7087
|
-
responses: [...g.responses,
|
|
7088
|
-
},
|
|
7089
|
-
context:
|
|
7087
|
+
responses: [...g.responses, me]
|
|
7088
|
+
}, me), z({
|
|
7089
|
+
context: Pe,
|
|
7090
7090
|
request: {
|
|
7091
7091
|
unstructured: {
|
|
7092
7092
|
text: oe
|
|
7093
7093
|
}
|
|
7094
7094
|
}
|
|
7095
7095
|
});
|
|
7096
|
-
}, fe = (oe,
|
|
7097
|
-
let
|
|
7098
|
-
const
|
|
7096
|
+
}, fe = (oe, Pe, me) => {
|
|
7097
|
+
let ce = [...g.responses];
|
|
7098
|
+
const Ce = {
|
|
7099
7099
|
type: Kn.User,
|
|
7100
7100
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
7101
7101
|
payload: {
|
|
7102
7102
|
type: "choice",
|
|
7103
7103
|
choiceId: oe
|
|
7104
7104
|
}
|
|
7105
|
-
}, de = (
|
|
7106
|
-
de > -1 && O > -1 && (
|
|
7105
|
+
}, de = (me == null ? void 0 : me.responseIndex) ?? -1, O = (me == null ? void 0 : me.messageIndex) ?? -1;
|
|
7106
|
+
de > -1 && O > -1 && (ce = Iv(de, (te) => te.type === Kn.Application ? {
|
|
7107
7107
|
...te,
|
|
7108
7108
|
payload: {
|
|
7109
7109
|
...te.payload,
|
|
7110
7110
|
messages: Iv(O, (Ve) => ({ ...Ve, selectedChoiceId: oe }), te.payload.messages)
|
|
7111
7111
|
}
|
|
7112
|
-
} : te,
|
|
7113
|
-
responses:
|
|
7114
|
-
},
|
|
7115
|
-
context:
|
|
7112
|
+
} : te, ce)), ce = [...ce, Ce], _({
|
|
7113
|
+
responses: ce
|
|
7114
|
+
}, Ce), z({
|
|
7115
|
+
context: Pe,
|
|
7116
7116
|
request: {
|
|
7117
7117
|
structured: {
|
|
7118
|
-
nodeId:
|
|
7119
|
-
intentId:
|
|
7118
|
+
nodeId: me == null ? void 0 : me.nodeId,
|
|
7119
|
+
intentId: me == null ? void 0 : me.intentId,
|
|
7120
7120
|
choiceId: oe
|
|
7121
7121
|
}
|
|
7122
7122
|
}
|
|
7123
7123
|
});
|
|
7124
|
-
},
|
|
7125
|
-
ee = ee.filter((
|
|
7124
|
+
}, Ie = (oe) => {
|
|
7125
|
+
ee = ee.filter((Pe) => Pe !== oe);
|
|
7126
7126
|
};
|
|
7127
7127
|
return {
|
|
7128
7128
|
sendText: Y,
|
|
7129
7129
|
sendContext: async (oe) => {
|
|
7130
|
-
const
|
|
7130
|
+
const Pe = await ph(`${C()}/context`, {
|
|
7131
7131
|
method: "POST",
|
|
7132
7132
|
headers: {
|
|
7133
7133
|
...n.headers ?? {},
|
|
@@ -7143,20 +7143,20 @@ function DC(n) {
|
|
|
7143
7143
|
context: oe
|
|
7144
7144
|
})
|
|
7145
7145
|
});
|
|
7146
|
-
if (
|
|
7147
|
-
throw new Error(`Responded with ${
|
|
7146
|
+
if (Pe.status >= 400)
|
|
7147
|
+
throw new Error(`Responded with ${Pe.status}`);
|
|
7148
7148
|
},
|
|
7149
|
-
sendStructured: (oe,
|
|
7150
|
-
$(oe,
|
|
7151
|
-
context:
|
|
7149
|
+
sendStructured: (oe, Pe) => {
|
|
7150
|
+
$(oe, Pe), z({
|
|
7151
|
+
context: Pe,
|
|
7152
7152
|
request: {
|
|
7153
7153
|
structured: Lv(oe)
|
|
7154
7154
|
}
|
|
7155
7155
|
});
|
|
7156
7156
|
},
|
|
7157
|
-
sendSlots: (oe,
|
|
7158
|
-
$({ slots: oe },
|
|
7159
|
-
context:
|
|
7157
|
+
sendSlots: (oe, Pe) => {
|
|
7158
|
+
$({ slots: oe }, Pe), z({
|
|
7159
|
+
context: Pe,
|
|
7160
7160
|
request: {
|
|
7161
7161
|
structured: {
|
|
7162
7162
|
slots: Ey(oe)
|
|
@@ -7165,8 +7165,8 @@ function DC(n) {
|
|
|
7165
7165
|
});
|
|
7166
7166
|
},
|
|
7167
7167
|
sendFlow: q,
|
|
7168
|
-
sendIntent: (oe,
|
|
7169
|
-
Ea.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."), q(oe,
|
|
7168
|
+
sendIntent: (oe, Pe) => {
|
|
7169
|
+
Ea.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."), q(oe, Pe);
|
|
7170
7170
|
},
|
|
7171
7171
|
sendWelcomeFlow: (oe) => {
|
|
7172
7172
|
q(Ov, oe);
|
|
@@ -7184,8 +7184,8 @@ function DC(n) {
|
|
|
7184
7184
|
Oo(u) && F(), G(), _({ languageCode: oe });
|
|
7185
7185
|
},
|
|
7186
7186
|
currentLanguageCode: () => g.languageCode,
|
|
7187
|
-
getVoiceCredentials: async (oe) => {
|
|
7188
|
-
const
|
|
7187
|
+
getVoiceCredentials: async (oe, Pe) => {
|
|
7188
|
+
const me = Nv(u), ce = await ph(`${me}-${g.languageCode}/requestToken`, {
|
|
7189
7189
|
method: "POST",
|
|
7190
7190
|
headers: {
|
|
7191
7191
|
...n.headers ?? {},
|
|
@@ -7199,20 +7199,21 @@ function DC(n) {
|
|
|
7199
7199
|
conversationId: g.conversationId,
|
|
7200
7200
|
userId: g.userId,
|
|
7201
7201
|
requestToken: !0,
|
|
7202
|
-
context: oe
|
|
7202
|
+
context: oe,
|
|
7203
|
+
autoTriggerWelcomeFlow: (Pe == null ? void 0 : Pe.autoTriggerWelcomeFlow) ?? !0
|
|
7203
7204
|
})
|
|
7204
7205
|
});
|
|
7205
|
-
if (
|
|
7206
|
-
throw new Error(`Responded with ${
|
|
7207
|
-
const
|
|
7208
|
-
if ((
|
|
7206
|
+
if (ce.status >= 400)
|
|
7207
|
+
throw new Error(`Responded with ${ce.status}`);
|
|
7208
|
+
const Ce = await ce.json();
|
|
7209
|
+
if ((Ce == null ? void 0 : Ce.url) == null)
|
|
7209
7210
|
throw new Error("Invalid response");
|
|
7210
|
-
return
|
|
7211
|
+
return Ce;
|
|
7211
7212
|
},
|
|
7212
7213
|
subscribe: (oe) => (ee = [...ee, oe], oe(Dv(g)), () => {
|
|
7213
|
-
|
|
7214
|
+
Ie(oe);
|
|
7214
7215
|
}),
|
|
7215
|
-
unsubscribe:
|
|
7216
|
+
unsubscribe: Ie,
|
|
7216
7217
|
unsubscribeAll: () => {
|
|
7217
7218
|
ee = [];
|
|
7218
7219
|
},
|
|
@@ -7228,11 +7229,11 @@ function DC(n) {
|
|
|
7228
7229
|
setRequestOverride: (oe) => {
|
|
7229
7230
|
A = oe;
|
|
7230
7231
|
},
|
|
7231
|
-
addEventListener: (oe,
|
|
7232
|
-
f[oe] = [...f[oe],
|
|
7232
|
+
addEventListener: (oe, Pe) => {
|
|
7233
|
+
f[oe] = [...f[oe], Pe];
|
|
7233
7234
|
},
|
|
7234
|
-
removeEventListener: (oe,
|
|
7235
|
-
f[oe] = f[oe].filter((
|
|
7235
|
+
removeEventListener: (oe, Pe) => {
|
|
7236
|
+
f[oe] = f[oe].filter((me) => me !== Pe);
|
|
7236
7237
|
},
|
|
7237
7238
|
sendVoicePlusContext: (oe) => {
|
|
7238
7239
|
H({ context: oe });
|
|
@@ -13047,8 +13048,8 @@ function ZT() {
|
|
|
13047
13048
|
}
|
|
13048
13049
|
if (typeof Y === t)
|
|
13049
13050
|
try {
|
|
13050
|
-
var fe = window.document.cookie,
|
|
13051
|
-
We !== -1 && (Y = /^([^;]+)/.exec(fe.slice(We +
|
|
13051
|
+
var fe = window.document.cookie, Ie = encodeURIComponent(F), We = fe.indexOf(Ie + "=");
|
|
13052
|
+
We !== -1 && (Y = /^([^;]+)/.exec(fe.slice(We + Ie.length + 1))[1]);
|
|
13052
13053
|
} catch {
|
|
13053
13054
|
}
|
|
13054
13055
|
return z.levels[Y] === void 0 && (Y = void 0), Y;
|
|
@@ -13274,7 +13275,7 @@ function s2() {
|
|
|
13274
13275
|
if (typeof fe == "function")
|
|
13275
13276
|
e(fe, this, G);
|
|
13276
13277
|
else
|
|
13277
|
-
for (var
|
|
13278
|
+
for (var Ie = fe.length, We = N(fe, Ie), se = 0; se < Ie; ++se) e(We[se], this, G);
|
|
13278
13279
|
return !0;
|
|
13279
13280
|
};
|
|
13280
13281
|
function p(L, F, G, se) {
|
|
@@ -15084,10 +15085,10 @@ var m0;
|
|
|
15084
15085
|
(function(n) {
|
|
15085
15086
|
n[n.InvalidKey = 0] = "InvalidKey", n[n.MissingKey = 1] = "MissingKey", n[n.InternalError = 2] = "InternalError";
|
|
15086
15087
|
})(m0 || (m0 = {}));
|
|
15087
|
-
var
|
|
15088
|
+
var _e;
|
|
15088
15089
|
(function(n) {
|
|
15089
15090
|
n.Connected = "connected", n.Reconnecting = "reconnecting", n.SignalReconnecting = "signalReconnecting", n.Reconnected = "reconnected", n.Disconnected = "disconnected", n.ConnectionStateChanged = "connectionStateChanged", n.Moved = "moved", n.MediaDevicesChanged = "mediaDevicesChanged", n.ParticipantConnected = "participantConnected", n.ParticipantDisconnected = "participantDisconnected", n.TrackPublished = "trackPublished", n.TrackSubscribed = "trackSubscribed", n.TrackSubscriptionFailed = "trackSubscriptionFailed", n.TrackUnpublished = "trackUnpublished", n.TrackUnsubscribed = "trackUnsubscribed", n.TrackMuted = "trackMuted", n.TrackUnmuted = "trackUnmuted", n.LocalTrackPublished = "localTrackPublished", n.LocalTrackUnpublished = "localTrackUnpublished", n.LocalAudioSilenceDetected = "localAudioSilenceDetected", n.ActiveSpeakersChanged = "activeSpeakersChanged", n.ParticipantMetadataChanged = "participantMetadataChanged", n.ParticipantNameChanged = "participantNameChanged", n.ParticipantAttributesChanged = "participantAttributesChanged", n.ParticipantActive = "participantActive", n.RoomMetadataChanged = "roomMetadataChanged", n.DataReceived = "dataReceived", n.SipDTMFReceived = "sipDTMFReceived", n.TranscriptionReceived = "transcriptionReceived", n.ConnectionQualityChanged = "connectionQualityChanged", n.TrackStreamStateChanged = "trackStreamStateChanged", n.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", n.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", n.AudioPlaybackStatusChanged = "audioPlaybackChanged", n.VideoPlaybackStatusChanged = "videoPlaybackChanged", n.MediaDevicesError = "mediaDevicesError", n.ParticipantPermissionsChanged = "participantPermissionsChanged", n.SignalConnected = "signalConnected", n.RecordingStatusChanged = "recordingStatusChanged", n.ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", n.EncryptionError = "encryptionError", n.DCBufferStatusChanged = "dcBufferStatusChanged", n.ActiveDeviceChanged = "activeDeviceChanged", n.ChatMessage = "chatMessage", n.LocalTrackSubscribed = "localTrackSubscribed", n.MetricsReceived = "metricsReceived";
|
|
15090
|
-
})(
|
|
15091
|
+
})(_e || (_e = {}));
|
|
15091
15092
|
var Oe;
|
|
15092
15093
|
(function(n) {
|
|
15093
15094
|
n.TrackPublished = "trackPublished", n.TrackSubscribed = "trackSubscribed", n.TrackSubscriptionFailed = "trackSubscriptionFailed", n.TrackUnpublished = "trackUnpublished", n.TrackUnsubscribed = "trackUnsubscribed", n.TrackMuted = "trackMuted", n.TrackUnmuted = "trackUnmuted", n.LocalTrackPublished = "localTrackPublished", n.LocalTrackUnpublished = "localTrackUnpublished", n.LocalTrackCpuConstrained = "localTrackCpuConstrained", n.LocalSenderCreated = "localSenderCreated", n.ParticipantMetadataChanged = "participantMetadataChanged", n.ParticipantNameChanged = "participantNameChanged", n.DataReceived = "dataReceived", n.SipDTMFReceived = "sipDTMFReceived", n.TranscriptionReceived = "transcriptionReceived", n.IsSpeakingChanged = "isSpeakingChanged", n.ConnectionQualityChanged = "connectionQualityChanged", n.TrackStreamStateChanged = "trackStreamStateChanged", n.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", n.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", n.TrackCpuConstrained = "trackCpuConstrained", n.MediaDevicesError = "mediaDevicesError", n.AudioStreamAcquired = "audioStreamAcquired", n.ParticipantPermissionsChanged = "participantPermissionsChanged", n.PCTrackAdded = "pcTrackAdded", n.AttributesChanged = "attributesChanged", n.LocalTrackSubscribed = "localTrackSubscribed", n.ChatMessage = "chatMessage", n.Active = "active";
|
|
@@ -16091,13 +16092,13 @@ class o_ extends Ai.EventEmitter {
|
|
|
16091
16092
|
});
|
|
16092
16093
|
}
|
|
16093
16094
|
setupEventListeners(e, t) {
|
|
16094
|
-
e.on(
|
|
16095
|
+
e.on(_e.TrackPublished, (r, o) => this.setParticipantCryptorEnabled(r.trackInfo.encryption !== un.NONE, o.identity)), e.on(_e.ConnectionStateChanged, (r) => {
|
|
16095
16096
|
r === wt.Connected && e.remoteParticipants.forEach((o) => {
|
|
16096
16097
|
o.trackPublications.forEach((a) => {
|
|
16097
16098
|
this.setParticipantCryptorEnabled(a.trackInfo.encryption !== un.NONE, o.identity);
|
|
16098
16099
|
});
|
|
16099
16100
|
});
|
|
16100
|
-
}).on(
|
|
16101
|
+
}).on(_e.TrackUnsubscribed, (r, o, a) => {
|
|
16101
16102
|
var l;
|
|
16102
16103
|
const u = {
|
|
16103
16104
|
kind: "removeTransform",
|
|
@@ -16107,9 +16108,9 @@ class o_ extends Ai.EventEmitter {
|
|
|
16107
16108
|
}
|
|
16108
16109
|
};
|
|
16109
16110
|
(l = this.worker) === null || l === void 0 || l.postMessage(u);
|
|
16110
|
-
}).on(
|
|
16111
|
+
}).on(_e.TrackSubscribed, (r, o, a) => {
|
|
16111
16112
|
this.setupE2EEReceiver(r, a.identity, o.trackInfo);
|
|
16112
|
-
}).on(
|
|
16113
|
+
}).on(_e.SignalConnected, () => {
|
|
16113
16114
|
if (!this.room)
|
|
16114
16115
|
throw new TypeError("expected room to be present on signal connect");
|
|
16115
16116
|
t.getKeys().forEach((r) => {
|
|
@@ -22583,9 +22584,9 @@ class cx extends j1 {
|
|
|
22583
22584
|
if (e.sender = yield this.engine.createSender(e, t, L), this.emit(Oe.LocalSenderCreated, e.sender, e), Mo(e) && (($ = t.degradationPreference) !== null && $ !== void 0 || (t.degradationPreference = H_(e)), e.setDegradationPreference(t.degradationPreference)), L)
|
|
22584
22585
|
if (Ls() && e.kind === ge.Kind.Audio) {
|
|
22585
22586
|
let fe;
|
|
22586
|
-
for (const
|
|
22587
|
-
if (
|
|
22588
|
-
fe =
|
|
22587
|
+
for (const Ie of this.engine.pcManager.publisher.getTransceivers())
|
|
22588
|
+
if (Ie.sender === e.sender) {
|
|
22589
|
+
fe = Ie;
|
|
22589
22590
|
break;
|
|
22590
22591
|
}
|
|
22591
22592
|
fe && this.engine.pcManager.publisher.setTrackCodecBitrate({
|
|
@@ -22606,9 +22607,9 @@ class cx extends j1 {
|
|
|
22606
22607
|
try {
|
|
22607
22608
|
G = yield this.engine.addTrack(U), $(G);
|
|
22608
22609
|
} catch (fe) {
|
|
22609
|
-
e.sender && (!((Y = this.engine.pcManager) === null || Y === void 0) && Y.publisher) && (this.engine.pcManager.publisher.removeTrack(e.sender), yield this.engine.negotiate().catch((
|
|
22610
|
+
e.sender && (!((Y = this.engine.pcManager) === null || Y === void 0) && Y.publisher) && (this.engine.pcManager.publisher.removeTrack(e.sender), yield this.engine.negotiate().catch((Ie) => {
|
|
22610
22611
|
this.log.error("failed to negotiate after removing track due to failed add track request", Object.assign(Object.assign(Object.assign({}, this.logContext), ht(e)), {
|
|
22611
|
-
error:
|
|
22612
|
+
error: Ie
|
|
22612
22613
|
}));
|
|
22613
22614
|
})), q(fe);
|
|
22614
22615
|
}
|
|
@@ -22645,12 +22646,12 @@ class cx extends j1 {
|
|
|
22645
22646
|
}
|
|
22646
22647
|
this.log.debug("finished recording preconnect buffer", Object.assign(Object.assign({}, this.logContext), ht(e))), e.stopPreConnectBuffer();
|
|
22647
22648
|
}
|
|
22648
|
-
}), $ && new Promise((fe,
|
|
22649
|
-
var We, oe,
|
|
22649
|
+
}), $ && new Promise((fe, Ie) => j(this, void 0, void 0, function* () {
|
|
22650
|
+
var We, oe, Pe, me, ce, Ce;
|
|
22650
22651
|
try {
|
|
22651
22652
|
this.log.debug("waiting for agent", Object.assign(Object.assign({}, this.logContext), ht(e)));
|
|
22652
22653
|
const Ve = setTimeout(() => {
|
|
22653
|
-
|
|
22654
|
+
Ie(new Error("agent not active within 10 seconds"));
|
|
22654
22655
|
}, 1e4), Ke = yield this.waitUntilActiveAgentPresent();
|
|
22655
22656
|
clearTimeout(Ve), this.log.debug("sending preconnect buffer", Object.assign(Object.assign({}, this.logContext), ht(e)));
|
|
22656
22657
|
const Xe = yield this.streamBytes({
|
|
@@ -22660,14 +22661,14 @@ class cx extends j1 {
|
|
|
22660
22661
|
destinationIdentities: [Ke.identity],
|
|
22661
22662
|
attributes: {
|
|
22662
22663
|
trackId: Q.trackSid,
|
|
22663
|
-
sampleRate: String((
|
|
22664
|
-
channels: String((
|
|
22664
|
+
sampleRate: String((ce = ee.sampleRate) !== null && ce !== void 0 ? ce : "48000"),
|
|
22665
|
+
channels: String((Ce = ee.channelCount) !== null && Ce !== void 0 ? Ce : "1")
|
|
22665
22666
|
}
|
|
22666
22667
|
});
|
|
22667
22668
|
try {
|
|
22668
22669
|
for (var de = !0, O = to($), te; te = yield O.next(), We = te.done, !We; de = !0) {
|
|
22669
|
-
|
|
22670
|
-
const Fe =
|
|
22670
|
+
me = te.value, de = !1;
|
|
22671
|
+
const Fe = me;
|
|
22671
22672
|
yield Xe.write(Fe);
|
|
22672
22673
|
}
|
|
22673
22674
|
} catch (Fe) {
|
|
@@ -22676,14 +22677,14 @@ class cx extends j1 {
|
|
|
22676
22677
|
};
|
|
22677
22678
|
} finally {
|
|
22678
22679
|
try {
|
|
22679
|
-
!de && !We && (
|
|
22680
|
+
!de && !We && (Pe = O.return) && (yield Pe.call(O));
|
|
22680
22681
|
} finally {
|
|
22681
22682
|
if (oe) throw oe.error;
|
|
22682
22683
|
}
|
|
22683
22684
|
}
|
|
22684
22685
|
yield Xe.close(), fe();
|
|
22685
22686
|
} catch (Ve) {
|
|
22686
|
-
|
|
22687
|
+
Ie(Ve);
|
|
22687
22688
|
}
|
|
22688
22689
|
})).then(() => {
|
|
22689
22690
|
this.log.debug("preconnect buffer sent successfully", Object.assign(Object.assign({}, this.logContext), ht(e)));
|
|
@@ -23542,7 +23543,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23542
23543
|
this.state === wt.Reconnecting || this.isResuming || !((g = this.engine) === null || g === void 0) && g.pendingReconnect ? (this.log.info("Reconnection attempt replaced by new connection attempt", this.logContext), this.recreateEngine()) : this.maybeCreateEngine(), !((C = this.regionUrlProvider) === null || C === void 0) && C.isCloud() && this.engine.setRegionUrlProvider(this.regionUrlProvider), this.acquireAudioContext(), this.connOptions = Object.assign(Object.assign({}, om), f), this.connOptions.rtcConfig && (this.engine.rtcConfig = this.connOptions.rtcConfig), this.connOptions.peerConnectionTimeout && (this.engine.peerConnectionTimeout = this.connOptions.peerConnectionTimeout);
|
|
23543
23544
|
try {
|
|
23544
23545
|
const _ = yield this.connectSignal(l, u, this.engine, this.connOptions, this.options, p);
|
|
23545
|
-
this.applyJoinResponse(_), this.setupLocalParticipantEvents(), this.emit(
|
|
23546
|
+
this.applyJoinResponse(_), this.setupLocalParticipantEvents(), this.emit(_e.SignalConnected);
|
|
23546
23547
|
} catch (_) {
|
|
23547
23548
|
yield this.engine.close(), this.recreateEngine();
|
|
23548
23549
|
const T = new Ct("could not establish signal connection", mt.ServerUnreachable);
|
|
@@ -23557,7 +23558,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23557
23558
|
} catch (_) {
|
|
23558
23559
|
throw yield this.engine.close(), this.recreateEngine(), _;
|
|
23559
23560
|
}
|
|
23560
|
-
dr() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), dr() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(wt.Connected), this.emit(
|
|
23561
|
+
dr() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), dr() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(wt.Connected), this.emit(_e.Connected), this.registerConnectionReconcile();
|
|
23561
23562
|
}), this.disconnect = function() {
|
|
23562
23563
|
for (var l = arguments.length, u = new Array(l), f = 0; f < l; f++)
|
|
23563
23564
|
u[f] = arguments[f];
|
|
@@ -23596,7 +23597,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23596
23597
|
const C = new MediaStream([g]);
|
|
23597
23598
|
p.srcObject = C, document.addEventListener("visibilitychange", () => {
|
|
23598
23599
|
p && (p.srcObject = document.hidden ? null : C, document.hidden || (this.log.debug("page visible again, triggering startAudio to resume playback and update playback status", this.logContext), this.startAudio()));
|
|
23599
|
-
}), document.body.append(p), this.once(
|
|
23600
|
+
}), document.body.append(p), this.once(_e.Disconnected, () => {
|
|
23600
23601
|
p == null || p.remove(), p = null;
|
|
23601
23602
|
});
|
|
23602
23603
|
}
|
|
@@ -23632,7 +23633,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23632
23633
|
this.clearConnectionReconcile(), this.isResuming = !1;
|
|
23633
23634
|
for (const l of this.remoteParticipants.values())
|
|
23634
23635
|
this.handleParticipantDisconnected(l.identity, l);
|
|
23635
|
-
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(
|
|
23636
|
+
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(_e.Reconnecting);
|
|
23636
23637
|
}, this.handleSignalRestarted = (l) => j(this, void 0, void 0, function* () {
|
|
23637
23638
|
this.log.debug("signal reconnected to server, region ".concat(l.serverRegion), Object.assign(Object.assign({}, this.logContext), {
|
|
23638
23639
|
region: l.serverRegion
|
|
@@ -23651,7 +23652,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23651
23652
|
} catch {
|
|
23652
23653
|
return;
|
|
23653
23654
|
}
|
|
23654
|
-
this.setAndEmitConnectionState(wt.Connected), this.emit(
|
|
23655
|
+
this.setAndEmitConnectionState(wt.Connected), this.emit(_e.Reconnected), this.registerConnectionReconcile(), this.emitBufferedEvents();
|
|
23655
23656
|
}), this.handleParticipantUpdates = (l) => {
|
|
23656
23657
|
l.forEach((u) => {
|
|
23657
23658
|
var f;
|
|
@@ -23674,7 +23675,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23674
23675
|
}
|
|
23675
23676
|
}), f[this.localParticipant.sid] || (this.localParticipant.audioLevel = 0, this.localParticipant.setIsSpeaking(!1)), this.remoteParticipants.forEach((p) => {
|
|
23676
23677
|
f[p.sid] || (p.audioLevel = 0, p.setIsSpeaking(!1));
|
|
23677
|
-
}), this.activeSpeakers = u, this.emitWhenConnected(
|
|
23678
|
+
}), this.activeSpeakers = u, this.emitWhenConnected(_e.ActiveSpeakersChanged, u);
|
|
23678
23679
|
}, this.handleSpeakersChanged = (l) => {
|
|
23679
23680
|
const u = /* @__PURE__ */ new Map();
|
|
23680
23681
|
this.activeSpeakers.forEach((p) => {
|
|
@@ -23685,7 +23686,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23685
23686
|
p.sid === this.localParticipant.sid && (g = this.localParticipant), g && (g.audioLevel = p.level, g.setIsSpeaking(p.active), p.active ? u.set(p.sid, g) : u.delete(p.sid));
|
|
23686
23687
|
});
|
|
23687
23688
|
const f = Array.from(u.values());
|
|
23688
|
-
f.sort((p, g) => g.audioLevel - p.audioLevel), this.activeSpeakers = f, this.emitWhenConnected(
|
|
23689
|
+
f.sort((p, g) => g.audioLevel - p.audioLevel), this.activeSpeakers = f, this.emitWhenConnected(_e.ActiveSpeakersChanged, f);
|
|
23689
23690
|
}, this.handleStreamStateUpdate = (l) => {
|
|
23690
23691
|
l.streamStates.forEach((u) => {
|
|
23691
23692
|
const f = this.getRemoteParticipantBySid(u.participantSid);
|
|
@@ -23695,7 +23696,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23695
23696
|
if (!p || !p.track)
|
|
23696
23697
|
return;
|
|
23697
23698
|
const g = ge.streamStateFromProto(u.state);
|
|
23698
|
-
p.track.setStreamState(g), g !== p.track.streamState && (f.emit(Oe.TrackStreamStateChanged, p, p.track.streamState), this.emitWhenConnected(
|
|
23699
|
+
p.track.setStreamState(g), g !== p.track.streamState && (f.emit(Oe.TrackStreamStateChanged, p, p.track.streamState), this.emitWhenConnected(_e.TrackStreamStateChanged, p, p.track.streamState, f));
|
|
23699
23700
|
});
|
|
23700
23701
|
}, this.handleSubscriptionPermissionUpdate = (l) => {
|
|
23701
23702
|
const u = this.getRemoteParticipantBySid(l.participantSid);
|
|
@@ -23728,35 +23729,35 @@ class $a extends Ai.EventEmitter {
|
|
|
23728
23729
|
this.handleIncomingRpcRequest(l.participantIdentity, p.id, p.method, p.payload, p.responseTimeoutMs, p.version);
|
|
23729
23730
|
}
|
|
23730
23731
|
}, this.handleUserPacket = (l, u, f, p) => {
|
|
23731
|
-
this.emit(
|
|
23732
|
+
this.emit(_e.DataReceived, u.payload, l, f, u.topic, p), l == null || l.emit(Oe.DataReceived, u.payload, f, p);
|
|
23732
23733
|
}, this.handleSipDtmf = (l, u) => {
|
|
23733
|
-
this.emit(
|
|
23734
|
+
this.emit(_e.SipDTMFReceived, u, l), l == null || l.emit(Oe.SipDTMFReceived, u);
|
|
23734
23735
|
}, this.handleTranscription = (l, u) => {
|
|
23735
23736
|
const f = u.transcribedParticipantIdentity === this.localParticipant.identity ? this.localParticipant : this.getParticipantByIdentity(u.transcribedParticipantIdentity), p = f == null ? void 0 : f.trackPublications.get(u.trackId), g = q2(u, this.transcriptionReceivedTimes);
|
|
23736
|
-
p == null || p.emit(Ee.TranscriptionReceived, g), f == null || f.emit(Oe.TranscriptionReceived, g, p), this.emit(
|
|
23737
|
+
p == null || p.emit(Ee.TranscriptionReceived, g), f == null || f.emit(Oe.TranscriptionReceived, g, p), this.emit(_e.TranscriptionReceived, g, f, p);
|
|
23737
23738
|
}, this.handleChatMessage = (l, u) => {
|
|
23738
23739
|
const f = G2(u);
|
|
23739
|
-
this.emit(
|
|
23740
|
+
this.emit(_e.ChatMessage, f, l);
|
|
23740
23741
|
}, this.handleMetrics = (l, u) => {
|
|
23741
|
-
this.emit(
|
|
23742
|
+
this.emit(_e.MetricsReceived, l, u);
|
|
23742
23743
|
}, this.handleDataStream = (l, u) => {
|
|
23743
23744
|
this.incomingDataStreamManager.handleDataStreamPacket(l, u);
|
|
23744
23745
|
}, this.bufferedSegments = /* @__PURE__ */ new Map(), this.handleAudioPlaybackStarted = () => {
|
|
23745
|
-
this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(
|
|
23746
|
+
this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(_e.AudioPlaybackStatusChanged, !0));
|
|
23746
23747
|
}, this.handleAudioPlaybackFailed = (l) => {
|
|
23747
23748
|
this.log.warn("could not playback audio", Object.assign(Object.assign({}, this.logContext), {
|
|
23748
23749
|
error: l
|
|
23749
|
-
})), this.canPlaybackAudio && (this.audioEnabled = !1, this.emit(
|
|
23750
|
+
})), this.canPlaybackAudio && (this.audioEnabled = !1, this.emit(_e.AudioPlaybackStatusChanged, !1));
|
|
23750
23751
|
}, this.handleVideoPlaybackStarted = () => {
|
|
23751
|
-
this.isVideoPlaybackBlocked && (this.isVideoPlaybackBlocked = !1, this.emit(
|
|
23752
|
+
this.isVideoPlaybackBlocked && (this.isVideoPlaybackBlocked = !1, this.emit(_e.VideoPlaybackStatusChanged, !0));
|
|
23752
23753
|
}, this.handleVideoPlaybackFailed = () => {
|
|
23753
|
-
this.isVideoPlaybackBlocked || (this.isVideoPlaybackBlocked = !0, this.emit(
|
|
23754
|
+
this.isVideoPlaybackBlocked || (this.isVideoPlaybackBlocked = !0, this.emit(_e.VideoPlaybackStatusChanged, !1));
|
|
23754
23755
|
}, this.handleDeviceChange = () => j(this, void 0, void 0, function* () {
|
|
23755
23756
|
var l;
|
|
23756
|
-
((l = fr()) === null || l === void 0 ? void 0 : l.os) !== "iOS" && (yield this.selectDefaultDevices()), this.emit(
|
|
23757
|
+
((l = fr()) === null || l === void 0 ? void 0 : l.os) !== "iOS" && (yield this.selectDefaultDevices()), this.emit(_e.MediaDevicesChanged);
|
|
23757
23758
|
}), this.handleRoomUpdate = (l) => {
|
|
23758
23759
|
const u = this.roomInfo;
|
|
23759
|
-
this.roomInfo = l, u && u.metadata !== l.metadata && this.emitWhenConnected(
|
|
23760
|
+
this.roomInfo = l, u && u.metadata !== l.metadata && this.emitWhenConnected(_e.RoomMetadataChanged, l.metadata), (u == null ? void 0 : u.activeRecording) !== l.activeRecording && this.emitWhenConnected(_e.RecordingStatusChanged, l.activeRecording);
|
|
23760
23761
|
}, this.handleConnectionQualityUpdate = (l) => {
|
|
23761
23762
|
l.updates.forEach((u) => {
|
|
23762
23763
|
if (u.participantSid === this.localParticipant.sid) {
|
|
@@ -23767,37 +23768,37 @@ class $a extends Ai.EventEmitter {
|
|
|
23767
23768
|
f && f.setConnectionQuality(u.quality);
|
|
23768
23769
|
});
|
|
23769
23770
|
}, this.onLocalParticipantMetadataChanged = (l) => {
|
|
23770
|
-
this.emit(
|
|
23771
|
+
this.emit(_e.ParticipantMetadataChanged, l, this.localParticipant);
|
|
23771
23772
|
}, this.onLocalParticipantNameChanged = (l) => {
|
|
23772
|
-
this.emit(
|
|
23773
|
+
this.emit(_e.ParticipantNameChanged, l, this.localParticipant);
|
|
23773
23774
|
}, this.onLocalAttributesChanged = (l) => {
|
|
23774
|
-
this.emit(
|
|
23775
|
+
this.emit(_e.ParticipantAttributesChanged, l, this.localParticipant);
|
|
23775
23776
|
}, this.onLocalTrackMuted = (l) => {
|
|
23776
|
-
this.emit(
|
|
23777
|
+
this.emit(_e.TrackMuted, l, this.localParticipant);
|
|
23777
23778
|
}, this.onLocalTrackUnmuted = (l) => {
|
|
23778
|
-
this.emit(
|
|
23779
|
+
this.emit(_e.TrackUnmuted, l, this.localParticipant);
|
|
23779
23780
|
}, this.onTrackProcessorUpdate = (l) => {
|
|
23780
23781
|
var u;
|
|
23781
23782
|
(u = l == null ? void 0 : l.onPublish) === null || u === void 0 || u.call(l, this);
|
|
23782
23783
|
}, this.onLocalTrackPublished = (l) => j(this, void 0, void 0, function* () {
|
|
23783
23784
|
var u, f, p, g, C, _;
|
|
23784
|
-
(u = l.track) === null || u === void 0 || u.on(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.on(Ee.Restarted, this.onLocalTrackRestarted), (C = (g = (p = l.track) === null || p === void 0 ? void 0 : p.getProcessor()) === null || g === void 0 ? void 0 : g.onPublish) === null || C === void 0 || C.call(g, this), this.emit(
|
|
23785
|
+
(u = l.track) === null || u === void 0 || u.on(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.on(Ee.Restarted, this.onLocalTrackRestarted), (C = (g = (p = l.track) === null || p === void 0 ? void 0 : p.getProcessor()) === null || g === void 0 ? void 0 : g.onPublish) === null || C === void 0 || C.call(g, this), this.emit(_e.LocalTrackPublished, l, this.localParticipant), Yi(l.track) && (yield l.track.checkForSilence()) && this.emit(_e.LocalAudioSilenceDetected, l);
|
|
23785
23786
|
const T = yield (_ = l.track) === null || _ === void 0 ? void 0 : _.getDeviceId(!1), N = hp(l.source);
|
|
23786
|
-
N && T && T !== this.localParticipant.activeDeviceMap.get(N) && (this.localParticipant.activeDeviceMap.set(N, T), this.emit(
|
|
23787
|
+
N && T && T !== this.localParticipant.activeDeviceMap.get(N) && (this.localParticipant.activeDeviceMap.set(N, T), this.emit(_e.ActiveDeviceChanged, N, T));
|
|
23787
23788
|
}), this.onLocalTrackUnpublished = (l) => {
|
|
23788
23789
|
var u, f;
|
|
23789
|
-
(u = l.track) === null || u === void 0 || u.off(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.off(Ee.Restarted, this.onLocalTrackRestarted), this.emit(
|
|
23790
|
+
(u = l.track) === null || u === void 0 || u.off(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.off(Ee.Restarted, this.onLocalTrackRestarted), this.emit(_e.LocalTrackUnpublished, l, this.localParticipant);
|
|
23790
23791
|
}, this.onLocalTrackRestarted = (l) => j(this, void 0, void 0, function* () {
|
|
23791
23792
|
const u = yield l.getDeviceId(!1), f = hp(l.source);
|
|
23792
|
-
f && u && u !== this.localParticipant.activeDeviceMap.get(f) && (this.log.debug("local track restarted, setting ".concat(f, " ").concat(u, " active"), this.logContext), this.localParticipant.activeDeviceMap.set(f, u), this.emit(
|
|
23793
|
+
f && u && u !== this.localParticipant.activeDeviceMap.get(f) && (this.log.debug("local track restarted, setting ".concat(f, " ").concat(u, " active"), this.logContext), this.localParticipant.activeDeviceMap.set(f, u), this.emit(_e.ActiveDeviceChanged, f, u));
|
|
23793
23794
|
}), this.onLocalConnectionQualityChanged = (l) => {
|
|
23794
|
-
this.emit(
|
|
23795
|
+
this.emit(_e.ConnectionQualityChanged, l, this.localParticipant);
|
|
23795
23796
|
}, this.onMediaDevicesError = (l, u) => {
|
|
23796
|
-
this.emit(
|
|
23797
|
+
this.emit(_e.MediaDevicesError, l, u);
|
|
23797
23798
|
}, this.onLocalParticipantPermissionsChanged = (l) => {
|
|
23798
|
-
this.emit(
|
|
23799
|
+
this.emit(_e.ParticipantPermissionsChanged, l, this.localParticipant);
|
|
23799
23800
|
}, this.onLocalChatMessageSent = (l) => {
|
|
23800
|
-
this.emit(
|
|
23801
|
+
this.emit(_e.ChatMessage, l, this.localParticipant);
|
|
23801
23802
|
}, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, __), e), this.log = io((r = this.options.loggerName) !== null && r !== void 0 ? r : ui.Room), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, E1), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, P1), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, T_), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new X_(), this.outgoingDataStreamManager = new tx(this.engine, this.log), this.disconnectLock = new Qn(), this.localParticipant = new cx("", "", this.engine, this.options, this.rpcHandlers, this.outgoingDataStreamManager), (this.options.e2ee || this.options.encryption) && this.setupE2EE(), this.engine.e2eeManager = this.e2eeManager, this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", Fo(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", Fo(this.options.audioCaptureDefaults.deviceId)), !((o = this.options.audioOutput) === null || o === void 0) && o.deviceId && this.switchActiveDevice("audiooutput", Fo(this.options.audioOutput.deviceId)).catch((l) => this.log.warn("Could not set audio output: ".concat(l.message), this.logContext)), dr()) {
|
|
23802
23803
|
const l = new AbortController();
|
|
23803
23804
|
(a = navigator.mediaDevices) === null || a === void 0 || a.addEventListener("devicechange", this.handleDeviceChange, {
|
|
@@ -23873,8 +23874,8 @@ class $a extends Ai.EventEmitter {
|
|
|
23873
23874
|
var e;
|
|
23874
23875
|
const t = !!this.options.encryption, r = this.options.encryption || this.options.e2ee;
|
|
23875
23876
|
r && ("e2eeManager" in r ? (this.e2eeManager = r.e2eeManager, this.e2eeManager.isDataChannelEncryptionEnabled = t) : this.e2eeManager = new o_(r, t), this.e2eeManager.on(Do.ParticipantEncryptionStatusChanged, (o, a) => {
|
|
23876
|
-
J2(a) && (this.isE2EEEnabled = o), this.emit(
|
|
23877
|
-
}), this.e2eeManager.on(Do.EncryptionError, (o) => this.emit(
|
|
23877
|
+
J2(a) && (this.isE2EEEnabled = o), this.emit(_e.ParticipantEncryptionStatusChanged, o, a);
|
|
23878
|
+
}), this.e2eeManager.on(Do.EncryptionError, (o) => this.emit(_e.EncryptionError, o)), (e = this.e2eeManager) === null || e === void 0 || e.setup(this));
|
|
23878
23879
|
}
|
|
23879
23880
|
get logContext() {
|
|
23880
23881
|
var e;
|
|
@@ -23902,7 +23903,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23902
23903
|
const r = (o) => {
|
|
23903
23904
|
o.sid !== "" && (this.engine.off(Ae.RoomUpdate, r), e(o.sid));
|
|
23904
23905
|
};
|
|
23905
|
-
this.engine.on(Ae.RoomUpdate, r), this.once(
|
|
23906
|
+
this.engine.on(Ae.RoomUpdate, r), this.once(_e.Disconnected, () => {
|
|
23906
23907
|
this.engine.off(Ae.RoomUpdate, r), t("Room disconnected before room server id was available");
|
|
23907
23908
|
});
|
|
23908
23909
|
});
|
|
@@ -23932,15 +23933,15 @@ class $a extends Ai.EventEmitter {
|
|
|
23932
23933
|
}).on(Ae.Disconnected, (e) => {
|
|
23933
23934
|
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, e);
|
|
23934
23935
|
}).on(Ae.ActiveSpeakersUpdate, this.handleActiveSpeakersUpdate).on(Ae.DataPacketReceived, this.handleDataPacket).on(Ae.Resuming, () => {
|
|
23935
|
-
this.clearConnectionReconcile(), this.isResuming = !0, this.log.info("Resuming signal connection", this.logContext), this.setAndEmitConnectionState(wt.SignalReconnecting) && this.emit(
|
|
23936
|
+
this.clearConnectionReconcile(), this.isResuming = !0, this.log.info("Resuming signal connection", this.logContext), this.setAndEmitConnectionState(wt.SignalReconnecting) && this.emit(_e.SignalReconnecting);
|
|
23936
23937
|
}).on(Ae.Resumed, () => {
|
|
23937
|
-
this.registerConnectionReconcile(), this.isResuming = !1, this.log.info("Resumed signal connection", this.logContext), this.updateSubscriptions(), this.emitBufferedEvents(), this.setAndEmitConnectionState(wt.Connected) && this.emit(
|
|
23938
|
+
this.registerConnectionReconcile(), this.isResuming = !1, this.log.info("Resumed signal connection", this.logContext), this.updateSubscriptions(), this.emitBufferedEvents(), this.setAndEmitConnectionState(wt.Connected) && this.emit(_e.Reconnected);
|
|
23938
23939
|
}).on(Ae.SignalResumed, () => {
|
|
23939
23940
|
this.bufferedEvents = [], (this.state === wt.Reconnecting || this.isResuming) && this.sendSyncState();
|
|
23940
23941
|
}).on(Ae.Restarting, this.handleRestarting).on(Ae.SignalRestarted, this.handleSignalRestarted).on(Ae.Offline, () => {
|
|
23941
|
-
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(
|
|
23942
|
+
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(_e.Reconnecting);
|
|
23942
23943
|
}).on(Ae.DCBufferStatusChanged, (e, t) => {
|
|
23943
|
-
this.emit(
|
|
23944
|
+
this.emit(_e.DCBufferStatusChanged, e, t);
|
|
23944
23945
|
}).on(Ae.LocalTrackSubscribed, (e) => {
|
|
23945
23946
|
const t = this.localParticipant.getTrackPublications().find((r) => {
|
|
23946
23947
|
let {
|
|
@@ -23952,11 +23953,11 @@ class $a extends Ai.EventEmitter {
|
|
|
23952
23953
|
this.log.warn("could not find local track subscription for subscribed event", this.logContext);
|
|
23953
23954
|
return;
|
|
23954
23955
|
}
|
|
23955
|
-
this.localParticipant.emit(Oe.LocalTrackSubscribed, t), this.emitWhenConnected(
|
|
23956
|
+
this.localParticipant.emit(Oe.LocalTrackSubscribed, t), this.emitWhenConnected(_e.LocalTrackSubscribed, t, this.localParticipant);
|
|
23956
23957
|
}).on(Ae.RoomMoved, (e) => {
|
|
23957
23958
|
this.log.debug("room moved", e), e.room && this.handleRoomUpdate(e.room), this.remoteParticipants.forEach((t, r) => {
|
|
23958
23959
|
this.handleParticipantDisconnected(r, t);
|
|
23959
|
-
}), this.emit(
|
|
23960
|
+
}), this.emit(_e.Moved, e.room.name), e.participant ? this.handleParticipantUpdates([e.participant, ...e.otherParticipants]) : this.handleParticipantUpdates(e.otherParticipants);
|
|
23960
23961
|
}), this.localParticipant && this.localParticipant.setupEngine(this.engine), this.e2eeManager && this.e2eeManager.setupEngine(this.engine), this.outgoingDataStreamManager && this.outgoingDataStreamManager.setupEngine(this.engine));
|
|
23961
23962
|
}
|
|
23962
23963
|
/**
|
|
@@ -24203,7 +24204,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24203
24204
|
throw a.options.audioOutput.deviceId = z, ee;
|
|
24204
24205
|
}
|
|
24205
24206
|
}
|
|
24206
|
-
return A && (a.localParticipant.activeDeviceMap.set(r, o), a.emit(
|
|
24207
|
+
return A && (a.localParticipant.activeDeviceMap.set(r, o), a.emit(_e.ActiveDeviceChanged, r, o)), N;
|
|
24207
24208
|
}();
|
|
24208
24209
|
});
|
|
24209
24210
|
}
|
|
@@ -24223,9 +24224,9 @@ class $a extends Ai.EventEmitter {
|
|
|
24223
24224
|
tracksInStream: t.getTracks().map((T) => T.id)
|
|
24224
24225
|
}), this.onTrackAdded(e, t, r), _();
|
|
24225
24226
|
}, _ = () => {
|
|
24226
|
-
this.off(
|
|
24227
|
+
this.off(_e.Reconnected, C), this.off(_e.Connected, C), this.off(_e.Disconnected, _);
|
|
24227
24228
|
};
|
|
24228
|
-
this.once(
|
|
24229
|
+
this.once(_e.Reconnected, C), this.once(_e.Connected, C), this.once(_e.Disconnected, _);
|
|
24229
24230
|
return;
|
|
24230
24231
|
}
|
|
24231
24232
|
if (this.state === wt.Disconnected) {
|
|
@@ -24263,7 +24264,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24263
24264
|
let p;
|
|
24264
24265
|
this.options.adaptiveStream && (typeof this.options.adaptiveStream == "object" ? p = this.options.adaptiveStream : p = {});
|
|
24265
24266
|
const g = f.addSubscribedMediaTrack(e, u, t, r, p);
|
|
24266
|
-
g != null && g.isEncrypted && !this.e2eeManager && this.emit(
|
|
24267
|
+
g != null && g.isEncrypted && !this.e2eeManager && this.emit(_e.EncryptionError, new Error("Encrypted ".concat(g.source, " track received from participant ").concat(f.sid, ", but room does not have encryption enabled!")));
|
|
24267
24268
|
}
|
|
24268
24269
|
handleDisconnect() {
|
|
24269
24270
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
@@ -24280,7 +24281,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24280
24281
|
o.track && this.localParticipant.unpublishTrack(o.track, e), e ? ((a = o.track) === null || a === void 0 || a.detach(), (l = o.track) === null || l === void 0 || l.stop()) : (u = o.track) === null || u === void 0 || u.stopMonitor();
|
|
24281
24282
|
}), this.localParticipant.off(Oe.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(Oe.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(Oe.AttributesChanged, this.onLocalAttributesChanged).off(Oe.TrackMuted, this.onLocalTrackMuted).off(Oe.TrackUnmuted, this.onLocalTrackUnmuted).off(Oe.LocalTrackPublished, this.onLocalTrackPublished).off(Oe.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(Oe.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(Oe.MediaDevicesError, this.onMediaDevicesError).off(Oe.AudioStreamAcquired, this.startAudio).off(Oe.ChatMessage, this.onLocalChatMessageSent).off(Oe.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.trackPublications.clear(), this.localParticipant.videoTrackPublications.clear(), this.localParticipant.audioTrackPublications.clear(), this.remoteParticipants.clear(), this.sidToIdentity.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.webAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), dr() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (r = navigator.mediaDevices) === null || r === void 0 || r.removeEventListener("devicechange", this.handleDeviceChange));
|
|
24282
24283
|
} finally {
|
|
24283
|
-
this.setAndEmitConnectionState(wt.Disconnected), this.emit(
|
|
24284
|
+
this.setAndEmitConnectionState(wt.Disconnected), this.emit(_e.Disconnected, t);
|
|
24284
24285
|
}
|
|
24285
24286
|
}
|
|
24286
24287
|
}
|
|
@@ -24288,7 +24289,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24288
24289
|
var r;
|
|
24289
24290
|
this.remoteParticipants.delete(e), t && (this.incomingDataStreamManager.validateParticipantHasNoActiveDataStreams(e), t.trackPublications.forEach((o) => {
|
|
24290
24291
|
t.unpublishTrack(o.trackSid, !0);
|
|
24291
|
-
}), this.emit(
|
|
24292
|
+
}), this.emit(_e.ParticipantDisconnected, t), t.setDisconnected(), (r = this.localParticipant) === null || r === void 0 || r.handleParticipantDisconnected(t.identity));
|
|
24292
24293
|
}
|
|
24293
24294
|
handleIncomingRpcRequest(e, t, r, o, a, l) {
|
|
24294
24295
|
return j(this, void 0, void 0, function* () {
|
|
@@ -24326,7 +24327,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24326
24327
|
if ((l == null ? void 0 : l.name) === "Chrome" && l.os !== "iOS")
|
|
24327
24328
|
for (let f of a) {
|
|
24328
24329
|
const p = o.find((g) => g.deviceId === f.deviceId);
|
|
24329
|
-
p && p.label !== "" && p.kind === f.kind && p.label !== f.label && this.getActiveDevice(f.kind) === "default" && this.emit(
|
|
24330
|
+
p && p.label !== "" && p.kind === f.kind && p.label !== f.label && this.getActiveDevice(f.kind) === "default" && this.emit(_e.ActiveDeviceChanged, f.kind, f.deviceId);
|
|
24330
24331
|
}
|
|
24331
24332
|
const u = ["audiooutput", "audioinput", "videoinput"];
|
|
24332
24333
|
for (let f of u) {
|
|
@@ -24355,7 +24356,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24355
24356
|
}));
|
|
24356
24357
|
}
|
|
24357
24358
|
const r = ((t = this.audioContext) === null || t === void 0 ? void 0 : t.state) === "running";
|
|
24358
|
-
r !== this.canPlaybackAudio && (this.audioEnabled = r, this.emit(
|
|
24359
|
+
r !== this.canPlaybackAudio && (this.audioEnabled = r, this.emit(_e.AudioPlaybackStatusChanged, r));
|
|
24359
24360
|
});
|
|
24360
24361
|
}
|
|
24361
24362
|
createParticipant(e, t) {
|
|
@@ -24375,36 +24376,36 @@ class $a extends Ai.EventEmitter {
|
|
|
24375
24376
|
return t && o.updateInfo(t) && this.sidToIdentity.set(t.sid, t.identity), o;
|
|
24376
24377
|
}
|
|
24377
24378
|
const r = this.createParticipant(e, t);
|
|
24378
|
-
return this.remoteParticipants.set(e, r), this.sidToIdentity.set(t.sid, t.identity), this.emitWhenConnected(
|
|
24379
|
-
this.emitWhenConnected(
|
|
24379
|
+
return this.remoteParticipants.set(e, r), this.sidToIdentity.set(t.sid, t.identity), this.emitWhenConnected(_e.ParticipantConnected, r), r.on(Oe.TrackPublished, (o) => {
|
|
24380
|
+
this.emitWhenConnected(_e.TrackPublished, o, r);
|
|
24380
24381
|
}).on(Oe.TrackSubscribed, (o, a) => {
|
|
24381
|
-
o.kind === ge.Kind.Audio ? (o.on(Ee.AudioPlaybackStarted, this.handleAudioPlaybackStarted), o.on(Ee.AudioPlaybackFailed, this.handleAudioPlaybackFailed)) : o.kind === ge.Kind.Video && (o.on(Ee.VideoPlaybackFailed, this.handleVideoPlaybackFailed), o.on(Ee.VideoPlaybackStarted, this.handleVideoPlaybackStarted)), this.emit(
|
|
24382
|
+
o.kind === ge.Kind.Audio ? (o.on(Ee.AudioPlaybackStarted, this.handleAudioPlaybackStarted), o.on(Ee.AudioPlaybackFailed, this.handleAudioPlaybackFailed)) : o.kind === ge.Kind.Video && (o.on(Ee.VideoPlaybackFailed, this.handleVideoPlaybackFailed), o.on(Ee.VideoPlaybackStarted, this.handleVideoPlaybackStarted)), this.emit(_e.TrackSubscribed, o, a, r);
|
|
24382
24383
|
}).on(Oe.TrackUnpublished, (o) => {
|
|
24383
|
-
this.emit(
|
|
24384
|
+
this.emit(_e.TrackUnpublished, o, r);
|
|
24384
24385
|
}).on(Oe.TrackUnsubscribed, (o, a) => {
|
|
24385
|
-
this.emit(
|
|
24386
|
+
this.emit(_e.TrackUnsubscribed, o, a, r);
|
|
24386
24387
|
}).on(Oe.TrackMuted, (o) => {
|
|
24387
|
-
this.emitWhenConnected(
|
|
24388
|
+
this.emitWhenConnected(_e.TrackMuted, o, r);
|
|
24388
24389
|
}).on(Oe.TrackUnmuted, (o) => {
|
|
24389
|
-
this.emitWhenConnected(
|
|
24390
|
+
this.emitWhenConnected(_e.TrackUnmuted, o, r);
|
|
24390
24391
|
}).on(Oe.ParticipantMetadataChanged, (o) => {
|
|
24391
|
-
this.emitWhenConnected(
|
|
24392
|
+
this.emitWhenConnected(_e.ParticipantMetadataChanged, o, r);
|
|
24392
24393
|
}).on(Oe.ParticipantNameChanged, (o) => {
|
|
24393
|
-
this.emitWhenConnected(
|
|
24394
|
+
this.emitWhenConnected(_e.ParticipantNameChanged, o, r);
|
|
24394
24395
|
}).on(Oe.AttributesChanged, (o) => {
|
|
24395
|
-
this.emitWhenConnected(
|
|
24396
|
+
this.emitWhenConnected(_e.ParticipantAttributesChanged, o, r);
|
|
24396
24397
|
}).on(Oe.ConnectionQualityChanged, (o) => {
|
|
24397
|
-
this.emitWhenConnected(
|
|
24398
|
+
this.emitWhenConnected(_e.ConnectionQualityChanged, o, r);
|
|
24398
24399
|
}).on(Oe.ParticipantPermissionsChanged, (o) => {
|
|
24399
|
-
this.emitWhenConnected(
|
|
24400
|
+
this.emitWhenConnected(_e.ParticipantPermissionsChanged, o, r);
|
|
24400
24401
|
}).on(Oe.TrackSubscriptionStatusChanged, (o, a) => {
|
|
24401
|
-
this.emitWhenConnected(
|
|
24402
|
+
this.emitWhenConnected(_e.TrackSubscriptionStatusChanged, o, a, r);
|
|
24402
24403
|
}).on(Oe.TrackSubscriptionFailed, (o, a) => {
|
|
24403
|
-
this.emit(
|
|
24404
|
+
this.emit(_e.TrackSubscriptionFailed, o, r, a);
|
|
24404
24405
|
}).on(Oe.TrackSubscriptionPermissionChanged, (o, a) => {
|
|
24405
|
-
this.emitWhenConnected(
|
|
24406
|
+
this.emitWhenConnected(_e.TrackSubscriptionPermissionChanged, o, a, r);
|
|
24406
24407
|
}).on(Oe.Active, () => {
|
|
24407
|
-
this.emitWhenConnected(
|
|
24408
|
+
this.emitWhenConnected(_e.ParticipantActive, r), r.kind === cc.AGENT && this.localParticipant.setActiveAgent(r);
|
|
24408
24409
|
}), t && r.updateInfo(t), r;
|
|
24409
24410
|
}
|
|
24410
24411
|
sendSyncState() {
|
|
@@ -24445,7 +24446,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24445
24446
|
this.connectionReconcileInterval && En.clearInterval(this.connectionReconcileInterval);
|
|
24446
24447
|
}
|
|
24447
24448
|
setAndEmitConnectionState(e) {
|
|
24448
|
-
return e === this.state ? !1 : (this.state = e, this.emit(
|
|
24449
|
+
return e === this.state ? !1 : (this.state = e, this.emit(_e.ConnectionStateChanged, this.state), !0);
|
|
24449
24450
|
}
|
|
24450
24451
|
emitBufferedEvents() {
|
|
24451
24452
|
this.bufferedEvents.forEach((e) => {
|
|
@@ -24495,7 +24496,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24495
24496
|
}), this.localParticipant.updateInfo(new Os({
|
|
24496
24497
|
identity: "simulated-local",
|
|
24497
24498
|
name: "local-name"
|
|
24498
|
-
})), this.setupLocalParticipantEvents(), this.emit(
|
|
24499
|
+
})), this.setupLocalParticipantEvents(), this.emit(_e.SignalConnected), this.emit(_e.Connected), this.setAndEmitConnectionState(wt.Connected), o.video) {
|
|
24499
24500
|
const l = new yp(ge.Kind.Video, new Aa({
|
|
24500
24501
|
source: nn.CAMERA,
|
|
24501
24502
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
@@ -24561,9 +24562,9 @@ class $a extends Ai.EventEmitter {
|
|
|
24561
24562
|
emit(e) {
|
|
24562
24563
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
24563
24564
|
r[o - 1] = arguments[o];
|
|
24564
|
-
if (e !==
|
|
24565
|
+
if (e !== _e.ActiveSpeakersChanged && e !== _e.TranscriptionReceived) {
|
|
24565
24566
|
const a = F1(r).filter((l) => l !== void 0);
|
|
24566
|
-
(e ===
|
|
24567
|
+
(e === _e.TrackSubscribed || e === _e.TrackUnsubscribed) && this.log.trace("subscribe trace: ".concat(e), Object.assign(Object.assign({}, this.logContext), {
|
|
24567
24568
|
event: e,
|
|
24568
24569
|
args: a
|
|
24569
24570
|
})), this.log.debug("room event ".concat(e), Object.assign(Object.assign({}, this.logContext), {
|
|
@@ -24624,9 +24625,9 @@ class zo extends Ai.EventEmitter {
|
|
|
24624
24625
|
switchProtocol(e) {
|
|
24625
24626
|
return j(this, void 0, void 0, function* () {
|
|
24626
24627
|
let t = !1, r = !1;
|
|
24627
|
-
if (this.room.on(
|
|
24628
|
+
if (this.room.on(_e.Reconnecting, () => {
|
|
24628
24629
|
t = !0;
|
|
24629
|
-
}), this.room.once(
|
|
24630
|
+
}), this.room.once(_e.Reconnected, () => {
|
|
24630
24631
|
r = !0;
|
|
24631
24632
|
}), this.room.simulateScenario("force-".concat(e)), yield new Promise((a) => setTimeout(a, 1e3)), !t)
|
|
24632
24633
|
return;
|
|
@@ -24867,7 +24868,7 @@ class gx extends zo {
|
|
|
24867
24868
|
}), u = () => {
|
|
24868
24869
|
r = !0;
|
|
24869
24870
|
};
|
|
24870
|
-
t.on(
|
|
24871
|
+
t.on(_e.SignalReconnecting, u).on(_e.Reconnecting, u).on(_e.Reconnected, () => {
|
|
24871
24872
|
o = !0, a(!0);
|
|
24872
24873
|
}), (e = t.engine.client.ws) === null || e === void 0 || e.close();
|
|
24873
24874
|
const f = t.engine.client.onClose;
|
|
@@ -24911,7 +24912,7 @@ class yx extends zo {
|
|
|
24911
24912
|
perform() {
|
|
24912
24913
|
return j(this, void 0, void 0, function* () {
|
|
24913
24914
|
let e = !1, t = !1;
|
|
24914
|
-
this.room.on(
|
|
24915
|
+
this.room.on(_e.SignalConnected, () => {
|
|
24915
24916
|
var r;
|
|
24916
24917
|
const o = this.room.engine.client.onTrickle;
|
|
24917
24918
|
this.room.engine.client.onTrickle = (a, l) => {
|
|
@@ -25248,19 +25249,19 @@ const jx = (n) => {
|
|
|
25248
25249
|
const Q = new $a();
|
|
25249
25250
|
_.current = Q, N.current = await navigator.mediaDevices.getUserMedia({
|
|
25250
25251
|
audio: !0
|
|
25251
|
-
}), Q.on(
|
|
25252
|
+
}), Q.on(_e.TrackSubscribed, G), Q.on(_e.ActiveSpeakersChanged, F), Q.localParticipant.on(
|
|
25252
25253
|
Oe.IsSpeakingChanged,
|
|
25253
25254
|
se
|
|
25254
|
-
), Q.on(
|
|
25255
|
+
), Q.on(_e.MediaDevicesError, () => {
|
|
25255
25256
|
console.info("media devices error");
|
|
25256
|
-
}), Q.on(
|
|
25257
|
+
}), Q.on(_e.Disconnected, () => {
|
|
25257
25258
|
a("terminated"), u(!1), p(!1), z();
|
|
25258
25259
|
}), n.setRequestOverride(($) => {
|
|
25259
25260
|
const Y = new TextEncoder().encode(JSON.stringify($.request));
|
|
25260
25261
|
Q.localParticipant.publishData(Y).catch((fe) => {
|
|
25261
25262
|
console.error("Failed to publish data to LiveKit:", fe);
|
|
25262
25263
|
});
|
|
25263
|
-
}), Q.on(
|
|
25264
|
+
}), Q.on(_e.DataReceived, ($, q) => {
|
|
25264
25265
|
C((Y) => [
|
|
25265
25266
|
...Y,
|
|
25266
25267
|
{
|
|
@@ -27547,12 +27548,12 @@ const ny = 8, zE = ({
|
|
|
27547
27548
|
}, F = t != null && o, G = () => {
|
|
27548
27549
|
g("Something went wrong. Please try again.");
|
|
27549
27550
|
}, se = (Q) => {
|
|
27550
|
-
var
|
|
27551
|
+
var Ie, We;
|
|
27551
27552
|
if (t == null) {
|
|
27552
27553
|
G();
|
|
27553
27554
|
return;
|
|
27554
27555
|
}
|
|
27555
|
-
const $ = (We = (
|
|
27556
|
+
const $ = (We = (Ie = Q.target) == null ? void 0 : Ie.files) == null ? void 0 : We[0];
|
|
27556
27557
|
if ($ == null) {
|
|
27557
27558
|
G();
|
|
27558
27559
|
return;
|
|
@@ -28393,7 +28394,7 @@ function ok(n) {
|
|
|
28393
28394
|
isEmbeddedInLabel: L.isEmbeddedInLabel,
|
|
28394
28395
|
isReferenced: !1,
|
|
28395
28396
|
recursion: !0
|
|
28396
|
-
}),
|
|
28397
|
+
}), Ie = jt(Y) ? T(Y).getPropertyValue("display") : "inline", We = Ie !== "inline" ? " " : "";
|
|
28397
28398
|
F += "".concat(We).concat(fe).concat(We);
|
|
28398
28399
|
}), jt(U) && f) {
|
|
28399
28400
|
var $ = g(U, "::after"), q = sy($);
|
|
@@ -28442,9 +28443,9 @@ function ok(n) {
|
|
|
28442
28443
|
}
|
|
28443
28444
|
return null;
|
|
28444
28445
|
} else if (Fn(U) === "img" || Fn(U) === "area") {
|
|
28445
|
-
var
|
|
28446
|
-
if (
|
|
28447
|
-
return
|
|
28446
|
+
var Ie = A(U, "alt");
|
|
28447
|
+
if (Ie !== null)
|
|
28448
|
+
return Ie;
|
|
28448
28449
|
} else if (fP(U)) {
|
|
28449
28450
|
var We = A(U, "label");
|
|
28450
28451
|
if (We !== null)
|
|
@@ -28459,9 +28460,9 @@ function ok(n) {
|
|
|
28459
28460
|
if (U.type === "reset")
|
|
28460
28461
|
return "Reset";
|
|
28461
28462
|
}
|
|
28462
|
-
var
|
|
28463
|
-
if (
|
|
28464
|
-
return t.add(U), si(
|
|
28463
|
+
var Pe = OP(U);
|
|
28464
|
+
if (Pe !== null && Pe.length !== 0)
|
|
28465
|
+
return t.add(U), si(Pe).map(function(de) {
|
|
28465
28466
|
return ee(de, {
|
|
28466
28467
|
isEmbeddedInLabel: !0,
|
|
28467
28468
|
isReferenced: !1,
|
|
@@ -28471,18 +28472,18 @@ function ok(n) {
|
|
|
28471
28472
|
return de.length > 0;
|
|
28472
28473
|
}).join(" ");
|
|
28473
28474
|
if (rd(U) && U.type === "image") {
|
|
28474
|
-
var
|
|
28475
|
-
if (
|
|
28476
|
-
return
|
|
28477
|
-
var
|
|
28478
|
-
return
|
|
28475
|
+
var me = A(U, "alt");
|
|
28476
|
+
if (me !== null)
|
|
28477
|
+
return me;
|
|
28478
|
+
var ce = A(U, "title");
|
|
28479
|
+
return ce !== null ? ce : "Submit Query";
|
|
28479
28480
|
}
|
|
28480
28481
|
if (ro(U, ["button"])) {
|
|
28481
|
-
var
|
|
28482
|
+
var Ce = N(U, {
|
|
28482
28483
|
isEmbeddedInLabel: !1
|
|
28483
28484
|
});
|
|
28484
|
-
if (
|
|
28485
|
-
return
|
|
28485
|
+
if (Ce !== "")
|
|
28486
|
+
return Ce;
|
|
28486
28487
|
}
|
|
28487
28488
|
return null;
|
|
28488
28489
|
}
|
|
@@ -28493,8 +28494,8 @@ function ok(n) {
|
|
|
28493
28494
|
return t.add(U), "";
|
|
28494
28495
|
var F = jt(U) ? U.getAttributeNode("aria-labelledby") : null, G = F !== null && !t.has(F) ? Cd(U, "aria-labelledby") : [];
|
|
28495
28496
|
if (l === "name" && !L.isReferenced && G.length > 0)
|
|
28496
|
-
return t.add(F), G.map(function(
|
|
28497
|
-
return ee(
|
|
28497
|
+
return t.add(F), G.map(function(Ie) {
|
|
28498
|
+
return ee(Ie, {
|
|
28498
28499
|
isEmbeddedInLabel: L.isEmbeddedInLabel,
|
|
28499
28500
|
isReferenced: !0,
|
|
28500
28501
|
// this isn't recursion as specified, otherwise we would skip
|
|
@@ -28520,8 +28521,8 @@ function ok(n) {
|
|
|
28520
28521
|
if (ro(U, ["combobox", "listbox"])) {
|
|
28521
28522
|
t.add(U);
|
|
28522
28523
|
var q = xP(U);
|
|
28523
|
-
return q.length === 0 ? rd(U) ? U.value : "" : si(q).map(function(
|
|
28524
|
-
return ee(
|
|
28524
|
+
return q.length === 0 ? rd(U) ? U.value : "" : si(q).map(function(Ie) {
|
|
28525
|
+
return ee(Ie, {
|
|
28525
28526
|
isEmbeddedInLabel: L.isEmbeddedInLabel,
|
|
28526
28527
|
isReferenced: !1,
|
|
28527
28528
|
recursion: !0
|
|
@@ -28857,9 +28858,9 @@ function KP() {
|
|
|
28857
28858
|
function H() {
|
|
28858
28859
|
function d(B) {
|
|
28859
28860
|
const K = w;
|
|
28860
|
-
v = h = 0, w = /* @__PURE__ */ new Map(), K.forEach((
|
|
28861
|
+
v = h = 0, w = /* @__PURE__ */ new Map(), K.forEach((le) => {
|
|
28861
28862
|
try {
|
|
28862
|
-
|
|
28863
|
+
le(B);
|
|
28863
28864
|
} catch (X) {
|
|
28864
28865
|
console.error(X);
|
|
28865
28866
|
}
|
|
@@ -28876,10 +28877,10 @@ function KP() {
|
|
|
28876
28877
|
I && (document.body.remove(I), I = null), B || (I = document.createElement("div"), I.style.backgroundColor = "black", I.style.position = "fixed", I.style.right = 0, I.style.top = 0, I.style.color = "white", I.style.padding = "4px", I.innerHTML = "RIVE FPS", B = function(K) {
|
|
28877
28878
|
I.innerHTML = "RIVE FPS " + K.toFixed(1);
|
|
28878
28879
|
}, document.body.appendChild(I)), x = new function() {
|
|
28879
|
-
let K = 0,
|
|
28880
|
+
let K = 0, le = 0;
|
|
28880
28881
|
this.Qb = function() {
|
|
28881
28882
|
var X = performance.now();
|
|
28882
|
-
|
|
28883
|
+
le ? (++K, X -= le, 1e3 < X && (B(1e3 * K / X), K = le = 0)) : (le = X, K = 0);
|
|
28883
28884
|
};
|
|
28884
28885
|
}();
|
|
28885
28886
|
}, this.ob = function() {
|
|
@@ -28919,10 +28920,10 @@ function KP() {
|
|
|
28919
28920
|
}, loadContents: function(x) {
|
|
28920
28921
|
let I = T.ptrToAsset(x);
|
|
28921
28922
|
return x = I.cdnUuid, x === "" ? !1 : (function(B, K) {
|
|
28922
|
-
var
|
|
28923
|
-
|
|
28924
|
-
|
|
28925
|
-
},
|
|
28923
|
+
var le = new XMLHttpRequest();
|
|
28924
|
+
le.responseType = "arraybuffer", le.onreadystatechange = function() {
|
|
28925
|
+
le.readyState == 4 && le.status == 200 && K(le);
|
|
28926
|
+
}, le.open("GET", B, !0), le.send(null);
|
|
28926
28927
|
}(I.cdnBaseUrl + "/" + x, (B) => {
|
|
28927
28928
|
I.decode(new Uint8Array(B.response));
|
|
28928
28929
|
}), !0);
|
|
@@ -28937,35 +28938,35 @@ function KP() {
|
|
|
28937
28938
|
return !1;
|
|
28938
28939
|
} });
|
|
28939
28940
|
let w = T.computeAlignment;
|
|
28940
|
-
T.computeAlignment = function(x, I, B, K,
|
|
28941
|
-
return w.call(this, x, I, B, K,
|
|
28941
|
+
T.computeAlignment = function(x, I, B, K, le = 1) {
|
|
28942
|
+
return w.call(this, x, I, B, K, le);
|
|
28942
28943
|
};
|
|
28943
28944
|
};
|
|
28944
28945
|
const U = T.onRuntimeInitialized;
|
|
28945
28946
|
T.onRuntimeInitialized = function() {
|
|
28946
|
-
function d(
|
|
28947
|
-
this.F =
|
|
28947
|
+
function d(pe) {
|
|
28948
|
+
this.F = pe, this.Db = pe.getContext("2d"), this.Gb = w, this.S = [], this.la = 0, this.clear = function() {
|
|
28948
28949
|
console.assert(this.la == 0), this.S = [], x.delete(this);
|
|
28949
28950
|
}, this.save = function() {
|
|
28950
28951
|
++this.la, this.S.push(w.save.bind(w));
|
|
28951
28952
|
}, this.restore = function() {
|
|
28952
28953
|
0 < this.la && (this.S.push(w.restore.bind(w)), --this.la);
|
|
28953
|
-
}, this.transform = function(
|
|
28954
|
-
this.S.push(w.transform.bind(w,
|
|
28955
|
-
}, this.align = function(
|
|
28956
|
-
this.S.push(w.align.bind(w,
|
|
28954
|
+
}, this.transform = function(Re) {
|
|
28955
|
+
this.S.push(w.transform.bind(w, Re));
|
|
28956
|
+
}, this.align = function(Re, $e, Je, tt, vt = 1) {
|
|
28957
|
+
this.S.push(w.align.bind(w, Re, $e, Je, tt, vt));
|
|
28957
28958
|
}, this.flush = function() {
|
|
28958
28959
|
console.assert(this.la == 0), x.add(this), w.$a || v();
|
|
28959
28960
|
}, this.delete = function() {
|
|
28960
28961
|
};
|
|
28961
28962
|
}
|
|
28962
|
-
function h(
|
|
28963
|
-
var $e = { alpha: !0, depth:
|
|
28964
|
-
if (
|
|
28963
|
+
function h(pe, Re = !1) {
|
|
28964
|
+
var $e = { alpha: !0, depth: Re, stencil: Re, antialias: Re, premultipliedAlpha: !0, preserveDrawingBuffer: 0, powerPreference: "high-performance", failIfMajorPerformanceCaveat: 0, enableExtensionsByDefault: !1, explicitSwapControl: 0, renderViaOffscreenBackBuffer: 0 };
|
|
28965
|
+
if (Re = pe.getContext("webgl2", $e), !Re)
|
|
28965
28966
|
return null;
|
|
28966
|
-
$e = $d(
|
|
28967
|
-
const Je = I(
|
|
28968
|
-
Je.Na = $e, Je.F =
|
|
28967
|
+
$e = $d(Re, $e), oa($e);
|
|
28968
|
+
const Je = I(pe.width, pe.height);
|
|
28969
|
+
Je.Na = $e, Je.F = pe, Je.Oa = pe.width, Je.ab = pe.height, Je.T = Re;
|
|
28969
28970
|
var tt = Je.delete;
|
|
28970
28971
|
return Je.delete = function() {
|
|
28971
28972
|
tt.call(this);
|
|
@@ -28975,14 +28976,14 @@ function KP() {
|
|
|
28975
28976
|
}
|
|
28976
28977
|
function v() {
|
|
28977
28978
|
if (w) {
|
|
28978
|
-
var
|
|
28979
|
+
var pe = w.Fb, Re = 0, $e = 0, Je = 0, tt = Array(x.size), vt = 0;
|
|
28979
28980
|
for (var It of x)
|
|
28980
|
-
It.ga = Math.min(It.F.width,
|
|
28981
|
+
It.ga = Math.min(It.F.width, pe), It.fa = Math.min(It.F.height, pe), It.La = It.fa * It.ga, Re = Math.max(Re, It.ga), $e = Math.max($e, It.fa), Je += It.La, tt[vt++] = It;
|
|
28981
28982
|
if (x.clear(), !(0 >= Je)) {
|
|
28982
|
-
for (
|
|
28983
|
-
|
|
28984
|
-
for (
|
|
28985
|
-
for (Je.reset(
|
|
28983
|
+
for (Re = 1 << (0 >= Re ? 0 : 32 - Math.clz32(Re - 1)), $e = 1 << (0 >= $e ? 0 : 32 - Math.clz32($e - 1)); $e * Re < Je; )
|
|
28984
|
+
Re <= $e ? Re *= 2 : $e *= 2;
|
|
28985
|
+
for (Re = Math.min(Re, pe), Re = Math.min($e, pe), tt.sort((Xr, Vi) => Vi.La - Xr.La), Je = new T.DynamicRectanizer(pe), It = 0; It < tt.length; ) {
|
|
28986
|
+
for (Je.reset(Re, $e), vt = It; vt < tt.length; ++vt) {
|
|
28986
28987
|
var Ot = tt[vt], Et = Je.addRect(Ot.ga, Ot.fa);
|
|
28987
28988
|
if (0 > Et) {
|
|
28988
28989
|
console.assert(vt > It);
|
|
@@ -28990,7 +28991,7 @@ function KP() {
|
|
|
28990
28991
|
}
|
|
28991
28992
|
Ot.ra = Et & 65535, Ot.sa = Et >> 16;
|
|
28992
28993
|
}
|
|
28993
|
-
for (Ot =
|
|
28994
|
+
for (Ot = le.push(Je.drawWidth()), Et = X.push(Je.drawHeight()), console.assert(Ot >= Je.drawWidth()), console.assert(Et >= Je.drawHeight()), console.assert(Ot <= pe), console.assert(Et <= pe), w.F.width != Ot && (w.F.width = Ot), w.F.height != Et && (w.F.height = Et), w.clear(), Ot = It; Ot < vt; ++Ot) {
|
|
28994
28995
|
Et = tt[Ot], w.saveClipRect(Et.ra, Et.sa, Et.ra + Et.ga, Et.sa + Et.fa);
|
|
28995
28996
|
let Xr = new T.Mat2D();
|
|
28996
28997
|
Xr.xx = Et.ga / Et.F.width, Xr.yy = Et.fa / Et.F.height, Xr.xy = Xr.yx = 0, Xr.tx = Et.ra, Xr.ty = Et.sa, w.transform(Xr);
|
|
@@ -29008,7 +29009,7 @@ function KP() {
|
|
|
29008
29009
|
U && U();
|
|
29009
29010
|
let w = null;
|
|
29010
29011
|
const x = /* @__PURE__ */ new Set(), I = T.makeRenderer;
|
|
29011
|
-
T.makeRenderer = function(
|
|
29012
|
+
T.makeRenderer = function(pe, Re) {
|
|
29012
29013
|
if (!w) {
|
|
29013
29014
|
let $e = function(Je) {
|
|
29014
29015
|
var tt = document.createElement("canvas");
|
|
@@ -29016,36 +29017,36 @@ function KP() {
|
|
|
29016
29017
|
};
|
|
29017
29018
|
w = $e(!0), w.Ma || (w = $e(!1));
|
|
29018
29019
|
}
|
|
29019
|
-
return
|
|
29020
|
+
return Re ? new d(pe) : h(pe, w.Ma);
|
|
29020
29021
|
};
|
|
29021
29022
|
const B = T.Artboard.prototype.delete;
|
|
29022
29023
|
T.Artboard.prototype.delete = function() {
|
|
29023
29024
|
this.Hb = !0, B.call(this);
|
|
29024
29025
|
};
|
|
29025
29026
|
const K = T.Artboard.prototype.draw;
|
|
29026
|
-
T.Artboard.prototype.draw = function(
|
|
29027
|
-
|
|
29028
|
-
this.Hb || K.call(this,
|
|
29029
|
-
}) : K.call(this,
|
|
29027
|
+
T.Artboard.prototype.draw = function(pe) {
|
|
29028
|
+
pe.S ? pe.S.push(() => {
|
|
29029
|
+
this.Hb || K.call(this, pe.Gb);
|
|
29030
|
+
}) : K.call(this, pe);
|
|
29030
29031
|
};
|
|
29031
|
-
const
|
|
29032
|
-
T.requestAnimationFrame =
|
|
29032
|
+
const le = new z(), X = new z(), Se = new H();
|
|
29033
|
+
T.requestAnimationFrame = Se.requestAnimationFrame.bind(Se), T.cancelAnimationFrame = Se.cancelAnimationFrame.bind(Se), T.enableFPSCounter = Se.Ob.bind(Se), Se.ob = v, T.resolveAnimationFrame = v;
|
|
29033
29034
|
let Me = T.load;
|
|
29034
|
-
T.load = function(
|
|
29035
|
+
T.load = function(pe, Re, $e = !0) {
|
|
29035
29036
|
const Je = new T.FallbackFileAssetLoader();
|
|
29036
|
-
return
|
|
29037
|
+
return Re !== void 0 && Je.addLoader(Re), $e && (Re = new T.CDNFileAssetLoader(), Je.addLoader(Re)), Promise.resolve(Me(pe, Je));
|
|
29037
29038
|
};
|
|
29038
29039
|
const Ne = T.WebGL2Renderer.prototype.clear;
|
|
29039
29040
|
T.WebGL2Renderer.prototype.clear = function() {
|
|
29040
29041
|
oa(this.Na);
|
|
29041
|
-
const
|
|
29042
|
-
(this.Oa !=
|
|
29043
|
-
}, T.decodeImage = function(
|
|
29044
|
-
|
|
29042
|
+
const pe = this.F;
|
|
29043
|
+
(this.Oa != pe.width || this.ab != pe.height) && (this.resize(pe.width, pe.height), this.Oa = pe.width, this.ab = pe.height), Ne.call(this);
|
|
29044
|
+
}, T.decodeImage = function(pe, Re) {
|
|
29045
|
+
pe = T.decodeWebGL2Image(pe), Re(pe);
|
|
29045
29046
|
};
|
|
29046
29047
|
let ne = T.Renderer.prototype.align;
|
|
29047
|
-
T.Renderer.prototype.align = function(
|
|
29048
|
-
ne.call(this,
|
|
29048
|
+
T.Renderer.prototype.align = function(pe, Re, $e, Je, tt = 1) {
|
|
29049
|
+
ne.call(this, pe, Re, $e, Je, tt);
|
|
29049
29050
|
};
|
|
29050
29051
|
};
|
|
29051
29052
|
var L = Object.assign({}, T), F = "./this.program", G = typeof window == "object", se = typeof importScripts == "function", Q = "", $, q;
|
|
@@ -29060,12 +29061,12 @@ function KP() {
|
|
|
29060
29061
|
});
|
|
29061
29062
|
var Y = T.print || console.log.bind(console), fe = T.printErr || console.error.bind(console);
|
|
29062
29063
|
Object.assign(T, L), L = null, T.thisProgram && (F = T.thisProgram);
|
|
29063
|
-
var
|
|
29064
|
-
T.wasmBinary && (
|
|
29065
|
-
var We, oe,
|
|
29064
|
+
var Ie;
|
|
29065
|
+
T.wasmBinary && (Ie = T.wasmBinary), T.noExitRuntime, typeof WebAssembly != "object" && vn("no native wasm support detected");
|
|
29066
|
+
var We, oe, Pe = !1, me, ce, Ce, de, O, te, Ve, Ke;
|
|
29066
29067
|
function Xe() {
|
|
29067
29068
|
var d = We.buffer;
|
|
29068
|
-
T.HEAP8 =
|
|
29069
|
+
T.HEAP8 = me = new Int8Array(d), T.HEAP16 = Ce = new Int16Array(d), T.HEAP32 = O = new Int32Array(d), T.HEAPU8 = ce = new Uint8Array(d), T.HEAPU16 = de = new Uint16Array(d), T.HEAPU32 = te = new Uint32Array(d), T.HEAPF32 = Ve = new Float32Array(d), T.HEAPF64 = Ke = new Float64Array(d);
|
|
29069
29070
|
}
|
|
29070
29071
|
var Fe, et = [], qe = [], dt = [];
|
|
29071
29072
|
function At() {
|
|
@@ -29074,7 +29075,7 @@ function KP() {
|
|
|
29074
29075
|
}
|
|
29075
29076
|
var Ht = 0, er = null;
|
|
29076
29077
|
function vn(d) {
|
|
29077
|
-
throw T.onAbort && T.onAbort(d), d = "Aborted(" + d + ")", fe(d),
|
|
29078
|
+
throw T.onAbort && T.onAbort(d), d = "Aborted(" + d + ")", fe(d), Pe = !0, d = new WebAssembly.RuntimeError(d + ". Build with -sASSERTIONS for more info."), A(d), d;
|
|
29078
29079
|
}
|
|
29079
29080
|
function Tr(d) {
|
|
29080
29081
|
return d.startsWith("data:application/octet-stream;base64,");
|
|
@@ -29085,14 +29086,14 @@ function KP() {
|
|
|
29085
29086
|
_r = T.locateFile ? T.locateFile(so, Q) : Q + so;
|
|
29086
29087
|
}
|
|
29087
29088
|
function Oi(d) {
|
|
29088
|
-
if (d == _r &&
|
|
29089
|
-
return new Uint8Array(
|
|
29089
|
+
if (d == _r && Ie)
|
|
29090
|
+
return new Uint8Array(Ie);
|
|
29090
29091
|
if (q)
|
|
29091
29092
|
return q(d);
|
|
29092
29093
|
throw "both async and sync fetching of the wasm failed";
|
|
29093
29094
|
}
|
|
29094
29095
|
function Us(d) {
|
|
29095
|
-
if (!
|
|
29096
|
+
if (!Ie && (G || se)) {
|
|
29096
29097
|
if (typeof fetch == "function" && !d.startsWith("file://"))
|
|
29097
29098
|
return fetch(d, { credentials: "same-origin" }).then((h) => {
|
|
29098
29099
|
if (!h.ok)
|
|
@@ -29113,7 +29114,7 @@ function KP() {
|
|
|
29113
29114
|
}
|
|
29114
29115
|
function Li(d, h) {
|
|
29115
29116
|
var v = _r;
|
|
29116
|
-
return
|
|
29117
|
+
return Ie || typeof WebAssembly.instantiateStreaming != "function" || Tr(v) || v.startsWith("file://") || typeof fetch != "function" ? yn(v, d, h) : fetch(v, { credentials: "same-origin" }).then((w) => WebAssembly.instantiateStreaming(w, d).then(h, function(x) {
|
|
29117
29118
|
return fe("wasm streaming compile failed: " + x), fe("falling back to ArrayBuffer instantiation"), yn(v, d, h);
|
|
29118
29119
|
}));
|
|
29119
29120
|
}
|
|
@@ -29142,12 +29143,12 @@ function KP() {
|
|
|
29142
29143
|
var K = I.D[B];
|
|
29143
29144
|
K != null && K.J != null && K.state === I.ja.xb && K.J.resume().then(() => {
|
|
29144
29145
|
rr(K.pb);
|
|
29145
|
-
}, (
|
|
29146
|
-
console.error("Failed to resume audiocontext",
|
|
29146
|
+
}, (le) => {
|
|
29147
|
+
console.error("Failed to resume audiocontext", le);
|
|
29147
29148
|
});
|
|
29148
29149
|
}
|
|
29149
|
-
I.Za.map(function(
|
|
29150
|
-
document.removeEventListener(
|
|
29150
|
+
I.Za.map(function(le) {
|
|
29151
|
+
document.removeEventListener(le, I.unlock, !0);
|
|
29151
29152
|
});
|
|
29152
29153
|
}, I.Za.map(function(B) {
|
|
29153
29154
|
document.addEventListener(B, I.unlock, !0);
|
|
@@ -29169,24 +29170,24 @@ function KP() {
|
|
|
29169
29170
|
if (typeof window.h > "u")
|
|
29170
29171
|
return -1;
|
|
29171
29172
|
var B = {}, K = {};
|
|
29172
|
-
return d == window.h.I.Ea && v != 0 && (K.sampleRate = v), B.J = new (window.AudioContext || window.webkitAudioContext)(K), B.J.suspend(), B.state = window.h.ja.stopped, v = 0, d != window.h.I.Ea && (v = h), B.Z = B.J.createScriptProcessor(w, v, h), B.Z.onaudioprocess = function(
|
|
29173
|
+
return d == window.h.I.Ea && v != 0 && (K.sampleRate = v), B.J = new (window.AudioContext || window.webkitAudioContext)(K), B.J.suspend(), B.state = window.h.ja.stopped, v = 0, d != window.h.I.Ea && (v = h), B.Z = B.J.createScriptProcessor(w, v, h), B.Z.onaudioprocess = function(le) {
|
|
29173
29174
|
if ((B.wa == null || B.wa.length == 0) && (B.wa = new Float32Array(Ve.buffer, x, w * h)), d == window.h.I.capture || d == window.h.I.Ra) {
|
|
29174
29175
|
for (var X = 0; X < h; X += 1)
|
|
29175
|
-
for (var
|
|
29176
|
-
Me[Ne * h + X] =
|
|
29176
|
+
for (var Se = le.inputBuffer.getChannelData(X), Me = B.wa, Ne = 0; Ne < w; Ne += 1)
|
|
29177
|
+
Me[Ne * h + X] = Se[Ne];
|
|
29177
29178
|
go(I, w, x);
|
|
29178
29179
|
}
|
|
29179
29180
|
if (d == window.h.I.Ea || d == window.h.I.Ra)
|
|
29180
|
-
for (ml(I, w, x), X = 0; X <
|
|
29181
|
-
for (
|
|
29182
|
-
|
|
29181
|
+
for (ml(I, w, x), X = 0; X < le.outputBuffer.numberOfChannels; ++X)
|
|
29182
|
+
for (Se = le.outputBuffer.getChannelData(X), Me = B.wa, Ne = 0; Ne < w; Ne += 1)
|
|
29183
|
+
Se[Ne] = Me[Ne * h + X];
|
|
29183
29184
|
else
|
|
29184
|
-
for (X = 0; X <
|
|
29185
|
-
|
|
29186
|
-
}, d != window.h.I.capture && d != window.h.I.Ra || navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }).then(function(
|
|
29187
|
-
B.Ha = B.J.createMediaStreamSource(
|
|
29188
|
-
}).catch(function(
|
|
29189
|
-
console.log("Failed to get user media: " +
|
|
29185
|
+
for (X = 0; X < le.outputBuffer.numberOfChannels; ++X)
|
|
29186
|
+
le.outputBuffer.getChannelData(X).fill(0);
|
|
29187
|
+
}, d != window.h.I.capture && d != window.h.I.Ra || navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }).then(function(le) {
|
|
29188
|
+
B.Ha = B.J.createMediaStreamSource(le), B.Ha.connect(B.Z), B.Z.connect(B.J.destination);
|
|
29189
|
+
}).catch(function(le) {
|
|
29190
|
+
console.log("Failed to get user media: " + le);
|
|
29190
29191
|
}), d == window.h.I.Ea && B.Z.connect(B.J.destination), B.pb = I, window.h.rc(B);
|
|
29191
29192
|
}, 539865: (d) => window.h.va(d).J.sampleRate, 539938: (d) => {
|
|
29192
29193
|
d = window.h.va(d), d.Z !== void 0 && (d.Z.onaudioprocess = function() {
|
|
@@ -29439,7 +29440,7 @@ function KP() {
|
|
|
29439
29440
|
h[v + w] = I[x + w];
|
|
29440
29441
|
return d;
|
|
29441
29442
|
}, write(d, h, v, w, x, I) {
|
|
29442
|
-
if (h.buffer ===
|
|
29443
|
+
if (h.buffer === me.buffer && (I = !1), !w)
|
|
29443
29444
|
return 0;
|
|
29444
29445
|
if (d = d.node, d.timestamp = Date.now(), h.subarray && (!d.j || d.j.subarray)) {
|
|
29445
29446
|
if (I)
|
|
@@ -29464,10 +29465,10 @@ function KP() {
|
|
|
29464
29465
|
}, lb(d, h, v, w, x) {
|
|
29465
29466
|
if ((d.node.mode & 61440) !== 32768)
|
|
29466
29467
|
throw new De(43);
|
|
29467
|
-
if (d = d.node.j, x & 2 || d.buffer !==
|
|
29468
|
+
if (d = d.node.j, x & 2 || d.buffer !== me.buffer) {
|
|
29468
29469
|
if ((0 < v || v + h < d.length) && (d.subarray ? d = d.subarray(v, v + h) : d = Array.prototype.slice.call(d, v, v + h)), v = !0, vn(), h = void 0, !h)
|
|
29469
29470
|
throw new De(48);
|
|
29470
|
-
|
|
29471
|
+
me.set(d, h);
|
|
29471
29472
|
} else
|
|
29472
29473
|
v = !1, h = d.byteOffset;
|
|
29473
29474
|
return { o: h, M: v };
|
|
@@ -29672,8 +29673,8 @@ function KP() {
|
|
|
29672
29673
|
I.seekable = !1;
|
|
29673
29674
|
}, close: () => {
|
|
29674
29675
|
v && v.buffer && v.buffer.length && v(10);
|
|
29675
|
-
}, read: (I, B, K,
|
|
29676
|
-
for (var X = 0,
|
|
29676
|
+
}, read: (I, B, K, le) => {
|
|
29677
|
+
for (var X = 0, Se = 0; Se < le; Se++) {
|
|
29677
29678
|
try {
|
|
29678
29679
|
var Me = h();
|
|
29679
29680
|
} catch {
|
|
@@ -29683,17 +29684,17 @@ function KP() {
|
|
|
29683
29684
|
throw new De(6);
|
|
29684
29685
|
if (Me == null)
|
|
29685
29686
|
break;
|
|
29686
|
-
X++, B[K +
|
|
29687
|
+
X++, B[K + Se] = Me;
|
|
29687
29688
|
}
|
|
29688
29689
|
return X && (I.node.timestamp = Date.now()), X;
|
|
29689
|
-
}, write: (I, B, K,
|
|
29690
|
-
for (var X = 0; X <
|
|
29690
|
+
}, write: (I, B, K, le) => {
|
|
29691
|
+
for (var X = 0; X < le; X++)
|
|
29691
29692
|
try {
|
|
29692
29693
|
v(B[K + X]);
|
|
29693
29694
|
} catch {
|
|
29694
29695
|
throw new De(29);
|
|
29695
29696
|
}
|
|
29696
|
-
return
|
|
29697
|
+
return le && (I.node.timestamp = Date.now()), X;
|
|
29697
29698
|
} }), Hs(d, w, x);
|
|
29698
29699
|
}, Gs, Pr = {}, Rn, Ks, kn = void 0;
|
|
29699
29700
|
function qr() {
|
|
@@ -29743,8 +29744,8 @@ function KP() {
|
|
|
29743
29744
|
}
|
|
29744
29745
|
var Xa = void 0, Qs = void 0;
|
|
29745
29746
|
function xt(d) {
|
|
29746
|
-
for (var h = "";
|
|
29747
|
-
h += Qs[
|
|
29747
|
+
for (var h = ""; ce[d]; )
|
|
29748
|
+
h += Qs[ce[d++]];
|
|
29748
29749
|
return h;
|
|
29749
29750
|
}
|
|
29750
29751
|
var Ko = [];
|
|
@@ -29814,16 +29815,16 @@ function KP() {
|
|
|
29814
29815
|
function In(d, h, v) {
|
|
29815
29816
|
function w(K) {
|
|
29816
29817
|
K = v(K), K.length !== d.length && hi("Mismatched type converter count");
|
|
29817
|
-
for (var
|
|
29818
|
-
Mn(d[
|
|
29818
|
+
for (var le = 0; le < d.length; ++le)
|
|
29819
|
+
Mn(d[le], K[le]);
|
|
29819
29820
|
}
|
|
29820
29821
|
d.forEach(function(K) {
|
|
29821
29822
|
ji[K] = h;
|
|
29822
29823
|
});
|
|
29823
29824
|
var x = Array(h.length), I = [], B = 0;
|
|
29824
|
-
h.forEach((K,
|
|
29825
|
-
Gr.hasOwnProperty(K) ? x[
|
|
29826
|
-
x[
|
|
29825
|
+
h.forEach((K, le) => {
|
|
29826
|
+
Gr.hasOwnProperty(K) ? x[le] = Gr[K] : (I.push(K), Ni.hasOwnProperty(K) || (Ni[K] = []), Ni[K].push(() => {
|
|
29827
|
+
x[le] = Gr[K], ++B, B === I.length && w(x);
|
|
29827
29828
|
}));
|
|
29828
29829
|
}), I.length === 0 && w(x);
|
|
29829
29830
|
}
|
|
@@ -29958,22 +29959,22 @@ function KP() {
|
|
|
29958
29959
|
K = !0;
|
|
29959
29960
|
break;
|
|
29960
29961
|
}
|
|
29961
|
-
var
|
|
29962
|
+
var le = h[0].name !== "void", X = I - 2, Se = Array(X), Me = [], Ne = [];
|
|
29962
29963
|
return function() {
|
|
29963
29964
|
if (arguments.length !== X && it(`function ${d} called with ${arguments.length} arguments, expected ${X} args!`), Ne.length = 0, Me.length = B ? 2 : 1, Me[0] = x, B) {
|
|
29964
29965
|
var ne = h[1].toWireType(Ne, this);
|
|
29965
29966
|
Me[1] = ne;
|
|
29966
29967
|
}
|
|
29967
|
-
for (var
|
|
29968
|
-
|
|
29969
|
-
if (
|
|
29968
|
+
for (var pe = 0; pe < X; ++pe)
|
|
29969
|
+
Se[pe] = h[pe + 2].toWireType(Ne, arguments[pe]), Me.push(Se[pe]);
|
|
29970
|
+
if (pe = w.apply(null, Me), K)
|
|
29970
29971
|
Yr(Ne);
|
|
29971
29972
|
else
|
|
29972
|
-
for (var
|
|
29973
|
-
var $e =
|
|
29974
|
-
h[
|
|
29973
|
+
for (var Re = B ? 1 : 2; Re < h.length; Re++) {
|
|
29974
|
+
var $e = Re === 1 ? ne : Se[Re - 2];
|
|
29975
|
+
h[Re].K !== null && h[Re].K($e);
|
|
29975
29976
|
}
|
|
29976
|
-
return ne =
|
|
29977
|
+
return ne = le ? h[0].fromWireType(pe) : void 0, ne;
|
|
29977
29978
|
};
|
|
29978
29979
|
}
|
|
29979
29980
|
function gi(d, h) {
|
|
@@ -29991,11 +29992,11 @@ function KP() {
|
|
|
29991
29992
|
switch (h) {
|
|
29992
29993
|
case 0:
|
|
29993
29994
|
return function(w) {
|
|
29994
|
-
return this.fromWireType((v ?
|
|
29995
|
+
return this.fromWireType((v ? me : ce)[w]);
|
|
29995
29996
|
};
|
|
29996
29997
|
case 1:
|
|
29997
29998
|
return function(w) {
|
|
29998
|
-
return this.fromWireType((v ?
|
|
29999
|
+
return this.fromWireType((v ? Ce : de)[w >> 1]);
|
|
29999
30000
|
};
|
|
30000
30001
|
case 2:
|
|
30001
30002
|
return function(w) {
|
|
@@ -30029,13 +30030,13 @@ function KP() {
|
|
|
30029
30030
|
switch (h) {
|
|
30030
30031
|
case 0:
|
|
30031
30032
|
return v ? function(w) {
|
|
30032
|
-
return
|
|
30033
|
+
return me[w];
|
|
30033
30034
|
} : function(w) {
|
|
30034
|
-
return
|
|
30035
|
+
return ce[w];
|
|
30035
30036
|
};
|
|
30036
30037
|
case 1:
|
|
30037
30038
|
return v ? function(w) {
|
|
30038
|
-
return
|
|
30039
|
+
return Ce[w >> 1];
|
|
30039
30040
|
} : function(w) {
|
|
30040
30041
|
return de[w >> 1];
|
|
30041
30042
|
};
|
|
@@ -30053,9 +30054,9 @@ function KP() {
|
|
|
30053
30054
|
for (var v = d >> 1, w = v + h / 2; !(v >= w) && de[v]; )
|
|
30054
30055
|
++v;
|
|
30055
30056
|
if (v <<= 1, 32 < v - d && Ac)
|
|
30056
|
-
return Ac.decode(
|
|
30057
|
+
return Ac.decode(ce.subarray(d, v));
|
|
30057
30058
|
for (v = "", w = 0; !(w >= h / 2); ++w) {
|
|
30058
|
-
var x =
|
|
30059
|
+
var x = Ce[d + 2 * w >> 1];
|
|
30059
30060
|
if (x == 0)
|
|
30060
30061
|
break;
|
|
30061
30062
|
v += String.fromCharCode(x);
|
|
@@ -30068,8 +30069,8 @@ function KP() {
|
|
|
30068
30069
|
var w = h;
|
|
30069
30070
|
v = v < 2 * d.length ? v / 2 : d.length;
|
|
30070
30071
|
for (var x = 0; x < v; ++x)
|
|
30071
|
-
|
|
30072
|
-
return
|
|
30072
|
+
Ce[h >> 1] = d.charCodeAt(x), h += 2;
|
|
30073
|
+
return Ce[h >> 1] = 0, h - w;
|
|
30073
30074
|
}, ol = (d) => 2 * d.length, Ud = (d, h) => {
|
|
30074
30075
|
for (var v = 0, w = ""; !(v >= h / 4); ) {
|
|
30075
30076
|
var x = O[d + 4 * v >> 2];
|
|
@@ -30263,29 +30264,29 @@ function KP() {
|
|
|
30263
30264
|
}
|
|
30264
30265
|
var bi = (d) => {
|
|
30265
30266
|
var h = Tt(d) + 1, v = aa(h);
|
|
30266
|
-
return v && $t(d,
|
|
30267
|
+
return v && $t(d, ce, v, h), v;
|
|
30267
30268
|
};
|
|
30268
30269
|
function mo(d) {
|
|
30269
30270
|
return d.slice(-1) == "]" && d.lastIndexOf("[");
|
|
30270
30271
|
}
|
|
30271
30272
|
function Bc(d) {
|
|
30272
|
-
return d -= 5120, d == 0 ?
|
|
30273
|
+
return d -= 5120, d == 0 ? me : d == 1 ? ce : d == 2 ? Ce : d == 4 ? O : d == 6 ? Ve : d == 5 || d == 28922 || d == 28520 || d == 30779 || d == 30782 ? te : de;
|
|
30273
30274
|
}
|
|
30274
30275
|
var Bi = (d) => d % 4 === 0 && (d % 100 !== 0 || d % 400 === 0), Vc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], dl = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fl = (d, h, v, w) => {
|
|
30275
|
-
function x(ne,
|
|
30276
|
-
for (ne = typeof ne == "number" ? ne.toString() : ne || ""; ne.length <
|
|
30277
|
-
ne =
|
|
30276
|
+
function x(ne, pe, Re) {
|
|
30277
|
+
for (ne = typeof ne == "number" ? ne.toString() : ne || ""; ne.length < pe; )
|
|
30278
|
+
ne = Re[0] + ne;
|
|
30278
30279
|
return ne;
|
|
30279
30280
|
}
|
|
30280
|
-
function I(ne,
|
|
30281
|
-
return x(ne,
|
|
30281
|
+
function I(ne, pe) {
|
|
30282
|
+
return x(ne, pe, "0");
|
|
30282
30283
|
}
|
|
30283
|
-
function B(ne,
|
|
30284
|
-
function
|
|
30284
|
+
function B(ne, pe) {
|
|
30285
|
+
function Re(Je) {
|
|
30285
30286
|
return 0 > Je ? -1 : 0 < Je ? 1 : 0;
|
|
30286
30287
|
}
|
|
30287
30288
|
var $e;
|
|
30288
|
-
return ($e =
|
|
30289
|
+
return ($e = Re(ne.getFullYear() - pe.getFullYear())) === 0 && ($e = Re(ne.getMonth() - pe.getMonth())) === 0 && ($e = Re(ne.getDate() - pe.getDate())), $e;
|
|
30289
30290
|
}
|
|
30290
30291
|
function K(ne) {
|
|
30291
30292
|
switch (ne.getDay()) {
|
|
@@ -30305,47 +30306,47 @@ function KP() {
|
|
|
30305
30306
|
return new Date(ne.getFullYear() - 1, 11, 30);
|
|
30306
30307
|
}
|
|
30307
30308
|
}
|
|
30308
|
-
function
|
|
30309
|
-
var
|
|
30310
|
-
for (ne = new Date(new Date(ne.ea + 1900, 0, 1).getTime()); 0 <
|
|
30311
|
-
var
|
|
30312
|
-
if (
|
|
30313
|
-
|
|
30309
|
+
function le(ne) {
|
|
30310
|
+
var pe = ne.da;
|
|
30311
|
+
for (ne = new Date(new Date(ne.ea + 1900, 0, 1).getTime()); 0 < pe; ) {
|
|
30312
|
+
var Re = ne.getMonth(), $e = (Bi(ne.getFullYear()) ? Vc : dl)[Re];
|
|
30313
|
+
if (pe > $e - ne.getDate())
|
|
30314
|
+
pe -= $e - ne.getDate() + 1, ne.setDate(1), 11 > Re ? ne.setMonth(Re + 1) : (ne.setMonth(0), ne.setFullYear(ne.getFullYear() + 1));
|
|
30314
30315
|
else {
|
|
30315
|
-
ne.setDate(ne.getDate() +
|
|
30316
|
+
ne.setDate(ne.getDate() + pe);
|
|
30316
30317
|
break;
|
|
30317
30318
|
}
|
|
30318
30319
|
}
|
|
30319
|
-
return
|
|
30320
|
+
return Re = new Date(ne.getFullYear() + 1, 0, 4), pe = K(new Date(ne.getFullYear(), 0, 4)), Re = K(Re), 0 >= B(pe, ne) ? 0 >= B(Re, ne) ? ne.getFullYear() + 1 : ne.getFullYear() : ne.getFullYear() - 1;
|
|
30320
30321
|
}
|
|
30321
30322
|
var X = O[w + 40 >> 2];
|
|
30322
|
-
w = { pc: O[w >> 2], oc: O[w + 4 >> 2], Ja: O[w + 8 >> 2], Xa: O[w + 12 >> 2], Ka: O[w + 16 >> 2], ea: O[w + 20 >> 2], R: O[w + 24 >> 2], da: O[w + 28 >> 2], Pc: O[w + 32 >> 2], nc: O[w + 36 >> 2], qc: X && X ? Le(
|
|
30323
|
-
for (var
|
|
30324
|
-
v = v.replace(new RegExp(
|
|
30323
|
+
w = { pc: O[w >> 2], oc: O[w + 4 >> 2], Ja: O[w + 8 >> 2], Xa: O[w + 12 >> 2], Ka: O[w + 16 >> 2], ea: O[w + 20 >> 2], R: O[w + 24 >> 2], da: O[w + 28 >> 2], Pc: O[w + 32 >> 2], nc: O[w + 36 >> 2], qc: X && X ? Le(ce, X) : "" }, v = v ? Le(ce, v) : "", X = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
30324
|
+
for (var Se in X)
|
|
30325
|
+
v = v.replace(new RegExp(Se, "g"), X[Se]);
|
|
30325
30326
|
var Me = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), Ne = "January February March April May June July August September October November December".split(" ");
|
|
30326
|
-
X = { "%a": (ne) => Me[ne.R].substring(0, 3), "%A": (ne) => Me[ne.R], "%b": (ne) => Ne[ne.Ka].substring(0, 3), "%B": (ne) => Ne[ne.Ka], "%C": (ne) => I((ne.ea + 1900) / 100 | 0, 2), "%d": (ne) => I(ne.Xa, 2), "%e": (ne) => x(ne.Xa, 2, " "), "%g": (ne) =>
|
|
30327
|
-
for (var
|
|
30327
|
+
X = { "%a": (ne) => Me[ne.R].substring(0, 3), "%A": (ne) => Me[ne.R], "%b": (ne) => Ne[ne.Ka].substring(0, 3), "%B": (ne) => Ne[ne.Ka], "%C": (ne) => I((ne.ea + 1900) / 100 | 0, 2), "%d": (ne) => I(ne.Xa, 2), "%e": (ne) => x(ne.Xa, 2, " "), "%g": (ne) => le(ne).toString().substring(2), "%G": (ne) => le(ne), "%H": (ne) => I(ne.Ja, 2), "%I": (ne) => (ne = ne.Ja, ne == 0 ? ne = 12 : 12 < ne && (ne -= 12), I(ne, 2)), "%j": (ne) => {
|
|
30328
|
+
for (var pe = 0, Re = 0; Re <= ne.Ka - 1; pe += (Bi(ne.ea + 1900) ? Vc : dl)[Re++])
|
|
30328
30329
|
;
|
|
30329
|
-
return I(ne.Xa +
|
|
30330
|
+
return I(ne.Xa + pe, 3);
|
|
30330
30331
|
}, "%m": (ne) => I(ne.Ka + 1, 2), "%M": (ne) => I(ne.oc, 2), "%n": () => `
|
|
30331
30332
|
`, "%p": (ne) => 0 <= ne.Ja && 12 > ne.Ja ? "AM" : "PM", "%S": (ne) => I(ne.pc, 2), "%t": () => " ", "%u": (ne) => ne.R || 7, "%U": (ne) => I(Math.floor((ne.da + 7 - ne.R) / 7), 2), "%V": (ne) => {
|
|
30332
|
-
var
|
|
30333
|
-
if (2 >= (ne.R + 371 - ne.da - 2) % 7 &&
|
|
30334
|
-
|
|
30333
|
+
var pe = Math.floor((ne.da + 7 - (ne.R + 6) % 7) / 7);
|
|
30334
|
+
if (2 >= (ne.R + 371 - ne.da - 2) % 7 && pe++, pe)
|
|
30335
|
+
pe == 53 && (Re = (ne.R + 371 - ne.da) % 7, Re == 4 || Re == 3 && Bi(ne.ea) || (pe = 1));
|
|
30335
30336
|
else {
|
|
30336
|
-
|
|
30337
|
-
var
|
|
30338
|
-
(
|
|
30337
|
+
pe = 52;
|
|
30338
|
+
var Re = (ne.R + 7 - ne.da - 1) % 7;
|
|
30339
|
+
(Re == 4 || Re == 5 && Bi(ne.ea % 400 - 1)) && pe++;
|
|
30339
30340
|
}
|
|
30340
|
-
return I(
|
|
30341
|
+
return I(pe, 2);
|
|
30341
30342
|
}, "%w": (ne) => ne.R, "%W": (ne) => I(Math.floor((ne.da + 7 - (ne.R + 6) % 7) / 7), 2), "%y": (ne) => (ne.ea + 1900).toString().substring(2), "%Y": (ne) => ne.ea + 1900, "%z": (ne) => {
|
|
30342
30343
|
ne = ne.nc;
|
|
30343
|
-
var
|
|
30344
|
-
return ne = Math.abs(ne) / 60, (
|
|
30344
|
+
var pe = 0 <= ne;
|
|
30345
|
+
return ne = Math.abs(ne) / 60, (pe ? "+" : "-") + ("0000" + (ne / 60 * 100 + ne % 60)).slice(-4);
|
|
30345
30346
|
}, "%Z": (ne) => ne.qc, "%%": () => "%" }, v = v.replace(/%%/g, "\0\0");
|
|
30346
|
-
for (
|
|
30347
|
-
v.includes(
|
|
30348
|
-
return v = v.replace(/\0\0/g, "%"),
|
|
30347
|
+
for (Se in X)
|
|
30348
|
+
v.includes(Se) && (v = v.replace(new RegExp(Se, "g"), X[Se](w)));
|
|
30349
|
+
return v = v.replace(/\0\0/g, "%"), Se = _t(v, !1), Se.length > h ? 0 : (me.set(Se, d), Se.length - 1);
|
|
30349
30350
|
};
|
|
30350
30351
|
function sa(d, h, v, w) {
|
|
30351
30352
|
d || (d = this), this.parent = d, this.U = d.U, this.Da = null, this.id = Cc++, this.name = h, this.mode = v, this.l = {}, this.m = {}, this.Fa = w;
|
|
@@ -30465,7 +30466,7 @@ function KP() {
|
|
|
30465
30466
|
case 4:
|
|
30466
30467
|
return x = qr(), w.flags |= x, 0;
|
|
30467
30468
|
case 5:
|
|
30468
|
-
return x = qr(),
|
|
30469
|
+
return x = qr(), Ce[x + 0 >> 1] = 2, 0;
|
|
30469
30470
|
case 6:
|
|
30470
30471
|
case 7:
|
|
30471
30472
|
return 0;
|
|
@@ -30497,7 +30498,7 @@ function KP() {
|
|
|
30497
30498
|
var x = qr();
|
|
30498
30499
|
O[x >> 2] = 25856, O[x + 4 >> 2] = 5, O[x + 8 >> 2] = 191, O[x + 12 >> 2] = 35387;
|
|
30499
30500
|
for (var I = 0; 32 > I; I++)
|
|
30500
|
-
|
|
30501
|
+
me[x + I + 17 >> 0] = h[I] || 0;
|
|
30501
30502
|
}
|
|
30502
30503
|
return 0;
|
|
30503
30504
|
case 21510:
|
|
@@ -30511,7 +30512,7 @@ function KP() {
|
|
|
30511
30512
|
return -59;
|
|
30512
30513
|
if (w.s.V.ac)
|
|
30513
30514
|
for (x = qr(), h = [], I = 0; 32 > I; I++)
|
|
30514
|
-
h.push(
|
|
30515
|
+
h.push(me[x + I + 17 >> 0]);
|
|
30515
30516
|
return 0;
|
|
30516
30517
|
case 21519:
|
|
30517
30518
|
return w.s ? (x = qr(), O[x >> 2] = 0) : -59;
|
|
@@ -30522,7 +30523,7 @@ function KP() {
|
|
|
30522
30523
|
throw new De(59);
|
|
30523
30524
|
return w.m.Zb(w, h, x);
|
|
30524
30525
|
case 21523:
|
|
30525
|
-
return w.s ? (w.s.V.bc && (I = [24, 80], x = qr(),
|
|
30526
|
+
return w.s ? (w.s.V.bc && (I = [24, 80], x = qr(), Ce[x >> 1] = I[0], Ce[x + 2 >> 1] = I[1]), 0) : -59;
|
|
30526
30527
|
case 21524:
|
|
30527
30528
|
return w.s ? 0 : -59;
|
|
30528
30529
|
case 21515:
|
|
@@ -30538,7 +30539,7 @@ function KP() {
|
|
|
30538
30539
|
}, __syscall_openat: function(d, h, v, w) {
|
|
30539
30540
|
kn = w;
|
|
30540
30541
|
try {
|
|
30541
|
-
h = h ? Le(
|
|
30542
|
+
h = h ? Le(ce, h) : "";
|
|
30542
30543
|
var x = h;
|
|
30543
30544
|
if (x.charAt(0) === "/")
|
|
30544
30545
|
h = x;
|
|
@@ -30567,15 +30568,15 @@ function KP() {
|
|
|
30567
30568
|
this === I && it("Pass correct 'this' to __construct");
|
|
30568
30569
|
var X = K.implement.apply(void 0, [this].concat(w.call(arguments)));
|
|
30569
30570
|
Yo(X);
|
|
30570
|
-
var
|
|
30571
|
-
X.notifyOnDestruction(),
|
|
30571
|
+
var Se = X.g;
|
|
30572
|
+
X.notifyOnDestruction(), Se.ka = !0, Object.defineProperties(this, { g: { value: Se } }), uo(this), X = Se.o, X = Xs(x, X), Mr.hasOwnProperty(X) ? it(`Tried to register registered instance: ${X}`) : Mr[X] = this;
|
|
30572
30573
|
}, I.__destruct = function() {
|
|
30573
30574
|
this === I && it("Pass correct 'this' to __destruct"), Yo(this);
|
|
30574
30575
|
var X = this.g.o;
|
|
30575
30576
|
X = Xs(x, X), Mr.hasOwnProperty(X) ? delete Mr[X] : it(`Tried to unregister unregistered instance: ${X}`);
|
|
30576
30577
|
}, d.prototype = Object.create(I);
|
|
30577
|
-
for (var
|
|
30578
|
-
d.prototype[
|
|
30578
|
+
for (var le in v)
|
|
30579
|
+
d.prototype[le] = v[le];
|
|
30579
30580
|
return Ir(d);
|
|
30580
30581
|
}, _embind_finalize_value_object: function(d) {
|
|
30581
30582
|
var h = Zo[d];
|
|
@@ -30583,25 +30584,25 @@ function KP() {
|
|
|
30583
30584
|
var v = h.Va, w = h.W, x = h.fb, I = x.map((B) => B.Vb).concat(x.map((B) => B.kc));
|
|
30584
30585
|
In([d], I, (B) => {
|
|
30585
30586
|
var K = {};
|
|
30586
|
-
return x.forEach((
|
|
30587
|
-
var
|
|
30588
|
-
K[
|
|
30587
|
+
return x.forEach((le, X) => {
|
|
30588
|
+
var Se = B[X], Me = le.Tb, Ne = le.Ub, ne = B[X + x.length], pe = le.jc, Re = le.lc;
|
|
30589
|
+
K[le.Pb] = { read: ($e) => Se.fromWireType(Me(Ne, $e)), write: ($e, Je) => {
|
|
30589
30590
|
var tt = [];
|
|
30590
|
-
|
|
30591
|
+
pe(Re, $e, ne.toWireType(tt, Je)), Yr(tt);
|
|
30591
30592
|
} };
|
|
30592
|
-
}), [{ name: h.name, fromWireType: function(
|
|
30593
|
-
var X = {},
|
|
30594
|
-
for (
|
|
30595
|
-
X[
|
|
30596
|
-
return w(
|
|
30597
|
-
}, toWireType: function(
|
|
30598
|
-
for (var
|
|
30599
|
-
if (!(
|
|
30600
|
-
throw new TypeError(`Missing field: "${
|
|
30593
|
+
}), [{ name: h.name, fromWireType: function(le) {
|
|
30594
|
+
var X = {}, Se;
|
|
30595
|
+
for (Se in K)
|
|
30596
|
+
X[Se] = K[Se].read(le);
|
|
30597
|
+
return w(le), X;
|
|
30598
|
+
}, toWireType: function(le, X) {
|
|
30599
|
+
for (var Se in K)
|
|
30600
|
+
if (!(Se in X))
|
|
30601
|
+
throw new TypeError(`Missing field: "${Se}"`);
|
|
30601
30602
|
var Me = v();
|
|
30602
|
-
for (
|
|
30603
|
-
K[
|
|
30604
|
-
return
|
|
30603
|
+
for (Se in K)
|
|
30604
|
+
K[Se].write(Me, X[Se]);
|
|
30605
|
+
return le !== null && le.push(w, Me), Me;
|
|
30605
30606
|
}, argPackAdvance: 8, readValueFromPointer: es, K: w }];
|
|
30606
30607
|
});
|
|
30607
30608
|
}, _embind_register_bigint: function() {
|
|
@@ -30613,131 +30614,131 @@ function KP() {
|
|
|
30613
30614
|
return K ? w : x;
|
|
30614
30615
|
}, argPackAdvance: 8, readValueFromPointer: function(B) {
|
|
30615
30616
|
if (v === 1)
|
|
30616
|
-
var K =
|
|
30617
|
+
var K = me;
|
|
30617
30618
|
else if (v === 2)
|
|
30618
|
-
K =
|
|
30619
|
+
K = Ce;
|
|
30619
30620
|
else if (v === 4)
|
|
30620
30621
|
K = O;
|
|
30621
30622
|
else
|
|
30622
30623
|
throw new TypeError("Unknown boolean type size: " + h);
|
|
30623
30624
|
return this.fromWireType(K[B >> I]);
|
|
30624
30625
|
}, K: null });
|
|
30625
|
-
}, _embind_register_class: function(d, h, v, w, x, I, B, K,
|
|
30626
|
-
|
|
30627
|
-
var ne = Pc(
|
|
30626
|
+
}, _embind_register_class: function(d, h, v, w, x, I, B, K, le, X, Se, Me, Ne) {
|
|
30627
|
+
Se = xt(Se), I = on(x, I), K && (K = on(B, K)), X && (X = on(le, X)), Ne = on(Me, Ne);
|
|
30628
|
+
var ne = Pc(Se);
|
|
30628
30629
|
tl(ne, function() {
|
|
30629
|
-
On(`Cannot construct ${
|
|
30630
|
-
}), In([d, h, v], w ? [w] : [], function(
|
|
30631
|
-
if (
|
|
30632
|
-
var
|
|
30630
|
+
On(`Cannot construct ${Se} due to unbound types`, [w]);
|
|
30631
|
+
}), In([d, h, v], w ? [w] : [], function(pe) {
|
|
30632
|
+
if (pe = pe[0], w)
|
|
30633
|
+
var Re = pe.i, $e = Re.N;
|
|
30633
30634
|
else
|
|
30634
30635
|
$e = gr.prototype;
|
|
30635
|
-
|
|
30636
|
+
pe = Js(ne, function() {
|
|
30636
30637
|
if (Object.getPrototypeOf(this) !== Je)
|
|
30637
|
-
throw new Rr("Use 'new' to construct " +
|
|
30638
|
+
throw new Rr("Use 'new' to construct " + Se);
|
|
30638
30639
|
if (tt.$ === void 0)
|
|
30639
|
-
throw new Rr(
|
|
30640
|
+
throw new Rr(Se + " has no accessible constructor");
|
|
30640
30641
|
var It = tt.$[arguments.length];
|
|
30641
30642
|
if (It === void 0)
|
|
30642
|
-
throw new Rr(`Tried to invoke ctor of ${
|
|
30643
|
+
throw new Rr(`Tried to invoke ctor of ${Se} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(tt.$).toString()}) parameters instead!`);
|
|
30643
30644
|
return It.apply(this, arguments);
|
|
30644
30645
|
});
|
|
30645
|
-
var Je = Object.create($e, { constructor: { value:
|
|
30646
|
-
|
|
30647
|
-
var tt = new nl(
|
|
30648
|
-
tt.A && (tt.A.qa === void 0 && (tt.A.qa = []), tt.A.qa.push(tt)),
|
|
30649
|
-
var vt = new vr(
|
|
30650
|
-
return Jr[d] = { pointerType: $e, Jb: vt }, ns(ne,
|
|
30646
|
+
var Je = Object.create($e, { constructor: { value: pe } });
|
|
30647
|
+
pe.prototype = Je;
|
|
30648
|
+
var tt = new nl(Se, pe, Je, Ne, Re, I, K, X);
|
|
30649
|
+
tt.A && (tt.A.qa === void 0 && (tt.A.qa = []), tt.A.qa.push(tt)), Re = new vr(Se, tt, !0, !1), $e = new vr(Se + "*", tt, !1, !1);
|
|
30650
|
+
var vt = new vr(Se + " const*", tt, !1, !0);
|
|
30651
|
+
return Jr[d] = { pointerType: $e, Jb: vt }, ns(ne, pe), [Re, $e, vt];
|
|
30651
30652
|
});
|
|
30652
30653
|
}, _embind_register_class_class_function: function(d, h, v, w, x, I, B) {
|
|
30653
30654
|
var K = gi(v, w);
|
|
30654
|
-
h = xt(h), I = on(x, I), In([], [d], function(
|
|
30655
|
+
h = xt(h), I = on(x, I), In([], [d], function(le) {
|
|
30655
30656
|
function X() {
|
|
30656
|
-
On(`Cannot call ${
|
|
30657
|
+
On(`Cannot call ${Se} due to unbound types`, K);
|
|
30657
30658
|
}
|
|
30658
|
-
|
|
30659
|
-
var
|
|
30659
|
+
le = le[0];
|
|
30660
|
+
var Se = `${le.name}.${h}`;
|
|
30660
30661
|
h.startsWith("@@") && (h = Symbol[h.substring(2)]);
|
|
30661
|
-
var Me =
|
|
30662
|
-
return Me[h] === void 0 ? (X.ha = v - 1, Me[h] = X) : (el(Me, h,
|
|
30663
|
-
if (Ne = fo(
|
|
30664
|
-
for (const ne of
|
|
30662
|
+
var Me = le.i.constructor;
|
|
30663
|
+
return Me[h] === void 0 ? (X.ha = v - 1, Me[h] = X) : (el(Me, h, Se), Me[h].B[v - 1] = X), In([], K, function(Ne) {
|
|
30664
|
+
if (Ne = fo(Se, [Ne[0], null].concat(Ne.slice(1)), null, I, B), Me[h].B === void 0 ? (Ne.ha = v - 1, Me[h] = Ne) : Me[h].B[v - 1] = Ne, le.i.qa)
|
|
30665
|
+
for (const ne of le.i.qa)
|
|
30665
30666
|
ne.constructor.hasOwnProperty(h) || (ne.constructor[h] = Ne);
|
|
30666
30667
|
return [];
|
|
30667
30668
|
}), [];
|
|
30668
30669
|
});
|
|
30669
30670
|
}, _embind_register_class_class_property: function(d, h, v, w, x, I, B, K) {
|
|
30670
|
-
h = xt(h), I = on(x, I), In([], [d], function(
|
|
30671
|
-
|
|
30672
|
-
var X = `${
|
|
30671
|
+
h = xt(h), I = on(x, I), In([], [d], function(le) {
|
|
30672
|
+
le = le[0];
|
|
30673
|
+
var X = `${le.name}.${h}`, Se = { get() {
|
|
30673
30674
|
On(`Cannot access ${X} due to unbound types`, [v]);
|
|
30674
30675
|
}, enumerable: !0, configurable: !0 };
|
|
30675
|
-
return
|
|
30676
|
+
return Se.set = K ? () => {
|
|
30676
30677
|
On(`Cannot access ${X} due to unbound types`, [v]);
|
|
30677
30678
|
} : () => {
|
|
30678
30679
|
it(`${X} is a read-only property`);
|
|
30679
|
-
}, Object.defineProperty(
|
|
30680
|
+
}, Object.defineProperty(le.i.constructor, h, Se), In([], [v], function(Me) {
|
|
30680
30681
|
Me = Me[0];
|
|
30681
30682
|
var Ne = { get() {
|
|
30682
30683
|
return Me.fromWireType(I(w));
|
|
30683
30684
|
}, enumerable: !0 };
|
|
30684
30685
|
return K && (K = on(B, K), Ne.set = (ne) => {
|
|
30685
|
-
var
|
|
30686
|
-
K(w, Me.toWireType(
|
|
30687
|
-
}), Object.defineProperty(
|
|
30686
|
+
var pe = [];
|
|
30687
|
+
K(w, Me.toWireType(pe, ne)), Yr(pe);
|
|
30688
|
+
}), Object.defineProperty(le.i.constructor, h, Ne), [];
|
|
30688
30689
|
}), [];
|
|
30689
30690
|
});
|
|
30690
30691
|
}, _embind_register_class_constructor: function(d, h, v, w, x, I) {
|
|
30691
30692
|
var B = gi(h, v);
|
|
30692
30693
|
x = on(w, x), In([], [d], function(K) {
|
|
30693
30694
|
K = K[0];
|
|
30694
|
-
var
|
|
30695
|
+
var le = `constructor ${K.name}`;
|
|
30695
30696
|
if (K.i.$ === void 0 && (K.i.$ = []), K.i.$[h - 1] !== void 0)
|
|
30696
30697
|
throw new Rr(`Cannot register multiple constructors with identical number of parameters (${h - 1}) for class '${K.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
30697
30698
|
return K.i.$[h - 1] = () => {
|
|
30698
30699
|
On(`Cannot construct ${K.name} due to unbound types`, B);
|
|
30699
30700
|
}, In([], B, function(X) {
|
|
30700
|
-
return X.splice(1, 0, null), K.i.$[h - 1] = fo(
|
|
30701
|
+
return X.splice(1, 0, null), K.i.$[h - 1] = fo(le, X, null, x, I), [];
|
|
30701
30702
|
}), [];
|
|
30702
30703
|
});
|
|
30703
30704
|
}, _embind_register_class_function: function(d, h, v, w, x, I, B, K) {
|
|
30704
|
-
var
|
|
30705
|
+
var le = gi(v, w);
|
|
30705
30706
|
h = xt(h), I = on(x, I), In([], [d], function(X) {
|
|
30706
|
-
function
|
|
30707
|
-
On(`Cannot call ${Me} due to unbound types`,
|
|
30707
|
+
function Se() {
|
|
30708
|
+
On(`Cannot call ${Me} due to unbound types`, le);
|
|
30708
30709
|
}
|
|
30709
30710
|
X = X[0];
|
|
30710
30711
|
var Me = `${X.name}.${h}`;
|
|
30711
30712
|
h.startsWith("@@") && (h = Symbol[h.substring(2)]), K && X.i.qb.push(h);
|
|
30712
30713
|
var Ne = X.i.N, ne = Ne[h];
|
|
30713
|
-
return ne === void 0 || ne.B === void 0 && ne.className !== X.name && ne.ha === v - 2 ? (
|
|
30714
|
-
return
|
|
30714
|
+
return ne === void 0 || ne.B === void 0 && ne.className !== X.name && ne.ha === v - 2 ? (Se.ha = v - 2, Se.className = X.name, Ne[h] = Se) : (el(Ne, h, Me), Ne[h].B[v - 2] = Se), In([], le, function(pe) {
|
|
30715
|
+
return pe = fo(Me, pe, X, I, B), Ne[h].B === void 0 ? (pe.ha = v - 2, Ne[h] = pe) : Ne[h].B[v - 2] = pe, [];
|
|
30715
30716
|
}), [];
|
|
30716
30717
|
});
|
|
30717
|
-
}, _embind_register_class_property: function(d, h, v, w, x, I, B, K,
|
|
30718
|
-
h = xt(h), x = on(w, x), In([], [d], function(
|
|
30719
|
-
|
|
30720
|
-
var Me = `${
|
|
30718
|
+
}, _embind_register_class_property: function(d, h, v, w, x, I, B, K, le, X) {
|
|
30719
|
+
h = xt(h), x = on(w, x), In([], [d], function(Se) {
|
|
30720
|
+
Se = Se[0];
|
|
30721
|
+
var Me = `${Se.name}.${h}`, Ne = { get() {
|
|
30721
30722
|
On(`Cannot access ${Me} due to unbound types`, [v, B]);
|
|
30722
30723
|
}, enumerable: !0, configurable: !0 };
|
|
30723
|
-
return Ne.set =
|
|
30724
|
+
return Ne.set = le ? () => {
|
|
30724
30725
|
On(`Cannot access ${Me} due to unbound types`, [v, B]);
|
|
30725
30726
|
} : () => {
|
|
30726
30727
|
it(Me + " is a read-only property");
|
|
30727
|
-
}, Object.defineProperty(
|
|
30728
|
-
var
|
|
30729
|
-
var Je = Ic(this,
|
|
30730
|
-
return
|
|
30728
|
+
}, Object.defineProperty(Se.i.N, h, Ne), In([], le ? [v, B] : [v], function(ne) {
|
|
30729
|
+
var pe = ne[0], Re = { get() {
|
|
30730
|
+
var Je = Ic(this, Se, Me + " getter");
|
|
30731
|
+
return pe.fromWireType(x(I, Je));
|
|
30731
30732
|
}, enumerable: !0 };
|
|
30732
|
-
if (
|
|
30733
|
-
|
|
30733
|
+
if (le) {
|
|
30734
|
+
le = on(K, le);
|
|
30734
30735
|
var $e = ne[1];
|
|
30735
|
-
|
|
30736
|
-
var tt = Ic(this,
|
|
30737
|
-
|
|
30736
|
+
Re.set = function(Je) {
|
|
30737
|
+
var tt = Ic(this, Se, Me + " setter"), vt = [];
|
|
30738
|
+
le(X, tt, $e.toWireType(vt, Je)), Yr(vt);
|
|
30738
30739
|
};
|
|
30739
30740
|
}
|
|
30740
|
-
return Object.defineProperty(
|
|
30741
|
+
return Object.defineProperty(Se.i.N, h, Re), [];
|
|
30741
30742
|
}), [];
|
|
30742
30743
|
});
|
|
30743
30744
|
}, _embind_register_emval: function(d, h) {
|
|
@@ -30779,10 +30780,10 @@ function KP() {
|
|
|
30779
30780
|
var B = 32 - 8 * v;
|
|
30780
30781
|
I = (K) => K << B >>> B;
|
|
30781
30782
|
}
|
|
30782
|
-
v = h.includes("unsigned") ? function(K,
|
|
30783
|
-
return
|
|
30784
|
-
} : function(K,
|
|
30785
|
-
return
|
|
30783
|
+
v = h.includes("unsigned") ? function(K, le) {
|
|
30784
|
+
return le >>> 0;
|
|
30785
|
+
} : function(K, le) {
|
|
30786
|
+
return le;
|
|
30786
30787
|
}, Mn(d, { name: h, fromWireType: I, toWireType: v, argPackAdvance: 8, readValueFromPointer: Mc(h, x, w !== 0), K: null });
|
|
30787
30788
|
}, _embind_register_memory_view: function(d, h, v) {
|
|
30788
30789
|
function w(I) {
|
|
@@ -30799,18 +30800,18 @@ function KP() {
|
|
|
30799
30800
|
var x = te[w >> 2], I = w + 4;
|
|
30800
30801
|
if (v)
|
|
30801
30802
|
for (var B = I, K = 0; K <= x; ++K) {
|
|
30802
|
-
var
|
|
30803
|
-
if (K == x || le
|
|
30804
|
-
if (B = B ? Le(
|
|
30803
|
+
var le = I + K;
|
|
30804
|
+
if (K == x || ce[le] == 0) {
|
|
30805
|
+
if (B = B ? Le(ce, B, le - B) : "", X === void 0)
|
|
30805
30806
|
var X = B;
|
|
30806
30807
|
else
|
|
30807
30808
|
X += "\0", X += B;
|
|
30808
|
-
B =
|
|
30809
|
+
B = le + 1;
|
|
30809
30810
|
}
|
|
30810
30811
|
}
|
|
30811
30812
|
else {
|
|
30812
30813
|
for (X = Array(x), K = 0; K < x; ++K)
|
|
30813
|
-
X[K] = String.fromCharCode(
|
|
30814
|
+
X[K] = String.fromCharCode(ce[I + K]);
|
|
30814
30815
|
X = X.join("");
|
|
30815
30816
|
}
|
|
30816
30817
|
return Qr(w), X;
|
|
@@ -30818,17 +30819,17 @@ function KP() {
|
|
|
30818
30819
|
x instanceof ArrayBuffer && (x = new Uint8Array(x));
|
|
30819
30820
|
var I = typeof x == "string";
|
|
30820
30821
|
I || x instanceof Uint8Array || x instanceof Uint8ClampedArray || x instanceof Int8Array || it("Cannot pass non-string to std::string");
|
|
30821
|
-
var B = v && I ? Tt(x) : x.length, K = aa(4 + B + 1),
|
|
30822
|
+
var B = v && I ? Tt(x) : x.length, K = aa(4 + B + 1), le = K + 4;
|
|
30822
30823
|
if (te[K >> 2] = B, v && I)
|
|
30823
|
-
$t(x,
|
|
30824
|
+
$t(x, ce, le, B + 1);
|
|
30824
30825
|
else if (I)
|
|
30825
30826
|
for (I = 0; I < B; ++I) {
|
|
30826
30827
|
var X = x.charCodeAt(I);
|
|
30827
|
-
255 < X && (Qr(
|
|
30828
|
+
255 < X && (Qr(le), it("String has UTF-16 code units that do not fit in 8 bits")), ce[le + I] = X;
|
|
30828
30829
|
}
|
|
30829
30830
|
else
|
|
30830
30831
|
for (I = 0; I < B; ++I)
|
|
30831
|
-
le
|
|
30832
|
+
ce[le + I] = x[I];
|
|
30832
30833
|
return w !== null && w.push(Qr, K), K;
|
|
30833
30834
|
}, argPackAdvance: 8, readValueFromPointer: es, K: function(w) {
|
|
30834
30835
|
Qr(w);
|
|
@@ -30838,23 +30839,23 @@ function KP() {
|
|
|
30838
30839
|
var w = jd, x = Fd, I = ol, B = () => de, K = 1;
|
|
30839
30840
|
else
|
|
30840
30841
|
h === 4 && (w = Ud, x = Bd, I = Vd, B = () => te, K = 2);
|
|
30841
|
-
Mn(d, { name: v, fromWireType: function(
|
|
30842
|
-
for (var X = te[
|
|
30843
|
-
var
|
|
30844
|
-
(ne == X ||
|
|
30842
|
+
Mn(d, { name: v, fromWireType: function(le) {
|
|
30843
|
+
for (var X = te[le >> 2], Se = B(), Me, Ne = le + 4, ne = 0; ne <= X; ++ne) {
|
|
30844
|
+
var pe = le + 4 + ne * h;
|
|
30845
|
+
(ne == X || Se[pe >> K] == 0) && (Ne = w(Ne, pe - Ne), Me === void 0 ? Me = Ne : (Me += "\0", Me += Ne), Ne = pe + h);
|
|
30845
30846
|
}
|
|
30846
|
-
return Qr(
|
|
30847
|
-
}, toWireType: function(
|
|
30847
|
+
return Qr(le), Me;
|
|
30848
|
+
}, toWireType: function(le, X) {
|
|
30848
30849
|
typeof X != "string" && it(`Cannot pass non-string to C++ string type ${v}`);
|
|
30849
|
-
var
|
|
30850
|
-
return te[Me >> 2] =
|
|
30851
|
-
}, argPackAdvance: 8, readValueFromPointer: es, K: function(
|
|
30852
|
-
Qr(
|
|
30850
|
+
var Se = I(X), Me = aa(4 + Se + h);
|
|
30851
|
+
return te[Me >> 2] = Se >> K, x(X, Me + 4, Se + h), le !== null && le.push(Qr, Me), Me;
|
|
30852
|
+
}, argPackAdvance: 8, readValueFromPointer: es, K: function(le) {
|
|
30853
|
+
Qr(le);
|
|
30853
30854
|
} });
|
|
30854
30855
|
}, _embind_register_value_object: function(d, h, v, w, x, I) {
|
|
30855
30856
|
Zo[d] = { name: xt(h), Va: on(v, w), W: on(x, I), fb: [] };
|
|
30856
|
-
}, _embind_register_value_object_field: function(d, h, v, w, x, I, B, K,
|
|
30857
|
-
Zo[d].fb.push({ Pb: xt(h), Vb: v, Tb: on(w, x), Ub: I, kc: B, jc: on(K,
|
|
30857
|
+
}, _embind_register_value_object_field: function(d, h, v, w, x, I, B, K, le, X) {
|
|
30858
|
+
Zo[d].fb.push({ Pb: xt(h), Vb: v, Tb: on(w, x), Ub: I, kc: B, jc: on(K, le), lc: X });
|
|
30858
30859
|
}, _embind_register_void: function(d, h) {
|
|
30859
30860
|
h = xt(h), Mn(d, { cc: !0, name: h, argPackAdvance: 0, fromWireType: function() {
|
|
30860
30861
|
}, toWireType: function() {
|
|
@@ -30878,13 +30879,13 @@ function KP() {
|
|
|
30878
30879
|
if (x !== void 0)
|
|
30879
30880
|
return x;
|
|
30880
30881
|
var I = Array(d - 1);
|
|
30881
|
-
return x = Wd((B, K,
|
|
30882
|
-
for (var
|
|
30883
|
-
I[Me] = v[Me + 1].readValueFromPointer(X +
|
|
30882
|
+
return x = Wd((B, K, le, X) => {
|
|
30883
|
+
for (var Se = 0, Me = 0; Me < d - 1; ++Me)
|
|
30884
|
+
I[Me] = v[Me + 1].readValueFromPointer(X + Se), Se += v[Me + 1].argPackAdvance;
|
|
30884
30885
|
for (B = B[K].apply(B, I), Me = 0; Me < d - 1; ++Me)
|
|
30885
30886
|
v[Me + 1].Lb && v[Me + 1].Lb(I[Me]);
|
|
30886
30887
|
if (!w.cc)
|
|
30887
|
-
return w.toWireType(
|
|
30888
|
+
return w.toWireType(le, B);
|
|
30888
30889
|
}), Oc[h] = x;
|
|
30889
30890
|
}, _emval_get_property: function(d, h) {
|
|
30890
30891
|
return d = pr(d), h = pr(h), Ir(d[h]);
|
|
@@ -30920,13 +30921,13 @@ function KP() {
|
|
|
30920
30921
|
}, emscripten_asm_const_int: (d, h, v) => {
|
|
30921
30922
|
al.length = 0;
|
|
30922
30923
|
var w;
|
|
30923
|
-
for (v >>= 2; w =
|
|
30924
|
+
for (v >>= 2; w = ce[h++]; )
|
|
30924
30925
|
v += w != 105 & v, al.push(w == 105 ? O[v] : Ke[v++ >> 1]), ++v;
|
|
30925
30926
|
return Bs[d].apply(null, al);
|
|
30926
30927
|
}, emscripten_date_now: function() {
|
|
30927
30928
|
return Date.now();
|
|
30928
|
-
}, emscripten_get_now: () => performance.now(), emscripten_memcpy_big: (d, h, v) =>
|
|
30929
|
-
var h =
|
|
30929
|
+
}, emscripten_get_now: () => performance.now(), emscripten_memcpy_big: (d, h, v) => ce.copyWithin(d, h, h + v), emscripten_resize_heap: (d) => {
|
|
30930
|
+
var h = ce.length;
|
|
30930
30931
|
if (d >>>= 0, 2147483648 < d)
|
|
30931
30932
|
return !1;
|
|
30932
30933
|
for (var v = 1; 4 >= v; v *= 2) {
|
|
@@ -30949,7 +30950,7 @@ function KP() {
|
|
|
30949
30950
|
}
|
|
30950
30951
|
return !1;
|
|
30951
30952
|
}, emscripten_webgl_enable_extension: function(d, h) {
|
|
30952
|
-
return d = Yt[d], h = h ? Le(
|
|
30953
|
+
return d = Yt[d], h = h ? Le(ce, h) : "", h.startsWith("GL_") && (h = h.substr(3)), h == "WEBGL_draw_instanced_base_vertex_base_instance" && na(he), h == "WEBGL_multi_draw_instanced_base_vertex_base_instance" && Lc(he), h == "WEBGL_multi_draw" && ll(he), !!d.C.getExtension(h);
|
|
30953
30954
|
}, emscripten_webgl_get_current_context: function() {
|
|
30954
30955
|
return yr ? yr.handle : 0;
|
|
30955
30956
|
}, emscripten_webgl_make_context_current: function(d) {
|
|
@@ -30965,8 +30966,8 @@ function KP() {
|
|
|
30965
30966
|
return Fc().forEach(function(w, x) {
|
|
30966
30967
|
var I = h + v;
|
|
30967
30968
|
for (x = te[d + 4 * x >> 2] = I, I = 0; I < w.length; ++I)
|
|
30968
|
-
|
|
30969
|
-
|
|
30969
|
+
me[x++ >> 0] = w.charCodeAt(I);
|
|
30970
|
+
me[x >> 0] = 0, v += w.length + 1;
|
|
30970
30971
|
}), 0;
|
|
30971
30972
|
}, environ_sizes_get: (d, h) => {
|
|
30972
30973
|
var v = Fc();
|
|
@@ -31000,9 +31001,9 @@ function KP() {
|
|
|
31000
31001
|
var x = $r(d);
|
|
31001
31002
|
d = h;
|
|
31002
31003
|
for (var I, B = h = 0; B < v; B++) {
|
|
31003
|
-
var K = te[d >> 2],
|
|
31004
|
+
var K = te[d >> 2], le = te[d + 4 >> 2];
|
|
31004
31005
|
d += 8;
|
|
31005
|
-
var X = x,
|
|
31006
|
+
var X = x, Se = K, Me = le, Ne = I, ne = me;
|
|
31006
31007
|
if (0 > Me || 0 > Ne)
|
|
31007
31008
|
throw new De(28);
|
|
31008
31009
|
if (X.X === null)
|
|
@@ -31013,19 +31014,19 @@ function KP() {
|
|
|
31013
31014
|
throw new De(31);
|
|
31014
31015
|
if (!X.m.read)
|
|
31015
31016
|
throw new De(28);
|
|
31016
|
-
var
|
|
31017
|
-
if (!
|
|
31017
|
+
var pe = typeof Ne < "u";
|
|
31018
|
+
if (!pe)
|
|
31018
31019
|
Ne = X.position;
|
|
31019
31020
|
else if (!X.seekable)
|
|
31020
31021
|
throw new De(70);
|
|
31021
|
-
var
|
|
31022
|
-
|
|
31023
|
-
var $e =
|
|
31022
|
+
var Re = X.m.read(X, ne, Se, Me, Ne);
|
|
31023
|
+
pe || (X.position += Re);
|
|
31024
|
+
var $e = Re;
|
|
31024
31025
|
if (0 > $e) {
|
|
31025
31026
|
var Je = -1;
|
|
31026
31027
|
break e;
|
|
31027
31028
|
}
|
|
31028
|
-
if (h += $e, $e <
|
|
31029
|
+
if (h += $e, $e < le)
|
|
31029
31030
|
break;
|
|
31030
31031
|
typeof I < "u" && (I += $e);
|
|
31031
31032
|
}
|
|
@@ -31055,9 +31056,9 @@ function KP() {
|
|
|
31055
31056
|
var x = $r(d);
|
|
31056
31057
|
d = h;
|
|
31057
31058
|
for (var I, B = h = 0; B < v; B++) {
|
|
31058
|
-
var K = te[d >> 2],
|
|
31059
|
+
var K = te[d >> 2], le = te[d + 4 >> 2];
|
|
31059
31060
|
d += 8;
|
|
31060
|
-
var X = x,
|
|
31061
|
+
var X = x, Se = K, Me = le, Ne = I, ne = me;
|
|
31061
31062
|
if (0 > Me || 0 > Ne)
|
|
31062
31063
|
throw new De(28);
|
|
31063
31064
|
if (X.X === null)
|
|
@@ -31069,14 +31070,14 @@ function KP() {
|
|
|
31069
31070
|
if (!X.m.write)
|
|
31070
31071
|
throw new De(28);
|
|
31071
31072
|
X.seekable && X.flags & 1024 && qs(X, 0, 2);
|
|
31072
|
-
var
|
|
31073
|
-
if (!
|
|
31073
|
+
var pe = typeof Ne < "u";
|
|
31074
|
+
if (!pe)
|
|
31074
31075
|
Ne = X.position;
|
|
31075
31076
|
else if (!X.seekable)
|
|
31076
31077
|
throw new De(70);
|
|
31077
|
-
var
|
|
31078
|
-
|
|
31079
|
-
var $e =
|
|
31078
|
+
var Re = X.m.write(X, ne, Se, Me, Ne, void 0);
|
|
31079
|
+
pe || (X.position += Re);
|
|
31080
|
+
var $e = Re;
|
|
31080
31081
|
if (0 > $e) {
|
|
31081
31082
|
var Je = -1;
|
|
31082
31083
|
break e;
|
|
@@ -31117,12 +31118,12 @@ function KP() {
|
|
|
31117
31118
|
he.blendEquation(d);
|
|
31118
31119
|
}, glBlendFunc: function(d, h) {
|
|
31119
31120
|
he.blendFunc(d, h);
|
|
31120
|
-
}, glBlitFramebuffer: function(d, h, v, w, x, I, B, K,
|
|
31121
|
-
he.blitFramebuffer(d, h, v, w, x, I, B, K,
|
|
31121
|
+
}, glBlitFramebuffer: function(d, h, v, w, x, I, B, K, le, X) {
|
|
31122
|
+
he.blitFramebuffer(d, h, v, w, x, I, B, K, le, X);
|
|
31122
31123
|
}, glBufferData: function(d, h, v, w) {
|
|
31123
|
-
v && h ? he.bufferData(d,
|
|
31124
|
+
v && h ? he.bufferData(d, ce, w, v, h) : he.bufferData(d, h, w);
|
|
31124
31125
|
}, glBufferSubData: function(d, h, v, w) {
|
|
31125
|
-
v && he.bufferSubData(d, h,
|
|
31126
|
+
v && he.bufferSubData(d, h, ce, w, v);
|
|
31126
31127
|
}, glClear: function(d) {
|
|
31127
31128
|
he.clear(d);
|
|
31128
31129
|
}, glClearBufferfv: function(d, h, v) {
|
|
@@ -31288,19 +31289,19 @@ function KP() {
|
|
|
31288
31289
|
}
|
|
31289
31290
|
return h;
|
|
31290
31291
|
}, glGetUniformBlockIndex: function(d, h) {
|
|
31291
|
-
return he.getUniformBlockIndex(nr[d], h ? Le(
|
|
31292
|
+
return he.getUniformBlockIndex(nr[d], h ? Le(ce, h) : "");
|
|
31292
31293
|
}, glGetUniformLocation: function(d, h) {
|
|
31293
|
-
if (h = h ? Le(
|
|
31294
|
+
if (h = h ? Le(ce, h) : "", d = nr[d]) {
|
|
31294
31295
|
var v = d, w = v.oa, x = v.zb, I;
|
|
31295
31296
|
if (!w)
|
|
31296
31297
|
for (v.oa = w = {}, v.yb = {}, I = 0; I < he.getProgramParameter(v, 35718); ++I) {
|
|
31297
31298
|
var B = he.getActiveUniform(v, I), K = B.name;
|
|
31298
31299
|
B = B.size;
|
|
31299
|
-
var
|
|
31300
|
-
|
|
31300
|
+
var le = mo(K);
|
|
31301
|
+
le = 0 < le ? K.slice(0, le) : K;
|
|
31301
31302
|
var X = v.Ya;
|
|
31302
|
-
for (v.Ya += B, x[
|
|
31303
|
-
w[X] = K, v.yb[X++] =
|
|
31303
|
+
for (v.Ya += B, x[le] = [B, X], K = 0; K < B; ++K)
|
|
31304
|
+
w[X] = K, v.yb[X++] = le;
|
|
31304
31305
|
}
|
|
31305
31306
|
if (v = d.oa, w = 0, x = h, I = mo(h), 0 < I && (w = parseInt(h.slice(I + 1)) >>> 0, x = h.slice(0, I)), (x = d.zb[x]) && w < x[0] && (w += x[1], v[w] = v[w] || he.getUniformLocation(d, h)))
|
|
31306
31307
|
return w;
|
|
@@ -31329,7 +31330,7 @@ function KP() {
|
|
|
31329
31330
|
}, glShaderSource: function(d, h, v, w) {
|
|
31330
31331
|
for (var x = "", I = 0; I < h; ++I) {
|
|
31331
31332
|
var B = w ? O[w + 4 * I >> 2] : -1, K = O[v + 4 * I >> 2];
|
|
31332
|
-
B = K ? Le(
|
|
31333
|
+
B = K ? Le(ce, K, 0 > B ? void 0 : B) : "", x += B;
|
|
31333
31334
|
}
|
|
31334
31335
|
he.shaderSource(Ar[d], x);
|
|
31335
31336
|
}, glStencilFunc: function(d, h, v) {
|
|
@@ -31346,12 +31347,12 @@ function KP() {
|
|
|
31346
31347
|
he.texParameteri(d, h, v);
|
|
31347
31348
|
}, glTexStorage2D: function(d, h, v, w, x) {
|
|
31348
31349
|
he.texStorage2D(d, h, v, w, x);
|
|
31349
|
-
}, glTexSubImage2D: function(d, h, v, w, x, I, B, K,
|
|
31350
|
+
}, glTexSubImage2D: function(d, h, v, w, x, I, B, K, le) {
|
|
31350
31351
|
if (he.Qa)
|
|
31351
|
-
he.texSubImage2D(d, h, v, w, x, I, B, K,
|
|
31352
|
-
else if (
|
|
31352
|
+
he.texSubImage2D(d, h, v, w, x, I, B, K, le);
|
|
31353
|
+
else if (le) {
|
|
31353
31354
|
var X = Bc(K);
|
|
31354
|
-
he.texSubImage2D(d, h, v, w, x, I, B, K, X,
|
|
31355
|
+
he.texSubImage2D(d, h, v, w, x, I, B, K, X, le >> 31 - Math.clz32(X.BYTES_PER_ELEMENT));
|
|
31355
31356
|
} else
|
|
31356
31357
|
he.texSubImage2D(d, h, v, w, x, I, B, K, null);
|
|
31357
31358
|
}, glUniform1i: function(d, h) {
|
|
@@ -31404,14 +31405,14 @@ function KP() {
|
|
|
31404
31405
|
var Wc = () => (Wc = oe.__errno_location)(), rr = T._ma_device__on_notification_unlocked = (d) => (rr = T._ma_device__on_notification_unlocked = oe.ma_device__on_notification_unlocked)(d);
|
|
31405
31406
|
T._ma_malloc_emscripten = (d, h) => (T._ma_malloc_emscripten = oe.ma_malloc_emscripten)(d, h), T._ma_free_emscripten = (d, h) => (T._ma_free_emscripten = oe.ma_free_emscripten)(d, h);
|
|
31406
31407
|
var go = T._ma_device_process_pcm_frames_capture__webaudio = (d, h, v) => (go = T._ma_device_process_pcm_frames_capture__webaudio = oe.ma_device_process_pcm_frames_capture__webaudio)(d, h, v), ml = T._ma_device_process_pcm_frames_playback__webaudio = (d, h, v) => (ml = T._ma_device_process_pcm_frames_playback__webaudio = oe.ma_device_process_pcm_frames_playback__webaudio)(d, h, v), gl = (d) => (gl = oe.__getTypeName)(d);
|
|
31407
|
-
T.__embind_initialize_bindings = () => (T.__embind_initialize_bindings = oe._embind_initialize_bindings)(), T.dynCall_iiiji = (d, h, v, w, x, I) => (T.dynCall_iiiji = oe.dynCall_iiiji)(d, h, v, w, x, I), T.dynCall_iij = (d, h, v, w) => (T.dynCall_iij = oe.dynCall_iij)(d, h, v, w), T.dynCall_iiji = (d, h, v, w, x) => (T.dynCall_iiji = oe.dynCall_iiji)(d, h, v, w, x), T.dynCall_jii = (d, h, v) => (T.dynCall_jii = oe.dynCall_jii)(d, h, v), T.dynCall_vijj = (d, h, v, w, x, I) => (T.dynCall_vijj = oe.dynCall_vijj)(d, h, v, w, x, I), T.dynCall_jiji = (d, h, v, w, x) => (T.dynCall_jiji = oe.dynCall_jiji)(d, h, v, w, x), T.dynCall_viijii = (d, h, v, w, x, I, B) => (T.dynCall_viijii = oe.dynCall_viijii)(d, h, v, w, x, I, B), T.dynCall_iiiiij = (d, h, v, w, x, I, B) => (T.dynCall_iiiiij = oe.dynCall_iiiiij)(d, h, v, w, x, I, B), T.dynCall_iiiiijj = (d, h, v, w, x, I, B, K,
|
|
31408
|
+
T.__embind_initialize_bindings = () => (T.__embind_initialize_bindings = oe._embind_initialize_bindings)(), T.dynCall_iiiji = (d, h, v, w, x, I) => (T.dynCall_iiiji = oe.dynCall_iiiji)(d, h, v, w, x, I), T.dynCall_iij = (d, h, v, w) => (T.dynCall_iij = oe.dynCall_iij)(d, h, v, w), T.dynCall_iiji = (d, h, v, w, x) => (T.dynCall_iiji = oe.dynCall_iiji)(d, h, v, w, x), T.dynCall_jii = (d, h, v) => (T.dynCall_jii = oe.dynCall_jii)(d, h, v), T.dynCall_vijj = (d, h, v, w, x, I) => (T.dynCall_vijj = oe.dynCall_vijj)(d, h, v, w, x, I), T.dynCall_jiji = (d, h, v, w, x) => (T.dynCall_jiji = oe.dynCall_jiji)(d, h, v, w, x), T.dynCall_viijii = (d, h, v, w, x, I, B) => (T.dynCall_viijii = oe.dynCall_viijii)(d, h, v, w, x, I, B), T.dynCall_iiiiij = (d, h, v, w, x, I, B) => (T.dynCall_iiiiij = oe.dynCall_iiiiij)(d, h, v, w, x, I, B), T.dynCall_iiiiijj = (d, h, v, w, x, I, B, K, le) => (T.dynCall_iiiiijj = oe.dynCall_iiiiijj)(d, h, v, w, x, I, B, K, le), T.dynCall_iiiiiijj = (d, h, v, w, x, I, B, K, le, X) => (T.dynCall_iiiiiijj = oe.dynCall_iiiiiijj)(d, h, v, w, x, I, B, K, le, X), T.___start_em_js = 531476, T.___stop_em_js = 534231;
|
|
31408
31409
|
var ds;
|
|
31409
31410
|
er = function d() {
|
|
31410
31411
|
ds || vl(), ds || (er = d);
|
|
31411
31412
|
};
|
|
31412
31413
|
function vl() {
|
|
31413
31414
|
function d() {
|
|
31414
|
-
if (!ds && (ds = !0, T.calledRun = !0, !
|
|
31415
|
+
if (!ds && (ds = !0, T.calledRun = !0, !Pe)) {
|
|
31415
31416
|
if (T.noFSInit || $o || ($o = !0, Qa(), T.stdin = T.stdin, T.stdout = T.stdout, T.stderr = T.stderr, T.stdin ? qo("stdin", T.stdin) : Ya("/dev/tty", "/dev/stdin"), T.stdout ? qo("stdout", null, T.stdout) : Ya("/dev/tty", "/dev/stdout"), T.stderr ? qo("stderr", null, T.stderr) : Ya("/dev/tty1", "/dev/stderr"), $s("/dev/stdin", 0), $s("/dev/stdout", 1), $s("/dev/stderr", 1)), Vs = !1, P(qe), N(T), T.onRuntimeInitialized && T.onRuntimeInitialized(), T.postRun)
|
|
31416
31417
|
for (typeof T.postRun == "function" && (T.postRun = [T.postRun]); T.postRun.length; ) {
|
|
31417
31418
|
var h = T.postRun.shift();
|
|
@@ -31632,23 +31633,23 @@ function KP() {
|
|
|
31632
31633
|
var T = _.canvas, N = _.artboard, A = _.stateMachines, H = A === void 0 ? [] : A, z = _.renderer, ee = _.rive, U = _.fit, L = _.alignment, F = _.isTouchScrollEnabled, G = F === void 0 ? !1 : F, se = _.layoutScaleFactor, Q = se === void 0 ? 1 : se;
|
|
31633
31634
|
if (!T || !H.length || !z || !ee || !N || typeof window > "u")
|
|
31634
31635
|
return null;
|
|
31635
|
-
var $ = null, q = !1, Y = function(
|
|
31636
|
-
if (q &&
|
|
31637
|
-
|
|
31636
|
+
var $ = null, q = !1, Y = function(Ie) {
|
|
31637
|
+
if (q && Ie instanceof MouseEvent) {
|
|
31638
|
+
Ie.type == "mouseup" && (q = !1);
|
|
31638
31639
|
return;
|
|
31639
31640
|
}
|
|
31640
|
-
q = G &&
|
|
31641
|
-
var We =
|
|
31642
|
-
if (!(!
|
|
31643
|
-
var
|
|
31641
|
+
q = G && Ie.type === "touchend" && $ === "touchstart", $ = Ie.type;
|
|
31642
|
+
var We = Ie.currentTarget.getBoundingClientRect(), oe = g(Ie, G), Pe = oe.clientX, me = oe.clientY;
|
|
31643
|
+
if (!(!Pe && !me)) {
|
|
31644
|
+
var ce = Pe - We.left, Ce = me - We.top, de = ee.computeAlignment(U, L, {
|
|
31644
31645
|
minX: 0,
|
|
31645
31646
|
minY: 0,
|
|
31646
31647
|
maxX: We.width,
|
|
31647
31648
|
maxY: We.height
|
|
31648
31649
|
}, N.bounds, Q), O = new ee.Mat2D();
|
|
31649
31650
|
de.invert(O);
|
|
31650
|
-
var te = new ee.Vec2D(
|
|
31651
|
-
switch (Ve.delete(), O.delete(), te.delete(), de.delete(),
|
|
31651
|
+
var te = new ee.Vec2D(ce, Ce), Ve = ee.mapXY(O, te), Ke = Ve.x(), Xe = Ve.y();
|
|
31652
|
+
switch (Ve.delete(), O.delete(), te.delete(), de.delete(), Ie.type) {
|
|
31652
31653
|
/**
|
|
31653
31654
|
* There's a 2px buffer for a hitRadius when translating the pointer coordinates
|
|
31654
31655
|
* down to the state machine. In cases where the hitbox is about that much away
|
|
@@ -31811,10 +31812,10 @@ function KP() {
|
|
|
31811
31812
|
});
|
|
31812
31813
|
var p = /* @__PURE__ */ function() {
|
|
31813
31814
|
var $ = function(q, Y) {
|
|
31814
|
-
return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(fe,
|
|
31815
|
-
fe.__proto__ =
|
|
31816
|
-
} || function(fe,
|
|
31817
|
-
for (var We in
|
|
31815
|
+
return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(fe, Ie) {
|
|
31816
|
+
fe.__proto__ = Ie;
|
|
31817
|
+
} || function(fe, Ie) {
|
|
31818
|
+
for (var We in Ie) Object.prototype.hasOwnProperty.call(Ie, We) && (fe[We] = Ie[We]);
|
|
31818
31819
|
}, $(q, Y);
|
|
31819
31820
|
};
|
|
31820
31821
|
return function(q, Y) {
|
|
@@ -32769,7 +32770,7 @@ To resolve, you may need to:`,
|
|
|
32769
32770
|
(function(P) {
|
|
32770
32771
|
P.OneShot = "oneshot", P.Loop = "loop", P.PingPong = "pingpong";
|
|
32771
32772
|
})(fe || (fe = {}));
|
|
32772
|
-
var
|
|
32773
|
+
var Ie = (
|
|
32773
32774
|
/** @class */
|
|
32774
32775
|
function() {
|
|
32775
32776
|
function P(y) {
|
|
@@ -32822,7 +32823,7 @@ To resolve, you may need to:`,
|
|
|
32822
32823
|
(function(P) {
|
|
32823
32824
|
P[P.AVAILABLE = 0] = "AVAILABLE", P[P.UNAVAILABLE = 1] = "UNAVAILABLE";
|
|
32824
32825
|
})(oe || (oe = {}));
|
|
32825
|
-
var
|
|
32826
|
+
var Pe = (
|
|
32826
32827
|
/** @class */
|
|
32827
32828
|
function(P) {
|
|
32828
32829
|
g(y, P);
|
|
@@ -32936,8 +32937,8 @@ To resolve, you may need to:`,
|
|
|
32936
32937
|
enumerable: !1,
|
|
32937
32938
|
configurable: !0
|
|
32938
32939
|
}), y;
|
|
32939
|
-
}(
|
|
32940
|
-
),
|
|
32940
|
+
}(Ie)
|
|
32941
|
+
), me = new Pe(), ce = (
|
|
32941
32942
|
/** @class */
|
|
32942
32943
|
function() {
|
|
32943
32944
|
function P() {
|
|
@@ -32947,7 +32948,7 @@ To resolve, you may need to:`,
|
|
|
32947
32948
|
}, P.prototype.disconnect = function() {
|
|
32948
32949
|
}, P;
|
|
32949
32950
|
}()
|
|
32950
|
-
),
|
|
32951
|
+
), Ce = globalThis.ResizeObserver || ce, de = (
|
|
32951
32952
|
/** @class */
|
|
32952
32953
|
function() {
|
|
32953
32954
|
function P() {
|
|
@@ -32957,7 +32958,7 @@ To resolve, you may need to:`,
|
|
|
32957
32958
|
M !== null ? M.onResize(S.target.clientWidth == 0 || S.target.clientHeight == 0) : y._resizeObserver.unobserve(S.target);
|
|
32958
32959
|
}, this._onObserved = function(S) {
|
|
32959
32960
|
S.forEach(y._onObservedEntry);
|
|
32960
|
-
}, this._resizeObserver = new
|
|
32961
|
+
}, this._resizeObserver = new Ce(this._onObserved);
|
|
32961
32962
|
}
|
|
32962
32963
|
return P.prototype.add = function(y, S) {
|
|
32963
32964
|
var M = {
|
|
@@ -32973,7 +32974,7 @@ To resolve, you may need to:`,
|
|
|
32973
32974
|
/** @class */
|
|
32974
32975
|
function() {
|
|
32975
32976
|
function P(y) {
|
|
32976
|
-
this.enableRiveAssetCDN = !0, this.referenceCount = 0, this.destroyed = !1, this.selfUnref = !1, this.src = y.src, this.buffer = y.buffer, y.assetLoader && (this.assetLoader = y.assetLoader), this.enableRiveAssetCDN = typeof y.enableRiveAssetCDN == "boolean" ? y.enableRiveAssetCDN : !0, this.eventManager = new
|
|
32977
|
+
this.enableRiveAssetCDN = !0, this.referenceCount = 0, this.destroyed = !1, this.selfUnref = !1, this.src = y.src, this.buffer = y.buffer, y.assetLoader && (this.assetLoader = y.assetLoader), this.enableRiveAssetCDN = typeof y.enableRiveAssetCDN == "boolean" ? y.enableRiveAssetCDN : !0, this.eventManager = new Ie(), y.onLoad && this.on(Y.Load, y.onLoad), y.onLoadError && this.on(Y.LoadError, y.onLoadError);
|
|
32977
32978
|
}
|
|
32978
32979
|
return P.prototype.releaseFile = function() {
|
|
32979
32980
|
var y;
|
|
@@ -33074,7 +33075,7 @@ To resolve, you may need to:`,
|
|
|
33074
33075
|
this.loaded = !1, this.destroyed = !1, this._observed = null, this.readyForPlaying = !1, this.artboard = null, this.eventCleanup = null, this.shouldDisableRiveListeners = !1, this.automaticallyHandleEvents = !1, this.enableRiveAssetCDN = !0, this._volume = 1, this._artboardWidth = void 0, this._artboardHeight = void 0, this._devicePixelRatioUsed = 1, this._hasZeroSize = !1, this._audioEventListener = null, this._boundDraw = null, this._viewModelInstance = null, this._dataEnums = null, this.durations = [], this.frameTimes = [], this.frameCount = 0, this.isTouchScrollEnabled = !1, this.onCanvasResize = function(J) {
|
|
33075
33076
|
var ue = S._hasZeroSize !== J;
|
|
33076
33077
|
S._hasZeroSize = J, J ? (!S._layout.maxX || !S._layout.maxY) && S.resizeToCanvas() : ue && S.resizeDrawingSurfaceToCanvas();
|
|
33077
|
-
}, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = y.canvas, y.canvas.constructor === HTMLCanvasElement && (this._observed = O.add(this.canvas, this.onCanvasResize)), this.src = y.src, this.buffer = y.buffer, this.riveFile = y.riveFile, this.layout = (M = y.layout) !== null && M !== void 0 ? M : new U(), this.shouldDisableRiveListeners = !!y.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!y.isTouchScrollEnabled, this.automaticallyHandleEvents = !!y.automaticallyHandleEvents, this.enableRiveAssetCDN = y.enableRiveAssetCDN === void 0 ? !0 : y.enableRiveAssetCDN, this.eventManager = new
|
|
33078
|
+
}, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = y.canvas, y.canvas.constructor === HTMLCanvasElement && (this._observed = O.add(this.canvas, this.onCanvasResize)), this.src = y.src, this.buffer = y.buffer, this.riveFile = y.riveFile, this.layout = (M = y.layout) !== null && M !== void 0 ? M : new U(), this.shouldDisableRiveListeners = !!y.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!y.isTouchScrollEnabled, this.automaticallyHandleEvents = !!y.automaticallyHandleEvents, this.enableRiveAssetCDN = y.enableRiveAssetCDN === void 0 ? !0 : y.enableRiveAssetCDN, this.eventManager = new Ie(), y.onLoad && this.on(Y.Load, y.onLoad), y.onLoadError && this.on(Y.LoadError, y.onLoadError), y.onPlay && this.on(Y.Play, y.onPlay), y.onPause && this.on(Y.Pause, y.onPause), y.onStop && this.on(Y.Stop, y.onStop), y.onLoop && this.on(Y.Loop, y.onLoop), y.onStateChange && this.on(Y.StateChange, y.onStateChange), y.onAdvance && this.on(Y.Advance, y.onAdvance), y.onload && !y.onLoad && this.on(Y.Load, y.onload), y.onloaderror && !y.onLoadError && this.on(Y.LoadError, y.onloaderror), y.onplay && !y.onPlay && this.on(Y.Play, y.onplay), y.onpause && !y.onPause && this.on(Y.Pause, y.onpause), y.onstop && !y.onStop && this.on(Y.Stop, y.onstop), y.onloop && !y.onLoop && this.on(Y.Loop, y.onloop), y.onstatechange && !y.onStateChange && this.on(Y.StateChange, y.onstatechange), y.assetLoader && (this.assetLoader = y.assetLoader), this.taskQueue = new We(this.eventManager), this.init({
|
|
33078
33079
|
src: this.src,
|
|
33079
33080
|
buffer: this.buffer,
|
|
33080
33081
|
riveFile: this.riveFile,
|
|
@@ -33137,12 +33138,12 @@ To resolve, you may need to:`,
|
|
|
33137
33138
|
this.eventCleanup && (this.eventCleanup(), this.eventCleanup = null);
|
|
33138
33139
|
}, P.prototype.initializeAudio = function() {
|
|
33139
33140
|
var y = this, S;
|
|
33140
|
-
|
|
33141
|
+
me.status == oe.UNAVAILABLE && !((S = this.artboard) === null || S === void 0) && S.hasAudio && this._audioEventListener === null && (this._audioEventListener = {
|
|
33141
33142
|
type: Y.AudioStatusChange,
|
|
33142
33143
|
callback: function() {
|
|
33143
33144
|
return y.onSystemAudioChanged();
|
|
33144
33145
|
}
|
|
33145
|
-
},
|
|
33146
|
+
}, me.add(this._audioEventListener), me.establishAudio());
|
|
33146
33147
|
}, P.prototype.initArtboardSize = function() {
|
|
33147
33148
|
this.artboard && (this._artboardWidth = this.artboard.width = this._artboardWidth || this.artboard.width, this._artboardHeight = this.artboard.height = this._artboardHeight || this.artboard.height);
|
|
33148
33149
|
}, P.prototype.initData = function(y, S, M, J, ue) {
|
|
@@ -33184,7 +33185,7 @@ To resolve, you may need to:`,
|
|
|
33184
33185
|
console.warn(Ge), this.eventManager.fire({ type: Y.LoadError, data: Ge });
|
|
33185
33186
|
return;
|
|
33186
33187
|
}
|
|
33187
|
-
this.artboard = ye, ye.volume = this._volume *
|
|
33188
|
+
this.artboard = ye, ye.volume = this._volume * me.systemVolume, this.animator = new q(this.runtime, this.artboard, this.eventManager);
|
|
33188
33189
|
var rt;
|
|
33189
33190
|
if (S.length > 0 || M.length > 0 ? (rt = S.concat(M), this.animator.initLinearAnimations(S, J), this.animator.initStateMachines(M, J)) : rt = [this.animator.atLeastOne(J, !1)], this.taskQueue.add({
|
|
33190
33191
|
event: {
|
|
@@ -33275,7 +33276,7 @@ To resolve, you may need to:`,
|
|
|
33275
33276
|
configurable: !0
|
|
33276
33277
|
}), P.prototype.cleanup = function() {
|
|
33277
33278
|
var y, S;
|
|
33278
|
-
this.destroyed = !0, this.stopRendering(), this.cleanupInstances(), this._observed !== null && O.remove(this._observed), this.removeRiveListeners(), this.file && ((y = this.riveFile) === null || y === void 0 || y.cleanup(), this.file = null), this.riveFile = null, this.deleteRiveRenderer(), this._audioEventListener !== null && (
|
|
33279
|
+
this.destroyed = !0, this.stopRendering(), this.cleanupInstances(), this._observed !== null && O.remove(this._observed), this.removeRiveListeners(), this.file && ((y = this.riveFile) === null || y === void 0 || y.cleanup(), this.file = null), this.riveFile = null, this.deleteRiveRenderer(), this._audioEventListener !== null && (me.remove(this._audioEventListener), this._audioEventListener = null), (S = this._viewModelInstance) === null || S === void 0 || S.cleanup(), this._viewModelInstance = null, this._dataEnums = null;
|
|
33279
33280
|
}, P.prototype.deleteRiveRenderer = function() {
|
|
33280
33281
|
var y;
|
|
33281
33282
|
(y = this.renderer) === null || y === void 0 || y.delete(), this.renderer = null;
|
|
@@ -33636,7 +33637,7 @@ To resolve, you may need to:`,
|
|
|
33636
33637
|
return this.artboard && this.artboard.volume !== this._volume && (this._volume = this.artboard.volume), this._volume;
|
|
33637
33638
|
},
|
|
33638
33639
|
set: function(y) {
|
|
33639
|
-
this._volume = y, this.artboard && (this.artboard.volume = y *
|
|
33640
|
+
this._volume = y, this.artboard && (this.artboard.volume = y * me.systemVolume);
|
|
33640
33641
|
},
|
|
33641
33642
|
enumerable: !1,
|
|
33642
33643
|
configurable: !0
|
|
@@ -34256,7 +34257,7 @@ To resolve, you may need to:`,
|
|
|
34256
34257
|
}, yn = function(P) {
|
|
34257
34258
|
return typeof P == "string" ? [P] : P instanceof Array ? P : [];
|
|
34258
34259
|
}, Li = {
|
|
34259
|
-
EventManager:
|
|
34260
|
+
EventManager: Ie,
|
|
34260
34261
|
TaskQueueManager: We
|
|
34261
34262
|
}, Un = function(P) {
|
|
34262
34263
|
return _(void 0, void 0, void 0, function() {
|
|
@@ -34359,7 +34360,7 @@ const YP = ({ restored: n }) => {
|
|
|
34359
34360
|
)
|
|
34360
34361
|
] });
|
|
34361
34362
|
}, sk = be.forwardRef((n, e) => {
|
|
34362
|
-
var
|
|
34363
|
+
var Ce;
|
|
34363
34364
|
const t = sessionStorage.getItem("nlxActiveVoiceConversationId") === n.config.conversationId, r = be.useMemo(() => {
|
|
34364
34365
|
const de = sessionStorage.getItem("nlxActiveConversationResponses") ?? "{}";
|
|
34365
34366
|
try {
|
|
@@ -34369,7 +34370,7 @@ const YP = ({ restored: n }) => {
|
|
|
34369
34370
|
} catch {
|
|
34370
34371
|
return null;
|
|
34371
34372
|
}
|
|
34372
|
-
}, [n.config.conversationId]), o = be.useMemo(() => DC({ responses: r, ...n.config }), [n.config, r]), [a, l] = be.useState([]), u = ((
|
|
34373
|
+
}, [n.config.conversationId]), o = be.useMemo(() => DC({ responses: r, ...n.config }), [n.config, r]), [a, l] = be.useState([]), u = ((Ce = a[a.length - 1]) == null ? void 0 : Ce.type) === Kn.User, f = n.colorMode ?? "dark", [p, g] = be.useState(
|
|
34373
34374
|
n.embedded || t
|
|
34374
34375
|
), C = LC(n.config), [_, T] = be.useState(!1), N = be.useRef(n.embedded || t), A = n.input ?? "text", H = be.useCallback(() => {
|
|
34375
34376
|
sessionStorage.removeItem("nlxActiveVoiceConversationId"), (A === "voice" || A === "voiceMini") && (U.current = !1, o.reset({ clearResponses: !0 }), sessionStorage.removeItem("nlxConversationId"));
|
|
@@ -34473,10 +34474,10 @@ const YP = ({ restored: n }) => {
|
|
|
34473
34474
|
}, [Q]), [q, Y] = be.useState({}), fe = be.useMemo(
|
|
34474
34475
|
() => n.modalityComponents ?? n.customModalities ?? {},
|
|
34475
34476
|
[n.modalityComponents, n.customModalities]
|
|
34476
|
-
), [
|
|
34477
|
+
), [Ie, We] = be.useState(!0), [oe, Pe] = be.useState(0), me = () => {
|
|
34477
34478
|
o.reset({ clearResponses: !0 }), H(), A !== "voice" && n.initializeConversation(o, n.initialContext);
|
|
34478
34479
|
const de = o.currentConversationId();
|
|
34479
|
-
sessionStorage.getItem("nlxConversationId") !== null && (de == null ? sessionStorage.removeItem("nlxConversationId") : sessionStorage.setItem("nlxConversationId", de)), de != null && sessionStorage.setItem("nlxActiveVoiceConversationId", de),
|
|
34480
|
+
sessionStorage.getItem("nlxConversationId") !== null && (de == null ? sessionStorage.removeItem("nlxConversationId") : sessionStorage.setItem("nlxConversationId", de)), de != null && sessionStorage.setItem("nlxActiveVoiceConversationId", de), Pe((O) => O + 1);
|
|
34480
34481
|
};
|
|
34481
34482
|
if (o == null)
|
|
34482
34483
|
return null;
|
|
@@ -34530,13 +34531,13 @@ const YP = ({ restored: n }) => {
|
|
|
34530
34531
|
]
|
|
34531
34532
|
}
|
|
34532
34533
|
) });
|
|
34533
|
-
const
|
|
34534
|
+
const ce = () => {
|
|
34534
34535
|
var de, O;
|
|
34535
34536
|
return _ ? /* @__PURE__ */ R.jsx(
|
|
34536
34537
|
H0,
|
|
34537
34538
|
{
|
|
34538
34539
|
reset: () => {
|
|
34539
|
-
|
|
34540
|
+
me(), T(!1);
|
|
34540
34541
|
},
|
|
34541
34542
|
className: st(
|
|
34542
34543
|
"flex-none",
|
|
@@ -34625,7 +34626,7 @@ const YP = ({ restored: n }) => {
|
|
|
34625
34626
|
windowSize: n.embedded ? "embedded" : se,
|
|
34626
34627
|
errorThemedCloseButton: A === "voice",
|
|
34627
34628
|
speakerControls: A === "voice" ? {
|
|
34628
|
-
enabled:
|
|
34629
|
+
enabled: Ie,
|
|
34629
34630
|
setEnabled: We
|
|
34630
34631
|
} : void 0,
|
|
34631
34632
|
colorMode: f,
|
|
@@ -34640,10 +34641,10 @@ const YP = ({ restored: n }) => {
|
|
|
34640
34641
|
} : void 0,
|
|
34641
34642
|
renderCollapse: n.onClose != null,
|
|
34642
34643
|
collapse: ee,
|
|
34643
|
-
reset:
|
|
34644
|
+
reset: me
|
|
34644
34645
|
}
|
|
34645
34646
|
),
|
|
34646
|
-
A === "text" ?
|
|
34647
|
+
A === "text" ? ce() : /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
34647
34648
|
_ ? /* @__PURE__ */ R.jsx(
|
|
34648
34649
|
H0,
|
|
34649
34650
|
{
|
|
@@ -34655,7 +34656,7 @@ const YP = ({ restored: n }) => {
|
|
|
34655
34656
|
T(!1);
|
|
34656
34657
|
},
|
|
34657
34658
|
reset: () => {
|
|
34658
|
-
|
|
34659
|
+
me(), T(!1);
|
|
34659
34660
|
},
|
|
34660
34661
|
handler: o
|
|
34661
34662
|
}
|
|
@@ -34665,7 +34666,7 @@ const YP = ({ restored: n }) => {
|
|
|
34665
34666
|
{
|
|
34666
34667
|
brandIcon: n.brandIcon,
|
|
34667
34668
|
handler: o,
|
|
34668
|
-
speakersEnabled:
|
|
34669
|
+
speakersEnabled: Ie,
|
|
34669
34670
|
colorMode: f,
|
|
34670
34671
|
className: _ ? "hidden" : "grow",
|
|
34671
34672
|
context: n.initialContext,
|
|
@@ -35343,17 +35344,17 @@ var rc = function(n) {
|
|
|
35343
35344
|
H.cachedId = H.id;
|
|
35344
35345
|
var $ = a.value, q = a.selectionStart, Y = a.selectionEnd;
|
|
35345
35346
|
if (q === null || Y === null) throw new rc("The selection attributes have not been initialized.");
|
|
35346
|
-
var fe,
|
|
35347
|
-
if (G.inputType === void 0 && (z.selectionStart = 0, z.selectionEnd =
|
|
35348
|
-
var We = "", oe = z.selectionStart,
|
|
35347
|
+
var fe, Ie = z.value;
|
|
35348
|
+
if (G.inputType === void 0 && (z.selectionStart = 0, z.selectionEnd = Ie.length), q > z.selectionStart ? fe = "insert" : q <= z.selectionStart && q < z.selectionEnd ? fe = "deleteBackward" : q === z.selectionEnd && $.length < Ie.length && (fe = "deleteForward"), fe === void 0 || (fe === "deleteBackward" || fe === "deleteForward") && $.length > Ie.length) throw new rc("Input type detection error.");
|
|
35349
|
+
var We = "", oe = z.selectionStart, Pe = z.selectionEnd;
|
|
35349
35350
|
if (fe === "insert") We = $.slice(z.selectionStart, q);
|
|
35350
35351
|
else {
|
|
35351
|
-
var
|
|
35352
|
-
oe = q,
|
|
35352
|
+
var me = Ie.length - $.length;
|
|
35353
|
+
oe = q, Pe = q + me;
|
|
35353
35354
|
}
|
|
35354
|
-
A.value !==
|
|
35355
|
-
var
|
|
35356
|
-
a.value = O.value, a.setSelectionRange(O.selectionStart, O.selectionEnd), A.value = O.value, A.options = de, z.selectionStart = O.selectionStart, z.selectionEnd = O.selectionEnd, (se = a._valueTracker) === null || se === void 0 || (Q = se.setValue) === null || Q === void 0 || Q.call(se,
|
|
35355
|
+
A.value !== Ie ? A.options = A.fallbackOptions : A.fallbackOptions = A.options;
|
|
35356
|
+
var ce = A.options, Ce = r({ inputType: fe, previousValue: Ie, previousOptions: ce, value: $, addedValue: We, changeStart: oe, changeEnd: Pe, selectionStart: q, selectionEnd: Y }), de = Ce.options, O = mR(Ce, gR);
|
|
35357
|
+
a.value = O.value, a.setSelectionRange(O.selectionStart, O.selectionEnd), A.value = O.value, A.options = de, z.selectionStart = O.selectionStart, z.selectionEnd = O.selectionEnd, (se = a._valueTracker) === null || se === void 0 || (Q = se.setValue) === null || Q === void 0 || Q.call(se, Ie);
|
|
35357
35358
|
} catch (te) {
|
|
35358
35359
|
if (a.value = z.value, a.setSelectionRange(z.selectionStart, z.selectionEnd), G.preventDefault(), G.stopPropagation(), te.name !== "SyntheticChangeError") throw te;
|
|
35359
35360
|
}
|
|
@@ -35395,30 +35396,30 @@ var wk = function(n) {
|
|
|
35395
35396
|
Y < 0 ? se = se.slice(-Y) : Y > 0 && (se = q.slice(-Y) + se);
|
|
35396
35397
|
}
|
|
35397
35398
|
se && (se = nc(se, { replacementChars: $, replacement: H, separate: ee }));
|
|
35398
|
-
var fe = mk(G + f + se, { mask: A, replacement: H, separate: ee, showMask: z }),
|
|
35399
|
-
var oe,
|
|
35399
|
+
var fe = mk(G + f + se, { mask: A, replacement: H, separate: ee, showMask: z }), Ie = function(We) {
|
|
35400
|
+
var oe, Pe, me, ce = We.inputType, Ce = We.value, de = We.addedValue, O = We.beforeChangeValue, te = We.mask, Ve = We.replacement, Ke = We.separate, Xe = gk(Ce, { mask: te, replacement: Ve }).filter(function(At) {
|
|
35400
35401
|
var Ht = At.type;
|
|
35401
35402
|
return Ht === "input" || Ke && Ht === "replacement";
|
|
35402
|
-
}), Fe = (oe = Xe[O.length + de.length - 1]) === null || oe === void 0 ? void 0 : oe.index, et = (
|
|
35403
|
-
if (
|
|
35403
|
+
}), Fe = (oe = Xe[O.length + de.length - 1]) === null || oe === void 0 ? void 0 : oe.index, et = (Pe = Xe[O.length - 1]) === null || Pe === void 0 ? void 0 : Pe.index, qe = (me = Xe[O.length + de.length]) === null || me === void 0 ? void 0 : me.index;
|
|
35404
|
+
if (ce === "insert") {
|
|
35404
35405
|
if (Fe !== void 0) return Fe + 1;
|
|
35405
35406
|
if (qe !== void 0) return qe;
|
|
35406
35407
|
if (et !== void 0) return et + 1;
|
|
35407
35408
|
}
|
|
35408
|
-
if (
|
|
35409
|
+
if (ce === "deleteForward") {
|
|
35409
35410
|
if (qe !== void 0) return qe;
|
|
35410
35411
|
if (et !== void 0) return et + 1;
|
|
35411
35412
|
}
|
|
35412
|
-
if (
|
|
35413
|
+
if (ce === "deleteBackward") {
|
|
35413
35414
|
if (et !== void 0) return et + 1;
|
|
35414
35415
|
if (qe !== void 0) return qe;
|
|
35415
35416
|
}
|
|
35416
|
-
var dt =
|
|
35417
|
+
var dt = Ce.split("").findIndex(function(At) {
|
|
35417
35418
|
return Object.prototype.hasOwnProperty.call(Ve, At);
|
|
35418
35419
|
});
|
|
35419
|
-
return dt !== -1 ? dt :
|
|
35420
|
+
return dt !== -1 ? dt : Ce.length;
|
|
35420
35421
|
}({ inputType: a, value: fe, addedValue: f, beforeChangeValue: G, mask: A, replacement: H, separate: ee });
|
|
35421
|
-
return { value: fe, selectionStart:
|
|
35422
|
+
return { value: fe, selectionStart: Ie, selectionEnd: Ie, options: { mask: A, replacement: H, separate: ee } };
|
|
35422
35423
|
} }])).format = function(o) {
|
|
35423
35424
|
return vk(o, Ia(r));
|
|
35424
35425
|
}, t.formatToParts = function(o) {
|