@fiction/sdk 1.0.87 → 1.0.88

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.
Files changed (33) hide show
  1. package/dist/SelfProvider.vue_vue_type_script_setup_true_lang-C0Bri7Md.js +42 -0
  2. package/dist/SelfProvider.vue_vue_type_script_setup_true_lang-C0Bri7Md.js.map +1 -0
  3. package/dist/SelfWidgetInline-BEXm2Zjz.js +35 -0
  4. package/dist/SelfWidgetInline-BEXm2Zjz.js.map +1 -0
  5. package/dist/SelfWidgetModal-DgX1OdRX.js +66 -0
  6. package/dist/SelfWidgetModal-DgX1OdRX.js.map +1 -0
  7. package/dist/SelfWidgetPopup-BVKJE-BW.js +117 -0
  8. package/dist/SelfWidgetPopup-BVKJE-BW.js.map +1 -0
  9. package/dist/{SelfWrap.vue_vue_type_script_setup_true_lang-DcjZRnSG.js → SelfWrap.vue_vue_type_script_setup_true_lang-Dy16trSb.js} +862 -841
  10. package/dist/SelfWrap.vue_vue_type_script_setup_true_lang-Dy16trSb.js.map +1 -0
  11. package/dist/sdk.css +1 -1
  12. package/dist/self/ui/SelfAgent.vue.d.ts +3 -0
  13. package/dist/self/ui/SelfProvider.vue.d.ts +3 -0
  14. package/dist/self/ui/SelfWrap.vue.d.ts +5 -0
  15. package/dist/self/utils.d.ts +16 -0
  16. package/dist/self.js +25 -24
  17. package/dist/widget/FictionWidget.d.ts +5 -0
  18. package/dist/widget/index.d.ts +1 -1
  19. package/dist/widget/ui/SelfWidgetInline.vue.d.ts +3 -5
  20. package/dist/widget/ui/SelfWidgetModal.vue.d.ts +3 -5
  21. package/dist/widget/ui/SelfWidgetPopup.vue.d.ts +3 -5
  22. package/dist/widget.js +45 -37
  23. package/dist/widget.js.map +1 -1
  24. package/package.json +2 -2
  25. package/dist/SelfProvider.vue_vue_type_script_setup_true_lang-BbEo445n.js +0 -38
  26. package/dist/SelfProvider.vue_vue_type_script_setup_true_lang-BbEo445n.js.map +0 -1
  27. package/dist/SelfWidgetInline-DcJoMxUE.js +0 -31
  28. package/dist/SelfWidgetInline-DcJoMxUE.js.map +0 -1
  29. package/dist/SelfWidgetModal-DczbQKQ7.js +0 -62
  30. package/dist/SelfWidgetModal-DczbQKQ7.js.map +0 -1
  31. package/dist/SelfWidgetPopup-BbrEUvSC.js +0 -111
  32. package/dist/SelfWidgetPopup-BbrEUvSC.js.map +0 -1
  33. package/dist/SelfWrap.vue_vue_type_script_setup_true_lang-DcjZRnSG.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  var dt = Object.defineProperty;
