@glydeunity/voice-sdk 1.6.7 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/glyde-chat.umd.js +11 -11
- package/dist/glyde-chat.umd.js.map +1 -1
- package/dist/voice-sdk.es.js +521 -513
- package/dist/voice-sdk.es.js.map +1 -1
- package/package.json +1 -1
package/dist/voice-sdk.es.js
CHANGED
|
@@ -193,18 +193,18 @@ class Ki {
|
|
|
193
193
|
async fetchConfigForContext(f, o) {
|
|
194
194
|
const T = `${this.unityUrl}/api/unity/voice/config/${f}`;
|
|
195
195
|
let r = o ? `${T}/${encodeURIComponent(o)}` : T;
|
|
196
|
-
const
|
|
197
|
-
this.config.skipContinuityLimit === !0 &&
|
|
198
|
-
const
|
|
196
|
+
const C = new URLSearchParams();
|
|
197
|
+
this.config.skipContinuityLimit === !0 && C.set("skip_continuity_limit", "true"), this.config.limitToLast != null && this.config.limitToLast > 0 && C.set("limit_to_last", String(this.config.limitToLast)), C.toString() && (r += (r.includes("?") ? "&" : "?") + C.toString());
|
|
198
|
+
const M = await fetch(r, {
|
|
199
199
|
method: "GET",
|
|
200
200
|
headers: this.getAuthHeaders()
|
|
201
201
|
});
|
|
202
|
-
if (!
|
|
203
|
-
const U = await
|
|
204
|
-
throw new Error(U.error?.message || U.message || `Failed to fetch voice config: ${
|
|
202
|
+
if (!M.ok) {
|
|
203
|
+
const U = await M.json().catch(() => ({}));
|
|
204
|
+
throw new Error(U.error?.message || U.message || `Failed to fetch voice config: ${M.status}`);
|
|
205
205
|
}
|
|
206
|
-
const { data:
|
|
207
|
-
return
|
|
206
|
+
const { data: B } = await M.json();
|
|
207
|
+
return B;
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* Initialize and start the voice session
|
|
@@ -229,17 +229,17 @@ class Ki {
|
|
|
229
229
|
const D = await o.json();
|
|
230
230
|
throw new Error(D.error?.message || D.message || "Failed to authenticate voice session");
|
|
231
231
|
}
|
|
232
|
-
const { data: T } = await o.json(), { token: r, agent_config:
|
|
232
|
+
const { data: T } = await o.json(), { token: r, agent_config: C, deepgram_config: M } = T;
|
|
233
233
|
this.setSessionContext({
|
|
234
|
-
clientUuid:
|
|
234
|
+
clientUuid: C?.client_uuid,
|
|
235
235
|
contextId: this.config.contextId,
|
|
236
236
|
contextType: this.config.contextType,
|
|
237
|
-
currentJobUuid:
|
|
237
|
+
currentJobUuid: C?.job_uuid
|
|
238
238
|
});
|
|
239
|
-
const
|
|
239
|
+
const B = C?.instructions || this.serverConfig?.system_prompt || "You are a helpful AI assistant.";
|
|
240
240
|
await this.initializeAudio();
|
|
241
241
|
let U = "wss://agent.deepgram.com/v1/agent/converse";
|
|
242
|
-
const x = this.config.deepgramConfig ||
|
|
242
|
+
const x = this.config.deepgramConfig || M || this.serverConfig?.deepgram_config;
|
|
243
243
|
if (x?.tags && x.tags.length > 0) {
|
|
244
244
|
const D = new URLSearchParams();
|
|
245
245
|
x.tags.forEach((N) => D.append("tag", N)), U += `?${D.toString()}`;
|
|
@@ -281,14 +281,14 @@ class Ki {
|
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
283
|
// Greeting is server-controlled; only set when server provides it
|
|
284
|
-
...(
|
|
285
|
-
greeting:
|
|
284
|
+
...(C?.greeting ?? D?.greeting) && {
|
|
285
|
+
greeting: C?.greeting ?? D?.greeting
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
|
-
D.tags && D.tags.length > 0 && (N.tags = D.tags), this.ws.send(JSON.stringify(N)), this.emit({ type: "open", payload: { config:
|
|
289
|
+
D.tags && D.tags.length > 0 && (N.tags = D.tags), this.ws.send(JSON.stringify(N)), this.emit({ type: "open", payload: { config: C, serverConfig: this.serverConfig } });
|
|
290
290
|
};
|
|
291
|
-
const
|
|
291
|
+
const Y = B;
|
|
292
292
|
this.ws.onmessage = (D) => {
|
|
293
293
|
if (typeof D.data == "string") {
|
|
294
294
|
try {
|
|
@@ -296,7 +296,7 @@ class Ki {
|
|
|
296
296
|
if (N.type === "SettingsApplied") {
|
|
297
297
|
const $ = {
|
|
298
298
|
type: "UpdatePrompt",
|
|
299
|
-
prompt:
|
|
299
|
+
prompt: Y
|
|
300
300
|
};
|
|
301
301
|
this.ws.send(JSON.stringify($)), setTimeout(() => {
|
|
302
302
|
this.mediaStream || this.startMicrophone().catch((I) => {
|
|
@@ -412,12 +412,12 @@ class Ki {
|
|
|
412
412
|
if (o === 0) return;
|
|
413
413
|
const T = o - o % 2;
|
|
414
414
|
if (T === 0) return;
|
|
415
|
-
const r = T === o ? f : f.slice(0, T),
|
|
416
|
-
for (let x = 0; x <
|
|
417
|
-
|
|
418
|
-
const
|
|
415
|
+
const r = T === o ? f : f.slice(0, T), C = new Int16Array(r), M = new Float32Array(C.length);
|
|
416
|
+
for (let x = 0; x < C.length; x++)
|
|
417
|
+
M[x] = C[x] / 32768;
|
|
418
|
+
const B = this.resample24kTo48k(M);
|
|
419
419
|
!this.isAgentSpeaking && !this.agentAudioDoneReceived && (this.isAgentSpeaking = !0, this.emit({ type: "agent_speaking", payload: !0 }));
|
|
420
|
-
const U = new Float32Array(
|
|
420
|
+
const U = new Float32Array(B);
|
|
421
421
|
this.playbackWorkletNode.port.postMessage({
|
|
422
422
|
type: "audio",
|
|
423
423
|
data: U
|
|
@@ -428,9 +428,9 @@ class Ki {
|
|
|
428
428
|
*/
|
|
429
429
|
resample24kTo48k(f) {
|
|
430
430
|
const o = f.length * 2, T = new Float32Array(o);
|
|
431
|
-
for (let
|
|
432
|
-
const
|
|
433
|
-
T[
|
|
431
|
+
for (let C = 0; C < f.length - 1; C++) {
|
|
432
|
+
const M = f[C], B = f[C + 1];
|
|
433
|
+
T[C * 2] = M, T[C * 2 + 1] = (M + B) / 2;
|
|
434
434
|
}
|
|
435
435
|
const r = f.length - 1;
|
|
436
436
|
return T[r * 2] = f[r], T[r * 2 + 1] = f[r], T;
|
|
@@ -556,32 +556,32 @@ class Ki {
|
|
|
556
556
|
let T = {};
|
|
557
557
|
try {
|
|
558
558
|
T = o.arguments ? JSON.parse(o.arguments) : {};
|
|
559
|
-
} catch (
|
|
560
|
-
console.warn("[GlydeVoice] Failed to parse function arguments:",
|
|
559
|
+
} catch (M) {
|
|
560
|
+
console.warn("[GlydeVoice] Failed to parse function arguments:", M);
|
|
561
561
|
}
|
|
562
562
|
let r;
|
|
563
563
|
try {
|
|
564
564
|
o.name === "end_conversation" ? r = await this.handleEndConversation(T) : r = await this.executeVoiceFunction(o.name, o.id, T);
|
|
565
|
-
} catch (
|
|
566
|
-
console.error("[GlydeVoice] Function call error:",
|
|
565
|
+
} catch (M) {
|
|
566
|
+
console.error("[GlydeVoice] Function call error:", M), r = JSON.stringify({
|
|
567
567
|
error: "Function execution failed",
|
|
568
|
-
details:
|
|
568
|
+
details: M instanceof Error ? M.message : String(M)
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
|
-
const
|
|
571
|
+
const C = {
|
|
572
572
|
type: "FunctionCallResponse",
|
|
573
573
|
id: o.id,
|
|
574
574
|
name: o.name,
|
|
575
575
|
content: r
|
|
576
576
|
};
|
|
577
|
-
this.ws && this.ws.readyState === WebSocket.OPEN ? (this.ws.send(JSON.stringify(
|
|
577
|
+
this.ws && this.ws.readyState === WebSocket.OPEN ? (this.ws.send(JSON.stringify(C)), console.log("[GlydeVoice] Function response sent:", o.name)) : console.error("[GlydeVoice] Cannot send function response - WebSocket not open");
|
|
578
578
|
try {
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
581
|
-
const
|
|
582
|
-
this.emit({ type: "context_switch", payload:
|
|
579
|
+
const M = typeof r == "string" ? JSON.parse(r) : r;
|
|
580
|
+
if (M && typeof M == "object" && M.context_switch && typeof M.context_switch.contextType == "string" && typeof M.context_switch.contextId == "string") {
|
|
581
|
+
const B = M.context_switch;
|
|
582
|
+
this.emit({ type: "context_switch", payload: B }), this.pendingContextReinit = { contextType: B.contextType, contextId: B.contextId }, this.pendingContextReinitFallbackTimer && clearTimeout(this.pendingContextReinitFallbackTimer), this.pendingContextReinitFallbackTimer = setTimeout(() => {
|
|
583
583
|
this.pendingContextReinitFallbackTimer = null, this.tryFlushPendingContextReinit();
|
|
584
|
-
}, Ki.PENDING_REINIT_FALLBACK_MS), console.log("[GlydeVoice] Context switch requested; will reinitialize when agent stops speaking or after", Ki.PENDING_REINIT_FALLBACK_MS / 1e3, "s:",
|
|
584
|
+
}, Ki.PENDING_REINIT_FALLBACK_MS), console.log("[GlydeVoice] Context switch requested; will reinitialize when agent stops speaking or after", Ki.PENDING_REINIT_FALLBACK_MS / 1e3, "s:", B);
|
|
585
585
|
}
|
|
586
586
|
} catch {
|
|
587
587
|
}
|
|
@@ -616,24 +616,24 @@ class Ki {
|
|
|
616
616
|
})
|
|
617
617
|
});
|
|
618
618
|
if (!r.ok) {
|
|
619
|
-
const
|
|
620
|
-
throw console.error("[GlydeVoice] Voice function API call failed:", r.status,
|
|
619
|
+
const M = await r.json().catch(() => ({})), B = M.error?.message || M.message || `HTTP ${r.status}`;
|
|
620
|
+
throw console.error("[GlydeVoice] Voice function API call failed:", r.status, B), new Error(B);
|
|
621
621
|
}
|
|
622
|
-
const
|
|
623
|
-
if (
|
|
624
|
-
const
|
|
625
|
-
if (typeof
|
|
626
|
-
const
|
|
627
|
-
console.warn("[GlydeVoice] Voice function backend reported failure:", f,
|
|
622
|
+
const C = await r.json();
|
|
623
|
+
if (C.success && C.data?.output !== void 0) {
|
|
624
|
+
const M = C.data.output;
|
|
625
|
+
if (typeof M == "object" && M !== null && M.success === !1) {
|
|
626
|
+
const B = M.error ?? M.fallback_message;
|
|
627
|
+
console.warn("[GlydeVoice] Voice function backend reported failure:", f, B);
|
|
628
628
|
}
|
|
629
|
-
return typeof
|
|
629
|
+
return typeof M == "string" ? M : JSON.stringify(M);
|
|
630
630
|
}
|
|
631
|
-
throw console.error("[GlydeVoice] Voice function invalid response:",
|
|
631
|
+
throw console.error("[GlydeVoice] Voice function invalid response:", C), new Error("Invalid response from voice function endpoint");
|
|
632
632
|
} catch (r) {
|
|
633
|
-
const
|
|
634
|
-
return console.error("[GlydeVoice] Voice function error:",
|
|
633
|
+
const C = r instanceof Error ? r.message : "Function execution failed";
|
|
634
|
+
return console.error("[GlydeVoice] Voice function error:", C, r), JSON.stringify({
|
|
635
635
|
success: !1,
|
|
636
|
-
error:
|
|
636
|
+
error: C,
|
|
637
637
|
fallback_message: "I apologize, but I'm having trouble with that request right now. Is there something else I can help you with?"
|
|
638
638
|
});
|
|
639
639
|
}
|
|
@@ -707,14 +707,14 @@ class Ki {
|
|
|
707
707
|
promptLength: T?.system_prompt?.length || 0,
|
|
708
708
|
promptPreview: T?.system_prompt?.substring(0, 200) || "(no prompt)"
|
|
709
709
|
});
|
|
710
|
-
const r = T?.system_prompt || "You are a helpful AI assistant.",
|
|
710
|
+
const r = T?.system_prompt || "You are a helpful AI assistant.", C = this.getContextDescription(f), M = this.getContextDescription(this.config.contextType || "screening"), B = `
|
|
711
711
|
---
|
|
712
712
|
## CRITICAL CONTEXT SWITCH - IMMEDIATE EFFECT
|
|
713
713
|
---
|
|
714
714
|
|
|
715
|
-
**STOP**: The previous conversation context ("${
|
|
715
|
+
**STOP**: The previous conversation context ("${M}") has ended.
|
|
716
716
|
|
|
717
|
-
**NEW CONTEXT**: You are now in "${
|
|
717
|
+
**NEW CONTEXT**: You are now in "${C}" mode.
|
|
718
718
|
|
|
719
719
|
**IMPORTANT**:
|
|
720
720
|
- Do NOT continue any screening agenda, interview questions, or job-specific requirements from before.
|
|
@@ -727,11 +727,11 @@ class Ki {
|
|
|
727
727
|
|
|
728
728
|
${r}`;
|
|
729
729
|
console.log("[GlydeVoice] Sending UpdatePrompt to Deepgram:", {
|
|
730
|
-
promptLength:
|
|
731
|
-
previousContext:
|
|
732
|
-
newContext:
|
|
733
|
-
headerPreview:
|
|
734
|
-
}), this.ws.send(JSON.stringify({ type: "UpdatePrompt", prompt:
|
|
730
|
+
promptLength: B.length,
|
|
731
|
+
previousContext: M,
|
|
732
|
+
newContext: C,
|
|
733
|
+
headerPreview: B.substring(0, 500)
|
|
734
|
+
}), this.ws.send(JSON.stringify({ type: "UpdatePrompt", prompt: B })), this.config = { ...this.config, contextType: f, contextId: o }, this.setSessionContext({ contextType: f, contextId: o }), this.serverConfig = T, console.log("[GlydeVoice] Context and prompt updated in-place:", f, o);
|
|
735
735
|
}
|
|
736
736
|
/**
|
|
737
737
|
* Get a human-readable description of a context type for use in context switch messages.
|
|
@@ -808,15 +808,15 @@ class mg {
|
|
|
808
808
|
const T = `${this.unityUrl}${f}`, r = {
|
|
809
809
|
...this.getAuthHeaders(),
|
|
810
810
|
...o.headers || {}
|
|
811
|
-
},
|
|
811
|
+
}, C = await fetch(T, {
|
|
812
812
|
...o,
|
|
813
813
|
headers: r
|
|
814
814
|
});
|
|
815
|
-
if (!
|
|
816
|
-
const
|
|
817
|
-
throw new Error(
|
|
815
|
+
if (!C.ok) {
|
|
816
|
+
const M = await C.json().catch(() => ({})), B = M.error?.message || M.message || `Request failed: ${C.status}`;
|
|
817
|
+
throw new Error(B);
|
|
818
818
|
}
|
|
819
|
-
return
|
|
819
|
+
return C.json();
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
822
|
* Update the current context
|
|
@@ -1024,7 +1024,7 @@ class pg extends mg {
|
|
|
1024
1024
|
* Initialize the chat session.
|
|
1025
1025
|
* For screening context, fetches summary with greeting.
|
|
1026
1026
|
* For other contexts (discovery, job_apply, etc.), generates initial greeting.
|
|
1027
|
-
*
|
|
1027
|
+
*
|
|
1028
1028
|
* @returns Array with the greeting message
|
|
1029
1029
|
*/
|
|
1030
1030
|
async initialize() {
|
|
@@ -1103,17 +1103,17 @@ class pg extends mg {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
this.history.push(o), this.config.onMessage && this.config.onMessage(o), this.emitEvent({ type: "message", payload: o }), this.setTyping(!0);
|
|
1105
1105
|
try {
|
|
1106
|
-
const T = this.buildChatRequestBody(f.trim()), r = this.getChatEndpoint(),
|
|
1106
|
+
const T = this.buildChatRequestBody(f.trim()), r = this.getChatEndpoint(), C = await this.unityFetch(r, {
|
|
1107
1107
|
method: "POST",
|
|
1108
1108
|
body: JSON.stringify(T)
|
|
1109
1109
|
});
|
|
1110
|
-
|
|
1110
|
+
C.history?.messages && (this.history = C.history.messages.filter(
|
|
1111
1111
|
(U) => U.role !== "system"
|
|
1112
|
-
)),
|
|
1113
|
-
const
|
|
1114
|
-
return
|
|
1112
|
+
)), C.context_switch && (this.contextSwitchManager.requestContextSwitch(C.context_switch), await this.contextSwitchManager.flushPendingContextSwitch());
|
|
1113
|
+
const M = [...this.history].reverse().find((U) => U.role === "assistant");
|
|
1114
|
+
return M ? (this.config.onMessage && this.config.onMessage(M), this.emitEvent({ type: "message", payload: M }), M) : {
|
|
1115
1115
|
role: "assistant",
|
|
1116
|
-
content:
|
|
1116
|
+
content: C.response || "I received your message.",
|
|
1117
1117
|
created: (/* @__PURE__ */ new Date()).toISOString()
|
|
1118
1118
|
};
|
|
1119
1119
|
} catch (T) {
|
|
@@ -1173,11 +1173,11 @@ class pg extends mg {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Get the current conversation history
|
|
1176
|
-
*
|
|
1176
|
+
*
|
|
1177
1177
|
* IMPORTANT: System messages are filtered out - they contain AI context
|
|
1178
1178
|
* (summaries, instructions) that should never be displayed to users.
|
|
1179
1179
|
* Only user and assistant messages are returned.
|
|
1180
|
-
*
|
|
1180
|
+
*
|
|
1181
1181
|
* @returns Array of chat messages (user and assistant only)
|
|
1182
1182
|
*/
|
|
1183
1183
|
getHistory() {
|
|
@@ -1258,7 +1258,7 @@ function bg() {
|
|
|
1258
1258
|
if (Md) return K;
|
|
1259
1259
|
Md = 1;
|
|
1260
1260
|
var h = { env: { NODE_ENV: "production" } };
|
|
1261
|
-
var f = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
1261
|
+
var f = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), C = /* @__PURE__ */ Symbol.for("react.profiler"), M = /* @__PURE__ */ Symbol.for("react.consumer"), B = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), Y = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.activity"), $ = Symbol.iterator;
|
|
1262
1262
|
function I(y) {
|
|
1263
1263
|
return y === null || typeof y != "object" ? null : (y = $ && y[$] || y["@@iterator"], typeof y == "function" ? y : null);
|
|
1264
1264
|
}
|
|
@@ -1291,19 +1291,19 @@ function bg() {
|
|
|
1291
1291
|
function dt(y, _, w) {
|
|
1292
1292
|
this.props = y, this.context = _, this.refs = k, this.updater = w || Z;
|
|
1293
1293
|
}
|
|
1294
|
-
var
|
|
1295
|
-
|
|
1294
|
+
var q = dt.prototype = new St();
|
|
1295
|
+
q.constructor = dt, J(q, ot.prototype), q.isPureReactComponent = !0;
|
|
1296
1296
|
var Tt = Array.isArray;
|
|
1297
1297
|
function jt() {
|
|
1298
1298
|
}
|
|
1299
1299
|
var tt = { H: null, A: null, T: null, S: null }, Gt = Object.prototype.hasOwnProperty;
|
|
1300
1300
|
function Pt(y, _, w) {
|
|
1301
|
-
var
|
|
1301
|
+
var L = w.ref;
|
|
1302
1302
|
return {
|
|
1303
1303
|
$$typeof: f,
|
|
1304
1304
|
type: y,
|
|
1305
1305
|
key: _,
|
|
1306
|
-
ref:
|
|
1306
|
+
ref: L !== void 0 ? L : null,
|
|
1307
1307
|
props: w
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
@@ -1346,7 +1346,7 @@ function bg() {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
throw y;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function O(y, _, w, L, et) {
|
|
1350
1350
|
var lt = typeof y;
|
|
1351
1351
|
(lt === "undefined" || lt === "boolean") && (y = null);
|
|
1352
1352
|
var yt = !1;
|
|
@@ -1365,17 +1365,17 @@ function bg() {
|
|
|
1365
1365
|
yt = !0;
|
|
1366
1366
|
break;
|
|
1367
1367
|
case D:
|
|
1368
|
-
return yt = y._init,
|
|
1368
|
+
return yt = y._init, O(
|
|
1369
1369
|
yt(y._payload),
|
|
1370
1370
|
_,
|
|
1371
1371
|
w,
|
|
1372
|
-
|
|
1372
|
+
L,
|
|
1373
1373
|
et
|
|
1374
1374
|
);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
if (yt)
|
|
1378
|
-
return et = et(y), yt =
|
|
1378
|
+
return et = et(y), yt = L === "" ? "." + Vt(y, 0) : L, Tt(et) ? (w = "", yt != null && (w = yt.replace(fe, "$&/") + "/"), O(et, _, w, "", function(Da) {
|
|
1379
1379
|
return Da;
|
|
1380
1380
|
})) : et != null && (Xt(et) && (et = Bt(
|
|
1381
1381
|
et,
|
|
@@ -1385,20 +1385,20 @@ function bg() {
|
|
|
1385
1385
|
) + "/") + yt
|
|
1386
1386
|
)), _.push(et)), 1;
|
|
1387
1387
|
yt = 0;
|
|
1388
|
-
var Ft =
|
|
1388
|
+
var Ft = L === "" ? "." : L + ":";
|
|
1389
1389
|
if (Tt(y))
|
|
1390
1390
|
for (var Ot = 0; Ot < y.length; Ot++)
|
|
1391
|
-
|
|
1392
|
-
|
|
1391
|
+
L = y[Ot], lt = Ft + Vt(L, Ot), yt += O(
|
|
1392
|
+
L,
|
|
1393
1393
|
_,
|
|
1394
1394
|
w,
|
|
1395
1395
|
lt,
|
|
1396
1396
|
et
|
|
1397
1397
|
);
|
|
1398
1398
|
else if (Ot = I(y), typeof Ot == "function")
|
|
1399
|
-
for (y = Ot.call(y), Ot = 0; !(
|
|
1400
|
-
|
|
1401
|
-
|
|
1399
|
+
for (y = Ot.call(y), Ot = 0; !(L = y.next()).done; )
|
|
1400
|
+
L = L.value, lt = Ft + Vt(L, Ot++), yt += O(
|
|
1401
|
+
L,
|
|
1402
1402
|
_,
|
|
1403
1403
|
w,
|
|
1404
1404
|
lt,
|
|
@@ -1406,11 +1406,11 @@ function bg() {
|
|
|
1406
1406
|
);
|
|
1407
1407
|
else if (lt === "object") {
|
|
1408
1408
|
if (typeof y.then == "function")
|
|
1409
|
-
return
|
|
1409
|
+
return O(
|
|
1410
1410
|
R(y),
|
|
1411
1411
|
_,
|
|
1412
1412
|
w,
|
|
1413
|
-
|
|
1413
|
+
L,
|
|
1414
1414
|
et
|
|
1415
1415
|
);
|
|
1416
1416
|
throw _ = String(y), Error(
|
|
@@ -1421,10 +1421,10 @@ function bg() {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
function j(y, _, w) {
|
|
1423
1423
|
if (y == null) return y;
|
|
1424
|
-
var
|
|
1425
|
-
return
|
|
1424
|
+
var L = [], et = 0;
|
|
1425
|
+
return O(y, L, "", "", function(lt) {
|
|
1426
1426
|
return _.call(w, lt, et++);
|
|
1427
|
-
}),
|
|
1427
|
+
}), L;
|
|
1428
1428
|
}
|
|
1429
1429
|
function it(y) {
|
|
1430
1430
|
if (y._status === -1) {
|
|
@@ -1485,7 +1485,7 @@ function bg() {
|
|
|
1485
1485
|
return y;
|
|
1486
1486
|
}
|
|
1487
1487
|
};
|
|
1488
|
-
return K.Activity = N, K.Children = $t, K.Component = ot, K.Fragment = T, K.Profiler =
|
|
1488
|
+
return K.Activity = N, K.Children = $t, K.Component = ot, K.Fragment = T, K.Profiler = C, K.PureComponent = dt, K.StrictMode = r, K.Suspense = x, K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = tt, K.__COMPILER_RUNTIME = {
|
|
1489
1489
|
__proto__: null,
|
|
1490
1490
|
c: function(y) {
|
|
1491
1491
|
return tt.H.useMemoCache(y);
|
|
@@ -1501,35 +1501,35 @@ function bg() {
|
|
|
1501
1501
|
throw Error(
|
|
1502
1502
|
"The argument must be a React element, but you passed " + y + "."
|
|
1503
1503
|
);
|
|
1504
|
-
var
|
|
1504
|
+
var L = J({}, y.props), et = y.key;
|
|
1505
1505
|
if (_ != null)
|
|
1506
1506
|
for (lt in _.key !== void 0 && (et = "" + _.key), _)
|
|
1507
|
-
!Gt.call(_, lt) || lt === "key" || lt === "__self" || lt === "__source" || lt === "ref" && _.ref === void 0 || (
|
|
1507
|
+
!Gt.call(_, lt) || lt === "key" || lt === "__self" || lt === "__source" || lt === "ref" && _.ref === void 0 || (L[lt] = _[lt]);
|
|
1508
1508
|
var lt = arguments.length - 2;
|
|
1509
|
-
if (lt === 1)
|
|
1509
|
+
if (lt === 1) L.children = w;
|
|
1510
1510
|
else if (1 < lt) {
|
|
1511
1511
|
for (var yt = Array(lt), Ft = 0; Ft < lt; Ft++)
|
|
1512
1512
|
yt[Ft] = arguments[Ft + 2];
|
|
1513
|
-
|
|
1513
|
+
L.children = yt;
|
|
1514
1514
|
}
|
|
1515
|
-
return Pt(y.type, et,
|
|
1515
|
+
return Pt(y.type, et, L);
|
|
1516
1516
|
}, K.createContext = function(y) {
|
|
1517
1517
|
return y = {
|
|
1518
|
-
$$typeof:
|
|
1518
|
+
$$typeof: B,
|
|
1519
1519
|
_currentValue: y,
|
|
1520
1520
|
_currentValue2: y,
|
|
1521
1521
|
_threadCount: 0,
|
|
1522
1522
|
Provider: null,
|
|
1523
1523
|
Consumer: null
|
|
1524
1524
|
}, y.Provider = y, y.Consumer = {
|
|
1525
|
-
$$typeof:
|
|
1525
|
+
$$typeof: M,
|
|
1526
1526
|
_context: y
|
|
1527
1527
|
}, y;
|
|
1528
1528
|
}, K.createElement = function(y, _, w) {
|
|
1529
|
-
var
|
|
1529
|
+
var L, et = {}, lt = null;
|
|
1530
1530
|
if (_ != null)
|
|
1531
|
-
for (
|
|
1532
|
-
Gt.call(_,
|
|
1531
|
+
for (L in _.key !== void 0 && (lt = "" + _.key), _)
|
|
1532
|
+
Gt.call(_, L) && L !== "key" && L !== "__self" && L !== "__source" && (et[L] = _[L]);
|
|
1533
1533
|
var yt = arguments.length - 2;
|
|
1534
1534
|
if (yt === 1) et.children = w;
|
|
1535
1535
|
else if (1 < yt) {
|
|
@@ -1538,8 +1538,8 @@ function bg() {
|
|
|
1538
1538
|
et.children = Ft;
|
|
1539
1539
|
}
|
|
1540
1540
|
if (y && y.defaultProps)
|
|
1541
|
-
for (
|
|
1542
|
-
et[
|
|
1541
|
+
for (L in yt = y.defaultProps, yt)
|
|
1542
|
+
et[L] === void 0 && (et[L] = yt[L]);
|
|
1543
1543
|
return Pt(y, lt, et);
|
|
1544
1544
|
}, K.createRef = function() {
|
|
1545
1545
|
return { current: null };
|
|
@@ -1553,7 +1553,7 @@ function bg() {
|
|
|
1553
1553
|
};
|
|
1554
1554
|
}, K.memo = function(y, _) {
|
|
1555
1555
|
return {
|
|
1556
|
-
$$typeof:
|
|
1556
|
+
$$typeof: Y,
|
|
1557
1557
|
type: y,
|
|
1558
1558
|
compare: _ === void 0 ? null : _
|
|
1559
1559
|
};
|
|
@@ -1561,8 +1561,8 @@ function bg() {
|
|
|
1561
1561
|
var _ = tt.T, w = {};
|
|
1562
1562
|
tt.T = w;
|
|
1563
1563
|
try {
|
|
1564
|
-
var
|
|
1565
|
-
et !== null && et(w,
|
|
1564
|
+
var L = y(), et = tt.S;
|
|
1565
|
+
et !== null && et(w, L), typeof L == "object" && L !== null && typeof L.then == "function" && L.then(jt, P);
|
|
1566
1566
|
} catch (lt) {
|
|
1567
1567
|
P(lt);
|
|
1568
1568
|
} finally {
|
|
@@ -1620,51 +1620,51 @@ function Ef() {
|
|
|
1620
1620
|
var Q = Ef();
|
|
1621
1621
|
const Zi = /* @__PURE__ */ vg(Q);
|
|
1622
1622
|
function xg(h) {
|
|
1623
|
-
const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [
|
|
1624
|
-
switch (
|
|
1623
|
+
const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [C, M] = Q.useState(!1), [B, U] = Q.useState(!1), [x, Y] = Q.useState(!1), [D, N] = Q.useState(null), $ = Q.useRef(null), I = Q.useCallback((q) => {
|
|
1624
|
+
switch (q.type) {
|
|
1625
1625
|
case "ready":
|
|
1626
1626
|
o("active");
|
|
1627
1627
|
break;
|
|
1628
1628
|
case "close":
|
|
1629
|
-
o("idle"),
|
|
1629
|
+
o("idle"), M(!1), U(!1);
|
|
1630
1630
|
break;
|
|
1631
1631
|
case "error":
|
|
1632
1632
|
o("error"), N(
|
|
1633
|
-
typeof
|
|
1633
|
+
typeof q.payload == "object" && q.payload !== null && "message" in q.payload ? String(q.payload.message) : "Connection error"
|
|
1634
1634
|
);
|
|
1635
1635
|
break;
|
|
1636
1636
|
case "user_speaking":
|
|
1637
|
-
|
|
1637
|
+
M(!!q.payload);
|
|
1638
1638
|
break;
|
|
1639
1639
|
case "agent_speaking":
|
|
1640
|
-
U(!!
|
|
1640
|
+
U(!!q.payload);
|
|
1641
1641
|
break;
|
|
1642
1642
|
}
|
|
1643
|
-
}, []), Z = Q.useCallback((
|
|
1643
|
+
}, []), Z = Q.useCallback((q, Tt) => {
|
|
1644
1644
|
r((jt) => [...jt, {
|
|
1645
1645
|
role: Tt,
|
|
1646
|
-
content:
|
|
1646
|
+
content: q,
|
|
1647
1647
|
timestamp: /* @__PURE__ */ new Date()
|
|
1648
1648
|
}]);
|
|
1649
1649
|
}, []), J = Q.useCallback(async () => {
|
|
1650
1650
|
o("connecting"), N(null);
|
|
1651
1651
|
try {
|
|
1652
|
-
const
|
|
1652
|
+
const q = new Ki({
|
|
1653
1653
|
...h,
|
|
1654
1654
|
onEvent: I,
|
|
1655
1655
|
onTranscript: Z
|
|
1656
1656
|
});
|
|
1657
|
-
$.current =
|
|
1658
|
-
} catch (
|
|
1659
|
-
console.error("[useVoiceAgent] Failed to start:",
|
|
1657
|
+
$.current = q, await q.start();
|
|
1658
|
+
} catch (q) {
|
|
1659
|
+
console.error("[useVoiceAgent] Failed to start:", q), o("error"), N(q instanceof Error ? q.message : "Failed to connect");
|
|
1660
1660
|
}
|
|
1661
1661
|
}, [h, I, Z]), k = Q.useCallback(() => {
|
|
1662
|
-
$.current?.stop(), $.current = null, o("idle"),
|
|
1662
|
+
$.current?.stop(), $.current = null, o("idle"), M(!1), U(!1);
|
|
1663
1663
|
}, []), ot = Q.useCallback(() => {
|
|
1664
|
-
const
|
|
1665
|
-
|
|
1666
|
-
}, [x]), St = Q.useCallback((
|
|
1667
|
-
|
|
1664
|
+
const q = !x;
|
|
1665
|
+
Y(q), $.current?.setMuted(q);
|
|
1666
|
+
}, [x]), St = Q.useCallback((q) => {
|
|
1667
|
+
Y(q), $.current?.setMuted(q);
|
|
1668
1668
|
}, []), dt = Q.useCallback(() => {
|
|
1669
1669
|
r([]);
|
|
1670
1670
|
}, []);
|
|
@@ -1675,8 +1675,8 @@ function xg(h) {
|
|
|
1675
1675
|
}, [h.autoStart, f, J]), {
|
|
1676
1676
|
status: f,
|
|
1677
1677
|
transcripts: T,
|
|
1678
|
-
isUserSpeaking:
|
|
1679
|
-
isAgentSpeaking:
|
|
1678
|
+
isUserSpeaking: C,
|
|
1679
|
+
isAgentSpeaking: B,
|
|
1680
1680
|
isMuted: x,
|
|
1681
1681
|
errorMessage: D,
|
|
1682
1682
|
start: J,
|
|
@@ -1688,15 +1688,15 @@ function xg(h) {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
}
|
|
1690
1690
|
function Sg(h) {
|
|
1691
|
-
const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [
|
|
1691
|
+
const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [C, M] = Q.useState(!1), [B, U] = Q.useState(null), x = Q.useRef(null), Y = Q.useRef(!1), D = Q.useCallback(() => (x.current || (x.current = new pg({
|
|
1692
1692
|
...h,
|
|
1693
|
-
onTyping:
|
|
1693
|
+
onTyping: M
|
|
1694
1694
|
})), x.current), [h]), N = Q.useCallback(async () => {
|
|
1695
|
-
if (!
|
|
1695
|
+
if (!Y.current) {
|
|
1696
1696
|
o("loading"), U(null);
|
|
1697
1697
|
try {
|
|
1698
1698
|
const J = await D().initialize();
|
|
1699
|
-
r(J), o("ready"),
|
|
1699
|
+
r(J), o("ready"), Y.current = !0;
|
|
1700
1700
|
} catch (Z) {
|
|
1701
1701
|
console.error("[useTextChat] Initialization error:", Z), o("error"), U(Z instanceof Error ? Z.message : "Failed to initialize chat");
|
|
1702
1702
|
}
|
|
@@ -1712,23 +1712,23 @@ function Sg(h) {
|
|
|
1712
1712
|
};
|
|
1713
1713
|
r((St) => [...St, k]), await J.sendMessage(Z);
|
|
1714
1714
|
const ot = J.getHistory();
|
|
1715
|
-
r(ot), f !== "ready" && (o("ready"),
|
|
1715
|
+
r(ot), f !== "ready" && (o("ready"), Y.current = !0);
|
|
1716
1716
|
} catch (J) {
|
|
1717
1717
|
console.error("[useTextChat] Send message error:", J), U(J instanceof Error ? J.message : "Failed to send message");
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
}, [D, f]), I = Q.useCallback(() => {
|
|
1721
|
-
x.current?.clearHistory(), r([]),
|
|
1721
|
+
x.current?.clearHistory(), r([]), Y.current = !1, o("idle");
|
|
1722
1722
|
}, []);
|
|
1723
1723
|
return Q.useEffect(() => {
|
|
1724
|
-
h.autoInit && !
|
|
1724
|
+
h.autoInit && !Y.current && h.contextId && N();
|
|
1725
1725
|
}, [h.autoInit, h.contextId, N]), Q.useEffect(() => () => {
|
|
1726
1726
|
x.current = null;
|
|
1727
1727
|
}, []), {
|
|
1728
1728
|
status: f,
|
|
1729
1729
|
messages: T,
|
|
1730
|
-
isLoading:
|
|
1731
|
-
errorMessage:
|
|
1730
|
+
isLoading: C,
|
|
1731
|
+
errorMessage: B,
|
|
1732
1732
|
initialize: N,
|
|
1733
1733
|
sendMessage: $,
|
|
1734
1734
|
clearHistory: I,
|
|
@@ -1741,19 +1741,19 @@ function Tg() {
|
|
|
1741
1741
|
if (Ud) return zn;
|
|
1742
1742
|
Ud = 1;
|
|
1743
1743
|
var h = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
1744
|
-
function o(T, r,
|
|
1745
|
-
var
|
|
1746
|
-
if (
|
|
1747
|
-
|
|
1748
|
-
for (var
|
|
1749
|
-
|
|
1750
|
-
} else
|
|
1751
|
-
return r =
|
|
1744
|
+
function o(T, r, C) {
|
|
1745
|
+
var M = null;
|
|
1746
|
+
if (C !== void 0 && (M = "" + C), r.key !== void 0 && (M = "" + r.key), "key" in r) {
|
|
1747
|
+
C = {};
|
|
1748
|
+
for (var B in r)
|
|
1749
|
+
B !== "key" && (C[B] = r[B]);
|
|
1750
|
+
} else C = r;
|
|
1751
|
+
return r = C.ref, {
|
|
1752
1752
|
$$typeof: h,
|
|
1753
1753
|
type: T,
|
|
1754
|
-
key:
|
|
1754
|
+
key: M,
|
|
1755
1755
|
ref: r !== void 0 ? r : null,
|
|
1756
|
-
props:
|
|
1756
|
+
props: C
|
|
1757
1757
|
};
|
|
1758
1758
|
}
|
|
1759
1759
|
return zn.Fragment = f, zn.jsx = o, zn.jsxs = o, zn;
|
|
@@ -2435,12 +2435,12 @@ const Ld = ({
|
|
|
2435
2435
|
apiKey: o,
|
|
2436
2436
|
authToken: T,
|
|
2437
2437
|
unityApiUrl: r = "https://api.glydeunity.com",
|
|
2438
|
-
contextType:
|
|
2439
|
-
height:
|
|
2440
|
-
onTranscript:
|
|
2438
|
+
contextType: C = "screening",
|
|
2439
|
+
height: M = "600px",
|
|
2440
|
+
onTranscript: B,
|
|
2441
2441
|
onCallEnd: U,
|
|
2442
2442
|
onError: x,
|
|
2443
|
-
onSwitchToText:
|
|
2443
|
+
onSwitchToText: Y,
|
|
2444
2444
|
skipContinuityLimit: D,
|
|
2445
2445
|
limitToLast: N
|
|
2446
2446
|
}) => {
|
|
@@ -2452,14 +2452,14 @@ const Ld = ({
|
|
|
2452
2452
|
isMuted: ot,
|
|
2453
2453
|
errorMessage: St,
|
|
2454
2454
|
start: dt,
|
|
2455
|
-
stop:
|
|
2455
|
+
stop: q,
|
|
2456
2456
|
toggleMute: Tt,
|
|
2457
2457
|
clearTranscripts: jt
|
|
2458
2458
|
} = xg({
|
|
2459
2459
|
publishableKey: f,
|
|
2460
2460
|
apiKey: o,
|
|
2461
2461
|
authToken: T,
|
|
2462
|
-
contextType:
|
|
2462
|
+
contextType: C,
|
|
2463
2463
|
contextId: h,
|
|
2464
2464
|
unityBaseUrl: r,
|
|
2465
2465
|
skipContinuityLimit: D,
|
|
@@ -2468,15 +2468,15 @@ const Ld = ({
|
|
|
2468
2468
|
Q.useEffect(() => {
|
|
2469
2469
|
$.current?.scrollIntoView({ behavior: "smooth" });
|
|
2470
2470
|
}, [Z]), Q.useEffect(() => {
|
|
2471
|
-
if (
|
|
2471
|
+
if (B && Z.length > 0) {
|
|
2472
2472
|
const Bt = Z[Z.length - 1];
|
|
2473
|
-
|
|
2473
|
+
B(Bt.content, Bt.role);
|
|
2474
2474
|
}
|
|
2475
|
-
}, [Z,
|
|
2475
|
+
}, [Z, B]), Q.useEffect(() => {
|
|
2476
2476
|
I === "error" && St && x && x(new Error(St));
|
|
2477
2477
|
}, [I, St, x]);
|
|
2478
2478
|
const tt = () => {
|
|
2479
|
-
switch (
|
|
2479
|
+
switch (C) {
|
|
2480
2480
|
case "screening":
|
|
2481
2481
|
return "Screening Interview";
|
|
2482
2482
|
case "recruiter":
|
|
@@ -2491,13 +2491,13 @@ const Ld = ({
|
|
|
2491
2491
|
}, Gt = async () => {
|
|
2492
2492
|
jt(), await dt();
|
|
2493
2493
|
}, Pt = () => {
|
|
2494
|
-
|
|
2494
|
+
q(), U?.();
|
|
2495
2495
|
};
|
|
2496
2496
|
return /* @__PURE__ */ v.jsxs("div", { style: {
|
|
2497
2497
|
background: "var(--glyde-background, white)",
|
|
2498
2498
|
borderRadius: "12px",
|
|
2499
2499
|
boxShadow: "0 4px 6px rgba(0,0,0,0.1)",
|
|
2500
|
-
height: typeof
|
|
2500
|
+
height: typeof M == "number" ? `${M}px` : M,
|
|
2501
2501
|
display: "flex",
|
|
2502
2502
|
flexDirection: "column",
|
|
2503
2503
|
overflow: "hidden"
|
|
@@ -2551,7 +2551,7 @@ const Ld = ({
|
|
|
2551
2551
|
},
|
|
2552
2552
|
children: [
|
|
2553
2553
|
"Start ",
|
|
2554
|
-
|
|
2554
|
+
C === "screening" ? "Interview" : "Call"
|
|
2555
2555
|
]
|
|
2556
2556
|
}
|
|
2557
2557
|
),
|
|
@@ -2561,11 +2561,11 @@ const Ld = ({
|
|
|
2561
2561
|
marginBottom: "24px",
|
|
2562
2562
|
textAlign: "center",
|
|
2563
2563
|
maxWidth: "280px"
|
|
2564
|
-
}, children:
|
|
2565
|
-
|
|
2564
|
+
}, children: C === "screening" ? "The AI recruiter will speak with you. Make sure your microphone is ready." : C === "recruiter" ? "The AI copilot will assist you with recruiting tasks." : "The AI agent will speak with you. Make sure your microphone is ready." }),
|
|
2565
|
+
Y && /* @__PURE__ */ v.jsxs(
|
|
2566
2566
|
"button",
|
|
2567
2567
|
{
|
|
2568
|
-
onClick:
|
|
2568
|
+
onClick: Y,
|
|
2569
2569
|
style: {
|
|
2570
2570
|
marginTop: "20px",
|
|
2571
2571
|
padding: "8px 16px",
|
|
@@ -2602,7 +2602,7 @@ const Ld = ({
|
|
|
2602
2602
|
/* @__PURE__ */ v.jsx(Af, { size: 32, color: "var(--glyde-text-muted, #9ca3af)" }),
|
|
2603
2603
|
/* @__PURE__ */ v.jsx("p", { style: { marginTop: "8px" }, children: "Start speaking - the AI will respond" })
|
|
2604
2604
|
] }),
|
|
2605
|
-
Z.map((Bt, Xt) => /* @__PURE__ */ v.jsx(wg, { transcript: Bt, contextType:
|
|
2605
|
+
Z.map((Bt, Xt) => /* @__PURE__ */ v.jsx(wg, { transcript: Bt, contextType: C }, Xt)),
|
|
2606
2606
|
/* @__PURE__ */ v.jsx("div", { ref: $ })
|
|
2607
2607
|
] }),
|
|
2608
2608
|
/* @__PURE__ */ v.jsxs("div", { style: {
|
|
@@ -2715,12 +2715,12 @@ const Ld = ({
|
|
|
2715
2715
|
apiKey: o,
|
|
2716
2716
|
authToken: T,
|
|
2717
2717
|
unityApiUrl: r = "https://api.glydeunity.com",
|
|
2718
|
-
height:
|
|
2719
|
-
title:
|
|
2720
|
-
placeholder:
|
|
2718
|
+
height: C = "600px",
|
|
2719
|
+
title: M = "AI Chat",
|
|
2720
|
+
placeholder: B = "Type your message...",
|
|
2721
2721
|
autoInit: U = !0,
|
|
2722
2722
|
onMessage: x,
|
|
2723
|
-
onError:
|
|
2723
|
+
onError: Y
|
|
2724
2724
|
}) => {
|
|
2725
2725
|
const [D, N] = Q.useState(""), $ = Q.useRef(null), {
|
|
2726
2726
|
status: I,
|
|
@@ -2739,20 +2739,20 @@ const Ld = ({
|
|
|
2739
2739
|
Q.useEffect(() => {
|
|
2740
2740
|
$.current?.scrollIntoView({ behavior: "smooth" });
|
|
2741
2741
|
}, [Z]), Q.useEffect(() => {
|
|
2742
|
-
I === "error" && k &&
|
|
2743
|
-
}, [I, k,
|
|
2742
|
+
I === "error" && k && Y && Y(new Error(k));
|
|
2743
|
+
}, [I, k, Y]);
|
|
2744
2744
|
const St = async () => {
|
|
2745
2745
|
if (!D.trim() || J) return;
|
|
2746
|
-
const
|
|
2747
|
-
N(""), await ot(
|
|
2748
|
-
}, dt = (
|
|
2749
|
-
|
|
2746
|
+
const q = D.trim();
|
|
2747
|
+
N(""), await ot(q), x && x({ role: "user", content: q });
|
|
2748
|
+
}, dt = (q) => {
|
|
2749
|
+
q.key === "Enter" && !q.shiftKey && (q.preventDefault(), St());
|
|
2750
2750
|
};
|
|
2751
2751
|
return /* @__PURE__ */ v.jsxs("div", { style: {
|
|
2752
2752
|
background: "var(--glyde-background, white)",
|
|
2753
2753
|
borderRadius: "12px",
|
|
2754
2754
|
boxShadow: "0 4px 6px rgba(0,0,0,0.1)",
|
|
2755
|
-
height: typeof
|
|
2755
|
+
height: typeof C == "number" ? `${C}px` : C,
|
|
2756
2756
|
display: "flex",
|
|
2757
2757
|
flexDirection: "column",
|
|
2758
2758
|
overflow: "hidden"
|
|
@@ -2764,7 +2764,7 @@ const Ld = ({
|
|
|
2764
2764
|
color: "white",
|
|
2765
2765
|
borderTopLeftRadius: "12px",
|
|
2766
2766
|
borderTopRightRadius: "12px"
|
|
2767
|
-
}, children: /* @__PURE__ */ v.jsx("h2", { style: { margin: 0, fontSize: "1.1rem", fontWeight: 600 }, children:
|
|
2767
|
+
}, children: /* @__PURE__ */ v.jsx("h2", { style: { margin: 0, fontSize: "1.1rem", fontWeight: 600 }, children: M }) }),
|
|
2768
2768
|
/* @__PURE__ */ v.jsxs("div", { style: {
|
|
2769
2769
|
flex: 1,
|
|
2770
2770
|
overflowY: "auto",
|
|
@@ -2778,7 +2778,7 @@ const Ld = ({
|
|
|
2778
2778
|
/* @__PURE__ */ v.jsx("div", { className: "glyde-spinner", style: { margin: "0 auto 12px" } }),
|
|
2779
2779
|
"Loading conversation..."
|
|
2780
2780
|
] }),
|
|
2781
|
-
Z.map((
|
|
2781
|
+
Z.map((q, Tt) => /* @__PURE__ */ v.jsx(Hg, { message: q }, Tt)),
|
|
2782
2782
|
J && /* @__PURE__ */ v.jsx("div", { style: { color: "var(--glyde-text-muted, #94a3b8)", fontSize: "0.9rem", marginLeft: "42px" }, children: /* @__PURE__ */ v.jsx(Bg, {}) }),
|
|
2783
2783
|
/* @__PURE__ */ v.jsx("div", { ref: $ })
|
|
2784
2784
|
] }),
|
|
@@ -2794,9 +2794,9 @@ const Ld = ({
|
|
|
2794
2794
|
{
|
|
2795
2795
|
type: "text",
|
|
2796
2796
|
value: D,
|
|
2797
|
-
onChange: (
|
|
2797
|
+
onChange: (q) => N(q.target.value),
|
|
2798
2798
|
onKeyDown: dt,
|
|
2799
|
-
placeholder:
|
|
2799
|
+
placeholder: B,
|
|
2800
2800
|
style: {
|
|
2801
2801
|
...Mt.inputField,
|
|
2802
2802
|
flex: 1
|
|
@@ -2898,12 +2898,12 @@ const Ld = ({
|
|
|
2898
2898
|
authToken: o,
|
|
2899
2899
|
contextId: T,
|
|
2900
2900
|
unityBaseUrl: r = "https://api.glydeunity.com",
|
|
2901
|
-
contextType:
|
|
2902
|
-
defaultMode:
|
|
2903
|
-
position:
|
|
2901
|
+
contextType: C = "screening",
|
|
2902
|
+
defaultMode: M = "voice",
|
|
2903
|
+
position: B = "bottom-right",
|
|
2904
2904
|
theme: U = "light",
|
|
2905
2905
|
allowModeSwitch: x = !0,
|
|
2906
|
-
container:
|
|
2906
|
+
container: Y,
|
|
2907
2907
|
displayMode: D = "floating",
|
|
2908
2908
|
dimensions: N,
|
|
2909
2909
|
showHeader: $ = !0,
|
|
@@ -2914,26 +2914,26 @@ const Ld = ({
|
|
|
2914
2914
|
onError: ot,
|
|
2915
2915
|
onClose: St,
|
|
2916
2916
|
initialExpanded: dt = !1,
|
|
2917
|
-
skipContinuityLimit:
|
|
2917
|
+
skipContinuityLimit: q,
|
|
2918
2918
|
limitToLast: Tt
|
|
2919
2919
|
}) => {
|
|
2920
2920
|
console.log("[ChatWidget] Received unityBaseUrl:", r);
|
|
2921
2921
|
const [jt, tt] = Q.useState(
|
|
2922
2922
|
D === "floating" ? dt : !0
|
|
2923
|
-
), [Gt, Pt] = Q.useState(!0), [Bt, Xt] = Q.useState(
|
|
2923
|
+
), [Gt, Pt] = Q.useState(!0), [Bt, Xt] = Q.useState(M || "voice");
|
|
2924
2924
|
Q.useEffect(() => {
|
|
2925
2925
|
const P = U === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : U;
|
|
2926
2926
|
$i(P);
|
|
2927
2927
|
}, [U]), Q.useEffect(() => {
|
|
2928
2928
|
Z?.();
|
|
2929
2929
|
}, [Z]);
|
|
2930
|
-
const ce = Rg(
|
|
2930
|
+
const ce = Rg(B), fe = (P) => {
|
|
2931
2931
|
Xt(P), J?.(P);
|
|
2932
2932
|
}, Vt = (P, $t) => {
|
|
2933
2933
|
k?.(P, $t);
|
|
2934
2934
|
}, R = (P) => {
|
|
2935
2935
|
ot?.(P);
|
|
2936
|
-
},
|
|
2936
|
+
}, O = () => {
|
|
2937
2937
|
D === "floating" ? tt(!1) : (Pt(!1), St?.());
|
|
2938
2938
|
}, j = {
|
|
2939
2939
|
...qg[D],
|
|
@@ -2942,7 +2942,7 @@ const Ld = ({
|
|
|
2942
2942
|
if (P !== void 0)
|
|
2943
2943
|
return typeof P == "number" ? `${P}px` : P;
|
|
2944
2944
|
};
|
|
2945
|
-
return Gt ?
|
|
2945
|
+
return Gt ? Y ? /* @__PURE__ */ v.jsx(
|
|
2946
2946
|
Fi,
|
|
2947
2947
|
{
|
|
2948
2948
|
publishableKey: h,
|
|
@@ -2950,7 +2950,7 @@ const Ld = ({
|
|
|
2950
2950
|
authToken: o,
|
|
2951
2951
|
contextId: T,
|
|
2952
2952
|
unityBaseUrl: r,
|
|
2953
|
-
contextType:
|
|
2953
|
+
contextType: C,
|
|
2954
2954
|
mode: Bt,
|
|
2955
2955
|
allowModeSwitch: x,
|
|
2956
2956
|
showHeader: $,
|
|
@@ -2959,8 +2959,8 @@ const Ld = ({
|
|
|
2959
2959
|
onModeChange: fe,
|
|
2960
2960
|
onTranscript: Vt,
|
|
2961
2961
|
onError: R,
|
|
2962
|
-
onClose:
|
|
2963
|
-
skipContinuityLimit:
|
|
2962
|
+
onClose: O,
|
|
2963
|
+
skipContinuityLimit: q,
|
|
2964
2964
|
limitToLast: Tt
|
|
2965
2965
|
}
|
|
2966
2966
|
) : D === "modal" ? /* @__PURE__ */ v.jsx(
|
|
@@ -2971,7 +2971,7 @@ const Ld = ({
|
|
|
2971
2971
|
authToken: o,
|
|
2972
2972
|
contextId: T,
|
|
2973
2973
|
unityBaseUrl: r,
|
|
2974
|
-
contextType:
|
|
2974
|
+
contextType: C,
|
|
2975
2975
|
mode: Bt,
|
|
2976
2976
|
allowModeSwitch: x,
|
|
2977
2977
|
showHeader: $,
|
|
@@ -2980,8 +2980,8 @@ const Ld = ({
|
|
|
2980
2980
|
onModeChange: fe,
|
|
2981
2981
|
onTranscript: Vt,
|
|
2982
2982
|
onError: R,
|
|
2983
|
-
onClose:
|
|
2984
|
-
skipContinuityLimit:
|
|
2983
|
+
onClose: O,
|
|
2984
|
+
skipContinuityLimit: q,
|
|
2985
2985
|
limitToLast: Tt
|
|
2986
2986
|
}
|
|
2987
2987
|
) : D === "mobile" ? /* @__PURE__ */ v.jsx(
|
|
@@ -2992,7 +2992,7 @@ const Ld = ({
|
|
|
2992
2992
|
authToken: o,
|
|
2993
2993
|
contextId: T,
|
|
2994
2994
|
unityBaseUrl: r,
|
|
2995
|
-
contextType:
|
|
2995
|
+
contextType: C,
|
|
2996
2996
|
mode: Bt,
|
|
2997
2997
|
allowModeSwitch: x,
|
|
2998
2998
|
showHeader: $,
|
|
@@ -3001,8 +3001,8 @@ const Ld = ({
|
|
|
3001
3001
|
onModeChange: fe,
|
|
3002
3002
|
onTranscript: Vt,
|
|
3003
3003
|
onError: R,
|
|
3004
|
-
onClose:
|
|
3005
|
-
skipContinuityLimit:
|
|
3004
|
+
onClose: O,
|
|
3005
|
+
skipContinuityLimit: q,
|
|
3006
3006
|
limitToLast: Tt
|
|
3007
3007
|
}
|
|
3008
3008
|
) : D === "inline" ? /* @__PURE__ */ v.jsx(
|
|
@@ -3025,7 +3025,7 @@ const Ld = ({
|
|
|
3025
3025
|
authToken: o,
|
|
3026
3026
|
contextId: T,
|
|
3027
3027
|
unityBaseUrl: r,
|
|
3028
|
-
contextType:
|
|
3028
|
+
contextType: C,
|
|
3029
3029
|
mode: Bt,
|
|
3030
3030
|
allowModeSwitch: x,
|
|
3031
3031
|
showHeader: $,
|
|
@@ -3034,8 +3034,8 @@ const Ld = ({
|
|
|
3034
3034
|
onModeChange: fe,
|
|
3035
3035
|
onTranscript: Vt,
|
|
3036
3036
|
onError: R,
|
|
3037
|
-
onClose:
|
|
3038
|
-
skipContinuityLimit:
|
|
3037
|
+
onClose: O,
|
|
3038
|
+
skipContinuityLimit: q,
|
|
3039
3039
|
limitToLast: Tt
|
|
3040
3040
|
}
|
|
3041
3041
|
)
|
|
@@ -3067,11 +3067,11 @@ const Ld = ({
|
|
|
3067
3067
|
/* @__PURE__ */ v.jsx(
|
|
3068
3068
|
Vd,
|
|
3069
3069
|
{
|
|
3070
|
-
contextType:
|
|
3070
|
+
contextType: C,
|
|
3071
3071
|
showMinimize: !0,
|
|
3072
3072
|
showClose: !0,
|
|
3073
3073
|
onMinimize: () => tt(!1),
|
|
3074
|
-
onClose:
|
|
3074
|
+
onClose: O
|
|
3075
3075
|
}
|
|
3076
3076
|
),
|
|
3077
3077
|
x && /* @__PURE__ */ v.jsx("div", { style: {
|
|
@@ -3086,12 +3086,12 @@ const Ld = ({
|
|
|
3086
3086
|
authToken: o,
|
|
3087
3087
|
contextId: T || "",
|
|
3088
3088
|
unityApiUrl: r,
|
|
3089
|
-
contextType:
|
|
3089
|
+
contextType: C,
|
|
3090
3090
|
height: "100%",
|
|
3091
3091
|
onTranscript: Vt,
|
|
3092
3092
|
onError: R,
|
|
3093
3093
|
onSwitchToText: x ? () => fe("text") : void 0,
|
|
3094
|
-
skipContinuityLimit:
|
|
3094
|
+
skipContinuityLimit: q,
|
|
3095
3095
|
limitToLast: Tt
|
|
3096
3096
|
}
|
|
3097
3097
|
) : /* @__PURE__ */ v.jsx(
|
|
@@ -3189,12 +3189,12 @@ const Ld = ({
|
|
|
3189
3189
|
authToken: o,
|
|
3190
3190
|
contextId: T,
|
|
3191
3191
|
unityBaseUrl: r,
|
|
3192
|
-
contextType:
|
|
3193
|
-
mode:
|
|
3194
|
-
allowModeSwitch:
|
|
3192
|
+
contextType: C,
|
|
3193
|
+
mode: M,
|
|
3194
|
+
allowModeSwitch: B,
|
|
3195
3195
|
showHeader: U = !0,
|
|
3196
3196
|
allowClose: x = !0,
|
|
3197
|
-
dimensions:
|
|
3197
|
+
dimensions: Y,
|
|
3198
3198
|
onModeChange: D,
|
|
3199
3199
|
onTranscript: N,
|
|
3200
3200
|
onError: $,
|
|
@@ -3202,25 +3202,25 @@ const Ld = ({
|
|
|
3202
3202
|
skipContinuityLimit: Z,
|
|
3203
3203
|
limitToLast: J
|
|
3204
3204
|
}) => {
|
|
3205
|
-
const [k, ot] = Q.useState(
|
|
3205
|
+
const [k, ot] = Q.useState(M);
|
|
3206
3206
|
Q.useEffect(() => {
|
|
3207
|
-
ot(
|
|
3208
|
-
}, [
|
|
3209
|
-
const St = (
|
|
3210
|
-
ot(
|
|
3211
|
-
}, dt = (
|
|
3212
|
-
if (
|
|
3213
|
-
return typeof
|
|
3207
|
+
ot(M);
|
|
3208
|
+
}, [M]);
|
|
3209
|
+
const St = (q) => {
|
|
3210
|
+
ot(q), D(q);
|
|
3211
|
+
}, dt = (q) => {
|
|
3212
|
+
if (q !== void 0)
|
|
3213
|
+
return typeof q == "number" ? `${q}px` : q;
|
|
3214
3214
|
};
|
|
3215
3215
|
return /* @__PURE__ */ v.jsxs(
|
|
3216
3216
|
"div",
|
|
3217
3217
|
{
|
|
3218
3218
|
className: "glyde-widget-root",
|
|
3219
3219
|
style: {
|
|
3220
|
-
height: dt(
|
|
3221
|
-
width: dt(
|
|
3222
|
-
maxWidth: dt(
|
|
3223
|
-
maxHeight: dt(
|
|
3220
|
+
height: dt(Y?.height) || "100%",
|
|
3221
|
+
width: dt(Y?.width) || "100%",
|
|
3222
|
+
maxWidth: dt(Y?.maxWidth),
|
|
3223
|
+
maxHeight: dt(Y?.maxHeight),
|
|
3224
3224
|
minHeight: "500px",
|
|
3225
3225
|
// Ensure voice controls are visible
|
|
3226
3226
|
display: "flex",
|
|
@@ -3235,13 +3235,13 @@ const Ld = ({
|
|
|
3235
3235
|
U && /* @__PURE__ */ v.jsx(
|
|
3236
3236
|
Vd,
|
|
3237
3237
|
{
|
|
3238
|
-
contextType:
|
|
3238
|
+
contextType: C,
|
|
3239
3239
|
showMinimize: !1,
|
|
3240
3240
|
showClose: x,
|
|
3241
3241
|
onClose: I
|
|
3242
3242
|
}
|
|
3243
3243
|
),
|
|
3244
|
-
|
|
3244
|
+
B && /* @__PURE__ */ v.jsx("div", { style: {
|
|
3245
3245
|
padding: "12px 16px",
|
|
3246
3246
|
borderBottom: "1px solid var(--glyde-border, #e5e7eb)",
|
|
3247
3247
|
background: "var(--glyde-background, white)"
|
|
@@ -3254,10 +3254,10 @@ const Ld = ({
|
|
|
3254
3254
|
authToken: o,
|
|
3255
3255
|
contextId: T || "",
|
|
3256
3256
|
unityApiUrl: r,
|
|
3257
|
-
contextType:
|
|
3257
|
+
contextType: C,
|
|
3258
3258
|
height: "100%",
|
|
3259
3259
|
onTranscript: N,
|
|
3260
|
-
onSwitchToText:
|
|
3260
|
+
onSwitchToText: B ? () => St("text") : void 0,
|
|
3261
3261
|
onError: $,
|
|
3262
3262
|
skipContinuityLimit: Z,
|
|
3263
3263
|
limitToLast: J
|
|
@@ -3279,17 +3279,17 @@ const Ld = ({
|
|
|
3279
3279
|
}
|
|
3280
3280
|
);
|
|
3281
3281
|
}, Gg = (h) => {
|
|
3282
|
-
const { dimensions: f, onClose: o } = h, T = (
|
|
3283
|
-
if (
|
|
3284
|
-
return typeof
|
|
3285
|
-
}, r = (
|
|
3286
|
-
|
|
3282
|
+
const { dimensions: f, onClose: o } = h, T = (C) => {
|
|
3283
|
+
if (C !== void 0)
|
|
3284
|
+
return typeof C == "number" ? `${C}px` : C;
|
|
3285
|
+
}, r = (C) => {
|
|
3286
|
+
C.target === C.currentTarget && h.allowClose && o?.();
|
|
3287
3287
|
};
|
|
3288
3288
|
return Q.useEffect(() => {
|
|
3289
|
-
const
|
|
3290
|
-
|
|
3289
|
+
const C = (M) => {
|
|
3290
|
+
M.key === "Escape" && h.allowClose && o?.();
|
|
3291
3291
|
};
|
|
3292
|
-
return window.addEventListener("keydown",
|
|
3292
|
+
return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
|
|
3293
3293
|
}, [o, h.allowClose]), /* @__PURE__ */ v.jsx(
|
|
3294
3294
|
"div",
|
|
3295
3295
|
{
|
|
@@ -3332,8 +3332,8 @@ const Ld = ({
|
|
|
3332
3332
|
maxHeight: "100%"
|
|
3333
3333
|
};
|
|
3334
3334
|
return Q.useEffect(() => {
|
|
3335
|
-
const r = (
|
|
3336
|
-
|
|
3335
|
+
const r = (C) => {
|
|
3336
|
+
C.key === "Escape" && h.allowClose && f?.();
|
|
3337
3337
|
};
|
|
3338
3338
|
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
3339
3339
|
}, [f, h.allowClose]), /* @__PURE__ */ v.jsx("div", { className: "glyde-mobile-viewport", children: /* @__PURE__ */ v.jsx(Fi, { ...h, dimensions: T }) });
|
|
@@ -3342,13 +3342,13 @@ var bf = { exports: {} }, Cn = {}, xf = { exports: {} }, Sf = {};
|
|
|
3342
3342
|
var jd;
|
|
3343
3343
|
function Lg() {
|
|
3344
3344
|
return jd || (jd = 1, (function(h) {
|
|
3345
|
-
function f(R,
|
|
3345
|
+
function f(R, O) {
|
|
3346
3346
|
var j = R.length;
|
|
3347
|
-
R.push(
|
|
3347
|
+
R.push(O);
|
|
3348
3348
|
t: for (; 0 < j; ) {
|
|
3349
3349
|
var it = j - 1 >>> 1, P = R[it];
|
|
3350
|
-
if (0 < r(P,
|
|
3351
|
-
R[it] =
|
|
3350
|
+
if (0 < r(P, O))
|
|
3351
|
+
R[it] = O, R[j] = P, j = it;
|
|
3352
3352
|
else break t;
|
|
3353
3353
|
}
|
|
3354
3354
|
}
|
|
@@ -3357,52 +3357,52 @@ function Lg() {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
function T(R) {
|
|
3359
3359
|
if (R.length === 0) return null;
|
|
3360
|
-
var
|
|
3361
|
-
if (j !==
|
|
3360
|
+
var O = R[0], j = R.pop();
|
|
3361
|
+
if (j !== O) {
|
|
3362
3362
|
R[0] = j;
|
|
3363
3363
|
t: for (var it = 0, P = R.length, $t = P >>> 1; it < $t; ) {
|
|
3364
|
-
var y = 2 * (it + 1) - 1, _ = R[y], w = y + 1,
|
|
3364
|
+
var y = 2 * (it + 1) - 1, _ = R[y], w = y + 1, L = R[w];
|
|
3365
3365
|
if (0 > r(_, j))
|
|
3366
|
-
w < P && 0 > r(
|
|
3367
|
-
else if (w < P && 0 > r(
|
|
3368
|
-
R[it] =
|
|
3366
|
+
w < P && 0 > r(L, _) ? (R[it] = L, R[w] = j, it = w) : (R[it] = _, R[y] = j, it = y);
|
|
3367
|
+
else if (w < P && 0 > r(L, j))
|
|
3368
|
+
R[it] = L, R[w] = j, it = w;
|
|
3369
3369
|
else break t;
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
|
-
return
|
|
3372
|
+
return O;
|
|
3373
3373
|
}
|
|
3374
|
-
function r(R,
|
|
3375
|
-
var j = R.sortIndex -
|
|
3376
|
-
return j !== 0 ? j : R.id -
|
|
3374
|
+
function r(R, O) {
|
|
3375
|
+
var j = R.sortIndex - O.sortIndex;
|
|
3376
|
+
return j !== 0 ? j : R.id - O.id;
|
|
3377
3377
|
}
|
|
3378
3378
|
if (h.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
|
|
3379
|
-
var
|
|
3379
|
+
var C = performance;
|
|
3380
3380
|
h.unstable_now = function() {
|
|
3381
|
-
return
|
|
3381
|
+
return C.now();
|
|
3382
3382
|
};
|
|
3383
3383
|
} else {
|
|
3384
|
-
var
|
|
3384
|
+
var M = Date, B = M.now();
|
|
3385
3385
|
h.unstable_now = function() {
|
|
3386
|
-
return
|
|
3386
|
+
return M.now() - B;
|
|
3387
3387
|
};
|
|
3388
3388
|
}
|
|
3389
|
-
var U = [], x = [],
|
|
3389
|
+
var U = [], x = [], Y = 1, D = null, N = 3, $ = !1, I = !1, Z = !1, J = !1, k = typeof setTimeout == "function" ? setTimeout : null, ot = typeof clearTimeout == "function" ? clearTimeout : null, St = typeof setImmediate < "u" ? setImmediate : null;
|
|
3390
3390
|
function dt(R) {
|
|
3391
|
-
for (var
|
|
3392
|
-
if (
|
|
3393
|
-
else if (
|
|
3394
|
-
T(x),
|
|
3391
|
+
for (var O = o(x); O !== null; ) {
|
|
3392
|
+
if (O.callback === null) T(x);
|
|
3393
|
+
else if (O.startTime <= R)
|
|
3394
|
+
T(x), O.sortIndex = O.expirationTime, f(U, O);
|
|
3395
3395
|
else break;
|
|
3396
|
-
|
|
3396
|
+
O = o(x);
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function q(R) {
|
|
3400
3400
|
if (Z = !1, dt(R), !I)
|
|
3401
3401
|
if (o(U) !== null)
|
|
3402
3402
|
I = !0, Tt || (Tt = !0, Xt());
|
|
3403
3403
|
else {
|
|
3404
|
-
var
|
|
3405
|
-
|
|
3404
|
+
var O = o(x);
|
|
3405
|
+
O !== null && Vt(q, O.startTime - R);
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
3408
|
var Tt = !1, jt = -1, tt = 5, Gt = -1;
|
|
@@ -3413,7 +3413,7 @@ function Lg() {
|
|
|
3413
3413
|
if (J = !1, Tt) {
|
|
3414
3414
|
var R = h.unstable_now();
|
|
3415
3415
|
Gt = R;
|
|
3416
|
-
var
|
|
3416
|
+
var O = !0;
|
|
3417
3417
|
try {
|
|
3418
3418
|
t: {
|
|
3419
3419
|
I = !1, Z && (Z = !1, ot(jt), jt = -1), $ = !0;
|
|
@@ -3428,30 +3428,30 @@ function Lg() {
|
|
|
3428
3428
|
D.expirationTime <= R
|
|
3429
3429
|
);
|
|
3430
3430
|
if (R = h.unstable_now(), typeof P == "function") {
|
|
3431
|
-
D.callback = P, dt(R),
|
|
3431
|
+
D.callback = P, dt(R), O = !0;
|
|
3432
3432
|
break e;
|
|
3433
3433
|
}
|
|
3434
3434
|
D === o(U) && T(U), dt(R);
|
|
3435
3435
|
} else T(U);
|
|
3436
3436
|
D = o(U);
|
|
3437
3437
|
}
|
|
3438
|
-
if (D !== null)
|
|
3438
|
+
if (D !== null) O = !0;
|
|
3439
3439
|
else {
|
|
3440
3440
|
var $t = o(x);
|
|
3441
3441
|
$t !== null && Vt(
|
|
3442
|
-
|
|
3442
|
+
q,
|
|
3443
3443
|
$t.startTime - R
|
|
3444
|
-
),
|
|
3444
|
+
), O = !1;
|
|
3445
3445
|
}
|
|
3446
3446
|
}
|
|
3447
3447
|
break t;
|
|
3448
3448
|
} finally {
|
|
3449
3449
|
D = null, N = j, $ = !1;
|
|
3450
3450
|
}
|
|
3451
|
-
|
|
3451
|
+
O = void 0;
|
|
3452
3452
|
}
|
|
3453
3453
|
} finally {
|
|
3454
|
-
|
|
3454
|
+
O ? Xt() : Tt = !1;
|
|
3455
3455
|
}
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
@@ -3469,10 +3469,10 @@ function Lg() {
|
|
|
3469
3469
|
Xt = function() {
|
|
3470
3470
|
k(Bt, 0);
|
|
3471
3471
|
};
|
|
3472
|
-
function Vt(R,
|
|
3472
|
+
function Vt(R, O) {
|
|
3473
3473
|
jt = k(function() {
|
|
3474
3474
|
R(h.unstable_now());
|
|
3475
|
-
},
|
|
3475
|
+
}, O);
|
|
3476
3476
|
}
|
|
3477
3477
|
h.unstable_IdlePriority = 5, h.unstable_ImmediatePriority = 1, h.unstable_LowPriority = 4, h.unstable_NormalPriority = 3, h.unstable_Profiling = null, h.unstable_UserBlockingPriority = 2, h.unstable_cancelCallback = function(R) {
|
|
3478
3478
|
R.callback = null;
|
|
@@ -3487,13 +3487,13 @@ function Lg() {
|
|
|
3487
3487
|
case 1:
|
|
3488
3488
|
case 2:
|
|
3489
3489
|
case 3:
|
|
3490
|
-
var
|
|
3490
|
+
var O = 3;
|
|
3491
3491
|
break;
|
|
3492
3492
|
default:
|
|
3493
|
-
|
|
3493
|
+
O = N;
|
|
3494
3494
|
}
|
|
3495
3495
|
var j = N;
|
|
3496
|
-
N =
|
|
3496
|
+
N = O;
|
|
3497
3497
|
try {
|
|
3498
3498
|
return R();
|
|
3499
3499
|
} finally {
|
|
@@ -3501,7 +3501,7 @@ function Lg() {
|
|
|
3501
3501
|
}
|
|
3502
3502
|
}, h.unstable_requestPaint = function() {
|
|
3503
3503
|
J = !0;
|
|
3504
|
-
}, h.unstable_runWithPriority = function(R,
|
|
3504
|
+
}, h.unstable_runWithPriority = function(R, O) {
|
|
3505
3505
|
switch (R) {
|
|
3506
3506
|
case 1:
|
|
3507
3507
|
case 2:
|
|
@@ -3515,11 +3515,11 @@ function Lg() {
|
|
|
3515
3515
|
var j = N;
|
|
3516
3516
|
N = R;
|
|
3517
3517
|
try {
|
|
3518
|
-
return
|
|
3518
|
+
return O();
|
|
3519
3519
|
} finally {
|
|
3520
3520
|
N = j;
|
|
3521
3521
|
}
|
|
3522
|
-
}, h.unstable_scheduleCallback = function(R,
|
|
3522
|
+
}, h.unstable_scheduleCallback = function(R, O, j) {
|
|
3523
3523
|
var it = h.unstable_now();
|
|
3524
3524
|
switch (typeof j == "object" && j !== null ? (j = j.delay, j = typeof j == "number" && 0 < j ? it + j : it) : j = it, R) {
|
|
3525
3525
|
case 1:
|
|
@@ -3538,18 +3538,18 @@ function Lg() {
|
|
|
3538
3538
|
P = 5e3;
|
|
3539
3539
|
}
|
|
3540
3540
|
return P = j + P, R = {
|
|
3541
|
-
id:
|
|
3542
|
-
callback:
|
|
3541
|
+
id: Y++,
|
|
3542
|
+
callback: O,
|
|
3543
3543
|
priorityLevel: R,
|
|
3544
3544
|
startTime: j,
|
|
3545
3545
|
expirationTime: P,
|
|
3546
3546
|
sortIndex: -1
|
|
3547
|
-
}, j > it ? (R.sortIndex = j, f(x, R), o(U) === null && R === o(x) && (Z ? (ot(jt), jt = -1) : Z = !0, Vt(
|
|
3547
|
+
}, j > it ? (R.sortIndex = j, f(x, R), o(U) === null && R === o(x) && (Z ? (ot(jt), jt = -1) : Z = !0, Vt(q, j - it))) : (R.sortIndex = P, f(U, R), I || $ || (I = !0, Tt || (Tt = !0, Xt()))), R;
|
|
3548
3548
|
}, h.unstable_shouldYield = Pt, h.unstable_wrapCallback = function(R) {
|
|
3549
|
-
var
|
|
3549
|
+
var O = N;
|
|
3550
3550
|
return function() {
|
|
3551
3551
|
var j = N;
|
|
3552
|
-
N =
|
|
3552
|
+
N = O;
|
|
3553
3553
|
try {
|
|
3554
3554
|
return R.apply(this, arguments);
|
|
3555
3555
|
} finally {
|
|
@@ -3573,8 +3573,8 @@ function Vg() {
|
|
|
3573
3573
|
var x = "https://react.dev/errors/" + U;
|
|
3574
3574
|
if (1 < arguments.length) {
|
|
3575
3575
|
x += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
3576
|
-
for (var
|
|
3577
|
-
x += "&args[]=" + encodeURIComponent(arguments[
|
|
3576
|
+
for (var Y = 2; Y < arguments.length; Y++)
|
|
3577
|
+
x += "&args[]=" + encodeURIComponent(arguments[Y]);
|
|
3578
3578
|
}
|
|
3579
3579
|
return "Minified React error #" + U + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
3580
3580
|
}
|
|
@@ -3597,33 +3597,33 @@ function Vg() {
|
|
|
3597
3597
|
p: 0,
|
|
3598
3598
|
findDOMNode: null
|
|
3599
3599
|
}, r = /* @__PURE__ */ Symbol.for("react.portal");
|
|
3600
|
-
function
|
|
3600
|
+
function C(U, x, Y) {
|
|
3601
3601
|
var D = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
3602
3602
|
return {
|
|
3603
3603
|
$$typeof: r,
|
|
3604
3604
|
key: D == null ? null : "" + D,
|
|
3605
3605
|
children: U,
|
|
3606
3606
|
containerInfo: x,
|
|
3607
|
-
implementation:
|
|
3607
|
+
implementation: Y
|
|
3608
3608
|
};
|
|
3609
3609
|
}
|
|
3610
|
-
var
|
|
3611
|
-
function
|
|
3610
|
+
var M = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
3611
|
+
function B(U, x) {
|
|
3612
3612
|
if (U === "font") return "";
|
|
3613
3613
|
if (typeof x == "string")
|
|
3614
3614
|
return x === "use-credentials" ? x : "";
|
|
3615
3615
|
}
|
|
3616
3616
|
return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, Wt.createPortal = function(U, x) {
|
|
3617
|
-
var
|
|
3617
|
+
var Y = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
3618
3618
|
if (!x || x.nodeType !== 1 && x.nodeType !== 9 && x.nodeType !== 11)
|
|
3619
3619
|
throw Error(f(299));
|
|
3620
|
-
return
|
|
3620
|
+
return C(U, x, null, Y);
|
|
3621
3621
|
}, Wt.flushSync = function(U) {
|
|
3622
|
-
var x =
|
|
3622
|
+
var x = M.T, Y = T.p;
|
|
3623
3623
|
try {
|
|
3624
|
-
if (
|
|
3624
|
+
if (M.T = null, T.p = 2, U) return U();
|
|
3625
3625
|
} finally {
|
|
3626
|
-
|
|
3626
|
+
M.T = x, T.p = Y, T.d.f();
|
|
3627
3627
|
}
|
|
3628
3628
|
}, Wt.preconnect = function(U, x) {
|
|
3629
3629
|
typeof U == "string" && (x ? (x = x.crossOrigin, x = typeof x == "string" ? x === "use-credentials" ? x : "" : void 0) : x = null, T.d.C(U, x));
|
|
@@ -3631,8 +3631,8 @@ function Vg() {
|
|
|
3631
3631
|
typeof U == "string" && T.d.D(U);
|
|
3632
3632
|
}, Wt.preinit = function(U, x) {
|
|
3633
3633
|
if (typeof U == "string" && x && typeof x.as == "string") {
|
|
3634
|
-
var
|
|
3635
|
-
|
|
3634
|
+
var Y = x.as, D = B(Y, x.crossOrigin), N = typeof x.integrity == "string" ? x.integrity : void 0, $ = typeof x.fetchPriority == "string" ? x.fetchPriority : void 0;
|
|
3635
|
+
Y === "style" ? T.d.S(
|
|
3636
3636
|
U,
|
|
3637
3637
|
typeof x.precedence == "string" ? x.precedence : void 0,
|
|
3638
3638
|
{
|
|
@@ -3640,7 +3640,7 @@ function Vg() {
|
|
|
3640
3640
|
integrity: N,
|
|
3641
3641
|
fetchPriority: $
|
|
3642
3642
|
}
|
|
3643
|
-
) :
|
|
3643
|
+
) : Y === "script" && T.d.X(U, {
|
|
3644
3644
|
crossOrigin: D,
|
|
3645
3645
|
integrity: N,
|
|
3646
3646
|
fetchPriority: $,
|
|
@@ -3651,12 +3651,12 @@ function Vg() {
|
|
|
3651
3651
|
if (typeof U == "string")
|
|
3652
3652
|
if (typeof x == "object" && x !== null) {
|
|
3653
3653
|
if (x.as == null || x.as === "script") {
|
|
3654
|
-
var
|
|
3654
|
+
var Y = B(
|
|
3655
3655
|
x.as,
|
|
3656
3656
|
x.crossOrigin
|
|
3657
3657
|
);
|
|
3658
3658
|
T.d.M(U, {
|
|
3659
|
-
crossOrigin:
|
|
3659
|
+
crossOrigin: Y,
|
|
3660
3660
|
integrity: typeof x.integrity == "string" ? x.integrity : void 0,
|
|
3661
3661
|
nonce: typeof x.nonce == "string" ? x.nonce : void 0
|
|
3662
3662
|
});
|
|
@@ -3664,8 +3664,8 @@ function Vg() {
|
|
|
3664
3664
|
} else x == null && T.d.M(U);
|
|
3665
3665
|
}, Wt.preload = function(U, x) {
|
|
3666
3666
|
if (typeof U == "string" && typeof x == "object" && x !== null && typeof x.as == "string") {
|
|
3667
|
-
var
|
|
3668
|
-
T.d.L(U,
|
|
3667
|
+
var Y = x.as, D = B(Y, x.crossOrigin);
|
|
3668
|
+
T.d.L(U, Y, {
|
|
3669
3669
|
crossOrigin: D,
|
|
3670
3670
|
integrity: typeof x.integrity == "string" ? x.integrity : void 0,
|
|
3671
3671
|
nonce: typeof x.nonce == "string" ? x.nonce : void 0,
|
|
@@ -3680,10 +3680,10 @@ function Vg() {
|
|
|
3680
3680
|
}, Wt.preloadModule = function(U, x) {
|
|
3681
3681
|
if (typeof U == "string")
|
|
3682
3682
|
if (x) {
|
|
3683
|
-
var
|
|
3683
|
+
var Y = B(x.as, x.crossOrigin);
|
|
3684
3684
|
T.d.m(U, {
|
|
3685
3685
|
as: typeof x.as == "string" && x.as !== "script" ? x.as : void 0,
|
|
3686
|
-
crossOrigin:
|
|
3686
|
+
crossOrigin: Y,
|
|
3687
3687
|
integrity: typeof x.integrity == "string" ? x.integrity : void 0
|
|
3688
3688
|
});
|
|
3689
3689
|
} else T.d.m(U);
|
|
@@ -3691,10 +3691,10 @@ function Vg() {
|
|
|
3691
3691
|
T.d.r(U);
|
|
3692
3692
|
}, Wt.unstable_batchedUpdates = function(U, x) {
|
|
3693
3693
|
return U(x);
|
|
3694
|
-
}, Wt.useFormState = function(U, x,
|
|
3695
|
-
return
|
|
3694
|
+
}, Wt.useFormState = function(U, x, Y) {
|
|
3695
|
+
return M.H.useFormState(U, x, Y);
|
|
3696
3696
|
}, Wt.useFormStatus = function() {
|
|
3697
|
-
return
|
|
3697
|
+
return M.H.useHostTransitionStatus();
|
|
3698
3698
|
}, Wt.version = "19.2.4", Wt;
|
|
3699
3699
|
}
|
|
3700
3700
|
var Nd;
|
|
@@ -3726,10 +3726,10 @@ function Zg() {
|
|
|
3726
3726
|
}
|
|
3727
3727
|
return "Minified React error #" + t + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
3728
3728
|
}
|
|
3729
|
-
function
|
|
3729
|
+
function C(t) {
|
|
3730
3730
|
return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11);
|
|
3731
3731
|
}
|
|
3732
|
-
function
|
|
3732
|
+
function M(t) {
|
|
3733
3733
|
var e = t, l = t;
|
|
3734
3734
|
if (t.alternate) for (; e.return; ) e = e.return;
|
|
3735
3735
|
else {
|
|
@@ -3740,7 +3740,7 @@ function Zg() {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
return e.tag === 3 ? l : null;
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function B(t) {
|
|
3744
3744
|
if (t.tag === 13) {
|
|
3745
3745
|
var e = t.memoizedState;
|
|
3746
3746
|
if (e === null && (t = t.alternate, t !== null && (e = t.memoizedState)), e !== null) return e.dehydrated;
|
|
@@ -3755,13 +3755,13 @@ function Zg() {
|
|
|
3755
3755
|
return null;
|
|
3756
3756
|
}
|
|
3757
3757
|
function x(t) {
|
|
3758
|
-
if (
|
|
3758
|
+
if (M(t) !== t)
|
|
3759
3759
|
throw Error(r(188));
|
|
3760
3760
|
}
|
|
3761
|
-
function
|
|
3761
|
+
function Y(t) {
|
|
3762
3762
|
var e = t.alternate;
|
|
3763
3763
|
if (!e) {
|
|
3764
|
-
if (e =
|
|
3764
|
+
if (e = M(t), e === null) throw Error(r(188));
|
|
3765
3765
|
return e !== t ? null : t;
|
|
3766
3766
|
}
|
|
3767
3767
|
for (var l = t, a = e; ; ) {
|
|
@@ -3825,7 +3825,7 @@ function Zg() {
|
|
|
3825
3825
|
}
|
|
3826
3826
|
return null;
|
|
3827
3827
|
}
|
|
3828
|
-
var N = Object.assign, $ = /* @__PURE__ */ Symbol.for("react.element"), I = /* @__PURE__ */ Symbol.for("react.transitional.element"), Z = /* @__PURE__ */ Symbol.for("react.portal"), J = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), ot = /* @__PURE__ */ Symbol.for("react.profiler"), St = /* @__PURE__ */ Symbol.for("react.consumer"), dt = /* @__PURE__ */ Symbol.for("react.context"),
|
|
3828
|
+
var N = Object.assign, $ = /* @__PURE__ */ Symbol.for("react.element"), I = /* @__PURE__ */ Symbol.for("react.transitional.element"), Z = /* @__PURE__ */ Symbol.for("react.portal"), J = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), ot = /* @__PURE__ */ Symbol.for("react.profiler"), St = /* @__PURE__ */ Symbol.for("react.consumer"), dt = /* @__PURE__ */ Symbol.for("react.context"), q = /* @__PURE__ */ Symbol.for("react.forward_ref"), Tt = /* @__PURE__ */ Symbol.for("react.suspense"), jt = /* @__PURE__ */ Symbol.for("react.suspense_list"), tt = /* @__PURE__ */ Symbol.for("react.memo"), Gt = /* @__PURE__ */ Symbol.for("react.lazy"), Pt = /* @__PURE__ */ Symbol.for("react.activity"), Bt = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), Xt = Symbol.iterator;
|
|
3829
3829
|
function ce(t) {
|
|
3830
3830
|
return t === null || typeof t != "object" ? null : (t = Xt && t[Xt] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
3831
3831
|
}
|
|
@@ -3857,7 +3857,7 @@ function Zg() {
|
|
|
3857
3857
|
return t.displayName || "Context";
|
|
3858
3858
|
case St:
|
|
3859
3859
|
return (t._context.displayName || "Context") + ".Consumer";
|
|
3860
|
-
case
|
|
3860
|
+
case q:
|
|
3861
3861
|
var e = t.render;
|
|
3862
3862
|
return t = t.displayName, t || (t = e.displayName || e.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
3863
3863
|
case tt:
|
|
@@ -3871,7 +3871,7 @@ function Zg() {
|
|
|
3871
3871
|
}
|
|
3872
3872
|
return null;
|
|
3873
3873
|
}
|
|
3874
|
-
var R = Array.isArray,
|
|
3874
|
+
var R = Array.isArray, O = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = T.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, it = {
|
|
3875
3875
|
pending: !1,
|
|
3876
3876
|
data: null,
|
|
3877
3877
|
method: null,
|
|
@@ -3886,9 +3886,9 @@ function Zg() {
|
|
|
3886
3886
|
function w(t, e) {
|
|
3887
3887
|
$t++, P[$t] = t.current, t.current = e;
|
|
3888
3888
|
}
|
|
3889
|
-
var
|
|
3889
|
+
var L = y(null), et = y(null), lt = y(null), yt = y(null);
|
|
3890
3890
|
function Ft(t, e) {
|
|
3891
|
-
switch (w(lt, e), w(et, t), w(
|
|
3891
|
+
switch (w(lt, e), w(et, t), w(L, null), e.nodeType) {
|
|
3892
3892
|
case 9:
|
|
3893
3893
|
case 11:
|
|
3894
3894
|
t = (t = e.documentElement) && (t = t.namespaceURI) ? Fr(t) : 0;
|
|
@@ -3908,18 +3908,18 @@ function Zg() {
|
|
|
3908
3908
|
t = 0;
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
|
-
_(
|
|
3911
|
+
_(L), w(L, t);
|
|
3912
3912
|
}
|
|
3913
3913
|
function Ot() {
|
|
3914
|
-
_(
|
|
3914
|
+
_(L), _(et), _(lt);
|
|
3915
3915
|
}
|
|
3916
3916
|
function Da(t) {
|
|
3917
3917
|
t.memoizedState !== null && w(yt, t);
|
|
3918
|
-
var e =
|
|
3919
|
-
e !== l && (w(et, t), w(
|
|
3918
|
+
var e = L.current, l = Ir(e, t.type);
|
|
3919
|
+
e !== l && (w(et, t), w(L, l));
|
|
3920
3920
|
}
|
|
3921
3921
|
function _n(t) {
|
|
3922
|
-
et.current === t && (_(
|
|
3922
|
+
et.current === t && (_(L), _(et)), yt.current === t && (_(yt), Sn._currentValue = it);
|
|
3923
3923
|
}
|
|
3924
3924
|
var Ii, Cf;
|
|
3925
3925
|
function Cl(t) {
|
|
@@ -3945,27 +3945,27 @@ function Zg() {
|
|
|
3945
3945
|
DetermineComponentFrameRoot: function() {
|
|
3946
3946
|
try {
|
|
3947
3947
|
if (e) {
|
|
3948
|
-
var
|
|
3948
|
+
var z = function() {
|
|
3949
3949
|
throw Error();
|
|
3950
3950
|
};
|
|
3951
|
-
if (Object.defineProperty(
|
|
3951
|
+
if (Object.defineProperty(z.prototype, "props", {
|
|
3952
3952
|
set: function() {
|
|
3953
3953
|
throw Error();
|
|
3954
3954
|
}
|
|
3955
3955
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
3956
3956
|
try {
|
|
3957
|
-
Reflect.construct(
|
|
3957
|
+
Reflect.construct(z, []);
|
|
3958
3958
|
} catch (S) {
|
|
3959
3959
|
var b = S;
|
|
3960
3960
|
}
|
|
3961
|
-
Reflect.construct(t, [],
|
|
3961
|
+
Reflect.construct(t, [], z);
|
|
3962
3962
|
} else {
|
|
3963
3963
|
try {
|
|
3964
|
-
|
|
3964
|
+
z.call();
|
|
3965
3965
|
} catch (S) {
|
|
3966
3966
|
b = S;
|
|
3967
3967
|
}
|
|
3968
|
-
t.call(
|
|
3968
|
+
t.call(z.prototype);
|
|
3969
3969
|
}
|
|
3970
3970
|
} else {
|
|
3971
3971
|
try {
|
|
@@ -3973,7 +3973,7 @@ function Zg() {
|
|
|
3973
3973
|
} catch (S) {
|
|
3974
3974
|
b = S;
|
|
3975
3975
|
}
|
|
3976
|
-
(
|
|
3976
|
+
(z = t()) && typeof z.catch == "function" && z.catch(function() {
|
|
3977
3977
|
});
|
|
3978
3978
|
}
|
|
3979
3979
|
} catch (S) {
|
|
@@ -4199,7 +4199,7 @@ Error generating stack: ` + a.message + `
|
|
|
4199
4199
|
t.pendingLanes = l, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= l, t.entangledLanes &= l, t.errorRecoveryDisabledLanes &= l, t.shellSuspendCounter = 0;
|
|
4200
4200
|
var c = t.entanglements, s = t.expirationTimes, p = t.hiddenUpdates;
|
|
4201
4201
|
for (l = u & ~l; 0 < l; ) {
|
|
4202
|
-
var A = 31 - re(l),
|
|
4202
|
+
var A = 31 - re(l), z = 1 << A;
|
|
4203
4203
|
c[A] = 0, s[A] = -1;
|
|
4204
4204
|
var b = p[A];
|
|
4205
4205
|
if (b !== null)
|
|
@@ -4207,7 +4207,7 @@ Error generating stack: ` + a.message + `
|
|
|
4207
4207
|
var S = b[A];
|
|
4208
4208
|
S !== null && (S.lane &= -536870913);
|
|
4209
4209
|
}
|
|
4210
|
-
l &= ~
|
|
4210
|
+
l &= ~z;
|
|
4211
4211
|
}
|
|
4212
4212
|
a !== 0 && jf(t, a, 0), i !== 0 && n === 0 && t.tag !== 0 && (t.suspendedLanes |= i & ~(u & ~e));
|
|
4213
4213
|
}
|
|
@@ -5300,7 +5300,7 @@ Error generating stack: ` + a.message + `
|
|
|
5300
5300
|
u = lg(
|
|
5301
5301
|
t,
|
|
5302
5302
|
l,
|
|
5303
|
-
|
|
5303
|
+
L.current
|
|
5304
5304
|
) ? 26 : t === "html" || t === "head" || t === "body" ? 27 : 5;
|
|
5305
5305
|
else
|
|
5306
5306
|
t: switch (t) {
|
|
@@ -5326,7 +5326,7 @@ Error generating stack: ` + a.message + `
|
|
|
5326
5326
|
case St:
|
|
5327
5327
|
u = 9;
|
|
5328
5328
|
break t;
|
|
5329
|
-
case
|
|
5329
|
+
case q:
|
|
5330
5330
|
u = 11;
|
|
5331
5331
|
break t;
|
|
5332
5332
|
case tt:
|
|
@@ -5694,8 +5694,8 @@ Error generating stack: ` + a.message + `
|
|
|
5694
5694
|
}
|
|
5695
5695
|
), a;
|
|
5696
5696
|
}
|
|
5697
|
-
var Ho =
|
|
5698
|
-
|
|
5697
|
+
var Ho = O.S;
|
|
5698
|
+
O.S = function(t, e) {
|
|
5699
5699
|
br = oe(), typeof e == "object" && e !== null && typeof e.then == "function" && ey(t, e), Ho !== null && Ho(t, e);
|
|
5700
5700
|
};
|
|
5701
5701
|
var Bl = y(null);
|
|
@@ -5842,7 +5842,7 @@ Error generating stack: ` + a.message + `
|
|
|
5842
5842
|
X
|
|
5843
5843
|
), d.return = g, d) : (d = n(d, m), d.return = g, d);
|
|
5844
5844
|
}
|
|
5845
|
-
function
|
|
5845
|
+
function z(g, d, m) {
|
|
5846
5846
|
if (typeof d == "string" && d !== "" || typeof d == "number" || typeof d == "bigint")
|
|
5847
5847
|
return d = Ru(
|
|
5848
5848
|
"" + d,
|
|
@@ -5867,7 +5867,7 @@ Error generating stack: ` + a.message + `
|
|
|
5867
5867
|
m
|
|
5868
5868
|
), d.return = g, d;
|
|
5869
5869
|
case Gt:
|
|
5870
|
-
return d = ql(d),
|
|
5870
|
+
return d = ql(d), z(g, d, m);
|
|
5871
5871
|
}
|
|
5872
5872
|
if (R(d) || ce(d))
|
|
5873
5873
|
return d = Rl(
|
|
@@ -5877,9 +5877,9 @@ Error generating stack: ` + a.message + `
|
|
|
5877
5877
|
null
|
|
5878
5878
|
), d.return = g, d;
|
|
5879
5879
|
if (typeof d.then == "function")
|
|
5880
|
-
return
|
|
5880
|
+
return z(g, ti(d), m);
|
|
5881
5881
|
if (d.$$typeof === dt)
|
|
5882
|
-
return
|
|
5882
|
+
return z(
|
|
5883
5883
|
g,
|
|
5884
5884
|
$n(g, d),
|
|
5885
5885
|
m
|
|
@@ -5966,70 +5966,70 @@ Error generating stack: ` + a.message + `
|
|
|
5966
5966
|
return null;
|
|
5967
5967
|
}
|
|
5968
5968
|
function H(g, d, m, E) {
|
|
5969
|
-
for (var X = null, st = null,
|
|
5970
|
-
|
|
5969
|
+
for (var X = null, st = null, G = d, F = d = 0, ct = null; G !== null && F < m.length; F++) {
|
|
5970
|
+
G.index > F ? (ct = G, G = null) : ct = G.sibling;
|
|
5971
5971
|
var rt = b(
|
|
5972
5972
|
g,
|
|
5973
|
-
|
|
5973
|
+
G,
|
|
5974
5974
|
m[F],
|
|
5975
5975
|
E
|
|
5976
5976
|
);
|
|
5977
5977
|
if (rt === null) {
|
|
5978
|
-
|
|
5978
|
+
G === null && (G = ct);
|
|
5979
5979
|
break;
|
|
5980
5980
|
}
|
|
5981
|
-
t &&
|
|
5981
|
+
t && G && rt.alternate === null && e(g, G), d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt, G = ct;
|
|
5982
5982
|
}
|
|
5983
5983
|
if (F === m.length)
|
|
5984
|
-
return l(g,
|
|
5985
|
-
if (
|
|
5984
|
+
return l(g, G), ft && Ye(g, F), X;
|
|
5985
|
+
if (G === null) {
|
|
5986
5986
|
for (; F < m.length; F++)
|
|
5987
|
-
|
|
5988
|
-
|
|
5987
|
+
G = z(g, m[F], E), G !== null && (d = i(
|
|
5988
|
+
G,
|
|
5989
5989
|
d,
|
|
5990
5990
|
F
|
|
5991
|
-
), st === null ? X =
|
|
5991
|
+
), st === null ? X = G : st.sibling = G, st = G);
|
|
5992
5992
|
return ft && Ye(g, F), X;
|
|
5993
5993
|
}
|
|
5994
|
-
for (
|
|
5994
|
+
for (G = a(G); F < m.length; F++)
|
|
5995
5995
|
ct = S(
|
|
5996
|
-
|
|
5996
|
+
G,
|
|
5997
5997
|
g,
|
|
5998
5998
|
F,
|
|
5999
5999
|
m[F],
|
|
6000
6000
|
E
|
|
6001
|
-
), ct !== null && (t && ct.alternate !== null &&
|
|
6001
|
+
), ct !== null && (t && ct.alternate !== null && G.delete(
|
|
6002
6002
|
ct.key === null ? F : ct.key
|
|
6003
6003
|
), d = i(
|
|
6004
6004
|
ct,
|
|
6005
6005
|
d,
|
|
6006
6006
|
F
|
|
6007
6007
|
), st === null ? X = ct : st.sibling = ct, st = ct);
|
|
6008
|
-
return t &&
|
|
6008
|
+
return t && G.forEach(function(zl) {
|
|
6009
6009
|
return e(g, zl);
|
|
6010
6010
|
}), ft && Ye(g, F), X;
|
|
6011
6011
|
}
|
|
6012
6012
|
function V(g, d, m, E) {
|
|
6013
6013
|
if (m == null) throw Error(r(151));
|
|
6014
|
-
for (var X = null, st = null,
|
|
6015
|
-
|
|
6016
|
-
var zl = b(g,
|
|
6014
|
+
for (var X = null, st = null, G = d, F = d = 0, ct = null, rt = m.next(); G !== null && !rt.done; F++, rt = m.next()) {
|
|
6015
|
+
G.index > F ? (ct = G, G = null) : ct = G.sibling;
|
|
6016
|
+
var zl = b(g, G, rt.value, E);
|
|
6017
6017
|
if (zl === null) {
|
|
6018
|
-
|
|
6018
|
+
G === null && (G = ct);
|
|
6019
6019
|
break;
|
|
6020
6020
|
}
|
|
6021
|
-
t &&
|
|
6021
|
+
t && G && zl.alternate === null && e(g, G), d = i(zl, d, F), st === null ? X = zl : st.sibling = zl, st = zl, G = ct;
|
|
6022
6022
|
}
|
|
6023
6023
|
if (rt.done)
|
|
6024
|
-
return l(g,
|
|
6025
|
-
if (
|
|
6024
|
+
return l(g, G), ft && Ye(g, F), X;
|
|
6025
|
+
if (G === null) {
|
|
6026
6026
|
for (; !rt.done; F++, rt = m.next())
|
|
6027
|
-
rt =
|
|
6027
|
+
rt = z(g, rt.value, E), rt !== null && (d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt);
|
|
6028
6028
|
return ft && Ye(g, F), X;
|
|
6029
6029
|
}
|
|
6030
|
-
for (
|
|
6031
|
-
rt = S(
|
|
6032
|
-
return t &&
|
|
6030
|
+
for (G = a(G); !rt.done; F++, rt = m.next())
|
|
6031
|
+
rt = S(G, g, F, rt.value, E), rt !== null && (t && rt.alternate !== null && G.delete(rt.key === null ? F : rt.key), d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt);
|
|
6032
|
+
return t && G.forEach(function(hg) {
|
|
6033
6033
|
return e(g, hg);
|
|
6034
6034
|
}), ft && Ye(g, F), X;
|
|
6035
6035
|
}
|
|
@@ -6150,9 +6150,9 @@ Error generating stack: ` + a.message + `
|
|
|
6150
6150
|
E
|
|
6151
6151
|
);
|
|
6152
6152
|
return ya = null, X;
|
|
6153
|
-
} catch (
|
|
6154
|
-
if (
|
|
6155
|
-
var st = he(29,
|
|
6153
|
+
} catch (G) {
|
|
6154
|
+
if (G === ha || G === In) throw G;
|
|
6155
|
+
var st = he(29, G, null, g.mode);
|
|
6156
6156
|
return st.lanes = E, st.return = g, st;
|
|
6157
6157
|
}
|
|
6158
6158
|
};
|
|
@@ -6242,7 +6242,7 @@ Error generating stack: ` + a.message + `
|
|
|
6242
6242
|
A !== null && (A = A.updateQueue, c = A.lastBaseUpdate, c !== u && (c === null ? A.firstBaseUpdate = p : c.next = p, A.lastBaseUpdate = s));
|
|
6243
6243
|
}
|
|
6244
6244
|
if (i !== null) {
|
|
6245
|
-
var
|
|
6245
|
+
var z = n.baseState;
|
|
6246
6246
|
u = 0, A = p = s = null, c = i;
|
|
6247
6247
|
do {
|
|
6248
6248
|
var b = c.lane & -536870913, S = b !== c.lane;
|
|
@@ -6261,16 +6261,16 @@ Error generating stack: ` + a.message + `
|
|
|
6261
6261
|
switch (V.tag) {
|
|
6262
6262
|
case 1:
|
|
6263
6263
|
if (H = V.payload, typeof H == "function") {
|
|
6264
|
-
|
|
6264
|
+
z = H.call(bt, z, b);
|
|
6265
6265
|
break t;
|
|
6266
6266
|
}
|
|
6267
|
-
|
|
6267
|
+
z = H;
|
|
6268
6268
|
break t;
|
|
6269
6269
|
case 3:
|
|
6270
6270
|
H.flags = H.flags & -65537 | 128;
|
|
6271
6271
|
case 0:
|
|
6272
|
-
if (H = V.payload, b = typeof H == "function" ? H.call(bt,
|
|
6273
|
-
|
|
6272
|
+
if (H = V.payload, b = typeof H == "function" ? H.call(bt, z, b) : H, b == null) break t;
|
|
6273
|
+
z = N({}, z, b);
|
|
6274
6274
|
break t;
|
|
6275
6275
|
case 2:
|
|
6276
6276
|
fl = !0;
|
|
@@ -6284,14 +6284,14 @@ Error generating stack: ` + a.message + `
|
|
|
6284
6284
|
payload: c.payload,
|
|
6285
6285
|
callback: c.callback,
|
|
6286
6286
|
next: null
|
|
6287
|
-
}, A === null ? (p = A = S, s =
|
|
6287
|
+
}, A === null ? (p = A = S, s = z) : A = A.next = S, u |= b;
|
|
6288
6288
|
if (c = c.next, c === null) {
|
|
6289
6289
|
if (c = n.shared.pending, c === null)
|
|
6290
6290
|
break;
|
|
6291
6291
|
S = c, c = S.next, S.next = null, n.lastBaseUpdate = S, n.shared.pending = null;
|
|
6292
6292
|
}
|
|
6293
6293
|
} while (!0);
|
|
6294
|
-
A === null && (s =
|
|
6294
|
+
A === null && (s = z), n.baseState = s, n.firstBaseUpdate = p, n.lastBaseUpdate = A, i === null && (n.shared.lanes = 0), gl |= u, t.lanes = u, t.memoizedState = z;
|
|
6295
6295
|
}
|
|
6296
6296
|
}
|
|
6297
6297
|
function Qo(t, e) {
|
|
@@ -6365,7 +6365,7 @@ Error generating stack: ` + a.message + `
|
|
|
6365
6365
|
return !0;
|
|
6366
6366
|
}
|
|
6367
6367
|
function tc(t, e, l, a, n, i) {
|
|
6368
|
-
return Ve = i, W = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0,
|
|
6368
|
+
return Ve = i, W = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0, O.H = t === null || t.memoizedState === null ? Us : gc, Ll = !1, i = l(a, n), Ll = !1, ma && (i = Wo(
|
|
6369
6369
|
e,
|
|
6370
6370
|
l,
|
|
6371
6371
|
a,
|
|
@@ -6373,7 +6373,7 @@ Error generating stack: ` + a.message + `
|
|
|
6373
6373
|
)), Jo(t), i;
|
|
6374
6374
|
}
|
|
6375
6375
|
function Jo(t) {
|
|
6376
|
-
|
|
6376
|
+
O.H = nn;
|
|
6377
6377
|
var e = pt !== null && pt.next !== null;
|
|
6378
6378
|
if (Ve = 0, wt = pt = W = null, ni = !1, en = 0, pa = null, e) throw Error(r(300));
|
|
6379
6379
|
t === null || Nt || (t = t.dependencies, t !== null && Wn(t) && (Nt = !0));
|
|
@@ -6387,12 +6387,12 @@ Error generating stack: ` + a.message + `
|
|
|
6387
6387
|
var i = t.updateQueue;
|
|
6388
6388
|
i.lastEffect = null, i.events = null, i.stores = null, i.memoCache != null && (i.memoCache.index = 0);
|
|
6389
6389
|
}
|
|
6390
|
-
|
|
6390
|
+
O.H = Ds, i = e(l, a);
|
|
6391
6391
|
} while (ma);
|
|
6392
6392
|
return i;
|
|
6393
6393
|
}
|
|
6394
6394
|
function ny() {
|
|
6395
|
-
var t =
|
|
6395
|
+
var t = O.H, e = t.useState()[0];
|
|
6396
6396
|
return e = typeof e.then == "function" ? ln(e) : e, t = t.useState()[0], (pt !== null ? pt.memoizedState : null) !== t && (W.flags |= 1024), e;
|
|
6397
6397
|
}
|
|
6398
6398
|
function ec() {
|
|
@@ -6448,7 +6448,7 @@ Error generating stack: ` + a.message + `
|
|
|
6448
6448
|
}
|
|
6449
6449
|
function ln(t) {
|
|
6450
6450
|
var e = en;
|
|
6451
|
-
return en += 1, pa === null && (pa = []), t = Go(pa, t, e), e = W, (wt === null ? e.memoizedState : wt.next) === null && (e = e.alternate,
|
|
6451
|
+
return en += 1, pa === null && (pa = []), t = Go(pa, t, e), e = W, (wt === null ? e.memoizedState : wt.next) === null && (e = e.alternate, O.H = e === null || e.memoizedState === null ? Us : gc), t;
|
|
6452
6452
|
}
|
|
6453
6453
|
function ci(t) {
|
|
6454
6454
|
if (t !== null && typeof t == "object") {
|
|
@@ -6497,8 +6497,8 @@ Error generating stack: ` + a.message + `
|
|
|
6497
6497
|
e = n.next;
|
|
6498
6498
|
var c = u = null, s = null, p = e, A = !1;
|
|
6499
6499
|
do {
|
|
6500
|
-
var
|
|
6501
|
-
if (
|
|
6500
|
+
var z = p.lane & -536870913;
|
|
6501
|
+
if (z !== p.lane ? (ut & z) === z : (Ve & z) === z) {
|
|
6502
6502
|
var b = p.revertLane;
|
|
6503
6503
|
if (b === 0)
|
|
6504
6504
|
s !== null && (s = s.next = {
|
|
@@ -6509,12 +6509,12 @@ Error generating stack: ` + a.message + `
|
|
|
6509
6509
|
hasEagerState: p.hasEagerState,
|
|
6510
6510
|
eagerState: p.eagerState,
|
|
6511
6511
|
next: null
|
|
6512
|
-
}),
|
|
6512
|
+
}), z === ra && (A = !0);
|
|
6513
6513
|
else if ((Ve & b) === b) {
|
|
6514
6514
|
p = p.next, b === ra && (A = !0);
|
|
6515
6515
|
continue;
|
|
6516
6516
|
} else
|
|
6517
|
-
|
|
6517
|
+
z = {
|
|
6518
6518
|
lane: 0,
|
|
6519
6519
|
revertLane: p.revertLane,
|
|
6520
6520
|
gesture: null,
|
|
@@ -6522,18 +6522,18 @@ Error generating stack: ` + a.message + `
|
|
|
6522
6522
|
hasEagerState: p.hasEagerState,
|
|
6523
6523
|
eagerState: p.eagerState,
|
|
6524
6524
|
next: null
|
|
6525
|
-
}, s === null ? (c = s =
|
|
6526
|
-
|
|
6525
|
+
}, s === null ? (c = s = z, u = i) : s = s.next = z, W.lanes |= b, gl |= b;
|
|
6526
|
+
z = p.action, Ll && l(i, z), i = p.hasEagerState ? p.eagerState : l(i, z);
|
|
6527
6527
|
} else
|
|
6528
6528
|
b = {
|
|
6529
|
-
lane:
|
|
6529
|
+
lane: z,
|
|
6530
6530
|
revertLane: p.revertLane,
|
|
6531
6531
|
gesture: p.gesture,
|
|
6532
6532
|
action: p.action,
|
|
6533
6533
|
hasEagerState: p.hasEagerState,
|
|
6534
6534
|
eagerState: p.eagerState,
|
|
6535
6535
|
next: null
|
|
6536
|
-
}, s === null ? (c = s = b, u = i) : s = s.next = b, W.lanes |=
|
|
6536
|
+
}, s === null ? (c = s = b, u = i) : s = s.next = b, W.lanes |= z, gl |= z;
|
|
6537
6537
|
p = p.next;
|
|
6538
6538
|
} while (p !== null && p !== e);
|
|
6539
6539
|
if (s === null ? u = i : s.next = c, !de(i, t.memoizedState) && (Nt = !0, A && (l = da, l !== null)))
|
|
@@ -6655,21 +6655,21 @@ Error generating stack: ` + a.message + `
|
|
|
6655
6655
|
i.listeners.push(u);
|
|
6656
6656
|
}
|
|
6657
6657
|
};
|
|
6658
|
-
|
|
6658
|
+
O.T !== null ? l(!0) : i.isTransition = !1, a(i), l = e.pending, l === null ? (i.next = e.pending = i, as(e, i)) : (i.next = l.next, e.pending = l.next = i);
|
|
6659
6659
|
}
|
|
6660
6660
|
}
|
|
6661
6661
|
function as(t, e) {
|
|
6662
6662
|
var l = e.action, a = e.payload, n = t.state;
|
|
6663
6663
|
if (e.isTransition) {
|
|
6664
|
-
var i =
|
|
6665
|
-
|
|
6664
|
+
var i = O.T, u = {};
|
|
6665
|
+
O.T = u;
|
|
6666
6666
|
try {
|
|
6667
|
-
var c = l(n, a), s =
|
|
6667
|
+
var c = l(n, a), s = O.S;
|
|
6668
6668
|
s !== null && s(u, c), ns(t, e, c);
|
|
6669
6669
|
} catch (p) {
|
|
6670
6670
|
fc(t, e, p);
|
|
6671
6671
|
} finally {
|
|
6672
|
-
i !== null && u.types !== null && (i.types = u.types),
|
|
6672
|
+
i !== null && u.types !== null && (i.types = u.types), O.T = i;
|
|
6673
6673
|
}
|
|
6674
6674
|
} else
|
|
6675
6675
|
try {
|
|
@@ -6913,10 +6913,10 @@ Error generating stack: ` + a.message + `
|
|
|
6913
6913
|
function Ts(t, e, l, a, n) {
|
|
6914
6914
|
var i = j.p;
|
|
6915
6915
|
j.p = i !== 0 && 8 > i ? i : 8;
|
|
6916
|
-
var u =
|
|
6917
|
-
|
|
6916
|
+
var u = O.T, c = {};
|
|
6917
|
+
O.T = c, yc(t, !1, e, l);
|
|
6918
6918
|
try {
|
|
6919
|
-
var s = n(), p =
|
|
6919
|
+
var s = n(), p = O.S;
|
|
6920
6920
|
if (p !== null && p(c, s), s !== null && typeof s == "object" && typeof s.then == "function") {
|
|
6921
6921
|
var A = ly(
|
|
6922
6922
|
s,
|
|
@@ -6935,16 +6935,16 @@ Error generating stack: ` + a.message + `
|
|
|
6935
6935
|
a,
|
|
6936
6936
|
ve(t)
|
|
6937
6937
|
);
|
|
6938
|
-
} catch (
|
|
6938
|
+
} catch (z) {
|
|
6939
6939
|
an(
|
|
6940
6940
|
t,
|
|
6941
6941
|
e,
|
|
6942
6942
|
{ then: function() {
|
|
6943
|
-
}, status: "rejected", reason:
|
|
6943
|
+
}, status: "rejected", reason: z },
|
|
6944
6944
|
ve()
|
|
6945
6945
|
);
|
|
6946
6946
|
} finally {
|
|
6947
|
-
j.p = i, u !== null && c.types !== null && (u.types = c.types),
|
|
6947
|
+
j.p = i, u !== null && c.types !== null && (u.types = c.types), O.T = u;
|
|
6948
6948
|
}
|
|
6949
6949
|
}
|
|
6950
6950
|
function fy() {
|
|
@@ -7751,18 +7751,18 @@ Error generating stack: ` + a.message + `
|
|
|
7751
7751
|
i.props = s;
|
|
7752
7752
|
var p = i.context, A = l.contextType;
|
|
7753
7753
|
u = ua, typeof A == "object" && A !== null && (u = kt(A));
|
|
7754
|
-
var
|
|
7755
|
-
A = typeof
|
|
7754
|
+
var z = l.getDerivedStateFromProps;
|
|
7755
|
+
A = typeof z == "function" || typeof i.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, A || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (c || p !== u) && Rs(
|
|
7756
7756
|
e,
|
|
7757
7757
|
i,
|
|
7758
7758
|
a,
|
|
7759
7759
|
u
|
|
7760
7760
|
), fl = !1;
|
|
7761
7761
|
var b = e.memoizedState;
|
|
7762
|
-
i.state = b, tn(e, a, i, n), Pa(), p = e.memoizedState, c || b !== p || fl ? (typeof
|
|
7762
|
+
i.state = b, tn(e, a, i, n), Pa(), p = e.memoizedState, c || b !== p || fl ? (typeof z == "function" && (mc(
|
|
7763
7763
|
e,
|
|
7764
7764
|
l,
|
|
7765
|
-
|
|
7765
|
+
z,
|
|
7766
7766
|
a
|
|
7767
7767
|
), p = e.memoizedState), (s = fl || js(
|
|
7768
7768
|
e,
|
|
@@ -7774,14 +7774,14 @@ Error generating stack: ` + a.message + `
|
|
|
7774
7774
|
u
|
|
7775
7775
|
)) ? (A || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = a, e.memoizedState = p), i.props = a, i.state = p, i.context = u, a = s) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), a = !1);
|
|
7776
7776
|
} else {
|
|
7777
|
-
i = e.stateNode, Ku(t, e), u = e.memoizedProps, A = Xl(l, u), i.props = A,
|
|
7777
|
+
i = e.stateNode, Ku(t, e), u = e.memoizedProps, A = Xl(l, u), i.props = A, z = e.pendingProps, b = i.context, p = l.contextType, s = ua, typeof p == "object" && p !== null && (s = kt(p)), c = l.getDerivedStateFromProps, (p = typeof c == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (u !== z || b !== s) && Rs(
|
|
7778
7778
|
e,
|
|
7779
7779
|
i,
|
|
7780
7780
|
a,
|
|
7781
7781
|
s
|
|
7782
7782
|
), fl = !1, b = e.memoizedState, i.state = b, tn(e, a, i, n), Pa();
|
|
7783
7783
|
var S = e.memoizedState;
|
|
7784
|
-
u !==
|
|
7784
|
+
u !== z || b !== S || fl || t !== null && t.dependencies !== null && Wn(t.dependencies) ? (typeof c == "function" && (mc(
|
|
7785
7785
|
e,
|
|
7786
7786
|
l,
|
|
7787
7787
|
c,
|
|
@@ -8155,7 +8155,7 @@ Error generating stack: ` + a.message + `
|
|
|
8155
8155
|
else {
|
|
8156
8156
|
if (t != null) {
|
|
8157
8157
|
var n = t.$$typeof;
|
|
8158
|
-
if (n ===
|
|
8158
|
+
if (n === q) {
|
|
8159
8159
|
e.tag = 11, e = Ys(
|
|
8160
8160
|
null,
|
|
8161
8161
|
e,
|
|
@@ -8483,7 +8483,7 @@ Error generating stack: ` + a.message + `
|
|
|
8483
8483
|
throw Error(r(166));
|
|
8484
8484
|
return Et(e), null;
|
|
8485
8485
|
}
|
|
8486
|
-
t =
|
|
8486
|
+
t = L.current, oa(e) ? jo(e) : (t = ud(n, a, l), e.stateNode = t, ke(e));
|
|
8487
8487
|
}
|
|
8488
8488
|
return Et(e), null;
|
|
8489
8489
|
case 5:
|
|
@@ -8495,7 +8495,7 @@ Error generating stack: ` + a.message + `
|
|
|
8495
8495
|
throw Error(r(166));
|
|
8496
8496
|
return Et(e), null;
|
|
8497
8497
|
}
|
|
8498
|
-
if (i =
|
|
8498
|
+
if (i = L.current, oa(e))
|
|
8499
8499
|
jo(e);
|
|
8500
8500
|
else {
|
|
8501
8501
|
var u = Di(
|
|
@@ -8959,16 +8959,16 @@ Error generating stack: ` + a.message + `
|
|
|
8959
8959
|
l = null;
|
|
8960
8960
|
break t;
|
|
8961
8961
|
}
|
|
8962
|
-
var u = 0, c = -1, s = -1, p = 0, A = 0,
|
|
8962
|
+
var u = 0, c = -1, s = -1, p = 0, A = 0, z = t, b = null;
|
|
8963
8963
|
e: for (; ; ) {
|
|
8964
|
-
for (var S;
|
|
8965
|
-
b =
|
|
8964
|
+
for (var S; z !== l || n !== 0 && z.nodeType !== 3 || (c = u + n), z !== i || a !== 0 && z.nodeType !== 3 || (s = u + a), z.nodeType === 3 && (u += z.nodeValue.length), (S = z.firstChild) !== null; )
|
|
8965
|
+
b = z, z = S;
|
|
8966
8966
|
for (; ; ) {
|
|
8967
|
-
if (
|
|
8968
|
-
if (b === l && ++p === n && (c = u), b === i && ++A === a && (s = u), (S =
|
|
8969
|
-
|
|
8967
|
+
if (z === t) break e;
|
|
8968
|
+
if (b === l && ++p === n && (c = u), b === i && ++A === a && (s = u), (S = z.nextSibling) !== null) break;
|
|
8969
|
+
z = b, b = z.parentNode;
|
|
8970
8970
|
}
|
|
8971
|
-
|
|
8971
|
+
z = S;
|
|
8972
8972
|
}
|
|
8973
8973
|
l = c === -1 || s === -1 ? null : { start: c, end: s };
|
|
8974
8974
|
} else l = null;
|
|
@@ -9484,7 +9484,7 @@ Error generating stack: ` + a.message + `
|
|
|
9484
9484
|
u = i.style, typeof u.setProperty == "function" ? u.setProperty("display", "none", "important") : u.display = "none";
|
|
9485
9485
|
else {
|
|
9486
9486
|
c = s.stateNode;
|
|
9487
|
-
var
|
|
9487
|
+
var z = s.memoizedProps.style, b = z != null && z.hasOwnProperty("display") ? z.display : null;
|
|
9488
9488
|
c.style.display = b == null || typeof b == "boolean" ? "" : ("" + b).trim();
|
|
9489
9489
|
}
|
|
9490
9490
|
} catch (H) {
|
|
@@ -10100,7 +10100,7 @@ Error generating stack: ` + a.message + `
|
|
|
10100
10100
|
}
|
|
10101
10101
|
}, by = typeof WeakMap == "function" ? WeakMap : Map, ht = 0, xt = null, at = null, ut = 0, gt = 0, me = null, yl = !1, Sa = !1, Nc = !1, Fe = 0, _t = 0, gl = 0, Ql = 0, Hc = 0, pe = 0, Ta = 0, hn = null, ie = null, Bc = !1, xi = 0, br = 0, Si = 1 / 0, Ti = null, ml = null, qt = 0, pl = null, Aa = null, Ie = 0, qc = 0, Gc = null, xr = null, yn = 0, Yc = null;
|
|
10102
10102
|
function ve() {
|
|
10103
|
-
return (ht & 2) !== 0 && ut !== 0 ? ut & -ut :
|
|
10103
|
+
return (ht & 2) !== 0 && ut !== 0 ? ut & -ut : O.T !== null ? kc() : Nf();
|
|
10104
10104
|
}
|
|
10105
10105
|
function Sr() {
|
|
10106
10106
|
if (pe === 0)
|
|
@@ -10244,9 +10244,9 @@ Error generating stack: ` + a.message + `
|
|
|
10244
10244
|
} while (!0);
|
|
10245
10245
|
Ne(t);
|
|
10246
10246
|
}
|
|
10247
|
-
function Ar(t, e, l, a, n, i, u, c, s, p, A,
|
|
10248
|
-
if (t.timeoutHandle = -1,
|
|
10249
|
-
|
|
10247
|
+
function Ar(t, e, l, a, n, i, u, c, s, p, A, z, b, S) {
|
|
10248
|
+
if (t.timeoutHandle = -1, z = e.subtreeFlags, z & 8192 || (z & 16785408) === 16785408) {
|
|
10249
|
+
z = {
|
|
10250
10250
|
stylesheets: null,
|
|
10251
10251
|
count: 0,
|
|
10252
10252
|
imgCount: 0,
|
|
@@ -10258,11 +10258,11 @@ Error generating stack: ` + a.message + `
|
|
|
10258
10258
|
}, gr(
|
|
10259
10259
|
e,
|
|
10260
10260
|
i,
|
|
10261
|
-
|
|
10261
|
+
z
|
|
10262
10262
|
);
|
|
10263
10263
|
var H = (i & 62914560) === i ? xi - oe() : (i & 4194048) === i ? br - oe() : 0;
|
|
10264
10264
|
if (H = ng(
|
|
10265
|
-
|
|
10265
|
+
z,
|
|
10266
10266
|
H
|
|
10267
10267
|
), H !== null) {
|
|
10268
10268
|
Ie = i, t.cancelPendingCommit = H(
|
|
@@ -10278,7 +10278,7 @@ Error generating stack: ` + a.message + `
|
|
|
10278
10278
|
c,
|
|
10279
10279
|
s,
|
|
10280
10280
|
A,
|
|
10281
|
-
|
|
10281
|
+
z,
|
|
10282
10282
|
null,
|
|
10283
10283
|
b,
|
|
10284
10284
|
S
|
|
@@ -10359,7 +10359,7 @@ Error generating stack: ` + a.message + `
|
|
|
10359
10359
|
return Fe = e, Qn(), l;
|
|
10360
10360
|
}
|
|
10361
10361
|
function Er(t, e) {
|
|
10362
|
-
W = null,
|
|
10362
|
+
W = null, O.H = nn, e === ha || e === In ? (e = Yo(), gt = 3) : e === Zu ? (e = Yo(), gt = 4) : gt = e === bc ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, me = e, at === null && (_t = 1, di(
|
|
10363
10363
|
t,
|
|
10364
10364
|
Te(e, t.current)
|
|
10365
10365
|
));
|
|
@@ -10369,12 +10369,12 @@ Error generating stack: ` + a.message + `
|
|
|
10369
10369
|
return t === null ? !0 : (ut & 4194048) === ut ? Ce === null : (ut & 62914560) === ut || (ut & 536870912) !== 0 ? t === Ce : !1;
|
|
10370
10370
|
}
|
|
10371
10371
|
function Cr() {
|
|
10372
|
-
var t =
|
|
10373
|
-
return
|
|
10372
|
+
var t = O.H;
|
|
10373
|
+
return O.H = nn, t === null ? nn : t;
|
|
10374
10374
|
}
|
|
10375
10375
|
function _r() {
|
|
10376
|
-
var t =
|
|
10377
|
-
return
|
|
10376
|
+
var t = O.A;
|
|
10377
|
+
return O.A = vy, t;
|
|
10378
10378
|
}
|
|
10379
10379
|
function Ei() {
|
|
10380
10380
|
_t = 4, yl || (ut & 4194048) !== ut && ye.current !== null || (Sa = !0), (gl & 134217727) === 0 && (Ql & 134217727) === 0 || xt === null || vl(
|
|
@@ -10419,7 +10419,7 @@ Error generating stack: ` + a.message + `
|
|
|
10419
10419
|
Er(t, A);
|
|
10420
10420
|
}
|
|
10421
10421
|
while (!0);
|
|
10422
|
-
return e && t.shellSuspendCounter++, Le = Nl = null, ht = a,
|
|
10422
|
+
return e && t.shellSuspendCounter++, Le = Nl = null, ht = a, O.H = n, O.A = i, at === null && (xt = null, ut = 0, Qn()), u;
|
|
10423
10423
|
}
|
|
10424
10424
|
function Sy() {
|
|
10425
10425
|
for (; at !== null; ) Mr(at);
|
|
@@ -10497,7 +10497,7 @@ Error generating stack: ` + a.message + `
|
|
|
10497
10497
|
Er(t, A);
|
|
10498
10498
|
}
|
|
10499
10499
|
while (!0);
|
|
10500
|
-
return Le = Nl = null,
|
|
10500
|
+
return Le = Nl = null, O.H = a, O.A = n, ht = l, at !== null ? 0 : (xt = null, ut = 0, Qn(), _t);
|
|
10501
10501
|
}
|
|
10502
10502
|
function Ay() {
|
|
10503
10503
|
for (; at !== null && !kd(); )
|
|
@@ -10626,11 +10626,11 @@ Error generating stack: ` + a.message + `
|
|
|
10626
10626
|
), t === xt && (at = xt = null, ut = 0), Aa = e, pl = t, Ie = l, qc = i, Gc = n, xr = a, (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0 ? (t.callbackNode = null, t.callbackPriority = 0, _y(Mn, function() {
|
|
10627
10627
|
return Hr(), null;
|
|
10628
10628
|
})) : (t.callbackNode = null, t.callbackPriority = 0), a = (e.flags & 13878) !== 0, (e.subtreeFlags & 13878) !== 0 || a) {
|
|
10629
|
-
a =
|
|
10629
|
+
a = O.T, O.T = null, n = j.p, j.p = 2, u = ht, ht |= 4;
|
|
10630
10630
|
try {
|
|
10631
10631
|
my(t, e, l);
|
|
10632
10632
|
} finally {
|
|
10633
|
-
ht = u, j.p = n,
|
|
10633
|
+
ht = u, j.p = n, O.T = a;
|
|
10634
10634
|
}
|
|
10635
10635
|
}
|
|
10636
10636
|
qt = 1, jr(), Rr(), wr();
|
|
@@ -10641,7 +10641,7 @@ Error generating stack: ` + a.message + `
|
|
|
10641
10641
|
qt = 0;
|
|
10642
10642
|
var t = pl, e = Aa, l = (e.flags & 13878) !== 0;
|
|
10643
10643
|
if ((e.subtreeFlags & 13878) !== 0 || l) {
|
|
10644
|
-
l =
|
|
10644
|
+
l = O.T, O.T = null;
|
|
10645
10645
|
var a = j.p;
|
|
10646
10646
|
j.p = 2;
|
|
10647
10647
|
var n = ht;
|
|
@@ -10661,7 +10661,7 @@ Error generating stack: ` + a.message + `
|
|
|
10661
10661
|
c.value.length
|
|
10662
10662
|
);
|
|
10663
10663
|
else {
|
|
10664
|
-
var
|
|
10664
|
+
var z = c.ownerDocument || document, b = z && z.defaultView || window;
|
|
10665
10665
|
if (b.getSelection) {
|
|
10666
10666
|
var S = b.getSelection(), H = c.textContent.length, V = Math.min(s.start, H), bt = s.end === void 0 ? V : Math.min(s.end, H);
|
|
10667
10667
|
!S.extend && V > bt && (u = bt, bt = V, V = u);
|
|
@@ -10673,26 +10673,26 @@ Error generating stack: ` + a.message + `
|
|
|
10673
10673
|
bt
|
|
10674
10674
|
);
|
|
10675
10675
|
if (g && d && (S.rangeCount !== 1 || S.anchorNode !== g.node || S.anchorOffset !== g.offset || S.focusNode !== d.node || S.focusOffset !== d.offset)) {
|
|
10676
|
-
var m =
|
|
10676
|
+
var m = z.createRange();
|
|
10677
10677
|
m.setStart(g.node, g.offset), S.removeAllRanges(), V > bt ? (S.addRange(m), S.extend(d.node, d.offset)) : (m.setEnd(d.node, d.offset), S.addRange(m));
|
|
10678
10678
|
}
|
|
10679
10679
|
}
|
|
10680
10680
|
}
|
|
10681
10681
|
}
|
|
10682
|
-
for (
|
|
10683
|
-
S.nodeType === 1 &&
|
|
10682
|
+
for (z = [], S = c; S = S.parentNode; )
|
|
10683
|
+
S.nodeType === 1 && z.push({
|
|
10684
10684
|
element: S,
|
|
10685
10685
|
left: S.scrollLeft,
|
|
10686
10686
|
top: S.scrollTop
|
|
10687
10687
|
});
|
|
10688
|
-
for (typeof c.focus == "function" && c.focus(), c = 0; c <
|
|
10689
|
-
var E =
|
|
10688
|
+
for (typeof c.focus == "function" && c.focus(), c = 0; c < z.length; c++) {
|
|
10689
|
+
var E = z[c];
|
|
10690
10690
|
E.element.scrollLeft = E.left, E.element.scrollTop = E.top;
|
|
10691
10691
|
}
|
|
10692
10692
|
}
|
|
10693
10693
|
qi = !!Pc, tf = Pc = null;
|
|
10694
10694
|
} finally {
|
|
10695
|
-
ht = n, j.p = a,
|
|
10695
|
+
ht = n, j.p = a, O.T = l;
|
|
10696
10696
|
}
|
|
10697
10697
|
}
|
|
10698
10698
|
t.current = e, qt = 2;
|
|
@@ -10703,7 +10703,7 @@ Error generating stack: ` + a.message + `
|
|
|
10703
10703
|
qt = 0;
|
|
10704
10704
|
var t = pl, e = Aa, l = (e.flags & 8772) !== 0;
|
|
10705
10705
|
if ((e.subtreeFlags & 8772) !== 0 || l) {
|
|
10706
|
-
l =
|
|
10706
|
+
l = O.T, O.T = null;
|
|
10707
10707
|
var a = j.p;
|
|
10708
10708
|
j.p = 2;
|
|
10709
10709
|
var n = ht;
|
|
@@ -10711,7 +10711,7 @@ Error generating stack: ` + a.message + `
|
|
|
10711
10711
|
try {
|
|
10712
10712
|
cr(t, e.alternate, e);
|
|
10713
10713
|
} finally {
|
|
10714
|
-
ht = n, j.p = a,
|
|
10714
|
+
ht = n, j.p = a, O.T = l;
|
|
10715
10715
|
}
|
|
10716
10716
|
}
|
|
10717
10717
|
qt = 3;
|
|
@@ -10734,7 +10734,7 @@ Error generating stack: ` + a.message + `
|
|
|
10734
10734
|
} catch {
|
|
10735
10735
|
}
|
|
10736
10736
|
if (a !== null) {
|
|
10737
|
-
e =
|
|
10737
|
+
e = O.T, n = j.p, j.p = 2, O.T = null;
|
|
10738
10738
|
try {
|
|
10739
10739
|
for (var i = t.onRecoverableError, u = 0; u < a.length; u++) {
|
|
10740
10740
|
var c = a[u];
|
|
@@ -10743,7 +10743,7 @@ Error generating stack: ` + a.message + `
|
|
|
10743
10743
|
});
|
|
10744
10744
|
}
|
|
10745
10745
|
} finally {
|
|
10746
|
-
|
|
10746
|
+
O.T = e, j.p = n;
|
|
10747
10747
|
}
|
|
10748
10748
|
}
|
|
10749
10749
|
(Ie & 3) !== 0 && Ci(), Ne(t), n = t.pendingLanes, (l & 261930) !== 0 && (n & 42) !== 0 ? t === Yc ? yn++ : (yn = 0, Yc = t) : yn = 0, gn(0);
|
|
@@ -10759,9 +10759,9 @@ Error generating stack: ` + a.message + `
|
|
|
10759
10759
|
if (qt !== 5) return !1;
|
|
10760
10760
|
var t = pl, e = qc;
|
|
10761
10761
|
qc = 0;
|
|
10762
|
-
var l = uu(Ie), a =
|
|
10762
|
+
var l = uu(Ie), a = O.T, n = j.p;
|
|
10763
10763
|
try {
|
|
10764
|
-
j.p = 32 > l ? 32 : l,
|
|
10764
|
+
j.p = 32 > l ? 32 : l, O.T = null, l = Gc, Gc = null;
|
|
10765
10765
|
var i = pl, u = Ie;
|
|
10766
10766
|
if (qt = 0, Aa = pl = null, Ie = 0, (ht & 6) !== 0) throw Error(r(331));
|
|
10767
10767
|
var c = ht;
|
|
@@ -10777,7 +10777,7 @@ Error generating stack: ` + a.message + `
|
|
|
10777
10777
|
}
|
|
10778
10778
|
return !0;
|
|
10779
10779
|
} finally {
|
|
10780
|
-
j.p = n,
|
|
10780
|
+
j.p = n, O.T = a, Nr(t, e);
|
|
10781
10781
|
}
|
|
10782
10782
|
}
|
|
10783
10783
|
function Br(t, e, l) {
|
|
@@ -11164,7 +11164,7 @@ Error generating stack: ` + a.message + `
|
|
|
11164
11164
|
a = a.return;
|
|
11165
11165
|
}
|
|
11166
11166
|
$f(function() {
|
|
11167
|
-
var p = i, A = yu(l),
|
|
11167
|
+
var p = i, A = yu(l), z = [];
|
|
11168
11168
|
t: {
|
|
11169
11169
|
var b = zo.get(t);
|
|
11170
11170
|
if (b !== void 0) {
|
|
@@ -11263,14 +11263,14 @@ Error generating stack: ` + a.message + `
|
|
|
11263
11263
|
null,
|
|
11264
11264
|
l,
|
|
11265
11265
|
A
|
|
11266
|
-
),
|
|
11266
|
+
), z.push({ event: b, listeners: V }));
|
|
11267
11267
|
}
|
|
11268
11268
|
}
|
|
11269
11269
|
if ((e & 7) === 0) {
|
|
11270
11270
|
t: {
|
|
11271
11271
|
if (b = t === "mouseover" || t === "pointerover", S = t === "mouseout" || t === "pointerout", b && l !== hu && (H = l.relatedTarget || l.fromElement) && (Jl(H) || H[Kl]))
|
|
11272
11272
|
break t;
|
|
11273
|
-
if ((S || b) && (b = A.window === A ? A : (b = A.ownerDocument) ? b.defaultView || b.parentWindow : window, S ? (H = l.relatedTarget || l.toElement, S = p, H = H ? Jl(H) : null, H !== null && (bt =
|
|
11273
|
+
if ((S || b) && (b = A.window === A ? A : (b = A.ownerDocument) ? b.defaultView || b.parentWindow : window, S ? (H = l.relatedTarget || l.toElement, S = p, H = H ? Jl(H) : null, H !== null && (bt = M(H), V = H.tag, H !== bt || V !== 5 && V !== 27 && V !== 6) && (H = null)) : (S = null, H = p), S !== H)) {
|
|
11274
11274
|
if (V = Pf, E = "onMouseLeave", g = "onMouseEnter", d = "mouse", (t === "pointerout" || t === "pointerover") && (V = eo, E = "onPointerLeave", g = "onPointerEnter", d = "pointer"), bt = S == null ? b : Ha(S), m = H == null ? b : Ha(H), b = new V(
|
|
11275
11275
|
E,
|
|
11276
11276
|
d + "leave",
|
|
@@ -11305,13 +11305,13 @@ Error generating stack: ` + a.message + `
|
|
|
11305
11305
|
}
|
|
11306
11306
|
else V = null;
|
|
11307
11307
|
S !== null && Kr(
|
|
11308
|
-
|
|
11308
|
+
z,
|
|
11309
11309
|
b,
|
|
11310
11310
|
S,
|
|
11311
11311
|
V,
|
|
11312
11312
|
!1
|
|
11313
11313
|
), H !== null && bt !== null && Kr(
|
|
11314
|
-
|
|
11314
|
+
z,
|
|
11315
11315
|
bt,
|
|
11316
11316
|
H,
|
|
11317
11317
|
V,
|
|
@@ -11327,24 +11327,24 @@ Error generating stack: ` + a.message + `
|
|
|
11327
11327
|
st = Zh;
|
|
11328
11328
|
else {
|
|
11329
11329
|
st = Vh;
|
|
11330
|
-
var
|
|
11330
|
+
var G = Xh;
|
|
11331
11331
|
}
|
|
11332
11332
|
else
|
|
11333
11333
|
S = b.nodeName, !S || S.toLowerCase() !== "input" || b.type !== "checkbox" && b.type !== "radio" ? p && du(p.elementType) && (st = oo) : st = Qh;
|
|
11334
11334
|
if (st && (st = st(t, p))) {
|
|
11335
11335
|
fo(
|
|
11336
|
-
|
|
11336
|
+
z,
|
|
11337
11337
|
st,
|
|
11338
11338
|
l,
|
|
11339
11339
|
A
|
|
11340
11340
|
);
|
|
11341
11341
|
break t;
|
|
11342
11342
|
}
|
|
11343
|
-
|
|
11343
|
+
G && G(t, b, p), t === "focusout" && p && b.type === "number" && p.memoizedProps.value != null && ru(b, "number", b.value);
|
|
11344
11344
|
}
|
|
11345
|
-
switch (
|
|
11345
|
+
switch (G = p ? Ha(p) : window, t) {
|
|
11346
11346
|
case "focusin":
|
|
11347
|
-
(co(
|
|
11347
|
+
(co(G) || G.contentEditable === "true") && (aa = G, Cu = p, Za = null);
|
|
11348
11348
|
break;
|
|
11349
11349
|
case "focusout":
|
|
11350
11350
|
Za = Cu = aa = null;
|
|
@@ -11355,13 +11355,13 @@ Error generating stack: ` + a.message + `
|
|
|
11355
11355
|
case "contextmenu":
|
|
11356
11356
|
case "mouseup":
|
|
11357
11357
|
case "dragend":
|
|
11358
|
-
_u = !1, bo(
|
|
11358
|
+
_u = !1, bo(z, l, A);
|
|
11359
11359
|
break;
|
|
11360
11360
|
case "selectionchange":
|
|
11361
11361
|
if (Kh) break;
|
|
11362
11362
|
case "keydown":
|
|
11363
11363
|
case "keyup":
|
|
11364
|
-
bo(
|
|
11364
|
+
bo(z, l, A);
|
|
11365
11365
|
}
|
|
11366
11366
|
var F;
|
|
11367
11367
|
if (Tu)
|
|
@@ -11381,30 +11381,30 @@ Error generating stack: ` + a.message + `
|
|
|
11381
11381
|
}
|
|
11382
11382
|
else
|
|
11383
11383
|
la ? io(t, l) && (ct = "onCompositionEnd") : t === "keydown" && l.keyCode === 229 && (ct = "onCompositionStart");
|
|
11384
|
-
ct && (lo && l.locale !== "ko" && (la || ct !== "onCompositionStart" ? ct === "onCompositionEnd" && la && (F = Ff()) : (al = A, pu = "value" in al ? al.value : al.textContent, la = !0)),
|
|
11384
|
+
ct && (lo && l.locale !== "ko" && (la || ct !== "onCompositionStart" ? ct === "onCompositionEnd" && la && (F = Ff()) : (al = A, pu = "value" in al ? al.value : al.textContent, la = !0)), G = Ui(p, ct), 0 < G.length && (ct = new to(
|
|
11385
11385
|
ct,
|
|
11386
11386
|
t,
|
|
11387
11387
|
null,
|
|
11388
11388
|
l,
|
|
11389
11389
|
A
|
|
11390
|
-
),
|
|
11390
|
+
), z.push({ event: ct, listeners: G }), F ? ct.data = F : (F = uo(l), F !== null && (ct.data = F)))), (F = Bh ? qh(t, l) : Gh(t, l)) && (ct = Ui(p, "onBeforeInput"), 0 < ct.length && (G = new to(
|
|
11391
11391
|
"onBeforeInput",
|
|
11392
11392
|
"beforeinput",
|
|
11393
11393
|
null,
|
|
11394
11394
|
l,
|
|
11395
11395
|
A
|
|
11396
|
-
),
|
|
11397
|
-
event:
|
|
11396
|
+
), z.push({
|
|
11397
|
+
event: G,
|
|
11398
11398
|
listeners: ct
|
|
11399
|
-
}),
|
|
11400
|
-
|
|
11399
|
+
}), G.data = F)), Uy(
|
|
11400
|
+
z,
|
|
11401
11401
|
t,
|
|
11402
11402
|
p,
|
|
11403
11403
|
l,
|
|
11404
11404
|
A
|
|
11405
11405
|
);
|
|
11406
11406
|
}
|
|
11407
|
-
Zr(
|
|
11407
|
+
Zr(z, e);
|
|
11408
11408
|
});
|
|
11409
11409
|
}
|
|
11410
11410
|
function pn(t, e, l) {
|
|
@@ -11951,22 +11951,22 @@ Error generating stack: ` + a.message + `
|
|
|
11951
11951
|
case "input":
|
|
11952
11952
|
var n = null, i = null, u = null, c = null, s = null, p = null, A = null;
|
|
11953
11953
|
for (S in l) {
|
|
11954
|
-
var
|
|
11955
|
-
if (l.hasOwnProperty(S) &&
|
|
11954
|
+
var z = l[S];
|
|
11955
|
+
if (l.hasOwnProperty(S) && z != null)
|
|
11956
11956
|
switch (S) {
|
|
11957
11957
|
case "checked":
|
|
11958
11958
|
break;
|
|
11959
11959
|
case "value":
|
|
11960
11960
|
break;
|
|
11961
11961
|
case "defaultValue":
|
|
11962
|
-
s =
|
|
11962
|
+
s = z;
|
|
11963
11963
|
default:
|
|
11964
|
-
a.hasOwnProperty(S) || vt(t, e, S, null, a,
|
|
11964
|
+
a.hasOwnProperty(S) || vt(t, e, S, null, a, z);
|
|
11965
11965
|
}
|
|
11966
11966
|
}
|
|
11967
11967
|
for (var b in a) {
|
|
11968
11968
|
var S = a[b];
|
|
11969
|
-
if (
|
|
11969
|
+
if (z = l[b], a.hasOwnProperty(b) && (S != null || z != null))
|
|
11970
11970
|
switch (b) {
|
|
11971
11971
|
case "type":
|
|
11972
11972
|
i = S;
|
|
@@ -11992,13 +11992,13 @@ Error generating stack: ` + a.message + `
|
|
|
11992
11992
|
throw Error(r(137, e));
|
|
11993
11993
|
break;
|
|
11994
11994
|
default:
|
|
11995
|
-
S !==
|
|
11995
|
+
S !== z && vt(
|
|
11996
11996
|
t,
|
|
11997
11997
|
e,
|
|
11998
11998
|
b,
|
|
11999
11999
|
S,
|
|
12000
12000
|
a,
|
|
12001
|
-
|
|
12001
|
+
z
|
|
12002
12002
|
);
|
|
12003
12003
|
}
|
|
12004
12004
|
}
|
|
@@ -12167,8 +12167,8 @@ Error generating stack: ` + a.message + `
|
|
|
12167
12167
|
}
|
|
12168
12168
|
for (var g in l)
|
|
12169
12169
|
b = l[g], l.hasOwnProperty(g) && b != null && !a.hasOwnProperty(g) && vt(t, e, g, null, a, b);
|
|
12170
|
-
for (
|
|
12171
|
-
b = a[
|
|
12170
|
+
for (z in a)
|
|
12171
|
+
b = a[z], S = l[z], !a.hasOwnProperty(z) || b === S || b == null && S == null || vt(t, e, z, b, a, S);
|
|
12172
12172
|
}
|
|
12173
12173
|
function $r(t) {
|
|
12174
12174
|
switch (t) {
|
|
@@ -12192,8 +12192,8 @@ Error generating stack: ` + a.message + `
|
|
|
12192
12192
|
for (u = 0, c = n.responseEnd, a += 1; a < l.length; a++) {
|
|
12193
12193
|
var s = l[a], p = s.startTime;
|
|
12194
12194
|
if (p > c) break;
|
|
12195
|
-
var A = s.transferSize,
|
|
12196
|
-
A && $r(
|
|
12195
|
+
var A = s.transferSize, z = s.initiatorType;
|
|
12196
|
+
A && $r(z) && (s = s.responseEnd, u += A * (s < c ? 1 : (c - p) / (s - p)));
|
|
12197
12197
|
}
|
|
12198
12198
|
if (--a, e += 8 * (i + u) / (n.duration / 1e3), t++, 10 < t) break;
|
|
12199
12199
|
}
|
|
@@ -12872,7 +12872,7 @@ Error generating stack: ` + a.message + `
|
|
|
12872
12872
|
function ug(t, e, l, a, n, i, u, c, s) {
|
|
12873
12873
|
this.tag = 1, this.containerInfo = t, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = nu(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = nu(0), this.hiddenUpdates = nu(null), this.identifierPrefix = a, this.onUncaughtError = n, this.onCaughtError = i, this.onRecoverableError = u, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = s, this.incompleteTransitions = /* @__PURE__ */ new Map();
|
|
12874
12874
|
}
|
|
12875
|
-
function gd(t, e, l, a, n, i, u, c, s, p, A,
|
|
12875
|
+
function gd(t, e, l, a, n, i, u, c, s, p, A, z) {
|
|
12876
12876
|
return t = new ug(
|
|
12877
12877
|
t,
|
|
12878
12878
|
e,
|
|
@@ -12881,7 +12881,7 @@ Error generating stack: ` + a.message + `
|
|
|
12881
12881
|
s,
|
|
12882
12882
|
p,
|
|
12883
12883
|
A,
|
|
12884
|
-
|
|
12884
|
+
z,
|
|
12885
12885
|
c
|
|
12886
12886
|
), e = 1, i === !0 && (e |= 24), i = he(3, null, null, e), t.current = i, i.stateNode = t, e = Xu(), e.refCount++, t.pooledCache = e, e.refCount++, i.memoizedState = {
|
|
12887
12887
|
element: a,
|
|
@@ -12920,23 +12920,23 @@ Error generating stack: ` + a.message + `
|
|
|
12920
12920
|
}
|
|
12921
12921
|
var qi = !0;
|
|
12922
12922
|
function cg(t, e, l, a) {
|
|
12923
|
-
var n =
|
|
12924
|
-
|
|
12923
|
+
var n = O.T;
|
|
12924
|
+
O.T = null;
|
|
12925
12925
|
var i = j.p;
|
|
12926
12926
|
try {
|
|
12927
12927
|
j.p = 2, df(t, e, l, a);
|
|
12928
12928
|
} finally {
|
|
12929
|
-
j.p = i,
|
|
12929
|
+
j.p = i, O.T = n;
|
|
12930
12930
|
}
|
|
12931
12931
|
}
|
|
12932
12932
|
function fg(t, e, l, a) {
|
|
12933
|
-
var n =
|
|
12934
|
-
|
|
12933
|
+
var n = O.T;
|
|
12934
|
+
O.T = null;
|
|
12935
12935
|
var i = j.p;
|
|
12936
12936
|
try {
|
|
12937
12937
|
j.p = 8, df(t, e, l, a);
|
|
12938
12938
|
} finally {
|
|
12939
|
-
j.p = i,
|
|
12939
|
+
j.p = i, O.T = n;
|
|
12940
12940
|
}
|
|
12941
12941
|
}
|
|
12942
12942
|
function df(t, e, l, a) {
|
|
@@ -13006,12 +13006,12 @@ Error generating stack: ` + a.message + `
|
|
|
13006
13006
|
var Gi = null;
|
|
13007
13007
|
function yf(t) {
|
|
13008
13008
|
if (Gi = null, t = Jl(t), t !== null) {
|
|
13009
|
-
var e =
|
|
13009
|
+
var e = M(t);
|
|
13010
13010
|
if (e === null) t = null;
|
|
13011
13011
|
else {
|
|
13012
13012
|
var l = e.tag;
|
|
13013
13013
|
if (l === 13) {
|
|
13014
|
-
if (t =
|
|
13014
|
+
if (t = B(e), t !== null) return t;
|
|
13015
13015
|
t = null;
|
|
13016
13016
|
} else if (l === 31) {
|
|
13017
13017
|
if (t = U(e), t !== null) return t;
|
|
@@ -13213,10 +13213,10 @@ Error generating stack: ` + a.message + `
|
|
|
13213
13213
|
function Ad(t) {
|
|
13214
13214
|
var e = Jl(t.target);
|
|
13215
13215
|
if (e !== null) {
|
|
13216
|
-
var l =
|
|
13216
|
+
var l = M(e);
|
|
13217
13217
|
if (l !== null) {
|
|
13218
13218
|
if (e = l.tag, e === 13) {
|
|
13219
|
-
if (e =
|
|
13219
|
+
if (e = B(l), e !== null) {
|
|
13220
13220
|
t.blockedOn = e, Hf(t.priority, function() {
|
|
13221
13221
|
xd(l);
|
|
13222
13222
|
});
|
|
@@ -13394,13 +13394,13 @@ Error generating stack: ` + a.message + `
|
|
|
13394
13394
|
var e = t._reactInternals;
|
|
13395
13395
|
if (e === void 0)
|
|
13396
13396
|
throw typeof t.render == "function" ? Error(r(188)) : (t = Object.keys(t).join(","), Error(r(268, t)));
|
|
13397
|
-
return t =
|
|
13397
|
+
return t = Y(e), t = t !== null ? D(t) : null, t = t === null ? null : t.stateNode, t;
|
|
13398
13398
|
};
|
|
13399
13399
|
var dg = {
|
|
13400
13400
|
bundleType: 0,
|
|
13401
13401
|
version: "19.2.4",
|
|
13402
13402
|
rendererPackageName: "react-dom",
|
|
13403
|
-
currentDispatcherRef:
|
|
13403
|
+
currentDispatcherRef: O,
|
|
13404
13404
|
reconcilerVersion: "19.2.4"
|
|
13405
13405
|
};
|
|
13406
13406
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
|
|
@@ -13414,7 +13414,7 @@ Error generating stack: ` + a.message + `
|
|
|
13414
13414
|
}
|
|
13415
13415
|
}
|
|
13416
13416
|
return Cn.createRoot = function(t, e) {
|
|
13417
|
-
if (!
|
|
13417
|
+
if (!C(t)) throw Error(r(299));
|
|
13418
13418
|
var l = !1, a = "", n = ws, i = Ns, u = Hs;
|
|
13419
13419
|
return e != null && (e.unstable_strictMode === !0 && (l = !0), e.identifierPrefix !== void 0 && (a = e.identifierPrefix), e.onUncaughtError !== void 0 && (n = e.onUncaughtError), e.onCaughtError !== void 0 && (i = e.onCaughtError), e.onRecoverableError !== void 0 && (u = e.onRecoverableError)), e = gd(
|
|
13420
13420
|
t,
|
|
@@ -13431,7 +13431,7 @@ Error generating stack: ` + a.message + `
|
|
|
13431
13431
|
Cd
|
|
13432
13432
|
), t[Kl] = e.current, $c(t), new mf(e);
|
|
13433
13433
|
}, Cn.hydrateRoot = function(t, e, l) {
|
|
13434
|
-
if (!
|
|
13434
|
+
if (!C(t)) throw Error(r(299));
|
|
13435
13435
|
var a = !1, n = "", i = ws, u = Ns, c = Hs, s = null;
|
|
13436
13436
|
return l != null && (l.unstable_strictMode === !0 && (a = !0), l.identifierPrefix !== void 0 && (n = l.identifierPrefix), l.onUncaughtError !== void 0 && (i = l.onUncaughtError), l.onCaughtError !== void 0 && (u = l.onCaughtError), l.onRecoverableError !== void 0 && (c = l.onRecoverableError), l.formState !== void 0 && (s = l.formState)), e = gd(
|
|
13437
13437
|
t,
|
|
@@ -13525,26 +13525,26 @@ const kl = /* @__PURE__ */ new Map(), zf = {
|
|
|
13525
13525
|
return console.error("[GlydeChat] Container not found:", h), null;
|
|
13526
13526
|
const T = typeof h == "string" ? h : o.id || `glyde-render-${Date.now()}`;
|
|
13527
13527
|
if (kl.has(T)) {
|
|
13528
|
-
const
|
|
13529
|
-
|
|
13528
|
+
const M = kl.get(T);
|
|
13529
|
+
M && (M.root.unmount(), kl.delete(T));
|
|
13530
13530
|
}
|
|
13531
13531
|
const r = f.theme === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f.theme || "light";
|
|
13532
13532
|
$i(r);
|
|
13533
|
-
const
|
|
13534
|
-
return kl.set(T, { root:
|
|
13533
|
+
const C = qd.createRoot(o);
|
|
13534
|
+
return kl.set(T, { root: C, container: o }), C.render(
|
|
13535
13535
|
Zi.createElement(ki, {
|
|
13536
13536
|
...f,
|
|
13537
13537
|
container: o
|
|
13538
13538
|
})
|
|
13539
13539
|
), console.log("[GlydeChat] Widget rendered in container:", T), {
|
|
13540
13540
|
destroy() {
|
|
13541
|
-
|
|
13541
|
+
C.unmount(), kl.delete(T), o.innerHTML = "", console.log("[GlydeChat] Rendered widget destroyed");
|
|
13542
13542
|
},
|
|
13543
|
-
update(
|
|
13544
|
-
|
|
13543
|
+
update(M) {
|
|
13544
|
+
C.render(
|
|
13545
13545
|
Zi.createElement(ki, {
|
|
13546
13546
|
...f,
|
|
13547
|
-
...
|
|
13547
|
+
...M,
|
|
13548
13548
|
container: o
|
|
13549
13549
|
})
|
|
13550
13550
|
);
|
|
@@ -13564,16 +13564,24 @@ const kl = /* @__PURE__ */ new Map(), zf = {
|
|
|
13564
13564
|
return "__SDK_VERSION__";
|
|
13565
13565
|
}
|
|
13566
13566
|
};
|
|
13567
|
-
async function Kg(h) {
|
|
13567
|
+
async function Kg(h, f) {
|
|
13568
13568
|
if (typeof window > "u" || !window.location || !window.location.search) return null;
|
|
13569
|
-
const
|
|
13570
|
-
if (!
|
|
13571
|
-
const
|
|
13569
|
+
const T = new URLSearchParams(window.location.search).get("t");
|
|
13570
|
+
if (!T) return null;
|
|
13571
|
+
const r = `${h.replace(/\/$/, "")}/api/unity/voice/screen/verify?t=${encodeURIComponent(T)}`, C = {
|
|
13572
|
+
"Content-Type": "application/json",
|
|
13573
|
+
"x-source-domain": "screen.glydetalent.com"
|
|
13574
|
+
};
|
|
13575
|
+
f && (C["x-publishable-key"] = f);
|
|
13572
13576
|
try {
|
|
13573
|
-
const
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
+
const M = await fetch(r, {
|
|
13578
|
+
method: "GET",
|
|
13579
|
+
credentials: "omit",
|
|
13580
|
+
headers: C
|
|
13581
|
+
}), B = await M.json();
|
|
13582
|
+
return M.ok && B?.success && B?.data?.contextType === "screening" && B?.data?.contextId ? { contextType: "screening", contextId: B.data.contextId } : (console.warn("[GlydeChat] Screen token verify failed:", M.status, B), null);
|
|
13583
|
+
} catch (M) {
|
|
13584
|
+
return console.warn("[GlydeChat] Screen token verify request failed:", M), null;
|
|
13577
13585
|
}
|
|
13578
13586
|
}
|
|
13579
13587
|
function Jg() {
|
|
@@ -13590,26 +13598,26 @@ function Jg() {
|
|
|
13590
13598
|
console.log('[GlydeChat] Auto-init disabled via data-auto-init="false"');
|
|
13591
13599
|
return;
|
|
13592
13600
|
}
|
|
13593
|
-
const o = h.getAttribute("data-publishable-key") || void 0, T = h.getAttribute("data-api-key") || void 0, r = h.getAttribute("data-auth-token") || void 0,
|
|
13594
|
-
if (!
|
|
13601
|
+
const o = h.getAttribute("data-publishable-key") || void 0, T = h.getAttribute("data-api-key") || void 0, r = h.getAttribute("data-auth-token") || void 0, C = o || T || r;
|
|
13602
|
+
if (!C && !(f === "true")) {
|
|
13595
13603
|
console.log("[GlydeChat] Auto-init skipped: no authentication data attributes found. Call GlydeChat.init() manually.");
|
|
13596
13604
|
return;
|
|
13597
13605
|
}
|
|
13598
|
-
if (!
|
|
13606
|
+
if (!C) {
|
|
13599
13607
|
console.warn("[GlydeChat] Auto-init skipped: no authentication provided (publishableKey, apiKey, or authToken required)");
|
|
13600
13608
|
return;
|
|
13601
13609
|
}
|
|
13602
|
-
const
|
|
13610
|
+
const B = h.getAttribute("data-unity-url") || "https://api.glydeunity.com", U = h.getAttribute("data-width"), x = h.getAttribute("data-height"), Y = h.getAttribute("data-max-width"), D = h.getAttribute("data-max-height"), N = U || x || Y || D ? {
|
|
13603
13611
|
width: U ? isNaN(Number(U)) ? U : Number(U) : void 0,
|
|
13604
13612
|
height: x ? isNaN(Number(x)) ? x : Number(x) : void 0,
|
|
13605
|
-
maxWidth:
|
|
13613
|
+
maxWidth: Y ? isNaN(Number(Y)) ? Y : Number(Y) : void 0,
|
|
13606
13614
|
maxHeight: D ? isNaN(Number(D)) ? D : Number(D) : void 0
|
|
13607
13615
|
} : void 0, $ = {
|
|
13608
13616
|
publishableKey: o,
|
|
13609
13617
|
apiKey: T,
|
|
13610
13618
|
authToken: r,
|
|
13611
13619
|
contextId: h.getAttribute("data-context-id") || void 0,
|
|
13612
|
-
unityBaseUrl:
|
|
13620
|
+
unityBaseUrl: B,
|
|
13613
13621
|
contextType: h.getAttribute("data-context-type") || "screening",
|
|
13614
13622
|
defaultMode: h.getAttribute("data-default-mode") || "voice",
|
|
13615
13623
|
position: h.getAttribute("data-position") || "bottom-right",
|
|
@@ -13634,7 +13642,7 @@ function Jg() {
|
|
|
13634
13642
|
}), zf.init(k);
|
|
13635
13643
|
}, Z = async () => {
|
|
13636
13644
|
let k = $;
|
|
13637
|
-
const ot = await Kg(
|
|
13645
|
+
const ot = await Kg(B, o);
|
|
13638
13646
|
ot && (k = { ...k, contextType: ot.contextType, contextId: ot.contextId }, console.log("[GlydeChat] Screen token applied: contextType=screening, contextId=", ot.contextId)), I(k);
|
|
13639
13647
|
}, J = () => {
|
|
13640
13648
|
Z();
|