@inkeep/cxkit-js 0.0.0-dev-20250313232451 → 0.0.0-dev-20250313234129

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.
@@ -53,4 +53,4 @@ var UV=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u00
53
53
  * @namespace
54
54
  * @public
55
55
  *)
56
- */;function A2(){const[e,t]=V.useState(!1);return[e,V.useCallback((async e=>{if(!(null==navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),t(!0),setTimeout((()=>{t(!1)}),1e3),!0}catch(n){return console.warn("Copy failed",n),t(!1),!1}}),[])]}const N2=_B("h1",{_id:"markdownH1"}),I2=_B("h2",{_id:"markdownH2"}),R2=_B("p",{_id:"markdownP"}),O2=_B("li",{_id:"markdownLi"}),P2=_B("ul",{_id:"markdownUl"}),L2=_B("ol",{_id:"markdownOl"}),D2=_B(xW,{_id:"markdownLink"}),M2=_B("sup",{_id:"markdownSourceLink"}),F2=_B("table",{_id:"markdownTable"}),j2=_B("th",{_id:"markdownTh"}),B2=_B("td",{_id:"markdownTd"}),H2=_B("code",{_id:"markdownCode"}),z2=_B("div",{_id:"codeblockContainer"}),U2=_B("div",{_id:"codeblockHeader"}),$2=_B("span",{_id:"codeblockHeaderLanguage"}),G2=_B("button",{_id:"codeblockCopyButton",type:"button"}),V2=_B("div",{_id:"codeblockHighlighterWrapper"}),W2=_B("div",{_id:"codeblockHighlighter"}),q2=_B("code",{_id:"codeblockCode"}),Y2=Z1.oneLight,K2=Z1.vsDark,X2=({className:e="",children:t,onCopy:n})=>{var r;const a=e.replace(/^language-/,""),o=String(t).replace(/\n$/,""),[i,s]=A2(),{baseSettings:l}=WO(),c=null==(r=l.theme)?void 0:r.syntaxHighlighter,{lightTheme:u=Y2,darkTheme:d=K2}=c??{},p=Zj(u,d);return $f.jsxs(z2,{children:[$f.jsxs(U2,{children:[$f.jsx($2,{children:a}),$f.jsx(G2,{"aria-label":"Copy to clipboard",onClick:()=>{s(o),null==n||n(a,o)},"data-copied":_P(i),children:$f.jsx(wW,{iconKey:i?"codeCopied":"codeCopy"})})]}),$f.jsx(V2,{children:$f.jsx(C2,{theme:p,code:o,language:a,prism:l.prism,children:({className:e,tokens:t,getLineProps:n,getTokenProps:r,style:a})=>$f.jsx(W2,{className:e,children:$f.jsx(q2,{style:a,children:t.map(((e,t)=>$f.jsx("div",{...n({line:e}),children:e.map(((e,t)=>$f.jsx("span",{...r({token:e})},t)))},t)))})})})})]})};function Q2(){return e=>{kX(e,"element",((e,t,n)=>{"code"===e.tagName&&(n&&"pre"===n.tagName?e.properties.inline=!1:e.properties.inline=!0)}))}}const Z2=({children:e,componentStyles:t,shouldOpenLinksInNewTab:n,onLinkClick:r,onCodeCopy:a,...o})=>{if(!e)return null;const i={h1:({children:e})=>$f.jsx(N2,{children:e}),h2:({children:e})=>$f.jsx(I2,{children:e}),p:({children:e})=>$f.jsx(R2,{children:e}),li:({children:e})=>$f.jsx(O2,{children:e}),ul:({children:e})=>$f.jsx(P2,{children:e}),ol:({children:e,node:t})=>{var n;const r=null==(n=null==t?void 0:t.properties)?void 0:n.start,a="number"==typeof r?r:void 0;return $f.jsx(L2,{style:{"--start":(null==r?void 0:r.toString())??"0"},start:a,children:e})},a:({children:e,href:t})=>{const a=W.Children.toArray(e),o=a[0],i="string"==typeof o&&/^\(\d+\)$/.test(o)&&1===a.length,s=i?o.match(/\d+/):e,l=$f.jsx(D2,{isExternal:n,href:t,onClick:()=>{null==r||r(t,null==s?void 0:s.toString())},children:s});return i?$f.jsx(M2,{children:l}):l},img:({src:e,alt:t})=>`![${t||""}](${e||""})`,table:({children:e})=>$f.jsx(F2,{children:e}),th:({children:e,isHeader:t})=>t?$f.jsx(j2,{children:e}):$f.jsx(B2,{children:e}),pre:({children:e})=>$f.jsx("pre",{children:e}),code:({children:e,inline:t,className:n})=>t?$f.jsx(H2,{children:e}):$f.jsx(X2,{className:n,onCopy:a,children:e})},s=$f.jsx(hQ,{rehypePlugins:[T1,Q2],components:i,disallowedElements:J2,children:e.toString(),...o});return $f.jsx(Hj,{componentStyles:t,children:s})},J2=["script","iframe","frame","embed","meta","base","form","style","object"];function e5(){return $f.jsxs("svg",{viewBox:"0 0 12 10",style:{width:"1.2em",fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},children:[$f.jsx("title",{children:"Checkbox Icon"}),$f.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})]})}function t5(e){const t=V.useId();return $f.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[$f.jsx("title",{children:"Tag Line Logo Icon"}),$f.jsx("path",{d:"M32 4.01845V25.1411C32 26.3154 30.9971 27.2462 29.8223 27.1531L16.9277 26.1507C15.409 26.0361 13.8903 26.3727 12.565 27.1173L8.11641 29.6234C7.72241 29.8454 7.29259 29.3943 7.54332 29.0148L9.77121 25.5922L11.8415 22.4131C12.0636 22.0694 12.4934 21.9119 12.8874 22.0336C16.1397 23.079 19.8075 21.8761 21.7631 18.8831C24.0913 15.2886 23.0741 10.4913 19.4851 8.15706C15.8961 5.82282 11.0965 6.83958 8.76114 10.4269C6.81263 13.427 7.19946 17.272 9.4775 19.8139C9.74972 20.1218 9.77837 20.5729 9.5563 20.9237L6.92724 24.9621C6.76964 25.1984 6.49743 25.3344 6.21804 25.313L1.4184 24.9406C0.616073 24.8834 0 24.2175 0 23.4155V5.7369C0 4.93496 0.616073 4.26905 1.4184 4.21177L29.8294 2.00642C31.0043 1.91334 32 2.84417 32 4.01845ZM15.2586 9.35282C12.3286 9.35282 9.95747 11.7229 9.95747 14.6514C9.95747 16.0763 10.5234 17.3723 11.4403 18.3246C11.9991 18.9046 12.6868 19.3557 13.4605 19.6349C14.0264 19.8354 14.6282 19.95 15.2657 19.95C18.1957 19.95 20.5668 17.5799 20.5668 14.6514C20.5597 11.73 18.1885 9.35282 15.2586 9.35282Z",fill:`url(#${t})`}),$f.jsx("defs",{children:$f.jsxs("linearGradient",{id:t,x1:"1.5893",y1:"25.285",x2:"24.0784",y2:"10.1057",gradientUnits:"userSpaceOnUse",children:[$f.jsx("stop",{stopColor:"currentColor"}),$f.jsx("stop",{offset:"1",stopColor:"currentColor"})]})})]})}const n5=e=>{const{logEvent:t}=dP(),{conversation:n}=XO(),{openForm:r}=lD(),a=rD();return{handleAction:t=>{var o;"open_form"===e.action.type?(null==(o=null==t?void 0:t.onOpenForm)||o.call(t),null==r||r(e.action.formSettings)):"invoke_callback"===e.action.type&&(e.action.callback({conversation:n}),e.action.shouldCloseModal&&(null==a||a.setOpen(!1)))},logHelpAction:()=>{"name"in e&&n.id&&t({eventName:"get_help_option_clicked",properties:{getHelpOption:e,conversation:n}})}}},r5=e=>{const t=/<em>(.*?)<\/em>/gs;let n;const r=[];let a=0;for(;null!==(n=t.exec(e));){const[t,o]=n;n.index>a&&r.push(e.slice(a,n.index)),r.push({content:o,highlighted:!0}),a=n.index+t.length}return a<e.length&&r.push(e.slice(a)),r};function a5(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function o5(e){return e.toLowerCase().replace(/(^\w+:|^)\/\//,"").replace(/^www\./,"").replace(/\/$/,"").startsWith("github.com")}function i5(e,t){const n=["API","Docs","Documentation","Blogs",t],r=["\\|","-",":"],a=new RegExp(`^\\s*(${n.join("|")})(\\.\\w+)?\\s*(${r.join("|")})\\s*`,"gi"),o=new RegExp(`\\s*(${r.join("|")})\\s*(${n.join("|")})\\s*$`,"gi");return e.replace(a,"").replace(o,"").trim()}const s5={js:".js",db:"DB",sql:"SQL"};function l5(e){return Object.entries(s5).reduce(((e,[t,n])=>{const r=new RegExp(`([a-zA-Z0-9])${t}(?!\\w)`,"g");return e.replace(r,((e,t)=>t+n))}),e)}const c5=["API","AWS","GCP","SQL","CSS","JS","JDK","SDK","JRE","IDE","XML","GUI","CLI","AI","ML","DL","IoT","TCP","UDP","IP","FTP","RAM","ROM","SSD","HDD","VPS","VPN","OS","UI","UX","DB","OOP","CRM","ERP","POS","CAD","BI","CMS","SEO","SEM","PPC","B2B","B2C","SMB","ROI","KPI","CTA","CPC","CPM","CDN","MVC","FAQ","LMS","RPA","QA","QC","CRO","SVN","GIT","DOM","DNS","ISP","URL","URN","URI","SIP","NFC","LTE","OSI","RAS","DRM","DOS","WWW","LAN","WAN","SAN","NAS","NLP","OCR","IBM","HP","SAP","JWT","SSH","SSL","TLS","POP","NTP","BGP","ARP","2FA","MFA","RDP","VNC","SCP","PKI","XSS","DoS","CSV","HL7","SOP","PHP","JSP","NET","VBA","iOS","GNU","CPU","GPU","NIC","USB","VGA","AES","RSA","DES","ECC","WEP","WPA","IDS","IPS","PM","HR","TCO","BPM","SLA","SOW","AR","VR","XR","3D","2D","4D","iOS","OpenAPI","SSO"],u5=["a","an","the","and","as","but","or","nor","at","by","in","of","on","per","to","up","via","vs","with","is","it","for","are","not","out","off","yet","so","be","if","has","its","we","our","any","all","how","her","his","their","was","were"],d5=["BaaS","SaaS","PaaS","IaaS","HTML","JSON","HTTPS","HTTP","SMTP","DBMS","RDBMS","REST","SOAP","MVVM","VoIP","RFID","WYSIWYG","WLAN","OIDC","SAML","LDAP","IPSec","OAuth","OpenID","SFTP","IMAP","RTSP","DHCP","XMPP","SNMP","ICMP","IGMP","RARP","PPTP","L2TP","IPv4","IPv6","TOTP","HMAC","TFTP","CORS","CSRF","DDOS","YAML","MQTT","AMQP","HDLC","EDIFACT","DICOM","MATLAB","UNIX","HDMI","WiFi","WPA2","DDoS","ipadOS","watchOS","macOS","JavaScript","TypeScript","SSO","IDP","RBAC"];function p5(e){return`\\b${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`}function f5(e,t,n,r=!1){return r&&new RegExp(`^${n}\\b`,"i").test(e)?e:e.replace(new RegExp(n,"gi"),t)}const h5=(e,t)=>{var n;if("documentation"!==e.type)return[];const r=null==t?void 0:t.organizationDisplayName;return((null==(n=e.breadcrumbs)?void 0:n.length)?e.breadcrumbs:function(e){try{const t=new URL(e);return t.pathname.split("/").filter((e=>e.length>0)).slice(0,-1).map(m5)}catch(t){return console.error("Invalid URL:",t),[]}}(e.url)).map((e=>{let t=e;return r&&(t=function(e,t){if(!function(e){const t=e.split(" ");for(const n of t)if(n[0]!==n[0].toUpperCase()||n.slice(1)!==n.slice(1).toLowerCase())return!1;return!0}(t))return e;const n=`\\b${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`;return new RegExp(`^${n}\\b`,"i").test(e)?e:e.replace(new RegExp(n,"gi"),t)}(e,r),t=i5(t,r)),t=l5(t),t=function(e){let t=e;return t=u5.reduce(((e,t)=>f5(e,t,p5(t),!0)),t),t=d5.reduce(((e,t)=>f5(e,t,p5(t))),t),t=c5.reduce(((e,t)=>f5(e,t,p5(t))),t),t}(t),t}))??[]},m5=e=>e.split(/[-_]/).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ");const g5=(e,t)=>{var n;if("chatSourceItem"===t)return e.description??void 0;const r=e.breadcrumbs??[],a=r.length>0?r[r.length-1]:void 0,o=e.title||(null==(n=null==a?void 0:a.props)?void 0:n.str);return function(e,t){if(!e)return;if(!t)return e;const n=t.trim(),r=[n,`<em>${n}</em>`].find((t=>e.startsWith(t)));return r?e.slice(r.length).trim():e}(e.description,o)},y5=e=>{let t="LuBookOpen";"documentation"===e.type&&"book"===e.contentType?t="IoBookOutline":"documentation"===e.type&&"pdf"===e.contentType?t="FaFilePdf":"github_issue"===e.type||o5(e.url)?t="FaGithub":"discourse"===e.type?t="FaDiscourse":"discord"===e.type?t="FaDiscord":"slack_message"===e.type?t="FaSlack":"stackoverflow"===e.type&&(t="FaStackOverflow");return{builtIn:t}},b5=(e,t)=>{let n=e.title;if(!n)return"";const r=null==t?void 0:t.organizationDisplayName;return n=l5(n),r&&(n=i5(n,r)),n},v5=(e,t,n)=>{const{transformSource:r,...a}=n,o=h5(e,n),i=((e,t)=>{var n,r,a;const o=[];"documentation"===e.type&&"book"===e.contentType?o.push("Publications"):"documentation"===e.type&&"pdf"===e.contentType&&o.push("PDFs"),("github_issue"===e.type||o5(e.url))&&o.push("GitHub"),"discourse"===e.type&&o.push("Forums"),"discord"===e.type&&o.push("Discord"),"slack_message"===e.type&&o.push("Slack"),"stackoverflow"===e.type&&o.push("StackOverflow");const i=[],s=null==(n=null==t?void 0:t.tabs)?void 0:n.map((e=>"string"==typeof e?e:e[0]));for(const l of o)(null==s?void 0:s.includes(l))&&(l===(null==(r=e.breadcrumbs)?void 0:r[0])?i.push([l,{breadcrumbs:null==(a=e.breadcrumbs)?void 0:a.slice(1)}]):i.push(l));return i})(e,n),s=(null==r?void 0:r({...e,breadcrumbs:o,tabs:i},t,a))??{};return{id:(null==s?void 0:s.id)??e.id,title:(null==s?void 0:s.title)??b5(e,n),description:(null==s?void 0:s.description)??g5(e,t),breadcrumbs:(null==s?void 0:s.breadcrumbs)??o,icon:(null==s?void 0:s.icon)??y5(e),tabs:(null==s?void 0:s.tabs)??i,url:(null==s?void 0:s.url)??e.url,tag:(null==s?void 0:s.tag)??e.tag,type:(null==s?void 0:s.type)??e.type,shouldOpenInNewTab:(null==s?void 0:s.shouldOpenInNewTab)??void 0,appendToUrl:(null==s?void 0:s.appendToUrl)??void 0}},w5=_B("div",{_id:"aiChatWrapper"}),k5=V.forwardRef(((e,t)=>{const{...n}=e,{isHidden:r,isMobile:a}=Cj(),[o,i]=function(){const e=V.useRef(null),[t,n]=V.useState({width:0,height:0});return V.useEffect((()=>{if(!e.current)return;const t=new ResizeObserver((([e])=>{const{width:t,height:r}=e.contentRect;n({width:t,height:r})}));return t.observe(e.current),()=>{t.disconnect()}}),[e]),[e,t]}(),s=bB(t,o),l=!(null==i?void 0:i.width)||i.width>580,c=rD();return $f.jsx(w5,{ref:s,"data-widget-md":_P(l),"data-hidden":_P(r),"data-in-modal":_P(!!c),"data-mobile":_P(a),...n})})),x5=_B("div",{_id:"aiChatConversationLoading"}),E5=e=>{const{isLoadingConversation:t}=Cj();return t?$f.jsx(x5,{children:$f.jsx("span",{children:"Loading..."}),...e}):null},S5=_B("div",{_id:"aiChatRoot"}),_5=e=>{const{isLoadingConversation:t,isHidden:n}=Cj(),{form:r}=lD();return t||r?null:$f.jsx(S5,{"data-hidden":_P(n),...e})},T5=_B("div",{_id:"aiChatHeader"}),C5=_B("div",{_id:"aiChatHeader__Toolbar"}),A5=_B("div",{_id:"aiChatHeader__ToolbarHeaderWrapper"}),N5=_B("div",{_id:"aiChatHeader__ToolbarHeader"}),I5=V.memo((e=>{const{aiChatSettings:t}=WO(),n=`Ask ${t.aiAssistantName||"AI"}`;return $f.jsx(N5,{...e,children:n})})),R5=_B("div",{_id:"aiChatContent"}),O5=_B(L$,{_id:"aiChatContentScrollArea"}),P5=_B(D$,{_id:"aiChatContentScrollArea__Viewport"}),L5=V.forwardRef((({children:e,...t},n)=>{const{containerRef:r}=function(e={}){const{threshold:t=150,interactionTimeout:n=150}=e,r=V.useRef(null),a=V.useRef(!0),o=V.useRef(!1),i=V.useCallback((()=>{const e=r.current;return!!e&&e.scrollHeight-e.clientHeight-e.scrollTop<t}),[t]),s=V.useCallback(((e=!1)=>{const t=r.current;t&&!o.current&&t.scrollTo({top:t.scrollHeight,behavior:e?"smooth":"auto"})}),[]);return V.useEffect((()=>{const e=r.current;if(!e)return;let t;const s=()=>{o.current=!0,a.current=i(),window.clearTimeout(t),t=window.setTimeout((()=>{o.current=!1}),n)};return e.addEventListener("scroll",s,{passive:!0}),()=>{e.removeEventListener("scroll",s),window.clearTimeout(t)}}),[i,n]),V.useEffect((()=>{const e=r.current;if(!e)return;const t=new MutationObserver((e=>{e.some((e=>"childList"===e.type||"characterData"===e.type||"attributes"===e.type&&"style"===e.attributeName))&&a.current&&s(!0)}));return t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>t.disconnect()}),[s]),V.useEffect((()=>{r.current&&s()}),[s]),{containerRef:r,scrollToBottom:s,isNearBottom:i}}(),a=bB(n,r);return $f.jsx(P5,{ref:a,children:$f.jsx("div",{"data-part":"grid",style:{display:"grid"},children:e}),...t})})),D5=_B(c$,{_id:"aiChatContentScrollArea__Scrollbar"}),M5=_B(w$,{_id:"aiChatContentScrollArea__Thumb"}),F5=_B(M$,{_id:"aiChatContentScrollArea__Corner"}),j5=_B("div",{_id:"aiChatMessages"}),B5=e=>{const t=Cj(),{children:n,...r}=e;return $f.jsx(j5,{children:CP(n,t),...r})},H5=_B("div",{_id:"aiChatDisclaimer"}),z5=V.memo((e=>{var t;const{aiChatSettings:n}=WO();return(null==(t=n.disclaimerSettings)?void 0:t.isEnabled)?$f.jsx(qU,{openDelay:100,children:$f.jsx(H5,{...e})}):null})),U5=_B("span",{_id:"aiChatDisclaimerLabel"}),$5=V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.disclaimerSettings;return $f.jsx(U5,{children:null==n?void 0:n.label,...e})})),G5=_B(YU,{_id:"aiChatDisclaimerTrigger",children:$f.jsx(wW,{iconKey:"info"})}),V5=_B(KU,{_id:"aiChatDisclaimerContent"}),W5=e=>$f.jsx(V5,{side:"top",sideOffset:8,align:"end",alignOffset:-10,...e}),q5=_B(Z2,{_id:"aiChatDisclaimerText"}),Y5=V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.aiAssistantName,r=t.disclaimerSettings,a=(null==r?void 0:r.tooltip)||`Information provided by ${n||"this AI assistant"} is not guaranteed to be accurate or comprehensive.`;return $f.jsx(q5,{shouldOpenLinksInNewTab:!0,children:a,...e})})),K5=_B(XU,{_id:"aiChatDisclaimerArrow"}),X5=_B("div",{_id:"aiChatQuickQuestions"}),Q5=e=>{var t;const{aiChatSettings:n}=WO(),{messages:r}=Cj();return!(null==(t=n.exampleQuestions)?void 0:t.length)||r.length?null:$f.jsx(X5,{...e})},Z5=_B("h3",{_id:"aiChatQuickQuestionsLabel"}),J5=V.memo((e=>{const{aiChatSettings:t}=WO();return $f.jsx(Z5,{children:t.exampleQuestionsLabel,...e})})),e3=_B("div",{_id:"aiChatQuickQuestionsList"}),t3=V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.exampleQuestions,{children:r,...a}=e;return $f.jsx(e3,{children:CP(r,n),...a})})),n3=_B("div",{_id:"aiChatQuickQuestion"}),r3=V.forwardRef(((e,t)=>{const{aiChatSettings:n}=WO(),r=n.isFirstExampleQuestionHighlighted;return $f.jsx(n3,{ref:t,"data-highlight":_P(r),...e})})),a3=_B("button",{_id:"aiChatQuickQuestionButton"}),o3=e=>{const{question:t,onClick:n,...r}=e,{handleSubmit:a}=Cj();return $f.jsx(a3,{onClick:a5(n,(()=>a(t))),children:t,...r})};_B("div",{_id:"aiChatWorkflows"});const i3=_B("h3",{_id:"aiChatWorkflowsLabel"});V.memo((e=>{const{aiChatSettings:t}=WO();return $f.jsx(i3,{children:t.workflowsHeader,...e})}));const s3=_B("div",{_id:"aiChatWorkflowsList"});V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.workflows,{children:r,...a}=e;return $f.jsx(s3,{children:CP(r,n),...a})})),_B("button",{_id:"aiChatWorkflow"}),_B((function(e){return FV({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11.983 1.907a.75.75 0 0 0-1.292-.657l-8.5 9.5A.75.75 0 0 0 2.75 12h6.572l-1.305 6.093a.75.75 0 0 0 1.292.657l8.5-9.5A.75.75 0 0 0 17.25 8h-6.572l1.305-6.093Z"},child:[]}]})(e)}),{_id:"aiChatWorkflow__Icon"});const l3=_B("div",{_id:"aiChatMessageWrapper"}),c3=e=>{const{message:t,...n}=e;return"system"===t.role?null:$f.jsx(Vj,{message:t,children:$f.jsx(l3,{"data-role":t.role,...n})})},u3=V.memo((e=>{const{message:t,...n}=e,{aiChatSettings:r,baseSettings:a}=WO(),o=r.aiAssistantName,i=o?`Hi, I'm ${o}!`:"Hi!",s=r.chatSubjectName??a.organizationDisplayName,l=`${i} \n\n I'm an AI assistant trained on documentation, help articles, and other content.`,c=s?`\n\n Ask me anything about \`${s}\`.`:"\n\n Let me know how I can help.",u={content:r.introMessage??`${l}${c}`,id:"__intro__",...t,role:"assistant",links:[]};return $f.jsx(c3,{message:u,...n})})),d3=_B("div",{_id:"aiChatMessageHeader"}),p3=e=>{const{message:t}=Wj();return $f.jsx(d3,{"data-role":t.role,...e})},f3=_B("div",{_id:"aiChatMessageLoading"}),h3=e=>{var t;const{isLoading:n,isStreaming:r,messages:a}=Cj(),{message:o}=Wj();return(null==(t=a.at(-1))?void 0:t.id)===(null==o?void 0:o.id)&&"assistant"===o.role&&n&&!r?$f.jsx(f3,{children:"Thinking...",...e}):null},m3=_B("div",{_id:"aiChatMessageAvatar"}),g3=e=>{const{message:t}=Wj();return $f.jsx(m3,{"data-role":t.role,...e})},y3=_B(ZB,{_id:"aiChatMessageAvatarContent"}),b3=e=>{const{message:t}=Wj(),{baseSettings:n}=WO();return $f.jsx(y3,{"data-username":_P("user"===t.role&&!!n.userProperties.name),"data-role":t.role,...e})},v3=_B(eH,{_id:"aiChatMessageAvatarFallback"}),w3=V.memo((e=>{const{baseSettings:t}=WO(),{message:n}=Wj();return t.userProperties.name?$f.jsx(v3,{"data-role":n.role,children:TP(t.userProperties.name),...e}):null})),k3=_B(JB,{_id:"aiChatMessageAvatarImage"}),x3=V.memo((e=>{const{onLoadingStatusChange:t,...n}=e,{aiChatSettings:r,baseSettings:{userProperties:a}}=WO(),{message:o}=Wj(),{aiAssistantAvatar:i}=r??{},s="string"==typeof i?i:null==i?void 0:i.light,l=Zj(s,("string"==typeof i?i:null==i?void 0:i.dark)??s),[c,u]=V.useState(l);V.useEffect((()=>{u(l)}),[l]);return"user"===o.role?a.name?null:r.userAvatar?$f.jsx(k3,{"data-type":"image","data-role":o.role,src:r.userAvatar,...e}):$f.jsx(HV,{"data-type":"icon","data-role":o.role,...e}):c?$f.jsx(k3,{src:c,"data-type":"image","data-role":o.role,onLoadingStatusChange:a5(t,(e=>{"error"===e&&u(null)})),...n}):$f.jsx(BV,{"data-type":"icon","data-role":o.role,...e})})),E3=_B("span",{_id:"aiChatMessageName"}),S3=e=>{const{message:t}=Wj();return $f.jsx(E3,{"data-role":t.role,children:"user"===t.role?"You":"AI assistant",...e})},_3=_B("div",{_id:"aiChatMessageContentWrapper"}),T3=e=>{const{message:t}=Wj();return $f.jsx(_3,{"data-role":t.role,...e})},C3=_B("div",{_id:"aiChatMessageContent"}),A3=e=>{const{message:t}=Wj();return $f.jsx(C3,{"data-role":t.role,...e})},N3=_B("div",{_id:"aiChatMessageAttachments"}),I3=_B("div",{_id:"aiChatMessageAttachments__List"}),R3=e=>{var t,n;const{children:r,...a}=e,{message:o}=Wj(),i=null==(n=null==(t=o.metadata)?void 0:t.attributes)?void 0:n.attachments;return i?$f.jsx(I3,{children:CP(r,i),...a}):null},O3=_B("div",{_id:"aiChatMessageAttachments__Item"}),P3=e=>{const{attachment:t,onClick:n,...r}=e,{selectItem:a,onOpen:o}=$j();return $f.jsx(Vf,{attachment:t,children:$f.jsx(O3,{onClick:a5(n,(()=>{a(t),o()})),...r})})},L3=_B(bW,{_id:"aiChatMessageAttachments__ItemIcon"}),D3=e=>{var t;const{attachment:n}=Wf(),r=null==(t=n.contentType)?void 0:t.attachmentIcon;return r?$f.jsx(L3,{iconSettings:r,...e}):null},M3=_B("span",{_id:"aiChatMessageAttachments__ItemTitle"}),F3=e=>{const{attachment:t}=Wf();return $f.jsx(M3,{children:t.title,...e})},j3=_B(EV,{_id:"aiChatMessageAttachmentsPreview"}),B3=_B(SV,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),H3=_B(_V,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),z3=_B(TV,{_id:"aiChatMessageAttachmentsPreview__Header"}),U3=e=>{const{selectedItem:t}=$j();return $f.jsx(z3,{children:(null==t?void 0:t.title)||"Attachment",...e})},$3=_B(CV,{_id:"aiChatMessageAttachmentsPreview__Close",children:$f.jsx(wW,{iconKey:"close"})}),G3=_B("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),V3=e=>{const{selectedItem:t}=$j();return $f.jsx(G3,{children:null==t?void 0:t.content,...e})},W3=_B("div",{_id:"aiChatMessage"}),q3=e=>{const{aiChatSettings:t}=WO(),{componentStyles:n,...r}=e,{message:a}=Wj(),{logEvent:o}=dP(),i=AP(a),{conversation:s}=XO();return"user"===a.role?$f.jsx(W3,{"data-role":a.role,children:i,...r}):$f.jsx(W3,{"data-role":a.role,...r,children:$f.jsx(Z2,{children:i,componentStyles:n,shouldOpenLinksInNewTab:t.shouldOpenLinksInNewTab,onLinkClick:(e,t)=>{o({eventName:"assistant_message_inline_link_opened",properties:{title:null==t?void 0:t.toString(),url:e}})},onCodeCopy:(e,t)=>{o({eventName:"assistant_code_block_copied",properties:{conversation:s,language:e,code:t}})}})})},Y3=_B("div",{_id:"aiChatMessageActions"}),K3=e=>{var t;const{isLoading:n,messages:r}=Cj(),{message:a}=Wj();return(null==(t=r.at(-1))?void 0:t.id)===(null==a?void 0:a.id)&&n||"user"===a.role?null:$f.jsx(Y3,{...e})},X3=_B("div",{_id:"aiChatMessageToolActions"}),Q3=e=>{const{children:t,...n}=e,{message:r}=Wj(),{messageToolCalls:a}=Cj(),o=a[r.id]||[];return $f.jsx(X3,{children:CP(t,o),...n})},Z3=e=>{const{onClick:t,action:n,...r}=e,{handleAction:a}=n5(n),o=n.label||"Contact Support",i=$f.jsxs($f.Fragment,{children:[n.icon&&$f.jsx(bW,{iconSettings:n.icon}),o]}),s=n.action.type,l=_B("open_link"===s?"a":"button",{_id:"aiChatMessageToolAction",children:i,"data-type":n.action.type,..."open_link"===s&&{href:n.action.url,target:"_blank",rel:"noopener"},onClick:a5(t,(()=>{a()}))});return $f.jsx(l,{...r})},J3=_B("button",{_id:"aiChatMessageAction"}),e4=e=>{var t,n,r;const{action:a,onClick:o,className:i,...s}=e,{conversation:l}=XO(),{message:c}=Wj(),{isStreaming:u,messages:d}=Cj(),[p,f]=A2(),{feedback:h,submitPositiveFeedback:m,setCurrentFeedback:g,currentFeedback:y}=kD(),{logEvent:b}=dP(),[v,w]=function(){const[e,t]=V.useState(!1);return[e,V.useCallback((async()=>(t(!0),setTimeout((()=>{t(!1)}),1e3),!0)),[])]}(),{baseSettings:{privacyPreferences:k}}=WO(),{optOutAllAnalytics:x}=k,E=(null==(t=d.at(-1))?void 0:t.id)===(null==c?void 0:c.id),S="assistant"===c.role;if(E&&u||!S||{copy:!1,upvote:x,downvote:x}[a])return null;const _={copy(){f(AP(c)),b({eventName:"assistant_message_copied",properties:{conversation:l}})},upvote(){m(c.id).then((()=>{w()}))},downvote(){g(c.id)}},T={copy:$f.jsx(wW,{iconKey:p?"messageCopied":"messageCopy"}),upvote:$f.jsx(wW,{iconKey:v?"messageCopied":"thumbsUp"}),downvote:$f.jsx(wW,{iconKey:"thumbsDown"})},C={copy:{"data-copied":_P(p)},upvote:{"data-upvoted":_P("positive"===(null==(n=h[c.id])?void 0:n.type))},downvote:{"data-downvoted":_P("negative"===(null==(r=h[c.id])?void 0:r.type)),"data-state":null===y?"closed":"open"}};return $f.jsx(J3,{"data-action":a,...C[a],children:T[a],"aria-label":{copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"}[a],className:`${i} ${a}`,onClick:a5(o,_[a]),...s})},t4=_B("div",{_id:"aiChatMessageSources"}),n4=_B("div",{_id:"aiChatMessageSources__Header"}),r4=e=>$f.jsx(n4,{children:"Sources",...e}),a4=_B("div",{_id:"aiChatMessageSources__List"}),o4=e=>{const{message:t}=Wj(),{children:n,...r}=e,{baseSettings:{transformSource:a,organizationDisplayName:o},aiChatSettings:{shouldOpenLinksInNewTab:i},searchSettings:{tabs:s}}=WO();if("assistant"!==t.role)return null;const l=t.links.map((e=>{const t=v5(e,"chatSourceItem",{organizationDisplayName:o,tabs:s,transformSource:a}),n=void 0!==t.shouldOpenInNewTab?t.shouldOpenInNewTab:i;return{...t,isExternal:n}}));return $f.jsx(a4,{children:CP(n,l),...r})},i4=_B(xW,{_id:"aiChatMessageSourceItem"}),s4=e=>{var t;const{source:n,onClick:r,...a}=e,{logEvent:o}=dP(),{conversation:i}=XO();return $f.jsx(fB,{source:n,children:$f.jsx(i4,{"data-type":n.type,appendToUrl:n.appendToUrl,isExternal:n.isExternal,"data-breadcrumbs":!!(null==(t=n.breadcrumbs)?void 0:t.length),onClick:a5(r,(()=>{o({eventName:"assistant_source_item_clicked",properties:{conversation:i,link:n}})})),...a})})},l4=_B("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),c4=e=>{var t;const{source:n}=hB();return(null==(t=n.breadcrumbs)?void 0:t.length)?$f.jsx(l4,{"data-type":n.type,...e}):null},u4=_B(wW,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),d4=_B(bW,{_id:"aiChatMessageSourceItem__Icon"}),p4=e=>{const{source:t}=hB();return $f.jsx(d4,{iconSettings:t.icon,"data-type":t.type,...e})},f4=_B("span",{_id:"aiChatMessageSourceItem__Title"}),h4=e=>{const{source:t}=hB();return $f.jsx(f4,{"data-type":t.type,children:t.title,...e})},m4=_B("span",{_id:"aiChatMessageSourceItem__Tag"}),g4=e=>{const{source:t}=hB();return $f.jsx(m4,{"data-type":t.type,...e})},y4=_B("span",{_id:"aiChatMessageSourceItem__Description"}),b4=e=>{const{source:t}=hB(),{children:n,...r}=e,a=V.useMemo((()=>t.description?r5(t.description):[]),[t.description]);return a.length?$f.jsx(y4,{"data-type":t.type,children:CP(n,a),...r}):null},v4=_B("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),w4=e=>{const{part:t,...n}=e,{source:r}=hB();return"string"==typeof t?t:$f.jsx(v4,{"data-type":r.type,children:t.content,"data-highlighted":_P(t.highlighted),...n})},k4=_B(wW,{_id:"aiChatMessageSourceItem__Indicator"}),x4=e=>{const{source:t}=hB();return $f.jsx(k4,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab",...e})},E4=_B("div",{_id:"aiChatFooter"}),S4=_B("div",{_id:"aiChatInput__Fieldset"}),_4=_B("div",{_id:"aiChatInput__Group"}),T4=_B("textarea",{_id:"aiChatInput"}),C4=V.forwardRef((({onChange:e,onKeyDown:t,...n},r)=>{const{handleInputChange:a,handleInputKeyDown:o,input:i,error:s,shouldAutoFocusInput:l,inputRef:c}=Cj(),{aiChatSettings:u}=WO(),d=bB(r,c),p=rD();return V.useEffect((()=>{requestAnimationFrame((()=>{l&&(null==c?void 0:c.current)&&(c.current.focus(),c.current.selectionStart=c.current.value.length)}))}),[l,c,null==p?void 0:p.isOpen]),$f.jsx(T4,{asChild:!0,ref:d,maxLength:99999,placeholder:u.placeholder,value:i,onChange:a5(e,a),onKeyDown:a5(t,o),disabled:!!s||u.isViewOnly,...n,children:$f.jsx(zB,{})})})),A4=_B("button",{_id:"aiChatInput__SendButton"}),N4=e=>{const{handleSubmit:t,isSubmitDisabled:n,error:r}=Cj(),{aiChatSettings:a}=WO(),{onClick:o,...i}=e;return $f.jsx(A4,{onClick:a5(o,(()=>t())),"aria-label":"Send message",disabled:n||!!r||a.isViewOnly,...i})},I4=_B(wW,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),R4=_B("div",{_id:"aiChatAttachmentsBar"}),O4=e=>{var t;const{selectedWorkflow:n}=Cj();return n&&(null==(t=n.supportedInputs)?void 0:t.length)?$f.jsx(Nj,{children:$f.jsx(R4,{...e})}):null},P4=_B("div",{_id:"aiChatAttachmentsBar__List"}),L4=e=>{const{children:t,...n}=e,{messageAttachments:r}=Cj();return $f.jsx(P4,{children:CP(t,r),...n})},D4=_B("div",{_id:"aiChatAttachmentsBar__Attachment"}),M4=e=>{const{attachment:t,...n}=e;return $f.jsx(Vf,{attachment:t,children:$f.jsx(D4,{...n})})},F4=_B(bW,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),j4=e=>{var t;const{attachment:n}=Wf(),r=null==(t=n.contentType)?void 0:t.attachmentIcon;return r?$f.jsx(F4,{iconSettings:r,...e}):null},B4=_B("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),H4=e=>{const{attachment:t}=Wf();return $f.jsx(B4,{children:t.title,...e})},z4=_B("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),U4=e=>{const{onClick:t,...n}=e,{attachment:r}=Wf(),{setMessageAttachments:a}=Cj();return $f.jsx(z4,{"aria-label":"Remove attachment",children:$f.jsx(wW,{iconKey:"close"}),onClick:a5(t,(()=>{a((e=>e.filter((e=>e.id!==r.id))))})),...n})},$4=_B("div",{_id:"aiChatAttachmentsBar__Actions"}),G4=_B(lj,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),V4=_B(xj,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:$f.jsx(wW,{iconKey:"info"})}),W4=_B(Sj,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),q4=_B(Ej,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:$f.jsxs($f.Fragment,{children:[$f.jsx(W4,{}),"Attachments will be kept in context for the entire conversation."]})}),Y4=_B("div",{_id:"aiChatAttachmentsBar__Inputs"}),K4=e=>{const{children:t,...n}=e,{selectedWorkflow:r}=Cj();return(null==r?void 0:r.supportedInputs)?$f.jsx(Y4,{children:CP(t,r.supportedInputs),...n}):null},X4=_B("button",{_id:"aiChatAttachmentsBar__Input"}),Q4=e=>{const{input:t,onClick:n,...r}=e,{selectedWorkflow:a,messageAttachments:o,setMessageAttachments:i}=Cj(),{selectInput:s,onOpen:l}=Ij();return $f.jsx(X4,{children:t.displayName,onClick:a5(n,(()=>{if("FUNCTIONAL_MULTI_ATTACHMENT"===t.type){if(!a)return;return t.onInvoke(a,t,i,[...o])}s(t),l()})),...r})},Z4=_B((function(e){return FV({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"},child:[]}]})(e)}),{_id:"aiChatAttachmentsBar__InputIcon"}),J4=_B(EV,{_id:"aiChatAttachmentsBar__Modal"}),e6=_B(SV,{_id:"aiChatAttachmentsBar__ModalOverlay"}),t6=_B(_V,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),n6=_B("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),r6=_B(TV,{_id:"aiChatAttachmentsBar__ModalHeading"}),a6=e=>{const{selectedInput:t}=Ij(),n=`Add ${null==t?void 0:t.displayName}`;return $f.jsx(r6,{children:n,...e})},o6=_B("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),i6=e=>{var t;const{selectedInput:n}=Ij(),r=null==(t=null==n?void 0:n.workflowModalProps)?void 0:t.modalHelpText;return r?$f.jsx(o6,{children:r,...e}):null},s6=_B("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),l6=_B(CV,{_id:"aiChatAttachmentsBar__ModalClose",children:$f.jsx(wW,{iconKey:"close"})}),c6=_B("div",{_id:"aiChatAttachmentsBar__ModalBody"}),u6=_B("form",{_id:"aiChatAttachmentsBar__Form"}),d6=e=>{const{onSubmit:t,...n}=e,{form:r}=Ij();return $f.jsx(u6,{onSubmit:a5(t,r.onSubmit),...n})},p6=_B("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),f6=_B("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),h6=e=>{const{form:t,selectedInput:n}=Ij();return $f.jsx(f6,{htmlFor:`${null==n?void 0:n.id}-title`,children:t.labels.title,...e})},m6=_B("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),g6=e=>{const{onChange:t,...n}=e,{form:r,selectedInput:a}=Ij();return $f.jsx(m6,{name:"title",value:r.data.title,id:`${null==a?void 0:a.id}-title`,"data-invalid":_P(!!r.errors.title),"aria-invalid":!!r.errors.title,onChange:a5(t,r.onChange),...n})},y6=_B("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),b6=e=>{const{form:t}=Ij();return t.errors.title?$f.jsx(y6,{"aria-live":"polite",children:t.errors.title,...e}):null},v6=_B("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),w6=_B("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),k6=e=>{const{form:t,selectedInput:n}=Ij();return $f.jsx(w6,{htmlFor:`${null==n?void 0:n.id}-content`,children:t.labels.content,...e})},x6=_B("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),E6=e=>{const{onChange:t,...n}=e,{form:r,selectedInput:a}=Ij();return $f.jsx(x6,{asChild:!0,rows:4,name:"content",value:r.data.content,id:`${null==a?void 0:a.id}-content`,"data-invalid":_P(!!r.errors.content),"aria-invalid":!!r.errors.content,onChange:a5(t,r.onChange),...n,children:$f.jsx(zB,{maxRows:10})})},S6=_B("span",{_id:"aiChatAttachmentsBar__FormContentError"}),_6=e=>{const{form:t}=Ij();return t.errors.content?$f.jsx(S6,{"aria-live":"polite",children:t.errors.content,...e}):null},T6=_B("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),C6=_B("div",{_id:"aiChatActionBar"}),A6=_B("div",{_id:"aiChat__ChatActions"}),N6=_B("div",{_id:"aiChatTagline__Container"}),I6=_B("span",{_id:"aiChatTagline__Text",children:"Powered by"}),R6=_B(t5,{_id:"aiChatTagline__Logo"}),O6=_B("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),P6=_B("div",{_id:"aiChat__ChatAction"}),L6=e=>{const{action:t,onClick:n,className:r,...a}=e,{clear:o,stop:i,isLoading:s,messages:l,selectedWorkflow:c}=Cj(),{conversation:u}=XO(),{aiChatSettings:d,baseSettings:p}=WO(),{logEvent:f}=dP(),[h,m]=A2(),[g,y]=A2();if({help:!1,copy:0===l.length||!d.isCopyChatButtonVisible||s,share:0===l.length||!d.isShareButtonVisible||!u.id||!!c||s,clear:0===l.length||d.isViewOnly||s,stop:!s}[t])return null;const b={help:()=>{},copy:()=>{const e=l.map((e=>{var t,n;const r=`**${"assistant"===e.role?"AI Assistant":"User"}**`,a=AP(e),o=gP(null==(n=null==(t=e.metadata)?void 0:t.attributes)?void 0:n.attachments);return`${r}\n\n${a}${o?`\n\n**Attachments**\n\n${o}`:""}`})).join("\n\n---\n\n");m(e)},share:async()=>{const e={visibility:"public",tags:[],userProperties:{},messages:u.messages.map((e=>({...e,id:Date.now().toString()+e.id,conversationId:void 0})))},{apiKey:t,analyticsApiBaseUrl:n}=p,r=await ub("",e,t,n);if(r){const e=`${d.shareChatUrlBasePath}?${qO}=${null==r?void 0:r.id}`;y(e),f({eventName:"chat_share_button_clicked",properties:{sharedConversationId:null==r?void 0:r.id,originalConversationId:u.id,sharedChatUrl:e,conversation:r}})}},clear:o,stop:i},v={copy:h,share:g};return $f.jsx(lj,{delayDuration:0,open:v[t],children:$f.jsx(P6,{"data-type":t,"data-copied":_P(h||g),className:`${r} ${t}`,children:$f.jsx(M6,{action:t}),onClick:a5(n,b[t]),...a})})},D6=_B(xj,{_id:"aiChat__ChatActionLabel"}),M6=e=>{const{action:t,...n}=e,{aiChatSettings:r}=WO(),a=r.toolbarButtonLabels??{},o={help:a.getHelp??"Get Help",copy:a.copyChat??"Copy",share:a.share??"Share",clear:a.clear??"Clear",stop:a.stop??"Stop"};return $f.jsx(D6,{children:o[t],...n})},F6=_B(hj,{_id:"aiChat__ChatActionFeeback"}),j6=e=>{const{action:t,children:n,...r}=e;return $f.jsxs(F6,{sideOffset:5,...r,children:[$f.jsx(Sj,{}),n||{copy:"Copied!",share:"Link copied!"}[t]]})},B6=_B($z,{_id:"aiChatHelpActions"}),H6=_B(L6,{_id:"aiChatHelpAction",action:"help"}),z6=_B("a",{_id:"aiChatHelpAction",target:"_blank",rel:"noreferrer"}),U6=e=>{const{action:t,onClick:n,...r}=e,{handleAction:a,logHelpAction:o}=n5(t),i=t.action.type,s={"aria-label":t.name,"data-name":t.name,children:t.name,onClick:a5(n,(()=>{a(),o()})),...r};return"open_link"===i?$f.jsx(z6,{href:t.action.url,...s}):$f.jsx(H6,{...s})},$6=_B(Gz,{_id:"aiChatHelpActions__Trigger"}),G6=V.memo((e=>{var t;const{aiChatSettings:n}=WO();return $f.jsx(L6,{action:"help",...e,asChild:!0,children:$f.jsx($6,{children:(null==(t=n.toolbarButtonLabels)?void 0:t.getHelp)??"Get Help"})})})),V6=_B(Vz,{_id:"aiChatHelpActions__Menu"}),W6=e=>$f.jsx(V6,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...e}),q6=_B(Wz,{_id:"aiChatHelpActions__MenuArrow"}),Y6=e=>{const{action:t,onClick:n,...r}=e,{handleAction:a,logHelpAction:o}=n5(t),{setOpen:i}=(()=>{const e=V.useContext(Fj);if(!e)throw new Error("useHelpMenu must be used within a HelpMenuProvider");return e})(),s=t.action.type,l=_B("open_link"===s?"a":"button",{_id:"aiChatHelpActions__MenuItem",children:t.name,"aria-label":t.name,"data-name":t.name,"data-type":t.action.type,..."open_link"===s&&{href:t.action.url,target:"_blank",rel:"noopener"},onClick:a5(n,(()=>{a({onOpenForm:()=>i(!1)}),o()}))});return $f.jsx(l,{...r})},K6=_B(bW,{_id:"aiChatHelpActions_MenuItemIcon"}),X6=e=>{const{action:t,...n}=e;return t.icon?$f.jsx(K6,{iconSettings:t.icon,...n}):null},Q6=_B(EV,{_id:"aiChatFeedbackModal"}),Z6=_B(SV,{_id:"aiChatFeedbackModal__Overlay"}),J6=_B(_V,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),e8=_B(TV,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),t8=_B(CV,{_id:"aiChatFeedbackModal__Close",children:$f.jsx(wW,{iconKey:"close"})}),n8=_B("div",{_id:"aiChatFeedbackModal__Body"}),r8=_B("form",{_id:"aiChatFeedbackForm"}),a8=e=>{const{onSubmit:t,...n}=e,{submitNegativeFeedback:r,currentFeedback:a,setCurrentFeedback:o}=kD();return $f.jsx(r8,{onSubmit:a5(t,(e=>{e.preventDefault();const t=e.target,n=new FormData(t),i=Object.fromEntries(n.entries());a&&(r(a,i),o(null))})),...n})},o8=_B("div",{_id:"aiChatFeedbackItem"}),i8=e=>{const{name:t,...n}=e;return $f.jsx(Oj,{name:t,children:$f.jsx(o8,{...n})})},s8=_B(fH,{_id:"aiChatFeedbackItem__Checkbox"}),l8=e=>{const{name:t,focusItem:n}=Pj(),{onCheckedChange:r,...a}=e;return $f.jsx(s8,{id:`feedback-${t}`,name:t,onCheckedChange:a5(r,(e=>{var t;e&&(null==(t=null==n?void 0:n.current)||t.focus())})),...a})},c8=_B(hH,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:$f.jsx(e5,{})}),u8=_B("label",{_id:"aiChatFeedbackItem__Label"}),d8=e=>{const{name:t}=Pj();return $f.jsx(u8,{htmlFor:`feedback-${t}`,children:{unrelated_response:"Didn't answer my question",inaccurate_statement:"Inaccurate statement",inaccurate_code_snippet:"Inaccurate code snippet",irrelevant_citations:"Irrelevant citations"}[t],...e})},p8=_B("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),f8=e=>{const{name:t,focusItem:n}=Pj();return $f.jsx(p8,{ref:n,name:`${t}:description`,...e})},h8=_B("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),m8=_B("div",{_id:"aiChatForm__Wrapper"}),g8=e=>{const{form:t}=lD();return t?$f.jsx(m8,{...e}):null},y8=_B("form",{_id:"aiChatForm"}),b8=e=>{const{onSubmit:t,...n}=e,{handleSubmit:r,isSuccess:a}=lD();return a?null:$f.jsx(y8,{onSubmit:a5(t,r),...n})},v8=_B("button",{_id:"aiChatForm__Close",children:$f.jsx(wW,{iconKey:"close"})}),w8=e=>{const{onClick:t,...n}=e,{closeForm:r}=lD();return $f.jsx(v8,{onClick:a5(t,r),...n})},k8=_B("div",{_id:"aiChatForm__Header"}),x8=_B("h2",{_id:"aiChatForm__Heading"}),E8=e=>{const{form:t}=lD();return(null==t?void 0:t.heading)?$f.jsx(x8,{children:t.heading,...e}):null},S8=_B("span",{_id:"aiChatForm__Description"}),_8=e=>{const{form:t}=lD();return(null==t?void 0:t.description)?$f.jsx(S8,{children:t.description,...e}):null},T8=_B("div",{_id:"aiChatForm__Content"}),C8=e=>{const{children:t,...n}=e,{fields:r=[]}=lD();return $f.jsx(T8,{children:CP(t,r),...n})},A8=_B("div",{_id:"aiChatForm__Field"}),N8=e=>{const{field:t,autoFocus:n,...r}=e,{control:a,errors:o}=lD();return $f.jsx(bL,{name:t.name,control:a,rules:{required:t.isRequired?`${t.label} is required.`:void 0},render:({field:e})=>{const a=void 0!==e.value||"file"===t.inputType;return $f.jsx(Dj,{"data-invalid":_P(!!o[t.name]),field:t,fieldProps:e,autoFocus:n,children:a&&$f.jsx(A8,{"data-input-type":t.inputType,"data-hidden":_P(t.isHidden),...r})})}})},I8=_B("label",{_id:"aiChatForm__FieldLabel"}),R8=e=>{const{field:t}=Mj();return $f.jsx(I8,{"data-required":_P(t.isRequired),htmlFor:t.name,children:t.label,...e})},O8=_B("input",{_id:"aiChatForm__FieldText",type:"text"}),P8=e=>{const{field:t,error:n,fieldProps:{onChange:r,onBlur:a,...o},autoFocus:i}=Mj(),{onChange:s,onBlur:l,...c}=e;return $f.jsx(O8,{id:t.name,autoFocus:i,placeholder:"placeholder"in t?t.placeholder:void 0,"data-invalid":_P(!!n),onChange:a5(s,r),onBlur:a5(l,a),...o,...c})},L8=_B(P8,{_id:"aiChatForm__FieldEmail",type:"email"}),D8=_B("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),M8=e=>{const{field:t,error:n,fieldProps:{value:r,onChange:a,onBlur:o,...i},autoFocus:s}=Mj(),{onChange:l,onBlur:c,...u}=e;return $f.jsx(D8,{id:t.name,autoFocus:s,"data-value":r,"data-invalid":_P(!!n),...u,...i,onChange:a5(l,(e=>{const t=e.target.files;a(t)})),onBlur:a5(c,o)})},F8=_B(P8,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:$f.jsx(zB,{maxRows:8})}),j8=_B(fH,{_id:"aiChatForm__FieldCheckbox"}),B8=e=>{const{field:t,error:n,fieldProps:r,autoFocus:a}=Mj(),{onCheckedChange:o,...i}=e;return $f.jsx(j8,{id:t.name,name:t.name,autoFocus:a,"data-invalid":_P(!!n),checked:r.value,onCheckedChange:a5(o,r.onChange),...i})},H8=_B(hH,{_id:"aiChatForm__FieldCheckboxIndicator",children:$f.jsx(e5,{})}),z8=_B(DG,{_id:"aiChatForm__FieldSelect"}),U8=_B(MG,{_id:"aiChatForm__FieldSelect__Trigger"}),$8=_B(FG,{_id:"aiChatForm__FieldSelect__Value"}),G8=_B(jG,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:$f.jsx(bW,{iconSettings:{builtIn:"LuChevronDown"}})}),V8=_B(BG,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),W8=_B(HG,{_id:"aiChatForm__FieldSelect__Viewport"}),q8=_B(zG,{_id:"aiChatForm__FieldSelect__Item"}),Y8=_B(UG,{_id:"aiChatForm__FieldSelect__ItemText"}),K8=_B($G,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:$f.jsx(bW,{iconSettings:{builtIn:"LuCheck"}})}),X8=_B("span",{_id:"aiChatForm__FieldError"}),Q8=e=>{var t;const{error:n}=Mj();return n?$f.jsx(X8,{children:null==(t=n.message)?void 0:t.toString(),...e}):null},Z8=_B("span",{_id:"aiChatForm__Error"}),J8=e=>{const{formError:t}=lD();return t?$f.jsx(Z8,{children:t.message,...e}):null},e9=_B("div",{_id:"aiChatForm__Footer"}),t9=_B("button",{_id:"aiChatForm__Cancel",children:"Cancel"}),n9=e=>{const{onClick:t,...n}=e,{closeForm:r}=lD();return $f.jsx(t9,{onClick:a5(t,r),...n})},r9=_B("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),a9=e=>{const{onClick:t,...n}=e,{isSubmitting:r}=lD();return $f.jsx(r9,{disabled:r,...n})},o9=_B("div",{_id:"aiChatForm__Success"}),i9=e=>{const{isSuccess:t}=lD();return t?$f.jsx(o9,{...e}):null},s9=_B("h2",{_id:"aiChatForm__SuccessHeading"}),l9=e=>{const{form:t}=lD();return $f.jsx(s9,{children:null==t?void 0:t.successView.heading,...e})},c9=_B(Z2,{_id:"aiChatForm__SuccessMessage"}),u9=_B("button",{_id:"aiChatForm__SuccessButton"}),d9=e=>{var t;const{onClick:n,...r}=e,{form:a,closeForm:o}=lD(),i=null==(t=null==a?void 0:a.successView)?void 0:t.doneButton;if(!i)return null;const s=i.icon&&$f.jsx(bW,{iconSettings:i.icon}),l=i.label;return $f.jsx(u9,{onClick:a5(n,o),children:$f.jsxs($f.Fragment,{children:[s,l]}),...r})};var p9="Dialog",[f9,h9]=TD(p9),[m9,g9]=f9(p9),y9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=V.useRef(null),l=V.useRef(null),[c=!1,u]=qF({prop:r,defaultProp:a,onChange:o});return $f.jsx(m9,{scope:t,triggerRef:s,contentRef:l,contentId:FO(),titleId:FO(),descriptionId:FO(),open:c,onOpenChange:u,onOpenToggle:V.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};y9.displayName=p9;var b9="DialogTrigger";V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(b9,n),o=_D(t,a.triggerRef);return $f.jsx(PD.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":L9(a.open),...r,ref:o,onClick:xD(e.onClick,a.onOpenToggle)})})).displayName=b9;var v9="DialogPortal",[w9,k9]=f9(v9,{forceMount:void 0}),x9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=g9(v9,t);return $f.jsx(w9,{scope:t,forceMount:n,children:V.Children.map(r,(e=>$f.jsx(VF,{present:n||o.open,children:$f.jsx(GF,{asChild:!0,container:a,children:e})})))})};x9.displayName=v9;var E9="DialogOverlay",S9=V.forwardRef(((e,t)=>{const n=k9(E9,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=g9(E9,e.__scopeDialog);return o.modal?$f.jsx(VF,{present:r||o.open,children:$f.jsx(_9,{...a,ref:t})}):null}));S9.displayName=E9;var _9=V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(E9,n);return $f.jsx(xz,{as:AD,allowPinchZoom:!0,shards:[a.contentRef],children:$f.jsx(PD.div,{"data-state":L9(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),T9="DialogContent",C9=V.forwardRef(((e,t)=>{const n=k9(T9,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=g9(T9,e.__scopeDialog);return $f.jsx(VF,{present:r||o.open,children:o.modal?$f.jsx(A9,{...a,ref:t}):$f.jsx(N9,{...a,ref:t})})}));C9.displayName=T9;var A9=V.forwardRef(((e,t)=>{const n=g9(T9,e.__scopeDialog),r=V.useRef(null),a=_D(t,n.contentRef,r);return V.useEffect((()=>{const e=r.current;if(e)return LH(e)}),[]),$f.jsx(I9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xD(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:xD(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:xD(e.onFocusOutside,(e=>e.preventDefault()))})})),N9=V.forwardRef(((e,t)=>{const n=g9(T9,e.__scopeDialog),r=V.useRef(!1),a=V.useRef(!1);return $f.jsx(I9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),I9=V.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=g9(T9,n),l=V.useRef(null),c=_D(t,l);return gH(),$f.jsxs($f.Fragment,{children:[$f.jsx(kH,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:$f.jsx(zD,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":L9(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),$f.jsxs($f.Fragment,{children:[$f.jsx(j9,{titleId:s.titleId}),$f.jsx(B9,{contentRef:l,descriptionId:s.descriptionId})]})]})})),R9="DialogTitle";V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(R9,n);return $f.jsx(PD.h2,{id:a.titleId,...r,ref:t})})).displayName=R9;var O9="DialogDescription";V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(O9,n);return $f.jsx(PD.p,{id:a.descriptionId,...r,ref:t})})).displayName=O9;var P9="DialogClose";function L9(e){return e?"open":"closed"}V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(P9,n);return $f.jsx(PD.button,{type:"button",...r,ref:t,onClick:xD(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=P9;var D9="DialogTitleWarning",[M9,F9]=function(e,t){const n=V.createContext(t),r=e=>{const{children:t,...r}=e,a=V.useMemo((()=>r),Object.values(r));return $f.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=V.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(D9,{contentName:T9,titleName:R9,docsSlug:"dialog"}),j9=({titleId:e})=>{const t=F9(D9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return V.useEffect((()=>{if(e){document.getElementById(e)||console.error(n)}}),[n,e]),null},B9=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${F9("DialogDescriptionWarning").contentName}}.`;return V.useEffect((()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");if(t&&a){document.getElementById(t)||console.warn(n)}}),[n,e,t]),null},H9=y9,z9=x9,U9=S9,$9=C9,G9=.999,V9=/[\\\/_+.#"@\[\(\{&]/,W9=/[\\\/_+.#"@\[\(\{&]/g,q9=/[\s-]/,Y9=/[\s-]/g;function K9(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?1:.99;var s=`${a},${o}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,p=r.charAt(o),f=n.indexOf(p,a),h=0;f>=0;)(l=K9(e,t,n,r,f+1,o+1,i))>h&&(f===a?l*=1:V9.test(e.charAt(f-1))?(l*=.8,(u=e.slice(a,f-1).match(W9))&&a>0&&(l*=Math.pow(G9,u.length))):q9.test(e.charAt(f-1))?(l*=.9,(d=e.slice(a,f-1).match(Y9))&&a>0&&(l*=Math.pow(G9,d.length))):(l*=.17,a>0&&(l*=Math.pow(G9,f-a))),e.charAt(f)!==t.charAt(o)&&(l*=.9999)),(l<.1&&n.charAt(f-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(f-1)!==r.charAt(o))&&.1*(c=K9(e,t,n,r,f+1,o+2,i))>l&&(l=.1*c),l>h&&(h=l),f=n.indexOf(p,f+1);return i[s]=h,h}function X9(e){return e.toLowerCase().replace(Y9," ")}function Q9(e,t,n){return K9(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,X9(e),X9(t),0,0,{})}var Z9={exports:{}},J9={},e7=V;var t7="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n7=e7.useState,r7=e7.useEffect,a7=e7.useLayoutEffect,o7=e7.useDebugValue;function i7(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!t7(e,n)}catch(r){return!0}}var s7="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=n7({inst:{value:n,getSnapshot:t}}),a=r[0].inst,o=r[1];return a7((function(){a.value=n,a.getSnapshot=t,i7(a)&&o({inst:a})}),[e,n,t]),r7((function(){return i7(a)&&o({inst:a}),e((function(){i7(a)&&o({inst:a})}))}),[e]),o7(n),n};J9.useSyncExternalStore=void 0!==e7.useSyncExternalStore?e7.useSyncExternalStore:s7,Z9.exports=J9;var l7=Z9.exports;const c7='[cmdk-group=""]',u7='[cmdk-group-items=""]',d7='[cmdk-item=""]',p7=`${d7}:not([aria-disabled="true"])`,f7="cmdk-item-select",h7="data-value",m7=(e,t,n)=>Q9(e,t,n??[]),g7=V.createContext(void 0),y7=()=>V.useContext(g7),b7=V.createContext(void 0),v7=()=>V.useContext(b7),w7=V.createContext(void 0),k7=V.forwardRef(((e,t)=>{const n=D7((()=>({search:"",value:e.value??e.defaultValue??"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}))),r=D7((()=>new Set)),a=D7((()=>new Map)),o=D7((()=>new Map)),i=D7((()=>new Set)),s=P7(e),{label:l,children:c,value:u,onValueChange:d,filter:p,shouldFilter:f,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,b=FO(),v=FO(),w=FO(),k=V.useRef(null),x=B7();L7((()=>{if(void 0!==u){const e=u.trim();n.current.value=e,S.emit()}}),[u]),L7((()=>{x(6,I)}),[]);const E=BO(),S=V.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,o,i,l,c;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),C(),x(1,A);else if("value"===e){const e=null==(o=null==(a=null==E?void 0:E.shadowHost)?void 0:a.shadowRoot)?void 0:o.activeElement;if((null==e?void 0:e.hasAttribute("cmdk-input"))||x(1,(()=>{const e=R();null==e||e.focus()})),x(7,(()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,S.emit()})),r||x(5,I),void 0!==(null==(i=s.current)?void 0:i.value)){const e=t??"";return void(null==(c=(l=s.current).onValueChange)||c.call(l,e))}}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),_=V.useMemo((()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),x(2,(()=>{C(),S.emit()})))},item:(e,t)=>{var i,s;return r.current.add(e),t&&(a.current.has(t)?null==(s=null==(i=a.current)?void 0:i.get(t))||s.add(e):a.current.set(t,new Set([e]))),x(3,(()=>{N(),C(),n.current.value||A(),S.emit()})),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);const t=R();x(4,(()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&A(),S.emit()}))}},group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>!!s.current.shouldFilter,label:l||e["aria-label"]||"",getDisablePointerSelection:()=>!!s.current.disablePointerSelection,listId:b,inputId:w,labelId:v,listInnerRef:k})),[]);function T(e,t){var r;const a=(null==(r=s.current)?void 0:r.filter)??m7;return e?null==a?void 0:a(e,n.current.search,t):0}function C(){if(!n.current.search||!1===s.current.shouldFilter)return;const e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{const r=a.current.get(n);let o=0;r.forEach((t=>{const n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));const r=k.current;O().sort(((t,n)=>{const r=t.getAttribute("id"),a=n.getAttribute("id");return(e.get(a)??0)-(e.get(r)??0)})).forEach((e=>{const t=e.closest(u7);if(t){const n=e.parentElement===t?e:e.closest(`${u7} > *`);n&&t.appendChild(n)}else{const t=e.parentElement===r?e:e.closest(`${u7} > *`);t&&(null==r||r.appendChild(t))}})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{var t,n;const r=null==(t=k.current)?void 0:t.querySelector(`${c7}[${h7}="${encodeURIComponent(e[0])}"]`);null==(n=null==r?void 0:r.parentElement)||n.appendChild(r)}))}function A(){const e=O().find((e=>"true"!==e.getAttribute("aria-disabled")&&e.getAttribute("data-value")!==Bee)),t=null==e?void 0:e.getAttribute(h7);S.setState("value",t||void 0)}function N(){var e,t;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let i=0;for(const a of r.current){const r=T((null==(e=o.current.get(a))?void 0:e.value)??"",(null==(t=o.current.get(a))?void 0:t.keywords)??[]);n.current.filtered.items.set(a,r),r>0&&i++}for(const[r,o]of a.current)for(const e of o){const t=n.current.filtered.items.get(e);if(t&&t>0){n.current.filtered.groups.add(r);break}}n.current.filtered.count=i}function I(){var e,t,n;const r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(c7))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${d7}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(p7))||[])}function P(e){const t=O()[e];t&&S.setState("value",t.getAttribute(h7))}function L(e){var t;const n=R(),r=O(),a=r.findIndex((e=>e===n));let o=r[a+e];(null==(t=s.current)?void 0:t.loop)&&(o=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),o&&S.setState("value",o.getAttribute(h7))}function D(e){const t=R();let n,r=null==t?void 0:t.closest(c7);for(;r&&!n;)r=e>0?R7(r,c7):O7(r,c7),n=null==r?void 0:r.querySelector(p7);n?S.setState("value",n.getAttribute(h7)):L(e)}const M=()=>P(O().length-1),F=e=>{e.preventDefault(),e.metaKey?M():e.altKey?D(1):L(1)},j=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?D(-1):L(-1)};return $f.jsxs(Qz.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":g&&e.ctrlKey&&j(e);break;case"ArrowUp":j(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();const t=R();if(t){const e=new Event(f7);t.dispatchEvent(e)}}}},children:[$f.jsx("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:z7,children:l}),H7(e,(e=>$f.jsx(b7.Provider,{value:S,children:$f.jsx(g7.Provider,{value:_,children:e})})))]})})),x7=V.forwardRef(((e,t)=>{var n;const{id:r}=e,a=V.useRef(null),o=V.useContext(w7),i=y7(),s=P7(e),l=(null==(n=s.current)?void 0:n.forceMount)??(null==o?void 0:o.forceMount);L7((()=>{if(!l)return i.item(r,null==o?void 0:o.id)}),[l]);const c=j7(r,a,[e.value,e.children,a],e.keywords),u=v7(),d=F7((e=>e.value&&e.value===c.current)),p=F7((e=>!!l||(!1===i.filter()||(!e.search||e.filtered.items.get(r)>0))));function f(){var e,t;h(),null==(t=(e=s.current).onSelect)||t.call(e,c.current)}function h(){u.setState("value",c.current,!0)}if(V.useEffect((()=>{const t=a.current;if(t&&!e.disabled)return t.addEventListener(f7,f),()=>t.removeEventListener(f7,f)}),[p,e.onSelect,e.disabled]),!p)return null;const{disabled:m,value:g,onSelect:y,forceMount:b,keywords:v,...w}=e;return $f.jsx(Qz.div,{ref:M7([a,t]),...w,id:r,"cmdk-item":"",role:"option","aria-disabled":Boolean(m),"aria-selected":Boolean(d),"data-disabled":Boolean(m),"data-selected":Boolean(d),onPointerMove:m||i.getDisablePointerSelection()?void 0:h,onClick:m?void 0:f,onFocus:m?void 0:h,children:e.children})})),E7=V.forwardRef(((e,t)=>{const{heading:n,children:r,forceMount:a,...o}=e,i=FO(),s=V.useRef(null),l=V.useRef(null),c=FO(),u=y7(),d=F7((e=>!!a||(!1===u.filter()||(!e.search||e.filtered.groups.has(i)))));L7((()=>u.group(i)),[]),j7(i,s,[e.value,e.heading,l]);const p=V.useMemo((()=>({id:i,forceMount:a})),[a]);return $f.jsxs(Qz.div,{ref:M7([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0,children:[n&&$f.jsx("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c,children:n}),H7(e,(e=>$f.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0,children:$f.jsx(w7.Provider,{value:p,children:e})})))]})})),S7=V.forwardRef(((e,t)=>{const{alwaysRender:n,...r}=e,a=V.useRef(null),o=F7((e=>!e.search));return n||o?$f.jsx(Qz.div,{ref:M7([a,t]),...r,"cmdk-separator":"",role:"separator"}):null})),_7=V.forwardRef(((e,t)=>{const{onValueChange:n,...r}=e,a=null!=e.value,o=v7(),i=F7((e=>e.search)),s=y7();return V.useEffect((()=>{null!=e.value&&o.setState("search",e.value)}),[e.value]),$f.jsx(Qz.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})})),T7=V.forwardRef(((e,t)=>{const{children:n,label:r="Suggestions",...a}=e,o=V.useRef(null),i=V.useRef(null),s=y7();return V.useEffect((()=>{if(i.current&&o.current){const e=i.current,t=o.current;let n;const r=new ResizeObserver((()=>{n=requestAnimationFrame((()=>{const n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")}))}));return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}}),[]),$f.jsx(Qz.div,{ref:M7([o,t]),...a,"cmdk-list":"",tabIndex:-1,"aria-label":r,id:s.listId,children:H7(e,(e=>$f.jsx("div",{ref:M7([i,s.listInnerRef]),"cmdk-list-sizer":"",children:e})))})})),C7=V.forwardRef(((e,t)=>{const{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...s}=e;return $f.jsx(H9,{open:n,onOpenChange:r,children:$f.jsxs(z9,{container:i,children:[$f.jsx(U9,{"cmdk-overlay":"",className:a}),$f.jsx($9,{"aria-label":e.label,"cmdk-dialog":"",className:o,children:$f.jsx(k7,{ref:t,...s})})]})})})),A7=V.forwardRef(((e,t)=>F7((e=>0===e.filtered.count))?$f.jsx(Qz.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),N7=V.forwardRef(((e,t)=>{const{progress:n,children:r,label:a="Loading...",...o}=e;return $f.jsx(Qz.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,children:H7(e,(e=>$f.jsx("div",{"aria-hidden":!0,children:e})))})})),I7=Object.assign(k7,{List:T7,Item:x7,Input:_7,Group:E7,Separator:S7,Dialog:C7,Empty:A7,Loading:N7});function R7(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function O7(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function P7(e){const t=V.useRef(e);return L7((()=>{t.current=e})),t}const L7="undefined"==typeof window?V.useEffect:V.useLayoutEffect;function D7(e){const t=V.useRef(void 0);return void 0===t.current&&(t.current=e()),t}function M7(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function F7(e){const t=v7(),n=()=>e(t.snapshot());return l7.useSyncExternalStore(t.subscribe,n,n)}function j7(e,t,n,r=[]){const a=V.useRef(void 0),o=y7();return L7((()=>{var i;const s=(()=>{var e;for(const t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=r.map((e=>e.trim()));o.value(e,s,l),null==(i=t.current)||i.setAttribute(h7,s),a.current=s})),a}const B7=()=>{const[e,t]=V.useState(),n=D7((()=>new Map));return L7((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function H7({asChild:e,children:t},n){return e&&V.isValidElement(t)?V.cloneElement(function(e){const t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}const z7={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function U7(e,t,n){try{const r=new URL(e);return r.searchParams.set(n,t),r.toString()}catch{return e}}const $7=e=>{var t,n,r;switch(e.rootRecord.__typename){case"DocumentationRecord":{const a=V7((null==(n=null==(t=e.pathHeadings)?void 0:t.at(-1))?void 0:n.content)||""),o=V7((null==(r=e.content)?void 0:r.content)||"");return e.preview||o||a}case"GitHubIssueRecord":case"StackOverflowRecord":case"DiscourseRecord":return e.rootRecord.body;default:return e.preview}},G7=e=>{switch(e.rootRecord.__typename){case"StackOverflowRecord":return e.rootRecord.markedAsCorrectAnswer?"Resolved":void 0;case"GitHubIssueRecord":return"CLOSED"===e.rootRecord.state?"Closed":void 0}},V7=e=>e.replace(/(https?:\/\/\S+)/g,(e=>{const t=e.split("/");return t.length>3?`...${t.slice(-2).join("/")}`:e})),W7=e=>{switch(e){case"DocumentationRecord":return"documentation";case"GitHubIssueRecord":return"github_issue";case"DiscourseRecord":return"discourse";case"DiscordRecord":return"discord";case"StackOverflowRecord":return"stackoverflow";case"SlackEntry":return"slack_message";default:return"site"}},q7=V.createContext(void 0),Y7=({children:e})=>{const{logEvent:t}=sP();return $f.jsx(q7.Provider,{value:{logEvent:t},children:e})},K7=({children:e})=>$f.jsx(iP,{children:$f.jsx(Y7,{children:e})}),X7=()=>{const e=V.useContext(q7);if(!e)throw new Error("useSearchEvents must be used within a SearchEventsProvider");return e};const Q7=()=>{const{baseSettings:e,searchSettings:t}=WO(),{apiKey:n,aiApiBaseUrl:r,userAuthToken:a,filters:o}=e,{maxResults:i,placeholder:s,defaultQuery:l,debounceTimeMs:c,onQueryChange:u,searchFunctionsRef:d,tabs:p,filters:f}=t,{logEvent:h}=X7(),[m,g]=V.useState(l),y=V.useRef(null),[b,v]=V.useState(!1),[w,k]=V.useState(null),[x,E]=V.useState("NONE"),S=V.useCallback((e=>{E(e)}),[]),[_,T]=V.useState([]),C=((e,t)=>{const{baseSettings:{transformSource:n,organizationDisplayName:r},searchSettings:{tabs:a,searchQueryParamKey:o,shouldOpenLinksInNewTab:i}}=WO();return V.useMemo((()=>{var s;const l=a.length>0?a:["All"],c={},u=new Set,d=l.map((e=>"string"==typeof e?e:e[0]));for(const e of d)c[e]=[];for(const p of e){const e=p.url||"";if(u.has(e))continue;u.add(e);const s=o?U7(e,t,o):e,l=v5({title:p.title,url:s,description:$7(p),type:W7(p.rootRecord.__typename),tag:G7(p),breadcrumbs:p.rootRecord.pathBreadcrumbs??[],contentType:p.rootRecord.contentType},"searchResultItem",{organizationDisplayName:r,tabs:a,transformSource:n}),f={...l,id:p.id,isExternal:void 0!==l.shouldOpenInNewTab?l.shouldOpenInNewTab:i},h=f.tabs||[];for(const t of h){const e="string"==typeof t?t:t[0];d.includes(e)?c[e].push(f):console.warn(`Tab "${e}" found in item but not configured in tabs`)}d.includes("All")&&c.All.push(f)}for(const e of Object.keys(c)){const t=l.find((t=>"string"==typeof t?t===e:t[0]===e)),n="object"==typeof t&&!0===(null==(s=t[1])?void 0:s.isAlwaysVisible);0!==c[e].length||n||delete c[e]}return c}),[e,n,r,a,t,o,i])})(_,m),A="string"==typeof(null==p?void 0:p[0])?p[0]:p[0][0],[N,I]=V.useState(A),{disableTransition:R,disabled:O}=function(){const[e,t]=V.useState(!1);V.useEffect((()=>{if(e){const e=setTimeout((()=>t(!1)),0);return()=>clearTimeout(e)}}),[e]);const n=V.useCallback((()=>t(!0)),[]);return{disabled:e,disableTransition:n}}(),P=V.useCallback((e=>{R(),I(e);const t=C[e][0].id;E(t)}),[C,R]);V.useEffect((()=>{var e,t;let n=N in C?N:Object.keys(C)[0];if(!(null==(e=C[n])?void 0:e.length)){const e=Object.keys(C).find((e=>{var t;return null==(t=C[e])?void 0:t.length}));n=e||A}if(!n)return;I(n);const r=null==(t=C[n])?void 0:t[0];r&&E(r.id)}),[C]);const L=pD("(max-width: 768px)"),D=V.useRef({}),M=V.useRef(null),F=V.useRef(null);V.useImperativeHandle(d,(()=>({updateQuery(e){g(e)},focusInput:()=>{var e;null==(e=y.current)||e.focus()}})));const j=`${r}/graphql`,B=V.useMemo((()=>({Authorization:`Bearer ${n}`,"Content-Type":"application/json",...a?{"User-Token":a}:{}})),[n,a]),H=V.useCallback((async e=>{const t=new AbortController;M.current=t;try{k(null);const n=await async function(e,t,n,r,a){var o;const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...r},signal:a,body:JSON.stringify({query:t,variables:n})});if(!i.ok)throw new Error(`Network response was not OK (status: ${i.status})`);const s=await i.json();if(null==(o=s.errors)?void 0:o.length)throw new Error(s.errors[0].message);return s.data}(j,"query GetSearchResults($searchInput: SearchInput!) {\n search(searchInput: $searchInput) {\n searchHits {\n id\n hitOnRoot\n url\n title\n preview\n\n ... on DocumentationHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on DocumentationRecord {\n pathBreadcrumbs\n contentType\n }\n }\n pathHeadings {\n content\n }\n content {\n content\n }\n }\n\n ... on StackOverflowHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on StackOverflowRecord {\n body\n createdAt\n\n markedAsCorrectAnswer {\n url\n score\n content\n }\n }\n }\n }\n\n ... on GitHubIssueHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on GitHubIssueRecord {\n createdAt\n body\n state\n }\n }\n }\n\n ... on DiscourseHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on DiscourseRecord {\n createdAt\n body\n }\n }\n }\n }\n searchQuery\n }\n}\n",{searchInput:e},B,t.signal),r=null==n?void 0:n.search.searchHits;D.current[e.searchQuery]=r,T(r)}catch(ple){if("AbortError"===ple.name)return;k("Failed to fetch search results. Please try again.")}finally{v(!1)}}),[j,B]),z=V.useCallback((e=>{const t=D.current[e.searchQuery];h({eventName:"search_query_response_received",properties:{searchQuery:e.searchQuery,totalResults:null==t?void 0:t.length}})}),[]),U=()=>{M.current&&(M.current.abort(),v(!1))},$=V.useCallback((e=>{if(F.current&&window.clearTimeout(F.current),!e.searchQuery)return U(),T([]),void k(null);F.current=window.setTimeout((()=>{U(),h({eventName:"search_query_submitted",properties:{searchQuery:e.searchQuery}}),D.current[e.searchQuery]?(T(D.current[e.searchQuery]),z(e)):(v(!0),H(e).then((()=>{z(e)})))}),c)}),[c,H]),G=V.useMemo((()=>({searchQuery:m,filters:{...o,...f,limit:i}})),[m,i,o,f]);V.useEffect((()=>{null==u||u(G.searchQuery),$(G)}),[$,G]);const W=V.useCallback((e=>g(e.target.value)),[]),q=V.useMemo((()=>s||(L?"Search...":"Search for anything...")),[s,L]);return{results:C,resultsList:_,hasContent:_.length>0||b,loading:b,error:w,query:m,onInput:W,placeholder:q,tab:N,onTabChange:P,selectedItem:x,setSelectedItem:E,onSelectedItemChange:S,transitionsDisabled:O,inputRef:y,isMobile:L}},Z7=V.createContext(void 0),J7=e=>$f.jsx(K7,{children:$f.jsx(eee,{...e})}),eee=({children:e,...t})=>{const n=Q7();return $f.jsx(Z7.Provider,{value:{...n,...t},children:e})},tee=()=>{const e=V.useContext(Z7);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e};var nee="rovingFocusGroup.onEntryFocus",ree={bubbles:!1,cancelable:!0},aee="RovingFocusGroup",[oee,iee,see]=F$(aee),[lee,cee]=TD(aee,[see]),[uee,dee]=lee(aee),pee=V.forwardRef(((e,t)=>$f.jsx(oee.Provider,{scope:e.__scopeRovingFocusGroup,children:$f.jsx(oee.Slot,{scope:e.__scopeRovingFocusGroup,children:$f.jsx(fee,{...e,ref:t})})})));pee.displayName=aee;var fee=V.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=V.useRef(null),f=_D(t,p),h=ZU(o),[m=null,g]=qF({prop:i,defaultProp:s,onChange:l}),[y,b]=V.useState(!1),v=LD(c),w=iee(n),k=V.useRef(!1),[x,E]=V.useState(0);return V.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(nee,v),()=>e.removeEventListener(nee,v)}),[v]),$f.jsx(uee,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:m,onItemFocus:V.useCallback((e=>g(e)),[g]),onItemShiftTab:V.useCallback((()=>b(!0)),[]),onFocusableItemAdd:V.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:V.useCallback((()=>E((e=>e-1))),[]),children:$f.jsx(PD.div,{tabIndex:y||0===x?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:xD(e.onMouseDown,(()=>{k.current=!0})),onFocus:xD(e.onFocus,(e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(nee,ree);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));yee([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}k.current=!1})),onBlur:xD(e.onBlur,(()=>b(!1)))})})})),hee="RovingFocusGroupItem",mee=V.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...i}=e,s=FO(),l=o||s,c=dee(hee,n),u=c.currentTabStopId===l,d=iee(n),{onFocusableItemAdd:p,onFocusableItemRemove:f}=c;return V.useEffect((()=>{if(r)return p(),()=>f()}),[r,p,f]),$f.jsx(oee.ItemSlot,{scope:n,id:l,focusable:r,active:a,children:$f.jsx(PD.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:xD(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:xD(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:xD(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:gee[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const o=a.indexOf(e.currentTarget);a=c.loop?(r=o+1,(n=a).map(((e,t)=>n[(r+t)%n.length]))):a.slice(o+1)}setTimeout((()=>yee(a)))}var n,r}))})})}));mee.displayName=hee;var gee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yee(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var bee=pee,vee=mee,wee="Tabs",[kee,xee]=TD(wee,[cee]),Eee=cee(),[See,_ee]=kee(wee),Tee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=ZU(s),[d,p]=qF({prop:r,onChange:a,defaultProp:o});return $f.jsx(See,{scope:n,baseId:FO(),value:d,onValueChange:p,orientation:i,dir:u,activationMode:l,children:$f.jsx(PD.div,{dir:u,"data-orientation":i,...c,ref:t})})}));Tee.displayName=wee;var Cee="TabsList",Aee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=_ee(Cee,n),i=Eee(n);return $f.jsx(bee,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:r,children:$f.jsx(PD.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})}));Aee.displayName=Cee;var Nee="TabsTrigger",Iee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,i=_ee(Nee,n),s=Eee(n),l=Pee(i.baseId,r),c=Lee(i.baseId,r),u=r===i.value;return $f.jsx(vee,{asChild:!0,...s,focusable:!a,active:u,children:$f.jsx(PD.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...o,ref:t,onMouseDown:xD(e.onMouseDown,(e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:xD(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:xD(e.onFocus,(()=>{const e="manual"!==i.activationMode;u||a||!e||i.onValueChange(r)}))})})}));Iee.displayName=Nee;var Ree="TabsContent",Oee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...i}=e,s=_ee(Ree,n),l=Pee(s.baseId,r),c=Lee(s.baseId,r),u=r===s.value,d=V.useRef(u);return V.useEffect((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),$f.jsx(VF,{present:a||u,children:({present:n})=>$f.jsx(PD.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:n&&o})})}));function Pee(e,t){return`${e}-trigger-${t}`}function Lee(e,t){return`${e}-content-${t}`}Oee.displayName=Ree;var Dee=Tee,Mee=Aee,Fee=Iee,jee=Oee;const Bee="__ask_ai__",Hee=_B("div",{_id:"aiSearchWrapper"}),zee=e=>{const{isHidden:t,hasContent:n,isMobile:r}=tee(),a=rD();return $f.jsx(Hee,{"data-hidden":_P(t),"data-has-content":_P(n),"data-in-modal":_P(!!a),"data-mobile":_P(r),...e})},Uee=_B(I7,{_id:"aiSearchRoot"}),$ee=e=>{const{isHidden:t,selectedItem:n,onSelectedItemChange:r}=tee();return $f.jsx(Uee,{"data-hidden":_P(t),shouldFilter:!1,loop:!1,value:n,onValueChange:r,...e})},Gee=_B(I7.List,{_id:"aiSearchContent"}),Vee=V.forwardRef(((e,t)=>{const{selectedItem:n}=tee();return $f.jsx(Gee,{"aria-activedescendant":`aiSearchResults__Item-${n}`,...e,ref:t})})),Wee=_B("div",{_id:"aiSearchInputGroup"}),qee=_B(wW,{_id:"aiSearchInputIcon",iconKey:"search"}),Yee=_B(I7.Input,{_id:"aiSearchInput"}),Kee=V.forwardRef((({onInput:e,...t},n)=>{const{query:r,onInput:a,placeholder:o,inputRef:i,shouldAutoFocusInput:s,selectedItem:l}=tee(),c=bB(n,i),u=rD();return V.useEffect((()=>{requestAnimationFrame((()=>{s&&(null==i?void 0:i.current)&&(i.current.focus(),i.current.selectionStart=i.current.value.length)}))}),[s,i,null==u?void 0:u.isOpen]),$f.jsx(Yee,{ref:c,placeholder:o,value:r,onInput:a5(e,a),"aria-activedescendant":`aiSearchResults__Item-${l}`,...t})})),Xee=_B(bW,{_id:"aiSearchLoading",iconSettings:{builtIn:"LuLoaderCircle"}}),Qee=e=>{const{loading:t,resultsList:n}=tee();return t&&0!==n.length?$f.jsx(Xee,{...e}):null},Zee=_B(I7.Item,{_id:"aiAskAITrigger",value:Bee}),Jee=e=>{var t,n;const{setSelectedItem:r,results:a,tab:o}=tee(),i=(null==(n=null==(t=a[o])?void 0:t[0])?void 0:n.id)??"NONE";return $f.jsx(Zee,{...e,id:`aiSearchResults__Item-${Bee}`,tabIndex:0,onPointerLeave:()=>r(i)})},ete=_B("img",{_id:"aiAskAITrigger__Icon"}),tte=e=>{const{aiChatSettings:t}=WO(),{aiAssistantAvatar:n}=t??{},r="string"==typeof n?n:null==n?void 0:n.light,a=Zj(r,("string"==typeof n?n:null==n?void 0:n.dark)??r),[o,i]=V.useState(a);V.useEffect((()=>{i(a)}),[a]);return $f.jsx(ete,{asChild:!0,...e,children:o?$f.jsx("img",{src:o,alt:"AI Avatar","data-type":"image",onError:a5((()=>{i(null)})),...e}):$f.jsx(BV,{"data-type":"icon",...e})})},nte=_B("span",{_id:"aiAskAITrigger__Label"}),rte=_B(wW,{_id:"aiAskAITrigger__Indicator",iconKey:"openLinkInSameTab"}),ate=_B(Dee,{_id:"aiSearchResults"}),ote=e=>{const{tab:t,onTabChange:n,hasContent:r}=tee();return $f.jsx(ate,{value:t,onValueChange:n,"data-has-content":_P(r),...e})},ite=_B("div",{_id:"aiSearchResults__Loading"}),ste=e=>{const{loading:t,resultsList:n}=tee();return!t||n.length>0?null:$f.jsx(ite,{...e})},lte=_B(I7.Empty,{_id:"aiSearchResults__Empty"}),cte=e=>{var t;const{query:n,loading:r,results:a,tab:o}=tee(),i=null==(t=a[o])?void 0:t.length;return r||!n||i?null:$f.jsx(lte,{children:"No results found.",...e})},ute=_B(Mee,{_id:"aiSearchResults__TabList"}),dte=e=>{const{children:t,...n}=e,{searchSettings:{tabs:r}}=WO(),{results:a,loading:o,resultsList:i}=tee();if(o&&0===i.length)return null;const s=Object.keys(a);return r.length&&s.length?$f.jsx(ute,{tabIndex:-1,children:CP(t,s),...n}):null},pte=_B(Fee,{_id:"aiSearchResults__Tab"}),fte=V.forwardRef(((e,t)=>{const n=V.useRef(null),r=bB(t,n),{tab:a,onClick:o,...i}=e,{results:s,tab:l,inputRef:c}=tee(),u=s[a].length,d=a===l,p=BO();return V.useEffect((()=>{var e,t,r;if(d){const a=null==(t=null==(e=null==p?void 0:p.shadowHost)?void 0:e.shadowRoot)?void 0:t.activeElement;(null==a?void 0:a.hasAttribute("ikp-tab"))&&(null==(r=n.current)||r.focus())}}),[d]),$f.jsx(pte,{ref:r,"ikp-tab":"",tabIndex:d?0:-1,value:a,children:`${a} (${u})`,onClick:a5(o,(()=>{var e;null==(e=c.current)||e.focus()})),...i})})),hte=_B(L$,{_id:"aiSearchResults__ScrollArea"}),mte=e=>{const{loading:t,resultsList:n}=tee();return t&&0===n.length?null:$f.jsx(hte,{tabIndex:-1,...e})},gte=_B(D$,{_id:"aiSearchResults__ScrollAreaViewport"}),yte=V.forwardRef((({children:e,...t},n)=>{const r=function(){const e=V.useRef(null),t=V.useCallback((()=>{const t=e.current;t&&(0===t.scrollTop?t.setAttribute("data-scroll-top",""):t.removeAttribute("data-scroll-top"),t.scrollTop+t.clientHeight>=t.scrollHeight-1?t.setAttribute("data-scroll-bottom",""):t.removeAttribute("data-scroll-bottom"))}),[]);return V.useEffect((()=>{const n=e.current;if(n)return t(),n.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{n.removeEventListener("scroll",t),window.removeEventListener("resize",t)}}),[t]),e}(),a=bB(n,r),{tab:o}=tee();return V.useEffect((()=>{var e;o&&(null==(e=r.current)||e.scrollTo({top:0,behavior:"auto"}))}),[o]),$f.jsx(gte,{ref:a,tabIndex:-1,children:$f.jsx("div",{tabIndex:-1,style:{display:"grid"},children:e}),...t})})),bte=_B(c$,{_id:"aiSearchResults__ScrollAreaScrollbar"}),vte=_B(w$,{_id:"aiSearchResults__ScrollAreaThumb"}),wte=_B(M$,{_id:"aiSearchResults__ScrollAreaCorner"}),kte=_B(jee,{_id:"aiSearchResults__List"}),xte=e=>{const{children:t,...n}=e,{results:r,tab:a}=tee(),o=r[a]??[];return $f.jsx(kte,{value:a,"data-has-results":_P(o.length>0),"aria-label":"Search results",children:CP(t,o),tabIndex:-1,...n})},Ete=_B(I7.Item,{_id:"aiSearchResults__Item",asChild:!0}),Ste=V.forwardRef((({item:e,onClick:t,onSelect:n,children:r,...a},o)=>{var i;const{searchSettings:{shouldOpenLinksInNewTab:s}}=WO(),{logEvent:l}=X7(),{query:c,transitionsDisabled:u,selectedItem:d}=tee(),p=V.useRef(null),f=bB(o,p),h=void 0!==e.shouldOpenInNewTab?e.shouldOpenInNewTab:s,m=d===e.id,g=m||("NONE"===d||d===Bee);return $f.jsx(fB,{source:{...e,isExternal:h},children:$f.jsx(Ete,{ref:f,value:e.id,"data-type":e.type,"data-breadcrumbs":!!(null==(i=e.breadcrumbs)?void 0:i.length),"data-disable-transitions":_P(u),onSelect:a5(n,(()=>{var e;null==(e=p.current)||e.click()})),onClick:a5(t,(()=>{l({eventName:"search_result_clicked",properties:{searchQuery:c,title:e.title,url:e.url}})})),"data-selected":_P(m),tabIndex:g?0:-1,...a,children:$f.jsx(xW,{href:e.url,isExternal:h,appendToUrl:e.appendToUrl,children:r,id:`aiSearchResults__Item-${e.id}`})})})})),_te=_B("div",{_id:"aiSearchResults__ItemBreadcrumbs"}),Tte=e=>{var t,n,r,a;const{source:o}=hB(),{tab:i}=tee();if(!(null==(t=o.breadcrumbs)?void 0:t.length))return null;const{children:s,...l}=e,c=(null==(a=null==(r=null==(n=o.tabs)?void 0:n.find((e=>"string"!=typeof e&&e[0]===i)))?void 0:r[1])?void 0:a.breadcrumbs)??o.breadcrumbs??[];return $f.jsx(_te,{"aria-hidden":"true",children:CP(s,c),...l})},Cte=_B(wW,{_id:"aiSearchResults__ItemBreadcrumbIcon",iconKey:"breadcrumbSeparator"}),Ate=_B(bW,{_id:"aiSearchResults__ItemIcon"}),Nte=e=>{const{source:t}=hB();return $f.jsx(Ate,{iconSettings:t.icon,"data-type":t.type,...e})},Ite=_B("span",{_id:"aiSearchResults__ItemTitle"}),Rte=e=>{const{source:t}=hB();return $f.jsx(Ite,{"data-type":t.type,children:t.title,...e})},Ote=_B("span",{_id:"aiSearchResults__ItemTag"}),Pte=e=>{const{source:t}=hB();return $f.jsx(Ote,{"data-type":t.type,children:t.tag,...e})},Lte=_B("span",{_id:"aiSearchResults__ItemDescription"}),Dte=e=>{const{source:t}=hB(),{children:n,...r}=e,a=V.useMemo((()=>t.description?r5(t.description):[]),[t.description]);return a.length?$f.jsx(Lte,{"data-type":t.type,"aria-hidden":"true",children:CP(n,a),...r}):null},Mte=_B("span",{_id:"aiSearchResults__ItemDescriptionPart"}),Fte=e=>{const{part:t,...n}=e,{source:r}=hB();return"string"==typeof t?t:$f.jsx(Mte,{"data-type":r.type,children:t.content,"data-highlighted":_P(t.highlighted),...n})},jte=_B(wW,{_id:"aiSearchResults__ItemIndicator"}),Bte=e=>{const{source:t}=hB();return $f.jsx(jte,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab",...e})},Hte=_B("div",{_id:"aiSearchFooter"}),zte=e=>{const{resultsList:t}=tee();return $f.jsx(Hte,{"data-has-results":_P(t.length>0),...e})},Ute=_B("div",{_id:"aiSearchTagline__Container"}),$te=_B("span",{_id:"aiSearchTagline__Text",children:"Powered by"}),Gte=_B(t5,{_id:"aiSearchTagline__Logo"}),Vte=_B("a",{_id:"aiSearchTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),Wte=_B(EV,{_id:"modal"}),qte=_B(SV,{_id:"modal__Overlay"}),Yte=_B(_V,{_id:"modal__Content","aria-describedby":void 0}),Kte=e=>{const t=pD("(max-width: 768px)");return $f.jsx(Yte,{"data-mobile":_P(t),...e})},Xte=_B(CV,{_id:"modal__Close",children:$f.jsx(wW,{iconKey:"close"})}),Qte=e=>rD()?$f.jsx(Xte,{...e}):null,Zte=_B("div",{_id:"chatButton__Container"}),Jte=_B("button",{_id:"chatButton__Button"}),ene=_B("div",{_id:"chatButton__Text"}),tne=_B(ZB,{_id:"chatButton__AvatarContent"}),nne=_B(JB,{_id:"chatButton__AvatarImage"}),rne=V.memo((e=>{const{onLoadingStatusChange:t,avatar:n,...r}=e,{aiChatSettings:a}=WO(),{aiAssistantAvatar:o}=a??{},i="string"==typeof n?n:Zj(null==n?void 0:n.light,null==n?void 0:n.dark),s="string"==typeof o?o:null==o?void 0:o.dark,[l,c]=V.useState(i??s);V.useEffect((()=>{c(i??s)}),[i,s]);return l?$f.jsx(nne,{src:l,"data-type":"image",onLoadingStatusChange:a5(t,(e=>{"error"===e&&c(null)})),...r}):$f.jsx(BV,{"data-type":"icon",...e})}));const ane={width:void 0,height:void 0};function one(e){const{ref:t,box:n="content-box"}=e,[{width:r,height:a},o]=V.useState(ane),i=function(){const e=V.useRef(!1);return V.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),V.useCallback((()=>e.current),[])}(),s=V.useRef({...ane}),l=V.useRef(void 0);return l.current=e.onResize,V.useEffect((()=>{if(!t.current)return;if("undefined"==typeof window||!("ResizeObserver"in window))return;const e=new ResizeObserver((([e])=>{const t="border-box"===n?"borderBoxSize":"device-pixel-content-box"===n?"devicePixelContentBoxSize":"contentBoxSize",r=ine(e,t,"inlineSize"),a=ine(e,t,"blockSize");if(s.current.width!==r||s.current.height!==a){const e={width:r,height:a};s.current.width=r,s.current.height=a,l.current?l.current(e):i()&&o(e)}}));return e.observe(t.current,{box:n}),()=>{e.disconnect()}}),[n,t,i]),{width:r,height:a}}function ine(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}const sne="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function lne(e){const{children:t,target:n,tag:r,host:a}=e,o=V.useRef(null),i=V.useRef(null),[,s]=V.useReducer((e=>e+1),0);sne((()=>{if(!o.current)return;const e=o.current.ownerDocument,t=a??e.body;return i.current=e.createElement(r??"inkeep-portal"),t.appendChild(i.current),s(),()=>{i.current&&t.removeChild(i.current)}}),[]);const l=(null==n?void 0:n.current)??i.current;return l?re.createPortal(t,l):V.createElement("span",{ref:o})}const cne=({children:e,...t})=>{const{baseSettings:n}=WO(),{rootElement:r}=n;return $f.jsx(lne,{host:r,...t,children:$f.jsx(uB,{children:e})})},une=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,dne=A1,pne=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return dne(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map((e=>{const t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;const i=une(t)||une(r);return a[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...s}[t]):{...o,...s}[t]===n}))?[...e,n,r]:e}),[]);return dne(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},fne=pne(["max-h-screen max-w-screen relative","grow-[5] mx-auto justify-self-center text-left"],{variants:{size:{default:["grow-0 justify-self-center self-center","m-auto max-h-[100vw] max-w-screen","md:w-[min(600px,100%)] md:h-[min(760px,100%)]","lg:w-[min(640px,100%)] lg:h-[min(800px,100%)]","2xl:w-[min(760px,100%)] 2xl:h-[min(900px,100%)]"],expand:["w-full h-full"],"shrink-vertically":["w-full h-auto self-start max-h-full"],"full-viewport":["fixed top-0 left-0 w-screen h-screen z-dropdown"]},variant:{"container-with-shadow":"shadow-[0_25px_50px_-12px_rgba(0,0,0,0.25)] dark:shadow-[none]","no-shadow":"shadow-[none]"}},defaultVariants:{size:"default",variant:"container-with-shadow"}}),hne=pne(["inline-flex","items-center","justify-center","align-middle","select-none","relative","whitespace-nowrap","appearance-none","rounded-md","leading-[1.2]","transition-all","duration-300","cursor-pointer","font-semibold","focus:outline-none","focus:z-base","focus-visible:ring","disabled:opacity-40","disabled:cursor-not-allowed","disabled:shadow-none"],{variants:{variant:{solid:["bg-gray-100 dark:bg-white-alpha-100","text-gray-800 dark:text-white-alpha-950","hover:bg-gray-200 dark:hover:bg-white-alpha-200","hover:disabled:bg-gray-100 dark:hover:disabled:bg-white-alpha-100","active:bg-gray-300 dark:active:bg-white-alpha-400"],iconButton:["px-1 text-gray-500 text-md","hover:text-inkeep-primary-strong","dark:text-gray-dark-200","dark:hover:text-inkeep-expanded-primary-300"],ghost:["text-gray-800 dark:text-white-alpha-950","hover:bg-gray-100 dark:hover:bg-white-alpha-100","active:bg-gray-200 dark:active:bg-white-alpha-200"],outline:["border dark:border-white-alpha-200","text-gray-600 dark:text-gray-200","hover:bg-gray-50 dark:hover:bg-white-alpha-100","active:bg-gray-50 dark:active:bg-white-alpha-100"]},size:{sm:"h-8 min-w-8 text-sm px-3",md:"h-10 min-w-10 text-md px-4",xs:"h-6 min-w-6 text-xs px-2"},preset:{neutralFilled:["bg-gray-1000 text-white hover:bg-gray-900 active:bg-gray-900","dark:bg-inkeep-expanded-primary-300 dark:text-gray-dark-950","dark:hover:bg-inkeep-expanded-primary-200","dark:active:bg-inkeep-expanded-primary-200"]}},defaultVariants:{size:"md"}}),mne=pne("",{variants:{slot:{root:["flex items-center pl-2","text-xs rounded-md h-6","bg-gray-300 dark:bg-white-alpha-200","min-w-0 w-fit"],icon:["mr-[0.5em]","text-gray-600 dark:text-white-alpha-600"],title:["overflow-hidden whitespace-nowrap text-ellipsis inline-block"],delete:[hne({variant:"iconButton",size:"md"}),"h-4 px-1 min-w-[unset]","text-gray-600 dark:text-white-alpha-600","hover:bg-transparent hover:text-gray-700","dark:hover:text-white-alpha-500","[&_svg]:w-4 [&_svg]:h-4"]}}}),gne=pne("",{variants:{slot:{root:["peer h-4 w-4 shrink-0 rounded-xs","border-2 border-inherit cursor-pointer","disabled:opacity-50","data-[state=checked]:bg-gray-1000","dark:data-[state=checked]:bg-white-alpha-950","data-[state=checked]:border-gray-1000","dark:data-[state=checked]:border-white-alpha-950","text-white data-[state=checked]:text-white","dark:data-[state=checked]:text-gray-1000"],indicator:["flex items-center justify-center","text-current animate-checkbox-check"]}}}),yne=pne(["transition-all data-[disable-transitions]:transition-none","duration-100 ease-in-out"],{variants:{slot:{root:["group w-full overflow-hidden border rounded-lg","text-inkeep-primary-text-bold selected:text-inkeep-primary-strong","focus:outline-inkeep-expanded-primary-700 dark:focus:outline-inkeep-expanded-primary-300","dark:text-white-alpha-950 dark:selected:text-inkeep-expanded-primary-300","bg-white selected:bg-inkeep-primary-light-subtle","dark:bg-transparent dark:selected:bg-white-alpha-200","border-gray-200 selected:border-inkeep-primary-medium-subtle","dark:border-white-alpha-200","dark:selected:border-inkeep-expanded-primary-300","py-2 px-5 grid gap-x-3 gap-y-1",'[grid-template:"breadcrumbs_breadcrumbs_breadcrumbs_indicator""icon_title_tag_indicator""description_description_description_indicator"/auto_auto_1fr_auto]',"items-center"],breadcrumbs:["[grid-area:breadcrumbs]","flex items-center text-gray-600","dark:text-white-alpha-600 text-xs"],breadcrumbsIcon:"last-of-type:hidden text-3xs mx-[5px]",icon:["[grid-area:icon]","text-gray-500","group-selected:text-inkeep-primary-text-subtle","dark:text-gray-dark-300 dark:group-selected:text-gray-dark-100"],title:["[grid-area:title]","text-gray-800 dark:text-white-alpha-950","group-selected:text-inkeep-primary-text-bold","dark:group-selected:text-white","font-medium line-clamp-1"],tag:["[grid-area:tag] w-fit justify-self-end","text-xs px-1 uppercase rounded-sm align-middle","font-bold inline-block whitespace-nowrap",'data-[type^="github"]:text-purple-500','data-[type="stackoverflow"]:text-green-500',"shadow-[inset_0_0_0_1px_currentColor]"],description:["[grid-area:description]","text-1sm line-clamp-1","text-gray-700 dark:text-white-alpha-700"],descriptionPart:["data-[highlighted]:font-semibold","data-[highlighted]:text-inkeep-primary-text-subtle","dark:data-[highlighted]:text-gray-dark-50"],indicator:["[grid-area:indicator]","self-center justify-self-end","opacity-0 group-selected:opacity-100","transition-opacity duration-100 ease-in-out ml-auto"]}}}),bne=pne("size-4 inline-block leading-[1em] shrink-0 text-current align-middle"),vne=pne(["w-full min-w-0 outline-none relative","appearance-none [transition-property:common]","[transition-duration:0.02s]","disabled:opacity-40 disabled:cursor-not-allowed","[--focus-border-color:theme(colors.blue.500)]","[--error-border-color:theme(colors.red.500)]","dark:[--focus-border-color:theme(colors.blue.300)]","dark:[--error-border-color:theme(colors.red.300)]"],{variants:{variant:{outline:["border border-inherit bg-inherit","focus:[&:not([data-invalid])]:border-[--focus-border-color]","focus:[&:not([data-invalid])]:shadow-[0_0_0_1px_var(--focus-border-color)]","data-[invalid]:border-[--error-border-color]","data-[invalid]:shadow-[0_0_0_1px_var(--error-border-color)]"]},size:{md:"p-4 h-10 text-md rounded-md",sm:"px-3 py-2 text-sm rounded-md"}}}),wne=pne(["transition-[common] ease-out duration-[180]","cursor-pointer text-decoration-none break-words","outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent","hover:underline"]),kne=pne("tracking-tight font-semibold",{variants:{size:{lg:"text-xl",md:"text-md"}},defaultVariants:{size:"md"}}),xne=pne("text-2sm ms-[1em] break-words pb-3 pl-7 relative [&_li]:mb-1",{variants:{style:{ordered:"list-decimal [counter-increment:item]",unordered:"list-[initial]"}}}),Ene=pne("",{variants:{slot:{root:"w-full border-collapse [font-variant-numeric:lining-nums_tabular-nums]",th:["font-heading font-bold uppercase tracking-wider text-start","data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","text-gray-600 dark:text-gray-400","px-6 py-3 leading-4 text-xs"],td:["text-start data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","px-6 py-4 leading-5"]},size:{md:""}}}),Sne=pne(["ml-[3px] cursor-pointer","[&_a]:bg-inkeep-primary-light","[&_a]:px-1","[&_a]:py-[1px]","[&_a]:rounded-sm","[&_a]:no-underline","[&_a]:text-inkeep-primary-text-subtle","[&_a]:hover:text-inkeep-primary-text-bold","[&_a]:font-semibold","[&_a]:dark:bg-inkeep-primary-text-subtle","[&_a]:dark:hover:text-inkeep-expanded-primary-200","[&_a]:hover:no-underline"]),_ne=pne(["bg-inkeep-primary-medium text-inkeep-primary-text-color-on-primary","[overflow-wrap:anywhere] min-w-0 py-[.2rem] my-[.1rem]","px-[.4rem] rounded-[6px] [font-size:85%!important]","font-semibold inline-block","font-mono "]),Tne=pne("",{variants:{slot:{container:"overflow-y-auto mb-3",header:["flex items-center justify-between","bg-gray-50 dark:bg-gray-dark-800","text-gray-600 dark:text-gray-400","mb-0 leading-[1.25] px-2 text-xs","transition-all duration-200 ease-in-out","rounded-[6px_6px_0_0]"],copyButton:["px-0 bg-inherit text-inherit","hover:text-gray-800 dark:text-white-alpha-700 dark:hover:text-white-alpha-950","dark:hover:bg-transparent h-8 w-8 min-h-8 min-w-8 text-sm","data-[copied]:text-inkeep-primary-medium"],highlighter:["text-1sm overflow-x-auto","rounded-[0_0_6px_6px]","p-[1em] whitespace-pre","m-[0px_0px_0.5em]","bg-gray-50 dark:bg-gray-dark-900","[scrollbar-width:thin]","[--scrollbar-color:var(--color-gray-300)]","dark:[--scrollbar-color:var(--color-gray-dark-600)]","[scrollbar-color:var(--scrollbar-color)_transparent]"]}}}),Cne=pne("",{variants:{slot:{overlay:["fixed inset-0","bg-overlay-light dark:bg-overlay-dark","data-[state=closed]:hidden","data-[state=open]:animate-fade-in","backdrop-blur-sm overflow-y-auto","place-items-center grid z-overlay"],content:["fixed","top-[5%]","left-1/2","translate-x-[-50%]","z-overlay","flex flex-col","w-full","duration-200","text-inherit rounded-md","bg-white shadow-lg dark:bg-gray-dark-950 dark:shadow-none","focus-visible:outline-none","focus:outline-none","data-[state=closed]:hidden","data-[state=closed]:animate-fade-out","data-[state=open]:animate-fade-in","data-[mobile]:inset-0","data-[mobile]:h-[unset]","data-[mobile]:w-[unset]","data-[mobile]:transform-none","data-[mobile]:rounded-none","[&[data-mobile]>div]:h-full","[&[data-mobile]>div]:max-h-dvh","[&[data-mobile]>div]:max-h-[unset]"],header:["px-6 py-4 text-xl font-semibold flex-0 flex flex-col"],close:[hne({variant:"ghost",size:"md"}),"w-8 h-8 min-w-0","text-lg text-gray-500 dark:text-white-alpha-500","absolute top-2 right-3"],body:["px-6 py-2 flex-1"]}}}),Ane=pne("",{variants:{slot:{content:["flex flex-col bg-white dark:bg-gray-dark-800","rounded-md z-popover","shadow-md relative","data-[state=open]:animate-fade-in","data-[state=closed]:animate-fade-out"],arrow:"fill-white dark:fill-gray-dark-800"}}}),Nne=pne("",{variants:{section:{wrapper:"w-full flex flex-col grow-[5] overflow-hidden justify-between max-h-full",header:"relative max-h-full",content:"w-full flex flex-col overflow-hidden p-0 grow-[2]",footer:"justify-self-end flex-shrink-0"}}}),Ine=pne("",{variants:{slot:{trigger:[vne({size:"md",variant:"outline"}),"px-4 py-0 flex items-center justify-between"],content:["relative z-dropdown max-h-96 min-w-[8rem]","overflow-hidden rounded-md border","bg-white dark:bg-gray-dark-950 shadow-md","data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out","data-[side=bottom]:translate-y-1.5","data-[side=left]:-translate-x-1.5","data-[side=right]:translate-x-1.5","data-[side=top]:-translate-y-1.5"],viewport:["p-1 h-[var(--radix-select-trigger-height)]","w-full min-w-[var(--radix-select-trigger-width)]"],item:["hover:bg-gray-100 dark:hover:bg-gray-dark-800","focus:bg-gray-100 dark:focus:bg-gray-dark-800","relative flex w-full text-md cursor-pointer py-1.5","select-none outline-none pl-2 pr-8 rounded-md items-center ","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],itemIndicator:["absolute right-2 flex h-3.5 w-3.5","items-center justify-center"]}}}),Rne=pne(["h-5 opacity-70 rounded-sm shadow-none","bg-clip-padding cursor-default pointer-events-none","before:invisible after:invisible *:invisible","animate-skeleton-bg-fade select-none","[--start-color:theme(colors.gray.50)]","[--end-color:theme(colors.gray.300)]","dark:[--start-color:theme(colors.gray-dark.800)]","dark:[--end-color:theme(colors.gray-dark.600)]","bg-[--start-color] border-[--end-color]"]),One=e=>{const t=Mne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Pne(n,t)||Dne(e)},getConflictingClassGroupIds:(e,t)=>{const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}},Pne=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),o=a?Pne(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return null==(n=t.validators.find((({validator:e})=>e(i))))?void 0:n.classGroupId},Lne=/^\[(.+)\]$/,Dne=e=>{if(Lne.test(e)){const t=Lne.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Mne=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hne(Object.entries(e.classGroups),n).forEach((([e,n])=>{Fne(n,r,e,t)})),r},Fne=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Bne(e)?void Fne(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,a])=>{Fne(a,jne(t,e),n,r)}))}else{(""===e?t:jne(t,e)).classGroupId=n}}))},jne=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Bne=e=>e.isThemeGetter,Hne=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,zne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}},Une=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,a=t[0],o=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===a&&(r||e.slice(d,d+o)===t)){n.push(e.slice(l,d)),l=d+o;continue}if("/"===c){i=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},$ne=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},Gne=/\s+/;function Vne(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Wne(e))&&(r&&(r+=" "),r+=t);return r}const Wne=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wne(e[r]))&&(n&&(n+=" "),n+=t);return n};function qne(e,...t){let n,r,a,o=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:zne(e.cacheSize),parseClassName:Une(e),...One(e)}))(l),r=n.cache.get,a=n.cache.set,o=i,i(s)};function i(e){const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(Gne);let s="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let p=Boolean(d),f=r(p?u.substring(0,d):u);if(!f){if(!p){s=e+(s.length>0?" "+s:s);continue}if(f=r(u),!f){s=e+(s.length>0?" "+s:s);continue}p=!1}const h=$ne(t).join(":"),m=c?h+"!":h,g=m+f;if(o.includes(g))continue;o.push(g);const y=a(f,p);for(let n=0;n<y.length;++n){const e=y[n];o.push(m+e)}s=e+(s.length>0?" "+s:s)}return s})(e,n);return a(e,o),o}return function(){return o(Vne.apply(null,arguments))}}const Yne=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Kne=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xne=/^\d+\/\d+$/,Qne=new Set(["px","full","screen"]),Zne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jne=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ere=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tre=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nre=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rre=e=>ore(e)||Qne.has(e)||Xne.test(e),are=e=>bre(e,"length",vre),ore=e=>Boolean(e)&&!Number.isNaN(Number(e)),ire=e=>bre(e,"number",ore),sre=e=>Boolean(e)&&Number.isInteger(Number(e)),lre=e=>e.endsWith("%")&&ore(e.slice(0,-1)),cre=e=>Kne.test(e),ure=e=>Zne.test(e),dre=new Set(["length","size","percentage"]),pre=e=>bre(e,dre,wre),fre=e=>bre(e,"position",wre),hre=new Set(["image","url"]),mre=e=>bre(e,hre,xre),gre=e=>bre(e,"",kre),yre=()=>!0,bre=(e,t,n)=>{const r=Kne.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},vre=e=>Jne.test(e)&&!ere.test(e),wre=()=>!1,kre=e=>tre.test(e),xre=e=>nre.test(e),Ere=qne((()=>{const e=Yne("colors"),t=Yne("spacing"),n=Yne("blur"),r=Yne("brightness"),a=Yne("borderColor"),o=Yne("borderRadius"),i=Yne("borderSpacing"),s=Yne("borderWidth"),l=Yne("contrast"),c=Yne("grayscale"),u=Yne("hueRotate"),d=Yne("invert"),p=Yne("gap"),f=Yne("gradientColorStops"),h=Yne("gradientColorStopPositions"),m=Yne("inset"),g=Yne("margin"),y=Yne("opacity"),b=Yne("padding"),v=Yne("saturate"),w=Yne("scale"),k=Yne("sepia"),x=Yne("skew"),E=Yne("space"),S=Yne("translate"),_=()=>["auto",cre,t],T=()=>[cre,t],C=()=>["",rre,are],A=()=>["auto",ore,cre],N=()=>["","0",cre],I=()=>[ore,cre];return{cacheSize:500,separator:":",theme:{colors:[yre],spacing:[rre,are],blur:["none","",ure,cre],brightness:I(),borderColor:[e],borderRadius:["none","","full",ure,cre],borderSpacing:T(),borderWidth:C(),contrast:I(),grayscale:N(),hueRotate:I(),invert:N(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[lre,are],inset:_(),margin:_(),opacity:I(),padding:T(),saturate:I(),scale:I(),sepia:N(),skew:I(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",cre]}],container:["container"],columns:[{columns:[ure]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",cre]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sre,cre]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",cre]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",sre,cre]}],"grid-cols":[{"grid-cols":[yre]}],"col-start-end":[{col:["auto",{span:["full",sre,cre]},cre]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[yre]}],"row-start-end":[{row:["auto",{span:[sre,cre]},cre]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",cre]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",cre]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",cre,t]}],"min-w":[{"min-w":[cre,t,"min","max","fit"]}],"max-w":[{"max-w":[cre,t,"none","full","min","max","fit","prose",{screen:[ure]},ure]}],h:[{h:[cre,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[cre,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[cre,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[cre,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ure,are]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ire]}],"font-family":[{font:[yre]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",cre]}],"line-clamp":[{"line-clamp":["none",ore,ire]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rre,cre]}],"list-image":[{"list-image":["none",cre]}],"list-style-type":[{list:["none","disc","decimal",cre]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rre,are]}],"underline-offset":[{"underline-offset":["auto",rre,cre]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",cre]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",cre]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fre]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pre]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mre]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[rre,cre]}],"outline-w":[{outline:[rre,are]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[rre,are]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ure,gre]}],"shadow-color":[{shadow:[yre]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ure,cre]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",cre]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",cre]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",cre]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[sre,cre]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",cre]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",cre]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",cre]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rre,are,ire]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Sre(...e){return Ere(A1(e))}const _re=e=>e?"":void 0,Tre=pne("",{variants:{slot:{root:["bg-gray-50 dark:bg-transparent","border border-transparent dark:border-gray-dark-700","rounded-md p-0.5 flex items-center"],button:[Sre(hne({size:"xs"}),"group","rounded data-[active]:shadow","bg-transparent data-[active]:bg-white","text-gray-600 data-[active]:text-gray-800","dark:text-white-alpha-600 dark:data-[active]:text-white-alpha-950","dark:data-[active]:bg-gray-dark-700 dark:shadow-none","hover:text-gray-800 hover:dark:text-white-alpha-950","focus-visible:ring-transparent")],icon:["mr-1 text-gray-500 data-[active]:text-gray-600","dark:text-white-alpha-500 dark:data-[active]:text-white-alpha-600","group-hover:text-gray-600 dark:group-hover:text-white-alpha-600"]}}}),Cre={markdownH1:Sre(kne({size:"lg"}),"mb-3"),markdownH2:Sre(kne({size:"md"}),"mb-2"),markdownP:Sre("mb-3 break-words whitespace-pre-wrap","[&+ol,&+li]:mt-0"),markdownLi:Sre("[&_a]:break-words [&_a]:inline"),markdownUl:xne({style:"unordered"}),markdownOl:Sre(xne({style:"ordered"}),"[inset-inline-start:var(--start,0px)]","[counter-reset:item_calc(var(--start,0)_-_1)]"),markdownLink:Sre(wne(),"text-inkeep-primary-stronger hover:text-inkeep-primary-strong","dark:text-inkeep-expanded-primary-100 dark:hover:text-inkeep-expanded-primary-300"),markdownSourceLink:Sne(),markdownTable:Ene({slot:"root"}),markdownTh:Ene({slot:"th"}),markdownTd:Ene({slot:"td"}),markdownCode:_ne(),codeblockContainer:Tne({slot:"container"}),codeblockHeader:Tne({slot:"header"}),codeblockCopyButton:Sre(hne({}),Tne({slot:"copyButton"})),codeblockHighlighterWrapper:Sre(),codeblockHighlighter:Tne({slot:"highlighter"}),codeblockCode:"font-mono"},Are=["Thinking","Looking for content","Analyzing"];function Nre(){const[e,t]=V.useState(0);return V.useEffect((()=>{const e=setInterval((()=>{t((t=>t+1<Are.length?t+1:(clearInterval(e),t)))}),3500);return()=>clearInterval(e)}),[]),$f.jsxs("div",{className:"flex items-center space-x-2 font-medium text-sm text-gray-700 dark:text-gray-dark-300","aria-live":"polite",children:[$f.jsx("span",{className:"animate-shimmer bg-gradient-to-br from-gray-700 to-gray-400 dark:from-gray-dark-300 dark:to-gray-dark-100 bg-clip-text text-transparent",children:Are[e]}),$f.jsx("div",{className:"flex space-x-1",children:[0,1,2].map((e=>$f.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:.2*e+"s"},children:"."},e)))})]})}const Ire=()=>Array.from({length:3}).map(((e,t)=>{const n=t%2==0;return $f.jsxs("div",{className:Sre("flex items-center flex-row-reverse","data-[even]:flex-row","[--end-color:theme(colors.white-alpha.100)]","dark:[--start-color:theme(colors.gray.300)]","dark:[--end-color:theme(colors.white-alpha.300)]"),"data-even":_re(n),children:[$f.jsx("div",{"data-even":_re(n),className:Sre(Rne(),"h-12 w-12 rounded-full","data-[even]:mr-4 ml-4 data-[even]:ml-0")}),$f.jsxs("div",{"data-even":_re(n),className:"flex flex-col gap-2 items-end data-[even]:items-start",children:[$f.jsx("div",{"data-even":_re(n),className:Sre(Rne(),"h-4 rounded-lg w-60")}),$f.jsx("div",{"data-even":_re(n),className:Sre(Rne(),"h-4 rounded-lg w-56")})]})]},t)})),Rre=e=>$f.jsx(KO,{children:$f.jsx(uP,{children:$f.jsx(sD,{children:$f.jsx(Tj,{...e})})})}),Ore=V.forwardRef((({className:e,size:t,variant:n,...r},a)=>$f.jsx(k5,{ref:a,className:Sre(fne({size:t,variant:n}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]",e),...r}))),Pre=({className:e,...t})=>$f.jsx(E5,{className:Sre("flex flex-col items-center justify-center h-full gap-12 flex-1 p-8",e),children:$f.jsx(Ire,{}),...t}),Lre=({className:e,...t})=>$f.jsx(_5,{className:Sre(Nne({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),Dre=({className:e,...t})=>$f.jsx(T5,{className:Sre(Nne({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-[1rem]","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),Mre=({className:e,...t})=>$f.jsx(C5,{className:Sre("flex items-center gap-2 w-full pl-6 pr-1","ikp-md:px-4 py-2 justify-between *:m-0",e),...t}),Fre=({className:e,...t})=>$f.jsx(A5,{className:Sre("flex items-center gap-1.5",e),...t}),jre=({className:e,...t})=>$f.jsx(I5,{className:Sre("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),Bre=({className:e,...t})=>$f.jsx(R5,{className:Sre(Nne({section:"content"}),"justify-end",e),...t}),Hre=({className:e,...t})=>$f.jsx(O5,{className:Sre("overflow-hidden",e),...t}),zre=V.forwardRef((({className:e,...t},n)=>$f.jsx(L5,{ref:n,className:Sre("h-full w-full rounded-[inherit]",e),...t}))),Ure=({className:e,...t})=>$f.jsx(D5,{className:Sre("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),$re=({className:e,...t})=>$f.jsx(M5,{className:Sre("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),Gre=F5,Vre=({className:e,...t})=>$f.jsx(z5,{className:Sre("ml-auto text-sm flex items-center gap-1",e),...t}),Wre=({className:e,...t})=>$f.jsx($5,{className:Sre("text-gray-700 dark:text-gray-dark-100",e),...t}),qre=({className:e,...t})=>$f.jsx(G5,{className:Sre("cursor-pointer text-gray-700 dark:text-gray-dark-100",e),...t}),Yre=({className:e,...t})=>$f.jsx(W5,{className:Sre(Ane({slot:"content"}),"px-4 py-2 font-normal","w-[250px] sm:w-[420px]",e),...t}),Kre=Y5,Xre=({className:e,...t})=>$f.jsx(K5,{className:Sre(Ane({slot:"arrow"}),e),...t}),Qre=({className:e,...t})=>$f.jsx(Q5,{className:Sre("mt-4 flex flex-col gap-2",e),...t}),Zre=({className:e,...t})=>$f.jsx(J5,{className:Sre("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),Jre=({className:e,...t})=>$f.jsx(t3,{className:Sre("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),eae=V.forwardRef((({className:e,style:t,...n},r)=>{const a=V.useRef(null),o=yB(r,a),{width:i=0,height:s=0}=one({ref:a,box:"border-box"}),l=Math.max(s,i);return $f.jsx(r3,{ref:o,style:{"--before-size":`${l+100}px`,...t},className:Sre("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-[1px] after:left-[1px]","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...n})})),tae=({className:e,...t})=>$f.jsx(o3,{className:Sre(hne({size:"sm"}),"text-sm font-normal h-auto w-full py-2 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),nae=({className:e,...t})=>$f.jsx(B5,{className:Sre("flex flex-col w-full min-w-0 min-h-0 text-2sm relative",e),...t}),rae=pne(["flex relative w-full overflow-hidden py-8","px-6 ikp-md:px-8","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0","[&:not(:last-child)]:after:absolute","[&:not(:last-child)]:after:border-b","[&:not(:last-child)]:after:bottom-0","[&:not(:last-child)]:after:inset-x-6","ikp-md:[&:not(:last-child)]:after:inset-x-8"]),aae=({className:e,...t})=>$f.jsx(c3,{className:Sre(rae(),e),...t}),oae=({className:e,...t})=>$f.jsx(u3,{className:Sre(rae(),e),...t}),iae=({className:e,...t})=>$f.jsx(p3,{className:Sre("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-6 ikp-md:mb-0",e),...t}),sae=({className:e,...t})=>$f.jsx(h3,{className:Sre("flex items-center gap-3 h-12 w-full",e),children:$f.jsx(Nre,{}),...t}),lae=({className:e,...t})=>$f.jsx(g3,{className:Sre("flex items-center justify-center rounded-full","h-auto ikp-md:h-12",e),...t}),cae=({className:e,...t})=>$f.jsx(b3,{className:Sre("relative flex h-8 w-8 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden ikp-md:flex","justify-center items-center",e),...t}),uae=({className:e,...t})=>$f.jsx(w3,{className:Sre("hidden data-[role=user]:block",e),...t}),dae=({className:e,...t})=>$f.jsx(x3,{className:Sre("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),pae=({className:e,...t})=>$f.jsx(S3,{className:Sre("px-3 py-1 ml-4 data-[role=user]:ml-0","text-sm rounded-full","bg-inkeep-primary-lighter data-[role=user]:bg-gray-50","text-inkeep-primary-stronger dark:text-inkeep-expanded-primary-300","data-[role=user]:text-gray-700 dark:data-[role=user]:text-white-alpha-700","dark:bg-gray-dark-700","ikp-md:hidden",e),...t}),fae=({className:e,...t})=>$f.jsx(T3,{className:Sre("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),hae=({className:e,...t})=>$f.jsx(A3,{className:Sre("text-2sm flex-wrap break-words min-w-0 shrink-1 max-w-full",e),...t}),mae=e=>{var t,n;const{message:r}=Wj(),a=null==(n=null==(t=r.metadata)?void 0:t.attributes)?void 0:n.attachments;return"user"===r.role&&(null==a?void 0:a.length)?$f.jsx(Uj,{children:$f.jsx(N3,{...e})}):null},gae=({className:e,...t})=>$f.jsx(R3,{className:Sre("flex flex-wrap gap-2",e),...t}),yae=({className:e,...t})=>$f.jsx(P3,{className:Sre(hne({variant:"ghost"}),mne({slot:"root"}),"font-normal px-2",e),...t}),bae=({className:e,...t})=>$f.jsx(D3,{className:Sre(mne({slot:"icon"}),e),...t}),vae=({className:e,...t})=>$f.jsx(F3,{className:Sre(mne({slot:"title"}),e),...t}),wae=e=>{const{onOpenChange:t,...n}=e,{selectItem:r,isOpen:a,onClose:o,selectedItem:i}=$j();return $f.jsx(j3,{open:a&&null!==i,onOpenChange:a5(t,(e=>{e||(o(),r(null))})),...n})},kae=({className:e,...t})=>$f.jsx(B3,{className:Sre(Cne({slot:"overlay"}),e),...t}),xae=({className:e,...t})=>$f.jsx(H3,{className:Sre(Cne({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Eae=({className:e,...t})=>$f.jsx(U3,{className:Sre(Cne({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),Sae=({className:e,...t})=>$f.jsx($3,{className:Sre(Cne({slot:"close"}),e),...t}),_ae=({className:e,...t})=>$f.jsx(V3,{className:Sre(Cne({slot:"body"}),"p-0",e),...t}),Tae=({className:e,componentStyles:t,...n})=>$f.jsx(q3,{className:Sre("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",e),componentStyles:If(Cre,t??{}),...n}),Cae=({className:e,...t})=>$f.jsx(K3,{className:Sre("flex items-center mt-2 mb-3",e),...t}),Aae=({className:e,...t})=>$f.jsx(Q3,{className:Sre("mr-auto flex items-center gap-2",e),...t}),Nae=({className:e,...t})=>$f.jsx(Z3,{className:Sre(hne({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),Iae=({className:e,...t})=>$f.jsx(e4,{className:Sre(hne({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),Rae=e=>{var t;const{message:n}=Wj();return"assistant"===n.role&&(null==(t=n.links)?void 0:t.length)?$f.jsx(t4,{...e}):null},Oae=({className:e,...t})=>$f.jsx(r4,{className:Sre("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),Pae=({className:e,...t})=>$f.jsx(o4,{className:Sre("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),Lae=({className:e,...t})=>$f.jsx(s4,{className:Sre(yne({slot:"root"}),e),...t}),Dae=({className:e,...t})=>$f.jsx(c4,{className:Sre(yne({slot:"breadcrumbs"}),e),...t}),Mae=({className:e,...t})=>$f.jsx(u4,{className:Sre(yne({slot:"breadcrumbsIcon"}),e),...t}),Fae=({className:e,...t})=>$f.jsx(p4,{className:Sre(yne({slot:"icon"}),e),...t}),jae=({className:e,...t})=>$f.jsx(h4,{className:Sre(yne({slot:"title"}),e),...t}),Bae=({className:e,...t})=>$f.jsx(g4,{className:Sre(yne({slot:"tag"}),e),...t}),Hae=({className:e,...t})=>$f.jsx(b4,{className:Sre(yne({slot:"description"}),e),...t}),zae=({className:e,...t})=>$f.jsx(w4,{className:Sre(yne({slot:"descriptionPart"}),e),...t}),Uae=({className:e,...t})=>$f.jsx(x4,{className:Sre(yne({slot:"indicator"}),e),...t}),$ae=({className:e,...t})=>$f.jsx(E4,{className:Sre("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-6 ikp-md:px-8 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-gradient-to-b before:from-transparent before:to-white","dark:before:to-gray-dark-950 before:-translate-y-full",e),...t}),Gae=({className:e,...t})=>$f.jsx(S4,{className:Sre("relative flex flex-col w-full p-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Vae=({className:e,...t})=>$f.jsx(_4,{className:Sre("flex",e),...t}),Wae=V.forwardRef((({className:e,...t},n)=>$f.jsx(C4,{ref:n,className:Sre("min-h-[unset] overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 ml-1 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t}))),qae=({className:e,...t})=>$f.jsx(N4,{className:Sre(hne({}),"bg-transparent relative size-10 rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),Yae=({className:e,...t})=>$f.jsx(I4,{className:Sre(bne(),"text-inherit rotate-[-30deg]",e),...t}),Kae=({className:e,...t})=>$f.jsx(O4,{className:Sre("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),Xae=({className:e,...t})=>$f.jsx(L4,{className:Sre("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),Qae=({className:e,...t})=>$f.jsx(M4,{className:Sre(mne({slot:"root"}),e),...t}),Zae=({className:e,...t})=>$f.jsx(j4,{className:Sre(mne({slot:"icon"}),e),...t}),Jae=({className:e,...t})=>$f.jsx(H4,{className:Sre(mne({slot:"title"}),e),...t}),eoe=({className:e,...t})=>$f.jsx(U4,{className:Sre(mne({slot:"delete"}),e),...t}),toe=({className:e,...t})=>$f.jsx($4,{className:Sre("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),noe=G4,roe=({className:e,...t})=>$f.jsx(V4,{className:Sre("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),aoe=({className:e,...t})=>$f.jsx(q4,{className:Sre("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),ooe=({className:e,...t})=>$f.jsx(K4,{className:Sre("contents",e),...t}),ioe=({className:e,...t})=>$f.jsx(Q4,{className:Sre(hne({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),soe=Z4,loe=e=>{const{onOpenChange:t,...n}=e,{selectInput:r,isOpen:a,onClose:o,selectedInput:i}=Ij();return $f.jsx(J4,{open:a&&null!==i,onOpenChange:a5(t,(e=>{e||(o(),r(null))})),...n})},coe=({className:e,...t})=>$f.jsx(e6,{className:Sre(Cne({slot:"overlay"}),e),...t}),uoe=({className:e,...t})=>$f.jsx(t6,{className:Sre(Cne({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),doe=({className:e,...t})=>$f.jsx(n6,{className:Sre(Cne({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),poe=({className:e,...t})=>$f.jsx(a6,{className:Sre("w-full semibold",e),...t}),foe=({className:e,...t})=>$f.jsx(i6,{className:Sre("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),hoe=e=>{var t;const{children:n,...r}=e,{selectedInput:a}=Ij(),o=null==(t=null==a?void 0:a.workflowModalProps)?void 0:t.modalHelpElement;return o?$f.jsx(s6,{asChild:!n,children:n||o,...r}):null},moe=({className:e,...t})=>$f.jsx(l6,{className:Sre(Cne({slot:"close"}),e),...t}),goe=({className:e,...t})=>$f.jsx(c6,{className:Sre(Cne({slot:"body"}),"p-0",e),...t}),yoe=({className:e,...t})=>$f.jsx(d6,{className:Sre("flex flex-col gap-8",e),...t}),boe=({className:e,...t})=>$f.jsx(p6,{className:Sre("flex flex-col gap-2",e),...t}),voe=({className:e,...t})=>$f.jsx(h6,{className:Sre("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),woe=({className:e,...t})=>$f.jsx(g6,{className:Sre("h-10 px-4 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),koe=({className:e,...t})=>$f.jsx(b6,{className:Sre("text-sm text-red-500",e),...t}),xoe=({className:e,...t})=>$f.jsx(v6,{className:Sre("flex flex-col gap-2",e),...t}),Eoe=({className:e,...t})=>$f.jsx(k6,{className:Sre("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Soe=({className:e,...t})=>$f.jsx(E6,{className:Sre(vne({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),_oe=({className:e,...t})=>$f.jsx(_6,{className:Sre("text-sm text-red-500",e),...t}),Toe=({className:e,...t})=>$f.jsx(T6,{className:Sre(hne({preset:"neutralFilled"}),"ml-auto",e),...t}),Coe=({className:e,...t})=>$f.jsx(C6,{className:Sre("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Aoe=({className:e,...t})=>$f.jsx(A6,{className:Sre("flex items-center gap-2.5 flex-wrap",e),...t}),Noe=({className:e,...t})=>$f.jsx(N6,{className:Sre("flex items-center whitespace-nowrap",e),...t}),Ioe=({className:e,...t})=>$f.jsx(I6,{className:Sre("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),Roe=({className:e,...t})=>$f.jsx(R6,{className:Sre("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),Ooe=({className:e,...t})=>$f.jsx(O6,{className:Sre(wne(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t}),Poe=Sre(hne({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),Loe=({className:e,...t})=>$f.jsx(L6,{className:Sre(Poe,e),...t}),Doe=({className:e,...t})=>$f.jsx(M6,{className:Sre("cursor-pointer",e),...t}),Moe=({className:e,...t})=>$f.jsx(j6,{className:Sre("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),Foe=e=>{const{children:t,...n}=e,{aiChatSettings:r}=WO(),{getHelpOptions:a}=r;if(!a||0===(a??[]).length)return null;const{_pinned:o,_unpinned:i}=a.reduce(((e,t)=>{const n=t.isPinnedToToolbar?"_pinned":"_unpinned";return{...e,[n]:[...e[n],t]}}),{_pinned:[],_unpinned:[]}),s=1===i.length?[...o,i[0]]:o,l=1===i.length?[]:i,c=function(){const[e,t]=V.useState(!1);return{open:e,setOpen:t}}();return $f.jsx(jj,{value:c,children:$f.jsx(B6,{open:c.open,onOpenChange:c.setOpen,children:CP(t,{pinned:s,unpinned:l}),...n})})},joe=({className:e,...t})=>$f.jsx(U6,{className:Sre(Poe,e),...t}),Boe=({className:e,...t})=>$f.jsx(G6,{className:Sre(Poe,e),...t}),Hoe=({className:e,...t})=>$f.jsx(W6,{className:Sre(Ane({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),zoe=({className:e,...t})=>$f.jsx(q6,{className:Sre(Ane({slot:"arrow"}),e),...t}),Uoe=({className:e,...t})=>$f.jsx(Y6,{className:Sre("flex items-center cursor-pointer hover:underline",e),...t}),$oe=({className:e,...t})=>$f.jsx(X6,{className:Sre("mr-2 text-inkeep-primary-medium",e),...t}),Goe=e=>{const{onOpenChange:t,...n}=e,{currentFeedback:r,setCurrentFeedback:a}=kD();return $f.jsx(Q6,{open:null!==r,onOpenChange:a5(t,(()=>a(null))),...n})},Voe=({className:e,...t})=>$f.jsx(Z6,{className:Sre(Cne({slot:"overlay"}),e),...t}),Woe=({className:e,...t})=>$f.jsx(J6,{className:Sre(Cne({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),qoe=({className:e,...t})=>$f.jsx(e8,{className:Sre(Cne({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),Yoe=({className:e,...t})=>$f.jsx(t8,{className:Sre(Cne({slot:"close"}),e),...t}),Koe=({className:e,...t})=>$f.jsx(n8,{className:Sre(Cne({slot:"body"}),"p-0",e),...t}),Xoe=({className:e,...t})=>$f.jsx(a8,{className:Sre("flex flex-col gap-8",e),...t}),Qoe=({className:e,...t})=>$f.jsx(i8,{className:Sre("flex flex-wrap items-center","gap-[1rem_0.5rem]",e),...t}),Zoe=({className:e,...t})=>$f.jsx(l8,{className:Sre(gne({slot:"root"}),e),...t}),Joe=({className:e,...t})=>$f.jsx(c8,{className:Sre(gne({slot:"indicator"}),e),...t}),eie=({className:e,...t})=>$f.jsx(d8,{className:Sre("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),tie=({className:e,...t})=>$f.jsx(f8,{className:Sre("flex-[0_0_100%]","min-h-20 py-2 border rounded-md","px-4",e),...t}),nie=({className:e,...t})=>$f.jsx(h8,{className:Sre(hne({preset:"neutralFilled"}),"ml-auto",e),...t}),rie=({className:e,...t})=>$f.jsx(g8,{className:Sre("w-full overflow-y-auto",e),...t}),aie=({className:e,...t})=>$f.jsx(b8,{className:Sre(Nne({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-14 ikp-md:pb-14",e),...t}),oie=({className:e,...t})=>$f.jsx(w8,{className:Sre(hne({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),iie=({className:e,...t})=>$f.jsx(k8,{className:Sre("mt-12 flex flex-col gap-6",e),...t}),sie=({className:e,...t})=>$f.jsx(E8,{className:Sre("font-semibold text-xl leading-5",e),...t}),lie=({className:e,...t})=>$f.jsx(_8,{className:Sre("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),cie=({className:e,...t})=>$f.jsx(C8,{className:Sre("w-full",e),...t}),uie=({className:e,...t})=>$f.jsx(N8,{className:Sre("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),die=({className:e,...t})=>$f.jsx(R8,{className:Sre("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",e),...t}),pie=({className:e,...t})=>$f.jsx(P8,{className:Sre(vne({size:"md",variant:"outline"}),e),...t}),fie=({className:e,...t})=>$f.jsx(L8,{className:Sre(vne({size:"md",variant:"outline"}),e),...t}),hie=({className:e,...t})=>$f.jsx(M8,{className:Sre(vne({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),mie=({className:e,...t})=>$f.jsx(F8,{className:Sre(vne({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),gie=({className:e,...t})=>$f.jsx(B8,{className:Sre(gne({slot:"root"}),e),...t}),yie=({className:e,...t})=>$f.jsx(H8,{className:Sre(gne({slot:"indicator"}),e),...t}),bie=e=>{const{field:t,error:n,fieldProps:r}=Mj(),{onValueChange:a,...o}=e;return $f.jsx(z8,{name:t.name,"data-invalid":_P(!!n),value:r.value,onValueChange:a5(a,r.onChange),...o})},vie=({className:e,...t})=>$f.jsx(U8,{className:Sre(Ine({slot:"trigger"}),e),...t}),wie=e=>{const{field:t}=Mj();return $f.jsx($8,{placeholder:"placeholder"in t?t.placeholder:void 0,...e})},kie=({className:e,...t})=>$f.jsx(G8,{className:Sre("h-4 w-4 opacity-45",e),...t}),xie=({className:e,...t})=>$f.jsx(V8,{className:Sre(Ine({slot:"content"}),e),...t}),Eie=({className:e,...t})=>$f.jsx(W8,{className:Sre(Ine({slot:"viewport"}),e),...t}),Sie=({className:e,...t})=>$f.jsx(q8,{className:Sre(Ine({slot:"item"}),e),...t}),_ie=Y8,Tie=({className:e,...t})=>$f.jsx(K8,{className:Sre(Ine({slot:"itemIndicator"}),e),...t}),Cie=({className:e,...t})=>$f.jsx(Q8,{className:Sre("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Aie=({className:e,...t})=>$f.jsx(J8,{className:Sre("text-red-500 dark:text-red-300",e),...t}),Nie=({className:e,...t})=>$f.jsx(e9,{className:Sre("flex items-center justify-end gap-6 w-full",e),...t}),Iie=({className:e,...t})=>$f.jsx(n9,{className:Sre(hne({variant:"outline"}),e),...t}),Rie=({className:e,...t})=>$f.jsx(a9,{className:Sre(hne({preset:"neutralFilled"}),e),...t}),Oie=({className:e,...t})=>$f.jsx(i9,{className:Sre("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-14",e),...t}),Pie=({className:e,...t})=>$f.jsx(l9,{className:Sre("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),Lie=e=>{const{form:t}=lD();return $f.jsx(c9,{children:null==t?void 0:t.successView.message,...e})},Die=({className:e,...t})=>$f.jsx(d9,{className:Sre(hne({preset:"neutralFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});function Mie(){return $f.jsxs("div",{className:"flex flex-col h-full",children:[$f.jsxs("div",{className:Sre("h-[calc(100%-24px)]"),children:[$f.jsx("div",{className:"flex px-5 py-1 gap-3",children:Array.from({length:2}).map(((e,t)=>$f.jsx("div",{className:Sre(Rne(),"h-[27.88px] w-16 rounded-full")},t)))}),$f.jsx("div",{className:"flex flex-col w-full gap-2 px-5 py-1",children:Array.from({length:4}).map(((e,t)=>$f.jsx("div",{className:"flex items-center pb-2.5 w-full",children:$f.jsx("div",{className:Sre(Rne(),"h-20 rounded-lg grow-[1]")})},t)))})]}),$f.jsx("div",{className:"flex pt-1 pb-3 px-5 justify-self-end",children:$f.jsx("div",{className:Sre(Rne(),"h-[24px] w-40 rounded-md")})})]})}const Fie=e=>$f.jsx(J7,{...e}),jie=({className:e,...t})=>$f.jsx(zee,{className:Sre("data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950",e),...t}),Bie=({className:e,...t})=>$f.jsx($ee,{className:Sre("data-[hidden]:hidden flex flex-col w-full",e),...t}),Hie=Vee,zie=({className:e,...t})=>$f.jsx(Wee,{className:Sre("flex items-center w-full px-5 pt-3 pb-3 gap-3","[[data-show-ask-ai-card]_&]:pb-1",e),...t}),Uie=({className:e,...t})=>$f.jsx(qee,{className:Sre("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600",e),...t}),$ie=({className:e,...t})=>$f.jsx(Kee,{className:Sre("min-h-[38px] overflow-hidden w-full resize-none","py-1.5 max-h-[10vh] placeholder:text-gray-500","w-full dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent",e),...t}),Gie=({className:e,...t})=>$f.jsx(Qee,{className:Sre("animate-spin text-gray-400 dark:text-white-alpha-500",e),...t}),Vie=({className:e,...t})=>$f.jsx(Jee,{className:Sre(yne({slot:"root"}),"m-auto w-[calc(100%_-_theme(spacing.5))]","border-transparent dark:border-transparent","mb-3 py-0 h-11 cursor-pointer",e),...t}),Wie=({className:e,...t})=>$f.jsx(tte,{className:Sre("[grid-area:icon] h-5 w-5","[--start-color:theme(colors.inkeep-expanded-primary.300)]","[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),qie=({className:e,...t})=>$f.jsx(nte,{className:Sre(yne({slot:"title"}),"font-normal",e),...t}),Yie=({className:e,...t})=>$f.jsx(rte,{className:Sre(yne({slot:"indicator"}),e),...t}),Kie=({className:e,...t})=>$f.jsx(ote,{className:Sre(Nne({section:"content"}),"h-0 max-h-full","data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]","transition-all duration-300 ease-in-out data-[has-content]:pb-2",e),...t}),Xie=({className:e,...t})=>$f.jsx(ste,{className:Sre("group mb-1 relative transition-all w-full h-full",e),children:$f.jsx(Mie,{}),...t}),Qie=({className:e,...t})=>$f.jsx(cte,{className:Sre("flex w-full h-full","overflow-hidden relative grow-[2]","items-center justify-center text-gray-600","dark:text-gray-dark-400 mt-8",e),...t}),Zie=({className:e,...t})=>$f.jsx(dte,{className:Sre("shrink-0 max-w-full","flex gap-3 px-5 py-1","overflow-x-auto [scrollbar-width:thin]",e),...t}),Jie=({className:e,...t})=>$f.jsx(fte,{className:Sre("px-3 text-1sm font-medium rounded-full shrink-0","py-1 transition-all duration-200 leading-snug","border border-gray-300 dark:border-gray-dark-500","hover:bg-gray-50 dark:hover:bg-white-alpha-50","data-[state=active]:bg-inkeep-primary-light-subtle","hover:data-[state=active]:bg-inkeep-primary-light-subtle","data-[state=active]:text-inkeep-expanded-primary-900","data-[state=active]:border-inkeep-primary-medium-subtle","dark:data-[state=active]:bg-white-alpha-100","dark:hover:data-[state=active]:bg-white-alpha-100","dark:data-[state=active]:text-inkeep-expanded-primary-300","dark:data-[state=active]:border-inkeep-expanded-primary-300","focus:outline-inkeep-expanded-primary-700 dark:focus:outline-inkeep-expanded-primary-300",e),...t}),ese=({className:e,...t})=>$f.jsx(mte,{className:Sre("overflow-hidden h-full",'befter:content-[""] befter:absolute befter:inset-x-0',"befter:h-10 befter:pointer-events-none","befter:transition-opacity befter:duration-300","befter:ease-in-out befter:from-white","befter:dark:from-gray-dark-950 befter:to-transparent","before:top-0 after:bottom-0","before:bg-gradient-to-b after:bg-gradient-to-t","has-[[data-scroll-top]]:before:opacity-0","has-[[data-scroll-bottom]]:after:opacity-0",e),...t}),tse=({className:e,...t})=>$f.jsx(yte,{className:Sre("h-full w-full rounded-[inherit]",e),...t}),nse=({className:e,...t})=>$f.jsx(bte,{className:Sre("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),rse=({className:e,...t})=>$f.jsx(vte,{className:Sre("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),ase=wte,ose=({className:e,...t})=>$f.jsx(xte,{className:Sre("w-full flex flex-col","items-center gap-2.5 h-full shrink-0","px-5 py-1 content-center -my-[1px]",e),...t}),ise=({className:e,...t})=>$f.jsx(Ste,{className:Sre(yne({slot:"root"}),e),...t}),sse=({className:e,...t})=>$f.jsx(Tte,{className:Sre(yne({slot:"breadcrumbs"}),e),...t}),lse=({className:e,...t})=>$f.jsx(Cte,{className:Sre(yne({slot:"breadcrumbsIcon"}),e),...t}),cse=({className:e,...t})=>$f.jsx(Nte,{className:Sre(yne({slot:"icon"}),e),...t}),use=({className:e,...t})=>$f.jsx(Rte,{className:Sre(yne({slot:"title"}),e),...t}),dse=({className:e,...t})=>$f.jsx(Pte,{className:Sre(yne({slot:"tag"}),e),...t}),pse=({className:e,...t})=>$f.jsx(Dte,{className:Sre(yne({slot:"description"}),e),...t}),fse=({className:e,...t})=>$f.jsx(Fte,{className:Sre(yne({slot:"descriptionPart"}),e),...t}),hse=({className:e,...t})=>$f.jsx(Bte,{className:Sre(yne({slot:"indicator"}),e),...t}),mse=({className:e,...t})=>$f.jsx(zte,{className:Sre("justify-self-end pt-1 pb-3 px-5","hidden data-[has-results]:flex",e),...t}),gse=({className:e,...t})=>$f.jsx(Ute,{className:Sre("flex items-center whitespace-nowrap",e),...t}),yse=({className:e,...t})=>$f.jsx($te,{className:Sre("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),bse=({className:e,...t})=>$f.jsx(Gte,{className:Sre("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),vse=({className:e,...t})=>$f.jsx(Vte,{className:Sre(wne(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t}),wse=e=>{const{onOpenChange:t,config:n,...r}=e,a=(e=>{const{isOpen:t,onOpenChange:n,shortcutKey:r}=e??{},[a=!1,o]=qF({prop:t,defaultProp:t,onChange:n});return V.useEffect((()=>{const e=e=>{r&&(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===r.toLowerCase()&&(e.preventDefault(),e.stopPropagation(),o(!0)),"Escape"===e.key&&t&&(e.preventDefault(),o(!1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r,o,t]),{isOpen:a,setOpen:o,shortcutKey:r}})(n);return $f.jsx(nD,{modal:a,children:$f.jsx(Wte,{open:a.isOpen,onOpenChange:a5(t,(e=>a.setOpen(e))),...r})})},kse=({className:e,...t})=>$f.jsx(qte,{className:Sre(Cne({slot:"overlay"}),e),...t}),xse=({className:e,...t})=>$f.jsx(Kte,{className:Sre(Cne({slot:"content"}),"w-[min(90vw,720px)]",e),...t}),Ese=({className:e,...t})=>$f.jsx(Qte,{className:Sre(Cne({slot:"close"}),hne({variant:"ghost",size:"xs"}),"relative inset-[unset] ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0","md:hidden",e),...t}),Sse=({className:e,...t})=>$f.jsx(Zte,{className:Sre("fixed right-6 bottom-6 mr-[var(--removed-body-scroll-bar-size)]",e),...t}),_se=({className:e,...t})=>$f.jsx(Jte,{className:Sre("bg-inkeep-primary-text-bold dark:bg-gray-dark-600 rounded-full px-[18px] py-3 text-white font-medium flex items-center space-x-2 shadow-2xl dark:shadow-none transition-transform ease-in-out hover:scale-110",e),...t}),Tse=({className:e,...t})=>$f.jsx(ene,{className:Sre("flex items-center",e),...t}),Cse=({className:e,...t})=>$f.jsx(rne,{className:Sre("data-[type=icon]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","data-[type=icon]:[--end-color:theme(colors.inkeep-expanded-primary.300)]","h-6 w-6",e),...t}),Ase=({className:e,...t})=>$f.jsx(tne,{className:Sre("",e),...t}),Nse=e=>$f.jsx(zO,{styles:'*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: var(--ikp-color-gray-200); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--ikp-font-family-mono); /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: var(--ikp-color-gray-400); /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: var(--ikp-color-gray-400); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.inset-\\[unset\\] {\n inset: unset;\n}\n.bottom-6 {\n bottom: 1.5rem;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-\\[unset\\] {\n left: unset;\n}\n.right-1 {\n right: 0.25rem;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1 {\n top: 0.25rem;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-2 {\n top: 0.5rem;\n}\n.top-\\[5\\%\\] {\n top: 5%;\n}\n.z-base {\n z-index: var(--ikp-z-index-base);\n}\n.z-dropdown {\n z-index: var(--ikp-z-index-dropdown);\n}\n.z-modal {\n z-index: var(--ikp-z-index-modal);\n}\n.z-overlay {\n z-index: var(--ikp-z-index-overlay);\n}\n.z-popover {\n z-index: var(--ikp-z-index-popover);\n}\n.z-start {\n z-index: var(--ikp-z-index-start);\n}\n.m-\\[0px_0px_0\\.5em\\] {\n margin: 0px 0px 0.5em;\n}\n.m-auto {\n margin: auto;\n}\n.-my-\\[1px\\] {\n margin-top: -1px;\n margin-bottom: -1px;\n}\n.mx-1 {\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n}\n.mx-\\[5px\\] {\n margin-left: 5px;\n margin-right: 5px;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.my-\\[\\.1rem\\] {\n margin-top: .1rem;\n margin-bottom: .1rem;\n}\n.mb-0 {\n margin-bottom: 0px;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n.mb-8 {\n margin-bottom: 2rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-\\[3px\\] {\n margin-left: 3px;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-\\[0\\.5em\\] {\n margin-right: 0.5em;\n}\n.mr-\\[var\\(--removed-body-scroll-bar-size\\)\\] {\n margin-right: var(--removed-body-scroll-bar-size);\n}\n.mr-auto {\n margin-right: auto;\n}\n.ms-\\[1em\\] {\n margin-inline-start: 1em;\n}\n.mt-12 {\n margin-top: 3rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.mt-8 {\n margin-top: 2rem;\n}\n.line-clamp-1 {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.h-0 {\n height: 0px;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-\\[24px\\] {\n height: 24px;\n}\n.h-\\[27\\.88px\\] {\n height: 27.88px;\n}\n.h-\\[30px\\] {\n height: 30px;\n}\n.h-\\[calc\\(100\\%-24px\\)\\] {\n height: calc(100% - 24px);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-screen {\n height: 100vh;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[100vw\\] {\n max-height: 100vw;\n}\n.max-h-\\[10vh\\] {\n max-height: 10vh;\n}\n.max-h-\\[200px\\] {\n max-height: 200px;\n}\n.max-h-\\[min\\(85vh\\2c 850px\\)\\] {\n max-height: min(85vh,850px);\n}\n.max-h-full {\n max-height: 100%;\n}\n.max-h-screen {\n max-height: 100vh;\n}\n.min-h-0 {\n min-height: 0px;\n}\n.min-h-20 {\n min-height: 5rem;\n}\n.min-h-8 {\n min-height: 2rem;\n}\n.min-h-9 {\n min-height: 2.25rem;\n}\n.min-h-\\[38px\\] {\n min-height: 38px;\n}\n.min-h-\\[unset\\] {\n min-height: unset;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-12 {\n width: 3rem;\n}\n.w-16 {\n width: 4rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-40 {\n width: 10rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-56 {\n width: 14rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-60 {\n width: 15rem;\n}\n.w-8 {\n width: 2rem;\n}\n.w-\\[18px\\] {\n width: 18px;\n}\n.w-\\[250px\\] {\n width: 250px;\n}\n.w-\\[254px\\] {\n width: 254px;\n}\n.w-\\[calc\\(100\\%_-_theme\\(spacing\\.5\\)\\)\\] {\n width: calc(100% - 1.25rem);\n}\n.w-\\[min\\(90vw\\2c 720px\\)\\] {\n width: min(90vw,720px);\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-screen {\n width: 100vw;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-10 {\n min-width: 2.5rem;\n}\n.min-w-5 {\n min-width: 1.25rem;\n}\n.min-w-6 {\n min-width: 1.5rem;\n}\n.min-w-8 {\n min-width: 2rem;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[unset\\] {\n min-width: unset;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-2xl {\n max-width: 42rem;\n}\n.max-w-\\[200px\\] {\n max-width: 200px;\n}\n.max-w-\\[480px\\] {\n max-width: 480px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-\\[0_0_100\\%\\] {\n flex: 0 0 100%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.grow-0 {\n flex-grow: 0;\n}\n.grow-\\[1\\] {\n flex-grow: 1;\n}\n.grow-\\[2\\] {\n flex-grow: 2;\n}\n.grow-\\[5\\] {\n flex-grow: 5;\n}\n.border-collapse {\n border-collapse: collapse;\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-\\[-30deg\\] {\n --tw-rotate: -30deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform-none {\n transform: none;\n}\n@keyframes bounce-dot {\n\n 0%, 100% {\n transform: translateY(0);\n opacity: 0.3;\n }\n\n 50% {\n transform: translateY(-5px);\n opacity: 1;\n }\n}\n.animate-bounce-dot {\n animation: bounce-dot 1.5s infinite ease-in-out;\n}\n@keyframes checkbox-check {\n\n from {\n opacity: 0;\n stroke-dashoffset: 16;\n transform: scale(0.95);\n }\n\n to {\n opacity: 1;\n stroke-dashoffset: 0;\n transform: scale(1);\n }\n}\n.animate-checkbox-check {\n animation: checkbox-check 200ms linear;\n}\n@keyframes shimmer {\n\n 0% {\n background-size: 200% 200%;\n background-position: 100% 0;\n }\n\n 100% {\n background-size: 200% 200%;\n background-position: -100% 0;\n }\n}\n.animate-shimmer {\n animation: shimmer 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n@keyframes skeleton-bg-fade {\n\n from {\n border-color: var(--start-color);\n background: var(--start-color);\n }\n\n to {\n border-color: var(--end-color);\n background: var(--end-color);\n }\n}\n.animate-skeleton-bg-fade {\n animation: 0.8s linear infinite alternate skeleton-bg-fade;\n}\n@keyframes spin {\n\n to {\n transform: rotate(360deg);\n }\n}\n.animate-spin {\n animation: spin 1s linear infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.list-\\[initial\\] {\n list-style-type: initial;\n}\n.list-decimal {\n list-style-type: decimal;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse;\n}\n.place-items-center {\n place-items: center;\n}\n.content-center {\n align-content: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.items-stretch {\n align-items: stretch;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-0\\.5 {\n gap: 0.125rem;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-12 {\n gap: 3rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-6 {\n gap: 1.5rem;\n}\n.gap-8 {\n gap: 2rem;\n}\n.gap-\\[1rem_0\\.5rem\\] {\n gap: 1rem 0.5rem;\n}\n.gap-x-3 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.gap-y-1 {\n row-gap: 0.25rem;\n}\n.gap-y-2 {\n row-gap: 0.5rem;\n}\n.gap-y-6 {\n row-gap: 1.5rem;\n}\n.space-x-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.25rem * var(--tw-space-x-reverse));\n margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n.self-start {\n align-self: flex-start;\n}\n.self-center {\n align-self: center;\n}\n.justify-self-end {\n justify-self: end;\n}\n.justify-self-center {\n justify-self: center;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-normal {\n white-space: normal;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre {\n white-space: pre;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n overflow-wrap: break-word;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-\\[0_0_6px_6px\\] {\n border-radius: 0 0 6px 6px;\n}\n.rounded-\\[6px\\] {\n border-radius: 6px;\n}\n.rounded-\\[6px_6px_0_0\\] {\n border-radius: 6px 6px 0 0;\n}\n.rounded-\\[inherit\\] {\n border-radius: inherit;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-l {\n border-left-width: 1px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-none {\n border-style: none;\n}\n.border-\\[--end-color\\] {\n border-color: var(--end-color);\n}\n.border-gray-100 {\n border-color: var(--ikp-color-gray-100);\n}\n.border-gray-200 {\n border-color: var(--ikp-color-gray-200);\n}\n.border-gray-300 {\n border-color: var(--ikp-color-gray-300);\n}\n.border-inherit {\n border-color: inherit;\n}\n.border-inkeep-expanded-primary-200 {\n border-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n.border-transparent {\n border-color: transparent;\n}\n.border-white-alpha-200 {\n border-color: var(--ikp-color-white-alpha-200);\n}\n.border-l-transparent {\n border-left-color: transparent;\n}\n.bg-\\[--start-color\\] {\n background-color: var(--start-color);\n}\n.bg-gray-100 {\n background-color: var(--ikp-color-gray-100);\n}\n.bg-gray-1000 {\n background-color: var(--ikp-color-gray-1000);\n}\n.bg-gray-300 {\n background-color: var(--ikp-color-gray-300);\n}\n.bg-gray-50 {\n background-color: var(--ikp-color-gray-50);\n}\n.bg-inherit {\n background-color: inherit;\n}\n.bg-inkeep-primary-lighter {\n background-color: var(--ikp-color-inkeep-primary-lighter);\n}\n.bg-inkeep-primary-medium {\n background-color: var(--ikp-color-inkeep-primary-medium);\n}\n.bg-inkeep-primary-text-bold {\n background-color: var(--ikp-color-inkeep-primary-text-bold);\n}\n.bg-overlay-light {\n background-color: var(--ikp-color-overlay-light);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.bg-gradient-to-br {\n background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));\n}\n.bg-gradient-to-t {\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n}\n.from-gray-100 {\n --tw-gradient-from: var(--ikp-color-gray-100) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-gray-700 {\n --tw-gradient-from: var(--ikp-color-gray-700) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.to-gray-400 {\n --tw-gradient-to: var(--ikp-color-gray-400) var(--tw-gradient-to-position);\n}\n.bg-clip-padding {\n background-clip: padding-box;\n}\n.bg-clip-text {\n -webkit-background-clip: text;\n background-clip: text;\n}\n.fill-white {\n fill: #fff;\n}\n.p-0 {\n padding: 0px;\n}\n.p-0\\.5 {\n padding: 0.125rem;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-8 {\n padding: 2rem;\n}\n.p-\\[1em\\] {\n padding: 1em;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-\\[\\.4rem\\] {\n padding-left: .4rem;\n padding-right: .4rem;\n}\n.px-\\[18px\\] {\n padding-left: 18px;\n padding-right: 18px;\n}\n.py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n.py-\\[\\.2rem\\] {\n padding-top: .2rem;\n padding-bottom: .2rem;\n}\n.py-\\[1px\\] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.pb-1 {\n padding-bottom: 0.25rem;\n}\n.pb-2\\.5 {\n padding-bottom: 0.625rem;\n}\n.pb-3 {\n padding-bottom: 0.75rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pb-8 {\n padding-bottom: 2rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-6 {\n padding-left: 1.5rem;\n}\n.pl-7 {\n padding-left: 1.75rem;\n}\n.pr-1 {\n padding-right: 0.25rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-1 {\n padding-top: 0.25rem;\n}\n.pt-12 {\n padding-top: 3rem;\n}\n.pt-2 {\n padding-top: 0.5rem;\n}\n.pt-3 {\n padding-top: 0.75rem;\n}\n.pt-4 {\n padding-top: 1rem;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-start {\n text-align: start;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-body {\n font-family: var(--ikp-font-family-body);\n}\n.font-heading {\n font-family: var(--ikp-font-family-heading);\n}\n.font-mono {\n font-family: var(--ikp-font-family-mono);\n}\n.text-1sm {\n font-size: var(--ikp-font-size-1sm);\n}\n.text-2sm {\n font-size: var(--ikp-font-size-2sm);\n}\n.text-2xs {\n font-size: var(--ikp-font-size-2xs);\n}\n.text-3xl {\n font-size: var(--ikp-font-size-3xl);\n}\n.text-3xs {\n font-size: var(--ikp-font-size-3xs);\n}\n.text-lg {\n font-size: var(--ikp-font-size-lg);\n}\n.text-md {\n font-size: var(--ikp-font-size-md);\n}\n.text-sm {\n font-size: var(--ikp-font-size-sm);\n}\n.text-xl {\n font-size: var(--ikp-font-size-xl);\n}\n.text-xs {\n font-size: var(--ikp-font-size-xs);\n}\n.font-bold {\n font-weight: 700;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.uppercase {\n text-transform: uppercase;\n}\n.leading-4 {\n line-height: 1rem;\n}\n.leading-5 {\n line-height: 1.25rem;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-\\[1\\.25\\] {\n line-height: 1.25;\n}\n.leading-\\[1\\.2\\] {\n line-height: 1.2;\n}\n.leading-\\[1em\\] {\n line-height: 1em;\n}\n.leading-\\[unset\\] {\n line-height: unset;\n}\n.leading-snug {\n line-height: 1.375;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-wider {\n letter-spacing: 0.05em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-current {\n color: currentColor;\n}\n.text-gray-400 {\n color: var(--ikp-color-gray-400);\n}\n.text-gray-500 {\n color: var(--ikp-color-gray-500);\n}\n.text-gray-600 {\n color: var(--ikp-color-gray-600);\n}\n.text-gray-700 {\n color: var(--ikp-color-gray-700);\n}\n.text-gray-800 {\n color: var(--ikp-color-gray-800);\n}\n.text-green-500 {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity, 1));\n}\n.text-inherit {\n color: inherit;\n}\n.text-inkeep-primary-medium {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n.text-inkeep-primary-strong {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n.text-inkeep-primary-stronger {\n color: var(--ikp-color-inkeep-primary-stronger);\n}\n.text-inkeep-primary-text-bold {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n.text-inkeep-primary-text-color-on-primary {\n color: var(--ikp-color-inkeep-primary-text-color-on-primary);\n}\n.text-purple-500 {\n --tw-text-opacity: 1;\n color: rgb(168 85 247 / var(--tw-text-opacity, 1));\n}\n.text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n.text-transparent {\n color: transparent;\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-30 {\n opacity: 0.3;\n}\n.opacity-45 {\n opacity: 0.45;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[0_0_0_2px_var\\(--shadow-color\\)\\] {\n --tw-shadow: 0 0 0 2px var(--shadow-color);\n --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[0_25px_50px_-12px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)\\] {\n --tw-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[0_8px_30px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.12\\)\\] {\n --tw-shadow: 0 8px 30px rgba(0,0,0,0.12);\n --tw-shadow-colored: 0 8px 30px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[inset_0_0_0_1px_currentColor\\] {\n --tw-shadow: inset 0 0 0 1px currentColor;\n --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[none\\] {\n --tw-shadow-color: none;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -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);\n 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);\n}\n.transition-\\[common\\] {\n transition-property: common;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-\\[160ms\\] {\n transition-duration: 160ms;\n}\n.duration-\\[180\\] {\n transition-duration: 180;\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-linear {\n transition-timing-function: linear;\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.\\[--end-color\\:theme\\(colors\\.gray\\.300\\)\\] {\n --end-color: var(--ikp-color-gray-300);\n}\n.\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.700\\)\\] {\n --end-color: var(--ikp-color-inkeep-expanded-primary-700);\n}\n.\\[--end-color\\:theme\\(colors\\.white-alpha\\.100\\)\\] {\n --end-color: var(--ikp-color-white-alpha-100);\n}\n.\\[--error-border-color\\:theme\\(colors\\.red\\.500\\)\\] {\n --error-border-color: #ef4444;\n}\n.\\[--focus-border-color\\:theme\\(colors\\.blue\\.500\\)\\] {\n --focus-border-color: #3b82f6;\n}\n.\\[--scrollbar-color\\:var\\(--color-gray-300\\)\\] {\n --scrollbar-color: var(--color-gray-300);\n}\n.\\[--start-color\\:theme\\(colors\\.gray\\.50\\)\\] {\n --start-color: var(--ikp-color-gray-50);\n}\n.\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\] {\n --start-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n.\\[counter-increment\\:item\\] {\n counter-increment: item;\n}\n.\\[counter-reset\\:item_calc\\(var\\(--start\\2c 0\\)_-_1\\)\\] {\n counter-reset: item calc(var(--start,0) - 1);\n}\n.\\[font-size\\:85\\%\\!important\\] {\n font-size: 85% !important;\n}\n.\\[font-variant-numeric\\:lining-nums_tabular-nums\\] {\n font-variant-numeric: lining-nums tabular-nums;\n}\n.\\[grid-area\\:breadcrumbs\\] {\n grid-area: breadcrumbs;\n}\n.\\[grid-area\\:description\\] {\n grid-area: description;\n}\n.\\[grid-area\\:icon\\] {\n grid-area: icon;\n}\n.\\[grid-area\\:indicator\\] {\n grid-area: indicator;\n}\n.\\[grid-area\\:tag\\] {\n grid-area: tag;\n}\n.\\[grid-area\\:title\\] {\n grid-area: title;\n}\n.\\[grid-template\\:\\"breadcrumbs_breadcrumbs_breadcrumbs_indicator\\"\\"icon_title_tag_indicator\\"\\"description_description_description_indicator\\"\\/auto_auto_1fr_auto\\] {\n grid-template: "breadcrumbs breadcrumbs breadcrumbs indicator""icon title tag indicator""description description description indicator"/auto auto 1fr auto;\n}\n.\\[inset-inline-start\\:var\\(--start\\2c 0px\\)\\] {\n inset-inline-start: var(--start,0px);\n}\n.\\[overflow-wrap\\:anywhere\\] {\n overflow-wrap: anywhere;\n}\n.\\[scrollbar-color\\:var\\(--scrollbar-color\\)_transparent\\] {\n scrollbar-color: var(--scrollbar-color) transparent;\n}\n.\\[scrollbar-width\\:thin\\] {\n scrollbar-width: thin;\n}\n.\\[transition-duration\\:0\\.02s\\] {\n transition-duration: 0.02s;\n}\n.\\[transition-property\\:common\\] {\n transition-property: common;\n}\n\n:where(.inkeep-widget-vars) {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-family: var(--ikp-font-family-body);\n font-size: var(--ikp-font-size-md);\n line-height: 1.5;\n color: var(--ikp-color-gray-800);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n:where(.inkeep-widget-vars) *,\n:where(.inkeep-widget-vars) *::before,\n:where(.inkeep-widget-vars) *::after {\n border-color: var(--ikp-color-gray-200);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) *,\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) *::before,\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) *::after {\n border-color: var(--ikp-color-white-alpha-200);\n}\n\n:where(.inkeep-widget-vars) input::-moz-placeholder, :where(.inkeep-widget-vars) textarea::-moz-placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n:where(.inkeep-widget-vars) input::placeholder,\n:where(.inkeep-widget-vars) textarea::placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) input::-moz-placeholder, [data-theme=\'dark\'] :where(.inkeep-widget-vars) textarea::-moz-placeholder {\n color: var(--ikp-color-white-alpha-500);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) input::placeholder,\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) textarea::placeholder {\n color: var(--ikp-color-white-alpha-500);\n}\n\n:where(.inkeep-widget-vars) [data-part=\'icon\'][data-type=\'built-in\'] {\n display: inline-block;\n min-height: 1em;\n min-width: 1em;\n flex-shrink: 0;\n vertical-align: middle;\n line-height: 1em;\n}\n\nsvg[data-part=\'icon\'][data-type=\'custom\'] {\n /* we don\'t want the wrapper divs to affect layout / positioning of icon */\n display: contents;\n}\n\nsvg[data-part=\'icon\'][data-type=\'custom\'] div {\n display: contents;\n}\n\nimg[data-part=\'icon\'][data-type=\'custom\'] {\n display: inline-block;\n min-height: 1em;\n min-width: 1em;\n}\n\n.\\*\\:invisible > * {\n visibility: hidden;\n}\n\n.\\*\\:m-0 > * {\n margin: 0px;\n}\n\n.file\\:h-full::file-selector-button {\n height: 100%;\n}\n\n.file\\:cursor-pointer::file-selector-button {\n cursor: pointer;\n}\n\n.file\\:border-none::file-selector-button {\n border-style: none;\n}\n\n.file\\:bg-transparent::file-selector-button {\n background-color: transparent;\n}\n\n.file\\:text-sm::file-selector-button {\n font-size: var(--ikp-font-size-sm);\n}\n\n.file\\:font-medium::file-selector-button {\n font-weight: 500;\n}\n\n.file\\:text-gray-700::file-selector-button {\n color: var(--ikp-color-gray-700);\n}\n\n.placeholder\\:text-gray-500::-moz-placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n.placeholder\\:text-gray-500::placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n.before\\:pointer-events-none::before {\n content: var(--tw-content);\n pointer-events: none;\n}\n\n.before\\:invisible::before {\n content: var(--tw-content);\n visibility: hidden;\n}\n\n.before\\:absolute::before {\n content: var(--tw-content);\n position: absolute;\n}\n\n.before\\:left-0::before {\n content: var(--tw-content);\n left: 0px;\n}\n\n.before\\:top-0::before {\n content: var(--tw-content);\n top: 0px;\n}\n\n.before\\:z-hide::before {\n content: var(--tw-content);\n z-index: var(--ikp-z-index-hide);\n}\n\n.before\\:m-auto::before {\n content: var(--tw-content);\n margin: auto;\n}\n\n.before\\:block::before {\n content: var(--tw-content);\n display: block;\n}\n\n.before\\:h-3::before {\n content: var(--tw-content);\n height: 0.75rem;\n}\n\n.before\\:h-\\[--before-size\\]::before {\n content: var(--tw-content);\n height: var(--before-size);\n}\n\n.before\\:w-\\[--before-size\\]::before {\n content: var(--tw-content);\n width: var(--before-size);\n}\n\n.before\\:w-full::before {\n content: var(--tw-content);\n width: 100%;\n}\n\n.before\\:-translate-y-full::before {\n content: var(--tw-content);\n --tw-translate-y: -100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.before\\:bg-gray-300::before {\n content: var(--tw-content);\n background-color: var(--ikp-color-gray-300);\n}\n\n.before\\:bg-gradient-to-b::before {\n content: var(--tw-content);\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n\n.before\\:from-transparent::before {\n content: var(--tw-content);\n --tw-gradient-from: transparent var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.before\\:to-white::before {\n content: var(--tw-content);\n --tw-gradient-to: #fff var(--tw-gradient-to-position);\n}\n\n.before\\:bg-no-repeat::before {\n content: var(--tw-content);\n background-repeat: no-repeat;\n}\n\n.before\\:\\[background-position\\:0_0\\]::before {\n content: var(--tw-content);\n background-position: 0 0;\n}\n\n.before\\:\\[background-size\\:cover\\]::before {\n content: var(--tw-content);\n background-size: cover;\n}\n\n.after\\:invisible::after {\n content: var(--tw-content);\n visibility: hidden;\n}\n\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.after\\:bottom-0::after {\n content: var(--tw-content);\n bottom: 0px;\n}\n\n.after\\:left-\\[1px\\]::after {\n content: var(--tw-content);\n left: 1px;\n}\n\n.after\\:top-\\[1px\\]::after {\n content: var(--tw-content);\n top: 1px;\n}\n\n.after\\:z-base::after {\n content: var(--tw-content);\n z-index: var(--ikp-z-index-base);\n}\n\n.after\\:h-\\[calc\\(100\\%-2px\\)\\]::after {\n content: var(--tw-content);\n height: calc(100% - 2px);\n}\n\n.after\\:w-\\[calc\\(100\\%-2px\\)\\]::after {\n content: var(--tw-content);\n width: calc(100% - 2px);\n}\n\n.after\\:rounded-\\[5px\\]::after {\n content: var(--tw-content);\n border-radius: 5px;\n}\n\n.after\\:bg-white::after {\n content: var(--tw-content);\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.after\\:bg-gradient-to-t::after {\n content: var(--tw-content);\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n}\n\n.last-of-type\\:hidden:last-of-type {\n display: none;\n}\n\n.focus\\:z-base:focus {\n z-index: var(--ikp-z-index-base);\n}\n\n.focus\\:z-start:focus {\n z-index: var(--ikp-z-index-start);\n}\n\n.focus\\:bg-gray-100:focus {\n background-color: var(--ikp-color-gray-100);\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.focus\\:outline-inkeep-expanded-primary-700:focus {\n outline-color: var(--ikp-color-inkeep-expanded-primary-700);\n}\n\n.focus\\:\\[--shadow-color\\:theme\\(colors\\.blue\\.500\\)\\]:focus {\n --shadow-color: #3b82f6;\n}\n\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.focus-visible\\:ring:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-visible\\:ring-transparent:focus-visible {\n --tw-ring-color: transparent;\n}\n\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n\n.focus-visible\\:ring-offset-transparent:focus-visible {\n --tw-ring-offset-color: transparent;\n}\n\n.active\\:bg-gray-200:active {\n background-color: var(--ikp-color-gray-200);\n}\n\n.active\\:bg-gray-300:active {\n background-color: var(--ikp-color-gray-300);\n}\n\n.active\\:bg-gray-50:active {\n background-color: var(--ikp-color-gray-50);\n}\n\n.active\\:bg-gray-900:active {\n background-color: var(--ikp-color-gray-900);\n}\n\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.disabled\\:text-gray-500:disabled {\n color: var(--ikp-color-gray-500);\n}\n\n.disabled\\:opacity-40:disabled {\n opacity: 0.4;\n}\n\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n\n.disabled\\:shadow-none:disabled {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.active\\:disabled\\:\\[background\\:none\\]:disabled:active {\n background: none;\n}\n\n.group:hover .group-hover\\:text-gray-600 {\n color: var(--ikp-color-gray-600);\n}\n\n.has-\\[\\[data-scroll-top\\]\\]\\:before\\:opacity-0:has([data-scroll-top])::before {\n content: var(--tw-content);\n opacity: 0;\n}\n\n.has-\\[\\[data-scroll-bottom\\]\\]\\:after\\:opacity-0:has([data-scroll-bottom])::after {\n content: var(--tw-content);\n opacity: 0;\n}\n\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n\n.data-\\[mobile\\]\\:inset-0[data-mobile] {\n inset: 0px;\n}\n\n.data-\\[even\\]\\:ml-0[data-even] {\n margin-left: 0px;\n}\n\n.data-\\[even\\]\\:mr-4[data-even] {\n margin-right: 1rem;\n}\n\n.data-\\[role\\=user\\]\\:ml-0[data-role="user"] {\n margin-left: 0px;\n}\n\n.data-\\[role\\=user\\]\\:block[data-role="user"] {\n display: block;\n}\n\n.data-\\[has-results\\]\\:flex[data-has-results] {\n display: flex;\n}\n\n.data-\\[escalated\\]\\:hidden[data-escalated] {\n display: none;\n}\n\n.data-\\[hidden\\]\\:hidden[data-hidden] {\n display: none;\n}\n\n.data-\\[role\\=user\\]\\:hidden[data-role="user"] {\n display: none;\n}\n\n.data-\\[state\\=closed\\]\\:hidden[data-state="closed"] {\n display: none;\n}\n\n.data-\\[submitted\\]\\:hidden[data-submitted] {\n display: none;\n}\n\n.data-\\[has-content\\]\\:h-\\[min\\(calc\\(85vh_-_72px\\)\\2c calc\\(850px_-_72px_-_275px\\)\\)\\][data-has-content] {\n height: min(calc(85vh - 72px),calc(850px - 72px - 275px));\n}\n\n.data-\\[mobile\\]\\:h-\\[unset\\][data-mobile] {\n height: unset;\n}\n\n.data-\\[composite\\]\\:w-full[data-composite] {\n width: 100%;\n}\n\n.data-\\[mobile\\]\\:w-\\[unset\\][data-mobile] {\n width: unset;\n}\n\n.data-\\[role\\=user\\]\\:grow-0[data-role="user"] {\n flex-grow: 0;\n}\n\n.data-\\[side\\=bottom\\]\\:translate-y-1\\.5[data-side="bottom"] {\n --tw-translate-y: 0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[side\\=left\\]\\:-translate-x-1\\.5[data-side="left"] {\n --tw-translate-x: -0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[side\\=right\\]\\:translate-x-1\\.5[data-side="right"] {\n --tw-translate-x: 0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[side\\=top\\]\\:-translate-y-1\\.5[data-side="top"] {\n --tw-translate-y: -0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[mobile\\]\\:transform-none[data-mobile] {\n transform: none;\n}\n\n@keyframes fade-out {\n\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n.data-\\[state\\=closed\\]\\:animate-fade-out[data-state="closed"] {\n animation: fade-out 0.2s ease-out;\n}\n\n@keyframes fade-in {\n\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.data-\\[state\\=open\\]\\:animate-fade-in[data-state="open"] {\n animation: fade-in 0.25s ease-out;\n}\n\n.data-\\[loading\\]\\:cursor-wait[data-loading] {\n cursor: wait;\n}\n\n.data-\\[even\\]\\:flex-row[data-even] {\n flex-direction: row;\n}\n\n.data-\\[input-type\\=checkbox\\]\\:flex-row[data-input-type="checkbox"] {\n flex-direction: row;\n}\n\n.data-\\[even\\]\\:items-start[data-even] {\n align-items: flex-start;\n}\n\n.data-\\[input-type\\=checkbox\\]\\:items-center[data-input-type="checkbox"] {\n align-items: center;\n}\n\n.data-\\[role\\=user\\]\\:justify-end[data-role="user"] {\n justify-content: flex-end;\n}\n\n.data-\\[role\\=user\\]\\:whitespace-pre-wrap[data-role="user"] {\n white-space: pre-wrap;\n}\n\n.data-\\[mobile\\]\\:rounded-none[data-mobile] {\n border-radius: 0px;\n}\n\n.data-\\[invalid\\]\\:border-\\[--error-border-color\\][data-invalid] {\n border-color: var(--error-border-color);\n}\n\n.data-\\[state\\=active\\]\\:border-inkeep-primary-medium-subtle[data-state="active"] {\n border-color: var(--ikp-color-inkeep-primary-medium-subtle);\n}\n\n.data-\\[state\\=checked\\]\\:border-gray-1000[data-state="checked"] {\n border-color: var(--ikp-color-gray-1000);\n}\n\n.data-\\[active\\]\\:bg-white[data-active] {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.data-\\[role\\=user\\]\\:bg-gray-50[data-role="user"] {\n background-color: var(--ikp-color-gray-50);\n}\n\n.data-\\[state\\=active\\]\\:bg-inkeep-primary-light-subtle[data-state="active"] {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.data-\\[state\\=checked\\]\\:bg-gray-1000[data-state="checked"] {\n background-color: var(--ikp-color-gray-1000);\n}\n\n.data-\\[username\\]\\:bg-inkeep-primary-lighter[data-username] {\n background-color: var(--ikp-color-inkeep-primary-lighter);\n}\n\n.data-\\[has-content\\]\\:pb-2[data-has-content] {\n padding-bottom: 0.5rem;\n}\n\n.data-\\[is-numeric\\=true\\]\\:text-end[data-is-numeric="true"] {\n text-align: end;\n}\n\n.data-\\[highlighted\\]\\:font-semibold[data-highlighted] {\n font-weight: 600;\n}\n\n.data-\\[active\\]\\:text-gray-600[data-active] {\n color: var(--ikp-color-gray-600);\n}\n\n.data-\\[active\\]\\:text-gray-800[data-active] {\n color: var(--ikp-color-gray-800);\n}\n\n.data-\\[copied\\]\\:text-inkeep-primary-medium[data-copied] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[downvoted\\]\\:text-inkeep-primary-medium[data-downvoted] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[highlighted\\]\\:text-inkeep-primary-text-subtle[data-highlighted] {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.data-\\[role\\=user\\]\\:text-gray-700[data-role="user"] {\n color: var(--ikp-color-gray-700);\n}\n\n.data-\\[state\\=active\\]\\:text-inkeep-expanded-primary-900[data-state="active"] {\n color: var(--ikp-color-inkeep-expanded-primary-900);\n}\n\n.data-\\[state\\=checked\\]\\:text-white[data-state="checked"] {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[type\\=\\"stackoverflow\\"\\]\\:text-green-500[data-type="stackoverflow"] {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[type\\=icon\\]\\:data-\\[role\\=user\\]\\:text-inkeep-primary-medium[data-role="user"][data-type="icon"] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[type\\^\\=\\"github\\"\\]\\:text-purple-500[data-type^="github"] {\n --tw-text-opacity: 1;\n color: rgb(168 85 247 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[upvoted\\]\\:text-inkeep-primary-medium[data-upvoted] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n\n.data-\\[active\\]\\:shadow[data-active] {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.data-\\[invalid\\]\\:shadow-\\[0_0_0_1px_var\\(--error-border-color\\)\\][data-invalid] {\n --tw-shadow: 0 0 0 1px var(--error-border-color);\n --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.data-\\[disable-transitions\\]\\:transition-none[data-disable-transitions] {\n transition-property: none;\n}\n\n.data-\\[type\\=icon\\]\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-type="icon"] {\n --end-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.700\\)\\][data-role="assistant"][data-type="icon"] {\n --end-color: var(--ikp-color-inkeep-expanded-primary-700);\n}\n\n.data-\\[invalid\\]\\:\\[--shadow-color\\:theme\\(colors\\.red\\.500\\)\\][data-invalid] {\n --shadow-color: #ef4444;\n}\n\n.data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-role="assistant"][data-type="icon"] {\n --start-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[type\\=icon\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.50\\)\\][data-type="icon"] {\n --start-color: var(--ikp-color-inkeep-expanded-primary-50);\n}\n\n.data-\\[required\\]\\:after\\:absolute[data-required]::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:absolute[data-show-toolbar]::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:left-0[data-show-toolbar]::after {\n content: var(--tw-content);\n left: 0px;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:top-full[data-show-toolbar]::after {\n content: var(--tw-content);\n top: 100%;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:z-start[data-show-toolbar]::after {\n content: var(--tw-content);\n z-index: var(--ikp-z-index-start);\n}\n\n.data-\\[required\\]\\:after\\:ml-1[data-required]::after {\n content: var(--tw-content);\n margin-left: 0.25rem;\n}\n\n.data-\\[required\\]\\:after\\:mt-0[data-required]::after {\n content: var(--tw-content);\n margin-top: 0px;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:h-\\[1rem\\][data-show-toolbar]::after {\n content: var(--tw-content);\n height: 1rem;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:w-full[data-show-toolbar]::after {\n content: var(--tw-content);\n width: 100%;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:bg-\\[linear-gradient\\(currentColor\\2c _transparent\\)\\][data-show-toolbar]::after {\n content: var(--tw-content);\n background-image: linear-gradient(currentColor, transparent);\n}\n\n.data-\\[required\\]\\:after\\:text-red-500[data-required]::after {\n content: var(--tw-content);\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[show-toolbar\\]\\:after\\:text-white[data-show-toolbar]::after {\n content: var(--tw-content);\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[required\\]\\:after\\:\\[content\\:\\"\\*\\"\\][data-required]::after {\n content: "*";\n}\n\n@keyframes spin {\n\n to {\n content: var(--tw-content);\n transform: rotate(360deg);\n }\n}\n\n.data-\\[highlight\\]\\:first\\:before\\:animate-\\[spin_4s_linear_infinite\\]:first-child[data-highlight]::before {\n content: var(--tw-content);\n animation: spin 4s linear infinite;\n}\n\n.data-\\[highlight\\]\\:first\\:before\\:\\[background-image\\:conic-gradient\\(transparent\\2c theme\\(colors\\.inkeep-expanded-primary\\.600\\)\\2c transparent_30\\%\\)\\]:first-child[data-highlight]::before {\n content: var(--tw-content);\n background-image: conic-gradient(transparent,var(--ikp-color-inkeep-expanded-primary-600),transparent 30%);\n}\n\n:not(.dark) .light\\:text-gray-700 {\n color: var(--ikp-color-gray-700);\n}\n\n[data-widget-md] .ikp-md\\:mb-0 {\n margin-bottom: 0px;\n}\n\n[data-widget-md] .ikp-md\\:flex {\n display: flex;\n}\n\n[data-widget-md] .ikp-md\\:hidden {\n display: none;\n}\n\n[data-widget-md] .ikp-md\\:h-12 {\n height: 3rem;\n}\n\n[data-widget-md] .ikp-md\\:flex-row {\n flex-direction: row;\n}\n\n[data-widget-md] .ikp-md\\:flex-col {\n flex-direction: column;\n}\n\n[data-widget-md] .ikp-md\\:items-start {\n align-items: flex-start;\n}\n\n[data-widget-md] .ikp-md\\:px-14 {\n padding-left: 3.5rem;\n padding-right: 3.5rem;\n}\n\n[data-widget-md] .ikp-md\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n[data-widget-md] .ikp-md\\:px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n\n[data-widget-md] .ikp-md\\:py-14 {\n padding-top: 3.5rem;\n padding-bottom: 3.5rem;\n}\n\n[data-widget-md] .ikp-md\\:pb-14 {\n padding-bottom: 3.5rem;\n}\n\n[data-widget-md] .ikp-md\\:pl-3 {\n padding-left: 0.75rem;\n}\n\n[data-widget-md] .ikp-md\\:pr-3 {\n padding-right: 0.75rem;\n}\n\n[data-widget-md] .ikp-md\\:pr-6 {\n padding-right: 1.5rem;\n}\n\n.hover\\:scale-110:hover:not(:disabled) {\n --tw-scale-x: 1.1;\n --tw-scale-y: 1.1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.hover\\:border-gray-300:hover:not(:disabled) {\n border-color: var(--ikp-color-gray-300);\n}\n\n.hover\\:bg-gray-100:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-100);\n}\n\n.hover\\:bg-gray-200:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-200);\n}\n\n.hover\\:bg-gray-50:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-50);\n}\n\n.hover\\:bg-gray-900:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-900);\n}\n\n.hover\\:bg-inkeep-primary-light-subtle:hover:not(:disabled) {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.hover\\:bg-transparent:hover:not(:disabled) {\n background-color: transparent;\n}\n\n.hover\\:text-gray-700:hover:not(:disabled) {\n color: var(--ikp-color-gray-700);\n}\n\n.hover\\:text-gray-800:hover:not(:disabled) {\n color: var(--ikp-color-gray-800);\n}\n\n.hover\\:text-inkeep-primary-strong:hover:not(:disabled) {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n\n.hover\\:underline:hover:not(:disabled) {\n text-decoration-line: underline;\n}\n\n.hover\\:disabled\\:bg-gray-100:disabled:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-100);\n}\n\n.hover\\:disabled\\:\\[background\\:none\\]:disabled:hover:not(:disabled) {\n background: none;\n}\n\n.hover\\:data-\\[state\\=active\\]\\:bg-inkeep-primary-light-subtle[data-state="active"]:hover:not(:disabled) {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.befter\\:pointer-events-none::before {\n pointer-events: none;\n}\n\n.befter\\:absolute::before {\n position: absolute;\n}\n\n.befter\\:inset-x-0::before {\n left: 0px;\n right: 0px;\n}\n\n.befter\\:h-10::before {\n height: 2.5rem;\n}\n\n.befter\\:from-white::before {\n --tw-gradient-from: #fff var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.befter\\:to-transparent::before {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n\n.befter\\:transition-opacity::before {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.befter\\:duration-300::before {\n transition-duration: 300ms;\n}\n\n.befter\\:ease-in-out::before {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.befter\\:content-\\[\\"\\"\\]::before {\n --tw-content: "";\n content: var(--tw-content);\n}\n\n.befter\\:pointer-events-none::after {\n pointer-events: none;\n}\n\n.befter\\:absolute::after {\n position: absolute;\n}\n\n.befter\\:inset-x-0::after {\n left: 0px;\n right: 0px;\n}\n\n.befter\\:h-10::after {\n height: 2.5rem;\n}\n\n.befter\\:from-white::after {\n --tw-gradient-from: #fff var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.befter\\:to-transparent::after {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n\n.befter\\:transition-opacity::after {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.befter\\:duration-300::after {\n transition-duration: 300ms;\n}\n\n.befter\\:ease-in-out::after {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.befter\\:content-\\[\\"\\"\\]::after {\n --tw-content: "";\n content: var(--tw-content);\n}\n\n.selected\\:border-inkeep-primary-medium-subtle[data-selected="true"] {\n border-color: var(--ikp-color-inkeep-primary-medium-subtle);\n}\n\n.selected\\:bg-inkeep-primary-light-subtle[data-selected="true"] {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.selected\\:text-inkeep-primary-strong[data-selected="true"] {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n\n.selected\\:border-inkeep-primary-medium-subtle:hover {\n border-color: var(--ikp-color-inkeep-primary-medium-subtle);\n}\n\n.selected\\:bg-inkeep-primary-light-subtle:hover {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.selected\\:text-inkeep-primary-strong:hover {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n\n.group[data-selected="true"] .group-selected\\:text-inkeep-primary-text-bold {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n\n.group[data-selected="true"] .group-selected\\:text-inkeep-primary-text-subtle {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.group[data-selected="true"] .group-selected\\:opacity-100 {\n opacity: 1;\n}\n\n.group:hover .group-selected\\:text-inkeep-primary-text-bold {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n\n.group:hover .group-selected\\:text-inkeep-primary-text-subtle {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.group:hover .group-selected\\:opacity-100 {\n opacity: 1;\n}\n\n.dark\\:border-gray-700:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-gray-700);\n}\n\n.dark\\:border-gray-dark-500:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-gray-dark-500);\n}\n\n.dark\\:border-gray-dark-700:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-gray-dark-700);\n}\n\n.dark\\:border-inkeep-expanded-primary-200:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.dark\\:border-transparent:is([data-theme="dark"] *) {\n border-color: transparent;\n}\n\n.dark\\:border-white-alpha-200:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:bg-gray-dark-600:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-600);\n}\n\n.dark\\:bg-gray-dark-700:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-700);\n}\n\n.dark\\:bg-gray-dark-800:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:bg-gray-dark-900:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-900);\n}\n\n.dark\\:bg-gray-dark-950:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:bg-inkeep-expanded-primary-300:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:bg-overlay-dark:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-overlay-dark);\n}\n\n.dark\\:bg-transparent:is([data-theme="dark"] *) {\n background-color: transparent;\n}\n\n.dark\\:bg-white-alpha-100:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:bg-white-alpha-200:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:bg-white-alpha-50:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-50);\n}\n\n.dark\\:from-gray-dark-300:is([data-theme="dark"] *) {\n --tw-gradient-from: var(--ikp-color-gray-dark-300) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.dark\\:from-gray-dark-600:is([data-theme="dark"] *) {\n --tw-gradient-from: var(--ikp-color-gray-dark-600) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.dark\\:to-gray-dark-100:is([data-theme="dark"] *) {\n --tw-gradient-to: var(--ikp-color-gray-dark-100) var(--tw-gradient-to-position);\n}\n\n.dark\\:fill-gray-dark-800:is([data-theme="dark"] *) {\n fill: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:text-gray-200:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-200);\n}\n\n.dark\\:text-gray-400:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-400);\n}\n\n.dark\\:text-gray-dark-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-100);\n}\n\n.dark\\:text-gray-dark-200:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-200);\n}\n\n.dark\\:text-gray-dark-300:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-300);\n}\n\n.dark\\:text-gray-dark-400:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-400);\n}\n\n.dark\\:text-gray-dark-950:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:text-inkeep-expanded-primary-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-100);\n}\n\n.dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:text-inkeep-expanded-primary-500:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-500);\n}\n\n.dark\\:text-red-300:is([data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(252 165 165 / var(--tw-text-opacity, 1));\n}\n\n.dark\\:text-white-alpha-500:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-500);\n}\n\n.dark\\:text-white-alpha-600:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-600);\n}\n\n.dark\\:text-white-alpha-700:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-700);\n}\n\n.dark\\:text-white-alpha-900:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-900);\n}\n\n.dark\\:text-white-alpha-950:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:shadow-none:is([data-theme="dark"] *) {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.dark\\:shadow-\\[none\\]:is([data-theme="dark"] *) {\n --tw-shadow-color: none;\n --tw-shadow: var(--tw-shadow-colored);\n}\n\n.dark\\:\\[--end-color\\:theme\\(colors\\.gray-dark\\.600\\)\\]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-gray-dark-600);\n}\n\n.dark\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:\\[--end-color\\:theme\\(colors\\.white-alpha\\.300\\)\\]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-white-alpha-300);\n}\n\n.dark\\:\\[--error-border-color\\:theme\\(colors\\.red\\.300\\)\\]:is([data-theme="dark"] *) {\n --error-border-color: #fca5a5;\n}\n\n.dark\\:\\[--focus-border-color\\:theme\\(colors\\.blue\\.300\\)\\]:is([data-theme="dark"] *) {\n --focus-border-color: #93c5fd;\n}\n\n.dark\\:\\[--scrollbar-color\\:var\\(--color-gray-dark-600\\)\\]:is([data-theme="dark"] *) {\n --scrollbar-color: var(--color-gray-dark-600);\n}\n\n.dark\\:\\[--start-color\\:theme\\(colors\\.gray-dark\\.800\\)\\]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:\\[--start-color\\:theme\\(colors\\.gray\\.300\\)\\]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-gray-300);\n}\n\n.dark\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.50\\)\\]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-inkeep-expanded-primary-50);\n}\n\n.dark\\:file\\:text-white-alpha-700:is([data-theme="dark"] *)::file-selector-button {\n color: var(--ikp-color-white-alpha-700);\n}\n\n.dark\\:placeholder\\:text-gray-dark-200:is([data-theme="dark"] *)::-moz-placeholder {\n color: var(--ikp-color-gray-dark-200);\n}\n\n.dark\\:placeholder\\:text-gray-dark-200:is([data-theme="dark"] *)::placeholder {\n color: var(--ikp-color-gray-dark-200);\n}\n\n.dark\\:before\\:bg-gray-dark-950:is([data-theme="dark"] *)::before {\n content: var(--tw-content);\n background-color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:before\\:to-gray-dark-950:is([data-theme="dark"] *)::before {\n content: var(--tw-content);\n --tw-gradient-to: var(--ikp-color-gray-dark-950) var(--tw-gradient-to-position);\n}\n\n.dark\\:after\\:bg-gray-dark-950:is([data-theme="dark"] *)::after {\n content: var(--tw-content);\n background-color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:focus\\:bg-gray-dark-800:focus:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:focus\\:outline-inkeep-expanded-primary-300:focus:is([data-theme="dark"] *) {\n outline-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:active\\:bg-inkeep-expanded-primary-200:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.dark\\:active\\:bg-white-alpha-100:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:active\\:bg-white-alpha-200:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:active\\:bg-white-alpha-400:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-400);\n}\n\n.dark\\:disabled\\:text-white-alpha-200:disabled:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-200);\n}\n\n.group:hover .dark\\:group-hover\\:text-white-alpha-600:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-600);\n}\n\n.dark\\:data-\\[state\\=active\\]\\:border-inkeep-expanded-primary-300[data-state="active"]:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:border-white-alpha-950[data-state="checked"]:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:data-\\[active\\]\\:bg-gray-dark-700[data-active]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-700);\n}\n\n.dark\\:data-\\[state\\=active\\]\\:bg-white-alpha-100[data-state="active"]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:bg-white-alpha-950[data-state="checked"]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:data-\\[username\\]\\:bg-inkeep-expanded-primary-300[data-username]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[active\\]\\:text-white-alpha-600[data-active]:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-600);\n}\n\n.dark\\:data-\\[active\\]\\:text-white-alpha-950[data-active]:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:data-\\[highlighted\\]\\:text-gray-dark-50[data-highlighted]:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-50);\n}\n\n.dark\\:data-\\[role\\=user\\]\\:text-white-alpha-700[data-role="user"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-700);\n}\n\n.dark\\:data-\\[state\\=active\\]\\:text-inkeep-expanded-primary-300[data-state="active"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:text-gray-1000[data-state="checked"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-1000);\n}\n\n.dark\\:data-\\[type\\=icon\\]\\:data-\\[role\\=user\\]\\:text-inkeep-expanded-primary-300[data-role="user"][data-type="icon"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[downvoted\\]\\:dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *)[data-downvoted] {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[upvoted\\]\\:dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *)[data-upvoted] {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-role="assistant"][data-type="icon"]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.50\\)\\][data-role="assistant"][data-type="icon"]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-inkeep-expanded-primary-50);\n}\n\n.dark\\:data-\\[required\\]\\:after\\:text-red-300[data-required]:is([data-theme="dark"] *)::after {\n content: var(--tw-content);\n --tw-text-opacity: 1;\n color: rgb(252 165 165 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[show-toolbar\\]\\:after\\:dark\\:text-gray-dark-950:is([data-theme="dark"] *)[data-show-toolbar]::after {\n content: var(--tw-content);\n color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:data-\\[highlight\\]\\:first\\:before\\:\\[background-image\\:conic-gradient\\(transparent\\2c theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\2c transparent_30\\%\\)\\]:first-child[data-highlight]:is([data-theme="dark"] *)::before {\n content: var(--tw-content);\n background-image: conic-gradient(transparent,var(--ikp-color-inkeep-expanded-primary-300),transparent 30%);\n}\n\n.dark\\:hover\\:border-white-alpha-300:hover:not(:disabled):is([data-theme="dark"] *) {\n border-color: var(--ikp-color-white-alpha-300);\n}\n\n.dark\\:hover\\:bg-gray-dark-800:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:hover\\:bg-inkeep-expanded-primary-200:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.dark\\:hover\\:bg-transparent:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: transparent;\n}\n\n.dark\\:hover\\:bg-white-alpha-100:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:hover\\:bg-white-alpha-200:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:hover\\:bg-white-alpha-50:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-50);\n}\n\n.dark\\:hover\\:text-inkeep-expanded-primary-300:hover:not(:disabled):is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:hover\\:text-white-alpha-500:hover:not(:disabled):is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-500);\n}\n\n.dark\\:hover\\:text-white-alpha-950:hover:not(:disabled):is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.hover\\:dark\\:text-white-alpha-950:is([data-theme="dark"] *):hover:not(:disabled) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:hover\\:disabled\\:bg-white-alpha-100:disabled:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:hover\\:data-\\[state\\=active\\]\\:bg-white-alpha-100[data-state="active"]:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.befter\\:dark\\:from-gray-dark-950:is([data-theme="dark"] *)::before {\n --tw-gradient-from: var(--ikp-color-gray-dark-950) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.befter\\:dark\\:from-gray-dark-950:is([data-theme="dark"] *)::after {\n --tw-gradient-from: var(--ikp-color-gray-dark-950) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.dark\\:selected\\:border-inkeep-expanded-primary-300[data-selected="true"]:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:selected\\:bg-white-alpha-200[data-selected="true"]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:selected\\:text-inkeep-expanded-primary-300[data-selected="true"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:selected\\:border-inkeep-expanded-primary-300:hover:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:selected\\:bg-white-alpha-200:hover:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:selected\\:text-inkeep-expanded-primary-300:hover:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.group[data-selected="true"] .dark\\:group-selected\\:text-gray-dark-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-100);\n}\n\n.group[data-selected="true"] .dark\\:group-selected\\:text-white:is([data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.group:hover .dark\\:group-selected\\:text-gray-dark-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-100);\n}\n\n.group:hover .dark\\:group-selected\\:text-white:is([data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n@media (min-width: 640px) {\n\n .sm\\:w-\\[420px\\] {\n width: 420px;\n }\n}\n\n@media (min-width: 768px) {\n\n .md\\:my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem;\n }\n\n .md\\:hidden {\n display: none;\n }\n\n .md\\:h-\\[min\\(760px\\2c 100\\%\\)\\] {\n height: min(760px,100%);\n }\n\n .md\\:w-\\[min\\(600px\\2c 100\\%\\)\\] {\n width: min(600px,100%);\n }\n\n .md\\:min-w-\\[min\\(320px\\2c 100\\%\\)\\] {\n min-width: min(320px,100%);\n }\n\n .md\\:p-10 {\n padding: 2.5rem;\n }\n\n .md\\:text-4xl {\n font-size: var(--ikp-font-size-4xl);\n }\n\n .md\\:text-sm {\n font-size: var(--ikp-font-size-sm);\n }\n\n .md\\:leading-5 {\n line-height: 1.25rem;\n }\n}\n\n@media (min-width: 1024px) {\n\n .lg\\:h-\\[min\\(800px\\2c 100\\%\\)\\] {\n height: min(800px,100%);\n }\n\n .lg\\:w-\\[min\\(640px\\2c 100\\%\\)\\] {\n width: min(640px,100%);\n }\n}\n\n@media (min-width: 1536px) {\n\n .\\32xl\\:h-\\[min\\(900px\\2c 100\\%\\)\\] {\n height: min(900px,100%);\n }\n\n .\\32xl\\:w-\\[min\\(760px\\2c 100\\%\\)\\] {\n width: min(760px,100%);\n }\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:absolute:not(:last-child)::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:inset-x-6:not(:last-child)::after {\n content: var(--tw-content);\n left: 1.5rem;\n right: 1.5rem;\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:bottom-0:not(:last-child)::after {\n content: var(--tw-content);\n bottom: 0px;\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:border-b:not(:last-child)::after {\n content: var(--tw-content);\n border-bottom-width: 1px;\n}\n\n[data-widget-md] .ikp-md\\:\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:inset-x-8:not(:last-child)::after {\n content: var(--tw-content);\n left: 2rem;\n right: 2rem;\n}\n\n.focus\\:\\[\\&\\:not\\(\\[data-invalid\\]\\)\\]\\:border-\\[--focus-border-color\\]:not([data-invalid]):focus {\n border-color: var(--focus-border-color);\n}\n\n.focus\\:\\[\\&\\:not\\(\\[data-invalid\\]\\)\\]\\:shadow-\\[0_0_0_1px_var\\(--focus-border-color\\)\\]:not([data-invalid]):focus {\n --tw-shadow: 0 0 0 1px var(--focus-border-color);\n --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.\\[\\&\\:where\\(\\:hover\\2c \\:focus\\)\\]\\:bg-slate-400\\/5:where(:hover,:focus) {\n background-color: rgb(148 163 184 / 0.05);\n}\n\n.dark\\:\\[\\&\\:where\\(\\:hover\\2c \\:focus\\)\\]\\:bg-white-alpha-100:where(:hover,:focus):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.\\[\\&\\>\\:first-child\\]\\:basis-full>:first-child {\n flex-basis: 100%;\n}\n\n.\\[\\&\\[data-mobile\\]\\>div\\]\\:h-full[data-mobile]>div {\n height: 100%;\n}\n\n.\\[\\&\\[data-mobile\\]\\>div\\]\\:max-h-\\[unset\\][data-mobile]>div {\n max-height: unset;\n}\n\n.\\[\\&\\[data-mobile\\]\\>div\\]\\:max-h-dvh[data-mobile]>div {\n max-height: 100dvh;\n}\n\n.\\[\\&_\\[data-part\\=grid\\]\\]\\:divide-y [data-part=grid] > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n\n.\\[\\&_\\[data-part\\=grid\\]\\]\\:px-1 [data-part=grid] {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.\\[\\&_a\\]\\:inline a {\n display: inline;\n}\n\n.\\[\\&_a\\]\\:break-words a {\n overflow-wrap: break-word;\n}\n\n.\\[\\&_a\\]\\:rounded-sm a {\n border-radius: 0.125rem;\n}\n\n.\\[\\&_a\\]\\:bg-inkeep-primary-light a {\n background-color: var(--ikp-color-inkeep-primary-light);\n}\n\n.\\[\\&_a\\]\\:px-1 a {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.\\[\\&_a\\]\\:py-\\[1px\\] a {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n\n.\\[\\&_a\\]\\:font-semibold a {\n font-weight: 600;\n}\n\n.\\[\\&_a\\]\\:text-inkeep-primary-text-subtle a {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.\\[\\&_a\\]\\:no-underline a {\n text-decoration-line: none;\n}\n\n.\\[\\&_a\\]\\:hover\\:text-inkeep-primary-text-bold:hover:not(:disabled) a {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n\n.\\[\\&_a\\]\\:hover\\:no-underline:hover:not(:disabled) a {\n text-decoration-line: none;\n}\n\n.\\[\\&_a\\]\\:dark\\:bg-inkeep-primary-text-subtle:is([data-theme="dark"] *) a {\n background-color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.\\[\\&_a\\]\\:dark\\:hover\\:text-inkeep-expanded-primary-200:hover:not(:disabled):is([data-theme="dark"] *) a {\n color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.\\[\\&_li\\]\\:mb-1 li {\n margin-bottom: 0.25rem;\n}\n\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n\n[data-show-ask-ai-card] .\\[\\[data-show-ask-ai-card\\]_\\&\\]\\:pb-1 {\n padding-bottom: 0.25rem;\n}\n',...e}),Ise=_B("div",{_id:"view_toggle"}),Rse=_B("button",{_id:"view_toggle_button",className:Tre({slot:"button"})}),Ose=_B(wW,{_id:"view_toggle_icon"});function Pse(e){const{handleToggle:t}=Lse(e);return $f.jsxs(Ise,{className:Tre({slot:"root"}),children:[$f.jsxs(Rse,{onClick:()=>t("search"),"data-active":_P("search"===e.view),children:[$f.jsx(Ose,{"data-active":_P("search"===e.view),iconKey:"switchToSearch",className:Tre({slot:"icon"})}),e.searchLabel||"Search"]}),$f.jsxs(Rse,{onClick:()=>t("chat"),"data-active":_P("chat"===e.view),children:[$f.jsx(Ose,{"data-active":_P("chat"===e.view),iconKey:"switchToChat",className:Tre({slot:"icon"})}),e.askAILabel||"Ask AI"]})]})}function Lse(e){const{onToggleView:t,query:n}=e;return{handleToggle:(e,r)=>{null==t||t({view:e,query:n,autoSubmit:r})}}}function Dse(e){const{componentType:t,children:n,modalSettings:r,...a}=e;return $f.jsx(lne,{children:$f.jsx(Nse,{children:$f.jsx(dB,{config:{...a},componentType:t,children:$f.jsx(wse,{config:r,children:n})})})})}function Mse(e){return $f.jsx(kse,{children:$f.jsx(xse,{children:e.children})})}function Fse(e){const{children:t,onToggleView:n,isHidden:r,shouldAutoFocusInput:a=!n}=e;return $f.jsx(Rre,{isHidden:r,shouldAutoFocusInput:a,children:t})}function jse(e){return $f.jsx(Fse,{...e,children:$f.jsx(Bse,{...e})})}function Bse(e){const{onToggleView:t}=e,n=rD(),r=dD(),a=n&&!r?Mse:V.Fragment;return $f.jsx(a,{children:$f.jsxs(Ore,{variant:t?"no-shadow":"container-with-shadow","data-composite":_P(!!e.onToggleView||(null==n?void 0:n.isOpen)),children:[$f.jsx(Pre,{}),$f.jsxs(Lre,{children:[$f.jsx(Hse,{...e}),$f.jsx(zse,{}),$f.jsx(Yse,{})]}),$f.jsx(Qse,{}),$f.jsx(Zse,{})]})})}function Hse(e){const{onToggleView:t,askAILabel:n,searchLabel:r}=e,a=!!t;return $f.jsxs(Dre,{"data-show-toolbar":_P(a),children:[a&&$f.jsxs(Mre,{children:[$f.jsxs(Fre,{children:[$f.jsx(jre,{}),$f.jsxs(Vre,{children:[$f.jsx(qre,{}),$f.jsxs(Yre,{side:"bottom",align:"start",children:[$f.jsx(Kre,{}),$f.jsx(Xre,{})]})]})]}),$f.jsx(Pse,{onToggleView:t,askAILabel:n,searchLabel:r,view:"chat"})]}),$f.jsx(Ese,{})]})}function zse(){return $f.jsx(Bre,{children:$f.jsxs(Hre,{children:[$f.jsx(zre,{children:$f.jsx(Use,{})}),$f.jsx(Ure,{children:$f.jsx($re,{})}),$f.jsx(Gre,{})]})})}function Use(){return $f.jsx(nae,{children:({messages:e})=>$f.jsxs($f.Fragment,{children:[$f.jsx($se,{}),e.map((e=>$f.jsxs(aae,{message:e,children:[$f.jsx(Gse,{}),$f.jsx(sae,{}),$f.jsxs(fae,{children:[$f.jsx(hae,{children:$f.jsx(Tae,{})}),$f.jsx(Vse,{}),$f.jsx(Wse,{}),$f.jsx(qse,{})]})]},e.id)))]})})}function $se(){return $f.jsxs(oae,{children:[$f.jsxs(iae,{children:[$f.jsx(lae,{children:$f.jsxs(cae,{children:[$f.jsx(uae,{}),$f.jsx(dae,{})]})}),$f.jsx(pae,{})]}),$f.jsxs(fae,{children:[$f.jsx(hae,{children:$f.jsx(Tae,{})}),$f.jsxs(Vre,{children:[$f.jsx(Wre,{}),$f.jsx(qre,{}),$f.jsxs(Yre,{children:[$f.jsx(Kre,{}),$f.jsx(Xre,{})]})]}),$f.jsxs(Qre,{children:[$f.jsx(Zre,{}),$f.jsx(Jre,{children:e=>e.map((e=>$f.jsx(eae,{children:$f.jsx(tae,{question:e})},e)))})]})]})]})}function Gse(){return $f.jsxs(iae,{children:[$f.jsx(lae,{children:$f.jsxs(cae,{children:[$f.jsx(uae,{}),$f.jsx(dae,{})]})}),$f.jsx(pae,{})]})}function Vse(){return $f.jsxs(mae,{children:[$f.jsx(gae,{children:e=>e.map((e=>$f.jsxs(yae,{attachment:e,children:[$f.jsx(bae,{}),$f.jsx(vae,{})]},e.id)))}),$f.jsx(wae,{children:$f.jsx(cne,{children:$f.jsx(kae,{children:$f.jsxs(xae,{children:[$f.jsx(Eae,{}),$f.jsx(Sae,{}),$f.jsx(_ae,{})]})})})})]})}function Wse(){return $f.jsxs(Cae,{children:[$f.jsx(Aae,{children:e=>e.map(((e,t)=>$f.jsx(Nae,{action:e},`action-${t}`)))}),$f.jsx(Iae,{action:"copy"}),$f.jsx(Iae,{action:"upvote"}),$f.jsx(Iae,{action:"downvote"})]})}function qse(){return $f.jsxs(Rae,{children:[$f.jsx(Oae,{}),$f.jsx(Pae,{children:e=>e.map(((e,t)=>{var n;return $f.jsxs(Lae,{href:e.url,source:e,children:[$f.jsx(Dae,{children:null==(n=e.breadcrumbs)?void 0:n.map((e=>$f.jsxs(V.Fragment,{children:[e,$f.jsx(Mae,{})]},e)))}),$f.jsx(Fae,{}),$f.jsx(jae,{}),$f.jsx(Bae,{}),$f.jsx(Hae,{children:e=>e.map(((e,t)=>$f.jsx(zae,{part:e},`part-${t}`)))}),$f.jsx(Uae,{})]},t)}))})]})}function Yse(){return $f.jsxs($ae,{children:[$f.jsx(Kse,{}),$f.jsx(Xse,{})]})}function Kse(){return $f.jsxs(Gae,{children:[$f.jsxs(Vae,{children:[$f.jsx(Wae,{}),$f.jsx(qae,{children:$f.jsx(Yae,{})})]}),$f.jsxs(Kae,{children:[$f.jsx(Xae,{children:e=>e.map((e=>$f.jsxs(Qae,{attachment:e,children:[$f.jsx(Zae,{}),$f.jsx(Jae,{}),$f.jsx(eoe,{})]},e.id)))}),$f.jsxs(toe,{children:[$f.jsxs(noe,{children:[$f.jsx(roe,{}),$f.jsx(aoe,{})]}),$f.jsx(ooe,{children:e=>e.map((e=>$f.jsxs(ioe,{input:e,children:[$f.jsx(soe,{}),e.displayName]},e.id)))})]}),$f.jsx(cne,{children:$f.jsx(loe,{children:$f.jsx(coe,{children:$f.jsxs(uoe,{children:[$f.jsxs(doe,{children:[$f.jsx(poe,{}),$f.jsx(foe,{}),$f.jsx(hoe,{})]}),$f.jsx(moe,{}),$f.jsx(goe,{children:$f.jsxs(yoe,{children:[$f.jsxs(boe,{children:[$f.jsx(voe,{}),$f.jsx(woe,{}),$f.jsx(koe,{})]}),$f.jsxs(xoe,{children:[$f.jsx(Eoe,{}),$f.jsx(Soe,{}),$f.jsx(_oe,{})]}),$f.jsx(Toe,{})]})})]})})})})]})]})}function Xse(){return $f.jsxs(Coe,{children:[$f.jsxs(Noe,{children:[$f.jsx(Ioe,{}),$f.jsx(Roe,{}),$f.jsx(Ooe,{})]}),$f.jsxs(Aoe,{children:[$f.jsx(Foe,{children:({pinned:e,unpinned:t})=>$f.jsxs($f.Fragment,{children:[e.map((e=>$f.jsx(joe,{action:e},e.name))),t.length>0&&$f.jsx(Boe,{}),$f.jsxs(Hoe,{children:[$f.jsx(zoe,{}),t.map((e=>$f.jsxs(Uoe,{action:e,children:[$f.jsx($oe,{action:e}),e.name]},e.name)))]})]})}),$f.jsxs(Loe,{action:"copy",children:[$f.jsx(Doe,{action:"copy"}),$f.jsx(Moe,{action:"copy"})]}),$f.jsxs(Loe,{action:"share",children:[$f.jsx(Doe,{action:"share"}),$f.jsx(Moe,{action:"share"})]}),$f.jsx(Loe,{action:"clear"}),$f.jsx(Loe,{action:"stop"})]})]})}function Qse(){return $f.jsx(cne,{children:$f.jsx(Goe,{children:$f.jsx(Voe,{children:$f.jsxs(Woe,{children:[$f.jsx(qoe,{}),$f.jsx(Yoe,{}),$f.jsx(Koe,{children:$f.jsxs(Xoe,{children:[$f.jsxs(Qoe,{name:"unrelated_response",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{}),$f.jsx(tie,{})]}),$f.jsxs(Qoe,{name:"inaccurate_statement",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{}),$f.jsx(tie,{})]}),$f.jsxs(Qoe,{name:"inaccurate_code_snippet",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{}),$f.jsx(tie,{})]}),$f.jsxs(Qoe,{name:"irrelevant_citations",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{})]}),$f.jsx(nie,{})]})})]})})})})}function Zse(){return $f.jsxs(rie,{children:[$f.jsx(oie,{}),$f.jsxs(aie,{children:[$f.jsxs(iie,{children:[$f.jsx(sie,{}),$f.jsx(lie,{})]}),$f.jsx(cie,{children:e=>$f.jsxs($f.Fragment,{children:[e.map(((e,t)=>$f.jsxs(uie,{field:e,autoFocus:0===t,children:[$f.jsx(die,{}),"text"===e.inputType&&$f.jsx(pie,{}),"email"===e.inputType&&$f.jsx(fie,{}),"file"===e.inputType&&$f.jsx(hie,{}),"textarea"===e.inputType&&$f.jsx(mie,{}),"checkbox"===e.inputType&&$f.jsx(gie,{children:$f.jsx(yie,{})}),"select"===e.inputType&&$f.jsxs(bie,{children:[$f.jsxs(vie,{children:[$f.jsx(wie,{}),$f.jsx(kie,{})]}),$f.jsx(xie,{children:$f.jsx(Eie,{children:e.items.map((e=>$f.jsxs(Sie,{value:e.value,children:[$f.jsx(_ie,{children:e.label}),$f.jsx(Tie,{})]},e.value)))})})]}),$f.jsx(Cie,{})]},e.name))),$f.jsx(Aie,{})]})}),$f.jsxs(Nie,{children:[$f.jsx(Iie,{}),$f.jsx(Rie,{})]})]}),$f.jsxs(Oie,{children:[$f.jsx(Pie,{}),$f.jsx(Lie,{}),$f.jsx(Die,{})]})]})}function Jse(e){const{children:t,onToggleView:n,isHidden:r,shouldAutoFocusInput:a=!n}=e;return $f.jsx(Fie,{isHidden:r,shouldAutoFocusInput:a,children:t})}function ele(e){const{onToggleView:t,shouldShowAskAICard:n}=e,r=rD(),a=dD(),o=r&&!a?Mse:V.Fragment;return $f.jsx(o,{children:$f.jsx(jie,{"data-show-ask-ai-card":_P(n),"data-composite":_P(!!t||(null==r?void 0:r.isOpen)),children:$f.jsxs(Bie,{children:[$f.jsx(tle,{...e}),$f.jsxs(Hie,{children:[$f.jsx(nle,{...e}),$f.jsx(rle,{})]}),$f.jsx(ole,{})]})})})}function tle(e){const{onToggleView:t,askAILabel:n,searchLabel:r}=e,{query:a}=tee();return $f.jsxs(zie,{children:[$f.jsx(Uie,{}),$f.jsx($ie,{}),$f.jsx(Gie,{}),t&&$f.jsx(Pse,{onToggleView:t,query:a,askAILabel:n,searchLabel:r,view:"search"}),$f.jsx(Ese,{})]})}function nle(e){const{askAILabel:t,onToggleView:n,shouldShowAskAICard:r=!!n}=e,{query:a}=tee(),{handleToggle:o}=Lse({onToggleView:n,query:a});return r?$f.jsxs(Vie,{onSelect:()=>o("chat",!0),children:[$f.jsx(Wie,{}),$f.jsxs(qie,{children:[t||"Ask AI",a&&` "${a}"`]}),$f.jsx(Yie,{})]}):null}function rle(){return $f.jsxs(Kie,{children:[$f.jsx(Xie,{}),$f.jsx(Zie,{children:e=>e.map((e=>$f.jsx(Jie,{tab:e},e)))}),$f.jsx(Qie,{}),$f.jsxs(ese,{children:[$f.jsx(tse,{children:$f.jsx(ale,{})}),$f.jsx(nse,{children:$f.jsx(rse,{})}),$f.jsx(ase,{})]})]})}function ale(){return $f.jsx(ose,{children:e=>e.map((e=>$f.jsxs(ise,{item:e,children:[$f.jsx(sse,{children:e=>e.map(((e,t)=>$f.jsxs(V.Fragment,{children:[e,$f.jsx(lse,{})]},`${e}-${t}`)))}),$f.jsx(cse,{}),$f.jsx(use,{}),$f.jsx(dse,{}),$f.jsx(pse,{children:e=>e.map(((e,t)=>$f.jsx(fse,{part:e},`part-${t}`)))}),$f.jsx(hse,{})]},e.id)))})}function ole(){return $f.jsx(mse,{children:$f.jsxs(gse,{children:[$f.jsx(yse,{}),$f.jsx(bse,{}),$f.jsx(vse,{})]})})}function ile(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function sle(...e){return t=>{for(const n of e)ile(n,t)}}function lle(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function cle(e){const{view:t,setView:n,shouldShowAskAICard:r,onToggleView:a,defaultView:o,shouldAutoFocusInput:i,searchLabel:s,askAILabel:l}=e,c=rD()?Mse:V.Fragment,u={isHidden:"chat"===t,onToggleView:a,shouldShowAskAICard:r,shouldAutoFocusInput:i&&"search"===o,searchLabel:s,askAILabel:l},d={isHidden:"search"===t,onToggleView:a,shouldAutoFocusInput:i&&"chat"===o,searchLabel:s,askAILabel:l};return $f.jsx(uD,{widget:{setView:n},children:$f.jsx(Jse,{...u,children:$f.jsx(Fse,{...d,children:$f.jsxs(c,{children:[$f.jsx(ele,{...u}),$f.jsx(Bse,{...d})]})})})})}function ule({label:e="Ask AI",avatar:t,onOpenChange:n}){return $f.jsx(Sse,{children:$f.jsxs(_se,{onClick:e=>{2!==e.button&&n((e=>!e))},children:[$f.jsx(Tse,{children:e}),$f.jsx(Ase,{children:$f.jsx(Cse,{avatar:t})})]})})}const dle=function(e,t){const n=new Map;return function(r,a){let o,i;if("string"==typeof r)i=r,o=a;else{if(!Mf.includes(t))throw new Error(`You must provide a target selector to render the ${t} component`);const e=document.createElement("div");e.style.position="absolute",document.body.appendChild(e);const n=`inkeep-widget-${Df()}`;i=`#${e.id||n}`,e.id=i.slice(1),o=r}const s=document.querySelector(i);if(!s)return void console.error(`Target ${i} not found.`);let l=n.get(i);if(!l){l={root:Sf.createRoot(s),props:o,container:s,chatFunctionsRef:V.createRef(),searchFunctionsRef:V.createRef(),ref:V.createRef()},n.set(i,l)}l.props=If(o,{aiChatSettings:{chatFunctionsRef:l.chatFunctionsRef},searchSettings:{searchFunctionsRef:l.searchFunctionsRef}},{ref:l.ref}),l.container=s;try{l.root.render(V.createElement(e,l.props))}catch(u){console.error(`Error rendering component ${e.name}:`,u)}const c={update:t=>{const r=n.get(i);if(r){r.props=If(r.props??{},t??{});try{r.root.render(V.createElement(e,r.props))}catch(u){console.error(`Error rendering component ${e.name} during update:`,u)}}else console.error(`Component at ${i} is not mounted.`)},unmount(){const e=n.get(i);e&&e.container?(e.root.unmount(),e.container.innerHTML=""):console.error(`Component at ${i} is not mounted.`)},remount(){const t=n.get(i);if(t&&t.container){t.root=Sf.createRoot(t.container);try{t.root.render(V.createElement(e,t.props))}catch(u){console.error(`Error remounting component ${e.name}:`,u)}}else console.error(`Component at ${i} cannot be remounted.`)}};{const e=Ff(i,"chatFunctionsRef",n),t=Ff(i,"searchFunctionsRef",n);return new Proxy(c,{get(r,a){var o;if("chat"===a)return e;if("search"===a)return t;if(a in r)return r[a];const s=n.get(i),l=null==(o=null==s?void 0:s.ref.current)?void 0:o[a];return"function"==typeof l?l.bind(null==s?void 0:s.ref.current):void 0}})}}}((function(e){const{modalSettings:t,label:n,defaultView:r="chat",canToggleView:a=!0,avatar:o,...i}=e,s={...i,shouldShowAskAICard:!!a&&e.shouldShowAskAICard},{config:l,...c}=function(e){const{defaultView:t="search",aiChatSettings:n,baseSettings:r,searchSettings:a,shouldAutoFocusInput:o=!0,onToggleView:i,ref:s,...l}=e,c=V.useRef(null),u=sle(c,null==n?void 0:n.chatFunctionsRef),d=V.useRef(null),p=sle(d,null==a?void 0:a.searchFunctionsRef),f={...n,chatFunctionsRef:u},h={...a,searchFunctionsRef:p},[m,g]=V.useState(t);return V.useImperativeHandle(s,(()=>({setView:g}))),V.useEffect((()=>{var e,t;"chat"===m?null==(e=c.current)||e.focusInput():null==(t=d.current)||t.focusInput()}),[m]),{config:{baseSettings:r,aiChatSettings:f,searchSettings:h},defaultView:t,view:m,setView:g,onToggleView:e=>{var t;e.autoSubmit&&e.query&&(null==(t=c.current)||t.submitMessage(e.query)),null==i||i(e),g(e.view)},shouldAutoFocusInput:o,...l}}({...s,defaultView:r}),[u=!1,d]=qF({prop:null==t?void 0:t.isOpen,defaultProp:!1,onChange:lle(null==t?void 0:t.onOpenChange,(n=>{void 0===(null==t?void 0:t.isOpen)&&(e.forceDefaultView&&!n&&c.setView(r??"search"),d(!!n))}))}),p={...t,isOpen:u,onOpenChange:d};return $f.jsxs($f.Fragment,{children:[$f.jsx(Nse,{wrapperStyles:{display:"contents"},children:$f.jsx(dB,{config:l,componentType:UO,children:$f.jsx(ule,{label:n,avatar:o,onOpenChange:d})})}),$f.jsx(Dse,{...l,componentType:UO,modalSettings:p,children:a?$f.jsx(cle,{...c}):$f.jsx(jse,{...i})})]})}),"ChatButton");window.Inkeep={ChatButton:dle}}();
56
+ */;function A2(){const[e,t]=V.useState(!1);return[e,V.useCallback((async e=>{if(!(null==navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),t(!0),setTimeout((()=>{t(!1)}),1e3),!0}catch(n){return console.warn("Copy failed",n),t(!1),!1}}),[])]}const N2=_B("h1",{_id:"markdownH1"}),I2=_B("h2",{_id:"markdownH2"}),R2=_B("p",{_id:"markdownP"}),O2=_B("li",{_id:"markdownLi"}),P2=_B("ul",{_id:"markdownUl"}),L2=_B("ol",{_id:"markdownOl"}),D2=_B(xW,{_id:"markdownLink"}),M2=_B("sup",{_id:"markdownSourceLink"}),F2=_B("table",{_id:"markdownTable"}),j2=_B("th",{_id:"markdownTh"}),B2=_B("td",{_id:"markdownTd"}),H2=_B("code",{_id:"markdownCode"}),z2=_B("div",{_id:"codeblockContainer"}),U2=_B("div",{_id:"codeblockHeader"}),$2=_B("span",{_id:"codeblockHeaderLanguage"}),G2=_B("button",{_id:"codeblockCopyButton",type:"button"}),V2=_B("div",{_id:"codeblockHighlighterWrapper"}),W2=_B("div",{_id:"codeblockHighlighter"}),q2=_B("code",{_id:"codeblockCode"}),Y2=Z1.oneLight,K2=Z1.vsDark,X2=({className:e="",children:t,onCopy:n})=>{var r;const a=e.replace(/^language-/,""),o=String(t).replace(/\n$/,""),[i,s]=A2(),{baseSettings:l}=WO(),c=null==(r=l.theme)?void 0:r.syntaxHighlighter,{lightTheme:u=Y2,darkTheme:d=K2}=c??{},p=Zj(u,d);return $f.jsxs(z2,{children:[$f.jsxs(U2,{children:[$f.jsx($2,{children:a}),$f.jsx(G2,{"aria-label":"Copy to clipboard",onClick:()=>{s(o),null==n||n(a,o)},"data-copied":_P(i),children:$f.jsx(wW,{iconKey:i?"codeCopied":"codeCopy"})})]}),$f.jsx(V2,{children:$f.jsx(C2,{theme:p,code:o,language:a,prism:l.prism,children:({className:e,tokens:t,getLineProps:n,getTokenProps:r,style:a})=>$f.jsx(W2,{className:e,children:$f.jsx(q2,{style:a,children:t.map(((e,t)=>$f.jsx("div",{...n({line:e}),children:e.map(((e,t)=>$f.jsx("span",{...r({token:e})},t)))},t)))})})})})]})};function Q2(){return e=>{kX(e,"element",((e,t,n)=>{"code"===e.tagName&&(n&&"pre"===n.tagName?e.properties.inline=!1:e.properties.inline=!0)}))}}const Z2=({children:e,componentStyles:t,shouldOpenLinksInNewTab:n,onLinkClick:r,onCodeCopy:a,...o})=>{if(!e)return null;const i={h1:({children:e})=>$f.jsx(N2,{children:e}),h2:({children:e})=>$f.jsx(I2,{children:e}),p:({children:e})=>$f.jsx(R2,{children:e}),li:({children:e})=>$f.jsx(O2,{children:e}),ul:({children:e})=>$f.jsx(P2,{children:e}),ol:({children:e,node:t})=>{var n;const r=null==(n=null==t?void 0:t.properties)?void 0:n.start,a="number"==typeof r?r:void 0;return $f.jsx(L2,{style:{"--start":(null==r?void 0:r.toString())??"0"},start:a,children:e})},a:({children:e,href:t})=>{const a=W.Children.toArray(e),o=a[0],i="string"==typeof o&&/^\(\d+\)$/.test(o)&&1===a.length,s=i?o.match(/\d+/):e,l=$f.jsx(D2,{isExternal:n,href:t,onClick:()=>{null==r||r(t,null==s?void 0:s.toString())},children:s});return i?$f.jsx(M2,{children:l}):l},img:({src:e,alt:t})=>`![${t||""}](${e||""})`,table:({children:e})=>$f.jsx(F2,{children:e}),th:({children:e,isHeader:t})=>t?$f.jsx(j2,{children:e}):$f.jsx(B2,{children:e}),pre:({children:e})=>$f.jsx("pre",{children:e}),code:({children:e,inline:t,className:n})=>t?$f.jsx(H2,{children:e}):$f.jsx(X2,{className:n,onCopy:a,children:e})},s=$f.jsx(hQ,{rehypePlugins:[T1,Q2],components:i,disallowedElements:J2,children:e.toString(),...o});return $f.jsx(Hj,{componentStyles:t,children:s})},J2=["script","iframe","frame","embed","meta","base","form","style","object"];function e5(){return $f.jsxs("svg",{viewBox:"0 0 12 10",style:{width:"1.2em",fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},children:[$f.jsx("title",{children:"Checkbox Icon"}),$f.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})]})}function t5(e){const t=V.useId();return $f.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[$f.jsx("title",{children:"Tag Line Logo Icon"}),$f.jsx("path",{d:"M32 4.01845V25.1411C32 26.3154 30.9971 27.2462 29.8223 27.1531L16.9277 26.1507C15.409 26.0361 13.8903 26.3727 12.565 27.1173L8.11641 29.6234C7.72241 29.8454 7.29259 29.3943 7.54332 29.0148L9.77121 25.5922L11.8415 22.4131C12.0636 22.0694 12.4934 21.9119 12.8874 22.0336C16.1397 23.079 19.8075 21.8761 21.7631 18.8831C24.0913 15.2886 23.0741 10.4913 19.4851 8.15706C15.8961 5.82282 11.0965 6.83958 8.76114 10.4269C6.81263 13.427 7.19946 17.272 9.4775 19.8139C9.74972 20.1218 9.77837 20.5729 9.5563 20.9237L6.92724 24.9621C6.76964 25.1984 6.49743 25.3344 6.21804 25.313L1.4184 24.9406C0.616073 24.8834 0 24.2175 0 23.4155V5.7369C0 4.93496 0.616073 4.26905 1.4184 4.21177L29.8294 2.00642C31.0043 1.91334 32 2.84417 32 4.01845ZM15.2586 9.35282C12.3286 9.35282 9.95747 11.7229 9.95747 14.6514C9.95747 16.0763 10.5234 17.3723 11.4403 18.3246C11.9991 18.9046 12.6868 19.3557 13.4605 19.6349C14.0264 19.8354 14.6282 19.95 15.2657 19.95C18.1957 19.95 20.5668 17.5799 20.5668 14.6514C20.5597 11.73 18.1885 9.35282 15.2586 9.35282Z",fill:`url(#${t})`}),$f.jsx("defs",{children:$f.jsxs("linearGradient",{id:t,x1:"1.5893",y1:"25.285",x2:"24.0784",y2:"10.1057",gradientUnits:"userSpaceOnUse",children:[$f.jsx("stop",{stopColor:"currentColor"}),$f.jsx("stop",{offset:"1",stopColor:"currentColor"})]})})]})}const n5=e=>{const{logEvent:t}=dP(),{conversation:n}=XO(),{openForm:r}=lD(),a=rD();return{handleAction:t=>{var o;"open_form"===e.action.type?(null==(o=null==t?void 0:t.onOpenForm)||o.call(t),null==r||r(e.action.formSettings)):"invoke_callback"===e.action.type&&(e.action.callback({conversation:n}),e.action.shouldCloseModal&&(null==a||a.setOpen(!1)))},logHelpAction:()=>{"name"in e&&n.id&&t({eventName:"get_help_option_clicked",properties:{getHelpOption:e,conversation:n}})}}},r5=e=>{const t=/<em>(.*?)<\/em>/gs;let n;const r=[];let a=0;for(;null!==(n=t.exec(e));){const[t,o]=n;n.index>a&&r.push(e.slice(a,n.index)),r.push({content:o,highlighted:!0}),a=n.index+t.length}return a<e.length&&r.push(e.slice(a)),r};function a5(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function o5(e){return e.toLowerCase().replace(/(^\w+:|^)\/\//,"").replace(/^www\./,"").replace(/\/$/,"").startsWith("github.com")}function i5(e,t){const n=["API","Docs","Documentation","Blogs",t],r=["\\|","-",":"],a=new RegExp(`^\\s*(${n.join("|")})(\\.\\w+)?\\s*(${r.join("|")})\\s*`,"gi"),o=new RegExp(`\\s*(${r.join("|")})\\s*(${n.join("|")})\\s*$`,"gi");return e.replace(a,"").replace(o,"").trim()}const s5={js:".js",db:"DB",sql:"SQL"};function l5(e){return Object.entries(s5).reduce(((e,[t,n])=>{const r=new RegExp(`([a-zA-Z0-9])${t}(?!\\w)`,"g");return e.replace(r,((e,t)=>t+n))}),e)}const c5=["API","AWS","GCP","SQL","CSS","JS","JDK","SDK","JRE","IDE","XML","GUI","CLI","AI","ML","DL","IoT","TCP","UDP","IP","FTP","RAM","ROM","SSD","HDD","VPS","VPN","OS","UI","UX","DB","OOP","CRM","ERP","POS","CAD","BI","CMS","SEO","SEM","PPC","B2B","B2C","SMB","ROI","KPI","CTA","CPC","CPM","CDN","MVC","FAQ","LMS","RPA","QA","QC","CRO","SVN","GIT","DOM","DNS","ISP","URL","URN","URI","SIP","NFC","LTE","OSI","RAS","DRM","DOS","WWW","LAN","WAN","SAN","NAS","NLP","OCR","IBM","HP","SAP","JWT","SSH","SSL","TLS","POP","NTP","BGP","ARP","2FA","MFA","RDP","VNC","SCP","PKI","XSS","DoS","CSV","HL7","SOP","PHP","JSP","NET","VBA","iOS","GNU","CPU","GPU","NIC","USB","VGA","AES","RSA","DES","ECC","WEP","WPA","IDS","IPS","PM","HR","TCO","BPM","SLA","SOW","AR","VR","XR","3D","2D","4D","iOS","OpenAPI","SSO"],u5=["a","an","the","and","as","but","or","nor","at","by","in","of","on","per","to","up","via","vs","with","is","it","for","are","not","out","off","yet","so","be","if","has","its","we","our","any","all","how","her","his","their","was","were"],d5=["BaaS","SaaS","PaaS","IaaS","HTML","JSON","HTTPS","HTTP","SMTP","DBMS","RDBMS","REST","SOAP","MVVM","VoIP","RFID","WYSIWYG","WLAN","OIDC","SAML","LDAP","IPSec","OAuth","OpenID","SFTP","IMAP","RTSP","DHCP","XMPP","SNMP","ICMP","IGMP","RARP","PPTP","L2TP","IPv4","IPv6","TOTP","HMAC","TFTP","CORS","CSRF","DDOS","YAML","MQTT","AMQP","HDLC","EDIFACT","DICOM","MATLAB","UNIX","HDMI","WiFi","WPA2","DDoS","ipadOS","watchOS","macOS","JavaScript","TypeScript","SSO","IDP","RBAC"];function p5(e){return`\\b${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`}function f5(e,t,n,r=!1){return r&&new RegExp(`^${n}\\b`,"i").test(e)?e:e.replace(new RegExp(n,"gi"),t)}const h5=(e,t)=>{var n;if("documentation"!==e.type)return[];const r=null==t?void 0:t.organizationDisplayName;return((null==(n=e.breadcrumbs)?void 0:n.length)?e.breadcrumbs:function(e){try{const t=new URL(e);return t.pathname.split("/").filter((e=>e.length>0)).slice(0,-1).map(m5)}catch(t){return console.error("Invalid URL:",t),[]}}(e.url)).map((e=>{let t=e;return r&&(t=function(e,t){if(!function(e){const t=e.split(" ");for(const n of t)if(n[0]!==n[0].toUpperCase()||n.slice(1)!==n.slice(1).toLowerCase())return!1;return!0}(t))return e;const n=`\\b${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`;return new RegExp(`^${n}\\b`,"i").test(e)?e:e.replace(new RegExp(n,"gi"),t)}(e,r),t=i5(t,r)),t=l5(t),t=function(e){let t=e;return t=u5.reduce(((e,t)=>f5(e,t,p5(t),!0)),t),t=d5.reduce(((e,t)=>f5(e,t,p5(t))),t),t=c5.reduce(((e,t)=>f5(e,t,p5(t))),t),t}(t),t}))??[]},m5=e=>e.split(/[-_]/).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ");const g5=(e,t)=>{var n;if("chatSourceItem"===t)return e.description??void 0;const r=e.breadcrumbs??[],a=r.length>0?r[r.length-1]:void 0,o=e.title||(null==(n=null==a?void 0:a.props)?void 0:n.str);return function(e,t){if(!e)return;if(!t)return e;const n=t.trim(),r=[n,`<em>${n}</em>`].find((t=>e.startsWith(t)));return r?e.slice(r.length).trim():e}(e.description,o)},y5=e=>{let t="LuBookOpen";"documentation"===e.type&&"book"===e.contentType?t="IoBookOutline":"documentation"===e.type&&"pdf"===e.contentType?t="FaFilePdf":"github_issue"===e.type||o5(e.url)?t="FaGithub":"discourse"===e.type?t="FaDiscourse":"discord"===e.type?t="FaDiscord":"slack_message"===e.type?t="FaSlack":"stackoverflow"===e.type&&(t="FaStackOverflow");return{builtIn:t}},b5=(e,t)=>{let n=e.title;if(!n)return"";const r=null==t?void 0:t.organizationDisplayName;return n=l5(n),r&&(n=i5(n,r)),n},v5=(e,t,n)=>{const{transformSource:r,...a}=n,o=h5(e,n),i=((e,t)=>{var n,r,a;const o=[];"documentation"===e.type&&"book"===e.contentType?o.push("Publications"):"documentation"===e.type&&"pdf"===e.contentType&&o.push("PDFs"),("github_issue"===e.type||o5(e.url))&&o.push("GitHub"),"discourse"===e.type&&o.push("Forums"),"discord"===e.type&&o.push("Discord"),"slack_message"===e.type&&o.push("Slack"),"stackoverflow"===e.type&&o.push("StackOverflow");const i=[],s=null==(n=null==t?void 0:t.tabs)?void 0:n.map((e=>"string"==typeof e?e:e[0]));for(const l of o)(null==s?void 0:s.includes(l))&&(l===(null==(r=e.breadcrumbs)?void 0:r[0])?i.push([l,{breadcrumbs:null==(a=e.breadcrumbs)?void 0:a.slice(1)}]):i.push(l));return i})(e,n),s=(null==r?void 0:r({...e,breadcrumbs:o,tabs:i},t,a))??{};return{id:(null==s?void 0:s.id)??e.id,title:(null==s?void 0:s.title)??b5(e,n),description:(null==s?void 0:s.description)??g5(e,t),breadcrumbs:(null==s?void 0:s.breadcrumbs)??o,icon:(null==s?void 0:s.icon)??y5(e),tabs:(null==s?void 0:s.tabs)??i,url:(null==s?void 0:s.url)??e.url,tag:(null==s?void 0:s.tag)??e.tag,type:(null==s?void 0:s.type)??e.type,shouldOpenInNewTab:(null==s?void 0:s.shouldOpenInNewTab)??void 0,appendToUrl:(null==s?void 0:s.appendToUrl)??void 0}},w5=_B("div",{_id:"aiChatWrapper"}),k5=V.forwardRef(((e,t)=>{const{...n}=e,{isHidden:r,isMobile:a}=Cj(),[o,i]=function(){const e=V.useRef(null),[t,n]=V.useState({width:0,height:0});return V.useEffect((()=>{if(!e.current)return;const t=new ResizeObserver((([e])=>{const{width:t,height:r}=e.contentRect;n({width:t,height:r})}));return t.observe(e.current),()=>{t.disconnect()}}),[e]),[e,t]}(),s=bB(t,o),l=!(null==i?void 0:i.width)||i.width>580,c=rD();return $f.jsx(w5,{ref:s,"data-widget-md":_P(l),"data-hidden":_P(r),"data-in-modal":_P(!!c),"data-mobile":_P(a),...n})})),x5=_B("div",{_id:"aiChatConversationLoading"}),E5=e=>{const{isLoadingConversation:t}=Cj();return t?$f.jsx(x5,{children:$f.jsx("span",{children:"Loading..."}),...e}):null},S5=_B("div",{_id:"aiChatRoot"}),_5=e=>{const{isLoadingConversation:t,isHidden:n}=Cj(),{form:r}=lD();return t||r?null:$f.jsx(S5,{"data-hidden":_P(n),...e})},T5=_B("div",{_id:"aiChatHeader"}),C5=_B("div",{_id:"aiChatHeader__Toolbar"}),A5=_B("div",{_id:"aiChatHeader__ToolbarHeaderWrapper"}),N5=_B("div",{_id:"aiChatHeader__ToolbarHeader"}),I5=V.memo((e=>{const{aiChatSettings:t}=WO(),n=`Ask ${t.aiAssistantName||"AI"}`;return $f.jsx(N5,{...e,children:n})})),R5=_B("div",{_id:"aiChatContent"}),O5=_B(L$,{_id:"aiChatContentScrollArea"}),P5=_B(D$,{_id:"aiChatContentScrollArea__Viewport"}),L5=V.forwardRef((({children:e,...t},n)=>{const{containerRef:r}=function(e={}){const{threshold:t=150,interactionTimeout:n=150}=e,r=V.useRef(null),a=V.useRef(!0),o=V.useRef(!1),i=V.useCallback((()=>{const e=r.current;return!!e&&e.scrollHeight-e.clientHeight-e.scrollTop<t}),[t]),s=V.useCallback(((e=!1)=>{const t=r.current;t&&!o.current&&t.scrollTo({top:t.scrollHeight,behavior:e?"smooth":"auto"})}),[]);return V.useEffect((()=>{const e=r.current;if(!e)return;let t;const s=()=>{o.current=!0,a.current=i(),window.clearTimeout(t),t=window.setTimeout((()=>{o.current=!1}),n)};return e.addEventListener("scroll",s,{passive:!0}),()=>{e.removeEventListener("scroll",s),window.clearTimeout(t)}}),[i,n]),V.useEffect((()=>{const e=r.current;if(!e)return;const t=new MutationObserver((e=>{e.some((e=>"childList"===e.type||"characterData"===e.type||"attributes"===e.type&&"style"===e.attributeName))&&a.current&&s(!0)}));return t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>t.disconnect()}),[s]),V.useEffect((()=>{r.current&&s()}),[s]),{containerRef:r,scrollToBottom:s,isNearBottom:i}}(),a=bB(n,r);return $f.jsx(P5,{ref:a,children:$f.jsx("div",{"data-part":"grid",style:{display:"grid"},children:e}),...t})})),D5=_B(c$,{_id:"aiChatContentScrollArea__Scrollbar"}),M5=_B(w$,{_id:"aiChatContentScrollArea__Thumb"}),F5=_B(M$,{_id:"aiChatContentScrollArea__Corner"}),j5=_B("div",{_id:"aiChatMessages"}),B5=e=>{const t=Cj(),{children:n,...r}=e;return $f.jsx(j5,{children:CP(n,t),...r})},H5=_B("div",{_id:"aiChatDisclaimer"}),z5=V.memo((e=>{var t;const{aiChatSettings:n}=WO();return(null==(t=n.disclaimerSettings)?void 0:t.isEnabled)?$f.jsx(qU,{openDelay:100,children:$f.jsx(H5,{...e})}):null})),U5=_B("span",{_id:"aiChatDisclaimerLabel"}),$5=V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.disclaimerSettings;return $f.jsx(U5,{children:null==n?void 0:n.label,...e})})),G5=_B(YU,{_id:"aiChatDisclaimerTrigger",children:$f.jsx(wW,{iconKey:"info"})}),V5=_B(KU,{_id:"aiChatDisclaimerContent"}),W5=e=>$f.jsx(V5,{side:"top",sideOffset:8,align:"end",alignOffset:-10,...e}),q5=_B(Z2,{_id:"aiChatDisclaimerText"}),Y5=V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.aiAssistantName,r=t.disclaimerSettings,a=(null==r?void 0:r.tooltip)||`Information provided by ${n||"this AI assistant"} is not guaranteed to be accurate or comprehensive.`;return $f.jsx(q5,{shouldOpenLinksInNewTab:!0,children:a,...e})})),K5=_B(XU,{_id:"aiChatDisclaimerArrow"}),X5=_B("div",{_id:"aiChatExampleQuestions"}),Q5=e=>{var t;const{aiChatSettings:n}=WO(),{messages:r}=Cj();return!(null==(t=n.exampleQuestions)?void 0:t.length)||r.length?null:$f.jsx(X5,{...e})},Z5=_B("h3",{_id:"aiChatExampleQuestionsLabel"}),J5=V.memo((e=>{const{aiChatSettings:t}=WO();return $f.jsx(Z5,{children:t.exampleQuestionsLabel,...e})})),e3=_B("div",{_id:"aiChatExampleQuestionsList"}),t3=V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.exampleQuestions,{children:r,...a}=e;return $f.jsx(e3,{children:CP(r,n),...a})})),n3=_B("div",{_id:"aiChatExampleQuestion"}),r3=V.forwardRef(((e,t)=>{const{aiChatSettings:n}=WO(),r=n.isFirstExampleQuestionHighlighted;return $f.jsx(n3,{ref:t,"data-highlight":_P(r),...e})})),a3=_B("button",{_id:"aiChatExampleQuestionButton"}),o3=e=>{const{question:t,onClick:n,...r}=e,{handleSubmit:a}=Cj();return $f.jsx(a3,{onClick:a5(n,(()=>a(t))),children:t,...r})};_B("div",{_id:"aiChatWorkflows"});const i3=_B("h3",{_id:"aiChatWorkflowsLabel"});V.memo((e=>{const{aiChatSettings:t}=WO();return $f.jsx(i3,{children:t.workflowsHeader,...e})}));const s3=_B("div",{_id:"aiChatWorkflowsList"});V.memo((e=>{const{aiChatSettings:t}=WO(),n=t.workflows,{children:r,...a}=e;return $f.jsx(s3,{children:CP(r,n),...a})})),_B("button",{_id:"aiChatWorkflow"}),_B((function(e){return FV({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11.983 1.907a.75.75 0 0 0-1.292-.657l-8.5 9.5A.75.75 0 0 0 2.75 12h6.572l-1.305 6.093a.75.75 0 0 0 1.292.657l8.5-9.5A.75.75 0 0 0 17.25 8h-6.572l1.305-6.093Z"},child:[]}]})(e)}),{_id:"aiChatWorkflow__Icon"});const l3=_B("div",{_id:"aiChatMessageWrapper"}),c3=e=>{const{message:t,...n}=e;return"system"===t.role?null:$f.jsx(Vj,{message:t,children:$f.jsx(l3,{"data-role":t.role,...n})})},u3=V.memo((e=>{const{message:t,...n}=e,{aiChatSettings:r,baseSettings:a}=WO(),o=r.aiAssistantName,i=o?`Hi, I'm ${o}!`:"Hi!",s=r.chatSubjectName??a.organizationDisplayName,l=`${i} \n\n I'm an AI assistant trained on documentation, help articles, and other content.`,c=s?`\n\n Ask me anything about \`${s}\`.`:"\n\n Let me know how I can help.",u={content:r.introMessage??`${l}${c}`,id:"__intro__",...t,role:"assistant",links:[]};return $f.jsx(c3,{message:u,...n})})),d3=_B("div",{_id:"aiChatMessageHeader"}),p3=e=>{const{message:t}=Wj();return $f.jsx(d3,{"data-role":t.role,...e})},f3=_B("div",{_id:"aiChatMessageLoading"}),h3=e=>{var t;const{isLoading:n,isStreaming:r,messages:a}=Cj(),{message:o}=Wj();return(null==(t=a.at(-1))?void 0:t.id)===(null==o?void 0:o.id)&&"assistant"===o.role&&n&&!r?$f.jsx(f3,{children:"Thinking...",...e}):null},m3=_B("div",{_id:"aiChatMessageAvatar"}),g3=e=>{const{message:t}=Wj();return $f.jsx(m3,{"data-role":t.role,...e})},y3=_B(ZB,{_id:"aiChatMessageAvatarContent"}),b3=e=>{const{message:t}=Wj(),{baseSettings:n}=WO();return $f.jsx(y3,{"data-username":_P("user"===t.role&&!!n.userProperties.name),"data-role":t.role,...e})},v3=_B(eH,{_id:"aiChatMessageAvatarFallback"}),w3=V.memo((e=>{const{baseSettings:t}=WO(),{message:n}=Wj();return t.userProperties.name?$f.jsx(v3,{"data-role":n.role,children:TP(t.userProperties.name),...e}):null})),k3=_B(JB,{_id:"aiChatMessageAvatarImage"}),x3=V.memo((e=>{const{onLoadingStatusChange:t,...n}=e,{aiChatSettings:r,baseSettings:{userProperties:a}}=WO(),{message:o}=Wj(),{aiAssistantAvatar:i}=r??{},s="string"==typeof i?i:null==i?void 0:i.light,l=Zj(s,("string"==typeof i?i:null==i?void 0:i.dark)??s),[c,u]=V.useState(l);V.useEffect((()=>{u(l)}),[l]);return"user"===o.role?a.name?null:r.userAvatar?$f.jsx(k3,{"data-type":"image","data-role":o.role,src:r.userAvatar,...e}):$f.jsx(HV,{"data-type":"icon","data-role":o.role,...e}):c?$f.jsx(k3,{src:c,"data-type":"image","data-role":o.role,onLoadingStatusChange:a5(t,(e=>{"error"===e&&u(null)})),...n}):$f.jsx(BV,{"data-type":"icon","data-role":o.role,...e})})),E3=_B("span",{_id:"aiChatMessageName"}),S3=e=>{const{message:t}=Wj();return $f.jsx(E3,{"data-role":t.role,children:"user"===t.role?"You":"AI assistant",...e})},_3=_B("div",{_id:"aiChatMessageContentWrapper"}),T3=e=>{const{message:t}=Wj();return $f.jsx(_3,{"data-role":t.role,...e})},C3=_B("div",{_id:"aiChatMessageContent"}),A3=e=>{const{message:t}=Wj();return $f.jsx(C3,{"data-role":t.role,...e})},N3=_B("div",{_id:"aiChatMessageAttachments"}),I3=_B("div",{_id:"aiChatMessageAttachments__List"}),R3=e=>{var t,n;const{children:r,...a}=e,{message:o}=Wj(),i=null==(n=null==(t=o.metadata)?void 0:t.attributes)?void 0:n.attachments;return i?$f.jsx(I3,{children:CP(r,i),...a}):null},O3=_B("div",{_id:"aiChatMessageAttachments__Item"}),P3=e=>{const{attachment:t,onClick:n,...r}=e,{selectItem:a,onOpen:o}=$j();return $f.jsx(Vf,{attachment:t,children:$f.jsx(O3,{onClick:a5(n,(()=>{a(t),o()})),...r})})},L3=_B(bW,{_id:"aiChatMessageAttachments__ItemIcon"}),D3=e=>{var t;const{attachment:n}=Wf(),r=null==(t=n.contentType)?void 0:t.attachmentIcon;return r?$f.jsx(L3,{iconSettings:r,...e}):null},M3=_B("span",{_id:"aiChatMessageAttachments__ItemTitle"}),F3=e=>{const{attachment:t}=Wf();return $f.jsx(M3,{children:t.title,...e})},j3=_B(EV,{_id:"aiChatMessageAttachmentsPreview"}),B3=_B(SV,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),H3=_B(_V,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),z3=_B(TV,{_id:"aiChatMessageAttachmentsPreview__Header"}),U3=e=>{const{selectedItem:t}=$j();return $f.jsx(z3,{children:(null==t?void 0:t.title)||"Attachment",...e})},$3=_B(CV,{_id:"aiChatMessageAttachmentsPreview__Close",children:$f.jsx(wW,{iconKey:"close"})}),G3=_B("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),V3=e=>{const{selectedItem:t}=$j();return $f.jsx(G3,{children:null==t?void 0:t.content,...e})},W3=_B("div",{_id:"aiChatMessage"}),q3=e=>{const{aiChatSettings:t}=WO(),{componentStyles:n,...r}=e,{message:a}=Wj(),{logEvent:o}=dP(),i=AP(a),{conversation:s}=XO();return"user"===a.role?$f.jsx(W3,{"data-role":a.role,children:i,...r}):$f.jsx(W3,{"data-role":a.role,...r,children:$f.jsx(Z2,{children:i,componentStyles:n,shouldOpenLinksInNewTab:t.shouldOpenLinksInNewTab,onLinkClick:(e,t)=>{o({eventName:"assistant_message_inline_link_opened",properties:{title:null==t?void 0:t.toString(),url:e}})},onCodeCopy:(e,t)=>{o({eventName:"assistant_code_block_copied",properties:{conversation:s,language:e,code:t}})}})})},Y3=_B("div",{_id:"aiChatMessageActions"}),K3=e=>{var t;const{isLoading:n,messages:r}=Cj(),{message:a}=Wj();return(null==(t=r.at(-1))?void 0:t.id)===(null==a?void 0:a.id)&&n||"user"===a.role?null:$f.jsx(Y3,{...e})},X3=_B("div",{_id:"aiChatMessageToolActions"}),Q3=e=>{const{children:t,...n}=e,{message:r}=Wj(),{messageToolCalls:a}=Cj(),o=a[r.id]||[];return $f.jsx(X3,{children:CP(t,o),...n})},Z3=e=>{const{onClick:t,action:n,...r}=e,{handleAction:a}=n5(n),o=n.label||"Contact Support",i=$f.jsxs($f.Fragment,{children:[n.icon&&$f.jsx(bW,{iconSettings:n.icon}),o]}),s=n.action.type,l=_B("open_link"===s?"a":"button",{_id:"aiChatMessageToolAction",children:i,"data-type":n.action.type,..."open_link"===s&&{href:n.action.url,target:"_blank",rel:"noopener"},onClick:a5(t,(()=>{a()}))});return $f.jsx(l,{...r})},J3=_B("button",{_id:"aiChatMessageAction"}),e4=e=>{var t,n,r;const{action:a,onClick:o,className:i,...s}=e,{conversation:l}=XO(),{message:c}=Wj(),{isStreaming:u,messages:d}=Cj(),[p,f]=A2(),{feedback:h,submitPositiveFeedback:m,setCurrentFeedback:g,currentFeedback:y}=kD(),{logEvent:b}=dP(),[v,w]=function(){const[e,t]=V.useState(!1);return[e,V.useCallback((async()=>(t(!0),setTimeout((()=>{t(!1)}),1e3),!0)),[])]}(),{baseSettings:{privacyPreferences:k}}=WO(),{optOutAllAnalytics:x}=k,E=(null==(t=d.at(-1))?void 0:t.id)===(null==c?void 0:c.id),S="assistant"===c.role;if(E&&u||!S||{copy:!1,upvote:x,downvote:x}[a])return null;const _={copy(){f(AP(c)),b({eventName:"assistant_message_copied",properties:{conversation:l}})},upvote(){m(c.id).then((()=>{w()}))},downvote(){g(c.id)}},T={copy:$f.jsx(wW,{iconKey:p?"messageCopied":"messageCopy"}),upvote:$f.jsx(wW,{iconKey:v?"messageCopied":"thumbsUp"}),downvote:$f.jsx(wW,{iconKey:"thumbsDown"})},C={copy:{"data-copied":_P(p)},upvote:{"data-upvoted":_P("positive"===(null==(n=h[c.id])?void 0:n.type))},downvote:{"data-downvoted":_P("negative"===(null==(r=h[c.id])?void 0:r.type)),"data-state":null===y?"closed":"open"}};return $f.jsx(J3,{"data-action":a,...C[a],children:T[a],"aria-label":{copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"}[a],className:`${i} ${a}`,onClick:a5(o,_[a]),...s})},t4=_B("div",{_id:"aiChatMessageSources"}),n4=_B("div",{_id:"aiChatMessageSources__Header"}),r4=e=>$f.jsx(n4,{children:"Sources",...e}),a4=_B("div",{_id:"aiChatMessageSources__List"}),o4=e=>{const{message:t}=Wj(),{children:n,...r}=e,{baseSettings:{transformSource:a,organizationDisplayName:o},aiChatSettings:{shouldOpenLinksInNewTab:i},searchSettings:{tabs:s}}=WO();if("assistant"!==t.role)return null;const l=t.links.map((e=>{const t=v5(e,"chatSourceItem",{organizationDisplayName:o,tabs:s,transformSource:a}),n=void 0!==t.shouldOpenInNewTab?t.shouldOpenInNewTab:i;return{...t,isExternal:n}}));return $f.jsx(a4,{children:CP(n,l),...r})},i4=_B(xW,{_id:"aiChatMessageSourceItem"}),s4=e=>{var t;const{source:n,onClick:r,...a}=e,{logEvent:o}=dP(),{conversation:i}=XO();return $f.jsx(fB,{source:n,children:$f.jsx(i4,{"data-type":n.type,appendToUrl:n.appendToUrl,isExternal:n.isExternal,"data-breadcrumbs":!!(null==(t=n.breadcrumbs)?void 0:t.length),onClick:a5(r,(()=>{o({eventName:"assistant_source_item_clicked",properties:{conversation:i,link:n}})})),...a})})},l4=_B("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),c4=e=>{var t;const{source:n}=hB();return(null==(t=n.breadcrumbs)?void 0:t.length)?$f.jsx(l4,{"data-type":n.type,...e}):null},u4=_B(wW,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),d4=_B(bW,{_id:"aiChatMessageSourceItem__Icon"}),p4=e=>{const{source:t}=hB();return $f.jsx(d4,{iconSettings:t.icon,"data-type":t.type,...e})},f4=_B("span",{_id:"aiChatMessageSourceItem__Title"}),h4=e=>{const{source:t}=hB();return $f.jsx(f4,{"data-type":t.type,children:t.title,...e})},m4=_B("span",{_id:"aiChatMessageSourceItem__Tag"}),g4=e=>{const{source:t}=hB();return $f.jsx(m4,{"data-type":t.type,...e})},y4=_B("span",{_id:"aiChatMessageSourceItem__Description"}),b4=e=>{const{source:t}=hB(),{children:n,...r}=e,a=V.useMemo((()=>t.description?r5(t.description):[]),[t.description]);return a.length?$f.jsx(y4,{"data-type":t.type,children:CP(n,a),...r}):null},v4=_B("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),w4=e=>{const{part:t,...n}=e,{source:r}=hB();return"string"==typeof t?t:$f.jsx(v4,{"data-type":r.type,children:t.content,"data-highlighted":_P(t.highlighted),...n})},k4=_B(wW,{_id:"aiChatMessageSourceItem__Indicator"}),x4=e=>{const{source:t}=hB();return $f.jsx(k4,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab",...e})},E4=_B("div",{_id:"aiChatFooter"}),S4=_B("div",{_id:"aiChatInput__Fieldset"}),_4=_B("div",{_id:"aiChatInput__Group"}),T4=_B("textarea",{_id:"aiChatInput"}),C4=V.forwardRef((({onChange:e,onKeyDown:t,...n},r)=>{const{handleInputChange:a,handleInputKeyDown:o,input:i,error:s,shouldAutoFocusInput:l,inputRef:c}=Cj(),{aiChatSettings:u}=WO(),d=bB(r,c),p=rD();return V.useEffect((()=>{requestAnimationFrame((()=>{l&&(null==c?void 0:c.current)&&(c.current.focus(),c.current.selectionStart=c.current.value.length)}))}),[l,c,null==p?void 0:p.isOpen]),$f.jsx(T4,{asChild:!0,ref:d,maxLength:99999,placeholder:u.placeholder,value:i,onChange:a5(e,a),onKeyDown:a5(t,o),disabled:!!s||u.isViewOnly,...n,children:$f.jsx(zB,{})})})),A4=_B("button",{_id:"aiChatInput__SendButton"}),N4=e=>{const{handleSubmit:t,isSubmitDisabled:n,error:r}=Cj(),{aiChatSettings:a}=WO(),{onClick:o,...i}=e;return $f.jsx(A4,{onClick:a5(o,(()=>t())),"aria-label":"Send message",disabled:n||!!r||a.isViewOnly,...i})},I4=_B(wW,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),R4=_B("div",{_id:"aiChatAttachmentsBar"}),O4=e=>{var t;const{selectedWorkflow:n}=Cj();return n&&(null==(t=n.supportedInputs)?void 0:t.length)?$f.jsx(Nj,{children:$f.jsx(R4,{...e})}):null},P4=_B("div",{_id:"aiChatAttachmentsBar__List"}),L4=e=>{const{children:t,...n}=e,{messageAttachments:r}=Cj();return $f.jsx(P4,{children:CP(t,r),...n})},D4=_B("div",{_id:"aiChatAttachmentsBar__Attachment"}),M4=e=>{const{attachment:t,...n}=e;return $f.jsx(Vf,{attachment:t,children:$f.jsx(D4,{...n})})},F4=_B(bW,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),j4=e=>{var t;const{attachment:n}=Wf(),r=null==(t=n.contentType)?void 0:t.attachmentIcon;return r?$f.jsx(F4,{iconSettings:r,...e}):null},B4=_B("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),H4=e=>{const{attachment:t}=Wf();return $f.jsx(B4,{children:t.title,...e})},z4=_B("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),U4=e=>{const{onClick:t,...n}=e,{attachment:r}=Wf(),{setMessageAttachments:a}=Cj();return $f.jsx(z4,{"aria-label":"Remove attachment",children:$f.jsx(wW,{iconKey:"close"}),onClick:a5(t,(()=>{a((e=>e.filter((e=>e.id!==r.id))))})),...n})},$4=_B("div",{_id:"aiChatAttachmentsBar__Actions"}),G4=_B(lj,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),V4=_B(xj,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:$f.jsx(wW,{iconKey:"info"})}),W4=_B(Sj,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),q4=_B(Ej,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:$f.jsxs($f.Fragment,{children:[$f.jsx(W4,{}),"Attachments will be kept in context for the entire conversation."]})}),Y4=_B("div",{_id:"aiChatAttachmentsBar__Inputs"}),K4=e=>{const{children:t,...n}=e,{selectedWorkflow:r}=Cj();return(null==r?void 0:r.supportedInputs)?$f.jsx(Y4,{children:CP(t,r.supportedInputs),...n}):null},X4=_B("button",{_id:"aiChatAttachmentsBar__Input"}),Q4=e=>{const{input:t,onClick:n,...r}=e,{selectedWorkflow:a,messageAttachments:o,setMessageAttachments:i}=Cj(),{selectInput:s,onOpen:l}=Ij();return $f.jsx(X4,{children:t.displayName,onClick:a5(n,(()=>{if("FUNCTIONAL_MULTI_ATTACHMENT"===t.type){if(!a)return;return t.onInvoke(a,t,i,[...o])}s(t),l()})),...r})},Z4=_B((function(e){return FV({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"},child:[]}]})(e)}),{_id:"aiChatAttachmentsBar__InputIcon"}),J4=_B(EV,{_id:"aiChatAttachmentsBar__Modal"}),e6=_B(SV,{_id:"aiChatAttachmentsBar__ModalOverlay"}),t6=_B(_V,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),n6=_B("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),r6=_B(TV,{_id:"aiChatAttachmentsBar__ModalHeading"}),a6=e=>{const{selectedInput:t}=Ij(),n=`Add ${null==t?void 0:t.displayName}`;return $f.jsx(r6,{children:n,...e})},o6=_B("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),i6=e=>{var t;const{selectedInput:n}=Ij(),r=null==(t=null==n?void 0:n.workflowModalProps)?void 0:t.modalHelpText;return r?$f.jsx(o6,{children:r,...e}):null},s6=_B("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),l6=_B(CV,{_id:"aiChatAttachmentsBar__ModalClose",children:$f.jsx(wW,{iconKey:"close"})}),c6=_B("div",{_id:"aiChatAttachmentsBar__ModalBody"}),u6=_B("form",{_id:"aiChatAttachmentsBar__Form"}),d6=e=>{const{onSubmit:t,...n}=e,{form:r}=Ij();return $f.jsx(u6,{onSubmit:a5(t,r.onSubmit),...n})},p6=_B("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),f6=_B("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),h6=e=>{const{form:t,selectedInput:n}=Ij();return $f.jsx(f6,{htmlFor:`${null==n?void 0:n.id}-title`,children:t.labels.title,...e})},m6=_B("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),g6=e=>{const{onChange:t,...n}=e,{form:r,selectedInput:a}=Ij();return $f.jsx(m6,{name:"title",value:r.data.title,id:`${null==a?void 0:a.id}-title`,"data-invalid":_P(!!r.errors.title),"aria-invalid":!!r.errors.title,onChange:a5(t,r.onChange),...n})},y6=_B("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),b6=e=>{const{form:t}=Ij();return t.errors.title?$f.jsx(y6,{"aria-live":"polite",children:t.errors.title,...e}):null},v6=_B("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),w6=_B("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),k6=e=>{const{form:t,selectedInput:n}=Ij();return $f.jsx(w6,{htmlFor:`${null==n?void 0:n.id}-content`,children:t.labels.content,...e})},x6=_B("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),E6=e=>{const{onChange:t,...n}=e,{form:r,selectedInput:a}=Ij();return $f.jsx(x6,{asChild:!0,rows:4,name:"content",value:r.data.content,id:`${null==a?void 0:a.id}-content`,"data-invalid":_P(!!r.errors.content),"aria-invalid":!!r.errors.content,onChange:a5(t,r.onChange),...n,children:$f.jsx(zB,{maxRows:10})})},S6=_B("span",{_id:"aiChatAttachmentsBar__FormContentError"}),_6=e=>{const{form:t}=Ij();return t.errors.content?$f.jsx(S6,{"aria-live":"polite",children:t.errors.content,...e}):null},T6=_B("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),C6=_B("div",{_id:"aiChatActionBar"}),A6=_B("div",{_id:"aiChat__ChatActions"}),N6=_B("div",{_id:"aiChatTagline__Container"}),I6=_B("span",{_id:"aiChatTagline__Text",children:"Powered by"}),R6=_B(t5,{_id:"aiChatTagline__Logo"}),O6=_B("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),P6=_B("div",{_id:"aiChat__ChatAction"}),L6=e=>{const{action:t,onClick:n,className:r,...a}=e,{clear:o,stop:i,isLoading:s,messages:l,selectedWorkflow:c}=Cj(),{conversation:u}=XO(),{aiChatSettings:d,baseSettings:p}=WO(),{logEvent:f}=dP(),[h,m]=A2(),[g,y]=A2();if({help:!1,copy:0===l.length||!d.isCopyChatButtonVisible||s,share:0===l.length||!d.isShareButtonVisible||!u.id||!!c||s,clear:0===l.length||d.isViewOnly||s,stop:!s}[t])return null;const b={help:()=>{},copy:()=>{const e=l.map((e=>{var t,n;const r=`**${"assistant"===e.role?"AI Assistant":"User"}**`,a=AP(e),o=gP(null==(n=null==(t=e.metadata)?void 0:t.attributes)?void 0:n.attachments);return`${r}\n\n${a}${o?`\n\n**Attachments**\n\n${o}`:""}`})).join("\n\n---\n\n");m(e)},share:async()=>{const e={visibility:"public",tags:[],userProperties:{},messages:u.messages.map((e=>({...e,id:Date.now().toString()+e.id,conversationId:void 0})))},{apiKey:t,analyticsApiBaseUrl:n}=p,r=await ub("",e,t,n);if(r){const e=`${d.shareChatUrlBasePath}?${qO}=${null==r?void 0:r.id}`;y(e),f({eventName:"chat_share_button_clicked",properties:{sharedConversationId:null==r?void 0:r.id,originalConversationId:u.id,sharedChatUrl:e,conversation:r}})}},clear:o,stop:i},v={copy:h,share:g};return $f.jsx(lj,{delayDuration:0,open:v[t],children:$f.jsx(P6,{"data-type":t,"data-copied":_P(h||g),className:`${r} ${t}`,children:$f.jsx(M6,{action:t}),onClick:a5(n,b[t]),...a})})},D6=_B(xj,{_id:"aiChat__ChatActionLabel"}),M6=e=>{const{action:t,...n}=e,{aiChatSettings:r}=WO(),a=r.toolbarButtonLabels??{},o={help:a.getHelp??"Get Help",copy:a.copyChat??"Copy",share:a.share??"Share",clear:a.clear??"Clear",stop:a.stop??"Stop"};return $f.jsx(D6,{children:o[t],...n})},F6=_B(hj,{_id:"aiChat__ChatActionFeeback"}),j6=e=>{const{action:t,children:n,...r}=e;return $f.jsxs(F6,{sideOffset:5,...r,children:[$f.jsx(Sj,{}),n||{copy:"Copied!",share:"Link copied!"}[t]]})},B6=_B($z,{_id:"aiChatHelpActions"}),H6=_B(L6,{_id:"aiChatHelpAction",action:"help"}),z6=_B("a",{_id:"aiChatHelpAction",target:"_blank",rel:"noreferrer"}),U6=e=>{const{action:t,onClick:n,...r}=e,{handleAction:a,logHelpAction:o}=n5(t),i=t.action.type,s={"aria-label":t.name,"data-name":t.name,children:t.name,onClick:a5(n,(()=>{a(),o()})),...r};return"open_link"===i?$f.jsx(z6,{href:t.action.url,...s}):$f.jsx(H6,{...s})},$6=_B(Gz,{_id:"aiChatHelpActions__Trigger"}),G6=V.memo((e=>{var t;const{aiChatSettings:n}=WO();return $f.jsx(L6,{action:"help",...e,asChild:!0,children:$f.jsx($6,{children:(null==(t=n.toolbarButtonLabels)?void 0:t.getHelp)??"Get Help"})})})),V6=_B(Vz,{_id:"aiChatHelpActions__Menu"}),W6=e=>$f.jsx(V6,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...e}),q6=_B(Wz,{_id:"aiChatHelpActions__MenuArrow"}),Y6=e=>{const{action:t,onClick:n,...r}=e,{handleAction:a,logHelpAction:o}=n5(t),{setOpen:i}=(()=>{const e=V.useContext(Fj);if(!e)throw new Error("useHelpMenu must be used within a HelpMenuProvider");return e})(),s=t.action.type,l=_B("open_link"===s?"a":"button",{_id:"aiChatHelpActions__MenuItem",children:t.name,"aria-label":t.name,"data-name":t.name,"data-type":t.action.type,..."open_link"===s&&{href:t.action.url,target:"_blank",rel:"noopener"},onClick:a5(n,(()=>{a({onOpenForm:()=>i(!1)}),o()}))});return $f.jsx(l,{...r})},K6=_B(bW,{_id:"aiChatHelpActions_MenuItemIcon"}),X6=e=>{const{action:t,...n}=e;return t.icon?$f.jsx(K6,{iconSettings:t.icon,...n}):null},Q6=_B(EV,{_id:"aiChatFeedbackModal"}),Z6=_B(SV,{_id:"aiChatFeedbackModal__Overlay"}),J6=_B(_V,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),e8=_B(TV,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),t8=_B(CV,{_id:"aiChatFeedbackModal__Close",children:$f.jsx(wW,{iconKey:"close"})}),n8=_B("div",{_id:"aiChatFeedbackModal__Body"}),r8=_B("form",{_id:"aiChatFeedbackForm"}),a8=e=>{const{onSubmit:t,...n}=e,{submitNegativeFeedback:r,currentFeedback:a,setCurrentFeedback:o}=kD();return $f.jsx(r8,{onSubmit:a5(t,(e=>{e.preventDefault();const t=e.target,n=new FormData(t),i=Object.fromEntries(n.entries());a&&(r(a,i),o(null))})),...n})},o8=_B("div",{_id:"aiChatFeedbackItem"}),i8=e=>{const{name:t,...n}=e;return $f.jsx(Oj,{name:t,children:$f.jsx(o8,{...n})})},s8=_B(fH,{_id:"aiChatFeedbackItem__Checkbox"}),l8=e=>{const{name:t,focusItem:n}=Pj(),{onCheckedChange:r,...a}=e;return $f.jsx(s8,{id:`feedback-${t}`,name:t,onCheckedChange:a5(r,(e=>{var t;e&&(null==(t=null==n?void 0:n.current)||t.focus())})),...a})},c8=_B(hH,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:$f.jsx(e5,{})}),u8=_B("label",{_id:"aiChatFeedbackItem__Label"}),d8=e=>{const{name:t}=Pj();return $f.jsx(u8,{htmlFor:`feedback-${t}`,children:{unrelated_response:"Didn't answer my question",inaccurate_statement:"Inaccurate statement",inaccurate_code_snippet:"Inaccurate code snippet",irrelevant_citations:"Irrelevant citations"}[t],...e})},p8=_B("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),f8=e=>{const{name:t,focusItem:n}=Pj();return $f.jsx(p8,{ref:n,name:`${t}:description`,...e})},h8=_B("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),m8=_B("div",{_id:"aiChatForm__Wrapper"}),g8=e=>{const{form:t}=lD();return t?$f.jsx(m8,{...e}):null},y8=_B("form",{_id:"aiChatForm"}),b8=e=>{const{onSubmit:t,...n}=e,{handleSubmit:r,isSuccess:a}=lD();return a?null:$f.jsx(y8,{onSubmit:a5(t,r),...n})},v8=_B("button",{_id:"aiChatForm__Close",children:$f.jsx(wW,{iconKey:"close"})}),w8=e=>{const{onClick:t,...n}=e,{closeForm:r}=lD();return $f.jsx(v8,{onClick:a5(t,r),...n})},k8=_B("div",{_id:"aiChatForm__Header"}),x8=_B("h2",{_id:"aiChatForm__Heading"}),E8=e=>{const{form:t}=lD();return(null==t?void 0:t.heading)?$f.jsx(x8,{children:t.heading,...e}):null},S8=_B("span",{_id:"aiChatForm__Description"}),_8=e=>{const{form:t}=lD();return(null==t?void 0:t.description)?$f.jsx(S8,{children:t.description,...e}):null},T8=_B("div",{_id:"aiChatForm__Content"}),C8=e=>{const{children:t,...n}=e,{fields:r=[]}=lD();return $f.jsx(T8,{children:CP(t,r),...n})},A8=_B("div",{_id:"aiChatForm__Field"}),N8=e=>{const{field:t,autoFocus:n,...r}=e,{control:a,errors:o}=lD();return $f.jsx(bL,{name:t.name,control:a,rules:{required:t.isRequired?`${t.label} is required.`:void 0},render:({field:e})=>{const a=void 0!==e.value||"file"===t.inputType;return $f.jsx(Dj,{"data-invalid":_P(!!o[t.name]),field:t,fieldProps:e,autoFocus:n,children:a&&$f.jsx(A8,{"data-input-type":t.inputType,"data-hidden":_P(t.isHidden),...r})})}})},I8=_B("label",{_id:"aiChatForm__FieldLabel"}),R8=e=>{const{field:t}=Mj();return $f.jsx(I8,{"data-required":_P(t.isRequired),htmlFor:t.name,children:t.label,...e})},O8=_B("input",{_id:"aiChatForm__FieldText",type:"text"}),P8=e=>{const{field:t,error:n,fieldProps:{onChange:r,onBlur:a,...o},autoFocus:i}=Mj(),{onChange:s,onBlur:l,...c}=e;return $f.jsx(O8,{id:t.name,autoFocus:i,placeholder:"placeholder"in t?t.placeholder:void 0,"data-invalid":_P(!!n),onChange:a5(s,r),onBlur:a5(l,a),...o,...c})},L8=_B(P8,{_id:"aiChatForm__FieldEmail",type:"email"}),D8=_B("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),M8=e=>{const{field:t,error:n,fieldProps:{value:r,onChange:a,onBlur:o,...i},autoFocus:s}=Mj(),{onChange:l,onBlur:c,...u}=e;return $f.jsx(D8,{id:t.name,autoFocus:s,"data-value":r,"data-invalid":_P(!!n),...u,...i,onChange:a5(l,(e=>{const t=e.target.files;a(t)})),onBlur:a5(c,o)})},F8=_B(P8,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:$f.jsx(zB,{maxRows:8})}),j8=_B(fH,{_id:"aiChatForm__FieldCheckbox"}),B8=e=>{const{field:t,error:n,fieldProps:r,autoFocus:a}=Mj(),{onCheckedChange:o,...i}=e;return $f.jsx(j8,{id:t.name,name:t.name,autoFocus:a,"data-invalid":_P(!!n),checked:r.value,onCheckedChange:a5(o,r.onChange),...i})},H8=_B(hH,{_id:"aiChatForm__FieldCheckboxIndicator",children:$f.jsx(e5,{})}),z8=_B(DG,{_id:"aiChatForm__FieldSelect"}),U8=_B(MG,{_id:"aiChatForm__FieldSelect__Trigger"}),$8=_B(FG,{_id:"aiChatForm__FieldSelect__Value"}),G8=_B(jG,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:$f.jsx(bW,{iconSettings:{builtIn:"LuChevronDown"}})}),V8=_B(BG,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),W8=_B(HG,{_id:"aiChatForm__FieldSelect__Viewport"}),q8=_B(zG,{_id:"aiChatForm__FieldSelect__Item"}),Y8=_B(UG,{_id:"aiChatForm__FieldSelect__ItemText"}),K8=_B($G,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:$f.jsx(bW,{iconSettings:{builtIn:"LuCheck"}})}),X8=_B("span",{_id:"aiChatForm__FieldError"}),Q8=e=>{var t;const{error:n}=Mj();return n?$f.jsx(X8,{children:null==(t=n.message)?void 0:t.toString(),...e}):null},Z8=_B("span",{_id:"aiChatForm__Error"}),J8=e=>{const{formError:t}=lD();return t?$f.jsx(Z8,{children:t.message,...e}):null},e9=_B("div",{_id:"aiChatForm__Footer"}),t9=_B("button",{_id:"aiChatForm__Cancel",children:"Cancel"}),n9=e=>{const{onClick:t,...n}=e,{closeForm:r}=lD();return $f.jsx(t9,{onClick:a5(t,r),...n})},r9=_B("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),a9=e=>{const{onClick:t,...n}=e,{isSubmitting:r}=lD();return $f.jsx(r9,{disabled:r,...n})},o9=_B("div",{_id:"aiChatForm__Success"}),i9=e=>{const{isSuccess:t}=lD();return t?$f.jsx(o9,{...e}):null},s9=_B("h2",{_id:"aiChatForm__SuccessHeading"}),l9=e=>{const{form:t}=lD();return $f.jsx(s9,{children:null==t?void 0:t.successView.heading,...e})},c9=_B(Z2,{_id:"aiChatForm__SuccessMessage"}),u9=_B("button",{_id:"aiChatForm__SuccessButton"}),d9=e=>{var t;const{onClick:n,...r}=e,{form:a,closeForm:o}=lD(),i=null==(t=null==a?void 0:a.successView)?void 0:t.doneButton;if(!i)return null;const s=i.icon&&$f.jsx(bW,{iconSettings:i.icon}),l=i.label;return $f.jsx(u9,{onClick:a5(n,o),children:$f.jsxs($f.Fragment,{children:[s,l]}),...r})};var p9="Dialog",[f9,h9]=TD(p9),[m9,g9]=f9(p9),y9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=V.useRef(null),l=V.useRef(null),[c=!1,u]=qF({prop:r,defaultProp:a,onChange:o});return $f.jsx(m9,{scope:t,triggerRef:s,contentRef:l,contentId:FO(),titleId:FO(),descriptionId:FO(),open:c,onOpenChange:u,onOpenToggle:V.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};y9.displayName=p9;var b9="DialogTrigger";V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(b9,n),o=_D(t,a.triggerRef);return $f.jsx(PD.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":L9(a.open),...r,ref:o,onClick:xD(e.onClick,a.onOpenToggle)})})).displayName=b9;var v9="DialogPortal",[w9,k9]=f9(v9,{forceMount:void 0}),x9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=g9(v9,t);return $f.jsx(w9,{scope:t,forceMount:n,children:V.Children.map(r,(e=>$f.jsx(VF,{present:n||o.open,children:$f.jsx(GF,{asChild:!0,container:a,children:e})})))})};x9.displayName=v9;var E9="DialogOverlay",S9=V.forwardRef(((e,t)=>{const n=k9(E9,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=g9(E9,e.__scopeDialog);return o.modal?$f.jsx(VF,{present:r||o.open,children:$f.jsx(_9,{...a,ref:t})}):null}));S9.displayName=E9;var _9=V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(E9,n);return $f.jsx(xz,{as:AD,allowPinchZoom:!0,shards:[a.contentRef],children:$f.jsx(PD.div,{"data-state":L9(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),T9="DialogContent",C9=V.forwardRef(((e,t)=>{const n=k9(T9,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=g9(T9,e.__scopeDialog);return $f.jsx(VF,{present:r||o.open,children:o.modal?$f.jsx(A9,{...a,ref:t}):$f.jsx(N9,{...a,ref:t})})}));C9.displayName=T9;var A9=V.forwardRef(((e,t)=>{const n=g9(T9,e.__scopeDialog),r=V.useRef(null),a=_D(t,n.contentRef,r);return V.useEffect((()=>{const e=r.current;if(e)return LH(e)}),[]),$f.jsx(I9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xD(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:xD(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:xD(e.onFocusOutside,(e=>e.preventDefault()))})})),N9=V.forwardRef(((e,t)=>{const n=g9(T9,e.__scopeDialog),r=V.useRef(!1),a=V.useRef(!1);return $f.jsx(I9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),I9=V.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=g9(T9,n),l=V.useRef(null),c=_D(t,l);return gH(),$f.jsxs($f.Fragment,{children:[$f.jsx(kH,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:$f.jsx(zD,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":L9(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),$f.jsxs($f.Fragment,{children:[$f.jsx(j9,{titleId:s.titleId}),$f.jsx(B9,{contentRef:l,descriptionId:s.descriptionId})]})]})})),R9="DialogTitle";V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(R9,n);return $f.jsx(PD.h2,{id:a.titleId,...r,ref:t})})).displayName=R9;var O9="DialogDescription";V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(O9,n);return $f.jsx(PD.p,{id:a.descriptionId,...r,ref:t})})).displayName=O9;var P9="DialogClose";function L9(e){return e?"open":"closed"}V.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=g9(P9,n);return $f.jsx(PD.button,{type:"button",...r,ref:t,onClick:xD(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=P9;var D9="DialogTitleWarning",[M9,F9]=function(e,t){const n=V.createContext(t),r=e=>{const{children:t,...r}=e,a=V.useMemo((()=>r),Object.values(r));return $f.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=V.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(D9,{contentName:T9,titleName:R9,docsSlug:"dialog"}),j9=({titleId:e})=>{const t=F9(D9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return V.useEffect((()=>{if(e){document.getElementById(e)||console.error(n)}}),[n,e]),null},B9=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${F9("DialogDescriptionWarning").contentName}}.`;return V.useEffect((()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");if(t&&a){document.getElementById(t)||console.warn(n)}}),[n,e,t]),null},H9=y9,z9=x9,U9=S9,$9=C9,G9=.999,V9=/[\\\/_+.#"@\[\(\{&]/,W9=/[\\\/_+.#"@\[\(\{&]/g,q9=/[\s-]/,Y9=/[\s-]/g;function K9(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?1:.99;var s=`${a},${o}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,p=r.charAt(o),f=n.indexOf(p,a),h=0;f>=0;)(l=K9(e,t,n,r,f+1,o+1,i))>h&&(f===a?l*=1:V9.test(e.charAt(f-1))?(l*=.8,(u=e.slice(a,f-1).match(W9))&&a>0&&(l*=Math.pow(G9,u.length))):q9.test(e.charAt(f-1))?(l*=.9,(d=e.slice(a,f-1).match(Y9))&&a>0&&(l*=Math.pow(G9,d.length))):(l*=.17,a>0&&(l*=Math.pow(G9,f-a))),e.charAt(f)!==t.charAt(o)&&(l*=.9999)),(l<.1&&n.charAt(f-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(f-1)!==r.charAt(o))&&.1*(c=K9(e,t,n,r,f+1,o+2,i))>l&&(l=.1*c),l>h&&(h=l),f=n.indexOf(p,f+1);return i[s]=h,h}function X9(e){return e.toLowerCase().replace(Y9," ")}function Q9(e,t,n){return K9(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,X9(e),X9(t),0,0,{})}var Z9={exports:{}},J9={},e7=V;var t7="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n7=e7.useState,r7=e7.useEffect,a7=e7.useLayoutEffect,o7=e7.useDebugValue;function i7(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!t7(e,n)}catch(r){return!0}}var s7="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=n7({inst:{value:n,getSnapshot:t}}),a=r[0].inst,o=r[1];return a7((function(){a.value=n,a.getSnapshot=t,i7(a)&&o({inst:a})}),[e,n,t]),r7((function(){return i7(a)&&o({inst:a}),e((function(){i7(a)&&o({inst:a})}))}),[e]),o7(n),n};J9.useSyncExternalStore=void 0!==e7.useSyncExternalStore?e7.useSyncExternalStore:s7,Z9.exports=J9;var l7=Z9.exports;const c7='[cmdk-group=""]',u7='[cmdk-group-items=""]',d7='[cmdk-item=""]',p7=`${d7}:not([aria-disabled="true"])`,f7="cmdk-item-select",h7="data-value",m7=(e,t,n)=>Q9(e,t,n??[]),g7=V.createContext(void 0),y7=()=>V.useContext(g7),b7=V.createContext(void 0),v7=()=>V.useContext(b7),w7=V.createContext(void 0),k7=V.forwardRef(((e,t)=>{const n=D7((()=>({search:"",value:e.value??e.defaultValue??"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}))),r=D7((()=>new Set)),a=D7((()=>new Map)),o=D7((()=>new Map)),i=D7((()=>new Set)),s=P7(e),{label:l,children:c,value:u,onValueChange:d,filter:p,shouldFilter:f,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,b=FO(),v=FO(),w=FO(),k=V.useRef(null),x=B7();L7((()=>{if(void 0!==u){const e=u.trim();n.current.value=e,S.emit()}}),[u]),L7((()=>{x(6,I)}),[]);const E=BO(),S=V.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,o,i,l,c;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),C(),x(1,A);else if("value"===e){const e=null==(o=null==(a=null==E?void 0:E.shadowHost)?void 0:a.shadowRoot)?void 0:o.activeElement;if((null==e?void 0:e.hasAttribute("cmdk-input"))||x(1,(()=>{const e=R();null==e||e.focus()})),x(7,(()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,S.emit()})),r||x(5,I),void 0!==(null==(i=s.current)?void 0:i.value)){const e=t??"";return void(null==(c=(l=s.current).onValueChange)||c.call(l,e))}}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),_=V.useMemo((()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),x(2,(()=>{C(),S.emit()})))},item:(e,t)=>{var i,s;return r.current.add(e),t&&(a.current.has(t)?null==(s=null==(i=a.current)?void 0:i.get(t))||s.add(e):a.current.set(t,new Set([e]))),x(3,(()=>{N(),C(),n.current.value||A(),S.emit()})),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);const t=R();x(4,(()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&A(),S.emit()}))}},group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>!!s.current.shouldFilter,label:l||e["aria-label"]||"",getDisablePointerSelection:()=>!!s.current.disablePointerSelection,listId:b,inputId:w,labelId:v,listInnerRef:k})),[]);function T(e,t){var r;const a=(null==(r=s.current)?void 0:r.filter)??m7;return e?null==a?void 0:a(e,n.current.search,t):0}function C(){if(!n.current.search||!1===s.current.shouldFilter)return;const e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{const r=a.current.get(n);let o=0;r.forEach((t=>{const n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));const r=k.current;O().sort(((t,n)=>{const r=t.getAttribute("id"),a=n.getAttribute("id");return(e.get(a)??0)-(e.get(r)??0)})).forEach((e=>{const t=e.closest(u7);if(t){const n=e.parentElement===t?e:e.closest(`${u7} > *`);n&&t.appendChild(n)}else{const t=e.parentElement===r?e:e.closest(`${u7} > *`);t&&(null==r||r.appendChild(t))}})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{var t,n;const r=null==(t=k.current)?void 0:t.querySelector(`${c7}[${h7}="${encodeURIComponent(e[0])}"]`);null==(n=null==r?void 0:r.parentElement)||n.appendChild(r)}))}function A(){const e=O().find((e=>"true"!==e.getAttribute("aria-disabled")&&e.getAttribute("data-value")!==Bee)),t=null==e?void 0:e.getAttribute(h7);S.setState("value",t||void 0)}function N(){var e,t;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let i=0;for(const a of r.current){const r=T((null==(e=o.current.get(a))?void 0:e.value)??"",(null==(t=o.current.get(a))?void 0:t.keywords)??[]);n.current.filtered.items.set(a,r),r>0&&i++}for(const[r,o]of a.current)for(const e of o){const t=n.current.filtered.items.get(e);if(t&&t>0){n.current.filtered.groups.add(r);break}}n.current.filtered.count=i}function I(){var e,t,n;const r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(c7))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${d7}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(p7))||[])}function P(e){const t=O()[e];t&&S.setState("value",t.getAttribute(h7))}function L(e){var t;const n=R(),r=O(),a=r.findIndex((e=>e===n));let o=r[a+e];(null==(t=s.current)?void 0:t.loop)&&(o=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),o&&S.setState("value",o.getAttribute(h7))}function D(e){const t=R();let n,r=null==t?void 0:t.closest(c7);for(;r&&!n;)r=e>0?R7(r,c7):O7(r,c7),n=null==r?void 0:r.querySelector(p7);n?S.setState("value",n.getAttribute(h7)):L(e)}const M=()=>P(O().length-1),F=e=>{e.preventDefault(),e.metaKey?M():e.altKey?D(1):L(1)},j=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?D(-1):L(-1)};return $f.jsxs(Qz.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":g&&e.ctrlKey&&j(e);break;case"ArrowUp":j(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();const t=R();if(t){const e=new Event(f7);t.dispatchEvent(e)}}}},children:[$f.jsx("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:z7,children:l}),H7(e,(e=>$f.jsx(b7.Provider,{value:S,children:$f.jsx(g7.Provider,{value:_,children:e})})))]})})),x7=V.forwardRef(((e,t)=>{var n;const{id:r}=e,a=V.useRef(null),o=V.useContext(w7),i=y7(),s=P7(e),l=(null==(n=s.current)?void 0:n.forceMount)??(null==o?void 0:o.forceMount);L7((()=>{if(!l)return i.item(r,null==o?void 0:o.id)}),[l]);const c=j7(r,a,[e.value,e.children,a],e.keywords),u=v7(),d=F7((e=>e.value&&e.value===c.current)),p=F7((e=>!!l||(!1===i.filter()||(!e.search||e.filtered.items.get(r)>0))));function f(){var e,t;h(),null==(t=(e=s.current).onSelect)||t.call(e,c.current)}function h(){u.setState("value",c.current,!0)}if(V.useEffect((()=>{const t=a.current;if(t&&!e.disabled)return t.addEventListener(f7,f),()=>t.removeEventListener(f7,f)}),[p,e.onSelect,e.disabled]),!p)return null;const{disabled:m,value:g,onSelect:y,forceMount:b,keywords:v,...w}=e;return $f.jsx(Qz.div,{ref:M7([a,t]),...w,id:r,"cmdk-item":"",role:"option","aria-disabled":Boolean(m),"aria-selected":Boolean(d),"data-disabled":Boolean(m),"data-selected":Boolean(d),onPointerMove:m||i.getDisablePointerSelection()?void 0:h,onClick:m?void 0:f,onFocus:m?void 0:h,children:e.children})})),E7=V.forwardRef(((e,t)=>{const{heading:n,children:r,forceMount:a,...o}=e,i=FO(),s=V.useRef(null),l=V.useRef(null),c=FO(),u=y7(),d=F7((e=>!!a||(!1===u.filter()||(!e.search||e.filtered.groups.has(i)))));L7((()=>u.group(i)),[]),j7(i,s,[e.value,e.heading,l]);const p=V.useMemo((()=>({id:i,forceMount:a})),[a]);return $f.jsxs(Qz.div,{ref:M7([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0,children:[n&&$f.jsx("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c,children:n}),H7(e,(e=>$f.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0,children:$f.jsx(w7.Provider,{value:p,children:e})})))]})})),S7=V.forwardRef(((e,t)=>{const{alwaysRender:n,...r}=e,a=V.useRef(null),o=F7((e=>!e.search));return n||o?$f.jsx(Qz.div,{ref:M7([a,t]),...r,"cmdk-separator":"",role:"separator"}):null})),_7=V.forwardRef(((e,t)=>{const{onValueChange:n,...r}=e,a=null!=e.value,o=v7(),i=F7((e=>e.search)),s=y7();return V.useEffect((()=>{null!=e.value&&o.setState("search",e.value)}),[e.value]),$f.jsx(Qz.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})})),T7=V.forwardRef(((e,t)=>{const{children:n,label:r="Suggestions",...a}=e,o=V.useRef(null),i=V.useRef(null),s=y7();return V.useEffect((()=>{if(i.current&&o.current){const e=i.current,t=o.current;let n;const r=new ResizeObserver((()=>{n=requestAnimationFrame((()=>{const n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")}))}));return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}}),[]),$f.jsx(Qz.div,{ref:M7([o,t]),...a,"cmdk-list":"",tabIndex:-1,"aria-label":r,id:s.listId,children:H7(e,(e=>$f.jsx("div",{ref:M7([i,s.listInnerRef]),"cmdk-list-sizer":"",children:e})))})})),C7=V.forwardRef(((e,t)=>{const{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...s}=e;return $f.jsx(H9,{open:n,onOpenChange:r,children:$f.jsxs(z9,{container:i,children:[$f.jsx(U9,{"cmdk-overlay":"",className:a}),$f.jsx($9,{"aria-label":e.label,"cmdk-dialog":"",className:o,children:$f.jsx(k7,{ref:t,...s})})]})})})),A7=V.forwardRef(((e,t)=>F7((e=>0===e.filtered.count))?$f.jsx(Qz.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),N7=V.forwardRef(((e,t)=>{const{progress:n,children:r,label:a="Loading...",...o}=e;return $f.jsx(Qz.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,children:H7(e,(e=>$f.jsx("div",{"aria-hidden":!0,children:e})))})})),I7=Object.assign(k7,{List:T7,Item:x7,Input:_7,Group:E7,Separator:S7,Dialog:C7,Empty:A7,Loading:N7});function R7(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function O7(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function P7(e){const t=V.useRef(e);return L7((()=>{t.current=e})),t}const L7="undefined"==typeof window?V.useEffect:V.useLayoutEffect;function D7(e){const t=V.useRef(void 0);return void 0===t.current&&(t.current=e()),t}function M7(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function F7(e){const t=v7(),n=()=>e(t.snapshot());return l7.useSyncExternalStore(t.subscribe,n,n)}function j7(e,t,n,r=[]){const a=V.useRef(void 0),o=y7();return L7((()=>{var i;const s=(()=>{var e;for(const t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=r.map((e=>e.trim()));o.value(e,s,l),null==(i=t.current)||i.setAttribute(h7,s),a.current=s})),a}const B7=()=>{const[e,t]=V.useState(),n=D7((()=>new Map));return L7((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function H7({asChild:e,children:t},n){return e&&V.isValidElement(t)?V.cloneElement(function(e){const t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}const z7={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function U7(e,t,n){try{const r=new URL(e);return r.searchParams.set(n,t),r.toString()}catch{return e}}const $7=e=>{var t,n,r;switch(e.rootRecord.__typename){case"DocumentationRecord":{const a=V7((null==(n=null==(t=e.pathHeadings)?void 0:t.at(-1))?void 0:n.content)||""),o=V7((null==(r=e.content)?void 0:r.content)||"");return e.preview||o||a}case"GitHubIssueRecord":case"StackOverflowRecord":case"DiscourseRecord":return e.rootRecord.body;default:return e.preview}},G7=e=>{switch(e.rootRecord.__typename){case"StackOverflowRecord":return e.rootRecord.markedAsCorrectAnswer?"Resolved":void 0;case"GitHubIssueRecord":return"CLOSED"===e.rootRecord.state?"Closed":void 0}},V7=e=>e.replace(/(https?:\/\/\S+)/g,(e=>{const t=e.split("/");return t.length>3?`...${t.slice(-2).join("/")}`:e})),W7=e=>{switch(e){case"DocumentationRecord":return"documentation";case"GitHubIssueRecord":return"github_issue";case"DiscourseRecord":return"discourse";case"DiscordRecord":return"discord";case"StackOverflowRecord":return"stackoverflow";case"SlackEntry":return"slack_message";default:return"site"}},q7=V.createContext(void 0),Y7=({children:e})=>{const{logEvent:t}=sP();return $f.jsx(q7.Provider,{value:{logEvent:t},children:e})},K7=({children:e})=>$f.jsx(iP,{children:$f.jsx(Y7,{children:e})}),X7=()=>{const e=V.useContext(q7);if(!e)throw new Error("useSearchEvents must be used within a SearchEventsProvider");return e};const Q7=()=>{const{baseSettings:e,searchSettings:t}=WO(),{apiKey:n,aiApiBaseUrl:r,userAuthToken:a,filters:o}=e,{maxResults:i,placeholder:s,defaultQuery:l,debounceTimeMs:c,onQueryChange:u,searchFunctionsRef:d,tabs:p,filters:f}=t,{logEvent:h}=X7(),[m,g]=V.useState(l),y=V.useRef(null),[b,v]=V.useState(!1),[w,k]=V.useState(null),[x,E]=V.useState("NONE"),S=V.useCallback((e=>{E(e)}),[]),[_,T]=V.useState([]),C=((e,t)=>{const{baseSettings:{transformSource:n,organizationDisplayName:r},searchSettings:{tabs:a,searchQueryParamKey:o,shouldOpenLinksInNewTab:i}}=WO();return V.useMemo((()=>{var s;const l=a.length>0?a:["All"],c={},u=new Set,d=l.map((e=>"string"==typeof e?e:e[0]));for(const e of d)c[e]=[];for(const p of e){const e=p.url||"";if(u.has(e))continue;u.add(e);const s=o?U7(e,t,o):e,l=v5({title:p.title,url:s,description:$7(p),type:W7(p.rootRecord.__typename),tag:G7(p),breadcrumbs:p.rootRecord.pathBreadcrumbs??[],contentType:p.rootRecord.contentType},"searchResultItem",{organizationDisplayName:r,tabs:a,transformSource:n}),f={...l,id:p.id,isExternal:void 0!==l.shouldOpenInNewTab?l.shouldOpenInNewTab:i},h=f.tabs||[];for(const t of h){const e="string"==typeof t?t:t[0];d.includes(e)?c[e].push(f):console.warn(`Tab "${e}" found in item but not configured in tabs`)}d.includes("All")&&c.All.push(f)}for(const e of Object.keys(c)){const t=l.find((t=>"string"==typeof t?t===e:t[0]===e)),n="object"==typeof t&&!0===(null==(s=t[1])?void 0:s.isAlwaysVisible);0!==c[e].length||n||delete c[e]}return c}),[e,n,r,a,t,o,i])})(_,m),A="string"==typeof(null==p?void 0:p[0])?p[0]:p[0][0],[N,I]=V.useState(A),{disableTransition:R,disabled:O}=function(){const[e,t]=V.useState(!1);V.useEffect((()=>{if(e){const e=setTimeout((()=>t(!1)),0);return()=>clearTimeout(e)}}),[e]);const n=V.useCallback((()=>t(!0)),[]);return{disabled:e,disableTransition:n}}(),P=V.useCallback((e=>{R(),I(e);const t=C[e][0].id;E(t)}),[C,R]);V.useEffect((()=>{var e,t;let n=N in C?N:Object.keys(C)[0];if(!(null==(e=C[n])?void 0:e.length)){const e=Object.keys(C).find((e=>{var t;return null==(t=C[e])?void 0:t.length}));n=e||A}if(!n)return;I(n);const r=null==(t=C[n])?void 0:t[0];r&&E(r.id)}),[C]);const L=pD("(max-width: 768px)"),D=V.useRef({}),M=V.useRef(null),F=V.useRef(null);V.useImperativeHandle(d,(()=>({updateQuery(e){g(e)},focusInput:()=>{var e;null==(e=y.current)||e.focus()}})));const j=`${r}/graphql`,B=V.useMemo((()=>({Authorization:`Bearer ${n}`,"Content-Type":"application/json",...a?{"User-Token":a}:{}})),[n,a]),H=V.useCallback((async e=>{const t=new AbortController;M.current=t;try{k(null);const n=await async function(e,t,n,r,a){var o;const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...r},signal:a,body:JSON.stringify({query:t,variables:n})});if(!i.ok)throw new Error(`Network response was not OK (status: ${i.status})`);const s=await i.json();if(null==(o=s.errors)?void 0:o.length)throw new Error(s.errors[0].message);return s.data}(j,"query GetSearchResults($searchInput: SearchInput!) {\n search(searchInput: $searchInput) {\n searchHits {\n id\n hitOnRoot\n url\n title\n preview\n\n ... on DocumentationHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on DocumentationRecord {\n pathBreadcrumbs\n contentType\n }\n }\n pathHeadings {\n content\n }\n content {\n content\n }\n }\n\n ... on StackOverflowHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on StackOverflowRecord {\n body\n createdAt\n\n markedAsCorrectAnswer {\n url\n score\n content\n }\n }\n }\n }\n\n ... on GitHubIssueHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on GitHubIssueRecord {\n createdAt\n body\n state\n }\n }\n }\n\n ... on DiscourseHit {\n rootRecord {\n __typename\n id\n title\n url\n preview\n ... on DiscourseRecord {\n createdAt\n body\n }\n }\n }\n }\n searchQuery\n }\n}\n",{searchInput:e},B,t.signal),r=null==n?void 0:n.search.searchHits;D.current[e.searchQuery]=r,T(r)}catch(ple){if("AbortError"===ple.name)return;k("Failed to fetch search results. Please try again.")}finally{v(!1)}}),[j,B]),z=V.useCallback((e=>{const t=D.current[e.searchQuery];h({eventName:"search_query_response_received",properties:{searchQuery:e.searchQuery,totalResults:null==t?void 0:t.length}})}),[]),U=()=>{M.current&&(M.current.abort(),v(!1))},$=V.useCallback((e=>{if(F.current&&window.clearTimeout(F.current),!e.searchQuery)return U(),T([]),void k(null);F.current=window.setTimeout((()=>{U(),h({eventName:"search_query_submitted",properties:{searchQuery:e.searchQuery}}),D.current[e.searchQuery]?(T(D.current[e.searchQuery]),z(e)):(v(!0),H(e).then((()=>{z(e)})))}),c)}),[c,H]),G=V.useMemo((()=>({searchQuery:m,filters:{...o,...f,limit:i}})),[m,i,o,f]);V.useEffect((()=>{null==u||u(G.searchQuery),$(G)}),[$,G]);const W=V.useCallback((e=>g(e.target.value)),[]),q=V.useMemo((()=>s||(L?"Search...":"Search for anything...")),[s,L]);return{results:C,resultsList:_,hasContent:_.length>0||b,loading:b,error:w,query:m,onInput:W,placeholder:q,tab:N,onTabChange:P,selectedItem:x,setSelectedItem:E,onSelectedItemChange:S,transitionsDisabled:O,inputRef:y,isMobile:L}},Z7=V.createContext(void 0),J7=e=>$f.jsx(K7,{children:$f.jsx(eee,{...e})}),eee=({children:e,...t})=>{const n=Q7();return $f.jsx(Z7.Provider,{value:{...n,...t},children:e})},tee=()=>{const e=V.useContext(Z7);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e};var nee="rovingFocusGroup.onEntryFocus",ree={bubbles:!1,cancelable:!0},aee="RovingFocusGroup",[oee,iee,see]=F$(aee),[lee,cee]=TD(aee,[see]),[uee,dee]=lee(aee),pee=V.forwardRef(((e,t)=>$f.jsx(oee.Provider,{scope:e.__scopeRovingFocusGroup,children:$f.jsx(oee.Slot,{scope:e.__scopeRovingFocusGroup,children:$f.jsx(fee,{...e,ref:t})})})));pee.displayName=aee;var fee=V.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=V.useRef(null),f=_D(t,p),h=ZU(o),[m=null,g]=qF({prop:i,defaultProp:s,onChange:l}),[y,b]=V.useState(!1),v=LD(c),w=iee(n),k=V.useRef(!1),[x,E]=V.useState(0);return V.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(nee,v),()=>e.removeEventListener(nee,v)}),[v]),$f.jsx(uee,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:m,onItemFocus:V.useCallback((e=>g(e)),[g]),onItemShiftTab:V.useCallback((()=>b(!0)),[]),onFocusableItemAdd:V.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:V.useCallback((()=>E((e=>e-1))),[]),children:$f.jsx(PD.div,{tabIndex:y||0===x?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:xD(e.onMouseDown,(()=>{k.current=!0})),onFocus:xD(e.onFocus,(e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(nee,ree);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));yee([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}k.current=!1})),onBlur:xD(e.onBlur,(()=>b(!1)))})})})),hee="RovingFocusGroupItem",mee=V.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...i}=e,s=FO(),l=o||s,c=dee(hee,n),u=c.currentTabStopId===l,d=iee(n),{onFocusableItemAdd:p,onFocusableItemRemove:f}=c;return V.useEffect((()=>{if(r)return p(),()=>f()}),[r,p,f]),$f.jsx(oee.ItemSlot,{scope:n,id:l,focusable:r,active:a,children:$f.jsx(PD.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:xD(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:xD(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:xD(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:gee[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const o=a.indexOf(e.currentTarget);a=c.loop?(r=o+1,(n=a).map(((e,t)=>n[(r+t)%n.length]))):a.slice(o+1)}setTimeout((()=>yee(a)))}var n,r}))})})}));mee.displayName=hee;var gee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yee(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var bee=pee,vee=mee,wee="Tabs",[kee,xee]=TD(wee,[cee]),Eee=cee(),[See,_ee]=kee(wee),Tee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=ZU(s),[d,p]=qF({prop:r,onChange:a,defaultProp:o});return $f.jsx(See,{scope:n,baseId:FO(),value:d,onValueChange:p,orientation:i,dir:u,activationMode:l,children:$f.jsx(PD.div,{dir:u,"data-orientation":i,...c,ref:t})})}));Tee.displayName=wee;var Cee="TabsList",Aee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=_ee(Cee,n),i=Eee(n);return $f.jsx(bee,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:r,children:$f.jsx(PD.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})}));Aee.displayName=Cee;var Nee="TabsTrigger",Iee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,i=_ee(Nee,n),s=Eee(n),l=Pee(i.baseId,r),c=Lee(i.baseId,r),u=r===i.value;return $f.jsx(vee,{asChild:!0,...s,focusable:!a,active:u,children:$f.jsx(PD.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...o,ref:t,onMouseDown:xD(e.onMouseDown,(e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:xD(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:xD(e.onFocus,(()=>{const e="manual"!==i.activationMode;u||a||!e||i.onValueChange(r)}))})})}));Iee.displayName=Nee;var Ree="TabsContent",Oee=V.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...i}=e,s=_ee(Ree,n),l=Pee(s.baseId,r),c=Lee(s.baseId,r),u=r===s.value,d=V.useRef(u);return V.useEffect((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),$f.jsx(VF,{present:a||u,children:({present:n})=>$f.jsx(PD.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:n&&o})})}));function Pee(e,t){return`${e}-trigger-${t}`}function Lee(e,t){return`${e}-content-${t}`}Oee.displayName=Ree;var Dee=Tee,Mee=Aee,Fee=Iee,jee=Oee;const Bee="__ask_ai__",Hee=_B("div",{_id:"aiSearchWrapper"}),zee=e=>{const{isHidden:t,hasContent:n,isMobile:r}=tee(),a=rD();return $f.jsx(Hee,{"data-hidden":_P(t),"data-has-content":_P(n),"data-in-modal":_P(!!a),"data-mobile":_P(r),...e})},Uee=_B(I7,{_id:"aiSearchRoot"}),$ee=e=>{const{isHidden:t,selectedItem:n,onSelectedItemChange:r}=tee();return $f.jsx(Uee,{"data-hidden":_P(t),shouldFilter:!1,loop:!1,value:n,onValueChange:r,...e})},Gee=_B(I7.List,{_id:"aiSearchContent"}),Vee=V.forwardRef(((e,t)=>{const{selectedItem:n}=tee();return $f.jsx(Gee,{"aria-activedescendant":`aiSearchResults__Item-${n}`,...e,ref:t})})),Wee=_B("div",{_id:"aiSearchInputGroup"}),qee=_B(wW,{_id:"aiSearchInputIcon",iconKey:"search"}),Yee=_B(I7.Input,{_id:"aiSearchInput"}),Kee=V.forwardRef((({onInput:e,...t},n)=>{const{query:r,onInput:a,placeholder:o,inputRef:i,shouldAutoFocusInput:s,selectedItem:l}=tee(),c=bB(n,i),u=rD();return V.useEffect((()=>{requestAnimationFrame((()=>{s&&(null==i?void 0:i.current)&&(i.current.focus(),i.current.selectionStart=i.current.value.length)}))}),[s,i,null==u?void 0:u.isOpen]),$f.jsx(Yee,{ref:c,placeholder:o,value:r,onInput:a5(e,a),"aria-activedescendant":`aiSearchResults__Item-${l}`,...t})})),Xee=_B(bW,{_id:"aiSearchLoading",iconSettings:{builtIn:"LuLoaderCircle"}}),Qee=e=>{const{loading:t,resultsList:n}=tee();return t&&0!==n.length?$f.jsx(Xee,{...e}):null},Zee=_B(I7.Item,{_id:"aiAskAITrigger",value:Bee}),Jee=e=>{var t,n;const{setSelectedItem:r,results:a,tab:o}=tee(),i=(null==(n=null==(t=a[o])?void 0:t[0])?void 0:n.id)??"NONE";return $f.jsx(Zee,{...e,id:`aiSearchResults__Item-${Bee}`,tabIndex:0,onPointerLeave:()=>r(i)})},ete=_B("img",{_id:"aiAskAITrigger__Icon"}),tte=e=>{const{aiChatSettings:t}=WO(),{aiAssistantAvatar:n}=t??{},r="string"==typeof n?n:null==n?void 0:n.light,a=Zj(r,("string"==typeof n?n:null==n?void 0:n.dark)??r),[o,i]=V.useState(a);V.useEffect((()=>{i(a)}),[a]);return $f.jsx(ete,{asChild:!0,...e,children:o?$f.jsx("img",{src:o,alt:"AI Avatar","data-type":"image",onError:a5((()=>{i(null)})),...e}):$f.jsx(BV,{"data-type":"icon",...e})})},nte=_B("span",{_id:"aiAskAITrigger__Label"}),rte=_B(wW,{_id:"aiAskAITrigger__Indicator",iconKey:"openLinkInSameTab"}),ate=_B(Dee,{_id:"aiSearchResults"}),ote=e=>{const{tab:t,onTabChange:n,hasContent:r}=tee();return $f.jsx(ate,{value:t,onValueChange:n,"data-has-content":_P(r),...e})},ite=_B("div",{_id:"aiSearchResults__Loading"}),ste=e=>{const{loading:t,resultsList:n}=tee();return!t||n.length>0?null:$f.jsx(ite,{...e})},lte=_B(I7.Empty,{_id:"aiSearchResults__Empty"}),cte=e=>{var t;const{query:n,loading:r,results:a,tab:o}=tee(),i=null==(t=a[o])?void 0:t.length;return r||!n||i?null:$f.jsx(lte,{children:"No results found.",...e})},ute=_B(Mee,{_id:"aiSearchResults__TabList"}),dte=e=>{const{children:t,...n}=e,{searchSettings:{tabs:r}}=WO(),{results:a,loading:o,resultsList:i}=tee();if(o&&0===i.length)return null;const s=Object.keys(a);return r.length&&s.length?$f.jsx(ute,{tabIndex:-1,children:CP(t,s),...n}):null},pte=_B(Fee,{_id:"aiSearchResults__Tab"}),fte=V.forwardRef(((e,t)=>{const n=V.useRef(null),r=bB(t,n),{tab:a,onClick:o,...i}=e,{results:s,tab:l,inputRef:c}=tee(),u=s[a].length,d=a===l,p=BO();return V.useEffect((()=>{var e,t,r;if(d){const a=null==(t=null==(e=null==p?void 0:p.shadowHost)?void 0:e.shadowRoot)?void 0:t.activeElement;(null==a?void 0:a.hasAttribute("ikp-tab"))&&(null==(r=n.current)||r.focus())}}),[d]),$f.jsx(pte,{ref:r,"ikp-tab":"",tabIndex:d?0:-1,value:a,children:`${a} (${u})`,onClick:a5(o,(()=>{var e;null==(e=c.current)||e.focus()})),...i})})),hte=_B(L$,{_id:"aiSearchResults__ScrollArea"}),mte=e=>{const{loading:t,resultsList:n}=tee();return t&&0===n.length?null:$f.jsx(hte,{tabIndex:-1,...e})},gte=_B(D$,{_id:"aiSearchResults__ScrollAreaViewport"}),yte=V.forwardRef((({children:e,...t},n)=>{const r=function(){const e=V.useRef(null),t=V.useCallback((()=>{const t=e.current;t&&(0===t.scrollTop?t.setAttribute("data-scroll-top",""):t.removeAttribute("data-scroll-top"),t.scrollTop+t.clientHeight>=t.scrollHeight-1?t.setAttribute("data-scroll-bottom",""):t.removeAttribute("data-scroll-bottom"))}),[]);return V.useEffect((()=>{const n=e.current;if(n)return t(),n.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{n.removeEventListener("scroll",t),window.removeEventListener("resize",t)}}),[t]),e}(),a=bB(n,r),{tab:o}=tee();return V.useEffect((()=>{var e;o&&(null==(e=r.current)||e.scrollTo({top:0,behavior:"auto"}))}),[o]),$f.jsx(gte,{ref:a,tabIndex:-1,children:$f.jsx("div",{tabIndex:-1,style:{display:"grid"},children:e}),...t})})),bte=_B(c$,{_id:"aiSearchResults__ScrollAreaScrollbar"}),vte=_B(w$,{_id:"aiSearchResults__ScrollAreaThumb"}),wte=_B(M$,{_id:"aiSearchResults__ScrollAreaCorner"}),kte=_B(jee,{_id:"aiSearchResults__List"}),xte=e=>{const{children:t,...n}=e,{results:r,tab:a}=tee(),o=r[a]??[];return $f.jsx(kte,{value:a,"data-has-results":_P(o.length>0),"aria-label":"Search results",children:CP(t,o),tabIndex:-1,...n})},Ete=_B(I7.Item,{_id:"aiSearchResults__Item",asChild:!0}),Ste=V.forwardRef((({item:e,onClick:t,onSelect:n,children:r,...a},o)=>{var i;const{searchSettings:{shouldOpenLinksInNewTab:s}}=WO(),{logEvent:l}=X7(),{query:c,transitionsDisabled:u,selectedItem:d}=tee(),p=V.useRef(null),f=bB(o,p),h=void 0!==e.shouldOpenInNewTab?e.shouldOpenInNewTab:s,m=d===e.id,g=m||("NONE"===d||d===Bee);return $f.jsx(fB,{source:{...e,isExternal:h},children:$f.jsx(Ete,{ref:f,value:e.id,"data-type":e.type,"data-breadcrumbs":!!(null==(i=e.breadcrumbs)?void 0:i.length),"data-disable-transitions":_P(u),onSelect:a5(n,(()=>{var e;null==(e=p.current)||e.click()})),onClick:a5(t,(()=>{l({eventName:"search_result_clicked",properties:{searchQuery:c,title:e.title,url:e.url}})})),"data-selected":_P(m),tabIndex:g?0:-1,...a,children:$f.jsx(xW,{href:e.url,isExternal:h,appendToUrl:e.appendToUrl,children:r,id:`aiSearchResults__Item-${e.id}`})})})})),_te=_B("div",{_id:"aiSearchResults__ItemBreadcrumbs"}),Tte=e=>{var t,n,r,a;const{source:o}=hB(),{tab:i}=tee();if(!(null==(t=o.breadcrumbs)?void 0:t.length))return null;const{children:s,...l}=e,c=(null==(a=null==(r=null==(n=o.tabs)?void 0:n.find((e=>"string"!=typeof e&&e[0]===i)))?void 0:r[1])?void 0:a.breadcrumbs)??o.breadcrumbs??[];return $f.jsx(_te,{"aria-hidden":"true",children:CP(s,c),...l})},Cte=_B(wW,{_id:"aiSearchResults__ItemBreadcrumbIcon",iconKey:"breadcrumbSeparator"}),Ate=_B(bW,{_id:"aiSearchResults__ItemIcon"}),Nte=e=>{const{source:t}=hB();return $f.jsx(Ate,{iconSettings:t.icon,"data-type":t.type,...e})},Ite=_B("span",{_id:"aiSearchResults__ItemTitle"}),Rte=e=>{const{source:t}=hB();return $f.jsx(Ite,{"data-type":t.type,children:t.title,...e})},Ote=_B("span",{_id:"aiSearchResults__ItemTag"}),Pte=e=>{const{source:t}=hB();return $f.jsx(Ote,{"data-type":t.type,children:t.tag,...e})},Lte=_B("span",{_id:"aiSearchResults__ItemDescription"}),Dte=e=>{const{source:t}=hB(),{children:n,...r}=e,a=V.useMemo((()=>t.description?r5(t.description):[]),[t.description]);return a.length?$f.jsx(Lte,{"data-type":t.type,"aria-hidden":"true",children:CP(n,a),...r}):null},Mte=_B("span",{_id:"aiSearchResults__ItemDescriptionPart"}),Fte=e=>{const{part:t,...n}=e,{source:r}=hB();return"string"==typeof t?t:$f.jsx(Mte,{"data-type":r.type,children:t.content,"data-highlighted":_P(t.highlighted),...n})},jte=_B(wW,{_id:"aiSearchResults__ItemIndicator"}),Bte=e=>{const{source:t}=hB();return $f.jsx(jte,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab",...e})},Hte=_B("div",{_id:"aiSearchFooter"}),zte=e=>{const{resultsList:t}=tee();return $f.jsx(Hte,{"data-has-results":_P(t.length>0),...e})},Ute=_B("div",{_id:"aiSearchTagline__Container"}),$te=_B("span",{_id:"aiSearchTagline__Text",children:"Powered by"}),Gte=_B(t5,{_id:"aiSearchTagline__Logo"}),Vte=_B("a",{_id:"aiSearchTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),Wte=_B(EV,{_id:"modal"}),qte=_B(SV,{_id:"modal__Overlay"}),Yte=_B(_V,{_id:"modal__Content","aria-describedby":void 0}),Kte=e=>{const t=pD("(max-width: 768px)");return $f.jsx(Yte,{"data-mobile":_P(t),...e})},Xte=_B(CV,{_id:"modal__Close",children:$f.jsx(wW,{iconKey:"close"})}),Qte=e=>rD()?$f.jsx(Xte,{...e}):null,Zte=_B("div",{_id:"chatButton__Container"}),Jte=_B("button",{_id:"chatButton__Button"}),ene=_B("div",{_id:"chatButton__Text"}),tne=_B(ZB,{_id:"chatButton__AvatarContent"}),nne=_B(JB,{_id:"chatButton__AvatarImage"}),rne=V.memo((e=>{const{onLoadingStatusChange:t,avatar:n,...r}=e,{aiChatSettings:a}=WO(),{aiAssistantAvatar:o}=a??{},i="string"==typeof n?n:Zj(null==n?void 0:n.light,null==n?void 0:n.dark),s="string"==typeof o?o:null==o?void 0:o.dark,[l,c]=V.useState(i??s);V.useEffect((()=>{c(i??s)}),[i,s]);return l?$f.jsx(nne,{src:l,"data-type":"image",onLoadingStatusChange:a5(t,(e=>{"error"===e&&c(null)})),...r}):$f.jsx(BV,{"data-type":"icon",...e})}));const ane={width:void 0,height:void 0};function one(e){const{ref:t,box:n="content-box"}=e,[{width:r,height:a},o]=V.useState(ane),i=function(){const e=V.useRef(!1);return V.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),V.useCallback((()=>e.current),[])}(),s=V.useRef({...ane}),l=V.useRef(void 0);return l.current=e.onResize,V.useEffect((()=>{if(!t.current)return;if("undefined"==typeof window||!("ResizeObserver"in window))return;const e=new ResizeObserver((([e])=>{const t="border-box"===n?"borderBoxSize":"device-pixel-content-box"===n?"devicePixelContentBoxSize":"contentBoxSize",r=ine(e,t,"inlineSize"),a=ine(e,t,"blockSize");if(s.current.width!==r||s.current.height!==a){const e={width:r,height:a};s.current.width=r,s.current.height=a,l.current?l.current(e):i()&&o(e)}}));return e.observe(t.current,{box:n}),()=>{e.disconnect()}}),[n,t,i]),{width:r,height:a}}function ine(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}const sne="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function lne(e){const{children:t,target:n,tag:r,host:a}=e,o=V.useRef(null),i=V.useRef(null),[,s]=V.useReducer((e=>e+1),0);sne((()=>{if(!o.current)return;const e=o.current.ownerDocument,t=a??e.body;return i.current=e.createElement(r??"inkeep-portal"),t.appendChild(i.current),s(),()=>{i.current&&t.removeChild(i.current)}}),[]);const l=(null==n?void 0:n.current)??i.current;return l?re.createPortal(t,l):V.createElement("span",{ref:o})}const cne=({children:e,...t})=>{const{baseSettings:n}=WO(),{rootElement:r}=n;return $f.jsx(lne,{host:r,...t,children:$f.jsx(uB,{children:e})})},une=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,dne=A1,pne=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return dne(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map((e=>{const t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;const i=une(t)||une(r);return a[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...s}[t]):{...o,...s}[t]===n}))?[...e,n,r]:e}),[]);return dne(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},fne=pne(["max-h-screen max-w-screen relative","grow-[5] mx-auto justify-self-center text-left"],{variants:{size:{default:["grow-0 justify-self-center self-center","m-auto max-h-[100vw] max-w-screen","md:w-[min(600px,100%)] md:h-[min(760px,100%)]","lg:w-[min(640px,100%)] lg:h-[min(800px,100%)]","2xl:w-[min(760px,100%)] 2xl:h-[min(900px,100%)]"],expand:["w-full h-full"],"shrink-vertically":["w-full h-auto self-start max-h-full"],"full-viewport":["fixed top-0 left-0 w-screen h-screen z-dropdown"]},variant:{"container-with-shadow":"shadow-[0_25px_50px_-12px_rgba(0,0,0,0.25)] dark:shadow-[none]","no-shadow":"shadow-[none]"}},defaultVariants:{size:"default",variant:"container-with-shadow"}}),hne=pne(["inline-flex","items-center","justify-center","align-middle","select-none","relative","whitespace-nowrap","appearance-none","rounded-md","leading-[1.2]","transition-all","duration-300","cursor-pointer","font-semibold","focus:outline-none","focus:z-base","focus-visible:ring","disabled:opacity-40","disabled:cursor-not-allowed","disabled:shadow-none"],{variants:{variant:{solid:["bg-gray-100 dark:bg-white-alpha-100","text-gray-800 dark:text-white-alpha-950","hover:bg-gray-200 dark:hover:bg-white-alpha-200","hover:disabled:bg-gray-100 dark:hover:disabled:bg-white-alpha-100","active:bg-gray-300 dark:active:bg-white-alpha-400"],iconButton:["px-1 text-gray-500 text-md","hover:text-inkeep-primary-strong","dark:text-gray-dark-200","dark:hover:text-inkeep-expanded-primary-300"],ghost:["text-gray-800 dark:text-white-alpha-950","hover:bg-gray-100 dark:hover:bg-white-alpha-100","active:bg-gray-200 dark:active:bg-white-alpha-200"],outline:["border dark:border-white-alpha-200","text-gray-600 dark:text-gray-200","hover:bg-gray-50 dark:hover:bg-white-alpha-100","active:bg-gray-50 dark:active:bg-white-alpha-100"]},size:{sm:"h-8 min-w-8 text-sm px-3",md:"h-10 min-w-10 text-md px-4",xs:"h-6 min-w-6 text-xs px-2"},preset:{neutralFilled:["bg-gray-1000 text-white hover:bg-gray-900 active:bg-gray-900","dark:bg-inkeep-expanded-primary-300 dark:text-gray-dark-950","dark:hover:bg-inkeep-expanded-primary-200","dark:active:bg-inkeep-expanded-primary-200"]}},defaultVariants:{size:"md"}}),mne=pne("",{variants:{slot:{root:["flex items-center pl-2","text-xs rounded-md h-6","bg-gray-300 dark:bg-white-alpha-200","min-w-0 w-fit"],icon:["mr-[0.5em]","text-gray-600 dark:text-white-alpha-600"],title:["overflow-hidden whitespace-nowrap text-ellipsis inline-block"],delete:[hne({variant:"iconButton",size:"md"}),"h-4 px-1 min-w-[unset]","text-gray-600 dark:text-white-alpha-600","hover:bg-transparent hover:text-gray-700","dark:hover:text-white-alpha-500","[&_svg]:w-4 [&_svg]:h-4"]}}}),gne=pne("",{variants:{slot:{root:["peer h-4 w-4 shrink-0 rounded-xs","border-2 border-inherit cursor-pointer","disabled:opacity-50","data-[state=checked]:bg-gray-1000","dark:data-[state=checked]:bg-white-alpha-950","data-[state=checked]:border-gray-1000","dark:data-[state=checked]:border-white-alpha-950","text-white data-[state=checked]:text-white","dark:data-[state=checked]:text-gray-1000"],indicator:["flex items-center justify-center","text-current animate-checkbox-check"]}}}),yne=pne(["transition-all data-[disable-transitions]:transition-none","duration-100 ease-in-out"],{variants:{slot:{root:["group w-full overflow-hidden border rounded-lg","text-inkeep-primary-text-bold selected:text-inkeep-primary-strong","focus:outline-inkeep-expanded-primary-700 dark:focus:outline-inkeep-expanded-primary-300","dark:text-white-alpha-950 dark:selected:text-inkeep-expanded-primary-300","bg-white selected:bg-inkeep-primary-light-subtle","dark:bg-transparent dark:selected:bg-white-alpha-200","border-gray-200 selected:border-inkeep-primary-medium-subtle","dark:border-white-alpha-200","dark:selected:border-inkeep-expanded-primary-300","py-2 px-5 grid gap-x-3 gap-y-1",'[grid-template:"breadcrumbs_breadcrumbs_breadcrumbs_indicator""icon_title_tag_indicator""description_description_description_indicator"/auto_auto_1fr_auto]',"items-center"],breadcrumbs:["[grid-area:breadcrumbs]","flex items-center text-gray-600","dark:text-white-alpha-600 text-xs"],breadcrumbsIcon:"last-of-type:hidden text-3xs mx-[5px]",icon:["[grid-area:icon]","text-gray-500","group-selected:text-inkeep-primary-text-subtle","dark:text-gray-dark-300 dark:group-selected:text-gray-dark-100"],title:["[grid-area:title]","text-gray-800 dark:text-white-alpha-950","group-selected:text-inkeep-primary-text-bold","dark:group-selected:text-white","font-medium line-clamp-1"],tag:["[grid-area:tag] w-fit justify-self-end","text-xs px-1 uppercase rounded-sm align-middle","font-bold inline-block whitespace-nowrap",'data-[type^="github"]:text-purple-500','data-[type="stackoverflow"]:text-green-500',"shadow-[inset_0_0_0_1px_currentColor]"],description:["[grid-area:description]","text-1sm line-clamp-1","text-gray-700 dark:text-white-alpha-700"],descriptionPart:["data-[highlighted]:font-semibold","data-[highlighted]:text-inkeep-primary-text-subtle","dark:data-[highlighted]:text-gray-dark-50"],indicator:["[grid-area:indicator]","self-center justify-self-end","opacity-0 group-selected:opacity-100","transition-opacity duration-100 ease-in-out ml-auto"]}}}),bne=pne("size-4 inline-block leading-[1em] shrink-0 text-current align-middle"),vne=pne(["w-full min-w-0 outline-none relative","appearance-none [transition-property:common]","[transition-duration:0.02s]","disabled:opacity-40 disabled:cursor-not-allowed","[--focus-border-color:theme(colors.blue.500)]","[--error-border-color:theme(colors.red.500)]","dark:[--focus-border-color:theme(colors.blue.300)]","dark:[--error-border-color:theme(colors.red.300)]"],{variants:{variant:{outline:["border border-inherit bg-inherit","focus:[&:not([data-invalid])]:border-[--focus-border-color]","focus:[&:not([data-invalid])]:shadow-[0_0_0_1px_var(--focus-border-color)]","data-[invalid]:border-[--error-border-color]","data-[invalid]:shadow-[0_0_0_1px_var(--error-border-color)]"]},size:{md:"p-4 h-10 text-md rounded-md",sm:"px-3 py-2 text-sm rounded-md"}}}),wne=pne(["transition-[common] ease-out duration-[180]","cursor-pointer text-decoration-none break-words","outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent","hover:underline"]),kne=pne("tracking-tight font-semibold",{variants:{size:{lg:"text-xl",md:"text-md"}},defaultVariants:{size:"md"}}),xne=pne("text-2sm ms-[1em] break-words pb-3 pl-7 relative [&_li]:mb-1",{variants:{style:{ordered:"list-decimal [counter-increment:item]",unordered:"list-[initial]"}}}),Ene=pne("",{variants:{slot:{root:"w-full border-collapse [font-variant-numeric:lining-nums_tabular-nums]",th:["font-heading font-bold uppercase tracking-wider text-start","data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","text-gray-600 dark:text-gray-400","px-6 py-3 leading-4 text-xs"],td:["text-start data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","px-6 py-4 leading-5"]},size:{md:""}}}),Sne=pne(["ml-[3px] cursor-pointer","[&_a]:bg-inkeep-primary-light","[&_a]:px-1","[&_a]:py-[1px]","[&_a]:rounded-sm","[&_a]:no-underline","[&_a]:text-inkeep-primary-text-subtle","[&_a]:hover:text-inkeep-primary-text-bold","[&_a]:font-semibold","[&_a]:dark:bg-inkeep-primary-text-subtle","[&_a]:dark:hover:text-inkeep-expanded-primary-200","[&_a]:hover:no-underline"]),_ne=pne(["bg-inkeep-primary-medium text-inkeep-primary-text-color-on-primary","[overflow-wrap:anywhere] min-w-0 py-[.2rem] my-[.1rem]","px-[.4rem] rounded-[6px] [font-size:85%!important]","font-semibold inline-block","font-mono "]),Tne=pne("",{variants:{slot:{container:"overflow-y-auto mb-3",header:["flex items-center justify-between","bg-gray-50 dark:bg-gray-dark-800","text-gray-600 dark:text-gray-400","mb-0 leading-[1.25] px-2 text-xs","transition-all duration-200 ease-in-out","rounded-[6px_6px_0_0]"],copyButton:["px-0 bg-inherit text-inherit","hover:text-gray-800 dark:text-white-alpha-700 dark:hover:text-white-alpha-950","dark:hover:bg-transparent h-8 w-8 min-h-8 min-w-8 text-sm","data-[copied]:text-inkeep-primary-medium"],highlighter:["text-1sm overflow-x-auto","rounded-[0_0_6px_6px]","p-[1em] whitespace-pre","m-[0px_0px_0.5em]","bg-gray-50 dark:bg-gray-dark-900","[scrollbar-width:thin]","[--scrollbar-color:var(--color-gray-300)]","dark:[--scrollbar-color:var(--color-gray-dark-600)]","[scrollbar-color:var(--scrollbar-color)_transparent]"]}}}),Cne=pne("",{variants:{slot:{overlay:["fixed inset-0","bg-overlay-light dark:bg-overlay-dark","data-[state=closed]:hidden","data-[state=open]:animate-fade-in","backdrop-blur-sm overflow-y-auto","place-items-center grid z-overlay"],content:["fixed","top-[5%]","left-1/2","translate-x-[-50%]","z-overlay","flex flex-col","w-full","duration-200","text-inherit rounded-md","bg-white shadow-lg dark:bg-gray-dark-950 dark:shadow-none","focus-visible:outline-none","focus:outline-none","data-[state=closed]:hidden","data-[state=closed]:animate-fade-out","data-[state=open]:animate-fade-in","data-[mobile]:inset-0","data-[mobile]:h-[unset]","data-[mobile]:w-[unset]","data-[mobile]:transform-none","data-[mobile]:rounded-none","[&[data-mobile]>div]:h-full","[&[data-mobile]>div]:max-h-dvh","[&[data-mobile]>div]:max-h-[unset]"],header:["px-6 py-4 text-xl font-semibold flex-0 flex flex-col"],close:[hne({variant:"ghost",size:"md"}),"w-8 h-8 min-w-0","text-lg text-gray-500 dark:text-white-alpha-500","absolute top-2 right-3"],body:["px-6 py-2 flex-1"]}}}),Ane=pne("",{variants:{slot:{content:["flex flex-col bg-white dark:bg-gray-dark-800","rounded-md z-popover","shadow-md relative","data-[state=open]:animate-fade-in","data-[state=closed]:animate-fade-out"],arrow:"fill-white dark:fill-gray-dark-800"}}}),Nne=pne("",{variants:{section:{wrapper:"w-full flex flex-col grow-[5] overflow-hidden justify-between max-h-full",header:"relative max-h-full",content:"w-full flex flex-col overflow-hidden p-0 grow-[2]",footer:"justify-self-end flex-shrink-0"}}}),Ine=pne("",{variants:{slot:{trigger:[vne({size:"md",variant:"outline"}),"px-4 py-0 flex items-center justify-between"],content:["relative z-dropdown max-h-96 min-w-[8rem]","overflow-hidden rounded-md border","bg-white dark:bg-gray-dark-950 shadow-md","data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out","data-[side=bottom]:translate-y-1.5","data-[side=left]:-translate-x-1.5","data-[side=right]:translate-x-1.5","data-[side=top]:-translate-y-1.5"],viewport:["p-1 h-[var(--radix-select-trigger-height)]","w-full min-w-[var(--radix-select-trigger-width)]"],item:["hover:bg-gray-100 dark:hover:bg-gray-dark-800","focus:bg-gray-100 dark:focus:bg-gray-dark-800","relative flex w-full text-md cursor-pointer py-1.5","select-none outline-none pl-2 pr-8 rounded-md items-center ","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],itemIndicator:["absolute right-2 flex h-3.5 w-3.5","items-center justify-center"]}}}),Rne=pne(["h-5 opacity-70 rounded-sm shadow-none","bg-clip-padding cursor-default pointer-events-none","before:invisible after:invisible *:invisible","animate-skeleton-bg-fade select-none","[--start-color:theme(colors.gray.50)]","[--end-color:theme(colors.gray.300)]","dark:[--start-color:theme(colors.gray-dark.800)]","dark:[--end-color:theme(colors.gray-dark.600)]","bg-[--start-color] border-[--end-color]"]),One=e=>{const t=Mne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Pne(n,t)||Dne(e)},getConflictingClassGroupIds:(e,t)=>{const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}},Pne=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),o=a?Pne(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return null==(n=t.validators.find((({validator:e})=>e(i))))?void 0:n.classGroupId},Lne=/^\[(.+)\]$/,Dne=e=>{if(Lne.test(e)){const t=Lne.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Mne=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hne(Object.entries(e.classGroups),n).forEach((([e,n])=>{Fne(n,r,e,t)})),r},Fne=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Bne(e)?void Fne(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,a])=>{Fne(a,jne(t,e),n,r)}))}else{(""===e?t:jne(t,e)).classGroupId=n}}))},jne=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Bne=e=>e.isThemeGetter,Hne=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,zne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}},Une=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,a=t[0],o=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===a&&(r||e.slice(d,d+o)===t)){n.push(e.slice(l,d)),l=d+o;continue}if("/"===c){i=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},$ne=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},Gne=/\s+/;function Vne(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Wne(e))&&(r&&(r+=" "),r+=t);return r}const Wne=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wne(e[r]))&&(n&&(n+=" "),n+=t);return n};function qne(e,...t){let n,r,a,o=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:zne(e.cacheSize),parseClassName:Une(e),...One(e)}))(l),r=n.cache.get,a=n.cache.set,o=i,i(s)};function i(e){const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(Gne);let s="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let p=Boolean(d),f=r(p?u.substring(0,d):u);if(!f){if(!p){s=e+(s.length>0?" "+s:s);continue}if(f=r(u),!f){s=e+(s.length>0?" "+s:s);continue}p=!1}const h=$ne(t).join(":"),m=c?h+"!":h,g=m+f;if(o.includes(g))continue;o.push(g);const y=a(f,p);for(let n=0;n<y.length;++n){const e=y[n];o.push(m+e)}s=e+(s.length>0?" "+s:s)}return s})(e,n);return a(e,o),o}return function(){return o(Vne.apply(null,arguments))}}const Yne=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Kne=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xne=/^\d+\/\d+$/,Qne=new Set(["px","full","screen"]),Zne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jne=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ere=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tre=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nre=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rre=e=>ore(e)||Qne.has(e)||Xne.test(e),are=e=>bre(e,"length",vre),ore=e=>Boolean(e)&&!Number.isNaN(Number(e)),ire=e=>bre(e,"number",ore),sre=e=>Boolean(e)&&Number.isInteger(Number(e)),lre=e=>e.endsWith("%")&&ore(e.slice(0,-1)),cre=e=>Kne.test(e),ure=e=>Zne.test(e),dre=new Set(["length","size","percentage"]),pre=e=>bre(e,dre,wre),fre=e=>bre(e,"position",wre),hre=new Set(["image","url"]),mre=e=>bre(e,hre,xre),gre=e=>bre(e,"",kre),yre=()=>!0,bre=(e,t,n)=>{const r=Kne.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},vre=e=>Jne.test(e)&&!ere.test(e),wre=()=>!1,kre=e=>tre.test(e),xre=e=>nre.test(e),Ere=qne((()=>{const e=Yne("colors"),t=Yne("spacing"),n=Yne("blur"),r=Yne("brightness"),a=Yne("borderColor"),o=Yne("borderRadius"),i=Yne("borderSpacing"),s=Yne("borderWidth"),l=Yne("contrast"),c=Yne("grayscale"),u=Yne("hueRotate"),d=Yne("invert"),p=Yne("gap"),f=Yne("gradientColorStops"),h=Yne("gradientColorStopPositions"),m=Yne("inset"),g=Yne("margin"),y=Yne("opacity"),b=Yne("padding"),v=Yne("saturate"),w=Yne("scale"),k=Yne("sepia"),x=Yne("skew"),E=Yne("space"),S=Yne("translate"),_=()=>["auto",cre,t],T=()=>[cre,t],C=()=>["",rre,are],A=()=>["auto",ore,cre],N=()=>["","0",cre],I=()=>[ore,cre];return{cacheSize:500,separator:":",theme:{colors:[yre],spacing:[rre,are],blur:["none","",ure,cre],brightness:I(),borderColor:[e],borderRadius:["none","","full",ure,cre],borderSpacing:T(),borderWidth:C(),contrast:I(),grayscale:N(),hueRotate:I(),invert:N(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[lre,are],inset:_(),margin:_(),opacity:I(),padding:T(),saturate:I(),scale:I(),sepia:N(),skew:I(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",cre]}],container:["container"],columns:[{columns:[ure]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",cre]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sre,cre]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",cre]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",sre,cre]}],"grid-cols":[{"grid-cols":[yre]}],"col-start-end":[{col:["auto",{span:["full",sre,cre]},cre]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[yre]}],"row-start-end":[{row:["auto",{span:[sre,cre]},cre]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",cre]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",cre]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",cre,t]}],"min-w":[{"min-w":[cre,t,"min","max","fit"]}],"max-w":[{"max-w":[cre,t,"none","full","min","max","fit","prose",{screen:[ure]},ure]}],h:[{h:[cre,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[cre,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[cre,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[cre,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ure,are]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ire]}],"font-family":[{font:[yre]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",cre]}],"line-clamp":[{"line-clamp":["none",ore,ire]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rre,cre]}],"list-image":[{"list-image":["none",cre]}],"list-style-type":[{list:["none","disc","decimal",cre]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rre,are]}],"underline-offset":[{"underline-offset":["auto",rre,cre]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",cre]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",cre]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fre]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pre]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mre]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[rre,cre]}],"outline-w":[{outline:[rre,are]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[rre,are]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ure,gre]}],"shadow-color":[{shadow:[yre]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ure,cre]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",cre]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",cre]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",cre]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[sre,cre]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",cre]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",cre]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",cre]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rre,are,ire]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Sre(...e){return Ere(A1(e))}const _re=e=>e?"":void 0,Tre=pne("",{variants:{slot:{root:["bg-gray-50 dark:bg-transparent","border border-transparent dark:border-gray-dark-700","rounded-md p-0.5 flex items-center"],button:[Sre(hne({size:"xs"}),"group","rounded data-[active]:shadow","bg-transparent data-[active]:bg-white","text-gray-600 data-[active]:text-gray-800","dark:text-white-alpha-600 dark:data-[active]:text-white-alpha-950","dark:data-[active]:bg-gray-dark-700 dark:shadow-none","hover:text-gray-800 hover:dark:text-white-alpha-950","focus-visible:ring-transparent")],icon:["mr-1 text-gray-500 data-[active]:text-gray-600","dark:text-white-alpha-500 dark:data-[active]:text-white-alpha-600","group-hover:text-gray-600 dark:group-hover:text-white-alpha-600"]}}}),Cre={markdownH1:Sre(kne({size:"lg"}),"mb-3"),markdownH2:Sre(kne({size:"md"}),"mb-2"),markdownP:Sre("mb-3 break-words whitespace-pre-wrap","[&+ol,&+li]:mt-0"),markdownLi:Sre("[&_a]:break-words [&_a]:inline"),markdownUl:xne({style:"unordered"}),markdownOl:Sre(xne({style:"ordered"}),"[inset-inline-start:var(--start,0px)]","[counter-reset:item_calc(var(--start,0)_-_1)]"),markdownLink:Sre(wne(),"text-inkeep-primary-stronger hover:text-inkeep-primary-strong","dark:text-inkeep-expanded-primary-100 dark:hover:text-inkeep-expanded-primary-300"),markdownSourceLink:Sne(),markdownTable:Ene({slot:"root"}),markdownTh:Ene({slot:"th"}),markdownTd:Ene({slot:"td"}),markdownCode:_ne(),codeblockContainer:Tne({slot:"container"}),codeblockHeader:Tne({slot:"header"}),codeblockCopyButton:Sre(hne({}),Tne({slot:"copyButton"})),codeblockHighlighterWrapper:Sre(),codeblockHighlighter:Tne({slot:"highlighter"}),codeblockCode:"font-mono"},Are=["Thinking","Looking for content","Analyzing"];function Nre(){const[e,t]=V.useState(0);return V.useEffect((()=>{const e=setInterval((()=>{t((t=>t+1<Are.length?t+1:(clearInterval(e),t)))}),3500);return()=>clearInterval(e)}),[]),$f.jsxs("div",{className:"flex items-center space-x-2 font-medium text-sm text-gray-700 dark:text-gray-dark-300","aria-live":"polite",children:[$f.jsx("span",{className:"animate-shimmer bg-gradient-to-br from-gray-700 to-gray-400 dark:from-gray-dark-300 dark:to-gray-dark-100 bg-clip-text text-transparent",children:Are[e]}),$f.jsx("div",{className:"flex space-x-1",children:[0,1,2].map((e=>$f.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:.2*e+"s"},children:"."},e)))})]})}const Ire=()=>Array.from({length:3}).map(((e,t)=>{const n=t%2==0;return $f.jsxs("div",{className:Sre("flex items-center flex-row-reverse","data-[even]:flex-row","[--end-color:theme(colors.white-alpha.100)]","dark:[--start-color:theme(colors.gray.300)]","dark:[--end-color:theme(colors.white-alpha.300)]"),"data-even":_re(n),children:[$f.jsx("div",{"data-even":_re(n),className:Sre(Rne(),"h-12 w-12 rounded-full","data-[even]:mr-4 ml-4 data-[even]:ml-0")}),$f.jsxs("div",{"data-even":_re(n),className:"flex flex-col gap-2 items-end data-[even]:items-start",children:[$f.jsx("div",{"data-even":_re(n),className:Sre(Rne(),"h-4 rounded-lg w-60")}),$f.jsx("div",{"data-even":_re(n),className:Sre(Rne(),"h-4 rounded-lg w-56")})]})]},t)})),Rre=e=>$f.jsx(KO,{children:$f.jsx(uP,{children:$f.jsx(sD,{children:$f.jsx(Tj,{...e})})})}),Ore=V.forwardRef((({className:e,size:t,variant:n,...r},a)=>$f.jsx(k5,{ref:a,className:Sre(fne({size:t,variant:n}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]",e),...r}))),Pre=({className:e,...t})=>$f.jsx(E5,{className:Sre("flex flex-col items-center justify-center h-full gap-12 flex-1 p-8",e),children:$f.jsx(Ire,{}),...t}),Lre=({className:e,...t})=>$f.jsx(_5,{className:Sre(Nne({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),Dre=({className:e,...t})=>$f.jsx(T5,{className:Sre(Nne({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-[1rem]","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),Mre=({className:e,...t})=>$f.jsx(C5,{className:Sre("flex items-center gap-2 w-full pl-6 pr-1","ikp-md:px-4 py-2 justify-between *:m-0",e),...t}),Fre=({className:e,...t})=>$f.jsx(A5,{className:Sre("flex items-center gap-1.5",e),...t}),jre=({className:e,...t})=>$f.jsx(I5,{className:Sre("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),Bre=({className:e,...t})=>$f.jsx(R5,{className:Sre(Nne({section:"content"}),"justify-end",e),...t}),Hre=({className:e,...t})=>$f.jsx(O5,{className:Sre("overflow-hidden",e),...t}),zre=V.forwardRef((({className:e,...t},n)=>$f.jsx(L5,{ref:n,className:Sre("h-full w-full rounded-[inherit]",e),...t}))),Ure=({className:e,...t})=>$f.jsx(D5,{className:Sre("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),$re=({className:e,...t})=>$f.jsx(M5,{className:Sre("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),Gre=F5,Vre=({className:e,...t})=>$f.jsx(z5,{className:Sre("ml-auto text-sm flex items-center gap-1",e),...t}),Wre=({className:e,...t})=>$f.jsx($5,{className:Sre("text-gray-700 dark:text-gray-dark-100",e),...t}),qre=({className:e,...t})=>$f.jsx(G5,{className:Sre("cursor-pointer text-gray-700 dark:text-gray-dark-100",e),...t}),Yre=({className:e,...t})=>$f.jsx(W5,{className:Sre(Ane({slot:"content"}),"px-4 py-2 font-normal","w-[250px] sm:w-[420px]",e),...t}),Kre=Y5,Xre=({className:e,...t})=>$f.jsx(K5,{className:Sre(Ane({slot:"arrow"}),e),...t}),Qre=({className:e,...t})=>$f.jsx(Q5,{className:Sre("mt-4 flex flex-col gap-2",e),...t}),Zre=({className:e,...t})=>$f.jsx(J5,{className:Sre("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),Jre=({className:e,...t})=>$f.jsx(t3,{className:Sre("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),eae=V.forwardRef((({className:e,style:t,...n},r)=>{const a=V.useRef(null),o=yB(r,a),{width:i=0,height:s=0}=one({ref:a,box:"border-box"}),l=Math.max(s,i);return $f.jsx(r3,{ref:o,style:{"--before-size":`${l+100}px`,...t},className:Sre("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-[1px] after:left-[1px]","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...n})})),tae=({className:e,...t})=>$f.jsx(o3,{className:Sre(hne({size:"sm"}),"text-sm font-normal h-auto w-full py-2 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),nae=({className:e,...t})=>$f.jsx(B5,{className:Sre("flex flex-col w-full min-w-0 min-h-0 text-2sm relative",e),...t}),rae=pne(["flex relative w-full overflow-hidden py-8","px-6 ikp-md:px-8","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0","[&:not(:last-child)]:after:absolute","[&:not(:last-child)]:after:border-b","[&:not(:last-child)]:after:bottom-0","[&:not(:last-child)]:after:inset-x-6","ikp-md:[&:not(:last-child)]:after:inset-x-8"]),aae=({className:e,...t})=>$f.jsx(c3,{className:Sre(rae(),e),...t}),oae=({className:e,...t})=>$f.jsx(u3,{className:Sre(rae(),e),...t}),iae=({className:e,...t})=>$f.jsx(p3,{className:Sre("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-6 ikp-md:mb-0",e),...t}),sae=({className:e,...t})=>$f.jsx(h3,{className:Sre("flex items-center gap-3 h-12 w-full",e),children:$f.jsx(Nre,{}),...t}),lae=({className:e,...t})=>$f.jsx(g3,{className:Sre("flex items-center justify-center rounded-full","h-auto ikp-md:h-12",e),...t}),cae=({className:e,...t})=>$f.jsx(b3,{className:Sre("relative flex h-8 w-8 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden ikp-md:flex","justify-center items-center",e),...t}),uae=({className:e,...t})=>$f.jsx(w3,{className:Sre("hidden data-[role=user]:block",e),...t}),dae=({className:e,...t})=>$f.jsx(x3,{className:Sre("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),pae=({className:e,...t})=>$f.jsx(S3,{className:Sre("px-3 py-1 ml-4 data-[role=user]:ml-0","text-sm rounded-full","bg-inkeep-primary-lighter data-[role=user]:bg-gray-50","text-inkeep-primary-stronger dark:text-inkeep-expanded-primary-300","data-[role=user]:text-gray-700 dark:data-[role=user]:text-white-alpha-700","dark:bg-gray-dark-700","ikp-md:hidden",e),...t}),fae=({className:e,...t})=>$f.jsx(T3,{className:Sre("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),hae=({className:e,...t})=>$f.jsx(A3,{className:Sre("text-2sm flex-wrap break-words min-w-0 shrink-1 max-w-full",e),...t}),mae=e=>{var t,n;const{message:r}=Wj(),a=null==(n=null==(t=r.metadata)?void 0:t.attributes)?void 0:n.attachments;return"user"===r.role&&(null==a?void 0:a.length)?$f.jsx(Uj,{children:$f.jsx(N3,{...e})}):null},gae=({className:e,...t})=>$f.jsx(R3,{className:Sre("flex flex-wrap gap-2",e),...t}),yae=({className:e,...t})=>$f.jsx(P3,{className:Sre(hne({variant:"ghost"}),mne({slot:"root"}),"font-normal px-2",e),...t}),bae=({className:e,...t})=>$f.jsx(D3,{className:Sre(mne({slot:"icon"}),e),...t}),vae=({className:e,...t})=>$f.jsx(F3,{className:Sre(mne({slot:"title"}),e),...t}),wae=e=>{const{onOpenChange:t,...n}=e,{selectItem:r,isOpen:a,onClose:o,selectedItem:i}=$j();return $f.jsx(j3,{open:a&&null!==i,onOpenChange:a5(t,(e=>{e||(o(),r(null))})),...n})},kae=({className:e,...t})=>$f.jsx(B3,{className:Sre(Cne({slot:"overlay"}),e),...t}),xae=({className:e,...t})=>$f.jsx(H3,{className:Sre(Cne({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Eae=({className:e,...t})=>$f.jsx(U3,{className:Sre(Cne({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),Sae=({className:e,...t})=>$f.jsx($3,{className:Sre(Cne({slot:"close"}),e),...t}),_ae=({className:e,...t})=>$f.jsx(V3,{className:Sre(Cne({slot:"body"}),"p-0",e),...t}),Tae=({className:e,componentStyles:t,...n})=>$f.jsx(q3,{className:Sre("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",e),componentStyles:If(Cre,t??{}),...n}),Cae=({className:e,...t})=>$f.jsx(K3,{className:Sre("flex items-center mt-2 mb-3",e),...t}),Aae=({className:e,...t})=>$f.jsx(Q3,{className:Sre("mr-auto flex items-center gap-2",e),...t}),Nae=({className:e,...t})=>$f.jsx(Z3,{className:Sre(hne({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),Iae=({className:e,...t})=>$f.jsx(e4,{className:Sre(hne({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),Rae=e=>{var t;const{message:n}=Wj();return"assistant"===n.role&&(null==(t=n.links)?void 0:t.length)?$f.jsx(t4,{...e}):null},Oae=({className:e,...t})=>$f.jsx(r4,{className:Sre("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),Pae=({className:e,...t})=>$f.jsx(o4,{className:Sre("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),Lae=({className:e,...t})=>$f.jsx(s4,{className:Sre(yne({slot:"root"}),e),...t}),Dae=({className:e,...t})=>$f.jsx(c4,{className:Sre(yne({slot:"breadcrumbs"}),e),...t}),Mae=({className:e,...t})=>$f.jsx(u4,{className:Sre(yne({slot:"breadcrumbsIcon"}),e),...t}),Fae=({className:e,...t})=>$f.jsx(p4,{className:Sre(yne({slot:"icon"}),e),...t}),jae=({className:e,...t})=>$f.jsx(h4,{className:Sre(yne({slot:"title"}),e),...t}),Bae=({className:e,...t})=>$f.jsx(g4,{className:Sre(yne({slot:"tag"}),e),...t}),Hae=({className:e,...t})=>$f.jsx(b4,{className:Sre(yne({slot:"description"}),e),...t}),zae=({className:e,...t})=>$f.jsx(w4,{className:Sre(yne({slot:"descriptionPart"}),e),...t}),Uae=({className:e,...t})=>$f.jsx(x4,{className:Sre(yne({slot:"indicator"}),e),...t}),$ae=({className:e,...t})=>$f.jsx(E4,{className:Sre("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-6 ikp-md:px-8 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-gradient-to-b before:from-transparent before:to-white","dark:before:to-gray-dark-950 before:-translate-y-full",e),...t}),Gae=({className:e,...t})=>$f.jsx(S4,{className:Sre("relative flex flex-col w-full p-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Vae=({className:e,...t})=>$f.jsx(_4,{className:Sre("flex",e),...t}),Wae=V.forwardRef((({className:e,...t},n)=>$f.jsx(C4,{ref:n,className:Sre("min-h-[unset] overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 ml-1 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t}))),qae=({className:e,...t})=>$f.jsx(N4,{className:Sre(hne({}),"bg-transparent relative size-10 rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),Yae=({className:e,...t})=>$f.jsx(I4,{className:Sre(bne(),"text-inherit rotate-[-30deg]",e),...t}),Kae=({className:e,...t})=>$f.jsx(O4,{className:Sre("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),Xae=({className:e,...t})=>$f.jsx(L4,{className:Sre("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),Qae=({className:e,...t})=>$f.jsx(M4,{className:Sre(mne({slot:"root"}),e),...t}),Zae=({className:e,...t})=>$f.jsx(j4,{className:Sre(mne({slot:"icon"}),e),...t}),Jae=({className:e,...t})=>$f.jsx(H4,{className:Sre(mne({slot:"title"}),e),...t}),eoe=({className:e,...t})=>$f.jsx(U4,{className:Sre(mne({slot:"delete"}),e),...t}),toe=({className:e,...t})=>$f.jsx($4,{className:Sre("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),noe=G4,roe=({className:e,...t})=>$f.jsx(V4,{className:Sre("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),aoe=({className:e,...t})=>$f.jsx(q4,{className:Sre("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),ooe=({className:e,...t})=>$f.jsx(K4,{className:Sre("contents",e),...t}),ioe=({className:e,...t})=>$f.jsx(Q4,{className:Sre(hne({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),soe=Z4,loe=e=>{const{onOpenChange:t,...n}=e,{selectInput:r,isOpen:a,onClose:o,selectedInput:i}=Ij();return $f.jsx(J4,{open:a&&null!==i,onOpenChange:a5(t,(e=>{e||(o(),r(null))})),...n})},coe=({className:e,...t})=>$f.jsx(e6,{className:Sre(Cne({slot:"overlay"}),e),...t}),uoe=({className:e,...t})=>$f.jsx(t6,{className:Sre(Cne({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),doe=({className:e,...t})=>$f.jsx(n6,{className:Sre(Cne({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),poe=({className:e,...t})=>$f.jsx(a6,{className:Sre("w-full semibold",e),...t}),foe=({className:e,...t})=>$f.jsx(i6,{className:Sre("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),hoe=e=>{var t;const{children:n,...r}=e,{selectedInput:a}=Ij(),o=null==(t=null==a?void 0:a.workflowModalProps)?void 0:t.modalHelpElement;return o?$f.jsx(s6,{asChild:!n,children:n||o,...r}):null},moe=({className:e,...t})=>$f.jsx(l6,{className:Sre(Cne({slot:"close"}),e),...t}),goe=({className:e,...t})=>$f.jsx(c6,{className:Sre(Cne({slot:"body"}),"p-0",e),...t}),yoe=({className:e,...t})=>$f.jsx(d6,{className:Sre("flex flex-col gap-8",e),...t}),boe=({className:e,...t})=>$f.jsx(p6,{className:Sre("flex flex-col gap-2",e),...t}),voe=({className:e,...t})=>$f.jsx(h6,{className:Sre("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),woe=({className:e,...t})=>$f.jsx(g6,{className:Sre("h-10 px-4 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),koe=({className:e,...t})=>$f.jsx(b6,{className:Sre("text-sm text-red-500",e),...t}),xoe=({className:e,...t})=>$f.jsx(v6,{className:Sre("flex flex-col gap-2",e),...t}),Eoe=({className:e,...t})=>$f.jsx(k6,{className:Sre("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Soe=({className:e,...t})=>$f.jsx(E6,{className:Sre(vne({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),_oe=({className:e,...t})=>$f.jsx(_6,{className:Sre("text-sm text-red-500",e),...t}),Toe=({className:e,...t})=>$f.jsx(T6,{className:Sre(hne({preset:"neutralFilled"}),"ml-auto",e),...t}),Coe=({className:e,...t})=>$f.jsx(C6,{className:Sre("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Aoe=({className:e,...t})=>$f.jsx(A6,{className:Sre("flex items-center gap-2.5 flex-wrap",e),...t}),Noe=({className:e,...t})=>$f.jsx(N6,{className:Sre("flex items-center whitespace-nowrap",e),...t}),Ioe=({className:e,...t})=>$f.jsx(I6,{className:Sre("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),Roe=({className:e,...t})=>$f.jsx(R6,{className:Sre("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),Ooe=({className:e,...t})=>$f.jsx(O6,{className:Sre(wne(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t}),Poe=Sre(hne({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),Loe=({className:e,...t})=>$f.jsx(L6,{className:Sre(Poe,e),...t}),Doe=({className:e,...t})=>$f.jsx(M6,{className:Sre("cursor-pointer",e),...t}),Moe=({className:e,...t})=>$f.jsx(j6,{className:Sre("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),Foe=e=>{const{children:t,...n}=e,{aiChatSettings:r}=WO(),{getHelpOptions:a}=r;if(!a||0===(a??[]).length)return null;const{_pinned:o,_unpinned:i}=a.reduce(((e,t)=>{const n=t.isPinnedToToolbar?"_pinned":"_unpinned";return{...e,[n]:[...e[n],t]}}),{_pinned:[],_unpinned:[]}),s=1===i.length?[...o,i[0]]:o,l=1===i.length?[]:i,c=function(){const[e,t]=V.useState(!1);return{open:e,setOpen:t}}();return $f.jsx(jj,{value:c,children:$f.jsx(B6,{open:c.open,onOpenChange:c.setOpen,children:CP(t,{pinned:s,unpinned:l}),...n})})},joe=({className:e,...t})=>$f.jsx(U6,{className:Sre(Poe,e),...t}),Boe=({className:e,...t})=>$f.jsx(G6,{className:Sre(Poe,e),...t}),Hoe=({className:e,...t})=>$f.jsx(W6,{className:Sre(Ane({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),zoe=({className:e,...t})=>$f.jsx(q6,{className:Sre(Ane({slot:"arrow"}),e),...t}),Uoe=({className:e,...t})=>$f.jsx(Y6,{className:Sre("flex items-center cursor-pointer hover:underline",e),...t}),$oe=({className:e,...t})=>$f.jsx(X6,{className:Sre("mr-2 text-inkeep-primary-medium",e),...t}),Goe=e=>{const{onOpenChange:t,...n}=e,{currentFeedback:r,setCurrentFeedback:a}=kD();return $f.jsx(Q6,{open:null!==r,onOpenChange:a5(t,(()=>a(null))),...n})},Voe=({className:e,...t})=>$f.jsx(Z6,{className:Sre(Cne({slot:"overlay"}),e),...t}),Woe=({className:e,...t})=>$f.jsx(J6,{className:Sre(Cne({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),qoe=({className:e,...t})=>$f.jsx(e8,{className:Sre(Cne({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),Yoe=({className:e,...t})=>$f.jsx(t8,{className:Sre(Cne({slot:"close"}),e),...t}),Koe=({className:e,...t})=>$f.jsx(n8,{className:Sre(Cne({slot:"body"}),"p-0",e),...t}),Xoe=({className:e,...t})=>$f.jsx(a8,{className:Sre("flex flex-col gap-8",e),...t}),Qoe=({className:e,...t})=>$f.jsx(i8,{className:Sre("flex flex-wrap items-center","gap-[1rem_0.5rem]",e),...t}),Zoe=({className:e,...t})=>$f.jsx(l8,{className:Sre(gne({slot:"root"}),e),...t}),Joe=({className:e,...t})=>$f.jsx(c8,{className:Sre(gne({slot:"indicator"}),e),...t}),eie=({className:e,...t})=>$f.jsx(d8,{className:Sre("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),tie=({className:e,...t})=>$f.jsx(f8,{className:Sre("flex-[0_0_100%]","min-h-20 py-2 border rounded-md","px-4",e),...t}),nie=({className:e,...t})=>$f.jsx(h8,{className:Sre(hne({preset:"neutralFilled"}),"ml-auto",e),...t}),rie=({className:e,...t})=>$f.jsx(g8,{className:Sre("w-full overflow-y-auto",e),...t}),aie=({className:e,...t})=>$f.jsx(b8,{className:Sre(Nne({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-14 ikp-md:pb-14",e),...t}),oie=({className:e,...t})=>$f.jsx(w8,{className:Sre(hne({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),iie=({className:e,...t})=>$f.jsx(k8,{className:Sre("mt-12 flex flex-col gap-6",e),...t}),sie=({className:e,...t})=>$f.jsx(E8,{className:Sre("font-semibold text-xl leading-5",e),...t}),lie=({className:e,...t})=>$f.jsx(_8,{className:Sre("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),cie=({className:e,...t})=>$f.jsx(C8,{className:Sre("w-full",e),...t}),uie=({className:e,...t})=>$f.jsx(N8,{className:Sre("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),die=({className:e,...t})=>$f.jsx(R8,{className:Sre("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",e),...t}),pie=({className:e,...t})=>$f.jsx(P8,{className:Sre(vne({size:"md",variant:"outline"}),e),...t}),fie=({className:e,...t})=>$f.jsx(L8,{className:Sre(vne({size:"md",variant:"outline"}),e),...t}),hie=({className:e,...t})=>$f.jsx(M8,{className:Sre(vne({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),mie=({className:e,...t})=>$f.jsx(F8,{className:Sre(vne({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),gie=({className:e,...t})=>$f.jsx(B8,{className:Sre(gne({slot:"root"}),e),...t}),yie=({className:e,...t})=>$f.jsx(H8,{className:Sre(gne({slot:"indicator"}),e),...t}),bie=e=>{const{field:t,error:n,fieldProps:r}=Mj(),{onValueChange:a,...o}=e;return $f.jsx(z8,{name:t.name,"data-invalid":_P(!!n),value:r.value,onValueChange:a5(a,r.onChange),...o})},vie=({className:e,...t})=>$f.jsx(U8,{className:Sre(Ine({slot:"trigger"}),e),...t}),wie=e=>{const{field:t}=Mj();return $f.jsx($8,{placeholder:"placeholder"in t?t.placeholder:void 0,...e})},kie=({className:e,...t})=>$f.jsx(G8,{className:Sre("h-4 w-4 opacity-45",e),...t}),xie=({className:e,...t})=>$f.jsx(V8,{className:Sre(Ine({slot:"content"}),e),...t}),Eie=({className:e,...t})=>$f.jsx(W8,{className:Sre(Ine({slot:"viewport"}),e),...t}),Sie=({className:e,...t})=>$f.jsx(q8,{className:Sre(Ine({slot:"item"}),e),...t}),_ie=Y8,Tie=({className:e,...t})=>$f.jsx(K8,{className:Sre(Ine({slot:"itemIndicator"}),e),...t}),Cie=({className:e,...t})=>$f.jsx(Q8,{className:Sre("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Aie=({className:e,...t})=>$f.jsx(J8,{className:Sre("text-red-500 dark:text-red-300",e),...t}),Nie=({className:e,...t})=>$f.jsx(e9,{className:Sre("flex items-center justify-end gap-6 w-full",e),...t}),Iie=({className:e,...t})=>$f.jsx(n9,{className:Sre(hne({variant:"outline"}),e),...t}),Rie=({className:e,...t})=>$f.jsx(a9,{className:Sre(hne({preset:"neutralFilled"}),e),...t}),Oie=({className:e,...t})=>$f.jsx(i9,{className:Sre("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-14",e),...t}),Pie=({className:e,...t})=>$f.jsx(l9,{className:Sre("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),Lie=e=>{const{form:t}=lD();return $f.jsx(c9,{children:null==t?void 0:t.successView.message,...e})},Die=({className:e,...t})=>$f.jsx(d9,{className:Sre(hne({preset:"neutralFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});function Mie(){return $f.jsxs("div",{className:"flex flex-col h-full",children:[$f.jsxs("div",{className:Sre("h-[calc(100%-24px)]"),children:[$f.jsx("div",{className:"flex px-5 py-1 gap-3",children:Array.from({length:2}).map(((e,t)=>$f.jsx("div",{className:Sre(Rne(),"h-[27.88px] w-16 rounded-full")},t)))}),$f.jsx("div",{className:"flex flex-col w-full gap-2 px-5 py-1",children:Array.from({length:4}).map(((e,t)=>$f.jsx("div",{className:"flex items-center pb-2.5 w-full",children:$f.jsx("div",{className:Sre(Rne(),"h-20 rounded-lg grow-[1]")})},t)))})]}),$f.jsx("div",{className:"flex pt-1 pb-3 px-5 justify-self-end",children:$f.jsx("div",{className:Sre(Rne(),"h-[24px] w-40 rounded-md")})})]})}const Fie=e=>$f.jsx(J7,{...e}),jie=({className:e,...t})=>$f.jsx(zee,{className:Sre("data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950",e),...t}),Bie=({className:e,...t})=>$f.jsx($ee,{className:Sre("data-[hidden]:hidden flex flex-col w-full",e),...t}),Hie=Vee,zie=({className:e,...t})=>$f.jsx(Wee,{className:Sre("flex items-center w-full px-5 pt-3 pb-3 gap-3","[[data-show-ask-ai-card]_&]:pb-1",e),...t}),Uie=({className:e,...t})=>$f.jsx(qee,{className:Sre("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600",e),...t}),$ie=({className:e,...t})=>$f.jsx(Kee,{className:Sre("min-h-[38px] overflow-hidden w-full resize-none","py-1.5 max-h-[10vh] placeholder:text-gray-500","w-full dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent",e),...t}),Gie=({className:e,...t})=>$f.jsx(Qee,{className:Sre("animate-spin text-gray-400 dark:text-white-alpha-500",e),...t}),Vie=({className:e,...t})=>$f.jsx(Jee,{className:Sre(yne({slot:"root"}),"m-auto w-[calc(100%_-_theme(spacing.5))]","border-transparent dark:border-transparent","mb-3 py-0 h-11 cursor-pointer",e),...t}),Wie=({className:e,...t})=>$f.jsx(tte,{className:Sre("[grid-area:icon] h-5 w-5","[--start-color:theme(colors.inkeep-expanded-primary.300)]","[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),qie=({className:e,...t})=>$f.jsx(nte,{className:Sre(yne({slot:"title"}),"font-normal",e),...t}),Yie=({className:e,...t})=>$f.jsx(rte,{className:Sre(yne({slot:"indicator"}),e),...t}),Kie=({className:e,...t})=>$f.jsx(ote,{className:Sre(Nne({section:"content"}),"h-0 max-h-full","data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]","transition-all duration-300 ease-in-out data-[has-content]:pb-2",e),...t}),Xie=({className:e,...t})=>$f.jsx(ste,{className:Sre("group mb-1 relative transition-all w-full h-full",e),children:$f.jsx(Mie,{}),...t}),Qie=({className:e,...t})=>$f.jsx(cte,{className:Sre("flex w-full h-full","overflow-hidden relative grow-[2]","items-center justify-center text-gray-600","dark:text-gray-dark-400 mt-8",e),...t}),Zie=({className:e,...t})=>$f.jsx(dte,{className:Sre("shrink-0 max-w-full","flex gap-3 px-5 py-1","overflow-x-auto [scrollbar-width:thin]",e),...t}),Jie=({className:e,...t})=>$f.jsx(fte,{className:Sre("px-3 text-1sm font-medium rounded-full shrink-0","py-1 transition-all duration-200 leading-snug","border border-gray-300 dark:border-gray-dark-500","hover:bg-gray-50 dark:hover:bg-white-alpha-50","data-[state=active]:bg-inkeep-primary-light-subtle","hover:data-[state=active]:bg-inkeep-primary-light-subtle","data-[state=active]:text-inkeep-expanded-primary-900","data-[state=active]:border-inkeep-primary-medium-subtle","dark:data-[state=active]:bg-white-alpha-100","dark:hover:data-[state=active]:bg-white-alpha-100","dark:data-[state=active]:text-inkeep-expanded-primary-300","dark:data-[state=active]:border-inkeep-expanded-primary-300","focus:outline-inkeep-expanded-primary-700 dark:focus:outline-inkeep-expanded-primary-300",e),...t}),ese=({className:e,...t})=>$f.jsx(mte,{className:Sre("overflow-hidden h-full",'befter:content-[""] befter:absolute befter:inset-x-0',"befter:h-10 befter:pointer-events-none","befter:transition-opacity befter:duration-300","befter:ease-in-out befter:from-white","befter:dark:from-gray-dark-950 befter:to-transparent","before:top-0 after:bottom-0","before:bg-gradient-to-b after:bg-gradient-to-t","has-[[data-scroll-top]]:before:opacity-0","has-[[data-scroll-bottom]]:after:opacity-0",e),...t}),tse=({className:e,...t})=>$f.jsx(yte,{className:Sre("h-full w-full rounded-[inherit]",e),...t}),nse=({className:e,...t})=>$f.jsx(bte,{className:Sre("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),rse=({className:e,...t})=>$f.jsx(vte,{className:Sre("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),ase=wte,ose=({className:e,...t})=>$f.jsx(xte,{className:Sre("w-full flex flex-col","items-center gap-2.5 h-full shrink-0","px-5 py-1 content-center -my-[1px]",e),...t}),ise=({className:e,...t})=>$f.jsx(Ste,{className:Sre(yne({slot:"root"}),e),...t}),sse=({className:e,...t})=>$f.jsx(Tte,{className:Sre(yne({slot:"breadcrumbs"}),e),...t}),lse=({className:e,...t})=>$f.jsx(Cte,{className:Sre(yne({slot:"breadcrumbsIcon"}),e),...t}),cse=({className:e,...t})=>$f.jsx(Nte,{className:Sre(yne({slot:"icon"}),e),...t}),use=({className:e,...t})=>$f.jsx(Rte,{className:Sre(yne({slot:"title"}),e),...t}),dse=({className:e,...t})=>$f.jsx(Pte,{className:Sre(yne({slot:"tag"}),e),...t}),pse=({className:e,...t})=>$f.jsx(Dte,{className:Sre(yne({slot:"description"}),e),...t}),fse=({className:e,...t})=>$f.jsx(Fte,{className:Sre(yne({slot:"descriptionPart"}),e),...t}),hse=({className:e,...t})=>$f.jsx(Bte,{className:Sre(yne({slot:"indicator"}),e),...t}),mse=({className:e,...t})=>$f.jsx(zte,{className:Sre("justify-self-end pt-1 pb-3 px-5","hidden data-[has-results]:flex",e),...t}),gse=({className:e,...t})=>$f.jsx(Ute,{className:Sre("flex items-center whitespace-nowrap",e),...t}),yse=({className:e,...t})=>$f.jsx($te,{className:Sre("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),bse=({className:e,...t})=>$f.jsx(Gte,{className:Sre("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),vse=({className:e,...t})=>$f.jsx(Vte,{className:Sre(wne(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t}),wse=e=>{const{onOpenChange:t,config:n,...r}=e,a=(e=>{const{isOpen:t,onOpenChange:n,shortcutKey:r}=e??{},[a=!1,o]=qF({prop:t,defaultProp:t,onChange:n});return V.useEffect((()=>{const e=e=>{r&&(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===r.toLowerCase()&&(e.preventDefault(),e.stopPropagation(),o(!0)),"Escape"===e.key&&t&&(e.preventDefault(),o(!1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r,o,t]),{isOpen:a,setOpen:o,shortcutKey:r}})(n);return $f.jsx(nD,{modal:a,children:$f.jsx(Wte,{open:a.isOpen,onOpenChange:a5(t,(e=>a.setOpen(e))),...r})})},kse=({className:e,...t})=>$f.jsx(qte,{className:Sre(Cne({slot:"overlay"}),e),...t}),xse=({className:e,...t})=>$f.jsx(Kte,{className:Sre(Cne({slot:"content"}),"w-[min(90vw,720px)]",e),...t}),Ese=({className:e,...t})=>$f.jsx(Qte,{className:Sre(Cne({slot:"close"}),hne({variant:"ghost",size:"xs"}),"relative inset-[unset] ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0","md:hidden",e),...t}),Sse=({className:e,...t})=>$f.jsx(Zte,{className:Sre("fixed right-6 bottom-6 mr-[var(--removed-body-scroll-bar-size)]",e),...t}),_se=({className:e,...t})=>$f.jsx(Jte,{className:Sre("bg-inkeep-primary-text-bold dark:bg-gray-dark-600 rounded-full px-[18px] py-3 text-white font-medium flex items-center space-x-2 shadow-2xl dark:shadow-none transition-transform ease-in-out hover:scale-110",e),...t}),Tse=({className:e,...t})=>$f.jsx(ene,{className:Sre("flex items-center",e),...t}),Cse=({className:e,...t})=>$f.jsx(rne,{className:Sre("data-[type=icon]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","data-[type=icon]:[--end-color:theme(colors.inkeep-expanded-primary.300)]","h-6 w-6",e),...t}),Ase=({className:e,...t})=>$f.jsx(tne,{className:Sre("",e),...t}),Nse=e=>$f.jsx(zO,{styles:'*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: var(--ikp-color-gray-200); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--ikp-font-family-mono); /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: var(--ikp-color-gray-400); /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: var(--ikp-color-gray-400); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.inset-\\[unset\\] {\n inset: unset;\n}\n.bottom-6 {\n bottom: 1.5rem;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-\\[unset\\] {\n left: unset;\n}\n.right-1 {\n right: 0.25rem;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1 {\n top: 0.25rem;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-2 {\n top: 0.5rem;\n}\n.top-\\[5\\%\\] {\n top: 5%;\n}\n.z-base {\n z-index: var(--ikp-z-index-base);\n}\n.z-dropdown {\n z-index: var(--ikp-z-index-dropdown);\n}\n.z-modal {\n z-index: var(--ikp-z-index-modal);\n}\n.z-overlay {\n z-index: var(--ikp-z-index-overlay);\n}\n.z-popover {\n z-index: var(--ikp-z-index-popover);\n}\n.z-start {\n z-index: var(--ikp-z-index-start);\n}\n.m-\\[0px_0px_0\\.5em\\] {\n margin: 0px 0px 0.5em;\n}\n.m-auto {\n margin: auto;\n}\n.-my-\\[1px\\] {\n margin-top: -1px;\n margin-bottom: -1px;\n}\n.mx-1 {\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n}\n.mx-\\[5px\\] {\n margin-left: 5px;\n margin-right: 5px;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.my-\\[\\.1rem\\] {\n margin-top: .1rem;\n margin-bottom: .1rem;\n}\n.mb-0 {\n margin-bottom: 0px;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n.mb-8 {\n margin-bottom: 2rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-\\[3px\\] {\n margin-left: 3px;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-\\[0\\.5em\\] {\n margin-right: 0.5em;\n}\n.mr-\\[var\\(--removed-body-scroll-bar-size\\)\\] {\n margin-right: var(--removed-body-scroll-bar-size);\n}\n.mr-auto {\n margin-right: auto;\n}\n.ms-\\[1em\\] {\n margin-inline-start: 1em;\n}\n.mt-12 {\n margin-top: 3rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.mt-8 {\n margin-top: 2rem;\n}\n.line-clamp-1 {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.h-0 {\n height: 0px;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-\\[24px\\] {\n height: 24px;\n}\n.h-\\[27\\.88px\\] {\n height: 27.88px;\n}\n.h-\\[30px\\] {\n height: 30px;\n}\n.h-\\[calc\\(100\\%-24px\\)\\] {\n height: calc(100% - 24px);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-screen {\n height: 100vh;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[100vw\\] {\n max-height: 100vw;\n}\n.max-h-\\[10vh\\] {\n max-height: 10vh;\n}\n.max-h-\\[200px\\] {\n max-height: 200px;\n}\n.max-h-\\[min\\(85vh\\2c 850px\\)\\] {\n max-height: min(85vh,850px);\n}\n.max-h-full {\n max-height: 100%;\n}\n.max-h-screen {\n max-height: 100vh;\n}\n.min-h-0 {\n min-height: 0px;\n}\n.min-h-20 {\n min-height: 5rem;\n}\n.min-h-8 {\n min-height: 2rem;\n}\n.min-h-9 {\n min-height: 2.25rem;\n}\n.min-h-\\[38px\\] {\n min-height: 38px;\n}\n.min-h-\\[unset\\] {\n min-height: unset;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-12 {\n width: 3rem;\n}\n.w-16 {\n width: 4rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-40 {\n width: 10rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-56 {\n width: 14rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-60 {\n width: 15rem;\n}\n.w-8 {\n width: 2rem;\n}\n.w-\\[18px\\] {\n width: 18px;\n}\n.w-\\[250px\\] {\n width: 250px;\n}\n.w-\\[254px\\] {\n width: 254px;\n}\n.w-\\[calc\\(100\\%_-_theme\\(spacing\\.5\\)\\)\\] {\n width: calc(100% - 1.25rem);\n}\n.w-\\[min\\(90vw\\2c 720px\\)\\] {\n width: min(90vw,720px);\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-screen {\n width: 100vw;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-10 {\n min-width: 2.5rem;\n}\n.min-w-5 {\n min-width: 1.25rem;\n}\n.min-w-6 {\n min-width: 1.5rem;\n}\n.min-w-8 {\n min-width: 2rem;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[unset\\] {\n min-width: unset;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-2xl {\n max-width: 42rem;\n}\n.max-w-\\[200px\\] {\n max-width: 200px;\n}\n.max-w-\\[480px\\] {\n max-width: 480px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-\\[0_0_100\\%\\] {\n flex: 0 0 100%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.grow-0 {\n flex-grow: 0;\n}\n.grow-\\[1\\] {\n flex-grow: 1;\n}\n.grow-\\[2\\] {\n flex-grow: 2;\n}\n.grow-\\[5\\] {\n flex-grow: 5;\n}\n.border-collapse {\n border-collapse: collapse;\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-\\[-30deg\\] {\n --tw-rotate: -30deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform-none {\n transform: none;\n}\n@keyframes bounce-dot {\n\n 0%, 100% {\n transform: translateY(0);\n opacity: 0.3;\n }\n\n 50% {\n transform: translateY(-5px);\n opacity: 1;\n }\n}\n.animate-bounce-dot {\n animation: bounce-dot 1.5s infinite ease-in-out;\n}\n@keyframes checkbox-check {\n\n from {\n opacity: 0;\n stroke-dashoffset: 16;\n transform: scale(0.95);\n }\n\n to {\n opacity: 1;\n stroke-dashoffset: 0;\n transform: scale(1);\n }\n}\n.animate-checkbox-check {\n animation: checkbox-check 200ms linear;\n}\n@keyframes shimmer {\n\n 0% {\n background-size: 200% 200%;\n background-position: 100% 0;\n }\n\n 100% {\n background-size: 200% 200%;\n background-position: -100% 0;\n }\n}\n.animate-shimmer {\n animation: shimmer 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n@keyframes skeleton-bg-fade {\n\n from {\n border-color: var(--start-color);\n background: var(--start-color);\n }\n\n to {\n border-color: var(--end-color);\n background: var(--end-color);\n }\n}\n.animate-skeleton-bg-fade {\n animation: 0.8s linear infinite alternate skeleton-bg-fade;\n}\n@keyframes spin {\n\n to {\n transform: rotate(360deg);\n }\n}\n.animate-spin {\n animation: spin 1s linear infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.list-\\[initial\\] {\n list-style-type: initial;\n}\n.list-decimal {\n list-style-type: decimal;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse;\n}\n.place-items-center {\n place-items: center;\n}\n.content-center {\n align-content: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.items-stretch {\n align-items: stretch;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-0\\.5 {\n gap: 0.125rem;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-12 {\n gap: 3rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-6 {\n gap: 1.5rem;\n}\n.gap-8 {\n gap: 2rem;\n}\n.gap-\\[1rem_0\\.5rem\\] {\n gap: 1rem 0.5rem;\n}\n.gap-x-3 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.gap-y-1 {\n row-gap: 0.25rem;\n}\n.gap-y-2 {\n row-gap: 0.5rem;\n}\n.gap-y-6 {\n row-gap: 1.5rem;\n}\n.space-x-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.25rem * var(--tw-space-x-reverse));\n margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n.self-start {\n align-self: flex-start;\n}\n.self-center {\n align-self: center;\n}\n.justify-self-end {\n justify-self: end;\n}\n.justify-self-center {\n justify-self: center;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-normal {\n white-space: normal;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre {\n white-space: pre;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n overflow-wrap: break-word;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-\\[0_0_6px_6px\\] {\n border-radius: 0 0 6px 6px;\n}\n.rounded-\\[6px\\] {\n border-radius: 6px;\n}\n.rounded-\\[6px_6px_0_0\\] {\n border-radius: 6px 6px 0 0;\n}\n.rounded-\\[inherit\\] {\n border-radius: inherit;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-l {\n border-left-width: 1px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-none {\n border-style: none;\n}\n.border-\\[--end-color\\] {\n border-color: var(--end-color);\n}\n.border-gray-100 {\n border-color: var(--ikp-color-gray-100);\n}\n.border-gray-200 {\n border-color: var(--ikp-color-gray-200);\n}\n.border-gray-300 {\n border-color: var(--ikp-color-gray-300);\n}\n.border-inherit {\n border-color: inherit;\n}\n.border-inkeep-expanded-primary-200 {\n border-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n.border-transparent {\n border-color: transparent;\n}\n.border-white-alpha-200 {\n border-color: var(--ikp-color-white-alpha-200);\n}\n.border-l-transparent {\n border-left-color: transparent;\n}\n.bg-\\[--start-color\\] {\n background-color: var(--start-color);\n}\n.bg-gray-100 {\n background-color: var(--ikp-color-gray-100);\n}\n.bg-gray-1000 {\n background-color: var(--ikp-color-gray-1000);\n}\n.bg-gray-300 {\n background-color: var(--ikp-color-gray-300);\n}\n.bg-gray-50 {\n background-color: var(--ikp-color-gray-50);\n}\n.bg-inherit {\n background-color: inherit;\n}\n.bg-inkeep-primary-lighter {\n background-color: var(--ikp-color-inkeep-primary-lighter);\n}\n.bg-inkeep-primary-medium {\n background-color: var(--ikp-color-inkeep-primary-medium);\n}\n.bg-inkeep-primary-text-bold {\n background-color: var(--ikp-color-inkeep-primary-text-bold);\n}\n.bg-overlay-light {\n background-color: var(--ikp-color-overlay-light);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.bg-gradient-to-br {\n background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));\n}\n.bg-gradient-to-t {\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n}\n.from-gray-100 {\n --tw-gradient-from: var(--ikp-color-gray-100) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-gray-700 {\n --tw-gradient-from: var(--ikp-color-gray-700) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.to-gray-400 {\n --tw-gradient-to: var(--ikp-color-gray-400) var(--tw-gradient-to-position);\n}\n.bg-clip-padding {\n background-clip: padding-box;\n}\n.bg-clip-text {\n -webkit-background-clip: text;\n background-clip: text;\n}\n.fill-white {\n fill: #fff;\n}\n.p-0 {\n padding: 0px;\n}\n.p-0\\.5 {\n padding: 0.125rem;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-8 {\n padding: 2rem;\n}\n.p-\\[1em\\] {\n padding: 1em;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-\\[\\.4rem\\] {\n padding-left: .4rem;\n padding-right: .4rem;\n}\n.px-\\[18px\\] {\n padding-left: 18px;\n padding-right: 18px;\n}\n.py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n.py-\\[\\.2rem\\] {\n padding-top: .2rem;\n padding-bottom: .2rem;\n}\n.py-\\[1px\\] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.pb-1 {\n padding-bottom: 0.25rem;\n}\n.pb-2\\.5 {\n padding-bottom: 0.625rem;\n}\n.pb-3 {\n padding-bottom: 0.75rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pb-8 {\n padding-bottom: 2rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-6 {\n padding-left: 1.5rem;\n}\n.pl-7 {\n padding-left: 1.75rem;\n}\n.pr-1 {\n padding-right: 0.25rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-1 {\n padding-top: 0.25rem;\n}\n.pt-12 {\n padding-top: 3rem;\n}\n.pt-2 {\n padding-top: 0.5rem;\n}\n.pt-3 {\n padding-top: 0.75rem;\n}\n.pt-4 {\n padding-top: 1rem;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-start {\n text-align: start;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-body {\n font-family: var(--ikp-font-family-body);\n}\n.font-heading {\n font-family: var(--ikp-font-family-heading);\n}\n.font-mono {\n font-family: var(--ikp-font-family-mono);\n}\n.text-1sm {\n font-size: var(--ikp-font-size-1sm);\n}\n.text-2sm {\n font-size: var(--ikp-font-size-2sm);\n}\n.text-2xs {\n font-size: var(--ikp-font-size-2xs);\n}\n.text-3xl {\n font-size: var(--ikp-font-size-3xl);\n}\n.text-3xs {\n font-size: var(--ikp-font-size-3xs);\n}\n.text-lg {\n font-size: var(--ikp-font-size-lg);\n}\n.text-md {\n font-size: var(--ikp-font-size-md);\n}\n.text-sm {\n font-size: var(--ikp-font-size-sm);\n}\n.text-xl {\n font-size: var(--ikp-font-size-xl);\n}\n.text-xs {\n font-size: var(--ikp-font-size-xs);\n}\n.font-bold {\n font-weight: 700;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.uppercase {\n text-transform: uppercase;\n}\n.leading-4 {\n line-height: 1rem;\n}\n.leading-5 {\n line-height: 1.25rem;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-\\[1\\.25\\] {\n line-height: 1.25;\n}\n.leading-\\[1\\.2\\] {\n line-height: 1.2;\n}\n.leading-\\[1em\\] {\n line-height: 1em;\n}\n.leading-\\[unset\\] {\n line-height: unset;\n}\n.leading-snug {\n line-height: 1.375;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-wider {\n letter-spacing: 0.05em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-current {\n color: currentColor;\n}\n.text-gray-400 {\n color: var(--ikp-color-gray-400);\n}\n.text-gray-500 {\n color: var(--ikp-color-gray-500);\n}\n.text-gray-600 {\n color: var(--ikp-color-gray-600);\n}\n.text-gray-700 {\n color: var(--ikp-color-gray-700);\n}\n.text-gray-800 {\n color: var(--ikp-color-gray-800);\n}\n.text-green-500 {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity, 1));\n}\n.text-inherit {\n color: inherit;\n}\n.text-inkeep-primary-medium {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n.text-inkeep-primary-strong {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n.text-inkeep-primary-stronger {\n color: var(--ikp-color-inkeep-primary-stronger);\n}\n.text-inkeep-primary-text-bold {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n.text-inkeep-primary-text-color-on-primary {\n color: var(--ikp-color-inkeep-primary-text-color-on-primary);\n}\n.text-purple-500 {\n --tw-text-opacity: 1;\n color: rgb(168 85 247 / var(--tw-text-opacity, 1));\n}\n.text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n.text-transparent {\n color: transparent;\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-30 {\n opacity: 0.3;\n}\n.opacity-45 {\n opacity: 0.45;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[0_0_0_2px_var\\(--shadow-color\\)\\] {\n --tw-shadow: 0 0 0 2px var(--shadow-color);\n --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[0_25px_50px_-12px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)\\] {\n --tw-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[0_8px_30px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.12\\)\\] {\n --tw-shadow: 0 8px 30px rgba(0,0,0,0.12);\n --tw-shadow-colored: 0 8px 30px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[inset_0_0_0_1px_currentColor\\] {\n --tw-shadow: inset 0 0 0 1px currentColor;\n --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-\\[none\\] {\n --tw-shadow-color: none;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -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);\n 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);\n}\n.transition-\\[common\\] {\n transition-property: common;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-\\[160ms\\] {\n transition-duration: 160ms;\n}\n.duration-\\[180\\] {\n transition-duration: 180;\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-linear {\n transition-timing-function: linear;\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.\\[--end-color\\:theme\\(colors\\.gray\\.300\\)\\] {\n --end-color: var(--ikp-color-gray-300);\n}\n.\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.700\\)\\] {\n --end-color: var(--ikp-color-inkeep-expanded-primary-700);\n}\n.\\[--end-color\\:theme\\(colors\\.white-alpha\\.100\\)\\] {\n --end-color: var(--ikp-color-white-alpha-100);\n}\n.\\[--error-border-color\\:theme\\(colors\\.red\\.500\\)\\] {\n --error-border-color: #ef4444;\n}\n.\\[--focus-border-color\\:theme\\(colors\\.blue\\.500\\)\\] {\n --focus-border-color: #3b82f6;\n}\n.\\[--scrollbar-color\\:var\\(--color-gray-300\\)\\] {\n --scrollbar-color: var(--color-gray-300);\n}\n.\\[--start-color\\:theme\\(colors\\.gray\\.50\\)\\] {\n --start-color: var(--ikp-color-gray-50);\n}\n.\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\] {\n --start-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n.\\[counter-increment\\:item\\] {\n counter-increment: item;\n}\n.\\[counter-reset\\:item_calc\\(var\\(--start\\2c 0\\)_-_1\\)\\] {\n counter-reset: item calc(var(--start,0) - 1);\n}\n.\\[font-size\\:85\\%\\!important\\] {\n font-size: 85% !important;\n}\n.\\[font-variant-numeric\\:lining-nums_tabular-nums\\] {\n font-variant-numeric: lining-nums tabular-nums;\n}\n.\\[grid-area\\:breadcrumbs\\] {\n grid-area: breadcrumbs;\n}\n.\\[grid-area\\:description\\] {\n grid-area: description;\n}\n.\\[grid-area\\:icon\\] {\n grid-area: icon;\n}\n.\\[grid-area\\:indicator\\] {\n grid-area: indicator;\n}\n.\\[grid-area\\:tag\\] {\n grid-area: tag;\n}\n.\\[grid-area\\:title\\] {\n grid-area: title;\n}\n.\\[grid-template\\:\\"breadcrumbs_breadcrumbs_breadcrumbs_indicator\\"\\"icon_title_tag_indicator\\"\\"description_description_description_indicator\\"\\/auto_auto_1fr_auto\\] {\n grid-template: "breadcrumbs breadcrumbs breadcrumbs indicator""icon title tag indicator""description description description indicator"/auto auto 1fr auto;\n}\n.\\[inset-inline-start\\:var\\(--start\\2c 0px\\)\\] {\n inset-inline-start: var(--start,0px);\n}\n.\\[overflow-wrap\\:anywhere\\] {\n overflow-wrap: anywhere;\n}\n.\\[scrollbar-color\\:var\\(--scrollbar-color\\)_transparent\\] {\n scrollbar-color: var(--scrollbar-color) transparent;\n}\n.\\[scrollbar-width\\:thin\\] {\n scrollbar-width: thin;\n}\n.\\[transition-duration\\:0\\.02s\\] {\n transition-duration: 0.02s;\n}\n.\\[transition-property\\:common\\] {\n transition-property: common;\n}\n\n:where(.inkeep-widget-vars) {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-family: var(--ikp-font-family-body);\n font-size: var(--ikp-font-size-md);\n line-height: 1.5;\n color: var(--ikp-color-gray-800);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n:where(.inkeep-widget-vars) *,\n:where(.inkeep-widget-vars) *::before,\n:where(.inkeep-widget-vars) *::after {\n border-color: var(--ikp-color-gray-200);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) *,\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) *::before,\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) *::after {\n border-color: var(--ikp-color-white-alpha-200);\n}\n\n:where(.inkeep-widget-vars) input::-moz-placeholder, :where(.inkeep-widget-vars) textarea::-moz-placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n:where(.inkeep-widget-vars) input::placeholder,\n:where(.inkeep-widget-vars) textarea::placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) input::-moz-placeholder, [data-theme=\'dark\'] :where(.inkeep-widget-vars) textarea::-moz-placeholder {\n color: var(--ikp-color-white-alpha-500);\n}\n\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) input::placeholder,\n[data-theme=\'dark\'] :where(.inkeep-widget-vars) textarea::placeholder {\n color: var(--ikp-color-white-alpha-500);\n}\n\n:where(.inkeep-widget-vars) [data-part=\'icon\'][data-type=\'built-in\'] {\n display: inline-block;\n min-height: 1em;\n min-width: 1em;\n flex-shrink: 0;\n vertical-align: middle;\n line-height: 1em;\n}\n\nsvg[data-part=\'icon\'][data-type=\'custom\'] {\n /* we don\'t want the wrapper divs to affect layout / positioning of icon */\n display: contents;\n}\n\nsvg[data-part=\'icon\'][data-type=\'custom\'] div {\n display: contents;\n}\n\nimg[data-part=\'icon\'][data-type=\'custom\'] {\n display: inline-block;\n min-height: 1em;\n min-width: 1em;\n}\n\n.\\*\\:invisible > * {\n visibility: hidden;\n}\n\n.\\*\\:m-0 > * {\n margin: 0px;\n}\n\n.file\\:h-full::file-selector-button {\n height: 100%;\n}\n\n.file\\:cursor-pointer::file-selector-button {\n cursor: pointer;\n}\n\n.file\\:border-none::file-selector-button {\n border-style: none;\n}\n\n.file\\:bg-transparent::file-selector-button {\n background-color: transparent;\n}\n\n.file\\:text-sm::file-selector-button {\n font-size: var(--ikp-font-size-sm);\n}\n\n.file\\:font-medium::file-selector-button {\n font-weight: 500;\n}\n\n.file\\:text-gray-700::file-selector-button {\n color: var(--ikp-color-gray-700);\n}\n\n.placeholder\\:text-gray-500::-moz-placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n.placeholder\\:text-gray-500::placeholder {\n color: var(--ikp-color-gray-500);\n}\n\n.before\\:pointer-events-none::before {\n content: var(--tw-content);\n pointer-events: none;\n}\n\n.before\\:invisible::before {\n content: var(--tw-content);\n visibility: hidden;\n}\n\n.before\\:absolute::before {\n content: var(--tw-content);\n position: absolute;\n}\n\n.before\\:left-0::before {\n content: var(--tw-content);\n left: 0px;\n}\n\n.before\\:top-0::before {\n content: var(--tw-content);\n top: 0px;\n}\n\n.before\\:z-hide::before {\n content: var(--tw-content);\n z-index: var(--ikp-z-index-hide);\n}\n\n.before\\:m-auto::before {\n content: var(--tw-content);\n margin: auto;\n}\n\n.before\\:block::before {\n content: var(--tw-content);\n display: block;\n}\n\n.before\\:h-3::before {\n content: var(--tw-content);\n height: 0.75rem;\n}\n\n.before\\:h-\\[--before-size\\]::before {\n content: var(--tw-content);\n height: var(--before-size);\n}\n\n.before\\:w-\\[--before-size\\]::before {\n content: var(--tw-content);\n width: var(--before-size);\n}\n\n.before\\:w-full::before {\n content: var(--tw-content);\n width: 100%;\n}\n\n.before\\:-translate-y-full::before {\n content: var(--tw-content);\n --tw-translate-y: -100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.before\\:bg-gray-300::before {\n content: var(--tw-content);\n background-color: var(--ikp-color-gray-300);\n}\n\n.before\\:bg-gradient-to-b::before {\n content: var(--tw-content);\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n\n.before\\:from-transparent::before {\n content: var(--tw-content);\n --tw-gradient-from: transparent var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.before\\:to-white::before {\n content: var(--tw-content);\n --tw-gradient-to: #fff var(--tw-gradient-to-position);\n}\n\n.before\\:bg-no-repeat::before {\n content: var(--tw-content);\n background-repeat: no-repeat;\n}\n\n.before\\:\\[background-position\\:0_0\\]::before {\n content: var(--tw-content);\n background-position: 0 0;\n}\n\n.before\\:\\[background-size\\:cover\\]::before {\n content: var(--tw-content);\n background-size: cover;\n}\n\n.after\\:invisible::after {\n content: var(--tw-content);\n visibility: hidden;\n}\n\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.after\\:bottom-0::after {\n content: var(--tw-content);\n bottom: 0px;\n}\n\n.after\\:left-\\[1px\\]::after {\n content: var(--tw-content);\n left: 1px;\n}\n\n.after\\:top-\\[1px\\]::after {\n content: var(--tw-content);\n top: 1px;\n}\n\n.after\\:z-base::after {\n content: var(--tw-content);\n z-index: var(--ikp-z-index-base);\n}\n\n.after\\:h-\\[calc\\(100\\%-2px\\)\\]::after {\n content: var(--tw-content);\n height: calc(100% - 2px);\n}\n\n.after\\:w-\\[calc\\(100\\%-2px\\)\\]::after {\n content: var(--tw-content);\n width: calc(100% - 2px);\n}\n\n.after\\:rounded-\\[5px\\]::after {\n content: var(--tw-content);\n border-radius: 5px;\n}\n\n.after\\:bg-white::after {\n content: var(--tw-content);\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.after\\:bg-gradient-to-t::after {\n content: var(--tw-content);\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n}\n\n.last-of-type\\:hidden:last-of-type {\n display: none;\n}\n\n.focus\\:z-base:focus {\n z-index: var(--ikp-z-index-base);\n}\n\n.focus\\:z-start:focus {\n z-index: var(--ikp-z-index-start);\n}\n\n.focus\\:bg-gray-100:focus {\n background-color: var(--ikp-color-gray-100);\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.focus\\:outline-inkeep-expanded-primary-700:focus {\n outline-color: var(--ikp-color-inkeep-expanded-primary-700);\n}\n\n.focus\\:\\[--shadow-color\\:theme\\(colors\\.blue\\.500\\)\\]:focus {\n --shadow-color: #3b82f6;\n}\n\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.focus-visible\\:ring:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-visible\\:ring-transparent:focus-visible {\n --tw-ring-color: transparent;\n}\n\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n\n.focus-visible\\:ring-offset-transparent:focus-visible {\n --tw-ring-offset-color: transparent;\n}\n\n.active\\:bg-gray-200:active {\n background-color: var(--ikp-color-gray-200);\n}\n\n.active\\:bg-gray-300:active {\n background-color: var(--ikp-color-gray-300);\n}\n\n.active\\:bg-gray-50:active {\n background-color: var(--ikp-color-gray-50);\n}\n\n.active\\:bg-gray-900:active {\n background-color: var(--ikp-color-gray-900);\n}\n\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.disabled\\:text-gray-500:disabled {\n color: var(--ikp-color-gray-500);\n}\n\n.disabled\\:opacity-40:disabled {\n opacity: 0.4;\n}\n\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n\n.disabled\\:shadow-none:disabled {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.active\\:disabled\\:\\[background\\:none\\]:disabled:active {\n background: none;\n}\n\n.group:hover .group-hover\\:text-gray-600 {\n color: var(--ikp-color-gray-600);\n}\n\n.has-\\[\\[data-scroll-top\\]\\]\\:before\\:opacity-0:has([data-scroll-top])::before {\n content: var(--tw-content);\n opacity: 0;\n}\n\n.has-\\[\\[data-scroll-bottom\\]\\]\\:after\\:opacity-0:has([data-scroll-bottom])::after {\n content: var(--tw-content);\n opacity: 0;\n}\n\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n\n.data-\\[mobile\\]\\:inset-0[data-mobile] {\n inset: 0px;\n}\n\n.data-\\[even\\]\\:ml-0[data-even] {\n margin-left: 0px;\n}\n\n.data-\\[even\\]\\:mr-4[data-even] {\n margin-right: 1rem;\n}\n\n.data-\\[role\\=user\\]\\:ml-0[data-role="user"] {\n margin-left: 0px;\n}\n\n.data-\\[role\\=user\\]\\:block[data-role="user"] {\n display: block;\n}\n\n.data-\\[has-results\\]\\:flex[data-has-results] {\n display: flex;\n}\n\n.data-\\[escalated\\]\\:hidden[data-escalated] {\n display: none;\n}\n\n.data-\\[hidden\\]\\:hidden[data-hidden] {\n display: none;\n}\n\n.data-\\[role\\=user\\]\\:hidden[data-role="user"] {\n display: none;\n}\n\n.data-\\[state\\=closed\\]\\:hidden[data-state="closed"] {\n display: none;\n}\n\n.data-\\[submitted\\]\\:hidden[data-submitted] {\n display: none;\n}\n\n.data-\\[has-content\\]\\:h-\\[min\\(calc\\(85vh_-_72px\\)\\2c calc\\(850px_-_72px_-_275px\\)\\)\\][data-has-content] {\n height: min(calc(85vh - 72px),calc(850px - 72px - 275px));\n}\n\n.data-\\[mobile\\]\\:h-\\[unset\\][data-mobile] {\n height: unset;\n}\n\n.data-\\[composite\\]\\:w-full[data-composite] {\n width: 100%;\n}\n\n.data-\\[mobile\\]\\:w-\\[unset\\][data-mobile] {\n width: unset;\n}\n\n.data-\\[role\\=user\\]\\:grow-0[data-role="user"] {\n flex-grow: 0;\n}\n\n.data-\\[side\\=bottom\\]\\:translate-y-1\\.5[data-side="bottom"] {\n --tw-translate-y: 0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[side\\=left\\]\\:-translate-x-1\\.5[data-side="left"] {\n --tw-translate-x: -0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[side\\=right\\]\\:translate-x-1\\.5[data-side="right"] {\n --tw-translate-x: 0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[side\\=top\\]\\:-translate-y-1\\.5[data-side="top"] {\n --tw-translate-y: -0.375rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.data-\\[mobile\\]\\:transform-none[data-mobile] {\n transform: none;\n}\n\n@keyframes fade-out {\n\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n.data-\\[state\\=closed\\]\\:animate-fade-out[data-state="closed"] {\n animation: fade-out 0.2s ease-out;\n}\n\n@keyframes fade-in {\n\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.data-\\[state\\=open\\]\\:animate-fade-in[data-state="open"] {\n animation: fade-in 0.25s ease-out;\n}\n\n.data-\\[loading\\]\\:cursor-wait[data-loading] {\n cursor: wait;\n}\n\n.data-\\[even\\]\\:flex-row[data-even] {\n flex-direction: row;\n}\n\n.data-\\[input-type\\=checkbox\\]\\:flex-row[data-input-type="checkbox"] {\n flex-direction: row;\n}\n\n.data-\\[even\\]\\:items-start[data-even] {\n align-items: flex-start;\n}\n\n.data-\\[input-type\\=checkbox\\]\\:items-center[data-input-type="checkbox"] {\n align-items: center;\n}\n\n.data-\\[role\\=user\\]\\:justify-end[data-role="user"] {\n justify-content: flex-end;\n}\n\n.data-\\[role\\=user\\]\\:whitespace-pre-wrap[data-role="user"] {\n white-space: pre-wrap;\n}\n\n.data-\\[mobile\\]\\:rounded-none[data-mobile] {\n border-radius: 0px;\n}\n\n.data-\\[invalid\\]\\:border-\\[--error-border-color\\][data-invalid] {\n border-color: var(--error-border-color);\n}\n\n.data-\\[state\\=active\\]\\:border-inkeep-primary-medium-subtle[data-state="active"] {\n border-color: var(--ikp-color-inkeep-primary-medium-subtle);\n}\n\n.data-\\[state\\=checked\\]\\:border-gray-1000[data-state="checked"] {\n border-color: var(--ikp-color-gray-1000);\n}\n\n.data-\\[active\\]\\:bg-white[data-active] {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.data-\\[role\\=user\\]\\:bg-gray-50[data-role="user"] {\n background-color: var(--ikp-color-gray-50);\n}\n\n.data-\\[state\\=active\\]\\:bg-inkeep-primary-light-subtle[data-state="active"] {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.data-\\[state\\=checked\\]\\:bg-gray-1000[data-state="checked"] {\n background-color: var(--ikp-color-gray-1000);\n}\n\n.data-\\[username\\]\\:bg-inkeep-primary-lighter[data-username] {\n background-color: var(--ikp-color-inkeep-primary-lighter);\n}\n\n.data-\\[has-content\\]\\:pb-2[data-has-content] {\n padding-bottom: 0.5rem;\n}\n\n.data-\\[is-numeric\\=true\\]\\:text-end[data-is-numeric="true"] {\n text-align: end;\n}\n\n.data-\\[highlighted\\]\\:font-semibold[data-highlighted] {\n font-weight: 600;\n}\n\n.data-\\[active\\]\\:text-gray-600[data-active] {\n color: var(--ikp-color-gray-600);\n}\n\n.data-\\[active\\]\\:text-gray-800[data-active] {\n color: var(--ikp-color-gray-800);\n}\n\n.data-\\[copied\\]\\:text-inkeep-primary-medium[data-copied] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[downvoted\\]\\:text-inkeep-primary-medium[data-downvoted] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[highlighted\\]\\:text-inkeep-primary-text-subtle[data-highlighted] {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.data-\\[role\\=user\\]\\:text-gray-700[data-role="user"] {\n color: var(--ikp-color-gray-700);\n}\n\n.data-\\[state\\=active\\]\\:text-inkeep-expanded-primary-900[data-state="active"] {\n color: var(--ikp-color-inkeep-expanded-primary-900);\n}\n\n.data-\\[state\\=checked\\]\\:text-white[data-state="checked"] {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[type\\=\\"stackoverflow\\"\\]\\:text-green-500[data-type="stackoverflow"] {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[type\\=icon\\]\\:data-\\[role\\=user\\]\\:text-inkeep-primary-medium[data-role="user"][data-type="icon"] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[type\\^\\=\\"github\\"\\]\\:text-purple-500[data-type^="github"] {\n --tw-text-opacity: 1;\n color: rgb(168 85 247 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[upvoted\\]\\:text-inkeep-primary-medium[data-upvoted] {\n color: var(--ikp-color-inkeep-primary-medium);\n}\n\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n\n.data-\\[active\\]\\:shadow[data-active] {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.data-\\[invalid\\]\\:shadow-\\[0_0_0_1px_var\\(--error-border-color\\)\\][data-invalid] {\n --tw-shadow: 0 0 0 1px var(--error-border-color);\n --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.data-\\[disable-transitions\\]\\:transition-none[data-disable-transitions] {\n transition-property: none;\n}\n\n.data-\\[type\\=icon\\]\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-type="icon"] {\n --end-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.700\\)\\][data-role="assistant"][data-type="icon"] {\n --end-color: var(--ikp-color-inkeep-expanded-primary-700);\n}\n\n.data-\\[invalid\\]\\:\\[--shadow-color\\:theme\\(colors\\.red\\.500\\)\\][data-invalid] {\n --shadow-color: #ef4444;\n}\n\n.data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-role="assistant"][data-type="icon"] {\n --start-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[type\\=icon\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.50\\)\\][data-type="icon"] {\n --start-color: var(--ikp-color-inkeep-expanded-primary-50);\n}\n\n.data-\\[required\\]\\:after\\:absolute[data-required]::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:absolute[data-show-toolbar]::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:left-0[data-show-toolbar]::after {\n content: var(--tw-content);\n left: 0px;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:top-full[data-show-toolbar]::after {\n content: var(--tw-content);\n top: 100%;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:z-start[data-show-toolbar]::after {\n content: var(--tw-content);\n z-index: var(--ikp-z-index-start);\n}\n\n.data-\\[required\\]\\:after\\:ml-1[data-required]::after {\n content: var(--tw-content);\n margin-left: 0.25rem;\n}\n\n.data-\\[required\\]\\:after\\:mt-0[data-required]::after {\n content: var(--tw-content);\n margin-top: 0px;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:h-\\[1rem\\][data-show-toolbar]::after {\n content: var(--tw-content);\n height: 1rem;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:w-full[data-show-toolbar]::after {\n content: var(--tw-content);\n width: 100%;\n}\n\n.data-\\[show-toolbar\\]\\:after\\:bg-\\[linear-gradient\\(currentColor\\2c _transparent\\)\\][data-show-toolbar]::after {\n content: var(--tw-content);\n background-image: linear-gradient(currentColor, transparent);\n}\n\n.data-\\[required\\]\\:after\\:text-red-500[data-required]::after {\n content: var(--tw-content);\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[show-toolbar\\]\\:after\\:text-white[data-show-toolbar]::after {\n content: var(--tw-content);\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[required\\]\\:after\\:\\[content\\:\\"\\*\\"\\][data-required]::after {\n content: "*";\n}\n\n@keyframes spin {\n\n to {\n content: var(--tw-content);\n transform: rotate(360deg);\n }\n}\n\n.data-\\[highlight\\]\\:first\\:before\\:animate-\\[spin_4s_linear_infinite\\]:first-child[data-highlight]::before {\n content: var(--tw-content);\n animation: spin 4s linear infinite;\n}\n\n.data-\\[highlight\\]\\:first\\:before\\:\\[background-image\\:conic-gradient\\(transparent\\2c theme\\(colors\\.inkeep-expanded-primary\\.600\\)\\2c transparent_30\\%\\)\\]:first-child[data-highlight]::before {\n content: var(--tw-content);\n background-image: conic-gradient(transparent,var(--ikp-color-inkeep-expanded-primary-600),transparent 30%);\n}\n\n:not(.dark) .light\\:text-gray-700 {\n color: var(--ikp-color-gray-700);\n}\n\n[data-widget-md] .ikp-md\\:mb-0 {\n margin-bottom: 0px;\n}\n\n[data-widget-md] .ikp-md\\:flex {\n display: flex;\n}\n\n[data-widget-md] .ikp-md\\:hidden {\n display: none;\n}\n\n[data-widget-md] .ikp-md\\:h-12 {\n height: 3rem;\n}\n\n[data-widget-md] .ikp-md\\:flex-row {\n flex-direction: row;\n}\n\n[data-widget-md] .ikp-md\\:flex-col {\n flex-direction: column;\n}\n\n[data-widget-md] .ikp-md\\:items-start {\n align-items: flex-start;\n}\n\n[data-widget-md] .ikp-md\\:px-14 {\n padding-left: 3.5rem;\n padding-right: 3.5rem;\n}\n\n[data-widget-md] .ikp-md\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n[data-widget-md] .ikp-md\\:px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n\n[data-widget-md] .ikp-md\\:py-14 {\n padding-top: 3.5rem;\n padding-bottom: 3.5rem;\n}\n\n[data-widget-md] .ikp-md\\:pb-14 {\n padding-bottom: 3.5rem;\n}\n\n[data-widget-md] .ikp-md\\:pl-3 {\n padding-left: 0.75rem;\n}\n\n[data-widget-md] .ikp-md\\:pr-3 {\n padding-right: 0.75rem;\n}\n\n[data-widget-md] .ikp-md\\:pr-6 {\n padding-right: 1.5rem;\n}\n\n.hover\\:scale-110:hover:not(:disabled) {\n --tw-scale-x: 1.1;\n --tw-scale-y: 1.1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.hover\\:border-gray-300:hover:not(:disabled) {\n border-color: var(--ikp-color-gray-300);\n}\n\n.hover\\:bg-gray-100:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-100);\n}\n\n.hover\\:bg-gray-200:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-200);\n}\n\n.hover\\:bg-gray-50:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-50);\n}\n\n.hover\\:bg-gray-900:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-900);\n}\n\n.hover\\:bg-inkeep-primary-light-subtle:hover:not(:disabled) {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.hover\\:bg-transparent:hover:not(:disabled) {\n background-color: transparent;\n}\n\n.hover\\:text-gray-700:hover:not(:disabled) {\n color: var(--ikp-color-gray-700);\n}\n\n.hover\\:text-gray-800:hover:not(:disabled) {\n color: var(--ikp-color-gray-800);\n}\n\n.hover\\:text-inkeep-primary-strong:hover:not(:disabled) {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n\n.hover\\:underline:hover:not(:disabled) {\n text-decoration-line: underline;\n}\n\n.hover\\:disabled\\:bg-gray-100:disabled:hover:not(:disabled) {\n background-color: var(--ikp-color-gray-100);\n}\n\n.hover\\:disabled\\:\\[background\\:none\\]:disabled:hover:not(:disabled) {\n background: none;\n}\n\n.hover\\:data-\\[state\\=active\\]\\:bg-inkeep-primary-light-subtle[data-state="active"]:hover:not(:disabled) {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.befter\\:pointer-events-none::before {\n pointer-events: none;\n}\n\n.befter\\:absolute::before {\n position: absolute;\n}\n\n.befter\\:inset-x-0::before {\n left: 0px;\n right: 0px;\n}\n\n.befter\\:h-10::before {\n height: 2.5rem;\n}\n\n.befter\\:from-white::before {\n --tw-gradient-from: #fff var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.befter\\:to-transparent::before {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n\n.befter\\:transition-opacity::before {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.befter\\:duration-300::before {\n transition-duration: 300ms;\n}\n\n.befter\\:ease-in-out::before {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.befter\\:content-\\[\\"\\"\\]::before {\n --tw-content: "";\n content: var(--tw-content);\n}\n\n.befter\\:pointer-events-none::after {\n pointer-events: none;\n}\n\n.befter\\:absolute::after {\n position: absolute;\n}\n\n.befter\\:inset-x-0::after {\n left: 0px;\n right: 0px;\n}\n\n.befter\\:h-10::after {\n height: 2.5rem;\n}\n\n.befter\\:from-white::after {\n --tw-gradient-from: #fff var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.befter\\:to-transparent::after {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n\n.befter\\:transition-opacity::after {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.befter\\:duration-300::after {\n transition-duration: 300ms;\n}\n\n.befter\\:ease-in-out::after {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.befter\\:content-\\[\\"\\"\\]::after {\n --tw-content: "";\n content: var(--tw-content);\n}\n\n.selected\\:border-inkeep-primary-medium-subtle[data-selected="true"] {\n border-color: var(--ikp-color-inkeep-primary-medium-subtle);\n}\n\n.selected\\:bg-inkeep-primary-light-subtle[data-selected="true"] {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.selected\\:text-inkeep-primary-strong[data-selected="true"] {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n\n.selected\\:border-inkeep-primary-medium-subtle:hover {\n border-color: var(--ikp-color-inkeep-primary-medium-subtle);\n}\n\n.selected\\:bg-inkeep-primary-light-subtle:hover {\n background-color: var(--ikp-color-inkeep-primary-light-subtle);\n}\n\n.selected\\:text-inkeep-primary-strong:hover {\n color: var(--ikp-color-inkeep-primary-strong);\n}\n\n.group[data-selected="true"] .group-selected\\:text-inkeep-primary-text-bold {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n\n.group[data-selected="true"] .group-selected\\:text-inkeep-primary-text-subtle {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.group[data-selected="true"] .group-selected\\:opacity-100 {\n opacity: 1;\n}\n\n.group:hover .group-selected\\:text-inkeep-primary-text-bold {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n\n.group:hover .group-selected\\:text-inkeep-primary-text-subtle {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.group:hover .group-selected\\:opacity-100 {\n opacity: 1;\n}\n\n.dark\\:border-gray-700:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-gray-700);\n}\n\n.dark\\:border-gray-dark-500:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-gray-dark-500);\n}\n\n.dark\\:border-gray-dark-700:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-gray-dark-700);\n}\n\n.dark\\:border-inkeep-expanded-primary-200:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.dark\\:border-transparent:is([data-theme="dark"] *) {\n border-color: transparent;\n}\n\n.dark\\:border-white-alpha-200:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:bg-gray-dark-600:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-600);\n}\n\n.dark\\:bg-gray-dark-700:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-700);\n}\n\n.dark\\:bg-gray-dark-800:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:bg-gray-dark-900:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-900);\n}\n\n.dark\\:bg-gray-dark-950:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:bg-inkeep-expanded-primary-300:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:bg-overlay-dark:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-overlay-dark);\n}\n\n.dark\\:bg-transparent:is([data-theme="dark"] *) {\n background-color: transparent;\n}\n\n.dark\\:bg-white-alpha-100:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:bg-white-alpha-200:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:bg-white-alpha-50:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-50);\n}\n\n.dark\\:from-gray-dark-300:is([data-theme="dark"] *) {\n --tw-gradient-from: var(--ikp-color-gray-dark-300) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.dark\\:from-gray-dark-600:is([data-theme="dark"] *) {\n --tw-gradient-from: var(--ikp-color-gray-dark-600) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.dark\\:to-gray-dark-100:is([data-theme="dark"] *) {\n --tw-gradient-to: var(--ikp-color-gray-dark-100) var(--tw-gradient-to-position);\n}\n\n.dark\\:fill-gray-dark-800:is([data-theme="dark"] *) {\n fill: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:text-gray-200:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-200);\n}\n\n.dark\\:text-gray-400:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-400);\n}\n\n.dark\\:text-gray-dark-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-100);\n}\n\n.dark\\:text-gray-dark-200:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-200);\n}\n\n.dark\\:text-gray-dark-300:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-300);\n}\n\n.dark\\:text-gray-dark-400:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-400);\n}\n\n.dark\\:text-gray-dark-950:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:text-inkeep-expanded-primary-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-100);\n}\n\n.dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:text-inkeep-expanded-primary-500:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-500);\n}\n\n.dark\\:text-red-300:is([data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(252 165 165 / var(--tw-text-opacity, 1));\n}\n\n.dark\\:text-white-alpha-500:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-500);\n}\n\n.dark\\:text-white-alpha-600:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-600);\n}\n\n.dark\\:text-white-alpha-700:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-700);\n}\n\n.dark\\:text-white-alpha-900:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-900);\n}\n\n.dark\\:text-white-alpha-950:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:shadow-none:is([data-theme="dark"] *) {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.dark\\:shadow-\\[none\\]:is([data-theme="dark"] *) {\n --tw-shadow-color: none;\n --tw-shadow: var(--tw-shadow-colored);\n}\n\n.dark\\:\\[--end-color\\:theme\\(colors\\.gray-dark\\.600\\)\\]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-gray-dark-600);\n}\n\n.dark\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:\\[--end-color\\:theme\\(colors\\.white-alpha\\.300\\)\\]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-white-alpha-300);\n}\n\n.dark\\:\\[--error-border-color\\:theme\\(colors\\.red\\.300\\)\\]:is([data-theme="dark"] *) {\n --error-border-color: #fca5a5;\n}\n\n.dark\\:\\[--focus-border-color\\:theme\\(colors\\.blue\\.300\\)\\]:is([data-theme="dark"] *) {\n --focus-border-color: #93c5fd;\n}\n\n.dark\\:\\[--scrollbar-color\\:var\\(--color-gray-dark-600\\)\\]:is([data-theme="dark"] *) {\n --scrollbar-color: var(--color-gray-dark-600);\n}\n\n.dark\\:\\[--start-color\\:theme\\(colors\\.gray-dark\\.800\\)\\]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:\\[--start-color\\:theme\\(colors\\.gray\\.300\\)\\]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-gray-300);\n}\n\n.dark\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.50\\)\\]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-inkeep-expanded-primary-50);\n}\n\n.dark\\:file\\:text-white-alpha-700:is([data-theme="dark"] *)::file-selector-button {\n color: var(--ikp-color-white-alpha-700);\n}\n\n.dark\\:placeholder\\:text-gray-dark-200:is([data-theme="dark"] *)::-moz-placeholder {\n color: var(--ikp-color-gray-dark-200);\n}\n\n.dark\\:placeholder\\:text-gray-dark-200:is([data-theme="dark"] *)::placeholder {\n color: var(--ikp-color-gray-dark-200);\n}\n\n.dark\\:before\\:bg-gray-dark-950:is([data-theme="dark"] *)::before {\n content: var(--tw-content);\n background-color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:before\\:to-gray-dark-950:is([data-theme="dark"] *)::before {\n content: var(--tw-content);\n --tw-gradient-to: var(--ikp-color-gray-dark-950) var(--tw-gradient-to-position);\n}\n\n.dark\\:after\\:bg-gray-dark-950:is([data-theme="dark"] *)::after {\n content: var(--tw-content);\n background-color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:focus\\:bg-gray-dark-800:focus:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:focus\\:outline-inkeep-expanded-primary-300:focus:is([data-theme="dark"] *) {\n outline-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:active\\:bg-inkeep-expanded-primary-200:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.dark\\:active\\:bg-white-alpha-100:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:active\\:bg-white-alpha-200:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:active\\:bg-white-alpha-400:active:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-400);\n}\n\n.dark\\:disabled\\:text-white-alpha-200:disabled:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-200);\n}\n\n.group:hover .dark\\:group-hover\\:text-white-alpha-600:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-600);\n}\n\n.dark\\:data-\\[state\\=active\\]\\:border-inkeep-expanded-primary-300[data-state="active"]:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:border-white-alpha-950[data-state="checked"]:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:data-\\[active\\]\\:bg-gray-dark-700[data-active]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-700);\n}\n\n.dark\\:data-\\[state\\=active\\]\\:bg-white-alpha-100[data-state="active"]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:bg-white-alpha-950[data-state="checked"]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:data-\\[username\\]\\:bg-inkeep-expanded-primary-300[data-username]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[active\\]\\:text-white-alpha-600[data-active]:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-600);\n}\n\n.dark\\:data-\\[active\\]\\:text-white-alpha-950[data-active]:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:data-\\[highlighted\\]\\:text-gray-dark-50[data-highlighted]:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-50);\n}\n\n.dark\\:data-\\[role\\=user\\]\\:text-white-alpha-700[data-role="user"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-700);\n}\n\n.dark\\:data-\\[state\\=active\\]\\:text-inkeep-expanded-primary-300[data-state="active"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:text-gray-1000[data-state="checked"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-1000);\n}\n\n.dark\\:data-\\[type\\=icon\\]\\:data-\\[role\\=user\\]\\:text-inkeep-expanded-primary-300[data-role="user"][data-type="icon"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[downvoted\\]\\:dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *)[data-downvoted] {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.data-\\[upvoted\\]\\:dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *)[data-upvoted] {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--end-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-role="assistant"][data-type="icon"]:is([data-theme="dark"] *) {\n --end-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.50\\)\\][data-role="assistant"][data-type="icon"]:is([data-theme="dark"] *) {\n --start-color: var(--ikp-color-inkeep-expanded-primary-50);\n}\n\n.dark\\:data-\\[required\\]\\:after\\:text-red-300[data-required]:is([data-theme="dark"] *)::after {\n content: var(--tw-content);\n --tw-text-opacity: 1;\n color: rgb(252 165 165 / var(--tw-text-opacity, 1));\n}\n\n.data-\\[show-toolbar\\]\\:after\\:dark\\:text-gray-dark-950:is([data-theme="dark"] *)[data-show-toolbar]::after {\n content: var(--tw-content);\n color: var(--ikp-color-gray-dark-950);\n}\n\n.dark\\:data-\\[highlight\\]\\:first\\:before\\:\\[background-image\\:conic-gradient\\(transparent\\2c theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\2c transparent_30\\%\\)\\]:first-child[data-highlight]:is([data-theme="dark"] *)::before {\n content: var(--tw-content);\n background-image: conic-gradient(transparent,var(--ikp-color-inkeep-expanded-primary-300),transparent 30%);\n}\n\n.dark\\:hover\\:border-white-alpha-300:hover:not(:disabled):is([data-theme="dark"] *) {\n border-color: var(--ikp-color-white-alpha-300);\n}\n\n.dark\\:hover\\:bg-gray-dark-800:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-gray-dark-800);\n}\n\n.dark\\:hover\\:bg-inkeep-expanded-primary-200:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.dark\\:hover\\:bg-transparent:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: transparent;\n}\n\n.dark\\:hover\\:bg-white-alpha-100:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:hover\\:bg-white-alpha-200:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:hover\\:bg-white-alpha-50:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-50);\n}\n\n.dark\\:hover\\:text-inkeep-expanded-primary-300:hover:not(:disabled):is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:hover\\:text-white-alpha-500:hover:not(:disabled):is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-500);\n}\n\n.dark\\:hover\\:text-white-alpha-950:hover:not(:disabled):is([data-theme="dark"] *) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.hover\\:dark\\:text-white-alpha-950:is([data-theme="dark"] *):hover:not(:disabled) {\n color: var(--ikp-color-white-alpha-950);\n}\n\n.dark\\:hover\\:disabled\\:bg-white-alpha-100:disabled:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.dark\\:hover\\:data-\\[state\\=active\\]\\:bg-white-alpha-100[data-state="active"]:hover:not(:disabled):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.befter\\:dark\\:from-gray-dark-950:is([data-theme="dark"] *)::before {\n --tw-gradient-from: var(--ikp-color-gray-dark-950) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.befter\\:dark\\:from-gray-dark-950:is([data-theme="dark"] *)::after {\n --tw-gradient-from: var(--ikp-color-gray-dark-950) var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.dark\\:selected\\:border-inkeep-expanded-primary-300[data-selected="true"]:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:selected\\:bg-white-alpha-200[data-selected="true"]:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:selected\\:text-inkeep-expanded-primary-300[data-selected="true"]:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:selected\\:border-inkeep-expanded-primary-300:hover:is([data-theme="dark"] *) {\n border-color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.dark\\:selected\\:bg-white-alpha-200:hover:is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-200);\n}\n\n.dark\\:selected\\:text-inkeep-expanded-primary-300:hover:is([data-theme="dark"] *) {\n color: var(--ikp-color-inkeep-expanded-primary-300);\n}\n\n.group[data-selected="true"] .dark\\:group-selected\\:text-gray-dark-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-100);\n}\n\n.group[data-selected="true"] .dark\\:group-selected\\:text-white:is([data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n.group:hover .dark\\:group-selected\\:text-gray-dark-100:is([data-theme="dark"] *) {\n color: var(--ikp-color-gray-dark-100);\n}\n\n.group:hover .dark\\:group-selected\\:text-white:is([data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n\n@media (min-width: 640px) {\n\n .sm\\:w-\\[420px\\] {\n width: 420px;\n }\n}\n\n@media (min-width: 768px) {\n\n .md\\:my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem;\n }\n\n .md\\:hidden {\n display: none;\n }\n\n .md\\:h-\\[min\\(760px\\2c 100\\%\\)\\] {\n height: min(760px,100%);\n }\n\n .md\\:w-\\[min\\(600px\\2c 100\\%\\)\\] {\n width: min(600px,100%);\n }\n\n .md\\:min-w-\\[min\\(320px\\2c 100\\%\\)\\] {\n min-width: min(320px,100%);\n }\n\n .md\\:p-10 {\n padding: 2.5rem;\n }\n\n .md\\:text-4xl {\n font-size: var(--ikp-font-size-4xl);\n }\n\n .md\\:text-sm {\n font-size: var(--ikp-font-size-sm);\n }\n\n .md\\:leading-5 {\n line-height: 1.25rem;\n }\n}\n\n@media (min-width: 1024px) {\n\n .lg\\:h-\\[min\\(800px\\2c 100\\%\\)\\] {\n height: min(800px,100%);\n }\n\n .lg\\:w-\\[min\\(640px\\2c 100\\%\\)\\] {\n width: min(640px,100%);\n }\n}\n\n@media (min-width: 1536px) {\n\n .\\32xl\\:h-\\[min\\(900px\\2c 100\\%\\)\\] {\n height: min(900px,100%);\n }\n\n .\\32xl\\:w-\\[min\\(760px\\2c 100\\%\\)\\] {\n width: min(760px,100%);\n }\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:absolute:not(:last-child)::after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:inset-x-6:not(:last-child)::after {\n content: var(--tw-content);\n left: 1.5rem;\n right: 1.5rem;\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:bottom-0:not(:last-child)::after {\n content: var(--tw-content);\n bottom: 0px;\n}\n\n.\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:border-b:not(:last-child)::after {\n content: var(--tw-content);\n border-bottom-width: 1px;\n}\n\n[data-widget-md] .ikp-md\\:\\[\\&\\:not\\(\\:last-child\\)\\]\\:after\\:inset-x-8:not(:last-child)::after {\n content: var(--tw-content);\n left: 2rem;\n right: 2rem;\n}\n\n.focus\\:\\[\\&\\:not\\(\\[data-invalid\\]\\)\\]\\:border-\\[--focus-border-color\\]:not([data-invalid]):focus {\n border-color: var(--focus-border-color);\n}\n\n.focus\\:\\[\\&\\:not\\(\\[data-invalid\\]\\)\\]\\:shadow-\\[0_0_0_1px_var\\(--focus-border-color\\)\\]:not([data-invalid]):focus {\n --tw-shadow: 0 0 0 1px var(--focus-border-color);\n --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.\\[\\&\\:where\\(\\:hover\\2c \\:focus\\)\\]\\:bg-slate-400\\/5:where(:hover,:focus) {\n background-color: rgb(148 163 184 / 0.05);\n}\n\n.dark\\:\\[\\&\\:where\\(\\:hover\\2c \\:focus\\)\\]\\:bg-white-alpha-100:where(:hover,:focus):is([data-theme="dark"] *) {\n background-color: var(--ikp-color-white-alpha-100);\n}\n\n.\\[\\&\\>\\:first-child\\]\\:basis-full>:first-child {\n flex-basis: 100%;\n}\n\n.\\[\\&\\[data-mobile\\]\\>div\\]\\:h-full[data-mobile]>div {\n height: 100%;\n}\n\n.\\[\\&\\[data-mobile\\]\\>div\\]\\:max-h-\\[unset\\][data-mobile]>div {\n max-height: unset;\n}\n\n.\\[\\&\\[data-mobile\\]\\>div\\]\\:max-h-dvh[data-mobile]>div {\n max-height: 100dvh;\n}\n\n.\\[\\&_\\[data-part\\=grid\\]\\]\\:divide-y [data-part=grid] > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n\n.\\[\\&_\\[data-part\\=grid\\]\\]\\:px-1 [data-part=grid] {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.\\[\\&_a\\]\\:inline a {\n display: inline;\n}\n\n.\\[\\&_a\\]\\:break-words a {\n overflow-wrap: break-word;\n}\n\n.\\[\\&_a\\]\\:rounded-sm a {\n border-radius: 0.125rem;\n}\n\n.\\[\\&_a\\]\\:bg-inkeep-primary-light a {\n background-color: var(--ikp-color-inkeep-primary-light);\n}\n\n.\\[\\&_a\\]\\:px-1 a {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.\\[\\&_a\\]\\:py-\\[1px\\] a {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n\n.\\[\\&_a\\]\\:font-semibold a {\n font-weight: 600;\n}\n\n.\\[\\&_a\\]\\:text-inkeep-primary-text-subtle a {\n color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.\\[\\&_a\\]\\:no-underline a {\n text-decoration-line: none;\n}\n\n.\\[\\&_a\\]\\:hover\\:text-inkeep-primary-text-bold:hover:not(:disabled) a {\n color: var(--ikp-color-inkeep-primary-text-bold);\n}\n\n.\\[\\&_a\\]\\:hover\\:no-underline:hover:not(:disabled) a {\n text-decoration-line: none;\n}\n\n.\\[\\&_a\\]\\:dark\\:bg-inkeep-primary-text-subtle:is([data-theme="dark"] *) a {\n background-color: var(--ikp-color-inkeep-primary-text-subtle);\n}\n\n.\\[\\&_a\\]\\:dark\\:hover\\:text-inkeep-expanded-primary-200:hover:not(:disabled):is([data-theme="dark"] *) a {\n color: var(--ikp-color-inkeep-expanded-primary-200);\n}\n\n.\\[\\&_li\\]\\:mb-1 li {\n margin-bottom: 0.25rem;\n}\n\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n\n[data-show-ask-ai-card] .\\[\\[data-show-ask-ai-card\\]_\\&\\]\\:pb-1 {\n padding-bottom: 0.25rem;\n}\n',...e}),Ise=_B("div",{_id:"view_toggle"}),Rse=_B("button",{_id:"view_toggle_button",className:Tre({slot:"button"})}),Ose=_B(wW,{_id:"view_toggle_icon"});function Pse(e){const{handleToggle:t}=Lse(e);return $f.jsxs(Ise,{className:Tre({slot:"root"}),children:[$f.jsxs(Rse,{onClick:()=>t("search"),"data-active":_P("search"===e.view),children:[$f.jsx(Ose,{"data-active":_P("search"===e.view),iconKey:"switchToSearch",className:Tre({slot:"icon"})}),e.searchLabel||"Search"]}),$f.jsxs(Rse,{onClick:()=>t("chat"),"data-active":_P("chat"===e.view),children:[$f.jsx(Ose,{"data-active":_P("chat"===e.view),iconKey:"switchToChat",className:Tre({slot:"icon"})}),e.askAILabel||"Ask AI"]})]})}function Lse(e){const{onToggleView:t,query:n}=e;return{handleToggle:(e,r)=>{null==t||t({view:e,query:n,autoSubmit:r})}}}function Dse(e){const{componentType:t,children:n,modalSettings:r,...a}=e;return $f.jsx(lne,{children:$f.jsx(Nse,{children:$f.jsx(dB,{config:{...a},componentType:t,children:$f.jsx(wse,{config:r,children:n})})})})}function Mse(e){return $f.jsx(kse,{children:$f.jsx(xse,{children:e.children})})}function Fse(e){const{children:t,onToggleView:n,isHidden:r,shouldAutoFocusInput:a=!n}=e;return $f.jsx(Rre,{isHidden:r,shouldAutoFocusInput:a,children:t})}function jse(e){return $f.jsx(Fse,{...e,children:$f.jsx(Bse,{...e})})}function Bse(e){const{onToggleView:t}=e,n=rD(),r=dD(),a=n&&!r?Mse:V.Fragment;return $f.jsx(a,{children:$f.jsxs(Ore,{variant:t?"no-shadow":"container-with-shadow","data-composite":_P(!!e.onToggleView||(null==n?void 0:n.isOpen)),children:[$f.jsx(Pre,{}),$f.jsxs(Lre,{children:[$f.jsx(Hse,{...e}),$f.jsx(zse,{}),$f.jsx(Yse,{})]}),$f.jsx(Qse,{}),$f.jsx(Zse,{})]})})}function Hse(e){const{onToggleView:t,askAILabel:n,searchLabel:r}=e,a=!!t;return $f.jsxs(Dre,{"data-show-toolbar":_P(a),children:[a&&$f.jsxs(Mre,{children:[$f.jsxs(Fre,{children:[$f.jsx(jre,{}),$f.jsxs(Vre,{children:[$f.jsx(qre,{}),$f.jsxs(Yre,{side:"bottom",align:"start",children:[$f.jsx(Kre,{}),$f.jsx(Xre,{})]})]})]}),$f.jsx(Pse,{onToggleView:t,askAILabel:n,searchLabel:r,view:"chat"})]}),$f.jsx(Ese,{})]})}function zse(){return $f.jsx(Bre,{children:$f.jsxs(Hre,{children:[$f.jsx(zre,{children:$f.jsx(Use,{})}),$f.jsx(Ure,{children:$f.jsx($re,{})}),$f.jsx(Gre,{})]})})}function Use(){return $f.jsx(nae,{children:({messages:e})=>$f.jsxs($f.Fragment,{children:[$f.jsx($se,{}),e.map((e=>$f.jsxs(aae,{message:e,children:[$f.jsx(Gse,{}),$f.jsx(sae,{}),$f.jsxs(fae,{children:[$f.jsx(hae,{children:$f.jsx(Tae,{})}),$f.jsx(Vse,{}),$f.jsx(Wse,{}),$f.jsx(qse,{})]})]},e.id)))]})})}function $se(){return $f.jsxs(oae,{children:[$f.jsxs(iae,{children:[$f.jsx(lae,{children:$f.jsxs(cae,{children:[$f.jsx(uae,{}),$f.jsx(dae,{})]})}),$f.jsx(pae,{})]}),$f.jsxs(fae,{children:[$f.jsx(hae,{children:$f.jsx(Tae,{})}),$f.jsxs(Vre,{children:[$f.jsx(Wre,{}),$f.jsx(qre,{}),$f.jsxs(Yre,{children:[$f.jsx(Kre,{}),$f.jsx(Xre,{})]})]}),$f.jsxs(Qre,{children:[$f.jsx(Zre,{}),$f.jsx(Jre,{children:e=>e.map((e=>$f.jsx(eae,{children:$f.jsx(tae,{question:e})},e)))})]})]})]})}function Gse(){return $f.jsxs(iae,{children:[$f.jsx(lae,{children:$f.jsxs(cae,{children:[$f.jsx(uae,{}),$f.jsx(dae,{})]})}),$f.jsx(pae,{})]})}function Vse(){return $f.jsxs(mae,{children:[$f.jsx(gae,{children:e=>e.map((e=>$f.jsxs(yae,{attachment:e,children:[$f.jsx(bae,{}),$f.jsx(vae,{})]},e.id)))}),$f.jsx(wae,{children:$f.jsx(cne,{children:$f.jsx(kae,{children:$f.jsxs(xae,{children:[$f.jsx(Eae,{}),$f.jsx(Sae,{}),$f.jsx(_ae,{})]})})})})]})}function Wse(){return $f.jsxs(Cae,{children:[$f.jsx(Aae,{children:e=>e.map(((e,t)=>$f.jsx(Nae,{action:e},`action-${t}`)))}),$f.jsx(Iae,{action:"copy"}),$f.jsx(Iae,{action:"upvote"}),$f.jsx(Iae,{action:"downvote"})]})}function qse(){return $f.jsxs(Rae,{children:[$f.jsx(Oae,{}),$f.jsx(Pae,{children:e=>e.map(((e,t)=>{var n;return $f.jsxs(Lae,{href:e.url,source:e,children:[$f.jsx(Dae,{children:null==(n=e.breadcrumbs)?void 0:n.map((e=>$f.jsxs(V.Fragment,{children:[e,$f.jsx(Mae,{})]},e)))}),$f.jsx(Fae,{}),$f.jsx(jae,{}),$f.jsx(Bae,{}),$f.jsx(Hae,{children:e=>e.map(((e,t)=>$f.jsx(zae,{part:e},`part-${t}`)))}),$f.jsx(Uae,{})]},t)}))})]})}function Yse(){return $f.jsxs($ae,{children:[$f.jsx(Kse,{}),$f.jsx(Xse,{})]})}function Kse(){return $f.jsxs(Gae,{children:[$f.jsxs(Vae,{children:[$f.jsx(Wae,{}),$f.jsx(qae,{children:$f.jsx(Yae,{})})]}),$f.jsxs(Kae,{children:[$f.jsx(Xae,{children:e=>e.map((e=>$f.jsxs(Qae,{attachment:e,children:[$f.jsx(Zae,{}),$f.jsx(Jae,{}),$f.jsx(eoe,{})]},e.id)))}),$f.jsxs(toe,{children:[$f.jsxs(noe,{children:[$f.jsx(roe,{}),$f.jsx(aoe,{})]}),$f.jsx(ooe,{children:e=>e.map((e=>$f.jsxs(ioe,{input:e,children:[$f.jsx(soe,{}),e.displayName]},e.id)))})]}),$f.jsx(cne,{children:$f.jsx(loe,{children:$f.jsx(coe,{children:$f.jsxs(uoe,{children:[$f.jsxs(doe,{children:[$f.jsx(poe,{}),$f.jsx(foe,{}),$f.jsx(hoe,{})]}),$f.jsx(moe,{}),$f.jsx(goe,{children:$f.jsxs(yoe,{children:[$f.jsxs(boe,{children:[$f.jsx(voe,{}),$f.jsx(woe,{}),$f.jsx(koe,{})]}),$f.jsxs(xoe,{children:[$f.jsx(Eoe,{}),$f.jsx(Soe,{}),$f.jsx(_oe,{})]}),$f.jsx(Toe,{})]})})]})})})})]})]})}function Xse(){return $f.jsxs(Coe,{children:[$f.jsxs(Noe,{children:[$f.jsx(Ioe,{}),$f.jsx(Roe,{}),$f.jsx(Ooe,{})]}),$f.jsxs(Aoe,{children:[$f.jsx(Foe,{children:({pinned:e,unpinned:t})=>$f.jsxs($f.Fragment,{children:[e.map((e=>$f.jsx(joe,{action:e},e.name))),t.length>0&&$f.jsx(Boe,{}),$f.jsxs(Hoe,{children:[$f.jsx(zoe,{}),t.map((e=>$f.jsxs(Uoe,{action:e,children:[$f.jsx($oe,{action:e}),e.name]},e.name)))]})]})}),$f.jsxs(Loe,{action:"copy",children:[$f.jsx(Doe,{action:"copy"}),$f.jsx(Moe,{action:"copy"})]}),$f.jsxs(Loe,{action:"share",children:[$f.jsx(Doe,{action:"share"}),$f.jsx(Moe,{action:"share"})]}),$f.jsx(Loe,{action:"clear"}),$f.jsx(Loe,{action:"stop"})]})]})}function Qse(){return $f.jsx(cne,{children:$f.jsx(Goe,{children:$f.jsx(Voe,{children:$f.jsxs(Woe,{children:[$f.jsx(qoe,{}),$f.jsx(Yoe,{}),$f.jsx(Koe,{children:$f.jsxs(Xoe,{children:[$f.jsxs(Qoe,{name:"unrelated_response",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{}),$f.jsx(tie,{})]}),$f.jsxs(Qoe,{name:"inaccurate_statement",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{}),$f.jsx(tie,{})]}),$f.jsxs(Qoe,{name:"inaccurate_code_snippet",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{}),$f.jsx(tie,{})]}),$f.jsxs(Qoe,{name:"irrelevant_citations",children:[$f.jsx(Zoe,{children:$f.jsx(Joe,{})}),$f.jsx(eie,{})]}),$f.jsx(nie,{})]})})]})})})})}function Zse(){return $f.jsxs(rie,{children:[$f.jsx(oie,{}),$f.jsxs(aie,{children:[$f.jsxs(iie,{children:[$f.jsx(sie,{}),$f.jsx(lie,{})]}),$f.jsx(cie,{children:e=>$f.jsxs($f.Fragment,{children:[e.map(((e,t)=>$f.jsxs(uie,{field:e,autoFocus:0===t,children:[$f.jsx(die,{}),"text"===e.inputType&&$f.jsx(pie,{}),"email"===e.inputType&&$f.jsx(fie,{}),"file"===e.inputType&&$f.jsx(hie,{}),"textarea"===e.inputType&&$f.jsx(mie,{}),"checkbox"===e.inputType&&$f.jsx(gie,{children:$f.jsx(yie,{})}),"select"===e.inputType&&$f.jsxs(bie,{children:[$f.jsxs(vie,{children:[$f.jsx(wie,{}),$f.jsx(kie,{})]}),$f.jsx(xie,{children:$f.jsx(Eie,{children:e.items.map((e=>$f.jsxs(Sie,{value:e.value,children:[$f.jsx(_ie,{children:e.label}),$f.jsx(Tie,{})]},e.value)))})})]}),$f.jsx(Cie,{})]},e.name))),$f.jsx(Aie,{})]})}),$f.jsxs(Nie,{children:[$f.jsx(Iie,{}),$f.jsx(Rie,{})]})]}),$f.jsxs(Oie,{children:[$f.jsx(Pie,{}),$f.jsx(Lie,{}),$f.jsx(Die,{})]})]})}function Jse(e){const{children:t,onToggleView:n,isHidden:r,shouldAutoFocusInput:a=!n}=e;return $f.jsx(Fie,{isHidden:r,shouldAutoFocusInput:a,children:t})}function ele(e){const{onToggleView:t,shouldShowAskAICard:n}=e,r=rD(),a=dD(),o=r&&!a?Mse:V.Fragment;return $f.jsx(o,{children:$f.jsx(jie,{"data-show-ask-ai-card":_P(n),"data-composite":_P(!!t||(null==r?void 0:r.isOpen)),children:$f.jsxs(Bie,{children:[$f.jsx(tle,{...e}),$f.jsxs(Hie,{children:[$f.jsx(nle,{...e}),$f.jsx(rle,{})]}),$f.jsx(ole,{})]})})})}function tle(e){const{onToggleView:t,askAILabel:n,searchLabel:r}=e,{query:a}=tee();return $f.jsxs(zie,{children:[$f.jsx(Uie,{}),$f.jsx($ie,{}),$f.jsx(Gie,{}),t&&$f.jsx(Pse,{onToggleView:t,query:a,askAILabel:n,searchLabel:r,view:"search"}),$f.jsx(Ese,{})]})}function nle(e){const{askAILabel:t,onToggleView:n,shouldShowAskAICard:r=!!n}=e,{query:a}=tee(),{handleToggle:o}=Lse({onToggleView:n,query:a});return r?$f.jsxs(Vie,{onSelect:()=>o("chat",!0),children:[$f.jsx(Wie,{}),$f.jsxs(qie,{children:[t||"Ask AI",a&&` "${a}"`]}),$f.jsx(Yie,{})]}):null}function rle(){return $f.jsxs(Kie,{children:[$f.jsx(Xie,{}),$f.jsx(Zie,{children:e=>e.map((e=>$f.jsx(Jie,{tab:e},e)))}),$f.jsx(Qie,{}),$f.jsxs(ese,{children:[$f.jsx(tse,{children:$f.jsx(ale,{})}),$f.jsx(nse,{children:$f.jsx(rse,{})}),$f.jsx(ase,{})]})]})}function ale(){return $f.jsx(ose,{children:e=>e.map((e=>$f.jsxs(ise,{item:e,children:[$f.jsx(sse,{children:e=>e.map(((e,t)=>$f.jsxs(V.Fragment,{children:[e,$f.jsx(lse,{})]},`${e}-${t}`)))}),$f.jsx(cse,{}),$f.jsx(use,{}),$f.jsx(dse,{}),$f.jsx(pse,{children:e=>e.map(((e,t)=>$f.jsx(fse,{part:e},`part-${t}`)))}),$f.jsx(hse,{})]},e.id)))})}function ole(){return $f.jsx(mse,{children:$f.jsxs(gse,{children:[$f.jsx(yse,{}),$f.jsx(bse,{}),$f.jsx(vse,{})]})})}function ile(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function sle(...e){return t=>{for(const n of e)ile(n,t)}}function lle(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function cle(e){const{view:t,setView:n,shouldShowAskAICard:r,onToggleView:a,defaultView:o,shouldAutoFocusInput:i,searchLabel:s,askAILabel:l}=e,c=rD()?Mse:V.Fragment,u={isHidden:"chat"===t,onToggleView:a,shouldShowAskAICard:r,shouldAutoFocusInput:i&&"search"===o,searchLabel:s,askAILabel:l},d={isHidden:"search"===t,onToggleView:a,shouldAutoFocusInput:i&&"chat"===o,searchLabel:s,askAILabel:l};return $f.jsx(uD,{widget:{setView:n},children:$f.jsx(Jse,{...u,children:$f.jsx(Fse,{...d,children:$f.jsxs(c,{children:[$f.jsx(ele,{...u}),$f.jsx(Bse,{...d})]})})})})}function ule({label:e="Ask AI",avatar:t,onOpenChange:n}){return $f.jsx(Sse,{children:$f.jsxs(_se,{onClick:e=>{2!==e.button&&n((e=>!e))},children:[$f.jsx(Tse,{children:e}),$f.jsx(Ase,{children:$f.jsx(Cse,{avatar:t})})]})})}const dle=function(e,t){const n=new Map;return function(r,a){let o,i;if("string"==typeof r)i=r,o=a;else{if(!Mf.includes(t))throw new Error(`You must provide a target selector to render the ${t} component`);const e=document.createElement("div");e.style.position="absolute",document.body.appendChild(e);const n=`inkeep-widget-${Df()}`;i=`#${e.id||n}`,e.id=i.slice(1),o=r}const s=document.querySelector(i);if(!s)return void console.error(`Target ${i} not found.`);let l=n.get(i);if(!l){l={root:Sf.createRoot(s),props:o,container:s,chatFunctionsRef:V.createRef(),searchFunctionsRef:V.createRef(),ref:V.createRef()},n.set(i,l)}l.props=If(o,{aiChatSettings:{chatFunctionsRef:l.chatFunctionsRef},searchSettings:{searchFunctionsRef:l.searchFunctionsRef}},{ref:l.ref}),l.container=s;try{l.root.render(V.createElement(e,l.props))}catch(u){console.error(`Error rendering component ${e.name}:`,u)}const c={update:t=>{const r=n.get(i);if(r){r.props=If(r.props??{},t??{});try{r.root.render(V.createElement(e,r.props))}catch(u){console.error(`Error rendering component ${e.name} during update:`,u)}}else console.error(`Component at ${i} is not mounted.`)},unmount(){const e=n.get(i);e&&e.container?(e.root.unmount(),e.container.innerHTML=""):console.error(`Component at ${i} is not mounted.`)},remount(){const t=n.get(i);if(t&&t.container){t.root=Sf.createRoot(t.container);try{t.root.render(V.createElement(e,t.props))}catch(u){console.error(`Error remounting component ${e.name}:`,u)}}else console.error(`Component at ${i} cannot be remounted.`)}};{const e=Ff(i,"chatFunctionsRef",n),t=Ff(i,"searchFunctionsRef",n);return new Proxy(c,{get(r,a){var o;if("chat"===a)return e;if("search"===a)return t;if(a in r)return r[a];const s=n.get(i),l=null==(o=null==s?void 0:s.ref.current)?void 0:o[a];return"function"==typeof l?l.bind(null==s?void 0:s.ref.current):void 0}})}}}((function(e){const{modalSettings:t,label:n,defaultView:r="chat",canToggleView:a=!0,avatar:o,...i}=e,s={...i,shouldShowAskAICard:!!a&&e.shouldShowAskAICard},{config:l,...c}=function(e){const{defaultView:t="search",aiChatSettings:n,baseSettings:r,searchSettings:a,shouldAutoFocusInput:o=!0,onToggleView:i,ref:s,...l}=e,c=V.useRef(null),u=sle(c,null==n?void 0:n.chatFunctionsRef),d=V.useRef(null),p=sle(d,null==a?void 0:a.searchFunctionsRef),f={...n,chatFunctionsRef:u},h={...a,searchFunctionsRef:p},[m,g]=V.useState(t);return V.useImperativeHandle(s,(()=>({setView:g}))),V.useEffect((()=>{var e,t;"chat"===m?null==(e=c.current)||e.focusInput():null==(t=d.current)||t.focusInput()}),[m]),{config:{baseSettings:r,aiChatSettings:f,searchSettings:h},defaultView:t,view:m,setView:g,onToggleView:e=>{var t;e.autoSubmit&&e.query&&(null==(t=c.current)||t.submitMessage(e.query)),null==i||i(e),g(e.view)},shouldAutoFocusInput:o,...l}}({...s,defaultView:r}),[u=!1,d]=qF({prop:null==t?void 0:t.isOpen,defaultProp:!1,onChange:lle(null==t?void 0:t.onOpenChange,(n=>{void 0===(null==t?void 0:t.isOpen)&&(e.forceDefaultView&&!n&&c.setView(r??"search"),d(!!n))}))}),p={...t,isOpen:u,onOpenChange:d};return $f.jsxs($f.Fragment,{children:[$f.jsx(Nse,{wrapperStyles:{display:"contents"},children:$f.jsx(dB,{config:l,componentType:UO,children:$f.jsx(ule,{label:n,avatar:o,onOpenChange:d})})}),$f.jsx(Dse,{...l,componentType:UO,modalSettings:p,children:a?$f.jsx(cle,{...c}):$f.jsx(jse,{...i})})]})}),"ChatButton");window.Inkeep={ChatButton:dle}}();