bridgeapp-ai-chat-widget 0.0.3 → 0.0.4

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.
@@ -30923,7 +30923,7 @@ class ZY {
30923
30923
  return new URL(e, this.assetsUrl).href;
30924
30924
  }
30925
30925
  async loadAnimation(e, t) {
30926
- const a = (await this.fbxLoader.loadAsync(this.resolveAsset(`/assets/animations/${e}.fbx`))).animations[0], o = this.mixer.clipAction(a);
30926
+ const a = (await this.fbxLoader.loadAsync(this.resolveAsset(`/animations/${e}.fbx`))).animations[0], o = this.mixer.clipAction(a);
30927
30927
  o.weight = 1, t || (o.loop = o6, o.clampWhenFinished = !0), this.actions[e] = o;
30928
30928
  }
30929
30929
  fadeToAction(e, t) {
@@ -31056,11 +31056,11 @@ class QY {
31056
31056
  const { width: a, height: o } = this.canvas.getBoundingClientRect(), c = new zs(65, a / o, 0.1, 1e3);
31057
31057
  this.camera = c, this.setCameraMode("voice");
31058
31058
  const d = await this.textureLoader.loadAsync(
31059
- this.resolveAsset("/assets/textures/bg1.jpg")
31059
+ this.resolveAsset("/textures/bg1.jpg")
31060
31060
  );
31061
31061
  d.colorSpace = en, e.background = d;
31062
31062
  const h = new RF().setPath(
31063
- this.resolveAsset("/assets/textures/cube-map/")
31063
+ this.resolveAsset("/textures/cube-map/")
31064
31064
  );
31065
31065
  this.cubeTexture = await h.loadAsync([
31066
31066
  "px.png",
@@ -31071,33 +31071,33 @@ class QY {
31071
31071
  "nz.png"
31072
31072
  ]);
31073
31073
  const y = await this.textureLoader.loadAsync(
31074
- this.resolveAsset("/assets/textures/baked/body_baked.png")
31074
+ this.resolveAsset("/textures/baked/body_baked.png")
31075
31075
  );
31076
31076
  y.wrapS = _r, y.wrapT = _r;
31077
31077
  const _ = await this.textureLoader.loadAsync(
31078
- this.resolveAsset("/assets/textures/baked/head_baked.png")
31078
+ this.resolveAsset("/textures/baked/head_baked.png")
31079
31079
  ), p = await this.textureLoader.loadAsync(
31080
- this.resolveAsset("/assets/textures/baked/hair_baked.png")
31080
+ this.resolveAsset("/textures/baked/hair_baked.png")
31081
31081
  ), v = await this.textureLoader.loadAsync(
31082
- this.resolveAsset("/assets/textures/pbr/brows_base_color.png")
31082
+ this.resolveAsset("/textures/pbr/brows_base_color.png")
31083
31083
  ), S = await this.textureLoader.loadAsync(
31084
- this.resolveAsset("/assets/textures/pbr/eyes_base_color.png")
31084
+ this.resolveAsset("/textures/pbr/eyes_base_color.png")
31085
31085
  );
31086
31086
  S.wrapS = _r, S.wrapT = _r;
31087
31087
  const E = await this.textureLoader.loadAsync(
31088
- this.resolveAsset("/assets/textures/pbr/body_base_color.png")
31088
+ this.resolveAsset("/textures/pbr/body_base_color.png")
31089
31089
  );
31090
31090
  E.wrapS = _r, E.wrapT = _r;
31091
31091
  const A = await this.textureLoader.loadAsync(
31092
- this.resolveAsset("/assets/textures/pbr/body_metallic.png")
31092
+ this.resolveAsset("/textures/pbr/body_metallic.png")
31093
31093
  );
31094
31094
  A.wrapS = _r, A.wrapT = _r;
31095
31095
  const C = await this.textureLoader.loadAsync(
31096
- this.resolveAsset("/assets/textures/pbr/body_normal.png")
31096
+ this.resolveAsset("/textures/pbr/body_normal.png")
31097
31097
  );
31098
31098
  C.wrapS = _r, C.wrapT = _r;
31099
31099
  const w = await this.textureLoader.loadAsync(
31100
- this.resolveAsset("/assets/textures/pbr/body_roughness.png")
31100
+ this.resolveAsset("/textures/pbr/body_roughness.png")
31101
31101
  );
31102
31102
  w.wrapS = _r, w.wrapT = _r;
31103
31103
  const N = new PM({
@@ -31111,13 +31111,13 @@ class QY {
31111
31111
  map: y,
31112
31112
  normalMap: C
31113
31113
  }), z = await this.textureLoader.loadAsync(
31114
- this.resolveAsset("/assets/textures/pbr/hair_base_color.png")
31114
+ this.resolveAsset("/textures/pbr/hair_base_color.png")
31115
31115
  ), B = await this.textureLoader.loadAsync(
31116
- this.resolveAsset("/assets/textures/pbr/hair_metallic.png")
31116
+ this.resolveAsset("/textures/pbr/hair_metallic.png")
31117
31117
  ), j = await this.textureLoader.loadAsync(
31118
- this.resolveAsset("/assets/textures/pbr/hair_normal.png")
31118
+ this.resolveAsset("/textures/pbr/hair_normal.png")
31119
31119
  ), Y = await this.textureLoader.loadAsync(
31120
- this.resolveAsset("/assets/textures/pbr/hair_roughness.png")
31120
+ this.resolveAsset("/textures/pbr/hair_roughness.png")
31121
31121
  ), Z = new PM({
31122
31122
  map: z,
31123
31123
  normalMap: j,
@@ -31129,11 +31129,11 @@ class QY {
31129
31129
  map: p,
31130
31130
  normalMap: j
31131
31131
  }), F = await this.textureLoader.loadAsync(
31132
- this.resolveAsset("/assets/textures/pbr/head_base_color.png")
31132
+ this.resolveAsset("/textures/pbr/head_base_color.png")
31133
31133
  ), Q = await this.textureLoader.loadAsync(
31134
- this.resolveAsset("/assets/textures/pbr/head_metallic.png")
31134
+ this.resolveAsset("/textures/pbr/head_metallic.png")
31135
31135
  ), te = await this.textureLoader.loadAsync(
31136
- this.resolveAsset("/assets/textures/pbr/head_roughness.png")
31136
+ this.resolveAsset("/textures/pbr/head_roughness.png")
31137
31137
  ), re = new PM({
31138
31138
  map: F,
31139
31139
  metalnessMap: Q,
@@ -31145,11 +31145,11 @@ class QY {
31145
31145
  }), me = new gp({
31146
31146
  map: v
31147
31147
  }), q = await this.textureLoader.loadAsync(
31148
- this.resolveAsset("/assets/textures/shared/shadow_base_color.png")
31148
+ this.resolveAsset("/textures/shared/shadow_base_color.png")
31149
31149
  );
31150
31150
  q.wrapS = _r, q.wrapT = _r;
31151
31151
  const K = await this.textureLoader.loadAsync(
31152
- this.resolveAsset("/assets/textures/shared/shadow_opacity.png")
31152
+ this.resolveAsset("/textures/shared/shadow_opacity.png")
31153
31153
  );
31154
31154
  K.wrapS = _r, K.wrapT = _r, y.colorSpace = en, _.colorSpace = en, p.colorSpace = en, v.colorSpace = en, S.colorSpace = en, E.colorSpace = en, A.colorSpace = en, C.colorSpace = en, w.colorSpace = en, z.colorSpace = en, B.colorSpace = en, j.colorSpace = en, Y.colorSpace = en, F.colorSpace = en, Q.colorSpace = en, te.colorSpace = en, q.colorSpace = en, K.colorSpace = en, this.materialSets = {
31155
31155
  PBR: {
@@ -31166,7 +31166,7 @@ class QY {
31166
31166
  }
31167
31167
  };
31168
31168
  const ee = await this.fbxLoader.loadAsync(
31169
- this.resolveAsset("/assets/models/female_rig.fbx")
31169
+ this.resolveAsset("/models/female_rig.fbx")
31170
31170
  );
31171
31171
  e.add(ee), ee.traverse((we) => {
31172
31172
  if (we.name == "eye_shadows") {
@@ -49915,7 +49915,7 @@ function die({
49915
49915
  assetsUrl: t,
49916
49916
  onSelect: n
49917
49917
  }) {
49918
- const a = `${t}/assets/chat_trigger.png`, o = FB(i.message), c = Xne(o);
49918
+ const a = `${t}/chat_trigger.png`, o = FB(i.message), c = Xne(o);
49919
49919
  return /* @__PURE__ */ Je.jsxs(
49920
49920
  ju,
49921
49921
  {
@@ -50103,7 +50103,7 @@ i0.Toggle = function() {
50103
50103
  children: /* @__PURE__ */ Je.jsx(
50104
50104
  "img",
50105
50105
  {
50106
- src: `${t.assetsUrl}/assets/chat_trigger.png`,
50106
+ src: `${t.assetsUrl}/chat_trigger.png`,
50107
50107
  alt: "Chat trigger",
50108
50108
  className: "h-full w-full object-cover"
50109
50109
  }
@@ -4116,8 +4116,8 @@ void main() {
4116
4116
  14.88 G
4117
4117
  15.02 X
4118
4118
  15.43 X
4119
- `,Yq=["blendShape1.AE","blendShape1.ChJ","blendShape1.FV","blendShape1.Oh","blendShape1.Ah","blendShape1.Ih","blendShape1.L","blendShape1.SZ","blendShape1.Woo","blendShape1.MBP","blendShape1.Smile_Closed","blendShape1.Smile_Open","blendShape1.Kiss"],Wq={A:9,B:7,C:0,D:4,E:3,F:8,G:2,H:6,X:-1};class $q{constructor(e,t,n,a){this.model=e,this.head=t,this.fbxLoader=n,this.assetsUrl=a}animations=[];zeroMorphingInfluences=[0,0,0,0,0,0,0,0,0,0,0,0,0];visemeDataIndex=0;visemeData;mixer;activeActionName;actions={};async init(){this.mixer=new C9(this.model),await Promise.all([this.loadAnimation("idle",!0),this.loadAnimation("spin",!1),this.loadAnimation("voice_1",!1)]).then(()=>{this.actions.idle.play(),this.activeActionName="idle"})}resolveAsset(e){return new URL(e,this.assetsUrl).href}async loadAnimation(e,t){const a=(await this.fbxLoader.loadAsync(this.resolveAsset(`/assets/animations/${e}.fbx`))).animations[0],o=this.mixer.clipAction(a);o.weight=1,t||(o.loop=W4,o.clampWhenFinished=!0),this.actions[e]=o}fadeToAction(e,t){const n=this.actions[this.activeActionName];this.activeActionName=e;const a=this.actions[this.activeActionName];n!==a&&(n.fadeOut(t),this.resetMorphing()),a.reset().setEffectiveTimeScale(1).setEffectiveWeight(1).fadeIn(t).play(),this.mixer.addEventListener("finished",o=>{o.action!==this.actions.idle&&this.setAction("idle")})}setAction(e){this.activeActionName=e,this.actions[this.activeActionName].reset().setEffectiveTimeScale(1).setEffectiveWeight(1).play()}reset(){this.visemeDataIndex=0}setVisemeData(){this.visemeData=Xq.trim().split(`
4120
- `).map(e=>{const t=e.split(" ");return{time:Number(t[0]),viseme:t[1]}}).filter(e=>e.viseme!=="X")}convertVisemeDataToAnimationScenario(){}update(e,t=0){this.mixer&&this.mixer.update(e),!(this.visemeDataIndex>=this.visemeData.length)&&t&&t>=this.visemeData[this.visemeDataIndex].time-this.blendShapeResetAnimationLength*.7&&(this.playVisemeAnimation(t,this.visemeData[this.visemeDataIndex],this.visemeData[this.visemeDataIndex+1]),this.visemeDataIndex++)}resetMorphing(){this.animations.forEach(e=>e.kill()),df.to(this.head.morphTargetInfluences,this.blendShapeResetAnimationLength,this.zeroMorphingInfluences)}blendShapeAnimationLength=.2;blendShapeResetAnimationLength=.1;playVisemeAnimation(e,t,n){if(this.resetMorphing(),t.viseme==="X")return;let a=1,o=t.viseme;const c=Yq[Wq[o]],d=this.head?.morphTargetDictionary[c],h=n?.time-e,y=Math.min(this.blendShapeAnimationLength,h-.07),_={influence:0},p=df.to(_,{influence:a,duration:y,delay:this.blendShapeResetAnimationLength*.7,onUpdate:()=>{this.head.morphTargetInfluences[d]=_.influence}}),v=df.to(_,{influence:0,duration:this.blendShapeAnimationLength,delay:y+.07,onUpdate:()=>{this.head.morphTargetInfluences[d]=_.influence}});this.animations=[p,v]}shapeFadeInDuration=.6;shapeFadeOutDuration=.6;showcaseBlendShape(e){this.resetMorphing();const t=this.head?.morphTargetDictionary[e],n={influence:0};df.to(n,{influence:1,duration:this.shapeFadeInDuration,delay:this.blendShapeResetAnimationLength,onUpdate:()=>{this.head.morphTargetInfluences[t]=n.influence}}),df.to(n,{influence:0,duration:this.shapeFadeOutDuration,delay:this.blendShapeResetAnimationLength+3,onUpdate:()=>{this.head.morphTargetInfluences[t]=n.influence}})}}const Zq={voice:{position:new xe(0,140,200),lookAt:new xe(-7,115,0),fov:35},text:{position:new xe(0,140,200),lookAt:new xe(-7,115,0),fov:35}};class Kq{constructor(e,t){this.canvas=e,this.assetsUrl=t,this.renderer=new jG({canvas:this.canvas,antialias:!0,powerPreference:"high-performance",logarithmicDepthBuffer:!0,alpha:!0}),this.renderer.outputColorSpace=Jt,this.renderer.setPixelRatio(window.devicePixelRatio),this.init()}renderer;materialSets;materialSetType="Phong";cubeTexture;fbxLoader=new mj;textureLoader=new $L;clock=new m9;scene;camera;hair;head;body;animationManager;resolveAsset(e){return new URL(e,this.assetsUrl).href}async init(){const e=new b7;this.scene=e;const t=new eN(4210752,50);e.add(t);const n=new JL(0,10);n.position.set(10,10,5),this.scene.add(n);const{width:a,height:o}=this.canvas.getBoundingClientRect(),c=new fs(65,a/o,.1,1e3);this.camera=c,this.setCameraMode("voice");const d=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/bg1.jpg"));d.colorSpace=Jt,e.background=d;const h=new l9().setPath(this.resolveAsset("/assets/textures/cube-map/"));this.cubeTexture=await h.loadAsync(["px.png","nx.png","py.png","ny.png","pz.png","nz.png"]);const y=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/baked/body_baked.png"));y.wrapS=ur,y.wrapT=ur;const _=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/baked/head_baked.png")),p=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/baked/hair_baked.png")),v=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/brows_base_color.png")),S=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/eyes_base_color.png"));S.wrapS=ur,S.wrapT=ur;const E=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/body_base_color.png"));E.wrapS=ur,E.wrapT=ur;const A=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/body_metallic.png"));A.wrapS=ur,A.wrapT=ur;const C=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/body_normal.png"));C.wrapS=ur,C.wrapT=ur;const w=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/body_roughness.png"));w.wrapS=ur,w.wrapT=ur;const N=new PT({map:E,normalMap:C,metalnessMap:A,metalness:1,roughnessMap:w,envMap:this.cubeTexture}),L=new Id({map:y,normalMap:C}),z=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/hair_base_color.png")),B=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/hair_metallic.png")),j=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/hair_normal.png")),Y=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/hair_roughness.png")),Z=new PT({map:z,normalMap:j,metalnessMap:B,metalness:1,roughnessMap:Y,envMap:this.cubeTexture}),k=new Id({map:p,normalMap:j}),F=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/head_base_color.png")),Q=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/head_metallic.png")),te=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/pbr/head_roughness.png")),re=new PT({map:F,metalnessMap:Q,metalness:1,roughnessMap:te,envMap:this.cubeTexture}),he=new Id({map:_}),me=new Id({map:v}),q=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/shared/shadow_base_color.png"));q.wrapS=ur,q.wrapT=ur;const K=await this.textureLoader.loadAsync(this.resolveAsset("/assets/textures/shared/shadow_opacity.png"));K.wrapS=ur,K.wrapT=ur,y.colorSpace=Jt,_.colorSpace=Jt,p.colorSpace=Jt,v.colorSpace=Jt,S.colorSpace=Jt,E.colorSpace=Jt,A.colorSpace=Jt,C.colorSpace=Jt,w.colorSpace=Jt,z.colorSpace=Jt,B.colorSpace=Jt,j.colorSpace=Jt,Y.colorSpace=Jt,F.colorSpace=Jt,Q.colorSpace=Jt,te.colorSpace=Jt,q.colorSpace=Jt,K.colorSpace=Jt,this.materialSets={PBR:{hair:Z,brows:me,head:re,body:N},Phong:{hair:k,brows:me,head:he,body:L}};const ee=await this.fbxLoader.loadAsync(this.resolveAsset("/assets/models/female_rig.fbx"));e.add(ee),ee.traverse(we=>{if(we.name=="eye_shadows"){const V=we.material;V.map=q,V.alphaMap=K,V.transparent=!0;return}if(we.name=="Hair"){this.hair=we;return}if(we.name=="Eyes"){const ze=we,V=new PT({map:S});ze.material=V;return}if(we.name=="Head"){this.head=we;return}if(we.name=="Body"){this.body=we;return}}),this.animationManager=new $q(ee,this.head,this.fbxLoader,this.assetsUrl),await this.animationManager.init(),this.animationManager.setVisemeData(),this.setMaterialsByType(this.materialSetType),this.animate(),this.onResize()}tempLookAt=new xe;setCameraMode(e){const{position:t,lookAt:n,fov:a}=Zq[e];df.to(this.camera.position,{x:t.x,y:t.y,z:t.z}),df.to(this.camera,{fov:a,onUpdate:()=>{this.camera.updateProjectionMatrix()}}),df.to(this.tempLookAt,{x:n.x,y:n.y,z:n.z,onUpdate:()=>{this.camera.lookAt(this.tempLookAt)}})}setMaterialsByType(e){const{hair:t,brows:n,head:a,body:o}=this.materialSets[e];this.hair.material=t,this.head.material[0]=a,this.head.material[1]=n,this.body.material=o}switchMaterials=()=>{this.materialSetType=this.materialSetType==="PBR"?"Phong":"PBR",this.setMaterialsByType(this.materialSetType)};width=0;height=0;onResize=(e,t)=>{if(!e||!t){const n=this.canvas.getBoundingClientRect();e=n.width,t=n.height}!e||!t||e==this.width&&t==this.height||(this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t,!1),this.render(),this.width=e,this.height=t)};animate=()=>{requestAnimationFrame(this.animate);const e=this.clock.getDelta();this.animationManager.update(e,0),this.render()};speak=()=>{this.animationManager.reset(),this.animationManager.fadeToAction("voice_1",.3)};spin=()=>{this.animationManager.fadeToAction("spin",.3)};render(){this.renderer.render(this.scene,this.camera)}smileClosed=()=>{this.showcaseBlendShape("blendShape1.Smile_Closed")};smileOpen=()=>{this.showcaseBlendShape("blendShape1.Smile_Open")};kiss=()=>{this.showcaseBlendShape("blendShape1.Kiss")};showcaseBlendShape(e){this.animationManager.showcaseBlendShape(e)}}const Qq=i=>Ze.createElement("svg",{width:15,height:22,viewBox:"0 0 15 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M3 10.5V4.5C3 3.30653 3.47411 2.16193 4.31802 1.31802C5.16193 0.474106 6.30653 0 7.5 0C8.69347 0 9.83807 0.474106 10.682 1.31802C11.5259 2.16193 12 3.30653 12 4.5V10.5C12 11.6935 11.5259 12.8381 10.682 13.682C9.83807 14.5259 8.69347 15 7.5 15C6.30653 15 5.16193 14.5259 4.31802 13.682C3.47411 12.8381 3 11.6935 3 10.5ZM15 10.5C15 10.3011 14.921 10.1103 14.7803 9.96967C14.6397 9.82902 14.4489 9.75 14.25 9.75C14.0511 9.75 13.8603 9.82902 13.7197 9.96967C13.579 10.1103 13.5 10.3011 13.5 10.5C13.5 12.0913 12.8679 13.6174 11.7426 14.7426C10.6174 15.8679 9.0913 16.5 7.5 16.5C5.9087 16.5 4.38258 15.8679 3.25736 14.7426C2.13214 13.6174 1.5 12.0913 1.5 10.5C1.5 10.3011 1.42098 10.1103 1.28033 9.96967C1.13968 9.82902 0.948912 9.75 0.75 9.75C0.551088 9.75 0.360322 9.82902 0.21967 9.96967C0.0790178 10.1103 0 10.3011 0 10.5C0.00228386 12.3586 0.693677 14.1504 1.94048 15.5288C3.18728 16.9072 4.90091 17.7743 6.75 17.9625V21C6.75 21.1989 6.82902 21.3897 6.96967 21.5303C7.11032 21.671 7.30109 21.75 7.5 21.75C7.69891 21.75 7.88968 21.671 8.03033 21.5303C8.17098 21.3897 8.25 21.1989 8.25 21V17.9625C10.0991 17.7743 11.8127 16.9072 13.0595 15.5288C14.3063 14.1504 14.9977 12.3586 15 10.5Z",fill:"white"})),Jq=i=>Ze.createElement("svg",{width:17,height:22,viewBox:"0 0 17 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M16.2483 20.05C16.1011 20.1838 15.9068 20.2536 15.7082 20.2441C15.5095 20.2346 15.3227 20.1466 15.189 19.9994L12.2902 16.8119C11.2986 17.4511 10.1683 17.8436 8.99395 17.9566V20.995C8.99395 21.1939 8.91494 21.3847 8.77428 21.5253C8.63363 21.666 8.44287 21.745 8.24395 21.745C8.04504 21.745 7.85428 21.666 7.71362 21.5253C7.57297 21.3847 7.49395 21.1939 7.49395 20.995V17.9575C5.64487 17.7694 3.93123 16.9022 2.68443 15.5238C1.43763 14.1454 0.746237 12.3536 0.743953 10.495C0.743953 10.2961 0.822971 10.1053 0.963623 9.96468C1.10428 9.82403 1.29504 9.74501 1.49395 9.74501C1.69287 9.74501 1.88363 9.82403 2.02428 9.96468C2.16494 10.1053 2.24395 10.2961 2.24395 10.495C2.24569 12.0858 2.87839 13.6109 4.00323 14.7357C5.12807 15.8606 6.65319 16.4933 8.24395 16.495C9.3051 16.4981 10.3477 16.2172 11.2636 15.6813L10.223 14.5375C9.53688 14.8735 8.77649 15.0293 8.01351 14.9902C7.25052 14.951 6.51006 14.7183 5.86189 14.3139C5.21372 13.9095 4.67918 13.3467 4.30864 12.6786C3.93811 12.0105 3.74377 11.259 3.74395 10.495V7.4097L0.188953 3.49939C0.0579834 3.35175 -0.00951799 3.15845 0.00108397 2.96138C0.0116859 2.76431 0.0995364 2.57936 0.245589 2.44663C0.391643 2.3139 0.584126 2.24408 0.781309 2.25232C0.978492 2.26056 1.16448 2.34619 1.29895 2.49064L16.299 18.9906C16.4327 19.1378 16.5025 19.3321 16.493 19.5308C16.4835 19.7295 16.3955 19.9162 16.2483 20.05ZM13.9805 14.1316C14.0828 14.1823 14.1954 14.2086 14.3096 14.2085C14.4501 14.2085 14.5878 14.169 14.7069 14.0946C14.8261 14.0202 14.922 13.9138 14.9836 13.7875C15.4869 12.7631 15.7471 11.6364 15.744 10.495C15.744 10.2961 15.6649 10.1053 15.5243 9.96468C15.3836 9.82403 15.1929 9.74501 14.994 9.74501C14.795 9.74501 14.6043 9.82403 14.4636 9.96468C14.323 10.1053 14.244 10.2961 14.244 10.495C14.2466 11.4079 14.0387 12.309 13.6365 13.1285C13.5491 13.3071 13.5363 13.5131 13.6008 13.7013C13.6653 13.8894 13.8019 14.0442 13.9805 14.1316ZM11.4183 11.3922C11.5158 11.4995 11.6422 11.5762 11.7824 11.6131C11.9225 11.65 12.0703 11.6456 12.208 11.6002C12.3456 11.5549 12.4672 11.4707 12.558 11.3577C12.6488 11.2448 12.7049 11.1079 12.7196 10.9638C12.7356 10.808 12.7437 10.6516 12.744 10.495V4.49501C12.7428 3.46146 12.3859 2.45981 11.7333 1.6584C11.0806 0.85698 10.172 0.304654 9.16007 0.0942441C8.14816 -0.116166 7.09467 0.0281652 6.17664 0.502981C5.25861 0.977798 4.53201 1.75415 4.11895 2.70158C4.06128 2.834 4.04308 2.98027 4.06652 3.1228C4.08997 3.26532 4.15408 3.39804 4.25114 3.50501L11.4183 11.3922Z"})),eX=i=>Ze.createElement("svg",{width:19,height:17,viewBox:"0 0 19 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M12.5227 3.81607C11.8966 2.45748 10.8252 1.35355 9.48597 0.687157C8.14671 0.0207681 6.61998 -0.168078 5.15872 0.151907C3.69745 0.471891 2.38936 1.2815 1.45116 2.4466C0.512966 3.6117 0.000969112 5.06237 0 6.55826V11.5583C0 11.9727 0.16462 12.3701 0.457646 12.6631C0.750671 12.9561 1.1481 13.1208 1.5625 13.1208H5.63281C6.16643 14.2418 7.00649 15.1889 8.05583 15.8525C9.10517 16.5161 10.3209 16.8692 11.5625 16.8708H16.5625C16.9769 16.8708 17.3743 16.7061 17.6674 16.4131C17.9604 16.1201 18.125 15.7227 18.125 15.3083V10.3083C18.1251 8.73409 17.5593 7.21234 16.5309 6.02056C15.5024 4.82878 14.0799 4.04638 12.5227 3.81607ZM1.875 6.55826C1.875 5.63116 2.14992 4.72488 2.66499 3.95402C3.18006 3.18317 3.91214 2.58236 4.76867 2.22757C5.6252 1.87278 6.5677 1.77996 7.47699 1.96082C8.38627 2.14169 9.2215 2.58813 9.87706 3.24369C10.5326 3.89925 10.9791 4.73448 11.1599 5.64377C11.3408 6.55306 11.248 7.49556 10.8932 8.35209C10.5384 9.20861 9.93759 9.9407 9.16674 10.4558C8.39588 10.9708 7.4896 11.2458 6.5625 11.2458H1.875V6.55826ZM16.25 14.9958H11.5625C10.8125 14.9949 10.0737 14.8145 9.40771 14.4697C8.74173 14.1249 8.16796 13.6256 7.73438 13.0137C9.36318 12.7195 10.8205 11.8202 11.8138 10.4962C12.8071 9.17219 13.2629 7.52154 13.0898 5.87544C14.0125 6.19342 14.8129 6.79144 15.3794 7.58608C15.9459 8.38072 16.2502 9.33236 16.25 10.3083V14.9958Z"}));function aU(i){var e,t,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var a=i.length;for(e=0;e<a;e++)i[e]&&(t=aU(i[e]))&&(n&&(n+=" "),n+=t)}else for(t in i)i[t]&&(n&&(n+=" "),n+=t);return n}function tX(){for(var i,e,t=0,n="",a=arguments.length;t<a;t++)(i=arguments[t])&&(e=aU(i))&&(n&&(n+=" "),n+=e);return n}const nX=(i,e)=>{const t=new Array(i.length+e.length);for(let n=0;n<i.length;n++)t[n]=i[n];for(let n=0;n<e.length;n++)t[i.length+n]=e[n];return t},iX=(i,e)=>({classGroupId:i,validator:e}),sU=(i=new Map,e=null,t)=>({nextPart:i,validators:e,classGroupId:t}),cE="-",oU=[],rX="arbitrary..",aX=i=>{const e=oX(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return sX(c);const d=c.split(cE),h=d[0]===""&&d.length>1?1:0;return lU(d,h,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=n[c],y=t[c];return h?y?nX(y,h):h:y||oU}return t[c]||oU}}},lU=(i,e,t)=>{if(i.length-e===0)return t.classGroupId;const a=i[e],o=t.nextPart.get(a);if(o){const y=lU(i,e+1,o);if(y)return y}const c=t.validators;if(c===null)return;const d=e===0?i.join(cE):i.slice(e).join(cE),h=c.length;for(let y=0;y<h;y++){const _=c[y];if(_.validator(d))return _.classGroupId}},sX=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=i.slice(1,-1),t=e.indexOf(":"),n=e.slice(0,t);return n?rX+n:void 0})(),oX=i=>{const{theme:e,classGroups:t}=i;return lX(t,e)},lX=(i,e)=>{const t=sU();for(const n in i){const a=i[n];Q3(a,t,n,e)}return t},Q3=(i,e,t,n)=>{const a=i.length;for(let o=0;o<a;o++){const c=i[o];cX(c,e,t,n)}},cX=(i,e,t,n)=>{if(typeof i=="string"){uX(i,e,t);return}if(typeof i=="function"){fX(i,e,t,n);return}dX(i,e,t,n)},uX=(i,e,t)=>{const n=i===""?e:cU(e,i);n.classGroupId=t},fX=(i,e,t,n)=>{if(hX(i)){Q3(i(n),e,t,n);return}e.validators===null&&(e.validators=[]),e.validators.push(iX(t,i))},dX=(i,e,t,n)=>{const a=Object.entries(i),o=a.length;for(let c=0;c<o;c++){const[d,h]=a[c];Q3(h,cU(e,d),t,n)}},cU=(i,e)=>{let t=i;const n=e.split(cE),a=n.length;for(let o=0;o<a;o++){const c=n[o];let d=t.nextPart.get(c);d||(d=sU(),t.nextPart.set(c,d)),t=d}return t},hX=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,pX=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),n=Object.create(null);const a=(o,c)=>{t[o]=c,e++,e>i&&(e=0,n=t,t=Object.create(null))};return{get(o){let c=t[o];if(c!==void 0)return c;if((c=n[o])!==void 0)return a(o,c),c},set(o,c){o in t?t[o]=c:a(o,c)}}},J3="!",uU=":",mX=[],fU=(i,e,t,n,a)=>({modifiers:i,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:n,isExternal:a}),gX=i=>{const{prefix:e,experimentalParseClassName:t}=i;let n=a=>{const o=[];let c=0,d=0,h=0,y;const _=a.length;for(let A=0;A<_;A++){const C=a[A];if(c===0&&d===0){if(C===uU){o.push(a.slice(h,A)),h=A+1;continue}if(C==="/"){y=A;continue}}C==="["?c++:C==="]"?c--:C==="("?d++:C===")"&&d--}const p=o.length===0?a:a.slice(h);let v=p,S=!1;p.endsWith(J3)?(v=p.slice(0,-1),S=!0):p.startsWith(J3)&&(v=p.slice(1),S=!0);const E=y&&y>h?y-h:void 0;return fU(o,S,v,E)};if(e){const a=e+uU,o=n;n=c=>c.startsWith(a)?o(c.slice(a.length)):fU(mX,!1,c,void 0,!0)}if(t){const a=n;n=o=>t({className:o,parseClassName:a})}return n},yX=i=>{const e=new Map;return i.orderSensitiveModifiers.forEach((t,n)=>{e.set(t,1e6+n)}),t=>{const n=[];let a=[];for(let o=0;o<t.length;o++){const c=t[o],d=c[0]==="[",h=e.has(c);d||h?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(c)):a.push(c)}return a.length>0&&(a.sort(),n.push(...a)),n}},vX=i=>({cache:pX(i.cacheSize),parseClassName:gX(i),sortModifiers:yX(i),...aX(i)}),_X=/\s+/,bX=(i,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=e,c=[],d=i.trim().split(_X);let h="";for(let y=d.length-1;y>=0;y-=1){const _=d[y],{isExternal:p,modifiers:v,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:A}=t(_);if(p){h=_+(h.length>0?" "+h:h);continue}let C=!!A,w=n(C?E.substring(0,A):E);if(!w){if(!C){h=_+(h.length>0?" "+h:h);continue}if(w=n(E),!w){h=_+(h.length>0?" "+h:h);continue}C=!1}const N=v.length===0?"":v.length===1?v[0]:o(v).join(":"),L=S?N+J3:N,z=L+w;if(c.indexOf(z)>-1)continue;c.push(z);const B=a(w,C);for(let j=0;j<B.length;++j){const Y=B[j];c.push(L+Y)}h=_+(h.length>0?" "+h:h)}return h},xX=(...i)=>{let e=0,t,n,a="";for(;e<i.length;)(t=i[e++])&&(n=dU(t))&&(a&&(a+=" "),a+=n);return a},dU=i=>{if(typeof i=="string")return i;let e,t="";for(let n=0;n<i.length;n++)i[n]&&(e=dU(i[n]))&&(t&&(t+=" "),t+=e);return t},SX=(i,...e)=>{let t,n,a,o;const c=h=>{const y=e.reduce((_,p)=>p(_),i());return t=vX(y),n=t.cache.get,a=t.cache.set,o=d,d(h)},d=h=>{const y=n(h);if(y)return y;const _=bX(h,t);return a(h,_),_};return o=c,(...h)=>o(xX(...h))},TX=[],$r=i=>{const e=t=>t[i]||TX;return e.isThemeGetter=!0,e},hU=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EX=/^\d+\/\d+$/,MX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AX=/\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$/,wX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,CX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fy=i=>EX.test(i),Mn=i=>!!i&&!Number.isNaN(Number(i)),Zd=i=>!!i&&Number.isInteger(Number(i)),eR=i=>i.endsWith("%")&&Mn(i.slice(0,-1)),hf=i=>MX.test(i),DX=()=>!0,OX=i=>AX.test(i)&&!wX.test(i),mU=()=>!1,LX=i=>CX.test(i),NX=i=>RX.test(i),UX=i=>!wt(i)&&!Ct(i),kX=i=>dy(i,bU,mU),wt=i=>hU.test(i),dm=i=>dy(i,xU,OX),tR=i=>dy(i,FX,Mn),gU=i=>dy(i,vU,mU),zX=i=>dy(i,_U,NX),uE=i=>dy(i,SU,LX),Ct=i=>pU.test(i),O1=i=>hy(i,xU),IX=i=>hy(i,HX),yU=i=>hy(i,vU),BX=i=>hy(i,bU),PX=i=>hy(i,_U),fE=i=>hy(i,SU,!0),dy=(i,e,t)=>{const n=hU.exec(i);return n?n[1]?e(n[1]):t(n[2]):!1},hy=(i,e,t=!1)=>{const n=pU.exec(i);return n?n[1]?e(n[1]):t:!1},vU=i=>i==="position"||i==="percentage",_U=i=>i==="image"||i==="url",bU=i=>i==="length"||i==="size"||i==="bg-size",xU=i=>i==="length",FX=i=>i==="number",HX=i=>i==="family-name",SU=i=>i==="shadow",VX=SX(()=>{const i=$r("color"),e=$r("font"),t=$r("text"),n=$r("font-weight"),a=$r("tracking"),o=$r("leading"),c=$r("breakpoint"),d=$r("container"),h=$r("spacing"),y=$r("radius"),_=$r("shadow"),p=$r("inset-shadow"),v=$r("text-shadow"),S=$r("drop-shadow"),E=$r("blur"),A=$r("perspective"),C=$r("aspect"),w=$r("ease"),N=$r("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...z(),Ct,wt],j=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],Z=()=>[Ct,wt,h],k=()=>[fy,"full","auto",...Z()],F=()=>[Zd,"none","subgrid",Ct,wt],Q=()=>["auto",{span:["full",Zd,Ct,wt]},Zd,Ct,wt],te=()=>[Zd,"auto",Ct,wt],re=()=>["auto","min","max","fr",Ct,wt],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...Z()],K=()=>[fy,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Z()],ee=()=>[i,Ct,wt],we=()=>[...z(),yU,gU,{position:[Ct,wt]}],ze=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",BX,kX,{size:[Ct,wt]}],oe=()=>[eR,O1,dm],Se=()=>["","none","full",y,Ct,wt],Re=()=>["",Mn,O1,dm],Qe=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Mn,eR,yU,gU],nt=()=>["","none",E,Ct,wt],lt=()=>["none",Mn,Ct,wt],ut=()=>["none",Mn,Ct,wt],We=()=>[Mn,Ct,wt],Ln=()=>[fy,"full",...Z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hf],breakpoint:[hf],color:[DX],container:[hf],"drop-shadow":[hf],ease:["in","out","in-out"],font:[UX],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hf],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hf],shadow:[hf],spacing:["px",Mn],text:[hf],"text-shadow":[hf],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fy,wt,Ct,C]}],container:["container"],columns:[{columns:[Mn,wt,Ct,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Zd,"auto",Ct,wt]}],basis:[{basis:[fy,"full","auto",d,...Z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Mn,fy,"auto","initial","none",wt]}],grow:[{grow:["",Mn,Ct,wt]}],shrink:[{shrink:["",Mn,Ct,wt]}],order:[{order:[Zd,"first","last","none",Ct,wt]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:Z()}],"gap-x":[{"gap-x":Z()}],"gap-y":[{"gap-y":Z()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:Z()}],px:[{px:Z()}],py:[{py:Z()}],ps:[{ps:Z()}],pe:[{pe:Z()}],pt:[{pt:Z()}],pr:[{pr:Z()}],pb:[{pb:Z()}],pl:[{pl:Z()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":Z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Z()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",t,O1,dm]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ct,tR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eR,wt]}],"font-family":[{font:[IX,wt,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ct,wt]}],"line-clamp":[{"line-clamp":[Mn,"none",Ct,tR]}],leading:[{leading:[o,...Z()]}],"list-image":[{"list-image":["none",Ct,wt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ct,wt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Mn,"from-font","auto",Ct,dm]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[Mn,"auto",Ct,wt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ct,wt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ct,wt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:ze()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zd,Ct,wt],radial:["",Ct,wt],conic:[Zd,Ct,wt]},PX,zX]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:Re()}],"border-w-x":[{"border-x":Re()}],"border-w-y":[{"border-y":Re()}],"border-w-s":[{"border-s":Re()}],"border-w-e":[{"border-e":Re()}],"border-w-t":[{"border-t":Re()}],"border-w-r":[{"border-r":Re()}],"border-w-b":[{"border-b":Re()}],"border-w-l":[{"border-l":Re()}],"divide-x":[{"divide-x":Re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Qe(),"hidden","none"]}],"divide-style":[{divide:[...Qe(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...Qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Mn,Ct,wt]}],"outline-w":[{outline:["",Mn,O1,dm]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",_,fE,uE]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",p,fE,uE]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[Mn,dm]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":Re()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",v,fE,uE]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[Mn,Ct,wt]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Mn]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[Ct,wt]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[Mn]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:ze()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ct,wt]}],filter:[{filter:["","none",Ct,wt]}],blur:[{blur:nt()}],brightness:[{brightness:[Mn,Ct,wt]}],contrast:[{contrast:[Mn,Ct,wt]}],"drop-shadow":[{"drop-shadow":["","none",S,fE,uE]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",Mn,Ct,wt]}],"hue-rotate":[{"hue-rotate":[Mn,Ct,wt]}],invert:[{invert:["",Mn,Ct,wt]}],saturate:[{saturate:[Mn,Ct,wt]}],sepia:[{sepia:["",Mn,Ct,wt]}],"backdrop-filter":[{"backdrop-filter":["","none",Ct,wt]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[Mn,Ct,wt]}],"backdrop-contrast":[{"backdrop-contrast":[Mn,Ct,wt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Mn,Ct,wt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Mn,Ct,wt]}],"backdrop-invert":[{"backdrop-invert":["",Mn,Ct,wt]}],"backdrop-opacity":[{"backdrop-opacity":[Mn,Ct,wt]}],"backdrop-saturate":[{"backdrop-saturate":[Mn,Ct,wt]}],"backdrop-sepia":[{"backdrop-sepia":["",Mn,Ct,wt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Z()}],"border-spacing-x":[{"border-spacing-x":Z()}],"border-spacing-y":[{"border-spacing-y":Z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ct,wt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Mn,"initial",Ct,wt]}],ease:[{ease:["linear","initial",w,Ct,wt]}],delay:[{delay:[Mn,Ct,wt]}],animate:[{animate:["none",N,Ct,wt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Ct,wt]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:lt()}],"rotate-x":[{"rotate-x":lt()}],"rotate-y":[{"rotate-y":lt()}],"rotate-z":[{"rotate-z":lt()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[Ct,wt,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ln()}],"translate-x":[{"translate-x":Ln()}],"translate-y":[{"translate-y":Ln()}],"translate-z":[{"translate-z":Ln()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ct,wt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ct,wt]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[Mn,O1,dm,tR]}],stroke:[{stroke:["none",...ee()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function cl(...i){return VX(tX(i))}const GX=typeof document<"u"?Vp.useLayoutEffect:()=>{},Kd=i=>{var e;return(e=i?.ownerDocument)!==null&&e!==void 0?e:document},hm=i=>i&&"window"in i&&i.window===i?i:Kd(i).defaultView||window;function jX(i){return i!==null&&typeof i=="object"&&"nodeType"in i&&typeof i.nodeType=="number"}function qX(i){return jX(i)&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in i}let XX=!1;function nR(){return XX}function TU(i,e){if(!nR())return e&&i?i.contains(e):!1;if(!i||!e)return!1;let t=e;for(;t!==null;){if(t===i)return!0;t.tagName==="SLOT"&&t.assignedSlot?t=t.assignedSlot.parentNode:qX(t)?t=t.host:t=t.parentNode}return!1}const iR=(i=document)=>{var e;if(!nR())return i.activeElement;let t=i.activeElement;for(;t&&"shadowRoot"in t&&(!((e=t.shadowRoot)===null||e===void 0)&&e.activeElement);)t=t.shadowRoot.activeElement;return t};function EU(i){return nR()&&i.target.shadowRoot&&i.composedPath?i.composedPath()[0]:i.target}function YX(i){if(WX())i.focus({preventScroll:!0});else{let e=$X(i);i.focus(),ZX(e)}}let dE=null;function WX(){if(dE==null){dE=!1;try{document.createElement("div").focus({get preventScroll(){return dE=!0,!0}})}catch{}}return dE}function $X(i){let e=i.parentNode,t=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&t.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),t}function ZX(i){for(let{element:e,scrollTop:t,scrollLeft:n}of i)e.scrollTop=t,e.scrollLeft=n}function hE(i){var e;if(typeof window>"u"||window.navigator==null)return!1;let t=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(t)&&t.some(n=>i.test(n.brand))||i.test(window.navigator.userAgent)}function rR(i){var e;return typeof window<"u"&&window.navigator!=null?i.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function pf(i){if(process.env.NODE_ENV==="test")return i;let e=null;return()=>(e==null&&(e=i()),e)}const L1=pf(function(){return rR(/^Mac/i)}),KX=pf(function(){return rR(/^iPhone/i)}),MU=pf(function(){return rR(/^iPad/i)||L1()&&navigator.maxTouchPoints>1}),QX=pf(function(){return KX()||MU()});pf(function(){return L1()||QX()});const JX=pf(function(){return hE(/AppleWebKit/i)&&!eY()}),eY=pf(function(){return hE(/Chrome/i)}),tY=pf(function(){return hE(/Android/i)}),nY=pf(function(){return hE(/Firefox/i)});function N1(i,e,t=!0){var n,a;let{metaKey:o,ctrlKey:c,altKey:d,shiftKey:h}=e;nY()&&(!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key"))&&i.target==="_blank"&&(L1()?o=!0:c=!0);let y=JX()&&L1()&&!MU()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:c,altKey:d,shiftKey:h}):new MouseEvent("click",{metaKey:o,ctrlKey:c,altKey:d,shiftKey:h,detail:1,bubbles:!0,cancelable:!0});N1.isOpening=t,YX(i),i.dispatchEvent(y),N1.isOpening=!1}N1.isOpening=!1;function AU(){let i=Ze.useRef(new Map),e=Ze.useCallback((a,o,c,d)=>{let h=d?.once?(...y)=>{i.current.delete(c),c(...y)}:c;i.current.set(c,{type:o,eventTarget:a,fn:h,options:d}),a.addEventListener(o,h,d)},[]),t=Ze.useCallback((a,o,c,d)=>{var h;let y=((h=i.current.get(c))===null||h===void 0?void 0:h.fn)||c;a.removeEventListener(o,y,d),i.current.delete(c)},[]),n=Ze.useCallback(()=>{i.current.forEach((a,o)=>{t(a.eventTarget,a.type,o,a.options)})},[t]);return Ze.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:t,removeAllGlobalListeners:n}}function iY(i){return i.pointerType===""&&i.isTrusted?!0:tY()&&i.pointerType?i.type==="click"&&i.buttons===1:i.detail===0&&!i.pointerType}var pE={exports:{}},$a={};var wU;function rY(){if(wU)return $a;wU=1;var i=g0();function e(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)y+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(h,y,_){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:h,containerInfo:y,implementation:_}}var c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return $a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,$a.createPortal=function(h,y){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(e(299));return o(h,y,null,_)},$a.flushSync=function(h){var y=c.T,_=n.p;try{if(c.T=null,n.p=2,h)return h()}finally{c.T=y,n.p=_,n.d.f()}},$a.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,n.d.C(h,y))},$a.prefetchDNS=function(h){typeof h=="string"&&n.d.D(h)},$a.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var _=y.as,p=d(_,y.crossOrigin),v=typeof y.integrity=="string"?y.integrity:void 0,S=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;_==="style"?n.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:S}):_==="script"&&n.d.X(h,{crossOrigin:p,integrity:v,fetchPriority:S,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},$a.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var _=d(y.as,y.crossOrigin);n.d.M(h,{crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&n.d.M(h)},$a.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var _=y.as,p=d(_,y.crossOrigin);n.d.L(h,_,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},$a.preloadModule=function(h,y){if(typeof h=="string")if(y){var _=d(y.as,y.crossOrigin);n.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else n.d.m(h)},$a.requestFormReset=function(h){n.d.r(h)},$a.unstable_batchedUpdates=function(h,y){return h(y)},$a.useFormState=function(h,y,_){return c.H.useFormState(h,y,_)},$a.useFormStatus=function(){return c.H.useHostTransitionStatus()},$a.version="19.2.3",$a}var Za={};var CU;function aY(){return CU||(CU=1,process.env.NODE_ENV!=="production"&&(function(){function i(){}function e(p){return""+p}function t(p,v,S){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(E);var A=!1}catch{A=!0}return A&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object"),e(E)),{$$typeof:y,key:E==null?null:""+E,children:p,containerInfo:v,implementation:S}}function n(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}function a(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function o(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function c(){var p=_.H;return p===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
4119
+ `,Yq=["blendShape1.AE","blendShape1.ChJ","blendShape1.FV","blendShape1.Oh","blendShape1.Ah","blendShape1.Ih","blendShape1.L","blendShape1.SZ","blendShape1.Woo","blendShape1.MBP","blendShape1.Smile_Closed","blendShape1.Smile_Open","blendShape1.Kiss"],Wq={A:9,B:7,C:0,D:4,E:3,F:8,G:2,H:6,X:-1};class $q{constructor(e,t,n,a){this.model=e,this.head=t,this.fbxLoader=n,this.assetsUrl=a}animations=[];zeroMorphingInfluences=[0,0,0,0,0,0,0,0,0,0,0,0,0];visemeDataIndex=0;visemeData;mixer;activeActionName;actions={};async init(){this.mixer=new C9(this.model),await Promise.all([this.loadAnimation("idle",!0),this.loadAnimation("spin",!1),this.loadAnimation("voice_1",!1)]).then(()=>{this.actions.idle.play(),this.activeActionName="idle"})}resolveAsset(e){return new URL(e,this.assetsUrl).href}async loadAnimation(e,t){const a=(await this.fbxLoader.loadAsync(this.resolveAsset(`/animations/${e}.fbx`))).animations[0],o=this.mixer.clipAction(a);o.weight=1,t||(o.loop=W4,o.clampWhenFinished=!0),this.actions[e]=o}fadeToAction(e,t){const n=this.actions[this.activeActionName];this.activeActionName=e;const a=this.actions[this.activeActionName];n!==a&&(n.fadeOut(t),this.resetMorphing()),a.reset().setEffectiveTimeScale(1).setEffectiveWeight(1).fadeIn(t).play(),this.mixer.addEventListener("finished",o=>{o.action!==this.actions.idle&&this.setAction("idle")})}setAction(e){this.activeActionName=e,this.actions[this.activeActionName].reset().setEffectiveTimeScale(1).setEffectiveWeight(1).play()}reset(){this.visemeDataIndex=0}setVisemeData(){this.visemeData=Xq.trim().split(`
4120
+ `).map(e=>{const t=e.split(" ");return{time:Number(t[0]),viseme:t[1]}}).filter(e=>e.viseme!=="X")}convertVisemeDataToAnimationScenario(){}update(e,t=0){this.mixer&&this.mixer.update(e),!(this.visemeDataIndex>=this.visemeData.length)&&t&&t>=this.visemeData[this.visemeDataIndex].time-this.blendShapeResetAnimationLength*.7&&(this.playVisemeAnimation(t,this.visemeData[this.visemeDataIndex],this.visemeData[this.visemeDataIndex+1]),this.visemeDataIndex++)}resetMorphing(){this.animations.forEach(e=>e.kill()),df.to(this.head.morphTargetInfluences,this.blendShapeResetAnimationLength,this.zeroMorphingInfluences)}blendShapeAnimationLength=.2;blendShapeResetAnimationLength=.1;playVisemeAnimation(e,t,n){if(this.resetMorphing(),t.viseme==="X")return;let a=1,o=t.viseme;const c=Yq[Wq[o]],d=this.head?.morphTargetDictionary[c],h=n?.time-e,y=Math.min(this.blendShapeAnimationLength,h-.07),_={influence:0},p=df.to(_,{influence:a,duration:y,delay:this.blendShapeResetAnimationLength*.7,onUpdate:()=>{this.head.morphTargetInfluences[d]=_.influence}}),v=df.to(_,{influence:0,duration:this.blendShapeAnimationLength,delay:y+.07,onUpdate:()=>{this.head.morphTargetInfluences[d]=_.influence}});this.animations=[p,v]}shapeFadeInDuration=.6;shapeFadeOutDuration=.6;showcaseBlendShape(e){this.resetMorphing();const t=this.head?.morphTargetDictionary[e],n={influence:0};df.to(n,{influence:1,duration:this.shapeFadeInDuration,delay:this.blendShapeResetAnimationLength,onUpdate:()=>{this.head.morphTargetInfluences[t]=n.influence}}),df.to(n,{influence:0,duration:this.shapeFadeOutDuration,delay:this.blendShapeResetAnimationLength+3,onUpdate:()=>{this.head.morphTargetInfluences[t]=n.influence}})}}const Zq={voice:{position:new xe(0,140,200),lookAt:new xe(-7,115,0),fov:35},text:{position:new xe(0,140,200),lookAt:new xe(-7,115,0),fov:35}};class Kq{constructor(e,t){this.canvas=e,this.assetsUrl=t,this.renderer=new jG({canvas:this.canvas,antialias:!0,powerPreference:"high-performance",logarithmicDepthBuffer:!0,alpha:!0}),this.renderer.outputColorSpace=Jt,this.renderer.setPixelRatio(window.devicePixelRatio),this.init()}renderer;materialSets;materialSetType="Phong";cubeTexture;fbxLoader=new mj;textureLoader=new $L;clock=new m9;scene;camera;hair;head;body;animationManager;resolveAsset(e){return new URL(e,this.assetsUrl).href}async init(){const e=new b7;this.scene=e;const t=new eN(4210752,50);e.add(t);const n=new JL(0,10);n.position.set(10,10,5),this.scene.add(n);const{width:a,height:o}=this.canvas.getBoundingClientRect(),c=new fs(65,a/o,.1,1e3);this.camera=c,this.setCameraMode("voice");const d=await this.textureLoader.loadAsync(this.resolveAsset("/textures/bg1.jpg"));d.colorSpace=Jt,e.background=d;const h=new l9().setPath(this.resolveAsset("/textures/cube-map/"));this.cubeTexture=await h.loadAsync(["px.png","nx.png","py.png","ny.png","pz.png","nz.png"]);const y=await this.textureLoader.loadAsync(this.resolveAsset("/textures/baked/body_baked.png"));y.wrapS=ur,y.wrapT=ur;const _=await this.textureLoader.loadAsync(this.resolveAsset("/textures/baked/head_baked.png")),p=await this.textureLoader.loadAsync(this.resolveAsset("/textures/baked/hair_baked.png")),v=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/brows_base_color.png")),S=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/eyes_base_color.png"));S.wrapS=ur,S.wrapT=ur;const E=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/body_base_color.png"));E.wrapS=ur,E.wrapT=ur;const A=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/body_metallic.png"));A.wrapS=ur,A.wrapT=ur;const C=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/body_normal.png"));C.wrapS=ur,C.wrapT=ur;const w=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/body_roughness.png"));w.wrapS=ur,w.wrapT=ur;const N=new PT({map:E,normalMap:C,metalnessMap:A,metalness:1,roughnessMap:w,envMap:this.cubeTexture}),L=new Id({map:y,normalMap:C}),z=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/hair_base_color.png")),B=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/hair_metallic.png")),j=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/hair_normal.png")),Y=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/hair_roughness.png")),Z=new PT({map:z,normalMap:j,metalnessMap:B,metalness:1,roughnessMap:Y,envMap:this.cubeTexture}),k=new Id({map:p,normalMap:j}),F=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/head_base_color.png")),Q=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/head_metallic.png")),te=await this.textureLoader.loadAsync(this.resolveAsset("/textures/pbr/head_roughness.png")),re=new PT({map:F,metalnessMap:Q,metalness:1,roughnessMap:te,envMap:this.cubeTexture}),he=new Id({map:_}),me=new Id({map:v}),q=await this.textureLoader.loadAsync(this.resolveAsset("/textures/shared/shadow_base_color.png"));q.wrapS=ur,q.wrapT=ur;const K=await this.textureLoader.loadAsync(this.resolveAsset("/textures/shared/shadow_opacity.png"));K.wrapS=ur,K.wrapT=ur,y.colorSpace=Jt,_.colorSpace=Jt,p.colorSpace=Jt,v.colorSpace=Jt,S.colorSpace=Jt,E.colorSpace=Jt,A.colorSpace=Jt,C.colorSpace=Jt,w.colorSpace=Jt,z.colorSpace=Jt,B.colorSpace=Jt,j.colorSpace=Jt,Y.colorSpace=Jt,F.colorSpace=Jt,Q.colorSpace=Jt,te.colorSpace=Jt,q.colorSpace=Jt,K.colorSpace=Jt,this.materialSets={PBR:{hair:Z,brows:me,head:re,body:N},Phong:{hair:k,brows:me,head:he,body:L}};const ee=await this.fbxLoader.loadAsync(this.resolveAsset("/models/female_rig.fbx"));e.add(ee),ee.traverse(we=>{if(we.name=="eye_shadows"){const V=we.material;V.map=q,V.alphaMap=K,V.transparent=!0;return}if(we.name=="Hair"){this.hair=we;return}if(we.name=="Eyes"){const ze=we,V=new PT({map:S});ze.material=V;return}if(we.name=="Head"){this.head=we;return}if(we.name=="Body"){this.body=we;return}}),this.animationManager=new $q(ee,this.head,this.fbxLoader,this.assetsUrl),await this.animationManager.init(),this.animationManager.setVisemeData(),this.setMaterialsByType(this.materialSetType),this.animate(),this.onResize()}tempLookAt=new xe;setCameraMode(e){const{position:t,lookAt:n,fov:a}=Zq[e];df.to(this.camera.position,{x:t.x,y:t.y,z:t.z}),df.to(this.camera,{fov:a,onUpdate:()=>{this.camera.updateProjectionMatrix()}}),df.to(this.tempLookAt,{x:n.x,y:n.y,z:n.z,onUpdate:()=>{this.camera.lookAt(this.tempLookAt)}})}setMaterialsByType(e){const{hair:t,brows:n,head:a,body:o}=this.materialSets[e];this.hair.material=t,this.head.material[0]=a,this.head.material[1]=n,this.body.material=o}switchMaterials=()=>{this.materialSetType=this.materialSetType==="PBR"?"Phong":"PBR",this.setMaterialsByType(this.materialSetType)};width=0;height=0;onResize=(e,t)=>{if(!e||!t){const n=this.canvas.getBoundingClientRect();e=n.width,t=n.height}!e||!t||e==this.width&&t==this.height||(this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t,!1),this.render(),this.width=e,this.height=t)};animate=()=>{requestAnimationFrame(this.animate);const e=this.clock.getDelta();this.animationManager.update(e,0),this.render()};speak=()=>{this.animationManager.reset(),this.animationManager.fadeToAction("voice_1",.3)};spin=()=>{this.animationManager.fadeToAction("spin",.3)};render(){this.renderer.render(this.scene,this.camera)}smileClosed=()=>{this.showcaseBlendShape("blendShape1.Smile_Closed")};smileOpen=()=>{this.showcaseBlendShape("blendShape1.Smile_Open")};kiss=()=>{this.showcaseBlendShape("blendShape1.Kiss")};showcaseBlendShape(e){this.animationManager.showcaseBlendShape(e)}}const Qq=i=>Ze.createElement("svg",{width:15,height:22,viewBox:"0 0 15 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M3 10.5V4.5C3 3.30653 3.47411 2.16193 4.31802 1.31802C5.16193 0.474106 6.30653 0 7.5 0C8.69347 0 9.83807 0.474106 10.682 1.31802C11.5259 2.16193 12 3.30653 12 4.5V10.5C12 11.6935 11.5259 12.8381 10.682 13.682C9.83807 14.5259 8.69347 15 7.5 15C6.30653 15 5.16193 14.5259 4.31802 13.682C3.47411 12.8381 3 11.6935 3 10.5ZM15 10.5C15 10.3011 14.921 10.1103 14.7803 9.96967C14.6397 9.82902 14.4489 9.75 14.25 9.75C14.0511 9.75 13.8603 9.82902 13.7197 9.96967C13.579 10.1103 13.5 10.3011 13.5 10.5C13.5 12.0913 12.8679 13.6174 11.7426 14.7426C10.6174 15.8679 9.0913 16.5 7.5 16.5C5.9087 16.5 4.38258 15.8679 3.25736 14.7426C2.13214 13.6174 1.5 12.0913 1.5 10.5C1.5 10.3011 1.42098 10.1103 1.28033 9.96967C1.13968 9.82902 0.948912 9.75 0.75 9.75C0.551088 9.75 0.360322 9.82902 0.21967 9.96967C0.0790178 10.1103 0 10.3011 0 10.5C0.00228386 12.3586 0.693677 14.1504 1.94048 15.5288C3.18728 16.9072 4.90091 17.7743 6.75 17.9625V21C6.75 21.1989 6.82902 21.3897 6.96967 21.5303C7.11032 21.671 7.30109 21.75 7.5 21.75C7.69891 21.75 7.88968 21.671 8.03033 21.5303C8.17098 21.3897 8.25 21.1989 8.25 21V17.9625C10.0991 17.7743 11.8127 16.9072 13.0595 15.5288C14.3063 14.1504 14.9977 12.3586 15 10.5Z",fill:"white"})),Jq=i=>Ze.createElement("svg",{width:17,height:22,viewBox:"0 0 17 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M16.2483 20.05C16.1011 20.1838 15.9068 20.2536 15.7082 20.2441C15.5095 20.2346 15.3227 20.1466 15.189 19.9994L12.2902 16.8119C11.2986 17.4511 10.1683 17.8436 8.99395 17.9566V20.995C8.99395 21.1939 8.91494 21.3847 8.77428 21.5253C8.63363 21.666 8.44287 21.745 8.24395 21.745C8.04504 21.745 7.85428 21.666 7.71362 21.5253C7.57297 21.3847 7.49395 21.1939 7.49395 20.995V17.9575C5.64487 17.7694 3.93123 16.9022 2.68443 15.5238C1.43763 14.1454 0.746237 12.3536 0.743953 10.495C0.743953 10.2961 0.822971 10.1053 0.963623 9.96468C1.10428 9.82403 1.29504 9.74501 1.49395 9.74501C1.69287 9.74501 1.88363 9.82403 2.02428 9.96468C2.16494 10.1053 2.24395 10.2961 2.24395 10.495C2.24569 12.0858 2.87839 13.6109 4.00323 14.7357C5.12807 15.8606 6.65319 16.4933 8.24395 16.495C9.3051 16.4981 10.3477 16.2172 11.2636 15.6813L10.223 14.5375C9.53688 14.8735 8.77649 15.0293 8.01351 14.9902C7.25052 14.951 6.51006 14.7183 5.86189 14.3139C5.21372 13.9095 4.67918 13.3467 4.30864 12.6786C3.93811 12.0105 3.74377 11.259 3.74395 10.495V7.4097L0.188953 3.49939C0.0579834 3.35175 -0.00951799 3.15845 0.00108397 2.96138C0.0116859 2.76431 0.0995364 2.57936 0.245589 2.44663C0.391643 2.3139 0.584126 2.24408 0.781309 2.25232C0.978492 2.26056 1.16448 2.34619 1.29895 2.49064L16.299 18.9906C16.4327 19.1378 16.5025 19.3321 16.493 19.5308C16.4835 19.7295 16.3955 19.9162 16.2483 20.05ZM13.9805 14.1316C14.0828 14.1823 14.1954 14.2086 14.3096 14.2085C14.4501 14.2085 14.5878 14.169 14.7069 14.0946C14.8261 14.0202 14.922 13.9138 14.9836 13.7875C15.4869 12.7631 15.7471 11.6364 15.744 10.495C15.744 10.2961 15.6649 10.1053 15.5243 9.96468C15.3836 9.82403 15.1929 9.74501 14.994 9.74501C14.795 9.74501 14.6043 9.82403 14.4636 9.96468C14.323 10.1053 14.244 10.2961 14.244 10.495C14.2466 11.4079 14.0387 12.309 13.6365 13.1285C13.5491 13.3071 13.5363 13.5131 13.6008 13.7013C13.6653 13.8894 13.8019 14.0442 13.9805 14.1316ZM11.4183 11.3922C11.5158 11.4995 11.6422 11.5762 11.7824 11.6131C11.9225 11.65 12.0703 11.6456 12.208 11.6002C12.3456 11.5549 12.4672 11.4707 12.558 11.3577C12.6488 11.2448 12.7049 11.1079 12.7196 10.9638C12.7356 10.808 12.7437 10.6516 12.744 10.495V4.49501C12.7428 3.46146 12.3859 2.45981 11.7333 1.6584C11.0806 0.85698 10.172 0.304654 9.16007 0.0942441C8.14816 -0.116166 7.09467 0.0281652 6.17664 0.502981C5.25861 0.977798 4.53201 1.75415 4.11895 2.70158C4.06128 2.834 4.04308 2.98027 4.06652 3.1228C4.08997 3.26532 4.15408 3.39804 4.25114 3.50501L11.4183 11.3922Z"})),eX=i=>Ze.createElement("svg",{width:19,height:17,viewBox:"0 0 19 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M12.5227 3.81607C11.8966 2.45748 10.8252 1.35355 9.48597 0.687157C8.14671 0.0207681 6.61998 -0.168078 5.15872 0.151907C3.69745 0.471891 2.38936 1.2815 1.45116 2.4466C0.512966 3.6117 0.000969112 5.06237 0 6.55826V11.5583C0 11.9727 0.16462 12.3701 0.457646 12.6631C0.750671 12.9561 1.1481 13.1208 1.5625 13.1208H5.63281C6.16643 14.2418 7.00649 15.1889 8.05583 15.8525C9.10517 16.5161 10.3209 16.8692 11.5625 16.8708H16.5625C16.9769 16.8708 17.3743 16.7061 17.6674 16.4131C17.9604 16.1201 18.125 15.7227 18.125 15.3083V10.3083C18.1251 8.73409 17.5593 7.21234 16.5309 6.02056C15.5024 4.82878 14.0799 4.04638 12.5227 3.81607ZM1.875 6.55826C1.875 5.63116 2.14992 4.72488 2.66499 3.95402C3.18006 3.18317 3.91214 2.58236 4.76867 2.22757C5.6252 1.87278 6.5677 1.77996 7.47699 1.96082C8.38627 2.14169 9.2215 2.58813 9.87706 3.24369C10.5326 3.89925 10.9791 4.73448 11.1599 5.64377C11.3408 6.55306 11.248 7.49556 10.8932 8.35209C10.5384 9.20861 9.93759 9.9407 9.16674 10.4558C8.39588 10.9708 7.4896 11.2458 6.5625 11.2458H1.875V6.55826ZM16.25 14.9958H11.5625C10.8125 14.9949 10.0737 14.8145 9.40771 14.4697C8.74173 14.1249 8.16796 13.6256 7.73438 13.0137C9.36318 12.7195 10.8205 11.8202 11.8138 10.4962C12.8071 9.17219 13.2629 7.52154 13.0898 5.87544C14.0125 6.19342 14.8129 6.79144 15.3794 7.58608C15.9459 8.38072 16.2502 9.33236 16.25 10.3083V14.9958Z"}));function aU(i){var e,t,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var a=i.length;for(e=0;e<a;e++)i[e]&&(t=aU(i[e]))&&(n&&(n+=" "),n+=t)}else for(t in i)i[t]&&(n&&(n+=" "),n+=t);return n}function tX(){for(var i,e,t=0,n="",a=arguments.length;t<a;t++)(i=arguments[t])&&(e=aU(i))&&(n&&(n+=" "),n+=e);return n}const nX=(i,e)=>{const t=new Array(i.length+e.length);for(let n=0;n<i.length;n++)t[n]=i[n];for(let n=0;n<e.length;n++)t[i.length+n]=e[n];return t},iX=(i,e)=>({classGroupId:i,validator:e}),sU=(i=new Map,e=null,t)=>({nextPart:i,validators:e,classGroupId:t}),cE="-",oU=[],rX="arbitrary..",aX=i=>{const e=oX(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return sX(c);const d=c.split(cE),h=d[0]===""&&d.length>1?1:0;return lU(d,h,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=n[c],y=t[c];return h?y?nX(y,h):h:y||oU}return t[c]||oU}}},lU=(i,e,t)=>{if(i.length-e===0)return t.classGroupId;const a=i[e],o=t.nextPart.get(a);if(o){const y=lU(i,e+1,o);if(y)return y}const c=t.validators;if(c===null)return;const d=e===0?i.join(cE):i.slice(e).join(cE),h=c.length;for(let y=0;y<h;y++){const _=c[y];if(_.validator(d))return _.classGroupId}},sX=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=i.slice(1,-1),t=e.indexOf(":"),n=e.slice(0,t);return n?rX+n:void 0})(),oX=i=>{const{theme:e,classGroups:t}=i;return lX(t,e)},lX=(i,e)=>{const t=sU();for(const n in i){const a=i[n];Q3(a,t,n,e)}return t},Q3=(i,e,t,n)=>{const a=i.length;for(let o=0;o<a;o++){const c=i[o];cX(c,e,t,n)}},cX=(i,e,t,n)=>{if(typeof i=="string"){uX(i,e,t);return}if(typeof i=="function"){fX(i,e,t,n);return}dX(i,e,t,n)},uX=(i,e,t)=>{const n=i===""?e:cU(e,i);n.classGroupId=t},fX=(i,e,t,n)=>{if(hX(i)){Q3(i(n),e,t,n);return}e.validators===null&&(e.validators=[]),e.validators.push(iX(t,i))},dX=(i,e,t,n)=>{const a=Object.entries(i),o=a.length;for(let c=0;c<o;c++){const[d,h]=a[c];Q3(h,cU(e,d),t,n)}},cU=(i,e)=>{let t=i;const n=e.split(cE),a=n.length;for(let o=0;o<a;o++){const c=n[o];let d=t.nextPart.get(c);d||(d=sU(),t.nextPart.set(c,d)),t=d}return t},hX=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,pX=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),n=Object.create(null);const a=(o,c)=>{t[o]=c,e++,e>i&&(e=0,n=t,t=Object.create(null))};return{get(o){let c=t[o];if(c!==void 0)return c;if((c=n[o])!==void 0)return a(o,c),c},set(o,c){o in t?t[o]=c:a(o,c)}}},J3="!",uU=":",mX=[],fU=(i,e,t,n,a)=>({modifiers:i,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:n,isExternal:a}),gX=i=>{const{prefix:e,experimentalParseClassName:t}=i;let n=a=>{const o=[];let c=0,d=0,h=0,y;const _=a.length;for(let A=0;A<_;A++){const C=a[A];if(c===0&&d===0){if(C===uU){o.push(a.slice(h,A)),h=A+1;continue}if(C==="/"){y=A;continue}}C==="["?c++:C==="]"?c--:C==="("?d++:C===")"&&d--}const p=o.length===0?a:a.slice(h);let v=p,S=!1;p.endsWith(J3)?(v=p.slice(0,-1),S=!0):p.startsWith(J3)&&(v=p.slice(1),S=!0);const E=y&&y>h?y-h:void 0;return fU(o,S,v,E)};if(e){const a=e+uU,o=n;n=c=>c.startsWith(a)?o(c.slice(a.length)):fU(mX,!1,c,void 0,!0)}if(t){const a=n;n=o=>t({className:o,parseClassName:a})}return n},yX=i=>{const e=new Map;return i.orderSensitiveModifiers.forEach((t,n)=>{e.set(t,1e6+n)}),t=>{const n=[];let a=[];for(let o=0;o<t.length;o++){const c=t[o],d=c[0]==="[",h=e.has(c);d||h?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(c)):a.push(c)}return a.length>0&&(a.sort(),n.push(...a)),n}},vX=i=>({cache:pX(i.cacheSize),parseClassName:gX(i),sortModifiers:yX(i),...aX(i)}),_X=/\s+/,bX=(i,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=e,c=[],d=i.trim().split(_X);let h="";for(let y=d.length-1;y>=0;y-=1){const _=d[y],{isExternal:p,modifiers:v,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:A}=t(_);if(p){h=_+(h.length>0?" "+h:h);continue}let C=!!A,w=n(C?E.substring(0,A):E);if(!w){if(!C){h=_+(h.length>0?" "+h:h);continue}if(w=n(E),!w){h=_+(h.length>0?" "+h:h);continue}C=!1}const N=v.length===0?"":v.length===1?v[0]:o(v).join(":"),L=S?N+J3:N,z=L+w;if(c.indexOf(z)>-1)continue;c.push(z);const B=a(w,C);for(let j=0;j<B.length;++j){const Y=B[j];c.push(L+Y)}h=_+(h.length>0?" "+h:h)}return h},xX=(...i)=>{let e=0,t,n,a="";for(;e<i.length;)(t=i[e++])&&(n=dU(t))&&(a&&(a+=" "),a+=n);return a},dU=i=>{if(typeof i=="string")return i;let e,t="";for(let n=0;n<i.length;n++)i[n]&&(e=dU(i[n]))&&(t&&(t+=" "),t+=e);return t},SX=(i,...e)=>{let t,n,a,o;const c=h=>{const y=e.reduce((_,p)=>p(_),i());return t=vX(y),n=t.cache.get,a=t.cache.set,o=d,d(h)},d=h=>{const y=n(h);if(y)return y;const _=bX(h,t);return a(h,_),_};return o=c,(...h)=>o(xX(...h))},TX=[],$r=i=>{const e=t=>t[i]||TX;return e.isThemeGetter=!0,e},hU=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EX=/^\d+\/\d+$/,MX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AX=/\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$/,wX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,CX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fy=i=>EX.test(i),Mn=i=>!!i&&!Number.isNaN(Number(i)),Zd=i=>!!i&&Number.isInteger(Number(i)),eR=i=>i.endsWith("%")&&Mn(i.slice(0,-1)),hf=i=>MX.test(i),DX=()=>!0,OX=i=>AX.test(i)&&!wX.test(i),mU=()=>!1,LX=i=>CX.test(i),NX=i=>RX.test(i),UX=i=>!wt(i)&&!Ct(i),kX=i=>dy(i,bU,mU),wt=i=>hU.test(i),dm=i=>dy(i,xU,OX),tR=i=>dy(i,FX,Mn),gU=i=>dy(i,vU,mU),zX=i=>dy(i,_U,NX),uE=i=>dy(i,SU,LX),Ct=i=>pU.test(i),O1=i=>hy(i,xU),IX=i=>hy(i,HX),yU=i=>hy(i,vU),BX=i=>hy(i,bU),PX=i=>hy(i,_U),fE=i=>hy(i,SU,!0),dy=(i,e,t)=>{const n=hU.exec(i);return n?n[1]?e(n[1]):t(n[2]):!1},hy=(i,e,t=!1)=>{const n=pU.exec(i);return n?n[1]?e(n[1]):t:!1},vU=i=>i==="position"||i==="percentage",_U=i=>i==="image"||i==="url",bU=i=>i==="length"||i==="size"||i==="bg-size",xU=i=>i==="length",FX=i=>i==="number",HX=i=>i==="family-name",SU=i=>i==="shadow",VX=SX(()=>{const i=$r("color"),e=$r("font"),t=$r("text"),n=$r("font-weight"),a=$r("tracking"),o=$r("leading"),c=$r("breakpoint"),d=$r("container"),h=$r("spacing"),y=$r("radius"),_=$r("shadow"),p=$r("inset-shadow"),v=$r("text-shadow"),S=$r("drop-shadow"),E=$r("blur"),A=$r("perspective"),C=$r("aspect"),w=$r("ease"),N=$r("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...z(),Ct,wt],j=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],Z=()=>[Ct,wt,h],k=()=>[fy,"full","auto",...Z()],F=()=>[Zd,"none","subgrid",Ct,wt],Q=()=>["auto",{span:["full",Zd,Ct,wt]},Zd,Ct,wt],te=()=>[Zd,"auto",Ct,wt],re=()=>["auto","min","max","fr",Ct,wt],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...Z()],K=()=>[fy,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Z()],ee=()=>[i,Ct,wt],we=()=>[...z(),yU,gU,{position:[Ct,wt]}],ze=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",BX,kX,{size:[Ct,wt]}],oe=()=>[eR,O1,dm],Se=()=>["","none","full",y,Ct,wt],Re=()=>["",Mn,O1,dm],Qe=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Mn,eR,yU,gU],nt=()=>["","none",E,Ct,wt],lt=()=>["none",Mn,Ct,wt],ut=()=>["none",Mn,Ct,wt],We=()=>[Mn,Ct,wt],Ln=()=>[fy,"full",...Z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hf],breakpoint:[hf],color:[DX],container:[hf],"drop-shadow":[hf],ease:["in","out","in-out"],font:[UX],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hf],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hf],shadow:[hf],spacing:["px",Mn],text:[hf],"text-shadow":[hf],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fy,wt,Ct,C]}],container:["container"],columns:[{columns:[Mn,wt,Ct,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Zd,"auto",Ct,wt]}],basis:[{basis:[fy,"full","auto",d,...Z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Mn,fy,"auto","initial","none",wt]}],grow:[{grow:["",Mn,Ct,wt]}],shrink:[{shrink:["",Mn,Ct,wt]}],order:[{order:[Zd,"first","last","none",Ct,wt]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:Z()}],"gap-x":[{"gap-x":Z()}],"gap-y":[{"gap-y":Z()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:Z()}],px:[{px:Z()}],py:[{py:Z()}],ps:[{ps:Z()}],pe:[{pe:Z()}],pt:[{pt:Z()}],pr:[{pr:Z()}],pb:[{pb:Z()}],pl:[{pl:Z()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":Z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Z()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",t,O1,dm]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ct,tR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eR,wt]}],"font-family":[{font:[IX,wt,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ct,wt]}],"line-clamp":[{"line-clamp":[Mn,"none",Ct,tR]}],leading:[{leading:[o,...Z()]}],"list-image":[{"list-image":["none",Ct,wt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ct,wt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Mn,"from-font","auto",Ct,dm]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[Mn,"auto",Ct,wt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ct,wt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ct,wt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:ze()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zd,Ct,wt],radial:["",Ct,wt],conic:[Zd,Ct,wt]},PX,zX]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:Re()}],"border-w-x":[{"border-x":Re()}],"border-w-y":[{"border-y":Re()}],"border-w-s":[{"border-s":Re()}],"border-w-e":[{"border-e":Re()}],"border-w-t":[{"border-t":Re()}],"border-w-r":[{"border-r":Re()}],"border-w-b":[{"border-b":Re()}],"border-w-l":[{"border-l":Re()}],"divide-x":[{"divide-x":Re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Qe(),"hidden","none"]}],"divide-style":[{divide:[...Qe(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...Qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Mn,Ct,wt]}],"outline-w":[{outline:["",Mn,O1,dm]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",_,fE,uE]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",p,fE,uE]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[Mn,dm]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":Re()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",v,fE,uE]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[Mn,Ct,wt]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Mn]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[Ct,wt]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[Mn]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:ze()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ct,wt]}],filter:[{filter:["","none",Ct,wt]}],blur:[{blur:nt()}],brightness:[{brightness:[Mn,Ct,wt]}],contrast:[{contrast:[Mn,Ct,wt]}],"drop-shadow":[{"drop-shadow":["","none",S,fE,uE]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",Mn,Ct,wt]}],"hue-rotate":[{"hue-rotate":[Mn,Ct,wt]}],invert:[{invert:["",Mn,Ct,wt]}],saturate:[{saturate:[Mn,Ct,wt]}],sepia:[{sepia:["",Mn,Ct,wt]}],"backdrop-filter":[{"backdrop-filter":["","none",Ct,wt]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[Mn,Ct,wt]}],"backdrop-contrast":[{"backdrop-contrast":[Mn,Ct,wt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Mn,Ct,wt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Mn,Ct,wt]}],"backdrop-invert":[{"backdrop-invert":["",Mn,Ct,wt]}],"backdrop-opacity":[{"backdrop-opacity":[Mn,Ct,wt]}],"backdrop-saturate":[{"backdrop-saturate":[Mn,Ct,wt]}],"backdrop-sepia":[{"backdrop-sepia":["",Mn,Ct,wt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Z()}],"border-spacing-x":[{"border-spacing-x":Z()}],"border-spacing-y":[{"border-spacing-y":Z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ct,wt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Mn,"initial",Ct,wt]}],ease:[{ease:["linear","initial",w,Ct,wt]}],delay:[{delay:[Mn,Ct,wt]}],animate:[{animate:["none",N,Ct,wt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Ct,wt]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:lt()}],"rotate-x":[{"rotate-x":lt()}],"rotate-y":[{"rotate-y":lt()}],"rotate-z":[{"rotate-z":lt()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[Ct,wt,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ln()}],"translate-x":[{"translate-x":Ln()}],"translate-y":[{"translate-y":Ln()}],"translate-z":[{"translate-z":Ln()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ct,wt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ct,wt]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[Mn,O1,dm,tR]}],stroke:[{stroke:["none",...ee()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function cl(...i){return VX(tX(i))}const GX=typeof document<"u"?Vp.useLayoutEffect:()=>{},Kd=i=>{var e;return(e=i?.ownerDocument)!==null&&e!==void 0?e:document},hm=i=>i&&"window"in i&&i.window===i?i:Kd(i).defaultView||window;function jX(i){return i!==null&&typeof i=="object"&&"nodeType"in i&&typeof i.nodeType=="number"}function qX(i){return jX(i)&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in i}let XX=!1;function nR(){return XX}function TU(i,e){if(!nR())return e&&i?i.contains(e):!1;if(!i||!e)return!1;let t=e;for(;t!==null;){if(t===i)return!0;t.tagName==="SLOT"&&t.assignedSlot?t=t.assignedSlot.parentNode:qX(t)?t=t.host:t=t.parentNode}return!1}const iR=(i=document)=>{var e;if(!nR())return i.activeElement;let t=i.activeElement;for(;t&&"shadowRoot"in t&&(!((e=t.shadowRoot)===null||e===void 0)&&e.activeElement);)t=t.shadowRoot.activeElement;return t};function EU(i){return nR()&&i.target.shadowRoot&&i.composedPath?i.composedPath()[0]:i.target}function YX(i){if(WX())i.focus({preventScroll:!0});else{let e=$X(i);i.focus(),ZX(e)}}let dE=null;function WX(){if(dE==null){dE=!1;try{document.createElement("div").focus({get preventScroll(){return dE=!0,!0}})}catch{}}return dE}function $X(i){let e=i.parentNode,t=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&t.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),t}function ZX(i){for(let{element:e,scrollTop:t,scrollLeft:n}of i)e.scrollTop=t,e.scrollLeft=n}function hE(i){var e;if(typeof window>"u"||window.navigator==null)return!1;let t=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(t)&&t.some(n=>i.test(n.brand))||i.test(window.navigator.userAgent)}function rR(i){var e;return typeof window<"u"&&window.navigator!=null?i.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function pf(i){if(process.env.NODE_ENV==="test")return i;let e=null;return()=>(e==null&&(e=i()),e)}const L1=pf(function(){return rR(/^Mac/i)}),KX=pf(function(){return rR(/^iPhone/i)}),MU=pf(function(){return rR(/^iPad/i)||L1()&&navigator.maxTouchPoints>1}),QX=pf(function(){return KX()||MU()});pf(function(){return L1()||QX()});const JX=pf(function(){return hE(/AppleWebKit/i)&&!eY()}),eY=pf(function(){return hE(/Chrome/i)}),tY=pf(function(){return hE(/Android/i)}),nY=pf(function(){return hE(/Firefox/i)});function N1(i,e,t=!0){var n,a;let{metaKey:o,ctrlKey:c,altKey:d,shiftKey:h}=e;nY()&&(!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key"))&&i.target==="_blank"&&(L1()?o=!0:c=!0);let y=JX()&&L1()&&!MU()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:c,altKey:d,shiftKey:h}):new MouseEvent("click",{metaKey:o,ctrlKey:c,altKey:d,shiftKey:h,detail:1,bubbles:!0,cancelable:!0});N1.isOpening=t,YX(i),i.dispatchEvent(y),N1.isOpening=!1}N1.isOpening=!1;function AU(){let i=Ze.useRef(new Map),e=Ze.useCallback((a,o,c,d)=>{let h=d?.once?(...y)=>{i.current.delete(c),c(...y)}:c;i.current.set(c,{type:o,eventTarget:a,fn:h,options:d}),a.addEventListener(o,h,d)},[]),t=Ze.useCallback((a,o,c,d)=>{var h;let y=((h=i.current.get(c))===null||h===void 0?void 0:h.fn)||c;a.removeEventListener(o,y,d),i.current.delete(c)},[]),n=Ze.useCallback(()=>{i.current.forEach((a,o)=>{t(a.eventTarget,a.type,o,a.options)})},[t]);return Ze.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:t,removeAllGlobalListeners:n}}function iY(i){return i.pointerType===""&&i.isTrusted?!0:tY()&&i.pointerType?i.type==="click"&&i.buttons===1:i.detail===0&&!i.pointerType}var pE={exports:{}},$a={};var wU;function rY(){if(wU)return $a;wU=1;var i=g0();function e(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)y+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(h,y,_){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:h,containerInfo:y,implementation:_}}var c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return $a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,$a.createPortal=function(h,y){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(e(299));return o(h,y,null,_)},$a.flushSync=function(h){var y=c.T,_=n.p;try{if(c.T=null,n.p=2,h)return h()}finally{c.T=y,n.p=_,n.d.f()}},$a.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,n.d.C(h,y))},$a.prefetchDNS=function(h){typeof h=="string"&&n.d.D(h)},$a.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var _=y.as,p=d(_,y.crossOrigin),v=typeof y.integrity=="string"?y.integrity:void 0,S=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;_==="style"?n.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:S}):_==="script"&&n.d.X(h,{crossOrigin:p,integrity:v,fetchPriority:S,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},$a.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var _=d(y.as,y.crossOrigin);n.d.M(h,{crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&n.d.M(h)},$a.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var _=y.as,p=d(_,y.crossOrigin);n.d.L(h,_,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},$a.preloadModule=function(h,y){if(typeof h=="string")if(y){var _=d(y.as,y.crossOrigin);n.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else n.d.m(h)},$a.requestFormReset=function(h){n.d.r(h)},$a.unstable_batchedUpdates=function(h,y){return h(y)},$a.useFormState=function(h,y,_){return c.H.useFormState(h,y,_)},$a.useFormStatus=function(){return c.H.useHostTransitionStatus()},$a.version="19.2.3",$a}var Za={};var CU;function aY(){return CU||(CU=1,process.env.NODE_ENV!=="production"&&(function(){function i(){}function e(p){return""+p}function t(p,v,S){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(E);var A=!1}catch{A=!0}return A&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object"),e(E)),{$$typeof:y,key:E==null?null:""+E,children:p,containerInfo:v,implementation:S}}function n(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}function a(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function o(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function c(){var p=_.H;return p===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
4121
4121
  1. You might have mismatching versions of React and the renderer (such as React DOM)
4122
4122
  2. You might be breaking the Rules of Hooks
4123
4123
  3. You might have more than one copy of React in the same app
@@ -4197,7 +4197,7 @@ ${S.slice(y+2)}`,p+=1;else break}e.push({indent:y,number:parseInt(d,10),content:
4197
4197
  to bottom,
4198
4198
  transparent 0%,
4199
4199
  black 100%
4200
- )`}}),Je.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_top,rgba(0,0,0,0.5)_0%,rgba(0,0,0,0.5)_15%,rgba(0,0,0,0)_100%)]"})]})}function rte({className:i}){return Je.jsx("div",{className:cl("absolute top-0 w-full h-full bg-black/50 transition-opacity",i)})}function ate(){const{open:i}=bf();return Je.jsx("div",{className:`fixed z-51 right-[54px] box-content bottom-[145px] bg-purple-accent h-4 w-4 rounded-full outline-solid outline-2 outline-white transition-[opacity, position] duration-500 ${i?"opacity-0":"opacity-100"}`})}const ste=i=>Ze.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ote=i=>Ze.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),lte=i=>Ze.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));function cte(i){const e=new Date(i),t=new Date,n=t.getTime()-e.getTime(),a=Math.floor(n/6e4);if(a<1)return"Just now";if(a<60)return`${a} min`;if(a>=60&&a<120)return"1 hour";const o=Math.floor(a/60);if(o<24)return`${o} hours`;const c=e.getDate(),h=t.getDate()-c;return h===1?"Yesterday":h>=2&&h<=7?e.toLocaleDateString("en-US",{weekday:"short"}):t.getFullYear()-e.getFullYear()===0?e.toLocaleDateString("en-US",{month:"short",day:"numeric"}):e.toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})}function ute({chat:i,isSelected:e,assetsUrl:t,onSelect:n}){const a=`${t}/assets/chat_trigger.png`,o=bI(i.message),c=jee(o);return Je.jsxs(ru,{onClick:n,className:cl("flex w-full flex-row items-center gap-4 px-4 py-3 text-left transition-colors","data-active:bg-gray-100 data-hover:bg-gray-100",e&&"bg-gray-100"),children:[Je.jsx("img",{src:a,alt:"",className:"h-12 w-12 shrink-0 rounded-full object-cover"}),Je.jsxs("div",{className:"min-w-0 flex-1",children:[Je.jsx("p",{className:"truncate text-base leading-6 font-medium text-black",children:c}),Je.jsx("p",{className:"text-sm leading-5 text-gray-500",children:cte(i.message.updatedAt)})]}),Je.jsx(lte,{className:"h-5 w-5 shrink-0 text-gray-400"})]})}function fte({className:i,...e}){const{setView:t,config:n,setMode:a}=bf(),{messages:o,getThreadsSummaryData:c}=Dy(),d=Ze.useMemo(()=>c(),[o]),h=Dy(E=>E.currentThreadId),y=Dy(E=>E.setCurrentThreadId),_=n.assetsUrl;function p(){t("chat"),a(Om.Text)}function v(){y(void 0),t("chat"),a(Om.Text)}function S(E){y(E),t("chat"),a(Om.Text)}return Je.jsxs("div",{...e,className:cl("flex h-full flex-col rounded-t-[40px] bg-white z-51",i),children:[Je.jsxs("header",{className:"flex shrink-0 items-center justify-between gap-4 px-4 py-4",children:[Je.jsx(ru,{onClick:p,"aria-label":"Back to chat",className:"text-purple-accent flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors data-hover:bg-gray-100",children:Je.jsx(ste,{className:"h-6 w-6"})}),Je.jsx("h1",{className:"text-lg leading-7 font-bold text-black",children:"Chats"}),Je.jsx(ru,{onClick:v,"aria-label":"New chat",className:"text-purple-accent flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors data-hover:bg-gray-100",children:Je.jsx(ote,{className:"h-6 w-6"})})]}),Je.jsx("div",{className:"no-scrollbar flex flex-1 flex-col overflow-y-auto",children:d.length===0?Je.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center px-6 py-12 text-center",children:[Je.jsx("p",{className:"text-base font-medium text-gray-500",children:"No conversations yet"}),Je.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Start a new chat to see it here"}),Je.jsx(ru,{onClick:v,className:"bg-purple-accent data-hover:bg-purple-accent/90 mt-4 rounded-full px-4 py-2 text-sm font-medium text-white transition-colors",children:"New chat"})]}):d.map(E=>Je.jsx("div",{className:"border-b border-gray-200 last:border-b-0",children:Je.jsx(ute,{chat:{threadId:E.threadId,message:E.lastMessage},isSelected:h===E.threadId,assetsUrl:_,onSelect:()=>S(E.threadId)})},E.threadId))})]})}var Om=(i=>(i.Voice="voice",i.Text="text",i))(Om||{});const dte=640,SI=Ze.createContext(null),hte=({children:i,config:e})=>{const[t,n]=Ze.useState(!1),[a,o]=Ze.useState("chat"),[c,d]=Ze.useState("voice"),[h,y]=Ze.useState(0),_=window.innerWidth<=dte,p={open:t,setOpen:n,view:a,setView:o,mode:c,setMode:d,chatHeight:h,setChatHeight:y,isMobile:_,config:e};return Je.jsx(SI.Provider,{value:p,children:i})};function bf(){const i=Ze.useContext(SI);if(!i)throw new Error("ChatWidget components must be used inside <ChatWidget>");return i}function Lm(){const{isMobile:i,setChatHeight:e,config:t}=bf(),{anycableService:n}=yR(),a=Dy(),o=CE(),c=h=>{console.log(h);const y=h.event.messageUpdated?.message||h.event.messageCreated?.message;a.handleMessage(y)},d=async()=>{await o.init(t),await a.init()};return Ze.useEffect(()=>{e(i?window.innerHeight:680),d()},[]),Ze.useEffect(()=>{if(!n?.channels.chat)return;const h=n.channels.chat.on("message",c);return()=>{h()}},[n?.channels.chat]),Je.jsxs(Lm.Container,{children:[Je.jsx(Lm.Toggle,{}),Je.jsx(Lm.Content,{})]})}Lm.Container=function(i){const{open:e,isMobile:t}=bf();return Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:`bridge-ai-chat-widget fixed z-50 overflow-hidden transition-all duration-500 ease-in-out ${e?`${t?"right-0 bottom-0 h-full w-full rounded-none":"right-4 bottom-4 h-[calc(100%-32px)] w-[calc(100%-32px)] rounded-[40px]"} outline outline-black/9 sm:right-10 sm:bottom-10 sm:h-170 sm:w-90`:"right-10 bottom-10 h-33 w-33 rounded-[66px]"} `,style:{boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},children:i.children}),Je.jsx(ate,{})]})},Lm.Toggle=function(){const{open:i,setOpen:e,config:t}=bf();return Je.jsx("button",{onClick:()=>e(!i),"aria-expanded":i,className:`absolute top-0 left-0 z-10 transition-opacity duration-500 ${i?"pointer-events-none opacity-0":"pointer-events-auto opacity-100"} `,children:Je.jsx("img",{src:`${t.assetsUrl}/assets/chat_trigger.png`,alt:"Chat trigger",className:"h-full w-full object-cover"})})},Lm.Content=function(){const{view:i,mode:e,config:t}=bf(),n=Ze.useRef(null),a=Ze.useRef(null);return Ze.useEffect(()=>{const o=n.current;if(!o)return;a.current=a.current??new Kq(o,t.assetsUrl);const c=new ResizeObserver(d=>{for(const h of d){const{width:y,height:_}=h.contentRect;a.current?.onResize(y,_)}});return c.observe(o),()=>{a.current=null,c.unobserve(o)}},[t.assetsUrl]),Ze.useEffect(()=>{a.current?.setCameraMode(e)},[e]),Je.jsxs("div",{className:"relative flex h-full flex-col justify-end",children:[Je.jsx("canvas",{ref:n,className:`absolute top-0 h-full w-full ${i==="list"?"invisible":""}`,"aria-hidden":i==="list"}),i==="list"?Je.jsx(fte,{className:"h-full w-full"}):Je.jsxs(Je.Fragment,{children:[Je.jsxs("div",{className:"pointer-events-none absolute h-full w-full",children:[Je.jsx(ite,{className:`opacity-${e=="text"?100:0}`}),Je.jsx(rte,{className:`opacity-${e=="text"?100:0}`})]}),Je.jsx("div",{className:"flex w-full shrink-0 flex-col justify-end",children:e=="voice"?Je.jsx(BW,{}):Je.jsx(Zee,{})}),Je.jsx("div",{className:"h-16 shrink-0"}),Je.jsxs("div",{className:"pointer-events-none absolute top-0 left-0 z-5 flex h-full w-full flex-col justify-between pb-6",children:[Je.jsx(nte,{}),Je.jsx(Qee,{})]})]})]})};function pte({config:i}){return Je.jsx(hte,{config:i,children:Je.jsx(IW,{config:i,children:Je.jsx(Lm,{})})})}var GM={exports:{}},ub={},jM={exports:{}},YD={};var TI;function mte(){return TI||(TI=1,(function(i){function e(q,K){var ee=q.length;q.push(K);e:for(;0<ee;){var we=ee-1>>>1,ze=q[we];if(0<a(ze,K))q[we]=K,q[ee]=ze,ee=we;else break e}}function t(q){return q.length===0?null:q[0]}function n(q){if(q.length===0)return null;var K=q[0],ee=q.pop();if(ee!==K){q[0]=ee;e:for(var we=0,ze=q.length,V=ze>>>1;we<V;){var oe=2*(we+1)-1,Se=q[oe],Re=oe+1,Qe=q[Re];if(0>a(Se,ee))Re<ze&&0>a(Qe,Se)?(q[we]=Qe,q[Re]=ee,we=Re):(q[we]=Se,q[oe]=ee,we=oe);else if(Re<ze&&0>a(Qe,ee))q[we]=Qe,q[Re]=ee,we=Re;else break e}}return K}function a(q,K){var ee=q.sortIndex-K.sortIndex;return ee!==0?ee:q.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;i.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();i.unstable_now=function(){return c.now()-d}}var h=[],y=[],_=1,p=null,v=3,S=!1,E=!1,A=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function z(q){for(var K=t(y);K!==null;){if(K.callback===null)n(y);else if(K.startTime<=q)n(y),K.sortIndex=K.expirationTime,e(h,K);else break;K=t(y)}}function B(q){if(A=!1,z(q),!E)if(t(h)!==null)E=!0,j||(j=!0,te());else{var K=t(y);K!==null&&me(B,K.startTime-q)}}var j=!1,Y=-1,Z=5,k=-1;function F(){return C?!0:!(i.unstable_now()-k<Z)}function Q(){if(C=!1,j){var q=i.unstable_now();k=q;var K=!0;try{e:{E=!1,A&&(A=!1,N(Y),Y=-1),S=!0;var ee=v;try{t:{for(z(q),p=t(h);p!==null&&!(p.expirationTime>q&&F());){var we=p.callback;if(typeof we=="function"){p.callback=null,v=p.priorityLevel;var ze=we(p.expirationTime<=q);if(q=i.unstable_now(),typeof ze=="function"){p.callback=ze,z(q),K=!0;break t}p===t(h)&&n(h),z(q)}else n(h);p=t(h)}if(p!==null)K=!0;else{var V=t(y);V!==null&&me(B,V.startTime-q),K=!1}}break e}finally{p=null,v=ee,S=!1}K=void 0}}finally{K?te():j=!1}}}var te;if(typeof L=="function")te=function(){L(Q)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,he=re.port2;re.port1.onmessage=Q,te=function(){he.postMessage(null)}}else te=function(){w(Q,0)};function me(q,K){Y=w(function(){q(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q){q.callback=null},i.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<q?Math.floor(1e3/q):5},i.unstable_getCurrentPriorityLevel=function(){return v},i.unstable_next=function(q){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var ee=v;v=K;try{return q()}finally{v=ee}},i.unstable_requestPaint=function(){C=!0},i.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=v;v=q;try{return K()}finally{v=ee}},i.unstable_scheduleCallback=function(q,K,ee){var we=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?we+ee:we):ee=we,q){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ee+ze,q={id:_++,callback:K,priorityLevel:q,startTime:ee,expirationTime:ze,sortIndex:-1},ee>we?(q.sortIndex=ee,e(y,q),t(h)===null&&q===t(y)&&(A?(N(Y),Y=-1):A=!0,me(B,ee-we))):(q.sortIndex=ze,e(h,q),E||S||(E=!0,j||(j=!0,te()))),q},i.unstable_shouldYield=F,i.unstable_wrapCallback=function(q){var K=v;return function(){var ee=v;v=K;try{return q.apply(this,arguments)}finally{v=ee}}}})(YD)),YD}var WD={};var EI;function gte(){return EI||(EI=1,(function(i){process.env.NODE_ENV!=="production"&&(function(){function e(){if(B=!1,k){var q=i.unstable_now();te=q;var K=!0;try{e:{L=!1,z&&(z=!1,Y(F),F=-1),N=!0;var ee=w;try{t:{for(c(q),C=n(S);C!==null&&!(C.expirationTime>q&&h());){var we=C.callback;if(typeof we=="function"){C.callback=null,w=C.priorityLevel;var ze=we(C.expirationTime<=q);if(q=i.unstable_now(),typeof ze=="function"){C.callback=ze,c(q),K=!0;break t}C===n(S)&&a(S),c(q)}else a(S);C=n(S)}if(C!==null)K=!0;else{var V=n(E);V!==null&&y(d,V.startTime-q),K=!1}}break e}finally{C=null,w=ee,N=!1}K=void 0}}finally{K?re():k=!1}}}function t(q,K){var ee=q.length;q.push(K);e:for(;0<ee;){var we=ee-1>>>1,ze=q[we];if(0<o(ze,K))q[we]=K,q[ee]=ze,ee=we;else break e}}function n(q){return q.length===0?null:q[0]}function a(q){if(q.length===0)return null;var K=q[0],ee=q.pop();if(ee!==K){q[0]=ee;e:for(var we=0,ze=q.length,V=ze>>>1;we<V;){var oe=2*(we+1)-1,Se=q[oe],Re=oe+1,Qe=q[Re];if(0>o(Se,ee))Re<ze&&0>o(Qe,Se)?(q[we]=Qe,q[Re]=ee,we=Re):(q[we]=Se,q[oe]=ee,we=oe);else if(Re<ze&&0>o(Qe,ee))q[we]=Qe,q[Re]=ee,we=Re;else break e}}return K}function o(q,K){var ee=q.sortIndex-K.sortIndex;return ee!==0?ee:q.id-K.id}function c(q){for(var K=n(E);K!==null;){if(K.callback===null)a(E);else if(K.startTime<=q)a(E),K.sortIndex=K.expirationTime,t(S,K);else break;K=n(E)}}function d(q){if(z=!1,c(q),!L)if(n(S)!==null)L=!0,k||(k=!0,re());else{var K=n(E);K!==null&&y(d,K.startTime-q)}}function h(){return B?!0:!(i.unstable_now()-te<Q)}function y(q,K){F=j(function(){q(i.unstable_now())},K)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;i.unstable_now=function(){return _.now()}}else{var p=Date,v=p.now();i.unstable_now=function(){return p.now()-v}}var S=[],E=[],A=1,C=null,w=3,N=!1,L=!1,z=!1,B=!1,j=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null,k=!1,F=-1,Q=5,te=-1;if(typeof Z=="function")var re=function(){Z(e)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,me=he.port2;he.port1.onmessage=e,re=function(){me.postMessage(null)}}else re=function(){j(e,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q){q.callback=null},i.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<q?Math.floor(1e3/q):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(q){switch(w){case 1:case 2:case 3:var K=3;break;default:K=w}var ee=w;w=K;try{return q()}finally{w=ee}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=w;w=q;try{return K()}finally{w=ee}},i.unstable_scheduleCallback=function(q,K,ee){var we=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?we+ee:we):ee=we,q){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ee+ze,q={id:A++,callback:K,priorityLevel:q,startTime:ee,expirationTime:ze,sortIndex:-1},ee>we?(q.sortIndex=ee,t(E,q),n(S)===null&&q===n(E)&&(z?(Y(F),F=-1):z=!0,y(d,ee-we))):(q.sortIndex=ze,t(S,q),L||N||(L=!0,k||(k=!0,re()))),q},i.unstable_shouldYield=h,i.unstable_wrapCallback=function(q){var K=w;return function(){var ee=w;w=K;try{return q.apply(this,arguments)}finally{w=ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(WD)),WD}var MI;function AI(){return MI||(MI=1,process.env.NODE_ENV==="production"?jM.exports=mte():jM.exports=gte()),jM.exports}var wI;function yte(){if(wI)return ub;wI=1;var i=AI(),e=g0(),t=DU();function n(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function o(l){var f=l,m=l;if(l.alternate)for(;f.return;)f=f.return;else{l=f;do f=l,(f.flags&4098)!==0&&(m=f.return),l=f.return;while(l)}return f.tag===3?m:null}function c(l){if(l.tag===13){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function d(l){if(l.tag===31){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function h(l){if(o(l)!==l)throw Error(n(188))}function y(l){var f=l.alternate;if(!f){if(f=o(l),f===null)throw Error(n(188));return f!==l?null:l}for(var m=l,b=f;;){var M=m.return;if(M===null)break;var R=M.alternate;if(R===null){if(b=M.return,b!==null){m=b;continue}break}if(M.child===R.child){for(R=M.child;R;){if(R===m)return h(M),l;if(R===b)return h(M),f;R=R.sibling}throw Error(n(188))}if(m.return!==b.return)m=M,b=R;else{for(var U=!1,$=M.child;$;){if($===m){U=!0,m=M,b=R;break}if($===b){U=!0,b=M,m=R;break}$=$.sibling}if(!U){for($=R.child;$;){if($===m){U=!0,m=R,b=M;break}if($===b){U=!0,b=R,m=M;break}$=$.sibling}if(!U)throw Error(n(189))}}if(m.alternate!==b)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?l:f}function _(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l;for(l=l.child;l!==null;){if(f=_(l),f!==null)return f;l=l.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function te(l){return l===null||typeof l!="object"?null:(l=Q&&l[Q]||l["@@iterator"],typeof l=="function"?l:null)}var re=Symbol.for("react.client.reference");function he(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===re?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case A:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case j:return"SuspenseList";case k:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case E:return"Portal";case L:return l.displayName||"Context";case N:return(l._context.displayName||"Context")+".Consumer";case z:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Y:return f=l.displayName||null,f!==null?f:he(l.type)||"Memo";case Z:f=l._payload,l=l._init;try{return he(l(f))}catch{}}return null}var me=Array.isArray,q=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},we=[],ze=-1;function V(l){return{current:l}}function oe(l){0>ze||(l.current=we[ze],we[ze]=null,ze--)}function Se(l,f){ze++,we[ze]=l.current,l.current=f}var Re=V(null),Qe=V(null),Me=V(null),ve=V(null);function nt(l,f){switch(Se(Me,f),Se(Qe,l),Se(Re,null),f.nodeType){case 9:case 11:l=(l=f.documentElement)&&(l=l.namespaceURI)?JA(l):0;break;default:if(l=f.tagName,f=f.namespaceURI)f=JA(f),l=Yx(f,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}oe(Re),Se(Re,l)}function lt(){oe(Re),oe(Qe),oe(Me)}function ut(l){l.memoizedState!==null&&Se(ve,l);var f=Re.current,m=Yx(f,l.type);f!==m&&(Se(Qe,l),Se(Re,m))}function We(l){Qe.current===l&&(oe(Re),oe(Qe)),ve.current===l&&(oe(ve),Vg._currentValue=ee)}var Ln,Qt;function nn(l){if(Ln===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Ln=f&&f[1]||"",Qt=-1<m.stack.indexOf(`
4200
+ )`}}),Je.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_top,rgba(0,0,0,0.5)_0%,rgba(0,0,0,0.5)_15%,rgba(0,0,0,0)_100%)]"})]})}function rte({className:i}){return Je.jsx("div",{className:cl("absolute top-0 w-full h-full bg-black/50 transition-opacity",i)})}function ate(){const{open:i}=bf();return Je.jsx("div",{className:`fixed z-51 right-[54px] box-content bottom-[145px] bg-purple-accent h-4 w-4 rounded-full outline-solid outline-2 outline-white transition-[opacity, position] duration-500 ${i?"opacity-0":"opacity-100"}`})}const ste=i=>Ze.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ote=i=>Ze.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),lte=i=>Ze.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},Ze.createElement("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));function cte(i){const e=new Date(i),t=new Date,n=t.getTime()-e.getTime(),a=Math.floor(n/6e4);if(a<1)return"Just now";if(a<60)return`${a} min`;if(a>=60&&a<120)return"1 hour";const o=Math.floor(a/60);if(o<24)return`${o} hours`;const c=e.getDate(),h=t.getDate()-c;return h===1?"Yesterday":h>=2&&h<=7?e.toLocaleDateString("en-US",{weekday:"short"}):t.getFullYear()-e.getFullYear()===0?e.toLocaleDateString("en-US",{month:"short",day:"numeric"}):e.toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})}function ute({chat:i,isSelected:e,assetsUrl:t,onSelect:n}){const a=`${t}/chat_trigger.png`,o=bI(i.message),c=jee(o);return Je.jsxs(ru,{onClick:n,className:cl("flex w-full flex-row items-center gap-4 px-4 py-3 text-left transition-colors","data-active:bg-gray-100 data-hover:bg-gray-100",e&&"bg-gray-100"),children:[Je.jsx("img",{src:a,alt:"",className:"h-12 w-12 shrink-0 rounded-full object-cover"}),Je.jsxs("div",{className:"min-w-0 flex-1",children:[Je.jsx("p",{className:"truncate text-base leading-6 font-medium text-black",children:c}),Je.jsx("p",{className:"text-sm leading-5 text-gray-500",children:cte(i.message.updatedAt)})]}),Je.jsx(lte,{className:"h-5 w-5 shrink-0 text-gray-400"})]})}function fte({className:i,...e}){const{setView:t,config:n,setMode:a}=bf(),{messages:o,getThreadsSummaryData:c}=Dy(),d=Ze.useMemo(()=>c(),[o]),h=Dy(E=>E.currentThreadId),y=Dy(E=>E.setCurrentThreadId),_=n.assetsUrl;function p(){t("chat"),a(Om.Text)}function v(){y(void 0),t("chat"),a(Om.Text)}function S(E){y(E),t("chat"),a(Om.Text)}return Je.jsxs("div",{...e,className:cl("flex h-full flex-col rounded-t-[40px] bg-white z-51",i),children:[Je.jsxs("header",{className:"flex shrink-0 items-center justify-between gap-4 px-4 py-4",children:[Je.jsx(ru,{onClick:p,"aria-label":"Back to chat",className:"text-purple-accent flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors data-hover:bg-gray-100",children:Je.jsx(ste,{className:"h-6 w-6"})}),Je.jsx("h1",{className:"text-lg leading-7 font-bold text-black",children:"Chats"}),Je.jsx(ru,{onClick:v,"aria-label":"New chat",className:"text-purple-accent flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors data-hover:bg-gray-100",children:Je.jsx(ote,{className:"h-6 w-6"})})]}),Je.jsx("div",{className:"no-scrollbar flex flex-1 flex-col overflow-y-auto",children:d.length===0?Je.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center px-6 py-12 text-center",children:[Je.jsx("p",{className:"text-base font-medium text-gray-500",children:"No conversations yet"}),Je.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Start a new chat to see it here"}),Je.jsx(ru,{onClick:v,className:"bg-purple-accent data-hover:bg-purple-accent/90 mt-4 rounded-full px-4 py-2 text-sm font-medium text-white transition-colors",children:"New chat"})]}):d.map(E=>Je.jsx("div",{className:"border-b border-gray-200 last:border-b-0",children:Je.jsx(ute,{chat:{threadId:E.threadId,message:E.lastMessage},isSelected:h===E.threadId,assetsUrl:_,onSelect:()=>S(E.threadId)})},E.threadId))})]})}var Om=(i=>(i.Voice="voice",i.Text="text",i))(Om||{});const dte=640,SI=Ze.createContext(null),hte=({children:i,config:e})=>{const[t,n]=Ze.useState(!1),[a,o]=Ze.useState("chat"),[c,d]=Ze.useState("voice"),[h,y]=Ze.useState(0),_=window.innerWidth<=dte,p={open:t,setOpen:n,view:a,setView:o,mode:c,setMode:d,chatHeight:h,setChatHeight:y,isMobile:_,config:e};return Je.jsx(SI.Provider,{value:p,children:i})};function bf(){const i=Ze.useContext(SI);if(!i)throw new Error("ChatWidget components must be used inside <ChatWidget>");return i}function Lm(){const{isMobile:i,setChatHeight:e,config:t}=bf(),{anycableService:n}=yR(),a=Dy(),o=CE(),c=h=>{console.log(h);const y=h.event.messageUpdated?.message||h.event.messageCreated?.message;a.handleMessage(y)},d=async()=>{await o.init(t),await a.init()};return Ze.useEffect(()=>{e(i?window.innerHeight:680),d()},[]),Ze.useEffect(()=>{if(!n?.channels.chat)return;const h=n.channels.chat.on("message",c);return()=>{h()}},[n?.channels.chat]),Je.jsxs(Lm.Container,{children:[Je.jsx(Lm.Toggle,{}),Je.jsx(Lm.Content,{})]})}Lm.Container=function(i){const{open:e,isMobile:t}=bf();return Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:`bridge-ai-chat-widget fixed z-50 overflow-hidden transition-all duration-500 ease-in-out ${e?`${t?"right-0 bottom-0 h-full w-full rounded-none":"right-4 bottom-4 h-[calc(100%-32px)] w-[calc(100%-32px)] rounded-[40px]"} outline outline-black/9 sm:right-10 sm:bottom-10 sm:h-170 sm:w-90`:"right-10 bottom-10 h-33 w-33 rounded-[66px]"} `,style:{boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},children:i.children}),Je.jsx(ate,{})]})},Lm.Toggle=function(){const{open:i,setOpen:e,config:t}=bf();return Je.jsx("button",{onClick:()=>e(!i),"aria-expanded":i,className:`absolute top-0 left-0 z-10 transition-opacity duration-500 ${i?"pointer-events-none opacity-0":"pointer-events-auto opacity-100"} `,children:Je.jsx("img",{src:`${t.assetsUrl}/chat_trigger.png`,alt:"Chat trigger",className:"h-full w-full object-cover"})})},Lm.Content=function(){const{view:i,mode:e,config:t}=bf(),n=Ze.useRef(null),a=Ze.useRef(null);return Ze.useEffect(()=>{const o=n.current;if(!o)return;a.current=a.current??new Kq(o,t.assetsUrl);const c=new ResizeObserver(d=>{for(const h of d){const{width:y,height:_}=h.contentRect;a.current?.onResize(y,_)}});return c.observe(o),()=>{a.current=null,c.unobserve(o)}},[t.assetsUrl]),Ze.useEffect(()=>{a.current?.setCameraMode(e)},[e]),Je.jsxs("div",{className:"relative flex h-full flex-col justify-end",children:[Je.jsx("canvas",{ref:n,className:`absolute top-0 h-full w-full ${i==="list"?"invisible":""}`,"aria-hidden":i==="list"}),i==="list"?Je.jsx(fte,{className:"h-full w-full"}):Je.jsxs(Je.Fragment,{children:[Je.jsxs("div",{className:"pointer-events-none absolute h-full w-full",children:[Je.jsx(ite,{className:`opacity-${e=="text"?100:0}`}),Je.jsx(rte,{className:`opacity-${e=="text"?100:0}`})]}),Je.jsx("div",{className:"flex w-full shrink-0 flex-col justify-end",children:e=="voice"?Je.jsx(BW,{}):Je.jsx(Zee,{})}),Je.jsx("div",{className:"h-16 shrink-0"}),Je.jsxs("div",{className:"pointer-events-none absolute top-0 left-0 z-5 flex h-full w-full flex-col justify-between pb-6",children:[Je.jsx(nte,{}),Je.jsx(Qee,{})]})]})]})};function pte({config:i}){return Je.jsx(hte,{config:i,children:Je.jsx(IW,{config:i,children:Je.jsx(Lm,{})})})}var GM={exports:{}},ub={},jM={exports:{}},YD={};var TI;function mte(){return TI||(TI=1,(function(i){function e(q,K){var ee=q.length;q.push(K);e:for(;0<ee;){var we=ee-1>>>1,ze=q[we];if(0<a(ze,K))q[we]=K,q[ee]=ze,ee=we;else break e}}function t(q){return q.length===0?null:q[0]}function n(q){if(q.length===0)return null;var K=q[0],ee=q.pop();if(ee!==K){q[0]=ee;e:for(var we=0,ze=q.length,V=ze>>>1;we<V;){var oe=2*(we+1)-1,Se=q[oe],Re=oe+1,Qe=q[Re];if(0>a(Se,ee))Re<ze&&0>a(Qe,Se)?(q[we]=Qe,q[Re]=ee,we=Re):(q[we]=Se,q[oe]=ee,we=oe);else if(Re<ze&&0>a(Qe,ee))q[we]=Qe,q[Re]=ee,we=Re;else break e}}return K}function a(q,K){var ee=q.sortIndex-K.sortIndex;return ee!==0?ee:q.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;i.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();i.unstable_now=function(){return c.now()-d}}var h=[],y=[],_=1,p=null,v=3,S=!1,E=!1,A=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function z(q){for(var K=t(y);K!==null;){if(K.callback===null)n(y);else if(K.startTime<=q)n(y),K.sortIndex=K.expirationTime,e(h,K);else break;K=t(y)}}function B(q){if(A=!1,z(q),!E)if(t(h)!==null)E=!0,j||(j=!0,te());else{var K=t(y);K!==null&&me(B,K.startTime-q)}}var j=!1,Y=-1,Z=5,k=-1;function F(){return C?!0:!(i.unstable_now()-k<Z)}function Q(){if(C=!1,j){var q=i.unstable_now();k=q;var K=!0;try{e:{E=!1,A&&(A=!1,N(Y),Y=-1),S=!0;var ee=v;try{t:{for(z(q),p=t(h);p!==null&&!(p.expirationTime>q&&F());){var we=p.callback;if(typeof we=="function"){p.callback=null,v=p.priorityLevel;var ze=we(p.expirationTime<=q);if(q=i.unstable_now(),typeof ze=="function"){p.callback=ze,z(q),K=!0;break t}p===t(h)&&n(h),z(q)}else n(h);p=t(h)}if(p!==null)K=!0;else{var V=t(y);V!==null&&me(B,V.startTime-q),K=!1}}break e}finally{p=null,v=ee,S=!1}K=void 0}}finally{K?te():j=!1}}}var te;if(typeof L=="function")te=function(){L(Q)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,he=re.port2;re.port1.onmessage=Q,te=function(){he.postMessage(null)}}else te=function(){w(Q,0)};function me(q,K){Y=w(function(){q(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q){q.callback=null},i.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<q?Math.floor(1e3/q):5},i.unstable_getCurrentPriorityLevel=function(){return v},i.unstable_next=function(q){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var ee=v;v=K;try{return q()}finally{v=ee}},i.unstable_requestPaint=function(){C=!0},i.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=v;v=q;try{return K()}finally{v=ee}},i.unstable_scheduleCallback=function(q,K,ee){var we=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?we+ee:we):ee=we,q){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ee+ze,q={id:_++,callback:K,priorityLevel:q,startTime:ee,expirationTime:ze,sortIndex:-1},ee>we?(q.sortIndex=ee,e(y,q),t(h)===null&&q===t(y)&&(A?(N(Y),Y=-1):A=!0,me(B,ee-we))):(q.sortIndex=ze,e(h,q),E||S||(E=!0,j||(j=!0,te()))),q},i.unstable_shouldYield=F,i.unstable_wrapCallback=function(q){var K=v;return function(){var ee=v;v=K;try{return q.apply(this,arguments)}finally{v=ee}}}})(YD)),YD}var WD={};var EI;function gte(){return EI||(EI=1,(function(i){process.env.NODE_ENV!=="production"&&(function(){function e(){if(B=!1,k){var q=i.unstable_now();te=q;var K=!0;try{e:{L=!1,z&&(z=!1,Y(F),F=-1),N=!0;var ee=w;try{t:{for(c(q),C=n(S);C!==null&&!(C.expirationTime>q&&h());){var we=C.callback;if(typeof we=="function"){C.callback=null,w=C.priorityLevel;var ze=we(C.expirationTime<=q);if(q=i.unstable_now(),typeof ze=="function"){C.callback=ze,c(q),K=!0;break t}C===n(S)&&a(S),c(q)}else a(S);C=n(S)}if(C!==null)K=!0;else{var V=n(E);V!==null&&y(d,V.startTime-q),K=!1}}break e}finally{C=null,w=ee,N=!1}K=void 0}}finally{K?re():k=!1}}}function t(q,K){var ee=q.length;q.push(K);e:for(;0<ee;){var we=ee-1>>>1,ze=q[we];if(0<o(ze,K))q[we]=K,q[ee]=ze,ee=we;else break e}}function n(q){return q.length===0?null:q[0]}function a(q){if(q.length===0)return null;var K=q[0],ee=q.pop();if(ee!==K){q[0]=ee;e:for(var we=0,ze=q.length,V=ze>>>1;we<V;){var oe=2*(we+1)-1,Se=q[oe],Re=oe+1,Qe=q[Re];if(0>o(Se,ee))Re<ze&&0>o(Qe,Se)?(q[we]=Qe,q[Re]=ee,we=Re):(q[we]=Se,q[oe]=ee,we=oe);else if(Re<ze&&0>o(Qe,ee))q[we]=Qe,q[Re]=ee,we=Re;else break e}}return K}function o(q,K){var ee=q.sortIndex-K.sortIndex;return ee!==0?ee:q.id-K.id}function c(q){for(var K=n(E);K!==null;){if(K.callback===null)a(E);else if(K.startTime<=q)a(E),K.sortIndex=K.expirationTime,t(S,K);else break;K=n(E)}}function d(q){if(z=!1,c(q),!L)if(n(S)!==null)L=!0,k||(k=!0,re());else{var K=n(E);K!==null&&y(d,K.startTime-q)}}function h(){return B?!0:!(i.unstable_now()-te<Q)}function y(q,K){F=j(function(){q(i.unstable_now())},K)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;i.unstable_now=function(){return _.now()}}else{var p=Date,v=p.now();i.unstable_now=function(){return p.now()-v}}var S=[],E=[],A=1,C=null,w=3,N=!1,L=!1,z=!1,B=!1,j=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null,k=!1,F=-1,Q=5,te=-1;if(typeof Z=="function")var re=function(){Z(e)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,me=he.port2;he.port1.onmessage=e,re=function(){me.postMessage(null)}}else re=function(){j(e,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q){q.callback=null},i.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<q?Math.floor(1e3/q):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(q){switch(w){case 1:case 2:case 3:var K=3;break;default:K=w}var ee=w;w=K;try{return q()}finally{w=ee}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=w;w=q;try{return K()}finally{w=ee}},i.unstable_scheduleCallback=function(q,K,ee){var we=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?we+ee:we):ee=we,q){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ee+ze,q={id:A++,callback:K,priorityLevel:q,startTime:ee,expirationTime:ze,sortIndex:-1},ee>we?(q.sortIndex=ee,t(E,q),n(S)===null&&q===n(E)&&(z?(Y(F),F=-1):z=!0,y(d,ee-we))):(q.sortIndex=ze,t(S,q),L||N||(L=!0,k||(k=!0,re()))),q},i.unstable_shouldYield=h,i.unstable_wrapCallback=function(q){var K=w;return function(){var ee=w;w=K;try{return q.apply(this,arguments)}finally{w=ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(WD)),WD}var MI;function AI(){return MI||(MI=1,process.env.NODE_ENV==="production"?jM.exports=mte():jM.exports=gte()),jM.exports}var wI;function yte(){if(wI)return ub;wI=1;var i=AI(),e=g0(),t=DU();function n(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function o(l){var f=l,m=l;if(l.alternate)for(;f.return;)f=f.return;else{l=f;do f=l,(f.flags&4098)!==0&&(m=f.return),l=f.return;while(l)}return f.tag===3?m:null}function c(l){if(l.tag===13){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function d(l){if(l.tag===31){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function h(l){if(o(l)!==l)throw Error(n(188))}function y(l){var f=l.alternate;if(!f){if(f=o(l),f===null)throw Error(n(188));return f!==l?null:l}for(var m=l,b=f;;){var M=m.return;if(M===null)break;var R=M.alternate;if(R===null){if(b=M.return,b!==null){m=b;continue}break}if(M.child===R.child){for(R=M.child;R;){if(R===m)return h(M),l;if(R===b)return h(M),f;R=R.sibling}throw Error(n(188))}if(m.return!==b.return)m=M,b=R;else{for(var U=!1,$=M.child;$;){if($===m){U=!0,m=M,b=R;break}if($===b){U=!0,b=M,m=R;break}$=$.sibling}if(!U){for($=R.child;$;){if($===m){U=!0,m=R,b=M;break}if($===b){U=!0,b=R,m=M;break}$=$.sibling}if(!U)throw Error(n(189))}}if(m.alternate!==b)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?l:f}function _(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l;for(l=l.child;l!==null;){if(f=_(l),f!==null)return f;l=l.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function te(l){return l===null||typeof l!="object"?null:(l=Q&&l[Q]||l["@@iterator"],typeof l=="function"?l:null)}var re=Symbol.for("react.client.reference");function he(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===re?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case A:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case j:return"SuspenseList";case k:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case E:return"Portal";case L:return l.displayName||"Context";case N:return(l._context.displayName||"Context")+".Consumer";case z:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Y:return f=l.displayName||null,f!==null?f:he(l.type)||"Memo";case Z:f=l._payload,l=l._init;try{return he(l(f))}catch{}}return null}var me=Array.isArray,q=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},we=[],ze=-1;function V(l){return{current:l}}function oe(l){0>ze||(l.current=we[ze],we[ze]=null,ze--)}function Se(l,f){ze++,we[ze]=l.current,l.current=f}var Re=V(null),Qe=V(null),Me=V(null),ve=V(null);function nt(l,f){switch(Se(Me,f),Se(Qe,l),Se(Re,null),f.nodeType){case 9:case 11:l=(l=f.documentElement)&&(l=l.namespaceURI)?JA(l):0;break;default:if(l=f.tagName,f=f.namespaceURI)f=JA(f),l=Yx(f,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}oe(Re),Se(Re,l)}function lt(){oe(Re),oe(Qe),oe(Me)}function ut(l){l.memoizedState!==null&&Se(ve,l);var f=Re.current,m=Yx(f,l.type);f!==m&&(Se(Qe,l),Se(Re,m))}function We(l){Qe.current===l&&(oe(Re),oe(Qe)),ve.current===l&&(oe(ve),Vg._currentValue=ee)}var Ln,Qt;function nn(l){if(Ln===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Ln=f&&f[1]||"",Qt=-1<m.stack.indexOf(`
4201
4201
  at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
4202
4202
  `+Ln+l+Qt}var Sn=!1;function yt(l,f){if(!l||Sn)return"";Sn=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(f){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(Be){var De=Be}Reflect.construct(l,[],Xe)}else{try{Xe.call()}catch(Be){De=Be}l.call(Xe.prototype)}}else{try{throw Error()}catch(Be){De=Be}(Xe=l())&&typeof Xe.catch=="function"&&Xe.catch(function(){})}}catch(Be){if(Be&&De&&typeof Be.stack=="string")return[Be.stack,De.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");M&&M.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=b.DetermineComponentFrameRoot(),U=R[0],$=R[1];if(U&&$){var se=U.split(`
4203
4203
  `),Ce=$.split(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bridgeapp-ai-chat-widget",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "description": "Embeddable chat widget for communication with Bridge AI agent",
6
6
  "type": "module",
7
7
  "main": "dist/bridge-ai-chat-widget.umd.js",
@@ -30,7 +30,16 @@
30
30
  "build-lib": "vite build --config vite.config.lib.ts && tsc -p tsconfig.build.json",
31
31
  "lint": "eslint .",
32
32
  "preview": "vite preview",
33
- "prepublishOnly": "npm run build-lib"
33
+ "prepublishOnly": "npm run build-lib",
34
+ "clean-dev-bucket": "aws s3 rm s3://bridgeapp-ai-chat-widget-dev --recursive",
35
+ "upload-dev-bucket": "aws s3 cp dist s3://bridgeapp-ai-chat-widget-dev --recursive",
36
+ "deploy-dev": "npm run build-dev && npm run clean-dev-bucket && npm run upload-dev-bucket",
37
+ "clean-stage-bucket": "aws s3 rm s3://bridge-ai-assistant --recursive",
38
+ "upload-stage-bucket": "aws s3 cp dist s3://bridge-ai-assistant --recursive",
39
+ "deploy-stage": "npm run build-dev && npm run clean-stage-bucket && npm run upload-stage-bucket",
40
+ "clean-assets-bucket": "aws s3 rm s3://bridge-ai-chat-widget-assets --recursive",
41
+ "upload-assets-bucket": "aws s3 cp /Users/Yurii/work/bridge-ai-assistant/src/assets s3://bridge-ai-chat-widget-assets --recursive",
42
+ "deploy-assets": "npm run clean-assets-bucket && npm run upload-assets-bucket"
34
43
  },
35
44
  "dependencies": {
36
45
  "@anycable/web": "^1.1.0",