@juejin-opensource/jusage 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{r as f,$ as Ce,t as Xt,p as _0,q as W0,s as Dt,v as G,w as O0,x as Zt,y as Re,z as ke,E as ge,F as J,R as x,G as T,H,I as We,J as Jt,K as U0,L as U,N as q0,O as Y0,U as ie,V as Qt,W as el,X as Oe,Y as tl,Z as G0,_ as X0,a0 as Z0,a1 as J0,a2 as Ke,a3 as ll,a4 as Q0,a5 as en,a6 as tn,j as g,a7 as Q,a8 as ln,a9 as he,aa as nn,ab as an,ac as Ue,ad as ce,ae as $e,af as il,ag as F,ah as rn,ai as un,aj as Te,ak as ue,al as sn,am as pe,an as on,ao as nl,ap as tt,aq as It,ar as Me,as as Ae,at as ee,au as cn,av as be,aw as xe,ax as al,ay as Bt,az as dn,aA as hn,aB as fn,aC as qe,aD as ft,aE as ye,aF as j,aG as rl,aH as ul,aI as mn,aJ as lt,aK as Ye,aL as we,aM as pn,aN as sl,aO as mt,aP as gn,aQ as yn,aR as bn,aS as xn,aT as vn,aU as ol,aV as Ge,aW as $n,aX as wn,aY as Cn,aZ as zn,a_ as cl,a$ as je,b0 as Sn,b1 as kn,b2 as En,b3 as Dn,b4 as Xe,b5 as In,b6 as Bn,b7 as Mn,b8 as An,b9 as Rn,ba as Pn,S as Kn,B as Nn}from"./index-3miiAdwH.js";import{$ as Fn,c as dl,d as Tn,e as jn,f as hl,g as Ee,h as Hn,i as Vn,j as Mt,k as Ln,l as _n,m as Wn,n as On,S as it,L as pt,a as te,b as le}from"./index-DikHz9Xg.js";function fl(l,e){const t=f.useRef(!0),i=f.useRef(null);let n=Ce(l);f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),f.useEffect(()=>{let a=i.current;t.current?t.current=!1:(!a||e.some((r,u)=>!Object.is(r,a[u])))&&n(),i.current=e},e)}const Un=Xt({defaultVariants:{fullWidth:!1,variant:"primary"},slots:{base:"search-field",clearButton:"search-field__clear-button",group:"search-field__group",input:"search-field__input",searchIcon:"search-field__search-icon"},variants:{fullWidth:{false:{},true:{base:"search-field--full-width",group:"search-field__group--full-width"}},variant:{primary:{base:"search-field--primary"},secondary:{base:"search-field--secondary"}}}}),qn=Xt({defaultVariants:{variant:"primary"},slots:{base:"table-root",body:"table__body",cell:"table__cell",column:"table__column",columnResizer:"table__column-resizer",content:"table__content",footer:"table__footer",header:"table__header",loadMore:"table__load-more",loadMoreContent:"table__load-more-content",resizableContainer:"table__resizable-container",row:"table__row",scrollContainer:"table__scroll-container",sortableColumnHeader:"table__sortable-column-header",sortableColumnIndicator:"table__sortable-column-indicator"},variants:{variant:{primary:{base:"table-root--primary"},secondary:{base:"table-root--secondary"}}}});function Yn(l){let{onMoveStart:e,onMove:t,onMoveEnd:i}=l,n=f.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:r}=_0(),u=f.useCallback((d,m,p,y)=>{p===0&&y===0||(n.current.didMove||(n.current.didMove=!0,e==null||e({type:"movestart",pointerType:m,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),t==null||t({type:"move",pointerType:m,deltaX:p,deltaY:y,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))},[e,t,n]),s=Ce(u),o=f.useCallback((d,m)=>{W0(),n.current.didMove&&(i==null||i({type:"moveend",pointerType:m,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))},[i,n]),h=Ce(o);return{moveProps:f.useMemo(()=>{let d={},m=()=>{O0(),n.current.didMove=!1};{let y=b=>{var S,C;if(b.pointerId===n.current.id){let k=b.pointerType||"mouse";s(b,k,b.pageX-(((S=n.current.lastPosition)==null?void 0:S.pageX)??0),b.pageY-(((C=n.current.lastPosition)==null?void 0:C.pageY)??0)),n.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},v=b=>{if(b.pointerId===n.current.id){let S=b.pointerType||"mouse";h(b,S),n.current.id=null;let C=Dt(G(b));r(C,"pointermove",y,!1),r(C,"pointerup",v,!1),r(C,"pointercancel",v,!1)}};d.onPointerDown=b=>{if(b.button===0&&n.current.id==null){m(),b.stopPropagation(),b.preventDefault(),n.current.lastPosition={pageX:b.pageX,pageY:b.pageY},n.current.id=b.pointerId;let S=Dt(G(b));a(S,"pointermove",y,!1),a(S,"pointerup",v,!1),a(S,"pointercancel",v,!1)}}}let p=(y,v,b)=>{m(),s(y,"keyboard",v,b),h(y,"keyboard")};return d.onKeyDown=y=>{switch(y.key){case"Left":case"ArrowLeft":y.preventDefault(),y.stopPropagation(),p(y,-1,0);break;case"Right":case"ArrowRight":y.preventDefault(),y.stopPropagation(),p(y,1,0);break;case"Up":case"ArrowUp":y.preventDefault(),y.stopPropagation(),p(y,0,-1);break;case"Down":case"ArrowDown":y.preventDefault(),y.stopPropagation(),p(y,0,1);break}},d},[a,r,n])}}const ml=f.createContext({});let Gn=l=>{let{onHoverStart:e,onHoverChange:t,onHoverEnd:i,...n}=l;return n};const Xn=Zt(function(e,t){[e,t]=Re(e,t,ml);let{hoverProps:i,isHovered:n}=ke({...e,isDisabled:e.disabled}),{isFocused:a,isFocusVisible:r,focusProps:u}=ge({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",o=J({...e,values:{isHovered:n,isFocused:a,isFocusVisible:r,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return x.createElement(T.input,{...H(Gn(e),u,i),...o,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":r||void 0,"data-invalid":s||void 0})});function Zn(l,e){let{inputElementType:t="input",isDisabled:i=!1,isRequired:n=!1,isReadOnly:a=!1,type:r="text",validationBehavior:u="aria"}=l,[s,o]=We(l.value,l.defaultValue||"",l.onChange),{focusableProps:h}=Jt(l,e),c=U0({...l,value:s}),{isInvalid:d,validationErrors:m,validationDetails:p}=c.displayValidation,{labelProps:y,fieldProps:v,descriptionProps:b,errorMessageProps:S}=Fn({...l,isInvalid:d,errorMessage:l.errorMessage||m}),C=U(l,{labelable:!0});const k={type:r,pattern:l.pattern};let[w]=f.useState(s);return q0(e,l.defaultValue??w,o),Y0(l,c,e),{labelProps:y,inputProps:H(C,t==="input"?k:void 0,{disabled:i,readOnly:a,required:n&&u==="native","aria-required":n&&u==="aria"||void 0,"aria-invalid":d||void 0,"aria-errormessage":l["aria-errormessage"],"aria-activedescendant":l["aria-activedescendant"],"aria-autocomplete":l["aria-autocomplete"],"aria-haspopup":l["aria-haspopup"],"aria-controls":l["aria-controls"],value:s,onChange:$=>o(G($).value),autoComplete:l.autoComplete,autoCapitalize:l.autoCapitalize,maxLength:l.maxLength,minLength:l.minLength,name:l.name,form:l.form,placeholder:l.placeholder,inputMode:l.inputMode,autoCorrect:l.autoCorrect,spellCheck:l.spellCheck,[parseInt(x.version,10)>=17?"enterKeyHint":"enterkeyhint"]:l.enterKeyHint,onCopy:l.onCopy,onCut:l.onCut,onPaste:l.onPaste,onCompositionEnd:l.onCompositionEnd,onCompositionStart:l.onCompositionStart,onCompositionUpdate:l.onCompositionUpdate,onSelect:l.onSelect,onBeforeInput:l.onBeforeInput,onInput:l.onInput,...h,...v}),descriptionProps:b,errorMessageProps:S,isInvalid:d,validationErrors:m,validationDetails:p}}var pl={};pl={deselectedItem:l=>`${l.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(l.count)} عنصر محدد`,other:()=>`${e.number(l.count)} عنصر محدد`})}.`,selectedItem:l=>`${l.item} المحدد`};var gl={};gl={deselectedItem:l=>`${l.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(l.count)} избран елемент`,other:()=>`${e.number(l.count)} избрани елементи`})}.`,selectedItem:l=>`${l.item} избран.`};var yl={};yl={deselectedItem:l=>`Položka ${l.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(l.count)} položka`,other:()=>`Vybráno ${e.number(l.count)} položek`})}.`,selectedItem:l=>`Vybrána položka ${l.item}.`};var bl={};bl={deselectedItem:l=>`${l.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(l.count)} element valgt`,other:()=>`${e.number(l.count)} elementer valgt`})}.`,selectedItem:l=>`${l.item} valgt.`};var xl={};xl={deselectedItem:l=>`${l.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(l.count)} Element ausgewählt`,other:()=>`${e.number(l.count)} Elemente ausgewählt`})}.`,selectedItem:l=>`${l.item} ausgewählt.`};var vl={};vl={deselectedItem:l=>`Δεν επιλέχθηκε το στοιχείο ${l.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(l.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(l.count)} στοιχεία`})}.`,selectedItem:l=>`Επιλέχθηκε το στοιχείο ${l.item}.`};var $l={};$l={deselectedItem:l=>`${l.item} not selected.`,select:"Select",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"No items selected",one:()=>`${e.number(l.count)} item selected`,other:()=>`${e.number(l.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:l=>`${l.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var wl={};wl={deselectedItem:l=>`${l.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(l.count)} elemento seleccionado`,other:()=>`${e.number(l.count)} elementos seleccionados`})}.`,selectedItem:l=>`${l.item} seleccionado.`};var Cl={};Cl={deselectedItem:l=>`${l.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(l.count)} üksus valitud`,other:()=>`${e.number(l.count)} üksust valitud`})}.`,selectedItem:l=>`${l.item} valitud.`};var zl={};zl={deselectedItem:l=>`Kohdetta ${l.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(l.count)} kohde valittu`,other:()=>`${e.number(l.count)} kohdetta valittu`})}.`,selectedItem:l=>`${l.item} valittu.`};var Sl={};Sl={deselectedItem:l=>`${l.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(l.count)} élément sélectionné`,other:()=>`${e.number(l.count)} éléments sélectionnés`})}.`,selectedItem:l=>`${l.item} sélectionné.`};var kl={};kl={deselectedItem:l=>`${l.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(l.count)} נבחר`,other:()=>`${e.number(l.count)} פריטים נבחרו`})}.`,selectedItem:l=>`${l.item} נבחר.`};var El={};El={deselectedItem:l=>`Stavka ${l.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(l.count)} stavka`,other:()=>`Odabrano je ${e.number(l.count)} stavki`})}.`,selectedItem:l=>`Stavka ${l.item} je odabrana.`};var Dl={};Dl={deselectedItem:l=>`${l.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(l.count)} elem kijelölve`,other:()=>`${e.number(l.count)} elem kijelölve`})}.`,selectedItem:l=>`${l.item} kijelölve.`};var Il={};Il={deselectedItem:l=>`${l.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(l.count)} elemento selezionato`,other:()=>`${e.number(l.count)} elementi selezionati`})}.`,selectedItem:l=>`${l.item} selezionato.`};var Bl={};Bl={deselectedItem:l=>`${l.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"項目が選択されていません",one:()=>`${e.number(l.count)} 項目を選択しました`,other:()=>`${e.number(l.count)} 項目を選択しました`})}。`,selectedItem:l=>`${l.item} を選択しました。`};var Ml={};Ml={deselectedItem:l=>`${l.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(l.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(l.count)}개 항목이 선택되었습니다`})}.`,selectedItem:l=>`${l.item}이(가) 선택되었습니다.`};var Al={};Al={deselectedItem:l=>`${l.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(l.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(l.count)}`})}.`,selectedItem:l=>`Pasirinkta: ${l.item}.`};var Rl={};Rl={deselectedItem:l=>`Vienums ${l.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(l.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(l.count)}`})}.`,selectedItem:l=>`Atlasīts vienums ${l.item}.`};var Pl={};Pl={deselectedItem:l=>`${l.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(l.count)} element er valgt`,other:()=>`${e.number(l.count)} elementer er valgt`})}.`,selectedItem:l=>`${l.item} er valgt.`};var Kl={};Kl={deselectedItem:l=>`${l.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(l.count)} item geselecteerd`,other:()=>`${e.number(l.count)} items geselecteerd`})}.`,selectedItem:l=>`${l.item} geselecteerd.`};var Nl={};Nl={deselectedItem:l=>`Nie zaznaczono ${l.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(l.count)} zaznaczony element`,other:()=>`${e.number(l.count)} zaznaczonych elementów`})}.`,selectedItem:l=>`Zaznaczono ${l.item}.`};var Fl={};Fl={deselectedItem:l=>`${l.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(l.count)} item selecionado`,other:()=>`${e.number(l.count)} itens selecionados`})}.`,selectedItem:l=>`${l.item} selecionado.`};var Tl={};Tl={deselectedItem:l=>`${l.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(l.count)} item selecionado`,other:()=>`${e.number(l.count)} itens selecionados`})}.`,selectedItem:l=>`${l.item} selecionado.`};var jl={};jl={deselectedItem:l=>`${l.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Niciun element selectat",one:()=>`${e.number(l.count)} element selectat`,other:()=>`${e.number(l.count)} elemente selectate`})}.`,selectedItem:l=>`${l.item} selectat.`};var Hl={};Hl={deselectedItem:l=>`${l.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(l.count)} элемент выбран`,other:()=>`${e.number(l.count)} элементов выбрано`})}.`,selectedItem:l=>`${l.item} выбрано.`};var Vl={};Vl={deselectedItem:l=>`Nevybraté položky: ${l.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(l.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(l.count)}`})}.`,selectedItem:l=>`Vybraté položky: ${l.item}.`};var Ll={};Ll={deselectedItem:l=>`Element ${l.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(l.count)} element je izbran`,other:()=>`${e.number(l.count)} elementov je izbranih`})}.`,selectedItem:l=>`Element ${l.item} je izbran.`};var _l={};_l={deselectedItem:l=>`${l.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(l.count)} stavka`,other:()=>`Izabrano je ${e.number(l.count)} stavki`})}.`,selectedItem:l=>`${l.item} je izabrano.`};var Wl={};Wl={deselectedItem:l=>`${l.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(l.count)} markerat objekt`,other:()=>`${e.number(l.count)} markerade objekt`})}.`,selectedItem:l=>`${l.item} markerat.`};var Ol={};Ol={deselectedItem:l=>`${l.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(l.count)} öge seçildi`,other:()=>`${e.number(l.count)} öge seçildi`})}.`,selectedItem:l=>`${l.item} seçildi.`};var Ul={};Ul={deselectedItem:l=>`${l.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(l.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(l.count)}`})}.`,selectedItem:l=>`${l.item} вибрано.`};var ql={};ql={deselectedItem:l=>`未选择 ${l.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(l.count)} 个项目`,other:()=>`已选择 ${e.number(l.count)} 个项目`})}。`,selectedItem:l=>`已选择 ${l.item}。`};var Yl={};Yl={deselectedItem:l=>`未選取「${l.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(l,e)=>`${e.plural(l.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(l.count)} 個項目`,other:()=>`已選取 ${e.number(l.count)} 個項目`})}。`,selectedItem:l=>`已選取「${l.item}」。`};var Ze={};Ze={"ar-AE":pl,"bg-BG":gl,"cs-CZ":yl,"da-DK":bl,"de-DE":xl,"el-GR":vl,"en-US":$l,"es-ES":wl,"et-EE":Cl,"fi-FI":zl,"fr-FR":Sl,"he-IL":kl,"hr-HR":El,"hu-HU":Dl,"it-IT":Il,"ja-JP":Bl,"ko-KR":Ml,"lt-LT":Al,"lv-LV":Rl,"nb-NO":Pl,"nl-NL":Kl,"pl-PL":Nl,"pt-BR":Fl,"pt-PT":Tl,"ro-RO":jl,"ru-RU":Hl,"sk-SK":Vl,"sl-SI":Ll,"sr-SP":_l,"sv-SE":Wl,"tr-TR":Ol,"uk-UA":Ul,"zh-CN":ql,"zh-TW":Yl};function Jn(l){return l&&l.__esModule?l.default:l}function Qn(l,e){let{getRowText:t=u=>{var s,o,h;return((o=(s=e.collection).getTextValue)==null?void 0:o.call(s,u))??((h=e.collection.getItem(u))==null?void 0:h.textValue)}}=l,i=ie(Jn(Ze),"@react-aria/grid"),n=e.selectionManager.rawSelection,a=f.useRef(n),r=f.useCallback(()=>{var c;if(!e.selectionManager.isFocused||n===a.current){a.current=n;return}let u=At(n,a.current),s=At(a.current,n),o=e.selectionManager.selectionBehavior==="replace",h=[];if(e.selectionManager.selectedKeys.size===1&&o){let d=e.selectionManager.selectedKeys.keys().next().value;if(d!=null&&e.collection.getItem(d)){let m=t(d);m&&h.push(i.format("selectedItem",{item:m}))}}else if(u.size===1&&s.size===0){let d=u.keys().next().value;if(d!=null){let m=t(d);m&&h.push(i.format("selectedItem",{item:m}))}}else if(s.size===1&&u.size===0){let d=s.keys().next().value;if(d!=null&&e.collection.getItem(d)){let m=t(d);m&&h.push(i.format("deselectedItem",{item:m}))}}e.selectionManager.selectionMode==="multiple"&&(h.length===0||n==="all"||n.size>1||a.current==="all"||((c=a.current)==null?void 0:c.size)>1)&&h.push(n==="all"?i.format("selectedAll"):i.format("selectedCount",{count:n.size})),h.length>0&&Qt(h.join(" ")),a.current=n},[n,e.selectionManager.selectedKeys,e.selectionManager.isFocused,e.selectionManager.selectionBehavior,e.selectionManager.selectionMode,e.collection,t,i]);fl(()=>{if(e.selectionManager.isFocused)r();else{let u=requestAnimationFrame(r);return()=>cancelAnimationFrame(u)}},[n,e.selectionManager.isFocused])}function At(l,e){let t=new Set;if(l==="all"||e==="all")return t;for(let i of l.keys())e.has(i)||t.add(i);return t}function ea(l){return l&&l.__esModule?l.default:l}function ta(l){let e=ie(ea(Ze),"@react-aria/grid"),t=el(),i=(t==="pointer"||t==="virtual"||t==null)&&typeof window<"u"&&"ontouchstart"in window,n=f.useMemo(()=>{let r=l.selectionManager.selectionMode,u=l.selectionManager.selectionBehavior,s;return i&&(s=e.format("longPressToSelect")),u==="replace"&&r!=="none"&&l.hasItemActions?s:void 0},[l.selectionManager.selectionMode,l.selectionManager.selectionBehavior,l.hasItemActions,e,i]);return Oe(n)}var Gl={};Gl={"Clear search":"مسح البحث"};var Xl={};Xl={"Clear search":"Изчистване на търсене"};var Zl={};Zl={"Clear search":"Vymazat hledání"};var Jl={};Jl={"Clear search":"Ryd søgning"};var Ql={};Ql={"Clear search":"Suche zurücksetzen"};var ei={};ei={"Clear search":"Απαλοιφή αναζήτησης"};var ti={};ti={"Clear search":"Clear search"};var li={};li={"Clear search":"Borrar búsqueda"};var ii={};ii={"Clear search":"Tühjenda otsing"};var ni={};ni={"Clear search":"Tyhjennä haku"};var ai={};ai={"Clear search":"Effacer la recherche"};var ri={};ri={"Clear search":"נקה חיפוש"};var ui={};ui={"Clear search":"Obriši pretragu"};var si={};si={"Clear search":"Keresés törlése"};var oi={};oi={"Clear search":"Cancella ricerca"};var ci={};ci={"Clear search":"検索をクリア"};var di={};di={"Clear search":"검색 지우기"};var hi={};hi={"Clear search":"Išvalyti iešką"};var fi={};fi={"Clear search":"Notīrīt meklēšanu"};var mi={};mi={"Clear search":"Tøm søk"};var pi={};pi={"Clear search":"Zoekactie wissen"};var gi={};gi={"Clear search":"Wyczyść zawartość wyszukiwania"};var yi={};yi={"Clear search":"Limpar pesquisa"};var bi={};bi={"Clear search":"Limpar pesquisa"};var xi={};xi={"Clear search":"Ştergeţi căutarea"};var vi={};vi={"Clear search":"Очистить поиск"};var $i={};$i={"Clear search":"Vymazať vyhľadávanie"};var wi={};wi={"Clear search":"Počisti iskanje"};var Ci={};Ci={"Clear search":"Obriši pretragu"};var zi={};zi={"Clear search":"Rensa sökning"};var Si={};Si={"Clear search":"Aramayı temizle"};var ki={};ki={"Clear search":"Очистити пошук"};var Ei={};Ei={"Clear search":"清除搜索"};var Di={};Di={"Clear search":"清除搜尋條件"};var Ii={};Ii={"ar-AE":Gl,"bg-BG":Xl,"cs-CZ":Zl,"da-DK":Jl,"de-DE":Ql,"el-GR":ei,"en-US":ti,"es-ES":li,"et-EE":ii,"fi-FI":ni,"fr-FR":ai,"he-IL":ri,"hr-HR":ui,"hu-HU":si,"it-IT":oi,"ja-JP":ci,"ko-KR":di,"lt-LT":hi,"lv-LV":fi,"nb-NO":mi,"nl-NL":pi,"pl-PL":gi,"pt-BR":yi,"pt-PT":bi,"ro-RO":xi,"ru-RU":vi,"sk-SK":$i,"sl-SI":wi,"sr-SP":Ci,"sv-SE":zi,"tr-TR":Si,"uk-UA":ki,"zh-CN":Ei,"zh-TW":Di};function la(l){return l&&l.__esModule?l.default:l}function ia(l,e,t){let i=ie(la(Ii),"@react-aria/searchfield"),{isDisabled:n,isReadOnly:a,onSubmit:r,onClear:u,type:s="search"}=l,{keyboardProps:o}=tl({isDisabled:n||a,shortcuts:{Enter:()=>{if(r){r(e.value);return}return!1},Escape:()=>{if(e.value===""&&(!t.current||t.current.value===""))return!1;e.setValue(""),u==null||u()}}}),h=()=>{e.setValue(""),u&&u()},c=()=>{var b;(b=t.current)==null||b.focus()},{labelProps:d,inputProps:m,descriptionProps:p,errorMessageProps:y,...v}=Zn({...l,value:e.value,onChange:e.setValue,onKeyDown:l.onKeyDown,onKeyUp:l.onKeyUp,type:s},t);return{labelProps:d,inputProps:H(o,{...m,defaultValue:void 0}),clearButtonProps:{"aria-label":i.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:n||a,onPress:h,onPressStart:c},descriptionProps:p,errorMessageProps:y,...v}}function na(l){let[e,t]=We(Rt(l.value),Rt(l.defaultValue)||"",l.onChange);return{value:e,setValue:t}}function Rt(l){if(l!=null)return l.toString()}const aa=f.createContext(null),ra=Zt(function(e,t){[e,t]=Re(e,t,aa);let{validationBehavior:i}=G0(X0)||{},n=e.validationBehavior??i??"native",a=f.useRef(null);[e,a]=Re(e,a,dl);let[r,u]=Z0(!e["aria-label"]&&!e["aria-labelledby"]),s=na({...e,validationBehavior:n}),{labelProps:o,inputProps:h,clearButtonProps:c,descriptionProps:d,errorMessageProps:m,...p}=ia({...J0(e),label:u,validationBehavior:n},s,a),y=J({...e,values:{isEmpty:s.value==="",isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:s},defaultClassName:"react-aria-SearchField"}),v=U(e,{global:!0});return delete v.id,x.createElement(T.div,{...v,...y,ref:t,slot:e.slot||void 0,"data-empty":s.value===""||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(Ke,{values:[[Tn,{...o,ref:r}],[ml,{...h,ref:a}],[ll,c],[Q0,{slots:{description:d,errorMessage:m}}],[en,{isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[tn,p]]},y.children))}),Ne=f.createContext({}),Pt=({children:l,className:e,fullWidth:t,variant:i,...n})=>{const a=x.useMemo(()=>Un({fullWidth:t,variant:i}),[t,i]);return g.jsx(Ne,{value:{slots:a},children:g.jsx(ra,{"data-slot":"search-field",...n,className:Q(e,a==null?void 0:a.base()),children:r=>g.jsx(g.Fragment,{children:typeof l=="function"?l(r):l})})})},ua=({children:l,className:e,...t})=>{const{slots:i}=f.use(Ne);return g.jsx(an,{className:Q(e,i==null?void 0:i.group()),"data-slot":"search-field-group",...t,children:n=>g.jsx(g.Fragment,{children:typeof l=="function"?l(n):l})})},sa=({className:l,...e})=>{const{slots:t}=f.use(Ne);return g.jsx(Xn,{className:Q(l,t==null?void 0:t.input()),"data-slot":"search-field-input",...e})},oa=({children:l,className:e,...t})=>{const{slots:i}=f.use(Ne);return l&&x.isValidElement(l)?x.cloneElement(l,{...t,className:he(i==null?void 0:i.searchIcon,e),"data-slot":"search-field-search-icon"}):g.jsx(nn,{className:he(i==null?void 0:i.searchIcon,e),"data-slot":"search-field-search-icon",...t})},ca=({className:l,...e})=>{const{slots:t}=f.use(Ne);return g.jsx(ln,{className:Q(l,t==null?void 0:t.clearButton()),"data-slot":"search-field-clear-button",slot:"clear",...e})},Be=Object.assign(Pt,{Root:Pt,Group:ua,Input:sa,SearchIcon:oa,ClearButton:ca});function da(l){return l&&l.__esModule?l.default:l}function ha(l,e){let{key:t}=l,i=e.selectionManager,n=Ue(),a=!e.selectionManager.canSelectItem(t),r=e.selectionManager.isSelected(t),u=()=>i.toggleSelection(t);const s=ie(da(Ze),"@react-aria/grid");return{checkboxProps:{id:n,"aria-label":s.format("select"),isSelected:r,isDisabled:a,onChange:u}}}const Kt=10,Nt=5;class fa{setup(e,t,i){this.delegate=e,this.state=t,this.direction=i}getDropTargetFromPoint(e,t,i){let n=this.delegate.getDropTargetFromPoint(e,t,i);return!n||n.type==="root"?n:this.resolveDropTarget(n,e,t,i)}resolveDropTarget(e,t,i,n){let a=this.pointerTracking,r=i-a.lastY,u=t-a.lastX,s=a.yDirection,o=a.xDirection;if(Math.abs(r)>Nt&&(s=r>0?"down":"up",a.yDirection=s,a.lastY=i),Math.abs(u)>Kt&&(o=u>0?"right":"left",a.xDirection=o,a.lastX=t),e.dropPosition==="before"){let d=this.state.collection.getKeyBefore(e.key);for(;d!=null;){let m=this.state.collection.getItem(d);if((m==null?void 0:m.type)==="item")break;d=(m==null?void 0:m.parentKey)??null}if(d!=null){let m={type:"item",key:d,dropPosition:"after"};n(m)&&(e=m)}}let h=this.getPotentialTargets(e,n);if(h.length===0)return{type:"root"};let c;return h.length>1?c=this.selectTarget(h,e,t,i,s,o):(c=h[0],a.boundaryContext=null),c}getPotentialTargets(e,t){if(e.dropPosition==="on")return[e];let i=e,n=this.state.collection,a=n.getItem(i.key);for(;a&&(a==null?void 0:a.type)!=="item"&&a.nextKey!=null;)i.key=a.nextKey,a=n.getItem(a.nextKey);let r=[i];if(a&&a.hasChildNodes&&this.state.expandedKeys.has(a.key)&&n.getChildren&&i.dropPosition==="after"){let o=a.firstChildKey!=null?n.getItem(a.firstChildKey):null;for(;o&&o.type!=="item";)o=o.nextKey!=null?n.getItem(o.nextKey):null;if((o==null?void 0:o.type)==="item"){const h={type:"item",key:o.key,dropPosition:"before"};return t(h)?[h]:[]}}if((a==null?void 0:a.nextKey)!=null)return[e];let u=a==null?void 0:a.parentKey,s=[];for(;u!=null;){let o=n.getItem(u),h=(o==null?void 0:o.nextKey)!=null?n.getItem(o.nextKey):null;if(!h||h.parentKey!==u){let d={type:"item",key:u,dropPosition:"after"};if(t(d)&&s.push(d),h)break}u=o==null?void 0:o.parentKey}if(s.length>0&&r.push(...s),r.length===1){let o=n.getKeyAfter(i.key),h=o!=null?n.getItem(o):null;if(o!=null&&h&&a&&h.level!=null&&a.level!=null&&h.level>a.level){let c={type:"item",key:o,dropPosition:"before"};if(t(c))return[c]}}return r.filter(t)}selectTarget(e,t,i,n,a,r){if(e.length<2)return e[0];let u=this.pointerTracking,s=this.state.collection.getItem(t.key),o=s==null?void 0:s.parentKey;if(o==null)return e[0];if(!u.boundaryContext||u.boundaryContext.parentKey!==o){let p=u.yDirection==="up"?e.length-1:0;u.boundaryContext={parentKey:o,preferredTargetIndex:p,lastSwitchY:n,lastSwitchX:i}}let h=u.boundaryContext,c=Math.abs(i-h.lastSwitchX);if(Math.abs(n-h.lastSwitchY)>Nt&&a){let p=h.preferredTargetIndex||0;a==="down"&&p===0?h.preferredTargetIndex=e.length-1:a==="up"&&p===e.length-1&&(h.preferredTargetIndex=0),u.xDirection=null}if(c>Kt&&r){let p=h.preferredTargetIndex||0;r==="left"?this.direction==="ltr"?p<e.length-1&&(h.preferredTargetIndex=p+1,h.lastSwitchX=i):p>0&&(h.preferredTargetIndex=p-1,h.lastSwitchX=i):r==="right"&&(this.direction==="ltr"?p>0&&(h.preferredTargetIndex=p-1,h.lastSwitchX=i):p<e.length-1&&(h.preferredTargetIndex=p+1,h.lastSwitchX=i)),u.yDirection=null}let m=Math.max(0,Math.min(h.preferredTargetIndex||0,e.length-1));return e[m]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class ma{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e==null?void 0:e.columnCount,this.rows=[];let t=a=>{var h,c,d;let r=this.keyMap.get(a.key);e.visitNode&&(a=e.visitNode(a)),this.keyMap.set(a.key,a);let u=new Set,s=null,o=!1;if(a.type==="item"){for(let m of a.childNodes)if(((h=m.props)==null?void 0:h.colSpan)!==void 0){o=!0;break}}for(let m of a.childNodes)m.type==="cell"&&o&&(m.colspan=(c=m.props)==null?void 0:c.colSpan,m.colSpan=(d=m.props)==null?void 0:d.colSpan,m.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):m.index),m.type==="cell"&&m.parentKey==null&&(m.parentKey=a.key),u.add(m.key),s?(s.nextKey=m.key,m.prevKey=s.key):m.prevKey=null,t(m),s=m;if(s&&(s.nextKey=null),r)for(let m of r.childNodes)u.has(m.key)||i(m)},i=a=>{this.keyMap.delete(a.key);for(let r of a.childNodes)this.keyMap.get(r.key)===r&&i(r)},n=null;for(let[a,r]of e.items.entries()){let u={...r,level:r.level??0,key:r.key??"row-"+a,type:r.type??"row",value:r.value??null,hasChildNodes:!0,childNodes:[...r.childNodes],rendered:r.rendered,textValue:r.textValue??"",index:r.index??a};n?(n.nextKey=u.key,u.prevKey=n.key):u.prevKey=null,this.rows.push(u),t(u),n=u}n&&(n.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){var e;return(e=[...this.rows][0])==null?void 0:e.key}getLastKey(){var t;let e=[...this.rows];return(t=e[e.length-1])==null?void 0:t.key}getItem(e){return this.keyMap.get(e)??null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}}const Bi="row-header-column-"+Math.random().toString(36).slice(2);let rt="row-header-column-"+Math.random().toString(36).slice(2);for(;Bi===rt;)rt="row-header-column-"+Math.random().toString(36).slice(2);function Mi(l,e){if(e.length===0)return[];let t=[],i=new Map;for(let s of e){let o=s.parentKey,h=[s];for(;o!=null;){let c=l.get(o);if(!c)break;if(i.has(c)){c.colSpan??(c.colSpan=0),c.colSpan++,c.colspan=c.colSpan;let{column:d,index:m}=i.get(c);if(m>h.length)break;for(let p=m;p<h.length;p++)d.splice(p,0,null);for(let p=h.length;p<d.length;p++)d[p]&&i.has(d[p])&&(i.get(d[p]).index=p)}else c.colSpan=1,c.colspan=1,h.push(c),i.set(c,{column:h,index:h.length-1});o=c.parentKey}t.push(h),s.index=t.length-1}let n=Math.max(...t.map(s=>s.length)),a=Array(n).fill(0).map(()=>[]),r=0;for(let s of t){let o=n-1;for(let h of s){if(h){let c=a[o],d=c.reduce((m,p)=>m+(p.colSpan??1),0);if(d<r){let m={type:"placeholder",key:"placeholder-"+h.key,colspan:r-d,colSpan:r-d,index:d,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:""};c.length>0&&(c[c.length-1].nextKey=m.key,m.prevKey=c[c.length-1].key),c.push(m)}c.length>0&&(c[c.length-1].nextKey=h.key,h.prevKey=c[c.length-1].key),h.level=o,h.colIndex=r,c.push(h)}o--}r++}let u=0;for(let s of a){let o=s.reduce((h,c)=>h+(c.colSpan??1),0);if(o<e.length){let h={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:e.length-o,colspan:e.length-o,index:o,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(h)}u++}return a.map((s,o)=>({type:"headerrow",key:"headerrow-"+o,index:o,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:""}))}class pa extends ma{constructor(e,t,i){let n=new Set,a=null,r=[];if(i!=null&&i.showSelectionCheckboxes){let c={type:"column",key:Bi,value:null,textValue:"",level:0,index:i!=null&&i.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};r.unshift(c)}if(i!=null&&i.showDragButtons){let c={type:"column",key:rt,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};r.unshift(c)}let u=[],s=new Map,o=c=>{switch(c.type){case"body":a=c;break;case"column":s.set(c.key,c),c.hasChildNodes||(r.push(c),c.props.isRowHeader&&n.add(c.key));break;case"item":u.push(c);return}for(let d of c.childNodes)o(d)};for(let c of e)o(c);let h=Mi(s,r);if(h.forEach((c,d)=>u.splice(d,0,c)),super({columnCount:r.length,items:u,visitNode:c=>(c.column=r[c.index],c)}),this._size=0,this.columns=r,this.rowHeaderColumnKeys=n,this.body=a,this.headerRows=h,this._size=[...a.childNodes].length,this.rowHeaderColumnKeys.size===0){let c=this.columns.find(d=>{var m,p;return!((m=d.props)!=null&&m.isDragButtonCell)&&!((p=d.props)!=null&&p.isSelectionCell)});c&&this.rowHeaderColumnKeys.add(c.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return(t==null?void 0:t.prevKey)??null}getKeyAfter(e){let t=this.keyMap.get(e);return(t==null?void 0:t.nextKey)??null}getFirstKey(){var e;return((e=ce(this.body.childNodes))==null?void 0:e.key)??null}getLastKey(){var e;return((e=$e(this.body.childNodes))==null?void 0:e.key)??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let t=this.getItem(e);return(t==null?void 0:t.type)==="item"?[...t.childNodes].filter(i=>i.type==="cell"):super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let i=this.rowHeaderColumnKeys;if(i){let n=[];for(let a of t.childNodes){let r=this.columns[a.index];if(i.has(r.key)&&a.textValue&&n.push(a.textValue),n.length===i.size)break}return n.join(" ")}return""}}function ga(l){return l!=null&&(!isNaN(l)||String(l).match(/^(\d+)(?=%$)/)!==null)}function ya(l){if(!l||typeof l=="number")return 1;let e=l.match(/^(.+)(?=fr$)/);return e?parseFloat(e[0]):1}function gt(l,e){if(typeof l=="string"){let t=l.match(/^(\d+)(?=%$)/);if(!t)throw new Error("Only percentages or numbers are supported for static column widths");return e*(parseFloat(t[0])/100)}return l}function Ai(l,e){return l!=null?gt(l,e):Number.MAX_SAFE_INTEGER}function Ri(l,e){return l!=null?gt(l,e):0}function ba(l,e,t,i,n){let a=l,r=Math.floor(l),u=l-r>0;l=r;let s=!1,o=e.map((c,d)=>{let m=t.get(c.key)!=null?t.get(c.key)??"1fr":c.width??c.defaultWidth??(i==null?void 0:i(d))??"1fr",p=!1,y=0,v=0,b=0;ga(m)?(y=gt(m,l),p=!0):(v=ya(m),v<=0&&(p=!0));let S=Ri(c.minWidth??(n==null?void 0:n(d))??0,l),C=Ai(c.maxWidth,l),k=Math.max(S,Math.min(y,C));return p?b=k:y>k&&(p=!0,b=k),p||(s=!0),{frozen:p,baseSize:y,hypotheticalMainSize:k,min:S,max:C,flex:v,targetMainSize:b,violation:0}});for(;s;){let c=0,d=0;o.forEach(y=>{y.frozen?c+=y.targetMainSize:(c+=y.baseSize,d+=y.flex)});let m=l-c;m>0&&o.forEach(y=>{if(!y.frozen){let v=y.flex/d;y.targetMainSize=y.baseSize+v*m}});let p=0;o.forEach(y=>{if(y.violation=0,!y.frozen){let{min:v,max:b,targetMainSize:S}=y;y.targetMainSize=Math.max(v,Math.min(S,b)),y.violation=y.targetMainSize-S,p+=y.violation}}),s=!1,o.forEach(y=>{p===0||Math.sign(p)===Math.sign(y.violation)?y.frozen=!0:y.frozen||(s=!0)})}let h=xa(o);if(u&&h.length>0){let c=a.toString().split(".")[1],d=h[h.length-1].toString();h[h.length-1]=+(d+"."+c)}return h}function xa(l){let e=0,t=0,i=[];return l.forEach(function(n){let a=n.targetMainSize,r=Math.round(a+e)-t;e+=a,t+=r,i.push(r)}),i}class Pi{constructor(e){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=(e==null?void 0:e.getDefaultWidth)??(()=>"1fr"),this.getDefaultMinWidth=(e==null?void 0:e.getDefaultMinWidth)??(()=>75)}splitColumnsIntoControlledAndUncontrolled(e){return e.reduce((t,i)=>(i.props.width!=null?t[0].set(i.key,i):t[1].set(i.key,i),t),[new Map,new Map])}recombineColumns(e,t,i,n){return new Map(e.map(a=>i.has(a.key)?[a.key,t.get(a.key)]:[a.key,n.get(a.key).props.width]))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map(([t,i])=>{var n;return[t,i.props.defaultWidth??((n=this.getDefaultWidth)==null?void 0:n.call(this,i))??"1fr"]}))}getColumnWidth(e){return this.columnWidths.get(e)??0}getColumnMinWidth(e){return this.columnMinWidths.get(e)??0}getColumnMaxWidth(e){return this.columnMaxWidths.get(e)??0}resizeColumnWidth(e,t,i,n){let a=this.columnWidths,r=!0,u=new Map;return n=Math.max(this.getColumnMinWidth(i),Math.min(this.getColumnMaxWidth(i),Math.floor(n))),e.columns.forEach(s=>{s.key===i?(u.set(s.key,n),r=!1):r?u.set(s.key,a.get(s.key)??0):u.set(s.key,s.props.width??t.get(s.key))}),u}buildColumnWidths(e,t,i){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,ba(e,t.columns.map(a=>({...a.props,key:a.key})),i,a=>this.getDefaultWidth(t.columns[a]),a=>this.getDefaultMinWidth(t.columns[a])).forEach((a,r)=>{let u=t.columns[r].key,s=t.columns[r];this.columnWidths.set(u,a),this.columnMinWidths.set(u,Ri(s.props.minWidth??this.getDefaultMinWidth(s),e)),this.columnMaxWidths.set(u,Ai(s.props.maxWidth,e))}),this.columnWidths}}function va(l,e){let{getDefaultWidth:t,getDefaultMinWidth:i,tableWidth:n=0}=l,[a,r]=f.useState(null),u=f.useMemo(()=>new Pi({getDefaultWidth:t,getDefaultMinWidth:i}),[t,i]),[s,o]=f.useMemo(()=>u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,u]),[h,c]=f.useState(()=>u.getInitialUncontrolledWidths(o)),[d,m]=f.useState(e.collection.columns);if(e.collection.columns!==d){if(e.collection.columns.length!==d.length||e.collection.columns.some((C,k)=>C.key!==d[k].key)){let C=u.getInitialUncontrolledWidths(o);c(C)}m(e.collection.columns)}let p=f.useMemo(()=>u.recombineColumns(e.collection.columns,h,o,s),[e.collection.columns,h,o,s,u]),y=f.useCallback(C=>{r(C)},[r]),v=f.useCallback((C,k)=>{let w=u.resizeColumnWidth(e.collection,h,C,k),$=new Map(Array.from(o).map(([z])=>[z,w.get(z)]));return $.set(C,k),c($),w},[o,c,u,e.collection,h]),b=f.useCallback(()=>{r(null)},[r]),S=f.useMemo(()=>u.buildColumnWidths(n,e.collection,p),[n,e.collection,p,u]);return f.useMemo(()=>({resizingColumn:a,updateResizedColumns:v,startResize:y,endResize:b,getColumnWidth:C=>u.getColumnWidth(C),getColumnMinWidth:C=>u.getColumnMinWidth(C),getColumnMaxWidth:C=>u.getColumnMaxWidth(C),tableState:e,columnWidths:S}),[u,S,a,v,y,b,e])}function $a(l){let{collection:e,focusMode:t}=l,i=l.UNSAFE_selectionState||il(l),n=f.useMemo(()=>l.disabledKeys?new Set(l.disabledKeys):new Set,[l.disabledKeys]),a=i.setFocusedKey;i.setFocusedKey=(s,o)=>{var h,c;if(t==="cell"&&s!=null){let d=e.getItem(s);if((d==null?void 0:d.type)==="item"){let m=F(d,e);o==="last"?s=((h=$e(m))==null?void 0:h.key)??null:s=((c=ce(m))==null?void 0:c.key)??null}}a(s,o)};let r=f.useMemo(()=>new rn(e,i),[e,i]);const u=f.useRef(null);return f.useEffect(()=>{if(i.focusedKey!=null&&u.current&&!e.getItem(i.focusedKey)){const s=u.current.getItem(i.focusedKey),o=(s==null?void 0:s.parentKey)!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?u.current.getItem(s.parentKey):s;if(!o){i.setFocusedKey(null);return}const h=u.current.rows,c=e.rows,d=h.length-c.length;let m=Math.min(d>1?Math.max(o.index-d+1,0):o.index,c.length-1),p=null;for(let y=Math.max(0,m);y<c.length;y++)if(!r.isDisabled(c[y].key)&&c[y].type!=="headerrow"){p=c[y];break}if(p===null){for(let y=m-1;y>=0;y--)if(!r.isDisabled(c[y].key)&&c[y].type!=="headerrow"){p=c[y];break}}if(p){const y=p.hasChildNodes?[...F(p,e)]:[],v=p.hasChildNodes&&o!==s&&s&&s.index<y.length?y[s.index].key:p.key;i.setFocusedKey(v)}else i.setFocusedKey(null)}u.current=e},[e,r,i,i.focusedKey]),{collection:e,disabledKeys:n,isKeyboardNavigationDisabled:!1,selectionManager:r}}const wa={ascending:"descending",descending:"ascending"};function Ca(l){let[e,t]=f.useState(!1),{selectionMode:i="none",showSelectionCheckboxes:n,showDragButtons:a,treeColumn:r=null}=l,u=f.useMemo(()=>({showSelectionCheckboxes:n&&i!=="none",showDragButtons:a,selectionMode:i,columns:[]}),[l.children,n,i,a]),s=un(l,f.useCallback(m=>new pa(m,null,u),[u]),u),{disabledKeys:o,selectionManager:h}=$a({...l,collection:s,disabledBehavior:l.disabledBehavior||"selection"}),[c,d]=We(l.expandedKeys?new Set(l.expandedKeys):void 0,l.defaultExpandedKeys?new Set(l.defaultExpandedKeys):new Set,l.onExpandedChange);return{collection:s,disabledKeys:o,selectionManager:h,showSelectionCheckboxes:l.showSelectionCheckboxes||!1,sortDescriptor:l.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||e,setKeyboardNavigationDisabled:t,sort(m,p){var y,v;(v=l.onSortChange)==null||v.call(l,{column:m,direction:p??(((y=l.sortDescriptor)==null?void 0:y.column)===m?wa[l.sortDescriptor.direction]:"ascending")})},expandedKeys:c,toggleKey(m){d(p=>{let y=new Set(p);return y.has(m)?y.delete(m):y.add(m),y})},treeColumn:r}}function za(l,e){let t=f.useMemo(()=>e?l.collection.filter(e):l.collection,[l.collection,e]),i=l.selectionManager.withCollection(t);return{...l,collection:t,selectionManager:i}}class Ki{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new Sa(e.layout):new jn(e.ref)),this.focusMode=e.focusMode??"row"}isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}isDisabled(e){var t,i;return this.disabledBehavior==="all"&&(((t=e.props)==null?void 0:t.isDisabled)||this.disabledKeys.has(e.key))&&((i=e.props)==null?void 0:i.disabledBehavior)!=="selection"}findPreviousKey(e,t,i=!1){let n=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;n!=null;){let a=this.collection.getItem(n);if(!a)return null;if((i||!this.isDisabled(a))&&(!t||t(a)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(e,t,i=!1){let n=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;n!=null;){let a=this.collection.getItem(n);if(!a)return null;if((i||!this.isDisabled(a))&&(!t||t(a)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let i=this.collection.getItem(e);if(!i)return null;let n=0;for(let a of F(i,this.collection)){if(a.colSpan&&a.colSpan+n>t||(a.colSpan&&(n=n+a.colSpan-1),n===t))return a.key??null;n++}return null}getKeyBelow(e,t){let i=e,n=this.collection.getItem(i);if(!n||(this.isCell(n)&&(i=n.parentKey??null),i==null))return null;if(i=this.findNextKey(i,a=>a.type==="item",t==null?void 0:t.includeDisabled),i!=null){if(this.isCell(n)){let a=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(i,a)}if(this.focusMode==="row")return i}return null}getKeyAbove(e,t){let i=e,n=this.collection.getItem(i);if(!n||(this.isCell(n)&&(i=n.parentKey??null),i==null))return null;if(i=this.findPreviousKey(i,a=>a.type==="item",t==null?void 0:t.includeDisabled),i!=null){if(this.isCell(n)){let a=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(i,a)}if(this.focusMode==="row")return i}return null}getKeyRightOf(e){var i,n;let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let a=F(t,this.collection);return(this.direction==="rtl"?(i=$e(a))==null?void 0:i.key:(n=ce(a))==null?void 0:n.key)??null}if(this.isCell(t)&&t.parentKey!=null){let a=this.collection.getItem(t.parentKey);if(!a)return null;let r=F(a,this.collection),u=(this.direction==="rtl"?Te(r,t.index-1):Te(r,t.index+1))??null;return u?u.key??null:this.focusMode==="row"?t.parentKey??null:(this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){var i,n;let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let a=F(t,this.collection);return(this.direction==="rtl"?(i=ce(a))==null?void 0:i.key:(n=$e(a))==null?void 0:n.key)??null}if(this.isCell(t)&&t.parentKey!=null){let a=this.collection.getItem(t.parentKey);if(!a)return null;let r=F(a,this.collection),u=(this.direction==="rtl"?Te(r,t.index+1):Te(r,t.index-1))??null;return u?u.key??null:this.focusMode==="row"?t.parentKey??null:(this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){var a,r;let i=e??null,n;if(i!=null){if(n=this.collection.getItem(i),!n)return null;if(this.isCell(n)&&!t&&n.parentKey!=null){let u=this.collection.getItem(n.parentKey);return u?((a=ce(F(u,this.collection)))==null?void 0:a.key)??null:null}}if(i=this.findNextKey(void 0,u=>u.type==="item"),i!=null&&(n&&this.isCell(n)&&t||this.focusMode==="cell")){let u=this.collection.getItem(i);if(!u)return null;i=((r=ce(F(u,this.collection)))==null?void 0:r.key)??null}return i}getLastKey(e,t){var a,r;let i=e??null,n;if(i!=null){if(n=this.collection.getItem(i),!n)return null;if(this.isCell(n)&&!t&&n.parentKey!=null){let u=this.collection.getItem(n.parentKey);if(!u)return null;let s=F(u,this.collection);return((a=$e(s))==null?void 0:a.key)??null}}if(i=this.findPreviousKey(void 0,u=>u.type==="item"),i!=null&&(n&&this.isCell(n)&&t||this.focusMode==="cell")){let u=this.collection.getItem(i);if(!u)return null;let s=F(u,this.collection);i=((r=$e(s))==null?void 0:r.key)??null}return i}getKeyPageAbove(e){let t=e,i=this.layoutDelegate.getItemRect(t);if(!i)return null;let n=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>n&&t!=null&&(t=this.getKeyAbove(t)??null,t!=null);)i=this.layoutDelegate.getItemRect(t);return t}getKeyPageBelow(e){let t=e,i=this.layoutDelegate.getItemRect(t);if(!i)return null;let n=this.layoutDelegate.getVisibleRect().height,a=Math.min(this.layoutDelegate.getContentSize().height,i.y+n);for(;i&&i.y+i.height<a;){let r=this.getKeyBelow(t);if(r==null)break;i=this.layoutDelegate.getItemRect(r),t=r}return t}getKeyForSearch(e,t){var u;let i=t??null;if(!this.collator)return null;let n=this.collection;if(i=t??this.getFirstKey(),i==null)return null;let a=n.getItem(i);if(!a)return null;a.type==="cell"&&(i=a.parentKey??null);let r=!1;for(;i!=null;){let s=n.getItem(i);if(!s)return null;if(s.textValue){let o=s.textValue.slice(0,e.length);if(this.collator.compare(o,e)===0)return this.isRow(s)&&this.focusMode==="cell"?((u=ce(F(s,this.collection)))==null?void 0:u.key)??null:s.key}i=this.findNextKey(i,o=>o.type==="item"),i==null&&!r&&(i=this.getFirstKey(),r=!0)}return null}}class Sa{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){var t;return((t=this.layout.getLayoutInfo(e))==null?void 0:t.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const yt=new WeakMap;function ka(l,e,t){let{isVirtualized:i,disallowTypeAhead:n,keyboardDelegate:a,focusMode:r,scrollRef:u,getRowText:s,onRowAction:o,onCellAction:h,escapeKeyBehavior:c="clearSelection",shouldSelectOnPressUp:d,keyboardNavigationBehavior:m="arrow"}=l,{selectionManager:p}=e;!l["aria-label"]&&!l["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let y=hl({usage:"search",sensitivity:"base"}),{direction:v}=ue(),b=e.selectionManager.disabledBehavior,S=f.useMemo(()=>a||new Ki({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:b,ref:t,direction:v,collator:y,focusMode:r}),[a,e.collection,e.disabledKeys,b,t,v,y,r]),{collectionProps:C}=sn({ref:t,selectionManager:p,keyboardDelegate:S,isVirtualized:i,scrollRef:u,disallowTypeAhead:n,escapeKeyBehavior:c}),k=Ue(l.id);yt.set(e,{keyboardDelegate:S,actions:{onRowAction:o,onCellAction:h},shouldSelectOnPressUp:d,keyboardNavigationBehavior:m});let w=ta({selectionManager:p,hasItemActions:!!(o||h)}),$=U(l,{labelable:!0}),z=f.useCallback(A=>{if(p.isFocused){pe(A.currentTarget,G(A))||p.setFocused(!1);return}pe(A.currentTarget,G(A))&&p.setFocused(!0)},[p]),D=f.useMemo(()=>({onBlur:C.onBlur,onFocus:z}),[z,C.onBlur]),R=on(t,{isDisabled:e.collection.size!==0}),B=H($,{role:"grid",id:k,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?D:C,e.collection.size===0&&{tabIndex:R?-1:0}||void 0,w);return i&&(B["aria-rowcount"]=e.collection.size,B["aria-colcount"]=e.collection.columnCount),Qn({getRowText:s},e),{gridProps:B}}const bt=new WeakMap;function ut(l){return typeof l=="string"?l.replace(/\s*/g,""):""+l}function Ni(l,e){let t=bt.get(l);if(!t)throw new Error("Unknown grid");return`${t}-${ut(e)}`}function Fi(l,e,t){let i=bt.get(l);if(!i)throw new Error("Unknown grid");return`${i}-${ut(e)}-${ut(t)}`}function st(l,e){return[...l.collection.rowHeaderColumnKeys].map(t=>Fi(l,e,t)).join(" ")}var Ti={};Ti={ascending:"تصاعدي",ascendingSort:l=>`ترتيب حسب العمود ${l.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:l=>`${l.value} بالبكسل`,descending:"تنازلي",descendingSort:l=>`ترتيب حسب العمود ${l.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var ji={};ji={ascending:"възходящ",ascendingSort:l=>`сортирано по колона ${l.columnName} във възходящ ред`,collapse:"Свиване",columnSize:l=>`${l.value} пиксела`,descending:"низходящ",descendingSort:l=>`сортирано по колона ${l.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Hi={};Hi={ascending:"vzestupně",ascendingSort:l=>`řazeno vzestupně podle sloupce ${l.columnName}`,collapse:"Sbalit",columnSize:l=>`${l.value} pixelů`,descending:"sestupně",descendingSort:l=>`řazeno sestupně podle sloupce ${l.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Vi={};Vi={ascending:"stigende",ascendingSort:l=>`sorteret efter kolonne ${l.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:l=>`${l.value} pixels`,descending:"faldende",descendingSort:l=>`sorteret efter kolonne ${l.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Li={};Li={ascending:"aufsteigend",ascendingSort:l=>`sortiert nach Spalte ${l.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:l=>`${l.value} Pixel`,descending:"absteigend",descendingSort:l=>`sortiert nach Spalte ${l.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var _i={};_i={ascending:"αύξουσα",ascendingSort:l=>`διαλογή ανά στήλη ${l.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:l=>`${l.value} pixel`,descending:"φθίνουσα",descendingSort:l=>`διαλογή ανά στήλη ${l.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Wi={};Wi={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:l=>`sorted by column ${l.columnName} in ascending order`,descendingSort:l=>`sorted by column ${l.columnName} in descending order`,columnSize:l=>`${l.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Oi={};Oi={ascending:"ascendente",ascendingSort:l=>`ordenado por columna ${l.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:l=>`${l.value} píxeles`,descending:"descendente",descendingSort:l=>`ordenado por columna ${l.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Ui={};Ui={ascending:"tõusev järjestus",ascendingSort:l=>`sorditud veeru järgi ${l.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:l=>`${l.value} pikslit`,descending:"laskuv järjestus",descendingSort:l=>`sorditud veeru järgi ${l.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var qi={};qi={ascending:"nouseva",ascendingSort:l=>`lajiteltu sarakkeen ${l.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:l=>`${l.value} pikseliä`,descending:"laskeva",descendingSort:l=>`lajiteltu sarakkeen ${l.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Yi={};Yi={ascending:"croissant",ascendingSort:l=>`trié en fonction de la colonne ${l.columnName} par ordre croissant`,collapse:"Réduire",columnSize:l=>`${l.value} pixels`,descending:"décroissant",descendingSort:l=>`trié en fonction de la colonne ${l.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Gi={};Gi={ascending:"עולה",ascendingSort:l=>`מוין לפי עמודה ${l.columnName} בסדר עולה`,collapse:"כווץ",columnSize:l=>`${l.value} פיקסלים`,descending:"יורד",descendingSort:l=>`מוין לפי עמודה ${l.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var Xi={};Xi={ascending:"rastući",ascendingSort:l=>`razvrstano po stupcima ${l.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:l=>`${l.value} piksela`,descending:"padajući",descendingSort:l=>`razvrstano po stupcima ${l.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Zi={};Zi={ascending:"növekvő",ascendingSort:l=>`rendezve a(z) ${l.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:l=>`${l.value} képpont`,descending:"csökkenő",descendingSort:l=>`rendezve a(z) ${l.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Ji={};Ji={ascending:"crescente",ascendingSort:l=>`in ordine crescente in base alla colonna ${l.columnName}`,collapse:"Comprimi",columnSize:l=>`${l.value} pixel`,descending:"decrescente",descendingSort:l=>`in ordine decrescente in base alla colonna ${l.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Qi={};Qi={ascending:"昇順",ascendingSort:l=>`列 ${l.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:l=>`${l.value} ピクセル`,descending:"降順",descendingSort:l=>`列 ${l.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var e0={};e0={ascending:"오름차순",ascendingSort:l=>`${l.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:l=>`${l.value} 픽셀`,descending:"내림차순",descendingSort:l=>`${l.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var t0={};t0={ascending:"didėjančia tvarka",ascendingSort:l=>`surikiuota pagal stulpelį ${l.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:l=>`${l.value} piks.`,descending:"mažėjančia tvarka",descendingSort:l=>`surikiuota pagal stulpelį ${l.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var l0={};l0={ascending:"augošā secībā",ascendingSort:l=>`kārtots pēc kolonnas ${l.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:l=>`${l.value} pikseļi`,descending:"dilstošā secībā",descendingSort:l=>`kārtots pēc kolonnas ${l.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var i0={};i0={ascending:"stigende",ascendingSort:l=>`sortert etter kolonne ${l.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:l=>`${l.value} piksler`,descending:"synkende",descendingSort:l=>`sortert etter kolonne ${l.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var n0={};n0={ascending:"oplopend",ascendingSort:l=>`gesorteerd in oplopende volgorde in kolom ${l.columnName}`,collapse:"Samenvouwen",columnSize:l=>`${l.value} pixels`,descending:"aflopend",descendingSort:l=>`gesorteerd in aflopende volgorde in kolom ${l.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var a0={};a0={ascending:"rosnąco",ascendingSort:l=>`posortowano według kolumny ${l.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:l=>`Liczba pikseli: ${l.value}`,descending:"malejąco",descendingSort:l=>`posortowano według kolumny ${l.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var r0={};r0={ascending:"crescente",ascendingSort:l=>`classificado pela coluna ${l.columnName} em ordem crescente`,collapse:"Recolher",columnSize:l=>`${l.value} pixels`,descending:"decrescente",descendingSort:l=>`classificado pela coluna ${l.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var u0={};u0={ascending:"ascendente",ascendingSort:l=>`Ordenar por coluna ${l.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:l=>`${l.value} pixels`,descending:"descendente",descendingSort:l=>`Ordenar por coluna ${l.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var s0={};s0={ascending:"crescătoare",ascendingSort:l=>`sortate după coloana ${l.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:l=>`${l.value} pixeli`,descending:"descrescătoare",descendingSort:l=>`sortate după coloana ${l.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var o0={};o0={ascending:"возрастание",ascendingSort:l=>`сортировать столбец ${l.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:l=>`${l.value} пикс.`,descending:"убывание",descendingSort:l=>`сортировать столбец ${l.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var c0={};c0={ascending:"vzostupne",ascendingSort:l=>`zoradené zostupne podľa stĺpca ${l.columnName}`,collapse:"Zbaliť",columnSize:l=>`Počet pixelov: ${l.value}`,descending:"zostupne",descendingSort:l=>`zoradené zostupne podľa stĺpca ${l.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var d0={};d0={ascending:"naraščajoče",ascendingSort:l=>`razvrščeno po stolpcu ${l.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:l=>`${l.value} slikovnih pik`,descending:"padajoče",descendingSort:l=>`razvrščeno po stolpcu ${l.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var h0={};h0={ascending:"rastući",ascendingSort:l=>`sortirano po kolonama ${l.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:l=>`${l.value} piksela`,descending:"padajući",descendingSort:l=>`sortirano po kolonama ${l.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var f0={};f0={ascending:"stigande",ascendingSort:l=>`sorterat på kolumn ${l.columnName} i stigande ordning`,collapse:"Dölj",columnSize:l=>`${l.value} pixlar`,descending:"fallande",descendingSort:l=>`sorterat på kolumn ${l.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var m0={};m0={ascending:"artan sırada",ascendingSort:l=>`${l.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:l=>`${l.value} piksel`,descending:"azalan sırada",descendingSort:l=>`${l.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var p0={};p0={ascending:"висхідний",ascendingSort:l=>`відсортовано за стовпцем ${l.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:l=>`${l.value} пікс.`,descending:"низхідний",descendingSort:l=>`відсортовано за стовпцем ${l.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var g0={};g0={ascending:"升序",ascendingSort:l=>`按列 ${l.columnName} 升序排序`,collapse:"折叠",columnSize:l=>`${l.value} 像素`,descending:"降序",descendingSort:l=>`按列 ${l.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var y0={};y0={ascending:"遞增",ascendingSort:l=>`已依據「${l.columnName}」欄遞增排序`,collapse:"收合",columnSize:l=>`${l.value} 像素`,descending:"遞減",descendingSort:l=>`已依據「${l.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var De={};De={"ar-AE":Ti,"bg-BG":ji,"cs-CZ":Hi,"da-DK":Vi,"de-DE":Li,"el-GR":_i,"en-US":Wi,"es-ES":Oi,"et-EE":Ui,"fi-FI":qi,"fr-FR":Yi,"he-IL":Gi,"hr-HR":Xi,"hu-HU":Zi,"it-IT":Ji,"ja-JP":Qi,"ko-KR":e0,"lt-LT":t0,"lv-LV":l0,"nb-NO":i0,"nl-NL":n0,"pl-PL":a0,"pt-BR":r0,"pt-PT":u0,"ro-RO":s0,"ru-RU":o0,"sk-SK":c0,"sl-SI":d0,"sr-SP":h0,"sv-SE":f0,"tr-TR":m0,"uk-UA":p0,"zh-CN":g0,"zh-TW":y0};class Ea extends Ki{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e,t){let i=this.collection.getItem(e);if(!i)return null;if(i.type==="column"){let n=ce(F(i,this.collection));if(n)return n.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,i.index)}return super.getKeyBelow(e,t)}getKeyAbove(e,t){let i=this.collection.getItem(e);if(!i)return null;if(i.type==="column"){let r=i.parentKey!=null?this.collection.getItem(i.parentKey):null;return r&&r.type==="column"?r.key:null}let n=super.getKeyAbove(e,t),a=n!=null?this.collection.getItem(n):null;return a&&a.type!=="headerrow"?n:this.isCell(i)?this.collection.columns[i.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,n=>n.type==="column");if(t!=null)return t;let i=this.collection.headerRows[e.level];for(let n of F(i,this.collection))if(n.type==="column")return n.key;return null}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,a=>a.type==="column");if(t!=null)return t;let i=this.collection.headerRows[e.level],n=[...F(i,this.collection)];for(let a=n.length-1;a>=0;a--){let r=n[a];if(r.type==="column")return r.key}return null}getKeyRightOf(e){let t=this.collection.getItem(e);return t?t.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e):null}getKeyLeftOf(e){let t=this.collection.getItem(e);return t?t.type==="column"?this.direction==="rtl"?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e):null}getKeyForSearch(e,t){if(!this.collator)return null;let i=this.collection,n=t??this.getFirstKey();if(n==null)return null;let a=i.getItem(n);(a==null?void 0:a.type)==="cell"&&(n=a.parentKey??null);let r=!1;for(;n!=null;){let u=i.getItem(n);if(!u)return null;if(u.textValue){let s=u.textValue.slice(0,e.length);if(this.collator.compare(s,e)===0)return u.key}for(let s of F(u,this.collection)){let o=i.columns[s.index];if(i.rowHeaderColumnKeys.has(o.key)&&s.textValue){let h=s.textValue.slice(0,e.length);if(this.collator.compare(h,e)===0){let c=t!=null?i.getItem(t):a;return(c==null?void 0:c.type)==="cell"?s.key:u.key}}}n=this.getKeyBelow(n),n==null&&!r&&(n=this.getFirstKey(),r=!0)}return null}}function Da(l){return l&&l.__esModule?l.default:l}function Ia(l,e,t){let{keyboardDelegate:i,isVirtualized:n,layoutDelegate:a,layout:r}=l,u=hl({usage:"search",sensitivity:"base"}),{direction:s}=ue(),o=e.selectionManager.disabledBehavior,h=f.useMemo(()=>i||new Ea({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:o,ref:t,direction:s,collator:u,layoutDelegate:a,layout:r}),[i,e.collection,e.disabledKeys,o,t,s,u,a,r]),c=Ue(l.id);bt.set(e,c);let{gridProps:d}=ka({...l,id:c,keyboardDelegate:h},e,t);n&&(d["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(d.role="treegrid");let{column:m,direction:p}=e.sortDescriptor||{},y=ie(Da(De),"@react-aria/table"),v=f.useMemo(()=>{var C;let S=((C=e.collection.columns.find(k=>k.key===m))==null?void 0:C.textValue)??"";return p&&m?y.format(`${p}Sort`,{columnName:S}):void 0},[p,m,e.collection.columns]),b=Oe(v);return fl(()=>{v&&Qt(v,"assertive",500)},[v]),{gridProps:H(d,b,{"aria-describedby":[b["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}function b0(l,e,t){let{node:i,isVirtualized:n,focusMode:a,allowsArrowNavigation:r,shouldSelectOnPressUp:u,onAction:s}=l,{direction:o}=ue(),{keyboardDelegate:h,actions:{onCellAction:c},keyboardNavigationBehavior:d}=yt.get(e),m=a??(d==="tab"?"cell":"child"),p=f.useRef(null),y=()=>{if(t.current){let $=tt(t.current);if(m==="child"){if(It(t.current)&&t.current!==Me(Ae(t.current)))return;let z=e.selectionManager.childFocusStrategy==="last"?nt($):$.firstChild();if(z){ee(z);return}}(p.current!=null&&i.key!==p.current||!It(t.current))&&ee(t.current)}},{itemProps:v,isPressed:b}=nl({selectionManager:e.selectionManager,key:i.key,ref:t,isVirtualized:n,focus:y,shouldSelectOnPressUp:u,onAction:c?()=>c(i.key):s,isDisabled:e.collection.size===0}),S=$=>{var R,B,A,P,N;let z=Me(Ae(t.current));if(!pe($.currentTarget,G($))||e.isKeyboardNavigationDisabled||!t.current||!z)return;let D=tt(t.current);switch(D.currentNode=z,$.key){case"ArrowLeft":{let M=o==="rtl"?D.nextNode():D.previousNode();if(m==="child"&&M===t.current&&(M=null),$.preventDefault(),$.stopPropagation(),M)ee(M),be(M,{containingElement:xe(t.current)});else{if(((R=h.getKeyLeftOf)==null?void 0:R.call(h,i.key))!==i.key){(B=t.current.parentElement)==null||B.dispatchEvent(new KeyboardEvent($.nativeEvent.type,$.nativeEvent));break}m==="cell"&&o==="rtl"?(ee(t.current),be(t.current,{containingElement:xe(t.current)})):(D.currentNode=t.current,M=o==="rtl"?D.firstChild():nt(D),M&&(ee(M),be(M,{containingElement:xe(t.current)})))}break}case"ArrowRight":{let M=o==="rtl"?D.previousNode():D.nextNode();if(m==="child"&&M===t.current&&(M=null),$.preventDefault(),$.stopPropagation(),M)ee(M),be(M,{containingElement:xe(t.current)});else{if(((A=h.getKeyRightOf)==null?void 0:A.call(h,i.key))!==i.key){(P=t.current.parentElement)==null||P.dispatchEvent(new KeyboardEvent($.nativeEvent.type,$.nativeEvent));break}m==="cell"&&o==="ltr"?(ee(t.current),be(t.current,{containingElement:xe(t.current)})):(D.currentNode=t.current,M=o==="rtl"?nt(D):D.firstChild(),M&&(ee(M),be(M,{containingElement:xe(t.current)})))}break}case"ArrowUp":case"ArrowDown":!$.altKey&&pe(t.current,G($))&&($.stopPropagation(),$.preventDefault(),(N=t.current.parentElement)==null||N.dispatchEvent(new KeyboardEvent($.nativeEvent.type,$.nativeEvent)));break}},C=$=>{let z=Me(Ae(t.current));if(!(!pe($.currentTarget,G($))||e.isKeyboardNavigationDisabled||!t.current||!z)){if(d==="tab"&&G($)!==t.current&&$.key!=="Tab"){$.stopPropagation();return}switch($.key){case"Tab":if(d==="tab"){let D=tt(t.current,{tabbable:!0});D.currentNode=z,($.shiftKey?D.previousNode():D.nextNode())&&$.stopPropagation()}}}},k=$=>{if(p.current=i.key,G($)!==t.current){cn()||e.selectionManager.setFocusedKey(i.key);return}m==="child"&&$.relatedTarget&&pe(t.current,$.relatedTarget)||requestAnimationFrame(()=>{m==="child"&&Me(Ae(t.current))===t.current&&y()})},w=H(v,{role:"gridcell",onKeyDownCapture:d!=="tab"||r?S:void 0,onKeyDown:d==="tab"?C:void 0,"aria-colspan":i.colSpan,"aria-colindex":i.colIndex!=null?i.colIndex+1:void 0,colSpan:n?void 0:i.colSpan,onFocus:k,...m==="child"&&d==="tab"?{tabIndex:-1}:{}});return n&&(w["aria-colindex"]=(i.colIndex??i.index)+1),u&&w.tabIndex!=null&&w.onPointerDown==null&&(w.onPointerDown=$=>{let z=$.currentTarget,D=z.getAttribute("tabindex");z.removeAttribute("tabindex"),requestAnimationFrame(()=>{D!=null&&z.setAttribute("tabindex",D)})}),{gridCellProps:w,isPressed:b}}function nt(l){let e=null,t=null;do t=l.lastChild(),t&&(e=t);while(t);return e}function Ba(l){return l&&l.__esModule?l.default:l}function Ma(l,e,t){var b,S;let{node:i}=l,n=i.props.allowsSorting,{gridCellProps:a}=b0({focusMode:"child",...l},e,t),r=i.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:u,isPressed:s}=al({isDisabled:!n||r,onPress(){e.sort(i.key)},ref:t}),{focusableProps:o}=Jt({},t),h,c=((b=e.sortDescriptor)==null?void 0:b.column)===i.key,d=(S=e.sortDescriptor)==null?void 0:S.direction;i.props.allowsSorting&&!Bt()&&(h=c?d:"none");let m=ie(Ba(De),"@react-aria/table"),p;n&&(p=`${m.format("sortable")}`,c&&d&&Bt()&&(p=`${p}, ${m.format(d)}`));let y=Oe(p),v=e.collection.size===0;return f.useEffect(()=>{v&&e.selectionManager.focusedKey===i.key&&e.selectionManager.setFocusedKey(null)},[v,e.selectionManager,i.key]),{columnHeaderProps:{...H(o,a,u,y,v?{tabIndex:-1}:null),role:"columnheader",id:Ni(e,i.key),"aria-colspan":i.colSpan&&i.colSpan>1?i.colSpan:void 0,"aria-sort":h},isPressed:s}}function Aa(l,e,t){var p,y;let{node:i,isVirtualized:n,shouldSelectOnPressUp:a,onAction:r}=l,{actions:u,shouldSelectOnPressUp:s}=yt.get(e),o=u.onRowAction?()=>{var v;return(v=u.onRowAction)==null?void 0:v.call(u,i.key)}:r,{itemProps:h,...c}=nl({selectionManager:e.selectionManager,key:i.key,ref:t,isVirtualized:n,shouldSelectOnPressUp:s||a,onAction:o||(p=i==null?void 0:i.props)!=null&&p.onAction?dn((y=i==null?void 0:i.props)==null?void 0:y.onAction,o):void 0,isDisabled:e.collection.size===0}),d=e.selectionManager.isSelected(i.key),m={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0,"aria-disabled":c.isDisabled||void 0,...h};return n&&(m["aria-rowindex"]=i.index+1),{rowProps:m,...c}}function Ra(l){return l&&l.__esModule?l.default:l}const Ft={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Pa(l,e,t){var y,v;let{node:i,isVirtualized:n}=l,{rowProps:a,...r}=Aa(l,e,t),{direction:u}=ue();n&&e.treeColumn==null?a["aria-rowindex"]=i.index+1+e.collection.headerRows.length:delete a["aria-rowindex"];let s=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(i.key)),o=ie(Ra(De),"@react-aria/table"),h=hn({"aria-label":s?o.format("collapse"):o.format("expand"),"aria-labelledby":st(e,i.key)}),c={},d={};if(e.treeColumn!=null){let b=e.collection.getItem(i.key);if(b!=null){let S=Tt(e.collection,i),C=((y=b.props)==null?void 0:y.hasChildRows)||((v=b.props)==null?void 0:v.UNSTABLE_childItems)||(S==null?void 0:S.type)!=="cell",k=e.collection.getItem(i.parentKey),w=k.type==="tablebody"||k.type==="body",$=Tt(e.collection,k);for(;$&&$.type!=="item"&&$.prevKey!=null;)$=e.collection.getItem($.prevKey);c={onKeyDown:z=>{z.key===Ft.expand[u]&&e.selectionManager.focusedKey===b.key&&C&&e.expandedKeys!=="all"&&!e.expandedKeys.has(b.key)?(e.toggleKey(b.key),z.stopPropagation()):z.key===Ft.collapse[u]&&e.selectionManager.focusedKey===b.key&&(e.expandedKeys!=="all"?C&&e.expandedKeys.has(b.key)?(e.toggleKey(b.key),z.stopPropagation()):!e.expandedKeys.has(b.key)&&b.parentKey!=null&&b.level>0&&(e.selectionManager.setFocusedKey(b.parentKey),z.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(b.key),z.stopPropagation()))},"aria-expanded":C?e.expandedKeys==="all"||e.expandedKeys.has(i.key):void 0,"aria-level":b.level+1,"aria-posinset":b.index-(w?0:e.collection.columnCount)+1,"aria-setsize":$.index-(w?0:e.collection.columnCount)+1},d={isDisabled:r.isDisabled,onPress:()=>{r.isDisabled||(e.toggleKey(i.key),e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(i.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...h}}}let m=fn(i.props),p=r.hasAction?m:{};return{rowProps:{...H(a,c,p),"aria-labelledby":st(e,i.key)},expandButtonProps:d,...r}}function Tt(l,e){return"lastChildKey"in e?e.lastChildKey!=null?l.getItem(e.lastChildKey):null:Array.from(e.childNodes).findLast(t=>t.parentKey===e.key)}function Ka(l,e,t){let{node:i,isVirtualized:n}=l,a={role:"row"};return n&&e.treeColumn==null&&(a["aria-rowindex"]=i.index+1),{rowProps:a}}function Na(l,e,t){var r;let{gridCellProps:i,isPressed:n}=b0(l,e,t),a=(r=l.node.column)==null?void 0:r.key;return a!=null&&e.collection.rowHeaderColumnKeys.has(a)&&(i.role="rowheader",i.id=Fi(e,l.node.parentKey,a)),{gridCellProps:i,isPressed:n}}function Fa(l){return l&&l.__esModule?l.default:l}function Ta(l,e){let{key:t}=l;const{checkboxProps:i}=ha(l,e);return{checkboxProps:{...i,"aria-labelledby":`${i.id} ${st(e,t)}`}}}function ja(l){let{isEmpty:e,isSelectAll:t,selectionMode:i}=l.selectionManager;return{checkboxProps:{"aria-label":ie(Fa(De),"@react-aria/table").format(i==="single"?"select":"selectAll"),isSelected:t,isDisabled:i!=="multiple"||l.collection.size===0||l.collection.rows.length===1&&l.collection.rows[0].type==="loader",isIndeterminate:!e&&!t,onChange:()=>l.selectionManager.toggleSelectAll()}}}function Ha(l){return l&&l.__esModule?l.default:l}function Va(l,e,t){let{column:i,triggerRef:n,isDisabled:a,onResizeStart:r,onResize:u,onResizeEnd:s,"aria-label":o}=l;const h=ie(Ha(De),"@react-aria/table");let c=Ue(),d=e.resizingColumn===i.key,m=f.useRef(d),p=f.useRef(null),y=f.useRef(!1),v=e.tableState.isKeyboardNavigationDisabled,[b,S]=f.useState(!1),{direction:C}=ue(),k=f.useCallback(E=>{m.current||(p.current=e.updateResizedColumns(E.key,e.getColumnWidth(E.key)),e.startResize(E.key),e.tableState.setKeyboardNavigationDisabled(!0),r==null||r(p.current)),m.current=!0},[e,r]),w=f.useCallback((E,K)=>{let Y=e.updateResizedColumns(E.key,K);u==null||u(Y),p.current=Y},[e,u]),$=f.useCallback(E=>{m.current&&(p.current==null&&(p.current=e.updateResizedColumns(E.key,e.getColumnWidth(E.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(!1),s==null||s(p.current),m.current=!1,n!=null&&n.current&&!y.current&&ee(n.current)),p.current=null},[e,n,s]),z=()=>{if(v){$(i);return}return!1},{keyboardProps:D}=tl({shortcuts:{Escape:()=>z(),Enter:()=>{v?$(i):k(i)}," ":()=>z(),Tab:()=>z()}});const R=f.useRef(0),{moveProps:B}=Yn({onMoveStart(E){R.current=e.getColumnWidth(i.key),E.pointerType==="mouse"&&S(!0),k(i)},onMove(E){let{deltaX:K,deltaY:Y,pointerType:L0}=E;C==="rtl"&&(K*=-1),L0==="keyboard"&&(Y!==0&&K===0&&(K=Y*-1),K*=10),K!==0&&(R.current+=K,w(i,R.current))},onMoveEnd(E){let{pointerType:K}=E;R.current=0,S(!1),(K==="mouse"||K==="touch"&&y.current)&&$(i)}});let A=f.useCallback(E=>{var K;v&&((K=B.onKeyDown)==null||K.call(B,E))},[v,B]),P=Math.floor(e.getColumnMinWidth(i.key)),N=Math.floor(e.getColumnMaxWidth(i.key));N===1/0&&(N=Number.MAX_SAFE_INTEGER);let M=Math.floor(e.getColumnWidth(i.key)),L=el();L==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(L="touch");let ae=(n==null?void 0:n.current)==null&&(L==="keyboard"||L==="virtual")&&!d?h.format("resizerDescription"):void 0,X=Oe(ae),re={"aria-label":o,"aria-orientation":"horizontal","aria-labelledby":`${c} ${Ni(e.tableState,i.key)}`,"aria-valuetext":h.format("columnSize",{value:M}),type:"range",min:P,max:N,value:M,...X};const se=f.useCallback(()=>{t.current&&ee(t.current)},[t]);let oe=e.resizingColumn,Fe=f.useRef(null),Ie=Ce(k);f.useEffect(()=>{if(Fe.current!==oe&&oe!=null&&oe===i.key){y.current=Me()===t.current,Ie(i);let E=setTimeout(()=>se(),0),K=setTimeout(se,400);return()=>{clearTimeout(E),clearTimeout(K)}}Fe.current=oe},[oe,i,se,t]);let et=E=>{let K=e.getColumnWidth(i.key),Y=parseFloat(G(E).value);Y>K?Y=K+10:Y=K-10,w(i,Y)},{pressProps:fe}=al({preventFocusOnPress:!0,onPressStart:E=>{if(!(E.ctrlKey||E.altKey||E.metaKey||E.shiftKey||E.pointerType==="keyboard")){if(E.pointerType==="virtual"&&e.resizingColumn!=null){$(i);return}se(),E.pointerType!=="virtual"&&k(i)}},onPress:E=>{(E.pointerType==="touch"&&y.current||E.pointerType==="mouse")&&e.resizingColumn!=null&&$(i)}}),{visuallyHiddenProps:W}=qe();return{resizerProps:H(D,{...B,onKeyDown:A},fe,{style:{touchAction:"none"}}),inputProps:H(W,{id:c,onBlur:()=>{$(i)},onChange:et,disabled:a},re),isResizing:d,isMouseResizing:b}}function La(){return{rowGroupProps:{role:"rowgroup"}}}function x0(){return La()}function _a(l){return l&&l.__esModule?l.default:l}class Wa extends $n{withExpandedKeys(e){let t=this.clone();return t.expandedKeys=e,t.frozen=this.frozen,t.rows=Array.from(t.getRows()),t}addNode(e){super.addNode(e),this.columnsDirty||(this.columnsDirty=e.type==="column"),e.type==="tableheader"&&(this.head=e)}getRows(){let e=[];for(let t of this)(t.type==="tablebody"||t.type==="tablefooter")&&e.push(...this.getChildren(t.key));return e}get body(){for(let e of this)if(e.type==="tablebody")return e;return new Le(-2)}commit(e,t,i=!1){this.updateColumns(i),this.firstKey=e,this.lastKey=t,this.rows=[];for(let n of this.getRows()){let a=n.lastChildKey;if(a!=null){let r=this.getItem(a);for(;r&&r.type!=="cell";)r=r.prevKey!=null?this.getItem(r.prevKey):null;if(r){let u=(r.colIndex??r.index)+(r.colSpan??1);if(u!==this.columns.length&&!i)throw new Error(`Cell count must match column count. Found ${u} cells and ${this.columns.length} columns.`)}}this.rows.push(n)}super.commit(e,t,i)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,i=n=>{switch(n.type){case"column":t.set(n.key,n),n.hasChildNodes||(n.index=this.columns.length,this.columns.push(n),n.props.isRowHeader&&this.rowHeaderColumnKeys.add(n.key));break}for(let a of this.getChildren(n.key))i(a)};for(let n of this.getChildren(this.head.key))i(n);if(this.headerRows=Mi(t,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let t=this.getItem(e);t&&(yield t),e=(t==null?void 0:t.nextKey)??null}}getFirstKey(){for(let e of this)if(e.type==="tablebody")return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let t=this.getItem(e);for(;(t==null?void 0:t.lastChildKey)!=null&&(t.type!=="item"||this.expandedKeys.has(t.key));)t=this.getItem(t.lastChildKey);return t==null?void 0:t.key}getKeyAfter(e){let t=this.getItem(e);if((t==null?void 0:t.type)==="column")return t.nextKey??null;if(!t)return null;if(t.type==="item"&&t.firstChildKey!=null&&this.expandedKeys.has(t.key)){let i=this.getItem(t.firstChildKey);for(;i;){if(i.type==="item")return i.key;i=i.nextKey!=null?this.getItem(i.nextKey):null}}return super.getKeyAfter(e)}getKeyBefore(e){var n;let t=this.getItem(e);if((t==null?void 0:t.type)==="column")return t.prevKey??null;if(!t)return null;let i=null;if(t.prevKey!=null){for(t=this.getItem(t.prevKey);t&&(t.type!=="item"||this.expandedKeys.has(t.key))&&t.lastChildKey!=null;)t=this.getItem(t.lastChildKey);i=(t==null?void 0:t.key)??null}return i==null&&(i=t.parentKey),i!=null&&((n=this.getItem(i))==null?void 0:n.type)==="tableheader"?null:i}getChildren(e){let t=this.getItem(e);if(!t){for(let n of this.headerRows)if(n.key===e)return n.childNodes}let i=this;return(t==null?void 0:t.type)==="tablebody"||(t==null?void 0:t.type)==="tablefooter"?{*[Symbol.iterator](){let n=t.firstChildKey,a=n!=null?i.getItem(n):null;for(;a;){yield a;let r=i.getKeyAfter(a.key);if(a=r!=null?i.getItem(r):null,a&&a.parentKey===t.parentKey)break}}}:{*[Symbol.iterator](){let n=i.getItem(e),a=(n==null?void 0:n.firstChildKey)!=null?i.getItem(n.firstChildKey):null;for(;a&&(yield a,a=a.nextKey!=null?i.getItem(a.nextKey):null,!((n==null?void 0:n.type)==="item"&&(a==null?void 0:a.type)!=="cell")););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let i=this.rowHeaderColumnKeys,n=[];for(let a of this.getChildren(e)){let r=this.columns[a.index];if(i.has(r.key)&&a.textValue&&n.push(a.textValue),n.length===i.size)break}return n.join(" ")}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new Ve(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const xt=f.createContext(null),Oa=f.forwardRef(function(e,t){let i=ye(t),n=f.useRef(null),a=f.useRef(null),[r,u]=f.useState(0);we(()=>{let o=n.current;for(;o&&o!==i.current&&!pn(o);)o=o.parentElement;a.current=o},[i]),sl({ref:a,box:"border-box",onResize(){var o;u(((o=a.current)==null?void 0:o.clientWidth)??0)}}),we(()=>{var o;u(((o=a.current)==null?void 0:o.clientWidth)??0)},[]);let s=f.useMemo(()=>({tableRef:n,scrollRef:a,tableWidth:r,useTableColumnResizeState:va,onResizeStart:e.onResizeStart,onResize:e.onResize,onResizeEnd:e.onResizeEnd}),[n,r,e.onResizeStart,e.onResize,e.onResizeEnd]);return x.createElement(T.div,{render:e.render,...U(e,{global:!0}),ref:i,className:e.className||"react-aria-ResizableTableContainer",style:e.style,onScroll:e.onScroll},x.createElement(xt.Provider,{value:s},e.children))}),Ua=f.createContext(null),ne=f.createContext(null),Je=f.createContext(null),qa=f.forwardRef(function(e,t){var h;[e,t]=Re(e,t,Ua);let i=il(e),{selectionBehavior:n,selectionMode:a,disallowEmptySelection:r}=i,u=!!((h=e.dragAndDropHooks)!=null&&h.useDraggableCollectionState),s=f.useMemo(()=>({selectionBehavior:a==="none"?null:n,selectionMode:a,disallowEmptySelection:r,allowsDragging:u}),[n,a,r,u]),o=x.createElement(Xa.Provider,{value:s},x.createElement(Ye,e));return x.createElement(xn,{content:o,createCollection:()=>new Wa},c=>x.createElement(Ga,{props:e,forwardedRef:t,selectionState:i,collection:c}))});let Ya=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.table,{...e,ref:t})});const jt={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ga({props:l,forwardedRef:e,selectionState:t,collection:i}){[l,e]=Re(l,e,Mt);let{shouldUseVirtualFocus:n,disallowTypeAhead:a,filter:r,...u}=l,s=f.useContext(xt);e=ye(f.useMemo(()=>wn(e,s==null?void 0:s.tableRef),[e,s==null?void 0:s.tableRef]));let[o,h]=We(l.expandedKeys?new Set(l.expandedKeys):void 0,l.defaultExpandedKeys?new Set(l.defaultExpandedKeys):new Set,l.onExpandedChange);i=f.useMemo(()=>i.withExpandedKeys(o),[i,o]);let c=Ca({...u,collection:i,children:void 0,UNSAFE_selectionState:t,expandedKeys:o,onExpandedChange:h}),d=za(c,r),{isVirtualized:m,layoutDelegate:p,dropTargetDelegate:y,CollectionRoot:v}=f.useContext(j),{dragAndDropHooks:b}=l,{gridProps:S}=Ia({...u,layoutDelegate:p,isVirtualized:m},d,e),C=d.selectionManager,k=!!(b!=null&&b.useDraggableCollectionState),w=!!(b!=null&&b.useDroppableCollectionState);f.useRef(k),f.useRef(w),f.useEffect(()=>{},[k,w]);let $,z,D,R=!1,B=null,A=f.useRef(null),{direction:P}=ue(),[N]=f.useState(()=>new fa);if(k&&b){$=b.useDraggableCollectionState({collection:d.collection,selectionManager:C,preview:b.renderDragPreview?A:void 0}),b.useDraggableCollection({},$,e);let Ie=b.DragPreview;B=b.renderDragPreview?x.createElement(Ie,{ref:A},b.renderDragPreview):null}if(w&&b){z=b.useDroppableCollectionState({collection:d.collection,selectionManager:C});let Ie=new Ln({collection:d.collection,disabledKeys:C.disabledKeys,disabledBehavior:C.disabledBehavior,ref:e,layoutDelegate:p}),et=b.dropTargetDelegate||y||new b.ListDropTargetDelegate(i.rows,e);N.setup(et,c,P),D=b.useDroppableCollection({keyboardDelegate:Ie,dropTargetDelegate:N,onDropActivate:fe=>{var W;if(fe.target.type==="item"){let E=fe.target.key,K=c.collection.getItem(E),Y=o.has(E);K&&K.hasChildNodes&&(!Y||(W=b==null?void 0:b.isVirtualDragging)!=null&&W.call(b))&&c.toggleKey(E)}},onKeyDown:fe=>{let W=z==null?void 0:z.target;if(W&&W.type==="item"&&W.dropPosition==="on"){let E=c.collection.getItem(W.key);(fe.key===jt.expand[P]&&(E!=null&&E.hasChildNodes)&&!c.expandedKeys.has(W.key)||fe.key===jt.collapse[P]&&(E!=null&&E.hasChildNodes)&&c.expandedKeys.has(W.key))&&c.toggleKey(W.key)}}},z,e),R=z.isDropTarget({type:"root"})}let{focusProps:M,isFocused:L,isFocusVisible:ae}=ge(),X=J({...l,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:R,isFocused:L,isFocusVisible:ae,state:d}}),re=!!(k&&!($!=null&&$.isDisabled)),se=X.style,oe=null;s&&(oe=s.useTableColumnResizeState({tableWidth:s.tableWidth},d),m||(se={...se,tableLayout:"fixed",width:"min-content"}));let Fe=U(l,{global:!0});return x.createElement(Ke,{values:[[ne,d],[Je,oe],[Ee,{dragAndDropHooks:b,dragState:$,dropState:z}],[_n,{render:sr}],[Mt,null],[dl,null]]},x.createElement(Cn,null,x.createElement(Ya,{...H(Fe,X,S,M,D==null?void 0:D.collectionProps),style:se,ref:e,slot:l.slot||void 0,onScroll:l.onScroll,"data-allows-dragging":re||void 0,"data-drop-target":R||void 0,"data-focused":L||void 0,"data-focus-visible":ae||void 0},x.createElement(zn,null,x.createElement(v,{collection:d.collection,scrollRef:(s==null?void 0:s.scrollRef)??e,persistedKeys:Wn(C,b,z)})))),B)}const Xa=f.createContext(null),wt=class wt extends Ge{};wt.type="tableheader";let Ve=wt,Za=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.thead,{...e,ref:t})});const Ja=ft(Ve,(l,e)=>{let t=f.useContext(ne).collection,i=bn({items:t.headerRows,children:f.useCallback(s=>{switch(s.type){case"headerrow":return x.createElement(er,{item:s});default:throw new Error("Unsupported node type in TableHeader: "+s.type)}},[])}),{rowGroupProps:n}=x0(),{hoverProps:a,isHovered:r}=ke({onHoverStart:l.onHoverStart,onHoverChange:l.onHoverChange,onHoverEnd:l.onHoverEnd}),u=J({...l,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:r}});return x.createElement(Za,{...H(U(l,{global:!0}),n,a),...u,ref:e,"data-hovered":r||void 0},i)},l=>x.createElement(Ye,{dependencies:l.dependencies,items:l.columns},l.children));let Qa=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement("div",{...e,ref:t}):x.createElement("tr",{...e,ref:t})});function er({item:l}){let e=f.useRef(null),t=f.useContext(ne),{isVirtualized:i,CollectionBranch:n}=f.useContext(j),{rowProps:a}=Ka({node:l,isVirtualized:i},t,e),{checkboxProps:r}=ja(t);return x.createElement(Qa,{...a,ref:e},x.createElement(Ke,{values:[[rl,{slots:{selection:r}}],[ul,{slots:{selection:r}}]]},x.createElement(n,{collection:t.collection,parent:l})))}const Ct=class Ct extends Ge{};Ct.type="column";let ot=Ct,tr=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.th,{...e,ref:t})});const lr=mt(ot,(l,e,t)=>{var S,C;let i=ye(e),n=f.useContext(ne),{isVirtualized:a}=f.useContext(j),{columnHeaderProps:r,isPressed:u}=Ma({node:t,isVirtualized:a,focusMode:l.focusMode,allowsArrowNavigation:l.allowsArrowNavigation},n,i),{isFocused:s,isFocusVisible:o,focusProps:h}=ge(),c=f.useContext(Je),d=!1;c&&(d=c.resizingColumn===t.key);let{hoverProps:m,isHovered:p}=ke({isDisabled:!l.allowsSorting}),y=J({...l,id:void 0,children:t.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p,isPressed:u,isFocused:s,isFocusVisible:o,allowsSorting:t.props.allowsSorting,sortDirection:((S=n.sortDescriptor)==null?void 0:S.column)===t.key?n.sortDescriptor.direction:void 0,isResizing:d,startResize:()=>{if(c)c.startResize(t.key),n.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:k=>{n.sort(t.key,k)}}}),v=y.style;c&&(v={...v,width:c.getColumnWidth(t.key)});let b=U(l,{global:!0});return delete b.id,x.createElement(tr,{...H(b,r,h,m),...y,style:v,ref:i,"data-hovered":p||void 0,"data-pressed":u||void 0,"data-focused":s||void 0,"data-focus-visible":o||void 0,"data-resizing":d||void 0,"data-allows-sorting":t.props.allowsSorting||void 0,"data-sort-direction":((C=n.sortDescriptor)==null?void 0:C.column)===t.key?n.sortDescriptor.direction:void 0},x.createElement(Ke,{values:[[v0,{column:t,triggerRef:i}],[j,ol]]},y.children))}),v0=f.createContext(null),ir=f.forwardRef(function(e,t){let i=f.useContext(Je);if(!i)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let n=ie(_a(On),"react-aria-components"),{onResizeStart:a,onResize:r,onResizeEnd:u}=f.useContext(xt),{column:s,triggerRef:o}=f.useContext(v0),h=f.useRef(null),{resizerProps:c,inputProps:d,isResizing:m,isMouseResizing:p}=Va({column:s,"aria-label":e["aria-label"]||n.format("tableResizer"),onResizeStart:a,onResize:r,onResizeEnd:u,triggerRef:o},i,h),{focusProps:y,isFocused:v,isFocusVisible:b}=ge(),{hoverProps:S,isHovered:C}=ke(e),k=i.getColumnMinWidth(s.key)>=i.getColumnWidth(s.key),w=i.getColumnMaxWidth(s.key)<=i.getColumnWidth(s.key),{direction:$}=ue(),z="both";k?z=$==="rtl"?"right":"left":w?z=$==="rtl"?"left":"right":z="both";let D=ye(t),[R,B]=f.useState("");f.useEffect(()=>{if(!D.current)return;let N=window.getComputedStyle(D.current);B(N.cursor)},[D,z]);let A=J({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:v,isFocusVisible:b,isResizing:m,isHovered:C,resizableDirection:z}}),P=U(e,{global:!0});return x.createElement(T.div,{ref:D,role:"presentation",...H(P,A,c,S),"data-hovered":C||void 0,"data-focused":v||void 0,"data-focus-visible":b||void 0,"data-resizing":m||void 0,"data-resizable-direction":z},A.children,x.createElement("input",{ref:h,...H(d,y)}),m&&p&&vn.createPortal(x.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:R},"data-testid":"cursor-overlay"}),document.body))}),zt=class zt extends cl{};zt.type="tablebody";let Le=zt,nr=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.tbody,{...e,ref:t})});const ar=ft(Le,(l,e,t)=>{let i=f.useContext(ne),{isVirtualized:n}=f.useContext(j),a=i.collection,{CollectionBranch:r}=f.useContext(j),{dragAndDropHooks:u,dropState:s}=f.useContext(Ee),o=!!(u!=null&&u.useDroppableCollectionState)&&!(s!=null&&s.isDisabled),h=o&&!!s&&(s.isDropTarget({type:"root"})??!1),c=a.size===0,d={isDropTarget:h,isEmpty:c},m=J({...l,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:d}),p,y=a.columnCount;if(c&&l.renderEmptyState&&i){let S={},C={},k={};n?(C["aria-colspan"]=y,k={display:"contents"}):C.colSpan=y,p=x.createElement(ze,{role:"row",...S,style:k},x.createElement(Se,{role:"rowheader",...C,style:k},l.renderEmptyState(d)))}let{rowGroupProps:v}=x0(),b=U(l,{global:!0});return x.createElement(nr,{...H(b,m,v),ref:e,"data-empty":c||void 0},o&&x.createElement(fr,null),x.createElement(r,{collection:a,parent:t,renderDropIndicator:Vn(u,s)}),p)}),St=class St extends cl{};St.type="tablefooter";let Ht=St;const $0=f.createContext({isFocusVisibleWithinRow:!1}),kt=class kt extends Ge{filter(e,t,i){let n=e.getChildren(this.key);for(let a of n)if(i(a.textValue,a)){let r=this.clone();return t.addDescendants(r,e),r}return null}};kt.type="item";let ct=kt,ze=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.tr,{...e,ref:t})});const rr=ft(ct,(l,e,t)=>{var re;let i=ye(e),n=f.useContext(ne),{dragAndDropHooks:a,dragState:r,dropState:u}=f.useContext(Ee),{isVirtualized:s,CollectionBranch:o}=f.useContext(j),h=r&&!(r.isDisabled||r.selectionManager.isDisabled(t.key)),{rowProps:c,expandButtonProps:d,...m}=Pa({node:t,shouldSelectOnPressUp:!!r,isVirtualized:s},n,i),{isFocused:p,isFocusVisible:y,focusProps:v}=ge(),{isFocusVisible:b,focusProps:S}=ge({within:!0}),{hoverProps:C,isHovered:k}=ke({isDisabled:!m.allowsSelection&&!m.hasAction&&!h,onHoverStart:l.onHoverStart,onHoverChange:l.onHoverChange,onHoverEnd:l.onHoverEnd}),{checkboxProps:w}=Ta({key:t.key},n),$;r&&a&&($=a.useDraggableItem({key:t.key,hasDragButton:!0},r));let z,D=f.useRef(null),{visuallyHiddenProps:R}=qe();u&&a&&(z=a.useDropIndicator({target:{type:"item",key:t.key,dropPosition:"on"}},u,D));let B=f.useRef(null);f.useEffect(()=>{r&&B.current},[]);let A=r&&r.isDragging(t.key),{children:P,...N}=l,M=l.hasChildItems||((re=n.collection.getItem(t.lastChildKey))==null?void 0:re.type)!=="cell",L=M&&n.expandedKeys.has(t.key),ae=J({...N,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":t.level+1},values:{...m,state:n,isHovered:k,isFocused:p,isFocusVisible:y,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,isDragging:A,isDropTarget:z==null?void 0:z.isDropTarget,isFocusVisibleWithin:b,id:t.key,hasChildItems:M,isExpanded:L,level:t.level+1}}),X=U(l,{global:!0});return delete X.id,delete X.onClick,x.createElement(x.Fragment,null,z&&!z.isHidden&&x.createElement(ze,{role:"row",style:{height:0}},x.createElement(Se,{role:"gridcell",colSpan:n.collection.columnCount,style:{padding:0}},x.createElement("div",{role:"button",...R,...z.dropIndicatorProps,ref:D}))),x.createElement(ze,{...H(X,ae,c,v,C,$==null?void 0:$.dragProps,S),ref:i,"data-disabled":m.isDisabled||void 0,"data-selected":m.isSelected||void 0,"data-hovered":k||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":y||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":A||void 0,"data-drop-target":(z==null?void 0:z.isDropTarget)||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode,"data-focus-visible-within":b||void 0,"data-expanded":L||void 0,"data-has-child-items":M||void 0,"data-level":t.level+1},x.createElement(Ke,{values:[[rl,{slots:{[lt]:{},selection:w}}],[ul,{slots:{[lt]:{},selection:w}}],[ll,{slots:{[lt]:{},chevron:d,drag:{...$==null?void 0:$.dragButtonProps,ref:B,style:{pointerEvents:"none"}}}}],[mn,{isSelected:m.isSelected}],[$0,{isFocusVisibleWithinRow:b}]]},x.createElement(o,{collection:n.collection,parent:t}))))},l=>{if(l.id==null&&typeof l.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let e=[l.value].concat(l.dependencies);return x.createElement(Ye,{dependencies:e,items:l.columns,idScope:l.id},l.children)}),Et=class Et extends Ge{};Et.type="cell";let dt=Et,Se=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.td,{...e,ref:t})});const ur=mt(dt,(l,e,t)=>{var z;let i=ye(e),n=f.useContext(ne),{dragState:a}=f.useContext(Ee),{isVirtualized:r}=f.useContext(j);t.column=n.collection.columns[t.index];let{gridCellProps:u,isPressed:s}=Na({node:t,shouldSelectOnPressUp:!!a,isVirtualized:r,focusMode:l.focusMode,allowsArrowNavigation:l.allowsArrowNavigation},n,i),{isFocused:o,isFocusVisible:h,focusProps:c}=ge(),{hoverProps:d,isHovered:m}=ke({}),{isFocusVisibleWithinRow:p}=f.useContext($0),y=t.parentKey!=null?n.selectionManager.isSelected(t.parentKey):!1,v=t.colIndex||t.index,b=n.collection.getItem(t.parentKey),S=b.props.hasChildItems||((z=n.collection.getItem(b.lastChildKey))==null?void 0:z.type)!=="cell",C=S&&n.expandedKeys.has(t.parentKey),k=n.selectionManager.isDisabled(t.parentKey),w=J({...l,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:o,isFocusVisible:h,isFocusVisibleWithinRow:p,isPressed:s,isHovered:m,isSelected:y,id:t.key,columnIndex:v,hasChildItems:S,isExpanded:C,isDisabled:k,level:b.level+1,isTreeColumn:t.column.key===n.treeColumn}}),$=U(l,{global:!0});return delete $.id,x.createElement(Se,{...H($,w,u,c,d),ref:i,"data-focused":o||void 0,"data-focus-visible":h||void 0,"data-focus-visible-within-row":p||void 0,"data-pressed":s||void 0,"data-selected":y||void 0,"data-column-index":v,"data-expanded":C||void 0,"data-has-child-items":S||void 0,"data-level":b.level+1,"data-tree-column":t.column.key===n.treeColumn||void 0,"data-disabled":k||void 0},x.createElement(j.Provider,{value:ol},w.children))});function sr(l,e){var o;e=ye(e);let{dragAndDropHooks:t,dropState:i}=f.useContext(Ee),n=f.useRef(null),{dropIndicatorProps:a,isHidden:r,isDropTarget:u}=t.useDropIndicator(l,i,n);if(r)return null;let s=i&&l.target.type==="item"?(((o=i.collection.getItem(l.target.key))==null?void 0:o.level)||0)+1:1;return x.createElement(hr,{...l,dropIndicatorProps:a,isDropTarget:u,buttonRef:n,level:s,ref:e})}let or=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.tr,{...e,ref:t})}),cr=f.forwardRef(function(e,t){let{isVirtualized:i}=f.useContext(j);return i?x.createElement(T.div,{...e,ref:t}):x.createElement(T.td,{...e,ref:t})});function dr(l,e){let{dropIndicatorProps:t,isDropTarget:i,buttonRef:n,level:a,...r}=l,u=f.useContext(ne),{visuallyHiddenProps:s}=qe(),o=J({...r,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:i}});return x.createElement(or,{...U(l,{global:!0}),...o,role:"row",ref:e,"data-drop-target":i||void 0,"aria-level":a},x.createElement(cr,{role:"gridcell",colSpan:u.collection.columnCount,style:{padding:0}},x.createElement("div",{...s,role:"button",...t,ref:n}),o.children))}const hr=f.forwardRef(dr);function fr(){let l=f.useContext(ne),{dragAndDropHooks:e,dropState:t}=f.useContext(Ee),i=f.useRef(null),{dropIndicatorProps:n}=e.useDropIndicator({target:{type:"root"}},t,i),a=t.isDropTarget({type:"root"}),{visuallyHiddenProps:r}=qe();return!a&&n["aria-hidden"]?null:x.createElement(ze,{role:"row","aria-hidden":n["aria-hidden"],style:{height:0}},x.createElement(Se,{role:"gridcell",colSpan:l.collection.columnCount,style:{padding:0}},x.createElement("div",{role:"button",...r,...n,ref:i})))}const mr=mt(gn,function(e,t,i){let n=f.useContext(ne),{isVirtualized:a}=f.useContext(j),{isLoading:r,onLoadMore:u,scrollOffset:s,...o}=e,h=n.collection.columns.length,c=f.useRef(null),d=f.useMemo(()=>({onLoadMore:u,collection:n==null?void 0:n.collection,sentinelRef:c,scrollOffset:s}),[u,s,n==null?void 0:n.collection]);Hn(d,c);let m=J({...o,id:void 0,children:i.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":i.level+1},values:void 0}),p={},y={},v={};return a?(y["aria-colspan"]=h,v={display:"contents"}):y.colSpan=h,x.createElement(x.Fragment,null,x.createElement(ze,{style:{height:0},inert:yn(!0)},x.createElement(Se,{style:{padding:0,border:0}},x.createElement("div",{"data-testid":"loadMoreSentinel",ref:c,style:{position:"relative",height:1,width:1}}))),r&&m.children&&x.createElement(ze,{...H(U(e,{global:!0}),p),...m,role:"row",ref:t,"aria-level":i.level+1,"data-level":i.level+1},x.createElement(Se,{role:"rowheader",...y,style:v},m.children)))});class Z{constructor(e=0,t=0){this.x=e,this.y=t}copy(){return new Z(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}}class I{constructor(e=0,t=0,i=0,n=0){this.x=e,this.y=t,this.width=i,this.height=n}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new Z(this.x,this.y)}get topRight(){return new Z(this.maxX,this.y)}get bottomLeft(){return new Z(this.x,this.maxY)}get bottomRight(){return new Z(this.maxX,this.maxY)}intersects(e){return this.area>0&&e.area>0&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),n=Math.max(this.maxX,e.maxX)-t,a=Math.max(this.maxY,e.maxY)-i;return new I(t,i,n,a)}intersection(e){if(!this.intersects(e))return new I(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new I(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new I(this.x,this.y,this.width,this.height)}}class V{constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}copy(){return new V(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}}let pr=0;class w0{constructor(e,t){this.virtualizer=e,this.key=++pr,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new yr(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}}class gr extends w0{constructor(e){super(e,"root")}}class yr extends w0{constructor(e,t,i){super(e,i),this.parent=t}}function br(l,e){if(l===e)return!0;if(l.size!==e.size)return!1;for(let t of l)if(!e.has(t))return!1;return!0}class xr{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;e.height+=t,this.velocity.y<0&&(e.y-=t);let i=this.visibleRect.width/3;return e.width+=i,this.velocity.x<0&&(e.x-=i),e}constructor(){this.startTime=0,this.velocity=new Z(0,0),this.visibleRect=new I}}const vr=4;function Qe(l){return l==="x"?"width":"height"}function $r(l,e,t,i,n){let a=t(l.key);if(!a)return null;let r=a.rect[l.corner][e]-i[e]-l.offset;if(r===0)return null;let u=i[e]+r,s=Qe(e),o=Math.max(0,n[s]-i[s]),h=Math.max(0,Math.min(o,u));return h!==i[e]?h:null}function wr(l,e,t,i,n=()=>!0){let a=Qe(e),r=null;for(let[u,s]of i){if(!s||!n(s))continue;let o=s.rect.intersection(t)[a];if(s.rect.area>0&&o>=vr){let h=s.rect.getCornerInRect(t)??"topLeft",c=s.rect[h][e]-t[e];(!r||(l==="end"?c<r.offset:c>r.offset))&&(r={key:u,corner:h,offset:c})}}return r}function Cr(l,e,t,i){if(l==="start")return 0;let n=Qe(e);return Math.max(0,t[n]-i[n])}function Vt(l,e,t,i,n){if(t==="start")return l[i]<=n;let a=Qe(i);return e[a]-(l[i]+l[a])<=n}function zr(l,e,t,i,n,a,r,u,s,o){let h=c=>e==="x"?new I(c,s.y,s.width,s.height):new I(s.x,c,s.width,s.height);if(t){let c=$r(t,e,u,s,o);if(c!=null)return h(c)}if(i&&!n&&(!a||r>0)){let c=h(Cr(l,e,o,s));return c.equals(s)?null:c}return null}class Sr{reset(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}captureBeforeLayout(e,t,i){return e?wr(e.edge,e.axis,i,t,e.isAnchorable):null}resolveAfterLayout(e){let{anchorInfo:t,anchor:i,postLayoutInfos:n,previousVisibleRect:a,previousContentSize:r,contentSize:u,itemSizeChanged:s,isScrolling:o,getLayoutInfo:h}=e;if(!t)return null;let c=this.hadEstimatedVisibleItems,d=this.wasNearAnchorEdge,m=!1;for(let C of n.values())if(C.estimatedSize){m=!0;break}if(this.hadEstimatedVisibleItems=m,c||(this.wasNearAnchorEdge=Vt(a,r,t.edge,t.axis,t.threshold)),a.area===0)return null;let p=t.axis==="x"?"width":"height",y=u[p]-r[p],v=!this.hasSnappedToEdge;if(this.hasSnappedToEdge=!0,!(v||y!==0||s))return null;let b=v||c&&d||Vt(a,r,t.edge,t.axis,t.threshold);c||(this.wasNearAnchorEdge=b);let S=v||c&&d?null:i;return zr(t.edge,t.axis,S,b,o,s,y,h,a,u)}constructor(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}}class kr{constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new V,this.visibleRect=new I,this.size=new V,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new gr(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new xr,this._scrollAnchor=new Sr}isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:n}=e.layoutInfo;e.content=n||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let n=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,n),n}keyAtPoint(e){let t=new I(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let n of i)if(n.rect.intersects(t))return n.key;return null}relayout(e={}){var c,d;let t=((d=(c=this.layout).UNSTABLE_getScrollAnchorInfo)==null?void 0:d.call(c,e.layoutOptions))??null,i=null;if(t){let m=[];for(let[p,y]of this._visibleViews){let v=this.layout.getLayoutInfo(p)??y.layoutInfo;v&&m.push([p,v])}i=this._scrollAnchor.captureBeforeLayout(t,m,this.visibleRect)}let n=this.contentSize,a=this.visibleRect;this.layout.update(e);let r=this.layout.getContentSize();this.contentSize=new V(r.width,r.height);let u=this._scrollAnchor.resolveAfterLayout({anchorInfo:t,anchor:i,postLayoutInfos:t?this.getVisibleLayoutInfos():new Map,previousVisibleRect:a,previousContentSize:n,contentSize:this.contentSize,itemSizeChanged:e.itemSizeChanged??!1,isScrolling:this._isScrolling,getLayoutInfo:m=>this.layout.getLayoutInfo(m)});if(u){this.delegate.setVisibleRect(u);return}let s=this.visibleRect,o=e.contentChanged?0:s.x,h=e.contentChanged?0:s.y;if(o=Math.max(0,Math.min(this.contentSize.width-s.width,o)),h=Math.max(0,Math.min(this.contentSize.height-s.height,h)),o!==s.x||h!==s.y){let m=new I(o,h,s.width,s.height);this.delegate.setVisibleRect(m)}else this.updateSubviews()}getVisibleLayoutInfos(){let e;e=this._overscanManager.getOverscannedRect();let t=this.layout.getVisibleLayoutInfos(e),i=new Map;for(let n of t)i.set(n.key,n);return i}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,n]of this._visibleViews){let a=e.get(i);(!a||n.parent!==this.getParentView(a))&&(this._visibleViews.delete(i),n.parent.reuseChild(n),t.add(n))}for(let[i,n]of e){let a=this._visibleViews.get(i);if(!a)a=this.getReusableView(n),a.parent.children.add(a),this._visibleViews.set(i,a),t.delete(a);else{a.layoutInfo=n;let r=this.collection.getItem(n.key);a.content!==r&&(a.content!=null&&this._renderedContent.delete(a.content),this._renderView(a))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let n=this._visibleViews.get(i);n.parent.children.delete(n),n.parent.children.add(n)}}render(e){let t=this,i=!1,n=!1,a=!1,r=!1,u=!1,s=!1,o=!1,h=!1;if(e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,this._scrollAnchor.reset(),i=!0),e.persistedKeys&&!br(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),!this.visibleRect.equals(e.visibleRect)||!this.size.equals(e.size)){this._overscanManager.setVisibleRect(e.visibleRect);let c=new I(this.visibleRect.x,this.visibleRect.y,this.size.width,this.size.height),d=new I(e.visibleRect.x,e.visibleRect.y,e.size.width,e.size.height);this.layout.shouldInvalidate(d,c)?(n=!e.visibleRect.pointEquals(this.visibleRect),a=!this.size.equals(e.size),r=this.size.width!==e.size.width,u=this.size.height!==e.size.height,i=!0):h=!0,t.visibleRect=e.visibleRect,t.size=e.size}return e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(a||(a=e.invalidationContext.sizeChanged||!1),r||(r=e.invalidationContext.widthChanged||!1),u||(u=e.invalidationContext.heightChanged||!1),n||(n=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),o||(o=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||a||n||o)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:n,sizeChanged:a,widthChanged:r,heightChanged:u,itemSizeChanged:s,layoutOptionsChanged:o,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}}const Er=typeof document<"u"?x.useLayoutEffect:()=>{};function Dr(l){let[e,t]=f.useState(new I(0,0,0,0)),[i,n]=f.useState(new V),[a,r]=f.useState(!1),[u,s]=f.useState({}),o=f.useRef(!1),[h]=f.useState(()=>new kr({collection:l.collection,layout:l.layout,delegate:{setVisibleRect(b){t(b),o.current=!0},renderView:l.renderView,invalidate:s}}));Er(()=>{o.current&&(o.current=!1,l.onVisibleRectChange(e))});let c=f.useMemo(()=>l.layoutOptions!=null?{...u,layoutOptions:l.layoutOptions}:u,[u,l.layoutOptions]),d=h.render({layout:l.layout,collection:l.collection,persistedKeys:l.persistedKeys,layoutOptions:l.layoutOptions,visibleRect:e,size:l.allowsWindowScrolling?i:e,invalidationContext:c,isScrolling:a}),m=h.contentSize,p=f.useCallback(()=>{r(!0)},[]),y=f.useCallback(()=>{r(!1)},[]);return f.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,size:i,setSize:n,contentSize:m,isScrolling:a,startScrolling:p,endScrolling:y}),[h,d,t,i,n,m,a,p,y])}class Ir{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t;return((t=this.getLayoutInfo(e))==null?void 0:t.rect)??null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class O{constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}copy(){let e=new O(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}}const me=48;class C0 extends Ir{constructor(e={}){super(),this.rowSize=(e==null?void 0:e.rowSize)??(e==null?void 0:e.rowHeight)??null,this.orientation=e.orientation??"vertical",this.estimatedRowSize=(e==null?void 0:e.estimatedRowSize)??(e==null?void 0:e.estimatedRowHeight)??null,this.headingSize=(e==null?void 0:e.headingSize)??(e==null?void 0:e.headingHeight)??null,this.estimatedHeadingSize=(e==null?void 0:e.estimatedHeadingSize)??(e==null?void 0:e.estimatedHeadingHeight)??null,this.loaderSize=(e==null?void 0:e.loaderSize)??(e==null?void 0:e.loaderHeight)??null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new I,this.requestedRect=new I,this.contentSize=new V}get collection(){return this.virtualizer.collection}get rowHeight(){return this.rowSize}get estimatedRowHeight(){return this.estimatedRowSize}get headingHeight(){return this.headingSize}get estimatedHeadingHeight(){return this.estimatedHeadingSize}get loaderHeight(){return this.loaderSize}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))==null?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){let t=this.orientation==="horizontal"?"x":"y",i=this.orientation==="horizontal"?"width":"height";if(e[i]>1){let r=(this.rowSize??this.estimatedRowSize??me)+this.gap;e=e.copy();let u=Math.floor(e[t]/r)*r,s=e[i]+e[t]-u;e[t]=u,e[i]=Math.ceil(s/r)*r}this.layoutIfNeeded(e);let n=[],a=r=>{for(let u of r)this.isVisible(u,e)&&(n.push(u.layoutInfo),u.children&&a(u.children))};return a(this.rootNodes),n}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new I(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new I(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;return e.sizeChanged||this.rowSize!==((t==null?void 0:t.rowSize)??(t==null?void 0:t.rowHeight)??this.rowSize)||this.orientation!==((t==null?void 0:t.orientation)??this.orientation)||this.headingSize!==((t==null?void 0:t.headingSize)??(t==null?void 0:t.headingHeight)??this.headingSize)||this.loaderSize!==((t==null?void 0:t.loaderSize)??(t==null?void 0:t.loaderHeight)??this.loaderSize)||this.gap!==((t==null?void 0:t.gap)??this.gap)||this.padding!==((t==null?void 0:t.padding)??this.padding)}shouldInvalidateLayoutOptions(e,t){return((e==null?void 0:e.rowSize)??(e==null?void 0:e.rowHeight))!==((t==null?void 0:t.rowSize)??(t==null?void 0:t.rowHeight))||e.orientation!==t.orientation||((e==null?void 0:e.estimatedRowSize)??(e==null?void 0:e.estimatedRowHeight))!==((t==null?void 0:t.estimatedRowSize)??(t==null?void 0:t.estimatedRowHeight))||((e==null?void 0:e.headingSize)??(e==null?void 0:e.headingHeight))!==((t==null?void 0:t.headingSize)??(t==null?void 0:t.headingHeight))||((e==null?void 0:e.estimatedHeadingSize)??(e==null?void 0:e.estimatedHeadingHeight))!==((t==null?void 0:t.estimatedHeadingSize)??(t==null?void 0:t.estimatedHeadingHeight))||((e==null?void 0:e.loaderSize)??(e==null?void 0:e.loaderHeight))!==((t==null?void 0:t.loaderSize)??(t==null?void 0:t.loaderHeight))||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;if(this.rowSize=(i==null?void 0:i.rowSize)??(i==null?void 0:i.rowHeight)??this.rowSize,this.orientation=(i==null?void 0:i.orientation)??this.orientation,this.estimatedRowSize=(i==null?void 0:i.estimatedRowSize)??(i==null?void 0:i.estimatedRowHeight)??this.estimatedRowSize,this.headingSize=(i==null?void 0:i.headingSize)??(i==null?void 0:i.headingHeight)??this.headingSize,this.estimatedHeadingSize=(i==null?void 0:i.estimatedHeadingSize)??(i==null?void 0:i.estimatedHeadingHeight)??this.estimatedHeadingSize,this.loaderSize=(i==null?void 0:i.loaderSize)??(i==null?void 0:i.loaderHeight)??this.loaderSize,this.dropIndicatorThickness=(i==null?void 0:i.dropIndicatorThickness)??this.dropIndicatorThickness,this.gap=(i==null?void 0:i.gap)??this.gap,this.padding=(i==null?void 0:i.padding)??this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let n of this.lastCollection.getKeys())t.getItem(n)||this.layoutNodes.get(n)&&this.layoutNodes.delete(n);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=this.orientation==="horizontal"?"x":"y",n=this.orientation==="horizontal"?"maxX":"maxY",a=Br(t,o=>o.type!=="content"),r=a.filter(o=>o.type==="loader"),u=[],s=(t==null?void 0:t.size)===0;s&&(e=0);for(let o of a){let h=(this.rowSize??this.estimatedRowSize??me)+this.gap;if(o.type==="item"&&e+h<this.requestedRect[i]&&!this.isValid(o,e)){e+=h;continue}let c=this.orientation==="horizontal"?this.buildChild(o,e,this.padding,null):this.buildChild(o,this.padding,e,null);if(e=c.layoutInfo.rect[n]+this.gap,u.push(c),o.type==="loader"){let d=r.indexOf(o);r.splice(d,1)}if((o.type==="item"||o.type==="loader")&&e>this.requestedRect[n]){let d=a.indexOf(o);for(let m of r){let p=a.indexOf(m);e+=(p-d-1)*h;let y=this.orientation==="horizontal"?this.buildChild(m,e,this.padding,null):this.buildChild(m,this.padding,e,null);u.push(y),e=y.layoutInfo.rect[n],d=p}e+=(a.length-d-1)*h;break}}return e=Math.max(e-this.gap,0),e+=s?0:this.padding,this.contentSize=this.orientation==="horizontal"?new V(e,this.virtualizer.size.height):new V(this.virtualizer.size.width,e),u}isValid(e,t){let i=this.layoutNodes.get(e.key),n=this.orientation==="horizontal"?"x":"y";return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect[n]&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,n){if(this.isValid(e,this.orientation==="horizontal"?t:i))return this.layoutNodes.get(e.key);let a=this.buildNode(e,t,i);return a.layoutInfo.parentKey=n??null,a.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,a),a}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let n=new I(t,i,this.padding,0),a=new O(e.type,e.key,n);return this.orientation==="horizontal"?(n.height=this.virtualizer.contentSize.height-this.padding-i,n.width=e.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??me:0):(n.width=this.virtualizer.contentSize.width-this.padding-t,n.height=e.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??me:0),{layoutInfo:a,validRect:n.intersection(this.requestedRect)}}buildSection(e,t,i){let n=this.virtualizer.collection,a=this.virtualizer.size.width-this.padding-t,r=this.virtualizer.size.height-this.padding-i,u=this.orientation==="horizontal"?new I(t,i,0,r):new I(t,i,a,0),s=new O(e.type,e.key,u),o=this.orientation==="horizontal"?t:i,h=this.orientation==="horizontal"?"x":"y",c=this.orientation==="horizontal"?"maxX":"maxY",d=this.orientation==="horizontal"?"width":"height",m=0,p=[];for(let y of F(e,n)){if(y.type==="content")continue;let v=(this.rowSize??this.estimatedRowSize??me)+this.gap;if(o+v<this.requestedRect[h]&&!this.isValid(e,o)){o+=v,m++;continue}let b=this.orientation==="horizontal"?this.buildChild(y,o,i,s.key):this.buildChild(y,t,o,s.key);if(o=b.layoutInfo.rect[c]+this.gap,p.push(b),o>this.requestedRect[c]){o+=([...F(e,n)].length-(p.length+m))*v;break}}return o-=this.gap,u[d]=o-(this.orientation==="horizontal"?t:i),{layoutInfo:s,children:p,validRect:s.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let n=this.orientation==="horizontal"?"height":"width",a=this.orientation==="horizontal"?"width":"height",r=this.virtualizer.size[n]-this.padding-(this.orientation==="horizontal"?i:t),u=this.headingSize,s=!1;if(u==null){let c=this.layoutNodes.get(e.key),d=c==null?void 0:c.layoutInfo;if(d){let m=this.virtualizer.collection.getItem(e.key),p=this.lastCollection?this.lastCollection.getItem(e.key):null;u=c.layoutInfo.rect[a],s=r!==d.rect[n]||m!==p||d.estimatedSize}else u=e.rendered?this.estimatedHeadingSize:0,s=!0}u==null&&(u=me);let o=this.orientation==="horizontal"?new I(t,i,u,r-i):new I(t,i,r-t,u),h=new O("header",e.key,o);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let n=this.orientation==="horizontal"?"height":"width",a=this.orientation==="horizontal"?"width":"height",r=this.virtualizer.size[n]-this.padding-(this.orientation==="horizontal"?i:t),u=this.rowSize,s=!1;if(u==null){let c=this.layoutNodes.get(e.key);c?(u=c.layoutInfo.rect[a],s=r!==c.layoutInfo.rect[n]||e!==c.node||c.layoutInfo.estimatedSize):(u=this.estimatedRowSize,s=!0)}u==null&&(u=me);let o=this.orientation==="horizontal"?new I(t,i,u,r):new I(t,i,r,u),h=new O(e.type,e.key,o);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}updateItemSize(e,t){var s;let i=this.layoutNodes.get(e);if(!i)return!1;let n=this.virtualizer.collection,a=i.layoutInfo,r=this.orientation==="horizontal"?"x":"y",u=this.orientation==="horizontal"?"width":"height";if(a.estimatedSize=!1,a.rect[u]!==t[u]){let o=a.copy();o.rect[u]=t[u],i.layoutInfo=o,this.validRect[u]=Math.min(this.validRect[u],a.rect[r]-this.validRect[r]),((s=i.node)==null?void 0:s.type)==="item"&&(this.requestedRect[u]+=o.rect[u]-a.rect[u]),this.updateLayoutNode(e,a,o);let h=a.parentKey!=null?n.getItem(a.parentKey):null;for(;h;)this.updateLayoutNode(h.key,a,o),h=h.parentKey!=null?n.getItem(h.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let n=this.layoutNodes.get(e);n&&(n.validRect=n.validRect.intersection(this.validRect),n.layoutInfo===t&&(n.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let n=new I(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),a=this.getVisibleLayoutInfos(n),r=null,u=1/0;for(let c of a){if(!c.rect.intersects(n))continue;let d=Math.abs(c.rect.y-t),m=Math.abs(c.rect.maxY-t),p=Math.min(d,m);p<u&&(u=p,r=c.key)}if(r==null||this.virtualizer.collection.size===0)return{type:"root"};let s=this.getLayoutInfo(r);if(!s)return null;let o=s.rect,h={type:"item",key:s.key,dropPosition:"on"};return i(h)?t<=o.y+10&&i({...h,dropPosition:"before"})?h.dropPosition="before":t>=o.maxY-10&&i({...h,dropPosition:"after"})&&(h.dropPosition="after"):t<=o.y+o.height/2&&i({...h,dropPosition:"before"})?h.dropPosition="before":i({...h,dropPosition:"after"})&&(h.dropPosition="after"),h}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=this.orientation==="horizontal"?new I(Math.max(0,t.rect.x-this.dropIndicatorThickness/2),t.rect.y,this.dropIndicatorThickness,t.rect.height):new I(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){let a=n.level??0,r=this.collection.getKeyAfter(e.key);for(;r!=null;){let u=this.collection.getItem(r);if(!u||u.level<=a)break;t=this.getLayoutInfo(r)||t,r=this.collection.getKeyAfter(r)}}i=this.orientation==="horizontal"?new I(t.rect.maxX-this.dropIndicatorThickness/2,t.rect.y,this.dropIndicatorThickness,t.rect.height):new I(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new O("dropIndicator",e.key+":"+e.dropPosition,i)}}function Br(l,e){const t=[];for(const i of l)e(i)&&t.push(i);return t}const Lt=48;class Mr extends C0{constructor(e){super(e),this.lastCollection=null,this.columnWidths=new Map,this.lastPersistedKeys=null,this.persistedIndices=new Map,this.stickyColumnIndices=[]}get collection(){return this.virtualizer.collection}get rowHeight(){return super.rowHeight}get estimatedRowHeight(){return super.estimatedRowHeight}get headingHeight(){return super.headingHeight}get estimatedHeadingHeight(){return super.estimatedHeadingHeight}get loaderHeight(){return super.loaderHeight}columnsChanged(e,t){return!t||e.columns!==t.columns&&e.columns.length!==t.columns.length||e.columns.some((i,n)=>i.key!==t.columns[n].key||i.props.width!==t.columns[n].props.width||i.props.minWidth!==t.columns[n].props.minWidth||i.props.maxWidth!==t.columns[n].props.maxWidth)}shouldInvalidateLayoutOptions(e,t){return e.columnWidths!==t.columnWidths||super.shouldInvalidateLayoutOptions(e,t)}update(e){var i;let t=this.virtualizer.collection;if((i=e.layoutOptions)!=null&&i.columnWidths){for(const[n,a]of e.layoutOptions.columnWidths)if(this.columnWidths.get(n)!==a){this.columnWidths=e.layoutOptions.columnWidths,e.sizeChanged=!0;break}}else if(e.sizeChanged||this.columnsChanged(t,this.lastCollection)){let n=new Pi({});this.columnWidths=n.buildColumnWidths(this.virtualizer.size.width-this.padding*2,t,new Map),e.sizeChanged=!0}super.update(e)}buildCollection(){this.stickyColumnIndices=[];let e=this.virtualizer.collection;for(let a of e.columns)(this.isStickyColumn(a)||e.rowHeaderColumnKeys.has(a.key))&&this.stickyColumnIndices.push(a.index);let t=[],i=0,n=0;if(e.head){for(let a of e)switch(a.type){case"tableheader":{let r=this.buildTableHeader();i=r.layoutInfo.rect.maxY+this.gap,n=Math.max(n,r.layoutInfo.rect.width),this.layoutNodes.set(r.layoutInfo.key,r),t.push(r);break}case"tablebody":case"tablefooter":{let r=this.buildRowGroup(i,a);i=r.layoutInfo.rect.maxY+this.gap,n=Math.max(n,r.layoutInfo.rect.width),this.layoutNodes.set(r.layoutInfo.key,r),t.push(r);break}}i>0&&(i-=this.gap);for(let a of t)a.layoutInfo.rect.width=n}else{let a=this.buildTableHeader();this.layoutNodes.set(a.layoutInfo.key,a);let r=this.buildBody(a.layoutInfo.rect.maxY+this.gap);r.layoutInfo.rect.width=Math.max(a.layoutInfo.rect.width,r.layoutInfo.rect.width),i=r.layoutInfo.rect.maxY,n=r.layoutInfo.rect.width,t=[a,r]}return this.lastPersistedKeys=null,this.contentSize=new V(n+this.padding*2,i+this.padding),t}buildTableHeader(){var u;let e=this.virtualizer.collection,t=new I(this.padding,this.padding,0,0),i=new O("header",((u=e.head)==null?void 0:u.key)??"header",t);i.isSticky=!0,i.zIndex=1;let n=this.padding,a=0,r=[];for(let s of e.headerRows){let o=this.buildChild(s,this.padding,n,i.key);o.layoutInfo.parentKey=i.key,n=o.layoutInfo.rect.maxY,a=Math.max(a,o.layoutInfo.rect.width),o.index=r.length,r.push(o)}return t.width=a,t.height=n-this.padding,{layoutInfo:i,children:r,validRect:i.rect,node:e.head}}buildHeaderRow(e,t,i){let n=new I(t,i,0,0),a=new O("headerrow",e.key,n),r=0,u=[];for(let s of F(e,this.virtualizer.collection)){let o=this.buildChild(s,t,i,a.key);o.layoutInfo.parentKey=a.key,t=o.layoutInfo.rect.maxX,r=Math.max(r,o.layoutInfo.rect.height),o.index=u.length,u.push(o)}for(let[s,o]of u.entries())o.layoutInfo.zIndex=u.length-s+1;return this.setChildHeights(u,r),n.height=r,n.width=t-n.x,{layoutInfo:a,children:u,validRect:n,node:e}}setChildHeights(e,t){for(let i of e)i.layoutInfo.rect.height!==t&&(i.layoutInfo=i.layoutInfo.copy(),i.layoutInfo.rect.height=t)}getRenderedColumnWidth(e){let t=this.virtualizer.collection,i=e.colSpan??1,n=e.colIndex??e.index,a=0;for(let r=n;r<n+i;r++){let u=t.columns[r];(u==null?void 0:u.key)!=null&&(a+=this.columnWidths.get(u.key)??0)}return a}getEstimatedHeight(e,t,i,n){let a=!1;if(i==null){let r=this.layoutNodes.get(e.key);r?(i=r.layoutInfo.rect.height,a=e!==r.node||t!==r.layoutInfo.rect.width||r.layoutInfo.estimatedSize):(i=n??Lt,a=!0)}return{height:i,isEstimated:a}}getEstimatedRowHeight(){return this.rowHeight??this.estimatedRowHeight??Lt}buildColumn(e,t,i){let n=this.getRenderedColumnWidth(e),{height:a,isEstimated:r}=this.getEstimatedHeight(e,n,this.headingHeight??this.rowHeight,this.estimatedHeadingHeight??this.estimatedRowHeight),u=new I(t,i,n,a),s=new O(e.type,e.key,u);return s.isSticky=this.isStickyColumn(e),s.zIndex=s.isSticky?2:1,s.estimatedSize=r,{layoutInfo:s,children:[],validRect:s.rect,node:e}}isStickyColumn(e){return!1}buildBody(e){let t=this.virtualizer.collection;return this.buildRowGroup(e,t.body)}buildRowGroup(e,t){let i=this.virtualizer.collection,n=new I(this.padding,e,0,0),a=new O("rowgroup",t.key,n),r=e,u=0,s=[],o=this.getEstimatedRowHeight()+this.gap,h=F(t,i);for(let d of h){if(e+o<this.requestedRect.y&&!this.isValid(d,e)||e>this.requestedRect.maxY&&d.type!=="loader"){e+=o;continue}let m=this.buildChild(d,this.padding,e,a.key);m.layoutInfo.parentKey=a.key,m.index=s.length,e=m.layoutInfo.rect.maxY+this.gap,u=Math.max(u,m.layoutInfo.rect.width),s.push(m)}return(i==null?void 0:i.size)===0?e=this.virtualizer.size.height:e-=this.gap,n.width=u,n.height=e-r,{layoutInfo:a,children:s,validRect:a.rect.intersection(this.requestedRect),node:t}}buildLoader(e,t,i){var r;let n=super.buildLoader(e,t,i),a=this.virtualizer.collection;return n.layoutInfo.rect.width=this.layoutNodes.get(((r=a.head)==null?void 0:r.key)??"header").layoutInfo.rect.width,n.validRect=n.layoutInfo.rect.intersection(this.requestedRect),n}buildNode(e,t,i){switch(e.type){case"headerrow":return this.buildHeaderRow(e,t,i);case"item":return this.buildRow(e,t,i);case"column":case"placeholder":return this.buildColumn(e,t,i);case"cell":return this.buildCell(e,t,i);case"loader":return this.buildLoader(e,t,i);default:throw new Error("Unknown node type "+e.type)}}buildRow(e,t,i){var o;let n=this.virtualizer.collection,a=new I(t,i,0,0),r=new O("row",e.key,a),u=[],s=0;for(let h of F(e,n))if(h.type==="cell")if(t>this.requestedRect.maxX){let c=this.layoutNodes.get(h.key);if(c)c.layoutInfo.rect.x=t,t+=c.layoutInfo.rect.width;else break}else{let c=this.buildChild(h,t,i,r.key);t=c.layoutInfo.rect.maxX,s=Math.max(s,c.layoutInfo.rect.height),c.index=u.length,u.push(c)}return this.setChildHeights(u,s),a.width=this.layoutNodes.get(((o=n.head)==null?void 0:o.key)??"header").layoutInfo.rect.width,a.height=s,{layoutInfo:r,children:u,validRect:a.intersection(this.requestedRect),node:e}}buildCell(e,t,i){let n=this.getRenderedColumnWidth(e),{height:a,isEstimated:r}=this.getEstimatedHeight(e,n,this.rowHeight,this.estimatedRowHeight),u=new I(t,i,n,a),s=new O(e.type,e.key,u);return s.isSticky=this.isStickyColumn(e),s.zIndex=s.isSticky?2:1,s.estimatedSize=r,{layoutInfo:s,children:[],validRect:u,node:e}}getVisibleLayoutInfos(e){if(e.height>1){let i=this.getEstimatedRowHeight();e.y=Math.floor(e.y/i)*i,e.height=Math.ceil(e.height/i)*i}this.layoutIfNeeded(e);let t=[];this.buildPersistedIndices();for(let i of this.rootNodes)t.push(i.layoutInfo),this.addVisibleLayoutInfos(t,i,e);return t}addVisibleLayoutInfos(e,t,i){if(!(!t.children||t.children.length===0))switch(t.layoutInfo.type){case"header":for(let n of t.children)e.push(n.layoutInfo),this.addVisibleLayoutInfos(e,n,i);break;case"rowgroup":{let n=this.binarySearch(t.children,i.topLeft,"y"),a=this.binarySearch(t.children,i.bottomRight,"y"),r=this.persistedIndices.get(t.layoutInfo.key),u=0;for(;r&&u<r.length&&r[u]<n;){let o=r[u];o<t.children.length&&(e.push(t.children[o].layoutInfo),this.addVisibleLayoutInfos(e,t.children[o],i)),u++}for(let o=n;o<=a;o++){for(;r&&u<r.length&&r[u]<o;)u++;e.push(t.children[o].layoutInfo),this.addVisibleLayoutInfos(e,t.children[o],i)}for(;r&&u<r.length;){let o=r[u++];o<t.children.length&&(e.push(t.children[o].layoutInfo),this.addVisibleLayoutInfos(e,t.children[o],i))}let s=t.children.at(-1);(s==null?void 0:s.layoutInfo.type)==="loader"&&e.push(s.layoutInfo);break}case"headerrow":case"row":{let n=this.binarySearch(t.children,i.topLeft,"x"),a=this.binarySearch(t.children,i.topRight,"x"),r=0,u=this.persistedIndices.get(t.layoutInfo.key)||this.stickyColumnIndices;for(;r<u.length&&u[r]<n;){let s=u[r];s<t.children.length&&e.push(t.children[s].layoutInfo),r++}for(let s=n;s<=a;s++){for(;r<u.length&&u[r]<s;)r++;e.push(t.children[s].layoutInfo)}for(;r<u.length;){let s=u[r++];s<t.children.length&&e.push(t.children[s].layoutInfo)}break}default:throw new Error("Unknown node type "+t.layoutInfo.type)}}binarySearch(e,t,i){let n=0,a=e.length-1;for(;n<=a;){let r=n+a>>1,u=e[r];if(i==="x"&&u.layoutInfo.rect.maxX<=t.x||i==="y"&&u.layoutInfo.rect.maxY<=t.y)n=r+1;else if(i==="x"&&u.layoutInfo.rect.x>t.x||i==="y"&&u.layoutInfo.rect.y>t.y)a=r-1;else return r}return Math.max(0,Math.min(e.length-1,n))}buildPersistedIndices(){var e,t,i;if(this.virtualizer.persistedKeys!==this.lastPersistedKeys){this.lastPersistedKeys=this.virtualizer.persistedKeys,this.persistedIndices.clear();for(let n of this.virtualizer.persistedKeys){let a=(e=this.layoutNodes.get(n))==null?void 0:e.layoutInfo;for(;a&&a.parentKey;){let r=this.virtualizer.collection.getItem(a.key),u=this.persistedIndices.get(a.parentKey);u||(u=(r==null?void 0:r.type)==="cell"||(r==null?void 0:r.type)==="column"?[...this.stickyColumnIndices]:[],this.persistedIndices.set(a.parentKey,u));let s=(t=this.layoutNodes.get(a.key))==null?void 0:t.index;s!=null&&!u.includes(s)&&u.push(s),a=(i=this.layoutNodes.get(a.parentKey))==null?void 0:i.layoutInfo}}for(let n of this.persistedIndices.values())n.sort((a,r)=>a-r)}}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let n=new I(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),a=this.getVisibleLayoutInfos(n),r=null,u=1/0;for(let c of a){if(c.type!=="row"||!c.rect.intersects(n))continue;let d=Math.abs(c.rect.y-t),m=Math.abs(c.rect.maxY-t),p=Math.min(d,m);p<u&&(u=p,r=c.key)}if(r==null||this.virtualizer.collection.size===0)return{type:"root"};let s=this.getLayoutInfo(r);if(!s)return null;let o=s.rect,h={type:"item",key:s.key,dropPosition:"on"};return i(h)?t<=o.y+10&&i({...h,dropPosition:"before"})?h.dropPosition="before":t>=o.maxY-10&&i({...h,dropPosition:"after"})&&(h.dropPosition="after"):t<=o.y+o.height/2&&i({...h,dropPosition:"before"})?h.dropPosition="before":i({...h,dropPosition:"after"})&&(h.dropPosition="after"),h}getDropTargetLayoutInfo(e){var i;let t=super.getDropTargetLayoutInfo(e);return t.parentKey=((i=this.virtualizer.collection.getItem(e.key))==null?void 0:i.parentKey)??null,t}}class Ar extends Mr{useLayoutOptions(){let e=f.useContext(Je);return f.useMemo(()=>({columnWidths:e==null?void 0:e.columnWidths}),[e==null?void 0:e.columnWidths])}}let ve=null;function Rr(l=!1){if(ve===null||l){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),n=i.style;return n.width="100px",n.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?ve="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?ve="negative":ve="positive-ascending"),document.body.removeChild(e),ve}return ve}function Pr(l,e){let{scrollLeft:t}=l;if(e==="rtl"){let{scrollWidth:i,clientWidth:n}=l;switch(Rr()){case"negative":t=-t;break;case"positive-descending":t=i-n-t;break}}return t}function Kr(l,e){let{contentSize:t,onVisibleRectChange:i,onSizeChange:n,innerStyle:a,onScrollStart:r,onScrollEnd:u,scrollDirection:s="both",onScroll:o,allowsWindowScrolling:h,...c}=l,d=f.useRef({scrollPosition:new Z,size:new V,viewportOffset:new Z,viewportSize:new V,scrollEndTime:0,scrollTimeout:null,isScrolling:!1,lastVisibleRect:new I}).current,{direction:m}=ue(),p=f.useCallback(()=>{let B=h?new I(d.viewportOffset.x+d.scrollPosition.x,d.viewportOffset.y+d.scrollPosition.y,Math.max(0,Math.min(d.size.width-d.viewportOffset.x,d.viewportSize.width)),Math.max(0,Math.min(d.size.height-d.viewportOffset.y,d.viewportSize.height))):new I(d.scrollPosition.x,d.scrollPosition.y,d.size.width,d.size.height);(B.area>0||d.lastVisibleRect.area>0)&&(i(B),d.lastVisibleRect=B)},[d,h,i]),[y,v]=f.useState(!1),b=f.useCallback(B=>{let A=G(B);if(pe(A,e.current)){if(o&&A===e.current&&o(B),A!==e.current){let P=e.current.getBoundingClientRect(),N=P.x<0?-P.x:0,M=P.y<0?-P.y:0;if(N===d.viewportOffset.x&&M===d.viewportOffset.y)return;d.viewportOffset=new Z(N,M)}else{let P=A.scrollTop,N=Pr(A,m);d.scrollPosition=new Z(Math.max(0,Math.min(N,t.width-d.size.width)),Math.max(0,Math.min(P,t.height-d.size.height)))}je.flushSync(()=>{p(),d.isScrolling||(d.isScrolling=!0,v(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),r&&r());let P=Date.now();d.scrollEndTime<=P+50&&(d.scrollEndTime=P+300,d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.scrollTimeout=setTimeout(()=>{d.isScrolling=!1,v(!1),d.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),u&&u()},300))})}},[o,e,m,d,t,p,r,u]);f.useEffect(()=>Sn(kn(e.current,Ae(e.current)),"scroll",b,!0),[b,e]),f.useEffect(()=>()=>{d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let S=f.useRef(!1),C=f.useCallback(B=>{let A=e.current;if(!A||S.current)return;S.current=!0,Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");let P=A.clientWidth,N=A.clientHeight,M=P,L=N,ae=window.innerWidth,X=window.innerHeight,re=d.viewportSize.width!==ae||d.viewportSize.height!==X;re&&(d.viewportSize=new V(ae,X)),(d.size.width!==M||d.size.height!==L||re)&&(d.size=new V(M,L),B(()=>{p(),n==null||n(d.size)}),(P!==A.clientWidth||N!==A.clientHeight)&&(d.size=new V(A.clientWidth,A.clientHeight),B(()=>{p(),n==null||n(d.size)}))),S.current=!1},[e,d,p,n]),k=Ce(C);we(()=>{d.viewportSize=new V(window.innerWidth,window.innerHeight);let B=()=>{k(je.flushSync)};return window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[d]);let w=f.useRef(null),[$,z]=f.useState({});we(()=>{if(!S.current&&(w.current==null||!t.equals(w.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){z({}),w.current=t;return}else queueMicrotask(()=>k(je.flushSync));w.current=t}),we(()=>{k(B=>B())},[$]);let D=f.useCallback(()=>{C(je.flushSync)},[C]);sl({ref:e,box:"border-box",onResize:D});let R={padding:0,...c.style};return s==="horizontal"?(R.overflowX="auto",R.overflowY="hidden"):s==="vertical"||t.width===d.size.width?(R.overflowY="auto",R.overflowX="hidden"):R.overflow="auto",a={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:y?"none":"auto",position:"relative",...a},{isScrolling:y,scrollViewProps:{...c,style:R},contentProps:{role:"presentation",style:a}}}function Nr(l){let{layoutInfo:e,virtualizer:t,ref:i,shouldObserveItemSize:n}=l,a=e==null?void 0:e.key,r=f.useCallback(()=>{if(a!=null&&i.current){if(!En(i.current))return;let s=Fr(i.current);t.updateItemSize(a,s)}},[t,a,i]),u=Ce(r);return we(()=>{e!=null&&e.estimatedSize&&u()}),f.useEffect(()=>{if(!n)return;let s=i.current;if(!s||typeof ResizeObserver>"u")return;let o=new ResizeObserver(h=>{h.length&&u()});for(let h of s.children)o.observe(h);return()=>{o.disconnect()}},[n,i,a]),{updateSize:r}}function Fr(l){let e=l.style.height;l.style.height="";let t=new V(l.scrollWidth,l.scrollHeight);return l.style.height=e,t}function z0(l){let{style:e,className:t,layoutInfo:i,virtualizer:n,parent:a,children:r,shouldObserveItemSize:u}=l,{direction:s}=ue(),o=f.useRef(null);return Nr({layoutInfo:i,virtualizer:n,ref:o,shouldObserveItemSize:u}),x.createElement("div",{role:"presentation",ref:o,className:t,style:{...Tr(i,s,a),...e}},r)}let _t=new WeakMap;function Tr(l,e,t){let i=e==="rtl"?"right":"left",n=_t.get(l);if(n&&n[i]!=null){if(!t)return n;let u=l.rect.y-t.rect.y,s=l.rect.x-t.rect.x;if(n.top===u&&n[i]===s)return n}let a={top:l.rect.y-(t&&!(t.allowOverflow&&l.isSticky)?t.rect.y:0),[i]:l.rect.x-(t&&!(t.allowOverflow&&l.isSticky)?t.rect.x:0),width:l.rect.width,height:l.rect.height};Object.entries(a).forEach(([u,s])=>{Number.isFinite(s)||(a[u]=void 0)});let r={position:l.isSticky?"sticky":"absolute",display:l.isSticky?"inline-block":void 0,overflow:l.allowOverflow?"visible":"hidden",opacity:l.opacity,zIndex:l.zIndex,transform:l.transform??void 0,contain:"size layout style",...a};return _t.set(l,r),r}const S0=f.createContext(null),vt=f.createContext(null);function k0(l){let{children:e,layout:t,layoutOptions:i,shouldObserveItemSize:n}=l,a=f.useMemo(()=>typeof t=="function"?new t:t,[t]),r=f.useMemo(()=>({isVirtualized:!0,layoutDelegate:a,dropTargetDelegate:a.getDropTargetFromPoint?a:void 0,CollectionRoot:jr,CollectionBranch:Hr}),[a]);return x.createElement(j.Provider,{value:r},x.createElement(vt.Provider,{value:{layout:a,layoutOptions:i,shouldObserveItemSize:n}},e))}function jr({collection:l,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var h;let{layout:n,layoutOptions:a,shouldObserveItemSize:r}=f.useContext(vt),u=(h=n.useLayoutOptions)==null?void 0:h.call(n),s=Dr({allowsWindowScrolling:!0,layout:n,collection:l,renderView:(c,d)=>{var m;return(m=d==null?void 0:d.render)==null?void 0:m.call(d,d)},onVisibleRectChange(c){let d=t==null?void 0:t.current;d&&(d.scrollLeft=c.x,d.scrollTop=c.y)},persistedKeys:e,layoutOptions:f.useMemo(()=>a&&u?{...a,...u}:a||u,[a,u])}),{contentProps:o}=Kr({onVisibleRectChange:s.setVisibleRect,onSizeChange:s.setSize,contentSize:s.contentSize,onScrollStart:s.startScrolling,onScrollEnd:s.endScrolling,allowsWindowScrolling:!0},t);return x.createElement("div",o,x.createElement(S0.Provider,{value:s},E0(null,s.visibleViews,i,r)))}function Hr({parent:l,renderDropIndicator:e}){let i=f.useContext(S0).virtualizer.getVisibleView(l.key),{shouldObserveItemSize:n}=f.useContext(vt);return E0(i,Array.from(i.children),e,n)}function E0(l,e,t,i){return e.map(n=>Vr(l,n,t,i))}function Vr(l,e,t,i){let n=x.createElement(z0,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:l==null?void 0:l.layoutInfo,shouldObserveItemSize:i},e.rendered),{collection:a,layout:r}=e.virtualizer,u=e.content;return(u==null?void 0:u.type)==="item"&&t&&r.getDropTargetLayoutInfo&&(n=x.createElement(x.Fragment,{key:e.key},Wt(l,e,{type:"item",key:e.content.key,dropPosition:"before"},t),n,Dn(a,u,s=>Wt(l,e,s,t)))),n}function Wt(l,e,t,i){let n=i(t);if(n){let a=e.virtualizer.layout.getDropTargetLayoutInfo(t);n=x.createElement(z0,{layoutInfo:a,virtualizer:e.virtualizer,parent:l==null?void 0:l.layoutInfo},n)}return n}const q=f.createContext({}),ht=({children:l,className:e,variant:t,...i})=>{const n=x.useMemo(()=>qn({variant:t}),[t]);return g.jsx(q,{value:{slots:n},children:g.jsx(Xe.div,{className:n.base({className:e}),"data-slot":"table",...i,children:l})})};ht.displayName="HeroUI.Table";const D0=({className:l,...e})=>{const{slots:t}=f.use(q);return g.jsx(Xe.div,{className:he(t==null?void 0:t.scrollContainer,l),"data-slot":"table-scroll-container",...e})};D0.displayName="HeroUI.Table.ScrollContainer";function I0({className:l,...e}){const{slots:t}=f.use(q);return g.jsx(qa,{className:Q(l,t==null?void 0:t.content()),"data-slot":"table-content",...e})}I0.displayName="HeroUI.Table.Content";function B0({className:l,...e}){const{slots:t}=f.use(q);return g.jsx(Ja,{className:Q(l,t==null?void 0:t.header()),"data-slot":"table-header",...e})}B0.displayName="HeroUI.Table.Header";const M0=({className:l,ref:e,...t})=>{const{slots:i}=f.use(q);return g.jsx(lr,{ref:e,className:Q(l,i==null?void 0:i.column()),"data-slot":"table-column",...t})};M0.displayName="HeroUI.Table.Column";function A0({className:l,...e}){const{slots:t}=f.use(q);return g.jsx(ar,{className:Q(l,t==null?void 0:t.body()),"data-slot":"table-body",...e})}A0.displayName="HeroUI.Table.Body";function R0({className:l,...e}){const{slots:t}=f.use(q);return g.jsx(rr,{className:Q(l,t==null?void 0:t.row()),"data-slot":"table-row",...e})}R0.displayName="HeroUI.Table.Row";const P0=({className:l,ref:e,...t})=>{const{slots:i}=f.use(q);return g.jsx(ur,{ref:e,className:Q(l,i==null?void 0:i.cell()),"data-slot":"table-cell",...t})};P0.displayName="HeroUI.Table.Cell";const K0=({className:l,...e})=>{const{slots:t}=f.use(q);return g.jsx(Xe.div,{className:he(t==null?void 0:t.footer,l),"data-slot":"table-footer",...e})};K0.displayName="HeroUI.Table.Footer";const N0=({className:l,ref:e,...t})=>g.jsx(Oa,{ref:e,className:Bn("table__resizable-container",l),"data-slot":"table-resizable-container",...t});N0.displayName="HeroUI.Table.ResizableContainer";const F0=({className:l,ref:e,...t})=>{const{slots:i}=f.use(q);return g.jsx(ir,{ref:e,className:Q(l,i==null?void 0:i.columnResizer()),"data-slot":"table-column-resizer",...t})};F0.displayName="HeroUI.Table.ColumnResizer";const T0=({className:l,ref:e,...t})=>{const{slots:i}=f.use(q);return g.jsx(mr,{ref:e,className:he(i==null?void 0:i.loadMore,l),"data-slot":"table-load-more",...t})};T0.displayName="HeroUI.Table.LoadMore";const j0=({className:l,...e})=>{const{slots:t}=f.use(q);return g.jsx(Xe.div,{className:he(t==null?void 0:t.loadMoreContent,l),"data-slot":"table-load-more-content",...e})};j0.displayName="HeroUI.Table.LoadMoreContent";const H0=({children:l,className:e,indicator:t,ref:i,showIndicator:n=!0,sortDirection:a,...r})=>{const{slots:u}=f.use(q),s=n&&!!a;let o=null;if(s)if(t===void 0)o=g.jsx(In,{className:u==null?void 0:u.sortableColumnIndicator(),"data-direction":a,"data-slot":"table-sortable-column-indicator"});else if(x.isValidElement(t)){const h=t;o=x.cloneElement(h,{className:he(u==null?void 0:u.sortableColumnIndicator,h.props.className),"data-direction":a,"data-slot":"table-sortable-column-indicator"})}else o=t;return g.jsxs("span",{ref:i,className:he(u==null?void 0:u.sortableColumnHeader,e),"data-direction":a,"data-slot":"table-sortable-column-header",...r,children:[l,o]})};H0.displayName="HeroUI.Table.SortableColumnHeader";const Lr=Ye,_=Object.assign(ht,{Body:A0,Cell:P0,Collection:Lr,Column:M0,ColumnResizer:F0,Content:I0,Footer:K0,Header:B0,LoadMore:T0,LoadMoreContent:j0,ResizableContainer:N0,Root:ht,Row:R0,ScrollContainer:D0,SortableColumnHeader:H0}),_r="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%20103%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAI21%3c/title%3e%3cpath%20d='M15.064%2021.643l-.74-2.335H7.487l-.741%202.335H2L8.862%202.414h4.09l6.944%2019.23h-4.832zM10.92%207.908L8.56%2015.819h4.666l-2.305-7.911zm9.504-5.494h4.501v19.23h-4.501V2.413zm5.714%2015.3a8.84%208.84%200%20011.057-2.691%207.78%207.78%200%20011.606-1.868%2016.915%2016.915%200%20012.045-1.456c.567-.33%201.093-.646%201.578-.948.447-.275.874-.582%201.276-.92.348-.289.64-.638.865-1.03.214-.391.323-.832.315-1.278%200-.769-.21-1.323-.63-1.662-.447-.347-1-.526-1.565-.508A2.475%202.475%200%200030.943%206c-.467.43-.7%201.15-.7%202.156h-4.42a6.493%206.493%200%2001.454-2.445c.294-.74.749-1.406%201.33-1.95a6.26%206.26%200%20012.142-1.291A8.363%208.363%200%200132.657%202a9.048%209.048%200%20012.512.344c.76.21%201.472.565%202.1%201.044a4.972%204.972%200%20011.44%201.813c.374.823.557%201.72.536%202.623a4.64%204.64%200%2001-.522%202.198%207.454%207.454%200%2001-1.276%201.758c-.497.508-1.044.963-1.633%201.36-.586.394-1.117.728-1.592%201.003-.66.44-1.204.82-1.633%201.14a7.753%207.753%200%2000-1.03.892%202.403%202.403%200%2000-.535.852%203.128%203.128%200%2000-.15%201.017h8.234v3.598h-13.34c-.023-1.32.102-2.637.371-3.928zM39.958%205.792c.769.016%201.538-.053%202.292-.206a3.307%203.307%200%20001.386-.618%202.14%202.14%200%2000.686-1.044c.137-.491.202-1%20.192-1.51h3.926v19.23h-4.528V8.923h-3.954V5.792z'%3e%3c/path%3e%3cpath%20d='M53.534%202.414h4.199v19.23h-4.2V2.413zm19.704%205.978v13.241h-4.2v-1.868a3.434%203.434%200%2001-.659.865%204.24%204.24%200%2001-.946.686c-.371.198-.762.354-1.167.466-.41.118-.835.178-1.262.179a6.33%206.33%200%2001-2.622-.536%206.207%206.207%200%2001-2.044-1.456%206.455%206.455%200%2001-1.318-2.197%208.402%208.402%200%20010-5.522%206.455%206.455%200%20011.318-2.198%206.207%206.207%200%20012.044-1.455%206.329%206.329%200%20012.622-.535c.427.001.852.061%201.263.179.406.113.798.274%201.166.48.347.194.666.434.947.715.257.252.48.539.659.851V8.392h4.199zm-7.356%2010c.445.006.886-.088%201.29-.275a3.147%203.147%200%20001.634-1.8c.156-.417.235-.859.233-1.304a3.546%203.546%200%2000-.879-2.363%203.056%203.056%200%2000-.989-.742%203.168%203.168%200%2000-2.58%200%203.06%203.06%200%2000-.989.742%203.549%203.549%200%2000-.878%202.363c-.002.445.077.888.233%201.305a3.153%203.153%200%20001.634%201.8c.404.187.845.28%201.29.273zm12.459%203.251h-4.2V2.414h4.2v7.883a4.218%204.218%200%20011.619-1.566c.37-.202.76-.364%201.166-.48.415-.12.845-.18%201.276-.179a6.33%206.33%200%20012.622.536c.773.34%201.47.836%202.044%201.456a6.47%206.47%200%20011.318%202.197%208.413%208.413%200%20010%205.522%206.47%206.47%200%2001-1.318%202.198%206.203%206.203%200%2001-2.044%201.456%206.33%206.33%200%2001-2.622.535%204.577%204.577%200%2001-1.276-.178%206.213%206.213%200%2001-1.166-.466%204.12%204.12%200%2001-.96-.687%203.435%203.435%200%2001-.66-.865v1.867zm3.184-3.241c.436.004.868-.09%201.263-.275a3.148%203.148%200%20001.634-1.8c.156-.416.235-.859.232-1.304a3.547%203.547%200%2000-.878-2.363%203.056%203.056%200%2000-.99-.741%202.901%202.901%200%2000-1.261-.276%203.012%203.012%200%2000-2.305%201.016%203.546%203.546%200%2000-.879%202.362%203.66%203.66%200%2000.233%201.305c.145.395.364.759.645%201.072a3.1%203.1%200%20002.306%201.004zm15.219-4.56a20.56%2020.56%200%20011.646.535c.479.175.932.415%201.345.714.38.28.695.642.92%201.058.244.494.362%201.042.343%201.593a3.937%203.937%200%2001-.467%201.992%203.71%203.71%200%2001-1.29%201.319c-.587.353-1.234.6-1.907.727-.765.15-1.542.224-2.32.22-1.885%200-3.372-.412-4.46-1.236-1.09-.824-1.413-2.006-1.413-3.544h3.897c0%20.696.197%201.195.59%201.497a2.43%202.43%200%20001.524.453c.434.019.866-.08%201.248-.288a1.018%201.018%200%2000.48-.948.898.898%200%2000-.205-.618%201.982%201.982%200%2000-.632-.44%207.884%207.884%200%2000-1.097-.412c-.45-.137-.985-.306-1.606-.508a21.019%2021.019%200%2001-1.565-.535%205.688%205.688%200%2001-1.304-.7%202.978%202.978%200%2001-.891-1.045%203.427%203.427%200%2001-.33-1.593c0-1.374.526-2.39%201.578-3.05%201.053-.659%202.475-.989%204.268-.99a8.335%208.335%200%20012.512.344c.652.192%201.26.514%201.784.948.457.39.818.878%201.057%201.429.238.555.36%201.153.357%201.758h-4.145a1.798%201.798%200%2000-.425-1.278%201.71%201.71%200%2000-1.304-.453%202.04%202.04%200%2000-1.098.289.972.972%200%2000-.467.892.828.828%200%2000.22.591c.185.182.405.327.645.426.344.15.697.279%201.057.384.42.13.905.285%201.455.468z'%20fill='%23E91E63'%3e%3c/path%3e%3c/svg%3e",Wr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAlibaba%3c/title%3e%3cpath%20d='M24%2014.014c-2.8%201.512-5.62%202.896-8.759%203.524-.7.139-1.476.139-2.187.043-.678-.085-1.017-.682-.776-1.31.23-.585.536-1.181.93-1.671.852-1.065%201.814-2.034%202.678-3.088a15.75%2015.75%200%20001.422-2.054c.306-.511.164-1.129-.372-1.384-.897-.437-1.859-.745-2.81-1.075-.11-.043-.274.074-.492.149.273.244.47.425.743.67-2.821.48-5.49%201.16-8.08%202.098-.012.053-.033.095-.023.117.383.585.208%201.032-.35%201.394a2.365%202.365%200%2000-.568.522c1.706.5%203.226.213%204.68-.735-.087-.127-.175-.244-.262-.372.546.096.874.394.918.862.011.107-.054.213-.087.32-.077-.086-.175-.17-.24-.267-.045-.064-.056-.138-.088-.245-1.728%201.15-3.587%201.438-5.632.842%200%20.404-.022.745.011%201.075.022.287-.098.415-.36.564-.591.362-1.204.735-1.696%201.214-.59.585-.371%201.299.427%201.597.907.34%201.859.35%202.81.234%201.126-.139%202.23-.32%203.456-.49-1.433.67-2.844%201.14-4.33%201.33-1.04.14-2.078.214-3.106-.084-1.476-.415-2.133-1.501-1.75-2.96.361-1.363%201.236-2.449%202.176-3.45%203.139-3.332%207.108-5.024%2011.7-5.365%201.072-.074%202.155.064%203.16.511%201.411.639%202.002%201.99%201.313%203.354-.448.905-1.072%201.735-1.695%202.555-.612.809-1.301%201.554-1.946%202.331-.186.234-.361.48-.503.745-.274.5-.088.83.492.778%201.213-.118%202.45-.213%203.62-.511%201.716-.437%203.389-1.054%205.084-1.597.175-.043.339-.107.492-.17z'%20fill='%23FF6003'%20fill-rule='evenodd'%3e%3c/path%3e%3c/svg%3e",Or="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAWS%3c/title%3e%3cpath%20d='M6.763%2011.212c0%20.296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183%200%20.08-.048.16-.152.24l-.503.335a.383.383%200%2001-.208.072c-.08%200-.16-.04-.239-.112a2.47%202.47%200%2001-.287-.375%206.18%206.18%200%2001-.248-.471c-.622.734-1.405%201.101-2.347%201.101-.67%200-1.205-.191-1.596-.574-.39-.384-.59-.894-.59-1.533%200-.678.24-1.23.726-1.644.487-.415%201.133-.623%201.955-.623.272%200%20.551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28%200-.568.031-.863.103-.295.072-.583.16-.862.272a2.4%202.4%200%2001-.28.104.488.488%200%2001-.127.023c-.112%200-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597%200%2001.224-.167%204.577%204.577%200%20011.005-.36%204.84%204.84%200%20011.246-.151c.95%200%201.644.216%202.091.647.44.43.662%201.085.662%201.963v2.586h.016zm-3.24%201.214c.263%200%20.534-.048.822-.144a1.78%201.78%200%2000.758-.51%201.27%201.27%200%2000.272-.512c.047-.191.08-.423.08-.694v-.335a6.66%206.66%200%2000-.735-.136%206.02%206.02%200%2000-.75-.048c-.535%200-.926.104-1.19.32-.263.215-.39.518-.39.917%200%20.375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144%200-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586%206.726a1.398%201.398%200%2001-.072-.32c0-.128.064-.2.191-.2h.783c.151%200%20.255.025.31.08.065.048.113.16.16.312l1.342%205.284%201.245-5.284c.04-.16.088-.264.151-.312a.549.549%200%2001.32-.08h.638c.152%200%20.256.025.32.08.063.048.12.16.151.312l1.261%205.348%201.381-5.348c.048-.16.104-.264.16-.312a.52.52%200%2001.311-.08h.743c.127%200%20.2.065.2.2%200%20.04-.009.08-.017.128a1.137%201.137%200%2001-.056.2l-1.923%206.17c-.048.16-.104.263-.168.311a.51.51%200%2001-.303.08h-.687c-.15%200-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32L12.32%207.747l-1.23%205.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08l-.686.001zm10.256.215c-.415%200-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563%200%2001-.048-.224v-.407c0-.167.064-.247.183-.247.048%200%20.096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.32.064.63.096.95.096.502%200%20.894-.088%201.165-.264a.86.86%200%2000.415-.758.777.777%200%2000-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902%201.902%200%2001-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136%201.006-.136.175%200%20.36.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69%200%2001.24.2.43.43%200%2001.071.263v.375c0%20.168-.064.256-.184.256a.83.83%200%2001-.303-.096%203.652%203.652%200%2000-1.532-.311c-.455%200-.815.071-1.062.223-.248.152-.375.383-.375.71%200%20.224.08.416.24.567.16.152.454.304.877.44l1.134.358c.574.184.99.44%201.237.767.247.327.367.702.367%201.117%200%20.343-.072.655-.207.926a2.157%202.157%200%2001-.583.703c-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167z'%3e%3c/path%3e%3cpath%20d='M.378%2015.475c3.384%201.963%207.56%203.153%2011.877%203.153%202.914%200%206.114-.607%209.06-1.852.44-.2.814.287.383.607-2.626%201.94-6.442%202.969-9.722%202.969-4.598%200-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351zm23.531-.2c.287.36-.08%202.826-1.485%204.007-.215.184-.423.088-.327-.151l.175-.439c.343-.88.802-2.198.52-2.555-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36%201.5-1.053%203.967-.75%204.254-.399z'%20fill='%23F90'%3e%3c/path%3e%3c/svg%3e",Ur="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAzure%3c/title%3e%3cpath%20d='M7.242%201.613A1.11%201.11%200%20018.295.857h6.977L8.03%2022.316a1.11%201.11%200%2001-1.052.755h-5.43a1.11%201.11%200%2001-1.053-1.466L7.242%201.613z'%20fill='url(%23lobe-icons-azure-0-_R_0_)'%3e%3c/path%3e%3cpath%20d='M18.397%2015.296H7.4a.51.51%200%2000-.347.882l7.066%206.595c.206.192.477.298.758.298h6.226l-2.706-7.775z'%20fill='%230078D4'%3e%3c/path%3e%3cpath%20d='M15.272.857H7.497L0%2023.071h7.775l1.596-4.73%205.068%204.73h6.665l-2.707-7.775h-7.998L15.272.857z'%20fill='url(%23lobe-icons-azure-1-_R_0_)'%3e%3c/path%3e%3cpath%20d='M17.193%201.613a1.11%201.11%200%2000-1.052-.756h-7.81.035c.477%200%20.9.304%201.052.756l6.748%2019.992a1.11%201.11%200%2001-1.052%201.466h-.12%207.895a1.11%201.11%200%20001.052-1.466L17.193%201.613z'%20fill='url(%23lobe-icons-azure-2-_R_0_)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-azure-0-_R_0_'%20x1='8.247'%20x2='1.002'%20y1='1.626'%20y2='23.03'%3e%3cstop%20stop-color='%23114A8B'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%230669BC'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-azure-1-_R_0_'%20x1='14.042'%20x2='12.324'%20y1='15.302'%20y2='15.888'%3e%3cstop%20stop-opacity='.3'%3e%3c/stop%3e%3cstop%20offset='.071'%20stop-opacity='.2'%3e%3c/stop%3e%3cstop%20offset='.321'%20stop-opacity='.1'%3e%3c/stop%3e%3cstop%20offset='.623'%20stop-opacity='.05'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-azure-2-_R_0_'%20x1='12.841'%20x2='20.793'%20y1='1.626'%20y2='22.814'%3e%3cstop%20stop-color='%233CCBF4'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%232892DF'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",qr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eBaidu%3c/title%3e%3cpath%20d='M8.859%2011.735c1.017-1.71%204.059-3.083%206.202.286%201.579%202.284%204.284%204.397%204.284%204.397s2.027%201.601.73%204.684c-1.24%202.956-5.64%201.607-6.005%201.49l-.024-.009s-1.746-.568-3.776-.112c-2.026.458-3.773.286-3.773.286l-.045-.001c-.328-.01-2.38-.187-3.001-2.968-.675-3.028%202.365-4.687%202.592-4.968.226-.288%201.802-1.37%202.816-3.085zm.986%201.738v2.032h-1.64s-1.64.138-2.213%202.014c-.2%201.252.177%201.99.242%202.148.067.157.596%201.073%201.927%201.342h3.078v-7.514l-1.394-.022zm3.588%202.191l-1.44.024v3.956s.064.985%201.44%201.344h3.541v-5.3h-1.528v3.979h-1.46s-.466-.068-.553-.447v-3.556zM9.82%2016.715v3.06H8.58s-.863-.045-1.126-1.049c-.136-.445.02-.959.088-1.16.063-.203.353-.671.951-.85H9.82zm9.525-9.036c2.086%200%202.646%202.06%202.646%202.742%200%20.688.284%203.597-2.309%203.655-2.595.057-2.704-1.77-2.704-3.08%200-1.374.277-3.317%202.367-3.317zM4.24%206.08c1.523-.135%202.645%201.55%202.762%202.513.07.625.393%203.486-1.975%204-2.364.515-3.244-2.249-2.984-3.544%200%200%20.28-2.797%202.197-2.969zm8.847-1.483c.14-1.31%201.69-3.316%202.931-3.028%201.236.285%202.367%201.944%202.137%203.37-.224%201.428-1.345%203.313-3.095%203.082-1.748-.226-2.143-1.823-1.973-3.424zM9.425%201c1.307%200%202.364%201.519%202.364%203.398%200%201.879-1.057%203.4-2.364%203.4s-2.367-1.521-2.367-3.4C7.058%202.518%208.118%201%209.425%201z'%20fill='%232932E1'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",Yr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eByteDance%3c/title%3e%3cpath%20d='M14.944%2018.587l-1.704-.445V10.01l1.824-.462c1-.254%201.84-.461%201.88-.453.032%200%20.056%202.235.056%204.972v4.973l-.176-.008c-.104%200-.952-.207-1.88-.446z'%20fill='%2300C8D2'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M7%2016.542c0-2.736.024-4.98.064-4.98.032-.008.872.2%201.88.454l1.816.461-.016%204.05-.024%204.049-1.632.422c-.896.23-1.736.445-1.856.469L7%2021.523v-4.98z'%20fill='%233C8CFF'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M19.24%2012.477c0-9.03.008-9.515.144-9.475.072.024.784.207%201.576.406.792.207%201.576.405%201.744.445l.296.08-.016%208.56-.024%208.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z'%20fill='%2378E6DC'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M1%2012.509c0-4.678.024-8.505.064-8.505.032%200%20.872.207%201.872.454l1.824.461v7.582c0%204.16-.016%207.574-.032%207.574-.024%200-.872.215-1.88.47L1%2021.013v-8.505z'%20fill='%23325AB4'%3e%3c/path%3e%3c/svg%3e",Gr="data:image/svg+xml,%3csvg%20fill='currentColor'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCerebras%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M14.121%202.701a9.299%209.299%200%20000%2018.598V22.7c-5.91%200-10.7-4.791-10.7-10.701S8.21%201.299%2014.12%201.299V2.7zm4.752%203.677A7.353%207.353%200%20109.42%2017.643l-.901%201.074a8.754%208.754%200%2001-1.08-12.334%208.755%208.755%200%200112.335-1.08l-.901%201.075zm-2.255.844a5.407%205.407%200%2000-5.048%209.563l-.656%201.24a6.81%206.81%200%20016.358-12.043l-.654%201.24zM14.12%208.539a3.46%203.46%200%20100%206.922v1.402a4.863%204.863%200%20010-9.726v1.402z'%20fill='%23F15A29'%20fill-rule='evenodd'%3e%3c/path%3e%3cpath%20d='M15.407%2010.836a2.24%202.24%200%2000-.51-.409%201.084%201.084%200%2000-.544-.152c-.255%200-.483.047-.684.14a1.58%201.58%200%2000-.84.912c-.074.203-.11.416-.11.631%200%20.218.036.43.11.631a1.594%201.594%200%2000.84.913c.2.093.43.14.684.14.216%200%20.417-.046.602-.135.188-.09.35-.225.475-.392l.928%201.006c-.14.14-.3.261-.482.363a3.367%203.367%200%2001-1.083.38c-.17.026-.317.04-.44.04a3.315%203.315%200%2001-1.182-.21%202.825%202.825%200%2001-.961-.597%202.816%202.816%200%2001-.644-.929%202.987%202.987%200%2001-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315%203.315%200%20011.182-.21c.355%200%20.712.068%201.072.204.361.138.685.36.944.649l-.962.97z'%3e%3c/path%3e%3c/svg%3e",Xr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%3c/title%3e%3cpath%20d='M4.709%2015.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0%2011.784l.055-.352.48-.321.686.06%201.52.103%202.278.158%201.652.097%202.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686%201.908%201.476%202.491%201.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97%202.97%200%2001-.104-.729L6.283.134%206.696%200l.996.134.42.364.62%201.414%201.002%202.229%201.555%203.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286%201.851-.559%202.903-.364%201.942h.212l.243-.242.985-1.306%201.652-2.064.73-.82.85-.904.547-.431h1.033l.76%201.129-.34%201.166-1.064%201.347-.881%201.142-1.264%201.7-.79%201.36.073.11.188-.02%202.856-.606%201.543-.28%201.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061%201.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093%201.068%202.006%201.81%202.509%202.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649%202.345%203.521.122%201.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674%207.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434%201.967-2.18%202.945-1.726%201.845-.414.164-.717-.37.067-.662.401-.589%202.388-3.036%201.44-1.882.93-1.086-.006-.158h-.055L4.132%2018.56l-1.13.146-.487-.456.061-.746.231-.243%201.908-1.312-.006.006z'%20fill='%23D97757'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",Zr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20d='M19.503%200H4.496A4.496%204.496%200%20000%204.496v15.007A4.496%204.496%200%20004.496%2024h15.007A4.496%204.496%200%200024%2019.503V4.496A4.496%204.496%200%200019.503%200z'%20fill='%23fff'%3e%3c/path%3e%3cpath%20d='M9.064%203.344a4.578%204.578%200%20012.285-.312c1%20.115%201.891.54%202.673%201.275.01.01.024.017.037.021a.09.09%200%2000.043%200%204.55%204.55%200%20013.046.275l.047.022.116.057a4.581%204.581%200%20012.188%202.399c.209.51.313%201.041.315%201.595a4.24%204.24%200%2001-.134%201.223.123.123%200%2000.03.115c.594.607.988%201.33%201.183%202.17.289%201.425-.007%202.71-.887%203.854l-.136.166a4.548%204.548%200%2001-2.201%201.388.123.123%200%2000-.081.076c-.191.551-.383%201.023-.74%201.494-.9%201.187-2.222%201.846-3.711%201.838-1.187-.006-2.239-.44-3.157-1.302a.107.107%200%2000-.105-.024c-.388.125-.78.143-1.204.138a4.441%204.441%200%2001-1.945-.466%204.544%204.544%200%2001-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81%205.81%200%2001-.37-.961%204.582%204.582%200%2001-.014-2.298.124.124%200%2000.006-.056.085.085%200%2000-.027-.048%204.467%204.467%200%2001-1.034-1.651%203.896%203.896%200%2001-.251-1.192%205.189%205.189%200%2001.141-1.6c.337-1.112.982-1.985%201.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098%200%2000.065-.066%204.51%204.51%200%2001.829-1.615%204.535%204.535%200%20011.837-1.388zm3.482%2010.565a.637.637%200%20000%201.272h3.636a.637.637%200%20100-1.272h-3.636zM8.462%209.23a.637.637%200%2000-1.106.631l1.272%202.224-1.266%202.136a.636.636%200%20101.095.649l1.454-2.455a.636.636%200%2000.005-.64L8.462%209.23z'%20fill='url(%23lobe-icons-codex-_R_0_)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-codex-_R_0_'%20x1='12'%20x2='12'%20y1='3'%20y2='21'%3e%3cstop%20stop-color='%23B1A7FF'%3e%3c/stop%3e%3cstop%20offset='.5'%20stop-color='%237A9DFF'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%233941FF'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Jr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCloudflare%3c/title%3e%3cpath%20d='M16.493%2017.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148%200%2001-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054%202.153-.9%202.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92%208.91%2015.66%207%2012.942%207c-2.503%200-4.628%201.638-5.381%203.903a2.432%202.432%200%2000-1.803-.491c-1.21.109-2.153%201.092-2.287%202.32-.027.328%200%20.628.054.9C1.56%2013.688%200%2015.326%200%2017.319c0%20.19.027.355.027.545%200%20.082.08.137.161.137h15.983c.08%200%20.188-.055.215-.164l.107-.437'%20fill='%23F38020'%3e%3c/path%3e%3cpath%20d='M19.238%2011.75h-.242c-.054%200-.108.054-.135.109l-.35%201.2c-.134.52-.08.983.162%201.338.215.328.592.518%201.05.518l1.855.11c.054%200%20.108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557%201.937l-.134.355c-.027.055.026.137.107.137h6.592c.081%200%20.162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777'%20fill='%23FCAD32'%3e%3c/path%3e%3c/svg%3e",Qr="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCohere%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.128%2014.099c.592%200%201.77-.033%203.398-.703%201.897-.781%205.672-2.2%208.395-3.656%201.905-1.018%202.74-2.366%202.74-4.18A4.56%204.56%200%200018.1%201H7.549A6.55%206.55%200%20001%207.55c0%203.617%202.745%206.549%207.128%206.549z'%20fill='%2339594D'%20fill-rule='evenodd'%3e%3c/path%3e%3cpath%20clip-rule='evenodd'%20d='M9.912%2018.61a4.387%204.387%200%20012.705-4.052l3.323-1.38c3.361-1.394%207.06%201.076%207.06%204.715a5.104%205.104%200%2001-5.105%205.104l-3.597-.001a4.386%204.386%200%2001-4.386-4.387z'%20fill='%23D18EE2'%20fill-rule='evenodd'%3e%3c/path%3e%3cpath%20d='M4.776%2014.962A3.775%203.775%200%20001%2018.738v.489a3.776%203.776%200%20007.551%200v-.49a3.775%203.775%200%2000-3.775-3.775z'%20fill='%23FF7759'%3e%3c/path%3e%3c/svg%3e",e2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDeepSeek%3c/title%3e%3cpath%20d='M23.748%204.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434%201.202-.422%201.84.027%201.436.633%202.58%201.838%203.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526%205.526%200%2001-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365%2011.365%200%2000-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055%203.055%200%2001-.465.137%209.597%209.597%200%2000-2.883-.102c-1.885.21-3.39%201.102-4.497%202.623C.082%208.606-.231%2010.684.152%2012.85c.403%202.284%201.569%204.175%203.36%205.653%201.858%201.533%203.997%202.284%206.438%202.14%201.482-.085%203.133-.284%204.994-1.86.47.234.962.327%201.78.397.63.059%201.236-.03%201.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926%201.096-1.296%202.746-2.642%203.392-7.003.05-.347.007-.565%200-.845-.004-.17.035-.237.23-.256a4.173%204.173%200%20001.545-.475c1.396-.763%201.96-2.015%202.093-3.517.02-.23-.004-.467-.247-.588zM11.581%2018c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696%204.696%200%20011.529-.039c2.132.312%203.946%201.265%205.468%202.774.868.86%201.525%201.887%202.202%202.891.72%201.066%201.494%202.082%202.48%202.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306%200%2001.415-.287.302.302%200%2001.2.288.306.306%200%2001-.31.307.303.303%200%2001-.304-.308zm3.11%201.596c-.2.081-.399.151-.59.16a1.245%201.245%200%2001-.798-.254c-.274-.23-.47-.358-.552-.758a1.73%201.73%200%2001.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559%200%2001-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136%201.146.016.352.144.618.408%201.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z'%20fill='%234D6BFE'%3e%3c/path%3e%3c/svg%3e",t2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDoubao%3c/title%3e%3cpath%20d='M5.31%2015.756c.172-3.75%201.883-5.999%202.549-6.739-3.26%202.058-5.425%205.658-6.358%208.308v1.12C1.501%2021.513%204.226%2024%207.59%2024a6.59%206.59%200%20002.2-.375c.353-.12.7-.248%201.039-.378.913-.899%201.65-1.91%202.243-2.992-4.877%202.431-7.974.072-7.763-4.5l.002.001z'%20fill='%231E37FC'%3e%3c/path%3e%3cpath%20d='M22.57%2010.283c-1.212-.901-4.109-2.404-7.397-2.8.295%203.792.093%208.766-2.1%2012.773a12.782%2012.782%200%2001-2.244%202.992c3.764-1.448%206.746-3.457%208.596-5.219%202.82-2.683%203.353-5.178%203.361-6.66a2.737%202.737%200%2000-.216-1.084v-.002z'%20fill='%2337E1BE'%3e%3c/path%3e%3cpath%20d='M14.303%201.867C12.955.7%2011.248%200%209.39%200%207.532%200%205.883.677%204.545%201.807%202.791%203.29%201.627%205.557%201.5%208.125v9.201c.932-2.65%203.097-6.25%206.357-8.307.5-.318%201.025-.595%201.569-.829%201.883-.801%203.878-.932%205.746-.706-.222-2.83-.718-5.002-.87-5.617h.001z'%20fill='%23A569FF'%3e%3c/path%3e%3cpath%20d='M17.305%204.961a199.47%20199.47%200%2001-1.08-1.094c-.202-.213-.398-.419-.586-.622l-1.333-1.378c.151.615.648%202.786.869%205.617%203.288.395%206.185%201.898%207.396%202.8-1.306-1.275-3.475-3.487-5.266-5.323z'%20fill='%231E37FC'%3e%3c/path%3e%3c/svg%3e",l2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eFireworks%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M14.8%205l-2.801%206.795L9.195%205H7.397l3.072%207.428a1.64%201.64%200%20003.038.002L16.598%205H14.8zm1.196%2010.352l5.124-5.244-.699-1.669-5.596%205.739a1.664%201.664%200%2000-.343%201.807%201.642%201.642%200%20001.516%201.012L16%2017l8-.02-.699-1.669-7.303.041h-.002zM2.88%2010.104l.699-1.669%205.596%205.739c.468.479.603%201.189.343%201.807a1.643%201.643%200%2001-1.516%201.012l-8-.018-.002.002.699-1.669%207.303.042-5.122-5.246z'%20fill='%235019C5'%20fill-rule='evenodd'%3e%3c/path%3e%3c/svg%3e",i2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGoogle%3c/title%3e%3cpath%20d='M23%2012.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124%201.014-.797%202.542-2.294%203.569l-.021.136%203.332%202.53.23.022C21.779%2018.417%2023%2015.593%2023%2012.245z'%20fill='%234285F4'%3e%3c/path%3e%3cpath%20d='M12.225%2023c3.03%200%205.574-.978%207.433-2.665l-3.542-2.688c-.948.648-2.22%201.1-3.891%201.1a6.745%206.745%200%2001-6.386-4.572l-.132.011-3.465%202.628-.045.124C4.043%2020.531%207.835%2023%2012.225%2023z'%20fill='%2334A853'%3e%3c/path%3e%3cpath%20d='M5.84%2014.175A6.65%206.65%200%20015.463%2012c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831%2010.831%200%20001%2012c0%201.772.436%203.447%201.197%204.938l3.642-2.763z'%20fill='%23FBBC05'%3e%3c/path%3e%3cpath%20d='M12.225%205.253c2.108%200%203.529.892%204.34%201.638l3.167-3.031C17.787%202.088%2015.255%201%2012.225%201%207.834%201%204.043%203.469%202.197%207.062l3.63%202.763a6.77%206.77%200%20016.398-4.572z'%20fill='%23EB4335'%3e%3c/path%3e%3c/svg%3e",n2="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGroq%3c/title%3e%3cpath%20d='M12.036%202c-3.853-.035-7%203-7.036%206.781-.035%203.782%203.055%206.872%206.908%206.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362%201.901-4.298%204.308-4.326h.1c2.407%200%204.358%201.915%204.365%204.278v6.305c0%202.342-1.944%204.25-4.323%204.279a4.375%204.375%200%2001-3.033-1.252l-1.851%201.818A7%207%200%200012.029%2022h.092c3.803-.056%206.858-3.083%206.879-6.816v-6.5C18.907%204.963%2015.817%202%2012.036%202z'%3e%3c/path%3e%3c/svg%3e",a2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eHuggingFace%3c/title%3e%3cpath%20d='M2.25%2011.535c0-3.407%201.847-6.554%204.844-8.258a9.822%209.822%200%20019.687%200c2.997%201.704%204.844%204.851%204.844%208.258%200%205.266-4.337%209.535-9.687%209.535S2.25%2016.8%202.25%2011.535z'%20fill='%23FF9D0B'%3e%3c/path%3e%3cpath%20d='M11.938%2020.086c4.797%200%208.687-3.829%208.687-8.551%200-4.722-3.89-8.55-8.687-8.55-4.798%200-8.688%203.828-8.688%208.55%200%204.722%203.89%208.55%208.688%208.55z'%20fill='%23FFD21E'%3e%3c/path%3e%3cpath%20d='M11.875%2015.113c2.457%200%203.25-2.156%203.25-3.263%200-.576-.393-.394-1.023-.089-.582.283-1.365.675-2.224.675-1.798%200-3.25-1.693-3.25-.586%200%201.107.79%203.263%203.25%203.263h-.003z'%20fill='%23FF323D'%3e%3c/path%3e%3cpath%20d='M14.76%209.21c.32.108.445.753.767.585.447-.233.707-.708.659-1.204a1.235%201.235%200%2000-.879-1.059%201.262%201.262%200%2000-1.33.394c-.322.384-.377.92-.14%201.36.153.283.638-.177.925-.079l-.002.003zm-5.887%200c-.32.108-.448.753-.768.585a1.226%201.226%200%2001-.658-1.204c.048-.495.395-.913.878-1.059a1.262%201.262%200%20011.33.394c.322.384.377.92.14%201.36-.152.283-.64-.177-.925-.079l.003.003zm1.12%205.34a2.166%202.166%200%20011.325-1.106c.07-.02.144.06.219.171l.192.306c.069.1.139.175.209.175.074%200%20.15-.074.223-.172l.205-.302c.08-.11.157-.188.234-.165.537.168.986.536%201.25%201.026.932-.724%201.275-1.905%201.275-2.633%200-.508-.306-.426-.81-.19l-.616.296c-.52.24-1.148.48-1.824.48-.676%200-1.302-.24-1.823-.48l-.589-.283c-.52-.248-.838-.342-.838.177%200%20.703.32%201.831%201.187%202.56l.18.14z'%20fill='%233A3B45'%3e%3c/path%3e%3cpath%20d='M17.812%2010.366a.806.806%200%2000.813-.8c0-.441-.364-.8-.813-.8a.806.806%200%2000-.812.8c0%20.442.364.8.812.8zm-11.624%200a.806.806%200%2000.812-.8c0-.441-.364-.8-.812-.8a.806.806%200%2000-.813.8c0%20.442.364.8.813.8zM4.515%2013.073c-.405%200-.765.162-1.017.46a1.455%201.455%200%2000-.333.925%201.801%201.801%200%2000-.485-.074c-.387%200-.737.146-.985.409a1.41%201.41%200%2000-.2%201.722%201.302%201.302%200%2000-.447.694c-.06.222-.12.69.2%201.166a1.267%201.267%200%2000-.093%201.236c.238.533.81.958%201.89%201.405l.24.096c.768.3%201.473.492%201.478.494.89.243%201.808.375%202.732.394%201.465%200%202.513-.443%203.115-1.314.93-1.342.842-2.575-.274-3.763l-.151-.154c-.692-.684-1.155-1.69-1.25-1.912-.195-.655-.71-1.383-1.562-1.383-.46.007-.889.233-1.15.605-.25-.31-.495-.553-.715-.694a1.87%201.87%200%2000-.993-.312zm14.97%200c.405%200%20.767.162%201.017.46.216.262.333.588.333.925.158-.047.322-.071.487-.074.388%200%20.738.146.985.409a1.41%201.41%200%2001.2%201.722c.22.178.377.422.445.694.06.222.12.69-.2%201.166.244.37.279.836.093%201.236-.238.533-.81.958-1.889%201.405l-.239.096c-.77.3-1.475.492-1.48.494-.89.243-1.808.375-2.732.394-1.465%200-2.513-.443-3.115-1.314-.93-1.342-.842-2.575.274-3.763l.151-.154c.695-.684%201.157-1.69%201.252-1.912.195-.655.708-1.383%201.56-1.383.46.007.889.233%201.15.605.25-.31.495-.553.718-.694.244-.162.523-.265.814-.3l.176-.012z'%20fill='%23FF9D0B'%3e%3c/path%3e%3cpath%20d='M9.785%2020.132c.688-.994.638-1.74-.305-2.667-.945-.928-1.495-2.288-1.495-2.288s-.205-.788-.672-.714c-.468.074-.81%201.25.17%201.971.977.721-.195%201.21-.573.534-.375-.677-1.405-2.416-1.94-2.751-.532-.332-.907-.148-.782.541.125.687%202.357%202.35%202.14%202.707-.218.362-.983-.42-.983-.42S2.953%2014.9%202.43%2015.46c-.52.558.398%201.026%201.7%201.803%201.308.778%201.41.985%201.225%201.28-.187.295-3.07-2.1-3.34-1.083-.27%201.011%202.943%201.304%202.745%202.006-.2.7-2.265-1.324-2.685-.537-.425.79%202.913%201.718%202.94%201.725%201.075.276%203.813.859%204.77-.522zm4.432%200c-.687-.994-.64-1.74.305-2.667.943-.928%201.493-2.288%201.493-2.288s.205-.788.675-.714c.465.074.807%201.25-.17%201.971-.98.721.195%201.21.57.534.377-.677%201.407-2.416%201.94-2.751.532-.332.91-.148.782.541-.125.687-2.355%202.35-2.137%202.707.215.362.98-.42.98-.42S21.05%2014.9%2021.57%2015.46c.52.558-.395%201.026-1.7%201.803-1.308.778-1.408.985-1.225%201.28.187.295%203.07-2.1%203.34-1.083.27%201.011-2.94%201.304-2.743%202.006.2.7%202.263-1.324%202.685-.537.423.79-2.912%201.718-2.94%201.725-1.077.276-3.815.859-4.77-.522z'%20fill='%23FFD21E'%3e%3c/path%3e%3c/svg%3e",r2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eHunyuan%3c/title%3e%3ccircle%20cx='12'%20cy='12'%20fill='%230055E9'%20r='12'%3e%3c/circle%3e%3cpath%20d='M12%200c.518%200%201.028.033%201.528.096A6.188%206.188%200%200112.12%2012.28l-.12.001c-2.99%200-5.242%202.179-5.554%205.11-.223%202.086.353%204.412%202.242%206.146C3.672%2022.1%200%2017.479%200%2012%200%205.373%205.373%200%2012%200z'%20fill='%23A8DFF5'%3e%3c/path%3e%3cpath%20d='M5.286%205a2.438%202.438%200%2001.682%203.38c-3.962%205.966-3.215%2010.743%202.648%2015.136C3.636%2022.056%200%2017.452%200%2012c0-1.787.39-3.482%201.09-5.006.253-.435.525-.872.817-1.311A2.438%202.438%200%20015.286%205z'%20fill='%230055E9'%3e%3c/path%3e%3cpath%20d='M12.98.04c.272.021.543.053.81.093.583.106%201.117.254%201.538.44%206.638%202.927%208.07%2010.052%201.748%2015.642a4.125%204.125%200%2001-5.822-.358c-1.51-1.706-1.3-4.184.357-5.822.858-.848%203.108-1.223%204.045-2.441%201.257-1.634%202.122-6.009-2.523-7.506L12.98.039z'%20fill='%2300BCFF'%3e%3c/path%3e%3cpath%20d='M13.528.096A6.187%206.187%200%200112%2012.281a5.75%205.75%200%2000-1.71.255c.147-.905.595-1.784%201.321-2.501.858-.848%203.108-1.223%204.045-2.441%201.27-1.651%202.14-6.104-2.676-7.554.184.014.367.033.548.056z'%20fill='%23ECECEE'%3e%3c/path%3e%3c/svg%3e",u2="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eKimi%3c/title%3e%3cpath%20d='M21.846%200a1.923%201.923%200%20110%203.846H20.15a.226.226%200%2001-.227-.226V1.923C19.923.861%2020.784%200%2021.846%200z'%3e%3c/path%3e%3cpath%20d='M11.065%2011.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164%200%2000-.117.051l-7.82%207.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103%200-.186.103-.186.23V19.77c0%20.128.083.23.186.23h2.69c.103%200%20.186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158%200%2001.205-.023l6.484%204.772a7.677%207.677%200%20003.453%201.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028%205.028%200%2001-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z'%3e%3c/path%3e%3c/svg%3e",s2="/assets/meta-color-DjXqXA8M.svg",o2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMinimax%3c/title%3e%3cdefs%3e%3clinearGradient%20id='lobe-icons-minimax-_R_0_'%20x1='0%25'%20x2='100.182%25'%20y1='50.057%25'%20y2='50.057%25'%3e%3cstop%20offset='0%25'%20stop-color='%23E2167E'%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%23FE603C'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M16.278%202c1.156%200%202.093.927%202.093%202.07v12.501a.74.74%200%2000.744.709.74.74%200%2000.743-.709V9.099a2.06%202.06%200%20012.071-2.049A2.06%202.06%200%200124%209.1v6.561a.649.649%200%2001-.652.645.649.649%200%2001-.653-.645V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v7.472a2.037%202.037%200%2001-2.048%202.026%202.037%202.037%200%2001-2.048-2.026v-12.5a.785.785%200%2000-.788-.753.785.785%200%2000-.789.752l-.001%2015.904A2.037%202.037%200%200113.441%2022a2.037%202.037%200%2001-2.048-2.026V18.04c0-.356.292-.645.652-.645.36%200%20.652.289.652.645v1.934c0%20.263.142.506.372.638.23.131.514.131.744%200a.734.734%200%2000.372-.638V4.07c0-1.143.937-2.07%202.093-2.07zm-5.674%200c1.156%200%202.093.927%202.093%202.07v11.523a.648.648%200%2001-.652.645.648.648%200%2001-.652-.645V4.07a.785.785%200%2000-.789-.78.785.785%200%2000-.789.78v14.013a2.06%202.06%200%2001-2.07%202.048%202.06%202.06%200%2001-2.071-2.048V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v3.8a2.06%202.06%200%2001-2.071%202.049A2.06%202.06%200%20010%2012.9v-1.378c0-.357.292-.646.652-.646.36%200%20.653.29.653.646V12.9c0%20.418.343.757.766.757s.766-.339.766-.757V9.099a2.06%202.06%200%20012.07-2.048%202.06%202.06%200%20012.071%202.048v8.984c0%20.419.343.758.767.758.423%200%20.766-.339.766-.758V4.07c0-1.143.937-2.07%202.093-2.07z'%20fill='url(%23lobe-icons-minimax-_R_0_)'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",c2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMistral%3c/title%3e%3cpath%20d='M3.428%203.4h3.429v3.428H3.428V3.4zm13.714%200h3.43v3.428h-3.43V3.4z'%20fill='gold'%3e%3c/path%3e%3cpath%20d='M3.428%206.828h6.857v3.429H3.429V6.828zm10.286%200h6.857v3.429h-6.857V6.828z'%20fill='%23FFAF00'%3e%3c/path%3e%3cpath%20d='M3.428%2010.258h17.144v3.428H3.428v-3.428z'%20fill='%23FF8205'%3e%3c/path%3e%3cpath%20d='M3.428%2013.686h3.429v3.428H3.428v-3.428zm6.858%200h3.429v3.428h-3.429v-3.428zm6.856%200h3.43v3.428h-3.43v-3.428z'%20fill='%23FA500F'%3e%3c/path%3e%3cpath%20d='M0%2017.114h10.286v3.429H0v-3.429zm13.714%200H24v3.429H13.714v-3.429z'%20fill='%23E10500'%3e%3c/path%3e%3c/svg%3e",d2="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMoonshotAI%3c/title%3e%3cpath%20d='M1.052%2016.916l9.539%202.552a21.007%2021.007%200%2000.06%202.033l5.956%201.593a11.997%2011.997%200%2001-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605%2011.605%200%2001-.157-.02l-.107-.014-.11-.016a11.962%2011.962%200%2001-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293%206.293%200%2001-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655%205.655%200%2001-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49%206.49%200%2001-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785%207.785%200%2001-.054-.036l-.044-.03-.044-.03a6.066%206.066%200%2001-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516%207.516%200%2001-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28%2013.28%200%2001-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457%206.457%200%2001-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175%207.175%200%2001-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99%2011.99%200%2001-1.44-2.402zm-1.02-5.794l11.353%203.037a20.468%2020.468%200%2000-.469%202.011l10.817%202.894a12.076%2012.076%200%2001-1.845%202.005L.657%2015.923l-.016-.046-.035-.104a11.965%2011.965%200%2001-.05-.153l-.007-.023a11.896%2011.896%200%2001-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01%2012.01%200%2001-.019-.161l-.005-.047a12.12%2012.12%200%2001-.034-2.145zm1.593-5.15l11.948%203.196c-.368.605-.705%201.231-1.01%201.875l11.295%203.022c-.142.82-.368%201.612-.668%202.365l-11.55-3.09L.124%2010.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896%2011.896%200%20011.01-2.232zm4.442-4.4L17.352%204.59a20.77%2020.77%200%2000-1.688%201.721l7.823%202.093c.267.852.442%201.744.513%202.665L2.106%205.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084%2012.084%200%20012.272-1.677zM12.017%200h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6%201.353%201.283%201.909%202.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z'%3e%3c/path%3e%3c/svg%3e",h2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eNvidia%3c/title%3e%3cpath%20d='M10.212%208.976V7.62c.127-.01.256-.017.388-.021%203.596-.117%205.957%203.184%205.957%203.184s-2.548%203.647-5.282%203.647a3.227%203.227%200%2001-1.063-.175v-4.109c1.4.174%201.681.812%202.523%202.258l1.873-1.627a4.905%204.905%200%2000-3.67-1.846%206.594%206.594%200%2000-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024%205.002-.174%208.261%204.226%208.261%204.226s-3.743%204.69-7.643%204.69c-.338%200-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057%203.629%200%206.253-1.91%208.794-4.169.421.347%202.146%201.193%202.501%201.564-2.416%202.083-8.048%203.763-11.24%203.763-.308%200-.603-.02-.894-.048V19.5H24v-15H10.21zm0%209.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173%207.173%200%20014.287-2.138v1.172h-.005a3.182%203.182%200%2000-2.502%201.178s.615%202.276%202.507%202.931m-5.961-3.3c1.436-1.935%203.604-3.148%205.961-3.336V6.523C5.81%206.887%202%2010.723%202%2010.723s2.158%206.427%208.21%207.015v-1.166C5.77%2016%204.25%2010.958%204.25%2010.958h-.002z'%20fill='%2374B71B'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",f2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3ePerplexity%3c/title%3e%3cpath%20d='M19.785%200v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392%2024v-6.465H1.5V7.188h2.884V0l7.053%206.494V.19h1.09v6.49L19.786%200zm-7.257%209.044v7.319l5.946%205.234V14.44l-5.946-5.397zm-1.099-.08l-5.946%205.398v7.235l5.946-5.234V8.965zm8.136%207.58h1.844V8.349H13.46l6.105%205.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475%202.476v4.71h5.115l-5.115-4.71zm13.219%200l-5.115%204.71h5.115v-4.71z'%20fill='%2322B8CD'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",m2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eStepfun%3c/title%3e%3cpath%20d='M22.012%200h1.032v.927H24v.968h-.956V3.78h-1.032V1.896h-1.878v-.97h1.878V0zM2.6%2012.371V1.87h.969v10.502h-.97zm10.423.66h10.95v.918h-6.208v9.579h-4.742V13.03zM5.629%203.333v12.356H0v4.51h10.386V8L20.859%208l-.003-4.668-15.227.001z'%20fill='url(%23lobe-icons-stepfun-_R_0_)'%20fill-rule='evenodd'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-stepfun-_R_0_'%20x1='1.646'%20x2='18.342'%20y1='1.916'%20y2='22.091'%3e%3cstop%20stop-color='%2301A9FF'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%230160FF'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",p2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3etogether.ai%3c/title%3e%3cpath%20d='M23.197%204.503A6%206%200%200015%202.307a5.973%205.973%200%2000-2.995%204.933l5.996.008v.515h-5.996c.039.937.298%201.87.8%202.74a6%206%200%201010.39-6z'%20fill='%23EF2CC1'%3e%3c/path%3e%3cpath%20d='M.805%204.5A6%206%200%20003%2012.697a5.972%205.972%200%20005.77.127L5.779%207.627l.446-.257%202.997%205.192A6%206%200%2010.804%204.5z'%20fill='%23CAAEF5'%3e%3c/path%3e%3cpath%20d='M12%2023.894a6%206%200%20005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005%205.189-.444-.258%202.997-5.192A6%206%200%201012%2023.894z'%20fill='%23FC4C02'%3e%3c/path%3e%3c/svg%3e",g2="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eYi%3c/title%3e%3cpath%20d='M18.62%2013.927c.611%200%201.107.505%201.107%201.128v5.817c0%20.623-.496%201.128-1.108%201.128a1.118%201.118%200%2001-1.108-1.128v-5.817c0-.623.496-1.128%201.108-1.128zM16.59%203.052a1.094%201.094%200%20011.562-.129c.466.404.522%201.116.126%201.59l-5.938%207.111v9.147c0%20.624-.496%201.129-1.108%201.129a1.118%201.118%200%2001-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906%202.256a1.094%201.094%200%20011.559.157l4.387%205.45a1.142%201.142%200%2001-.155%201.587%201.094%201.094%200%2001-1.559-.157l-4.387-5.45a1.144%201.144%200%2001.06-1.498l.095-.09z'%3e%3c/path%3e%3cellipse%20cx='20.146'%20cy='10.692'%20fill='%2300FF25'%20rx='1.354'%20ry='1.379'%3e%3c/ellipse%3e%3c/svg%3e",y2="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eZhipu%3c/title%3e%3cpath%20d='M11.991%2023.503a.24.24%200%2000-.244.248.24.24%200%2000.244.249.24.24%200%2000.245-.249.24.24%200%2000-.22-.247l-.025-.001zM9.671%205.365a1.697%201.697%200%20011.099%202.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47%201.279%201.186%201.314h.366c1.309.053%202.338%201.173%202.286%202.523-.052%201.332-1.152%202.38-2.478%202.327h-.174c-.715.018-1.274.64-1.239%201.368%200%20.124.018.23.053.337.209.373.54.658.96.8.75.23%201.517-.125%201.9-.782l.018-.035c.402-.64%201.17-.96%201.92-.711.854.284%201.378%201.226%201.099%202.167a1.661%201.661%200%2001-2.077%201.102%201.711%201.711%200%2001-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646%201.646%200%2000-1.954.746%201.66%201.66%200%2001-1.065.764%201.677%201.677%200%2001-1.989-1.279c-.209-.906.332-1.83%201.257-2.043a1.51%201.51%200%2001.296-.035h.018c.68-.071%201.151-.622%201.116-1.333a1.307%201.307%200%2000-.227-.693%202.515%202.515%200%2001-.366-1.403%202.39%202.39%200%2001.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43%201.43%200%2001-.299-.07l-.05-.019a1.7%201.7%200%2001-1.047-2.114%201.68%201.68%200%20012.094-1.101zm-5.575%2010.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267%201.013-.402.41-1.053.41-1.455%200a1.062%201.062%200%20010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237%201.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05%201.05%200%2001.757-1.26zm-.064-4.39c.314.32.49.753.49%201.206%200%20.452-.176.886-.49%201.206-.315.32-.74.5-1.185.5-.444%200-.87-.18-1.184-.5a1.727%201.727%200%20010-2.412%201.654%201.654%200%20012.369%200zm-11.243.163c.364.484.447%201.128.218%201.691a1.665%201.665%200%2001-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68%201.68%200%20011.33-1.038c.593-.08%201.183.169%201.547.652zm11.545-4.221c.368%200%20.708.2.892.524.184.324.184.724%200%201.048a1.026%201.026%200%2001-.892.524c-.568%200-1.03-.47-1.03-1.048%200-.579.462-1.048%201.03-1.048zm-14.358%200c.368%200%20.707.2.891.524.184.324.184.724%200%201.048a1.026%201.026%200%2001-.891.524c-.569%200-1.03-.47-1.03-1.048%200-.579.461-1.048%201.03-1.048zm10.031-1.475c.925%200%201.675.764%201.675%201.706s-.75%201.705-1.675%201.705-1.674-.763-1.674-1.705c0-.942.75-1.706%201.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062%201.062%200%2000-.238-1.028%201.017%201.017%200%2000-.996-.294c-.547.14-.881.7-.752%201.257.13.558.675.907%201.225.783zm0%2016.876c.359-.087.644-.36.75-.72a1.062%201.062%200%2000-.237-1.019%201.018%201.018%200%2000-.985-.301%201.037%201.037%200%2000-.762.717c-.108.361-.017.754.239%201.028.245.263.606.377.953.305l.043-.01zM17.19%203.5a.631.631%200%2000.628-.64c0-.355-.279-.64-.628-.64a.631.631%200%2000-.628.64c0%20.355.28.64.628.64zm-10.38%200a.631.631%200%2000.628-.64c0-.355-.28-.64-.628-.64a.631.631%200%2000-.628.64c0%20.355.279.64.628.64zm-5.182%207.852a.631.631%200%2000-.628.64c0%20.354.28.639.628.639a.63.63%200%2000.627-.606l.001-.034a.62.62%200%2000-.628-.64zm5.182%209.13a.631.631%200%2000-.628.64c0%20.355.279.64.628.64a.631.631%200%2000.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631%200%2000-.628.64c0%20.355.28.64.628.64a.631.631%200%2000.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631%200%2000-.628.64c0%20.354.279.639.628.639a.631.631%200%2000.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24%200%2000.244-.249.24.24%200%2000-.244-.249.24.24%200%2000-.244.249c0%20.142.122.249.244.249zM11.991.497a.24.24%200%2000.245-.248A.24.24%200%200011.99%200a.24.24%200%2000-.244.249c0%20.133.108.236.223.247l.021.001zM2.011%206.36a.24.24%200%2000.245-.249.24.24%200%2000-.244-.249.24.24%200%2000-.244.249.24.24%200%2000.244.249zm0%2011.263a.24.24%200%2000-.243.248.24.24%200%2000.244.249.24.24%200%2000.244-.249.252.252%200%2000-.244-.248zm19.995-.018a.24.24%200%2000-.245.248.24.24%200%2000.245.25.24.24%200%2000.244-.25.252.252%200%2000-.244-.248z'%20fill='%233859FF'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",b2=new Set(["grok","groq","kimi","moonshot","openai","zai"]),x2={ai21:_r,alibaba:Wr,aws:Or,azure:Ur,baidu:qr,bytedance:Yr,cerebras:Gr,claude:Xr,codex:Zr,cloudflare:Jr,cohere:Qr,deepseek:e2,doubao:t2,fireworks:l2,google:i2,grok:Rn,groq:n2,huggingface:a2,hunyuan:r2,kimi:u2,meta:s2,minimax:o2,mistral:c2,moonshot:d2,nvidia:h2,openai:An,perplexity:f2,stepfun:m2,together:p2,zai:Mn,yi:g2,zhipu:y2};function _e({provider:l,size:e=22}){const t=x2[l.icon],i=b2.has(l.icon);return t?g.jsx("img",{alt:"","aria-hidden":!0,className:`shrink-0 object-contain ${i?"dark:invert":""}`,height:e,src:t,width:e}):g.jsx("span",{"aria-hidden":!0,className:"flex shrink-0 items-center justify-center rounded-md bg-foreground/10 font-sans text-[10px] font-bold text-foreground/65",style:{height:e,width:e},children:l.label.slice(0,1)})}const Ot={ai21:{label:"AI21 Labs",icon:"ai21"},alibaba:{label:"Alibaba",icon:"alibaba"},aws:{label:"AWS",icon:"aws"},anthropic:{label:"Claude",icon:"claude"},azure:{label:"Azure",icon:"azure"},baidu:{label:"Baidu",icon:"baidu"},bytedance:{label:"ByteDance",icon:"bytedance"},cerebras:{label:"Cerebras",icon:"cerebras"},claude:{label:"Claude",icon:"claude"},cohere:{label:"Cohere",icon:"cohere"},cloudflare:{label:"Cloudflare",icon:"cloudflare"},codex:{label:"Codex",icon:"codex"},deepseek:{label:"DeepSeek",icon:"deepseek"},doubao:{label:"Doubao",icon:"doubao"},fireworks:{label:"Fireworks",icon:"fireworks"},gemini:{label:"Google",icon:"google"},google:{label:"Google",icon:"google"},grok:{label:"xAI",icon:"grok"},groq:{label:"Groq",icon:"groq"},huggingface:{label:"Hugging Face",icon:"huggingface"},hunyuan:{label:"Tencent",icon:"hunyuan"},kimi:{label:"Kimi",icon:"kimi"},meta:{label:"Meta",icon:"meta"},minimax:{label:"MiniMax",icon:"minimax"},mistral:{label:"Mistral",icon:"mistral"},moonshot:{label:"Moonshot",icon:"moonshot"},nvidia:{label:"NVIDIA",icon:"nvidia"},openai:{label:"OpenAI",icon:"openai"},perplexity:{label:"Perplexity",icon:"perplexity"},qwen:{label:"Alibaba",icon:"alibaba"},stepfun:{label:"StepFun",icon:"stepfun"},together:{label:"Together AI",icon:"together"},xai:{label:"xAI",icon:"grok"},yi:{label:"01.AI",icon:"yi"},zai:{label:"Z.ai",icon:"zai"},zhipu:{label:"Zhipu AI",icon:"zhipu"}},v2={"alibaba-cn":"alibaba","amazon-bedrock":"aws","azure-cognitive-services":"azure","cloudflare-ai-gateway":"cloudflare","fireworks-ai":"fireworks","github-copilot":"openai","google-vertex":"google","google-vertex-anthropic":"claude",minimax:"minimax","minimax-cn":"minimax",moonshotai:"moonshot",openrouter:"openai","perplexity-agent":"perplexity",togetherai:"together",xiaomi:"kimi",zai:"zai",zhipuai:"zhipu"},$2=[[/claude/,"claude"],[/\bcodex\b/,"codex"],[/(^|[\/_-])gpt([\/_.-]|$)|chatgpt|(^|[\/_-])o[1-9]([\/_.-]|$)/,"openai"],[/gemini|gemma/,"google"],[/qwen/,"qwen"],[/deepseek/,"deepseek"],[/grok/,"grok"],[/mistral|mixtral/,"mistral"],[/kimi/,"kimi"],[/moonshot/,"moonshot"],[/minimax/,"minimax"],[/llama|meta-llama/,"meta"],[/command|cohere/,"cohere"],[/jamba/,"ai21"],[/ai21/,"ai21"],[/nova|titan/,"aws"],[/doubao/,"doubao"],[/hunyuan/,"hunyuan"],[/glm|chatglm|zhipu/,"zhipu"],[/ernie/,"baidu"],[/yi-/,"yi"],[/step[-_]?\w/,"stepfun"],[/sonar|perplexity/,"perplexity"],[/nvidia|nemotron/,"nvidia"],[/groq/,"groq"],[/cerebras/,"cerebras"]];function Ut(l){const e=Ot[l]?l:v2[l],t=e?Ot[e]:void 0;return t?{key:e,...t}:{key:"unknown",label:"Other",icon:"unknown"}}function He(l){const e=l.trim().toLowerCase();for(const[i,n]of $2)if(i.test(e))return Ut(n);const t=e.split("/").filter(Boolean)[0]??"";return Ut(t.replace(/\s+/g,"-"))}const w2=new Set(["302ai","abacus","aihubmix","cloudflare-ai-gateway","crossmodel","edenai","empiriolabs","fastrouter","helicone","impossibl","jiekou","kilo","llmgateway","llmtr","merge-gateway","nano-gpt","neon","ofox","openrouter","opencode","opencode-go","orcarouter","poe","pioneer","requesty","routing-run","siliconflow","siliconflow-cn","submodel","synthetic","venice","vercel","xpersona","zenmux"]);function C2(l){var t;const e=(t=l.trim().split("/",1)[0])==null?void 0:t.toLocaleLowerCase();return e?w2.has(e):!1}function z2(l){return l.filter(e=>!C2(e.model))}const S2={column:"inputOutput",direction:"descending"};function Pe(l){const e=l.split("/").filter(Boolean);return e[e.length-1]??l}function k2(l,e,t){const i=e.trim().toLocaleLowerCase();return[...i?l.filter(a=>a.model.toLocaleLowerCase().includes(i)):l].sort((a,r)=>{const u=t.column==="model"?[Pe(a.model).localeCompare(Pe(r.model))]:t.column==="inputOutput"?[a.input-r.input,a.output-r.output]:[a.cacheRead-r.cacheRead,a.cacheWrite-r.cacheWrite];for(const s of u)if(s!==0)return t.direction==="descending"?-s:s;return a.model.localeCompare(r.model)})}const $t="!h-8 !min-h-8",E2=160,D2=32,at={inputOutput:"24%",cache:"18%",modelMin:104},qt={inputOutput:112,cache:96},V0=new Set(["model","inputOutput","cache"]);function de(l){return!Number.isFinite(l)||l<=0?"$0":`$${new Intl.NumberFormat("en-US",{maximumSignificantDigits:6}).format(l)}`}function I2({onQueryChange:l}){const[e,t]=f.useState("");return f.useEffect(()=>{const i=window.setTimeout(()=>l(e),E2);return()=>window.clearTimeout(i)},[l,e]),g.jsxs(Be,{className:"min-w-0 flex-1 text-xs sm:max-w-80",variant:"secondary",onChange:t,children:[g.jsx(pt,{className:"sr-only",children:"模糊查询模型"}),g.jsxs(Be.Group,{className:`${$t} focus-within:!border-border focus-within:!outline-none focus-within:!ring-0 focus-within:!shadow-none`,children:[g.jsx(Be.SearchIcon,{}),g.jsx(Be.Input,{className:"!text-xs",placeholder:"模糊查询模型"}),g.jsx(Be.ClearButton,{})]})]})}function B2(){return g.jsxs("section",{className:"space-y-3",children:[g.jsxs("div",{"aria-label":"价格筛选条件",className:"flex min-w-0 flex-wrap items-center gap-2",children:[g.jsx(it,{className:"h-8 w-full rounded-xl sm:w-80"}),g.jsx(it,{className:"h-8 w-28 rounded-xl"})]}),g.jsx("div",{"aria-label":"模型价格加载中",className:"space-y-3",children:Array.from({length:8},(l,e)=>g.jsx(it,{className:"h-11 w-full rounded-lg"},e))})]})}function Yt(l){return`${l.icon}:${l.label.toLocaleLowerCase()}`}function M2({onChange:l,options:e,value:t}){const i=e.find(n=>n.key===t);return g.jsxs(te,{"aria-label":"供应商筛选",className:"min-w-0 max-w-36 shrink-0 text-xs sm:max-w-52",value:t||"all",variant:"secondary",onChange:n=>{l(n==null||Array.isArray(n)?null:String(n))},children:[g.jsx(pt,{className:"sr-only",children:"供应商筛选"}),g.jsxs(te.Trigger,{className:`${$t} !w-fit max-w-36 items-center leading-none ps-2.5 pe-7 !text-xs font-normal sm:max-w-52 sm:ps-3 sm:pe-8`,children:[g.jsx(te.Value,{className:"min-w-0 max-w-24 !text-xs sm:max-w-40",children:()=>i?g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(_e,{provider:i,size:14}),g.jsx("span",{className:"truncate",children:i.label})]}):"全部供应商"}),g.jsx(te.Indicator,{className:"size-3.5 text-muted"})]}),g.jsx(te.Popover,{className:"w-52 rounded-xl bg-surface shadow-md",placement:"bottom start",children:g.jsxs(le,{"aria-label":"供应商列表",children:[g.jsxs(le.Item,{id:"all",textValue:"全部供应商",children:["全部供应商",g.jsx(le.ItemIndicator,{})]}),e.map(n=>g.jsxs(le.Item,{className:"gap-2! rounded-lg px-1.5 py-1 text-xs",id:n.key,textValue:n.label,children:[g.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center",children:g.jsx(_e,{provider:n,size:14})}),g.jsx("span",{className:"min-w-0 flex-1 truncate",children:n.label}),g.jsx(le.ItemIndicator,{})]},n.key))]})})]})}function A2(){const[l,e]=f.useState(()=>typeof window<"u"&&window.matchMedia("(max-width: 639px)").matches);return f.useEffect(()=>{const t=window.matchMedia("(max-width: 639px)"),i=()=>e(t.matches);return i(),t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[]),l}function R2({rows:l}){return l.length===0?g.jsxs("div",{className:"flex h-[calc(100vh-145px)] min-h-48 flex-col items-center justify-center gap-1 text-center",children:[g.jsx("p",{className:"text-sm font-medium",children:"没有匹配的模型"}),g.jsx("p",{className:"text-xs text-muted",children:"请尝试其他关键词"})]}):g.jsx("div",{className:"w-full min-w-0 max-w-full overflow-hidden pb-2",children:g.jsx(k0,{layout:C0,layoutOptions:{gap:4,rowHeight:132},children:g.jsx(le,{"aria-label":"模型价格列表",className:"box-border h-[calc(100vh-145px)] w-full min-w-0 max-w-full overflow-x-hidden overflow-y-auto !p-0",items:l,selectionMode:"none",children:e=>{const t=He(e.model);return g.jsx(le.Item,{className:"box-border !h-[128px] !min-h-0 !w-full min-w-0 max-w-full !items-stretch rounded-xl border border-border/70 bg-surface !p-3 shadow-[rgba(0,0,0,0.08)_0px_1px_4px,rgba(0,0,0,0.04)_0px_0px_0px_1px] outline-none data-[focus-visible=true]:border-border data-[hovered=true]:bg-surface-secondary",id:e.model,textValue:`${Pe(e.model)} ${e.model}`,children:g.jsxs("div",{className:"flex min-w-0 flex-1 flex-col justify-between",children:[g.jsxs("div",{className:"flex h-9 min-w-0 shrink-0 items-center gap-2",children:[g.jsx("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-xl border border-border/60 bg-surface-secondary",children:g.jsx(_e,{provider:t,size:20})}),g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate font-mono text-sm font-medium text-foreground",children:Pe(e.model)}),e.model.includes("/")?g.jsx("span",{className:"block truncate text-xs text-muted",title:e.model,children:e.model}):null]})]}),g.jsxs("div",{className:"grid min-w-0 grid-cols-2 gap-x-2 gap-y-1 border-t border-border/60 pt-2",children:[g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-xs tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"输入"}),g.jsx("span",{children:de(e.input)}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]}),g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-xs tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"输出"}),g.jsx("span",{children:de(e.output)}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]}),g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-xs tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"缓存读"}),g.jsx("span",{children:e.cacheRead>0?de(e.cacheRead):"-"}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]}),g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-xs tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"缓存写"}),g.jsx("span",{children:e.cacheWrite>0?de(e.cacheWrite):"-"}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]})]})]})})}})})})}const Gt=[{key:"inputOutput:descending",label:"输入价格:从高到低"},{key:"inputOutput:ascending",label:"输入价格:从低到高"},{key:"model:ascending",label:"模型名称:A → Z"},{key:"model:descending",label:"模型名称:Z → A"},{key:"cache:descending",label:"缓存价格:从高到低"},{key:"cache:ascending",label:"缓存价格:从低到高"}];function P2({onChange:l,value:e}){const t=`${e.column}:${e.direction}`;return g.jsxs(te,{"aria-label":"模型价格排序",className:"min-w-0 max-w-[9rem] shrink-0 text-xs sm:hidden",value:t,variant:"secondary",onChange:i=>{if(i==null||Array.isArray(i))return;const[n,a]=String(i).split(":");V0.has(n)&&(a!=="ascending"&&a!=="descending"||l({column:n,direction:a}))},children:[g.jsx(pt,{className:"sr-only",children:"模型价格排序"}),g.jsxs(te.Trigger,{className:`${$t} !w-fit max-w-[9rem] ps-2.5 pe-7 !text-xs`,children:[g.jsx(te.Value,{className:"truncate !text-xs",children:()=>{var i;return((i=Gt.find(n=>n.key===t))==null?void 0:i.label)??"排序"}}),g.jsx(te.Indicator,{className:"size-3.5 text-muted"})]}),g.jsx(te.Popover,{className:"w-52 rounded-xl bg-surface shadow-md",placement:"bottom start",children:g.jsx(le,{"aria-label":"模型价格排序选项",children:Gt.map(i=>g.jsxs(le.Item,{id:i.key,textValue:i.label,children:[i.label,g.jsx(le.ItemIndicator,{})]},i.key))})})]})}function K2(){const[l,e]=f.useState(null),[t,i]=f.useState(!0),[n,a]=f.useState(null),[r,u]=f.useState(0),[s,o]=f.useState(""),[h,c]=f.useState(""),[d,m]=f.useState(S2),p=A2();f.useEffect(()=>{let w=!1;return i(!0),a(null),Pn().then($=>{w||e($)}).catch($=>{w||(e(null),a($ instanceof Error?$.message:"模型价格加载失败"))}).finally(()=>{w||i(!1)}),()=>{w=!0}},[r]);const y=f.useMemo(()=>z2((l==null?void 0:l.models)??[]),[l==null?void 0:l.models]),v=f.useMemo(()=>{const w=new Map;for(const $ of y){const z=He($.model),D=Yt(z);w.has(D)||w.set(D,{...z,key:D})}return[...w.values()].sort(($,z)=>$.label.localeCompare(z.label))},[y]),b=f.useMemo(()=>k2(y,s,d).filter(w=>h?Yt(He(w.model))===h:!0),[y,h,s,d]),S=w=>{V0.has(w.column)&&m({column:w.column,direction:w.direction})},C=f.useCallback(w=>{o(w)},[]),k=w=>{c(w==null||w==="all"?"":w)};return t?g.jsx(B2,{}):n?g.jsxs("div",{className:"flex min-h-64 flex-col items-center justify-center gap-5 text-center",children:[g.jsx(Kn,{description:n,title:"模型价格加载失败",tone:"error"}),g.jsx(Nn,{onPress:()=>u(w=>w+1),variant:"outline",children:"重试"})]}):g.jsxs("section",{className:"space-y-3",children:[g.jsxs("div",{"aria-label":"价格筛选条件",className:"flex w-full min-w-0 flex-wrap items-center gap-2",children:[g.jsx(I2,{onQueryChange:C}),g.jsx(M2,{options:v,value:h,onChange:k}),g.jsx(P2,{onChange:m,value:d})]}),p?g.jsx(R2,{rows:b}):g.jsx(k0,{layout:Ar,layoutOptions:{headingHeight:D2,rowHeight:68},children:g.jsx(_,{className:"table-size-small w-full min-w-0",children:g.jsx(_.ScrollContainer,{className:"min-w-0 overflow-x-hidden",children:g.jsxs(_.Content,{"aria-label":"模型价格表",className:"h-[calc(100vh-145px)] w-full min-w-0 overflow-x-hidden overflow-y-auto",sortDescriptor:d,onSortChange:S,children:[g.jsxs(_.Header,{className:"h-8 w-full",children:[g.jsx(_.Column,{allowsSorting:!0,className:"align-middle px-1.5! py-2! sm:px-3!",defaultWidth:"1fr",id:"model",isRowHeader:!0,minWidth:at.modelMin,children:({sortDirection:w})=>g.jsx(_.SortableColumnHeader,{className:"h-full !gap-1 items-center",sortDirection:w,children:"模型"})}),g.jsx(_.Column,{allowsSorting:!0,defaultWidth:at.inputOutput,id:"inputOutput",minWidth:qt.inputOutput,className:"align-middle !min-w-0 !px-1.5 !py-2 sm:!px-3",children:({sortDirection:w})=>g.jsx(_.SortableColumnHeader,{className:"h-full !gap-1 items-center",sortDirection:w,children:"输入 / 输出"})}),g.jsx(_.Column,{allowsSorting:!0,className:"align-middle !min-w-0 !px-1.5 !py-2 sm:!px-3",defaultWidth:at.cache,id:"cache",minWidth:qt.cache,children:({sortDirection:w})=>g.jsx(_.SortableColumnHeader,{className:"h-full !gap-1 items-center",sortDirection:w,children:"缓存"})})]}),g.jsx(_.Body,{items:b,renderEmptyState:()=>g.jsxs("div",{className:"flex min-h-48 flex-col items-center justify-center gap-1 text-center",children:[g.jsx("p",{className:"text-sm font-medium",children:"没有匹配的模型"}),g.jsx("p",{className:"text-xs text-muted",children:"请尝试其他关键词"})]}),children:w=>{const $=He(w.model);return g.jsxs(_.Row,{id:w.model,children:[g.jsx(_.Cell,{children:g.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 sm:gap-3",children:[g.jsx("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-xl border border-border/60 bg-surface/70 sm:size-9",children:g.jsx(_e,{provider:$,size:20})}),g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate font-mono text-sm font-medium text-foreground",title:w.model,children:Pe(w.model)}),w.model.includes("/")?g.jsx("span",{className:"mt-0.5 block truncate text-xs text-muted",title:w.model,children:w.model}):null]})]})}),g.jsx(_.Cell,{children:g.jsxs("div",{className:"flex flex-col items-start gap-1.5",children:[g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-sm tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"输入"}),g.jsx("span",{children:de(w.input)}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]}),g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-sm tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"输出"}),g.jsx("span",{children:de(w.output)}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]})]})}),g.jsx(_.Cell,{children:g.jsxs("div",{className:"flex flex-col items-start gap-1.5",children:[g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-sm tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"缓存读"}),g.jsx("span",{children:w.cacheRead>0?de(w.cacheRead):"-"}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]}),g.jsxs("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap text-sm tabular-nums",children:[g.jsx("span",{className:"text-xs text-muted",children:"缓存写"}),g.jsx("span",{children:w.cacheWrite>0?de(w.cacheWrite):"-"}),g.jsx("span",{className:"text-xs text-muted",children:"/M"})]})]})})]})}})]})})})})]})}const T2=K2;export{T2 as component};