2
- var Kt = (e, a, t) => a in e ? dt(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
- var r = (e, a) => dt(e, "name", { value: a, configurable: !0 });
4
- var B = (e, a, t) => Kt(e, typeof a != "symbol" ? a + "" : a, t);
5
- import { defineComponent as O, createElementBlock as b, openBlock as f, createElementVNode as c, normalizeClass as E, ref as N, watch as ae, createBlock as ne, TransitionGroup as Ct, withCtx as ee, renderSlot as $e, computed as L, createCommentVNode as P, onMounted as Ee, Fragment as ke, renderList as Be, withDirectives as St, vModelText as Mt, toDisplayString as U, createVNode as G, withKeys as _t, createTextVNode as ze, unref as K, resolveDynamicComponent as Zt, nextTick as We, Transition as ut, withModifiers as At, normalizeStyle as tt, onUnmounted as It, createPropsRestProxy as Yt, mergeProps as Jt, shallowRef as Qt } from "vue";
2
+ var Kt = (e, n, t) => n in e ? dt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var r = (e, n) => dt(e, "name", { value: n, configurable: !0 });
4
+ var F = (e, n, t) => Kt(e, typeof n != "symbol" ? n + "" : n, t);
5
+ import { defineComponent as H, createElementBlock as b, openBlock as f, createElementVNode as c, normalizeClass as E, ref as R, watch as de, createBlock as ce, TransitionGroup as Ct, withCtx as re, renderSlot as $e, computed as z, createCommentVNode as L, onMounted as Ee, Fragment as ke, renderList as Be, withDirectives as St, vModelText as Mt, toDisplayString as q, createVNode as O, withKeys as Zt, createTextVNode as ze, unref as Y, resolveDynamicComponent as _t, nextTick as We, Transition as ut, withModifiers as At, normalizeStyle as tt, onUnmounted as It, createPropsRestProxy as Yt, mergeProps as Jt, shallowRef as Qt } from "vue";
6
6
  import { S as Ie } from "./socialPlatforms-CuH51wxS.js";
7
7
  import { Conversation as ht } from "@elevenlabs/client";
8
8
  import { objectId as Xt } from "@fiction/utils";
@@ -10,14 +10,14 @@ import { S as $t, c as eo, F as to } from "./sdkClient-DcYRzx1G.js";
10
10
  const oo = { class: "spinner max-w-sm" }, ro = {
11
11
  class: "ring-circular h-full w-full origin-center",
12
12
  viewBox: "25 25 50 50"
13
- }, ot = /* @__PURE__ */ O({
13
+ }, ot = /* @__PURE__ */ H({
14
14
  __name: "FSpinner",
15
15
  props: {
16
16
  width: { type: String, default: "" },
17
17
  colorMode: { type: String, default: "primary" }
18
18
  },
19
19
  setup(e) {
20
- return (a, t) => (f(), b("div", oo, [
20
+ return (n, t) => (f(), b("div", oo, [
21
21
  (f(), b("svg", ro, [
22
22
  c("circle", {
23
23
  class: E([e.colorMode, "ring-path"]),
@@ -189,7 +189,7 @@ const zt = [
189
189
  label: "About",
190
190
  icon: "i-tabler-user-circle"
191
191
  }
192
- ], no = 256, ao = 0.8, io = 50, Os = {
192
+ ], no = 256, ao = 0.8, io = 50, Hs = {
193
193
  bars: 64,
194
194
  barWidth: 3,
195
195
  barSpacing: 1,
@@ -202,7 +202,7 @@ const zt = [
202
202
  // ms to hold peaks
203
203
  PEAK_DECAY_STIFFNESS: 0.12,
204
204
  PEAK_DECAY_DAMPING: 0.15
205
- }, Hs = [
205
+ }, Us = [
206
206
  // Low fundamentals
207
207
  85,
208
208
  100,
@@ -279,21 +279,21 @@ const zt = [
279
279
  ], at = class at extends $t {
280
280
  constructor(t) {
281
281
  super("ClientAudio", t);
282
- B(this, "audioContext");
283
- B(this, "analyser");
284
- B(this, "microphone");
285
- B(this, "audioLevelInterval");
286
- B(this, "stream");
287
- B(this, "visibilityChangeHandler");
288
- B(this, "vadTimeout");
289
- B(this, "lastSpeechTime", 0);
282
+ F(this, "audioContext");
283
+ F(this, "analyser");
284
+ F(this, "microphone");
285
+ F(this, "audioLevelInterval");
286
+ F(this, "stream");
287
+ F(this, "visibilityChangeHandler");
288
+ F(this, "vadTimeout");
289
+ F(this, "lastSpeechTime", 0);
290
290
  // VAD configuration - tuned for voice isolation (ignores background music)
291
- B(this, "VAD_SILENCE_THRESHOLD", 0.03);
291
+ F(this, "VAD_SILENCE_THRESHOLD", 0.03);
292
292
  // 3% audio level = silence (filters out quiet background noise)
293
- B(this, "VAD_SILENCE_DURATION", 1200);
293
+ F(this, "VAD_SILENCE_DURATION", 1200);
294
294
  // 1.2 seconds of silence before considering "stopped speaking"
295
295
  // Public reactive state
296
- B(this, "audioLevels", N({ inputLevel: 0, outputLevel: 0 }));
296
+ F(this, "audioLevels", R({ inputLevel: 0, outputLevel: 0 }));
297
297
  this.setupVisibilityHandler();
298
298
  }
299
299
  /**
@@ -330,14 +330,14 @@ const zt = [
330
330
  noiseSuppression: o = !0,
331
331
  echoCancellation: s = !0,
332
332
  autoGainControl: i = !0,
333
- voiceIsolation: n = !0
333
+ voiceIsolation: a = !0
334
334
  } = t, l = {
335
335
  audio: {
336
336
  noiseSuppression: { ideal: o, exact: o },
337
337
  echoCancellation: { ideal: s, exact: s },
338
338
  autoGainControl: { ideal: i, exact: i },
339
339
  // Chrome-specific voice isolation (degrades gracefully in other browsers)
340
- voiceIsolation: { ideal: n, exact: n },
340
+ voiceIsolation: { ideal: a, exact: a },
341
341
  advanced: [
342
342
  // Prioritize speech frequencies (300-3400 Hz) - Chrome-specific goog* properties
343
343
  // @ts-expect-error - Chrome-specific constraint
@@ -437,12 +437,12 @@ const zt = [
437
437
  } catch (l) {
438
438
  this.logger.error("Error in audio level monitoring:", l), this.stopAudioLevelMonitoring();
439
439
  }
440
- }, "updateLevels"), n = /* @__PURE__ */ r(() => {
440
+ }, "updateLevels"), a = /* @__PURE__ */ r(() => {
441
441
  i().catch((l) => {
442
442
  this.logger.error("Async error in audio level monitoring:", l);
443
443
  });
444
444
  }, "intervalWrapper");
445
- this.audioLevelInterval = window.setInterval(n, io);
445
+ this.audioLevelInterval = window.setInterval(a, io);
446
446
  }
447
447
  /**
448
448
  * Stop monitoring audio levels
@@ -490,7 +490,7 @@ const zt = [
490
490
  }
491
491
  };
492
492
  r(at, "ClientAudio");
493
- let Ze = at;
493
+ let _e = at;
494
494
  function gt(e) {
495
495
  return e ? typeof e == "string" ? e : e.src || "" : "";
496
496
  }
@@ -504,63 +504,68 @@ function qe() {
504
504
  }
505
505
  r(qe, "getFallbackAvatarDataUrl");
506
506
  function Ue(e) {
507
- const a = e.target;
508
- a.dataset.fallbackUsed || (a.dataset.fallbackUsed = "true", a.src = qe());
507
+ const n = e.target;
508
+ n.dataset.fallbackUsed || (n.dataset.fallbackUsed = "true", n.src = qe());
509
509
  }
510
510
  r(Ue, "handleImageError");
511
511
  function lo(e) {
512
- const { message: a, source: t } = e;
513
- if (!a)
512
+ const { message: n, source: t } = e;
513
+ if (!n)
514
514
  return null;
515
515
  const o = {
516
516
  user: "user",
517
517
  ai: "agent",
518
518
  agent: "agent"
519
519
  }, s = o[t] || "agent";
520
- if (typeof a == "string")
521
- return a.trim() ? { text: a.trim(), sender: s } : null;
522
- if (typeof a != "object")
520
+ if (typeof n == "string")
521
+ return n.trim() ? { text: n.trim(), sender: s } : null;
522
+ if (typeof n != "object")
523
523
  return null;
524
524
  const i = [
525
- (n) => {
526
- if (!("source" in n))
525
+ (a) => {
526
+ if (!("source" in a))
527
527
  return null;
528
- const l = o[n.source];
529
- return l ? { text: n.message || "", sender: l } : null;
528
+ const l = o[a.source];
529
+ return l ? { text: a.message || "", sender: l } : null;
530
530
  }
531
531
  ];
532
- for (const n of i) {
533
- const l = n(a);
532
+ for (const a of i) {
533
+ const l = a(n);
534
534
  if (l && l.text.trim())
535
535
  return { text: l.text.trim(), sender: l.sender };
536
536
  }
537
537
  return null;
538
538
  }
539
539
  r(lo, "parseVoiceMessage");
540
- function Us(e) {
541
- const { name: a, context: t } = e;
542
- return t === "welcome" ? `Welcome to Fiction! I'm ${a}, your digital self. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?` : t === "onboarding" ? `Hi! I'm ${a}, your newly created digital self. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?` : `Hello! I'm ${a}. How can I help you today?`;
540
+ function qs(e) {
541
+ const { name: n, context: t } = e;
542
+ return t === "welcome" ? `Welcome to Fiction! I'm ${n}, your digital self. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?` : t === "onboarding" ? `Hi! I'm ${n}, your newly created digital self. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?` : `Hello! I'm ${n}. How can I help you today?`;
543
543
  }
544
- r(Us, "generateFirstMessage");
544
+ r(qs, "generateFirstMessage");
545
+ function co(e) {
546
+ const { template: n, self: t } = e;
547
+ return n.replace(/{name}/g, t.name || "Digital Self").replace(/{title}/g, t.title || "").replace(/{handle}/g, t.handle || "").replace(/{orgName}/g, t.org?.name || "");
548
+ }
549
+ r(co, "parseButtonTemplate");
545
550
  const it = class it extends $t {
546
551
  constructor(t) {
547
552
  super("SelfController", t);
548
- B(this, "conversation");
549
- B(this, "isTextMode", !1);
550
- B(this, "lastMessage", { hash: "", time: 0 });
551
- B(this, "clientAudio");
552
- B(this, "unwatchAudio");
553
- B(this, "isConnecting", !1);
553
+ F(this, "conversation");
554
+ F(this, "isTextMode", !1);
555
+ F(this, "lastMessage", { hash: "", time: 0 });
556
+ F(this, "clientAudio");
557
+ F(this, "unwatchAudio");
558
+ F(this, "isConnecting", !1);
554
559
  // Simple usage tracking
555
- B(this, "sessionId");
556
- B(this, "conversationStartTime");
557
- B(this, "chatCharacterCount", 0);
560
+ F(this, "sessionId");
561
+ F(this, "conversationStartTime");
562
+ F(this, "chatCharacterCount", 0);
558
563
  // Participant IDs for message attribution
559
- B(this, "hostParticipantId");
564
+ F(this, "hostParticipantId");
560
565
  // The digital self
561
- B(this, "visitorParticipantId");
566
+ F(this, "visitorParticipantId");
562
567
  // The user/anon
563
- B(this, "voiceState", N({
568
+ F(this, "voiceState", R({
564
569
  isActive: !1,
565
570
  isConnected: !1,
566
571
  isSpeaking: !1,
@@ -569,17 +574,17 @@ const it = class it extends $t {
569
574
  transcript: "Tap to begin voice conversation",
570
575
  connectionStatus: "disconnected"
571
576
  }));
572
- B(this, "textState", N({
577
+ F(this, "textState", R({
573
578
  isActive: !1,
574
579
  isConnected: !1,
575
580
  isThinking: !1,
576
581
  connectionStatus: "disconnected"
577
582
  }));
578
- B(this, "agentMode", N("self"));
579
- B(this, "sharedMessages", N([]));
583
+ F(this, "agentMode", R("self"));
584
+ F(this, "sharedMessages", R([]));
580
585
  if (!t.self.elevenlabsAgentId || t.self.elevenlabsAgentId.trim() === "")
581
586
  throw new Error(`Agent ID is required for SelfController. Self "${t.self.name}" (${t.self.selfId}) does not have a valid elevenlabsAgentId.`);
582
- this.clientAudio = new Ze(t), this.setupModeWatcher();
587
+ this.clientAudio = new _e(t), this.setupModeWatcher();
583
588
  }
584
589
  get audioLevels() {
585
590
  return this.clientAudio.audioLevels;
@@ -625,8 +630,8 @@ const it = class it extends $t {
625
630
  return null;
626
631
  }
627
632
  isDuplicateMessage(t, o) {
628
- const s = `${o}:${t.toLowerCase().trim()}`, i = Date.now(), n = s === this.lastMessage.hash && i - this.lastMessage.time < 500;
629
- return n || (this.lastMessage = { hash: s, time: i }), n;
633
+ const s = `${o}:${t.toLowerCase().trim()}`, i = Date.now(), a = s === this.lastMessage.hash && i - this.lastMessage.time < 500;
634
+ return a || (this.lastMessage = { hash: s, time: i }), a;
630
635
  }
631
636
  addMessage(t, o) {
632
637
  this.isDuplicateMessage(t, o) || (this.sharedMessages.value = [
@@ -635,7 +640,7 @@ const it = class it extends $t {
635
640
  ]);
636
641
  }
637
642
  getDynamicSettings() {
638
- const { sdk: t } = this.settings, o = t.activeUser.value, s = o?.selves?.find((n) => n.selfId === o.primarySelfId), i = o ? `
643
+ const { sdk: t } = this.settings, o = t.activeUser.value, s = o?.selves?.find((a) => a.selfId === o.primarySelfId), i = o ? `
639
644
 
640
645
  Current User:
641
646
  - Name: ${s?.name || "Anonymous"}
@@ -675,15 +680,15 @@ Current User:
675
680
  }), this.clientAudio.resetAudioLevels());
676
681
  }
677
682
  setupModeWatcher() {
678
- ae(this.agentMode, async (t, o) => {
683
+ de(this.agentMode, async (t, o) => {
679
684
  this.logger.info(`Mode changed from ${o} to ${t}`), this.conversation && (o === "talk" || o === "chat") && await this.endConversation();
680
685
  });
681
686
  }
682
687
  handleMessage(t, o) {
683
688
  const s = lo(t);
684
689
  if (s && (o && s.sender === "user" && this.logger.info("User transcription received", { text: s.text }), this.addMessage(s.text, s.sender), !o && s.sender === "agent" && this.updateState(this.textState, { isThinking: !1 }), this.sessionId && this.hostParticipantId && this.visitorParticipantId)) {
685
- const i = s.sender === "agent" ? this.hostParticipantId : this.visitorParticipantId, { sdk: n } = this.settings;
686
- n.saveMessage({
690
+ const i = s.sender === "agent" ? this.hostParticipantId : this.visitorParticipantId, { sdk: a } = this.settings;
691
+ a.saveMessage({
687
692
  conversationId: this.sessionId,
688
693
  participantId: i,
689
694
  content: s.text,
@@ -737,7 +742,7 @@ Current User:
737
742
  () => {
738
743
  this.logger.info("Client-side VAD: User has stopped speaking"), this.conversation && (this.conversation.sendUserActivity(), this.logger.info("Sent user activity signal to ElevenLabs"));
739
744
  }
740
- ), this.unwatchAudio = ae(this.audioLevels, (i) => {
745
+ ), this.unwatchAudio = de(this.audioLevels, (i) => {
741
746
  t.onAudioLevel?.(i);
742
747
  }, { immediate: !0 }), this.updateState(this.voiceState, {
743
748
  isConnected: !0,
@@ -754,20 +759,20 @@ Current User:
754
759
  this.logger.info("Voice conversation disconnected"), this.conversation = void 0, this.clientAudio.stopAudioLevelMonitoring(), this.endSession().catch((i) => console.error("Failed to end session:", i)), this.resetState(!1), t.onDisconnect?.();
755
760
  }, "onDisconnect"),
756
761
  onError: /* @__PURE__ */ r((i) => {
757
- let n = i;
758
- i.includes("does not exist") ? n = `Agent not found: ${this.settings.self.elevenlabsAgentId}. Check ElevenLabs configuration.` : i.includes("limit") || i.includes("quota") ? n = "ElevenLabs account limit reached. Check your subscription and usage." : (i.includes("unauthorized") || i.includes("invalid")) && (n = "ElevenLabs API authentication failed. Check ELEVENLABS_API_KEY."), this.endSession().catch((l) => console.error("Failed to end session:", l)), this.handleError(new Error(n), !0), t.onError?.(new Error(n));
762
+ let a = i;
763
+ i.includes("does not exist") ? a = `Agent not found: ${this.settings.self.elevenlabsAgentId}. Check ElevenLabs configuration.` : i.includes("limit") || i.includes("quota") ? a = "ElevenLabs account limit reached. Check your subscription and usage." : (i.includes("unauthorized") || i.includes("invalid")) && (a = "ElevenLabs API authentication failed. Check ELEVENLABS_API_KEY."), this.endSession().catch((l) => console.error("Failed to end session:", l)), this.handleError(new Error(a), !0), t.onError?.(new Error(a));
759
764
  }, "onError"),
760
765
  onModeChange: /* @__PURE__ */ r((i) => {
761
- const n = i.mode === "speaking", l = !n, d = n ? "Speaking..." : "Listening...";
766
+ const a = i.mode === "speaking", l = !a, d = a ? "Speaking..." : "Listening...";
762
767
  this.updateState(this.voiceState, {
763
- isSpeaking: n,
768
+ isSpeaking: a,
764
769
  isListening: l,
765
770
  isProcessing: !1,
766
771
  // Removed - ElevenLabs doesn't provide accurate processing state
767
772
  transcript: d
768
773
  }), this.logger.info("Voice mode changed", {
769
774
  mode: i.mode,
770
- isSpeaking: n,
775
+ isSpeaking: a,
771
776
  isListening: l
772
777
  }), t.onModeChange?.(i.mode);
773
778
  }, "onModeChange"),
@@ -776,7 +781,7 @@ Current User:
776
781
  }, "onMessage")
777
782
  });
778
783
  } catch (i) {
779
- throw this.isConnecting = !1, this.endSession().catch((n) => console.error("Failed to end session:", n)), this.handleError(i, !0), i;
784
+ throw this.isConnecting = !1, this.endSession().catch((a) => console.error("Failed to end session:", a)), this.handleError(i, !0), i;
780
785
  }
781
786
  }
782
787
  async startTextConversation(t = {}) {
@@ -849,13 +854,13 @@ Current User:
849
854
  async startSession(t) {
850
855
  const { self: o, sdk: s } = this.settings;
851
856
  if (this.conversationStartTime = /* @__PURE__ */ new Date(), this.chatCharacterCount = 0, o.selfId && o.orgId) {
852
- const i = s.activeUser.value?.userId ? void 0 : s.generateAnonId(), n = await s.startConversation({
857
+ const i = s.activeUser.value?.userId ? void 0 : s.generateAnonId(), a = await s.startConversation({
853
858
  selfId: o.selfId,
854
859
  userId: s.activeUser.value?.userId,
855
860
  anonId: i
856
861
  });
857
- if (n) {
858
- this.sessionId = n.conversationId, this.hostParticipantId = n.hostParticipantId, this.visitorParticipantId = n.visitorParticipantId, this.logger.info("Started conversation session", {
862
+ if (a) {
863
+ this.sessionId = a.conversationId, this.hostParticipantId = a.hostParticipantId, this.visitorParticipantId = a.visitorParticipantId, this.logger.info("Started conversation session", {
859
864
  sessionId: this.sessionId,
860
865
  type: t,
861
866
  userId: s.activeUser.value?.userId,
@@ -884,26 +889,26 @@ Current User:
884
889
  };
885
890
  r(it, "SelfController");
886
891
  let Je = it;
887
- const co = /* @__PURE__ */ O({
892
+ const uo = /* @__PURE__ */ H({
888
893
  __name: "EffectTransitionList",
889
894
  props: {
890
895
  disabled: { type: Boolean, default: !1 },
891
896
  mode: { default: "block" }
892
897
  },
893
898
  setup(e) {
894
- return (a, t) => (f(), ne(Ct, {
899
+ return (n, t) => (f(), ce(Ct, {
895
900
  name: e.disabled ? "" : "nlist"
896
901
  }, {
897
- default: ee(() => [
898
- $e(a.$slots, "default")
902
+ default: re(() => [
903
+ $e(n.$slots, "default")
899
904
  ]),
900
905
  _: 3
901
906
  }, 8, ["name"]));
902
907
  }
903
- }), uo = {
908
+ }), ho = {
904
909
  key: 0,
905
910
  class: "absolute inset-0 flex items-center justify-center"
906
- }, rt = /* @__PURE__ */ O({
911
+ }, rt = /* @__PURE__ */ H({
907
912
  __name: "ElSelfButton",
908
913
  props: {
909
914
  theme: { default: "primary" },
@@ -913,49 +918,49 @@ const co = /* @__PURE__ */ O({
913
918
  iconAfter: {}
914
919
  },
915
920
  setup(e) {
916
- const a = L(() => ({
921
+ const n = z(() => ({
917
922
  primary: "bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",
918
923
  green: "bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",
919
924
  red: "bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",
920
925
  default: "bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"
921
- })[e.theme]), t = L(() => ({
926
+ })[e.theme]), t = z(() => ({
922
927
  sm: "px-4 py-2 text-sm",
923
928
  md: "px-6 py-3 text-base",
924
929
  lg: "px-8 py-4 text-base"
925
- })[e.size]), o = L(() => ({
930
+ })[e.size]), o = z(() => ({
926
931
  sm: "size-4",
927
932
  md: "size-4",
928
933
  lg: "size-5"
929
934
  })[e.size]);
930
935
  return (s, i) => (f(), b("button", {
931
- class: E(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [a.value, t.value]])
936
+ class: E(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [n.value, t.value]])
932
937
  }, [
933
- e.loading ? (f(), b("div", uo, [...i[0] || (i[0] = [
938
+ e.loading ? (f(), b("div", ho, [...i[0] || (i[0] = [
934
939
  c("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
935
- ])])) : P("", !0),
940
+ ])])) : L("", !0),
936
941
  c("span", {
937
942
  class: E(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"])
938
943
  }, [
939
944
  e.icon ? (f(), b("i", {
940
945
  key: 0,
941
946
  class: E([e.icon, o.value])
942
- }, null, 2)) : P("", !0),
947
+ }, null, 2)) : L("", !0),
943
948
  $e(s.$slots, "default"),
944
949
  e.iconAfter ? (f(), b("i", {
945
950
  key: 1,
946
951
  class: E([e.iconAfter, o.value])
947
- }, null, 2)) : P("", !0)
952
+ }, null, 2)) : L("", !0)
948
953
  ], 2)
949
954
  ], 2));
950
955
  }
951
- }), ho = ["value"], fo = /* @__PURE__ */ O({
956
+ }), fo = ["value"], go = /* @__PURE__ */ H({
952
957
  __name: "SelfInputEmail",
953
958
  props: {
954
959
  modelValue: { default: "" }
955
960
  },
956
961
  emits: ["update:modelValue"],
957
- setup(e, { emit: a }) {
958
- const t = a;
962
+ setup(e, { emit: n }) {
963
+ const t = n;
959
964
  return (o, s) => (f(), b("input", {
960
965
  type: "email",
961
966
  autocomplete: "email",
@@ -964,9 +969,9 @@ const co = /* @__PURE__ */ O({
964
969
  class: "w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-all",
965
970
  style: { "font-size": "16px" },
966
971
  onInput: s[0] || (s[0] = (i) => t("update:modelValue", i.target.value))
967
- }, null, 40, ho));
972
+ }, null, 40, fo));
968
973
  }
969
- }), go = { class: "flex gap-1.5 justify-center" }, mo = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], bo = /* @__PURE__ */ O({
974
+ }), mo = { class: "flex gap-1.5 justify-center" }, bo = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], po = /* @__PURE__ */ H({
970
975
  __name: "SelfInputOneTimeCode",
971
976
  props: {
972
977
  modelValue: {},
@@ -974,38 +979,38 @@ const co = /* @__PURE__ */ O({
974
979
  focusFirst: { type: Boolean }
975
980
  },
976
981
  emits: ["update:modelValue", "autoSubmit"],
977
- setup(e, { emit: a }) {
978
- const t = e, o = a, s = N([]), i = N(Array.from({ length: t.length }).fill("")), n = N(!1);
982
+ setup(e, { emit: n }) {
983
+ const t = e, o = n, s = R([]), i = R(Array.from({ length: t.length }).fill("")), a = R(!1);
979
984
  Ee(() => {
980
985
  t.modelValue && (i.value = t.modelValue.split("").slice(0, t.length)), t.focusFirst && !("ontouchstart" in window) && s.value[0]?.focus();
981
- }), ae(() => t.modelValue, (h) => {
986
+ }), de(() => t.modelValue, (h) => {
982
987
  i.value = h ? h.split("").slice(0, t.length) : Array.from({ length: t.length }).fill("");
983
- }), ae(i, () => {
988
+ }), de(i, () => {
984
989
  const h = i.value.filter(Boolean).join("");
985
990
  o("update:modelValue", h), h.length === t.length && o("autoSubmit", h);
986
991
  }, { deep: !0 });
987
992
  function l(h, x) {
988
- x.preventDefault(), n.value = !0;
989
- const z = (x.clipboardData?.getData("text") || "").replace(/\D/g, "");
990
- if (z.length === t.length)
991
- i.value = z.split(""), setTimeout(() => {
992
- s.value[t.length - 1]?.focus(), n.value = !1;
993
+ x.preventDefault(), a.value = !0;
994
+ const $ = (x.clipboardData?.getData("text") || "").replace(/\D/g, "");
995
+ if ($.length === t.length)
996
+ i.value = $.split(""), setTimeout(() => {
997
+ s.value[t.length - 1]?.focus(), a.value = !1;
993
998
  }, 10);
994
999
  else {
995
- const A = [...i.value];
996
- z.split("").slice(0, t.length - h).forEach((y, T) => {
997
- A[h + T] = y;
998
- }), i.value = A;
999
- const M = Math.min(h + z.length, t.length - 1);
1000
+ const M = [...i.value];
1001
+ $.split("").slice(0, t.length - h).forEach((W, Z) => {
1002
+ M[h + Z] = W;
1003
+ }), i.value = M;
1004
+ const j = Math.min(h + $.length, t.length - 1);
1000
1005
  setTimeout(() => {
1001
- s.value[M]?.focus(), n.value = !1;
1006
+ s.value[j]?.focus(), a.value = !1;
1002
1007
  }, 10);
1003
1008
  }
1004
1009
  }
1005
1010
  r(l, "onPaste");
1006
1011
  function d(h, x) {
1007
- const z = x.target.value.slice(-1).replace(/\D/g, "");
1008
- i.value[h] = z, z && h < t.length - 1 && s.value[h + 1]?.focus();
1012
+ const $ = x.target.value.slice(-1).replace(/\D/g, "");
1013
+ i.value[h] = $, $ && h < t.length - 1 && s.value[h + 1]?.focus();
1009
1014
  }
1010
1015
  r(d, "onInput");
1011
1016
  function C(h, x) {
@@ -1013,55 +1018,55 @@ const co = /* @__PURE__ */ O({
1013
1018
  }
1014
1019
  r(C, "onKeydown");
1015
1020
  function m(h) {
1016
- if (s.value[h]?.select(), !n.value && i.value[h])
1021
+ if (s.value[h]?.select(), !a.value && i.value[h])
1017
1022
  for (let x = h; x < t.length; x++)
1018
1023
  i.value[x] = "";
1019
1024
  }
1020
- return r(m, "onFocus"), (h, x) => (f(), b("div", go, [
1021
- (f(!0), b(ke, null, Be(e.length, (z) => St((f(), b("input", {
1022
- key: z,
1025
+ return r(m, "onFocus"), (h, x) => (f(), b("div", mo, [
1026
+ (f(!0), b(ke, null, Be(e.length, ($) => St((f(), b("input", {
1027
+ key: $,
1023
1028
  ref_for: !0,
1024
- ref: /* @__PURE__ */ r((A) => s.value[z - 1] = A, "ref"),
1025
- "onUpdate:modelValue": /* @__PURE__ */ r((A) => i.value[z - 1] = A, "onUpdate:modelValue"),
1029
+ ref: /* @__PURE__ */ r((M) => s.value[$ - 1] = M, "ref"),
1030
+ "onUpdate:modelValue": /* @__PURE__ */ r((M) => i.value[$ - 1] = M, "onUpdate:modelValue"),
1026
1031
  type: "text",
1027
1032
  inputmode: "numeric",
1028
1033
  autocomplete: "one-time-code",
1029
1034
  class: "size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",
1030
1035
  style: { "font-size": "16px" },
1031
1036
  maxlength: "1",
1032
- onInput: /* @__PURE__ */ r((A) => d(z - 1, A), "onInput"),
1033
- onKeydown: /* @__PURE__ */ r((A) => C(z - 1, A), "onKeydown"),
1034
- onPaste: /* @__PURE__ */ r((A) => l(z - 1, A), "onPaste"),
1035
- onFocus: /* @__PURE__ */ r((A) => m(z - 1), "onFocus")
1036
- }, null, 40, mo)), [
1037
- [Mt, i.value[z - 1]]
1037
+ onInput: /* @__PURE__ */ r((M) => d($ - 1, M), "onInput"),
1038
+ onKeydown: /* @__PURE__ */ r((M) => C($ - 1, M), "onKeydown"),
1039
+ onPaste: /* @__PURE__ */ r((M) => l($ - 1, M), "onPaste"),
1040
+ onFocus: /* @__PURE__ */ r((M) => m($ - 1), "onFocus")
1041
+ }, null, 40, bo)), [
1042
+ [Mt, i.value[$ - 1]]
1038
1043
  ])), 128))
1039
1044
  ]));
1040
1045
  }
1041
- }), po = { class: "flex flex-col items-center justify-center h-full p-6" }, vo = { class: "w-full max-w-xs space-y-12" }, xo = {
1046
+ }), vo = { class: "flex flex-col items-center justify-center h-full p-6" }, xo = { class: "w-full max-w-xs space-y-12" }, yo = {
1042
1047
  key: 0,
1043
1048
  class: "text-xs text-theme-400 text-center"
1044
- }, yo = { class: "text-base font-light text-white text-center" }, ko = { class: "space-y-6 relative" }, wo = {
1049
+ }, ko = { class: "text-base font-light text-white text-center" }, wo = { class: "space-y-6 relative" }, Co = {
1045
1050
  key: "email-field",
1046
1051
  class: "w-full"
1047
- }, Co = {
1052
+ }, So = {
1048
1053
  key: "code-field",
1049
1054
  class: "w-full"
1050
- }, mt = /* @__PURE__ */ O({
1055
+ }, mt = /* @__PURE__ */ H({
1051
1056
  __name: "ElAuthGate",
1052
1057
  props: {
1053
1058
  sdk: {}
1054
1059
  },
1055
1060
  setup(e) {
1056
- const a = N({ email: "", code: "" }), t = N("email"), o = N(!1), s = {
1061
+ const n = R({ email: "", code: "" }), t = R("email"), o = R(!1), s = {
1057
1062
  email: {
1058
1063
  title: "Enter Your Email",
1059
- button: { label: "Continue", disabled: /* @__PURE__ */ r(() => !a.value.email || o.value, "disabled") },
1064
+ button: { label: "Continue", disabled: /* @__PURE__ */ r(() => !n.value.email || o.value, "disabled") },
1060
1065
  action: /* @__PURE__ */ r(async () => {
1061
1066
  if (!o.value) {
1062
1067
  o.value = !0;
1063
1068
  try {
1064
- await e.sdk.requestAuthCode({ email: a.value.email }) && (t.value = "code");
1069
+ await e.sdk.requestAuthCode({ email: n.value.email }) && (t.value = "code");
1065
1070
  } finally {
1066
1071
  o.value = !1;
1067
1072
  }
@@ -1070,36 +1075,36 @@ const co = /* @__PURE__ */ O({
1070
1075
  },
1071
1076
  code: {
1072
1077
  title: "Enter Verification Code",
1073
- button: { label: "Verify", disabled: /* @__PURE__ */ r(() => a.value.code.length !== 6 || o.value, "disabled") },
1078
+ button: { label: "Verify", disabled: /* @__PURE__ */ r(() => n.value.code.length !== 6 || o.value, "disabled") },
1074
1079
  action: /* @__PURE__ */ r(async () => {
1075
1080
  if (!o.value) {
1076
1081
  o.value = !0;
1077
1082
  try {
1078
- await e.sdk.loginWithCode({ email: a.value.email, code: a.value.code });
1083
+ await e.sdk.loginWithCode({ email: n.value.email, code: n.value.code });
1079
1084
  } finally {
1080
1085
  o.value = !1;
1081
1086
  }
1082
1087
  }
1083
1088
  }, "action")
1084
1089
  }
1085
- }, i = L(() => s[t.value]);
1086
- return (n, l) => (f(), b("div", po, [
1087
- c("div", vo, [
1088
- e.sdk.error.value ? (f(), b("p", xo, U(e.sdk.error.value), 1)) : P("", !0),
1089
- c("h3", yo, U(i.value.title), 1),
1090
- c("div", ko, [
1091
- G(co, null, {
1092
- default: ee(() => [
1093
- t.value === "email" ? (f(), b("div", wo, [
1094
- G(fo, {
1095
- modelValue: a.value.email,
1096
- "onUpdate:modelValue": l[0] || (l[0] = (d) => a.value.email = d),
1097
- onKeyup: _t(i.value.action, ["enter"])
1090
+ }, i = z(() => s[t.value]);
1091
+ return (a, l) => (f(), b("div", vo, [
1092
+ c("div", xo, [
1093
+ e.sdk.error.value ? (f(), b("p", yo, q(e.sdk.error.value), 1)) : L("", !0),
1094
+ c("h3", ko, q(i.value.title), 1),
1095
+ c("div", wo, [
1096
+ O(uo, null, {
1097
+ default: re(() => [
1098
+ t.value === "email" ? (f(), b("div", Co, [
1099
+ O(go, {
1100
+ modelValue: n.value.email,
1101
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => n.value.email = d),
1102
+ onKeyup: Zt(i.value.action, ["enter"])
1098
1103
  }, null, 8, ["modelValue", "onKeyup"])
1099
- ])) : (f(), b("div", Co, [
1100
- G(bo, {
1101
- modelValue: a.value.code,
1102
- "onUpdate:modelValue": l[1] || (l[1] = (d) => a.value.code = d),
1104
+ ])) : (f(), b("div", So, [
1105
+ O(po, {
1106
+ modelValue: n.value.code,
1107
+ "onUpdate:modelValue": l[1] || (l[1] = (d) => n.value.code = d),
1103
1108
  length: 6,
1104
1109
  "focus-first": !0,
1105
1110
  onAutoSubmit: i.value.action
@@ -1109,7 +1114,7 @@ const co = /* @__PURE__ */ O({
1109
1114
  key: i.value.button.label,
1110
1115
  class: "space-y-4 w-full"
1111
1116
  }, [
1112
- G(rt, {
1117
+ O(rt, {
1113
1118
  theme: "primary",
1114
1119
  size: "md",
1115
1120
  class: "w-full",
@@ -1117,8 +1122,8 @@ const co = /* @__PURE__ */ O({
1117
1122
  disabled: i.value.button.disabled() || e.sdk.loading.value,
1118
1123
  onClick: i.value.action
1119
1124
  }, {
1120
- default: ee(() => [
1121
- ze(U(i.value.button.label), 1)
1125
+ default: re(() => [
1126
+ ze(q(i.value.button.label), 1)
1122
1127
  ]),
1123
1128
  _: 1
1124
1129
  }, 8, ["loading", "disabled", "onClick"]),
@@ -1126,7 +1131,7 @@ const co = /* @__PURE__ */ O({
1126
1131
  key: 0,
1127
1132
  class: "w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",
1128
1133
  onClick: l[2] || (l[2] = (d) => t.value = "email")
1129
- }, " Change Email ")) : P("", !0)
1134
+ }, " Change Email ")) : L("", !0)
1130
1135
  ]))
1131
1136
  ]),
1132
1137
  _: 1
@@ -1135,10 +1140,10 @@ const co = /* @__PURE__ */ O({
1135
1140
  ])
1136
1141
  ]));
1137
1142
  }
1138
- }), So = { class: "relative flex-shrink-0" }, Mo = ["src", "alt"], Ao = {
1143
+ }), Mo = { class: "relative flex-shrink-0" }, Ao = ["src", "alt"], Io = {
1139
1144
  key: 0,
1140
1145
  class: "absolute top-1 right-1"
1141
- }, Io = { class: "min-w-0" }, st = /* @__PURE__ */ O({
1146
+ }, $o = { class: "min-w-0" }, st = /* @__PURE__ */ H({
1142
1147
  __name: "ElModeHeader",
1143
1148
  props: {
1144
1149
  self: {},
@@ -1147,125 +1152,125 @@ const co = /* @__PURE__ */ O({
1147
1152
  layout: { default: "centered" }
1148
1153
  },
1149
1154
  setup(e) {
1150
- function a() {
1155
+ function n() {
1151
1156
  return e.self.avatar?.src ? e.self.avatar.src : qe();
1152
1157
  }
1153
- return r(a, "getAvatarSrc"), (t, o) => (f(), b("div", {
1158
+ return r(n, "getAvatarSrc"), (t, o) => (f(), b("div", {
1154
1159
  class: E(["flex gap-4", [
1155
1160
  e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
1156
1161
  ]])
1157
1162
  }, [
1158
- c("div", So, [
1163
+ c("div", Mo, [
1159
1164
  c("div", {
1160
1165
  class: E(["rounded-full overflow-hidden border-white", e.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
1161
1166
  }, [
1162
1167
  c("img", {
1163
- src: a(),
1168
+ src: n(),
1164
1169
  alt: e.self.name,
1165
1170
  class: "w-full h-full object-cover",
1166
1171
  onError: o[0] || (o[0] = //@ts-ignore
1167
- (...s) => K(Ue) && K(Ue)(...s))
1168
- }, null, 40, Mo)
1172
+ (...s) => Y(Ue) && Y(Ue)(...s))
1173
+ }, null, 40, Ao)
1169
1174
  ], 2),
1170
- e.showOnlineIndicator ? (f(), b("div", Ao, [...o[1] || (o[1] = [
1175
+ e.showOnlineIndicator ? (f(), b("div", Io, [...o[1] || (o[1] = [
1171
1176
  c("div", {
1172
1177
  class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
1173
1178
  style: { "animation-duration": "3s" }
1174
1179
  }, null, -1),
1175
1180
  c("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1)
1176
- ])])) : P("", !0)
1181
+ ])])) : L("", !0)
1177
1182
  ]),
1178
- c("div", Io, [
1183
+ c("div", $o, [
1179
1184
  c("h1", {
1180
1185
  class: E(["font-light text-white mb-1 truncate", [
1181
1186
  e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
1182
1187
  e.layout === "horizontal" ? "text-white/95" : ""
1183
1188
  ]])
1184
- }, U(e.self.name), 3),
1189
+ }, q(e.self.name), 3),
1185
1190
  c("p", {
1186
1191
  class: E(["font-light line-clamp-1", [
1187
1192
  e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
1188
1193
  e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
1189
1194
  ]])
1190
- }, U(e.layout === "horizontal" ? e.self.title || "Digital Self" : e.self.title), 3)
1195
+ }, q(e.layout === "horizontal" ? e.self.title || "Digital Self" : e.self.title), 3)
1191
1196
  ])
1192
1197
  ], 2));
1193
1198
  }
1194
- }), nt = "-", $o = /* @__PURE__ */ r((e) => {
1195
- const a = Eo(e), {
1199
+ }), nt = "-", zo = /* @__PURE__ */ r((e) => {
1200
+ const n = To(e), {
1196
1201
  conflictingClassGroups: t,
1197
1202
  conflictingClassGroupModifiers: o
1198
1203
  } = e;
1199
1204
  return {
1200
- getClassGroupId: /* @__PURE__ */ r((n) => {
1201
- const l = n.split(nt);
1202
- return l[0] === "" && l.length !== 1 && l.shift(), Et(l, a) || zo(n);
1205
+ getClassGroupId: /* @__PURE__ */ r((a) => {
1206
+ const l = a.split(nt);
1207
+ return l[0] === "" && l.length !== 1 && l.shift(), Et(l, n) || Eo(a);
1203
1208
  }, "getClassGroupId"),
1204
- getConflictingClassGroupIds: /* @__PURE__ */ r((n, l) => {
1205
- const d = t[n] || [];
1206
- return l && o[n] ? [...d, ...o[n]] : d;
1209
+ getConflictingClassGroupIds: /* @__PURE__ */ r((a, l) => {
1210
+ const d = t[a] || [];
1211
+ return l && o[a] ? [...d, ...o[a]] : d;
1207
1212
  }, "getConflictingClassGroupIds")
1208
1213
  };
1209
- }, "createClassGroupUtils"), Et = /* @__PURE__ */ r((e, a) => {
1214
+ }, "createClassGroupUtils"), Et = /* @__PURE__ */ r((e, n) => {
1210
1215
  if (e.length === 0)
1211
- return a.classGroupId;
1212
- const t = e[0], o = a.nextPart.get(t), s = o ? Et(e.slice(1), o) : void 0;
1216
+ return n.classGroupId;
1217
+ const t = e[0], o = n.nextPart.get(t), s = o ? Et(e.slice(1), o) : void 0;
1213
1218
  if (s)
1214
1219
  return s;
1215
- if (a.validators.length === 0)
1220
+ if (n.validators.length === 0)
1216
1221
  return;
1217
1222
  const i = e.join(nt);
1218
- return a.validators.find(({
1219
- validator: n
1220
- }) => n(i))?.classGroupId;
1221
- }, "getGroupRecursive"), bt = /^\[(.+)\]$/, zo = /* @__PURE__ */ r((e) => {
1223
+ return n.validators.find(({
1224
+ validator: a
1225
+ }) => a(i))?.classGroupId;
1226
+ }, "getGroupRecursive"), bt = /^\[(.+)\]$/, Eo = /* @__PURE__ */ r((e) => {
1222
1227
  if (bt.test(e)) {
1223
- const a = bt.exec(e)[1], t = a?.substring(0, a.indexOf(":"));
1228
+ const n = bt.exec(e)[1], t = n?.substring(0, n.indexOf(":"));
1224
1229
  if (t)
1225
1230
  return "arbitrary.." + t;
1226
1231
  }
1227
- }, "getGroupIdForArbitraryProperty"), Eo = /* @__PURE__ */ r((e) => {
1232
+ }, "getGroupIdForArbitraryProperty"), To = /* @__PURE__ */ r((e) => {
1228
1233
  const {
1229
- theme: a,
1234
+ theme: n,
1230
1235
  classGroups: t
1231
1236
  } = e, o = {
1232
1237
  nextPart: /* @__PURE__ */ new Map(),
1233
1238
  validators: []
1234
1239
  };
1235
1240
  for (const s in t)
1236
- Qe(t[s], o, s, a);
1241
+ Qe(t[s], o, s, n);
1237
1242
  return o;
1238
- }, "createClassMap"), Qe = /* @__PURE__ */ r((e, a, t, o) => {
1243
+ }, "createClassMap"), Qe = /* @__PURE__ */ r((e, n, t, o) => {
1239
1244
  e.forEach((s) => {
1240
1245
  if (typeof s == "string") {
1241
- const i = s === "" ? a : pt(a, s);
1246
+ const i = s === "" ? n : pt(n, s);
1242
1247
  i.classGroupId = t;
1243
1248
  return;
1244
1249
  }
1245
1250
  if (typeof s == "function") {
1246
- if (To(s)) {
1247
- Qe(s(o), a, t, o);
1251
+ if (Lo(s)) {
1252
+ Qe(s(o), n, t, o);
1248
1253
  return;
1249
1254
  }
1250
- a.validators.push({
1255
+ n.validators.push({
1251
1256
  validator: s,
1252
1257
  classGroupId: t
1253
1258
  });
1254
1259
  return;
1255
1260
  }
1256
- Object.entries(s).forEach(([i, n]) => {
1257
- Qe(n, pt(a, i), t, o);
1261
+ Object.entries(s).forEach(([i, a]) => {
1262
+ Qe(a, pt(n, i), t, o);
1258
1263
  });
1259
1264
  });
1260
- }, "processClassesRecursively"), pt = /* @__PURE__ */ r((e, a) => {
1265
+ }, "processClassesRecursively"), pt = /* @__PURE__ */ r((e, n) => {
1261
1266
  let t = e;
1262
- return a.split(nt).forEach((o) => {
1267
+ return n.split(nt).forEach((o) => {
1263
1268
  t.nextPart.has(o) || t.nextPart.set(o, {
1264
1269
  nextPart: /* @__PURE__ */ new Map(),
1265
1270
  validators: []
1266
1271
  }), t = t.nextPart.get(o);
1267
1272
  }), t;
1268
- }, "getPart"), To = /* @__PURE__ */ r((e) => e.isThemeGetter, "isThemeGetter"), Lo = /* @__PURE__ */ r((e) => {
1273
+ }, "getPart"), Lo = /* @__PURE__ */ r((e) => e.isThemeGetter, "isThemeGetter"), Do = /* @__PURE__ */ r((e) => {
1269
1274
  if (e < 1)
1270
1275
  return {
1271
1276
  get: /* @__PURE__ */ r(() => {
@@ -1273,59 +1278,59 @@ const co = /* @__PURE__ */ O({
1273
1278
  set: /* @__PURE__ */ r(() => {
1274
1279
  }, "set")
1275
1280
  };
1276
- let a = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1277
- const s = /* @__PURE__ */ r((i, n) => {
1278
- t.set(i, n), a++, a > e && (a = 0, o = t, t = /* @__PURE__ */ new Map());
1281
+ let n = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1282
+ const s = /* @__PURE__ */ r((i, a) => {
1283
+ t.set(i, a), n++, n > e && (n = 0, o = t, t = /* @__PURE__ */ new Map());
1279
1284
  }, "update");
1280
1285
  return {
1281
1286
  get(i) {
1282
- let n = t.get(i);
1283
- if (n !== void 0)
1284
- return n;
1285
- if ((n = o.get(i)) !== void 0)
1286
- return s(i, n), n;
1287
+ let a = t.get(i);
1288
+ if (a !== void 0)
1289
+ return a;
1290
+ if ((a = o.get(i)) !== void 0)
1291
+ return s(i, a), a;
1287
1292
  },
1288
- set(i, n) {
1289
- t.has(i) ? t.set(i, n) : s(i, n);
1293
+ set(i, a) {
1294
+ t.has(i) ? t.set(i, a) : s(i, a);
1290
1295
  }
1291
1296
  };
1292
- }, "createLruCache"), Xe = "!", et = ":", Do = et.length, Po = /* @__PURE__ */ r((e) => {
1297
+ }, "createLruCache"), Xe = "!", et = ":", Po = et.length, Vo = /* @__PURE__ */ r((e) => {
1293
1298
  const {
1294
- prefix: a,
1299
+ prefix: n,
1295
1300
  experimentalParseClassName: t
1296
1301
  } = e;
1297
1302
  let o = /* @__PURE__ */ r((s) => {
1298
1303
  const i = [];
1299
- let n = 0, l = 0, d = 0, C;
1300
- for (let A = 0; A < s.length; A++) {
1301
- let M = s[A];
1302
- if (n === 0 && l === 0) {
1303
- if (M === et) {
1304
- i.push(s.slice(d, A)), d = A + Do;
1304
+ let a = 0, l = 0, d = 0, C;
1305
+ for (let M = 0; M < s.length; M++) {
1306
+ let j = s[M];
1307
+ if (a === 0 && l === 0) {
1308
+ if (j === et) {
1309
+ i.push(s.slice(d, M)), d = M + Po;
1305
1310
  continue;
1306
1311
  }
1307
- if (M === "/") {
1308
- C = A;
1312
+ if (j === "/") {
1313
+ C = M;
1309
1314
  continue;
1310
1315
  }
1311
1316
  }
1312
- M === "[" ? n++ : M === "]" ? n-- : M === "(" ? l++ : M === ")" && l--;
1317
+ j === "[" ? a++ : j === "]" ? a-- : j === "(" ? l++ : j === ")" && l--;
1313
1318
  }
1314
- const m = i.length === 0 ? s : s.substring(d), h = Vo(m), x = h !== m, z = C && C > d ? C - d : void 0;
1319
+ const m = i.length === 0 ? s : s.substring(d), h = Fo(m), x = h !== m, $ = C && C > d ? C - d : void 0;
1315
1320
  return {
1316
1321
  modifiers: i,
1317
1322
  hasImportantModifier: x,
1318
1323
  baseClassName: h,
1319
- maybePostfixModifierPosition: z
1324
+ maybePostfixModifierPosition: $
1320
1325
  };
1321
1326
  }, "parseClassName");
1322
- if (a) {
1323
- const s = a + et, i = o;
1324
- o = /* @__PURE__ */ r((n) => n.startsWith(s) ? i(n.substring(s.length)) : {
1327
+ if (n) {
1328
+ const s = n + et, i = o;
1329
+ o = /* @__PURE__ */ r((a) => a.startsWith(s) ? i(a.substring(s.length)) : {
1325
1330
  isExternal: !0,
1326
1331
  modifiers: [],
1327
1332
  hasImportantModifier: !1,
1328
- baseClassName: n,
1333
+ baseClassName: a,
1329
1334
  maybePostfixModifierPosition: void 0
1330
1335
  }, "parseClassName");
1331
1336
  }
@@ -1337,117 +1342,117 @@ const co = /* @__PURE__ */ O({
1337
1342
  }), "parseClassName");
1338
1343
  }
1339
1344
  return o;
1340
- }, "createParseClassName"), Vo = /* @__PURE__ */ r((e) => e.endsWith(Xe) ? e.substring(0, e.length - 1) : e.startsWith(Xe) ? e.substring(1) : e, "stripImportantModifier"), Fo = /* @__PURE__ */ r((e) => {
1341
- const a = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
1345
+ }, "createParseClassName"), Fo = /* @__PURE__ */ r((e) => e.endsWith(Xe) ? e.substring(0, e.length - 1) : e.startsWith(Xe) ? e.substring(1) : e, "stripImportantModifier"), Bo = /* @__PURE__ */ r((e) => {
1346
+ const n = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
1342
1347
  return /* @__PURE__ */ r((o) => {
1343
1348
  if (o.length <= 1)
1344
1349
  return o;
1345
1350
  const s = [];
1346
1351
  let i = [];
1347
- return o.forEach((n) => {
1348
- n[0] === "[" || a[n] ? (s.push(...i.sort(), n), i = []) : i.push(n);
1352
+ return o.forEach((a) => {
1353
+ a[0] === "[" || n[a] ? (s.push(...i.sort(), a), i = []) : i.push(a);
1349
1354
  }), s.push(...i.sort()), s;
1350
1355
  }, "sortModifiers");
1351
- }, "createSortModifiers"), Bo = /* @__PURE__ */ r((e) => ({
1352
- cache: Lo(e.cacheSize),
1353
- parseClassName: Po(e),
1354
- sortModifiers: Fo(e),
1355
- ...$o(e)
1356
- }), "createConfigUtils"), jo = /\s+/, No = /* @__PURE__ */ r((e, a) => {
1356
+ }, "createSortModifiers"), jo = /* @__PURE__ */ r((e) => ({
1357
+ cache: Do(e.cacheSize),
1358
+ parseClassName: Vo(e),
1359
+ sortModifiers: Bo(e),
1360
+ ...zo(e)
1361
+ }), "createConfigUtils"), No = /\s+/, Ro = /* @__PURE__ */ r((e, n) => {
1357
1362
  const {
1358
1363
  parseClassName: t,
1359
1364
  getClassGroupId: o,
1360
1365
  getConflictingClassGroupIds: s,
1361
1366
  sortModifiers: i
1362
- } = a, n = [], l = e.trim().split(jo);
1367
+ } = n, a = [], l = e.trim().split(No);
1363
1368
  let d = "";
1364
1369
  for (let C = l.length - 1; C >= 0; C -= 1) {
1365
1370
  const m = l[C], {
1366
1371
  isExternal: h,
1367
1372
  modifiers: x,
1368
- hasImportantModifier: z,
1369
- baseClassName: A,
1370
- maybePostfixModifierPosition: M
1373
+ hasImportantModifier: $,
1374
+ baseClassName: M,
1375
+ maybePostfixModifierPosition: j
1371
1376
  } = t(m);
1372
1377
  if (h) {
1373
1378
  d = m + (d.length > 0 ? " " + d : d);
1374
1379
  continue;
1375
1380
  }
1376
- let y = !!M, T = o(y ? A.substring(0, M) : A);
1377
- if (!T) {
1378
- if (!y) {
1381
+ let W = !!j, Z = o(W ? M.substring(0, j) : M);
1382
+ if (!Z) {
1383
+ if (!W) {
1379
1384
  d = m + (d.length > 0 ? " " + d : d);
1380
1385
  continue;
1381
1386
  }
1382
- if (T = o(A), !T) {
1387
+ if (Z = o(M), !Z) {
1383
1388
  d = m + (d.length > 0 ? " " + d : d);
1384
1389
  continue;
1385
1390
  }
1386
- y = !1;
1391
+ W = !1;
1387
1392
  }
1388
- const ie = i(x).join(":"), le = z ? ie + Xe : ie, ce = le + T;
1389
- if (n.includes(ce))
1393
+ const B = i(x).join(":"), k = $ ? B + Xe : B, D = k + Z;
1394
+ if (a.includes(D))
1390
1395
  continue;
1391
- n.push(ce);
1392
- const be = s(T, y);
1393
- for (let W = 0; W < be.length; ++W) {
1394
- const te = be[W];
1395
- n.push(le + te);
1396
+ a.push(D);
1397
+ const se = s(Z, W);
1398
+ for (let _ = 0; _ < se.length; ++_) {
1399
+ const ne = se[_];
1400
+ a.push(k + ne);
1396
1401
  }
1397
1402
  d = m + (d.length > 0 ? " " + d : d);
1398
1403
  }
1399
1404
  return d;
1400
1405
  }, "mergeClassList");
1401
- function Ro() {
1402
- let e = 0, a, t, o = "";
1406
+ function Go() {
1407
+ let e = 0, n, t, o = "";
1403
1408
  for (; e < arguments.length; )
1404
- (a = arguments[e++]) && (t = Tt(a)) && (o && (o += " "), o += t);
1409
+ (n = arguments[e++]) && (t = Tt(n)) && (o && (o += " "), o += t);
1405
1410
  return o;
1406
1411
  }
1407
- r(Ro, "twJoin");
1412
+ r(Go, "twJoin");
1408
1413
  const Tt = /* @__PURE__ */ r((e) => {
1409
1414
  if (typeof e == "string")
1410
1415
  return e;
1411
- let a, t = "";
1416
+ let n, t = "";
1412
1417
  for (let o = 0; o < e.length; o++)
1413
- e[o] && (a = Tt(e[o])) && (t && (t += " "), t += a);
1418
+ e[o] && (n = Tt(e[o])) && (t && (t += " "), t += n);
1414
1419
  return t;
1415
1420
  }, "toValue");
1416
- function Go(e, ...a) {
1417
- let t, o, s, i = n;
1418
- function n(d) {
1419
- const C = a.reduce((m, h) => h(m), e());
1420
- return t = Bo(C), o = t.cache.get, s = t.cache.set, i = l, l(d);
1421
+ function Oo(e, ...n) {
1422
+ let t, o, s, i = a;
1423
+ function a(d) {
1424
+ const C = n.reduce((m, h) => h(m), e());
1425
+ return t = jo(C), o = t.cache.get, s = t.cache.set, i = l, l(d);
1421
1426
  }
1422
- r(n, "initTailwindMerge");
1427
+ r(a, "initTailwindMerge");
1423
1428
  function l(d) {
1424
1429
  const C = o(d);
1425
1430
  if (C)
1426
1431
  return C;
1427
- const m = No(d, t);
1432
+ const m = Ro(d, t);
1428
1433
  return s(d, m), m;
1429
1434
  }
1430
1435
  return r(l, "tailwindMerge"), /* @__PURE__ */ r(function() {
1431
- return i(Ro.apply(null, arguments));
1436
+ return i(Go.apply(null, arguments));
1432
1437
  }, "callTailwindMerge");
1433
1438
  }
1434
- r(Go, "createTailwindMerge");
1435
- const H = /* @__PURE__ */ r((e) => {
1436
- const a = /* @__PURE__ */ r((t) => t[e] || [], "themeGetter");
1437
- return a.isThemeGetter = !0, a;
1438
- }, "fromTheme"), Lt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Dt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Oo = /^\d+\/\d+$/, Ho = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Uo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Wo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ko = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = /* @__PURE__ */ r((e) => Oo.test(e), "isFraction"), $ = /* @__PURE__ */ r((e) => !!e && !Number.isNaN(Number(e)), "isNumber"), ye = /* @__PURE__ */ r((e) => !!e && Number.isInteger(Number(e)), "isInteger"), Ke = /* @__PURE__ */ r((e) => e.endsWith("%") && $(e.slice(0, -1)), "isPercent"), me = /* @__PURE__ */ r((e) => Ho.test(e), "isTshirtSize"), _o = /* @__PURE__ */ r(() => !0, "isAny"), Zo = /* @__PURE__ */ r((e) => (
1439
+ r(Oo, "createTailwindMerge");
1440
+ const U = /* @__PURE__ */ r((e) => {
1441
+ const n = /* @__PURE__ */ r((t) => t[e] || [], "themeGetter");
1442
+ return n.isThemeGetter = !0, n;
1443
+ }, "fromTheme"), Lt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Dt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ho = /^\d+\/\d+$/, Uo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Wo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ko = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = /* @__PURE__ */ r((e) => Ho.test(e), "isFraction"), I = /* @__PURE__ */ r((e) => !!e && !Number.isNaN(Number(e)), "isNumber"), ye = /* @__PURE__ */ r((e) => !!e && Number.isInteger(Number(e)), "isInteger"), Ke = /* @__PURE__ */ r((e) => e.endsWith("%") && I(e.slice(0, -1)), "isPercent"), be = /* @__PURE__ */ r((e) => Uo.test(e), "isTshirtSize"), _o = /* @__PURE__ */ r(() => !0, "isAny"), Yo = /* @__PURE__ */ r((e) => (
1439
1444
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1440
1445
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1441
1446
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1442
- Uo.test(e) && !qo.test(e)
1443
- ), "isLengthOnly"), Pt = /* @__PURE__ */ r(() => !1, "isNever"), Yo = /* @__PURE__ */ r((e) => Wo.test(e), "isShadow"), Jo = /* @__PURE__ */ r((e) => Ko.test(e), "isImage"), Qo = /* @__PURE__ */ r((e) => !p(e) && !v(e), "isAnyNonArbitrary"), Xo = /* @__PURE__ */ r((e) => Te(e, Bt, Pt), "isArbitrarySize"), p = /* @__PURE__ */ r((e) => Lt.test(e), "isArbitraryValue"), Ce = /* @__PURE__ */ r((e) => Te(e, jt, Zo), "isArbitraryLength"), _e = /* @__PURE__ */ r((e) => Te(e, sr, $), "isArbitraryNumber"), vt = /* @__PURE__ */ r((e) => Te(e, Vt, Pt), "isArbitraryPosition"), er = /* @__PURE__ */ r((e) => Te(e, Ft, Jo), "isArbitraryImage"), Oe = /* @__PURE__ */ r((e) => Te(e, Nt, Yo), "isArbitraryShadow"), v = /* @__PURE__ */ r((e) => Dt.test(e), "isArbitraryVariable"), Fe = /* @__PURE__ */ r((e) => Le(e, jt), "isArbitraryVariableLength"), tr = /* @__PURE__ */ r((e) => Le(e, nr), "isArbitraryVariableFamilyName"), xt = /* @__PURE__ */ r((e) => Le(e, Vt), "isArbitraryVariablePosition"), or = /* @__PURE__ */ r((e) => Le(e, Bt), "isArbitraryVariableSize"), rr = /* @__PURE__ */ r((e) => Le(e, Ft), "isArbitraryVariableImage"), He = /* @__PURE__ */ r((e) => Le(e, Nt, !0), "isArbitraryVariableShadow"), Te = /* @__PURE__ */ r((e, a, t) => {
1447
+ qo.test(e) && !Wo.test(e)
1448
+ ), "isLengthOnly"), Pt = /* @__PURE__ */ r(() => !1, "isNever"), Jo = /* @__PURE__ */ r((e) => Ko.test(e), "isShadow"), Qo = /* @__PURE__ */ r((e) => Zo.test(e), "isImage"), Xo = /* @__PURE__ */ r((e) => !p(e) && !v(e), "isAnyNonArbitrary"), er = /* @__PURE__ */ r((e) => Te(e, Bt, Pt), "isArbitrarySize"), p = /* @__PURE__ */ r((e) => Lt.test(e), "isArbitraryValue"), Ce = /* @__PURE__ */ r((e) => Te(e, jt, Yo), "isArbitraryLength"), Ze = /* @__PURE__ */ r((e) => Te(e, nr, I), "isArbitraryNumber"), vt = /* @__PURE__ */ r((e) => Te(e, Vt, Pt), "isArbitraryPosition"), tr = /* @__PURE__ */ r((e) => Te(e, Ft, Qo), "isArbitraryImage"), Oe = /* @__PURE__ */ r((e) => Te(e, Nt, Jo), "isArbitraryShadow"), v = /* @__PURE__ */ r((e) => Dt.test(e), "isArbitraryVariable"), Fe = /* @__PURE__ */ r((e) => Le(e, jt), "isArbitraryVariableLength"), or = /* @__PURE__ */ r((e) => Le(e, ar), "isArbitraryVariableFamilyName"), xt = /* @__PURE__ */ r((e) => Le(e, Vt), "isArbitraryVariablePosition"), rr = /* @__PURE__ */ r((e) => Le(e, Bt), "isArbitraryVariableSize"), sr = /* @__PURE__ */ r((e) => Le(e, Ft), "isArbitraryVariableImage"), He = /* @__PURE__ */ r((e) => Le(e, Nt, !0), "isArbitraryVariableShadow"), Te = /* @__PURE__ */ r((e, n, t) => {
1444
1449
  const o = Lt.exec(e);
1445
- return o ? o[1] ? a(o[1]) : t(o[2]) : !1;
1446
- }, "getIsArbitraryValue"), Le = /* @__PURE__ */ r((e, a, t = !1) => {
1450
+ return o ? o[1] ? n(o[1]) : t(o[2]) : !1;
1451
+ }, "getIsArbitraryValue"), Le = /* @__PURE__ */ r((e, n, t = !1) => {
1447
1452
  const o = Dt.exec(e);
1448
- return o ? o[1] ? a(o[1]) : t : !1;
1449
- }, "getIsArbitraryVariable"), Vt = /* @__PURE__ */ r((e) => e === "position" || e === "percentage", "isLabelPosition"), Ft = /* @__PURE__ */ r((e) => e === "image" || e === "url", "isLabelImage"), Bt = /* @__PURE__ */ r((e) => e === "length" || e === "size" || e === "bg-size", "isLabelSize"), jt = /* @__PURE__ */ r((e) => e === "length", "isLabelLength"), sr = /* @__PURE__ */ r((e) => e === "number", "isLabelNumber"), nr = /* @__PURE__ */ r((e) => e === "family-name", "isLabelFamilyName"), Nt = /* @__PURE__ */ r((e) => e === "shadow", "isLabelShadow"), ar = /* @__PURE__ */ r(() => {
1450
- const e = H("color"), a = H("font"), t = H("text"), o = H("font-weight"), s = H("tracking"), i = H("leading"), n = H("breakpoint"), l = H("container"), d = H("spacing"), C = H("radius"), m = H("shadow"), h = H("inset-shadow"), x = H("text-shadow"), z = H("drop-shadow"), A = H("blur"), M = H("perspective"), y = H("aspect"), T = H("ease"), ie = H("animate"), le = /* @__PURE__ */ r(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), ce = /* @__PURE__ */ r(() => [
1453
+ return o ? o[1] ? n(o[1]) : t : !1;
1454
+ }, "getIsArbitraryVariable"), Vt = /* @__PURE__ */ r((e) => e === "position" || e === "percentage", "isLabelPosition"), Ft = /* @__PURE__ */ r((e) => e === "image" || e === "url", "isLabelImage"), Bt = /* @__PURE__ */ r((e) => e === "length" || e === "size" || e === "bg-size", "isLabelSize"), jt = /* @__PURE__ */ r((e) => e === "length", "isLabelLength"), nr = /* @__PURE__ */ r((e) => e === "number", "isLabelNumber"), ar = /* @__PURE__ */ r((e) => e === "family-name", "isLabelFamilyName"), Nt = /* @__PURE__ */ r((e) => e === "shadow", "isLabelShadow"), ir = /* @__PURE__ */ r(() => {
1455
+ const e = U("color"), n = U("font"), t = U("text"), o = U("font-weight"), s = U("tracking"), i = U("leading"), a = U("breakpoint"), l = U("container"), d = U("spacing"), C = U("radius"), m = U("shadow"), h = U("inset-shadow"), x = U("text-shadow"), $ = U("drop-shadow"), M = U("blur"), j = U("perspective"), W = U("aspect"), Z = U("ease"), B = U("animate"), k = /* @__PURE__ */ r(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), D = /* @__PURE__ */ r(() => [
1451
1456
  "center",
1452
1457
  "top",
1453
1458
  "bottom",
@@ -1465,15 +1470,15 @@ const H = /* @__PURE__ */ r((e) => {
1465
1470
  "bottom-left",
1466
1471
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1467
1472
  "left-bottom"
1468
- ], "scalePosition"), be = /* @__PURE__ */ r(() => [...ce(), v, p], "scalePositionWithArbitrary"), W = /* @__PURE__ */ r(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), te = /* @__PURE__ */ r(() => ["auto", "contain", "none"], "scaleOverscroll"), w = /* @__PURE__ */ r(() => [v, p, d], "scaleUnambiguousSpacing"), J = /* @__PURE__ */ r(() => [Ae, "full", "auto", ...w()], "scaleInset"), je = /* @__PURE__ */ r(() => [ye, "none", "subgrid", v, p], "scaleGridTemplateColsRows"), Ne = /* @__PURE__ */ r(() => ["auto", {
1473
+ ], "scalePosition"), se = /* @__PURE__ */ r(() => [...D(), v, p], "scalePositionWithArbitrary"), _ = /* @__PURE__ */ r(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), ne = /* @__PURE__ */ r(() => ["auto", "contain", "none"], "scaleOverscroll"), w = /* @__PURE__ */ r(() => [v, p, d], "scaleUnambiguousSpacing"), ee = /* @__PURE__ */ r(() => [Ae, "full", "auto", ...w()], "scaleInset"), je = /* @__PURE__ */ r(() => [ye, "none", "subgrid", v, p], "scaleGridTemplateColsRows"), Ne = /* @__PURE__ */ r(() => ["auto", {
1469
1474
  span: ["full", ye, v, p]
1470
- }, ye, v, p], "scaleGridColRowStartAndEnd"), Se = /* @__PURE__ */ r(() => [ye, "auto", v, p], "scaleGridColRowStartOrEnd"), Re = /* @__PURE__ */ r(() => ["auto", "min", "max", "fr", v, p], "scaleGridAutoColsRows"), De = /* @__PURE__ */ r(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), oe = /* @__PURE__ */ r(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), Y = /* @__PURE__ */ r(() => ["auto", ...w()], "scaleMargin"), g = /* @__PURE__ */ r(() => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], "scaleSizing"), u = /* @__PURE__ */ r(() => [e, v, p], "scaleColor"), j = /* @__PURE__ */ r(() => [...ce(), xt, vt, {
1475
+ }, ye, v, p], "scaleGridColRowStartAndEnd"), Se = /* @__PURE__ */ r(() => [ye, "auto", v, p], "scaleGridColRowStartOrEnd"), Re = /* @__PURE__ */ r(() => ["auto", "min", "max", "fr", v, p], "scaleGridAutoColsRows"), De = /* @__PURE__ */ r(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), ae = /* @__PURE__ */ r(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), X = /* @__PURE__ */ r(() => ["auto", ...w()], "scaleMargin"), g = /* @__PURE__ */ r(() => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], "scaleSizing"), u = /* @__PURE__ */ r(() => [e, v, p], "scaleColor"), N = /* @__PURE__ */ r(() => [...D(), xt, vt, {
1471
1476
  position: [v, p]
1472
1477
  }], "scaleBgPosition"), S = /* @__PURE__ */ r(() => ["no-repeat", {
1473
1478
  repeat: ["", "x", "y", "space", "round"]
1474
- }], "scaleBgRepeat"), I = /* @__PURE__ */ r(() => ["auto", "cover", "contain", or, Xo, {
1479
+ }], "scaleBgRepeat"), A = /* @__PURE__ */ r(() => ["auto", "cover", "contain", rr, er, {
1475
1480
  size: [v, p]
1476
- }], "scaleBgSize"), q = /* @__PURE__ */ r(() => [Ke, Fe, Ce], "scaleGradientStopPosition"), V = /* @__PURE__ */ r(() => [
1481
+ }], "scaleBgSize"), K = /* @__PURE__ */ r(() => [Ke, Fe, Ce], "scaleGradientStopPosition"), P = /* @__PURE__ */ r(() => [
1477
1482
  // Deprecated since Tailwind CSS v4.0.0
1478
1483
  "",
1479
1484
  "none",
@@ -1481,35 +1486,35 @@ const H = /* @__PURE__ */ r((e) => {
1481
1486
  C,
1482
1487
  v,
1483
1488
  p
1484
- ], "scaleRadius"), F = /* @__PURE__ */ r(() => ["", $, Fe, Ce], "scaleBorderWidth"), _ = /* @__PURE__ */ r(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), R = /* @__PURE__ */ r(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), D = /* @__PURE__ */ r(() => [$, Ke, xt, vt], "scaleMaskImagePosition"), de = /* @__PURE__ */ r(() => [
1489
+ ], "scaleRadius"), V = /* @__PURE__ */ r(() => ["", I, Fe, Ce], "scaleBorderWidth"), J = /* @__PURE__ */ r(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), G = /* @__PURE__ */ r(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), T = /* @__PURE__ */ r(() => [I, Ke, xt, vt], "scaleMaskImagePosition"), ue = /* @__PURE__ */ r(() => [
1485
1490
  // Deprecated since Tailwind CSS v4.0.0
1486
1491
  "",
1487
1492
  "none",
1488
- A,
1493
+ M,
1489
1494
  v,
1490
1495
  p
1491
- ], "scaleBlur"), pe = /* @__PURE__ */ r(() => ["none", $, v, p], "scaleRotate"), Q = /* @__PURE__ */ r(() => ["none", $, v, p], "scaleScale"), ve = /* @__PURE__ */ r(() => [$, v, p], "scaleSkew"), we = /* @__PURE__ */ r(() => [Ae, "full", ...w()], "scaleTranslate");
1496
+ ], "scaleBlur"), pe = /* @__PURE__ */ r(() => ["none", I, v, p], "scaleRotate"), te = /* @__PURE__ */ r(() => ["none", I, v, p], "scaleScale"), ve = /* @__PURE__ */ r(() => [I, v, p], "scaleSkew"), we = /* @__PURE__ */ r(() => [Ae, "full", ...w()], "scaleTranslate");
1492
1497
  return {
1493
1498
  cacheSize: 500,
1494
1499
  theme: {
1495
1500
  animate: ["spin", "ping", "pulse", "bounce"],
1496
1501
  aspect: ["video"],
1497
- blur: [me],
1498
- breakpoint: [me],
1502
+ blur: [be],
1503
+ breakpoint: [be],
1499
1504
  color: [_o],
1500
- container: [me],
1501
- "drop-shadow": [me],
1505
+ container: [be],
1506
+ "drop-shadow": [be],
1502
1507
  ease: ["in", "out", "in-out"],
1503
- font: [Qo],
1508
+ font: [Xo],
1504
1509
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1505
- "inset-shadow": [me],
1510
+ "inset-shadow": [be],
1506
1511
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1507
1512
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1508
- radius: [me],
1509
- shadow: [me],
1510
- spacing: ["px", $],
1511
- text: [me],
1512
- "text-shadow": [me],
1513
+ radius: [be],
1514
+ shadow: [be],
1515
+ spacing: ["px", I],
1516
+ text: [be],
1517
+ "text-shadow": [be],
1513
1518
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
1514
1519
  },
1515
1520
  classGroups: {
@@ -1521,7 +1526,7 @@ const H = /* @__PURE__ */ r((e) => {
1521
1526
  * @see https://tailwindcss.com/docs/aspect-ratio
1522
1527
  */
1523
1528
  aspect: [{
1524
- aspect: ["auto", "square", Ae, p, v, y]
1529
+ aspect: ["auto", "square", Ae, p, v, W]
1525
1530
  }],
1526
1531
  /**
1527
1532
  * Container
@@ -1534,21 +1539,21 @@ const H = /* @__PURE__ */ r((e) => {
1534
1539
  * @see https://tailwindcss.com/docs/columns
1535
1540
  */
1536
1541
  columns: [{
1537
- columns: [$, p, v, l]
1542
+ columns: [I, p, v, l]
1538
1543
  }],
1539
1544
  /**
1540
1545
  * Break After
1541
1546
  * @see https://tailwindcss.com/docs/break-after
1542
1547
  */
1543
1548
  "break-after": [{
1544
- "break-after": le()
1549
+ "break-after": k()
1545
1550
  }],
1546
1551
  /**
1547
1552
  * Break Before
1548
1553
  * @see https://tailwindcss.com/docs/break-before
1549
1554
  */
1550
1555
  "break-before": [{
1551
- "break-before": le()
1556
+ "break-before": k()
1552
1557
  }],
1553
1558
  /**
1554
1559
  * Break Inside
@@ -1612,49 +1617,49 @@ const H = /* @__PURE__ */ r((e) => {
1612
1617
  * @see https://tailwindcss.com/docs/object-position
1613
1618
  */
1614
1619
  "object-position": [{
1615
- object: be()
1620
+ object: se()
1616
1621
  }],
1617
1622
  /**
1618
1623
  * Overflow
1619
1624
  * @see https://tailwindcss.com/docs/overflow
1620
1625
  */
1621
1626
  overflow: [{
1622
- overflow: W()
1627
+ overflow: _()
1623
1628
  }],
1624
1629
  /**
1625
1630
  * Overflow X
1626
1631
  * @see https://tailwindcss.com/docs/overflow
1627
1632
  */
1628
1633
  "overflow-x": [{
1629
- "overflow-x": W()
1634
+ "overflow-x": _()
1630
1635
  }],
1631
1636
  /**
1632
1637
  * Overflow Y
1633
1638
  * @see https://tailwindcss.com/docs/overflow
1634
1639
  */
1635
1640
  "overflow-y": [{
1636
- "overflow-y": W()
1641
+ "overflow-y": _()
1637
1642
  }],
1638
1643
  /**
1639
1644
  * Overscroll Behavior
1640
1645
  * @see https://tailwindcss.com/docs/overscroll-behavior
1641
1646
  */
1642
1647
  overscroll: [{
1643
- overscroll: te()
1648
+ overscroll: ne()
1644
1649
  }],
1645
1650
  /**
1646
1651
  * Overscroll Behavior X
1647
1652
  * @see https://tailwindcss.com/docs/overscroll-behavior
1648
1653
  */
1649
1654
  "overscroll-x": [{
1650
- "overscroll-x": te()
1655
+ "overscroll-x": ne()
1651
1656
  }],
1652
1657
  /**
1653
1658
  * Overscroll Behavior Y
1654
1659
  * @see https://tailwindcss.com/docs/overscroll-behavior
1655
1660
  */
1656
1661
  "overscroll-y": [{
1657
- "overscroll-y": te()
1662
+ "overscroll-y": ne()
1658
1663
  }],
1659
1664
  /**
1660
1665
  * Position
@@ -1666,63 +1671,63 @@ const H = /* @__PURE__ */ r((e) => {
1666
1671
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1667
1672
  */
1668
1673
  inset: [{
1669
- inset: J()
1674
+ inset: ee()
1670
1675
  }],
1671
1676
  /**
1672
1677
  * Right / Left
1673
1678
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1674
1679
  */
1675
1680
  "inset-x": [{
1676
- "inset-x": J()
1681
+ "inset-x": ee()
1677
1682
  }],
1678
1683
  /**
1679
1684
  * Top / Bottom
1680
1685
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1681
1686
  */
1682
1687
  "inset-y": [{
1683
- "inset-y": J()
1688
+ "inset-y": ee()
1684
1689
  }],
1685
1690
  /**
1686
1691
  * Start
1687
1692
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1688
1693
  */
1689
1694
  start: [{
1690
- start: J()
1695
+ start: ee()
1691
1696
  }],
1692
1697
  /**
1693
1698
  * End
1694
1699
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1695
1700
  */
1696
1701
  end: [{
1697
- end: J()
1702
+ end: ee()
1698
1703
  }],
1699
1704
  /**
1700
1705
  * Top
1701
1706
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1702
1707
  */
1703
1708
  top: [{
1704
- top: J()
1709
+ top: ee()
1705
1710
  }],
1706
1711
  /**
1707
1712
  * Right
1708
1713
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1709
1714
  */
1710
1715
  right: [{
1711
- right: J()
1716
+ right: ee()
1712
1717
  }],
1713
1718
  /**
1714
1719
  * Bottom
1715
1720
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1716
1721
  */
1717
1722
  bottom: [{
1718
- bottom: J()
1723
+ bottom: ee()
1719
1724
  }],
1720
1725
  /**
1721
1726
  * Left
1722
1727
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1723
1728
  */
1724
1729
  left: [{
1725
- left: J()
1730
+ left: ee()
1726
1731
  }],
1727
1732
  /**
1728
1733
  * Visibility
@@ -1765,21 +1770,21 @@ const H = /* @__PURE__ */ r((e) => {
1765
1770
  * @see https://tailwindcss.com/docs/flex
1766
1771
  */
1767
1772
  flex: [{
1768
- flex: [$, Ae, "auto", "initial", "none", p]
1773
+ flex: [I, Ae, "auto", "initial", "none", p]
1769
1774
  }],
1770
1775
  /**
1771
1776
  * Flex Grow
1772
1777
  * @see https://tailwindcss.com/docs/flex-grow
1773
1778
  */
1774
1779
  grow: [{
1775
- grow: ["", $, v, p]
1780
+ grow: ["", I, v, p]
1776
1781
  }],
1777
1782
  /**
1778
1783
  * Flex Shrink
1779
1784
  * @see https://tailwindcss.com/docs/flex-shrink
1780
1785
  */
1781
1786
  shrink: [{
1782
- shrink: ["", $, v, p]
1787
+ shrink: ["", I, v, p]
1783
1788
  }],
1784
1789
  /**
1785
1790
  * Order
@@ -1898,14 +1903,14 @@ const H = /* @__PURE__ */ r((e) => {
1898
1903
  * @see https://tailwindcss.com/docs/justify-items
1899
1904
  */
1900
1905
  "justify-items": [{
1901
- "justify-items": [...oe(), "normal"]
1906
+ "justify-items": [...ae(), "normal"]
1902
1907
  }],
1903
1908
  /**
1904
1909
  * Justify Self
1905
1910
  * @see https://tailwindcss.com/docs/justify-self
1906
1911
  */
1907
1912
  "justify-self": [{
1908
- "justify-self": ["auto", ...oe()]
1913
+ "justify-self": ["auto", ...ae()]
1909
1914
  }],
1910
1915
  /**
1911
1916
  * Align Content
@@ -1919,7 +1924,7 @@ const H = /* @__PURE__ */ r((e) => {
1919
1924
  * @see https://tailwindcss.com/docs/align-items
1920
1925
  */
1921
1926
  "align-items": [{
1922
- items: [...oe(), {
1927
+ items: [...ae(), {
1923
1928
  baseline: ["", "last"]
1924
1929
  }]
1925
1930
  }],
@@ -1928,7 +1933,7 @@ const H = /* @__PURE__ */ r((e) => {
1928
1933
  * @see https://tailwindcss.com/docs/align-self
1929
1934
  */
1930
1935
  "align-self": [{
1931
- self: ["auto", ...oe(), {
1936
+ self: ["auto", ...ae(), {
1932
1937
  baseline: ["", "last"]
1933
1938
  }]
1934
1939
  }],
@@ -1944,14 +1949,14 @@ const H = /* @__PURE__ */ r((e) => {
1944
1949
  * @see https://tailwindcss.com/docs/place-items
1945
1950
  */
1946
1951
  "place-items": [{
1947
- "place-items": [...oe(), "baseline"]
1952
+ "place-items": [...ae(), "baseline"]
1948
1953
  }],
1949
1954
  /**
1950
1955
  * Place Self
1951
1956
  * @see https://tailwindcss.com/docs/place-self
1952
1957
  */
1953
1958
  "place-self": [{
1954
- "place-self": ["auto", ...oe()]
1959
+ "place-self": ["auto", ...ae()]
1955
1960
  }],
1956
1961
  // Spacing
1957
1962
  /**
@@ -2022,63 +2027,63 @@ const H = /* @__PURE__ */ r((e) => {
2022
2027
  * @see https://tailwindcss.com/docs/margin
2023
2028
  */
2024
2029
  m: [{
2025
- m: Y()
2030
+ m: X()
2026
2031
  }],
2027
2032
  /**
2028
2033
  * Margin X
2029
2034
  * @see https://tailwindcss.com/docs/margin
2030
2035
  */
2031
2036
  mx: [{
2032
- mx: Y()
2037
+ mx: X()
2033
2038
  }],
2034
2039
  /**
2035
2040
  * Margin Y
2036
2041
  * @see https://tailwindcss.com/docs/margin
2037
2042
  */
2038
2043
  my: [{
2039
- my: Y()
2044
+ my: X()
2040
2045
  }],
2041
2046
  /**
2042
2047
  * Margin Start
2043
2048
  * @see https://tailwindcss.com/docs/margin
2044
2049
  */
2045
2050
  ms: [{
2046
- ms: Y()
2051
+ ms: X()
2047
2052
  }],
2048
2053
  /**
2049
2054
  * Margin End
2050
2055
  * @see https://tailwindcss.com/docs/margin
2051
2056
  */
2052
2057
  me: [{
2053
- me: Y()
2058
+ me: X()
2054
2059
  }],
2055
2060
  /**
2056
2061
  * Margin Top
2057
2062
  * @see https://tailwindcss.com/docs/margin
2058
2063
  */
2059
2064
  mt: [{
2060
- mt: Y()
2065
+ mt: X()
2061
2066
  }],
2062
2067
  /**
2063
2068
  * Margin Right
2064
2069
  * @see https://tailwindcss.com/docs/margin
2065
2070
  */
2066
2071
  mr: [{
2067
- mr: Y()
2072
+ mr: X()
2068
2073
  }],
2069
2074
  /**
2070
2075
  * Margin Bottom
2071
2076
  * @see https://tailwindcss.com/docs/margin
2072
2077
  */
2073
2078
  mb: [{
2074
- mb: Y()
2079
+ mb: X()
2075
2080
  }],
2076
2081
  /**
2077
2082
  * Margin Left
2078
2083
  * @see https://tailwindcss.com/docs/margin
2079
2084
  */
2080
2085
  ml: [{
2081
- ml: Y()
2086
+ ml: X()
2082
2087
  }],
2083
2088
  /**
2084
2089
  * Space Between X
@@ -2147,7 +2152,7 @@ const H = /* @__PURE__ */ r((e) => {
2147
2152
  "prose",
2148
2153
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2149
2154
  {
2150
- screen: [n]
2155
+ screen: [a]
2151
2156
  },
2152
2157
  ...g()
2153
2158
  ]
@@ -2198,7 +2203,7 @@ const H = /* @__PURE__ */ r((e) => {
2198
2203
  * @see https://tailwindcss.com/docs/font-weight
2199
2204
  */
2200
2205
  "font-weight": [{
2201
- font: [o, v, _e]
2206
+ font: [o, v, Ze]
2202
2207
  }],
2203
2208
  /**
2204
2209
  * Font Stretch
@@ -2212,7 +2217,7 @@ const H = /* @__PURE__ */ r((e) => {
2212
2217
  * @see https://tailwindcss.com/docs/font-family
2213
2218
  */
2214
2219
  "font-family": [{
2215
- font: [tr, p, a]
2220
+ font: [or, p, n]
2216
2221
  }],
2217
2222
  /**
2218
2223
  * Font Variant Numeric
@@ -2256,7 +2261,7 @@ const H = /* @__PURE__ */ r((e) => {
2256
2261
  * @see https://tailwindcss.com/docs/line-clamp
2257
2262
  */
2258
2263
  "line-clamp": [{
2259
- "line-clamp": [$, "none", v, _e]
2264
+ "line-clamp": [I, "none", v, Ze]
2260
2265
  }],
2261
2266
  /**
2262
2267
  * Line Height
@@ -2322,14 +2327,14 @@ const H = /* @__PURE__ */ r((e) => {
2322
2327
  * @see https://tailwindcss.com/docs/text-decoration-style
2323
2328
  */
2324
2329
  "text-decoration-style": [{
2325
- decoration: [..._(), "wavy"]
2330
+ decoration: [...J(), "wavy"]
2326
2331
  }],
2327
2332
  /**
2328
2333
  * Text Decoration Thickness
2329
2334
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2330
2335
  */
2331
2336
  "text-decoration-thickness": [{
2332
- decoration: [$, "from-font", "auto", v, Ce]
2337
+ decoration: [I, "from-font", "auto", v, Ce]
2333
2338
  }],
2334
2339
  /**
2335
2340
  * Text Decoration Color
@@ -2343,7 +2348,7 @@ const H = /* @__PURE__ */ r((e) => {
2343
2348
  * @see https://tailwindcss.com/docs/text-underline-offset
2344
2349
  */
2345
2350
  "underline-offset": [{
2346
- "underline-offset": [$, "auto", v, p]
2351
+ "underline-offset": [I, "auto", v, p]
2347
2352
  }],
2348
2353
  /**
2349
2354
  * Text Transform
@@ -2440,7 +2445,7 @@ const H = /* @__PURE__ */ r((e) => {
2440
2445
  * @see https://tailwindcss.com/docs/background-position
2441
2446
  */
2442
2447
  "bg-position": [{
2443
- bg: j()
2448
+ bg: N()
2444
2449
  }],
2445
2450
  /**
2446
2451
  * Background Repeat
@@ -2454,7 +2459,7 @@ const H = /* @__PURE__ */ r((e) => {
2454
2459
  * @see https://tailwindcss.com/docs/background-size
2455
2460
  */
2456
2461
  "bg-size": [{
2457
- bg: I()
2462
+ bg: A()
2458
2463
  }],
2459
2464
  /**
2460
2465
  * Background Image
@@ -2467,7 +2472,7 @@ const H = /* @__PURE__ */ r((e) => {
2467
2472
  }, ye, v, p],
2468
2473
  radial: ["", v, p],
2469
2474
  conic: [ye, v, p]
2470
- }, rr, er]
2475
+ }, sr, tr]
2471
2476
  }],
2472
2477
  /**
2473
2478
  * Background Color
@@ -2481,21 +2486,21 @@ const H = /* @__PURE__ */ r((e) => {
2481
2486
  * @see https://tailwindcss.com/docs/gradient-color-stops
2482
2487
  */
2483
2488
  "gradient-from-pos": [{
2484
- from: q()
2489
+ from: K()
2485
2490
  }],
2486
2491
  /**
2487
2492
  * Gradient Color Stops Via Position
2488
2493
  * @see https://tailwindcss.com/docs/gradient-color-stops
2489
2494
  */
2490
2495
  "gradient-via-pos": [{
2491
- via: q()
2496
+ via: K()
2492
2497
  }],
2493
2498
  /**
2494
2499
  * Gradient Color Stops To Position
2495
2500
  * @see https://tailwindcss.com/docs/gradient-color-stops
2496
2501
  */
2497
2502
  "gradient-to-pos": [{
2498
- to: q()
2503
+ to: K()
2499
2504
  }],
2500
2505
  /**
2501
2506
  * Gradient Color Stops From
@@ -2526,175 +2531,175 @@ const H = /* @__PURE__ */ r((e) => {
2526
2531
  * @see https://tailwindcss.com/docs/border-radius
2527
2532
  */
2528
2533
  rounded: [{
2529
- rounded: V()
2534
+ rounded: P()
2530
2535
  }],
2531
2536
  /**
2532
2537
  * Border Radius Start
2533
2538
  * @see https://tailwindcss.com/docs/border-radius
2534
2539
  */
2535
2540
  "rounded-s": [{
2536
- "rounded-s": V()
2541
+ "rounded-s": P()
2537
2542
  }],
2538
2543
  /**
2539
2544
  * Border Radius End
2540
2545
  * @see https://tailwindcss.com/docs/border-radius
2541
2546
  */
2542
2547
  "rounded-e": [{
2543
- "rounded-e": V()
2548
+ "rounded-e": P()
2544
2549
  }],
2545
2550
  /**
2546
2551
  * Border Radius Top
2547
2552
  * @see https://tailwindcss.com/docs/border-radius
2548
2553
  */
2549
2554
  "rounded-t": [{
2550
- "rounded-t": V()
2555
+ "rounded-t": P()
2551
2556
  }],
2552
2557
  /**
2553
2558
  * Border Radius Right
2554
2559
  * @see https://tailwindcss.com/docs/border-radius
2555
2560
  */
2556
2561
  "rounded-r": [{
2557
- "rounded-r": V()
2562
+ "rounded-r": P()
2558
2563
  }],
2559
2564
  /**
2560
2565
  * Border Radius Bottom
2561
2566
  * @see https://tailwindcss.com/docs/border-radius
2562
2567
  */
2563
2568
  "rounded-b": [{
2564
- "rounded-b": V()
2569
+ "rounded-b": P()
2565
2570
  }],
2566
2571
  /**
2567
2572
  * Border Radius Left
2568
2573
  * @see https://tailwindcss.com/docs/border-radius
2569
2574
  */
2570
2575
  "rounded-l": [{
2571
- "rounded-l": V()
2576
+ "rounded-l": P()
2572
2577
  }],
2573
2578
  /**
2574
2579
  * Border Radius Start Start
2575
2580
  * @see https://tailwindcss.com/docs/border-radius
2576
2581
  */
2577
2582
  "rounded-ss": [{
2578
- "rounded-ss": V()
2583
+ "rounded-ss": P()
2579
2584
  }],
2580
2585
  /**
2581
2586
  * Border Radius Start End
2582
2587
  * @see https://tailwindcss.com/docs/border-radius
2583
2588
  */
2584
2589
  "rounded-se": [{
2585
- "rounded-se": V()
2590
+ "rounded-se": P()
2586
2591
  }],
2587
2592
  /**
2588
2593
  * Border Radius End End
2589
2594
  * @see https://tailwindcss.com/docs/border-radius
2590
2595
  */
2591
2596
  "rounded-ee": [{
2592
- "rounded-ee": V()
2597
+ "rounded-ee": P()
2593
2598
  }],
2594
2599
  /**
2595
2600
  * Border Radius End Start
2596
2601
  * @see https://tailwindcss.com/docs/border-radius
2597
2602
  */
2598
2603
  "rounded-es": [{
2599
- "rounded-es": V()
2604
+ "rounded-es": P()
2600
2605
  }],
2601
2606
  /**
2602
2607
  * Border Radius Top Left
2603
2608
  * @see https://tailwindcss.com/docs/border-radius
2604
2609
  */
2605
2610
  "rounded-tl": [{
2606
- "rounded-tl": V()
2611
+ "rounded-tl": P()
2607
2612
  }],
2608
2613
  /**
2609
2614
  * Border Radius Top Right
2610
2615
  * @see https://tailwindcss.com/docs/border-radius
2611
2616
  */
2612
2617
  "rounded-tr": [{
2613
- "rounded-tr": V()
2618
+ "rounded-tr": P()
2614
2619
  }],
2615
2620
  /**
2616
2621
  * Border Radius Bottom Right
2617
2622
  * @see https://tailwindcss.com/docs/border-radius
2618
2623
  */
2619
2624
  "rounded-br": [{
2620
- "rounded-br": V()
2625
+ "rounded-br": P()
2621
2626
  }],
2622
2627
  /**
2623
2628
  * Border Radius Bottom Left
2624
2629
  * @see https://tailwindcss.com/docs/border-radius
2625
2630
  */
2626
2631
  "rounded-bl": [{
2627
- "rounded-bl": V()
2632
+ "rounded-bl": P()
2628
2633
  }],
2629
2634
  /**
2630
2635
  * Border Width
2631
2636
  * @see https://tailwindcss.com/docs/border-width
2632
2637
  */
2633
2638
  "border-w": [{
2634
- border: F()
2639
+ border: V()
2635
2640
  }],
2636
2641
  /**
2637
2642
  * Border Width X
2638
2643
  * @see https://tailwindcss.com/docs/border-width
2639
2644
  */
2640
2645
  "border-w-x": [{
2641
- "border-x": F()
2646
+ "border-x": V()
2642
2647
  }],
2643
2648
  /**
2644
2649
  * Border Width Y
2645
2650
  * @see https://tailwindcss.com/docs/border-width
2646
2651
  */
2647
2652
  "border-w-y": [{
2648
- "border-y": F()
2653
+ "border-y": V()
2649
2654
  }],
2650
2655
  /**
2651
2656
  * Border Width Start
2652
2657
  * @see https://tailwindcss.com/docs/border-width
2653
2658
  */
2654
2659
  "border-w-s": [{
2655
- "border-s": F()
2660
+ "border-s": V()
2656
2661
  }],
2657
2662
  /**
2658
2663
  * Border Width End
2659
2664
  * @see https://tailwindcss.com/docs/border-width
2660
2665
  */
2661
2666
  "border-w-e": [{
2662
- "border-e": F()
2667
+ "border-e": V()
2663
2668
  }],
2664
2669
  /**
2665
2670
  * Border Width Top
2666
2671
  * @see https://tailwindcss.com/docs/border-width
2667
2672
  */
2668
2673
  "border-w-t": [{
2669
- "border-t": F()
2674
+ "border-t": V()
2670
2675
  }],
2671
2676
  /**
2672
2677
  * Border Width Right
2673
2678
  * @see https://tailwindcss.com/docs/border-width
2674
2679
  */
2675
2680
  "border-w-r": [{
2676
- "border-r": F()
2681
+ "border-r": V()
2677
2682
  }],
2678
2683
  /**
2679
2684
  * Border Width Bottom
2680
2685
  * @see https://tailwindcss.com/docs/border-width
2681
2686
  */
2682
2687
  "border-w-b": [{
2683
- "border-b": F()
2688
+ "border-b": V()
2684
2689
  }],
2685
2690
  /**
2686
2691
  * Border Width Left
2687
2692
  * @see https://tailwindcss.com/docs/border-width
2688
2693
  */
2689
2694
  "border-w-l": [{
2690
- "border-l": F()
2695
+ "border-l": V()
2691
2696
  }],
2692
2697
  /**
2693
2698
  * Divide Width X
2694
2699
  * @see https://tailwindcss.com/docs/border-width#between-children
2695
2700
  */
2696
2701
  "divide-x": [{
2697
- "divide-x": F()
2702
+ "divide-x": V()
2698
2703
  }],
2699
2704
  /**
2700
2705
  * Divide Width X Reverse
@@ -2706,7 +2711,7 @@ const H = /* @__PURE__ */ r((e) => {
2706
2711
  * @see https://tailwindcss.com/docs/border-width#between-children
2707
2712
  */
2708
2713
  "divide-y": [{
2709
- "divide-y": F()
2714
+ "divide-y": V()
2710
2715
  }],
2711
2716
  /**
2712
2717
  * Divide Width Y Reverse
@@ -2718,14 +2723,14 @@ const H = /* @__PURE__ */ r((e) => {
2718
2723
  * @see https://tailwindcss.com/docs/border-style
2719
2724
  */
2720
2725
  "border-style": [{
2721
- border: [..._(), "hidden", "none"]
2726
+ border: [...J(), "hidden", "none"]
2722
2727
  }],
2723
2728
  /**
2724
2729
  * Divide Style
2725
2730
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2726
2731
  */
2727
2732
  "divide-style": [{
2728
- divide: [..._(), "hidden", "none"]
2733
+ divide: [...J(), "hidden", "none"]
2729
2734
  }],
2730
2735
  /**
2731
2736
  * Border Color
@@ -2802,21 +2807,21 @@ const H = /* @__PURE__ */ r((e) => {
2802
2807
  * @see https://tailwindcss.com/docs/outline-style
2803
2808
  */
2804
2809
  "outline-style": [{
2805
- outline: [..._(), "none", "hidden"]
2810
+ outline: [...J(), "none", "hidden"]
2806
2811
  }],
2807
2812
  /**
2808
2813
  * Outline Offset
2809
2814
  * @see https://tailwindcss.com/docs/outline-offset
2810
2815
  */
2811
2816
  "outline-offset": [{
2812
- "outline-offset": [$, v, p]
2817
+ "outline-offset": [I, v, p]
2813
2818
  }],
2814
2819
  /**
2815
2820
  * Outline Width
2816
2821
  * @see https://tailwindcss.com/docs/outline-width
2817
2822
  */
2818
2823
  "outline-w": [{
2819
- outline: ["", $, Fe, Ce]
2824
+ outline: ["", I, Fe, Ce]
2820
2825
  }],
2821
2826
  /**
2822
2827
  * Outline Color
@@ -2868,7 +2873,7 @@ const H = /* @__PURE__ */ r((e) => {
2868
2873
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2869
2874
  */
2870
2875
  "ring-w": [{
2871
- ring: F()
2876
+ ring: V()
2872
2877
  }],
2873
2878
  /**
2874
2879
  * Ring Width Inset
@@ -2891,7 +2896,7 @@ const H = /* @__PURE__ */ r((e) => {
2891
2896
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2892
2897
  */
2893
2898
  "ring-offset-w": [{
2894
- "ring-offset": [$, Ce]
2899
+ "ring-offset": [I, Ce]
2895
2900
  }],
2896
2901
  /**
2897
2902
  * Ring Offset Color
@@ -2907,7 +2912,7 @@ const H = /* @__PURE__ */ r((e) => {
2907
2912
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2908
2913
  */
2909
2914
  "inset-ring-w": [{
2910
- "inset-ring": F()
2915
+ "inset-ring": V()
2911
2916
  }],
2912
2917
  /**
2913
2918
  * Inset Ring Color
@@ -2935,21 +2940,21 @@ const H = /* @__PURE__ */ r((e) => {
2935
2940
  * @see https://tailwindcss.com/docs/opacity
2936
2941
  */
2937
2942
  opacity: [{
2938
- opacity: [$, v, p]
2943
+ opacity: [I, v, p]
2939
2944
  }],
2940
2945
  /**
2941
2946
  * Mix Blend Mode
2942
2947
  * @see https://tailwindcss.com/docs/mix-blend-mode
2943
2948
  */
2944
2949
  "mix-blend": [{
2945
- "mix-blend": [...R(), "plus-darker", "plus-lighter"]
2950
+ "mix-blend": [...G(), "plus-darker", "plus-lighter"]
2946
2951
  }],
2947
2952
  /**
2948
2953
  * Background Blend Mode
2949
2954
  * @see https://tailwindcss.com/docs/background-blend-mode
2950
2955
  */
2951
2956
  "bg-blend": [{
2952
- "bg-blend": R()
2957
+ "bg-blend": G()
2953
2958
  }],
2954
2959
  /**
2955
2960
  * Mask Clip
@@ -2970,13 +2975,13 @@ const H = /* @__PURE__ */ r((e) => {
2970
2975
  * @see https://tailwindcss.com/docs/mask-image
2971
2976
  */
2972
2977
  "mask-image-linear-pos": [{
2973
- "mask-linear": [$]
2978
+ "mask-linear": [I]
2974
2979
  }],
2975
2980
  "mask-image-linear-from-pos": [{
2976
- "mask-linear-from": D()
2981
+ "mask-linear-from": T()
2977
2982
  }],
2978
2983
  "mask-image-linear-to-pos": [{
2979
- "mask-linear-to": D()
2984
+ "mask-linear-to": T()
2980
2985
  }],
2981
2986
  "mask-image-linear-from-color": [{
2982
2987
  "mask-linear-from": u()
@@ -2985,10 +2990,10 @@ const H = /* @__PURE__ */ r((e) => {
2985
2990
  "mask-linear-to": u()
2986
2991
  }],
2987
2992
  "mask-image-t-from-pos": [{
2988
- "mask-t-from": D()
2993
+ "mask-t-from": T()
2989
2994
  }],
2990
2995
  "mask-image-t-to-pos": [{
2991
- "mask-t-to": D()
2996
+ "mask-t-to": T()
2992
2997
  }],
2993
2998
  "mask-image-t-from-color": [{
2994
2999
  "mask-t-from": u()
@@ -2997,10 +3002,10 @@ const H = /* @__PURE__ */ r((e) => {
2997
3002
  "mask-t-to": u()
2998
3003
  }],
2999
3004
  "mask-image-r-from-pos": [{
3000
- "mask-r-from": D()
3005
+ "mask-r-from": T()
3001
3006
  }],
3002
3007
  "mask-image-r-to-pos": [{
3003
- "mask-r-to": D()
3008
+ "mask-r-to": T()
3004
3009
  }],
3005
3010
  "mask-image-r-from-color": [{
3006
3011
  "mask-r-from": u()
@@ -3009,10 +3014,10 @@ const H = /* @__PURE__ */ r((e) => {
3009
3014
  "mask-r-to": u()
3010
3015
  }],
3011
3016
  "mask-image-b-from-pos": [{
3012
- "mask-b-from": D()
3017
+ "mask-b-from": T()
3013
3018
  }],
3014
3019
  "mask-image-b-to-pos": [{
3015
- "mask-b-to": D()
3020
+ "mask-b-to": T()
3016
3021
  }],
3017
3022
  "mask-image-b-from-color": [{
3018
3023
  "mask-b-from": u()
@@ -3021,10 +3026,10 @@ const H = /* @__PURE__ */ r((e) => {
3021
3026
  "mask-b-to": u()
3022
3027
  }],
3023
3028
  "mask-image-l-from-pos": [{
3024
- "mask-l-from": D()
3029
+ "mask-l-from": T()
3025
3030
  }],
3026
3031
  "mask-image-l-to-pos": [{
3027
- "mask-l-to": D()
3032
+ "mask-l-to": T()
3028
3033
  }],
3029
3034
  "mask-image-l-from-color": [{
3030
3035
  "mask-l-from": u()
@@ -3033,10 +3038,10 @@ const H = /* @__PURE__ */ r((e) => {
3033
3038
  "mask-l-to": u()
3034
3039
  }],
3035
3040
  "mask-image-x-from-pos": [{
3036
- "mask-x-from": D()
3041
+ "mask-x-from": T()
3037
3042
  }],
3038
3043
  "mask-image-x-to-pos": [{
3039
- "mask-x-to": D()
3044
+ "mask-x-to": T()
3040
3045
  }],
3041
3046
  "mask-image-x-from-color": [{
3042
3047
  "mask-x-from": u()
@@ -3045,10 +3050,10 @@ const H = /* @__PURE__ */ r((e) => {
3045
3050
  "mask-x-to": u()
3046
3051
  }],
3047
3052
  "mask-image-y-from-pos": [{
3048
- "mask-y-from": D()
3053
+ "mask-y-from": T()
3049
3054
  }],
3050
3055
  "mask-image-y-to-pos": [{
3051
- "mask-y-to": D()
3056
+ "mask-y-to": T()
3052
3057
  }],
3053
3058
  "mask-image-y-from-color": [{
3054
3059
  "mask-y-from": u()
@@ -3060,10 +3065,10 @@ const H = /* @__PURE__ */ r((e) => {
3060
3065
  "mask-radial": [v, p]
3061
3066
  }],
3062
3067
  "mask-image-radial-from-pos": [{
3063
- "mask-radial-from": D()
3068
+ "mask-radial-from": T()
3064
3069
  }],
3065
3070
  "mask-image-radial-to-pos": [{
3066
- "mask-radial-to": D()
3071
+ "mask-radial-to": T()
3067
3072
  }],
3068
3073
  "mask-image-radial-from-color": [{
3069
3074
  "mask-radial-from": u()
@@ -3081,16 +3086,16 @@ const H = /* @__PURE__ */ r((e) => {
3081
3086
  }]
3082
3087
  }],
3083
3088
  "mask-image-radial-pos": [{
3084
- "mask-radial-at": ce()
3089
+ "mask-radial-at": D()
3085
3090
  }],
3086
3091
  "mask-image-conic-pos": [{
3087
- "mask-conic": [$]
3092
+ "mask-conic": [I]
3088
3093
  }],
3089
3094
  "mask-image-conic-from-pos": [{
3090
- "mask-conic-from": D()
3095
+ "mask-conic-from": T()
3091
3096
  }],
3092
3097
  "mask-image-conic-to-pos": [{
3093
- "mask-conic-to": D()
3098
+ "mask-conic-to": T()
3094
3099
  }],
3095
3100
  "mask-image-conic-from-color": [{
3096
3101
  "mask-conic-from": u()
@@ -3117,7 +3122,7 @@ const H = /* @__PURE__ */ r((e) => {
3117
3122
  * @see https://tailwindcss.com/docs/mask-position
3118
3123
  */
3119
3124
  "mask-position": [{
3120
- mask: j()
3125
+ mask: N()
3121
3126
  }],
3122
3127
  /**
3123
3128
  * Mask Repeat
@@ -3131,7 +3136,7 @@ const H = /* @__PURE__ */ r((e) => {
3131
3136
  * @see https://tailwindcss.com/docs/mask-size
3132
3137
  */
3133
3138
  "mask-size": [{
3134
- mask: I()
3139
+ mask: A()
3135
3140
  }],
3136
3141
  /**
3137
3142
  * Mask Type
@@ -3168,21 +3173,21 @@ const H = /* @__PURE__ */ r((e) => {
3168
3173
  * @see https://tailwindcss.com/docs/blur
3169
3174
  */
3170
3175
  blur: [{
3171
- blur: de()
3176
+ blur: ue()
3172
3177
  }],
3173
3178
  /**
3174
3179
  * Brightness
3175
3180
  * @see https://tailwindcss.com/docs/brightness
3176
3181
  */
3177
3182
  brightness: [{
3178
- brightness: [$, v, p]
3183
+ brightness: [I, v, p]
3179
3184
  }],
3180
3185
  /**
3181
3186
  * Contrast
3182
3187
  * @see https://tailwindcss.com/docs/contrast
3183
3188
  */
3184
3189
  contrast: [{
3185
- contrast: [$, v, p]
3190
+ contrast: [I, v, p]
3186
3191
  }],
3187
3192
  /**
3188
3193
  * Drop Shadow
@@ -3193,7 +3198,7 @@ const H = /* @__PURE__ */ r((e) => {
3193
3198
  // Deprecated since Tailwind CSS v4.0.0
3194
3199
  "",
3195
3200
  "none",
3196
- z,
3201
+ $,
3197
3202
  He,
3198
3203
  Oe
3199
3204
  ]
@@ -3210,35 +3215,35 @@ const H = /* @__PURE__ */ r((e) => {
3210
3215
  * @see https://tailwindcss.com/docs/grayscale
3211
3216
  */
3212
3217
  grayscale: [{
3213
- grayscale: ["", $, v, p]
3218
+ grayscale: ["", I, v, p]
3214
3219
  }],
3215
3220
  /**
3216
3221
  * Hue Rotate
3217
3222
  * @see https://tailwindcss.com/docs/hue-rotate
3218
3223
  */
3219
3224
  "hue-rotate": [{
3220
- "hue-rotate": [$, v, p]
3225
+ "hue-rotate": [I, v, p]
3221
3226
  }],
3222
3227
  /**
3223
3228
  * Invert
3224
3229
  * @see https://tailwindcss.com/docs/invert
3225
3230
  */
3226
3231
  invert: [{
3227
- invert: ["", $, v, p]
3232
+ invert: ["", I, v, p]
3228
3233
  }],
3229
3234
  /**
3230
3235
  * Saturate
3231
3236
  * @see https://tailwindcss.com/docs/saturate
3232
3237
  */
3233
3238
  saturate: [{
3234
- saturate: [$, v, p]
3239
+ saturate: [I, v, p]
3235
3240
  }],
3236
3241
  /**
3237
3242
  * Sepia
3238
3243
  * @see https://tailwindcss.com/docs/sepia
3239
3244
  */
3240
3245
  sepia: [{
3241
- sepia: ["", $, v, p]
3246
+ sepia: ["", I, v, p]
3242
3247
  }],
3243
3248
  /**
3244
3249
  * Backdrop Filter
@@ -3258,63 +3263,63 @@ const H = /* @__PURE__ */ r((e) => {
3258
3263
  * @see https://tailwindcss.com/docs/backdrop-blur
3259
3264
  */
3260
3265
  "backdrop-blur": [{
3261
- "backdrop-blur": de()
3266
+ "backdrop-blur": ue()
3262
3267
  }],
3263
3268
  /**
3264
3269
  * Backdrop Brightness
3265
3270
  * @see https://tailwindcss.com/docs/backdrop-brightness
3266
3271
  */
3267
3272
  "backdrop-brightness": [{
3268
- "backdrop-brightness": [$, v, p]
3273
+ "backdrop-brightness": [I, v, p]
3269
3274
  }],
3270
3275
  /**
3271
3276
  * Backdrop Contrast
3272
3277
  * @see https://tailwindcss.com/docs/backdrop-contrast
3273
3278
  */
3274
3279
  "backdrop-contrast": [{
3275
- "backdrop-contrast": [$, v, p]
3280
+ "backdrop-contrast": [I, v, p]
3276
3281
  }],
3277
3282
  /**
3278
3283
  * Backdrop Grayscale
3279
3284
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3280
3285
  */
3281
3286
  "backdrop-grayscale": [{
3282
- "backdrop-grayscale": ["", $, v, p]
3287
+ "backdrop-grayscale": ["", I, v, p]
3283
3288
  }],
3284
3289
  /**
3285
3290
  * Backdrop Hue Rotate
3286
3291
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3287
3292
  */
3288
3293
  "backdrop-hue-rotate": [{
3289
- "backdrop-hue-rotate": [$, v, p]
3294
+ "backdrop-hue-rotate": [I, v, p]
3290
3295
  }],
3291
3296
  /**
3292
3297
  * Backdrop Invert
3293
3298
  * @see https://tailwindcss.com/docs/backdrop-invert
3294
3299
  */
3295
3300
  "backdrop-invert": [{
3296
- "backdrop-invert": ["", $, v, p]
3301
+ "backdrop-invert": ["", I, v, p]
3297
3302
  }],
3298
3303
  /**
3299
3304
  * Backdrop Opacity
3300
3305
  * @see https://tailwindcss.com/docs/backdrop-opacity
3301
3306
  */
3302
3307
  "backdrop-opacity": [{
3303
- "backdrop-opacity": [$, v, p]
3308
+ "backdrop-opacity": [I, v, p]
3304
3309
  }],
3305
3310
  /**
3306
3311
  * Backdrop Saturate
3307
3312
  * @see https://tailwindcss.com/docs/backdrop-saturate
3308
3313
  */
3309
3314
  "backdrop-saturate": [{
3310
- "backdrop-saturate": [$, v, p]
3315
+ "backdrop-saturate": [I, v, p]
3311
3316
  }],
3312
3317
  /**
3313
3318
  * Backdrop Sepia
3314
3319
  * @see https://tailwindcss.com/docs/backdrop-sepia
3315
3320
  */
3316
3321
  "backdrop-sepia": [{
3317
- "backdrop-sepia": ["", $, v, p]
3322
+ "backdrop-sepia": ["", I, v, p]
3318
3323
  }],
3319
3324
  // --------------
3320
3325
  // --- Tables ---
@@ -3383,28 +3388,28 @@ const H = /* @__PURE__ */ r((e) => {
3383
3388
  * @see https://tailwindcss.com/docs/transition-duration
3384
3389
  */
3385
3390
  duration: [{
3386
- duration: [$, "initial", v, p]
3391
+ duration: [I, "initial", v, p]
3387
3392
  }],
3388
3393
  /**
3389
3394
  * Transition Timing Function
3390
3395
  * @see https://tailwindcss.com/docs/transition-timing-function
3391
3396
  */
3392
3397
  ease: [{
3393
- ease: ["linear", "initial", T, v, p]
3398
+ ease: ["linear", "initial", Z, v, p]
3394
3399
  }],
3395
3400
  /**
3396
3401
  * Transition Delay
3397
3402
  * @see https://tailwindcss.com/docs/transition-delay
3398
3403
  */
3399
3404
  delay: [{
3400
- delay: [$, v, p]
3405
+ delay: [I, v, p]
3401
3406
  }],
3402
3407
  /**
3403
3408
  * Animation
3404
3409
  * @see https://tailwindcss.com/docs/animation
3405
3410
  */
3406
3411
  animate: [{
3407
- animate: ["none", ie, v, p]
3412
+ animate: ["none", B, v, p]
3408
3413
  }],
3409
3414
  // ------------------
3410
3415
  // --- Transforms ---
@@ -3421,14 +3426,14 @@ const H = /* @__PURE__ */ r((e) => {
3421
3426
  * @see https://tailwindcss.com/docs/perspective
3422
3427
  */
3423
3428
  perspective: [{
3424
- perspective: [M, v, p]
3429
+ perspective: [j, v, p]
3425
3430
  }],
3426
3431
  /**
3427
3432
  * Perspective Origin
3428
3433
  * @see https://tailwindcss.com/docs/perspective-origin
3429
3434
  */
3430
3435
  "perspective-origin": [{
3431
- "perspective-origin": be()
3436
+ "perspective-origin": se()
3432
3437
  }],
3433
3438
  /**
3434
3439
  * Rotate
@@ -3463,28 +3468,28 @@ const H = /* @__PURE__ */ r((e) => {
3463
3468
  * @see https://tailwindcss.com/docs/scale
3464
3469
  */
3465
3470
  scale: [{
3466
- scale: Q()
3471
+ scale: te()
3467
3472
  }],
3468
3473
  /**
3469
3474
  * Scale X
3470
3475
  * @see https://tailwindcss.com/docs/scale
3471
3476
  */
3472
3477
  "scale-x": [{
3473
- "scale-x": Q()
3478
+ "scale-x": te()
3474
3479
  }],
3475
3480
  /**
3476
3481
  * Scale Y
3477
3482
  * @see https://tailwindcss.com/docs/scale
3478
3483
  */
3479
3484
  "scale-y": [{
3480
- "scale-y": Q()
3485
+ "scale-y": te()
3481
3486
  }],
3482
3487
  /**
3483
3488
  * Scale Z
3484
3489
  * @see https://tailwindcss.com/docs/scale
3485
3490
  */
3486
3491
  "scale-z": [{
3487
- "scale-z": Q()
3492
+ "scale-z": te()
3488
3493
  }],
3489
3494
  /**
3490
3495
  * Scale 3D
@@ -3524,7 +3529,7 @@ const H = /* @__PURE__ */ r((e) => {
3524
3529
  * @see https://tailwindcss.com/docs/transform-origin
3525
3530
  */
3526
3531
  "transform-origin": [{
3527
- origin: be()
3532
+ origin: se()
3528
3533
  }],
3529
3534
  /**
3530
3535
  * Transform Style
@@ -3841,7 +3846,7 @@ const H = /* @__PURE__ */ r((e) => {
3841
3846
  * @see https://tailwindcss.com/docs/stroke-width
3842
3847
  */
3843
3848
  "stroke-w": [{
3844
- stroke: [$, Fe, Ce, _e]
3849
+ stroke: [I, Fe, Ce, Ze]
3845
3850
  }],
3846
3851
  /**
3847
3852
  * Stroke
@@ -3916,7 +3921,7 @@ const H = /* @__PURE__ */ r((e) => {
3916
3921
  },
3917
3922
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3918
3923
  };
3919
- }, "getDefaultConfig"), ir = /* @__PURE__ */ Go(ar), yt = {
3924
+ }, "getDefaultConfig"), lr = /* @__PURE__ */ Oo(ir), yt = {
3920
3925
  default: {
3921
3926
  solid: {
3922
3927
  base: "bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",
@@ -4202,10 +4207,10 @@ const H = /* @__PURE__ */ r((e) => {
4202
4207
  icon: "text-red-600 dark:text-red-400"
4203
4208
  }
4204
4209
  }
4205
- }, lr = {
4210
+ }, cr = {
4206
4211
  key: 0,
4207
4212
  class: "absolute inset-0 flex items-center justify-center"
4208
- }, kt = /* @__PURE__ */ O({
4213
+ }, kt = /* @__PURE__ */ H({
4209
4214
  __name: "FButton",
4210
4215
  props: {
4211
4216
  theme: { default: "default" },
@@ -4220,20 +4225,20 @@ const H = /* @__PURE__ */ r((e) => {
4220
4225
  class: { default: "" }
4221
4226
  },
4222
4227
  setup(e) {
4223
- const a = L(() => ({
4228
+ const n = z(() => ({
4224
4229
  icon: typeof e.icon == "string" ? e.icon : e.icon?.className,
4225
4230
  iconAfter: typeof e.iconAfter == "string" ? e.iconAfter : e.iconAfter?.className
4226
- })), t = L(() => e.href ? "a" : e.tag), o = L(() => ({
4231
+ })), t = z(() => e.href ? "a" : e.tag), o = z(() => ({
4227
4232
  xxs: "size-2.5",
4228
4233
  xs: "size-3",
4229
4234
  sm: "size-3.5",
4230
4235
  md: "size-4",
4231
4236
  lg: "size-5",
4232
4237
  xl: "size-6"
4233
- })[e.size]), s = L(() => {
4238
+ })[e.size]), s = z(() => {
4234
4239
  const l = yt[e.theme]?.[e.design] || yt.default[e.design];
4235
4240
  return l || console.warn(`FButton: No theme configuration found for theme "${e.theme}" and design "${e.design}". Falling back to default solid theme.`), l || { base: "", border: "", hover: "", icon: "" };
4236
- }), i = L(() => {
4241
+ }), i = z(() => {
4237
4242
  const l = "relative inline-flex items-center justify-center gap-2 font-medium transition-all duration-200 focus:outline-none active:opacity-80 cursor-pointer", d = {
4238
4243
  xxs: "px-2 py-0.5 text-[10px]",
4239
4244
  xs: "px-3 py-1 text-[11px]",
@@ -4254,73 +4259,73 @@ const H = /* @__PURE__ */ r((e) => {
4254
4259
  `border ${h.border}`,
4255
4260
  h.hover
4256
4261
  ].filter(Boolean).join(" ");
4257
- return ir(x, e.class);
4258
- }), n = L(() => ({
4262
+ return lr(x, e.class);
4263
+ }), a = z(() => ({
4259
4264
  design: s.value.icon || ""
4260
4265
  }));
4261
- return (l, d) => (f(), ne(Zt(t.value), {
4266
+ return (l, d) => (f(), ce(_t(t.value), {
4262
4267
  href: e.href,
4263
4268
  class: E(i.value)
4264
4269
  }, {
4265
- default: ee(() => [
4266
- e.loading ? (f(), b("div", lr, [
4267
- G(ot, {
4270
+ default: re(() => [
4271
+ e.loading ? (f(), b("div", cr, [
4272
+ O(ot, {
4268
4273
  class: E(o.value)
4269
4274
  }, null, 8, ["class"])
4270
- ])) : P("", !0),
4275
+ ])) : L("", !0),
4271
4276
  c("span", {
4272
4277
  class: E(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", e.loading ? "opacity-0" : "opacity-100"])
4273
4278
  }, [
4274
- a.value.icon ? (f(), b("span", {
4279
+ n.value.icon ? (f(), b("span", {
4275
4280
  key: 0,
4276
- class: E(["flex items-center size-[1.1em] mt-[-.07em]", [a.value.icon, n.value]])
4277
- }, null, 2)) : P("", !0),
4281
+ class: E(["flex items-center size-[1.1em] mt-[-.07em]", [n.value.icon, a.value]])
4282
+ }, null, 2)) : L("", !0),
4278
4283
  $e(l.$slots, "default"),
4279
- a.value.iconAfter ? (f(), b("span", {
4284
+ n.value.iconAfter ? (f(), b("span", {
4280
4285
  key: 1,
4281
- class: E(["flex items-center size-[1.1em] mt-[-.07em]", [a.value.iconAfter, n.value]])
4282
- }, null, 2)) : P("", !0)
4286
+ class: E(["flex items-center size-[1.1em] mt-[-.07em]", [n.value.iconAfter, a.value]])
4287
+ }, null, 2)) : L("", !0)
4283
4288
  ], 2)
4284
4289
  ]),
4285
4290
  _: 3
4286
4291
  }, 8, ["href", "class"]));
4287
4292
  }
4288
- }), cr = { class: "flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative" }, dr = { class: "flex-1 space-y-6 pb-12" }, ur = {
4293
+ }), dr = { class: "flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative" }, ur = { class: "flex-1 space-y-6 pb-12" }, hr = {
4289
4294
  key: 0,
4290
4295
  class: "text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"
4291
- }, hr = { class: "font-light text-white/80 italic leading-relaxed font-serif" }, fr = ["innerHTML"], gr = {
4296
+ }, fr = { class: "font-light text-white/80 italic leading-relaxed font-serif" }, gr = ["innerHTML"], mr = {
4292
4297
  key: 1,
4293
4298
  class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
4294
- }, mr = { class: "text-sm text-white/70 leading-relaxed" }, br = {
4299
+ }, br = { class: "text-sm text-white/70 leading-relaxed" }, pr = {
4295
4300
  key: 2,
4296
4301
  class: "space-y-3"
4297
- }, pr = {
4302
+ }, vr = {
4298
4303
  key: 3,
4299
4304
  class: "space-y-3"
4300
- }, vr = { class: "grid grid-cols-2 gap-3" }, xr = /* @__PURE__ */ O({
4305
+ }, xr = { class: "grid grid-cols-2 gap-3" }, yr = /* @__PURE__ */ H({
4301
4306
  __name: "ElSelfAbout",
4302
4307
  props: {
4303
4308
  self: {}
4304
4309
  },
4305
4310
  setup(e) {
4306
- return (a, t) => (f(), b("div", cr, [
4307
- G(st, { self: e.self }, null, 8, ["self"]),
4308
- c("div", dr, [
4309
- e.self.summary ? (f(), b("div", ur, [
4311
+ return (n, t) => (f(), b("div", dr, [
4312
+ O(st, { self: e.self }, null, 8, ["self"]),
4313
+ c("div", ur, [
4314
+ e.self.summary ? (f(), b("div", hr, [
4310
4315
  t[0] || (t[0] = c("h3", { class: "font-medium text-white/50" }, " About ", -1)),
4311
- c("p", hr, ' "' + U(e.self.headline) + '" ', 1),
4316
+ c("p", fr, ' "' + q(e.self.headline) + '" ', 1),
4312
4317
  c("div", {
4313
4318
  class: "text-white/70 leading-relaxed",
4314
4319
  innerHTML: e.self.summary
4315
- }, null, 8, fr)
4316
- ])) : P("", !0),
4317
- e.self.entityType === "company" ? (f(), b("div", gr, [
4320
+ }, null, 8, gr)
4321
+ ])) : L("", !0),
4322
+ e.self.entityType === "company" ? (f(), b("div", mr, [
4318
4323
  t[1] || (t[1] = c("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
4319
- c("p", mr, " This is a company digital self representing " + U(e.self.name) + ". ", 1)
4320
- ])) : P("", !0),
4321
- e.self.email ? (f(), b("div", br, [
4324
+ c("p", br, " This is a company digital self representing " + q(e.self.name) + ". ", 1)
4325
+ ])) : L("", !0),
4326
+ e.self.email ? (f(), b("div", pr, [
4322
4327
  t[3] || (t[3] = c("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
4323
- G(kt, {
4328
+ O(kt, {
4324
4329
  design: "ghost",
4325
4330
  theme: "default",
4326
4331
  size: "sm",
@@ -4329,55 +4334,55 @@ const H = /* @__PURE__ */ r((e) => {
4329
4334
  href: `mailto:${e.self.email}`,
4330
4335
  target: "_blank"
4331
4336
  }, {
4332
- default: ee(() => [...t[2] || (t[2] = [
4337
+ default: re(() => [...t[2] || (t[2] = [
4333
4338
  ze(" Email ", -1)
4334
4339
  ])]),
4335
4340
  _: 1
4336
4341
  }, 8, ["href"])
4337
- ])) : P("", !0),
4338
- e.self.accounts && e.self.accounts.length > 0 ? (f(), b("div", pr, [
4342
+ ])) : L("", !0),
4343
+ e.self.accounts && e.self.accounts.length > 0 ? (f(), b("div", vr, [
4339
4344
  t[4] || (t[4] = c("h3", { class: "text-sm font-medium text-white/90" }, " Links ", -1)),
4340
- c("div", vr, [
4341
- (f(!0), b(ke, null, Be(e.self.accounts, (o) => (f(), ne(kt, {
4345
+ c("div", xr, [
4346
+ (f(!0), b(ke, null, Be(e.self.accounts, (o) => (f(), ce(kt, {
4342
4347
  key: `${o.platform}-${o.handle}`,
4343
4348
  design: "ghost",
4344
4349
  theme: "default",
4345
4350
  size: "md",
4346
4351
  class: "bg-white/10 hover:bg-white/20 border border-white/20 text-white/80",
4347
- icon: K(Ie)[o.platform].icon,
4348
- href: K(Ie)[o.platform].getUrl(o.handle),
4352
+ icon: Y(Ie)[o.platform].icon,
4353
+ href: Y(Ie)[o.platform].getUrl(o.handle),
4349
4354
  target: "_blank"
4350
4355
  }, {
4351
- default: ee(() => [
4352
- ze(U(K(Ie)[o.platform].label), 1)
4356
+ default: re(() => [
4357
+ ze(q(Y(Ie)[o.platform].label), 1)
4353
4358
  ]),
4354
4359
  _: 2
4355
4360
  }, 1032, ["icon", "href"]))), 128))
4356
4361
  ])
4357
- ])) : P("", !0)
4362
+ ])) : L("", !0)
4358
4363
  ])
4359
4364
  ]));
4360
4365
  }
4361
- }), yr = { class: "flex flex-col h-full relative" }, kr = { class: "pb-4" }, wr = {
4366
+ }), kr = { class: "flex flex-col h-full relative" }, wr = { class: "pb-4" }, Cr = {
4362
4367
  key: 0,
4363
4368
  class: "text-theme-600 py-16 flex flex-col items-center justify-center gap-2 text-sm"
4364
- }, Cr = {
4369
+ }, Sr = {
4365
4370
  key: 0,
4366
4371
  class: "flex-shrink-0 size-8"
4367
- }, Sr = ["src", "alt"], Mr = { class: "max-w-[70%]" }, Ar = { class: "text-sm leading-[1.5] whitespace-pre-wrap break-words" }, Ir = {
4372
+ }, Mr = ["src", "alt"], Ar = { class: "max-w-[70%]" }, Ir = { class: "text-sm leading-[1.5] whitespace-pre-wrap break-words" }, $r = {
4368
4373
  key: 0,
4369
4374
  class: "flex gap-2 justify-start items-end mb-4"
4370
- }, $r = { class: "flex-shrink-0" }, zr = ["src", "alt"], Er = { class: "flex-shrink-0 pt-6 pb-2" }, Tr = ["placeholder", "disabled"], Lr = /* @__PURE__ */ O({
4375
+ }, zr = { class: "flex-shrink-0" }, Er = ["src", "alt"], Tr = { class: "flex-shrink-0 pt-6 pb-2" }, Lr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ H({
4371
4376
  __name: "ElSelfChat",
4372
4377
  props: {
4373
4378
  selfController: {},
4374
4379
  self: {}
4375
4380
  },
4376
4381
  setup(e) {
4377
- const a = N(""), t = N(), o = N(), s = L(() => Ye(e.self));
4382
+ const n = R(""), t = R(), o = R(), s = z(() => Ye(e.self));
4378
4383
  function i(m, h) {
4379
- const x = m[h], z = m[h + 1];
4380
- return !z || z.sender !== x.sender;
4384
+ const x = m[h], $ = m[h + 1];
4385
+ return !$ || $.sender !== x.sender;
4381
4386
  }
4382
4387
  r(i, "shouldShowAvatar"), Ee(async () => {
4383
4388
  if (e.selfController && !e.selfController.textState.value.isConnected)
@@ -4387,20 +4392,20 @@ const H = /* @__PURE__ */ r((e) => {
4387
4392
  console.error("Failed to start text conversation:", m);
4388
4393
  }
4389
4394
  });
4390
- async function n() {
4391
- if (!a.value.trim() || !e.selfController || !e.selfController.textState.value.isConnected)
4395
+ async function a() {
4396
+ if (!n.value.trim() || !e.selfController || !e.selfController.textState.value.isConnected)
4392
4397
  return;
4393
- const m = a.value;
4394
- a.value = "", o.value && (o.value.style.height = "auto", o.value.focus());
4398
+ const m = n.value;
4399
+ n.value = "", o.value && (o.value.style.height = "auto", o.value.focus());
4395
4400
  try {
4396
4401
  await e.selfController.sendChatMessage(m), d();
4397
4402
  } catch (h) {
4398
4403
  console.error("Error sending message:", h);
4399
4404
  }
4400
4405
  }
4401
- r(n, "sendMessage");
4406
+ r(a, "sendMessage");
4402
4407
  function l(m) {
4403
- m.key === "Enter" && !m.shiftKey && (m.preventDefault(), n());
4408
+ m.key === "Enter" && !m.shiftKey && (m.preventDefault(), a());
4404
4409
  }
4405
4410
  r(l, "handleKeydown");
4406
4411
  function d() {
@@ -4417,96 +4422,96 @@ const H = /* @__PURE__ */ r((e) => {
4417
4422
  const m = Math.min(o.value.scrollHeight, 150);
4418
4423
  o.value.style.height = `${m}px`;
4419
4424
  }
4420
- return r(C, "adjustTextareaHeight"), ae(a, () => {
4425
+ return r(C, "adjustTextareaHeight"), de(n, () => {
4421
4426
  We(() => C());
4422
- }), ae(() => e.selfController?.sharedMessages.value, (m) => {
4427
+ }), de(() => e.selfController?.sharedMessages.value, (m) => {
4423
4428
  m && m.length > 0 && We(() => d());
4424
- }, { immediate: !0, deep: !0 }), (m, h) => (f(), b("div", yr, [
4425
- c("div", kr, [
4426
- G(st, { self: e.self }, null, 8, ["self"])
4429
+ }, { immediate: !0, deep: !0 }), (m, h) => (f(), b("div", kr, [
4430
+ c("div", wr, [
4431
+ O(st, { self: e.self }, null, 8, ["self"])
4427
4432
  ]),
4428
- e.selfController?.textState.value.connectionStatus !== "connected" ? (f(), b("div", wr, [
4429
- G(ot, { class: "size-4" })
4430
- ])) : P("", !0),
4433
+ e.selfController?.textState.value.connectionStatus !== "connected" ? (f(), b("div", Cr, [
4434
+ O(ot, { class: "size-4" })
4435
+ ])) : L("", !0),
4431
4436
  c("div", {
4432
4437
  ref_key: "messagesContainer",
4433
4438
  ref: t,
4434
4439
  class: "flex-1 overflow-y-auto overflow-x-hidden py-8 space-y-1 min-h-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"
4435
4440
  }, [
4436
- (f(!0), b(ke, null, Be(e.selfController?.sharedMessages.value.filter((x) => x.sender !== "system") ?? [], (x, z) => (f(), b("div", {
4441
+ (f(!0), b(ke, null, Be(e.selfController?.sharedMessages.value.filter((x) => x.sender !== "system") ?? [], (x, $) => (f(), b("div", {
4437
4442
  key: x.id,
4438
4443
  class: E(["flex gap-2 items-end", {
4439
4444
  "justify-end": x.sender === "user",
4440
4445
  "justify-start": x.sender === "agent",
4441
- "mb-4": i(e.selfController?.sharedMessages.value.filter((A) => A.sender !== "system") ?? [], z)
4446
+ "mb-4": i(e.selfController?.sharedMessages.value.filter((M) => M.sender !== "system") ?? [], $)
4442
4447
  }])
4443
4448
  }, [
4444
- x.sender === "agent" ? (f(), b("div", Cr, [
4445
- i(e.selfController?.sharedMessages.value.filter((A) => A.sender !== "system") ?? [], z) ? (f(), b("img", {
4449
+ x.sender === "agent" ? (f(), b("div", Sr, [
4450
+ i(e.selfController?.sharedMessages.value.filter((M) => M.sender !== "system") ?? [], $) ? (f(), b("img", {
4446
4451
  key: 0,
4447
4452
  src: s.value,
4448
4453
  alt: e.self.name,
4449
4454
  class: "size-7 rounded-full object-cover"
4450
- }, null, 8, Sr)) : P("", !0)
4451
- ])) : P("", !0),
4452
- c("div", Mr, [
4455
+ }, null, 8, Mr)) : L("", !0)
4456
+ ])) : L("", !0),
4457
+ c("div", Ar, [
4453
4458
  c("div", {
4454
4459
  class: E(["rounded-2xl px-3.5 py-1.5 backdrop-blur-sm", x.sender === "user" ? "bg-primary-500/80 text-white" : "bg-white/15 text-white/95"])
4455
4460
  }, [
4456
- c("p", Ar, U(x.text), 1)
4461
+ c("p", Ir, q(x.text), 1)
4457
4462
  ], 2)
4458
4463
  ])
4459
4464
  ], 2))), 128)),
4460
- e.selfController?.textState.value.isThinking ? (f(), b("div", Ir, [
4461
- c("div", $r, [
4465
+ e.selfController?.textState.value.isThinking ? (f(), b("div", $r, [
4466
+ c("div", zr, [
4462
4467
  c("img", {
4463
4468
  src: s.value,
4464
4469
  alt: e.self.name,
4465
4470
  class: "size-8 rounded-full object-cover"
4466
- }, null, 8, zr)
4471
+ }, null, 8, Er)
4467
4472
  ]),
4468
4473
  h[1] || (h[1] = c("div", { class: "rounded-2xl px-4 py-2.5 bg-white/15 backdrop-blur-sm flex items-center" }, [
4469
4474
  c("i", { class: "i-svg-spinners-3-dots-fade size-6 text-white/70" })
4470
4475
  ], -1))
4471
- ])) : P("", !0)
4476
+ ])) : L("", !0)
4472
4477
  ], 512),
4473
- c("div", Er, [
4478
+ c("div", Tr, [
4474
4479
  St(c("textarea", {
4475
4480
  ref_key: "textarea",
4476
4481
  ref: o,
4477
- "onUpdate:modelValue": h[0] || (h[0] = (x) => a.value = x),
4482
+ "onUpdate:modelValue": h[0] || (h[0] = (x) => n.value = x),
4478
4483
  rows: "1",
4479
4484
  placeholder: e.selfController?.textState.value.isConnected ? "Message" : "Connecting...",
4480
4485
  disabled: !e.selfController?.textState.value.isConnected,
4481
4486
  style: { "font-size": "16px", resize: "none" },
4482
4487
  class: "w-full bg-white/10 backdrop-blur-sm border border-white/20 rounded-3xl px-5 py-3 text-white placeholder-white/50 focus:outline-none focus:border-white/40 disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
4483
4488
  onKeydown: l
4484
- }, null, 40, Tr), [
4485
- [Mt, a.value]
4489
+ }, null, 40, Lr), [
4490
+ [Mt, n.value]
4486
4491
  ]),
4487
4492
  h[2] || (h[2] = c("div", { class: "text-[10px] text-white/40 text-center mt-2" }, " Press Enter to send, Shift+Enter for new line ", -1))
4488
4493
  ])
4489
4494
  ]));
4490
4495
  }
4491
- }), Dr = { class: "flex flex-col items-center text-center gap-4" }, Pr = { class: "relative flex-shrink-0" }, Vr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Fr = ["src", "alt"], Br = { class: "min-w-0" }, jr = { class: "text-3xl font-light text-white mb-2 truncate" }, Nr = { class: "text-base font-light text-white/60 line-clamp-1" }, Rr = /* @__PURE__ */ O({
4496
+ }), Pr = { class: "flex flex-col items-center text-center gap-4" }, Vr = { class: "relative flex-shrink-0" }, Fr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Br = ["src", "alt"], jr = { class: "min-w-0" }, Nr = { class: "text-3xl font-light text-white mb-2 truncate" }, Rr = { class: "text-base font-light text-white/60 line-clamp-1" }, Gr = /* @__PURE__ */ H({
4492
4497
  __name: "ElSelfHeader",
4493
4498
  props: {
4494
4499
  self: {}
4495
4500
  },
4496
4501
  setup(e) {
4497
- function a() {
4502
+ function n() {
4498
4503
  return e.self.avatar?.src ? e.self.avatar.src : qe();
4499
4504
  }
4500
- return r(a, "getAvatarSrc"), (t, o) => (f(), b("div", Dr, [
4501
- c("div", Pr, [
4502
- c("div", Vr, [
4505
+ return r(n, "getAvatarSrc"), (t, o) => (f(), b("div", Pr, [
4506
+ c("div", Vr, [
4507
+ c("div", Fr, [
4503
4508
  c("img", {
4504
- src: a(),
4509
+ src: n(),
4505
4510
  alt: e.self.name,
4506
4511
  class: "w-full h-full object-cover",
4507
4512
  onError: o[0] || (o[0] = //@ts-ignore
4508
- (...s) => K(Ue) && K(Ue)(...s))
4509
- }, null, 40, Fr)
4513
+ (...s) => Y(Ue) && Y(Ue)(...s))
4514
+ }, null, 40, Br)
4510
4515
  ]),
4511
4516
  o[1] || (o[1] = c("div", { class: "absolute top-1.5 right-1.5" }, [
4512
4517
  c("div", {
@@ -4516,49 +4521,49 @@ const H = /* @__PURE__ */ r((e) => {
4516
4521
  c("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" })
4517
4522
  ], -1))
4518
4523
  ]),
4519
- c("div", Br, [
4520
- c("h1", jr, U(e.self.name), 1),
4521
- c("p", Nr, U(e.self.title), 1)
4524
+ c("div", jr, [
4525
+ c("h1", Nr, q(e.self.name), 1),
4526
+ c("p", Rr, q(e.self.title), 1)
4522
4527
  ])
4523
4528
  ]));
4524
4529
  }
4525
- }), Gr = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Or = /* @__PURE__ */ O({
4530
+ }), Or = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Hr = /* @__PURE__ */ H({
4526
4531
  name: "SelfSidebarClose",
4527
4532
  __name: "SelfSidebarClose",
4528
4533
  emits: ["click"],
4529
4534
  setup(e) {
4530
- const a = N(!1);
4535
+ const n = R(!1);
4531
4536
  return Ee(() => {
4532
4537
  setTimeout(() => {
4533
- a.value = !0;
4538
+ n.value = !0;
4534
4539
  }, 100);
4535
4540
  }), (t, o) => (f(), b("a", {
4536
4541
  class: "close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",
4537
4542
  onClick: o[0] || (o[0] = (s) => t.$emit("click", s))
4538
4543
  }, [
4539
4544
  o[1] || (o[1] = c("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
4540
- c("span", Gr, [
4545
+ c("span", Or, [
4541
4546
  c("span", {
4542
- class: E(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", a.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
4547
+ class: E(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", n.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
4543
4548
  style: { "background-color": "currentColor", "transition-delay": "0.15s" }
4544
4549
  }, null, 2),
4545
4550
  c("span", {
4546
- class: E(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", a.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
4551
+ class: E(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", n.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
4547
4552
  style: { "background-color": "currentColor", "transition-delay": "0.45s" }
4548
4553
  }, null, 2)
4549
4554
  ])
4550
4555
  ]));
4551
4556
  }
4552
- }), Hr = {
4557
+ }), Ur = {
4553
4558
  key: 0,
4554
4559
  class: "px-9 pt-12 pb-4"
4555
- }, Ur = { class: "text-base font-medium text-theme-400" }, qr = {
4560
+ }, qr = { class: "text-base font-medium text-theme-400" }, Wr = {
4556
4561
  key: 1,
4557
4562
  class: "px-4 pb-8 border-b border-white/10"
4558
- }, Wr = ["disabled", "onClick"], Kr = { class: "flex items-center gap-3" }, _r = { class: "flex-1" }, Zr = {
4563
+ }, Kr = ["disabled", "onClick"], Zr = { class: "flex items-center gap-3" }, _r = { class: "flex-1" }, Yr = {
4559
4564
  key: 0,
4560
4565
  class: "text-xs text-white/50 mt-0.5"
4561
- }, Yr = { class: "p-6" }, Rt = /* @__PURE__ */ O({
4566
+ }, Jr = { class: "p-6" }, Rt = /* @__PURE__ */ H({
4562
4567
  name: "ElSidebar",
4563
4568
  __name: "ElSidebar",
4564
4569
  props: {
@@ -4569,16 +4574,16 @@ const H = /* @__PURE__ */ r((e) => {
4569
4574
  widthClasses: {}
4570
4575
  },
4571
4576
  emits: ["update:modelValue"],
4572
- setup(e, { emit: a }) {
4573
- const t = e, o = a, s = t.position || "left", i = t.widthClasses || "w-[80%] max-w-[300px]", n = L({
4577
+ setup(e, { emit: n }) {
4578
+ const t = e, o = n, s = t.position || "left", i = t.widthClasses || "w-[80%] max-w-[300px]", a = z({
4574
4579
  get: /* @__PURE__ */ r(() => t.modelValue, "get"),
4575
4580
  set: /* @__PURE__ */ r((m) => o("update:modelValue", m), "set")
4576
- }), l = L(() => t.items.filter((m) => !m.isHidden));
4581
+ }), l = z(() => t.items.filter((m) => !m.isHidden));
4577
4582
  function d(m) {
4578
- m.isDisabled || (m.onClick ? m.onClick({ item: m, event: new MouseEvent("click") }) : m.href && (m.href.includes("http") ? window.open(m.href, m.target || "_self")?.focus() : window.location.href = m.href), n.value = !1);
4583
+ m.isDisabled || (m.onClick ? m.onClick({ item: m, event: new MouseEvent("click") }) : m.href && (m.href.includes("http") ? window.open(m.href, m.target || "_self")?.focus() : window.location.href = m.href), a.value = !1);
4579
4584
  }
4580
4585
  r(d, "handleItemClick");
4581
- const C = L(() => s === "left" ? {
4586
+ const C = z(() => s === "left" ? {
4582
4587
  enter: "-translate-x-full",
4583
4588
  leave: "-translate-x-full",
4584
4589
  position: "justify-start",
@@ -4590,7 +4595,7 @@ const H = /* @__PURE__ */ r((e) => {
4590
4595
  closeButton: "-left-16"
4591
4596
  });
4592
4597
  return (m, h) => (f(), b(ke, null, [
4593
- G(ut, {
4598
+ O(ut, {
4594
4599
  "enter-active-class": "transition-opacity duration-300 ease-out",
4595
4600
  "leave-active-class": "transition-opacity duration-200 ease-in",
4596
4601
  "enter-from-class": "opacity-0",
@@ -4598,16 +4603,16 @@ const H = /* @__PURE__ */ r((e) => {
4598
4603
  "leave-from-class": "opacity-100",
4599
4604
  "leave-to-class": "opacity-0"
4600
4605
  }, {
4601
- default: ee(() => [
4602
- n.value ? (f(), b("div", {
4606
+ default: re(() => [
4607
+ a.value ? (f(), b("div", {
4603
4608
  key: 0,
4604
4609
  class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
4605
- onClick: h[0] || (h[0] = (x) => n.value = !1)
4606
- })) : P("", !0)
4610
+ onClick: h[0] || (h[0] = (x) => a.value = !1)
4611
+ })) : L("", !0)
4607
4612
  ]),
4608
4613
  _: 1
4609
4614
  }),
4610
- G(ut, {
4615
+ O(ut, {
4611
4616
  "enter-active-class": "transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]",
4612
4617
  "leave-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
4613
4618
  "enter-from-class": C.value.enter,
@@ -4615,70 +4620,70 @@ const H = /* @__PURE__ */ r((e) => {
4615
4620
  "leave-from-class": "translate-x-0",
4616
4621
  "leave-to-class": C.value.leave
4617
4622
  }, {
4618
- default: ee(() => [
4619
- n.value ? (f(), b("div", {
4623
+ default: re(() => [
4624
+ a.value ? (f(), b("div", {
4620
4625
  key: 0,
4621
4626
  class: E(["absolute inset-0 z-50 flex", C.value.position]),
4622
- onClick: h[3] || (h[3] = (x) => n.value = !1)
4627
+ onClick: h[3] || (h[3] = (x) => a.value = !1)
4623
4628
  }, [
4624
4629
  c("div", {
4625
- class: E(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", K(i)]),
4630
+ class: E(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", Y(i)]),
4626
4631
  onClick: h[2] || (h[2] = At(() => {
4627
4632
  }, ["stop"]))
4628
4633
  }, [
4629
- G(Or, {
4634
+ O(Hr, {
4630
4635
  class: E(["absolute top-4 z-10 text-white", C.value.closeButton]),
4631
- onClick: h[1] || (h[1] = (x) => n.value = !1)
4636
+ onClick: h[1] || (h[1] = (x) => a.value = !1)
4632
4637
  }, null, 8, ["class"]),
4633
- e.title ? (f(), b("div", Hr, [
4634
- c("h3", Ur, U(e.title), 1)
4635
- ])) : P("", !0),
4636
- m.$slots.header ? (f(), b("div", qr, [
4638
+ e.title ? (f(), b("div", Ur, [
4639
+ c("h3", qr, q(e.title), 1)
4640
+ ])) : L("", !0),
4641
+ m.$slots.header ? (f(), b("div", Wr, [
4637
4642
  $e(m.$slots, "header")
4638
- ])) : P("", !0),
4643
+ ])) : L("", !0),
4639
4644
  c("div", {
4640
4645
  class: E(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !e.title && !m.$slots.header, "pt-4": e.title || m.$slots.header }])
4641
4646
  }, [
4642
- G(Ct, {
4647
+ O(Ct, {
4643
4648
  "enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
4644
4649
  "leave-active-class": "transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]",
4645
- "enter-from-class": K(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
4650
+ "enter-from-class": Y(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
4646
4651
  "enter-to-class": "translate-x-0 opacity-100",
4647
4652
  "leave-from-class": "translate-x-0 opacity-100",
4648
- "leave-to-class": K(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
4653
+ "leave-to-class": Y(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
4649
4654
  }, {
4650
- default: ee(() => [
4651
- (f(!0), b(ke, null, Be(l.value, (x, z) => (f(), b("button", {
4652
- key: x.key || x.label || z,
4653
- style: tt({ transitionDelay: `${z * 40}ms` }),
4655
+ default: re(() => [
4656
+ (f(!0), b(ke, null, Be(l.value, (x, $) => (f(), b("button", {
4657
+ key: x.key || x.label || $,
4658
+ style: tt({ transitionDelay: `${$ * 40}ms` }),
4654
4659
  class: E(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
4655
4660
  x.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
4656
4661
  x.isDisabled && "opacity-50 cursor-not-allowed"
4657
4662
  ]]),
4658
4663
  disabled: x.isDisabled,
4659
- onClick: /* @__PURE__ */ r((A) => d(x), "onClick")
4664
+ onClick: /* @__PURE__ */ r((M) => d(x), "onClick")
4660
4665
  }, [
4661
- c("div", Kr, [
4666
+ c("div", Zr, [
4662
4667
  x.icon?.src ? (f(), b("i", {
4663
4668
  key: 0,
4664
4669
  class: E(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
4665
4670
  x.icon.src,
4666
4671
  x.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
4667
4672
  ]])
4668
- }, null, 2)) : P("", !0),
4673
+ }, null, 2)) : L("", !0),
4669
4674
  c("div", _r, [
4670
4675
  c("div", {
4671
4676
  class: E(["font-medium text-sm", x.isActive ? "text-primary-300" : "text-white"])
4672
- }, U(x.label), 3),
4673
- x.subLabel ? (f(), b("div", Zr, U(x.subLabel), 1)) : P("", !0)
4677
+ }, q(x.label), 3),
4678
+ x.subLabel ? (f(), b("div", Yr, q(x.subLabel), 1)) : L("", !0)
4674
4679
  ])
4675
4680
  ])
4676
- ], 14, Wr))), 128))
4681
+ ], 14, Kr))), 128))
4677
4682
  ]),
4678
4683
  _: 1
4679
4684
  }, 8, ["enter-from-class", "leave-to-class"])
4680
4685
  ], 2),
4681
- c("div", Yr, [
4686
+ c("div", Jr, [
4682
4687
  $e(m.$slots, "footer", {}, () => [
4683
4688
  h[4] || (h[4] = c("div", { class: "text-center" }, [
4684
4689
  c("p", { class: "text-[10px] text-white/40 font-sans" }, [
@@ -4693,13 +4698,13 @@ const H = /* @__PURE__ */ r((e) => {
4693
4698
  ])
4694
4699
  ])
4695
4700
  ], 2)
4696
- ], 2)) : P("", !0)
4701
+ ], 2)) : L("", !0)
4697
4702
  ]),
4698
4703
  _: 3
4699
4704
  }, 8, ["enter-from-class", "leave-to-class"])
4700
4705
  ], 64));
4701
4706
  }
4702
- }), Jr = /* @__PURE__ */ O({
4707
+ }), Qr = /* @__PURE__ */ H({
4703
4708
  name: "SelfModeSidebar",
4704
4709
  __name: "ElSelfModeSidebar",
4705
4710
  props: {
@@ -4707,11 +4712,11 @@ const H = /* @__PURE__ */ r((e) => {
4707
4712
  selfController: {}
4708
4713
  },
4709
4714
  emits: ["update:modelValue"],
4710
- setup(e, { emit: a }) {
4711
- const t = e, o = a, s = L({
4715
+ setup(e, { emit: n }) {
4716
+ const t = e, o = n, s = z({
4712
4717
  get: /* @__PURE__ */ r(() => t.modelValue, "get"),
4713
4718
  set: /* @__PURE__ */ r((l) => o("update:modelValue", l), "set")
4714
- }), i = L(() => t.selfController?.agentMode?.value ?? "self"), n = L(() => zt.map((l) => ({
4719
+ }), i = z(() => t.selfController?.agentMode?.value ?? "self"), a = z(() => zt.map((l) => ({
4715
4720
  key: l.mode,
4716
4721
  icon: { src: l.icon },
4717
4722
  label: l.label,
@@ -4720,16 +4725,16 @@ const H = /* @__PURE__ */ r((e) => {
4720
4725
  t.selfController?.setMode(l.mode);
4721
4726
  }, "onClick")
4722
4727
  })));
4723
- return (l, d) => (f(), ne(Rt, {
4728
+ return (l, d) => (f(), ce(Rt, {
4724
4729
  modelValue: s.value,
4725
4730
  "onUpdate:modelValue": d[0] || (d[0] = (C) => s.value = C),
4726
- items: n.value,
4731
+ items: a.value,
4727
4732
  position: "right",
4728
4733
  title: "Mode",
4729
4734
  "width-classes": "w-[80%] max-w-[255px]"
4730
4735
  }, null, 8, ["modelValue", "items"]));
4731
4736
  }
4732
- }), Qr = /* @__PURE__ */ O({
4737
+ }), Xr = /* @__PURE__ */ H({
4733
4738
  name: "SelfSidebar",
4734
4739
  __name: "ElSelfSidebar",
4735
4740
  props: {
@@ -4739,12 +4744,12 @@ const H = /* @__PURE__ */ r((e) => {
4739
4744
  title: {}
4740
4745
  },
4741
4746
  emits: ["update:modelValue"],
4742
- setup(e, { emit: a }) {
4743
- const t = e, o = a, s = L({
4747
+ setup(e, { emit: n }) {
4748
+ const t = e, o = n, s = z({
4744
4749
  get: /* @__PURE__ */ r(() => t.modelValue, "get"),
4745
- set: /* @__PURE__ */ r((n) => o("update:modelValue", n), "set")
4746
- }), i = L(() => {
4747
- const n = [
4750
+ set: /* @__PURE__ */ r((a) => o("update:modelValue", a), "set")
4751
+ }), i = z(() => {
4752
+ const a = [
4748
4753
  {
4749
4754
  key: "share",
4750
4755
  icon: { src: "i-tabler-share" },
@@ -4771,16 +4776,16 @@ const H = /* @__PURE__ */ r((e) => {
4771
4776
  }, "onClick")
4772
4777
  }
4773
4778
  ];
4774
- return t.sdk.activeUser.value && n.push({
4779
+ return t.sdk.activeUser.value && a.push({
4775
4780
  key: "logout",
4776
4781
  icon: { src: "i-tabler-logout" },
4777
4782
  label: "Logout",
4778
4783
  onClick: /* @__PURE__ */ r(async () => {
4779
4784
  await t.sdk.logout();
4780
4785
  }, "onClick")
4781
- }), n;
4786
+ }), a;
4782
4787
  });
4783
- return (n, l) => (f(), ne(Rt, {
4788
+ return (a, l) => (f(), ce(Rt, {
4784
4789
  modelValue: s.value,
4785
4790
  "onUpdate:modelValue": l[0] || (l[0] = (d) => s.value = d),
4786
4791
  items: i.value,
@@ -4788,7 +4793,7 @@ const H = /* @__PURE__ */ r((e) => {
4788
4793
  title: e.title || "Menu"
4789
4794
  }, null, 8, ["modelValue", "items", "title"]));
4790
4795
  }
4791
- }), Xr = { class: "w-full max-w-full flex items-center justify-center" }, es = 0.25, ts = 0.35, wt = 500, os = 0.15, rs = 0.4, ss = /* @__PURE__ */ O({
4796
+ }), es = { class: "w-full max-w-full flex items-center justify-center" }, ts = 0.25, os = 0.35, wt = 500, rs = 0.15, ss = 0.4, ns = /* @__PURE__ */ H({
4792
4797
  __name: "FAudioVisualizer",
4793
4798
  props: {
4794
4799
  audioState: {},
@@ -4798,11 +4803,11 @@ const H = /* @__PURE__ */ r((e) => {
4798
4803
  enableGlow: { type: Boolean, default: !1 }
4799
4804
  },
4800
4805
  setup(e) {
4801
- const a = e, t = {
4806
+ const n = e, t = {
4802
4807
  sm: { bars: 68, barWidth: 2, barSpacing: 1, minHeight: 3, maxHeight: 40 },
4803
4808
  md: { bars: 68, barWidth: 3, barSpacing: 1, minHeight: 4, maxHeight: 80 },
4804
4809
  lg: { bars: 68, barWidth: 4, barSpacing: 2, minHeight: 5, maxHeight: 120 }
4805
- }, o = L(() => t[a.size]), s = [
4810
+ }, o = z(() => t[n.size]), s = [
4806
4811
  85,
4807
4812
  100,
4808
4813
  120,
@@ -4871,21 +4876,21 @@ const H = /* @__PURE__ */ r((e) => {
4871
4876
  7500,
4872
4877
  8e3,
4873
4878
  8500
4874
- ], i = N();
4875
- let n = null, l = null;
4876
- const d = N(!1), C = N(!0), m = /* @__PURE__ */ new Map();
4877
- let h, x, z, A, M, y, T;
4878
- function ie(g) {
4879
+ ], i = R();
4880
+ let a = null, l = null;
4881
+ const d = R(!1), C = R(!0), m = /* @__PURE__ */ new Map();
4882
+ let h, x, $, M, j, W, Z;
4883
+ function B(g) {
4879
4884
  const { minHeight: u } = o.value;
4880
- h = new Float32Array(g).fill(u), x = new Float32Array(g).fill(0), z = new Float32Array(g).fill(u), A = new Float32Array(g).fill(u), M = new Float32Array(g).fill(u), y = new Float32Array(g).fill(0), T = new Float32Array(g).fill(0);
4885
+ h = new Float32Array(g).fill(u), x = new Float32Array(g).fill(0), $ = new Float32Array(g).fill(u), M = new Float32Array(g).fill(u), j = new Float32Array(g).fill(u), W = new Float32Array(g).fill(0), Z = new Float32Array(g).fill(0);
4881
4886
  }
4882
- r(ie, "initPhysicsArrays");
4883
- const le = L(() => {
4884
- if (a.color !== "auto")
4885
- return a.color;
4886
- const g = a.audioState?.mode ?? "idle";
4887
+ r(B, "initPhysicsArrays");
4888
+ const k = z(() => {
4889
+ if (n.color !== "auto")
4890
+ return n.color;
4891
+ const g = n.audioState?.mode ?? "idle";
4887
4892
  return g === "listening" ? "blue" : g === "processing" ? "cyan" : g === "speaking" ? "green" : "gray";
4888
- }), ce = {
4893
+ }), D = {
4889
4894
  blue: {
4890
4895
  primary: [59, 130, 246],
4891
4896
  // User speaking
@@ -4907,89 +4912,89 @@ const H = /* @__PURE__ */ r((e) => {
4907
4912
  glow: "rgba(156,163,175,0.2)"
4908
4913
  }
4909
4914
  };
4910
- function be(g) {
4915
+ function se(g) {
4911
4916
  return g < 200 ? { stiffnessMultiplier: 0.7, dampingMultiplier: 1.2 } : g < 1e3 ? { stiffnessMultiplier: 1, dampingMultiplier: 1 } : g < 4e3 ? { stiffnessMultiplier: 1.3, dampingMultiplier: 0.8 } : { stiffnessMultiplier: 1.5, dampingMultiplier: 0.6 };
4912
4917
  }
4913
- r(be, "getFrequencyPhysics");
4914
- let W = 1;
4915
- function te() {
4918
+ r(se, "getFrequencyPhysics");
4919
+ let _ = 1;
4920
+ function ne() {
4916
4921
  if (!i.value)
4917
4922
  return;
4918
- typeof window < "u" && (W = Math.max(1, Math.min(2, window.devicePixelRatio || 1)));
4919
- const { bars: g, barWidth: u, barSpacing: j, maxHeight: S } = o.value, I = (u + j) * g - j, q = S;
4920
- i.value.width = Math.floor(I * W), i.value.height = Math.floor(q * W), i.value.style.width = `${I}px`, i.value.style.height = `${q}px`, n && n.setTransform(W, 0, 0, W, 0, 0), De();
4923
+ typeof window < "u" && (_ = Math.max(1, Math.min(2, window.devicePixelRatio || 1)));
4924
+ const { bars: g, barWidth: u, barSpacing: N, maxHeight: S } = o.value, A = (u + N) * g - N, K = S;
4925
+ i.value.width = Math.floor(A * _), i.value.height = Math.floor(K * _), i.value.style.width = `${A}px`, i.value.style.height = `${K}px`, a && a.setTransform(_, 0, 0, _, 0, 0), De();
4921
4926
  }
4922
- r(te, "resizeCanvas");
4927
+ r(ne, "resizeCanvas");
4923
4928
  function w(g) {
4924
- return Array.from({ length: s.length }, (j, S) => {
4925
- const I = s[S], V = Math.floor(I / 12e3 * g.length), F = Math.max(1, Math.floor(g.length / s.length / 2));
4926
- let _ = 0;
4927
- for (let Q = 0; Q < F && V + Q < g.length; Q++)
4928
- _ += g[V + Q];
4929
- _ = _ / F / 255;
4930
- let R = 1;
4931
- I < 150 ? R = 0.1 : I < 200 ? R = 0.3 : I >= 400 && I <= 600 ? R = 1.4 : I >= 1400 && I <= 1600 ? R = 1.3 : I >= 2400 && I <= 2600 ? R = 1.2 : I >= 200 && I <= 2e3 ? R = 1.1 : I >= 2e3 && I <= 4e3 ? R = 0.9 : I > 6e3 ? R = 0.4 : R = 0.7;
4932
- const pe = _ ** 0.5 * 0.6 * R;
4929
+ return Array.from({ length: s.length }, (N, S) => {
4930
+ const A = s[S], P = Math.floor(A / 12e3 * g.length), V = Math.max(1, Math.floor(g.length / s.length / 2));
4931
+ let J = 0;
4932
+ for (let te = 0; te < V && P + te < g.length; te++)
4933
+ J += g[P + te];
4934
+ J = J / V / 255;
4935
+ let G = 1;
4936
+ A < 150 ? G = 0.1 : A < 200 ? G = 0.3 : A >= 400 && A <= 600 ? G = 1.4 : A >= 1400 && A <= 1600 ? G = 1.3 : A >= 2400 && A <= 2600 ? G = 1.2 : A >= 200 && A <= 2e3 ? G = 1.1 : A >= 2e3 && A <= 4e3 ? G = 0.9 : A > 6e3 ? G = 0.4 : G = 0.7;
4937
+ const pe = J ** 0.5 * 0.6 * G;
4933
4938
  return Math.min(0.85, pe);
4934
4939
  });
4935
4940
  }
4936
4941
  r(w, "mapFrequencyDataToBands");
4937
- function J(g) {
4942
+ function ee(g) {
4938
4943
  const u = Array.from({ length: s.length }, () => 0);
4939
4944
  if (g <= 0)
4940
4945
  return u;
4941
- for (let j = 0; j < s.length; j++) {
4942
- const S = s[j];
4943
- let I = 0;
4944
- S >= 400 && S <= 600 ? I = g * 0.9 : S >= 1400 && S <= 1600 ? I = g * 0.8 : S >= 2400 && S <= 2600 ? I = g * 0.7 : S >= 200 && S <= 2e3 ? I = g * 0.6 : S >= 85 && S <= 300 ? I = g * 0.4 : I = g * 0.2, I *= 0.8 + Math.random() * 0.4, u[j] = Math.max(0, Math.min(1, I));
4946
+ for (let N = 0; N < s.length; N++) {
4947
+ const S = s[N];
4948
+ let A = 0;
4949
+ S >= 400 && S <= 600 ? A = g * 0.9 : S >= 1400 && S <= 1600 ? A = g * 0.8 : S >= 2400 && S <= 2600 ? A = g * 0.7 : S >= 200 && S <= 2e3 ? A = g * 0.6 : S >= 85 && S <= 300 ? A = g * 0.4 : A = g * 0.2, A *= 0.8 + Math.random() * 0.4, u[N] = Math.max(0, Math.min(1, A));
4945
4950
  }
4946
4951
  return u;
4947
4952
  }
4948
- r(J, "generateIntensityBasedBands");
4949
- function je(g, u, j) {
4950
- if (!a.enableWaveMotion || typeof window > "u")
4953
+ r(ee, "generateIntensityBasedBands");
4954
+ function je(g, u, N) {
4955
+ if (!n.enableWaveMotion || typeof window > "u")
4951
4956
  return g;
4952
- const S = performance.now() * 1e-3, I = [...g];
4953
- for (let q = 0; q < g.length; q++) {
4954
- const V = q * (2 * Math.PI) / g.length;
4955
- let F = 0;
4956
- if (j === "listening" || j === "speaking") {
4957
- const R = Math.sin(S * 4.2 + V * 0.6 - S * 2) * 0.15, D = Math.sin(S * 6.8 + V * 1.2 - S * 1.5) * 0.08, de = Math.sin(S * 0.8) * 0.05;
4958
- F = R + D + de;
4959
- } else if (j === "processing") {
4960
- const R = Math.sin(S * 3 + V * 0.5 - S * 1.5) * 0.12, D = Math.sin(S * 5 + V * 0.8 - S * 1.2) * 0.06, de = Math.sin(S * 0.6) * 0.04;
4961
- F = R + D + de;
4962
- } else if (j === "connected") {
4963
- const R = Math.sin(S * 0.6) * 0.1, D = Math.sin(S * 2 + V * 0.3) * 0.05;
4964
- F = R + D;
4957
+ const S = performance.now() * 1e-3, A = [...g];
4958
+ for (let K = 0; K < g.length; K++) {
4959
+ const P = K * (2 * Math.PI) / g.length;
4960
+ let V = 0;
4961
+ if (N === "listening" || N === "speaking") {
4962
+ const G = Math.sin(S * 4.2 + P * 0.6 - S * 2) * 0.15, T = Math.sin(S * 6.8 + P * 1.2 - S * 1.5) * 0.08, ue = Math.sin(S * 0.8) * 0.05;
4963
+ V = G + T + ue;
4964
+ } else if (N === "processing") {
4965
+ const G = Math.sin(S * 3 + P * 0.5 - S * 1.5) * 0.12, T = Math.sin(S * 5 + P * 0.8 - S * 1.2) * 0.06, ue = Math.sin(S * 0.6) * 0.04;
4966
+ V = G + T + ue;
4967
+ } else if (N === "connected") {
4968
+ const G = Math.sin(S * 0.6) * 0.1, T = Math.sin(S * 2 + P * 0.3) * 0.05;
4969
+ V = G + T;
4965
4970
  } else {
4966
- const R = Math.sin(S * 1.5 + V) * 0.12, D = Math.sin(S * 0.4) * 0.05;
4967
- F = R + D;
4971
+ const G = Math.sin(S * 1.5 + P) * 0.12, T = Math.sin(S * 0.4) * 0.05;
4972
+ V = G + T;
4968
4973
  }
4969
- const _ = Math.max(0.3, u);
4970
- I[q] = Math.max(0, Math.min(0.9, g[q] + F * _));
4974
+ const J = Math.max(0.3, u);
4975
+ A[K] = Math.max(0, Math.min(0.9, g[K] + V * J));
4971
4976
  }
4972
- return I;
4977
+ return A;
4973
4978
  }
4974
4979
  r(je, "addWaveMotionOverlay");
4975
4980
  function Ne() {
4976
- const g = a.audioState;
4981
+ const g = n.audioState;
4977
4982
  if (!g)
4978
4983
  return Array.from({ length: s.length }, () => 0);
4979
4984
  let u = [];
4980
4985
  if (g.getFrequencyData) {
4981
4986
  const S = g.getFrequencyData();
4982
- S && S.length > 0 && Array.from(S).some((q) => q > 5) && (u = w(S));
4987
+ S && S.length > 0 && Array.from(S).some((K) => K > 5) && (u = w(S));
4983
4988
  }
4984
4989
  if (!u.length) {
4985
4990
  const S = g.mode === "listening" ? g.inputLevel ?? 0 : g.mode === "speaking" ? g.outputLevel ?? 0 : g.mode === "connected" ? 0.02 : 0;
4986
- u = J(S);
4991
+ u = ee(S);
4987
4992
  }
4988
- const j = Math.max(
4993
+ const N = Math.max(
4989
4994
  g.inputLevel ?? 0,
4990
4995
  g.outputLevel ?? 0
4991
4996
  );
4992
- return je(u, j, g.mode);
4997
+ return je(u, N, g.mode);
4993
4998
  }
4994
4999
  r(Ne, "generateFrequencyBands");
4995
5000
  function Se() {
@@ -5007,101 +5012,101 @@ const H = /* @__PURE__ */ r((e) => {
5007
5012
  m.clear();
5008
5013
  }
5009
5014
  r(De, "clearGradientCache");
5010
- function oe() {
5011
- if (typeof window > "u" || !n || !i.value)
5015
+ function ae() {
5016
+ if (typeof window > "u" || !a || !i.value)
5012
5017
  return;
5013
5018
  Se();
5014
- const g = i.value, { bars: u, barWidth: j, barSpacing: S, minHeight: I, maxHeight: q } = o.value, V = g.width / W, F = g.height / W;
5015
- function _(R) {
5016
- if (!n)
5019
+ const g = i.value, { bars: u, barWidth: N, barSpacing: S, minHeight: A, maxHeight: K } = o.value, P = g.width / _, V = g.height / _;
5020
+ function J(G) {
5021
+ if (!a)
5017
5022
  return;
5018
5023
  if (!C.value) {
5019
- l = requestAnimationFrame(_);
5024
+ l = requestAnimationFrame(J);
5020
5025
  return;
5021
5026
  }
5022
- n.clearRect(0, 0, V, F);
5023
- const D = Ne(), de = 0.3;
5024
- for (let k = 0; k < u; k++) {
5025
- const ge = I + D[k] * (q - I);
5026
- A[k] = A[k] + de * (ge - A[k]), z[k] = A[k];
5027
+ a.clearRect(0, 0, P, V);
5028
+ const T = Ne(), ue = 0.3;
5029
+ for (let y = 0; y < u; y++) {
5030
+ const me = A + T[y] * (K - A);
5031
+ M[y] = M[y] + ue * (me - M[y]), $[y] = M[y];
5027
5032
  }
5028
5033
  const pe = 16.67;
5029
- for (let k = 0; k < u; k++) {
5030
- const ge = s[k], re = be(ge), se = z[k] - h[k], xe = es * re.stiffnessMultiplier, Me = ts * re.dampingMultiplier, X = se * xe - x[k] * Me;
5031
- if (x[k] += X, h[k] += x[k], h[k] > M[k])
5032
- M[k] = h[k], y[k] = wt, T[k] = 0;
5033
- else if (y[k] = Math.max(0, y[k] - pe), y[k] <= 0) {
5034
- const Ve = (Math.max(I, h[k] * 1.1) - M[k]) * os - T[k] * rs;
5035
- T[k] += Ve, M[k] = Math.max(I, M[k] + T[k]);
5034
+ for (let y = 0; y < u; y++) {
5035
+ const me = s[y], ie = se(me), le = $[y] - h[y], xe = ts * ie.stiffnessMultiplier, Me = os * ie.dampingMultiplier, oe = le * xe - x[y] * Me;
5036
+ if (x[y] += oe, h[y] += x[y], h[y] > j[y])
5037
+ j[y] = h[y], W[y] = wt, Z[y] = 0;
5038
+ else if (W[y] = Math.max(0, W[y] - pe), W[y] <= 0) {
5039
+ const Ve = (Math.max(A, h[y] * 1.1) - j[y]) * rs - Z[y] * ss;
5040
+ Z[y] += Ve, j[y] = Math.max(A, j[y] + Z[y]);
5036
5041
  }
5037
5042
  }
5038
- const Q = u * 0.15, ve = a.audioState?.mode ?? "idle";
5039
- if ((ve === "listening" || ve === "speaking") && a.enableGlow && !d.value) {
5040
- const k = performance.now() * 1e-3, ge = 0.1 + Math.sin(k * 2) * 0.05;
5041
- n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = ge;
5042
- const re = ce[le.value];
5043
- n.fillStyle = re.glow;
5044
- for (let se = 0; se < u; se++) {
5045
- const xe = se * (j + S), Me = h[se], X = F - Me;
5046
- n.beginPath(), n.roundRect(xe - 1, X - 1, j + 2, Me + 2, [2, 2, 0, 0]), n.fill();
5043
+ const te = u * 0.15, ve = n.audioState?.mode ?? "idle";
5044
+ if ((ve === "listening" || ve === "speaking") && n.enableGlow && !d.value) {
5045
+ const y = performance.now() * 1e-3, me = 0.1 + Math.sin(y * 2) * 0.05;
5046
+ a.save(), a.globalCompositeOperation = "lighter", a.globalAlpha = me;
5047
+ const ie = D[k.value];
5048
+ a.fillStyle = ie.glow;
5049
+ for (let le = 0; le < u; le++) {
5050
+ const xe = le * (N + S), Me = h[le], oe = V - Me;
5051
+ a.beginPath(), a.roundRect(xe - 1, oe - 1, N + 2, Me + 2, [2, 2, 0, 0]), a.fill();
5047
5052
  }
5048
- n.restore();
5053
+ a.restore();
5049
5054
  }
5050
- const we = ce[le.value], [ue, he, fe] = we.primary;
5051
- for (let k = 0; k < u; k++) {
5052
- const ge = k * (j + S), re = h[k], se = F - re, xe = s[k], Me = Math.min(k, u - 1 - k), X = Math.min(1, Me / Q), Pe = Math.min(1, re / q), Ve = (0.8 + Pe * 0.2) * X, lt = (0.6 + Pe * 0.2) * X, ct = (0.3 + Pe * 0.1) * X, Gt = Math.round(Pe * 10) / 10, Ot = Math.round(X * 10) / 10, Ht = `${le.value}-${Gt}-${Ot}-${re}`, Ut = Re(Ht, () => {
5053
- const Z = n.createLinearGradient(0, se, 0, se + re);
5055
+ const we = D[k.value], [he, fe, ge] = we.primary;
5056
+ for (let y = 0; y < u; y++) {
5057
+ const me = y * (N + S), ie = h[y], le = V - ie, xe = s[y], Me = Math.min(y, u - 1 - y), oe = Math.min(1, Me / te), Pe = Math.min(1, ie / K), Ve = (0.8 + Pe * 0.2) * oe, lt = (0.6 + Pe * 0.2) * oe, ct = (0.3 + Pe * 0.1) * oe, Gt = Math.round(Pe * 10) / 10, Ot = Math.round(oe * 10) / 10, Ht = `${k.value}-${Gt}-${Ot}-${ie}`, Ut = Re(Ht, () => {
5058
+ const Q = a.createLinearGradient(0, le, 0, le + ie);
5054
5059
  if (ve === "speaking")
5055
- Z.addColorStop(0, `rgba(${ue}, ${he}, ${fe}, ${Ve})`), Z.addColorStop(0.5, `rgba(${ue}, ${he}, ${fe}, ${lt})`), Z.addColorStop(1, `rgba(${ue}, ${he}, ${fe}, ${ct})`), (xe >= 400 && xe <= 600 || xe >= 1400 && xe <= 1600) && Z.addColorStop(0, `rgba(74, 222, 128, ${Math.min(1, Ve + 0.2)})`);
5060
+ Q.addColorStop(0, `rgba(${he}, ${fe}, ${ge}, ${Ve})`), Q.addColorStop(0.5, `rgba(${he}, ${fe}, ${ge}, ${lt})`), Q.addColorStop(1, `rgba(${he}, ${fe}, ${ge}, ${ct})`), (xe >= 400 && xe <= 600 || xe >= 1400 && xe <= 1600) && Q.addColorStop(0, `rgba(74, 222, 128, ${Math.min(1, Ve + 0.2)})`);
5056
5061
  else if (ve === "listening")
5057
- Z.addColorStop(0, `rgba(${ue}, ${he}, ${fe}, ${Ve})`), Z.addColorStop(0.5, `rgba(${ue}, ${he}, ${fe}, ${lt})`), Z.addColorStop(1, `rgba(${ue}, ${he}, ${fe}, ${ct})`);
5062
+ Q.addColorStop(0, `rgba(${he}, ${fe}, ${ge}, ${Ve})`), Q.addColorStop(0.5, `rgba(${he}, ${fe}, ${ge}, ${lt})`), Q.addColorStop(1, `rgba(${he}, ${fe}, ${ge}, ${ct})`);
5058
5063
  else {
5059
- const Ge = 0.6 * X, qt = 0.4 * X, Wt = 0.2 * X;
5060
- Z.addColorStop(0, `rgba(${ue}, ${he}, ${fe}, ${Ge})`), Z.addColorStop(0.6, `rgba(${ue}, ${he}, ${fe}, ${qt})`), Z.addColorStop(1, `rgba(${ue}, ${he}, ${fe}, ${Wt})`);
5064
+ const Ge = 0.6 * oe, qt = 0.4 * oe, Wt = 0.2 * oe;
5065
+ Q.addColorStop(0, `rgba(${he}, ${fe}, ${ge}, ${Ge})`), Q.addColorStop(0.6, `rgba(${he}, ${fe}, ${ge}, ${qt})`), Q.addColorStop(1, `rgba(${he}, ${fe}, ${ge}, ${Wt})`);
5061
5066
  }
5062
- return Z;
5067
+ return Q;
5063
5068
  });
5064
- if (n.fillStyle = Ut, n.beginPath(), n.roundRect(ge, se, j, re, [1, 1, 0, 0]), n.fill(), M[k] > I + 2) {
5065
- const Z = F - M[k], Ge = y[k] > 0 ? 0.9 : Math.max(0.3, y[k] / wt);
5066
- n.fillStyle = `rgba(255, 255, 255, ${Ge})`, n.fillRect(ge, Z - 1, j, 2), Ge > 0.5 && !d.value && (n.shadowColor = we.glow, n.shadowBlur = 3, n.fillRect(ge, Z - 1, j, 2), n.shadowBlur = 0);
5069
+ if (a.fillStyle = Ut, a.beginPath(), a.roundRect(me, le, N, ie, [1, 1, 0, 0]), a.fill(), j[y] > A + 2) {
5070
+ const Q = V - j[y], Ge = W[y] > 0 ? 0.9 : Math.max(0.3, W[y] / wt);
5071
+ a.fillStyle = `rgba(255, 255, 255, ${Ge})`, a.fillRect(me, Q - 1, N, 2), Ge > 0.5 && !d.value && (a.shadowColor = we.glow, a.shadowBlur = 3, a.fillRect(me, Q - 1, N, 2), a.shadowBlur = 0);
5067
5072
  }
5068
5073
  }
5069
- l = requestAnimationFrame(_);
5074
+ l = requestAnimationFrame(J);
5070
5075
  }
5071
- r(_, "animate"), l = requestAnimationFrame(_);
5076
+ r(J, "animate"), l = requestAnimationFrame(J);
5072
5077
  }
5073
- r(oe, "startAnimation"), Ee(() => {
5074
- if (ie(o.value.bars), i.value) {
5075
- if (n = i.value.getContext("2d"), te(), typeof window < "u") {
5076
- window.addEventListener("resize", Y, { passive: !0 });
5078
+ r(ae, "startAnimation"), Ee(() => {
5079
+ if (B(o.value.bars), i.value) {
5080
+ if (a = i.value.getContext("2d"), ne(), typeof window < "u") {
5081
+ window.addEventListener("resize", X, { passive: !0 });
5077
5082
  const g = /* @__PURE__ */ r(() => {
5078
5083
  C.value = !document.hidden;
5079
5084
  }, "handleVisibilityChange");
5080
5085
  document.addEventListener("visibilitychange", g, { passive: !0 });
5081
5086
  }
5082
- oe();
5087
+ ae();
5083
5088
  }
5084
5089
  });
5085
- function Y() {
5090
+ function X() {
5086
5091
  if (typeof window < "u") {
5087
5092
  const g = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
5088
- g !== W && (W = g);
5093
+ g !== _ && (_ = g);
5089
5094
  }
5090
- te();
5095
+ ne();
5091
5096
  }
5092
- return r(Y, "onResize"), It(() => {
5093
- l && cancelAnimationFrame(l), typeof window < "u" && (window.removeEventListener("resize", Y), document.removeEventListener("visibilitychange", () => {
5097
+ return r(X, "onResize"), It(() => {
5098
+ l && cancelAnimationFrame(l), typeof window < "u" && (window.removeEventListener("resize", X), document.removeEventListener("visibilitychange", () => {
5094
5099
  C.value = !document.hidden;
5095
5100
  }));
5096
- }), ae(
5097
- [() => a.audioState?.mode, () => a.size],
5101
+ }), de(
5102
+ [() => n.audioState?.mode, () => n.size],
5098
5103
  () => {
5099
- h.length !== o.value.bars && ie(o.value.bars), !n && i.value && (n = i.value.getContext("2d")), l && cancelAnimationFrame(l), te(), oe();
5104
+ h.length !== o.value.bars && B(o.value.bars), !a && i.value && (a = i.value.getContext("2d")), l && cancelAnimationFrame(l), ne(), ae();
5100
5105
  },
5101
5106
  { immediate: !1 }
5102
- ), ae(i, (g) => {
5103
- g && !n && (n = g.getContext("2d"), te(), oe());
5104
- }), (g, u) => (f(), b("div", Xr, [
5107
+ ), de(i, (g) => {
5108
+ g && !a && (a = g.getContext("2d"), ne(), ae());
5109
+ }), (g, u) => (f(), b("div", es, [
5105
5110
  c("canvas", {
5106
5111
  ref_key: "canvasRef",
5107
5112
  ref: i,
@@ -5110,7 +5115,7 @@ const H = /* @__PURE__ */ r((e) => {
5110
5115
  }, null, 4)
5111
5116
  ]));
5112
5117
  }
5113
- }), ns = /* @__PURE__ */ O({
5118
+ }), as = /* @__PURE__ */ H({
5114
5119
  __name: "ElSelfAudioVisualizer",
5115
5120
  props: {
5116
5121
  selfController: {},
@@ -5120,10 +5125,10 @@ const H = /* @__PURE__ */ r((e) => {
5120
5125
  enableGlow: { type: Boolean }
5121
5126
  },
5122
5127
  setup(e) {
5123
- const a = Yt(e, ["selfController"]), t = L(() => {
5128
+ const n = Yt(e, ["selfController"]), t = z(() => {
5124
5129
  if (!e.selfController)
5125
5130
  return { mode: "idle" };
5126
- const o = e.selfController.voiceState.value, s = e.selfController.audioLevels.value, i = o.isSpeaking ? "speaking" : o.isProcessing ? "processing" : o.isListening ? "listening" : o.isConnected ? "connected" : "idle", n = /* @__PURE__ */ r(() => {
5131
+ const o = e.selfController.voiceState.value, s = e.selfController.audioLevels.value, i = o.isSpeaking ? "speaking" : o.isProcessing ? "processing" : o.isListening ? "listening" : o.isConnected ? "connected" : "idle", a = /* @__PURE__ */ r(() => {
5127
5132
  try {
5128
5133
  if (o.isSpeaking) {
5129
5134
  const l = e.selfController.getOutputFrequencyData();
@@ -5145,33 +5150,33 @@ const H = /* @__PURE__ */ r((e) => {
5145
5150
  mode: i,
5146
5151
  inputLevel: s.inputLevel,
5147
5152
  outputLevel: s.outputLevel,
5148
- getFrequencyData: n
5153
+ getFrequencyData: a
5149
5154
  };
5150
5155
  });
5151
- return (o, s) => (f(), ne(ss, Jt({ "audio-state": t.value }, a), null, 16, ["audio-state"]));
5156
+ return (o, s) => (f(), ce(ns, Jt({ "audio-state": t.value }, n), null, 16, ["audio-state"]));
5152
5157
  }
5153
- }), as = { class: "flex flex-col h-full items-center justify-center gap-4" }, is = { class: "flex-1 flex flex-col items-center justify-center space-y-8" }, ls = { class: "w-full max-w-md" }, cs = { class: "text-center flex gap-2 items-center text-xs" }, ds = { class: "flex items-center justify-center gap-2" }, us = {
5158
+ }), is = { class: "flex flex-col h-full items-center justify-center gap-4" }, ls = { class: "flex-1 flex flex-col items-center justify-center space-y-8" }, cs = { class: "w-full max-w-md" }, ds = { class: "text-center flex gap-2 items-center text-xs" }, us = { class: "flex items-center justify-center gap-2" }, hs = {
5154
5159
  key: 0,
5155
5160
  class: "size-2 bg-blue-500 rounded-full animate-pulse"
5156
- }, hs = {
5161
+ }, fs = {
5157
5162
  key: 1,
5158
5163
  class: "size-2 bg-green-500 rounded-full animate-pulse"
5159
- }, fs = {
5164
+ }, gs = {
5160
5165
  key: 2,
5161
5166
  class: "size-2 bg-white/50 rounded-full"
5162
- }, gs = {
5167
+ }, ms = {
5163
5168
  key: 3,
5164
5169
  class: "size-2 bg-red-500 rounded-full"
5165
- }, ms = { class: "text-white/70 text-sm max-w-xs leading-relaxed" }, bs = { class: "flex flex-col items-center space-y-6" }, ps = /* @__PURE__ */ O({
5170
+ }, bs = { class: "text-white/70 text-sm max-w-xs leading-relaxed" }, ps = { class: "flex flex-col items-center space-y-6" }, vs = /* @__PURE__ */ H({
5166
5171
  __name: "ElSelfVoice",
5167
5172
  props: {
5168
5173
  selfController: {}
5169
5174
  },
5170
5175
  setup(e) {
5171
- const a = L(() => e.selfController?.voiceState.value), t = L(() => a.value?.isConnected ? "red" : "green"), o = L(() => a.value?.isConnected ? "i-heroicons-phone-x-mark" : "i-heroicons-phone"), s = L(() => a.value?.isConnected ? "End Call" : "Start a Call"), i = L(() => {
5176
+ const n = z(() => e.selfController?.voiceState.value), t = z(() => n.value?.isConnected ? "red" : "green"), o = z(() => n.value?.isConnected ? "i-heroicons-phone-x-mark" : "i-heroicons-phone"), s = z(() => n.value?.isConnected ? "End Call" : "Start a Call"), i = z(() => {
5172
5177
  const d = e.selfController?.voiceState.value;
5173
5178
  return !!d?.error || d?.connectionStatus === "connecting";
5174
- }), n = L(() => a.value?.connectionStatus === "connecting");
5179
+ }), a = z(() => n.value?.connectionStatus === "connecting");
5175
5180
  async function l() {
5176
5181
  if (e.selfController)
5177
5182
  try {
@@ -5180,78 +5185,80 @@ const H = /* @__PURE__ */ r((e) => {
5180
5185
  console.error("Error toggling call:", d);
5181
5186
  }
5182
5187
  }
5183
- return r(l, "toggleCall"), (d, C) => (f(), b("div", as, [
5184
- c("div", is, [
5185
- c("div", ls, [
5186
- G(ns, {
5188
+ return r(l, "toggleCall"), (d, C) => (f(), b("div", is, [
5189
+ c("div", ls, [
5190
+ c("div", cs, [
5191
+ O(as, {
5187
5192
  "self-controller": e.selfController,
5188
5193
  "enable-wave-motion": "",
5189
5194
  "enable-glow": ""
5190
5195
  }, null, 8, ["self-controller"])
5191
5196
  ]),
5192
- c("div", cs, [
5193
- c("div", ds, [
5194
- e.selfController?.voiceState.value.isListening ? (f(), b("div", us)) : e.selfController?.voiceState.value.isSpeaking ? (f(), b("div", hs)) : e.selfController?.voiceState.value.isConnected && !e.selfController?.voiceState.value.isListening && !e.selfController?.voiceState.value.isSpeaking ? (f(), b("div", fs)) : e.selfController?.voiceState.value.error ? (f(), b("div", gs)) : P("", !0)
5197
+ c("div", ds, [
5198
+ c("div", us, [
5199
+ e.selfController?.voiceState.value.isListening ? (f(), b("div", hs)) : e.selfController?.voiceState.value.isSpeaking ? (f(), b("div", fs)) : e.selfController?.voiceState.value.isConnected && !e.selfController?.voiceState.value.isListening && !e.selfController?.voiceState.value.isSpeaking ? (f(), b("div", gs)) : e.selfController?.voiceState.value.error ? (f(), b("div", ms)) : L("", !0)
5195
5200
  ]),
5196
- c("p", ms, U(e.selfController?.voiceState.value.error ? `Error: ${e.selfController.voiceState.value.error}` : e.selfController?.voiceState.value.transcript || "Ready to start a call..."), 1)
5201
+ c("p", bs, q(e.selfController?.voiceState.value.error ? `Error: ${e.selfController.voiceState.value.error}` : e.selfController?.voiceState.value.transcript || "Ready to start a call..."), 1)
5197
5202
  ])
5198
5203
  ]),
5199
- c("div", bs, [
5200
- G(rt, {
5204
+ c("div", ps, [
5205
+ O(rt, {
5201
5206
  theme: t.value,
5202
5207
  icon: o.value,
5203
5208
  size: "lg",
5204
- loading: n.value,
5209
+ loading: a.value,
5205
5210
  disabled: i.value,
5206
5211
  onClick: l
5207
5212
  }, {
5208
- default: ee(() => [
5209
- ze(U(s.value), 1)
5213
+ default: re(() => [
5214
+ ze(q(s.value), 1)
5210
5215
  ]),
5211
5216
  _: 1
5212
5217
  }, 8, ["theme", "icon", "loading", "disabled"])
5213
5218
  ])
5214
5219
  ]));
5215
5220
  }
5216
- }), vs = {
5221
+ }), xs = {
5217
5222
  key: 0,
5218
5223
  class: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"
5219
- }, xs = ["data-quality"], ys = { class: "text-sm" }, ks = {
5224
+ }, ys = ["data-quality"], ks = { class: "text-sm" }, ws = {
5220
5225
  key: 0,
5221
5226
  class: "flex-1 basis-0 flex justify-end"
5222
- }, ws = {
5227
+ }, Cs = {
5223
5228
  key: 0,
5224
5229
  class: "h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/agent:px-6 max-w-md mx-auto w-full"
5225
- }, Cs = { class: "flex-1 basis-0 flex flex-col justify-start pt-8 gap-7" }, Ss = {
5230
+ }, Ss = { class: "flex-1 basis-0 flex flex-col justify-start pt-8 gap-7" }, Ms = {
5226
5231
  key: 0,
5227
5232
  class: "flex items-center justify-center gap-3"
5228
- }, Ms = ["href"], As = {
5233
+ }, As = ["href"], Is = {
5229
5234
  key: 1,
5230
5235
  class: "flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"
5231
- }, Is = { class: "max-w-md mx-auto" }, $s = {
5236
+ }, $s = { class: "max-w-md mx-auto" }, zs = {
5232
5237
  key: 2,
5233
5238
  class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"
5234
- }, zs = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, Es = {
5239
+ }, Es = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, Ts = {
5235
5240
  key: 2,
5236
5241
  class: "bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"
5237
- }, Ts = { class: "text-center max-w-md space-y-4" }, Ls = { class: "text-sm text-white/70 leading-relaxed" }, Ds = {
5242
+ }, Ls = { class: "text-center max-w-md space-y-4" }, Ds = { class: "text-sm text-white/70 leading-relaxed" }, Ps = {
5238
5243
  key: 3,
5239
5244
  class: "bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"
5240
- }, qs = /* @__PURE__ */ O({
5245
+ }, Ws = /* @__PURE__ */ H({
5241
5246
  __name: "SelfAgent",
5242
5247
  props: {
5243
5248
  sdk: {},
5244
5249
  self: {},
5245
5250
  context: {},
5246
5251
  firstMessage: {},
5252
+ buttonText: {},
5253
+ buttonIcon: {},
5247
5254
  hasClose: { type: Boolean, default: !1 },
5248
5255
  isActive: { type: Boolean, default: !0 },
5249
5256
  loading: { type: Boolean, default: !1 },
5250
5257
  theme: { default: "green" }
5251
5258
  },
5252
5259
  emits: ["close", "error"],
5253
- setup(e, { emit: a }) {
5254
- const t = a, o = Qt(), s = N(!1), i = N(!1), n = N(), l = N(), d = L(() => o.value?.agentMode?.value ?? "self"), C = L(() => e.sdk.activeUser.value !== void 0), m = L(() => zt.find((y) => y.mode === d.value));
5260
+ setup(e, { emit: n }) {
5261
+ const t = n, o = Qt(), s = R(!1), i = R(!1), a = R(), l = R(), d = z(() => o.value?.agentMode?.value ?? "self"), C = z(() => e.sdk.activeUser.value !== void 0), m = z(() => zt.find((k) => k.mode === d.value));
5255
5262
  function h() {
5256
5263
  o.value && o.value.destroy();
5257
5264
  try {
@@ -5261,54 +5268,63 @@ const H = /* @__PURE__ */ r((e) => {
5261
5268
  context: e.context,
5262
5269
  firstMessage: e.firstMessage
5263
5270
  });
5264
- } catch (M) {
5265
- throw console.error("SelfController creation failed:", M), M;
5271
+ } catch (B) {
5272
+ throw console.error("SelfController creation failed:", B), B;
5266
5273
  }
5267
5274
  }
5268
5275
  r(h, "createSelfController");
5269
- function x(M) {
5276
+ function x(B) {
5270
5277
  if (!l.value)
5271
5278
  return;
5272
- const y = so(M);
5273
- Object.entries(y).forEach(([T, ie]) => {
5274
- l.value.style.setProperty(`--primary-${T}`, ie);
5279
+ const k = so(B);
5280
+ Object.entries(k).forEach(([D, se]) => {
5281
+ l.value.style.setProperty(`--primary-${D}`, se);
5275
5282
  });
5276
5283
  }
5277
5284
  r(x, "applyTheme"), Ee(() => {
5278
5285
  try {
5279
5286
  h(), x(e.theme);
5280
- } catch (M) {
5281
- const y = M instanceof Error ? M.message : "Failed to initialize digital self";
5282
- n.value = y, t("error", y);
5287
+ } catch (B) {
5288
+ const k = B instanceof Error ? B.message : "Failed to initialize digital self";
5289
+ a.value = k, t("error", k);
5283
5290
  }
5284
5291
  }), It(() => {
5285
5292
  o.value && o.value.destroy();
5286
- }), ae(() => e.theme, (M) => {
5287
- x(M);
5288
- }), ae(() => e.sdk.activeUser.value, (M, y) => {
5289
- y && !M && o.value && o.value.setMode("self");
5290
- });
5291
- const z = L(() => e.self.cover?.src && e.self.cover?.quality === "low" ? !0 : !!(e.self.avatar?.src && e.self.avatar?.quality === "low")), A = L(() => {
5292
- const M = [z.value ? "backdrop-blur-sm" : ""];
5293
- return z.value && d.value === "self" ? M.push("from-black/80 via-black/60 to-black/80") : d.value === "self" ? M.push("from-black/70 via-black/50 to-black/80") : M.push("from-black/90 via-black/90 to-black/100"), M.join(" ");
5293
+ }), de(() => e.theme, (B) => {
5294
+ x(B);
5295
+ }), de(() => e.sdk.activeUser.value, (B, k) => {
5296
+ k && !B && o.value && o.value.setMode("self");
5294
5297
  });
5295
- return (M, y) => (f(), b("div", {
5298
+ const $ = z(() => e.self.cover?.src && e.self.cover?.quality === "low" ? !0 : !!(e.self.avatar?.src && e.self.avatar?.quality === "low")), M = z(() => {
5299
+ const B = [$.value ? "backdrop-blur-sm" : ""];
5300
+ return $.value && d.value === "self" ? B.push("from-black/80 via-black/60 to-black/80") : d.value === "self" ? B.push("from-black/70 via-black/50 to-black/80") : B.push("from-black/90 via-black/90 to-black/100"), B.join(" ");
5301
+ }), j = {
5302
+ phone: "i-heroicons-phone",
5303
+ calendar: "i-heroicons-calendar",
5304
+ question: "i-heroicons-question-mark-circle",
5305
+ message: "i-heroicons-chat-bubble-left-right",
5306
+ sparkles: "i-heroicons-sparkles"
5307
+ }, W = z(() => co({
5308
+ template: e.buttonText || "Talk to {name}",
5309
+ self: e.self
5310
+ })), Z = z(() => j[e.buttonIcon || "phone"] || j.phone);
5311
+ return (B, k) => (f(), b("div", {
5296
5312
  ref_key: "rootElement",
5297
5313
  ref: l,
5298
- key: K(Ye)(e.self),
5314
+ key: Y(Ye)(e.self),
5299
5315
  class: "fiction-sdk @container/agent self-agent w-full h-full overflow-hidden relative",
5300
5316
  "data-test": "self-agent"
5301
5317
  }, [
5302
- e.loading ? (f(), b("div", vs, [
5303
- G(ot, { class: "text-white size-8" })
5304
- ])) : e.self && !n.value ? (f(), b("div", {
5318
+ e.loading ? (f(), b("div", xs, [
5319
+ O(ot, { class: "text-white size-8" })
5320
+ ])) : e.self && !a.value ? (f(), b("div", {
5305
5321
  key: 1,
5306
5322
  class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
5307
- style: tt({ backgroundImage: `url(${K(Ye)(e.self) || K(qe)()})` }),
5323
+ style: tt({ backgroundImage: `url(${Y(Ye)(e.self) || Y(qe)()})` }),
5308
5324
  "data-quality": e.self.avatar?.quality || "none"
5309
5325
  }, [
5310
5326
  c("div", {
5311
- class: E(["absolute inset-0 bg-gradient-to-br z-0", A.value])
5327
+ class: E(["absolute inset-0 bg-gradient-to-br z-0", M.value])
5312
5328
  }, null, 2),
5313
5329
  c("div", {
5314
5330
  class: E(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", e.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
@@ -5324,93 +5340,93 @@ const H = /* @__PURE__ */ r((e) => {
5324
5340
  }, [
5325
5341
  c("button", {
5326
5342
  class: "cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",
5327
- onClick: y[0] || (y[0] = (T) => s.value = !0)
5328
- }, [...y[6] || (y[6] = [
5343
+ onClick: k[0] || (k[0] = (D) => s.value = !0)
5344
+ }, [...k[6] || (k[6] = [
5329
5345
  c("i", { class: "i-tabler-menu size-7" }, null, -1)
5330
5346
  ])])
5331
5347
  ], 2),
5332
5348
  c("button", {
5333
5349
  class: E(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0", { "bg-white/10": i.value }]),
5334
- onClick: y[1] || (y[1] = (T) => i.value = !0)
5350
+ onClick: k[1] || (k[1] = (D) => i.value = !0)
5335
5351
  }, [
5336
5352
  c("i", {
5337
5353
  class: E([m.value?.icon, "size-4 opacity-60"])
5338
5354
  }, null, 2),
5339
- c("span", ys, U(m.value?.label), 1),
5340
- y[7] || (y[7] = c("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
5355
+ c("span", ks, q(m.value?.label), 1),
5356
+ k[7] || (k[7] = c("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
5341
5357
  ], 2),
5342
- e.hasClose ? (f(), b("div", ks, [
5358
+ e.hasClose ? (f(), b("div", ws, [
5343
5359
  c("button", {
5344
5360
  class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
5345
- onClick: y[2] || (y[2] = At((T) => t("close", "button"), ["stop"]))
5346
- }, [...y[8] || (y[8] = [
5361
+ onClick: k[2] || (k[2] = At((D) => t("close", "button"), ["stop"]))
5362
+ }, [...k[8] || (k[8] = [
5347
5363
  c("i", { class: "size-6 i-tabler-x" }, null, -1)
5348
5364
  ])])
5349
- ])) : P("", !0)
5365
+ ])) : L("", !0)
5350
5366
  ], 2)
5351
5367
  ], 2),
5352
- d.value === "self" ? (f(), b("div", ws, [
5353
- y[9] || (y[9] = c("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
5354
- G(Rr, { self: e.self }, null, 8, ["self"]),
5355
- c("div", Cs, [
5356
- G(rt, {
5368
+ d.value === "self" ? (f(), b("div", Cs, [
5369
+ k[9] || (k[9] = c("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
5370
+ O(Gr, { self: e.self }, null, 8, ["self"]),
5371
+ c("div", Ss, [
5372
+ O(rt, {
5357
5373
  theme: "primary",
5358
5374
  size: "lg",
5359
5375
  class: "w-full",
5360
- icon: "i-heroicons-phone",
5376
+ icon: Z.value,
5361
5377
  "data-test": "voice-button",
5362
- onClick: y[3] || (y[3] = (T) => o.value?.setMode("talk"))
5378
+ onClick: k[3] || (k[3] = (D) => o.value?.setMode("talk"))
5363
5379
  }, {
5364
- default: ee(() => [
5365
- ze(" Talk to " + U(e.self.name), 1)
5380
+ default: re(() => [
5381
+ ze(q(W.value), 1)
5366
5382
  ]),
5367
5383
  _: 1
5368
- }),
5369
- e.self.accounts && e.self.accounts.length > 0 ? (f(), b("div", Ss, [
5370
- (f(!0), b(ke, null, Be(e.self.accounts.filter((T) => K(Ie)[T.platform]), (T) => (f(), b("a", {
5371
- key: `${T.platform}-${T.handle}`,
5372
- href: K(Ie)[T.platform].getUrl(T.handle),
5384
+ }, 8, ["icon"]),
5385
+ e.self.accounts && e.self.accounts.length > 0 ? (f(), b("div", Ms, [
5386
+ (f(!0), b(ke, null, Be(e.self.accounts.filter((D) => Y(Ie)[D.platform]), (D) => (f(), b("a", {
5387
+ key: `${D.platform}-${D.handle}`,
5388
+ href: Y(Ie)[D.platform].getUrl(D.handle),
5373
5389
  target: "_blank",
5374
5390
  class: "size-12 rounded-full text-white/60 hover:text-white hover:bg-white/5 border border-white/0 hover:border-white/10 flex items-center justify-center transition-all duration-200 hover:scale-105"
5375
5391
  }, [
5376
5392
  c("i", {
5377
- class: E([K(Ie)[T.platform].icon, "size-5"])
5393
+ class: E([Y(Ie)[D.platform].icon, "size-5"])
5378
5394
  }, null, 2)
5379
- ], 8, Ms))), 128))
5380
- ])) : P("", !0)
5395
+ ], 8, As))), 128))
5396
+ ])) : L("", !0)
5381
5397
  ])
5382
- ])) : d.value === "talk" ? (f(), b("div", As, [
5398
+ ])) : d.value === "talk" ? (f(), b("div", Is, [
5383
5399
  C.value ? (f(), b(ke, { key: 1 }, [
5384
5400
  c("div", null, [
5385
- c("div", Is, [
5386
- G(st, { self: e.self }, null, 8, ["self"])
5401
+ c("div", $s, [
5402
+ O(st, { self: e.self }, null, 8, ["self"])
5387
5403
  ])
5388
5404
  ]),
5389
- G(ps, { "self-controller": o.value }, null, 8, ["self-controller"])
5390
- ], 64)) : (f(), ne(mt, {
5405
+ O(vs, { "self-controller": o.value }, null, 8, ["self-controller"])
5406
+ ], 64)) : (f(), ce(mt, {
5391
5407
  key: 0,
5392
5408
  sdk: e.sdk
5393
5409
  }, null, 8, ["sdk"]))
5394
- ])) : (f(), b("div", $s, [
5395
- c("div", zs, [
5410
+ ])) : (f(), b("div", zs, [
5411
+ c("div", Es, [
5396
5412
  d.value === "chat" ? (f(), b(ke, { key: 0 }, [
5397
- C.value ? (f(), ne(Lr, {
5413
+ C.value ? (f(), ce(Dr, {
5398
5414
  key: 1,
5399
5415
  "self-controller": o.value,
5400
5416
  self: e.self
5401
- }, null, 8, ["self-controller", "self"])) : (f(), ne(mt, {
5417
+ }, null, 8, ["self-controller", "self"])) : (f(), ce(mt, {
5402
5418
  key: 0,
5403
5419
  sdk: e.sdk
5404
5420
  }, null, 8, ["sdk"]))
5405
- ], 64)) : d.value === "info" ? (f(), ne(xr, {
5421
+ ], 64)) : d.value === "info" ? (f(), ce(yr, {
5406
5422
  key: 1,
5407
5423
  self: e.self
5408
- }, null, 8, ["self"])) : P("", !0)
5424
+ }, null, 8, ["self"])) : L("", !0)
5409
5425
  ])
5410
5426
  ])),
5411
5427
  c("div", {
5412
5428
  class: E(["relative z-20 text-center py-5 px-6", d.value === "info" ? "hidden" : ""])
5413
- }, [...y[10] || (y[10] = [
5429
+ }, [...k[10] || (k[10] = [
5414
5430
  c("a", {
5415
5431
  href: "https://www.fiction.com",
5416
5432
  class: "flex items-center justify-center gap-1.5 text-[10px] font-sans font-normal text-white/50 hover:text-white/70 transition-colors"
@@ -5421,35 +5437,35 @@ const H = /* @__PURE__ */ r((e) => {
5421
5437
  ], -1)
5422
5438
  ])], 2)
5423
5439
  ], 2)
5424
- ], 12, xs)) : n.value ? (f(), b("div", Es, [
5425
- c("div", Ts, [
5426
- y[11] || (y[11] = c("div", { class: "flex justify-center" }, [
5440
+ ], 12, ys)) : a.value ? (f(), b("div", Ts, [
5441
+ c("div", Ls, [
5442
+ k[11] || (k[11] = c("div", { class: "flex justify-center" }, [
5427
5443
  c("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
5428
5444
  c("i", { class: "i-tabler-alert-circle size-6 text-red-400" })
5429
5445
  ])
5430
5446
  ], -1)),
5431
- y[12] || (y[12] = c("h3", { class: "text-lg font-medium" }, " Self Error ", -1)),
5432
- c("p", Ls, U(n.value), 1)
5447
+ k[12] || (k[12] = c("h3", { class: "text-lg font-medium" }, " Self Error ", -1)),
5448
+ c("p", Ds, q(a.value), 1)
5433
5449
  ])
5434
- ])) : (f(), b("div", Ds, " There was an error loading the digital self. Please try again later. ")),
5435
- G(Qr, {
5450
+ ])) : (f(), b("div", Ps, " There was an error loading the digital self. Please try again later. ")),
5451
+ O(Xr, {
5436
5452
  modelValue: s.value,
5437
- "onUpdate:modelValue": y[4] || (y[4] = (T) => s.value = T),
5453
+ "onUpdate:modelValue": k[4] || (k[4] = (D) => s.value = D),
5438
5454
  self: e.self,
5439
5455
  sdk: e.sdk,
5440
5456
  title: e.self.name
5441
5457
  }, null, 8, ["modelValue", "self", "sdk", "title"]),
5442
- G(Jr, {
5458
+ O(Qr, {
5443
5459
  modelValue: i.value,
5444
- "onUpdate:modelValue": y[5] || (y[5] = (T) => i.value = T),
5460
+ "onUpdate:modelValue": k[5] || (k[5] = (D) => i.value = D),
5445
5461
  "self-controller": o.value
5446
5462
  }, null, 8, ["modelValue", "self-controller"])
5447
5463
  ]));
5448
5464
  }
5449
- }), Ps = { class: "self-wrap" }, Vs = {
5465
+ }), Vs = { class: "self-wrap" }, Fs = {
5450
5466
  key: 0,
5451
5467
  class: "flex items-center justify-center h-full"
5452
- }, Ws = /* @__PURE__ */ O({
5468
+ }, Ks = /* @__PURE__ */ H({
5453
5469
  __name: "SelfWrap",
5454
5470
  props: {
5455
5471
  sdk: {},
@@ -5457,24 +5473,26 @@ const H = /* @__PURE__ */ r((e) => {
5457
5473
  handle: {},
5458
5474
  context: {},
5459
5475
  firstMessage: {},
5476
+ buttonText: {},
5477
+ buttonIcon: {},
5460
5478
  hasClose: { type: Boolean },
5461
5479
  apiBase: {}
5462
5480
  },
5463
5481
  setup(e) {
5464
- const a = eo("SelfWrap"), t = e, o = t.sdk || to.getInstance({
5482
+ const n = eo("SelfWrap"), t = e, o = t.sdk || to.getInstance({
5465
5483
  isDev: typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1,
5466
5484
  ...t.apiBase && { apiBase: t.apiBase }
5467
- }), s = N(!t.self), i = N(t.self), n = N();
5485
+ }), s = R(!t.self), i = R(t.self), a = R();
5468
5486
  return Ee(async () => {
5469
5487
  if (t.self) {
5470
- a.debug("Self provided via props, skipping fetch", {
5488
+ n.debug("Self provided via props, skipping fetch", {
5471
5489
  selfId: t.self.selfId,
5472
5490
  handle: t.self.handle
5473
5491
  }), s.value = !1;
5474
5492
  return;
5475
5493
  }
5476
5494
  if (!t.handle) {
5477
- n.value = "No handle or self provided", a.warn("SelfWrap mounted without handle or self", {
5495
+ a.value = "No handle or self provided", n.warn("SelfWrap mounted without handle or self", {
5478
5496
  propsReceived: {
5479
5497
  handle: t.handle,
5480
5498
  self: t.self,
@@ -5489,9 +5507,9 @@ const H = /* @__PURE__ */ r((e) => {
5489
5507
  return;
5490
5508
  }
5491
5509
  try {
5492
- s.value = !0, a.debug("Fetching public self", { handle: t.handle });
5510
+ s.value = !0, n.debug("Fetching public self", { handle: t.handle });
5493
5511
  const l = await o.getPublicSelf({ handle: t.handle });
5494
- l ? (i.value = l, a.debug("Successfully fetched public self", {
5512
+ l ? (i.value = l, n.debug("Successfully fetched public self", {
5495
5513
  selfId: l.selfId,
5496
5514
  handle: l.handle
5497
5515
  }), l.selfId && o.track({
@@ -5500,7 +5518,7 @@ const H = /* @__PURE__ */ r((e) => {
5500
5518
  properties: {
5501
5519
  viewSource: "widget"
5502
5520
  }
5503
- })) : (n.value = o.error.value || "Self not found", a.error("Failed to fetch public self - no data returned", {
5521
+ })) : (a.value = o.error.value || "Self not found", n.error("Failed to fetch public self - no data returned", {
5504
5522
  handle: t.handle,
5505
5523
  sdkError: o.error.value,
5506
5524
  sdkState: {
@@ -5510,7 +5528,7 @@ const H = /* @__PURE__ */ r((e) => {
5510
5528
  }
5511
5529
  }));
5512
5530
  } catch (l) {
5513
- n.value = l instanceof Error ? l.message : "Failed to fetch self", a.error("Exception while fetching public self", {
5531
+ a.value = l instanceof Error ? l.message : "Failed to fetch self", n.error("Exception while fetching public self", {
5514
5532
  handle: t.handle,
5515
5533
  error: l instanceof Error ? {
5516
5534
  message: l.message,
@@ -5523,11 +5541,11 @@ const H = /* @__PURE__ */ r((e) => {
5523
5541
  }
5524
5542
  });
5525
5543
  } finally {
5526
- s.value = !1, i.value || a.debug("SelfWrap component will render empty (silent failure)", {
5544
+ s.value = !1, i.value || n.debug("SelfWrap component will render empty (silent failure)", {
5527
5545
  state: {
5528
5546
  loading: s.value,
5529
5547
  hasSelf: !!i.value,
5530
- error: n.value
5548
+ error: a.value
5531
5549
  },
5532
5550
  props: {
5533
5551
  handle: t.handle,
@@ -5541,35 +5559,38 @@ const H = /* @__PURE__ */ r((e) => {
5541
5559
  }
5542
5560
  });
5543
5561
  }
5544
- }), (l, d) => (f(), b("div", Ps, [
5545
- s.value ? (f(), b("div", Vs, [...d[0] || (d[0] = [
5562
+ }), (l, d) => (f(), b("div", Vs, [
5563
+ s.value ? (f(), b("div", Fs, [...d[0] || (d[0] = [
5546
5564
  c("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
5547
5565
  ])])) : i.value ? $e(l.$slots, "default", {
5548
5566
  key: 1,
5549
- sdk: K(o),
5567
+ sdk: Y(o),
5550
5568
  self: i.value,
5551
5569
  context: e.context,
5552
5570
  firstMessage: e.firstMessage,
5571
+ buttonText: e.buttonText,
5572
+ buttonIcon: e.buttonIcon,
5553
5573
  loading: s.value
5554
- }) : P("", !0)
5574
+ }) : L("", !0)
5555
5575
  ]));
5556
5576
  }
5557
5577
  });
5558
5578
  export {
5559
5579
  no as A,
5560
- Ze as C,
5561
- Os as V,
5562
- Ws as _,
5563
- qs as a,
5580
+ _e as C,
5581
+ Hs as V,
5582
+ Ks as _,
5583
+ Ws as a,
5564
5584
  qe as b,
5565
5585
  ao as c,
5566
5586
  io as d,
5567
- Hs as e,
5587
+ Us as e,
5568
5588
  zt as f,
5569
5589
  Ye as g,
5570
5590
  gt as h,
5571
5591
  Ue as i,
5572
- Us as j,
5592
+ qs as j,
5593
+ co as k,
5573
5594
  lo as p
5574
5595
  };
5575
- //# sourceMappingURL=SelfWrap.vue_vue_type_script_setup_true_lang-DcjZRnSG.js.map
5596
+ //# sourceMappingURL=SelfWrap.vue_vue_type_script_setup_true_lang-Dy16trSb.js.map