import{c as Se,g as it,q as st,s as ut,r as h,j as v,f as T,a as Ie,e as Y,P as j,u as at,$ as N,d as z,ar as ct,X as q,ad as dt}from"./index-CVadajdu.js";import{u as gt}from"./switch-mwVZiWJC.js";import{C as ft,u as pt}from"./index-Sp1L2CHJ.js";/**
 * @license lucide-react v0.479.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mt=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Dn=Se("ChevronLeft",mt);/**
 * @license lucide-react v0.479.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ht=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Ln=Se("Download",ht);/**
 * @license lucide-react v0.479.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const St=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Hn=Se("Filter",St);function zn(e){return it({queryKey:st.projects.metrics(e),queryFn:()=>ut.projects.getMetrics(e),enabled:!!e})}/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function k(e,o){return typeof e=="function"?e(o):e}function V(e,o){return t=>{o.setState(n=>({...n,[e]:k(t,n[e])}))}}function te(e){return e instanceof Function}function vt(e){return Array.isArray(e)&&e.every(o=>typeof o=="number")}function Ct(e,o){const t=[],n=r=>{r.forEach(l=>{t.push(l);const i=o(l);i!=null&&i.length&&n(i)})};return n(e),t}function w(e,o,t){let n=[],r;return l=>{let i;t.key&&t.debug&&(i=Date.now());const s=e(l);if(!(s.length!==n.length||s.some((g,p)=>n[p]!==g)))return r;n=s;let c;if(t.key&&t.debug&&(c=Date.now()),r=o(...s),t==null||t.onChange==null||t.onChange(r),t.key&&t.debug&&t!=null&&t.debug()){const g=Math.round((Date.now()-i)*100)/100,p=Math.round((Date.now()-c)*100)/100,d=p/16,a=(f,m)=>{for(f=String(f);f.length<m;)f=" "+f;return f};console.info(`%c⏱ ${a(p,5)} /${a(g,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,t==null?void 0:t.key)}return r}}function R(e,o,t,n){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[o]},key:!1,onChange:n}}function wt(e,o,t,n){const r=()=>{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${o.id}_${t.id}`,row:o,column:t,getValue:()=>o.getValue(n),renderValue:r,getContext:w(()=>[e,t,o,l],(i,s,u,c)=>({table:i,column:s,row:u,cell:c,getValue:c.getValue,renderValue:c.renderValue}),R(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,t,o,e)},{}),l}function Rt(e,o,t,n){var r,l;const s={...e._getDefaultColumnDef(),...o},u=s.accessorKey;let c=(r=(l=s.id)!=null?l:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?r:typeof s.header=="string"?s.header:void 0,g;if(s.accessorFn?g=s.accessorFn:u&&(u.includes(".")?g=d=>{let a=d;for(const m of u.split(".")){var f;a=(f=a)==null?void 0:f[m]}return a}:g=d=>d[s.accessorKey]),!c)throw new Error;let p={id:`${String(c)}`,accessorFn:g,parent:n,depth:t,columnDef:s,columns:[],getFlatColumns:w(()=>[!0],()=>{var d;return[p,...(d=p.columns)==null?void 0:d.flatMap(a=>a.getFlatColumns())]},R(e.options,"debugColumns")),getLeafColumns:w(()=>[e._getOrderColumnsFn()],d=>{var a;if((a=p.columns)!=null&&a.length){let f=p.columns.flatMap(m=>m.getLeafColumns());return d(f)}return[p]},R(e.options,"debugColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(p,e);return p}const $="debugHeaders";function ye(e,o,t){var n;let l={id:(n=t.id)!=null?n:o.id,column:o,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],s=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(s),i.push(u)};return s(l),i},getContext:()=>({table:e,header:l,column:o})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(l,e)}),l}const _t={createTable:e=>{e.getHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,r)=>{var l,i;const s=(l=n==null?void 0:n.map(p=>t.find(d=>d.id===p)).filter(Boolean))!=null?l:[],u=(i=r==null?void 0:r.map(p=>t.find(d=>d.id===p)).filter(Boolean))!=null?i:[],c=t.filter(p=>!(n!=null&&n.includes(p.id))&&!(r!=null&&r.includes(p.id)));return K(o,[...s,...c,...u],e)},R(e.options,$)),e.getCenterHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,r)=>(t=t.filter(l=>!(n!=null&&n.includes(l.id))&&!(r!=null&&r.includes(l.id))),K(o,t,e,"center")),R(e.options,$)),e.getLeftHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(o,t,n)=>{var r;const l=(r=n==null?void 0:n.map(i=>t.find(s=>s.id===i)).filter(Boolean))!=null?r:[];return K(o,l,e,"left")},R(e.options,$)),e.getRightHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(o,t,n)=>{var r;const l=(r=n==null?void 0:n.map(i=>t.find(s=>s.id===i)).filter(Boolean))!=null?r:[];return K(o,l,e,"right")},R(e.options,$)),e.getFooterGroups=w(()=>[e.getHeaderGroups()],o=>[...o].reverse(),R(e.options,$)),e.getLeftFooterGroups=w(()=>[e.getLeftHeaderGroups()],o=>[...o].reverse(),R(e.options,$)),e.getCenterFooterGroups=w(()=>[e.getCenterHeaderGroups()],o=>[...o].reverse(),R(e.options,$)),e.getRightFooterGroups=w(()=>[e.getRightHeaderGroups()],o=>[...o].reverse(),R(e.options,$)),e.getFlatHeaders=w(()=>[e.getHeaderGroups()],o=>o.map(t=>t.headers).flat(),R(e.options,$)),e.getLeftFlatHeaders=w(()=>[e.getLeftHeaderGroups()],o=>o.map(t=>t.headers).flat(),R(e.options,$)),e.getCenterFlatHeaders=w(()=>[e.getCenterHeaderGroups()],o=>o.map(t=>t.headers).flat(),R(e.options,$)),e.getRightFlatHeaders=w(()=>[e.getRightHeaderGroups()],o=>o.map(t=>t.headers).flat(),R(e.options,$)),e.getCenterLeafHeaders=w(()=>[e.getCenterFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),R(e.options,$)),e.getLeftLeafHeaders=w(()=>[e.getLeftFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),R(e.options,$)),e.getRightLeafHeaders=w(()=>[e.getRightFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),R(e.options,$)),e.getLeafHeaders=w(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(o,t,n)=>{var r,l,i,s,u,c;return[...(r=(l=o[0])==null?void 0:l.headers)!=null?r:[],...(i=(s=t[0])==null?void 0:s.headers)!=null?i:[],...(u=(c=n[0])==null?void 0:c.headers)!=null?u:[]].map(g=>g.getLeafHeaders()).flat()},R(e.options,$))}};function K(e,o,t,n){var r,l;let i=0;const s=function(d,a){a===void 0&&(a=1),i=Math.max(i,a),d.filter(f=>f.getIsVisible()).forEach(f=>{var m;(m=f.columns)!=null&&m.length&&s(f.columns,a+1)},0)};s(e);let u=[];const c=(d,a)=>{const f={depth:a,id:[n,`${a}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(C=>{const S=[...m].reverse()[0],_=C.column.depth===f.depth;let x,y=!1;if(_&&C.column.parent?x=C.column.parent:(x=C.column,y=!0),S&&(S==null?void 0:S.column)===x)S.subHeaders.push(C);else{const F=ye(t,x,{id:[n,a,x.id,C==null?void 0:C.id].filter(Boolean).join("_"),isPlaceholder:y,placeholderId:y?`${m.filter(M=>M.column===x).length}`:void 0,depth:a,index:m.length});F.subHeaders.push(C),m.push(F)}f.headers.push(C),C.headerGroup=f}),u.push(f),a>0&&c(m,a-1)},g=o.map((d,a)=>ye(t,d,{depth:i,index:a}));c(g,i-1),u.reverse();const p=d=>d.filter(f=>f.column.getIsVisible()).map(f=>{let m=0,C=0,S=[0];f.subHeaders&&f.subHeaders.length?(S=[],p(f.subHeaders).forEach(x=>{let{colSpan:y,rowSpan:F}=x;m+=y,S.push(F)})):m=1;const _=Math.min(...S);return C=C+_,f.colSpan=m,f.rowSpan=C,{colSpan:m,rowSpan:C}});return p((r=(l=u[0])==null?void 0:l.headers)!=null?r:[]),u}const ve=(e,o,t,n,r,l,i)=>{let s={id:o,index:n,original:t,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(s._valuesCache.hasOwnProperty(u))return s._valuesCache[u];const c=e.getColumn(u);if(c!=null&&c.accessorFn)return s._valuesCache[u]=c.accessorFn(s.original,n),s._valuesCache[u]},getUniqueValues:u=>{if(s._uniqueValuesCache.hasOwnProperty(u))return s._uniqueValuesCache[u];const c=e.getColumn(u);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(s._uniqueValuesCache[u]=c.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[u]):(s._uniqueValuesCache[u]=[s.getValue(u)],s._uniqueValuesCache[u])},renderValue:u=>{var c;return(c=s.getValue(u))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Ct(s.subRows,u=>u.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let u=[],c=s;for(;;){const g=c.getParentRow();if(!g)break;u.push(g),c=g}return u.reverse()},getAllCells:w(()=>[e.getAllLeafColumns()],u=>u.map(c=>wt(e,s,c,c.id)),R(e.options,"debugRows")),_getAllCellsByColumnId:w(()=>[s.getAllCells()],u=>u.reduce((c,g)=>(c[g.column.id]=g,c),{}),R(e.options,"debugRows"))};for(let u=0;u<e._features.length;u++){const c=e._features[u];c==null||c.createRow==null||c.createRow(s,e)}return s},xt={createColumn:(e,o)=>{e._getFacetedRowModel=o.options.getFacetedRowModel&&o.options.getFacetedRowModel(o,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():o.getPreFilteredRowModel(),e._getFacetedUniqueValues=o.options.getFacetedUniqueValues&&o.options.getFacetedUniqueValues(o,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=o.options.getFacetedMinMaxValues&&o.options.getFacetedMinMaxValues(o,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Ve=(e,o,t)=>{var n,r;const l=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((r=e.getValue(o))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(l))};Ve.autoRemove=e=>b(e);const Ee=(e,o,t)=>{var n;return!!(!((n=e.getValue(o))==null||(n=n.toString())==null)&&n.includes(t))};Ee.autoRemove=e=>b(e);const be=(e,o,t)=>{var n;return((n=e.getValue(o))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(t==null?void 0:t.toLowerCase())};be.autoRemove=e=>b(e);const Ae=(e,o,t)=>{var n;return(n=e.getValue(o))==null?void 0:n.includes(t)};Ae.autoRemove=e=>b(e);const De=(e,o,t)=>!t.some(n=>{var r;return!((r=e.getValue(o))!=null&&r.includes(n))});De.autoRemove=e=>b(e)||!(e!=null&&e.length);const Le=(e,o,t)=>t.some(n=>{var r;return(r=e.getValue(o))==null?void 0:r.includes(n)});Le.autoRemove=e=>b(e)||!(e!=null&&e.length);const He=(e,o,t)=>e.getValue(o)===t;He.autoRemove=e=>b(e);const ze=(e,o,t)=>e.getValue(o)==t;ze.autoRemove=e=>b(e);const Ce=(e,o,t)=>{let[n,r]=t;const l=e.getValue(o);return l>=n&&l<=r};Ce.resolveFilterValue=e=>{let[o,t]=e,n=typeof o!="number"?parseFloat(o):o,r=typeof t!="number"?parseFloat(t):t,l=o===null||Number.isNaN(n)?-1/0:n,i=t===null||Number.isNaN(r)?1/0:r;if(l>i){const s=l;l=i,i=s}return[l,i]};Ce.autoRemove=e=>b(e)||b(e[0])&&b(e[1]);const H={includesString:Ve,includesStringSensitive:Ee,equalsString:be,arrIncludes:Ae,arrIncludesAll:De,arrIncludesSome:Le,equals:He,weakEquals:ze,inNumberRange:Ce};function b(e){return e==null||e===""}const Ft={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:V("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,o)=>{e.getAutoFilterFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);return typeof n=="string"?H.includesString:typeof n=="number"?H.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?H.equals:Array.isArray(n)?H.arrIncludes:H.weakEquals},e.getFilterFn=()=>{var t,n;return te(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(n=o.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?t:H[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,n,r;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((n=o.options.enableColumnFilters)!=null?n:!0)&&((r=o.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=o.getState().columnFilters)==null||(t=t.find(n=>n.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,n;return(t=(n=o.getState().columnFilters)==null?void 0:n.findIndex(r=>r.id===e.id))!=null?t:-1},e.setFilterValue=t=>{o.setColumnFilters(n=>{const r=e.getFilterFn(),l=n==null?void 0:n.find(g=>g.id===e.id),i=k(t,l?l.value:void 0);if($e(r,i,e)){var s;return(s=n==null?void 0:n.filter(g=>g.id!==e.id))!=null?s:[]}const u={id:e.id,value:i};if(l){var c;return(c=n==null?void 0:n.map(g=>g.id===e.id?u:g))!=null?c:[]}return n!=null&&n.length?[...n,u]:[u]})}},createRow:(e,o)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=o=>{const t=e.getAllLeafColumns(),n=r=>{var l;return(l=k(o,r))==null?void 0:l.filter(i=>{const s=t.find(u=>u.id===i.id);if(s){const u=s.getFilterFn();if($e(u,i.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=o=>{var t,n;e.setColumnFilters(o?[]:(t=(n=e.initialState)==null?void 0:n.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function $e(e,o,t){return(e&&e.autoRemove?e.autoRemove(o,t):!1)||typeof o>"u"||typeof o=="string"&&!o}const Pt=(e,o,t)=>t.reduce((n,r)=>{const l=r.getValue(e);return n+(typeof l=="number"?l:0)},0),yt=(e,o,t)=>{let n;return t.forEach(r=>{const l=r.getValue(e);l!=null&&(n>l||n===void 0&&l>=l)&&(n=l)}),n},$t=(e,o,t)=>{let n;return t.forEach(r=>{const l=r.getValue(e);l!=null&&(n<l||n===void 0&&l>=l)&&(n=l)}),n},Mt=(e,o,t)=>{let n,r;return t.forEach(l=>{const i=l.getValue(e);i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}),[n,r]},It=(e,o)=>{let t=0,n=0;if(o.forEach(r=>{let l=r.getValue(e);l!=null&&(l=+l)>=l&&(++t,n+=l)}),t)return n/t},Vt=(e,o)=>{if(!o.length)return;const t=o.map(l=>l.getValue(e));if(!vt(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),r=t.sort((l,i)=>l-i);return t.length%2!==0?r[n]:(r[n-1]+r[n])/2},Et=(e,o)=>Array.from(new Set(o.map(t=>t.getValue(e))).values()),bt=(e,o)=>new Set(o.map(t=>t.getValue(e))).size,At=(e,o)=>o.length,le={sum:Pt,min:yt,max:$t,extent:Mt,mean:It,median:Vt,unique:Et,uniqueCount:bt,count:At},Dt={getDefaultColumnDef:()=>({aggregatedCell:e=>{var o,t;return(o=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?o:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:V("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,o)=>{e.toggleGrouping=()=>{o.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(n=>n!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,n;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((n=o.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=o.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=o.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);if(typeof n=="number")return le.sum;if(Object.prototype.toString.call(n)==="[object Date]")return le.extent},e.getAggregationFn=()=>{var t,n;if(!e)throw new Error;return te(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(n=o.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?t:le[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=o=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(o),e.resetGrouping=o=>{var t,n;e.setGrouping(o?[]:(t=(n=e.initialState)==null?void 0:n.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,o)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const n=o.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[t]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,o,t,n)=>{e.getIsGrouped=()=>o.getIsGrouped()&&o.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&o.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=t.subRows)!=null&&r.length)}}};function Lt(e,o,t){if(!(o!=null&&o.length)||!t)return e;const n=e.filter(l=>!o.includes(l.id));return t==="remove"?n:[...o.map(l=>e.find(i=>i.id===l)).filter(Boolean),...n]}const Ht={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:V("columnOrder",e)}),createColumn:(e,o)=>{e.getIndex=w(t=>[W(o,t)],t=>t.findIndex(n=>n.id===e.id),R(o.options,"debugColumns")),e.getIsFirstColumn=t=>{var n;return((n=W(o,t)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=t=>{var n;const r=W(o,t);return((n=r[r.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=o=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(o),e.resetColumnOrder=o=>{var t;e.setColumnOrder(o?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=w(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(o,t,n)=>r=>{let l=[];if(!(o!=null&&o.length))l=r;else{const i=[...o],s=[...r];for(;s.length&&i.length;){const u=i.shift(),c=s.findIndex(g=>g.id===u);c>-1&&l.push(s.splice(c,1)[0])}l=[...l,...s]}return Lt(l,t,n)},R(e.options,"debugTable"))}},ie=()=>({left:[],right:[]}),zt={getInitialState:e=>({columnPinning:ie(),...e}),getDefaultOptions:e=>({onColumnPinningChange:V("columnPinning",e)}),createColumn:(e,o)=>{e.pin=t=>{const n=e.getLeafColumns().map(r=>r.id).filter(Boolean);o.setColumnPinning(r=>{var l,i;if(t==="right"){var s,u;return{left:((s=r==null?void 0:r.left)!=null?s:[]).filter(p=>!(n!=null&&n.includes(p))),right:[...((u=r==null?void 0:r.right)!=null?u:[]).filter(p=>!(n!=null&&n.includes(p))),...n]}}if(t==="left"){var c,g;return{left:[...((c=r==null?void 0:r.left)!=null?c:[]).filter(p=>!(n!=null&&n.includes(p))),...n],right:((g=r==null?void 0:r.right)!=null?g:[]).filter(p=>!(n!=null&&n.includes(p)))}}return{left:((l=r==null?void 0:r.left)!=null?l:[]).filter(p=>!(n!=null&&n.includes(p))),right:((i=r==null?void 0:r.right)!=null?i:[]).filter(p=>!(n!=null&&n.includes(p)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var r,l,i;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((l=(i=o.options.enableColumnPinning)!=null?i:o.options.enablePinning)!=null?l:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(s=>s.id),{left:n,right:r}=o.getState().columnPinning,l=t.some(s=>n==null?void 0:n.includes(s)),i=t.some(s=>r==null?void 0:r.includes(s));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var t,n;const r=e.getIsPinned();return r?(t=(n=o.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))!=null?t:-1:0}},createRow:(e,o)=>{e.getCenterVisibleCells=w(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left,o.getState().columnPinning.right],(t,n,r)=>{const l=[...n??[],...r??[]];return t.filter(i=>!l.includes(i.column.id))},R(o.options,"debugRows")),e.getLeftVisibleCells=w(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left],(t,n)=>(n??[]).map(l=>t.find(i=>i.column.id===l)).filter(Boolean).map(l=>({...l,position:"left"})),R(o.options,"debugRows")),e.getRightVisibleCells=w(()=>[e._getAllVisibleCells(),o.getState().columnPinning.right],(t,n)=>(n??[]).map(l=>t.find(i=>i.column.id===l)).filter(Boolean).map(l=>({...l,position:"right"})),R(o.options,"debugRows"))},createTable:e=>{e.setColumnPinning=o=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(o),e.resetColumnPinning=o=>{var t,n;return e.setColumnPinning(o?ie():(t=(n=e.initialState)==null?void 0:n.columnPinning)!=null?t:ie())},e.getIsSomeColumnsPinned=o=>{var t;const n=e.getState().columnPinning;if(!o){var r,l;return!!((r=n.left)!=null&&r.length||(l=n.right)!=null&&l.length)}return!!((t=n[o])!=null&&t.length)},e.getLeftLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(o,t)=>(t??[]).map(n=>o.find(r=>r.id===n)).filter(Boolean),R(e.options,"debugColumns")),e.getRightLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(o,t)=>(t??[]).map(n=>o.find(r=>r.id===n)).filter(Boolean),R(e.options,"debugColumns")),e.getCenterLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n)=>{const r=[...t??[],...n??[]];return o.filter(l=>!r.includes(l.id))},R(e.options,"debugColumns"))}};function Tt(e){return e||(typeof document<"u"?document:null)}const Q={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},se=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),kt={getDefaultColumnDef:()=>Q,getInitialState:e=>({columnSizing:{},columnSizingInfo:se(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:V("columnSizing",e),onColumnSizingInfoChange:V("columnSizingInfo",e)}),createColumn:(e,o)=>{e.getSize=()=>{var t,n,r;const l=o.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Q.minSize,(n=l??e.columnDef.size)!=null?n:Q.size),(r=e.columnDef.maxSize)!=null?r:Q.maxSize)},e.getStart=w(t=>[t,W(o,t),o.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((r,l)=>r+l.getSize(),0),R(o.options,"debugColumns")),e.getAfter=w(t=>[t,W(o,t),o.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((r,l)=>r+l.getSize(),0),R(o.options,"debugColumns")),e.resetSize=()=>{o.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var t,n;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((n=o.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>o.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,o)=>{e.getSize=()=>{let t=0;const n=r=>{if(r.subHeaders.length)r.subHeaders.forEach(n);else{var l;t+=(l=r.column.getSize())!=null?l:0}};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const n=o.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return l=>{if(!n||!r||(l.persist==null||l.persist(),ue(l)&&l.touches&&l.touches.length>1))return;const i=e.getSize(),s=e?e.getLeafHeaders().map(S=>[S.column.id,S.column.getSize()]):[[n.id,n.getSize()]],u=ue(l)?Math.round(l.touches[0].clientX):l.clientX,c={},g=(S,_)=>{typeof _=="number"&&(o.setColumnSizingInfo(x=>{var y,F;const M=o.options.columnResizeDirection==="rtl"?-1:1,D=(_-((y=x==null?void 0:x.startOffset)!=null?y:0))*M,B=Math.max(D/((F=x==null?void 0:x.startSize)!=null?F:0),-.999999);return x.columnSizingStart.forEach(P=>{let[I,L]=P;c[I]=Math.round(Math.max(L+L*B,0)*100)/100}),{...x,deltaOffset:D,deltaPercentage:B}}),(o.options.columnResizeMode==="onChange"||S==="end")&&o.setColumnSizing(x=>({...x,...c})))},p=S=>g("move",S),d=S=>{g("end",S),o.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},a=Tt(t),f={moveHandler:S=>p(S.clientX),upHandler:S=>{a==null||a.removeEventListener("mousemove",f.moveHandler),a==null||a.removeEventListener("mouseup",f.upHandler),d(S.clientX)}},m={moveHandler:S=>(S.cancelable&&(S.preventDefault(),S.stopPropagation()),p(S.touches[0].clientX),!1),upHandler:S=>{var _;a==null||a.removeEventListener("touchmove",m.moveHandler),a==null||a.removeEventListener("touchend",m.upHandler),S.cancelable&&(S.preventDefault(),S.stopPropagation()),d((_=S.touches[0])==null?void 0:_.clientX)}},C=Gt()?{passive:!1}:!1;ue(l)?(a==null||a.addEventListener("touchmove",m.moveHandler,C),a==null||a.addEventListener("touchend",m.upHandler,C)):(a==null||a.addEventListener("mousemove",f.moveHandler,C),a==null||a.addEventListener("mouseup",f.upHandler,C)),o.setColumnSizingInfo(S=>({...S,startOffset:u,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=o=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(o),e.setColumnSizingInfo=o=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(o),e.resetColumnSizing=o=>{var t;e.setColumnSizing(o?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=o=>{var t;e.setColumnSizingInfo(o?se():(t=e.initialState.columnSizingInfo)!=null?t:se())},e.getTotalSize=()=>{var o,t;return(o=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?o:0},e.getLeftTotalSize=()=>{var o,t;return(o=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?o:0},e.getCenterTotalSize=()=>{var o,t;return(o=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?o:0},e.getRightTotalSize=()=>{var o,t;return(o=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?o:0}}};let J=null;function Gt(){if(typeof J=="boolean")return J;let e=!1;try{const o={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,o),window.removeEventListener("test",t)}catch{e=!1}return J=e,J}function ue(e){return e.type==="touchstart"}const Ot={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:V("columnVisibility",e)}),createColumn:(e,o)=>{e.toggleVisibility=t=>{e.getCanHide()&&o.setColumnVisibility(n=>({...n,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,n;const r=e.columns;return(t=r.length?r.some(l=>l.getIsVisible()):(n=o.getState().columnVisibility)==null?void 0:n[e.id])!=null?t:!0},e.getCanHide=()=>{var t,n;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((n=o.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,o)=>{e._getAllVisibleCells=w(()=>[e.getAllCells(),o.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),R(o.options,"debugRows")),e.getVisibleCells=w(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,n,r)=>[...t,...n,...r],R(o.options,"debugRows"))},createTable:e=>{const o=(t,n)=>w(()=>[n(),n().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),R(e.options,"debugColumns"));e.getVisibleFlatColumns=o("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=o("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=o("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=o("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=o("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,l)=>({...r,[l.id]:t||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function W(e,o){return o?o==="center"?e.getCenterVisibleLeafColumns():o==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const jt={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Nt={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:V("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:o=>{var t;const n=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[o.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,o)=>{e.getCanGlobalFilter=()=>{var t,n,r,l;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=o.options.enableGlobalFilter)!=null?n:!0)&&((r=o.options.enableFilters)!=null?r:!0)&&((l=o.options.getColumnCanGlobalFilter==null?void 0:o.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>H.includesString,e.getGlobalFilterFn=()=>{var o,t;const{globalFilterFn:n}=e.options;return te(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(o=(t=e.options.filterFns)==null?void 0:t[n])!=null?o:H[n]},e.setGlobalFilter=o=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(o)},e.resetGlobalFilter=o=>{e.setGlobalFilter(o?void 0:e.initialState.globalFilter)}}},Bt={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:V("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let o=!1,t=!1;e._autoResetExpanded=()=>{var n,r;if(!o){e._queue(()=>{o=!0});return}if((n=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var r,l;e.setExpanded(n?{}:(r=(l=e.initialState)==null?void 0:l.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(l=>{const i=l.split(".");n=Math.max(n,i.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,o)=>{e.toggleExpanded=t=>{o.setExpanded(n=>{var r;const l=n===!0?!0:!!(n!=null&&n[e.id]);let i={};if(n===!0?Object.keys(o.getRowModel().rowsById).forEach(s=>{i[s]=!0}):i=n,t=(r=t)!=null?r:!l,!l&&t)return{...i,[e.id]:!0};if(l&&!t){const{[e.id]:s,...u}=i;return u}return n})},e.getIsExpanded=()=>{var t;const n=o.getState().expanded;return!!((t=o.options.getIsRowExpanded==null?void 0:o.options.getIsRowExpanded(e))!=null?t:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var t,n,r;return(t=o.options.getRowCanExpand==null?void 0:o.options.getRowCanExpand(e))!=null?t:((n=o.options.enableExpanding)!=null?n:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let t=!0,n=e;for(;t&&n.parentId;)n=o.getRow(n.parentId,!0),t=n.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},ge=0,fe=10,ae=()=>({pageIndex:ge,pageSize:fe}),qt={getInitialState:e=>({...e,pagination:{...ae(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:V("pagination",e)}),createTable:e=>{let o=!1,t=!1;e._autoResetPageIndex=()=>{var n,r;if(!o){e._queue(()=>{o=!0});return}if((n=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=n=>{const r=l=>k(n,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=n=>{var r;e.setPagination(n?ae():(r=e.initialState.pagination)!=null?r:ae())},e.setPageIndex=n=>{e.setPagination(r=>{let l=k(n,r.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...r,pageIndex:l}})},e.resetPageIndex=n=>{var r,l;e.setPageIndex(n?ge:(r=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?r:ge)},e.resetPageSize=n=>{var r,l;e.setPageSize(n?fe:(r=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?r:fe)},e.setPageSize=n=>{e.setPagination(r=>{const l=Math.max(1,k(n,r.pageSize)),i=r.pageSize*r.pageIndex,s=Math.floor(i/l);return{...r,pageIndex:s,pageSize:l}})},e.setPageCount=n=>e.setPagination(r=>{var l;let i=k(n,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...r,pageCount:i}}),e.getPageOptions=w(()=>[e.getPageCount()],n=>{let r=[];return n&&n>0&&(r=[...new Array(n)].fill(null).map((l,i)=>i)),r},R(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:n<r-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},ce=()=>({top:[],bottom:[]}),Ut={getInitialState:e=>({rowPinning:ce(),...e}),getDefaultOptions:e=>({onRowPinningChange:V("rowPinning",e)}),createRow:(e,o)=>{e.pin=(t,n,r)=>{const l=n?e.getLeafRows().map(u=>{let{id:c}=u;return c}):[],i=r?e.getParentRows().map(u=>{let{id:c}=u;return c}):[],s=new Set([...i,e.id,...l]);o.setRowPinning(u=>{var c,g;if(t==="bottom"){var p,d;return{top:((p=u==null?void 0:u.top)!=null?p:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((d=u==null?void 0:u.bottom)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(t==="top"){var a,f;return{top:[...((a=u==null?void 0:u.top)!=null?a:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((f=u==null?void 0:u.bottom)!=null?f:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((c=u==null?void 0:u.top)!=null?c:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((g=u==null?void 0:u.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:r}=o.options;return typeof n=="function"?n(e):(t=n??r)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:n,bottom:r}=o.getState().rowPinning,l=t.some(s=>n==null?void 0:n.includes(s)),i=t.some(s=>r==null?void 0:r.includes(s));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var t,n;const r=e.getIsPinned();if(!r)return-1;const l=(t=r==="top"?o.getTopRows():o.getBottomRows())==null?void 0:t.map(i=>{let{id:s}=i;return s});return(n=l==null?void 0:l.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=o=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(o),e.resetRowPinning=o=>{var t,n;return e.setRowPinning(o?ce():(t=(n=e.initialState)==null?void 0:n.rowPinning)!=null?t:ce())},e.getIsSomeRowsPinned=o=>{var t;const n=e.getState().rowPinning;if(!o){var r,l;return!!((r=n.top)!=null&&r.length||(l=n.bottom)!=null&&l.length)}return!!((t=n[o])!=null&&t.length)},e._getPinnedRows=(o,t,n)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(t??[]).map(i=>{const s=e.getRow(i,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(i=>o.find(s=>s.id===i))).filter(Boolean).map(i=>({...i,position:n}))},e.getTopRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(o,t)=>e._getPinnedRows(o,t,"top"),R(e.options,"debugRows")),e.getBottomRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(o,t)=>e._getPinnedRows(o,t,"bottom"),R(e.options,"debugRows")),e.getCenterRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(o,t,n)=>{const r=new Set([...t??[],...n??[]]);return o.filter(l=>!r.has(l.id))},R(e.options,"debugRows"))}},Xt={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:V("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=o=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(o),e.resetRowSelection=o=>{var t;return e.setRowSelection(o?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=o=>{e.setRowSelection(t=>{o=typeof o<"u"?o:!e.getIsAllRowsSelected();const n={...t},r=e.getPreGroupedRowModel().flatRows;return o?r.forEach(l=>{l.getCanSelect()&&(n[l.id]=!0)}):r.forEach(l=>{delete n[l.id]}),n})},e.toggleAllPageRowsSelected=o=>e.setRowSelection(t=>{const n=typeof o<"u"?o:!e.getIsAllPageRowsSelected(),r={...t};return e.getRowModel().rows.forEach(l=>{pe(r,l.id,n,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=w(()=>[e.getState().rowSelection,e.getCoreRowModel()],(o,t)=>Object.keys(o).length?de(e,t):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable")),e.getFilteredSelectedRowModel=w(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(o,t)=>Object.keys(o).length?de(e,t):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable")),e.getGroupedSelectedRowModel=w(()=>[e.getState().rowSelection,e.getSortedRowModel()],(o,t)=>Object.keys(o).length?de(e,t):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const o=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let n=!!(o.length&&Object.keys(t).length);return n&&o.some(r=>r.getCanSelect()&&!t[r.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:t}=e.getState();let n=!!o.length;return n&&o.some(r=>!t[r.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var o;const t=Object.keys((o=e.getState().rowSelection)!=null?o:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:o.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>o=>{e.toggleAllRowsSelected(o.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>o=>{e.toggleAllPageRowsSelected(o.target.checked)}},createRow:(e,o)=>{e.toggleSelected=(t,n)=>{const r=e.getIsSelected();o.setRowSelection(l=>{var i;if(t=typeof t<"u"?t:!r,e.getCanSelect()&&r===t)return l;const s={...l};return pe(s,e.id,t,(i=n==null?void 0:n.selectChildren)!=null?i:!0,o),s})},e.getIsSelected=()=>{const{rowSelection:t}=o.getState();return we(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=o.getState();return me(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=o.getState();return me(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof o.options.enableRowSelection=="function"?o.options.enableRowSelection(e):(t=o.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof o.options.enableSubRowSelection=="function"?o.options.enableSubRowSelection(e):(t=o.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof o.options.enableMultiRowSelection=="function"?o.options.enableMultiRowSelection(e):(t=o.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected((r=n.target)==null?void 0:r.checked)}}}},pe=(e,o,t,n,r)=>{var l;const i=r.getRow(o,!0);t?(i.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),i.getCanSelect()&&(e[o]=!0)):delete e[o],n&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(s=>pe(e,s.id,t,n,r))};function de(e,o){const t=e.getState().rowSelection,n=[],r={},l=function(i,s){return i.map(u=>{var c;const g=we(u,t);if(g&&(n.push(u),r[u.id]=u),(c=u.subRows)!=null&&c.length&&(u={...u,subRows:l(u.subRows)}),g)return u}).filter(Boolean)};return{rows:l(o.rows),flatRows:n,rowsById:r}}function we(e,o){var t;return(t=o[e.id])!=null?t:!1}function me(e,o,t){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let r=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!r)&&(i.getCanSelect()&&(we(i,o)?l=!0:r=!1),i.subRows&&i.subRows.length)){const s=me(i,o);s==="all"?l=!0:(s==="some"&&(l=!0),r=!1)}}),r?"all":l?"some":!1}const he=/([0-9]+)/gm,Wt=(e,o,t)=>Te(O(e.getValue(t)).toLowerCase(),O(o.getValue(t)).toLowerCase()),Yt=(e,o,t)=>Te(O(e.getValue(t)),O(o.getValue(t))),Kt=(e,o,t)=>Re(O(e.getValue(t)).toLowerCase(),O(o.getValue(t)).toLowerCase()),Qt=(e,o,t)=>Re(O(e.getValue(t)),O(o.getValue(t))),Jt=(e,o,t)=>{const n=e.getValue(t),r=o.getValue(t);return n>r?1:n<r?-1:0},Zt=(e,o,t)=>Re(e.getValue(t),o.getValue(t));function Re(e,o){return e===o?0:e>o?1:-1}function O(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Te(e,o){const t=e.split(he).filter(Boolean),n=o.split(he).filter(Boolean);for(;t.length&&n.length;){const r=t.shift(),l=n.shift(),i=parseInt(r,10),s=parseInt(l,10),u=[i,s].sort();if(isNaN(u[0])){if(r>l)return 1;if(l>r)return-1;continue}if(isNaN(u[1]))return isNaN(i)?-1:1;if(i>s)return 1;if(s>i)return-1}return t.length-n.length}const X={alphanumeric:Wt,alphanumericCaseSensitive:Yt,text:Kt,textCaseSensitive:Qt,datetime:Jt,basic:Zt},en={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:V("sorting",e),isMultiSortEvent:o=>o.shiftKey}),createColumn:(e,o)=>{e.getAutoSortingFn=()=>{const t=o.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const r of t){const l=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return X.datetime;if(typeof l=="string"&&(n=!0,l.split(he).length>1))return X.alphanumeric}return n?X.text:X.basic},e.getAutoSortDir=()=>{const t=o.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,n;if(!e)throw new Error;return te(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(n=o.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?t:X[e.columnDef.sortingFn]},e.toggleSorting=(t,n)=>{const r=e.getNextSortingOrder(),l=typeof t<"u"&&t!==null;o.setSorting(i=>{const s=i==null?void 0:i.find(a=>a.id===e.id),u=i==null?void 0:i.findIndex(a=>a.id===e.id);let c=[],g,p=l?t:r==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&n?s?g="toggle":g="add":i!=null&&i.length&&u!==i.length-1?g="replace":s?g="toggle":g="replace",g==="toggle"&&(l||r||(g="remove")),g==="add"){var d;c=[...i,{id:e.id,desc:p}],c.splice(0,c.length-((d=o.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else g==="toggle"?c=i.map(a=>a.id===e.id?{...a,desc:p}:a):g==="remove"?c=i.filter(a=>a.id!==e.id):c=[{id:e.id,desc:p}];return c})},e.getFirstSortDir=()=>{var t,n;return((t=(n=e.columnDef.sortDescFirst)!=null?n:o.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var n,r;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((n=o.options.enableSortingRemoval)==null||n)&&(!(t&&(r=o.options.enableMultiRemove)!=null)||r)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var t,n;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((n=o.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,n;return(t=(n=e.columnDef.enableMultiSort)!=null?n:o.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const n=(t=o.getState().sorting)==null?void 0:t.find(r=>r.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,n;return(t=(n=o.getState().sorting)==null?void 0:n.findIndex(r=>r.id===e.id))!=null?t:-1},e.clearSorting=()=>{o.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return n=>{t&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?o.options.isMultiSortEvent==null?void 0:o.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=o=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(o),e.resetSorting=o=>{var t,n;e.setSorting(o?[]:(t=(n=e.initialState)==null?void 0:n.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},tn=[_t,Ot,Ht,zt,xt,Ft,jt,Nt,en,Dt,Bt,qt,Ut,Xt,kt];function nn(e){var o,t;const n=[...tn,...(o=e._features)!=null?o:[]];let r={_features:n};const l=r._features.reduce((d,a)=>Object.assign(d,a.getDefaultOptions==null?void 0:a.getDefaultOptions(r)),{}),i=d=>r.options.mergeOptions?r.options.mergeOptions(l,d):{...l,...d};let u={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(d=>{var a;u=(a=d.getInitialState==null?void 0:d.getInitialState(u))!=null?a:u});const c=[];let g=!1;const p={_features:n,options:{...l,...e},initialState:u,_queue:d=>{c.push(d),g||(g=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();g=!1}).catch(a=>setTimeout(()=>{throw a})))},reset:()=>{r.setState(r.initialState)},setOptions:d=>{const a=k(d,r.options);r.options=i(a)},getState:()=>r.options.state,setState:d=>{r.options.onStateChange==null||r.options.onStateChange(d)},_getRowId:(d,a,f)=>{var m;return(m=r.options.getRowId==null?void 0:r.options.getRowId(d,a,f))!=null?m:`${f?[f.id,a].join("."):a}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(d,a)=>{let f=(a?r.getPrePaginationRowModel():r.getRowModel()).rowsById[d];if(!f&&(f=r.getCoreRowModel().rowsById[d],!f))throw new Error;return f},_getDefaultColumnDef:w(()=>[r.options.defaultColumn],d=>{var a;return d=(a=d)!=null?a:{},{header:f=>{const m=f.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:f=>{var m,C;return(m=(C=f.renderValue())==null||C.toString==null?void 0:C.toString())!=null?m:null},...r._features.reduce((f,m)=>Object.assign(f,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...d}},R(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:w(()=>[r._getColumnDefs()],d=>{const a=function(f,m,C){return C===void 0&&(C=0),f.map(S=>{const _=Rt(r,S,C,m),x=S;return _.columns=x.columns?a(x.columns,_,C+1):[],_})};return a(d)},R(e,"debugColumns")),getAllFlatColumns:w(()=>[r.getAllColumns()],d=>d.flatMap(a=>a.getFlatColumns()),R(e,"debugColumns")),_getAllFlatColumnsById:w(()=>[r.getAllFlatColumns()],d=>d.reduce((a,f)=>(a[f.id]=f,a),{}),R(e,"debugColumns")),getAllLeafColumns:w(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(d,a)=>{let f=d.flatMap(m=>m.getLeafColumns());return a(f)},R(e,"debugColumns")),getColumn:d=>r._getAllFlatColumnsById()[d]};Object.assign(r,p);for(let d=0;d<r._features.length;d++){const a=r._features[d];a==null||a.createTable==null||a.createTable(r)}return r}function Tn(){return e=>w(()=>[e.options.data],o=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(r,l,i){l===void 0&&(l=0);const s=[];for(let c=0;c<r.length;c++){const g=ve(e,e._getRowId(r[c],c,i),r[c],c,l,void 0,i==null?void 0:i.id);if(t.flatRows.push(g),t.rowsById[g.id]=g,s.push(g),e.options.getSubRows){var u;g.originalSubRows=e.options.getSubRows(r[c],c),(u=g.originalSubRows)!=null&&u.length&&(g.subRows=n(g.originalSubRows,l+1,g))}}return s};return t.rows=n(o),t},R(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function on(e,o,t){return t.options.filterFromLeafRows?rn(e,o,t):ln(e,o,t)}function rn(e,o,t){var n;const r=[],l={},i=(n=t.options.maxLeafRowFilterDepth)!=null?n:100,s=function(u,c){c===void 0&&(c=0);const g=[];for(let d=0;d<u.length;d++){var p;let a=u[d];const f=ve(t,a.id,a.original,a.index,a.depth,void 0,a.parentId);if(f.columnFilters=a.columnFilters,(p=a.subRows)!=null&&p.length&&c<i){if(f.subRows=s(a.subRows,c+1),a=f,o(a)&&!f.subRows.length){g.push(a),l[a.id]=a,r.push(a);continue}if(o(a)||f.subRows.length){g.push(a),l[a.id]=a,r.push(a);continue}}else a=f,o(a)&&(g.push(a),l[a.id]=a,r.push(a))}return g};return{rows:s(e),flatRows:r,rowsById:l}}function ln(e,o,t){var n;const r=[],l={},i=(n=t.options.maxLeafRowFilterDepth)!=null?n:100,s=function(u,c){c===void 0&&(c=0);const g=[];for(let d=0;d<u.length;d++){let a=u[d];if(o(a)){var p;if((p=a.subRows)!=null&&p.length&&c<i){const m=ve(t,a.id,a.original,a.index,a.depth,void 0,a.parentId);m.subRows=s(a.subRows,c+1),a=m}g.push(a),r.push(a),l[a.id]=a}}return g};return{rows:s(e),flatRows:r,rowsById:l}}function kn(){return e=>w(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(o,t,n)=>{if(!o.rows.length||!(t!=null&&t.length)&&!n){for(let d=0;d<o.flatRows.length;d++)o.flatRows[d].columnFilters={},o.flatRows[d].columnFiltersMeta={};return o}const r=[],l=[];(t??[]).forEach(d=>{var a;const f=e.getColumn(d.id);if(!f)return;const m=f.getFilterFn();m&&r.push({id:d.id,filterFn:m,resolvedValue:(a=m.resolveFilterValue==null?void 0:m.resolveFilterValue(d.value))!=null?a:d.value})});const i=(t??[]).map(d=>d.id),s=e.getGlobalFilterFn(),u=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&s&&u.length&&(i.push("__global__"),u.forEach(d=>{var a;l.push({id:d.id,filterFn:s,resolvedValue:(a=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?a:n})}));let c,g;for(let d=0;d<o.flatRows.length;d++){const a=o.flatRows[d];if(a.columnFilters={},r.length)for(let f=0;f<r.length;f++){c=r[f];const m=c.id;a.columnFilters[m]=c.filterFn(a,m,c.resolvedValue,C=>{a.columnFiltersMeta[m]=C})}if(l.length){for(let f=0;f<l.length;f++){g=l[f];const m=g.id;if(g.filterFn(a,m,g.resolvedValue,C=>{a.columnFiltersMeta[m]=C})){a.columnFilters.__global__=!0;break}}a.columnFilters.__global__!==!0&&(a.columnFilters.__global__=!1)}}const p=d=>{for(let a=0;a<i.length;a++)if(d.columnFilters[i[a]]===!1)return!1;return!0};return on(o.rows,p,e)},R(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function Gn(){return e=>w(()=>[e.getState().sorting,e.getPreSortedRowModel()],(o,t)=>{if(!t.rows.length||!(o!=null&&o.length))return t;const n=e.getState().sorting,r=[],l=n.filter(u=>{var c;return(c=e.getColumn(u.id))==null?void 0:c.getCanSort()}),i={};l.forEach(u=>{const c=e.getColumn(u.id);c&&(i[u.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const s=u=>{const c=u.map(g=>({...g}));return c.sort((g,p)=>{for(let a=0;a<l.length;a+=1){var d;const f=l[a],m=i[f.id],C=m.sortUndefined,S=(d=f==null?void 0:f.desc)!=null?d:!1;let _=0;if(C){const x=g.getValue(f.id),y=p.getValue(f.id),F=x===void 0,M=y===void 0;if(F||M){if(C==="first")return F?-1:1;if(C==="last")return F?1:-1;_=F&&M?0:F?C:-C}}if(_===0&&(_=m.sortingFn(g,p,f.id)),_!==0)return S&&(_*=-1),m.invertSorting&&(_*=-1),_}return g.index-p.index}),c.forEach(g=>{var p;r.push(g),(p=g.subRows)!=null&&p.length&&(g.subRows=s(g.subRows))}),c};return{rows:s(t.rows),flatRows:r,rowsById:t.rowsById}},R(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
   * react-table
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function On(e,o){return e?sn(e)?h.createElement(e,o):e:null}function sn(e){return un(e)||typeof e=="function"||an(e)}function un(e){return typeof e=="function"&&(()=>{const o=Object.getPrototypeOf(e);return o.prototype&&o.prototype.isReactComponent})()}function an(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function jn(e){const o={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=h.useState(()=>({current:nn(o)})),[n,r]=h.useState(()=>t.current.initialState);return t.current.setOptions(l=>({...l,...e,state:{...n,...e.state},onStateChange:i=>{r(i),e.onStateChange==null||e.onStateChange(i)}})),t.current}function Nn({className:e,...o}){return v.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:v.jsx("table",{"data-slot":"table",className:T("w-full caption-bottom text-sm",e),...o})})}function Bn({className:e,...o}){return v.jsx("thead",{"data-slot":"table-header",className:T("[&_tr]:border-b",e),...o})}function qn({className:e,...o}){return v.jsx("tbody",{"data-slot":"table-body",className:T("[&_tr:last-child]:border-0",e),...o})}function Un({className:e,...o}){return v.jsx("tr",{"data-slot":"table-row",className:T("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...o})}function Xn({className:e,...o}){return v.jsx("th",{"data-slot":"table-head",className:T("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...o})}function Wn({className:e,...o}){return v.jsx("td",{"data-slot":"table-cell",className:T("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...o})}var ne="Checkbox",[cn,Yn]=Ie(ne),[dn,_e]=cn(ne);function gn(e){const{__scopeCheckbox:o,checked:t,children:n,defaultChecked:r,disabled:l,form:i,name:s,onCheckedChange:u,required:c,value:g="on",internal_do_not_use_render:p}=e,[d,a]=at({prop:t,defaultProp:r??!1,onChange:u,caller:ne}),[f,m]=h.useState(null),[C,S]=h.useState(null),_=h.useRef(!1),x=f?!!i||!!f.closest("form"):!0,y={checked:d,disabled:l,setChecked:a,control:f,setControl:m,name:s,form:i,value:g,hasConsumerStoppedPropagationRef:_,required:c,defaultChecked:G(r)?!1:r,isFormControl:x,bubbleInput:C,setBubbleInput:S};return v.jsx(dn,{scope:o,...y,children:fn(p)?p(y):n})}var ke="CheckboxTrigger",Ge=h.forwardRef(({__scopeCheckbox:e,onKeyDown:o,onClick:t,...n},r)=>{const{control:l,value:i,disabled:s,checked:u,required:c,setControl:g,setChecked:p,hasConsumerStoppedPropagationRef:d,isFormControl:a,bubbleInput:f}=_e(ke,e),m=N(r,g),C=h.useRef(u);return h.useEffect(()=>{const S=l==null?void 0:l.form;if(S){const _=()=>p(C.current);return S.addEventListener("reset",_),()=>S.removeEventListener("reset",_)}},[l,p]),v.jsx(j.button,{type:"button",role:"checkbox","aria-checked":G(u)?"mixed":u,"aria-required":c,"data-state":Ue(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:m,onKeyDown:z(o,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:z(t,S=>{p(_=>G(_)?!0:!_),f&&a&&(d.current=S.isPropagationStopped(),d.current||S.stopPropagation())})})});Ge.displayName=ke;var Oe=h.forwardRef((e,o)=>{const{__scopeCheckbox:t,name:n,checked:r,defaultChecked:l,required:i,disabled:s,value:u,onCheckedChange:c,form:g,...p}=e;return v.jsx(gn,{__scopeCheckbox:t,checked:r,defaultChecked:l,disabled:s,required:i,onCheckedChange:c,name:n,form:g,value:u,internal_do_not_use_render:({isFormControl:d})=>v.jsxs(v.Fragment,{children:[v.jsx(Ge,{...p,ref:o,__scopeCheckbox:t}),d&&v.jsx(qe,{__scopeCheckbox:t})]})})});Oe.displayName=ne;var je="CheckboxIndicator",Ne=h.forwardRef((e,o)=>{const{__scopeCheckbox:t,forceMount:n,...r}=e,l=_e(je,t);return v.jsx(Y,{present:n||G(l.checked)||l.checked===!0,children:v.jsx(j.span,{"data-state":Ue(l.checked),"data-disabled":l.disabled?"":void 0,...r,ref:o,style:{pointerEvents:"none",...e.style}})})});Ne.displayName=je;var Be="CheckboxBubbleInput",qe=h.forwardRef(({__scopeCheckbox:e,...o},t)=>{const{control:n,hasConsumerStoppedPropagationRef:r,checked:l,defaultChecked:i,required:s,disabled:u,name:c,value:g,form:p,bubbleInput:d,setBubbleInput:a}=_e(Be,e),f=N(t,a),m=gt(l),C=ct(n);h.useEffect(()=>{const _=d;if(!_)return;const x=window.HTMLInputElement.prototype,F=Object.getOwnPropertyDescriptor(x,"checked").set,M=!r.current;if(m!==l&&F){const D=new Event("click",{bubbles:M});_.indeterminate=G(l),F.call(_,G(l)?!1:l),_.dispatchEvent(D)}},[d,m,l,r]);const S=h.useRef(G(l)?!1:l);return v.jsx(j.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??S.current,required:s,disabled:u,name:c,value:g,form:p,...o,tabIndex:-1,ref:f,style:{...o.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});qe.displayName=Be;function fn(e){return typeof e=="function"}function G(e){return e==="indeterminate"}function Ue(e){return G(e)?"indeterminate":e?"checked":"unchecked"}function Kn({className:e,...o}){return v.jsx(Oe,{"data-slot":"checkbox",className:T("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:v.jsx(Ne,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:v.jsx(ft,{className:"size-3.5"})})})}function pn(e,[o,t]){return Math.min(t,Math.max(o,e))}function mn(e,o){return h.useReducer((t,n)=>o[t][n]??t,e)}var xe="ScrollArea",[Xe,Qn]=Ie(xe),[hn,E]=Xe(xe),We=h.forwardRef((e,o)=>{const{__scopeScrollArea:t,type:n="hover",dir:r,scrollHideDelay:l=600,...i}=e,[s,u]=h.useState(null),[c,g]=h.useState(null),[p,d]=h.useState(null),[a,f]=h.useState(null),[m,C]=h.useState(null),[S,_]=h.useState(0),[x,y]=h.useState(0),[F,M]=h.useState(!1),[D,B]=h.useState(!1),P=N(o,L=>u(L)),I=pt(r);return v.jsx(hn,{scope:t,type:n,dir:I,scrollHideDelay:l,scrollArea:s,viewport:c,onViewportChange:g,content:p,onContentChange:d,scrollbarX:a,onScrollbarXChange:f,scrollbarXEnabled:F,onScrollbarXEnabledChange:M,scrollbarY:m,onScrollbarYChange:C,scrollbarYEnabled:D,onScrollbarYEnabledChange:B,onCornerWidthChange:_,onCornerHeightChange:y,children:v.jsx(j.div,{dir:I,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});We.displayName=xe;var Ye="ScrollAreaViewport",Ke=h.forwardRef((e,o)=>{const{__scopeScrollArea:t,children:n,nonce:r,...l}=e,i=E(Ye,t),s=h.useRef(null),u=N(o,s,i.onViewportChange);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(j.div,{"data-radix-scroll-area-viewport":"",...l,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:v.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});Ke.displayName=Ye;var A="ScrollAreaScrollbar",Qe=h.forwardRef((e,o)=>{const{forceMount:t,...n}=e,r=E(A,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=r,s=e.orientation==="horizontal";return h.useEffect(()=>(s?l(!0):i(!0),()=>{s?l(!1):i(!1)}),[s,l,i]),r.type==="hover"?v.jsx(Sn,{...n,ref:o,forceMount:t}):r.type==="scroll"?v.jsx(vn,{...n,ref:o,forceMount:t}):r.type==="auto"?v.jsx(Je,{...n,ref:o,forceMount:t}):r.type==="always"?v.jsx(Fe,{...n,ref:o}):null});Qe.displayName=A;var Sn=h.forwardRef((e,o)=>{const{forceMount:t,...n}=e,r=E(A,e.__scopeScrollArea),[l,i]=h.useState(!1);return h.useEffect(()=>{const s=r.scrollArea;let u=0;if(s){const c=()=>{window.clearTimeout(u),i(!0)},g=()=>{u=window.setTimeout(()=>i(!1),r.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",g),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",g)}}},[r.scrollArea,r.scrollHideDelay]),v.jsx(Y,{present:t||l,children:v.jsx(Je,{"data-state":l?"visible":"hidden",...n,ref:o})})}),vn=h.forwardRef((e,o)=>{const{forceMount:t,...n}=e,r=E(A,e.__scopeScrollArea),l=e.orientation==="horizontal",i=re(()=>u("SCROLL_END"),100),[s,u]=mn("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>u("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,r.scrollHideDelay,u]),h.useEffect(()=>{const c=r.viewport,g=l?"scrollLeft":"scrollTop";if(c){let p=c[g];const d=()=>{const a=c[g];p!==a&&(u("SCROLL"),i()),p=a};return c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[r.viewport,l,u,i]),v.jsx(Y,{present:t||s!=="hidden",children:v.jsx(Fe,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:o,onPointerEnter:z(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:z(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),Je=h.forwardRef((e,o)=>{const t=E(A,e.__scopeScrollArea),{forceMount:n,...r}=e,[l,i]=h.useState(!1),s=e.orientation==="horizontal",u=re(()=>{if(t.viewport){const c=t.viewport.offsetWidth<t.viewport.scrollWidth,g=t.viewport.offsetHeight<t.viewport.scrollHeight;i(s?c:g)}},10);return U(t.viewport,u),U(t.content,u),v.jsx(Y,{present:n||l,children:v.jsx(Fe,{"data-state":l?"visible":"hidden",...r,ref:o})})}),Fe=h.forwardRef((e,o)=>{const{orientation:t="vertical",...n}=e,r=E(A,e.__scopeScrollArea),l=h.useRef(null),i=h.useRef(0),[s,u]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=ot(s.viewport,s.content),g={...n,sizes:s,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:d=>l.current=d,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:d=>i.current=d};function p(d,a){return Fn(d,i.current,s,a)}return t==="horizontal"?v.jsx(Cn,{...g,ref:o,onThumbPositionChange:()=>{if(r.viewport&&l.current){const d=r.viewport.scrollLeft,a=Me(d,s,r.dir);l.current.style.transform=`translate3d(${a}px, 0, 0)`}},onWheelScroll:d=>{r.viewport&&(r.viewport.scrollLeft=d)},onDragScroll:d=>{r.viewport&&(r.viewport.scrollLeft=p(d,r.dir))}}):t==="vertical"?v.jsx(wn,{...g,ref:o,onThumbPositionChange:()=>{if(r.viewport&&l.current){const d=r.viewport.scrollTop,a=Me(d,s);l.current.style.transform=`translate3d(0, ${a}px, 0)`}},onWheelScroll:d=>{r.viewport&&(r.viewport.scrollTop=d)},onDragScroll:d=>{r.viewport&&(r.viewport.scrollTop=p(d))}}):null}),Cn=h.forwardRef((e,o)=>{const{sizes:t,onSizesChange:n,...r}=e,l=E(A,e.__scopeScrollArea),[i,s]=h.useState(),u=h.useRef(null),c=N(o,u,l.onScrollbarXChange);return h.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),v.jsx(et,{"data-orientation":"horizontal",...r,ref:c,sizes:t,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":oe(t)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,p)=>{if(l.viewport){const d=l.viewport.scrollLeft+g.deltaX;e.onWheelScroll(d),lt(d,p)&&g.preventDefault()}},onResize:()=>{u.current&&l.viewport&&i&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:ee(i.paddingLeft),paddingEnd:ee(i.paddingRight)}})}})}),wn=h.forwardRef((e,o)=>{const{sizes:t,onSizesChange:n,...r}=e,l=E(A,e.__scopeScrollArea),[i,s]=h.useState(),u=h.useRef(null),c=N(o,u,l.onScrollbarYChange);return h.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),v.jsx(et,{"data-orientation":"vertical",...r,ref:c,sizes:t,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":oe(t)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,p)=>{if(l.viewport){const d=l.viewport.scrollTop+g.deltaY;e.onWheelScroll(d),lt(d,p)&&g.preventDefault()}},onResize:()=>{u.current&&l.viewport&&i&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:ee(i.paddingTop),paddingEnd:ee(i.paddingBottom)}})}})}),[Rn,Ze]=Xe(A),et=h.forwardRef((e,o)=>{const{__scopeScrollArea:t,sizes:n,hasThumb:r,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:g,onResize:p,...d}=e,a=E(A,t),[f,m]=h.useState(null),C=N(o,P=>m(P)),S=h.useRef(null),_=h.useRef(""),x=a.viewport,y=n.content-n.viewport,F=q(g),M=q(u),D=re(p,10);function B(P){if(S.current){const I=P.clientX-S.current.left,L=P.clientY-S.current.top;c({x:I,y:L})}}return h.useEffect(()=>{const P=I=>{const L=I.target;(f==null?void 0:f.contains(L))&&F(I,y)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[x,f,y,F]),h.useEffect(M,[n,M]),U(f,D),U(a.content,D),v.jsx(Rn,{scope:t,scrollbar:f,hasThumb:r,onThumbChange:q(l),onThumbPointerUp:q(i),onThumbPositionChange:M,onThumbPointerDown:q(s),children:v.jsx(j.div,{...d,ref:C,style:{position:"absolute",...d.style},onPointerDown:z(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),S.current=f.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",a.viewport&&(a.viewport.style.scrollBehavior="auto"),B(P))}),onPointerMove:z(e.onPointerMove,B),onPointerUp:z(e.onPointerUp,P=>{const I=P.target;I.hasPointerCapture(P.pointerId)&&I.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=_.current,a.viewport&&(a.viewport.style.scrollBehavior=""),S.current=null})})})}),Z="ScrollAreaThumb",tt=h.forwardRef((e,o)=>{const{forceMount:t,...n}=e,r=Ze(Z,e.__scopeScrollArea);return v.jsx(Y,{present:t||r.hasThumb,children:v.jsx(_n,{ref:o,...n})})}),_n=h.forwardRef((e,o)=>{const{__scopeScrollArea:t,style:n,...r}=e,l=E(Z,t),i=Ze(Z,t),{onThumbPositionChange:s}=i,u=N(o,p=>i.onThumbChange(p)),c=h.useRef(void 0),g=re(()=>{c.current&&(c.current(),c.current=void 0)},100);return h.useEffect(()=>{const p=l.viewport;if(p){const d=()=>{if(g(),!c.current){const a=Pn(p,s);c.current=a,s()}};return s(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[l.viewport,g,s]),v.jsx(j.div,{"data-state":i.hasThumb?"visible":"hidden",...r,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:z(e.onPointerDownCapture,p=>{const a=p.target.getBoundingClientRect(),f=p.clientX-a.left,m=p.clientY-a.top;i.onThumbPointerDown({x:f,y:m})}),onPointerUp:z(e.onPointerUp,i.onThumbPointerUp)})});tt.displayName=Z;var Pe="ScrollAreaCorner",nt=h.forwardRef((e,o)=>{const t=E(Pe,e.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&n?v.jsx(xn,{...e,ref:o}):null});nt.displayName=Pe;var xn=h.forwardRef((e,o)=>{const{__scopeScrollArea:t,...n}=e,r=E(Pe,t),[l,i]=h.useState(0),[s,u]=h.useState(0),c=!!(l&&s);return U(r.scrollbarX,()=>{var p;const g=((p=r.scrollbarX)==null?void 0:p.offsetHeight)||0;r.onCornerHeightChange(g),u(g)}),U(r.scrollbarY,()=>{var p;const g=((p=r.scrollbarY)==null?void 0:p.offsetWidth)||0;r.onCornerWidthChange(g),i(g)}),c?v.jsx(j.div,{...n,ref:o,style:{width:l,height:s,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ee(e){return e?parseInt(e,10):0}function ot(e,o){const t=e/o;return isNaN(t)?0:t}function oe(e){const o=ot(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-t)*o;return Math.max(n,18)}function Fn(e,o,t,n="ltr"){const r=oe(t),l=r/2,i=o||l,s=r-i,u=t.scrollbar.paddingStart+i,c=t.scrollbar.size-t.scrollbar.paddingEnd-s,g=t.content-t.viewport,p=n==="ltr"?[0,g]:[g*-1,0];return rt([u,c],p)(e)}function Me(e,o,t="ltr"){const n=oe(o),r=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,l=o.scrollbar.size-r,i=o.content-o.viewport,s=l-n,u=t==="ltr"?[0,i]:[i*-1,0],c=pn(e,u);return rt([0,i],[0,s])(c)}function rt(e,o){return t=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const n=(o[1]-o[0])/(e[1]-e[0]);return o[0]+n*(t-e[0])}}function lt(e,o){return e>0&&e<o}var Pn=(e,o=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},n=0;return function r(){const l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,s=t.top!==l.top;(i||s)&&o(),t=l,n=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(n)};function re(e,o){const t=q(e),n=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(t,o)},[t,o])}function U(e,o){const t=q(o);dt(()=>{let n=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(t)});return r.observe(e),()=>{window.cancelAnimationFrame(n),r.unobserve(e)}}},[e,t])}var yn=We,$n=Ke,Mn=nt;function Jn({className:e,children:o,...t}){return v.jsxs(yn,{"data-slot":"scroll-area",className:T("relative",e),...t,children:[v.jsx($n,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:o}),v.jsx(In,{}),v.jsx(Mn,{})]})}function In({className:e,orientation:o="vertical",...t}){return v.jsx(Qe,{"data-slot":"scroll-area-scrollbar",orientation:o,className:T("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...t,children:v.jsx(tt,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}export{Dn as C,Ln as D,Hn as F,Jn as S,Nn as T,Bn as a,Un as b,Xn as c,qn as d,Wn as e,On as f,Kn as g,kn as h,Gn as i,Tn as j,zn as k,pn as l,jn as u};
