PageSourceSearch

https://www.kernel.sh/docs/_next/static/chunks/042fe625554e7ece.js?dpl=dpl_44yfLsveaXsAai6bivrio3WJqiuM

js kernel.sh collected 2026-10-02 16:41:26 UTC 112,074 bytes, 7 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,915476,e=>{"use strict";e.s(["ASSISTANT_OPEN_KEY",()=>t,"ASSISTANT_WIDTH_CSS_VAR",()=>r,"ASSISTANT_WIDTH_KEY",()=>n,"getAssistantScript",()=>i]);let t="chat-assistant-sheet-open",n="chat-assistant-sheet-width",r="--assistant-sheet-width";function a(e,t,n,r,a){try{let i=window.matchMedia("(max-width: 1024px)").matches;if(a){document.documentElement.style.setProperty(n,"0px"),document.documentElement.setAttribute("data-assistant-state","closed");return}if(i||!r){document.documentElement.style.setProperty(n,"0px"),document.documentElement.setAttribute("data-assistant-state","closed"),r||localStorage.setItem(e,"false");return}let o=localStorage.getItem(e);if(null===o){document.documentElement.style.setProperty(n,"0px"),document.documentElement.setAttribute("data-assistant-state","closed");return}let l=JSON.parse(o),s=localStorage.getItem(t),u=null!==s?JSON.parse(s):368;document.documentElement.style.setProperty(n,l?u+"px":"0px"),document.documentElement.setAttribute("data-assistant-state",l?"open":"closed")}catch(e){document.documentElement.style.setProperty(n,"0px"),document.documentElement.setAttribute("data-assistant-state","closed")}}function i(e,o=!1){return`(${a.toString()})(
2    "${t}",
3    "${n}",
4    "${r}",
5    ${e},
6    ${o}
7  )`}},742977,e=>{"use strict";e.s(["PrefetchProvider",()=>d,"usePrefetch",()=>p],742977);var t=e.i(247167),n=e.i(843476),r=e.i(590280),a=e.i(637054);async function i(e){(0,a.isCli)()}var o=e.i(618566),l=e.i(271645);let s="true"===t.default.env.STORYBOOK||"1"===t.default.env.STORYBOOK,u=(0,l.createContext)(null),c={prefetch:()=>{}},d=({children:e,disabled:t=!1})=>{let{isLivePreview:a}=(0,l.useContext)(r.LivePreviewContext),d=(0,l.useRef)([]),p=(0,l.useRef)(0),f=(0,l.useRef)(new Set),h=(0,o.useRouter)(),g=s?c:h,m=(0,l.useMemo)(()=>{let e=async t=>{p.current++;try{g.prefetch(t.href)}catch(e){i({message:`Prefetch failed for route: ${t.href}`,service:t.context?.source?`client-${t.context.source}`:"client-navigation",tags:["prefetch-failure","queued-prefetch"],metadata:{href:t.href,error:e instanceof Error?e.message:String(e),...t.context}})}finally{p.current--,(()=>{if(d.current.length>0&&p.current<8){let t=d.current.shift();t&&e(t)}})()}};return{prefetch:(n,r)=>{if(t||a||f.current.has(n))return;f.current.add(n);let i={href:n,context:r};p.current<8?e(i):d.current.push(i)},getStats:()=>({activeCount:p.current,queuedCount:d.current.length,prefetchedCount:f.current.size})}},[g,t,a]);return(0,n.jsx)(u.Provider,{value:m,children:e})},p=()=>{let e=(0,l.useContext)(u);if(!e)throw Error("usePrefetch must be used within a PrefetchProvider");return e}},634292,e=>{"use strict";e.s(["AssistantTransportV5Context",()=>r,"loadAssistantV5",()=>n,"useAssistantV5",()=>a]);var t=e.i(271645);let n=()=>e.A(93985),r=(0,t.createContext)(void 0);function a(){let e=(0,t.useContext)(r);if(void 0===e)throw Error("Assistant requires AssistantTransportProviderV5.");return e}},647908,732610,535345,994947,e=>{"use strict";e.s(["useIOSScrollLock",()=>l],647908);let t=0,n=null;e.s(["isIOS",()=>i,"isLinux",()=>a,"isSafari",()=>r],732610);let r=()=>{let e=window.navigator.userAgent;return/Safari/.test(e)&&!/Chrome/.test(e)&&!/Chromium/.test(e)},a=()=>{let e=window.navigator.userAgent;return/Linux/i.test(e)&&!/Android/i.test(e)},i=()=>{let e=window.navigator;return/iP(hone|ad|od)/.test(e.userAgent)||/Macintosh/.test(e.userAgent)&&e.maxTouchPoints>1};var o=e.i(271645);let l=e=>{(0,o.useEffect)(()=>{if(e&&i())return(()=>{if(1===(t+=1)){let{body:e}=document,t=window.scrollY,r={overflow:e.style.overflow,position:e.style.position,top:e.style.top,width:e.style.width,height:e.style.height};e.style.overflow="hidden",e.style.position="fixed",e.style.top=`-${t}px`,e.style.width="100%",e.style.height="100%",n=()=>{e.style.overflow=r.overflow,e.style.position=r.position,e.style.top=r.top,e.style.width=r.width,e.style.height=r.height,window.scrollTo(0,t)}}let e=!1;return()=>{!e&&(e=!0,0==(t-=1)&&n&&(n(),n=null))}})()},[e])};e.s(["useActionKey",()=>c],535345);let s=["Ctrl ","Control"],u=["⌘","Command"];function c(){let[e,t]=(0,o.useState)(u);return(0,o.useEffect)(()=>{"undefined"!=typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?t(u):t(s))},[]),e}e.s(["useAssistantNavigation",()=>C],994947);var d=e.i(859465),p=e.i(803333),f=e.i(279183),h=e.i(135799),g=e.i(674987),m=e.i(12358);e.i(914140);var x=e.i(773626),v=e.i(618566);function C(e){let t=(0,v.useRouter)(),n=(0,p.useCurrentPath)(),r=(0,d.useAssistantV5Enabled)(),a=(0,f.default)(e=>e.messages),i=(0,h.default)(e=>e.messages),l=(0,o.useMemo)(()=>r?function(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n?.role==="assistant")for(let e=n.parts.length-1;e>=0;e--){let t=n.parts[e];if(!t)continue;let r=(0,m.readToolPart)(t);if(r?.toolName==="navigateToPage"&&r.isResult)return{id:r.toolCallId,result:r.output}}}}(i):function(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n?.role!=="assistant")continue;let r=n.parts??[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(t?.type==="tool-invocation"&&"navigateToPage"===t.toolInvocation.toolName&&"result"===t.toolInvocation.state){let e=t.toolInvocation.result;return{id:t.toolInvocation.toolCallId,result:e}}}}}(a),[r,a,i]),s=(0,o.useRef)(l?.id);(0,o.useEffect)(()=>
7{if(!l||l.id===s.current)return;s.current=l.id;let{path:r}=l.result;if(!r)return;let a=`/${r.replace(/^[/\\]+/,"")}`;(0,x.isEqualIgnoringLeadingSlash)(a,n)||(t.push((0,g.navHref)(a)),e?.())},[l,n,t,e])}},395671,e=>{"use strict";e.s(["useAssistantShared",()=>a]);var t=e.i(382805),n=e.i(634292),r=e.i(271645);function a(){let e=(0,r.useContext)(t.AssistantTransportContext),a=(0,r.useContext)(n.AssistantTransportV5Context)??e;if(void 0===a)throw Error("Assistant requires an assistant transport provider.");return a}},28760,268532,e=>{"use strict";e.s(["SEARCH_ABORTED",()=>p,"useSearch",()=>f],28760);var t=e.i(91557),n=e.i(343590),r=e.i(206558);e.s(["useResolvedNav",()=>o],268532);var a=e.i(669979),i=e.i(271645);function o(){let{navWithMetadata:e,divisions:t,versionsDict:r}=(0,i.useContext)(n.NavigationContext),o=(0,a.usePageNavStore)(e=>e.pageNav);return e||!o?{navWithMetadata:e,divisions:t,versionsDict:r}:o}var l=e.i(637054),s=e.i(194838),u=e.i(866285);class c extends Error{status;constructor(e){super(`Search request failed with status ${e}`),this.status=e}}let d=async({subdomain:e,query:t,filters:n,pageSize:a,signal:i,authMode:o="none"})=>{let l;l="authenticated"===o?`${r.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/search`:"public"===o?`${r.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/search/${e}`:`${r.NEXT_PUBLIC.AI_MESSAGE_HOST}/api/search/${e}`;let d=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},signal:i,body:JSON.stringify({query:t,...n?{filters:n}:{},...a?{pageSize:a}:{}})});if(!d.ok)throw new c(d.status);let p=(await d.json()).results.map(e=>{let t=(0,s.optionallyAddLeadingSlash)(e.page),n=e.metadata.hash,r=e.metadata.title,a=t;if(n)a=`${t}#${n}`;else r&&(a=`${t}#${(0,u.default)(r,{decamelize:!1,preserveCharacters:["_"]})}`);let i={title:e.metadata.title,breadcrumbs:e.metadata.breadcrumbs,icon:e.metadata.icon,hash:e.metadata.hash,openapi:e.metadata.openapi,version:e.metadata.version};return{id:`${e.page}${n??""}`,header:e.header,content:e.content,page:e.page,link:a,metadata:i,score:e.score}});return{id:crypto.randomUUID(),results:(e=>{let t=new Map;for(let n of e)n&&(t.has(n.page)||t.set(n.page,n));return[...t.values()]})(p)}},p="SEARCH_ABORTED",f=()=>{let{subdomain:e,searchSettings:a}=(0,i.useContext)(t.DeploymentMetadataContext),{userInfo:u}=(0,i.useContext)(t.AuthContext),{selectedLocale:f,currentPathVersion:h,selectedVersion:g}=(0,i.useContext)(n.NavigationContext),{versionsDict:m}=o(),x=(0,i.useRef)(null),v=a?.unversioned?void 0:h??g,C=(0,i.useMemo)(()=>{let e=new Map;if(m)for(let t of m.values())t&&!e.has(t)&&e.set(t,e.size);return e},[m]);return(0,i.useEffect)(()=>()=>{x.current&&x.current.abort()},[]),{search:(0,i.useCallback)(async(t,n,a)=>{if(!e)return{id:crypto.randomUUID(),results:[]};x.current&&x.current.abort();let i=new AbortController;x.current=i;try{let o,p=(0,l.isCli)()?"public":r.NEXT_PUBLIC.AUTH_ENABLED?u?"authenticated":"public":"none",h=a?.language??f,g=void 0===n?{version:v||void 0,language:h}:{version:n.version||void 0,product:n.product||void 0,language:h};try{o=await d({subdomain:e,query:t,filters:g,pageSize:a?.pageSize,signal:i.signal,authMode:p})}catch(n){if(!(n instanceof c&&(401===n.status||403===n.status))||"authenticated"!==p)throw n;o=await d({subdomain:e,query:t,filters:g,pageSize:a?.pageSize,signal:i.signal,authMode:"public"})}if(void 0===n?v:n.version)return o;return{...o,results:function(e,t,n){let r=new Map,a=[],i=e=>{let n=t(e);if(!n)return`u:${e}`;let r=e.split("/"),a=r.indexOf(n);return -1===a?`u:${e}`:(r.splice(a,1),`v:${r.join("/")}`)};for(let t of e){let e=i(t.page),n=r.get(e);n?n.push(t):(r.set(e,[t]),a.push(e))}let o=e=>{let r=t(e);return r?n(r):Number.MAX_SAFE_INTEGER};return a.flatMap(e=>[...r.get(e)??[]].sort((e,t)=>o(e.page)-o(t.page)))}(o.results,e=>m?.get((0,s.optionallyRemoveLeadingSlash)(e)),e=>C.get(e)??Number.MAX_SAFE_INTEGER)}}catch(e){if(e instanceof Error&&"AbortError"===e.name)return p;throw e}},[e,v,m,C,f,u])}}},308735,727677,202225,690236,148099,713203,464132,202672,484325,e=>{"use strict";e.s(["useChatPayloadHighlight",()=>u],308735),e.s(["consumeScheduledPayloadHighlight",()=>o,"highlightPayloadContext",()=>a,"schedulePayloadHighlight",()=>i],727677);var t=e.i(111048),n=e.i(476781);let r="chat-payload-highlight",a=e=>{if(e.elementId){let t=e.elementId.replace(/[^a-zA-Z0-9_-]/g,"_"),r=document.querySelector(`[data-chat-payload-element-id="${t}"]`),a=r?.closest(`.${n.Classes.CodeBlock}`)||r?.closest(`.${n.Classes.CodeGroup}`);if(a)return a.scrollIntoView({behavior:"auto",block:"center"}),a.classList.add("ring-2","ring-offset-[-1px]","ring-primary","dark:ring-primary-light"),setTimeout(()=>{let e=a.getBoundingClientRect(),t=window.innerHeight;Math.abs(e.top+e.height/2-t/2)>100&&a.scrollIntoView({behavior:"auto",block:"center"})},200),setTimeout(()=>{a.classList.remove("ring-2","ring-offset-[-1px]","ring-primary","dark:ring-primary-light")},3e3),!0}if("textSelection"===e.type&&e.value)try{let n=((e,t)=>{let n=document.getElementById(t);if(!n)return!1;let r=e=>e.replace(/\s+/g," ").trim(),a=r(e);for(let e of n.querySelectorAll("p, span, li, h1, h2, h3, h4, h5, h6, td, th, a, code, pre, blockquote, dd, dt, label, figcaption, caption, summary, div"))if(r(e.textContent||"").includes(a)){let t;e.scrollIntoView({behavior:"auto",block:"center"});let n=document.createRange(),i=window.getSelection(),o=[],l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;t=l.nextNode();)o.push(t);let s="",u=[];for(let e of o){let t=e.textContent;if(t)for(let n=0;n<t.length;n++)s+=t[n],u.push({node:e,offset:n})}let c=r(s),d=c.indexOf(a);if(-1!==d){let t=d+a.length,r=0,i=-1,o=-1;for(let e=0;e<s.length;e++){let n=s[e];if(!n)continue;let a=/\s/.test(n);if(r===d&&-1===i&&(i=e),a?r<c.length&&" "===c[r]&&r++:r<c.length&&c[r]===n&&r++,r===t&&-1===o){o=e+1;break}}let l=-1!==i?u[i]:void 0,p=-1!==o?u[o-1]:void 0;l&&p?(n.setStart(l.node,l.offset),n.setEnd(p.node,p.offset+1)):n.selectNodeContents(e)}else n.selectNodeContents(e);return i?.removeAllRanges(),i?.addRange(n),!0}return!1})(e.value.trim(),t.Ids.Content);return n&&setTimeout(()=>{let e=window.getSelection();if(e&&e.rangeCount>0){let t=e.getRangeAt(0),n=t.getBoundingClientRect(),r=window.innerHeight;if(n.top<100||n.bottom>r-100){let e=t.startContainer.parentElement;e?.scrollIntoView({behavior:"auto",block:"center"})}}},200),!!n}catch(e){console.error("Error finding and selecting text:",e)}return!1},i=e=>
7{try{sessionStorage.setItem(r,JSON.stringify(e))}catch(e){console.error("Unable to schedule payload highlight:",e)}},o=()=>{let e=null;try{e=sessionStorage.getItem(r)}catch{return null}if(!e)return null;try{sessionStorage.removeItem(r)}catch{}try{return JSON.parse(e)}catch(e){return console.error("Unable to parse scheduled payload highlight:",e),null}};var l=e.i(271645),s=e.i(803333);let u=()=>{let e=(0,s.useCurrentPath)();(0,l.useEffect)(()=>{let t=o();if(!t||t.path&&t.path!==e)return;let n=null,r=null,i=()=>{n&&(n.disconnect(),n=null),r&&(window.clearTimeout(r),r=null)},l=()=>{a(t)&&i()};return l(),(n=new MutationObserver(()=>{l()})).observe(document.body,{childList:!0,subtree:!0}),r=window.setTimeout(()=>{i()},5e3),i},[e])};e.s(["useLocalStorage",()=>d],202225);var c=e.i(39839);let d=(e,t)=>{let[n,r]=(0,c.useLocalStorage)(e,t),[a,i]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{i(!0)},[]),[(0,l.useMemo)(()=>a?n:t,[a,n,t]),r,a]};e.s(["useRecentSearches",()=>f],690236);let p="mintlify-recent-searches";function f(){let[e,t]=(0,l.useState)([]);(0,l.useEffect)(()=>{try{let e=localStorage.getItem(p);if(e){let n=JSON.parse(e);if(Array.isArray(n)){let e=n.filter(e=>e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.query&&"number"==typeof e.timestamp&&e.searchHit&&"object"==typeof e.searchHit&&"string"==typeof e.searchHit.id);t(e)}}}catch(e){console.error("Failed to load recent searches from localStorage:",e),t([])}},[]);let n=(0,l.useCallback)(e=>{try{localStorage.setItem(p,JSON.stringify(e))}catch(e){console.error("Failed to save recent searches to localStorage:",e)}},[]),r=(0,l.useCallback)((e,r)=>{e.trim()&&r.id&&t(t=>{let a=t.filter(e=>e.searchHit.id!==r.id),i=[{id:`${r.id}-${Date.now()}`,query:e.trim(),searchHit:r,timestamp:Date.now()},...a].slice(0,8);return n(i),i})},[n]);return{recentSearches:e,addRecentSearch:r,removeRecentSearch:(0,l.useCallback)(e=>{t(t=>{let r=t.filter(t=>t.id!==e);return n(r),r})},[n]),clearRecentSearches:(0,l.useCallback)(()=>{t([]),n([])},[n])}}function h(e){let t=l.useRef(!0);t.current&&(t.current=!1,e())}e.s([],148099),e.s(["useOnFirstRender",()=>h],713203),e.s(["gridNavigation",()=>m],464132);var g=e.i(621082);function m(e,t,n,r,a,i,o,l,s,u=2){let c=(0,g.getGridNavigatedIndex)(n.current,{event:e,orientation:r,loopFocus:a,rtl:i,cols:u,disabledIndices:o,minIndex:l,maxIndex:s,prevIndex:t>s?l:t,stopEvent:!0});return(0,g.isIndexOutOfListBounds)(n.current,c)?void 0:c}e.s(["ComboboxDerivedItemsContext",()=>b,"ComboboxFloatingContext",()=>C,"ComboboxHasItemsContext",()=>y,"ComboboxInputValueContext",()=>S,"ComboboxRootContext",()=>v,"useComboboxDerivedItemsContext",()=>k,"useComboboxFloatingContext",()=>E,"useComboboxHasItemsContext",()=>A,"useComboboxInputValueContext",()=>w,"useComboboxRootContext",()=>I],202672),e.i(247167);var x=e.i(733332);let v=l.createContext(void 0),C=l.createContext(void 0),b=l.createContext(void 0),y=l.createContext(!1),S=l.createContext("");function I(){let e=l.useContext(v);if(!e)throw Error((0,x.default)(22));return e}function E(){let e=l.useContext(C);if(!e)throw Error((0,x.default)(23));return e}function k(){let e=l.useContext(b);if(!e)throw Error((0,x.default)(24));return e}function w(){return l.useContext(S)}function A(){return l.useContext(y)}e.s(["compareItemEquality",()=>O,"defaultItemEquality",()=>R,"findItemIndex",()=>M,"findSelectionIndex",()=>T,"isSelectedValueDirty",()=>N,"removeItem",()=>L,"resolveSelectedIndex",()=>j,"selectedValueIncludes",()=>P],484325);let R=(e,t)=>Object.is(e,t);function O(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function N(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let a=0;a<r;a+=1)if(!n(e[a],t[a]))return!1;return!0}(e,t,(e,t)=>O(e,t,n)):e!==t}function P(e,t,n){return!!e&&e.some(e=>void 0!==e&&O(t,e,n))}function M(e,t,n){return e?e.findIndex(e=>void 0!==e&&O(e,t,n)):-1}function T(e,t,n,r){let a=r&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==R)return n=>P(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}
7(t,n)):M(e,t,n);return -1===a?null:a}function j(e,t,n,r,a,i){return P(r,t,a)?null!=i&&e>i&&P(r,n[i],a)?i:e:e===i?T(n,r,a,!0):i}function L(e,t,n){return e.filter(e=>!O(t,e,n))}},186698,e=>{"use strict";function t(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}e.s(["serializeValue",()=>t])},988713,42191,e=>{"use strict";e.s(["selectors",()=>s],988713);var t=e.i(484325);e.s(["flattenLeafItems",()=>a,"hasNullItemLabel",()=>i,"isGroupedItems",()=>r,"stringifyAsLabel",()=>o,"stringifyAsValue",()=>l],42191),e.i(271645);var n=e.i(186698);function r(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function a(e){return r(e)?e.flatMap(e=>e.items):e}function i(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(r(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}function o(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,n.serializeValue)(e)}function l(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,n.serializeValue)(e.value):(0,n.serializeValue)(e)}e.i(843476);let s={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)},hasNullItemLabel:(e,t)=>!!t&&i(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,n)=>{let r=e.isItemEqualToValue,a=e.selectedValue;return Array.isArray(a)?a.some(e=>(0,t.compareItemEquality)(n,e,r)):(0,t.compareItemEquality)(n,a,r)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight}},469690,875812,e=>{"use strict";e.s(["DEFAULT_FIELD_ROOT_CONTEXT",()=>s,"FieldRootContext",()=>u,"useFieldRootContext",()=>c],469690),e.i(247167);var t=e.i(733332),n=e.i(271645),r=e.i(956789);e.s(["DEFAULT_FIELD_ROOT_STATE",()=>o,"DEFAULT_FIELD_STATE_ATTRIBUTES",()=>i,"DEFAULT_VALIDITY_STATE",()=>a,"fieldValidityMapping",()=>l],875812);let a={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},i={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},o={disabled:!1,...i},l={valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}},s={invalid:void 0,name:void 0,validityData:{state:a,errors:[],error:"",value:"",initialValue:null},setValidityData:r.NOOP,disabled:void 0,setTouched:r.NOOP,setDirty:r.NOOP,setFilled:r.NOOP,setFocused:r.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:o,registerFieldControl:r.NOOP,validation:{getValidationProps:(e,t=r.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:r.NOOP,getInputControl:()=>null,commit:async()=>{},change:r.NOOP}},u=n.createContext(s);function c(e=!0){let a=n.useContext(u);if(a.setValidityData===r.NOOP&&!e)throw Error((0,t.default)(28));return a}},381104,e=>{"use strict";e.s(["useRegisterFieldControl",()=>a]);var t=e.i(146376),n=e.i(388940),r=e.i(469690);function a(e,i,o,l,s=!0,u){let{registerFieldControl:c}=(0,r.useFieldRootContext)(),d=(0,n.useRefWithInit)(()=>Symbol());(0,t.useIsoLayoutEffect)(()=>{let t=d.current;if(!s)return void c(t,void 0);c(t,{controlRef:e,getValue:l,id:i,name:u,value:o})},[e,s,l,i,u,c,d,o]),(0,t.useIsoLayoutEffect)(()=>{let e=d.current;return()=>{c(e,void 0)}},[c,d])}},884708,247778,e=>{"use strict";e.s(["useFormContext",()=>a],884708),e.i(247167);var t=e.i(271645),n=e.i(956789);let r=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:n.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});function a(){return t.useContext(r)}e.s(["LabelableContext",()=>i,"useLabelableContext",()=>o],247778);let i=t.createContext({controlId:void 0,registerControlId:n.NOOP,resetControlId:n.NOOP,labelId:void 0,setLabelId:n.NOOP,messageIds:[],setMessageIds:n.NOOP,getDescriptionProps:e=>e});function o(){return t.useContext(i)}},538489,e=>{"use strict";e.s(["useLabelableId",()=>s]);var t=e.i(271645),n=e.i(146376),r=e.i(667865),a=e.i(388940),i=e.i(956789),o=e.i(788015),l=e.i(247778);function s(e={}){let{id:u,enabled:c=!0}=e,{controlId:d,registerControlId:p,resetControlId:f}=(0,l.useLabelableContext)(),h=(0,o.useBaseUiId)(),g=(0,a.useRefWithInit)(()=>Symbol()),m=t.useRef(!1),x=t.useRef(!1),v=(0,r.useStableCallback)(()=>{m.current&&p!==i.NOOP&&(m.current=!1,p(g.current,void 0))});return(0,n.useIsoLayoutEffect)(()=>{let e;if(!c||p===i.NOOP)return void v();if(void 0!==u)x.current=!0,e=u;else{if(!x.current)return void f();e=h}if(void 0===e)return void v();m.current=!0,p(g.current,e)},[u,c,p,f,h,g,v]),(0,n.useIsoLayoutEffect)(()=>v,[v]),(c?d:void 0)??u??h}},730275,496545,e=>{"use strict";e.s(["Autocomplete",()=>te,"AutocompleteCollection",()=>tt,"AutocompleteGroup",()=>ti,"AutocompleteGroupLabel",()=>to,"AutocompleteInput",()=>tn,"AutocompleteItem",()=>ta,"AutocompleteList",()=>tr,"AutocompleteStatus",()=>tl],730275),e.s(["Arrow",()=>eZ,"Backdrop",()=>eV,"Clear",()=>eE,"Collection",()=>eA,"Empty",()=>e3,"Group",()=>eY,"GroupLabel",()=>eJ,"Icon",()=>ey,"Input",()=>ev,"InputGroup",()=>eb,"Item",()=>e7,"List",()=>eO,"Popup",()=>eW,"Portal",()=>ej,"Positioner",()=>eK,"Root",()=>Z,"Row",()=>e9,"Separator",()=>e4,"Status",()=>eP,"Trigger",()=>ed,"Value",()=>G,"useFilter",()=>M,"useFilteredItems",()=>e6],196799),e.i(148099);var t=e.i(271645);e.i(247167);var n=e.i(733332),r=e.i(951437),a=e.i(146376),i=e.i(713203),o=e.i(667865),l=e.i(828918),s=e.i(446265),u=e.i(502077),c=e.i(388940),d=e.i(301252),p=e.i(956789),f=e.i(229315),h=e.i(17989),g=e.i(265858),m=e.i(260891),x=e.i(385689),v=e.i(464132),C=e.i(584446),b=e.i(675606),y=e.i(56434),S=e.i(202672),I=e.i(988713),E=e.i(137584),k=e.i(469690),w=e.i(381104),A=e.i(884708),R=e.i(538489),O=e.i(42191);function N(e){return null==e?void 0:`${e}-popup`}let P=new Map,M=function(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e.locale)}|${JSON.stringify(t)}`,r=P.get(n);if(r)return r;let a=new Intl.Collator(e.locale,t),i={contains(e,t,n){if(!t)return!0;let r=(0,O.stringifyAsLabel)(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(0===a.compare(r.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=(0,O.stringifyAsLabel)(e,n);return 0===a.compare(r.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let r=(0,O.stringifyAsLabel)(e,n),i=t.length;return r.length>=i&&0===a.compare(r.slice(r.length-i),t)}};return P.set(n,i),i};var T=e.i(223910),j=e.i(32199);function L(e,t=!1){let{overflowY:n}=(0,f.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientHeight>0:e.scrollHeight>e.clientHeight)}function V(e,t,n=!1){return"vertical"===t?L(e,n):function(e,t=!1){let{overflowX:n}=(0,f.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientWidth>0:e.scrollWidth>e.clientWidth)}(e,n)}function D(e,t,n){let r=e;for(;(0,f.isHTMLElement)(r)&&r!==t&&!(0,f.isLastTraversableNode)(r);){for(let e of n)if(V(r,e))return!0;r=(0,f.getParentNode)(r)}return!1}function H(e,t,n="vertical",r=!1){let a=(0,f.isHTMLElement)(e)?e:null;for(;(0,f.isHTMLElement)(a)&&a!==t&&!(0,f.isLastTraversableNode)(a);){if(V(a,n,r))return a;a=(0,f.getParentNode)(a)}return V(t,n,r)?t:null}e.s(["findScrollableTouchTarget",()=>H,"hasScrollableAncestor",()=>D,"isScrollableY",()=>L],496545);var _=e.i(606039),F=e.i(264111),q=e.i(176782),B=e.i(484325);let K=Symbol("none"),z={value:K,index:-1};var $=e.i(872855),U=e.i(843476);function W(e){let N,{id:P,onOpenChangeComplete:V,defaultSelectedValue:D=null,
7selectedValue:H,onSelectedValueChange:W,defaultInputValue:Z,inputValue:G,open:Y,defaultOpen:J=!1,selectionMode:X,onItemHighlighted:Q,name:ee,form:et,disabled:en=!1,readOnly:er=!1,required:ea=!1,inputRef:ei,grid:eo=!1,items:el,filteredItems:es,filter:eu,filterQuery:ec,openOnInputClick:ed=!0,autoHighlight:ep=!1,keepHighlight:ef=!1,highlightItemOnHover:eh=!0,loopFocus:eg=!0,itemToStringLabel:em,itemToStringValue:ex,isItemEqualToValue:ev=B.defaultItemEquality,virtualized:eC=!1,inline:eb=!1,fillInputOnItemPress:ey=!0,modal:eS=!1,limit:eI=-1,autoComplete:eE="list",formAutoComplete:ek,locale:ew,submitOnItemClick:eA=!1}=e,{clearErrors:eR}=(0,A.useFormContext)(),{setDirty:eO,validityData:eN,setFilled:eP,name:eM,disabled:eT,setTouched:ej,setFocused:eL,validationMode:eV,validation:eD}=(0,k.useFieldRootContext)(),eH=(0,$.useDirection)(),e_=(0,R.useLabelableId)({id:P}),eF=M({locale:ew}),eq=Array.isArray(el)?null:el;if(eq&&"function"!=typeof eq.label)throw Error((0,n.default)(100));let eB=eq?eq.data:el,eK=eq?.value,ez=eK?void 0:eB,e$=t.useMemo(()=>{let e;if(!es||!eK)return;let t=(0,O.flattenLeafItems)(es),n=t.map(eK);return{values:n,findItem(r,a){if(!e){e=new Map;for(let r=0;r<n.length;r+=1)e.has(n[r])||e.set(n[r],t[r])}var i=e;let o=i.get(r);if(void 0!==o||a===B.defaultItemEquality)return o;for(let[e,t]of i)if((0,B.compareItemEquality)(e,r,a))return t}}},[es,eK]),eU=t.useMemo(()=>eq?e=>eq.label(e,ev,e=>{let t=e$?.findItem(e,ev);return null!=t?eq.itemLabel(t):(0,O.stringifyAsLabel)(e,em)}):em,[eq,em,e$,ev]),eW=t.useMemo(()=>eq?Object.assign(e=>eq.itemLabel(e),{selected:e=>(0,O.stringifyAsLabel)(e,eU)}):em,[eq,eU,em]);function eZ(e){return(0,O.stringifyAsLabel)(e,eU)}let[eG,eY]=t.useState(!1),[eJ,eX]=t.useState(null),eQ=t.useRef(eJ),e0=t.useRef([]),e1=t.useRef([]),e5=t.useRef(null),e2=t.useRef(null),e7=t.useRef(null),e9=t.useRef(null),e3=t.useRef(null),e4=t.useRef(!0),e6=t.useRef(!1),e8=t.useRef(null),te=t.useRef(null),tt=t.useRef(null),tn=t.useRef(z),tr=t.useRef(null),ta=t.useRef([]),ti=t.useRef(null),to=eT||en,tl=eM??ee,ts="multiple"===X,tu="single"===X,tc=void 0!==G||void 0!==Z,td=void 0!==eB,tp=void 0!==es;N="always"===ep?"always":!!ep&&"input-change";let[tf,th]=(0,r.useControlled)({controlled:H,default:ts?D??p.EMPTY_ARRAY:D,name:"Combobox",state:"selectedValue"}),tg=t.useMemo(()=>null===eu?()=>!0:void 0!==eu?eu:(e,t)=>null!=e&&eF.contains(e,t,eW),[eu,eF,eW]),tm=(0,c.useRefWithInit)(()=>tc?Z??"":tu?eZ(tf):"").current,[tx,tv]=(0,r.useControlled)({controlled:G,default:tm,name:"Combobox",state:"inputValue"}),[tC,tb]=(0,r.useControlled)({controlled:Y,default:J,name:"Combobox",state:"open"}),ty=(0,O.isGroupedItems)(eB),tS=tC||null===eJ?String(tx).trim():eJ,tI=tu?eZ(tf):"",tE=tu&&!eG&&""!==tS&&tI.length===tS.length&&eF.contains(tI,tS),tk=tE?"":ec??tS,tw=td&&tp&&tE&&(!eq||eq.hasValue(tf,ev)),tA=t.useMemo(()=>eB?(0,O.flattenLeafItems)(eB):p.EMPTY_ARRAY,[eB]),tR=t.useMemo(()=>{if(es&&!tw)return es;if(!eB)return p.EMPTY_ARRAY;if(ty){let e=[],t=0;for(let n of eB){if(eI>-1&&t>=eI)break;let r=eI>-1?eI-t:1/0,a=""===tk?n.items.slice(0,r):[];if(""!==tk)for(let e of n.items){if(a.length>=r)break;tg(e,tk,eW)&&a.push(e)}if(a.length>0){let r={...n,items:a};e.push(r),t+=a.length}}return e}if(""===tk)return eI>-1?tA.slice(0,eI):tA;let e=[];for(let t of tA){if(eI>-1&&e.length>=eI)break;tg(t,tk,eW)&&e.push(t)}return e},[es,tw,eB,ty,tk,eI,tg,eW,tA]),tO=t.useMemo(()=>{if(e$&&tR===es)return e$.values;let e=(0,O.flattenLeafItems)(tR);return eK?e.map(e=>eK(e)):e},[tR,es,e$,eK]),tN=(0,c.useRefWithInit)(()=>{let e=null;return eb&&tC&&td&&"none"!==X&&(e=(0,B.findSelectionIndex)(tO,tf,ev,ts)),new d.ReactStore({id:e_,labelId:void 0,selectedValue:tf,open:tC,items:ez,selectionMode:X,name:tl,form:et,disabled:to,readOnly:er,required:ea,grid:eo,virtualized:eC,openOnInputClick:ed,itemToStringLabel:eU,isItemEqualToValue:ev,modal:eS,autoHighlight:N,submitOnItemClick:eA,hasInputValue:tc,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eb,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:p.EMPTY_OBJECT,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===X},{onOpenChangeComplete:p.NOOP,setOpen:p.NOOP,setInputValue:p.NOOP,setSelectedValue:p.NOOP,setIndices:p.NOOP,handleSelection:p.NOOP,forceMount:p.NOOP,requestSubmit:p.NOOP,listRef:e0,labelsRef:e1,popupRef:e5,emptyRef:e3,inputRef:e2,startDismissRef:e7,endDismissRef:e9,keyboardActiveRef:e4,chipsContainerRef:e8,clearRef:te,valuesRef:ta,pointerDownItemRef:ti,selectionEventRef:tt},I.selectors)}).current,tP="none"===X?tx:tf,tM=t.useMemo(()=>"none"===X?tP:Array.isArray(tf)?tf.map(e=>(0,O.stringifyAsValue)(e,ex)):(0,O.stringifyAsValue)(tf,ex),[tP,ex,X,tf]),tT=(0,o.useStableCallback)(Q
7),tj=(0,o.useStableCallback)(V),tL=tN.useState("activeIndex"),tV=tN.useState("selectedIndex"),tD=tN.useState("positionerElement"),tH=tN.useState("listElement"),t_=tN.useState("triggerElement"),tF=tN.useState("inputElement"),tq=tN.useState("inputGroupElement"),tB=tN.useState("inline"),tK=tN.useState("inputInsidePopup"),tz=tN.useState("inputOwnsFormValue"),t$=tu&&!tK&&tx===tI,tU=(0,s.useValueAsRef)(t_),{mounted:tW,setMounted:tZ,transitionStatus:tG}=(0,T.useTransitionStatus)(tC),{openMethod:tY,triggerProps:tJ}=(0,j.useOpenInteractionType)(tC),tX=(0,o.useStableCallback)(()=>tM);(0,w.useRegisterFieldControl)(tK?tU:e2,e_,tP,tX,!to,ee);let tQ=(0,o.useStableCallback)(()=>{eB?e1.current=tO.map(eZ):tN.set("forceMounted",!0)}),t0=(0,o.useStableCallback)((e,t,n)=>{if(-1===t){if(tn.current===z)return;tn.current=z}else tn.current={value:e,index:t};tT(e,(0,b.createGenericEventDetails)(n,void 0,{index:t}))}),t1=(0,o.useStableCallback)(e=>{let t={};void 0!==e.activeIndex&&(t.activeIndex=e.activeIndex),void 0!==e.selectedIndex&&(t.selectedIndex=e.selectedIndex),tN.update(t);let n=e.activeIndex;if(void 0===n)return;let r=e.type||y.REASONS.none;null===n?t0(void 0,-1,r):t0(ta.current[n],n,r)}),t5=(0,o.useStableCallback)((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(e6.current=n.reason===y.REASONS.inputClear,n.reason===y.REASONS.inputChange){tC&&null!==eJ&&eX(null);let e=n.event,r=e.inputType;if("compositionend"===e.type||null!=r&&""!==r&&"insertReplacementText"!==r){let e=""!==t.trim();e&&eY(!0),tr.current={hasQuery:e};let n=tN.state.listElement;if(!tN.state.virtualized&&n){let e=e5.current;for(let t of(0,f.getOverflowAncestors)(n.firstElementChild??n)){if(!(0,f.isHTMLElement)(t)||(e?!(0,C.contains)(e,t):"dialog"===t.getAttribute("role")))break;if(L(t)){t.scrollTop=0;break}}}e&&N&&null==tN.state.activeIndex&&(tC||tB)&&tN.set("activeIndex",0)}}else n.reason===y.REASONS.inputClear&&""===t&&tN.state.inputInsidePopup&&(tr.current={hasQuery:!1,selection:!0}
7);tv(t)}}),t2=(0,o.useStableCallback)(e=>{let t=!e&&tK&&!tB&&""!==tx&&(String(tx).trim()===eJ||tx===tI);!e&&(t||""===tx||t$)&&eY(!1),eX(null),t&&t5("",(0,b.createChangeEventDetails)(y.REASONS.inputClear))}),t7=(0,o.useStableCallback)((t,n)=>{if(tC!==t&&(n.reason===y.REASONS.escapeKey&&td&&0===tO.length&&!e3.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&null!==eJ&&t2(n.reason===y.REASONS.inputChange),!t&&eG&&(tu?(tB||eX(tS),""===tS&&eY(!1)):ts&&(tB||eX(tS),tK&&t1({activeIndex:null}),(!tK||tB)&&t5("",(0,b.createChangeEventDetails)(y.REASONS.inputClear,n.event,void 0,{isItemPress:n.reason===y.REASONS.itemPress})))),tb(t),!t&&tK&&(n.reason===y.REASONS.focusOut||n.reason===y.REASONS.outsidePress))&&(ej(!0),eL(!1),"onBlur"===eV))){let e="none"===X?tx:tf;eD.commit(e)}}),t9=(0,o.useStableCallback)((e,t)=>{W?.(e,t),!t.isCanceled&&(th(e),("none"===X&&e5.current&&ey||tu&&!tN.state.inputInsidePopup)&&t5(eZ(e),(0,b.createChangeEventDetails)(t.reason,t.event)))}),t3=(0,o.useStableCallback)((e,t)=>{let n=(0,C.getTarget)(e),r=tt.current??e;tt.current=null;let a=(0,b.createChangeEventDetails)(y.REASONS.itemPress,r),i=n?.closest("a")?.getAttribute("href");if(i){i.startsWith("#")&&t7(!1,a);return}if(ts){let e=Array.isArray(tf)?tf:[],n=(0,B.selectedValueIncludes)(e,t,ev);if(t9(n?(0,B.removeItem)(e,t,ev):[...e,t],a),a.isCanceled||!(e2.current&&""!==e2.current.value.trim()))return;if(tN.state.inputInsidePopup){t5("",(0,b.createChangeEventDetails)(y.REASONS.inputClear,a.event,void 0,{isItemPress:!0}));let e=tr.current;e&&!n&&(e.toggledValue=t)}else t7(!1,a)}else{if(t9(t,a),a.isCanceled)return;t7(!1,a)}}),t4=(0,o.useStableCallback)(()=>{let e=eD.inputRef.current?.form??tN.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),t6=(0,o.useStableCallback)(()=>{if(tZ(!1),tj?.(!1),eY(!1),eX(null),"none"===X?t1({activeIndex:null,selectedIndex:null}):t1({activeIndex:null}),ts&&e2.current&&""!==e2.current.value&&!e6.current&&t5("",(0,b.createChangeEventDetails)(y.REASONS.inputClear)),tu)if(tN.state.inputInsidePopup)e2.current&&""!==e2.current.value&&t5("",(0,b.createChangeEventDetails)(y.REASONS.inputClear));else{let e=eZ(tf);if(e2.current&&e2.current.value!==e){let t=""===e?y.REASONS.inputClear:y.REASONS.none;t5(e,(0,b.createChangeEventDetails)(t))}}}),t8=t.useMemo(()=>tB&&tD?{current:tD.closest('[role="dialog"]')}:e5,[tB,tD]);(0,E.useOpenChangeComplete)({enabled:!e.actionsRef,open:tC,ref:t8,onComplete(){tC||t6()}}),t.useImperativeHandle(e.actionsRef,()=>({unmount:t6}),[t6]),(0,a.useIsoLayoutEffect)(function(){let e=null!==eQ.current&&null===eJ;if(eQ.current=eJ,tC&&(!e||!td)||(tC||(ti.current=null),"none"===X))return;let t=td?tO:ta.current;t1({selectedIndex:(0,B.findSelectionIndex)(t,tf,ev,ts)})},[tC,eJ,tf,X,ts,td,tO,ev,t1]),(0,a.useIsoLayoutEffect)(()=>{eB&&(ta.current=tO,e0.current.length=tO.length)},[eB,tO]),(0,a.useIsoLayoutEffect)(()=>{let e=tr.current;if(e){let t=tC||tB||tN.state.positionerElement?.hidden===!1;if(e.hasQuery)N&&t&&tN.set("activeIndex",0),tr.current=null;else if(""===String(tx).trim()&&(tr.current=null,t)){let t=e.selection;"always"!==N||t||"none"!==tN.state.selectionMode||tN.set("activeIndex",0),queueMicrotask(()=>{if(!tN.state.open&&!tN.state.inline||e2.current&&""!==e2.current.value.trim())return;let n=tN.state.selectedValue,r="multiple"===tN.state.selectionMode;if(r&&Array.isArray(n)?n.length>0:"none"!==tN.state.selectionMode&&null!=n){let t=td||tp?tO:ta.current,a=(0,B.findItemIndex)(t,e.toggledValue,tN.state.isItemEqualToValue);tN.set("activeIndex",-1!==a?a:(0,B.findSelectionIndex)(t,n,tN.state.isItemEqualToValue,r))}else t?tN.set("activeIndex",null):"always"===N&&tN.set("activeIndex",0)})}}if(!tC&&!tB)return;let t=td||tp?tO:ta.current,n=tN.state.activeIndex;if(null==n)return"always"===N&&t.length>0?void tN.set("activeIndex",0):void t0(void 0,-1,y.REASONS.none);if(n>=t.length){t0(void 0,-1,y.REASONS.none),tN.set("activeIndex",null);return}let r=t[n],a=tn.current.value,i=a!==K&&(0,B.compareItemEquality)(r,a,tN.state.isItemEqualToValue);tn.current.index===n&&i||t0(r,n,y.REASONS.none)},[tL,N,t0,tp,td,tO,tB,tC,tN,tx]),(0,a.useIsoLayoutEffect)(()=>
7{if("none"===X)return void eP(""!==String(tx));eP(ts?Array.isArray(tf)&&tf.length>0:null!=tf)},[eP,X,tx,tf,ts]),t.useEffect(()=>{td&&N&&0===tO.length&&t1({activeIndex:null})},[td,N,tO.length,t1]);let ne=!1;function nt(){ne||tx===tI||(ne=!0,t5(tI,(0,b.createChangeEventDetails)(y.REASONS.none)))}function nn(){!tu||tc||tK||eG||nt()}(0,_.useValueChanged)(tS,function(){tC&&""!==tS&&tS!==String(tm)&&!t$&&eY(!0)}),(0,_.useValueChanged)(tC,function(){tC&&null!==eJ&&t2(!1)}),(0,_.useValueChanged)(tf,function(){"none"!==X&&(eR(tl),eO((0,B.isSelectedValueDirty)(tf,eN.initialValue,ev)),eD.change(tf),!tu||tc||tK||nt())}),(0,_.useValueChanged)(tI,nn),(0,_.useValueChanged)(eB,nn),(0,_.useValueChanged)(tx,function(){"none"===X&&(eR(tl),eO(tx!==eN.initialValue),eD.change(tx))});let nr=(0,g.useFloatingRootContext)({open:!!tB||tC,onOpenChange:t7,elements:{reference:tK?t_:tF,floating:tD}}),na=eo?"grid":"listbox",ni=tC||tB,no=ni?"true":"false",nl=t.useMemo(()=>{let e=tF?.tagName==="INPUT",t=null==tF||e,n=t||ni,r=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(r.role="combobox",r["aria-expanded"]=no,r["aria-haspopup"]=na,r["aria-controls"]=ni?tH?.id:void 0,r["aria-autocomplete"]=er?"none":eE),{reference:r,floating:{role:"presentation"}}},[tF,ni,no,na,tH?.id,eE,er]),ns=(0,x.useClick)(nr,{enabled:!to&&ed,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!tK,reason:y.REASONS.inputPress}),nu=(0,h.useDismiss)(nr,{enabled:!to&&!tB,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!tB||void 0,outsidePress(e){let t=(0,C.getTarget)(e);return!(0,C.contains)(t_,t)&&!(0,C.contains)(te.current,t)&&!(0,C.contains)(e8.current,t)&&!(0,C.contains)(tq,t)}}),nc=(0,m.useListNavigation)(nr,{enabled:!to,id:e_,listRef:e0,activeIndex:tL,selectedIndex:tV,virtual:!0,loopFocus:eg,allowEscape:eg&&!N,focusItemOnOpen:!eG&&("none"!==X||!!N)&&"auto",focusItemOnHover:eh,resetOnPointerLeave:!ef,orientation:eo?"horizontal":void 0,rtl:"rtl"===eH,disabledIndices:p.EMPTY_ARRAY,grid:eo?v.gridNavigation:void 0,onNavigate(e,t){(t||tC)&&"ending"!==tG&&(t?t1({activeIndex:e,type:e4.current?y.REASONS.keyboard:y.REASONS.pointer}):t1({activeIndex:e}))}}),nd=t.useMemo(()=>(0,q.mergeProps)(nc.reference,{onKeyDown(e){eo&&null==tN.state.activeIndex&&("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventBaseUIHandler()}},nu.reference,ns.reference,nl.reference),[nc.reference,nu.reference,ns.reference,nl.reference,eo,tN]),np=t.useMemo(()=>(0,q.mergeProps)(F.FOCUSABLE_POPUP_PROPS,nu.floating),[nu.floating]),nf=t.useMemo(()=>(0,q.mergeProps)(nc.floating,nl.floating),[nc.floating,nl.floating]),nh=t.useMemo(()=>{let e=nc.item;return e?{...e,onFocus:void 0}:p.EMPTY_OBJECT},[nc.item]);tN.useContextCallback("setOpen",t7),tN.useContextCallback("setInputValue",t5),tN.useContextCallback("setSelectedValue",t9),tN.useContextCallback("setIndices",t1),tN.useContextCallback("handleSelection",t3),tN.useContextCallback("forceMount",tQ),tN.useContextCallback("requestSubmit",t4),tN.useContextCallback("onOpenChangeComplete",V),(0,i.useOnFirstRender)(()=>{tN.update({inline:eb,popupProps:np,listProps:nf,inputProps:nd,triggerProps:tJ,itemProps:nh})});let ng={id:e_,selectedValue:tf,open:tC,mounted:tW,transitionStatus:tG,items:ez,inline:eb,popupProps:np,listProps:nf,inputProps:nd,triggerProps:tJ,itemProps:nh,openMethod:tY,selectionMode:X,name:tl,form:et,disabled:to,readOnly:er,required:ea,grid:eo,virtualized:eC,openOnInputClick:ed,itemToStringLabel:eU,modal:eS,autoHighlight:N,isItemEqualToValue:ev,submitOnItemClick:eA,hasInputValue:tc};(0,a.useIsoLayoutEffect)(()=>{tN.update({...ng,inputOwnsFormValue:"none"===X&&(eb||!tN.state.inputInsidePopup)})},[tN,...Object.values(ng)]);let nm=(0,l.useMergedRefs)(ei,eD.inputRef),nx=t.useMemo(()=>({query:tS,hasItems:td,filteredItems:tR,flatFilteredValues:tO}),[tS,td,tR,tO]),nv=t.useMemo(()=>Array.isArray(tP)?"":(0,O.stringifyAsValue)(tP,ex),[tP,ex]),nC=ts&&Array.isArray(tf)&&tf.length>0,nb=ts||"none"===X&&tz?void 0:tl,ny=t.useMemo(()=>ts&&Array.isArray(tf)&&tl?tf.map(e=>{let t=(0,O.stringifyAsValue)(e,ex);return(0,U.jsx)("input",{type:"hidden",form:et,name:tl,value:t,disabled:to},t)}
7):null,[ts,tf,et,tl,ex,to]),nS=(0,U.jsxs)(t.Fragment,{children:[e.children,(0,U.jsx)("input",{...eD.getValidationProps(to,{onFocus(){if(tK)return void t_?.focus();(e2.current||t_)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||to||er)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=(0,b.createChangeEventDetails)(y.REASONS.none,e.nativeEvent),a=()=>ta.current.findIndex(e=>(0,O.stringifyAsValue)(e,ex).toLowerCase()===n||eZ(e).toLowerCase()===n);tu&&(tQ(),eB&&-1===a()&&tN.set("forceMounted",!0)),queueMicrotask(function(){if(ts)return;if("none"===X)return void t5(t,r);let e=a();-1===e&&(e=ta.current.findIndex((e,t)=>{let r=e1.current[t];return null!=r&&r.toLowerCase()===n}));let i=-1===e?void 0:ta.current[e];null!=i&&t9?.(i,r)})}}),id:e_&&null==nb?`${e_}-hidden-input`:void 0,form:et,name:nb,autoComplete:ek,disabled:to,required:ea&&!nC,readOnly:er,value:nv,ref:nm,style:nb?u.visuallyHiddenInput:u.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ny]});return(0,U.jsx)(S.ComboboxRootContext.Provider,{value:tN,children:(0,U.jsx)(S.ComboboxFloatingContext.Provider,{value:nr,children:(0,U.jsx)(S.ComboboxHasItemsContext.Provider,{value:td,children:(0,U.jsx)(S.ComboboxDerivedItemsContext.Provider,{value:nx,children:(0,U.jsx)(S.ComboboxInputValueContext.Provider,{value:tx,children:nS})})})})})}function Z(e){let n,{openOnInputClick:r=!1,value:a,defaultValue:i,onValueChange:o,mode:l="list",itemToStringValue:s,...u}=e,c=("inline"===l||"both"===l)&&!e.readOnly,d=void 0!==a,[p,f]=t.useState(i??""),[h,g]=t.useState("");t.useEffect(()=>{(d||!c)&&g("")},[a,d,c]),n=c&&""!==h?h:d?a??"":p;let m=M({locale:u.locale}),x=String((d?a:p)??"").trim(),v="inline"===l||"none"===l||null===u.filter?null:u.filter??m.contains;return(0,U.jsx)(W,{...u,itemToStringLabel:s,openOnInputClick:r,selectionMode:"none",fillInputOnItemPress:!0,filter:v,filterQuery:"both"===l?x:void 0,autoComplete:l,inputValue:n,defaultInputValue:i,onInputValueChange:function(e,t){g(""),d||f(e),o?.(e,t)},onItemHighlighted:function(t,n){e.onItemHighlighted?.(t,n),n.reason!==y.REASONS.pointer&&g(c&&null!=t?(0,O.stringifyAsLabel)(t,s):"")}})}function G(e){let{children:n}=e,r=(0,S.useComboboxInputValueContext)(),a=null;return a="function"==typeof n?n(String(r)):null!=n?n:r,(0,U.jsx)(t.Fragment,{children:a})}var Y=e.i(439957),J=e.i(108868),X=e.i(552245),Q=e.i(540886),ee=e.i(879938),et=e.i(875812),en=e.i(145147);en.CommonTriggerDataAttributes.popupOpen,en.CommonTriggerDataAttributes.pressed;let er={...ee.pressableTriggerOpenStateMapping,...et.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};var ea=e.i(247778),ei=e.i(157940),eo=e.i(264042),el=e.i(736760);function es(e){let t=e.useState("mounted"),n=e.useState("popupSide"),r=e.useState("positionerElement");return t&&r?n:null}function eu(){return 0===(0,S.useComboboxDerivedItemsContext)().filteredItems.length}function ec(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}let ed=t.forwardRef(function(e,n){let r,{render:a,className:i,nativeButton:l=!0,disabled:s=!1,id:u,style:c,...d}=e,{state:p,disabled:f,setTouched:h,setFocused:g,validationMode:m,validation:v}=(0,k.useFieldRootContext)(),{labelId:I}=(0,ea.useLabelableContext)(),E=(0,S.useComboboxRootContext)(),w=E.useState("selectionMode"),A=E.useState("disabled"),O=E.useState("readOnly"),P=E.useState("required"),M=E.useState("positionerElement"),T=E.useState("listElement"),j=E.useState("popupId"),L=E.useState("triggerProps"),V=E.useState("inputInsidePopup"),D=E.useState("id"),H=E.useState("labelId"),_=E.useState("open"),F=E.useState("selectedValue"),q=E.useState("activeIndex"),B=E.useState("selectedIndex"),K=E.useState("hasSelectedValue"),z=(0,S.useComboboxFloatingContext)(),$=(0,S.useComboboxInputValueContext)(),U=(0,Y.useTimeout)(),W=f||A||s,Z=eu(),G=es(E);(0,R.useLabelableId)({id:V?u:void 0});let ee=V?u??D:u;_&&V?r=j??N(D):_&&(r=T?.id);let et=t.useRef("");function en(e){et.current=e.pointerType}let{reference:ec}=(0,el.useTypeahead)(z,{enabled:!_&&!O&&!A&&"single"===w,listRef:E.context.labelsRef,activeIndex:q,selectedIndex:B,onMatch(e){let t=E.context.valuesRef.current[e];void 0!==t&&E.context.setSelectedValue(t,(0,b.createChangeEventDetails)(y.REASONS.none))}}),{reference:ed}
7=(0,x.useClick)(z,{enabled:!A,event:"mousedown"}),{buttonRef:ep,getButtonProps:ef}=(0,Q.useButton)({native:l,disabled:W}),eh={...p,readOnly:O,open:_,disabled:W,popupSide:G,listEmpty:Z,placeholder:"none"!==w&&!K},eg=(0,o.useStableCallback)(e=>{E.set("triggerElement",e)});return(0,X.useRenderElement)("button",e,{ref:[n,ep,eg],state:eh,props:[L,ed,ec,{id:ee,tabIndex:V?0:-1,role:V?"combobox":void 0,"aria-expanded":_,"aria-haspopup":V?"dialog":"listbox","aria-controls":r,"aria-required":V&&P||void 0,"aria-readonly":V&&O||void 0,"aria-labelledby":I??H,onPointerDown:en,onPointerEnter:en,onFocus(){g(!0),W||U.start(0,E.context.forceMount)},onBlur(e){(0,C.contains)(M,e.relatedTarget)||(h(!0),g(!1),"onBlur"===m&&v.commit("none"===w?$:F))},onMouseDown(e){if(W||(V||z.set("domReferenceElement",e.currentTarget),E.context.forceMount(),"touch"!==et.current&&(E.context.inputRef.current?.focus(),V||e.preventDefault()),_))return;let t=(0,J.ownerDocument)(e.currentTarget);V&&t.addEventListener("mouseup",function(e){let t=E.state.triggerElement;if(!t)return;let n=(0,C.getTarget)(e),r=E.state.positionerElement,a=E.state.listElement;!((0,C.contains)(t,n)||(0,C.contains)(r,n)||(0,C.contains)(a,n))&&((0,eo.isMouseWithinBounds)(e,t)||E.context.setOpen(!1,(0,b.createChangeEventDetails)(y.REASONS.cancelOpen,e)))},{once:!0})},onKeyDown(e){("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,ei.stopEvent)(e),E.context.setOpen(!0,(0,b.createChangeEventDetails)(y.REASONS.listNavigation,e.nativeEvent)),E.context.inputRef.current?.focus())}},v.getValidationProps(W,d),ef],stateAttributesMapping:er})});var ep=e.i(328744),ef=e.i(788015);let eh=t.createContext(void 0),eg=t.createContext(void 0);function em(e){let r=t.useContext(eg);if(void 0===r&&!e)throw Error((0,n.default)(21));return r}let ex=t.forwardRef(function(e,t){let n=(0,S.useComboboxRootContext)(),{buttonRef:r,getButtonProps:a}=(0,Q.useButton)({native:!1}),i=(0,l.useMergedRefs)(t,r),o=a({onClick:function(e){n.context.setOpen(!1,(0,b.createChangeEventDetails)(y.REASONS.closePress,e.nativeEvent,e.currentTarget))}});return(0,U.jsx)("span",{ref:i,...o,"aria-label":"Dismiss",tabIndex:void 0,style:u.visuallyHiddenInput})}),ev=t.forwardRef(function(e,n){let{render:r,className:a,disabled:i=!1,id:l,style:s,...u}=e,{state:c,disabled:d,setTouched:p,setFocused:f,validationMode:h,validation:g}=(0,k.useFieldRootContext)(),{labelId:m}=(0,ea.useLabelableContext)(),x=t.useContext(eh),v=!!em(!0),C=(0,S.useComboboxRootContext)(),I=(0,S.useComboboxInputValueContext)(),E=(0,$.useDirection)(),w=C.useState("required"),A=C.useState("disabled"),R=C.useState("readOnly"),O=C.useState("name"),N=C.useState("form"),P=C.useState("selectionMode"),M=C.useState("autoHighlight"),T=C.useState("inputProps"),j=C.useState("triggerProps"),L=C.useState("open"),V=C.useState("mounted"),D=C.useState("selectedValue"),H=C.useState("id"),_=C.useState("inline"),F=C.useState("modal"),q=!!M,B=es(C),K=d||A||i,z=eu(),W=v||_,Z=(0,ef.useBaseUiId)(l??(W?void 0:H)),G=v?et.DEFAULT_FIELD_STATE_ATTRIBUTES:c,[Y,J]=t.useState(null),Q=t.useRef(!1),ee=t.useRef(null),en=t.useRef(!1),eo="none"===P&&!v,el=(0,o.useStableCallback)(e=>{let t=v||C.state.inline;t&&!C.state.hasInputValue&&C.context.setInputValue("",(0,b.createChangeEventDetails)(y.REASONS.none)),C.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:eo})}),ed=v?u:g.getValidationProps(K,u);function eg(){C.context.setIndices({activeIndex:null,selectedIndex:null,type:C.context.keyboardActiveRef.current?y.REASONS.keyboard:y.REASONS.pointer})}function ev(){C.context.keyboardActiveRef.current=!1}let eC={...G,open:L,disabled:K,readOnly:R,popupSide:B,listEmpty:z},eb=(0,X.useRenderElement)("input",e,{state:eC,ref:[n,C.context.inputRef,el],props:[T,j,{value:Y??I,"aria-readonly":R||void 0,"aria-required":w||void 0,"aria-labelledby":m,disabled:K,readOnly:R,required:"none"===P?w:void 0,form:N,...eo&&O&&{name:O},id:Z,onFocus(){if(f(!0),!_||!en.current)return;en.current=!1;let e=ee.current;null!=e&&Object.hasOwn(C.context.valuesRef.current,e)&&C.context.setIndices({activeIndex:e})},onBlur(){p(!0),f(!1);let e=C.state.activeIndex;if(_&&null!==e&&"always"!==M&&(ee.current=e,en.current=!0,C.context.setIndices({activeIndex:null})),"onBlur"===h){let e="none"===P?I:D;g.commit(e)}},onCompositionStart(e){ep.platform.os.android||(Q.current=!0,J(e.currentTarget.value))},onCompositionEnd(e){Q.current=!1;let t=e.currentTarget.value;J(null),C.context.setInputValue(t,(0,b.createChangeEventDetails)(y.REASONS.inputChange,e.
7nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=Q.current||!(!n||"insertReplacementText"===n);function a(e){!R&&!K&&e&&r&&(C.context.setOpen(!0,(0,b.createChangeEventDetails)(y.REASONS.inputChange,t)),q||eg())}if(Q.current){let n=e.currentTarget.value;J(n),""!==n||C.state.openOnInputClick||C.state.inputInsidePopup||C.context.setOpen(!1,(0,b.createChangeEventDetails)(y.REASONS.inputClear,t));let r=n.trim(),i=q&&""!==r;a(r),L&&null!==C.state.activeIndex&&!i&&eg();return}let i=(0,b.createChangeEventDetails)(y.REASONS.inputChange,t);if(C.context.setInputValue(e.currentTarget.value,i),i.isCanceled)return;let o=""===e.currentTarget.value,l=(0,b.createChangeEventDetails)(y.REASONS.inputClear,t);o&&!C.state.inputInsidePopup&&("single"===P&&C.context.setSelectedValue(null,l),C.state.openOnInputClick||C.context.setOpen(!1,l)),a(e.currentTarget.value.trim()),L&&null!==C.state.activeIndex&&!q&&eg()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(C.context.keyboardActiveRef.current=!0,K||R){R&&"Enter"===e.key&&L&&null!==C.state.activeIndex&&(0,ei.stopEvent)(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r="rtl"===E;if("Home"===e.key){(0,ei.stopEvent)(e);let n=ep.platform.engine.gecko&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,ei.stopEvent)(e);let a=ep.platform.engine.gecko&&r?0:t.value.length;t.setSelectionRange(a,a),t.scrollLeft=r?-n:n;return}if(!V&&"Escape"===e.key){let t="multiple"===P&&Array.isArray(D)?0===D.length:null===D,n=(0,b.createChangeEventDetails)(y.REASONS.escapeKey,e.nativeEvent);C.context.setInputValue("",n),C.context.setSelectedValue("multiple"===P?[]:null,n),t||C.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(x&&"Backspace"===e.key&&""===t.value&&void 0===x.highlightedChipIndex&&Array.isArray(D)&&D.length>0){let t=x.chipsRef.current.length,n=t>0?t-1:D.length-1,r=D.filter((e,t)=>t!==n);eg(),C.context.setSelectedValue(r,(0,b.createChangeEventDetails)(y.REASONS.none,e.nativeEvent));return}let a=x?.highlightedChipIndex!==void 0,i=function(e){let t;if(!x)return;let{highlightedChipIndex:n}=x,r=x.chipsRef.current.length,[a,i]="rtl"===E?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"];return void 0!==n?e.key===a?(e.preventDefault(),t=n>0?n-1:void 0):e.key===i?(e.preventDefault(),t=n<r-1?n+1:void 0):("Backspace"===e.key||"Delete"===e.key)&&(e.preventDefault(),t=function(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0}(n,D.length),eg()):e.key===a&&(e.currentTarget.selectionStart??0)===0&&D.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t}(e);if(x?.setHighlightedChipIndex(i),void 0!==i?x?.chipsRef.current[i]?.focus():a&&C.context.inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&L){let t=C.state.activeIndex,n=e.nativeEvent;if(null===t){if(_)return;C.context.setOpen(!1,(0,b.createChangeEventDetails)(y.REASONS.none,n));return}(0,ei.stopEvent)(e),ec(C,t,n)}},onPointerMove:ev,onPointerDown:ev},ed],stateAttributesMapping:er}),ey=v?(0,U.jsx)(k.FieldRootContext.Provider,{value:k.DEFAULT_FIELD_ROOT_CONTEXT,children:eb}):eb;return(0,U.jsxs)(t.Fragment,{children:[L&&(!W||F)&&(0,U.jsx)(ex,{ref:C.context.startDismissRef}),ey]})});var eC=e.i(596296);let eb=t.forwardRef(function(e,t){let{render:n,className:r,style:a,...i}=e,{state:l}=(0,k.useFieldRootContext)(),s=(0,S.useComboboxRootContext)(),u=s.useState("open"),c=s.useState("disabled"),d=s.useState("readOnly"),p=s.useState("hasSelectedValue"),h=s.useState("selectionMode"),g=es(s),m=eu(),x={...l,open:u,disabled:c,readOnly:d,popupSide:g,listEmpty:m,placeholder:"none"!==h&&!p},v=(0,o.useStableCallback)(e=>{s.set("inputGroupElement",e)});return(0,X.useRenderElement)("div",e,{ref:[t,v],props:[{role:"group",onMouseDown(e){!function(e,t,n,r){if(e.baseUIHandlerPrevented)return;let a=(0,C.getTarget)(e.nativeEvent),i=(0,f.isElement)(a)?a:null;i!==e.currentTarget&&(r?.(i)||(0,eC.isInteractiveElement)(i))||(e.preventDefault(),!n&&(t.context.inputRef.current?.focus(),t.state.openOnInputClick&&t.context.setOpen(!0,(0,b.createChangeEventDetails)(y.REASONS.inputPress,e.nativeEvent))))}(e,s,c,e=>(0,C.contains)(s.context.chipsContainerRef.current,e))}},i],state:x,stateAttributesMapping:er})}),ey=t.forwardRef(function(e,t){let{render:n,className:r,style:a,...i}=e;return(0,X.useRenderElement)("span",e,{ref:t,props:[{"aria-hidden":!0,
7children:"▼"},i]})});var eS=e.i(474354);let eI={...eS.transitionStatusMapping,...ee.triggerOpenStateMapping},eE=t.forwardRef(function(e,t){let{render:n,className:r,disabled:a=!1,nativeButton:i=!0,keepMounted:o=!1,style:l,...s}=e,{disabled:u}=(0,k.useFieldRootContext)(),c=(0,S.useComboboxRootContext)(),d=c.useState("selectionMode"),p=c.useState("disabled"),f=c.useState("readOnly"),h=c.useState("open"),g=c.useState("selectedValue"),m=c.useState("hasSelectionChips"),x=(0,S.useComboboxInputValueContext)(),v=!1;v="none"===d?""!==x:"single"===d?null!=g:m;let C=u||p||a,{buttonRef:I,getButtonProps:w}=(0,Q.useButton)({native:i,disabled:C}),{mounted:A,transitionStatus:R,setMounted:O}=(0,T.useTransitionStatus)(v),N={disabled:C,visible:v,open:h,transitionStatus:R};(0,E.useOpenChangeComplete)({open:v,ref:c.context.clearRef,onComplete(){v||O(!1)}});let P=(0,X.useRenderElement)("button",e,{state:N,ref:[t,I,c.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(C||f)return;let t=c.context.keyboardActiveRef.current?y.REASONS.keyboard:y.REASONS.pointer;c.context.setInputValue("",(0,b.createChangeEventDetails)(y.REASONS.clearPress,e.nativeEvent)),"none"!==d?(c.context.setSelectedValue(Array.isArray(g)?[]:null,(0,b.createChangeEventDetails)(y.REASONS.clearPress,e.nativeEvent)),c.context.setIndices({activeIndex:null,selectedIndex:null,type:t})):c.context.setIndices({activeIndex:null,type:t}),c.context.inputRef.current?.focus()}},s,w],stateAttributesMapping:eI});return o||A?P:null}),ek=t.createContext(null);function ew(e){let{children:n,items:r}=e,a=t.useMemo(()=>({items:r}),[r]);return(0,U.jsx)(ek.Provider,{value:a,children:n})}function eA(e){let{children:n}=e,{filteredItems:r}=(0,S.useComboboxDerivedItemsContext)(),a=t.useContext(ek),i=a?a.items:r;return(0,U.jsx)(t.Fragment,{children:i.map(n)})}var eR=e.i(53687);let eO=t.forwardRef(function(e,n){var r;let{render:a,className:i,style:l,children:s,...u}=e,c=(0,S.useComboboxRootContext)(),d=(0,S.useComboboxFloatingContext)(),p=!!em(!0),{filteredItems:f,hasItems:h}=(0,S.useComboboxDerivedItemsContext)(),g=c.useState("selectionMode"),m=c.useState("grid"),x=c.useState("readOnly"),v=c.useState("listProps"),C=c.useState("virtualized"),b=c.useState("forceMounted"),y=0===f.length,I=(0,o.useStableCallback)(e=>{c.set("positionerElement",e)}),E=(0,o.useStableCallback)(e=>{c.set("listElement",e)}),k=t.useMemo(()=>"function"==typeof s?r||(r=(0,U.jsx)(eA,{children:s})):s,[s]),w=d.useState("floatingId"),A=(0,X.useRenderElement)("div",e,{state:{empty:y},ref:[n,E,p?null:I],props:[v,{children:k,tabIndex:-1,id:w,role:m?"grid":"listbox","aria-multiselectable":"multiple"===g?"true":void 0,"aria-readonly":!m&&!!x||void 0,onKeyDown(e){if(!c.state.disabled&&!c.state.readOnly&&"Enter"===e.key){let t=c.state.activeIndex;null!=t&&((0,ei.stopEvent)(e),ec(c,t,e.nativeEvent))}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},u]});if(C)return A;let R=h&&!b?void 0:c.context.labelsRef;return(0,U.jsx)(eR.CompositeList,{elementsRef:c.context.listRef,labelsRef:R,children:A})});function eN(){let e=(0,Y.useTimeout)(),n=t.useRef(null);return t.useEffect(()=>{if(ep.platform.os.ios)return;let t=n.current;if(null==t)return;let r=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;""!==e.nodeValue&&(n=e)}return n}(t);if(null==r)return;let a=r.data,i=`${a}\u2060`;return r.nodeValue=i,e.start(200,()=>{r.nodeValue===i&&(r.nodeValue=a)}),()=>{e.clear(),r.nodeValue===i&&(r.nodeValue=a)}},[n,e]),n}let eP=t.forwardRef(function(e,t){let{render:n,className:r,style:a,children:i,...o}=e,l=eN();return(0,X.useRenderElement)("div",e,{ref:[t,l],props:[{children:i,role:"status","aria-live":"polite","aria-atomic":!0},o]})});var eM=e.i(726674);let eT=t.createContext(void 0),ej=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,a=(0,S.useComboboxRootContext)(),i=a.useState("mounted"),o=a.useState("forceMounted");return i||n||o?(0,U.jsx)(eT.Provider,{value:n,children:(0,U.jsx)(eM.FloatingPortal,{ref:t,...r})}):null}),eL={...ee.popupStateMapping,...eS.transitionStatusMapping},eV=t.forwardRef(function(e,t){let{render:n,className:r,style:a,...i}=e,o=(0,S.useComboboxRootContext)(),l=o.useState("open"),s=o.useState("mounted"),u=o.useState("transitionStatus");return(0,X.useRenderElement)("div",e,{state:{open:l,transitionStatus:u},ref:t,stateAttributesMapping:eL,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},i]})});var eD=e.i(144394),eH=e.i(923706),e_=e.i(638396),eF=e.i(426),eq=e.i(789579),eB=e.i(33383);let eK=t.forwardRef(function(e,r){let{render:i,className:l,anchor:s,positionMethod:u,side:c,align:d,sideOffset:p,alignOffset:f,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:v=!1,collisionAvoidance:C=e_.DROPDOWN_COLLISION_AVOIDANCE,style:b,...y}
7=e,I=(0,S.useComboboxRootContext)(),E=(0,S.useComboboxFloatingContext)(),k=function(){let e=t.useContext(eT);if(void 0===e)throw Error((0,n.default)(20));return e}(),w=I.useState("modal"),A=I.useState("open"),R=I.useState("mounted"),O=I.useState("openMethod"),N=I.useState("positionerElement"),P=I.useState("triggerElement"),M=I.useState("inputElement"),T=I.useState("inputGroupElement"),j=I.useState("inputInsidePopup"),L=I.useState("transitionStatus"),V=eu(),D=(0,eH.useAnchorPositioning)({anchor:s??(j?P:T??M),floatingRootContext:E,positionMethod:u,mounted:R,side:c,sideOffset:p,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:k,collisionAvoidance:C,lazyFlip:!0});(0,eB.useAnchoredPopupScrollLock)(A&&w,"touch"===O,N,P);let H={open:A,side:D.side,align:D.align,anchorHidden:D.anchorHidden,empty:V};(0,a.useIsoLayoutEffect)(()=>{I.set("popupSide",D.side)},[I,D.side]);let _=(0,o.useStableCallback)(e=>{I.set("positionerElement",e)}),F=(0,eq.usePositioner)(e,H,{styles:D.positionerStyles,transitionStatus:L,props:y,refs:[r,_],hidden:!R,inert:!A});return(0,U.jsxs)(eg.Provider,{value:D,children:[R&&w&&(0,U.jsx)(eF.InternalBackdrop,{inert:(0,eD.inertValue)(!A),cutout:T??M??P}),F]})});var ez=e.i(61487),e$=e.i(253984);let eU={...ee.popupStateMapping,...eS.transitionStatusMapping},eW=t.forwardRef(function(e,n){let{render:r,className:i,style:o,initialFocus:l,finalFocus:s,...u}=e,c=(0,S.useComboboxRootContext)(),d=em(),p=(0,S.useComboboxFloatingContext)(),f=c.useState("mounted"),h=c.useState("open"),g=c.useState("openMethod"),m=c.useState("popupProps"),x=c.useState("transitionStatus"),v=c.useState("inputInsidePopup"),b=c.useState("inputElement"),y=c.useState("modal"),I=c.useState("id"),k=eu(),w=u.id??(v?N(I):void 0);(0,a.useIsoLayoutEffect)(()=>(c.set("popupId",c.context.popupRef.current?.id||w),()=>{c.set("popupId",void 0)}),[c,w]),(0,E.useOpenChangeComplete)({open:h,ref:c.context.popupRef,onComplete(){h&&c.context.onOpenChangeComplete(!0)}});let A={open:h,side:d.side,align:d.align,anchorHidden:d.anchorHidden,transitionStatus:x,empty:k},R=(0,X.useRenderElement)("div",e,{state:A,ref:[n,c.context.popupRef],props:[m,{id:w,role:v?"dialog":"presentation",onFocus(e){let t=(0,C.getTarget)(e.nativeEvent);"touch"!==g&&((0,C.contains)(c.state.listElement,t)||t===e.currentTarget)&&c.context.inputRef.current?.focus()}},(0,e$.getDisabledMountTransitionStyles)(x),u],stateAttributesMapping:eU}),O=!!v&&(e=>"touch"===e?c.context.popupRef.current:b),P=!v||y;return(0,U.jsx)(ez.FloatingFocusManager,{context:p,disabled:!f,modal:P,openInteractionType:g,initialFocus:void 0===l?O:l,returnFocus:null!=s?s:!!v&&void 0,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,U.jsxs)(t.Fragment,{children:[R,P&&(0,U.jsx)(ex,{ref:c.context.endDismissRef})]})})}),eZ=t.forwardRef(function(e,t){let{render:n,className:r,style:a,...i}=e,o=(0,S.useComboboxRootContext)(),{arrowRef:l,side:s,align:u,arrowUncentered:c,arrowStyles:d}=em(),p=o.useState("open");return(0,X.useRenderElement)("div",e,{ref:[l,t],stateAttributesMapping:ee.popupStateMapping,state:{open:p,side:s,align:u,uncentered:c},props:{style:d,"aria-hidden":!0,...i}})}),eG=t.createContext(void 0),eY=t.forwardRef(function(e,n){let{render:r,className:a,style:i,items:o,...l}=e,s=(0,S.useComboboxRootContext)().useState("grid"),[u,c]=t.useState(),d=t.useMemo(()=>({labelId:u,setLabelId:c,items:o}),[u,c,o]),p=(0,X.useRenderElement)("div",e,{ref:n,props:[{role:s?"rowgroup":"group","aria-labelledby":u},l]}),f=(0,U.jsx)(eG.Provider,{value:d,children:p});return o?(0,U.jsx)(ew,{items:o,children:f}):f}),eJ=t.forwardRef(function(e,r){let{render:i,className:o,style:l,id:s,...u}=e,{setLabelId:c}=function(){let e=t.useContext(eG);if(void 0===e)throw Error((0,n.default)(18));return e}(),d=(0,ef.useBaseUiId)(s);return(0,a.useIsoLayoutEffect)(()=>(c(d),()=>{c(e=>e===d?void 0:e)}),[d,c]),(0,X.useRenderElement)("div",e,{ref:r,props:[{id:d,"aria-hidden":!0},u]})});var eX=e.i(174080),eQ=e.i(673553);let e0=t.createContext(void 0),e1=t.createContext(!1);
7function e5(e){let{componentProps:n,forwardedRef:r,virtualized:i,indexFromFilter:o}=e,{render:l,className:s,style:u,value:c=null,index:d,disabled:p=!1,nativeButton:f=!1,...h}=n,g=t.useRef(null),m=(0,eQ.useCompositeListItem)({guess:!0,index:d,textRef:g}),x=(0,S.useComboboxRootContext)(),v=t.useContext(e1),C=(0,S.useComboboxHasItemsContext)(),b=x.useState("selectionMode"),y=x.useState("disabled"),I=x.useState("readOnly"),E=x.useState("isItemEqualToValue"),k=y||p,w="none"!==b,A=d??o??m.index,R=-1!==A,O=x.useState("id"),N=x.useState("isActive",A),P=x.useState("isSelected",c),M=x.useState("itemProps"),T=t.useRef(null),j=null!=O&&R?`${O}-${A}`:void 0,L=P&&w;(0,a.useIsoLayoutEffect)(()=>{if(!(R&&(i||null!=d)))return;let e=x.context.listRef.current;return e[A]=T.current,()=>{delete e[A]}},[R,i,A,d,x]),(0,a.useIsoLayoutEffect)(()=>{if(!R||C)return;let e=x.context.valuesRef.current;return e[A]=c,()=>{delete e[A]}},[R,C,A,c,x]),(0,a.useIsoLayoutEffect)(()=>{if(!R||C)return;let e=x.state.selectedValue,t=x.state.selectedIndex;"multiple"===x.state.selectionMode&&Array.isArray(e)?t=(0,B.resolveSelectedIndex)(A,c,x.context.valuesRef.current,e,E,t):(0,B.compareItemEquality)(c,e,E)&&(t=A),x.set("selectedIndex",t)},[R,C,x,A,c,E]);let{getButtonProps:V,buttonRef:D}=(0,Q.useButton)({disabled:k,focusableWhenDisabled:!0,native:f,composite:!0});function H(e){function t(){x.context.handleSelection(e,c)}x.state.submitOnItemClick?(eX.flushSync(t),x.context.requestSubmit()):t()}let _=(0,X.useRenderElement)("div",n,{ref:[D,r,m.ref,T],state:{disabled:k,selected:L,highlighted:N},props:[M,{id:j,role:v?"gridcell":"option","aria-selected":w?L:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(x.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){k||I||H(e.nativeEvent)},onMouseUp(e){let t=x.context.pointerDownItemRef.current===e.currentTarget;x.context.pointerDownItemRef.current=null,k||I||0!==e.button||t||!N||H(e.nativeEvent)}},h,V]}),F=t.useMemo(()=>({selected:L,textRef:g}),[L,g]);return(0,U.jsx)(e0.Provider,{value:F,children:_})}function e2(e){let{componentProps:t,forwardedRef:n}=e,r=(0,S.useComboboxRootContext)().useState("isItemEqualToValue"),{flatFilteredValues:a}=(0,S.useComboboxDerivedItemsContext)(),i=t.value??null,o=(0,B.findItemIndex)(a,i,r);return(0,U.jsx)(e5,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:o})}let e7=t.memo(t.forwardRef(function(e,t){let n=(0,S.useComboboxRootContext)().useState("virtualized");return n&&null==e.index?(0,U.jsx)(e2,{componentProps:e,forwardedRef:t}):(0,U.jsx)(e5,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})})),e9=t.forwardRef(function(e,t){let{render:n,className:r,style:a,...i}=e,o=(0,X.useRenderElement)("div",e,{ref:t,props:[{role:"row"},i]});return(0,U.jsx)(e1.Provider,{value:!0,children:o})}),e3=t.forwardRef(function(e,t){let{render:n,className:r,style:a,children:i,...o}=e,{filteredItems:l}=(0,S.useComboboxDerivedItemsContext)(),s=(0,S.useComboboxRootContext)(),u=eN(),c=0===l.length?i:null;return(0,X.useRenderElement)("div",e,{ref:[t,s.context.emptyRef,u],props:[{children:c,role:"status","aria-live":"polite","aria-atomic":!0},o]})}),e4=t.forwardRef(function(e,t){let{className:n,render:r,orientation:a="horizontal",style:i,...o}=e;return(0,X.useRenderElement)("div",e,{state:{orientation:a},ref:t,props:[{role:"presentation"},o]})});function e6(){return(0,S.useComboboxDerivedItemsContext)().filteredItems}var e8=e.i(196799),e8=e8;let te=e8.Root,tt=e8.Collection,tn=e8.Input,tr=e8.List,ta=e8.Item,ti=e8.Group,to=e8.GroupLabel;e8.Empty;let tl=e8.Status},445991,e=>{"use strict";e.s(["DropdownMenu",()=>i,"DropdownMenuContent",()=>l,"DropdownMenuItem",()=>s,"DropdownMenuTrigger",()=>o]);var t=e.i(843476),n=e.i(451512),r=e.i(628083),a=e.i(296548);let i=e=>(0,t.jsx)(n.Menu.Root,{modal:!1,...e}),o=({className:e,...r})=>(0,t.jsx)(n.Menu.Trigger,{className:(0,a.cn)("group disabled:pointer-events-none rounded-lg overflow-hidden","flex items-center py-0.5 gap-1 text-sm text-gray-950/50 dark:text-white/50 group-hover:text-gray-950/70 dark:group-hover:text-white/70",e),...r}),l=({align:e="start",className:r,side:i="bottom",sideOffset:o=4,_container:l,...s})=>(0,t.jsx)(n.Menu.Portal,{container:l,children:(0,t.jsx)(n.Menu.Positioner,{className:"z-[999] data-anchor-hidden:invisible",align:e,collisionPadding:16,side:i,sideOffset:o,children:(0,t.jsx)(n.Menu.Popup,{style:{textRendering:"geometricPrecision"},className:(0,a.cn)("origin-(--transform-origin) outline-none shadow-xl dark:shadow-none shadow-gray-500/5 dark:shadow-gray-500/5 bg-white dark:bg-gray-950 p-1 relative z-[999] max-h-96 min-w-(--anchor-width) overflow-y-auto rounded-2xl border border-gray-200 dark:border-white/10 text-gray-950/70 dark:text-white/70","data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95","transition-[scale,opacity] duration-100 ease-out motion-reduce:transition-none",r),...s})})}),s=({className:e,isSelected:i,...o})=>(0,t.jsxs)(n.Menu.Item,{"data-active":i||void 0,className:(0,a.cn)("flex items-center justify-between p-2 gap-2 text-sm rounded-xl group hover:bg-background-dark/[0.03] dark:hover:bg-background-light/[0.03] data-highlighted:bg-background-dark/5 dark:data-highlighted:bg-background-light/5 relative w-full cursor-pointer select-none outline-0 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50",i?"text-primary dark:text-primary-light font-medium":"text-gray-800 dark:text-gray-300 hover:text-gray-950/75 dark:hover:text-white/75 data-highlighted:text-gray-950/75 dark:data-highlighted:text-white/75",e),...o,children:[o.children,(0,t.jsx)(r.Check2Icon,{"aria-hidden":"true",className:(0,a.cn)("size-3.5 shrink-0",i?"text-primary dark:text-primary-light":"text-primary/0 dark:text-primary-light/0"),strokeWidth:2.5})]})},631926,(e,t,n)=>{var r=e.r(139088);t.exports=function(){return r.Date.now()}},748891,(e,t,n)=>
7{var r=/\s/;t.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},830364,(e,t,n)=>{var r=e.r(748891),a=/^\s+/;t.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},773759,(e,t,n)=>{var r=e.r(830364),a=e.r(12447),i=e.r(361884),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):l.test(e)?o:+e}},374009,(e,t,n)=>{var r=e.r(12447),a=e.r(631926),i=e.r(773759),o=Math.max,l=Math.min;t.exports=function(e,t,n){var s,u,c,d,p,f,h=0,g=!1,m=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=s,r=u;return s=u=void 0,h=t,d=e.apply(r,n)}function C(e){var n=e-f,r=e-h;return void 0===f||n>=t||n<0||m&&r>=c}function b(){var e,n,r,i=a();if(C(i))return y(i);p=setTimeout(b,(e=i-f,n=i-h,r=t-e,m?l(r,c-n):r))}function y(e){return(p=void 0,x&&s)?v(e):(s=u=void 0,d)}function S(){var e,n=a(),r=C(n);if(s=arguments,u=this,f=n,r){if(void 0===p)return h=e=f,p=setTimeout(b,t),g?v(e):d;if(m)return clearTimeout(p),p=setTimeout(b,t),v(f)}return void 0===p&&(p=setTimeout(b,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?o(i(n.maxWait)||0,t):c,x="trailing"in n?!!n.trailing:x),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=f=u=p=void 0},S.flush=function(){return void 0===p?d:y(a())},S}},385658,(e,t,n)=>{var r=e.r(702922),a=0;t.exports=function(e){var t=++a;return r(e)+t}},594480,579804,585009,700810,334459,992511,238983,414130,66445,260333,433972,835963,22441,35242,767436,133922,685791,584542,e=>{"use strict";e.s(["getDuplicates",()=>t,"getDuplicatesWith2DArrayInOrder",()=>n],594480);let t=e=>{let t=new Set,n=new Set;for(let r of e)t.has(r)?n.add(r):t.add(r);return n},n=(e,t=!1)=>{if(e.length<=1)return new Set;for(let t of e)if(0===t.length)return new Set;let n=new Set,r=Math.min(...e.map(e=>e.length)),a=t?r-1:r;for(let t=0;t<a;t++){let r=e[0]?.[t];if(void 0===r)continue;let a=!0;for(let n=1;n<e.length;n++)if(e[n]?.[t]!==r){a=!1;break}a&&n.add(r)}return n};e.s(["EMPTY_SEARCH_VERSION_SCOPE",()=>i,"getSearchVersionOptions",()=>u,"getSearchVersionScope",()=>s],579804);var r=e.i(427751),a=e.i(752473);let i={kind:"none"},o=["groups",...a.divisions],l=(e,t,n)=>{for(let a of o){let i=(0,r.readObjectArrayProperty)(e,a);if(i)for(let e of i){let r=n;if("products"===a){if("string"!=typeof e.product||!0===e.hidden)continue;r=e.product}if("versions"===a){if("string"!=typeof e.version||!0===e.hidden)continue;if(r){let n=t.versionsByProduct.get(r)??[],a="string"==typeof e.name&&e.name?e.name:e.version;n.some(t=>t.value===e.version)||n.push({value:e.version,label:a}),t.versionsByProduct.set(r,n)}else t.globalVersions.add(e.version)}l(e,t,r)}}},s=e=>{if(!e)return i;let t={globalVersions:new Set(e.global?.versions?.filter(e=>!0!==e.hidden).map(e=>e.version)??[]),versionsByProduct:new Map};return(l(e,t),t.globalVersions.size>0)?{kind:"global",versionValues:t.globalVersions}:t.versionsByProduct.size>0?{kind:"product",versionsByProduct:t.versionsByProduct}:i},u=({scope:e,selectedProduct:t,globalVersions:n})=>"global"===e.kind?n.filter(t=>e.versionValues.has(t.value)):"product"===e.kind?t?e.versionsByProduct.get(t)??[]:[]:n;e.s(["getVersionCrumb",()=>d],585009);var c=e.i(194838);function d(e,t,n){if(!t)return e.metadata?.version||n?.get((0,c.optionallyRemoveLeadingSlash)(e.page))||void 0}e.s(["AltKeyFilledIcon",()=>f],700810);var p=e.i(930733);let f=(0,p.default)("AltKeyFilledIcon",[["path",{d:"M14.209 1.99902C15.8658 1.99902 17.209 3.34217 17.209 4.99902V13.001C17.209 14.6578 15.8658 16.001 14.209 16.001H3.79199C2.13514 16.001 0.791992 14.6578 0.791992 13.001V4.99902C0.791992 3.34217 2.13514 1.99902 3.79199 1.99902H14.209ZM3.28 11.5547H4.351L4.596 10.3997H5.814L6.059 11.5547H7.13L5.863 6.4447H4.533L3.28 11.5547ZM4.771 9.5597L5.03 8.3207C5.06733 8.14337 5.1 7.96837 5.128 7.7957C5.16067 7.62303 5.18633 7.4877 5.205 7.3897C5.22367 7.4877 5.24933 7.62537 5.282 7.8027C5.31933 7.97537 5.35433 8.15037 5.387 8.3277L5.632 9.5597H4.771ZM7.61789 11.5547H10.73289V10.5747H8.66789V6.4447H7.61789ZM12.3748 11.5547H13.4248V7.4247H14.7198V6.4447H11.0798V7.4247H12.3748Z",fill:"currentColor"}]],"filled");
7e.s(["EscKeyFilledIcon",()=>h],334459);let h=(0,p.default)("EscKeyFilledIcon",[["path",{d:"M14.209 1.99902C15.8658 1.99902 17.209 3.34217 17.209 4.99902V13.001C17.209 14.6578 15.8658 16.001 14.209 16.001H3.79199C2.13514 16.001 0.791992 14.6578 0.791992 13.001V4.99902C0.791992 3.34217 2.13514 1.99902 3.79199 1.99902H14.209ZM8.88867 6.375C8.54334 6.375 8.24419 6.43531 7.99219 6.55664C7.7402 6.67797 7.54429 6.85121 7.4043 7.0752C7.26911 7.29438 7.20124 7.55317 7.20117 7.85156C7.20117 8.2529 7.32059 8.59402 7.55859 8.87402C7.80124 9.14929 8.13933 9.33875 8.57324 9.44141L9.0918 9.55957C9.25966 9.59692 9.39012 9.67007 9.4834 9.77734C9.57662 9.88464 9.62305 10.0129 9.62305 10.1621C9.62302 10.3347 9.56054 10.4704 9.43457 10.5684C9.31332 10.6663 9.14291 10.7148 8.92383 10.7148C8.69516 10.7148 8.51229 10.6664 8.37695 10.5684C8.24642 10.4658 8.18171 10.3278 8.18164 10.1553H7.13184C7.13188 10.4538 7.20407 10.7124 7.34863 10.9316C7.4933 11.151 7.69884 11.322 7.96484 11.4434C8.23072 11.5645 8.54326 11.625 8.90234 11.625C9.26161 11.625 9.5717 11.5615 9.83301 11.4355C10.0989 11.3096 10.3046 11.1328 10.4492 10.9043C10.5985 10.6757 10.6738 10.4118 10.6738 10.1133C10.6738 9.69795 10.5566 9.35682 10.3232 9.09082C10.0899 8.82025 9.74651 8.63389 9.29395 8.53125L8.74805 8.40527C8.58951 8.36792 8.46557 8.29792 8.37695 8.19531C8.29297 8.08798 8.25098 7.95889 8.25098 7.80957C8.25107 7.64182 8.30492 7.51339 8.41211 7.4248C8.51938 7.33153 8.67354 7.28521 8.87402 7.28516C9.08857 7.28516 9.25226 7.33157 9.36426 7.4248C9.48082 7.51806 9.53896 7.64644 9.53906 7.80957H10.5898C10.5897 7.37111 10.4349 7.02318 10.127 6.7666C9.82371 6.50557 9.41095 6.37504 8.88867 6.375ZM12.7773 6.375C12.4368 6.37504 12.1384 6.44067 11.8818 6.57129C11.6252 6.69726 11.424 6.87395 11.2793 7.10254C11.1393 7.33121 11.0693 7.60237 11.0693 7.91504V10.085C11.0693 10.393 11.1393 10.6641 11.2793 10.8975C11.4239 11.126 11.6253 11.3049 11.8818 11.4355C12.1384 11.5615 12.4368 11.625 12.7773 11.625C13.1227 11.625 13.4218 11.5615 13.6738 11.4355C13.9302 11.305 14.1286 11.1259 14.2686 10.8975C14.4132 10.6641 14.4854 10.393 14.4854 10.085H13.4355C13.4355 10.2855 13.3773 10.4417 13.2607 10.5537C13.1487 10.661 12.9873 10.7148 12.7773 10.7148C12.5675 10.7148 12.4047 10.6609 12.2881 10.5537C12.1761 10.4417 12.1201 10.2856 12.1201 10.085V7.91504C12.1201 7.70971 12.1761 7.55362 12.2881 7.44629C12.4047 7.33906 12.5675 7.28521 12.7773 7.28516C12.9873 7.28516 13.1487 7.33896 13.2607 7.44629C13.3773 7.55362 13.4355 7.70981 13.4355 7.91504H14.4854C14.4854 7.60237 14.4132 7.33121 14.2686 7.10254C14.1286 6.87413 13.9302 6.69721 13.6738 6.57129C13.4218 6.44062 13.1227 6.375 12.7773 6.375ZM3.51562 11.5547H6.66504V10.6592H4.54395V9.38477H6.41992V8.48926H4.54395V7.34082H6.66504V6.44531H3.51562V11.5547Z",fill:"currentColor"}]],"filled");e.s(["OptionKeyFilledIcon",()=>g],992511);let g=(0,p.default)("OptionKeyFilledIcon",[["path",{d:"M13.1768 2.00293C14.7387 2.00319 16.0059 3.27002 16.0059 4.83203V13.1758C16.0057 14.7377 14.7386 16.0046 13.1768 16.0049H4.83301C3.27092 16.0049 2.00308 14.7378 2.00293 13.1758V4.83203C2.00293 3.26985 3.27083 2.00293 4.83301 2.00293H13.1768ZM5.57715 5.15918C5.10771 5.15918 4.72754 5.53935 4.72754 6.00879C4.72763 6.47816 5.10776 6.8584 5.57715 6.8584H6.02344C6.45227 6.8584 6.70715 6.86042 6.89648 6.88086C7.06428 6.89901 7.10069 6.92555 7.1084 6.93066C7.11607 6.9357 7.15529 6.95893 7.23828 7.10645C7.33158 7.27236 7.43283 7.50571 7.60156 7.89941L8.83594 10.7773C8.9904 11.1377 9.1316 11.4711 9.28027 11.7354C9.43899 12.0174 9.64147 12.2892 9.95508 12.4961C10.2689 12.703 10.599 12.7826 10.9209 12.8174C11.2224 12.8499 11.5844 12.8486 11.9766 12.8486H12.4229C12.8922 12.8486 13.2722 12.4683 13.2725 11.999C13.2725 11.5296 12.8923 11.1484 12.4229 11.1484H11.9766C11.5477 11.1484 11.2928 11.1474 11.1035 11.127C10.9369 11.1089 10.8997 11.0825 10.8916 11.0771C10.8841 11.0722 10.8449 11.0493 10.7617 10.9014C10.6684 10.7355 10.5672 10.5021 10.3984 10.1084L9.16406 7.22949C9.00969 6.86928 8.86834 6.53665 8.71973 6.27246C8.56095 5.99025 8.35879 5.71774 8.04492 5.51074C7.73106 5.30378 7.40101 5.22522 7.0791 5.19043C6.77757 5.15787 6.41559 5.15918 6.02344 5.15918H5.57715ZM10.4238 5.15918C9.95439 5.15918 9.57324 5.53935 9.57324 6.00879C9.57333 6.47816 9.95444 6.8584 10.4238 6.8584H12.4229C12.8922 6.8584 13.2724 6.47816 13.2725 6.00879C13.2725 5.53935 12.8923 5.15918 12.4229 5.15918H10.4238Z",fill:"currentColor"}]],"filled");
7e.s(["ReturnKeyFilledIcon",()=>m],238983);let m=(0,p.default)("ReturnKeyFilledIcon",[["path",{d:"M14.25 2H3.75C2.233 2 1 3.233 1 4.75V13.25C1 14.767 2.233 16 3.75 16H14.25C15.767 16 17 14.767 17 13.25V4.75C17 3.233 15.767 2 14.25 2ZM14 9.25C14 10.215 13.215 11 12.25 11H6.561L7.281 11.72C7.574 12.013 7.574 12.488 7.281 12.781C7.135 12.927 6.943 13.001 6.751 13.001C6.559 13.001 6.367 12.928 6.221 12.781L4.221 10.781C3.928 10.488 3.928 10.013 4.221 9.72L6.221 7.72C6.514 7.427 6.989 7.427 7.282 7.72C7.575 8.013 7.575 8.488 7.282 8.781L6.562 9.501H12.251C12.389 9.501 12.501 9.389 12.501 9.251V7.251C12.501 7.113 12.389 7.001 12.251 7.001H10.751C10.337 7.001 10.001 6.665 10.001 6.251C10.001 5.837 10.337 5.501 10.751 5.501H12.251C13.216 5.501 14.001 6.286 14.001 7.251V9.251L14 9.25Z",fill:"currentColor"}]],"filled");e.s(["Sparkle2FilledIcon",()=>x],414130);let x=(0,p.default)("Sparkle2FilledIcon",[["path",{d:"M16.525 6.05302L13.245 4.75602L11.947 1.47502C11.72 0.903021 10.779 0.903021 10.552 1.47502L9.25402 4.75602L5.97402 6.05302C5.68802 6.16602 5.49902 6.44302 5.49902 6.75002C5.49902 7.05702 5.68702 7.33402 5.97402 7.44702L9.25402 8.74402L10.552 12.025C10.665 12.311 10.942 12.499 11.249 12.499C11.556 12.499 11.833 12.311 11.946 12.025L13.244 8.74402L16.524 7.44702C16.81 7.33402 16.999 7.05702 16.999 6.75002C16.999 6.44302 16.812 6.16602 16.525 6.05302Z",fill:"currentColor"}],["path",{rule:"evenodd",d:"M4.75 9.5C5.09415 9.5 5.39414 9.73422 5.47761 10.0681L5.96847 12.0315L7.9319 12.5224C8.26578 12.6059 8.5 12.9058 8.5 13.25C8.5 13.5942 8.26578 13.8941 7.9319 13.9776L5.96847 14.4685L5.47761 16.4319C5.39414 16.7658 5.09415 17 4.75 17C4.40585 17 4.10586 16.7658 4.02239 16.4319L3.53153 14.4685L1.5681 13.9776C1.23422 13.8941 1 13.5942 1 13.25C1 12.9058 1.23422 12.6059 1.5681 12.5224L3.53153 12.0315L4.02239 10.0681C4.10586 9.73422 4.40585 9.5 4.75 9.5Z",fill:"currentColor"}]],"filled");e.s(["SquareArrowDownFilledIcon",()=>v],66445);let v=(0,p.default)("SquareArrowDownFilledIcon",[["path",{d:"M13.25 2H4.75C3.233 2 2 3.233 2 4.75V13.25C2 14.767 3.233 16 4.75 16H13.25C14.767 16 16 14.767 16 13.25V4.75C16 3.233 14.767 2 13.25 2ZM12.03 10.28L9.53 12.78C9.384 12.926 9.192 13 9 13C8.808 13 8.616 12.927 8.47 12.78L5.97 10.28C5.677 9.987 5.677 9.512 5.97 9.219C6.263 8.926 6.738 8.926 7.031 9.219L8.251 10.439V5.75C8.251 5.336 8.587 5 9.001 5C9.415 5 9.751 5.336 9.751 5.75V10.439L10.971 9.219C11.264 8.926 11.739 8.926 12.032 9.219C12.325 9.512 12.325 9.987 12.032 10.28H12.03Z",fill:"currentColor"}]],"filled");e.s(["SquareArrowUpFilledIcon",()=>C],260333);let C=(0,p.default)("SquareArrowUpFilledIcon",[["path",{d:"M13.25 2H4.75C3.233 2 2 3.233 2 4.75V13.25C2 14.767 3.233 16 4.75 16H13.25C14.767 16 16 14.767 16 13.25V4.75C16 3.233 14.767 2 13.25 2ZM12.03 8.78C11.884 8.926 11.692 9 11.5 9C11.308 9 11.116 8.927 10.97 8.78L9.75 7.56V12.249C9.75 12.663 9.414 12.999 9 12.999C8.586 12.999 8.25 12.663 8.25 12.249V7.561L7.03 8.781C6.737 9.074 6.262 9.074 5.969 8.781C5.676 8.488 5.676 8.013 5.969 7.72L8.469 5.22C8.762 4.927 9.237 4.927 9.53 5.22L12.03 7.72C12.323 8.013 12.323 8.488 12.03 8.781V8.78Z",fill:"currentColor"}]],"filled");e.s(["VShapedArrowRightIcon",()=>b],433972);let b=(0,p.default)("VShapedArrowRightIcon",[["path",{d:"M7.5 2.75L11.75 9L7.5 15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");e.s(["useAssistantEnterAnalytics",()=>k],835963);var y=e.i(859465),S=e.i(91557),I=e.i(865420),E=e.i(271645);let k=()=>{let e=(0,E.useContext)(y.AssistantUiContext),{subdomain:t}=(0,E.useContext)(S.DeploymentMetadataContext),n=(0,I.useAnalyticsContext)("docs.assistant.enter");return(0,E.useCallback)((r,a)=>{n({subdomain:t,assistantUi:e,query:r,entryPoint:a})},[t,e,n])};e.s(["generateBreadcrumbs",()=>w],22441);let w=(e,t,n,r)=>{let a="title"in e&&"string"==typeof e.title?e.title:void 0,i="breadcrumbs"in e&&Array.isArray(e.breadcrumbs)?e.breadcrumbs:void 0;if(!i)return[t];if(n)return(i.at(-1)===a?i.slice(0,-1):i).concat([t]);if(i.at(-1)!==a)return i.concat([t]).slice(-2);{let e=i.slice(0,-1),t=e.filter(e=>!r?.has(e));return t.length>0?t:e}};e.s(["focusAssistantPageInput",()=>R],35242);var A=e.i(111048);function R(){let e=document.querySelector("[data-assistant-page]"),t=e?.querySelector(`#${A.Ids.ChatAssistantTextArea}`);return t instanceof HTMLTextAreaElement&&(t.focus(),t.setSelectionRange(t.value.length,t.value.length),!0)}e.s(["SearchResultIcon",()=>L],685791);var O=e.i(843476);let N=(0,p.default)("HashtagIcon",[["path",{d:"M3.75 6.25H15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 11.75H14.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M7.633 2.75L5.289 15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M12.711 2.75L10.367 15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");e.s(["FileContentIcon",()=>P],767436);let P=(0,p.default)("FileContentIcon",[["path",{d:"M5.75 6.75H7.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M5.75 9.75H12.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M5.75 12.75H12.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 14.25V3.75C2.75 2.645 3.645 1.75 4.75 1.75H10.336C10.601 1.75 10.856 1.855 11.043 2.043L14.957 5.957C15.145 6.145 15.25 6.399 15.25 6.664V14.25C15.25 15.355 14.355 16.25 13.25 16.25H4.75C3.645 16.25 2.75 15.355 2.75 14.25Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M15.16 6.24999H11.75C11.198 6.24999 10.75 5.80199 10.75 5.24999V1.85199",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");e.s(["SquareTerminalIcon",()=>M],133922);let M=(0,p.default)("SquareTerminalIcon",[["path",{d:"M13.25 2.75H4.75C3.64543 2.75 2.75 3.64543 2.75 4.75V13.25C2.75 14.3546 3.64543 15.25 4.75 15.25H13.25C14.3546 15.25 15.25 14.3546 15.25 13.25V4.75C15.25 3.64543 14.3546 2.75 13.25 2.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9.75 12.25H12.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M5.75 12.25L8.25 9.75L5.75 7.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var T=e.i(296548),j=e.i(568258);let L=({type:e,icon:t})=>{let n="text-gray-500 dark:text-gray-400 h-4 w-4 shrink-0";return"api-playground"===e?(0,O.jsx)(M,{className:n}):"section"===e?(0,O.jsx)(N,{className:n}):t?(0,O.jsx)(j.ComponentIcon,{icon:t,iconType:"regular",className:(0,T.cn)(n,"bg-gray-500 dark:bg-gray-400"),overrideColor:!0}):(0,O.jsx)(P,{className:n})};e.s(["SearchButton",()=>F],584542);var V=e.i(343590),D=e.i(206558),H=e.i(535345),_=e.i(477222);let F=(0,E.forwardRef)(function({className:e,children:t,id:n,...r},a){let i=(0,V.useSelectedLocale)(),o=(0,H.useActionKey)(),{onSearchModalOpen:l}=(0,E.useContext)(_.SearchContext);return D.SEARCH_REMOVED?null:(0,O.jsx)("button",{type:"button",...r,onClick:l,className:e,id:n,"aria-label":i["aria.openSearch"],ref:a,children:"function"==typeof t?t({actionKey:o}):t})})},346089,e=>{"use strict";e.s(["Sparkle3Icon",()=>t]);let t=(0,e.i(930733).default)("Sparkle3Icon",[["path",{d:"M5.65799 2.99L4.39499 2.569L3.97399 1.306C3.83699 0.898 3.16199 0.898 3.02499 1.306L2.60399 2.569L1.34099 2.99C1.13699 3.058 0.998993 3.249 0.998993 3.464C0.998993 3.679 1.13699 3.87 1.34099 3.938L2.60399 4.359L3.02499 5.622C3.09299 5.826 3.28499 5.964 3.49999 5.964C3.71499 5.964 3.90599 5.826 3.97499 5.622L4.39599 4.359L5.65899 3.938C5.86299 3.87 6.00099 3.679 6.00099 3.464C6.00099 3.249 5.86199 3.058 5.65799 2.99Z",fill:"currentColor",stroke:"none"}],["path",{d:"M9.5 2.75L11.412 7.587L16.25 9.5L11.412 11.413L9.5 16.25L7.587 11.413L2.75 9.5L7.587 7.587L9.5 2.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},477222,311844,e=>{"use strict";e.s(["ChatAssistantContext",()=>ec,"DEBOUNCE_TIME_IN_MS",()=>el,"SearchContext",()=>ed,"SearchProvider",()=>ep],477222);var t=e.i(843476),n=e.i(915476),r=e.i(721999),a=e.i(859465),i=e.i(91557),o=e.i(343590),l=e.i(206558),s=e.i(647908),u=e.i(535345),c=e.i(865420),d=e.i(994947),p=e.i(395671),f=e.i(308735),h=e.i(810595),g=e.i(888076),m=e.i(202225),x=e.i(690236),v=e.i(268532),C=e.i(28760),b=e.i(111048),y=e.i(674987),S=e.i(730275),I=e.i(174716),E=e.i(445991),k=e.i(152537),w=e.i(594480),A=e.i(637054),R=e.i(5798
704),O=e.i(585009),N=e.i(882890),P=e.i(521518),M=e.i(289264),T=e.i(700810),j=e.i(448205),L=e.i(334459),V=e.i(872866),D=e.i(992511),H=e.i(238983),_=e.i(414130),F=e.i(66445),q=e.i(260333),B=e.i(433972),K=e.i(137829),z=e.i(296548),$=e.i(374009),U=e.i(385658),W=e.i(618566),Z=e.i(271645),G=e.i(39839),Y=e.i(742977),J=e.i(835963),X=e.i(22441),Q=e.i(35242),ee=e.i(685791),et=e.i(584542);e.s(["DesktopSearchEntry",()=>ei,"hasSearchEntry",()=>ea],311844);var en=e.i(772803),er=e.i(346089);function ea(e){return!l.SEARCH_REMOVED||e}function ei({className:e,searchButtonClassName:n,includeAskAssistantText:r,inlineAskAssistantKbd:a,searchPromptOverride:i,kbdClassName:l,askAssistantTextClassName:s,promptClassName:c,aiButtonClassName:d,compact:p}){let f=(0,o.useSelectedLocale)(),{searchPrompt:h,hasChatPermissions:g}=(0,Z.useContext)(ed),{onChatSheetToggle:m}=(0,Z.useContext)(ec),x=i??h,v=(0,u.useActionKey)(),C=(0,Z.useMemo)(()=>v[0]?.toUpperCase().trim()??"⌘",[v]);if(!ea(g))return null;let y=(0,t.jsx)(V.MagnifierIcon,{"aria-hidden":"true",focusable:"false",className:"size-4 min-w-4 flex-none text-gray-700 group-hover/search:text-gray-800 dark:text-gray-400 dark:group-hover/search:text-gray-200"}),S=(0,t.jsx)(er.Sparkle3Icon,{"aria-hidden":"true",focusable:"false",className:(0,z.cn)("size-4","shrink-0 text-gray-700 group-hover/ai:text-gray-800 dark:text-gray-400 dark:group-hover/ai:text-gray-200")}),I=(e,n)=>(0,t.jsxs)(en.TooltipContent,{size:"md",side:"bottom",sideOffset:8,className:"flex gap-2 items-center bg-white opacity-100 dark:bg-background-dark font-normal shadow-xl shadow-gray-500/5 dark:shadow-gray-500/5 rounded-xl",children:[(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-white/70 whitespace-nowrap",children:e}),(0,t.jsxs)("span",{className:"flex items-center gap-1 text-sm text-gray-500 dark:text-white/50 whitespace-nowrap",children:[(0,t.jsx)("span",{className:"text-gray-500 dark:text-white/70 min-w-5 h-5 px-1 bg-gray-100 dark:bg-white/15 flex items-center justify-center rounded-md font-mono",children:C}),(0,t.jsx)("span",{className:"text-gray-500 dark:text-white/70 size-5 bg-gray-100 dark:bg-white/15 flex items-center justify-center rounded-md font-mono text-xs",children:n})]})]});return(0,t.jsxs)("div",{className:(0,z.cn)("relative hidden lg:flex items-center flex-1 z-20",g?p?"gap-1.5":"gap-2.5":"justify-center",e),children:[p?(0,t.jsx)(en.TooltipProvider,{children:(0,t.jsxs)(en.Tooltip,{children:[(0,t.jsx)(en.TooltipTrigger,{render:(0,t.jsx)("div",{className:"inline-flex",children:(0,t.jsx)(et.SearchButton,{className:(0,z.cn)("group/search flex pointer-events-auto items-center justify-center h-9 text-gray-500 dark:text-white/50 bg-background-light dark:bg-background-dark dark:brightness-[1.1] dark:ring-1 dark:hover:brightness-[1.25] ring-1 ring-gray-400/30 hover:ring-gray-600/30 dark:ring-gray-600/30 dark:hover:ring-gray-500/30 rounded-xl",n,"w-9 p-0 min-w-9"),id:b.Ids.SearchBarEntry,children:y})})}),I(x,"K")]})}):(0,t.jsx)(et.SearchButton,{className:(0,z.cn)("group/search flex dark:bg-gray-900 pointer-events-auto rounded-xl w-full items-center text-sm leading-6 h-9 pl-3.5 pr-3 text-gray-500 dark:text-white/50 bg-background-light dark:bg-background-dark dark:brightness-[1.1] dark:ring-1 dark:hover:brightness-[1.25] ring-1 ring-gray-400/30 hover:ring-gray-600/30 dark:ring-gray-600/30 dark:hover:ring-gray-500/30 justify-between truncate gap-2",n),id:b.Ids.SearchBarEntry,children:({actionKey:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[y,(0,t.jsx)("div",{className:(0,z.cn)("truncate min-w-0",c),children:x})]}),e&&(0,t.jsxs)("span",{className:(0,z.cn)("flex-none text-xs font-semibold",l),children:[e[0],"K"]})]})}),g&&(()=>{if(p)return(0,t.jsx)(en.TooltipProvider,{children:(0,t.jsxs)(en.Tooltip,{children:[(0,t.jsx)(en.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",className:(0,z.cn)("group/ai flex-none hidden lg:flex items-center justify-center h-9 rounded-xl bg-background-light dark:bg-background-dark dark:brightness-[1.1] dark:ring-1 dark:hover:brightness-[1.25] ring-1 ring-gray-400/30 hover:ring-gray-600/30 dark:ring-gray-600/30 dark:hover:ring-gray-500/30",n,d,"w-9 p-0 min-w-9"),onClick:()=>m({entryPoint:"topbar"}),id:b.Ids.AssistantEntry,"aria-label":f["aria.toggleAssistantPanel"],children:S})}),I(f.askAssistant,"I")]})});let e=(0,t.jsxs)("button",{type:"button",className:(0,z.cn)("group/ai flex-none hidden lg:flex items-center justify-center gap-1.5 pl-3 pr-3.5 h-9 rounded-xl bg-background-light dark:bg-background-dark dark:brightness-[1.1] dark:ring-1 dark:hover:brightness-[1.25] ring-1 ring-gray-400/30 hover:ring-gray-600/30 dark:ring-gray-600/30 dark:hover:ring-gray-500/30",!r&&!a&&"w-9 p-0",
7n,d),onClick:()=>m({entryPoint:"topbar"}),id:b.Ids.AssistantEntry,"aria-label":f["aria.toggleAssistantPanel"],children:[S,r&&(0,t.jsx)("span",{className:(0,z.cn)("text-sm text-gray-500 dark:text-white/50 whitespace-nowrap",s),children:f.askAssistant}),a&&(0,t.jsxs)("span",{className:(0,z.cn)("flex-none text-xs font-semibold",l),children:[C,"I"]})]});return a?e:(0,t.jsx)(en.TooltipProvider,{children:(0,t.jsxs)(en.Tooltip,{children:[(0,t.jsx)(en.TooltipTrigger,{render:e}),(0,t.jsxs)(en.TooltipContent,{size:"md",side:r?"bottom":"right",sideOffset:8,className:"flex gap-2 items-center bg-white opacity-100 dark:bg-background-dark font-normal shadow-xl shadow-gray-500/5 dark:shadow-gray-500/5 rounded-xl",children:[(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-white/70 whitespace-nowrap",children:"Toggle assistant panel"}),(0,t.jsxs)("span",{className:"flex items-center gap-1 text-sm text-gray-500 dark:text-white/50 whitespace-nowrap",children:[(0,t.jsx)("p",{className:"text-gray-500 dark:text-white/70 min-w-5 h-5 px-1 bg-gray-100 dark:bg-white/15 flex items-center justify-center rounded-md font-mono",children:C}),(0,t.jsx)("p",{children:"+"}),(0,t.jsx)("span",{className:"text-gray-500 dark:text-white/70 size-5 bg-gray-100 dark:bg-white/15 flex items-center justify-center rounded-md font-mono text-xs",children:"I"})]})]})]})})})()]})}let eo=({value:e,href:n,titleHtml:r,crumbsHtml:a,contentHtml:i,iconType:o,icon:l,method:s,onLinkClick:u})=>(0,t.jsxs)(S.AutocompleteItem,{value:e,"data-component-part":"search-item",onClick:u,render:(0,t.jsx)("a",{href:n,tabIndex:-1}),className:"flex items-start gap-2 px-2 py-1.5 rounded-[calc(var(--rounded-search,1.25rem)-0.375rem)] cursor-pointer outline-hidden focus:outline-hidden! focus-visible:outline-hidden! last:mb-2 data-highlighted:bg-black/[0.03] dark:data-highlighted:bg-white/5 forced-colors:data-highlighted:outline forced-colors:data-highlighted:outline-1",children:[(0,t.jsx)("span",{"data-component-part":"search-item-icon",className:"flex h-5 items-center shrink-0","aria-hidden":"true",children:(0,t.jsx)(ee.SearchResultIcon,{type:o,icon:l})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[s&&(0,t.jsx)(N.MethodPill,{method:s,className:"text-xs font-mono rounded px-1 py-0"}),(0,t.jsx)("span",{"data-component-part":"search-item-title",className:"truncate text-sm font-medium leading-5 tracking-[-0.1px] text-gray-950 dark:text-white [&_mark]:bg-transparent [&_mark]:text-primary dark:[&_mark]:text-primary-light [&_b]:font-medium",dangerouslySetInnerHTML:{__html:r}})]}),a.length>0&&(0,t.jsx)("span",{"data-component-part":"search-item-breadcrumbs",className:"flex items-center gap-1 min-w-0 text-xs font-normal leading-4 text-gray-500 dark:text-gray-400 [&_mark]:bg-transparent [&_mark]:text-primary dark:[&_mark]:text-primary-light [&_b]:font-normal",children:a.map((e,n)=>(0,t.jsxs)("span",{className:"flex items-center gap-1 min-w-0",children:[n>0&&(0,t.jsx)(B.VShapedArrowRightIcon,{className:"size-2.5 shrink-0",strokeWidth:2,"aria-hidden":"true"}),(0,t.jsx)("span",{className:"truncate",dangerouslySetInnerHTML:{__html:e}})]},n))}),i&&(0,t.jsx)("span",{"data-component-part":"search-item-content",className:"truncate text-xs font-normal leading-4 text-gray-500 dark:text-gray-400 [&_mark]:bg-transparent [&_mark]:text-primary dark:[&_mark]:text-primary-light [&_b]:font-normal",dangerouslySetInnerHTML:{__html:i}})]})]}),el=20,es="_mintlify-ask-ai-assistant",eu=({label:e,allLabel:n,options:r,selectedValue:a,onValueChange:i})=>{let[o,l]=(0,Z.useState)(!1),s=r.find(e=>e.value===a),u=void 0!==s;return(0,t.jsxs)(E.DropdownMenu,{open:o,onOpenChange:l,children:[(0,t.jsxs)(E.DropdownMenuTrigger,{"data-component-part":"search-filter-trigger","aria-label":`${e} search filter`,className:(0,z.cn)("h-8 shrink-0 rounded-[10px] border border-gray-200 bg-background-light px-2.5 py-1.5 text-sm font-medium leading-5 tracking-[-0.1px] text-gray-950! transition-colors hover:bg-gray-950/[0.03] dark:border-white/10 dark:bg-background-dark dark:text-white! dark:hover:bg-white/[0.03]",o&&"bg-gray-950/[0.05] dark:bg-white/[0.05]",u&&"border-gray-950 bg-gray-950/[0.03] dark:border-white dark:bg-white/[0.05]"),children:[(0,t.jsx)("span",{className:"max-w-40 truncate",children:s?.label??e}),u?(0,t.jsx)("span",{"aria-hidden":"true",className:(0,z.cn)("relative ml-0.5 flex size-4 shrink-0 items-center justify-center rounded-full text-gray-500 hover:bg-gray-950/10 hover:text-gray-950 dark:text-gray-400 dark:hover:bg-white/10 dark:hover:text-white","after:absolute after:-inset-1 after:rounded-full after:content-[''] after:select-none"),onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),i(void 0),l(!1)},children:(0,t.jsx)(K.XmarkIcon,{className:"size-3"})}):(0,t.jsx)(j.ChevronDownIcon,{"aria-hidden":"true",className:(0,z.cn)("ml-0.5 text-gray-600 dark:text-gray-400 size-3.5 shrink-0 transition-transform",o&&"rotate-180 duration-75")})]}),(0,t.jsxs)(E.DropdownMenuContent,{"data-component-part":"search-filter-content",sideOffset:8,className:"w-60 p-1.5 outline-hidden focu
7s:outline-hidden focus-visible:outline-hidden ring-1 ring-gray-950/[0.06] dark:ring-white/[0.08]",children:[(0,t.jsx)(E.DropdownMenuItem,{isSelected:!u,onClick:()=>i(void 0),className:(0,z.cn)("h-9 px-2",!u&&"text-gray-800 dark:text-gray-300 [&_svg]:text-gray-500 dark:[&_svg]:text-gray-400"),children:(0,t.jsx)("span",{className:"truncate",children:n})}),r.map(e=>(0,t.jsx)(E.DropdownMenuItem,{isSelected:e.value===a,onClick:()=>i(e.value),className:(0,z.cn)("h-9 px-2",e.value===a&&"text-gray-800 dark:text-gray-300 [&_svg]:text-gray-500 dark:[&_svg]:text-gray-400"),children:(0,t.jsx)("span",{className:"truncate",children:e.label})},e.value))]})]})},ec=(0,Z.createContext)({isChatSheetOpen:!1,shouldFocusChatSheet:!1,entryPoint:void 0,onChatSheetToggle:()=>{},setShouldFocusChatSheet:e=>{}}),ed=(0,Z.createContext)({onSearchModalOpen:()=>{},hasChatPermissions:!1,isLoggedInCli:!1,assistantConfig:void 0,searchPrompt:"Search...",starterQuestions:void 0});function ep({subdomain:e,hasChatPermissions:E=!1,isLoggedInCli:N=!1,assistantConfig:j,starterQuestions:B,children:K}){let ee=(0,W.useRouter)(),{prefetch:et}=(0,Y.usePrefetch)(),{docsConfig:en}=(0,Z.useContext)(i.DocsConfigContext),er="assistant-ui-v2"===(0,Z.useContext)(a.AssistantUiContext),{searchSettings:ea}=(0,Z.useContext)(i.DeploymentMetadataContext),{currentPathVersion:ei,selectedVersion:ep}=(0,Z.useContext)(o.NavigationContext),{navWithMetadata:ef,divisions:eh,versionsDict:eg}=(0,v.useResolvedNav)(),em=ea?.unversioned?void 0:ei??ep,ex=ea?.isFiltersEnabled===!0,ev=ea?.showContentSnippets===!0,{search:eC,searchOrAskQuestion:eb,askAssistant:ey,loginToCliToEnableSearch:eS,searchResultsCount:eI,canYouTellMeAbout:eE,recentSearches:ek,searchFooterSelect:ew,searchFooterOpen:eA,searchFooterClose:eR,"aria.searchKeyboardHints":eO}=(0,o.useSelectedLocale)(),eN="⌘"===(0,u.useActionKey)()[0],eP=en?.search?.prompt??eC,eM=en?.search?.prompt??(E?eb:eC),[eT,ej]=(0,Z.useState)(!1),[eL,eV]=(0,m.useLocalStorage)(n.ASSISTANT_OPEN_KEY,!1),[eD,eH]=(0,Z.useState)(!1),e_=er?"(max-width: 639px)":"(max-width: 1024px)",eF=(0,G.useMediaQuery)(e_),eq=(0,G.useMediaQuery)("(max-width: 1024px)"),[eB,eK]=(0,Z.useState)(!1),ez=eB?2:4;(0,Z.useEffect)(()=>{eK(eq)},[eq]),(0,Z.useEffect)(()=>{E||eV(!1)},[E,eV]);let e$=!!E&&(eF?eD:eL),eU=(0,Z.useCallback)(e=>{window.matchMedia(e_).matches?eH(e):eV(e)},[eV,e_]),[eW,eZ]=(0,Z.useState)(!1),[eG,eY]=(0,Z.useState)(void 0),[eJ,eX]=(0,Z.useState)(""),[eQ,e0]=(0,Z.useState)([]),[e1,e5]=(0,Z.useState)(""),[e2,e7]=(0,Z.useState)(!1),[e9,e3]=(0,Z.useState)(),[e4,e6]=(0,Z.useState)(),e8=(0,c.useAnalyticsContext)("docs.search.open"),te=(0,c.useAnalyticsContext)("docs.search.query"),tt=(0,c.useAnalyticsContext)("docs.search.result_click"),tn=(0,c.useAnalyticsContext)("docs.search.close"),tr=(0,J.useAssistantEnterAnalytics)(),{append:ta,ensureCaptchaScriptLoaded:ti}=(0,p.useAssistantShared)(),{recentSearches:to,addRecentSearch:tl}=(0,x.useRecentSearches)(),{search:ts}=(0,C.useSearch)(),tu=(0,A.isCli)()&&!N,tc=eh.products,td=eh.versions,tp=ex&&tc.length>0,tf=(0,Z.useMemo)(()=>tc.map(e=>({value:e.product,label:e.name??e.product})),[tc]),[th,tg]=(0,Z.useState)(),[tm,tx]=(0,Z.useState)(),tv=(0,Z.useMemo)(()=>ex?(0,R.getSearchVersionScope)(ef):R.EMPTY_SEARCH_VERSION_SCOPE,[ex,ef]),tC=(0,Z.useMemo)(()=>td.map(e=>({value:e.version,label:e.name??e.version})),[td]),tb=(0,R.getSearchVersionOptions)({scope:tv,selectedProduct:th,globalVersions:tC}),ty=ex&&tb.length>0&&("product"===tv.kind||!ea?.unversioned),tS=!tu&&(tp||ty),tI=eJ.trim(),tE=!tI&&to.length>0,tk=eQ.length>0,tw=(0,Z.useMemo)(()=>{if(ex)return{product:tp&&th||void 0,version:ty&&tm||void 0}},[ex,tp,ty,th,tm]),tA=(0,Z.useCallback)(e=>(0,O.getVersionCrumb)(e,ex?tm:em,eg),[ex,em,tm,eg]),tR=(0,Z.useRef)(null),tO=(0,Z.useMemo)(()=>(0,$.default)(()=>{let e=tR.current;e?.searchId&&e.query&&te({searchId:e.searchId,query:e.query,numHits:e.numHits,results:e.results,filtersApplied:e.filtersApplied,product:e.product,version:e.version})},500),[te]);(0,f.useChatPayloadHighlight)(),(0,d.useAssistantNavigation)((0,Z.useCallback)(()=>{eF&&eU(!1)},[eF,eU]));let tN=(0,Z.useCallback)((e,t)=>{let n=new URLSearchParams(window.location.search);t?n.set(e,t):n.delete(e);let r=n.toString(),a=`${window.location.pathname}${r?`?${r}`:""}`;return a!==`${window.location.pathname}${window.location.search}`&&window.history.replaceState(window.history.state,"",a),r},[]),tP=(0,Z.useMemo)(()=>(0,$.default)(e=>{tN("search",e||"")},500),[tN]),tM=(0,Z.useCallback)(()=>{"algolia"!==e&&(ej(!0),tN("search",""))},[e,tN]),tT=(0,Z.useCallback)(()=>{"algolia"!==e&&ej(e=>
7(e?(tN("search",null),tP.cancel()):tN("search",""),!e))},[e,tN,tP]),tj=(0,Z.useCallback)(()=>{ej(!1),tN("search",null),tO.cancel(),tP.cancel(),tn({searchId:tR.current?.searchId,query:eJ,numHits:eQ.length}).catch(console.error),tR.current=null},[tN,tO,tP,tn,eJ,eQ.length]),tL=(0,Z.useCallback)(e=>{if(E){if((0,Q.focusAssistantPageInput)()){e?.entryPoint&&eY(e.entryPoint);return}eU(t=>{let n=!t;return eZ(n),t&&tN("assistant",null),n&&eY(e?.entryPoint),n})}},[E,eU,tN]);(0,g.useKeyboardShortcut)({key:"k",callback:tT,isDisabled:l.SEARCH_REMOVED}),(0,g.useKeyboardShortcut)({key:"i",callback:()=>tL({entryPoint:"keyboard"}),isDisabled:!E}),(0,Z.useEffect)(()=>{eT&&e8({}).catch(console.error)},[eT,e8]),(0,s.useIOSScrollLock)(eT);let tV=(0,Z.useMemo)(()=>(0,$.default)(async(t,n)=>{eX(t);let r=t.trim();if(!r||null==e){e0([]),e5(""),tR.current=null;return}if(e)try{e7(!0);let e=await ts(r,n);if(e===C.SEARCH_ABORTED)return;e0(e.results),e5(r),tR.current={searchId:e.id,query:r,numHits:e.results.length,results:e.results.slice(0,25).map((e,t)=>({path:e.link,rank:t,score:e.score})),filtersApplied:!!(n?.product||n?.version),product:n?.product,version:n?.version},e.id&&tO(),e6((0,w.getDuplicatesWith2DArrayInOrder)(e.results.map(e=>Array.isArray(e.metadata?.breadcrumbs)?e.metadata.breadcrumbs:[]),!0)),e3((0,w.getDuplicates)(e.results.map(e=>e.header)))}catch(e){console.error("Search request failed:",e)}finally{e7(!1)}},el),[e,ts,tO]),tD=(0,Z.useCallback)(e=>{tg(e),tx(void 0),tI&&tV(tI,{product:tp&&e||void 0,version:void 0})},[tp,tV,tI]),tH=(0,Z.useCallback)(e=>{tx(e),tI&&tV(tI,{product:tp&&th||void 0,version:ty&&e||void 0})},[tp,ty,tV,th,tI]),t_=(0,h.useEffectEvent)(e=>{eU(!0),eZ(!0),eY("deep-link"),e&&(tr(e,"deep-link"),ta({id:(0,U.default)(),role:"user",content:e}))}),tF=(0,h.useEffectEvent)(e=>{ej(!0),e&&(eX(e),tV(e,tw))});(0,Z.useEffect)(()=>{let t=new URLSearchParams(window.location.search),n=t.get("assistant");null!==n&&E&&(ti(),requestAnimationFrame(()=>t_(n)));let r=t.get("search");null===r||"algolia"===e||l.SEARCH_REMOVED||requestAnimationFrame(()=>tF(r))},[]);let tq=(0,Z.useCallback)(e=>{et(e.link,{source:"search",header:e.header,searchId:e.id})},[et]),tB=(0,Z.useCallback)(()=>{tO.cancel(),tP.cancel(),tR.current=null,ej(!1),tN("search",null),eU(!0),eZ(!0),eY("search-modal");let e=eJ.trim();e&&(tr(e,"search-modal"),ta({id:(0,U.default)(),role:"user",content:e}))},[ta,tO,tP,eJ,eU,tr,tN]),tK=(0,Z.useRef)([]),tz=(0,Z.useCallback)(e=>t=>{tO.cancel();let n=tR.current?.searchId,r=eJ.trim()||to.find(t=>t.searchHit.id===e.id)?.query.trim()||"";r&&e.id&&tK.current.push({query:r,hit:e});let a=eQ.findIndex(t=>t.id===e.id);tt({query:r,searchId:n,path:e.link,section:e.header,rank:a>=0?a:void 0,score:e.score,source:a>=0?"results":"recent",inputMethod:0===t.detail?"keyboard":"mouse"}),t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),tj(),ee.push((0,y.navHref)(e.link)))},[tj,tO,eQ,eJ,to,ee,tt]),t$=(0,Z.useMemo)(()=>({isChatSheetOpen:e$,shouldFocusChatSheet:eW,entryPoint:eG,onChatSheetToggle:tL,setShouldFocusChatSheet:eZ}),[e$,eW,eG,tL,eZ]),[tU,tW]=(0,Z.useMemo)(()=>{let e=eE.indexOf("{query}");return e>=0?[eE.slice(0,e),eE.slice(e+7)]:[`${eE} `,"?"]},[eE]),tZ=(0,Z.useMemo)(()=>{if(!tI)return 0===to.length?[]:[{key:"recent",label:ek,isRecent:!0,items:to.map(e=>e.searchHit)}];let e=[];return eQ.length>0&&e.push({key:"results",label:null,isRecent:!1,items:eQ}),E&&e.push({key:"ask-ai",label:ey,isRecent:!1,items:[es]}),e},[tI,to,ek,eQ,E,ey]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec.Provider,{value:t$,children:(0,t.jsx)(ed.Provider,{value:(0,Z.useMemo)(()=>({onSearchModalOpen:tM,hasChatPermissions:E,isLoggedInCli:N,searchPrompt:eP,assistantConfig:j,starterQuestions:B}),[tM,E,N,eP,j,B]),children:K})}),!l.SEARCH_REMOVED&&(0,t.jsx)(I.Dialog,{open:eT,onOpenChange:e=>{e||tj()},onOpenChangeComplete:e=>{if(!e&&!eT){for(let e of(eX(""),e0([]),e5(""),tO.cancel(),tP.cancel(),tR.current=null,tK.current))tl(e.query,e.hit);tK.current=[]}},children:(0,t.jsxs)(I.DialogPortal,{children:[(0,t.jsx)(I.DialogBackdrop,{"data-component-part":"search-backdrop"}),(0,t.jsx)(I.DialogViewport,{className:(0,z.cn)(r.zIndex.Popup,"overflow-y-auto p-4 sm:p-6 md:p-12"),children:(0,t.jsxs)(I.DialogPopup,{initialFocus:e=>"keyboard"===e,"data-component-part":"search-modal","aria-label":eM,onMouseDown:e=>{e.target instanceof HTMLElement&&e.target.closest("input")||e.preventDefault()},className:"flex flex-col mx-auto mt-1.5 max-w-[640px] overflow-hidden bg-background-light dark:bg-background-dark rounded-search ring-1 ring-gray-950/[0.06] dark:ring-white/[0.06] shadow-[0_57px_34px_0_rgba(0,0,0,0.01),0_25px_25px_0_rgba(0,0,0,0.02),0_6px_14px_0_rgba(0,0,0,0.02)]",children:[(0,t.jsxs)(S.Autocomplete,{inline:!0,open:!0,items:tZ,filter:null,autoHighlight:!0,keepHighlight:!0,itemToStringValue:e=>"string"==typeof e?e:e.header,value:eJ,onValueChange:e=>{ti(),eX(e),tV(e,tw),tP(e)},onItemHighlighted:e=>{e&&e!==es&&tq(e)},children:[(0,t.jsx)("div",{"data-component-part":"search-header",className:"pt-1.5 px-1.5 relative z-10 h-14",children:tu?(0,t.jsxs)("div",{"data-component-part":"search-cli-state",className:"relative h-full w-full flex items-center pt-1.5 pr-2 pb-1.5 pl-1.5 rounded-2xl border border-gray-200 dark:border-white/10 bg-background-light dark:bg-background-dark",children:[(0,t.jsx)(V.MagnifierIcon,{"aria-hidden":"true",className:"absolute left-3 top-1/2 -translate-y-1/2 size-4 text-gray-500 dark:text-gray-400"}),(0,t.jsx)("span",{className:"pl-[30px] select-none text-base font-medium leading-6 tracking-[-0.2px] text-gray-400 dark:text-gray-700",children:eS})]}):(0,t.jsxs)("div",{"data-component-part":"search-input-container",className:"relative h-full flex items-center pt-1.5 pr-2 pb-1.5 pl-1.5 rounded-2xl border border-gray-200 dark:border-white/10 bg-background-light dark:bg-background-dark",children:[(0,t.jsx)(V.MagnifierIcon,{"aria-hidden":"true",className:"absolute left-3 top-1/2 -translate-y-1/2 size-4 text-gray-500 dark:text-gray-400"}),(0,t.jsx)(S.AutocompleteInput,{"data-component-part":"search-input",id:b.Ids.SearchInput,"aria-label":eM,"aria-describedby":b.Ids.SearchKeyboardHints,className:"flex-1 min-w-0 h-full pl-[30px] bg-transparent border-0 outline-hidden outline-0 focus:ring-0 text-base font-medium leading-6 tracking-[-0.2px] text-gray-950 dark:text-white caret-gray-950 dark:caret-white placeholder:select-none placeholder:text-gray-400 dark:placeholder:text-gray-700",autoFocus:!0,placeholder:eM,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,enterKeyHint:"search",onKeyDown:e=>{if(!e.nativeEvent.isComposing){if("Enter"===e.key&&e.altKey&&E){e.preventDefault(),e.preventBaseUIHandler(),tB();return}if("Enter"===e.key&&(e.metaKey||e.ctrlKey||e.shiftKey)){let t=e.currentTarget.getAttribute("aria-activedescendant"),n=t?document.getElementById(t):null,r=n instanceof HTMLAnchorElement?n:n?.querySelector("a")??null;if(r){e.preventDefault(),e.preventBaseUIHandler();let t=e.currentTarget;r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey}
7)),t.focus()}}}}}),E&&(0,t.jsxs)("button",{type:"button","data-component-part":"search-ask-ai-button","aria-keyshortcuts":"Alt+Enter",className:"shrink-0 self-stretch my-0.5 ml-2 flex items-center justify-center gap-1.5 px-2.5 rounded-[10px] bg-gray-950/5 dark:bg-white/5 text-sm font-medium leading-5 tracking-[-0.1px] text-gray-500 dark:text-gray-400 hover:bg-gray-950/10 dark:hover:bg-white/10 hover:text-gray-700 dark:hover:text-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",onClick:tB,children:[ey,(0,t.jsxs)("span",{className:"hidden sm:flex items-center","aria-hidden":"true",children:[eN?(0,t.jsx)(D.OptionKeyFilledIcon,{className:"size-3.5"}):(0,t.jsx)(T.AltKeyFilledIcon,{className:"size-3.5"}),(0,t.jsx)(H.ReturnKeyFilledIcon,{className:"size-3.5"})]})]})]})}),tS&&(0,t.jsx)("div",{"data-component-part":"search-filters",className:"px-2",children:(0,t.jsxs)("div",{className:(0,z.cn)("flex items-center gap-2 overflow-x-auto pt-2.5",(tE||tk)&&"pb-2.5 border-b border-gray-200 dark:border-white/10"),children:[tp&&(0,t.jsx)(eu,{label:"Product",allLabel:"All products",options:tf,selectedValue:th,onValueChange:tD}),ty&&(0,t.jsx)(eu,{label:"Versions",allLabel:"All versions",options:tb,selectedValue:tm,onValueChange:tH})]})}),(0,t.jsxs)(k.ScrollArea,{children:[(0,t.jsx)(k.ScrollAreaViewport,{className:(0,z.cn)(tS?"max-h-[calc(100vh-13.25rem)]":"max-h-[calc(100vh-10rem)]"),children:(0,t.jsx)(k.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsx)(S.AutocompleteList,{"data-component-part":"search-list",className:"px-1.5 pt-1.5 select-none",children:e=>(0,t.jsxs)(S.AutocompleteGroup,{items:e.items,children:[e.label&&(0,t.jsx)(S.AutocompleteGroupLabel,{"data-component-part":"search-group-label",className:"px-3 py-1.5 text-xs font-normal leading-4 text-gray-500 dark:text-gray-400",children:e.label}),(0,t.jsx)(S.AutocompleteCollection,{children:n=>n===es?(0,t.jsxs)(S.AutocompleteItem,{value:es,"data-component-part":"search-ask-ai-item",onClick:tB,className:"flex items-center gap-2 p-2 rounded-[calc(var(--rounded-search,1.25rem)-0.375rem)] cursor-pointer focus:outline-hidden! focus-visible:outline-hidden! last:mb-1.5 sm:last:mb-2 data-highlighted:bg-black/[0.03] dark:data-highlighted:bg-white/5 forced-colors:data-highlighted:outline forced-colors:data-highlighted:outline-1",children:[(0,t.jsx)(_.Sparkle2FilledIcon,{className:"size-4 shrink-0 text-primary dark:text-primary-light","aria-hidden":"true"}),(0,t.jsxs)("span",{className:"truncate text-sm font-medium leading-5 tracking-[-0.1px] text-gray-950 dark:text-white",children:[tU,(0,t.jsx)("span",{className:"text-primary dark:text-primary-light",children:tI}),tW]})]},es):((e,{isRecent:n=!1}={})=>{let r=e.metadata&&"openapi"in e.metadata?String(e.metadata.openapi):void 0,a=r?(0,M.potentiallyParseOpenApiString)(r):void 0,i=a?"api-playground":e.metadata?.hash?"section":"page",o=e.metadata?(0,X.generateBreadcrumbs)(e.metadata,e.header,!!e9?.has(e.header),n?void 0:e4):[e.header],s=tA(e),u=n?"":eJ.trim(),c=o.length>ez?o.slice(-ez):o,d=[...s?[(0,P.getHighlightedText)(s.trim(),u)]:[],...c.length<o.length?["…"]:[],...c.map(e=>(0,P.getHighlightedText)(e.trim(),u))],p=ev?(0,P.getHighlightedSnippet)((0,P.stripDuplicatedTitleLine)(e.content,e.header).replace(/\s+/g," ").trim(),n?"":e1,{maxLength:160}):"";return(0,t.jsx)(eo,{value:e,href:`${l.NEXT_PUBLIC.BASE_PATH}${e.link}`,titleHtml:(0,P.getHighlightedText)(e.header.trim(),u),crumbsHtml:d,contentHtml:p,iconType:i,icon:e.metadata?.icon,method:a?.method,onLinkClick:tz(e)},e.id)})(n,{isRecent:e.isRecent})})]},e.key)})})}),(0,t.jsx)(k.ScrollAreaScrollbar,{orientation:"vertical"})]}),(0,t.jsx)(S.AutocompleteStatus,{className:"sr-only",children:tI&&!e2?eI.replace("{count}",String(eQ.length)):null})]}),tZ.length>0&&(0,t.jsxs)("div",{"aria-hidden":"true","data-component-part":"search-footer",className:"hidden sm:flex items-center justify-between mx-1.5 mb-1.5 pt-2.5 pr-2 pb-1.5 pl-1.5 border-t border-gray-200 dark:border-white/10 text-xs font-medium leading-4 text-gray-500 dark:text-gray-400 select-none",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(q.SquareArrowUpFilledIcon,{className:"size-3.5"}),(0,t.jsx)(F.SquareArrowDownFilledIcon,{className:"size-3.5"})]}),ew]}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(H.ReturnKeyFilledIcon,{className:"size-3.5"}),eA]})]}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(L.EscKeyFilledIcon,{className:"size-3.5"}),eR]})]}),(0,t.jsx)("p",{id:b.Ids.SearchKeyboardHints,className:"sr-only",children:eO})]})})]})})]})}ed.displayName="SearchContext"}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.