PageSourceSearch

https://mkeadle.org/static/standalone/client/js/867.a2c04e76cc5af66e30fb.chunk.js

js mkeadle.org collected 2026-10-05 01:47:55 UTC 96,598 bytes, 2 lines download raw bytes

1/*! For license information please see 867.a2c04e76cc5af66e30fb.chunk.js.LICENSE.txt */
2(self.webpackChunk_as_client=self.webpackChunk_as_client||[]).push([[867],{96867:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProfilesPage:()=>ji,default:()=>Oi});var r=n(14041),i=n(51623),o=n(69486),a=n(57113),l=n(30894),s=n(77580),c=n(74235),d=n(71197),u=n(3342);const p=d.Ay.table(["width:100%;table-layout:fixed;td{padding:18px 24px 18px 12px;font-weight:500;font-size:14px;line-height:20px;word-break:break-all;border-bottom:1px solid ",";&:first-child{padding:18px 12px 18px 24px;font-weight:500;font-size:12px;line-height:16px;}.ovpn-chip{white-space:nowrap;word-break:keep-all;}}"],u.yW.neutral.light.raw),g=(e,t)=>r.createElement(r.Fragment,null,r.createElement("td",null,e),r.createElement("td",null,t)),f=({columnOrder:e,columnVisibility:t,profile:n})=>{const i=e.filter((e=>!1!==t[e]));return r.createElement(p,null,r.createElement("tbody",null,i.map((e=>r.createElement("tr",{key:e},((e,t)=>{switch(t){case"algorithm":return g("Key Algorithm",e.algorithm);case"comment":return g("Comment",e.comment);case"not_before":return g("Added on",e.not_before);case"last_used":return g("Last Used",e.last_used);case"not_after":return g("End Date",e.not_after);case"profile_type":return g("Profile Type",r.createElement(s.W,{profileType:e.profile_type}));case"serial":return g("Serial",e.serial);case"tls_crypt_v2":return g("TLS Crypt v2",r.createElement(c.G,{checked:e.tls_crypt_v2}));default:return null}})(n,e))))))},h=e=>r.createElement(i.A,{open:!0,onClose:e.onClose,title:"Profile",footer:r.createElement(l.A,{"aria-label":"Delete profile",appearance:"primary",onClick:()=>e.onDelete(e.profile.serial),"data-testid":"delete-this-profile",style:{width:"100%"}},"Delete Profile")},r.createElement(f,e));var m=n(58168),b=n(80824),v=n(4771),y=n(53301),x=n(31085),w=n(9546),C=n(88759),S=n(91692),E=n(67774),A=n(44035),I=n(7016),T=n(35096),k=n(92686),R=n(99640),D=n(83174);const N=d.I4.input.withConfig({componentId:"sc-1gst5i1-0"})`position:relative;z-index:2;width:100%;padding:0;border:none;font-weight:${k.Wy.regular};font-size:${k.J.textMd}px;line-height:${k.J.textMd}px;cursor:text;&:focus{outline:none;}&:disabled{cursor:not-allowed;}&::placeholder{font-family:Inter;letter-spacing:normal;color:${u.yW.neutral.placeholder};}`,$=d.I4.label.withConfig({componentId:"sc-1gst5i1-1"})`position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);border-radius:4px;`,j=d.I4.div.withConfig({componentId:"sc-1gst5i1-2"})`position:relative;display:flex;align-items:center;width:100%;min-width:160px;max-width:512px;min-height:40px;border-radius:4px;border:1px solid ${u.yW.neutral.border};box-shadow:${R.r.xs};color:${u.yW.neutral.body};background-color:${u.yW.neutral.white};font-size:${k.J.textMd}px;transition:all 200ms;&[aria-disabled]{color:${u.yW.neutral.disabled};background-color:${u.yW.neutral.bg};cursor:not-allowed;}&:not([aria-disabled]){&:hover{color:${u.yW.neutral.body};box-shadow:${R.r.sm};}&:focus-within{border-color:${u.yW.neutral.borderHover};}& ${N}:focus + ${$}{border-color:${u.yW.brand.blue};box-shadow:${D.r.primary};}&[data-filled]{color:${u.yW.neutral.title};}&[aria-invalid]{border-color:${u.yW.warning.baseHover};& ${N}:focus + ${$}{box-shadow:${D.r.warning};}}}`,O=d.I4.div.withConfig({componentId:"sc-1gst5i1-3"})`z-index:2;display:inline-flex;align-items:center;flex-shrink:0;height:38px;padding:8px;color:${u.yW.neutral.body};background-color:${u.yW.neutral.bg};border-width:1px;border-color:${u.yW.neutral.border};border-radius:4px;&:focus-within{box-shadow:${D.r.primary};}`,M=(0,d.I4)(O).withConfig({componentId:"sc-1gst5i1-4"})`border-right-style:solid;border-top-right-radius:0;border-bottom-right-radius:0;`,P=(0,d.I4)(O).withConfig({componentId:"sc-1gst5i1-5"})`border-left-style:solid;border-top-left-radius:0;border-bottom-left-radius:0;`,L=d.I4.div.withConfig({componentId:"sc-1gst5i1-6"})`display:flex;align-items:center;gap:8px;width:100%;padding:6px 16px;`,W=d.I4.div.withConfig({componentId:"sc-1gst5i1-7"})`flex-grow:1;`,z=(0,d.I4)(T.default).withConfig({componentId:"sc-1gst5i1-8"})`position:relative;z-index:2;`,B=(0,A.Le)((function({children:e,className:t,containerRef:n,id:i,iconLeft:o,iconRight:a,prefix:l,suffix:s,disabled:c,invalid:d,style:u,"data-testid":p,...g},f){const h=(0,E._)(c),m=(0,S.t)(d),b=(0,r.useMemo)((()=>i||Math.random().toString(32)),[i]);return(0,x.jsxs)(j,{ref:n,className:(0,w.A)((0,I.T)("input"),t),"aria-disabled":h||void 0,"aria-invalid":m||void 0,"data-filled":!!g.value||void 0,style:u,"data-testid":p,children:[l&&(0,x.jsx)(M,{className:(0,w.A)((0,I.T)("input","affix"),(0,I.T)("input","affix","prefix")),children:l}),(0,x.jsxs)(L,{className:(0,I.T)("input-container"),children:[o&&(0,C.f)(o,z,{size:"sm",className:(0,w.A)((0,I.T)("input","icon"),(0,I.T)("input","icon","left"))}),(0,x.jsxs)(W,{className:(0,I.T)("input-children-container"),children:[(0,x.jsx)(N,{ref:f,type:"text",id:b,...g,className:(0,I.T)("input-field"),disabled:h||void 0,"aria-invalid":m||void 0}),(0,x.jsx)($,{htmlFor:b,className:(0,I.T)("input-label"),"aria-disabled":h||void 0})]}),a&&(0,C.f)(a,z,{size:"sm",className:(0,w.A)((0,I.T)("input","icon"),(0,I.T)("input","icon","right"))})]}),s&&(0,x.jsx)(P,{className:(0,w.A)((0,I.T)("input","affix"),(0,I.T)("input","affix","suffix")),children:s})]})}
2),"Input");var V=n(34658);const F=(0,V.e)(["neutral","success","attention","warning"]),H=d.I4.aside.withConfig({componentId:"sc-y679j7-0"})`display:flex;gap:16px;padding:16px;border-width:1px;border-style:solid;border-radius:8px;${({$appearance:e})=>F.match(e).with("neutral",(()=>d.AH`background-color:${u.yW.neutral.bg};border-color:${u.yW.neutral.borderHover};`)).with("success",(()=>d.AH`background-color:${u.yW.success.light};border-color:${u.yW.success.lightActive};`)).with("attention",(()=>d.AH`background-color:${u.yW.attention.light};border-color:${u.yW.attention.base};`)).with("warning",(()=>d.AH`background-color:${u.yW.warning.light};border-color:${u.yW.warning.lightActive};`)).exhaustive()};`,U=d.I4.span.withConfig({componentId:"sc-y679j7-1"})`display:flex;width:20px;height:20px;`,_=d.I4.article.withConfig({componentId:"sc-y679j7-2"})`display:flex;flex-direction:column;flex-grow:1;font-size:14px;line-height:20px;`,K=d.I4.header.withConfig({componentId:"sc-y679j7-3"})`display:flex;align-items:center;justify-content:space-between;color:${u.yW.neutral.title};font-weight:500;`,Y=d.I4.div.withConfig({componentId:"sc-y679j7-4"})`margin-top:4px;color:${u.yW.neutral.body};`,X=d.I4.footer.withConfig({componentId:"sc-y679j7-5"})`display:flex;gap:16px;margin-top:8px;& > a,& > button{color:${u.yW.neutral.body};&,& > span{font-weight:500;font-size:14px;line-height:20px;}}`,J=(0,d.I4)(U).withConfig({componentId:"sc-y679j7-6"})`cursor:pointer;`,Q=(0,A.Le)((function({className:e,title:t,children:n,footer:i,appearance:o=F.neutral,persistent:a=!1,onClose:l,icon:s,...c},d){const[u,p]=(0,r.useState)(!0);return u?(0,x.jsxs)(H,{ref:d,className:(0,w.A)((0,I.T)("banner"),(0,I.T)("banner",null,o),e),role:"alert","aria-live":"polite",$appearance:o,...c,children:[s&&(0,x.jsx)(U,{className:(0,I.T)("banner","icon-container"),children:(0,C.f)(s,{size:"md",color:F.match(o).returnType().with(F.neutral,(()=>"neutral.body")).with(F.success,(()=>"success.baseActive")).with(F.attention,(()=>"attention.baseActive")).with(F.warning,(()=>"warning.baseActive")).exhaustive(),className:(0,I.T)("banner","icon")})}),(0,x.jsxs)(_,{className:(0,I.T)("banner","body"),children:[t&&(0,x.jsx)(K,{className:(0,I.T)("banner","header"),children:t}),n&&(0,x.jsx)(Y,{className:(0,I.T)("banner","description"),children:n}),i&&(0,x.jsx)(X,{className:(0,I.T)("banner","footer"),children:i})]}),!a&&(0,x.jsx)(J,{as:"button",className:(0,I.T)("banner","close-button"),onClick:e=>{p(!1),l?.(e)},children:(0,x.jsx)(T.default,{name:"x",size:"md",color:"neutral.title",className:(0,I.T)("banner","close-icon")})})]}):null}),"Banner");var G=n(16478);const q=d.Ay.div(["display:flex;gap:16px;align-items:center;margin-bottom:var(--spacing-sm,24px);@media screen and (max-width:","px){display:block;}"],G.C.md-1),Z=d.Ay.div(["flex:0 0 160px;@media screen and (max-width:","px){display:block;flex-shrink:1;margin-bottom:var(--spacing-xxxs,4px);}"],G.C.md-1),ee=d.Ay.div(["display:flex;gap:16px;justify-content:flex-end;width:100%;@media screen and (max-width:","px){flex-direction:column;}"],G.C.sm-1);var te=n(50802),ne=n(4713);const re=d.I4.div.withConfig({componentId:"sc-1es3r36-0"})`display:flex;align-items:center;gap:8px;padding:4px;border-radius:4px;border:1px solid ${u.yW.neutral.light};background-color:${u.yW.neutral.white};& > button{flex-grow:1;}`,ie=(0,V.e)(["sm","md"]),oe=(0,A.Le)((function({children:e,className:t,size:n=ie.md,value:i,onChange:o,...a},l){return(0,x.jsx)(ne.eC,{orientation:"horizontal",render:(0,x.jsx)(re,{}),ref:l,className:(0,w.A)((0,I.T)("switch"),t),role:"listbox","aria-orientation":"horizontal","aria-activedescendant":i,...a,children:e.map((e=>{const t=e.props.id,a=t===i;return(0,x.jsx)(ne.lb,{role:"option","aria-selected":a||void 0,className:(0,w.A)((0,I.T)("switch","option"),e.props.className),onClick:()=>o?.(t),render:(0,r.cloneElement)(e,{size:n,type:"button",appearance:a?e.props.appearance||"primary":"tertiary"})},t)}))})}),"Switch");oe.Option=l.A;const ae=oe;var le=n(32847),se=n(81509);const ce=({control:e,availableProfileTypes:t})=>{const n=(0,b.as)({control:e,name:"profile_type"}),i=(0,te.U)("min-md"),o=["userlogin","autologin","generic"].filter((e=>t.includes(e)));return i?r.createElement("div",null,r.createElement(ae,{value:n.field.value,onChange:n.field.onChange},o.map((e=>r.createElement(l.A,{id:e,type:"button",key:e},(0,se.P)(e)))))):r.createElement(le.l,{id:"profile_type",options:o.map((e=>({id:e,children:(0,se.P)(e),suffix:()=>{}}))),value:n.field.value,onChange:n.field.onChange})};var de=n(86604),ue=n(89782),pe=n(12901),ge=n(89625);let fe=function(e){return e.OpenInApp="open-in-app",e.DownloadProfile="download-profile",e.DownloadLegacyProfile="download-legacy-profile",e.GenerateTokenUrl="generate-token-url",e}({});const he={id:fe.DownloadLegacyProfile,title:"Download legacy profile \n(No TLS Crypt v2)"},me={id:fe.GenerateTokenUrl,title:"Generate Token URL"},be=e=>r.createElement(de.A,{"aria-label":"More",icon:"dots-vertical",appearance:"ghost",type:"button","data-testid":e}),ve=({onActionButtonClick:e,disabled:t,isLegacyProfileDownloadAllowed:n,isTokenGenerationAllowed:i})=>{const o=(0,te.U)("min-md"),a=(({isLegacyProfileDownloadAllowed:e,isTokenGenerationAllowed:t})=>{const n=[];return e&&n.push(he),t&&n.push(me),n})({isLegacyProfileDownloadAllowed:n,isTokenGenerationAllowed:i});return o?r.createElement(r.Fragment,null,r.createElement(l.A,{"aria-label":"Save and download",appearance:"primary",onClick:()=>e(fe.DownloadProfile),"data-testid":"save-and-download",disabled:t,type:"button"},"Save and Download"),i&&r.createElement(l.A,{"aria-label":"Open in a
2pp",appearance:"ghostBlue",onClick:()=>e(fe.OpenInApp),"data-testid":"open-in-app",disabled:t,type:"button"},"Import in App"),a.length>0&&r.createElement(pe.A,{trigger:be("additional-options"),style:{width:"auto",zIndex:3e3},placement:"bottom-end",disabled:t},r.createElement(ge.A,{id:"more-options",onChange:t=>e(t)},a.map((e=>r.createElement(ge.A.Option,{key:e.id,id:e.id,disabled:t},e.title)))))):r.createElement(r.Fragment,null,r.createElement(ue.A,null,r.createElement(l.A,{"aria-label":"Save and download",appearance:"primary",onClick:()=>e(fe.DownloadProfile),"data-testid":"save-and-download",disabled:t,style:{flex:1},type:"button"},"Save and Download"),n&&r.createElement(pe.A,{trigger:be("profile-download-additional-options"),style:{width:"auto",zIndex:3e3},placement:"bottom-end",disabled:t},r.createElement(ge.A,{id:"legacy-profile-download",onChange:t=>e(t)},r.createElement(ge.A.Option,{id:he.id,autoFocus:!0,disabled:t},he.title)))),i&&r.createElement(ue.A,null,r.createElement(l.A,{"aria-label":"Open in app",appearance:"ghostBlue",onClick:()=>e(fe.OpenInApp),"data-testid":"open-in-app",disabled:t,style:{flex:1},type:"button"},"Import in App"),r.createElement(pe.A,{trigger:be("token-url-additional-options"),style:{width:"auto",zIndex:3e3},placement:"bottom-end",disabled:t},r.createElement(ge.A,{id:"token-url-generation",onChange:t=>e(t)},r.createElement(ge.A.Option,{id:me.id,autoFocus:!0,disabled:t},me.title)))))},ye=({children:e})=>r.createElement(v.Ay,{weight:"medium",size:"textMd",color:"neutral.title"},e),xe=e=>{const{profileTypes:t,disabled:n,isTlsCryptV2Enforced:i,isTlsCryptV2Hidden:o,isProfileImportDisabled:a,onSubmit:l,onOpenInApp:s,generateTokenUrl:c}=e,{register:d,control:u,handleSubmit:p,formState:{isValid:g,errors:f},getValues:h,watch:v,setValue:x}=(0,b.mN)({values:{tls_crypt_v2:!o,comment:"",profile_type:t[0]},mode:"onChange"}),w="generic"===v("profile_type");(0,r.useEffect)((()=>{w&&x("comment","")}),[w,x]);const C=d("comment",{maxLength:{value:128,message:"The comment cannot exceed 128 characters."}});return r.createElement("form",{name:"create-profile",id:"create-profile",method:"POST",onSubmit:p(l),autoComplete:"off"},r.createElement(q,null,r.createElement(Z,null,r.createElement(ye,null,"Profile type")),r.createElement(ce,{control:u,availableProfileTypes:t})),!w&&r.createElement(r.Fragment,null,r.createElement(q,null,r.createElement(Z,null,r.createElement(ye,null,"Comment")),r.createElement(y.A,{appearance:f.comment?"warning":"neutral",style:{width:"100%"}},r.createElement(B,(0,m.A)({},C,{id:"comment","data-testid":"comment",autoComplete:"off"})))),Boolean(f.comment)&&r.createElement(q,null,r.createElement(Q,{title:f.comment?.message,appearance:"warning"}))),r.createElement(ee,null,r.createElement(ve,{onActionButtonClick:e=>{e===fe.DownloadProfile&&p(l)(),e===fe.OpenInApp&&s(h()),e===fe.DownloadLegacyProfile&&(x("tls_crypt_v2",!1),p(l)()),e===fe.GenerateTokenUrl&&c({...h()})},isLegacyProfileDownloadAllowed:!i&&!o,isTokenGenerationAllowed:!a,disabled:n||!g})))};var we=n(4773),Ce=n(36319),Se=n(50730),Ee=n(2978),Ae=n(43444),Ie=n(56350);const Te=d.I4.aside.withConfig({componentId:"sc-7g4aga-0"})`display:flex;flex-direction:column;align-items:center;width:100%;padding:24px 16px;`,ke=(0,d.I4)(v.LJ).withConfig({componentId:"sc-7g4aga-1"})`color:${u.yW.neutral.title};text-align:center;`,Re=(0,d.I4)(v.xf).withConfig({componentId:"sc-7g4aga-2"})`margin-top:4px;color:${u.yW.neutral.subtitle};text-align:center;`,De=d.I4.figure.withConfig({componentId:"sc-7g4aga-3"})`display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:16px;border-radius:28px;background-color:${u.yW.neutral.bgHover};font-size:24px;`,Ne=(0,d.I4)(ue.A).withConfig({componentId:"sc-7g4aga-4"})`margin-top:24px;`,$e=(0,A.Le)((function({children:e,className:t,title:n,description:r,icon:i,...o},a){return(0,x.jsxs)(Te,{ref:a,className:(0,w.A)((0,I.T)("empty-state"),t),role:"alert","aria-live":"polite",...o,children:[i&&(0,x.jsx)(De,{className:(0,I.T)("empty-state","icon"),children:(0,C.f)(i,{size:"lg"})}),(0,x.jsx)(ke,{forwardedAs:"h2",className:(0,I.T)("empty-state","t
2itle"),children:n}),r&&(0,x.jsx)(Re,{className:(0,I.T)("empty-state","description"),children:r}),e&&(0,x.jsx)(Ne,{className:(0,I.T)("empty-state","cta"),children:e})]})}),"EmptyState"),je=({onAddProfileClick:e})=>r.createElement($e,{title:"No connection profiles",description:"Start adding your first profile below.","data-testid":"no-profiles-exists"},e&&r.createElement(l.A,{appearance:"primary",onClick:e,"data-testid":"empty-state-add-new-profile"},"Add New Profile"));var Oe=n(69078);const Me=d.Ay.div(["@media screen and (max-width:","px){button{width:100%;margin-bottom:1rem;}}@media screen and (min-width:","px){display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;}"],G.C.sm-1,G.C.sm),Pe=({onAddProfileClick:e})=>r.createElement(Me,null,r.createElement(Oe.H1,{style:{textAlign:"inherit"}},"Connection profiles"),e&&r.createElement(l.A,{appearance:"primary","aria-label":"Add New Profile",onClick:e,"data-testid":"add-new-profile"},"Add New Profile"));var Le=n(31886);const We=d.I4.div.withConfig({componentId:"sc-1lx8uhc-0"})`display:inline-flex;align-items:center;`,ze=d.I4.button.withConfig({componentId:"sc-1lx8uhc-1"})`display:inline-flex;align-items:center;`,Be=(0,r.lazy)((()=>n.e(761).then(n.bind(n,87761)))),Ve=(0,A.Le)((function({className:e,as:t="icon",value:n,onCopy:i,size:o="md",color:a,appearance:l="ghost",iconBefore:s="copy",iconAfter:c="copy-check",...d},u){const[p,g]=(0,r.useState)(!1);(0,r.useEffect)((()=>{let e;return p&&(e=setTimeout((()=>g(!1)),3e3)),()=>clearTimeout(e)}),[p]);const f=(0,r.useMemo)((()=>p?c:s),[p]),h=(0,r.useCallback)((()=>{navigator.clipboard.writeText(n).then((()=>{i?.(n),g(!0)}))}),[n,i]),m=(0,r.useCallback)((()=>{g(!1)}),[]);return(0,x.jsx)(Le.A,{open:p,className:(0,I.T)("clipboard","tooltip"),disabled:!0,offset:"button"===t?4:void 0,trigger:(0,x.jsx)(We,{ref:u,className:(0,w.A)((0,I.T)("clipboard"),(0,I.T)("clipboard",null,o),e),...d,children:"icon"===t?(0,x.jsx)(Le.A,{trigger:(0,x.jsx)(ze,{type:"button",className:(0,I.T)("clipboard","button"),"aria-label":"Copy to clipboard",onClick:h,onBlur:m,children:(0,C.f)(f,{className:(0,I.T)("clipboard","icon"),size:o||"lg",color:a})}),children:"Copy to clipboard"}):(0,x.jsx)(r.Suspense,{fallback:(0,x.jsx)("div",{"data-testid":"lazy"}),children:(0,x.jsx)(Be,{icon:f,appearance:l,size:o,type:"button",className:(0,I.T)("clipboard","button"),"aria-label":"Copy to clipboard",onClick:h,onBlur:m})})}),children:"Copied to clipboard"})}),"Clipboard"),Fe=Ve,He=({tokenUrl:e,onClose:t})=>r.createElement(i.A,{open:!!e,onClose:t,title:"Token URL",description:"Only valid once and will expire in 5 minutes",footer:r.createElement(l.A,{style:{width:"100%"},appearance:"primary",onClick:()=>{navigator.clipboard.writeText(e||"").then((()=>{t(),we.A.success("Token URL copied to clipboard ")}))}},"Copy To Clipboard and Close")},r.createElement(B,{value:e,readOnly:!0,suffix:r.createElement(Fe,{value:e||""})}));var Ue=n(30871),_e=n(62629),Ke=n(97609);const Ye=(0,V.e)(["table","grid"]),Xe=d.I4.section.withConfig({componentId:"sc-1ey6644-0"})`width:100%;display:flex;flex-direction:column;border:1px solid ${u.yW.neutral.light};border-radius:8px;box-shadow:${R.r.sm};overflow:hidden;`,Je=d.I4.div.withConfig({componentId:"sc-1ey6644-1"})`display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;padding:16px 24px;border-bottom:1px solid ${u.yW.neutral.light};overflow-x:auto;`,Qe=d.I4.div.withConfig({componentId:"sc-1ey6644-2"})`display:flex;align-items:center;justify-self:flex-end;gap:16px;`,Ge=d.I4.header.withConfig({componentId:"sc-1ey6644-3"})`display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:16px 24px;border-bottom:1px solid ${u.yW.neutral.light};overflow-x:auto;`,qe=d.I4.div.withConfig({componentId:"sc-1ey6644-4"})`display:flex;flex-direction:column;padding:16px 24px;border-bottom:1px solid ${u.yW.neutral.light};overflow-x:auto;`,Ze=d.I4.div.withConfig({componentId:"sc-1ey6644-5"})`width:100%;overflow-x:auto;`,et=d.I4.table.withConfig({componentId:"sc-1ey6644-6"})`width:100%;${({$zebra:e})=>e&&d.AH`&[data-expandable='true']{tr:nth-child(4n - 1),tr:nth-child(4n - 1) + tr[aria-expanded='true']{background-color:${u.yW.neutral.bg};}}&[data-expandable='false'] tr:nth-child(2n){background-color:${u.yW.neutral.bg};}`} ${({$display:e})=>Ye.match(e).with(Ye.table,(()=>d.AH`${nt}[data-column-type='display'][data-pinned='left'] + ${nt}[data-column-type='accessor'],${nt}:not([data-column-type='display']):first-child{width:100%;white-space:nowrap;color:${u.yW.neutral.title};font-weight:${k.Wy.medium};}`)).with(Ye.grid,(()=>d.AH`${nt}{max-width:0;white-space:normal;}${nt}[data-column-type='display']{&[data-pinned='left'],&[data-pinned='right']{max-width:fit-content;width:1px;}}`)).exhaustive()}`,tt=d.I4.tr.withConfig({componentId:"sc-1ey6644-7"})`background-color:${u.yW.neutral.white};border-top:1px solid ${u.yW.neutral.light};&[data-selected]{background-color:${u.yW.neutral.light} !important;& + tr[aria-expanded]{background-color:${u.yW.neutral.light} !important;}&:not(:last-child){border-top-color:${u.yW.neutral.white};}}`,nt=d.I4.td.withConfig({componentId:"sc-1ey6644-8"})`height:72px;padding:16px 16px;text-align:left;white-space:nowrap;color:${u.yW.neutral.subtitle};font-size:${k.J.textSm}px;font-weight:${k.Wy.regular};&[data-column-type='display']{&[data-pinned='left']:first-child{padding-left:24px;padding-right:0;}&[data-pinned='right']:last-child{padding-right:24px;padding-left:0;}}`,rt=d.I4.div.withConfig({componentId:"sc-1ey6644-9"})`display:flex;align-items:center;gap:8px;min-height:20px;`,it=(0,d.I4)(nt).attrs({as:"th"}).withConfig({componentId:"sc-1ey6644-10"})`height:initial;padding-top:12px;padding-bottom:12px;color:${u.yW.neutral.body};font-size:${k.J.textXs}px;line-height:${k.J.textXs}px;font-weight:${k.Wy.medium};`,ot=(0,d.I4)(T.default).withConfig({componentId:"sc-1ey6644-11"})`position:absolute;top:2px;right:-20px;opacity:0;transition:opacity 150ms;`,at=(0,d.I4)(rt).withConfig({componentId:"sc-1ey6644-12"})`position:relative;gap:4px;font-weight:${k.Wy.medium};text-align:left;`,lt=d.I4.thead.withConfig({componentId:"sc-1ey6644-13"})`& > ${tt}{background-color:${u.yW.neutral.bg};border-top:none;& > th > ${at}:hover,& > th[data-sorted] > ${at}{& > ${ot}{opacity:1;}}}`,st=d.I4.tbody.withConfig({componentId:"sc-1ey6644-14"})``,ct=d.I4.div.withConfig({componentId:"sc-1ey6644-15"})`width:20px;height:20px;flex-shrink:0;`,dt={createCell:(e,t)=>
2{e.getIsEmpty=()=>t.columnDef.meta?.empty?.(e.getContext())||!1}},ut={createCell:(e,t)=>{e.getColspan=()=>{const n=t.columnDef.meta?.colspan?.(e.getContext());return"number"==typeof n?n:void 0}}},pt={getInitialState:e=>({loading:!1,...e}),createTable:e=>{e.getIsLoading=()=>e.getState().loading||!1}},gt=(0,r.lazy)((()=>Promise.all([n.e(121),n.e(818)]).then(n.bind(n,4818)))),ft=(e,t)=>n=>{t?.(n instanceof Function?n(e):n)};var ht=n(94598),mt=n(53528);const bt=(0,r.lazy)((()=>n.e(711).then(n.bind(n,43711)))),vt=(0,r.forwardRef)((function({children:e,className:t,containerRef:n,table:i,header:o,body:a,filters:l,settings:s,search:c,pagination:d,bulkActions:u,renderExpandedRow:p,display:g="table",zebra:f=!1,style:h,"data-testid":m,...b},v){const y="function"==typeof p;return(0,x.jsx)(mt.A,{table:i,children:(0,x.jsxs)(Xe,{ref:n,className:(0,w.A)((0,I.T)("table-section"),t,!i.getIsLoading()&&"loaded"),style:h,"data-testid":m,children:[o&&(0,x.jsx)(Ge,{className:(0,I.T)("table-header"),children:o}),a&&(0,x.jsx)(qe,{className:(0,I.T)("table-body"),children:a}),(l||s||c)&&(0,x.jsxs)(Je,{className:(0,I.T)("table-controls"),children:[(0,x.jsx)(Qe,{className:(0,I.T)("table-controls","item"),children:l}),(s||c)&&(0,x.jsxs)(Qe,{className:(0,I.T)("table-controls","item"),children:[c,s]})]}),(0,x.jsx)(Ze,{className:(0,I.T)("table-data"),children:e||(0,x.jsxs)(et,{ref:v,className:(0,I.T)("table"),"data-expandable":y,$zebra:f||void 0,$display:g,...b,children:[(0,x.jsx)(lt,{className:(0,I.T)("table-thead"),children:(0,x.jsx)(tt,{className:(0,w.A)((0,I.T)("table-row"),(0,I.T)("table-thead","row"),(0,I.T)("table-thead-row")),children:i.getFlatHeaders().map((e=>{const t=!!e.column.accessorFn,n=i.options.enableSorting&&e.column.getCanSort()&&t;return(0,x.jsx)(it,{className:(0,w.A)((0,I.T)("table-cell"),(0,I.T)("table-thead","cell"),(0,I.T)("table-thead-cell"),e.column.columnDef.meta?.className),"data-pinned":e.column.getIsPinned()||void 0,"data-sorted":e.column.getIsSorted()||void 0,"data-column-id":e.column.id,"data-column-type":t?"accessor":"display",children:(0,x.jsxs)(at,{as:n?"button":"div",onClick:n?()=>e.column.toggleSorting():void 0,className:(0,w.A)((0,I.T)("table-cell","content"),(0,I.T)("table-thead-cell","content")),children:[(0,x.jsx)("span",{children:(0,_e.Kv)(e.column.columnDef.header,e.getContext())}),n&&(0,x.jsx)(ot,{className:(0,I.T)("table-thead-cell","sort-icon"),size:"sm",color:"neutral.body",name:(0,ht.YW)(e.column.getIsSorted()).returnType().with("asc",(()=>"arrow-up")).with("desc",(()=>"arrow-down")).otherwise((()=>e.column.columnDef.sortDescFirst||i.options.sortDescFirst?"arrow-down":"arrow-up"))})]})},e.id)}))})}),(0,x.jsx)(st,{className:(0,I.T)("table-tbody"),children:i.getRowModel().rows.map((e=>(0,x.jsxs)(r.Fragment,{children:[(0,x.jsx)(tt,{className:(0,w.A)((0,I.T)("table-row"),(0,I.T)("table-tbody","row"),(0,I.T)("table-tbody-row")),"data-row-id":e.id,"data-selected":e.getCanSelect()&&e.getIsSelected()||void 0,children:e.getVisibleCells().map((e=>!e.getIsEmpty()&&(0,x.jsx)(nt,{className:(0,w.A)((0,I.T)("table-cell"),(0,I.T)("table-tbody","cell"),(0,I.T)("table-tbody-cell"),e.column.columnDef.meta?.className),"data-pinned":e.column.getIsPinned()||void 0,"data-column-id":e.column.id,"data-column-type":e.column.accessorFn?"accessor":"display",colSpan:e.getColspan(),children:(0,x.jsx)(rt,{className:(0,w.A)((0,I.T)("table-cell","content"),(0,I.T)("table-tbody-cell","content")),children:(0,_e.Kv)(e.column.columnDef.cell,e.getContext())})},e.id)))}),y&&(0,x.jsx)(r.Suspense,{fallback:(0,x.jsx)("tr",{"data-testid":"lazy"}),children:(0,x.jsx)(bt,{...e,children:p(e)})})]},e.id)))})]})}),d,u]})})}));vt.displayName="Table";const yt=(0,A.uT)(vt,"Table");var xt=n(43144);const wt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Ct(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function St(e){return"nodeType"in e}function Et(e){var t,n;return e?Ct(e)?e:St(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function At(e){const{Document:t}=Et(e);return e instanceof t}function It(e){return!Ct(e)&&e instanceof Et(e).HTMLElement}function Tt(e){return e instanceof Et(e).SVGElement}function kt(e){return e?Ct(e)?e.document:St(e)?At(e)?e:It(e)||Tt(e)?e.ownerDocument:document:document:document}const Rt=wt?r.useLayoutEffect:r.useEffect;function Dt(e){const t=(0,r.useRef)(e);return Rt((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Nt(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return Rt((()=>{n.current!==e&&(n.current=e)}),t),n}function $t(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function jt(e){const t=Dt(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function Ot(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let Mt={};function Pt(e,t){return(0,r.useMemo)((()=>
vendor: 17,431 bytes, line 2
2{if(t)return t;const n=null==Mt[e]?0:Mt[e]+1;return Mt[e]=n,e+"-"+n}),[e,t])}function Lt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Wt=Lt(1),zt=Lt(-1);function Bt(e){if(!e)return!1;const{KeyboardEvent:t}=Et(e.target);return t&&e instanceof t}function Vt(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Et(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Ft=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ft.Translate.toString(e),Ft.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Ht="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Ut(e){return e.matches(Ht)?e:e.querySelector(Ht)}const _t={display:"none"};function Kt(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:_t},n)}function Yt(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n)}const Xt=(0,r.createContext)(null),Jt={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},Qt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Gt(e){let{announcements:t=Qt,container:n,hiddenTextDescribedById:i,screenReaderInstructions:o=Jt}=e;const{announce:a,announcement:l}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),s=Pt("DndLiveRegion"),[c,d]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{d(!0)}),[]),function(e){const t=(0,r.useContext)(Xt);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}})),[a,t])),!c)return null;const u=r.createElement(r.Fragment,null,r.createElement(Kt,{id:i,value:o.draggable}),r.createElement(Yt,{id:s,announcement:l}));return n?(0,xt.createPortal)(u,n):u}var qt;function Zt(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(qt||(qt={}));const en=Object.freeze({x:0,y:0});function tn(e,t){const n=Vt(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function nn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function rn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function on(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const an=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=on(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=(a=on(r),l=i,Math.sqrt(Math.pow(a.x-l.x,2)+Math.pow(a.y-l.y,2)));o.push({id:t,data:{droppableContainer:e,value:n}})}}var a,l;return o.sort(nn)};function ln(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,l=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*l;return Number((i/(n+r-i)).toFixed(4))}return 0}const sn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=ln(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(rn)};function cn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:en}function dn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const un=dn(1);function pn(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const gn={ignoreTransform:!1};function fn(e,t){void 0===t&&(t=gn);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Et(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=pn(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:l}=r,s=e.left-a-(1-i)*parseFloat(n),c=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?e.width/i:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:l,right:s}=n;return{top:r,left:i,width:o,height:a,bottom:l,right:s}}function hn(e){return fn(e,{ignoreTransform:!0})}function mn(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(At(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!It(i)||Tt(i))return n;if(n.includes(i))return n;const o=Et(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=Et(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=Et(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function bn(e){const[t]=mn(e,1);return null!=t?t:null}function vn(e){return wt&&e?Ct(e)?e:St(e)?At(e)||e===kt(e).scrollingElement?window:It(e)?e:null:null:null}function yn(e){return Ct(e)?e.scrollX:e.scrollLeft}function xn(e){return Ct(e)?e.scrollY:e.scrollTop}function wn(e){return{x:yn(e),y:xn(e)}}var Cn;function Sn(e){return!(!wt||!e)&&e===document.scrollingElement}function En(e){const t={x:0,y:0},n=Sn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Cn||(Cn={}));const An={x:.2,y:.2};function In(e,t,n,r,i){let{top:o,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=An);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=En(e),g={x:0,y:0},f={x:0,y:0},h=t.height*i.y,m=t.width*i.x;return!c&&o<=t.top+h?(g.y=Cn.Backward,f.y=r*Math.abs((t.top+h-o)/h)):!d&&s>=t.bottom-h&&(g.y=Cn.Forward,f.y=r*Math.abs((t.bottom-h-s)/h)),!p&&l>=t.right-m?(g.x=Cn.Forward,f.x=r*Math.abs((t.right-m-l)/m)):!u&&a<=t.left+m&&(g.x=Cn.Backward,f.x=r*Math.abs((t.left+m-a)/m)),{direction:g,speed:f}}function Tn(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function kn(e){return e.reduce(((e,t)=>Wt(e,wn(t))),en)}function Rn(e,t){if(void 0===t&&(t=fn),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);bn(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Dn=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+yn(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+xn(t)),0)}]];class Nn{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=mn(t),r=kn(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Dn)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class $n{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function jn(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var On,Mn,Pn;function Ln(e){e.preventDefault()}function Wn(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(On||(On={})),(Pn=Mn||(Mn={})).Space="Space",Pn.Down="ArrowDown",Pn.Right="ArrowRight",Pn.Left="ArrowLeft",Pn.Up="ArrowUp",Pn.Esc="Escape",Pn.Enter="Enter";const zn={start:[Mn.Space,Mn.Enter],cancel:[Mn.Esc],end:[Mn.Space,Mn.Enter]},Bn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Mn.Right:return{...n,x:n.x+25};case Mn.Left:return{...n,x:n.x-25};case Mn.Down:return{...n,y:n.y+25};case Mn.Up:return{...n,y:n.y-25}}};class Vn{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new $n(kt(t)),this.windowListeners=new $n(Et(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(On.Resize,this.handleCancel),this.windowListeners.add(On.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(On.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Rn(n),t(en)}handleKeyDown(e){if(Bt(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=zn,coordinateGetter:o=Bn,scrollBehavior:a="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:en;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=zt(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:p}=En(n),g=Tn(n),f={x:Math.min(i===Mn.Right?g.right-g.width/2:g.right,Math.max(i===Mn.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(i===Mn.Down?g.bottom-g.height/2:g.bottom,Math.max(i===Mn.Down?g.top:g.top+g.height/2,d.y))},h=i===Mn.Right&&!l||i===Mn.Left&&!s,m=i===Mn.Down&&!c||i===Mn.Up&&!o;if(h&&f.x!==d.x){const e=n.scrollLeft+t.x,o=i===Mn.Right&&e<=u.x||i===Mn.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===Mn.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&f.y!==d.y){const e=n.scrollTop+t.y,o=i===Mn.Down&&e<=u.y||i===Mn.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===Mn.Down?n.scrollTop-u.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Wt(zt(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Fn(e){return Boolean(e&&"distance"in e)}function Hn(e){return Boolean(e&&"delay"in e)}Vn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=zn,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class Un{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Et(e);return e instanceof t?e:kt(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=kt(o),this.documentListeners=new $n(this.document),this.listeners=new $n(n),this.windowListeners=new $n(Et(o)),this.initialCoordinates=null!=(r=Vt(i))?r:en,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(On.Resize,this.handleCancel),this.windowListeners.add(On.DragStart,Ln),this.windowListeners.add(On.VisibilityChange,this.handleCancel),this.windowListeners.add(On.ContextMenu,Ln),this.documentListeners.add(On.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Hn(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(Fn(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(On.Click,Wn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(On.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const l=null!=(t=Vt(e))?t:en,s=zt(r,l);if(!n&&a){if(Fn(a)){if(null!=a.tolerance&&jn(s,a.tolerance))return this.handleCancel();if(jn(s,a.distance))return this.handleStart()}return Hn(a)&&jn(s,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Mn.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const _n={move:{name:"pointermove"},end:{name:"pointerup"}};class Kn extends Un{constructor(e){const{event:t}=e,n=kt(t.target);super(e,_n,n)}}Kn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Yn={move:{name:"mousemove"},end:{name:"mouseup"}};var Xn;!function(e){e[e.RightClick=2]="RightClick"}(Xn||(Xn={})),class extends Un{constructor(e){super(e,Yn,kt(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Xn.RightClick&&(null==r||r({event:n}),!0)}}];const Jn={move:{name:"touchmove"},end:{name:"touchend"}};var Qn,Gn;(class extends Un{constructor(e){super(e,Jn)}static setup(){return window.addEventListener(Jn.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Jn.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Qn||(Qn={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
2sedTreeOrder"}(Gn||(Gn={}));const qn={x:{[Cn.Backward]:!1,[Cn.Forward]:!1},y:{[Cn.Backward]:!1,[Cn.Forward]:!1}};var Zn,er;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Zn||(Zn={})),function(e){e.Optimized="optimized"}(er||(er={}));const tr=new Map;function nr(e,t){return $t((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function rr(e){let{callback:t,disabled:n}=e;const i=Dt(t),o=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function ir(e){return new Nn(fn(e),e)}function or(e,t,n){void 0===t&&(t=ir);const[i,o]=(0,r.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),a=function(e){let{callback:t,disabled:n}=e;const i=Dt(t),o=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),l=rr({callback:o});return Rt((()=>{o(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())}),[e]),i}const ar=[];function lr(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==en;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?zt(e,n.current):en}function sr(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const cr=[];function dr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return It(t)?t:e}const ur=[{sensor:Kn,options:{}},{sensor:Vn,options:{}}],pr={current:{}},gr={draggable:{measure:hn},droppable:{measure:hn,strategy:Zn.WhileDragging,frequency:er.Optimized},dragOverlay:{measure:fn}};class fr extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const hr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new fr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Zt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gr,measureDroppableContainers:Zt,windowRect:null,measuringScheduled:!1},mr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Zt,draggableNodes:new Map,over:null,measureDroppableContainers:Zt},br=(0,r.createContext)(mr),vr=(0,r.createContext)(hr);function yr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new fr}}}function xr(e,t){switch(t.type){case qt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qt.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case qt.DragEnd:case qt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qt.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new fr(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case qt.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;
vendor: 12,895 bytes, line 2
2const a=new fr(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case qt.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new fr(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function wr(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:o}=(0,r.useContext)(br),a=Ot(i),l=Ot(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&a&&null!=l){if(!Bt(a))return;if(document.activeElement===a.target)return;const e=o.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Ut(e);if(t){t.focus();break}}}))}}),[i,t,o,l,a]),null}function Cr(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Sr=(0,r.createContext)({...en,scaleX:1,scaleY:1});var Er;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Er||(Er={}));const Ar=(0,r.memo)((function(e){var t,n,i,o;let{id:a,accessibility:l,autoScroll:s=!0,children:c,sensors:d=ur,collisionDetection:u=sn,measuring:p,modifiers:g,...f}=e;const h=(0,r.useReducer)(xr,void 0,yr),[m,b]=h,[v,y]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[x,w]=(0,r.useState)(Er.Uninitialized),C=x===Er.Initialized,{draggable:{active:S,nodes:E,translate:A},droppable:{containers:I}}=m,T=S?E.get(S):null,k=(0,r.useRef)({initial:null,translated:null}),R=(0,r.useMemo)((()=>{var e;return null!=S?{id:S,data:null!=(e=null==T?void 0:T.data)?e:pr,rect:k}:null}),[S,T]),D=(0,r.useRef)(null),[N,$]=(0,r.useState)(null),[j,O]=(0,r.useState)(null),M=Nt(f,Object.values(f)),P=Pt("DndDescribedBy",a),L=(0,r.useMemo)((()=>I.getEnabled()),[I]),W=(z=p,(0,r.useMemo)((()=>({draggable:{...gr.draggable,...null==z?void 0:z.draggable},droppable:{...gr.droppable,...null==z?void 0:z.droppable},dragOverlay:{...gr.dragOverlay,...null==z?void 0:z.dragOverlay}})),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:B,measureDroppableContainers:V,measuringScheduled:F}=function(e,t){let{dragging:n,dependencies:i,config:o}=t;const[a,l]=(0,r.useState)(null),{frequency:s,measure:c,strategy:d}=o,u=(0,r.useRef)(e),p=function(){switch(d){case Zn.Always:return!1;case Zn.BeforeDragging:return n;default:return!n}}(),g=Nt(p),f=(0,r.useCallback)((function(e){void 0===e&&(e=[]),g.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[g]),h=(0,r.useRef)(null),m=$t((t=>{if(p&&!n)return tr;if(!t||t===tr||u.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Nn(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,n,p,c]);return(0,r.useEffect)((()=>{u.current=e}),[e]),(0,r.useEffect)((()=>{p||f()}),[n,p]),(0,r.useEffect)((()=>{a&&a.length>0&&l(null)}),[JSON.stringify(a)]),(0,r.useEffect)((()=>{p||"number"!=typeof s||null!==h.current||(h.current=setTimeout((()=>{f(),h.current=null}),s))}),[s,p,f,...i]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:null!=a}}(L,{dragging:C,dependencies:[A.x,A.y],config:W.droppable}),H=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return $t((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(E,S),U=(0,r.useMemo)((()=>j?Vt(j):null),[j]),_=function(){const e=!1===(null==N?void 0:N.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=C&&!e&&!t;return"object"==typeof s?{...s,enabled:n}:{enabled:n}}(),K=function(e,t){return nr(e,t)}(H,W.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:o=!0}=e;const a=(0,r.useRef)(!1),{x:l,y:s}="boolean"==typeof o?{x:o,y:o}:o;Rt((()=>{if(!l&&!s||!t)return void(a.current=!1);if(a.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=cn(n(e),i);if(l||(r.x=0),s||(r.y=0),a.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=bn(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,s,i,n])}({activeNode:S?E.get(S):null,config:_.layoutShiftCompensation,initialRect:K,measure:W.draggable.measure});const Y=or(H,W.draggable.measure,K),X=or(H?H.parentElement:null),J=(0,r.useRef)({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=I.getNodeFor(null==(t=J.current.over)?void 0:t.id),G=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),o=rr({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if(It(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=(0,r.useCallback)((e=>{const n=dr(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),i(n?t(n):null)}),[t,o]),[l,s]=jt(a);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:s})),[n,l,s])}({measure:W.dragOverlay.measure}),q=null!=(n=G.nodeRef.current)?n:H,Z=C?null!=(i=G.rect)?i:Y:null,ee=Boolean(G.nodeRef.current&&G.rect),te=cn(ne=ee?null:Y,nr(ne));var ne;const re=sr(q?Et(q):null),ie=function(e){const t=(0,r.useRef)(e),n=$t((n=>e?n&&n!==ar&&e&&t.current&&e.parentNode===t.current.parentNode?n:mn(e):ar),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(C?null!=Q?Q:H:null),oe=function(e,t){void 0===t&&(t=fn);const[n]=e,i=sr(n?Et(n):null),[o,a]=(0,r.useReducer)((function(){return e.length?e.map((e=>Sn(e)?i:new Nn(t(e),e))):cr}),cr),l=rr({callback:a});return e.length>0&&o===cr&&a(),Rt((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),a())}),[e]),o}(ie),ae=Cr(g,{transform:{x:A.x-te.x,y:A.y-te.y,scaleX:1,scaleY:1},activatorEvent:j,active:R,activeNodeRect:Y,containerNodeRect:X,draggingNodeRect:Z,over:J.current.over,overlayNodeRect:G.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:re}),le=U?Wt(U,A):null,se=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),o=(0,r.useCallback)((e=>{const t=vn(e.target);t&&n((e=>e?(e.set(t,wn(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const a=e.map((e=>{const t=vn(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,wn(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=vn(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Wt(e,t)),en):kn(e):en),[e,t])}(ie),ce=lr(se),de=lr(se,[Y]),ue=Wt(ae,ce),pe=Z?un(Z,ae):null,ge=R&&pe?u({active:R,collisionRect:pe,droppableRects:B,droppableContainers:L,pointerCoordinates:le}):null,fe=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(ge),[he,me]=(0,r.useState)(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:Wt(ae,de),null!=(o=null==he?void 0:he.rect)?o:null,Y),ve=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==D.current)return;const i=E.get(D.current);if(!i)return;const o=e.nativeEvent,a=new n({active:D.current,activeNode:i,event:o,options:r,context:J,onStart(e){const t=D.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:r}=M.current,i={active:{id:t,data:n.data,rect:k}};(0,xt.unstable_batchedUpdates)((()=>{null==r||r(i),w(Er.Initializing),b({type:qt.DragStart,initialCoordinates:e,active:t}),v({type:"onDragStart",event:i})}))},onMove(e){b({type:qt.DragMove,coordinates:e})},onEnd:l(qt.DragEnd),onCancel:l(qt.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=J.current;let a=null;if(t&&i){const{cancelDrop:l}=M.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===qt.DragEnd&&"function"==typeof l&&await Promise.resolve(l(a))&&(e=qt.DragCancel)}D.current=null,(0,xt.unstable_batchedUpdates)((()=>{b({type:e}),w(Er.Uninitialized),me(null),$(null),O(null);const t=e===qt.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=M.current[t];null==e||e(a),v({type:t,event:a})}}))}}(0,xt.unstable_batchedUpdates)((()=>{$(a),O(e.nativeEvent)}))}),[E]),ye=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=E.get(r);if(null!==D.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},D.current=r,ve(n,t))}),[E,ve]),xe=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(d,ye);!function(e){(0,r.useEffect)((()=>{if(!wt)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(d),Rt((()=>{Y&&x===Er.Initializing&&w(Er.Initialized)}),[Y,x]),(0,r.useEffect)((()=>{const{onDragMove:e}=M.current,{active:t,activatorEvent:n,collisions:r,over:i}=J.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:ue.x,y:ue.y},over:i};(0,xt.unstable_batchedUpdates)((()=>{null==e||e(o),v({type:"onDragMove",event:o})}))}),[ue.x,ue.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=J.current;if(!e||null==D.current||!t||!i)return;const{onDragOver:o}=M.current,a=r.get(fe),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,xt.unstable_batchedUpdates)((()=>{me(l),null==o||o(s),v({type:"onDragOver",event:s})}))}),[fe]),Rt((()=>{J.current={activatorEvent:j,active:R,activeNode:H,collisionRect:pe,collisions:ge,droppableRects:B,draggableNodes:E,draggingNode:q,draggingNodeRect:Z,droppableContainers:I,over:he,scrollableAncestors:ie,scrollAdjustedTranslate:ue},k.current={initial:Z,translated:pe}}),[R,H,ge,pe,E,q,Z,B,I,he,ie,ue]),function(e){let{acceleration:t,activator:n=Qn.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:l=5,order:s=Gn.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:u,delta:p,threshold:g}=e;const f=function(e){let{delta:t,disabled:n}=e;const r=Ot(t);return $t((e=>{if(n||!r||!e)return qn;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[Cn.Backward]:e.x[Cn.Backward]||-1===i,[Cn.Forward]:e.x[Cn.Forward]||1===i},y:{[Cn.Backward]:e.y[Cn.Backward]||-1===o,[Cn.Forward]:e.y[Cn.Forward]||1===o}}}),[n,t,r])}({delta:p,disabled:!a}),[h,m]=function(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),b=(0,r.useRef)({x:0,y:0}),v=(0,r.useRef)({x:0,y:0}),y=(0,r.useMemo)((()=>{switch(n){case Qn.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Qn.DraggableRect:return o}}),[n,o,c]),x=(0,r.useRef)(null),w=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=b.current.x*v.current.x,n=b.current.y*v.current.y;e.scrollBy(t,n)}),[]),C=(0,r.useMemo)((()=>s===Gn.TreeOrder?[...d].reverse():d),[s,d]);(0,r.useEffect)((()=>{if(a&&d.length&&y){for(const e of C){if(!1===(null==i?void 0:i(e)))continue;const n=d.indexOf(e),r=u[n];if(!r)continue;const{direction:o,speed:a}=In(e,r,y,t,g);for(const e of["x","y"])f[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),x.current=e,h(w,l),b.current=a,void(v.current=o)}b.current={x:0,y:0},v.current={x:0,y:0},m()}else m()}),[t,w,i,m,a,l,JSON.stringify(y),JSON.stringify(f),h,d,C,u,JSON.stringify(g)])}({..._,delta:A,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:ie,scrollableAncestorRects:oe});const we=(0,r.useMemo)((()=>({active:R,activeNode:H,activeNodeRect:Y,activatorEvent:j,collisions:ge,containerNodeRect:X,dragOverlay:G,draggableNodes:E,droppableContainers:I,droppableRects:B,over:he,measureDroppableContainers:V,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:W,measuringScheduled:F,windowRect:re})),[R,H,Y,j,ge,X,G,E,I,B,he,V,ie,oe,W,F,re]),Ce=(0,r.useMemo)((()=>({activatorEvent:j,activators:xe,active:R,activeNodeRect:Y,ariaDescribedById:{draggable:P},dispatch:b,draggableNodes:E,over:he,measureDroppableContainers:V})),[j,xe,R,Y,b,P,E,he,V]);return r.createElement(Xt.Provider,{value:y},r.createElement(br.Provider,{value:Ce},r.createElement(vr.Provider,{value:we},r.createElement(Sr.Provider,{value:be},c)),r.createElement(wr,{disabled:!1===(null==l?void 0:l.restoreFocus)}
2)),r.createElement(Gt,{...l,hiddenTextDescribedById:P}))})),Ir=(0,r.createContext)(null),Tr="button";function kr(){return(0,r.useContext)(vr)}const Rr={timeout:25};function Dr(e){let{animation:t,children:n}=e;const[i,o]=(0,r.useState)(null),[a,l]=(0,r.useState)(null),s=Ot(n);return n||i||!s||o(s),Rt((()=>{if(!a)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,a)).then((()=>{o(null)})):o(null)}),[t,i,a]),r.createElement(r.Fragment,null,n,i?(0,r.cloneElement)(i,{ref:l}):null)}const Nr={x:0,y:0,scaleX:1,scaleY:1};function $r(e){let{children:t}=e;return r.createElement(br.Provider,{value:mr},r.createElement(Sr.Provider,{value:Nr},t))}const jr={position:"fixed",touchAction:"none"},Or=e=>Bt(e)?"transform 250ms ease":void 0,Mr=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:i,adjustScale:o,children:a,className:l,rect:s,style:c,transform:d,transition:u=Or}=e;if(!s)return null;const p=o?d:{...d,scaleX:1,scaleY:1},g={...jr,width:s.width,height:s.height,top:s.top,left:s.left,transform:Ft.Transform.toString(p),transformOrigin:o&&i?tn(i,s):void 0,transition:"function"==typeof u?u(i):u,...c};return r.createElement(n,{className:l,style:g,ref:t},a)})),Pr=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},Lr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ft.Transform.toString(t)},{transform:Ft.Transform.toString(n)}]},sideEffects:Pr({styles:{active:{opacity:"0"}}})};let Wr=0;function zr(e){return(0,r.useMemo)((()=>{if(null!=e)return Wr++,Wr}),[e])}const Br=r.memo((e=>
2{let{adjustScale:t=!1,children:n,dropAnimation:i,style:o,transition:a,modifiers:l,wrapperElement:s="div",className:c,zIndex:d=999}=e;const{activatorEvent:u,active:p,activeNodeRect:g,containerNodeRect:f,draggableNodes:h,droppableContainers:m,dragOverlay:b,over:v,measuringConfiguration:y,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:C}=kr(),S=(0,r.useContext)(Sr),E=zr(null==p?void 0:p.id),A=Cr(l,{activatorEvent:u,active:p,activeNodeRect:g,containerNodeRect:f,draggingNodeRect:b.rect,over:v,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:S,windowRect:C}),I=nr(g),T=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Dt(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const l=a.node.current;if(!l)return;const s=dr(o);if(!s)return;const{transform:c}=Et(o).getComputedStyle(o),d=pn(c);if(!d)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...Lr,...e};return e=>{let{active:o,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c=a.rect.left-o.rect.left,d=a.rect.top-o.rect.top,u={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/a.rect.height:1},p={x:l.x-c,y:l.y-d,...u},g=i({...s,active:o,dragOverlay:a,transform:{initial:l,final:p}}),[f]=g,h=g[g.length-1];if(JSON.stringify(f)===JSON.stringify(h))return;const m=null==r?void 0:r({active:o,dragOverlay:a,...s}),b=a.node.animate(g,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{b.onfinish=()=>{null==m||m(),e()}}))}}(t);return Rn(l,i.draggable.measure),u({active:{id:e,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}({config:i,draggableNodes:h,droppableContainers:m,measuringConfiguration:y}),k=I?b.setRef:void 0;return r.createElement($r,null,r.createElement(Dr,{animation:T},p&&E?r.createElement(Mr,{key:E,id:p.id,ref:k,as:s,activatorEvent:u,adjustScale:t,className:c,transition:a,rect:I,style:{zIndex:d,...o},transform:A},n):null))}));function Vr(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Fr(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function Hr(e){return null!==e&&e>=0}const Ur=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=Vr(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},_r={scaleX:1,scaleY:1},Kr=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const l=null!=(t=o[n])?t:r;if(!l)return null;if(i===n){const e=o[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,..._r}:null}const s=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(o,i,n);return i>n&&i<=a?{x:0,y:-l.height-s,..._r}:i<n&&i>=a?{x:0,y:l.height+s,..._r}:{x:0,y:0,..._r}},Yr="Sortable",Xr=r.createContext({activeIndex:-1,containerId:Yr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ur,disabled:{draggable:!1,droppable:!1}});function Jr(e){let{children:t,id:n,items:i,strategy:o=Ur,disabled:a=!1}=e;const{active:l,dragOverlay:s,droppableRects:c,over:d,measureDroppableContainers:u}=kr(),p=Pt(Yr,n),g=Boolean(null!==s.rect),f=(0,r.useMemo)((()=>i.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[i]),h=null!=l,m=l?f.indexOf(l.id):-1,b=d?f.indexOf(d.id):-1,v=(0,r.useRef)(f),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(f,v.current),x=-1!==b&&-1===m||y,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);Rt((()=>{y&&h&&u(f)}),[y,f,h,u]),(0,r.useEffect)((()=>{v.current=f}),[f]);const C=(0,r.useMemo)((()=>({activeIndex:m,containerId:p,disabled:w,disableTransforms:x,items:f,overIndex:b,useDragOverlay:g,sortedRects:Fr(f,c),strategy:o})),[m,p,w.draggable,w.droppable,x,f,b,c,g,o]);return r.createElement(Xr.Provider,{value:C},t)}const Qr=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Vr(n,r,i).indexOf(t)},Gr=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r||l!==o&&i===a||!n&&(a===i||t!==s))},qr={duration:200,easing:"ease"},Zr="transform",ei=Ft.Transition.toString({property:Zr,duration:0,easing:"linear"}),ti={roleDescription:"sortable"};function ni(e){let{animateLayoutChanges:t=Gr,attributes:n,disabled:i,data:o,getNewIndex:a=Qr,i
vendor: 4,315 bytes, line 2
2d:l,strategy:s,resizeObserverConfig:c,transition:d=qr}=e;const{items:u,containerId:p,activeIndex:g,disabled:f,disableTransforms:h,sortedRects:m,overIndex:b,useDragOverlay:v,strategy:y}=(0,r.useContext)(Xr),x=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(i,f),w=u.indexOf(l),C=(0,r.useMemo)((()=>({sortable:{containerId:p,index:w,items:u},...o})),[p,o,w,u]),S=(0,r.useMemo)((()=>u.slice(u.indexOf(l))),[u,l]),{rect:E,node:A,isOver:I,setNodeRef:T}=function(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:o}=e;const a=Pt("Droppable"),{active:l,dispatch:s,over:c,measureDroppableContainers:d}=(0,r.useContext)(br),u=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),g=(0,r.useRef)(null),f=(0,r.useRef)(null),{disabled:h,updateMeasurementsFor:m,timeout:b}={...Rr,...o},v=Nt(null!=m?m:i),y=rr({callback:(0,r.useCallback)((()=>{p.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout((()=>{d(Array.isArray(v.current)?v.current:[v.current]),f.current=null}),b)):p.current=!0}),[b]),disabled:h||!l}),x=(0,r.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),p.current=!1),e&&y.observe(e))}),[y]),[w,C]=jt(x),S=Nt(t);return(0,r.useEffect)((()=>{y&&w.current&&(y.disconnect(),p.current=!1,y.observe(w.current))}),[w,y]),Rt((()=>(s({type:qt.RegisterDroppable,element:{id:i,key:a,disabled:n,node:w,rect:g,data:S}}),()=>s({type:qt.UnregisterDroppable,key:a,id:i}))),[i]),(0,r.useEffect)((()=>{n!==u.current.disabled&&(s({type:qt.SetDroppableDisabled,id:i,key:a,disabled:n}),u.current.disabled=n)}),[i,a,n,s]),{active:l,rect:g,isOver:(null==c?void 0:c.id)===i,node:w,over:c,setNodeRef:C}}({id:l,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...c}}),{active:k,activatorEvent:R,activeNodeRect:D,attributes:N,setNodeRef:$,listeners:j,isDragging:O,over:M,setActivatorNodeRef:P,transform:L}=function(e){let{id:t,data:n,disabled:i=!1,attributes:o}=e;const a=Pt("Droppable"),{activators:l,activatorEvent:s,active:c,activeNodeRect:d,ariaDescribedById:u,draggableNodes:p,over:g}=(0,r.useContext)(br),{role:f=Tr,roleDescription:h="draggable",tabIndex:m=0}=null!=o?o:{},b=(null==c?void 0:c.id)===t,v=(0,r.useContext)(b?Sr:Ir),[y,x]=jt(),[w,C]=jt(),S=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(l,t),E=Nt(n);return Rt((()=>(p.set(t,{id:t,key:a,node:y,activatorNode:w,data:E}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)})),[p,t]),{active:c,activatorEvent:s,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:f,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!b||f!==Tr)||void 0,"aria-roledescription":h,"aria-describedby":u.draggable})),[i,f,m,b,h,u.draggable]),isDragging:b,listeners:i?void 0:S,node:y,over:g,setNodeRef:x,setActivatorNodeRef:C,transform:v}}({id:l,data:C,attributes:{...ti,...n},disabled:x.draggable}),W=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(T,$),z=Boolean(k),B=z&&!h&&Hr(g)&&Hr(b),V=!v&&O,F=V&&B?L:null,H=B?null!=F?F:(null!=s?s:y)({rects:m,activeNodeRect:D,activeIndex:g,overIndex:b,index:w}):null,U=Hr(g)&&Hr(b)?a({id:l,items:u,activeIndex:g,overIndex:b}):w,_=null==k?void 0:k.id,K=(0,r.useRef)({activeId:_,items:u,newIndex:U,containerId:p}),Y=u!==K.current.items,X=t({active:k,containerId:p,isDragging:O,isSorting:z,id:l,index:w,items:u,newIndex:K.current.newIndex,previousItems:K.current.items,previousContainerId:K.current.containerId,transition:d,wasDragging:null!=K.current.activeId}),J=function(e){let{disabled:t,index:n,node:i,rect:o}=e;const[a,l]=(0,r.useState)(null),s=(0,r.useRef)(n);return Rt((()=>{if(!t&&n!==s.current&&i.current){const e=o.current;if(e){const t=fn(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}n!==s.current&&(s.current=n)}),[t,n,i,o]),(0,r.useEffect)((()=>{a&&l(null)}),[a]),a}({disabled:!X,index:w,node:A,rect:E});return(0,r.useEffect)((()=>{z&&K.current.newIndex!==U&&(K.current.newIndex=U),p!==K.current.containerId&&(K.current.containerId=p),u!==K.current.items&&(K.current.items=u)}),[z,U,p,u]),(0,r.useEffect)((()=>
2{if(_===K.current.activeId)return;if(_&&!K.current.activeId)return void(K.current.activeId=_);const e=setTimeout((()=>{K.current.activeId=_}),50);return()=>clearTimeout(e)}),[_]),{active:k,activeIndex:g,attributes:N,data:C,rect:E,index:w,newIndex:U,items:u,isOver:I,isSorting:z,isDragging:O,listeners:j,node:A,overIndex:b,over:M,setNodeRef:W,setActivatorNodeRef:P,setDroppableNodeRef:T,setDraggableNodeRef:$,transform:null!=J?J:H,transition:J||Y&&K.current.newIndex===w?ei:V&&!Bt(R)||!d?void 0:z||X?Ft.Transition.toString({...d,property:Zr}):void 0}}Mn.Down,Mn.Right,Mn.Up,Mn.Left;var ri=n(45566);const ii=(0,r.forwardRef)((function({id:e,title:t,pinned:n=!1,gripRef:r,gripProps:i,style:o,...a},l){const s=(0,mt.K)(),c=s.getColumn(e),d=c.getIsVisible(),p=c.getCanHide(),g=c.columnDef.header;return(0,x.jsx)(ge.A.Option,{id:e,ref:l,className:(0,w.A)((0,I.T)("table-settings-list","item"),(0,I.T)("table-settings-list-item"),d&&(0,I.T)("table-settings-list-item",null,"visible"),p&&(0,I.T)("table-settings-list-item",null,"hideable")),prefix:(0,x.jsx)(T.default,{ref:r,name:"grip",color:n?"neutral.disabled":d?"neutral.subtitle":"neutral.disabled",style:{cursor:n?"not-allowed":"grab"},className:(0,w.A)((0,I.T)("table-settings-list-item","icon"),(0,I.T)("table-settings-list-item","icon","order")),...i}),suffix:(0,x.jsx)(T.default,{name:d?"eye":"eye-off",color:d&&p?"neutral.subtitle":"neutral.disabled",className:(0,w.A)((0,I.T)("table-settings-list-item","icon"),(0,I.T)("table-settings-list-item","icon","visibility")),style:{cursor:p?"pointer":"not-allowed"}}),style:{color:d?void 0:u.yW.neutral.disabled.var,...o},...a,children:(0,x.jsx)(v.ax,{color:d?"neutral.subtitle":"neutral.disabled",className:(0,I.T)("table-settings-list-item","children"),children:t||(0,_e.Kv)(g,{column:c,table:s,header:g})})})})),oi=({title:e,id:t,style:n,...r})=>{const{listeners:i,setNodeRef:o,setActivatorNodeRef:a,transform:l,transition:s}=ni({id:t,transition:{duration:150,easing:"ease-in-out"}});return(0,x.jsx)(ii,{id:t,ref:o,title:e,gripProps:i,gripRef:a,style:{transform:Ft.Transform.toString(l),transition:s,...n},...r})},ai=e=>36*e+4*(e-1),li=(0,A.Le)((function({className:e,"aria-label":t="Table Settings",icon:n="table-options",size:i="md",appearance:o="ghost",options:a={},...s},c){const[d,p]=(0,r.useState)(!1),g=(0,r.useRef)(null),[f,h]=(0,r.useState)(256);(0,r.useLayoutEffect)((()=>{if(d){const e=setTimeout((()=>{const e=g.current.getBoundingClientRect().width;e>f&&h(e)}),150);return()=>clearTimeout(e)}}),[d]);const m=(0,mt.K)(),{getColumn:b,getState:v,setColumnOrder:y,resetColumnOrder:C,resetColumnVisibility:S,options:E}=m,{columnOrder:A,columnPinning:T}=v(),k=T.left?.filter((e=>!b(e).getCanHide())).length,R=T.right?.filter((e=>!b(e).getCanHide())).length,D=A.slice(k,R?-R:A.length),N=Object.keys(E.state.columnOrder).some(((e,t)=>E.state.columnOrder[t]!==E.initialState.columnOrder[t])),$=Object.keys(E.state.columnVisibility).some((e=>E.state.columnVisibility[e]!==E.initialState.columnVisibility[e])),j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(function(e,t){return(0,r.useMemo)((()=>({sensor:e,options:{}})),[e,t])}(Kn)),[O,M]=(0,r.useState)(null);return(0,x.jsxs)(pe.A,{ref:g,open:d,onChange:p,trigger:(0,x.jsx)(de.A,{ref:c,icon:n,"aria-label":t,appearance:o,size:i,className:(0,w.A)((0,I.T)("table-settings"),e),...s}),style:{minWidth:f},placement:"bottom-end",initialFocus:0,children:[(0,x.jsx)(ge.A,{id:"columns",role:"menu",className:(0,I.T)("table-settings-list"),onChange:e=>{const t=b(e);t.getToggleVisibilityHandler()({target:{checked:!t.getIsVisible()}})},style:{height:ai(D.length),maxHeight:ai(5.5)},children:(0,x.jsxs)(Ar,{sensors:j,collisionDetection:an,onDragStart:e=>M(e.active.id),onDragEnd:e=>{const{active:t,over:n}=e;if(t.id!==n?.id){const e=D.indexOf(t.id),r=D.indexOf(n?.id);y(A.slice(0,k).concat(Vr(D,e,r)).concat(A.slice(R?-R:A.length)))}M(null)},children:[(0,x.jsx)(Jr,{items:D,strategy:Kr,children:D.map((e=>b(e).getIsPinned()?(0,x.jsx)(ii,{id:e,title:a[e],pinned:!0},e):(0,x.jsx)(oi,{id:e,title:a[e],style:{opacity:+(e!==O)}},e)))}),(0,xt.createPortal)((0,x.jsx)(Br,{zIndex:9999,children:O&&(0,x.jsx)(ii,{id:O,title:a[O],style:{backgroundColor:u.yW.neutral.bgHover.var}})}),document.body)]})}),(0,x.jsx)(ri.A,{style:{margin:"8px 0"},className:(0,I.T)("table-settings","divider")}),(0,x.jsx)(l.A,{appearance:"ghostBlue",disabled:!($||N),className:(0,w.A)((0,I.T)("table-settings","button"),(0,I.T)("table-settings","button","reset")),onClick:()=>{N&&C(),$&&S()},children:"Reset"})]})}),"TableSettings"),si=(0,V.e)(["auto","basic","advanced"]),ci=(0,r.lazy)((()=>n.e(100).then(n.bind(n,69100)))),di=(0,r.lazy)((()=>n.e(502).then(n.bind(n,82502)))),ui=(0,A.Le)((function({type:e=si.auto,...t},n){const i=(0,te.U)("min-md"),o=(0,r.useMemo)((()=>si.match(e).with("auto",(()=>i?ci:di)).with("basic",(()=>di)).with("advanced",(()=>ci)).exhaustive()),[e,i]);return(0,x.jsx)(r.Suspense,{fallback:(0,x.jsx)("div",{"data-testid":"lazy"}),children:(0,x.jsx)(o,{ref:n,...t})})}),"Pagination");var pi=n(89334),gi=n(12784),fi=n.n(gi);function hi(e,t){return"setPagination"===t.name?{...e,pagination:t.payload}:"setSearchQuery"===t.name?{...e,pagination:e.pagination?{...e.pagination,pageIndex:0}:e.pagination,searchQuery:t.payload}:"setSorting"===t.name?{...e,sorting:t.payload}:"setFilters"===t.name?{...e,pagination:e.pagination?{...e.pagination,pageIndex:0}:e.pagination,filters:t.payload}:e}const mi={searchDebounceTime:200,minSearchQueryLength:0};var bi=n(8426);const vi=(e,t)=>{const n=setTimeout(e,t);return()=>{clearTimeout(n)}},yi=d.I4.aside.withConfig({componentId:"sc-1dyru61-0"})`position:fixed;bottom:0;left:0;z-index:1000;width:100%;background-color:${u.yW.neutral.white};box-shadow:0px -2px 4px 0px rgba(17,19,34,0.12);border-radius:8px 8px 0 0;border:1px solid ${u.yW.primary.base};@media screen and (max-width:${G.C.md-1}px){transform:translateY(100%);transition:transform 150ms;&[aria-hidden='false']{transform:translateY(0);}}@media screen and (min-width:${G.C.md}px){bottom:32px;left:16px;width:calc(100% - 32px);border-radius:8px;opacity:0;box-shadow:0px 4px 6px -2px rgba(16,24,40,0.03),0px 12px 16px -4px rgba(16,24,40,0.08);transition:opacity 150ms;&[aria-hidden='false']{opacity:1;}}`,xi=d.I4.div.withConfig({componentId:"sc-1dyru61-1"})`position:relative;display:flex;align-items:center;flex-direction:column;gap:16px;padding:36px 16px 16px;@media screen and (min-width:${G.C.md}px){flex-direction:row;justify-content:space-between;padding:24px;}`,wi=d.I4.div.withConfig({componentId:"sc-1dyru61-2"})`display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;@media screen and (min-width:${G.C.md}px){justify-content:initial;width:auto;}`,Ci=(0,d.I4)(de.A).withConfig({componentId:"sc-1dyru61-3"})`position:absolute !important;top:-20px;right:32px;width:40px !important;@media screen and (min-width:${G.C.md}px){position:static !important;}
2`,Si=(0,A.Le)((function({children:e,className:t,title:n,onClose:i,...o},a){const l=(0,te.U)("min-md"),{getState:s,resetRowSelection:c}=(0,mt.K)(),d=Object.keys(s().rowSelection).length,[u,p]=((e,t,n=150)=>{const[i,o]=(0,r.useState)(e||!t),[a,l]=(0,r.useState)(e&&i);return(0,bi.w)((function(){t?(i&&!e&&vi((()=>{o(!1)}),n),!i&&e&&o(!0)):o(!t)}),[e,i,t,n]),(0,bi.w)((function(){e&&!a&&vi((()=>{l(!0)}),0),a&&!e&&l(!1)}),[e,a]),[a,i]})(0<d,!0);return p?(0,x.jsx)(yi,{ref:a,className:(0,w.A)((0,I.T)("table-bulk-actions-panel"),t),"aria-hidden":!u,...o,children:(0,x.jsxs)(xi,{className:(0,I.T)("table-bulk-actions"),children:[n&&(0,x.jsx)(wi,{className:(0,I.T)("table-bulk-actions-title"),children:n({isMd:l,selectedRowsCount:d})}),(0,x.jsxs)(ue.A,{direction:l?"row":"column",fullWidth:!l,className:(0,I.T)("table-bulk-actions-buttons-group"),children:[e,(0,x.jsx)(Ci,{icon:"x","aria-label":"Deselect All",onClick:e=>{i?.(e),c()},className:(0,w.A)((0,I.T)("table-bulk-actions","button"),(0,I.T)("table-bulk-actions","button","deselect-all"))})]})]})}):null}),"BulkActions");var Ei=n(15772);const Ai=({selectedRowsCount:e,onSelectAll:t,isLoading:n,total:i,isAllSelected:o})=>r.createElement(Ei.A,{flex:!0,alignItems:"center"},r.createElement(v.Ay,null,`${o?i:e} ${1===e?"Profile":"Profiles"} Selected`),r.createElement(l.A,{appearance:"ghost",disabled:n||e===i||o,onClick:()=>t(),style:{marginLeft:8},"data-testid":"select-all"},"Select all ",i," profiles")),Ii=e=>{const{isLoading:t,onBulkAction:n}=e,i=(0,r.useCallback)((({selectedRowsCount:t})=>r.createElement(Ai,(0,m.A)({selectedRowsCount:t},e))),[e]);return r.createElement(Si,{title:i},r.createElement(l.A,{appearance:"warning",loading:t,onClick:()=>n("delete"),iconLeft:"trash","data-testid":"delete-selected"},"Delete Selected"))},Ti=d.Ay.div(["td,th{max-width:100%;white-space:nowrap;}.tls-crypt-v2{width:127px;min-width:127px;max-width:127px;}.profile-type{width:169px;min-width:169px;max-width:169px;}.date{width:132px;min-width:132px;max-width:132px;}.comment{width:279px;min-width:279px;max-width:279px;}.serial{width:208px;min-width:208px;max-width:208px;}@media screen and (max-width:","px){th:not( [data-column-id='selector'],[data-column-id='not_before'],[data-column-id='table-actions'] ),td:not( [data-column-id='selector'],[data-column-id='not_before'],[data-column-id='table-actions'] ){display:none;}}"],G.C.md-1);var ki=n(40190);const Ri=e=>e.serial,Di=new Array(10).fill({serial:""}).map(((e,t)=>({...e,serial:t.toString()}))),Ni=[10,25,50],$i=({data:e,initialTableState:t,onAction:n,onBulkAction:i,onTableStateChange:o,total:a,isLoading:l,children:s})=>{const{pagination:{pageIndex:c,pageSize:d},searchQuery:u,sorting:p,onPaginationChange:g,onSearchQueryChange:f,onSortingChange:h}=function(e,t){const{searchDebounceTime:n,minSearchQueryLength:i}={...mi},[o,a]=(0,r.useState)(t),l=(0,r.useRef)(t),{pagination:s,searchQuery:c,sorting:d,filters:u}=o,p=(0,r.useCallback)((t=>{const n=hi(l.current,{name:"setPagination",payload:t});a(n),e(n),l.current=n}),[e]),g=(0,r.useMemo)((()=>fi()((t=>{const n=t.target.value;if(n.length<i)return;const r=hi(l.current,{name:"setSearchQuery",payload:n});a(r),e(r),l.current=r}),n)),[i,e,n]);return{pagination:s,onPaginationChange:p,sorting:d,onSortingChange:(0,r.useCallback)((t=>{const n=hi(l.current,{name:"setSorting",payload:t});
2t?.id===l.current.sorting?.id&&t?.desc===l.current.sorting?.desc||(a(n),e(n),l.current=n)}),[e]),searchQuery:c,onSearchQueryChange:g,filters:u,onFiltersChange:(0,r.useCallback)((t=>{const n=hi(l.current,{name:"setFilters",payload:t});a(n),e(n),l.current=n}),[e])}}(o,t),{isAllSelected:m,onSelectionChange:b,selection:v,setIsAllSelected:y,toggleAllSelected:w}=function(e,t,n){const[i,o]=(0,r.useState)({}),[a,l]=(0,r.useState)(!1),s=(0,r.useCallback)((t=>{"function"==typeof n&&t&&o((t=>({...t,...e.reduce(((e,t)=>(e[n(t)]=!0,e)),{})})))}),[e]);(0,r.useEffect)((()=>{s(a)}),[a,s]);const c=(0,r.useCallback)((e=>{l(!1),o(e)}),[]),d=(0,r.useCallback)((e=>{l(e),s(e)}),[s]),u=(0,r.useCallback)((e=>{d(e??!a)}),[a,d]),p=Object.keys(i).filter(Boolean).length;return{selection:i,onSelectionChange:c,isAllSelected:a,canSelectAll:p!==t,selectedItemsCount:p,setIsAllSelected:d,toggleAllSelected:u}}(e,a,Ri),{columnOrder:C,columnVisibility:S,columns:E,onOrderChange:A,onVisibilityChange:I}=(0,Ue.r)(),T=(e=>{const{data:t,columns:n,loading:i=!1,sorting:o,sortDescFirst:a=!0,enableSortingRemoval:l=!0,onSortingChange:s,pageSize:c,pageIndex:d,pagesCount:u,onPaginationChange:p,selection:g,selectable:f=!0,getRowId:h,onSelectionChange:m,order:b,onOrderChange:v,visibility:y,onVisibilityChange:w}=e,C=(0,r.useMemo)((()=>g?[{id:"selector",header:({table:e})=>(0,x.jsx)(r.Suspense,{fallback:(0,x.jsx)(ct,{"data-testid":"lazy"}),children:(0,x.jsx)(gt,{checked:e.getIsAllPageRowsSelected(),indeterminate:e.getIsSomePageRowsSelected(),onChange:e.getToggleAllPageRowsSelectedHandler(),disabled:e.getIsLoading()})}),cell:({row:e,table:t})=>(0,x.jsx)(r.Suspense,{fallback:(0,x.jsx)(ct,{"data-testid":"lazy"}),children:(0,x.jsx)(gt,{checked:e.getIsSelected(),disabled:t.getIsLoading()||!e.getCanSelect(),indeterminate:e.getIsSomeSelected(),onChange:()=>e.toggleSelected(!e.getIsSelected())})}),enablePinning:!0,enableHiding:!1},...n]:n),[!!g]),S=(0,r.useMemo)((()=>void 0!==c&&void 0!==d?{pageIndex:d,pageSize:c}:void 0),[d,c]),[E,A]=(0,r.useState)({}),I=(0,r.useMemo)((()=>{const e=[],t=[];let n=!1;
2return C.forEach((r=>{n?r.enablePinning&&t.push(r.id):r.enablePinning?e.push(r.id):n=!0})),{left:e,right:t}}),[C]),T=(0,r.useMemo)((()=>g&&b&&"Selector"!==b[0]?["Selector",...b]:b),[b,!!g]),[k]=(0,r.useState)(T),[R]=(0,r.useState)(y),D=o?.id?[o]:[];return(0,_e.N4)({_features:[pt,dt,ut],data:t,columns:C,state:{loading:i,sorting:D,pagination:S,rowSelection:g,expanded:E,columnPinning:I,columnOrder:T,columnVisibility:y},initialState:{columnOrder:k,columnVisibility:R},getCoreRowModel:(0,Ke.HT)(),manualSorting:!0,enableSorting:!!s,enableSortingRemoval:l,sortDescFirst:a,onSortingChange:ft(D,(e=>s?.(e[0]))),manualPagination:!0,pageCount:u,onPaginationChange:ft(S,p),enableRowSelection:!!g&&f,getRowId:h,onRowSelectionChange:ft(g,m),manualExpanding:!1,paginateExpandedRows:!1,enableExpanding:!0,onExpandedChange:A,getExpandedRowModel:(0,Ke.D0)(),enablePinning:!(!I.left.length&&!I.right.length),onColumnOrderChange:ft(b,v),enableHiding:!!y,onColumnVisibilityChange:ft(y,w),manualFiltering:!0,enableGlobalFilter:!0})})({data:l?Di:e,columns:E,order:C,visibility:S,onOrderChange:A,onVisibilityChange:I,loading:l,getRowId:Ri,selection:v,onSelectionChange:b,sorting:p,onSortingChange:h,pageIndex:c,pageSize:d,pagesCount:Math.ceil(a/d),onPaginationChange:g,enableSortingRemoval:!1}),k=(0,r.useCallback)(((...e)=>{n(...e),b({}),y(!1)}),[n,b,y]),R=(0,r.useCallback)((async e=>{await i(e,v,m),b({}),y(!1)}),[i,b,y,v,m]),D=a>d||c>0,N=e.length;return(0,r.useEffect)((()=>{0===N&&c>0&&g({pageIndex:0,pageSize:d})}),[c,d,N,g]),r.createElement(ki.s.Provider,{value:k},r.createElement(Ti,null,r.createElement(yt,{table:T,search:r.createElement(B,{defaultValue:u,onChange:f,iconLeft:"search",placeholder:"Search"}),filters:r.createElement(pi.A,{title:"Overview",as:"h3",style:{marginTop:6}}),settings:r.createElement(li,null),pagination:D?r.createElement(ui,{rowsCount:a,pageSizes:Ni}):void 0,bulkActions:r.createElement(Ii,{onBulkAction:R,onSelectAll:w,total:a,isAllSelected:m})},s)))},ji=()=>{const[e,t]=(0,r.useState)(),{deleteAll:n,deleteMultiple:l,deleteSingle:s,isLoading:c}=(0,o.V)(),{profiles:d,total:u,isLoading:p,isEmptyPageShown:g,isNoResultsShown:f,initialState:m,requestParams:b,onTableStateChange:v}=(0,a.O)(),y=b.filters?.anywhere?.value,x=(0,r.useCallback)(((e,n)=>{"get-info"===e&&t(n),"delete"===e&&s(n.serial)}),[s]),w=(0,r.useCallback)((async(e,t,r)=>{if("delete"===e)if(r)n(y);else{const e=Object.keys(t);l(e)}}),[y,n,l]),{columnOrder:C,columnVisibility:S}=Ue.n.getColumnsState(),{isCreateProfileFormShown:E,availableProfileTypes:A,isLoading:I,isTlsCryptV2Enforced:T,isTlsCryptV2Hidden:k,isProfileImportDisabled:R,onSubmit:D,onOpenInApp:N,toggleCreateProfileFormVisibility:$,closeCreateProfileModal:j,generateTokenUrl:O,tokenUrl:M,closeTokenUrlModal:P}=function(){const[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(""),{isTlsCryptV2Enforced:o,isTlsCryptV2Hidden:a,availableProfileTypes:l,isProfileImportDisabled:s}=(0,Ae.z)(),[c,{isLoading:d}]=(0,Ie.Jw)(),[u,{isLoading:p}]=(0,Ie.Kl)(),g=(0,r.useCallback)((async e=>{(0,Ce.W)(e)&&(0,Se.Z)(e.data)&&!(0,Ee.H)(e)&&we.A.warning(e.data.reason)}),[]),f=(0,r.useCallback)((async e=>{try{await u(e).unwrap(),we.A.success("Profile created."),t(!1)}catch(e){g(e)}}),[u,g]),h=(0,r.useCallback)((async({profile_type:e})=>{try{const n=window.open(void 0,"_top"),r=await c({profile_type:e}).unwrap();n&&(n.location.href=r),t(!1)}catch(e){g(e)}}),[c,g]),m=(0,r.useCallback)((async({profile_type:e})=>{try{const n=await c({profile_type:e}).unwrap();i(n),t(!1)}catch(e){g(e)}}),[c,g]);return{availableProfileTypes:l,isCreateProfileFormShown:e,tokenUrl:n,isLoading:d||p,isTlsCryptV2Enforced:o,isTlsCryptV2Hidden:a,isProfileImportDisabled:s,onOpenInApp:h,onSubmit:f,toggleCreateProfileFormVisibility:(0,r.useCallback)((()=>t((e=>!e))),[]),closeCreateProfileModal:(0,r.useCallback)((()=>t(!1)),[]),generateTokenUrl:m,closeTokenUrlModal:()=>i("")}}(),L=A.length?$:void 0;return r.createElement(r.Fragment,null,e&&r.createElement(h,{profile:e,columnOrder:C,columnVisibility:S,onClose:()=>t(void 0),onDelete:s}),r.createElement(Pe,{onAddProfileClick:L}),r.createElement($i,{data:d,initialTableState:m,onAction:x,onBulkAction:w,onTableStateChange:v,total:u,isLoading:p||c},(g||f)&&r.createElement(je,{onAddProfileClick:L})),r.createElement(i.A,{open:E,onClose:j,title:"Add New Profile",size:"xl","data-testid":"profile-creation-form"},r.createElement(xe,{profileTypes:A,disabled:I,isTlsCryptV2Enforced:T,isTlsCryptV2Hidden:k,isProfileImportDisabled:R,onSubmit:D,onOpenInApp:N,generateTokenUrl:O})),r.createElement(He,{tokenUrl:M,onClose:P}))},Oi=ji}
2,15772:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(9690),i=n(14041),o=n(71197),a=n(3668),l=n.n(a);const s=e=>"number"==typeof e?`${e}px`:e,c={$height:{name:"height",apply:s},$maxHeight:{name:"max-height",apply:s},$minHeight:{name:"min-height",apply:s},$width:{name:"width",apply:s},$maxWidth:{name:"max-width",apply:s},$minWidth:{name:"min-width",apply:s},$m:{name:"margin",apply:s},$mb:{name:"margin-bottom",apply:s},$mt:{name:"margin-top",apply:s},$ml:{name:"margin-left",apply:s},$mr:{name:"margin-right",apply:s},$p:{name:"padding",apply:s},$pb:{name:"padding-bottom",apply:s},$pt:{name:"padding-top",apply:s},$pl:{name:"padding-left",apply:s},$pr:{name:"padding-right",apply:s}};function d({$flex:e,$inline:t}){return e?t?"inline-flex":"flex":t?"inline-block":"block"}function u({$flex:e,...t}){return e?(0,o.AH)(["flex-direction:",";justify-items:",";justify-content:",";align-items:",";align-content:",";flex-shrink:",";flex-basis:",";"],t.$column&&"column",t.$justifyItems||"initial",t.$justifyContent||"initial",t.$alignItems||"initial",t.$alignContent||"initial",t.$flexShrink||"initial",t.$flexBasis||"initial"):""}const p=o.Ay.div(["display:",";width:",";"," ",";"],d,(({$fullWidth:e})=>e?"100%":"auto"),u,(e=>t=>Object.keys(e).filter((e=>!l()(t[e]))).map((n=>{const{name:r,apply:i}=e[n];return`${r}: ${i(t[n])};`})).join(""))(c)),g=(0,i.forwardRef)(((e,t)=>{const{flex:n,justifyContent:o,justifyItems:a,alignContent:l,alignItems:s,flexShrink:c,flexBasis:d,inline:u,column:g,width:f,minWidth:h,maxWidth:m,height:b,minHeight:v,maxHeight:y,fullWidth:x,m:w,mb:C,mt:S,ml:E,mr:A,p:I,pb:T,pt:k,pl:R,pr:D,...N}=e;return i.createElement(p,(0,r.A)({ref:t,$flex:n,$justifyContent:o,$justifyItems:a,$alignContent:l,$alignItems:s,$flexShrink:c,$flexBasis:d,$inline:u,$column:g,$width:f,$minWidth:h,$maxWidth:m,$height:b,$minHeight:v,$maxHeight:y,$fullWidth:x,$m:w,$mb:C,$mt:S,$ml:E,$mr:A,$p:I,$pb:T,$pt:k,$pl:R,$pr:D},N))}))},32847:(e,t,n)=>{"use strict";n.d(t,{l:()=>h});var r=n(9690),i=n(87809),o=n.n(i),a=n(14041),l=n(18684),s=n(28846),c=n(74267),d=n(44066),u=n(24037),p=n(54858);const g=[(0,l.RK)({allowedPlacements:["top","bottom"]})],f=()=>a.createElement(u.ax,{style:{textAlign:"center",padding:"8px 0"},color:"neutral.body",id:"no-options"},"No options"),h=e=>{const{id:t,options:n,withSearch:i,value:l,onChange:u,onSearch:h,onClear:m,query:b,checkedIcon:v=!0,noOptionsMessage:y,...x}=e,w=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=w.current?.querySelector(".ovpn-combobox-value input");e&&e.setAttribute("autocomplete","off")}),[]);const{open:C,comboboxValue:S,selected:E,toggle:A,onListboxValueChange:I,onSearchQueryChange:T,searchQuery:k}=function(e){const{value:t,options:n,withSearch:r,onChange:i,onSearch:o}=e,{comboboxValue:l,listboxValue:s,query:c,open:d,toggle:u,search:g,select:f,selected:h}=(0,p.W)(),m=Boolean(t),b=t||s,v=(0,a.useMemo)((()=>n.find((e=>b===e.id))??{id:b,children:b,displayValue:b}),[b,n]);let y=c;r&&!d&&(y=v?.displayValue||v?.children?.toString()||l);const x=(0,a.useCallback)((e=>{f(e),i?.(e)}),[i,f]),w=(0,a.useCallback)((e=>{o?.(e),g(e)}),[o,g]),C=(0,a.useCallback)((e=>b===e),[b]);
2return{comboboxValue:r?void 0:v?.displayValue||v?.children||l,selected:m?C:h,open:d,toggle:u,searchQuery:r?y:void 0,onSearchQueryChange:r?w:void 0,onListboxValueChange:x}}({onChange:u,options:n,onSearch:h,value:l,withSearch:i}),R=m?e=>{I(""),m(e)}:void 0;return a.createElement(d.A,(0,r.A)({ref:w,open:C,onChange:A,value:S,query:k,onSearch:T,middlewares:g,onClose:()=>{T?.({target:{value:""}})},onClear:R},x),n.length>0?a.createElement(c.A,{id:t,onChange:I,value:E},((e,t)=>{if(e.some((e=>e.group))){const n=o()(e,(e=>e.group?.id));return Object.entries(n).map((([e,n])=>{const i=n?.[0]?.group?.children;return a.createElement(c.A.Optgroup,{bordered:!0,key:e,title:i},n.map((e=>a.createElement(c.A.Option,(0,r.A)({key:e.id,suffix:t?a.createElement(s.A,null):void 0},e)))))}))}return e.map((e=>a.createElement(c.A.Option,(0,r.A)({key:e.id,suffix:t?a.createElement(s.A,null):void 0},e))))})(n,v)):y||a.createElement(f,null))}},69078:(e,t,n)=>{"use strict";n.d(t,{H1:()=>c});var r=n(9690),i=n(14041),o=n(71197),a=n(24037),l=n(70756);const s=(0,o.Ay)(a.Ay)(["text-align:center;margin-top:0;margin-bottom:var(--spacing-md,32);letter-spacing:-0.64px;@media (max-width:","px){margin-bottom:var(--spacing-sm,24);font-size:24px;line-height:32px;letter-spacing:-0.48px;}"],l.C.lg-1),c=e=>i.createElement(s,(0,r.A)({forwardedAs:"h1",color:"neutral.title",size:"displayLg",weight:"semiBold"},e))},86403:(e,t,n)=>{var r=n(62945),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},62945:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},12784:(e,t,n)=>{var r=n(41580),i=n(94495),o=n(6131),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,d,u,p,g,f=0,h=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,r=c;return s=c=void 0,f=t,u=e.apply(r,n)}function y(e){var n=e-g;return void 0===g||n>=t||n<0||m&&e-f>=d}function x(){var e=i();if(y(e))return w(e);p=setTimeout(x,function(e){var n=t-(e-g);return m?l(n,d-(e-f)):n}(e))}function w(e){return p=void 0,b&&s?v(e):(s=c=void 0,u)}function C(){var e=i(),n=y(e);if(s=arguments,c=this,g=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(x,t),h?v(e):u}(g);if(m)return clearTimeout(p),p=setTimeout(x,t),v(g)}return void 0===p&&(p=setTimeout(x,t)),u}return t=o(t)||0,r(n)&&(h=!!n.leading,d=(m="maxWait"in n)?a(o(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),C.cancel=function(){void 0!==p&&clearTimeout(p),f=0,s=g=c=p=void 0},C.flush=function(){return void 0===p?u:w(i())},C}},94495:(e,t,n)=>{var r=n(78942);e.exports=function(){return r.Date.now()}},6131:(e,t,n)=>{var r=n(86403),i=n(41580),o=n(51187),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},62629:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>o,N4:()=>a});var r=n(14041),i=n(97609);function o(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?r.createElement(e,t):e:null;var n}function a(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({current:(0,i.ZR)(t)}))),[o,a]=r.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},53528:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,K:()=>l});var r=n(31085),i=n(14041);const o=(0,i.createContext)(void 0),a=({children:e,...t})=>(0,r.jsx)(o.Provider,{value:t.table,children:e}),l=()=>{const e=(0,i.useContext)(o);if(void 0===e)throw new ReferenceError("Unable to use TableContext outside its provider.");return e}}}]);

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