1import{a as e,n as t,t as n}from"./jsx-runtime-n5LQ9ujS.js";import{c as r}from"./site-DtxZ8-8h.js";import{n as i}from"./TextBox-DD0qTeSv.js";import{t as a}from"./IconBase.es-BKiWgcYP.js";import{m as o}from"./hooks-DnkQ-E85.js";import{t as s}from"./Button-Biti98St.js";import{$ as c,A as l,B as u,C as d,D as f,E as p,Et as m,F as h,Gt as g,H as _,I as v,Jt as y,L as b,M as x,N as S,O as C,Ot as w,P as T,R as E,S as D,St as O,T as k,V as A,Wt as j,Zt as M,b as N,ct as ee,et as P,i as F,j as I,jt as L,k as te,lt as ne,mt as R,n as re,nn as ie,nt as ae,r as z,u as B,w as V,x as H,z as U}from"./Tooltip-Gu44_Ncx.js";var W=e(t(),1),G=new Map([[`bold`,W.createElement(W.Fragment,null,W.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,W.createElement(W.Fragment,null,W.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),W.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,W.createElement(W.Fragment,null,W.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,W.createElement(W.Fragment,null,W.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,W.createElement(W.Fragment,null,W.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,W.createElement(W.Fragment,null,W.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),K=W.forwardRef((e,t)=>W.createElement(a,{ref:t,...e,weights:G}));K.displayName=`CaretUpIcon`;var q=n();function J(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);S(t,r),l(t);let{forceUnmount:i}=I(r,t),a=W.useCallback(()=>{t.setOpen(!1,m(L))},[t]);W.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function oe({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[l,u]=W.useState(0),[d,f]=W.useState(0),p=l===0,m=E(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=P(t);return p&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||c(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:p});return ae(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),W.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,l,d,t]),x(e,{activeTriggerProps:m.reference??y,inactiveTriggerProps:m.trigger??y,popupProps:m.floating??y,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Y=W.createContext(!1),X=W.createContext(void 0);function Z(e){let t=W.useContext(X);if(e===!1&&t===void 0)throw Error(M(27));return t}var se={...k,modal:b(e=>e.modal),nested:b(e=>e.nested),nestedOpenDialogCount:b(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:b(e=>e.nestedOpenDrawerCount),disablePointerDismissal:b(e=>e.disablePointerDismissal),openMethod:b(e=>e.openMethod),descriptionElementId:b(e=>e.descriptionElementId),titleElementId:b(e=>e.titleElementId),viewportElement:b(e=>e.viewportElement),role:b(e=>e.role)},ce=class e extends v{constructor(e,t,n=!1){let r=new p,i=le(e);i.floatingRootContext=V(r,t,n),super(i,{popupRef:W.createRef(),backdropRef:W.createRef(),internalBackdropRef:W.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},se)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};te(n,e,t.trigger),this.update(n)};static useStore(t,n){return T(t,(t,r)=>new e(n,t,r),!0).store}};function le(e={}){return{...d(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function ue(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTr
1iggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Z(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=ce.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});ee(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);J({store:b,actionsRef:l});let w=x||S,T=W.useMemo(()=>({store:b}),[b]);return(0,q.jsx)(Y.Provider,{value:!1,children:(0,q.jsxs)(X.Provider,{value:T,children:[w&&(0,q.jsx)(oe,{store:b,parentContext:v?.store.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})})}var de={...H,...O},fe=W.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=Z(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return g(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:de,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),pe=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=Z(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=R({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,m(w,e.nativeEvent))}return g(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),me=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),he=function(e){return e[e.open=N.open]=`open`,e[e.closed=N.closed]=`closed`,e[e.startingStyle=N.startingStyle]=`startingStyle`,e[e.endingStyle=N.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Q=W.createContext(void 0);function ge(){let e=W.useContext(Q);if(e===void 0)throw Error(M(26));return e}var _e={...H,...O,nestedDialogOpen(e){return e?{[he.nestedDialogOpen]:``}:null}},ve=W.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=Z(),l=c.useState(`descriptionElementId`),d=c.useState(`disablePointerDismissal`),p=c.useState(`floatingRootContext`),m=c.useState(`popupProps`),h=c.useState(`modal`),_=c.useState(`mounted`),v=c.useState(`nested`),y=c.useState(`nestedOpenDialogCount`),b=c.useState(`open`),x=c.useState(`openMethod`),S=c.useState(`titleElementId`),w=c.useState(`transitionStatus`),T=c.useState(`role`),E=p.useState(`floatingId`),D=s.id??E;ge(),ne({open:b,ref:c.context.popupRef,onComplete(){b&&c.context.onOpenChangeComplete?.(!0)}});let O=o===void 0?C(c.context.popupRef):o,k=y>0,A=c.useStateSetter(`popupElement`),j=g(`div`,e,{state:{open:b,nested:v,transitionStatus:w,nestedDialogOpen:k},props:[m,{id:D,"aria-labelledby":S??void 0,"aria-describedby":l??void 0,role:T,...f,hidden:!_,onKeyDown(e){B.has(e.key)&&e.stopPropagation()},style:{[me.nestedDialogs]:y}},s],ref:[t,c.context.popupRef,A],stateAttributesMapping:_e});return(0,q.jsx)(u,{context:p,openInteractionType:x,disabled:!_,closeOnFocusOut:!d,initialFocus:O,returnFocus:a,modal:h!==!1,restoreFocus:`popup`,children:j})}),ye=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Z(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,q.jsx)(Q.Provider,{value:n,children:(0,q.jsxs)(A,{ref:t,...r,children:[a&&o===!0&&(0,q.jsx)(z,{ref:i.context.internalBackdropRef,inert:F(!s)}),e.children]})}):null}),be=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Z(),c=j(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),g(`h2`,e,{ref:t,props:[{id:c},o]})}),$=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=Z(!0),f=l?.store??d?.store;if(!f)throw Error(M(79));let p=j(s),m=f.useState(`floatingRootContext`),v=f.useState(`isOpenedByTrigger`,p),y=f.useState(`triggerPopupId`,p),b=W.useRef(null),{registerTrigger:x,isMountedByThisTrigger:S}=h(p,b,f,{payload:c}),{getButtonProps:C,buttonRef:w}=R({disabled:a,native:o}),T=U(m,{enabled:m!=null}),E=re(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),O={disabled:a,open:v},k=f.useState(`triggerProps`,S);return g(`button`,e,{state:O,ref:[w,t,x,b],props:[T.reference,k,E,{[_]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":v,"aria-controls":y},u,C],stateAttributesMapping:D})});function xe(e){return ue(e,W.useContext(Y)?`drawer`:`dialog`)}function Se({trigger:e,title:t,bottomContent:n,onChange:r,className:a,children:c}){let l=(0,W.useRef)(null),[u,d]=(0,W.useState)(!1),f=(0,W.useCallback)(()=>{d(!0),r?.(!0)},[r]),p=(0,W.useCallback)(()=>{d(!1),r?.(!1)},[r]);(0,W.useEffect)(()=>{u&&o(()=>l.current?.querySelector(`input, textarea`)).then(e=>e?.focus())},[u]);let m=e=>typeof e==`function`?e(p,f):e;return e.props[`aria-disabled`]?e:(0,q.jsxs)(xe,{open:u,onOpenChange:e=>e?f():p(),children:[(0,q.jsx)($,{render:e}),(0,q.jsxs)(ye,{children:[(0,q.jsx)(fe,{className:`fixed inset-0 z-30 bg-black/50 transition data-closed:opacity-0 data-ending-style:opacity-0 data-open:opacity-100 data-starting-style:opacity-0`}),(0,q.jsx)(ve,{className:`pointer-events-none fixed inset-0 z-30 grid place-items-center p-8 transition data-closed:opacity-0 data-ending-style:opacity-0 data-open:opacity-100 data-starting-style:opacity-0 max-md:p-4`,children:(0,q.jsxs)(`div`,{ref:l,className:ie(`pointer-events-auto flex max-h-full min-h-0 w-full max-w-200 flex-col rounded-md bg-white`,a),children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-4 p-4 shadow-md`,children:[(0,q.jsx)(be,{className:`justify-start text-left`,children:t}),(0,q.jsx)(pe,{render:(0,q.jsx)(s,{size:`sm`}),children:(0,q.jsx)(i,{})})]}),(0,q.jsx)(`div`,{className:`flex flex-col gap-8 overflow-x-clip overflow-y-auto p-8 max-md:p-4`,children:m(c)}
1),n&&(0,q.jsx)(`div`,{className:`flex flex-wrap items-center justify-center gap-4 p-4 shadow-md`,children:m(n)})]})})]})]})}var Ce=(e=``,t=``)=>{let n=new URLSearchParams(e),r=new URLSearchParams(t);for(let[e,t]of r)t===``?n.delete(e):n.set(e,t);return`?${n.toString()}`},we=async()=>{r(`share`,{url:window.location.href});try{await window.navigator.share({title:document.title,text:document.title,url:window.location.href})}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)return;console.error(e),await window.navigator.clipboard.writeText(window.location.href),window.alert(`Link copied to clipboard!`)}},Te=e=>{try{let t=new URL(e);return(t.hostname+t.pathname).replace(/\/+$/,``)}catch{return e}};export{K as a,Se as i,we as n,Te as r,Ce as t};
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.