@dierbei/web-ai-sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ interface AppProps {
2
+ config?: {
3
+ tenantId?: string;
4
+ theme?: string;
5
+ };
6
+ }
7
+ export declare function App({ config }: AppProps): import("preact").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ interface BubbleProps {
2
+ isOpen: boolean;
3
+ onClick: () => void;
4
+ }
5
+ export default function Bubble({ isOpen, onClick }: BubbleProps): import("preact").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ interface ChatWindowProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ tenantId?: string;
5
+ }
6
+ export default function ChatWindow({ isOpen, onClose, tenantId }: ChatWindowProps): import("preact").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
package/dist/icons.svg ADDED
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <symbol id="bluesky-icon" viewBox="0 0 16 17">
3
+ <g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
4
+ <defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
5
+ </symbol>
6
+ <symbol id="discord-icon" viewBox="0 0 20 19">
7
+ <path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
8
+ </symbol>
9
+ <symbol id="documentation-icon" viewBox="0 0 21 20">
10
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
11
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
12
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
13
+ </symbol>
14
+ <symbol id="github-icon" viewBox="0 0 19 19">
15
+ <path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
16
+ </symbol>
17
+ <symbol id="social-icon" viewBox="0 0 20 20">
18
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
19
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
20
+ </symbol>
21
+ <symbol id="x-icon" viewBox="0 0 19 19">
22
+ <path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
23
+ </symbol>
24
+ </svg>
@@ -0,0 +1,25 @@
1
+ import './index.css';
2
+ /**
3
+ * Configuration interface for WebAiSdk initialization.
4
+ * Shared between ESM and UMD environments for TypeScript support.
5
+ */
6
+ export interface WebAiSdkConfig {
7
+ /** Unique identifier for the tenant (school/org) */
8
+ tenantId: string;
9
+ /** UI Theme: 'light' | 'dark' */
10
+ theme?: 'light' | 'dark';
11
+ /** Custom initial message from the AI */
12
+ welcomeMessage?: string;
13
+ /** Optional pre-provided anonymous ID for user tracking */
14
+ anonymousId?: string;
15
+ }
16
+ /**
17
+ * Main SDK Class/Object providing initialization logic.
18
+ */
19
+ export declare const WebAiSdk: {
20
+ /**
21
+ * Initializes the AI SDK, attaches Shadow DOM, and renders the app.
22
+ */
23
+ init(config: WebAiSdkConfig): void;
24
+ };
25
+ export default WebAiSdk;
package/dist/index.mjs ADDED
@@ -0,0 +1,26 @@
1
+ !function(t){try{"undefined"!=typeof window&&(window.__WEB_AI_SDK_CSS__=(window.__WEB_AI_SDK_CSS__||"")+t)}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}('/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-500:oklch(63.7% .237 25.331);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.end{inset-inline-end:var(--spacing)}.right-6{right:calc(var(--spacing) * 6)}.bottom-6{bottom:calc(var(--spacing) * 6)}.z-10{z-index:10}.z-20{z-index:20}.z-\\[9999\\]{z-index:9999}.z-\\[10000\\]{z-index:10000}.z-\\[10020\\]{z-index:10020}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.ml-0\\.5{margin-left:calc(var(--spacing) * .5)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.h-1{height:calc(var(--spacing) * 1)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-\\[1px\\]{height:1px}.h-\\[80px\\]{height:80px}.h-\\[600px\\]{height:600px}.max-h-\\[120px\\]{max-height:120px}.max-h-\\[280px\\]{max-height:280px}.max-h-\\[calc\\(100vh-32px\\)\\]{max-height:calc(100vh - 32px)}.w-1{width:calc(var(--spacing) * 1)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-14{width:calc(var(--spacing) * 14)}.w-\\[380px\\]{width:380px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[92\\%\\]{max-width:92%}.max-w-\\[calc\\(100vw-32px\\)\\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-bottom-right{transform-origin:100% 100%}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-8{--tw-translate-y:calc(var(--spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[pulse_3s_ease-in-out_infinite\\]{animation:3s ease-in-out infinite pulse}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-tl-sm{border-top-left-radius:var(--radius-sm)}.rounded-tr-sm{border-top-right-radius:var(--radius-sm)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\[\\#dbe6fe\\]{border-color:#dbe6fe}.border-\\[\\#e2e8f0\\]\\/80{border-color:oklab(92.8761% -.00315791 -.0122172/.8)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/60{border-color:#e5e7eb99}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/60{border-color:color-mix(in oklab, var(--color-gray-200) 60%, transparent)}}.bg-\\[\\#000666\\]{background-color:#000666}.bg-\\[\\#000666\\]\\/60{background-color:oklab(23.7888% -.0156565 -.154117/.6)}.bg-\\[\\#f0f4f8\\]{background-color:#f0f4f8}.bg-\\[\\#f0f4ff\\]{background-color:#f0f4ff}.bg-black\\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\\/\\[0\\.03\\]{background-color:#00000008}@supports (color:color-mix(in lab, red, red)){.bg-black\\/\\[0\\.03\\]{background-color:color-mix(in oklab, var(--color-black) 3%, transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/50{background-color:color-mix(in oklab, var(--color-gray-50) 50%, transparent)}}.bg-gray-50\\/90{background-color:#f9fafbe6}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/90{background-color:color-mix(in oklab, var(--color-gray-50) 90%, transparent)}}.bg-green-50\\/80{background-color:#f0fdf4cc}@supports (color:color-mix(in lab, red, red)){.bg-green-50\\/80{background-color:color-mix(in oklab, var(--color-green-50) 80%, transparent)}}.bg-red-50\\/80{background-color:#fef2f2cc}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/80{background-color:color-mix(in oklab, var(--color-red-50) 80%, transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-tr{--tw-gradient-position:to top right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/5{--tw-gradient-from:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.from-white\\/5{--tw-gradient-from:color-mix(in oklab, var(--color-white) 5%, transparent)}}.from-white\\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-gray-400{--tw-gradient-to:var(--color-gray-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-green-600\\/20{fill:#00a54433}@supports (color:color-mix(in lab, red, red)){.fill-green-600\\/20{fill:color-mix(in oklab, var(--color-green-600) 20%, transparent)}}.fill-red-500\\/20{fill:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.fill-red-500\\/20{fill:color-mix(in oklab, var(--color-red-500) 20%, transparent)}}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pl-5{padding-left:calc(var(--spacing) * 5)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14\\.5px\\]{font-size:14.5px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#1a1a1a\\]{color:#1a1a1a}.text-\\[\\#000666\\]{color:#000666}.text-\\[\\#000666\\]\\/70{color:oklab(23.7888% -.0156565 -.154117/.7)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-white\\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.uppercase{text-transform:uppercase}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_4px_20px_rgba\\(0\\,6\\,102\\,0\\.3\\)\\]{--tw-shadow:0 4px 20px var(--tw-shadow-color,#0006664d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 8px 30px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:translate-x-0\\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}}.focus-within\\:border-\\[\\#000666\\]\\/40:focus-within{border-color:oklab(23.7888% -.0156565 -.154117/.4)}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\\:ring-\\[\\#000666\\]\\/20:focus-within{--tw-ring-color:oklab(23.7888% -.0156565 -.154117/.2)}@media (hover:hover){.hover\\:-translate-y-0\\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:rotate-90:hover{rotate:90deg}.hover\\:bg-\\[\\#000444\\]:hover{background-color:#000444}.hover\\:bg-\\[\\#e2e8f0\\]:hover{background-color:#e2e8f0}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:text-\\[\\#000666\\]:hover{color:#000666}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-green-600:hover{color:var(--color-green-600)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-\\[0_8px_30px_rgba\\(0\\,6\\,102\\,0\\.4\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#00066666);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:border-\\[\\#000666\\]\\/30:focus{border-color:oklab(23.7888% -.0156565 -.154117/.3)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:ring-4:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\[\\#000666\\]\\/5:focus{--tw-ring-color:oklab(23.7888% -.0156565 -.154117/.05)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:opacity-50:disabled{opacity:.5}}:host{--maia-primary:#000666;--maia-primary-hover:#000444;--maia-primary-soft:#00066614;--maia-bg:#fff;--maia-bg-blur:#fffffff2;--maia-surface:#f8f9fc;--maia-border:#00000012;--maia-shadow-sm:0 2px 8px #00066614;--maia-shadow-md:0 4px 20px #00066624;--maia-shadow-lg:0 8px 32px #0006662e;--maia-radius-sm:8px;--maia-radius-md:12px;--maia-radius-lg:16px;--maia-radius-full:9999px;--maia-font-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "Segoe UI Variable", Roboto, "Noto Sans SC", "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";--maia-font-serif:"Georgia", "Noto Serif SC", "STSong", "SimSun", "Times New Roman", serif;--maia-font-mono:ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;font-family:var(--maia-font-sans);color:#1a1a1a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-synthesis:none;-webkit-user-select:none;user-select:none;font-size:15px;line-height:1.5;display:contents}:host .message-selectable{-webkit-user-select:text;user-select:text}:host>*{box-sizing:border-box}:host p,:host h1,:host h2,:host h3,:host h4{margin:0;padding:0}:host h1,:host h2,:host h3,:host h4{font-family:var(--maia-font-serif);font-weight:500}:host textarea,:host input,:host button{font-family:var(--maia-font-sans)}:host ::-webkit-scrollbar{width:4px}:host ::-webkit-scrollbar-track{background:0 0}:host ::-webkit-scrollbar-thumb{background:#00066626;border-radius:99px}:host ::-webkit-scrollbar-thumb:hover{background:#0006664d}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}\n/*$vite$:1*/');var e,t,n,r,o,l,i,a,s,_,c,u,d={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(t,n,r){var o,l,i,a={};for(i in n)"key"==i?o=n[i]:"ref"==i?l=n[i]:a[i]=n[i];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return v(t,a,o,l,null)}function v(e,r,o,l,i){var a={type:e,props:r,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++n:i,__i:-1,__u:0};return null==i&&null!=t.vnode&&t.vnode(a),a}function y(e){return e.children}function b(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function k(e){if(e.__P&&e.__d){var n=e.__v,r=n.__e,o=[],l=[],i=m({},n);i.__v=n.__v+1,t.vnode&&t.vnode(i),P(e.__P,i,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,o,null==r?w(n):r,!!(32&n.__u),l),i.__v=n.__v,i.__.__k[i.__i]=i,M(o,i,l),n.__e=n.__=null,i.__e!=r&&N(i)}}function N(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),N(e)}function C(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!S.__r++||o!=t.debounceRendering)&&((o=t.debounceRendering)||l)(S)}function S(){try{for(var e,t=1;r.length;)r.length>t&&r.sort(i),e=r.shift(),t=r.length,k(e)}finally{r.length=S.__r=0}}function I(e,t,n,r,o,l,i,a,s,_,c){var u,h,m,g,x,b,k,N=r&&r.__k||p,C=t.length;for(s=function(e,t,n,r,o){var l,i,a,s,_,c=n.length,u=c,d=0;for(e.__k=new Array(o),l=0;l<o;l++)null!=(i=t[l])&&"boolean"!=typeof i&&"function"!=typeof i?("string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?i=e.__k[l]=v(null,i,null,null,null):f(i)?i=e.__k[l]=v(y,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?i=e.__k[l]=v(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[l]=i,s=l+d,i.__=e,i.__b=e.__b+1,a=null,-1!=(_=i.__i=H(i,n,s,u))&&(u--,(a=n[_])&&(a.__u|=2)),null==a||null==a.__v?(-1==_&&(o>c?d--:o<c&&d++),"function"!=typeof i.type&&(i.__u|=4)):_!=s&&(_==s-1?d--:_==s+1?d++:(_>s?d--:d++,i.__u|=4))):e.__k[l]=null;if(u)for(l=0;l<c;l++)null!=(a=n[l])&&!(2&a.__u)&&(a.__e==r&&(r=w(a)),$(a,a));return r}(n,t,N,s,C),u=0;u<C;u++)null!=(m=n.__k[u])&&(h=-1!=m.__i&&N[m.__i]||d,m.__i=u,b=P(e,m,h,o,l,i,a,s,_,c),g=m.__e,m.ref&&h.ref!=m.ref&&(h.ref&&L(h.ref,null,m),c.push(m.ref,m.__c||g,m)),null==x&&null!=g&&(x=g),(k=!!(4&m.__u))||h.__k===m.__k?s=T(m,s,e,k):"function"==typeof m.type&&void 0!==b?s=b:g&&(s=g.nextSibling),m.__u&=-7);return n.__e=x,s}function T(e,t,n,r){var o,l;if("function"==typeof e.type){for(o=e.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=e,t=T(o[l],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=w(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(f(e)?e.some(function(e){A(e,t)}):t.push(e)),t}function H(e,t,n,r){var o,l,i,a=e.key,s=e.type,_=t[n],c=null!=_&&!(2&_.__u);if(null===_&&null==a||c&&a==_.key&&s==_.type)return n;if(r>(c?1:0))for(o=n-1,l=n+1;o>=0||l<t.length;)if(null!=(_=t[i=o>=0?o--:l++])&&!(2&_.__u)&&a==_.key&&s==_.type)return i;return-1}function U(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function z(e,t,n,r,o){var l,i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||U(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])l=t!=(t=t.replace(a,"$1")),i=t.toLowerCase(),t=i in e||"onFocusOut"==t||"onFocusIn"==t?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?r?n.u=r.u:(n.u=s,e.addEventListener(t,l?c:_,l)):e.removeEventListener(t,l?c:_,l);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function D(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=s++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function P(e,n,r,o,l,i,a,s,_,c){var u,d,h,x,v,w,k,N,C,S,T,A,H,U,z,D=n.type;if(void 0!==n.constructor)return null;128&r.__u&&(_=!!(32&r.__u),i=[s=n.__e=r.__e]),(u=t.__b)&&u(n);e:if("function"==typeof D)try{if(N=n.props,C=D.prototype&&D.prototype.render,S=(u=D.contextType)&&o[u.__c],T=u?S?S.props.value:u.__:o,r.__c?k=(d=n.__c=r.__c).__=d.__E:(C?n.__c=d=new D(N,T):(n.__c=d=new b(N,T),d.constructor=D,d.render=j),S&&S.sub(d),d.state||(d.state={}),d.__n=o,h=d.__d=!0,d.__h=[],d._sb=[]),C&&null==d.__s&&(d.__s=d.state),C&&null!=D.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,D.getDerivedStateFromProps(N,d.__s))),x=d.props,v=d.state,d.__v=n,h)C&&null==D.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),C&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(C&&null==D.getDerivedStateFromProps&&N!==x&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(N,T),n.__v==r.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(N,d.__s,T)){n.__v!=r.__v&&(d.props=N,d.state=d.__s,d.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(e){e&&(e.__=n)}),p.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(N,d.__s,T),C&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(x,v,w)})}if(d.context=T,d.props=N,d.__P=e,d.__e=!1,A=t.__r,H=0,C)d.state=d.__s,d.__d=!1,A&&A(n),u=d.render(d.props,d.state,d.context),p.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,A&&A(n),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++H<25);d.state=d.__s,null!=d.getChildContext&&(o=m(m({},o),d.getChildContext())),C&&!h&&null!=d.getSnapshotBeforeUpdate&&(w=d.getSnapshotBeforeUpdate(x,v)),U=null!=u&&u.type===y&&null==u.key?E(u.props.children):u,s=I(e,f(U)?U:[U],n,r,o,l,i,a,s,_,c),d.base=n.__e,n.__u&=-161,d.__h.length&&a.push(d),k&&(d.__E=d.__=null)}catch(e){if(n.__v=null,_||null!=i)if(e.then){for(n.__u|=_?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,n.__e=s}else{for(z=i.length;z--;)g(i[z]);W(n)}else n.__e=r.__e,n.__k=r.__k,e.then||W(n);t.__e(e,n,r)}else null==i&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):s=n.__e=O(r.__e,n,r,o,l,i,a,_,c);return(u=t.diffed)&&u(n),128&n.__u?void 0:s}function W(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(W))}function M(e,n,r){for(var o=0;o<r.length;o++)L(r[o],r[++o],r[++o]);t.__c&&t.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){t.__e(e,n.__v)}})}function E(e){return"object"!=typeof e||null==e||e.__b>0?e:f(e)?e.map(E):m({},e)}function O(n,r,o,l,i,a,s,_,c){var u,p,h,m,x,v,y,b=o.props||d,k=r.props,N=r.type;if("svg"==N?i="http://www.w3.org/2000/svg":"math"==N?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(u=0;u<a.length;u++)if((x=a[u])&&"setAttribute"in x==!!N&&(N?x.localName==N:3==x.nodeType)){n=x,a[u]=null;break}if(null==n){if(null==N)return document.createTextNode(k);n=document.createElementNS(i,N,k.is&&k),_&&(t.__m&&t.__m(r,a),_=!1),a=null}if(null==N)b===k||_&&n.data==k||(n.data=k);else{if(a=a&&e.call(n.childNodes),!_&&null!=a)for(b={},u=0;u<n.attributes.length;u++)b[(x=n.attributes[u]).name]=x.value;for(u in b)x=b[u],"dangerouslySetInnerHTML"==u?h=x:"children"==u||u in k||"value"==u&&"defaultValue"in k||"checked"==u&&"defaultChecked"in k||z(n,u,null,x,i);for(u in k)x=k[u],"children"==u?m=x:"dangerouslySetInnerHTML"==u?p=x:"value"==u?v=x:"checked"==u?y=x:_&&"function"!=typeof x||b[u]===x||z(n,u,x,b[u],i);if(p)_||h&&(p.__html==h.__html||p.__html==n.innerHTML)||(n.innerHTML=p.__html),r.__k=[];else if(h&&(n.innerHTML=""),I("template"==r.type?n.content:n,f(m)?m:[m],r,o,l,"foreignObject"==N?"http://www.w3.org/1999/xhtml":i,a,s,a?a[0]:o.__k&&w(o,0),_,c),null!=a)for(u=a.length;u--;)g(a[u]);_||(u="value","progress"==N&&null==v?n.removeAttribute("value"):null!=v&&(v!==n[u]||"progress"==N&&!v||"option"==N&&v!=b[u])&&z(n,u,v,b[u],i),u="checked",null!=y&&y!=n[u]&&z(n,u,y,b[u],i))}return n}function L(e,n,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function $(e,n,r){var o,l;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||L(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(l=0;l<o.length;l++)o[l]&&$(o[l],n,r||"function"!=typeof e.type);r||g(e.__e),e.__c=e.__=e.__e=void 0}function j(e,t,n){return this.constructor(e,n)}e=p.slice,t={__e:function(e,t,n,r){for(var o,l,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((l=o.constructor)&&null!=l.getDerivedStateFromError&&(o.setState(l.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},n=0,b.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m({},this.state);"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},b.prototype.render=y,r=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,i=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,a=/(PointerCapture)$|Capture$/i,s=0,_=D(!1),c=D(!0),u=0;var F,q,R,B,J=0,V=[],Z=t,K=Z.__b,X=Z.__r,G=Z.diffed,Q=Z.__c,Y=Z.unmount,ee=Z.__;function te(e,t){Z.__h&&Z.__h(q,e,J||t),J=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ne(e){return J=1,function(e,t,n){var r=te(F++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=q,!q.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!l||l.call(this,e,t,n);var i=r.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),l&&l.call(this,e,t,n)||i};q.__f=!0;var l=q.shouldComponentUpdate,i=q.componentWillUpdate;q.componentWillUpdate=function(e,t,n){if(this.__e){var r=l;l=void 0,o(e,t,n),l=r}i&&i.call(this,e,t,n)},q.shouldComponentUpdate=o}return r.__N||r.__}(ue,e)}function re(e,t){var n=te(F++,3);!Z.__s&&ce(n.__H,t)&&(n.__=e,n.u=t,q.__H.__h.push(n))}function oe(e){return J=5,function(e,t){var n=te(F++,7);return ce(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function le(){for(var e;e=V.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(se),t.__h.some(_e),t.__h=[]}catch(q){t.__h=[],Z.__e(q,e.__v)}}}Z.__b=function(e){q=null,K&&K(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ee&&ee(e,t)},Z.__r=function(e){X&&X(e),F=0;var t=(q=e.__c).__H;t&&(R===q?(t.__h=[],q.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(se),t.__h.some(_e),t.__h=[],F=0)),R=q},Z.diffed=function(e){G&&G(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==V.push(t)&&B===Z.requestAnimationFrame||((B=Z.requestAnimationFrame)||ae)(le)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),R=q=null},Z.__c=function(e,t){t.some(function(e){try{e.__h.some(se),e.__h=e.__h.filter(function(e){return!e.__||_e(e)})}catch(q){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Z.__e(q,e.__v)}}),Q&&Q(e,t)},Z.unmount=function(e){Y&&Y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{se(e)}catch(e){t=e}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var ie="function"==typeof requestAnimationFrame;function ae(e){var t,n=function(){clearTimeout(r),ie&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);ie&&(t=requestAnimationFrame(n))}function se(e){var t=q,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),q=t}function _e(e){var t=q;e.__c=e.__(),q=t}function ce(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ue(e,t){return"function"==typeof t?t(e):t}var de=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),pe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),he=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},fe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},me=function(e){function t(e){var n,r;return this.getChildContext||(n=/* @__PURE__ */new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,C(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+u++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),ge=()=>function(e){var t=q.context[e.__c],n=te(F++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(q)),t.props.value):e.__}(me),xe=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},ve=({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,children:o,iconNode:l,class:i="",...a})=>{const{size:s=24,strokeWidth:_=2,absoluteStrokeWidth:c=!1,color:u="currentColor",class:d=""}=ge()??{},p=r??c?24*Number(n??_)/Number(t??s):n??_;return x("svg",{...fe,width:t??s??24,height:t??s??24,stroke:e??u,"stroke-width":p,class:de("lucide",d,i),...!o&&!xe(a)&&{"aria-hidden":"true"},...a},[...l.map(([e,t])=>x(e,t)),...A(o)])},ye=(e,t)=>{const n=({class:n="",className:r="",children:o,...l})=>x(ve,{...l,iconNode:t,class:de(`lucide-${pe(he(e))}`,`lucide-${pe(e)}`,n,r)},o);return n.displayName=he(e),n},be=ye("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),we=ye("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),ke=ye("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]),Ne=ye("thumbs-down",[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]]),Ce=ye("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]),Se=ye("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ie=0;Array.isArray;function Te(e,n,r,o,l,i){n||(n={});var a,s,_=n;if("ref"in _)for(s in _={},n)"ref"==s?a=n[s]:_[s]=n[s];var c={type:e,props:_,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ie,__i:-1,__u:0,__source:l,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===_[s]&&(_[s]=a[s]);return t.vnode&&t.vnode(c),c}function Ae({isOpen:e,onClick:t}){/* @__PURE__ */
2
+ return Te("div",{className:"fixed bottom-6 right-6 z-[9999] transition-all duration-300 "+(e?"opacity-0 scale-90 pointer-events-none":"opacity-100 scale-100"),children:/* @__PURE__ */Te("button",{onClick:t,className:"flex items-center justify-center w-14 h-14 bg-[#000666] text-white rounded-full shadow-[0_4px_20px_rgba(0,6,102,0.3)] hover:shadow-[0_8px_30px_rgba(0,6,102,0.4)] transition-all duration-300 hover:scale-110 animate-[pulse_3s_ease-in-out_infinite]","aria-label":"Open AI Assistant",children:/* @__PURE__ */Te(we,{size:26,strokeWidth:1.5})})})}var He="web_ai_user_guid";function Ue(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function ze(){try{const e=localStorage.getItem(He);if(e)return e;const t=Ue();return localStorage.setItem(He,t),t}catch{return Ue()}}function De(e){return`web_ai_history_${e||"default"}_${ze()}`}function Pe(e){try{const t=De(e),n=localStorage.getItem(t);if(!n)return[];const r=JSON.parse(n);return Date.now()-r.updatedAt>864e5?(localStorage.removeItem(t),[]):r.messages}catch{return[]}}function We(e){if(!e)return{__html:""};let t=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");t=t.replace(/(https?:\/\/[^\s<]+)/g,'<a href="$1" target="_blank" rel="noopener noreferrer" class="text-[#000666] hover:underline transition-colors">$1</a>'),t=t.replace(/((?:1[3-9]\d{9})|(?:0\d{2,3}-?\d{7,8})|(?:400-?\d{3}-?\d{4}))/g,'<a href="tel:$1" class="text-[#000666] hover:underline transition-colors">$1</a>'),t=t.replace(/\*\*(.*?)\*\*/g,'<strong class="font-semibold text-gray-800">$1</strong>');const n=t.split("\n");let r=!1;const o=[];for(let l=0;l<n.length;l++){const e=n[l],t=e.match(/^(\s*)(?:-|\*)\s+(.*)/);t?(r||(o.push('<ul class="list-disc pl-5 my-1.5 space-y-1">'),r=!0),o.push(`<li>${t[2]}</li>`)):(r&&(o.push("</ul>"),r=!1),o.push(""===e.trim()?'<div class="h-1.5"></div>':`<div>${e}</div>`))}return r&&o.push("</ul>"),{__html:o.join("")}}var Me={role:"assistant",content:"您好!我是传音 AI 助手,很高兴帮您解答关于传媒学院的各种相关问题。",reasoningCollapsed:!0,isThinking:!1,timestamp:Date.now()};function Ee({isOpen:e,onClose:t,tenantId:n}){const[r,o]=ne(()=>{const e=Pe(n);return e.length>0?e:[Me]}),[l,i]=ne(""),[a,s]=ne(!1),[_,c]=ne({isOpen:!1,msgIndex:-1}),[u,d]=ne(!1),p=oe(null),h=oe(0);re(()=>{const e=Pe(n);e.length>0&&(h.current=e.length,d(!0))},[n]);const f=()=>{p.current?.scrollIntoView({behavior:"smooth",block:"end"})};re(()=>{e&&setTimeout(f,50)},[r,a,e]),re(()=>{const e=r.filter(e=>!e.isThinking);e.length>1&&function(e,t){try{const n=De(e),r={updatedAt:Date.now(),messages:t};localStorage.setItem(n,JSON.stringify(r))}catch{}}(n,e)},[r,n]);const m=async e=>{const t=void 0!==e?e:l;if(!t.trim()||a)return;const r=t.trim();i(""),s(!0),o(e=>[...e,{role:"user",content:r,timestamp:Date.now()},{role:"assistant",content:"",reasoning:"",isThinking:!0,reasoningCollapsed:!1,timestamp:Date.now()}]);try{const e={"Content-Type":"application/json","X-Anonymous-ID":ze(),...n?{"X-Tenant-Id":n}:{}},t=new URL("http://localhost:8080/api/v1/chat/stream");n&&t.searchParams.append("tenantId",n);const l=await fetch(t.toString(),{method:"POST",headers:e,body:JSON.stringify({message:r})});if(!l.body)throw new Error("No body in response");const i=l.body.getReader(),a=new TextDecoder;let _=!1;for(;!_;){const{value:e,done:t}=await i.read();if(_=t,e){const t=a.decode(e,{stream:!0});for(const e of t.split("\n")){if(!e.startsWith("data: "))continue;const t=e.replace("data: ","").trim();if(t&&"[DONE]"!==t)try{const e=JSON.parse(t);void 0!==e.reasoning&&(s(!1),o(t=>{const n=[...t];return n[n.length-1].reasoning+=e.reasoning,n})),void 0!==e.content&&(s(!1),o(t=>{const n=[...t],r=n[n.length-1];return r.isThinking&&(r.isThinking=!1,r.reasoning&&r.reasoning.length>0&&(r.reasoningCollapsed=!0)),r.content+=e.content,n}))}catch(K){}}}}}catch(_){o(e=>{const t=[...e],n=t[t.length-1];return n.content="网络异常,连接断开请稍后再试。",n.isThinking=!1,n.reasoning&&(n.reasoningCollapsed=!0),t})}finally{s(!1),o(e=>{const t=[...e];return t.length>0&&(t[t.length-1].isThinking=!1),t})}},g=(e,t)=>{o(n=>{const r=[...n];return r[e].feedback=t,r}),"down"===t&&c({isOpen:!0,msgIndex:e})},x=[{icon:"🏢",text:"宿舍环境查询"},{icon:"💰",text:"住宿费用标准"},{icon:"📞",text:"联系招生办"}];/* @__PURE__ */
3
+ return Te("div",{className:"fixed bottom-6 right-6 z-[10000] w-[380px] h-[600px] max-w-[calc(100vw-32px)] max-h-[calc(100vh-32px)] flex flex-col bg-white/95 backdrop-blur-lg rounded-2xl shadow-2xl transition-all duration-400 ease-[cubic-bezier(0.16,1,0.3,1)] origin-bottom-right ring-1 ring-black/5\n "+(e?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-8 pointer-events-none"),children:[
4
+ /* @__PURE__ */Te("div",{className:"flex items-center justify-between bg-[#000666] text-white px-5 py-4 rounded-t-2xl shrink-0 shadow-sm relative z-10 overflow-hidden",children:[
5
+ /* @__PURE__ */Te("div",{className:"absolute inset-0 bg-gradient-to-tr from-white/5 to-transparent pointer-events-none"}),
6
+ /* @__PURE__ */Te("div",{className:"flex flex-col relative z-20",children:[/* @__PURE__ */Te("h3",{className:"font-serif font-medium text-[17px] m-0 leading-none",children:"传音 AI 助手"}),/* @__PURE__ */Te("span",{className:"text-white/70 text-[11px] mt-1.5 font-sans tracking-wide",children:"随时为您解答"})]}),
7
+ /* @__PURE__ */Te("button",{onClick:t,className:"relative z-20 w-8 h-8 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 transition-all duration-200 hover:rotate-90 active:scale-95","aria-label":"Close Chat",children:/* @__PURE__ */Te(Se,{size:18})})]}),
8
+ /* @__PURE__ */Te("div",{className:"flex-1 overflow-y-auto p-5 space-y-5 bg-transparent scroll-smooth relative",children:[r.map((e,t)=>{const n=t>0?r[t-1]:null,l=n&&e.timestamp&&n.timestamp&&e.timestamp-n.timestamp>6e5,i=e.timestamp?new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";/* @__PURE__ */
9
+ return Te("div",{className:"flex flex-col w-full",children:[l&&/* @__PURE__ */Te("div",{className:"flex justify-center my-4",children:/* @__PURE__ */Te("span",{className:"text-[11px] text-gray-300 bg-gray-50/50 px-2.5 py-0.5 rounded-full font-sans tracking-tight",children:i})}),u&&t===h.current&&/* @__PURE__ */Te("div",{className:"flex items-center gap-3 my-6 px-2 opacity-30 select-none",children:[
10
+ /* @__PURE__ */Te("div",{className:"h-[1px] flex-1 bg-gradient-to-r from-transparent to-gray-400"}),
11
+ /* @__PURE__ */Te("span",{className:"text-[10px] text-gray-500 font-medium tracking-widest uppercase",children:"以上为历史对话记录"}),
12
+ /* @__PURE__ */Te("div",{className:"h-[1px] flex-1 bg-gradient-to-l from-transparent to-gray-400"})]}),
13
+ /* @__PURE__ */Te("div",{className:"flex flex-col w-full "+("user"===e.role?"items-end":"items-start"),children:[/* @__PURE__ */Te("span",{className:"text-[11px] text-gray-400 mb-1 px-1 font-medium",children:"user"===e.role?"您":"AI 助手"}),"assistant"===e.role?/* @__PURE__ */Te("div",{className:"flex flex-col gap-2.5 w-full max-w-[92%]",children:[e.isThinking&&(!e.reasoning||0===e.reasoning.length)&&0===e.content.length&&/* @__PURE__ */Te("div",{className:"bg-[#f0f4ff] border border-[#dbe6fe] px-4 py-2.5 rounded-2xl shadow-sm rounded-tl-sm w-fit",children:/* @__PURE__ */Te("div",{className:"flex items-center gap-1.5 h-5 opacity-90",children:[
14
+ /* @__PURE__ */Te("span",{className:"w-1.5 h-1.5 rounded-full bg-[#000666]/60 animate-pulse"}),
15
+ /* @__PURE__ */Te("span",{className:"w-1.5 h-1.5 rounded-full bg-[#000666]/60 animate-pulse delay-150"}),
16
+ /* @__PURE__ */Te("span",{className:"w-1.5 h-1.5 rounded-full bg-[#000666]/60 animate-pulse delay-300"}),
17
+ /* @__PURE__ */Te("span",{className:"text-[#000666]/70 text-[12px] ml-1.5 font-medium select-none tracking-wide",children:"AI 正在思考..."})]})}),void 0!==e.reasoning&&e.reasoning.length>0&&/* @__PURE__ */Te("div",{className:"flex flex-col w-full bg-gray-50/90 backdrop-blur-md px-3.5 py-3 rounded-2xl rounded-tl-sm border border-gray-200/60 shadow-sm",children:[/* @__PURE__ */Te("div",{onClick:()=>{return e=t,void o(t=>{const n=[...t];return n[e].reasoningCollapsed=!n[e].reasoningCollapsed,n});var e},className:"flex items-center gap-2 cursor-pointer text-gray-400 hover:text-[#000666] transition-colors select-none group",children:[
18
+ /* @__PURE__ */Te(be,{size:15,className:"transition-transform duration-300 "+(e.reasoningCollapsed?"rotate-0 group-hover:translate-x-0.5":"rotate-90 text-[#000666]")}),e.isThinking?/* @__PURE__ */Te("span",{className:"text-[13px] font-medium tracking-wide flex items-center gap-2.5 text-[#000666] opacity-90",children:["AI 正在深度思考",/* @__PURE__ */Te("span",{className:"flex items-center gap-0.5 mt-0.5 pointer-events-none",children:[
19
+ /* @__PURE__ */Te("span",{className:"w-1 h-1 rounded-full bg-[#000666]/60 animate-pulse"}),
20
+ /* @__PURE__ */Te("span",{className:"w-1 h-1 rounded-full bg-[#000666]/60 animate-pulse delay-150"}),
21
+ /* @__PURE__ */Te("span",{className:"w-1 h-1 rounded-full bg-[#000666]/60 animate-pulse delay-300"})]})]}):/* @__PURE__ */Te("span",{className:"text-[13px] font-medium tracking-wide",children:"深度思考过程"}),!e.isThinking&&!e.reasoningCollapsed&&/* @__PURE__ */Te("span",{className:"text-[10px] ml-auto text-gray-400 bg-black/[0.03] px-1.5 py-0.5 rounded shadow-inner",children:"已完成"})]}),/* @__PURE__ */Te("div",{className:"grid transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] "+(e.reasoningCollapsed?"grid-rows-[0fr] opacity-0":"grid-rows-[1fr] opacity-100"),children:/* @__PURE__ */Te("div",{className:"overflow-hidden",children:/* @__PURE__ */Te("div",{className:"max-h-[280px] overflow-y-auto text-[13.5px] text-gray-500 leading-relaxed font-sans mt-2.5 pr-2 whitespace-pre-wrap",children:e.reasoning})})})]}),(!e.isThinking||e.content.length>0)&&""!==e.content&&/* @__PURE__ */Te("div",{className:"flex flex-col gap-1 w-fit max-w-full",children:[/* @__PURE__ */Te("div",{className:"bg-white border border-gray-100 text-[#1a1a1a] px-4 py-2.5 rounded-2xl shadow-sm rounded-tl-sm w-fit",children:/* @__PURE__ */Te("div",{className:"m-0 text-[14.5px] leading-relaxed break-words message-selectable",dangerouslySetInnerHTML:We(e.content)})}),!e.isThinking&&t>0&&/* @__PURE__ */Te("div",{className:"flex items-center gap-2 ml-1.5 mt-0.5 text-gray-400",children:[/* @__PURE__ */Te("button",{onClick:()=>g(t,"up"),className:"p-1.5 rounded-lg transition-all duration-200 hover:bg-gray-100 hover:text-green-600 active:scale-95 "+("up"===e.feedback?"text-green-600 bg-green-50/80 shadow-sm":""),title:"赞同",children:/* @__PURE__ */Te(Ce,{size:13.5,strokeWidth:2.5,className:"up"===e.feedback?"fill-green-600/20":""})}),/* @__PURE__ */Te("button",{onClick:()=>g(t,"down"),className:"p-1.5 rounded-lg transition-all duration-200 hover:bg-gray-100 hover:text-red-500 active:scale-95 "+("down"===e.feedback?"text-red-500 bg-red-50/80 shadow-sm":""),title:"不赞同",children:/* @__PURE__ */Te(Ne,{size:13.5,strokeWidth:2.5,className:"down"===e.feedback?"fill-red-500/20":""})})]})]}),0===t&&1===r.length&&/* @__PURE__ */Te("div",{className:"flex flex-wrap gap-2.5 mt-2 w-full pt-1",children:x.map((e,t)=>/* @__PURE__ */Te("button",{onClick:()=>m(e.text),className:"flex items-center gap-1.5 bg-[#f0f4f8] text-[#000666] border border-[#e2e8f0]/80 px-3.5 py-2 rounded-xl text-[13px] font-medium transition-all duration-300 hover:bg-[#e2e8f0] hover:-translate-y-0.5 hover:shadow-sm active:scale-95 cursor-pointer shadow-sm select-none",children:[/* @__PURE__ */Te("span",{className:"text-[14px] leading-none",children:e.icon}),/* @__PURE__ */Te("span",{children:e.text})]},t))})]}):/* @__PURE__ */Te("div",{className:"max-w-[85%] px-4 py-2.5 rounded-2xl shadow-sm bg-[#000666] text-white rounded-tr-sm",children:/* @__PURE__ */Te("div",{className:"m-0 text-[14.5px] leading-relaxed break-words message-selectable",dangerouslySetInnerHTML:We(e.content)})})]})]},t)}),/* @__PURE__ */Te("div",{ref:p,className:"h-2"})]}),
22
+ /* @__PURE__ */Te("div",{className:"p-4 bg-white/50 border-t border-gray-100 backdrop-blur-md rounded-b-2xl shrink-0 z-10",children:/* @__PURE__ */Te("div",{className:"flex items-end gap-2 bg-white rounded-2xl border border-gray-200 p-1.5 shadow-sm focus-within:ring-2 focus-within:ring-[#000666]/20 focus-within:border-[#000666]/40 transition-all duration-300",children:[/* @__PURE__ */Te("textarea",{value:l,onInput:e=>i(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),m())},placeholder:"随时输入任何提问...",disabled:a,className:"flex-1 bg-transparent px-3 py-2 outline-none text-[15px] text-[#1a1a1a] placeholder-gray-400 min-w-0 resize-none max-h-[120px] scrollbar-hide font-sans disabled:opacity-50",rows:1,style:{minHeight:"40px",height:"auto"}}),/* @__PURE__ */Te("button",{onClick:()=>m(),disabled:!l.trim()||a,className:"shrink-0 w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-300 "+(l.trim()&&!a?"bg-[#000666] text-white shadow-md hover:scale-105 active:scale-95":"bg-gray-50 text-gray-300 border border-gray-100"),children:/* @__PURE__ */Te(ke,{size:18,className:l.trim()&&!a?"ml-0.5":""})})]})}),_.isOpen&&/* @__PURE__ */Te("div",{className:"absolute inset-0 bg-black/5 backdrop-blur-sm z-[10020] flex items-center justify-center p-6 rounded-2xl",children:/* @__PURE__ */Te("div",{className:"bg-white rounded-2xl shadow-[0_8px_30px_rgb(0,0,0,0.08)] border border-gray-100 p-5 w-full flex flex-col gap-3",children:[
23
+ /* @__PURE__ */Te("div",{className:"flex justify-between items-center mb-1",children:[/* @__PURE__ */Te("h4",{className:"font-medium text-[#1a1a1a] text-[15px] m-0",children:"您觉得哪里不对?"}),/* @__PURE__ */Te("button",{onClick:()=>c({isOpen:!1,msgIndex:-1}),className:"text-gray-400 hover:text-gray-600 transition-colors p-1.5 rounded-lg hover:bg-gray-100 active:scale-95",children:/* @__PURE__ */Te(Se,{size:16})})]}),
24
+ /* @__PURE__ */Te("textarea",{placeholder:"请简要描述您的建议(选填)",className:"w-full bg-gray-50/50 border border-gray-200/60 rounded-xl px-3 py-2.5 text-[13.5px] outline-none text-[#1a1a1a] placeholder-gray-400 focus:bg-white focus:border-[#000666]/30 focus:ring-4 focus:ring-[#000666]/5 transition-all resize-none h-[80px]"}),
25
+ /* @__PURE__ */Te("div",{className:"flex justify-end mt-2",children:/* @__PURE__ */Te("button",{onClick:()=>{c({isOpen:!1,msgIndex:-1})},className:"bg-[#000666] text-white px-5 py-2 rounded-xl text-[13px] font-medium hover:bg-[#000444] transition-all duration-200 shadow-sm hover:shadow active:scale-95",children:"确认提交"})})]})})]})}function Oe({config:e}){const[t,n]=ne(!1);/* @__PURE__ */
26
+ return Te(y,{children:[/* @__PURE__ */Te(Ae,{isOpen:t,onClick:()=>n(!0)}),/* @__PURE__ */Te(Ee,{isOpen:t,onClose:()=>n(!1),tenantId:e?.tenantId})]})}var Le=["click","dblclick","scroll","wheel","touchstart","touchend","touchmove","pointerdown","pointerup","mousedown","mouseup"],$e=["keydown","keyup","keypress"],je={init(n){if(!n||!n.tenantId||""===n.tenantId.trim())return;if(document.getElementById("web-ai-sdk-container"))return;const r=document.createElement("web-ai-sdk-container");r.id="web-ai-sdk-container",Le.forEach(e=>{r.addEventListener(e,e=>{e.stopPropagation()},{passive:!0,capture:!1})}),$e.forEach(e=>{r.addEventListener(e,e=>{e.stopPropagation()},{capture:!1})}),document.body.appendChild(r);const o=r.attachShadow({mode:"open"}),l=document.createElement("div");l.id="web-ai-sdk-root",o.appendChild(l);const i=document.createElement("style");i.textContent=window.__WEB_AI_SDK_CSS__||"",o.appendChild(i),function(n,r,o){var l,i,a,s;r==document&&(r=document.documentElement),t.__&&t.__(n,r),i=(l="function"==typeof o)?null:o&&o.__k||r.__k,a=[],s=[],P(r,n=(!l&&o||r).__k=x(y,null,[n]),i||d,d,r.namespaceURI,!l&&o?[o]:i?null:r.firstChild?e.call(r.childNodes):null,a,!l&&o?o:i?i.__e:r.firstChild,l,s),M(a,n,s)}(/* @__PURE__ */Te(Oe,{config:n}),l)}};"undefined"!=typeof window&&(window.WebAiSdk=je);export{je as WebAiSdk,je as default};
@@ -0,0 +1 @@
1
+ !function(t){try{"undefined"!=typeof window&&(window.__WEB_AI_SDK_CSS__=(window.__WEB_AI_SDK_CSS__||"")+t)}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}('/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-500:oklch(63.7% .237 25.331);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.end{inset-inline-end:var(--spacing)}.right-6{right:calc(var(--spacing) * 6)}.bottom-6{bottom:calc(var(--spacing) * 6)}.z-10{z-index:10}.z-20{z-index:20}.z-\\[9999\\]{z-index:9999}.z-\\[10000\\]{z-index:10000}.z-\\[10020\\]{z-index:10020}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.ml-0\\.5{margin-left:calc(var(--spacing) * .5)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.h-1{height:calc(var(--spacing) * 1)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-\\[1px\\]{height:1px}.h-\\[80px\\]{height:80px}.h-\\[600px\\]{height:600px}.max-h-\\[120px\\]{max-height:120px}.max-h-\\[280px\\]{max-height:280px}.max-h-\\[calc\\(100vh-32px\\)\\]{max-height:calc(100vh - 32px)}.w-1{width:calc(var(--spacing) * 1)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-14{width:calc(var(--spacing) * 14)}.w-\\[380px\\]{width:380px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[92\\%\\]{max-width:92%}.max-w-\\[calc\\(100vw-32px\\)\\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-bottom-right{transform-origin:100% 100%}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-8{--tw-translate-y:calc(var(--spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[pulse_3s_ease-in-out_infinite\\]{animation:3s ease-in-out infinite pulse}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-tl-sm{border-top-left-radius:var(--radius-sm)}.rounded-tr-sm{border-top-right-radius:var(--radius-sm)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\[\\#dbe6fe\\]{border-color:#dbe6fe}.border-\\[\\#e2e8f0\\]\\/80{border-color:oklab(92.8761% -.00315791 -.0122172/.8)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/60{border-color:#e5e7eb99}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/60{border-color:color-mix(in oklab, var(--color-gray-200) 60%, transparent)}}.bg-\\[\\#000666\\]{background-color:#000666}.bg-\\[\\#000666\\]\\/60{background-color:oklab(23.7888% -.0156565 -.154117/.6)}.bg-\\[\\#f0f4f8\\]{background-color:#f0f4f8}.bg-\\[\\#f0f4ff\\]{background-color:#f0f4ff}.bg-black\\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\\/\\[0\\.03\\]{background-color:#00000008}@supports (color:color-mix(in lab, red, red)){.bg-black\\/\\[0\\.03\\]{background-color:color-mix(in oklab, var(--color-black) 3%, transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/50{background-color:color-mix(in oklab, var(--color-gray-50) 50%, transparent)}}.bg-gray-50\\/90{background-color:#f9fafbe6}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/90{background-color:color-mix(in oklab, var(--color-gray-50) 90%, transparent)}}.bg-green-50\\/80{background-color:#f0fdf4cc}@supports (color:color-mix(in lab, red, red)){.bg-green-50\\/80{background-color:color-mix(in oklab, var(--color-green-50) 80%, transparent)}}.bg-red-50\\/80{background-color:#fef2f2cc}@supports (color:color-mix(in lab, red, red)){.bg-red-50\\/80{background-color:color-mix(in oklab, var(--color-red-50) 80%, transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-tr{--tw-gradient-position:to top right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/5{--tw-gradient-from:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.from-white\\/5{--tw-gradient-from:color-mix(in oklab, var(--color-white) 5%, transparent)}}.from-white\\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-gray-400{--tw-gradient-to:var(--color-gray-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-green-600\\/20{fill:#00a54433}@supports (color:color-mix(in lab, red, red)){.fill-green-600\\/20{fill:color-mix(in oklab, var(--color-green-600) 20%, transparent)}}.fill-red-500\\/20{fill:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.fill-red-500\\/20{fill:color-mix(in oklab, var(--color-red-500) 20%, transparent)}}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pl-5{padding-left:calc(var(--spacing) * 5)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14\\.5px\\]{font-size:14.5px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#1a1a1a\\]{color:#1a1a1a}.text-\\[\\#000666\\]{color:#000666}.text-\\[\\#000666\\]\\/70{color:oklab(23.7888% -.0156565 -.154117/.7)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-white\\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.uppercase{text-transform:uppercase}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_4px_20px_rgba\\(0\\,6\\,102\\,0\\.3\\)\\]{--tw-shadow:0 4px 20px var(--tw-shadow-color,#0006664d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 8px 30px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:translate-x-0\\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}}.focus-within\\:border-\\[\\#000666\\]\\/40:focus-within{border-color:oklab(23.7888% -.0156565 -.154117/.4)}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\\:ring-\\[\\#000666\\]\\/20:focus-within{--tw-ring-color:oklab(23.7888% -.0156565 -.154117/.2)}@media (hover:hover){.hover\\:-translate-y-0\\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:rotate-90:hover{rotate:90deg}.hover\\:bg-\\[\\#000444\\]:hover{background-color:#000444}.hover\\:bg-\\[\\#e2e8f0\\]:hover{background-color:#e2e8f0}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:text-\\[\\#000666\\]:hover{color:#000666}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-green-600:hover{color:var(--color-green-600)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-\\[0_8px_30px_rgba\\(0\\,6\\,102\\,0\\.4\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#00066666);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\\:border-\\[\\#000666\\]\\/30:focus{border-color:oklab(23.7888% -.0156565 -.154117/.3)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:ring-4:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\[\\#000666\\]\\/5:focus{--tw-ring-color:oklab(23.7888% -.0156565 -.154117/.05)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:opacity-50:disabled{opacity:.5}}:host{--maia-primary:#000666;--maia-primary-hover:#000444;--maia-primary-soft:#00066614;--maia-bg:#fff;--maia-bg-blur:#fffffff2;--maia-surface:#f8f9fc;--maia-border:#00000012;--maia-shadow-sm:0 2px 8px #00066614;--maia-shadow-md:0 4px 20px #00066624;--maia-shadow-lg:0 8px 32px #0006662e;--maia-radius-sm:8px;--maia-radius-md:12px;--maia-radius-lg:16px;--maia-radius-full:9999px;--maia-font-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "Segoe UI Variable", Roboto, "Noto Sans SC", "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";--maia-font-serif:"Georgia", "Noto Serif SC", "STSong", "SimSun", "Times New Roman", serif;--maia-font-mono:ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;font-family:var(--maia-font-sans);color:#1a1a1a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-synthesis:none;-webkit-user-select:none;user-select:none;font-size:15px;line-height:1.5;display:contents}:host .message-selectable{-webkit-user-select:text;user-select:text}:host>*{box-sizing:border-box}:host p,:host h1,:host h2,:host h3,:host h4{margin:0;padding:0}:host h1,:host h2,:host h3,:host h4{font-family:var(--maia-font-serif);font-weight:500}:host textarea,:host input,:host button{font-family:var(--maia-font-sans)}:host ::-webkit-scrollbar{width:4px}:host ::-webkit-scrollbar-track{background:0 0}:host ::-webkit-scrollbar-thumb{background:#00066626;border-radius:99px}:host ::-webkit-scrollbar-thumb:hover{background:#0006664d}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}\n/*$vite$:1*/');!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WebAiSdk={})}(this,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t,n,r,o,i,l,a,s,_,c,u,d,p={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function x(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(e,n,r){var o,i,l,a={};for(l in n)"key"==l?o=n[l]:"ref"==l?i=n[l]:a[l]=n[l];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===a[l]&&(a[l]=e.defaultProps[l]);return y(e,a,o,i,null)}function y(e,t,o,i,l){var a={type:e,props:t,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++r:l,__i:-1,__u:0};return null==l&&null!=n.vnode&&n.vnode(a),a}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function N(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,o=[],i=[],l=g({},t);l.__v=t.__v+1,n.vnode&&n.vnode(l),D(e.__P,l,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,o,null==r?k(t):r,!!(32&t.__u),i),l.__v=t.__v,l.__.__k[l.__i]=l,E(o,l,i),t.__e=t.__=null,l.__e!=r&&C(l)}}function C(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),C(e)}function S(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!T.__r++||i!=n.debounceRendering)&&((i=n.debounceRendering)||l)(T)}function T(){try{for(var e,t=1;o.length;)o.length>t&&o.sort(a),e=o.shift(),t=o.length,N(e)}finally{o.length=T.__r=0}}function I(e,t,n,r,o,i,l,a,s,_,c){var u,d,h,g,x,v,w,N=r&&r.__k||f,C=t.length;for(s=function(e,t,n,r,o){var i,l,a,s,_,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(l=t[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=e.__k[i]=y(null,l,null,null,null):m(l)?l=e.__k[i]=y(b,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=e.__k[i]=y(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):e.__k[i]=l,s=i+d,l.__=e,l.__b=e.__b+1,a=null,-1!=(_=l.__i=U(l,n,s,u))&&(u--,(a=n[_])&&(a.__u|=2)),null==a||null==a.__v?(-1==_&&(o>c?d--:o<c&&d++),"function"!=typeof l.type&&(l.__u|=4)):_!=s&&(_==s-1?d--:_==s+1?d++:(_>s?d--:d++,l.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<c;i++)null!=(a=n[i])&&!(2&a.__u)&&(a.__e==r&&(r=k(a)),j(a,a));return r}(n,t,N,s,C),u=0;u<C;u++)null!=(h=n.__k[u])&&(d=-1!=h.__i&&N[h.__i]||p,h.__i=u,v=D(e,h,d,o,i,l,a,s,_,c),g=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&$(d.ref,null,h),c.push(h.ref,h.__c||g,h)),null==x&&null!=g&&(x=g),(w=!!(4&h.__u))||d.__k===h.__k?s=A(h,s,e,w):"function"==typeof h.type&&void 0!==v?s=v:g&&(s=g.nextSibling),h.__u&=-7);return n.__e=x,s}function A(e,t,n,r){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=A(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=k(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function H(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some(function(e){H(e,t)}):t.push(e)),t}function U(e,t,n,r){var o,i,l,a=e.key,s=e.type,_=t[n],c=null!=_&&!(2&_.__u);if(null===_&&null==a||c&&a==_.key&&s==_.type)return n;if(r>(c?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;)if(null!=(_=t[l=o>=0?o--:i++])&&!(2&_.__u)&&a==_.key&&s==_.type)return l;return-1}function W(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function P(e,t,n,r,o){var i,l;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||W(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||W(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(s,"$1")),l=t.toLowerCase(),t=l in e||"onFocusOut"==t||"onFocusIn"==t?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=_,e.addEventListener(t,i?u:c,i)):e.removeEventListener(t,i?u:c,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function z(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=_++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function D(e,t,r,o,i,l,a,s,_,c){var u,d,p,h,v,y,k,N,C,S,T,A,H,U,W,P=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(_=!!(32&r.__u),l=[s=t.__e=r.__e]),(u=n.__b)&&u(t);e:if("function"==typeof P)try{if(N=t.props,C=P.prototype&&P.prototype.render,S=(u=P.contextType)&&o[u.__c],T=u?S?S.props.value:u.__:o,r.__c?k=(d=t.__c=r.__c).__=d.__E:(C?t.__c=d=new P(N,T):(t.__c=d=new w(N,T),d.constructor=P,d.render=F),S&&S.sub(d),d.state||(d.state={}),d.__n=o,p=d.__d=!0,d.__h=[],d._sb=[]),C&&null==d.__s&&(d.__s=d.state),C&&null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=g({},d.__s)),g(d.__s,P.getDerivedStateFromProps(N,d.__s))),h=d.props,v=d.state,d.__v=t,p)C&&null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),C&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(C&&null==P.getDerivedStateFromProps&&N!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(N,T),t.__v==r.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(N,d.__s,T)){t.__v!=r.__v&&(d.props=N,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),f.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(N,d.__s,T),C&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,v,y)})}if(d.context=T,d.props=N,d.__P=e,d.__e=!1,A=n.__r,H=0,C)d.state=d.__s,d.__d=!1,A&&A(t),u=d.render(d.props,d.state,d.context),f.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,A&&A(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++H<25);d.state=d.__s,null!=d.getChildContext&&(o=g(g({},o),d.getChildContext())),C&&!p&&null!=d.getSnapshotBeforeUpdate&&(y=d.getSnapshotBeforeUpdate(h,v)),U=null!=u&&u.type===b&&null==u.key?O(u.props.children):u,s=I(e,m(U)?U:[U],t,r,o,i,l,a,s,_,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),k&&(d.__E=d.__=null)}catch(e){if(t.__v=null,_||null!=l)if(e.then){for(t.__u|=_?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;l[l.indexOf(s)]=null,t.__e=s}else{for(W=l.length;W--;)x(l[W]);M(t)}else t.__e=r.__e,t.__k=r.__k,e.then||M(t);n.__e(e,t,r)}else null==l&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=L(r.__e,t,r,o,i,l,a,_,c);return(u=n.diffed)&&u(t),128&t.__u?void 0:s}function M(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(M))}function E(e,t,r){for(var o=0;o<r.length;o++)$(r[o],r[++o],r[++o]);n.__c&&n.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){n.__e(e,t.__v)}})}function O(e){return"object"!=typeof e||null==e||e.__b>0?e:m(e)?e.map(O):g({},e)}function L(e,r,o,i,l,a,s,_,c){var u,d,f,h,g,v,y,b=o.props||p,w=r.props,N=r.type;if("svg"==N?l="http://www.w3.org/2000/svg":"math"==N?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=a)for(u=0;u<a.length;u++)if((g=a[u])&&"setAttribute"in g==!!N&&(N?g.localName==N:3==g.nodeType)){e=g,a[u]=null;break}if(null==e){if(null==N)return document.createTextNode(w);e=document.createElementNS(l,N,w.is&&w),_&&(n.__m&&n.__m(r,a),_=!1),a=null}if(null==N)b===w||_&&e.data==w||(e.data=w);else{if(a=a&&t.call(e.childNodes),!_&&null!=a)for(b={},u=0;u<e.attributes.length;u++)b[(g=e.attributes[u]).name]=g.value;for(u in b)g=b[u],"dangerouslySetInnerHTML"==u?f=g:"children"==u||u in w||"value"==u&&"defaultValue"in w||"checked"==u&&"defaultChecked"in w||P(e,u,null,g,l);for(u in w)g=w[u],"children"==u?h=g:"dangerouslySetInnerHTML"==u?d=g:"value"==u?v=g:"checked"==u?y=g:_&&"function"!=typeof g||b[u]===g||P(e,u,g,b[u],l);if(d)_||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),r.__k=[];else if(f&&(e.innerHTML=""),I("template"==r.type?e.content:e,m(h)?h:[h],r,o,i,"foreignObject"==N?"http://www.w3.org/1999/xhtml":l,a,s,a?a[0]:o.__k&&k(o,0),_,c),null!=a)for(u=a.length;u--;)x(a[u]);_||(u="value","progress"==N&&null==v?e.removeAttribute("value"):null!=v&&(v!==e[u]||"progress"==N&&!v||"option"==N&&v!=b[u])&&P(e,u,v,b[u],l),u="checked",null!=y&&y!=e[u]&&P(e,u,y,b[u],l))}return e}function $(e,t,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function j(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||$(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,r||"function"!=typeof e.type);r||x(e.__e),e.__c=e.__=e.__e=void 0}function F(e,t,n){return this.constructor(e,n)}t=f.slice,n={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(t){e=t}throw e}},r=0,w.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state);"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},w.prototype.render=b,o=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,s=/(PointerCapture)$|Capture$/i,_=0,c=z(!1),u=z(!0),d=0;var q,R,B,J,V=0,Z=[],K=n,X=K.__b,G=K.__r,Q=K.diffed,Y=K.__c,ee=K.unmount,te=K.__;function ne(e,t){K.__h&&K.__h(R,e,V||t),V=0;var n=R.__H||(R.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return V=1,function(e,t,n){var r=ne(q++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):de(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=R,!R.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var l=r.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(l=!0)}}),i&&i.call(this,e,t,n)||l};R.__f=!0;var i=R.shouldComponentUpdate,l=R.componentWillUpdate;R.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}l&&l.call(this,e,t,n)},R.shouldComponentUpdate=o}return r.__N||r.__}(de,e)}function oe(e,t){var n=ne(q++,3);!K.__s&&ue(n.__H,t)&&(n.__=e,n.u=t,R.__H.__h.push(n))}function ie(e){return V=5,function(e,t){var n=ne(q++,7);return ue(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function le(){for(var e;e=Z.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(_e),t.__h.some(ce),t.__h=[]}catch(R){t.__h=[],K.__e(R,e.__v)}}}K.__b=function(e){R=null,X&&X(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),te&&te(e,t)},K.__r=function(e){G&&G(e),q=0;var t=(R=e.__c).__H;t&&(B===R?(t.__h=[],R.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(_e),t.__h.some(ce),t.__h=[],q=0)),B=R},K.diffed=function(e){Q&&Q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Z.push(t)&&J===K.requestAnimationFrame||((J=K.requestAnimationFrame)||se)(le)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),B=R=null},K.__c=function(e,t){t.some(function(e){try{e.__h.some(_e),e.__h=e.__h.filter(function(e){return!e.__||ce(e)})}catch(R){t.some(function(e){e.__h&&(e.__h=[])}),t=[],K.__e(R,e.__v)}}),Y&&Y(e,t)},K.unmount=function(e){ee&&ee(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{_e(e)}catch(e){t=e}}),n.__H=void 0,t&&K.__e(t,n.__v))};var ae="function"==typeof requestAnimationFrame;function se(e){var t,n=function(){clearTimeout(r),ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);ae&&(t=requestAnimationFrame(n))}function _e(e){var t=R,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),R=t}function ce(e){var t=R;e.__c=e.__(),R=t}function ue(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function de(e,t){return"function"==typeof t?t(e):t}var pe=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),fe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),he=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ge=function(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,S(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),xe=()=>function(e){var t=R.context[e.__c],n=ne(q++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(R)),t.props.value):e.__}(ge),ve=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},ye=({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,children:o,iconNode:i,class:l="",...a})=>{const{size:s=24,strokeWidth:_=2,absoluteStrokeWidth:c=!1,color:u="currentColor",class:d=""}=xe()??{},p=r??c?24*Number(n??_)/Number(t??s):n??_;return v("svg",{...me,width:t??s??24,height:t??s??24,stroke:e??u,"stroke-width":p,class:pe("lucide",d,l),...!o&&!ve(a)&&{"aria-hidden":"true"},...a},[...i.map(([e,t])=>v(e,t)),...H(o)])},be=(e,t)=>{const n=({class:n="",className:r="",children:o,...i})=>v(ye,{...i,iconNode:t,class:pe(`lucide-${fe(he(e))}`,`lucide-${fe(e)}`,n,r)},o);return n.displayName=he(e),n},we=be("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),ke=be("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),Ne=be("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]),Ce=be("thumbs-down",[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]]),Se=be("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]),Te=be("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ie=0;Array.isArray;function Ae(e,t,r,o,i,l){t||(t={});var a,s,_=t;if("ref"in _)for(s in _={},t)"ref"==s?a=t[s]:_[s]=t[s];var c={type:e,props:_,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ie,__i:-1,__u:0,__source:i,__self:l};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===_[s]&&(_[s]=a[s]);return n.vnode&&n.vnode(c),c}function He({isOpen:e,onClick:t}){return Ae("div",{className:"fixed bottom-6 right-6 z-[9999] transition-all duration-300 "+(e?"opacity-0 scale-90 pointer-events-none":"opacity-100 scale-100"),children:Ae("button",{onClick:t,className:"flex items-center justify-center w-14 h-14 bg-[#000666] text-white rounded-full shadow-[0_4px_20px_rgba(0,6,102,0.3)] hover:shadow-[0_8px_30px_rgba(0,6,102,0.4)] transition-all duration-300 hover:scale-110 animate-[pulse_3s_ease-in-out_infinite]","aria-label":"Open AI Assistant",children:Ae(ke,{size:26,strokeWidth:1.5})})})}var Ue="web_ai_user_guid";function We(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Pe(){try{const e=localStorage.getItem(Ue);if(e)return e;const t=We();return localStorage.setItem(Ue,t),t}catch{return We()}}function ze(e){return`web_ai_history_${e||"default"}_${Pe()}`}function De(e){try{const t=ze(e),n=localStorage.getItem(t);if(!n)return[];const r=JSON.parse(n);return Date.now()-r.updatedAt>864e5?(localStorage.removeItem(t),[]):r.messages}catch{return[]}}function Me(e){if(!e)return{__html:""};let t=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");t=t.replace(/(https?:\/\/[^\s<]+)/g,'<a href="$1" target="_blank" rel="noopener noreferrer" class="text-[#000666] hover:underline transition-colors">$1</a>'),t=t.replace(/((?:1[3-9]\d{9})|(?:0\d{2,3}-?\d{7,8})|(?:400-?\d{3}-?\d{4}))/g,'<a href="tel:$1" class="text-[#000666] hover:underline transition-colors">$1</a>'),t=t.replace(/\*\*(.*?)\*\*/g,'<strong class="font-semibold text-gray-800">$1</strong>');const n=t.split("\n");let r=!1;const o=[];for(let i=0;i<n.length;i++){const e=n[i],t=e.match(/^(\s*)(?:-|\*)\s+(.*)/);t?(r||(o.push('<ul class="list-disc pl-5 my-1.5 space-y-1">'),r=!0),o.push(`<li>${t[2]}</li>`)):(r&&(o.push("</ul>"),r=!1),o.push(""===e.trim()?'<div class="h-1.5"></div>':`<div>${e}</div>`))}return r&&o.push("</ul>"),{__html:o.join("")}}var Ee={role:"assistant",content:"您好!我是传音 AI 助手,很高兴帮您解答关于传媒学院的各种相关问题。",reasoningCollapsed:!0,isThinking:!1,timestamp:Date.now()};function Oe({isOpen:e,onClose:t,tenantId:n}){const[r,o]=re(()=>{const e=De(n);return e.length>0?e:[Ee]}),[i,l]=re(""),[a,s]=re(!1),[_,c]=re({isOpen:!1,msgIndex:-1}),[u,d]=re(!1),p=ie(null),f=ie(0);oe(()=>{const e=De(n);e.length>0&&(f.current=e.length,d(!0))},[n]);const h=()=>{p.current?.scrollIntoView({behavior:"smooth",block:"end"})};oe(()=>{e&&setTimeout(h,50)},[r,a,e]),oe(()=>{const e=r.filter(e=>!e.isThinking);e.length>1&&function(e,t){try{const n=ze(e),r={updatedAt:Date.now(),messages:t};localStorage.setItem(n,JSON.stringify(r))}catch{}}(n,e)},[r,n]);const m=async e=>{const t=void 0!==e?e:i;if(!t.trim()||a)return;const r=t.trim();l(""),s(!0),o(e=>[...e,{role:"user",content:r,timestamp:Date.now()},{role:"assistant",content:"",reasoning:"",isThinking:!0,reasoningCollapsed:!1,timestamp:Date.now()}]);try{const e={"Content-Type":"application/json","X-Anonymous-ID":Pe(),...n?{"X-Tenant-Id":n}:{}},t=new URL("http://localhost:8080/api/v1/chat/stream");n&&t.searchParams.append("tenantId",n);const i=await fetch(t.toString(),{method:"POST",headers:e,body:JSON.stringify({message:r})});if(!i.body)throw new Error("No body in response");const l=i.body.getReader(),a=new TextDecoder;let _=!1;for(;!_;){const{value:e,done:t}=await l.read();if(_=t,e){const t=a.decode(e,{stream:!0});for(const e of t.split("\n")){if(!e.startsWith("data: "))continue;const t=e.replace("data: ","").trim();if(t&&"[DONE]"!==t)try{const e=JSON.parse(t);void 0!==e.reasoning&&(s(!1),o(t=>{const n=[...t];return n[n.length-1].reasoning+=e.reasoning,n})),void 0!==e.content&&(s(!1),o(t=>{const n=[...t],r=n[n.length-1];return r.isThinking&&(r.isThinking=!1,r.reasoning&&r.reasoning.length>0&&(r.reasoningCollapsed=!0)),r.content+=e.content,n}))}catch(X){}}}}}catch(_){o(e=>{const t=[...e],n=t[t.length-1];return n.content="网络异常,连接断开请稍后再试。",n.isThinking=!1,n.reasoning&&(n.reasoningCollapsed=!0),t})}finally{s(!1),o(e=>{const t=[...e];return t.length>0&&(t[t.length-1].isThinking=!1),t})}},g=(e,t)=>{o(n=>{const r=[...n];return r[e].feedback=t,r}),"down"===t&&c({isOpen:!0,msgIndex:e})},x=[{icon:"🏢",text:"宿舍环境查询"},{icon:"💰",text:"住宿费用标准"},{icon:"📞",text:"联系招生办"}];return Ae("div",{className:"fixed bottom-6 right-6 z-[10000] w-[380px] h-[600px] max-w-[calc(100vw-32px)] max-h-[calc(100vh-32px)] flex flex-col bg-white/95 backdrop-blur-lg rounded-2xl shadow-2xl transition-all duration-400 ease-[cubic-bezier(0.16,1,0.3,1)] origin-bottom-right ring-1 ring-black/5\n "+(e?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-8 pointer-events-none"),children:[Ae("div",{className:"flex items-center justify-between bg-[#000666] text-white px-5 py-4 rounded-t-2xl shrink-0 shadow-sm relative z-10 overflow-hidden",children:[Ae("div",{className:"absolute inset-0 bg-gradient-to-tr from-white/5 to-transparent pointer-events-none"}),Ae("div",{className:"flex flex-col relative z-20",children:[Ae("h3",{className:"font-serif font-medium text-[17px] m-0 leading-none",children:"传音 AI 助手"}),Ae("span",{className:"text-white/70 text-[11px] mt-1.5 font-sans tracking-wide",children:"随时为您解答"})]}),Ae("button",{onClick:t,className:"relative z-20 w-8 h-8 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 transition-all duration-200 hover:rotate-90 active:scale-95","aria-label":"Close Chat",children:Ae(Te,{size:18})})]}),Ae("div",{className:"flex-1 overflow-y-auto p-5 space-y-5 bg-transparent scroll-smooth relative",children:[r.map((e,t)=>{const n=t>0?r[t-1]:null,i=n&&e.timestamp&&n.timestamp&&e.timestamp-n.timestamp>6e5,l=e.timestamp?new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return Ae("div",{className:"flex flex-col w-full",children:[i&&Ae("div",{className:"flex justify-center my-4",children:Ae("span",{className:"text-[11px] text-gray-300 bg-gray-50/50 px-2.5 py-0.5 rounded-full font-sans tracking-tight",children:l})}),u&&t===f.current&&Ae("div",{className:"flex items-center gap-3 my-6 px-2 opacity-30 select-none",children:[Ae("div",{className:"h-[1px] flex-1 bg-gradient-to-r from-transparent to-gray-400"}),Ae("span",{className:"text-[10px] text-gray-500 font-medium tracking-widest uppercase",children:"以上为历史对话记录"}),Ae("div",{className:"h-[1px] flex-1 bg-gradient-to-l from-transparent to-gray-400"})]}),Ae("div",{className:"flex flex-col w-full "+("user"===e.role?"items-end":"items-start"),children:[Ae("span",{className:"text-[11px] text-gray-400 mb-1 px-1 font-medium",children:"user"===e.role?"您":"AI 助手"}),"assistant"===e.role?Ae("div",{className:"flex flex-col gap-2.5 w-full max-w-[92%]",children:[e.isThinking&&(!e.reasoning||0===e.reasoning.length)&&0===e.content.length&&Ae("div",{className:"bg-[#f0f4ff] border border-[#dbe6fe] px-4 py-2.5 rounded-2xl shadow-sm rounded-tl-sm w-fit",children:Ae("div",{className:"flex items-center gap-1.5 h-5 opacity-90",children:[Ae("span",{className:"w-1.5 h-1.5 rounded-full bg-[#000666]/60 animate-pulse"}),Ae("span",{className:"w-1.5 h-1.5 rounded-full bg-[#000666]/60 animate-pulse delay-150"}),Ae("span",{className:"w-1.5 h-1.5 rounded-full bg-[#000666]/60 animate-pulse delay-300"}),Ae("span",{className:"text-[#000666]/70 text-[12px] ml-1.5 font-medium select-none tracking-wide",children:"AI 正在思考..."})]})}),void 0!==e.reasoning&&e.reasoning.length>0&&Ae("div",{className:"flex flex-col w-full bg-gray-50/90 backdrop-blur-md px-3.5 py-3 rounded-2xl rounded-tl-sm border border-gray-200/60 shadow-sm",children:[Ae("div",{onClick:()=>{return e=t,void o(t=>{const n=[...t];return n[e].reasoningCollapsed=!n[e].reasoningCollapsed,n});var e},className:"flex items-center gap-2 cursor-pointer text-gray-400 hover:text-[#000666] transition-colors select-none group",children:[Ae(we,{size:15,className:"transition-transform duration-300 "+(e.reasoningCollapsed?"rotate-0 group-hover:translate-x-0.5":"rotate-90 text-[#000666]")}),e.isThinking?Ae("span",{className:"text-[13px] font-medium tracking-wide flex items-center gap-2.5 text-[#000666] opacity-90",children:["AI 正在深度思考",Ae("span",{className:"flex items-center gap-0.5 mt-0.5 pointer-events-none",children:[Ae("span",{className:"w-1 h-1 rounded-full bg-[#000666]/60 animate-pulse"}),Ae("span",{className:"w-1 h-1 rounded-full bg-[#000666]/60 animate-pulse delay-150"}),Ae("span",{className:"w-1 h-1 rounded-full bg-[#000666]/60 animate-pulse delay-300"})]})]}):Ae("span",{className:"text-[13px] font-medium tracking-wide",children:"深度思考过程"}),!e.isThinking&&!e.reasoningCollapsed&&Ae("span",{className:"text-[10px] ml-auto text-gray-400 bg-black/[0.03] px-1.5 py-0.5 rounded shadow-inner",children:"已完成"})]}),Ae("div",{className:"grid transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] "+(e.reasoningCollapsed?"grid-rows-[0fr] opacity-0":"grid-rows-[1fr] opacity-100"),children:Ae("div",{className:"overflow-hidden",children:Ae("div",{className:"max-h-[280px] overflow-y-auto text-[13.5px] text-gray-500 leading-relaxed font-sans mt-2.5 pr-2 whitespace-pre-wrap",children:e.reasoning})})})]}),(!e.isThinking||e.content.length>0)&&""!==e.content&&Ae("div",{className:"flex flex-col gap-1 w-fit max-w-full",children:[Ae("div",{className:"bg-white border border-gray-100 text-[#1a1a1a] px-4 py-2.5 rounded-2xl shadow-sm rounded-tl-sm w-fit",children:Ae("div",{className:"m-0 text-[14.5px] leading-relaxed break-words message-selectable",dangerouslySetInnerHTML:Me(e.content)})}),!e.isThinking&&t>0&&Ae("div",{className:"flex items-center gap-2 ml-1.5 mt-0.5 text-gray-400",children:[Ae("button",{onClick:()=>g(t,"up"),className:"p-1.5 rounded-lg transition-all duration-200 hover:bg-gray-100 hover:text-green-600 active:scale-95 "+("up"===e.feedback?"text-green-600 bg-green-50/80 shadow-sm":""),title:"赞同",children:Ae(Se,{size:13.5,strokeWidth:2.5,className:"up"===e.feedback?"fill-green-600/20":""})}),Ae("button",{onClick:()=>g(t,"down"),className:"p-1.5 rounded-lg transition-all duration-200 hover:bg-gray-100 hover:text-red-500 active:scale-95 "+("down"===e.feedback?"text-red-500 bg-red-50/80 shadow-sm":""),title:"不赞同",children:Ae(Ce,{size:13.5,strokeWidth:2.5,className:"down"===e.feedback?"fill-red-500/20":""})})]})]}),0===t&&1===r.length&&Ae("div",{className:"flex flex-wrap gap-2.5 mt-2 w-full pt-1",children:x.map((e,t)=>Ae("button",{onClick:()=>m(e.text),className:"flex items-center gap-1.5 bg-[#f0f4f8] text-[#000666] border border-[#e2e8f0]/80 px-3.5 py-2 rounded-xl text-[13px] font-medium transition-all duration-300 hover:bg-[#e2e8f0] hover:-translate-y-0.5 hover:shadow-sm active:scale-95 cursor-pointer shadow-sm select-none",children:[Ae("span",{className:"text-[14px] leading-none",children:e.icon}),Ae("span",{children:e.text})]},t))})]}):Ae("div",{className:"max-w-[85%] px-4 py-2.5 rounded-2xl shadow-sm bg-[#000666] text-white rounded-tr-sm",children:Ae("div",{className:"m-0 text-[14.5px] leading-relaxed break-words message-selectable",dangerouslySetInnerHTML:Me(e.content)})})]})]},t)}),Ae("div",{ref:p,className:"h-2"})]}),Ae("div",{className:"p-4 bg-white/50 border-t border-gray-100 backdrop-blur-md rounded-b-2xl shrink-0 z-10",children:Ae("div",{className:"flex items-end gap-2 bg-white rounded-2xl border border-gray-200 p-1.5 shadow-sm focus-within:ring-2 focus-within:ring-[#000666]/20 focus-within:border-[#000666]/40 transition-all duration-300",children:[Ae("textarea",{value:i,onInput:e=>l(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),m())},placeholder:"随时输入任何提问...",disabled:a,className:"flex-1 bg-transparent px-3 py-2 outline-none text-[15px] text-[#1a1a1a] placeholder-gray-400 min-w-0 resize-none max-h-[120px] scrollbar-hide font-sans disabled:opacity-50",rows:1,style:{minHeight:"40px",height:"auto"}}),Ae("button",{onClick:()=>m(),disabled:!i.trim()||a,className:"shrink-0 w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-300 "+(i.trim()&&!a?"bg-[#000666] text-white shadow-md hover:scale-105 active:scale-95":"bg-gray-50 text-gray-300 border border-gray-100"),children:Ae(Ne,{size:18,className:i.trim()&&!a?"ml-0.5":""})})]})}),_.isOpen&&Ae("div",{className:"absolute inset-0 bg-black/5 backdrop-blur-sm z-[10020] flex items-center justify-center p-6 rounded-2xl",children:Ae("div",{className:"bg-white rounded-2xl shadow-[0_8px_30px_rgb(0,0,0,0.08)] border border-gray-100 p-5 w-full flex flex-col gap-3",children:[Ae("div",{className:"flex justify-between items-center mb-1",children:[Ae("h4",{className:"font-medium text-[#1a1a1a] text-[15px] m-0",children:"您觉得哪里不对?"}),Ae("button",{onClick:()=>c({isOpen:!1,msgIndex:-1}),className:"text-gray-400 hover:text-gray-600 transition-colors p-1.5 rounded-lg hover:bg-gray-100 active:scale-95",children:Ae(Te,{size:16})})]}),Ae("textarea",{placeholder:"请简要描述您的建议(选填)",className:"w-full bg-gray-50/50 border border-gray-200/60 rounded-xl px-3 py-2.5 text-[13.5px] outline-none text-[#1a1a1a] placeholder-gray-400 focus:bg-white focus:border-[#000666]/30 focus:ring-4 focus:ring-[#000666]/5 transition-all resize-none h-[80px]"}),Ae("div",{className:"flex justify-end mt-2",children:Ae("button",{onClick:()=>{c({isOpen:!1,msgIndex:-1})},className:"bg-[#000666] text-white px-5 py-2 rounded-xl text-[13px] font-medium hover:bg-[#000444] transition-all duration-200 shadow-sm hover:shadow active:scale-95",children:"确认提交"})})]})})]})}function Le({config:e}){const[t,n]=re(!1);return Ae(b,{children:[Ae(He,{isOpen:t,onClick:()=>n(!0)}),Ae(Oe,{isOpen:t,onClose:()=>n(!1),tenantId:e?.tenantId})]})}var $e=["click","dblclick","scroll","wheel","touchstart","touchend","touchmove","pointerdown","pointerup","mousedown","mouseup"],je=["keydown","keyup","keypress"],Fe={init(e){if(!e||!e.tenantId||""===e.tenantId.trim())return;if(document.getElementById("web-ai-sdk-container"))return;const r=document.createElement("web-ai-sdk-container");r.id="web-ai-sdk-container",$e.forEach(e=>{r.addEventListener(e,e=>{e.stopPropagation()},{passive:!0,capture:!1})}),je.forEach(e=>{r.addEventListener(e,e=>{e.stopPropagation()},{capture:!1})}),document.body.appendChild(r);const o=r.attachShadow({mode:"open"}),i=document.createElement("div");i.id="web-ai-sdk-root",o.appendChild(i);const l=document.createElement("style");l.textContent=window.__WEB_AI_SDK_CSS__||"",o.appendChild(l),function(e,r,o){var i,l,a,s;r==document&&(r=document.documentElement),n.__&&n.__(e,r),l=(i="function"==typeof o)?null:o&&o.__k||r.__k,a=[],s=[],D(r,e=(!i&&o||r).__k=v(b,null,[e]),l||p,p,r.namespaceURI,!i&&o?[o]:l?null:r.firstChild?t.call(r.childNodes):null,a,!i&&o?o:l?l.__e:r.firstChild,i,s),E(a,e,s)}(Ae(Le,{config:e}),i)}};"undefined"!=typeof window&&(window.WebAiSdk=Fe),e.WebAiSdk=Fe,e.default=Fe});
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@dierbei/web-ai-sdk",
3
+ "private": false,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "description": "高性能轻量级 Web AI 聊天挂件 SDK (Maia Design)",
7
+ "main": "./dist/index.umd.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.umd.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "dev": "vite",
22
+ "build": "tsc -b && vite build && tsc src/index.tsx --declaration --emitDeclarationOnly --jsx react-jsx --jsxImportSource preact --module esnext --target esnext --moduleResolution bundler --outDir dist",
23
+ "preview": "vite preview",
24
+ "prepublishOnly": "npm run build"
25
+ },
26
+ "dependencies": {
27
+ "lucide-preact": "^1.7.0",
28
+ "preact": "^10.29.0"
29
+ },
30
+ "devDependencies": {
31
+ "@preact/preset-vite": "^2.10.4",
32
+ "@tailwindcss/vite": "^4.2.2",
33
+ "@types/node": "^24.12.0",
34
+ "autoprefixer": "^10.4.27",
35
+ "postcss": "^8.5.8",
36
+ "tailwindcss": "^4.2.2",
37
+ "terser": "^5.46.1",
38
+ "typescript": "~5.9.3",
39
+ "vite": "^8.0.1",
40
+ "vite-plugin-css-injected-by-js": "^4.0.1",
41
+ "vite-plugin-dts": "^4.5.3"
42
+ }
43
+ }