PageSourceSearch

https://eurogoos.eu/_next/static/immutable/chunks/3-sfqibvn8rw3.js

js eurogoos.eu collected 2026-10-03 23:52:38 UTC 100,540 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40481,e=>{"use strict";var t=e.i(40438),l=e.i(370993),n=e.i(116414),o=e.i(30755),r=e.i(815062),i=e.i(513408);e.s(["default",0,()=>{let{setHeaderTheme:e}=(0,l.useHeaderTheme)(),a=(0,o.usePathname)(),{user:u}=(0,r.useAuth)();(0,n.useEffect)(()=>{e("light")},[e]);let s=a?.split("/")[1];return(0,t.jsx)(t.Fragment,{children:"members-area"===s&&null===u&&(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white",children:(0,t.jsx)(i.default,{})})})}])},227453,e=>{"use strict";var t=e.i(40438),l=e.i(116414);function n(e,t){return"function"==typeof e?e(t):e}function o(e,t){return l=>{t.setState(t=>({...t,[e]:n(l,t[e])}))}}function r(e){return e instanceof Function}function i(e,t,l){let n,o=[];return r=>{let i,a;l.key&&l.debug&&(i=Date.now());let u=e(r);if(!(u.length!==o.length||u.some((e,t)=>o[t]!==e)))return n;if(o=u,l.key&&l.debug&&(a=Date.now()),n=t(...u),null==l||null==l.onChange||l.onChange(n),l.key&&l.debug&&null!=l&&l.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-a)*100)/100,n=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==l?void 0:l.key)}return n}}function a(e,t,l,n){return{debug:()=>{var l;return null!=(l=null==e?void 0:e.debugAll)?l:e[t]},key:!1,onChange:n}}let u="debugHeaders";function s(e,t,l){var n;let o={id:null!=(n=l.id)?n:t.id,column:t,index:l.index,isPlaceholder:!!l.isPlaceholder,placeholderId:l.placeholderId,depth:l.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(t),e.push(l)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function d(e,t,l,n){var o,r;let i=0,a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var l;null!=(l=e.columns)&&l.length&&a(e.columns,t+1)},0)};a(e);let u=[],d=(e,t)=>{let o={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach(e=>{let i,a=[...r].reverse()[0],u=e.column.depth===o.depth,d=!1;if(u&&e.column.parent?i=e.column.parent:(i=e.column,d=!0),a&&(null==a?void 0:a.column)===i)a.subHeaders.push(e);else{let o=s(l,i,{id:[n,t,i.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:d,placeholderId:d?`${r.filter(e=>e.column===i).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o}),u.push(o),t>0&&d(r,t-1)};d(t.map((e,t)=>s(l,e,{depth:i,index:t})),i-1),u.reverse();let g=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,l=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],g(e.subHeaders).forEach(e=>{let{colSpan:l,rowSpan:o}=e;t+=l,n.push(o)})):t=1,l+=Math.min(...n),e.colSpan=t,e.rowSpan=l,{colSpan:t,rowSpan:l}});return g(null!=(o=null==(r=u[0])?void 0:r.headers)?o:[]),u}let g=(e,t,l,n,o,r,u)=>{let s={id:t,index:n,original:l,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return s._valuesCache[t]=l.accessorFn(s.original,n),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return l.columnDef.getUniqueValues?s._uniqueValuesCache[t]=l.columnDef.getUniqueValues(s.original,n):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var l;return null!=(l=s.getValue(t))?l:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>{var e,t;let l,n;return e=s.subRows,t=e=>e.subRows,l=[],(n=e=>{e.forEach(e=>{l.push(e);let o=t(e);null!=o&&o.length&&n(o)})})(e),l},getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let l=t.getParentRow();if(!l)break;e.push(l),t=l}return e.reverse()},getAllCells:i(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var l;let n;return l=t.id,n={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(l),renderValue:()=>{var t;return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:i(()=>[e,t,s,n],(e,t,l,n)=>({table:e,column:t,row:l,cell:n,getValue:n.getValue,renderValue:n.renderValue}),a(e.options,"debugCells","cell.getContext"))}
4,e._features.forEach(l=>{null==l.createCell||l.createCell(n,t,s,e)},{}),n}),a(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:i(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),a(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let l=e._features[t];null==l||null==l.createRow||l.createRow(s,e)}return s},c=(e,t,l)=>{var n,o;let r=null==l||null==(n=l.toString())?void 0:n.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};c.autoRemove=e=>S(e);let m=(e,t,l)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(l))};m.autoRemove=e=>S(e);let p=(e,t,l)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==l?void 0:l.toLowerCase())};p.autoRemove=e=>S(e);let f=(e,t,l)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)};f.autoRemove=e=>S(e);let h=(e,t,l)=>!l.some(l=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(l))});h.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,l)=>l.some(l=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)});v.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,l)=>e.getValue(t)===l;b.autoRemove=e=>S(e);let w=(e,t,l)=>e.getValue(t)==l;w.autoRemove=e=>S(e);let C=(e,t,l)=>{let[n,o]=l,r=e.getValue(t);return r>=n&&r<=o};C.resolveFilterValue=e=>{let[t,l]=e,n="number"!=typeof t?parseFloat(t):t,o="number"!=typeof l?parseFloat(l):l,r=null===t||Number.isNaN(n)?-1/0:n,i=null===l||Number.isNaN(o)?1/0:o;if(r>i){let e=r;r=i,i=e}return[r,i]},C.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let x={includesString:c,includesStringSensitive:m,equalsString:p,arrIncludes:f,arrIncludesAll:h,arrIncludesSome:v,equals:b,weakEquals:w,inNumberRange:C};function S(e){return null==e||""===e}function R(e,t,l){return!!e&&!!e.autoRemove&&e.autoRemove(t,l)||void 0===t||"string"==typeof t&&!t}let y={sum:(e,t,l)=>l.reduce((t,l)=>{let n=l.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n>l||void 0===n&&l>=l)&&(n=l)}),n},max:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n<l||void 0===n&&l>=l)&&(n=l)}),n},extent:(e,t,l)=>{let n,o;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(void 0===n?l>=l&&(n=o=l):(n>l&&(n=l),o<l&&(o=l)))}),[n,o]},mean:(e,t)=>{let l=0,n=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++l,n+=o)}),l)return n/l},median:(e,t)=>{if(!t.length)return;let l=t.map(t=>t.getValue(e));if(!(Array.isArray(l)&&l.every(e=>"number"==typeof e)))return;if(1===l.length)return l[0];let n=Math.floor(l.length/2),o=l.sort((e,t)=>e-t);return l.length%2!=0?o[n]:(o[n-1]+o[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},F=()=>({left:[],right:[]}),M={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},P=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),E=null;function I(e){return"touchstart"===e.type}function N(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let j=()=>({pageIndex:0,pageSize:10}),V=()=>({top:[],bottom:[]}),_=(e,t,l,n,o)=>{var r;let i=o.getRow(t,!0);l?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>_(e,t.id,l,n,o))};function L(e,t){let l=e.getState().rowSelection,n=[],o={},r=function(e,t){return e.map(e=>{var t;let i=A(e,l);if(i&&(n.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e}).filter(Boolean)};return{rows:r(t.rows),flatRows:n,rowsById:o}}function A(e,t){var l;return null!=(l=t[e.id])&&l}function D(e,t,l){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let o=!0,r=!1;return e.subRows.forEach(e=>{if((!r||o)&&(e.getCanSelect()&&(A(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){let l=D(e,t);"all"===l?r=!0:("some"===l&&(r=!0),o=!1)}}),o?"all":!!r&&"some"}let O=/([0-9]+)/gm;function z(e,t){return e===t?0:e>t?1:-1}function k(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"str
4ing"==typeof e?e:""}function H(e,t){let l=e.split(O).filter(Boolean),n=t.split(O).filter(Boolean);for(;l.length&&n.length;){let e=l.shift(),t=n.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return -1}return l.length-n.length}let G={alphanumeric:(e,t,l)=>H(k(e.getValue(l)).toLowerCase(),k(t.getValue(l)).toLowerCase()),alphanumericCaseSensitive:(e,t,l)=>H(k(e.getValue(l)),k(t.getValue(l))),text:(e,t,l)=>z(k(e.getValue(l)).toLowerCase(),k(t.getValue(l)).toLowerCase()),textCaseSensitive:(e,t,l)=>z(k(e.getValue(l)),k(t.getValue(l))),datetime:(e,t,l)=>{let n=e.getValue(l),o=t.getValue(l);return n>o?1:n<o?-1:0},basic:(e,t,l)=>z(e.getValue(l),t.getValue(l))},T=[{createTable:e=>{e.getHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>{var r,i;let a=null!=(r=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?r:[],u=null!=(i=null==o?void 0:o.map(e=>l.find(t=>t.id===e)).filter(Boolean))?i:[];return d(t,[...a,...l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),...u],e)},a(e.options,u,"getHeaderGroups")),e.getCenterHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>d(t,l=l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),a(e.options,u,"getCenterHeaderGroups")),e.getLeftHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,l,n)=>{var o;return d(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},a(e.options,u,"getLeftHeaderGroups")),e.getRightHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,l,n)=>{var o;return d(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},a(e.options,u,"getRightHeaderGroups")),e.getFooterGroups=i(()=>[e.getHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getFooterGroups")),e.getLeftFooterGroups=i(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getLeftFooterGroups")),e.getCenterFooterGroups=i(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getCenterFooterGroups")),e.getRightFooterGroups=i(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getRightFooterGroups")),e.getFlatHeaders=i(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getFlatHeaders")),e.getLeftFlatHeaders=i(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getLeftFlatHeaders")),e.getCenterFlatHeaders=i(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getCenterFlatHeaders")),e.getRightFlatHeaders=i(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getRightFlatHeaders")),e.getCenterLeafHeaders=i(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,u,"getCenterLeafHeaders")),e.getLeftLeafHeaders=i(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,u,"getLeftLeafHeaders")),e.getRightLeafHeaders=i(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,u,"getRightLeafHeaders")),e.getLeafHeaders=i(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,l)=>{var n,o,r,i,a,u;return[...null!=(n=null==(o=e[0])?void 0:o.headers)?n:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(u=l[0])?void 0:u.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},a(e.options,u,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var l,n;let o=e.columns;return null==(l=o.length?o.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||l},e.getCanHide=()=>{var l,n;return(null==(l=e.columnDef.enableHiding)||l)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=i(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),a(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=i(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,l)=>[...e,...t,...l],a(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,l)=>i(()=>[l(),l().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),a(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var l;e.setColumnVisibility(t?{}:null!=(l=e.initialState.columnVisibility)?l:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>({...e,[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var l;e.toggleAllColumnsVisible(null==(l=t.target)?void 0:l.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=i(e=>[N(t,e)],t=>t.findIndex(t=>t.id===e.id),a(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=l=>{var n;return(null==(n=N(t,l)[0])?void 0:n.id)===e.id},e.getIsLastColumn=l=>{var n;let o=N(t,l);return(null==(n=o[o.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var l;e.setColumnOrder(t?[]:null!=(l=e.initialState.columnOrder)?l:[])},e._getOrderColumnsFn=i(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,l)=>n=>{let o=[];if(null!=e&&e.length){let t=[...e],l=[...n];for(;l.length&&t.length;){let e=t.shift(),n=l.findIndex(t=>t.id===e);n>-1&&o.push(l.splice(n,1)[0])}o=[...o,...l]}else o=n;var r=o;if(!(null!=t&&t.length)||!l)return r;let i=r.filter(e=>!t.includes(e.id));return"remove"===l?i:[...t.map(e=>r.find(t=>
4t.id===e)).filter(Boolean),...i]},a(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:F(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=l=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,r,i,a,u;return"right"===l?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===l?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var l,n,o;return(null==(l=e.columnDef.enablePinning)||l)&&(null==(n=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let l=e.getLeafColumns().map(e=>e.id),{left:n,right:o}=t.getState().columnPinning,r=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();return o?null!=(l=null==(n=t.getState().columnPinning)||null==(n=n[o])?void 0:n.indexOf(e.id))?l:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=i(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.column.id))},a(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=i(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),a(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=i(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),a(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var l,n;return e.setColumnPinning(t?F():null!=(l=null==(n=e.initialState)?void 0:n.columnPinning)?l:F())},e.getIsSomeColumnsPinned=t=>{var l,n,o;let r=e.getState().columnPinning;return t?!!(null==(l=r[t])?void 0:l.length):!!((null==(n=r.left)?void 0:n.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=i(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=i(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=i(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.id))},a(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
4d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"string"==typeof n?x.includesString:"number"==typeof n?x.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?x.equals:Array.isArray(n)?x.arrIncludes:x.weakEquals},e.getFilterFn=()=>{var l,n;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(l=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?l:x[e.columnDef.filterFn]},e.getCanFilter=()=>{var l,n,o;return(null==(l=e.columnDef.enableColumnFilter)||l)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var l;return null==(l=t.getState().columnFilters)||null==(l=l.find(t=>t.id===e.id))?void 0:l.value},e.getFilterIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.setFilterValue=l=>{t.setColumnFilters(t=>{var o,r;let i=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),u=n(l,a?a.value:void 0);if(R(i,u,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let s={id:e.id,value:u};return a?null!=(r=null==t?void 0:t.map(t=>t.id===e.id?s:t))?r:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let l=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=n(t,e))?void 0:o.filter(e=>{let t=l.find(t=>t.id===e.id);return!(t&&R(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var l,n;e.setColumnFilters(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.columnFilters)?l:[])},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()}},{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()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var l;let n=null==(l=e.getCoreRowModel().flatRows[0])||null==(l=l._getAllCellsByColumnId()[t.id])?void 0:l.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var l,n,o,r;return(null==(l=e.columnDef.enableGlobalFilter)||l)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>x.includesString,e.getGlobalFilterFn=()=>{var t,l;let{globalFilterFn:n}=e.options;return r(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(l=e.options.filterFns)?void 0:l[n])?t:x[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)}
4,e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let l=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of l){let l=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(l))return G.datetime;if("string"==typeof l&&(n=!0,l.split(O).length>1))return G.alphanumeric}return n?G.text:G.basic},e.getAutoSortDir=()=>{let l=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==l?void 0:l.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var l,n;if(!e)throw Error();return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(l=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?l:G[e.columnDef.sortingFn]},e.toggleSorting=(l,n)=>{let o=e.getNextSortingOrder(),r=null!=l;t.setSorting(i=>{let a,u=null==i?void 0:i.find(t=>t.id===e.id),s=null==i?void 0:i.findIndex(t=>t.id===e.id),d=[],g=r?l:"desc"===o;if("toggle"!=(a=null!=i&&i.length&&e.getCanMultiSort()&&n?u?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":u?"toggle":"replace")||r||o||(a="remove"),"add"===a){var c;(d=[...i,{id:e.id,desc:g}]).splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))}else d="toggle"===a?i.map(t=>t.id===e.id?{...t,desc:g}:t):"remove"===a?i.filter(t=>t.id!==e.id):[{id:e.id,desc:g}];return d})},e.getFirstSortDir=()=>{var l,n;return(null!=(l=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?l:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=l=>{var n,o;let r=e.getFirstSortDir(),i=e.getIsSorted();return i?(i===r||null!=(n=t.options.enableSortingRemoval)&&!n||!!l&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var l,n;return(null==(l=e.columnDef.enableSorting)||l)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var l,n;return null!=(l=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?l:!!e.accessorFn},e.getIsSorted=()=>{var l;let n=null==(l=t.getState().sorting)?void 0:l.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let l=e.getCanSort();return n=>{l&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var l,n;e.setSorting(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.sorting)?l:[])},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()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,l;return null!=(t=null==(l=e.getValue())||null==l.toString?void 0:l.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var l,n;return(null==(l=e.columnDef.enableGrouping)||l)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.includes(e.id)},e.getGroupedIndex=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"number"==typeof n?y.sum:"[object Date]"===Object.prototype.toString.call(n)?y.extent:void 0},e.getAggregationFn=()=>{var l,n;if(!e)throw Error();return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(l=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?l:y[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var l,n;e.setGrouping(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.grouping)?l:[])},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,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=l=>{if(e._groupingValuesCache.hasOwnProperty(l))return e._groupingValuesCache[l];let n=t.getColumn(l);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[l]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[l]):e.getValue(l)},e._groupingValuesCache={}},createCell:(e,t,l,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===l.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=l.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,l=!1;e._autoResetExpanded=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(l)return;l=!0,e._queue(()=>{e.resetExpanded(),l=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var l,n;e.setExpanded(t?{}:null!=(l=null==(n=e.initialState)?void 0:n.expanded)?l:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEac
4h(e=>{let l=e.split(".");t=Math.max(t,l.length)}),t},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,t)=>{e.toggleExpanded=l=>{t.setExpanded(n=>{var o;let r=!0===n||!!(null!=n&&n[e.id]),i={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=n,l=null!=(o=l)?o:!r,!r&&l)return{...i,[e.id]:!0};if(r&&!l){let{[e.id]:t,...l}=i;return l}return n})},e.getIsExpanded=()=>{var l;let n=t.getState().expanded;return!!(null!=(l=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?l:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var l,n,o;return null!=(l=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?l:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let l=!0,n=e;for(;l&&n.parentId;)l=(n=t.getRow(n.parentId,!0)).getIsExpanded();return l},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...j(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>n(t,e)),e.resetPagination=t=>{var l;e.setPagination(t?j():null!=(l=e.initialState.pagination)?l:j())},e.setPageIndex=t=>{e.setPagination(l=>{let o=n(t,l.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...l,pageIndex:o}})},e.resetPageIndex=t=>{var l,n;e.setPageIndex(t?0:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?l:0)},e.resetPageSize=t=>{var l,n;e.setPageSize(t?10:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?l:10)},e.setPageSize=t=>{e.setPagination(e=>{let l=Math.max(1,n(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/l);return{...e,pageIndex:o,pageSize:l}})},e.setPageCount=t=>e.setPagination(l=>{var o;let r=n(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...l,pageCount:r}}),e.getPageOptions=i(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},a(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,l=e.getPageCount();return -1===l||0!==l&&t<l-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+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 t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:V(),...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(l,n,o)=>{let r=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...r]);t.setRowPinning(e=>{var t,n,o,r,a,u;return"bottom"===l?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=i&&i.has(e))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)]}:"top"===l?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter(e=>!(null!=i&&i.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=i&&i.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=i&&i.has(e)))}})},e.getCanPin=()=>{var l;let{enableRowPinning:n,enablePinning:o}=t.options;return"function"==typeof n?n(e):null==(l=null!=n?n:o)||l},e.getIsPinned=()=>{let l=[e.id],{top:n,bottom:o}=t.getState().rowPinning,r=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();if(!o)return -1;let r=null==(l="top"===o?t.getTopRows():t.getBottomRows())?void 0:l.map(e=>{let{id:t}=e;return t});return null!=(n=null==r?void 0:r.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var l,n;return e.setRowPinning(t?V():null!=(l=null==(n=e.initialState)?void 0:n.rowPinning)?l:V())},e.getIsSomeRowsPinned=t=>{var l,n,o;let r=e.getState().rowPinning;return t?!!(null==(l=r[t])?void 0:l.length):!!((null==(n=r.top)?void 0:n.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=(t,l,n)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=l?l:[]).map(t=>{let l=e.getRow(t,!0);return l.getIsAllParentsExpanded()?l:null}):(null!=l?l:[]).map(e=>t.find(t=>
4t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=i(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,l)=>e._getPinnedRows(t,l,"top"),a(e.options,"debugRows","getTopRows")),e.getBottomRows=i(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,l)=>e._getPinnedRows(t,l,"bottom"),a(e.options,"debugRows","getBottomRows")),e.getCenterRows=i(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,l)=>{let n=new Set([...null!=t?t:[],...null!=l?l:[]]);return e.filter(e=>!n.has(e.id))},a(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var l;return e.setRowSelection(t?{}:null!=(l=e.initialState.rowSelection)?l:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...l},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):o.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...l};return e.getRowModel().rows.forEach(t=>{_(o,t.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=i(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,l)=>Object.keys(t).length?L(e,l):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=i(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,l)=>Object.keys(t).length?L(e,l):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=i(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,l)=>Object.keys(t).length?L(e,l):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:l}=e.getState(),n=!!(t.length&&Object.keys(l).length);return n&&t.some(e=>e.getCanSelect()&&!l[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:l}=e.getState(),n=!!t.length;return n&&t.some(e=>!l[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let l=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return l>0&&l<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,n)=>{let o=e.getIsSelected();t.setRowSelection(r=>{var i;if(l=void 0!==l?l:!o,e.getCanSelect()&&o===l)return r;let a={...r};return _(a,e.id,l,null==(i=null==n?void 0:n.selectChildren)||i,t),a})},e.getIsSelected=()=>{let{rowSelection:l}=t.getState();return A(e,l)},e.getIsSomeSelected=()=>{let{rowSelection:l}=t.getState();return"some"===D(e,l)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:l}=t.getState();return"all"===D(e,l)},e.getCanSelect=()=>{var l;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(l=t.options.enableRowSelection)||l},e.getCanSelectSubRows=()=>{var l;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(l=t.options.enableSubRowSelection)||l},e.getCanMultiSelect=()=>{var l;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(l=t.options.enableMultiRowSelection)||l},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return l=>{var n;t&&e.toggleSelected(null==(n=l.target)?void 0:n.checked)}}}},{getDefaultColumnDef:()=>M,getInitialState:e=>({columnSizing:{},columnSizingInfo:P(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var l,n,o;let r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(l=e.columnDef.minSize)?l:M.minSize,null!=(n=null!=r?r:e.columnDef.size)?n:M.size),null!=(o=e.columnDef.maxSize)?o:M.maxSize)},e.getStart=i(e=>[e,N(t,e),t.getState().columnSizing],(t,l)=>l.slice(0,e.getIndex(t)).reduce((e,t)=>
4e+t.getSize(),0),a(t.options,"debugColumns","getStart")),e.getAfter=i(e=>[e,N(t,e),t.getState().columnSizing],(t,l)=>l.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),a(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:l,...n}=t;return n})},e.getCanResize=()=>{var l,n;return(null==(l=e.columnDef.enableResizing)||l)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,l=e=>{if(e.subHeaders.length)e.subHeaders.forEach(l);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return l(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{let n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),I(r)&&r.touches&&r.touches.length>1))return;let i=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],u=I(r)?Math.round(r.touches[0].clientX):r.clientX,s={},d=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var n,o;let r="rtl"===t.options.columnResizeDirection?-1:1,i=(l-(null!=(n=null==e?void 0:e.startOffset)?n:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,l]=e;s[t]=Math.round(100*Math.max(l+l*a,0))/100}),{...e,deltaOffset:i,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...s})))},g=e=>{d("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=l||("u">typeof document?document:null),m={moveHandler:e=>d("move",e.clientX),upHandler:e=>{null==c||c.removeEventListener("mousemove",m.moveHandler),null==c||c.removeEventListener("mouseup",m.upHandler),g(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d("move",e.touches[0].clientX),!1),upHandler:e=>{var t;null==c||c.removeEventListener("touchmove",p.moveHandler),null==c||c.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(null==(t=e.touches[0])?void 0:t.clientX)}},f=!!function(){if("boolean"==typeof E)return E;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return E=e}()&&{passive:!1};I(r)?(null==c||c.addEventListener("touchmove",p.moveHandler,f),null==c||c.addEventListener("touchend",p.upHandler,f)):(null==c||c.addEventListener("mousemove",m.moveHandler,f),null==c||c.addEventListener("mouseup",m.upHandler,f)),t.setColumnSizingInfo(e=>({...e,startOffset:u,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var l;e.setColumnSizing(t?{}:null!=(l=e.initialState.columnSizing)?l:{})},e.resetHeaderSizeInfo=t=>{var l;e.setColumnSizingInfo(t?P():null!=(l=e.initialState.columnSizingInfo)?l:P())},e.getTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getLeftHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getCenterHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getRightHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function B(e,t){var n,o,r;let i;return e?"function"==typeof(o=n=e)&&(i=Object.getPrototypeOf(o)).prototype&&i.prototype.isReactComponent||"function"==typeof n||"object"==typeof(r=n)&&"symbol"==typeof r.$$typeof&&["react.memo","react.forward_ref"].includes(r.$$typeof.description)?l.createElement(e,t):e:null}var $=e.i(530941);let q=l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:n,className:(0,$.cn)("w-full caption-bottom text-sm",e),...l})}));q.displayName="Table";let U=l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("thead",{ref:n,className:(0,$.cn)("[&_tr]:border-b",e),...l}));U.displayName="TableHeader";let W=l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("tbody",{ref:n,className:(0,$.cn)("[&_tr:last-child]:border-0",e),...l}));W.displayName="TableBody",l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("tfoot",{ref:n,className:(0,$.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...l})).displayName="TableFooter";let X=l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("tr",{ref:n,className:(0,$.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...l}));X.displayName="TableRow";let K=l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("th",{ref:n,className:(0,$.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...l}));K.displayName="TableHead";let Z=l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("td",{ref:n,className:(0,$.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...l}));Z.displayName="TableCell",l.forwardRef(({className:e,...l},n)=>(0,t.jsx)("caption",{ref:n,className:(0,$.cn)("mt-4 text-sm text-muted-foreground",e),...l})).displayName="TableCaption";var Y=e.i(519455);e.s(["DataTable",0,function({tableData:e}){let[o,r]=(0,l.useState)(""),[u,s]=(0,l.useState)(""),[d,c]=(0,l.useState)({pageIndex:0,pageSize:10}),m=function(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[o]=l.useState(()=>({current:function(e){var t,l;let o=[...T,...null!=(t=e._features)?t:[]],r={_features:o},u=r._features.reduce((e,t)=>
4Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r)),{}),s={...null!=(l=e.initialState)?l:{}};r._features.forEach(e=>{var t;s=null!=(t=null==e.getInitialState?void 0:e.getInitialState(s))?t:s});let d=[],g=!1,c={_features:o,options:{...u,...e},initialState:s,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();g=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{var t;t=n(e,r.options),r.options=r.options.mergeOptions?r.options.mergeOptions(u,t):{...u,...t}},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,l)=>{var n;return null!=(n=null==r.options.getRowId?void 0:r.options.getRowId(e,t,l))?n:`${l?[l.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let l=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!l&&!(l=r.getCoreRowModel().rowsById[e]))throw Error();return l},_getDefaultColumnDef:i(()=>[r.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,l;return null!=(t=null==(l=e.renderValue())||null==l.toString?void 0:l.toString())?t:null},...r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},a(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:i(()=>[r._getColumnDefs()],e=>{let t=function(e,l,n){return void 0===n&&(n=0),e.map(e=>{let o=function(e,t,l,n){var o,r;let u,s={...e._getDefaultColumnDef(),...t},d=s.accessorKey,g=null!=(o=null!=(r=s.id)?r:d?"function"==typeof String.prototype.replaceAll?d.replaceAll(".","_"):d.replace(/\./g,"_"):void 0)?o:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?u=s.accessorFn:d&&(u=d.includes(".")?e=>{let t=e;for(let e of d.split(".")){var l;t=null==(l=t)?void 0:l[e]}return t}:e=>e[s.accessorKey]),!g)throw Error();let c={id:`${String(g)}`,accessorFn:u,parent:n,depth:l,columnDef:s,columns:[],getFlatColumns:i(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},a(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:i(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},a(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(r,e,n,l);return o.columns=e.columns?t(e.columns,o,n+1):[],o})};return t(e)},a(e,"debugColumns","getAllColumns")),getAllFlatColumns:i(()=>[r.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),a(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:i(()=>[r.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),a(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:i(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),a(e,"debugColumns","getAllLeafColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let e=0;e<r._features.length;e++){let t=r._features[e];null==t||null==t.createTable||t.createTable(r)}return r}(t)})),[r,u]=l.useState(()=>o.current.initialState);return o.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{u(t),null==e.onStateChange||e.onStateChange(t)}})),o.current}({data:e.rows,columns:e.columns,getCoreRowModel:e=>i(()=>[e.options.data],t=>{let l={rows:[],flatRows:[],rowsById:{}},n=function(t,o,r){void 0===o&&(o=0);let i=[];for(let u=0;u<t.length;u++){let s=g(e,e._getRowId(t[u],u,r),t[u],u,o,void 0,null==r?void 0:r.id);if(l.flatRows.push(s),l.rowsById[s.id]=s,i.push(s),e.options.getSubRows){var a;s.originalSubRows=e.options.getSubRows(t[u],u),null!=(a=s.originalSubRows)&&a.length&&(s.subRows=n(s.originalSubRows,o+1,s))}}return i};return l.rows=n(t),l},a(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex())),getFilteredRowModel:e=>i(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,l,n)=>{var o,r,i,a,u,s,d,c,m,p;let f,h,v,b,w,C,x,S,R,y;if(!t.rows.length||!(null!=l&&l.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let F=[],M=[];
4(null!=l?l:[]).forEach(t=>{var l;let n=e.getColumn(t.id);if(!n)return;let o=n.getFilterFn();o&&F.push({id:t.id,filterFn:o,resolvedValue:null!=(l=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?l:t.value})});let P=(null!=l?l:[]).map(e=>e.id),E=e.getGlobalFilterFn(),I=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());n&&E&&I.length&&(P.push("__global__"),I.forEach(e=>{var t;M.push({id:e.id,filterFn:E,resolvedValue:null!=(t=null==E.resolveFilterValue?void 0:E.resolveFilterValue(n))?t:n})}));for(let e=0;e<t.flatRows.length;e++){let l=t.flatRows[e];if(l.columnFilters={},F.length)for(let e=0;e<F.length;e++){let t=(f=F[e]).id;l.columnFilters[t]=f.filterFn(l,t,f.resolvedValue,e=>{l.columnFiltersMeta[t]=e})}if(M.length){for(let e=0;e<M.length;e++){let t=(h=M[e]).id;if(h.filterFn(l,t,h.resolvedValue,e=>{l.columnFiltersMeta[t]=e})){l.columnFilters.__global__=!0;break}}!0!==l.columnFilters.__global__&&(l.columnFilters.__global__=!1)}}return o=t.rows,r=e=>{for(let t=0;t<P.length;t++)if(!1===e.columnFilters[P[t]])return!1;return!0},e.options.filterFromLeafRows?(i=o,a=r,v=[],b={},w=null!=(s=(u=e).options.maxLeafRowFilterDepth)?s:100,{rows:(C=function(e,t){void 0===t&&(t=0);let l=[];for(let o=0;o<e.length;o++){var n;let r=e[o],i=g(u,r.id,r.original,r.index,r.depth,void 0,r.parentId);if(i.columnFilters=r.columnFilters,null!=(n=r.subRows)&&n.length&&t<w){if(i.subRows=C(r.subRows,t+1),a(r=i)&&!i.subRows.length||a(r)||i.subRows.length){l.push(r),b[r.id]=r,v.push(r);continue}}else a(r=i)&&(l.push(r),b[r.id]=r,v.push(r))}return l})(i),flatRows:v,rowsById:b}):(d=o,c=r,x=[],S={},R=null!=(p=(m=e).options.maxLeafRowFilterDepth)?p:100,{rows:(y=function(e,t){void 0===t&&(t=0);let l=[];for(let o=0;o<e.length;o++){let r=e[o];if(c(r)){var n;if(null!=(n=r.subRows)&&n.length&&t<R){let e=g(m,r.id,r.original,r.index,r.depth,void 0,r.parentId);e.subRows=y(r.subRows,t+1),r=e}l.push(r),x.push(r),S[r.id]=r}}return l})(d),flatRows:x,rowsById:S})},a(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex())),getPaginationRowModel:e=>i(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,l)=>{let n;if(!l.rows.length)return l;let{pageSize:o,pageIndex:r}=t,{rows:i,flatRows:a,rowsById:u}=l,s=o*r;if(i=i.slice(s,s+o),e.options.paginateExpandedRows)n={rows:i,flatRows:a,rowsById:u};else{var d;let e,t;d={rows:i,flatRows:a,rowsById:u},e=[],t=l=>{var n;e.push(l),null!=(n=l.subRows)&&n.length&&l.getIsExpanded()&&l.subRows.forEach(t)},d.rows.forEach(t),n={rows:e,flatRows:d.flatRows,rowsById:d.rowsById}}n.flatRows=[];let g=e=>{n.flatRows.push(e),e.subRows.length&&e.subRows.forEach(g)};return n.rows.forEach(g),n},a(e.options,"debugTable","getPaginationRowModel")),globalFilterFn:"includesString",state:{globalFilter:o,pagination:d},onGlobalFilterChange:r,onPaginationChange:c});return(0,t.jsxs)("div",{className:"container mb-8",children:[(0,t.jsxs)("div",{className:"mb-4 flex gap-2",children:[(0,t.jsx)("input",{type:"text",placeholder:"Search...",value:u,onChange:e=>s(e.target.value),className:"block w-full max-w-sm rounded border px-3 py-2 text-sm shadow"}),(0,t.jsx)(Y.Button,{onClick:()=>r(u),children:"Search"}),(0,t.jsx)(Y.Button,{onClick:()=>{s(""),r("")},variant:"outline",children:"Clear"})]}),(0,t.jsxs)(q,{children:[(0,t.jsx)(U,{children:m.getHeaderGroups().map(e=>(0,t.jsx)(X,{children:e.headers.map(e=>(0,t.jsx)(K,{children:e.isPlaceholder?null:B(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,t.jsx)(W,{children:m.getRowModel().rows?.length?m.getRowModel().rows.map(e=>(0,t.jsx)(X,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(e=>(0,t.jsx)(Z,{children:B(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,t.jsx)(X,{children:(0,t.jsx)(Z,{colSpan:e.columns.length,className:"h-24 text-center",children:"No results."})})})]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Page ",m.getState().pagination.pageIndex+1," of ",m.getPageCount()]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:["Rows per page:",(0,t.jsx)("select",{value:m.getState().pagination.pageSize,onChange:e=>m.setPageSize(Number(e.target.value)),className:"rounded border px-2 py-1 text-sm",children:[5,10,20,50].map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{onClick:()=>m.previousPage(),disabled:!m.getCanPreviousPage(),className:"px-3 py-1 border rounded text-sm disabled:opacity-50",children:"Prev"}),(0,t.jsx)("button",{onClick:()=>m.nextPage(),disabled:!m.getCanNextPage(),className:"px-3 py-1 border rounded text-sm disabled:opacity-50",children:"Next"})]})]})]})]})}],227453)},247602,e=>{"use strict";var t,l,n,o,r=e.i(40438),i=e.i(530941),a=e.i(116414);let u="carousel",s="controller",d="portal",g="toolbar",c="loading",m="error",p="complete",f=e=>`active-slide-${e}`;f(c),f("playing"),f(m),f(p);let h="flex_center",v="no_scroll_padding",b="slide",w="prev",C="next",x="swipe",S="close",R="onPointerDown",y="onPointerMove",F="onPointerUp",M="onPointerLeave",P="onPointerCancel",E="onKeyDown",I="onWheel",N="icon",j="contain",V="cover";var _=e.i(608137);let L="yarl__";
4function A(...e){return[...e].filter(Boolean).join(" ")}function D(e){return`${L}${e}`}function O(e){return`--${L}${e}`}function z(e,t){return`${e}${t?`_${t}`:""}`}function k(e){return t=>z(e,t)}function H(e,t){var l;return null!=(l=null==e?void 0:e[t])?l:t}function G(...e){return()=>{e.forEach(e=>{e()})}}function T(e,t,l){return()=>{let n=a.useContext(l);if(!n)throw Error(`${e} must be used within a ${t}.Provider`);return n}}function B(){return"u">typeof window}function $(e){return void 0===e.type||"image"===e.type}function q(e){return"string"==typeof e?Number.parseInt(e,10):e}function U(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=q(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function W(e,t){return t>0?(e%t+t)%t:0}function X(e,t){return e[W(t,e.length)]}function K(e,t){return e.length>0?X(e,t):void 0}let Z=Number(a.version.split(".")[0])>=19,Y={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[S]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:j,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function J(e,t){return{name:e,component:t}}function Q(e,t){return{module:e,children:t}}function ee(e,t,l){return e.flatMap(e=>{var n;return null!=(n=function e(t,l,n){return t.module.name===l?n(t):t.children?[Q(t.module,t.children.flatMap(t=>{var o;return null!=(o=e(t,l,n))?o:[]}))]:[t]}(e,t,l))?n:[]})}let et=a.createContext(null),el=T("useA11yContext","A11yContext",et);function en({children:e}){let[t,l]=a.useState(!1),[n,o]=a.useState(!1),r=a.useMemo(()=>({focusWithin:t,trackFocusWithin:(e,t)=>{let n=n=>o=>{var r;o.currentTarget.contains(o.relatedTarget)||l(n),null==(r=n?e:t)||r(o)};return{onFocus:n(!0),onBlur:n(!1)}},autoPlaying:n,setAutoPlaying:o}),[t,n]);return a.createElement(et.Provider,{value:r},e)}let eo=a.createContext(null),er=T("useDocument","DocumentContext",eo);function ei({nodeRef:e,children:t}){let l=a.useMemo(()=>{let t=t=>{var l;return(null==(l=t||e.current)?void 0:l.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var l;return(null==(l=t(e))?void 0:l.defaultView)||window}}},[e]);return a.createElement(eo.Provider,{value:l},t)}let ea=a.createContext(null),eu=T("useEvents","EventsContext",ea);function es({children:e}){let[t]=a.useState({});a.useEffect(()=>()=>{Object.keys(t).forEach(e=>delete t[e])},[t]);let l=a.useMemo(()=>{let e=(e,l)=>{var n;null==(n=t[e])||n.splice(0,t[e].length,...t[e].filter(e=>e!==l))};return{publish:(...[e,l])=>{var n;null==(n=t[e])||n.forEach(e=>e(l))},subscribe:(l,n)=>(t[l]||(t[l]=[]),t[l].push(n),()=>e(l,n)),unsubscribe:e}},[t]);return a.createElement(ea.Provider,{value:l},e)}let ed=a.createContext(null),eg=T("useLightboxProps","LightboxPropsContext",ed);function ec({children:e,...t}){return a.createElement(ed.Provider,{value:t},e)}let em=a.createContext(null),ep=T("useLightboxState","LightboxStateContext",em),ef=a.createContext(null),eh=T("useLightboxDispatch","LightboxDispatchContext",ef);function ev(e,t){switch(t.type){case"swipe":{let{slides:l}=e,n=(null==t?void 0:t.increment)||0,o=e.globalIndex+n,r=W(o,l.length),i=K(l,r);return{slides:l,currentIndex:r,globalIndex:o,currentSlide:i,animation:n||void 0!==t.duration?{increment:n,duration:t.duration,easing:t.easing}:void 0}}case"update":if(t.slides!==e.slides||t.index!==e.currentIndex)return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:K(t.slides,t.index)};return e;default:throw Error("Unknown action type")}}function eb({slides:e,index:t,children:l}){let[n,o]=a.useReducer(ev,{slides:e,currentIndex:t,globalIndex:t,currentSlide:K(e,t)});a.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);let r=a.useMemo(()=>({...n,state:n,dispatch:o}),[n,o]);return a.createElement(ef.Provider,{value:o},a.createElement(em.Provider,{value:r},l))}let ew=a.createContext(null),eC=T("useTimeouts","TimeoutsContext",ew);function ex({children:e}){let[t]=a.useState([]);a.useEffect(()=>()=>
4{t.forEach(e=>window.clearTimeout(e)),t.splice(0,t.length)},[t]);let l=a.useMemo(()=>{let e=e=>{t.splice(0,t.length,...t.filter(t=>t!==e))};return{setTimeout:(l,n)=>{let o=window.setTimeout(()=>{e(o),l()},n);return t.push(o),o},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[t]);return a.createElement(ew.Provider,{value:l},e)}let eS=a.forwardRef(function({label:e,className:t,icon:l,renderIcon:n,onClick:o,style:r,...i},u){let{styles:s,labels:d}=eg(),g=H(d,e);return a.createElement("button",{ref:u,type:"button",title:g,"aria-label":g,className:A(D("button"),t),onClick:o,style:{...r,...s.button},...i},n?n():a.createElement(l,{className:D(N),style:s.icon}))});function eR(e,t){var l;let n;return l=a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t),(n=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},l)).displayName=e,n}let ey=eR("Close",a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),eF=eR("Previous",a.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),eM=eR("Next",a.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),eP=eR("Loading",a.createElement(a.Fragment,null,Array.from({length:8}).map((e,t,l)=>a.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/l.length*(t+1),transform:`rotate(${360/l.length*t}, 12, 12)`})))),eE=eR("Error",a.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),eI=B()?a.useLayoutEffect:a.useEffect;function eN(){let[e,t]=a.useState(!1);return a.useEffect(()=>{var e,l;let n=null==(e=window.matchMedia)?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==n?void 0:n.matches);let o=e=>t(e.matches);return null==(l=null==n?void 0:n.addEventListener)||l.call(n,"change",o),()=>{var e;return null==(e=null==n?void 0:n.removeEventListener)?void 0:e.call(n,"change",o)}},[]),e}function ej(e,t){let l=a.useRef(void 0),n=a.useRef(void 0),o=eN();return eI(()=>{var r,i,a;if(e.current&&void 0!==l.current&&!o){let{keyframes:o,duration:u,easing:s,onfinish:d}=t(l.current,e.current.getBoundingClientRect(),function(e){let t=0,l=0,n=0,o=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(o){let e=o[1].split(",").map(q);6===e.length?(t=e[4],l=e[5]):16===e.length&&(t=e[12],l=e[13],n=e[14])}return{x:t,y:l,z:n}}(e.current))||{};if(o&&u){null==(r=n.current)||r.cancel(),n.current=void 0;try{n.current=null==(a=(i=e.current).animate)?void 0:a.call(i,o,{duration:u,easing:s})}catch(e){console.error(e)}n.current&&(n.current.onfinish=()=>{n.current=void 0,null==d||d()})}}l.current=void 0}),{prepareAnimation:e=>{l.current=e},isAnimationPlaying:()=>{var e;return(null==(e=n.current)?void 0:e.playState)==="running"}}}function eV(){let e=a.useRef(null),t=a.useRef(void 0),[l,n]=a.useState();return{setContainerRef:a.useCallback(l=>{e.current=l,t.current&&(t.current.disconnect(),t.current=void 0);let o=()=>{if(l){let e=window.getComputedStyle(l);n({width:Math.round(l.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)),height:Math.round(l.clientHeight-(parseFloat(e.paddingTop)||0)-(parseFloat(e.paddingBottom)||0))})}else n(void 0)};o(),l&&"u">typeof ResizeObserver&&(t.current=new ResizeObserver(o),t.current.observe(l))},[]),containerRef:e,containerRect:l}}function e_(){let e=a.useRef(void 0),{setTimeout:t,clearTimeout:l}=eC();return a.useCallback((n,o)=>{l(e.current),e.current=t(n,o>0?o:0)},[t,l])}function eL(e){let t=a.useRef(e);return eI(()=>{t.current=e}),a.useCallback((...e)=>{var l;return null==(l=t.current)?void 0:l.call(t,...e)},[])}function eA(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eD(e,t){return a.useMemo(()=>null==e&&null==t?null:l=>{eA(e,l),eA(t,l)},[e,t])}function eO(){let[e,t]=a.useState(!1);return eI(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function ez(e,t){let l=a.useRef(0),n=e_(),o=eL((...t)=>{l.current=Date.now(),e(t)});return a.useCallback((...e)=>{n(()=>{o(e)},t-(Date.now()-l.current))},[t,o,n])}let ek=k("slide"),eH=k("slide_image");function eG({slide:e,offset:t,render:l,rect:n,imageFit:o,imageProps:r,onClick:i,onLoad:u,onError:s,style:d}){var g,h,v,b,w,C,x,S;let[R,y]=a.useState(c),{publish:F}=eu(),{setTimeout:M}=eC(),P=a.useRef(null);a.useEffect(()=>{0===t&&F(f(R))},[t,R,F]);let E=eL(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(y(p),M(()=>{null==u||u(e)},0))})}),I=a.useCallback(e=>{P.current=e,(null==e?void 0:e.complete)&&E(e)},[E]),_=a.useCallback(e=>{E(e.currentTarget)},[E]),L=eL(()=>{y(m),null==s||s()}),O=e.imageFit===V||e.imageFit!==j&&o===V,z=(e,t)=>Number.isFinite(e)?e:t,k=z(Math.max(...(null!=(h=null==(g=e.srcSet)?void 0:g.map(e=>
4e.width))?h:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null==(v=P.current)?void 0:v.naturalWidth)||0),H=z(Math.max(...(null!=(w=null==(b=e.srcSet)?void 0:b.map(e=>e.height))?w:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null==(C=P.current)?void 0:C.naturalHeight)||0),G=k&&H?{maxWidth:`min(${k}px, 100%)`,maxHeight:`min(${H}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},T=null==(x=e.srcSet)?void 0:x.sort((e,t)=>e.width-t.width).map(e=>`${e.src} ${e.width}w`).join(", "),$=T&&n&&B()?`${Math.round(Math.min(n&&!O&&e.width&&e.height?n.height/e.height*e.width:Number.MAX_VALUE,n.width))}px`:void 0,{style:q,className:U,...W}=r||{};return a.createElement(a.Fragment,null,a.createElement("img",{ref:I,onLoad:_,onError:L,onClick:i,draggable:!1,className:A(D(eH()),O&&D(eH("cover")),R!==p&&D(eH("loading")),U),style:{...G,...d,...q},...W,alt:null!=(S=e.alt)?S:"",sizes:$,srcSet:T,src:e.src}),R!==p&&a.createElement("div",{className:D(ek("placeholder"))},R===c&&((null==l?void 0:l.iconLoading)?l.iconLoading():a.createElement(eP,{className:A(D(N),D(ek(c)))})),R===m&&((null==l?void 0:l.iconError)?l.iconError():a.createElement(eE,{className:A(D(N),D(ek(m)))}))))}let eT=a.forwardRef(function({className:e,children:t,onFocus:l,onBlur:n,...o},r){let i=a.useRef(null),{trackFocusWithin:u}=el();return a.createElement(ei,{nodeRef:i},a.createElement("div",{ref:eD(r,i),className:A(D("root"),e),...u(l,n),...o},t))});(t=n||(n={}))[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL",t[t.ANIMATION=3]="ANIMATION",(l=o||(o={}))[l.NONE=0]="NONE",l[l.SWIPE=1]="SWIPE",l[l.PULL=2]="PULL";let eB=k("container"),e$=a.createContext(null),eq=T("useController","ControllerContext",e$),eU=J(s,function({children:e,...t}){var l;let{carousel:r,animation:i,controller:u,on:s,styles:g,render:c}=t,{closeOnPullUp:m,closeOnPullDown:p,preventDefaultWheelX:f,preventDefaultWheelY:v}=u,[N,j]=a.useState(),V=ep(),_=eh(),[L,z]=a.useState(n.NONE),k=a.useRef(0),H=a.useRef(0),T=a.useRef(1),{registerSensors:B,subscribeSensors:$}=function(){let[e]=a.useState({}),t=a.useCallback((t,l)=>{var n;null==(n=e[t])||n.forEach(e=>{l.isPropagationStopped()||e(l)})},[e]);return{registerSensors:a.useMemo(()=>({onPointerDown:e=>t(R,e),onPointerMove:e=>t(y,e),onPointerUp:e=>t(F,e),onPointerLeave:e=>t(M,e),onPointerCancel:e=>t(P,e),onKeyDown:e=>t(E,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(I,e)}),[t]),subscribeSensors:a.useCallback((t,l)=>(e[t]||(e[t]=[]),e[t].unshift(l),()=>{let n=e[t];n&&n.splice(0,n.length,...n.filter(e=>e!==l))}),[e])}}(),{subscribe:q,publish:W}=eu(),X=e_(),K=e_(),Z=e_(),{containerRef:Y,setContainerRef:J,containerRect:Q}=eV(),ee=eD(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){let l=a.useRef(null),n=eL(l=>{let n=Math.abs(l.deltaX)>Math.abs(l.deltaY);(n&&e||!n&&t||l.ctrlKey)&&l.preventDefault()});return a.useCallback(e=>{var t;e?e.addEventListener("wheel",n,{passive:!1}):null==(t=l.current)||t.removeEventListener("wheel",n),l.current=e},[n])}({preventDefaultWheelX:f,preventDefaultWheelY:v}),J),et=a.useRef(null),el=eD(et,void 0),{getOwnerDocument:en}=er(),eo=eO(),ei=e=>(eo?-1:1)*("number"==typeof e?e:1),ea=eL(()=>{var e;return null==(e=Y.current)?void 0:e.focus()}),es=eL(()=>t),ed=eL(()=>V),eg=a.useCallback(e=>W(w,e),[W]),ec=a.useCallback(e=>W(C,e),[W]),em=a.useCallback(()=>W(S),[W]),ef=e=>!(r.finite&&(ei(e)>0&&0===V.currentIndex||0>ei(e)&&V.currentIndex===V.slides.length-1)),ev=e=>{var t;k.current=e,null==(t=Y.current)||t.style.setProperty(O("swipe_offset"),`${Math.round(e)}px`)},eb=e=>{var t,l;H.current=e,T.current=Math.min(Math.max(function(e,t=0){let l=10**t;return Math.round((e+Number.EPSILON)*l)/l}(1-(p&&e>0?e:m&&e<0?-e:0)/60*.5,2),.5),1),null==(t=Y.current)||t.style.setProperty(O("pull_offset"),`${Math.round(e)}px`),null==(l=Y.current)||l.style.setProperty(O("pull_opacity"),`${T.current}`)},{prepareAnimation:ew}=ej(et,(e,t,l)=>{if(et.current&&Q)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+l.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:i.easing.fade}}),ex=(e,t)=>{if(m||p){eb(e);let l=0;et.current&&(l=i.fade*(t?2:1),ew({rect:et.current.getBoundingClientRect(),opacity:T.current,duration:l})),Z(()=>{eb(0),z(n.NONE)},l),z(n.ANIMATION),t||em()}},{prepareAnimation:eS,isAnimationPlaying:eR}=ej(et,(e,t,l)=>{var n;if(et.current&&Q&&(null==(n=V.animation)?void 0:n.duration)){let n=U(r.spacing),o=(n.percent?n.percent*Q.width/100:n.pixel)||0;return{keyframes:[{transform:`translate(${ei(V.globalIndex-e.index)*(Q.width+o)+e.rect.x-t.x+l.x}px, 0)`},{transform:"translate(0, 0)"}],duration:V.animation.duration,easing:V.animation.easing}}}),ey=eL(e=>{var t,l;let o=e.offset||0,r=o?i.swipe:null!=(t=i.navigation)?t:i.swipe,a=o||eR()?i.easing.swipe:i.easing.navigation,{direction:u}=e,s=null!=(l=e.count)?l:1,d=n.ANIMATION,g=r*s;if(!u){let t=null==Q?void 0:Q.width,l=e.duration||0,n=t?r/t*Math.abs(o):r;0!==s?(l<n?g=g/n*Math.max(l,n/5):t&&(g=r/t*(t-Math.abs(o))),u=ei(o)>0?w:C):g=r/2}let c=0;u===w?ef(ei(1))?c=-s:(d=n.NONE,g=r):u===C&&(ef(ei(-1))?c=s:(d=n.NONE,g=r)),K(()=>{ev(0),z(n.NONE)},g=Math.round(g)),et.current&&eS({rect:et.current.getBoundingClientRect(),index:V.globalIndex}),z(d),W(x,{type:"swipe",increment:c,duration:g,easing:a})});a.useEffect(()=>{var e,t;(null==(e=V.animation)?void 0:e.increment)&&(null==(t=V.animation)?void 0:t.duration)&&X(()=>_({type:"swipe",increment:0}),V.animation.duration)},[V.animation,_,X]);let eF=[$,ef,(null==Q?void 0:Q.width)||0,i.swipe,()=>z(n.SWIPE),e=>ev(e),(e,t)=>ey({offset:e,duration:t,count:1}),e=>ey({offset:e,count:0})],eM=[()=>{p&&z(n.PULL)},e=>eb(e),e=>ex(e),e=>ex(e,!0)];!function({disableSwipeNavigation:e,closeOnBackdropClick:t},l,n,r,i,u,s,d,g,c,m,p,f,h,v,w){let C=a.useRef(0),x=a.useRef([]),S=a.useRef(void 0),E=a.useRef(0),I=a.useRef(o.NONE),N=a.useCallback(e=>{S.current===e.pointerId&&(S.current=void 0,I.current=o.NONE);let t=x.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),j=a.useCallback(e=>{N(e),e.persist(),x.current.push(e)},[N]),V=a.useCallback(e=>x.current.find(({pointerId:t})=>e.pointerId===t),[]),_=eL(e=>{j(e)}),L=(e,t)=>m&&e>t||c&&e<-t,A=eL(e=>{let l=V(e);if(l)if(S.current===e.pointerId){let e=Date.now()-E.current,t=C.current;I.current===o.SWIPE?Math.abs(t)>.3*r||Math.abs(t)>5&&e<i?d(t,e):g(t):I.current===o.PULL&&(L(t,60)?h(t,e):v(t)),C.current=0,I.current=o.NONE}else{let{target:n}=e;t&&n instanceof HTMLElement&&n===l.target&&(n.classList.contains(D(b))||n.classList.contains(D("slide_wrapper")))&&w()}N(e)}),O=eL(t=>{let l=V(t);if(l){let r=S.current===t.pointerId;if(0===t.buttons)return void(r&&0!==C.current?A(t):N(l));let i=t.clientX-l.clientX,a=t.clientY-l.clientY;if(void 0===S.current){let l=e=>{j(t),S.current=t.pointerId,E.current=Date.now(),I.current=e};Math.abs(i)>Math.abs(a)&&Math.abs(i)>
430&&n(i)?e||(l(o.SWIPE),u()):Math.abs(a)>Math.abs(i)&&L(a,30)&&(l(o.PULL),p())}else r&&(I.current===o.SWIPE?(C.current=i,s(i)):I.current===o.PULL&&(C.current=a,f(a)))}});a.useEffect(()=>G(l(R,_),l(y,O),l(F,A),l(M,A),l(P,A)),[l,_,O,A,void 0])}(u,...eF,m,p,...eM,em),function(e,t,l,o,r,i,u,s,d){let g=a.useRef(0),c=a.useRef(0),m=a.useRef(void 0),p=a.useRef(void 0),f=a.useRef(0),h=a.useRef(void 0),v=a.useRef(0),{setTimeout:b,clearTimeout:w}=eC(),C=a.useCallback(()=>{m.current&&(w(m.current),m.current=void 0)},[w]),x=a.useCallback(()=>{p.current&&(w(p.current),p.current=void 0)},[w]),S=eL(()=>{e!==n.SWIPE&&(g.current=0,v.current=0,C(),x())});a.useEffect(S,[e,S]);let R=eL(e=>{p.current=void 0,g.current===e&&d(g.current)}),y=eL(t=>{if(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX))return;let a=e=>{f.current=e,w(h.current),h.current=e>0?b(()=>{f.current=0,h.current=void 0},300):void 0};if(e===n.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(f.current))return void a(t.deltaX);if(!l(-t.deltaX))return;if(c.current+=t.deltaX,C(),Math.abs(c.current)>30)c.current=0,a(0),v.current=Date.now(),i();else{let e=c.current;m.current=b(()=>{m.current=void 0,e===c.current&&(c.current=0)},r)}}else if(e===n.SWIPE){let e=g.current-t.deltaX;if(g.current=e=Math.min(Math.abs(e),o)*Math.sign(e),u(e),x(),Math.abs(e)>.2*o){a(t.deltaX),s(e,Date.now()-v.current);return}p.current=b(()=>R(e),2*r)}else a(t.deltaX)});a.useEffect(()=>t(I,y),[t,y])}(L,...eF);let eP=eL(()=>{u.focus&&en().querySelector(`.${D(d)} .${D(eB())}`)&&ea()});a.useEffect(eP,[eP]);let eE=eL(()=>{var e;null==(e=s.view)||e.call(s,{index:V.currentIndex})});a.useEffect(eE,[V.globalIndex,eE]),a.useEffect(()=>G(q(w,e=>ey({direction:w,...e})),q(C,e=>ey({direction:C,...e})),q(x,e=>_(e))),[q,ey,_]);let eI=a.useMemo(()=>{let e,t;return{prev:eg,next:ec,close:em,focus:ea,slideRect:Q?(t=void 0!==(e=U(r.padding)).percent?Q.width/100*e.percent:e.pixel,{width:Math.max(Q.width-2*t,0),height:Math.max(Q.height-2*t,0)}):{width:0,height:0},containerRect:Q||{width:0,height:0},subscribeSensors:$,containerRef:Y,setCarouselRef:el,toolbarWidth:N,setToolbarWidth:j}},[eg,ec,em,ea,$,Q,Y,el,N,j,r.padding]);return a.useImperativeHandle(u.ref,()=>({prev:eg,next:ec,close:em,focus:ea,getLightboxProps:es,getLightboxState:ed}),[eg,ec,em,ea,es,ed]),a.createElement("div",{ref:ee,className:A(D(eB()),D(h)),style:{...L===n.SWIPE?{[O("swipe_offset")]:`${Math.round(k.current)}px`}:null,...L===n.PULL?{[O("pull_offset")]:`${Math.round(H.current)}px`,[O("pull_opacity")]:`${T.current}`}:null,..."none"!==u.touchAction?{[O("controller_touch_action")]:u.touchAction}:null,...g.container},tabIndex:-1,...B},Q&&a.createElement(e$.Provider,{value:eI},e,null==(l=c.controls)?void 0:l.call(c)))});function eW({slide:e,offset:t}){var l,n,o,r,i;let u,s=a.useRef(null),{currentIndex:d,slides:g}=ep(),{slideRect:c,focus:m}=eq(),{render:p,carousel:{imageFit:f,imageProps:v},on:{click:w},styles:{slide:C},labels:x}=eg(),{getOwnerDocument:S}=er(),R=0!==t;return a.useEffect(()=>{var e;R&&(null==(e=s.current)?void 0:e.contains(S().activeElement))&&m()},[R,m,S]),a.createElement("div",{ref:s,className:A(D(z(b,void 0)),!R&&D(z(b,"current")),D(h)),...{inert:Z?R:R?"":void 0},style:C,role:"group","aria-roledescription":H(x,"Slide"),"aria-label":(l=d+t,H(x,"{index} of {total}").replace(/\{index}/g,`${W(l,g.length)+1}`).replace(/\{total}/g,`${g.length}`))},(!(u=null==(n=p.slide)?void 0:n.call(p,{slide:e,offset:t,rect:c}))&&$(e)&&(u=a.createElement(eG,{slide:e,offset:t,render:p,rect:c,imageFit:f,imageProps:v,onClick:R?void 0:()=>null==w?void 0:w({index:d})})),u?a.createElement(a.Fragment,null,null==(o=p.slideHeader)?void 0:o.call(p,{slide:e}),(null!=(r=p.slideContainer)?r:({children:e})=>e)({slide:e,children:u}),null==(i=p.slideFooter)?void 0:i.call(p,{slide:e})):null))}function eX(){let e=eg().styles.slide;return a.createElement("div",{className:D(b),style:e})}let eK=J(u,function({carousel:e,labels:t}){let{slides:l,currentIndex:n,globalIndex:o}=ep(),{setCarouselRef:r}=eq(),{autoPlaying:i,focusWithin:s}=el(),d=U(e.spacing),g=U(e.padding),c=function(e,t,l=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),l))}(e,l,1),m=[];
4if(l.length>0)for(let t=n-c;t<=n+c;t+=1){let r=X(l,t),i=o-n+t,a=e.finite&&(t<0||t>l.length-1);m.push(a?{key:i}:{key:[`${i}`,$(r)?r.src:void 0].filter(Boolean).join("|"),offset:t-n,slide:r})}return a.createElement("div",{ref:r,className:A(D(z(u,void 0)),m.length>0&&D(z(u,"with_slides"))),style:{[`${O(z(u,"slides_count"))}`]:m.length,[`${O(z(u,"spacing_px"))}`]:d.pixel||0,[`${O(z(u,"spacing_percent"))}`]:d.percent||0,[`${O(z(u,"padding_px"))}`]:g.pixel||0,[`${O(z(u,"padding_percent"))}`]:g.percent||0},role:"region","aria-live":i&&!s?"off":"polite","aria-roledescription":H(t,"Carousel"),"aria-label":H(t,"Photo gallery")},m.map(({key:e,slide:t,offset:l})=>t?a.createElement(eW,{key:e,slide:t,offset:l}):a.createElement(eX,{key:e})))});function eZ(){let{carousel:e}=eg(),{slides:t,currentIndex:l}=ep();return{prevDisabled:0===t.length||e.finite&&0===l,nextDisabled:0===t.length||e.finite&&l===t.length-1}}function eY({label:e,icon:t,renderIcon:l,action:n,onClick:o,disabled:r,style:i}){return a.createElement(eS,{label:e,icon:t,renderIcon:l,className:D(`navigation_${n}`),disabled:r,onClick:o,style:i,...function(e,t=!1){let l=a.useRef(!1);return eI(()=>{t&&l.current&&(l.current=!1,e())},[t,e]),{onFocus:a.useCallback(()=>{l.current=!0},[]),onBlur:a.useCallback(()=>{l.current=!1},[])}}(eq().focus,r)})}let eJ=J("navigation",function({render:{buttonPrev:e,buttonNext:t,iconPrev:l,iconNext:n},styles:o}){let{prev:r,next:i,subscribeSensors:u}=eq(),{prevDisabled:s,nextDisabled:d}=eZ();return!function(e){var t;let l=eO(),{publish:n}=eu(),{animation:o}=eg(),{prevDisabled:r,nextDisabled:i}=eZ(),u=(null!=(t=o.navigation)?t:o.swipe)/2,s=ez(()=>n(w),u),d=ez(()=>n(C),u),g=eL(e=>{switch(e.key){case"Escape":n(S);break;case"ArrowLeft":(l?i:r)||(l?d:s)();break;case"ArrowRight":(l?r:i)||(l?s:d)()}});a.useEffect(()=>e(E,g),[e,g])}(u),a.createElement(a.Fragment,null,e?e():a.createElement(eY,{label:"Previous",action:w,icon:eF,renderIcon:l,style:o.navigationPrev,disabled:s,onClick:r}),t?t():a.createElement(eY,{label:"Next",action:C,icon:eM,renderIcon:n,style:o.navigationNext,disabled:d,onClick:i}))}),eQ=D("no_scroll"),e0=D(v);function e1(e,t,l){let n=window.getComputedStyle(e),o=l?"padding-left":"padding-right",r=l?n.paddingLeft:n.paddingRight,i=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(q(r)||0)+t}px`),()=>{i?e.style.setProperty(o,i):e.style.removeProperty(o)}}let e2=J("no-scroll",function({noScroll:{disabled:e},children:t}){let l=eO(),{getOwnerDocument:n,getOwnerWindow:o}=er();return a.useEffect(()=>{if(e)return()=>{};let t=[],r=o(),{body:i,documentElement:a}=n(),u=Math.round(r.innerWidth-a.clientWidth);if(u>0){t.push(e1(i,u,l));let e=i.getElementsByTagName("*");for(let n=0;n<e.length;n+=1){let o=e[n];"style"in o&&"fixed"===r.getComputedStyle(o).getPropertyValue("position")&&!o.classList.contains(e0)&&t.push(e1(o,u,l))}}return i.classList.add(eQ),()=>{i.classList.remove(eQ),t.forEach(e=>e())}},[l,e,n,o]),a.createElement(a.Fragment,null,t)});function e4(e,t,l){let n=e.getAttribute(t);return e.setAttribute(t,l),()=>{n?e.setAttribute(t,n):e.removeAttribute(t)}}let e5=J(d,function({children:e,animation:t,styles:l,className:n,on:o,portal:r,close:i,labels:u}){let[s,g]=a.useState(!1),[c,m]=a.useState(!1),p=a.useRef([]),f=a.useRef(null),{setTimeout:h}=eC(),{subscribe:b}=eu(),w=eN()?0:t.fade;a.useEffect(()=>(g(!0),()=>{g(!1),m(!1)}),[]);let C=eL(()=>{p.current.forEach(e=>e()),p.current=[]}),x=eL(()=>{var e;m(!1),C(),null==(e=o.exiting)||e.call(o),h(()=>{var e;null==(e=o.exited)||e.call(o),i()},w)});a.useEffect(()=>b(S,x),[b,x]);let R=eL(e=>{var t,l,n;e.scrollTop,m(!0),null==(t=o.entering)||t.call(o);let r=null!=(n=null==(l=e.parentNode)?void 0:l.children)?n:[];for(let t=0;t<r.length;t+=1){let l=r[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(l.tagName)&&l!==e&&(p.current.push(e4(l,"inert","")),p.current.push(e4(l,"aria-hidden","true")))}p.current.push(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.focus)||t.call(e)}),h(()=>{var e;null==(e=o.entered)||e.call(o)},w)}),y=a.useCallback(e=>{e?R(e):C()},[R,C]);return s?(0,_.createPortal)(a.createElement(eT,{ref:y,className:A(n,D(z(d,void 0)),D(v),c&&D(z(d,"open"))),"aria-modal":!0,role:"dialog","aria-label":H(u,"Lightbox"),style:{...t.fade!==Y.animation.fade?{[O("fade_animation_duration")]:`${w}ms`}:null,...t.easing.fade!==Y.animation.easing.fade?{[O("fade_animation_timing_function")]:t.easing.fade}:null,...l.root},onFocus:e=>{f.current||(f.current=e.relatedTarget)}},e),r.root||document.body):null}),e3=J("root",function({children:e}){return a.createElement(a.Fragment,null,e)}),e6=J(g,function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:l},styles:n}){let{close:o,setToolbarWidth:r}=eq(),{setContainerRef:i,containerRect:u}=eV();return eI(()=>{r(null==u?void 0:u.width)},[r,null==u?void 0:u.width]),a.createElement("div",{ref:i,style:n.toolbar,className:D(z(g,void 0))},null==e?void 0:e.map(e=>e===S?t?t():a.createElement(eS,{key:S,label:"Close",icon:ey,renderIcon:l,onClick:o}):e))});function e9({carousel:e,animation:t,render:l,toolbar:n,controller:o,noScroll:r,on:i,plugins:u,slides:d,index:g,...c}){let{animation:m,carousel:p,render:f,toolbar:h,controller:v,noScroll:b,on:w,slides:C,index:x,plugins:S,...R}=Y,{config:y,augmentation:F}=function(e,t=[],l=[]){let n=e,o=e=>{let t=[...n];for(;t.length>0;){let l=t.pop();if((null==l?void 0:l.module.name)===e)return!0;
4(null==l?void 0:l.children)&&t.push(...l.children)}return!1},r=(e,t)=>{if(""===e){n=[Q(t,n)];return}n=ee(n,e,e=>[Q(t,[e])])},i=(e,t)=>{n=ee(n,e,e=>[Q(e.module,[Q(t,e.children)])])},a=(e,t,l)=>{n=ee(n,e,e=>{var n;return[Q(e.module,[...l?[Q(t)]:[],...null!=(n=e.children)?n:[],...l?[]:[Q(t)]])]})},u=(e,t,l)=>{n=ee(n,e,e=>[...l?[Q(t)]:[],e,...l?[]:[Q(t)]])},d=e=>{i(s,e)},g=(e,t)=>{n=ee(n,e,e=>[Q(t,e.children)])},c=e=>{n=ee(n,e,e=>e.children)},m=e=>{l.push(e)};return t.forEach(e=>{e({contains:o,addParent:r,append:i,addChild:a,addSibling:u,addModule:d,replace:g,remove:c,augment:m})}),{config:n,augmentation:e=>l.reduce((e,t)=>t(e),e)}}([Q(e5,[Q(e2,[Q(eU,[Q(eK),Q(e6),Q(eJ)])])])],u||S),M=F({animation:function(e,t={}){let{easing:l,...n}=e,{easing:o,...r}=t;return{easing:{...l,...o},...n,...r}}(m,t),carousel:{...p,...e},render:{...f,...l},toolbar:{...h,...n},controller:{...v,...o},noScroll:{...b,...r},on:{...w,...i},...R,...c});return M.open?a.createElement(ec,{...M},a.createElement(eb,{slides:d||C,index:q(g||x)},a.createElement(ex,null,a.createElement(es,null,a.createElement(en,null,function e(t,l){var n;return a.createElement(t.module.component,{key:t.module.name,...l},null==(n=t.children)?void 0:n.map(t=>e(t,l)))}(Q(e3,y),M)))))):null}var e8=e.i(760207);e.s(["GalleryBlock",0,({className:e,content:t,media:l,backgroundColour:n})=>{let[o,u]=(0,a.useState)(!1),[s,d]=(0,a.useState)(0),g=(0,a.useMemo)(()=>l&&0!==l.length?l.map(e=>{let t;if(!e||"object"!=typeof e||!e.url)return null;let l=e.sizes;return l&&"object"==typeof l&&(t=Object.values(l).filter(e=>e&&e.url).map(e=>({src:e.url,width:e.width,height:e.height}))),{src:e.url,alt:e.alt||"",width:e.width||void 0,height:e.height||void 0,srcSet:t}}).filter(Boolean):[],[l]);return(0,r.jsx)("div",{className:(0,i.cn)("white"===n&&"bg-white w-full text-eurogoosBlue","blue"===n&&"bg-eurogoosBlue text-white w-full","grey"===n&&"bg-gray-200 w-full text-eurogoosBlue"),children:(0,r.jsxs)("div",{className:"container mx-auto py-16",children:[t&&(0,r.jsx)(e8.default,{data:t,enableGutter:!1,enableProse:!0}),l&&l.length>0&&(0,r.jsx)("div",{className:"mt-8 grid gap-6 grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6",children:l.map((e,t)=>e&&"object"==typeof e&&e.url?(0,r.jsx)("button",{type:"button",onClick:()=>{d(t),u(!0)},className:"group block focus:outline-none","aria-label":e.alt||"Open image",children:(0,r.jsx)("img",{src:e.sizes?.square?.url||e.url,alt:e.alt||"",className:"w-full h-auto object-cover grayscale transition group-hover:scale-105 group-hover:grayscale-0 ease-in-out duration-700"})},e.id??t):null)}),(0,r.jsx)(e9,{open:o,close:()=>u(!1),index:s,slides:g})]})})}],247602)},704038,e=>{"use strict";e.i(589775);var t=e.i(40438),l=e.i(530941),n=e.i(116414);e.i(957028);var o=e.i(481365),r=e.i(687471),i=e.i(368461),a=e.i(53771),u=e.i(698044),s=e.i(519455),d=e.i(639076);e.s(["MembersMap",0,e=>{let[g,c]=(0,n.useState)(null),{className:m,location:p,zoom:f,content:h,showPopup:v,members:b}=e;return(0,t.jsx)("div",{className:(0,l.cn)("mx-auto w-full h-[500px] lg:h-[700px] overflow-visible",m),children:(0,t.jsxs)(o.default,{initialViewState:{latitude:47.7429943,longitude:5.1980897,zoom:3,pitch:20},scrollZoom:!1,projection:"globe",mapStyle:"mapbox://styles/mapbox/standard",config:{basemap:{showPedestrianRoads:!1,showPlaceLabels:!1,showPointOfInterestLabels:!1,showRoadLabels:!1,showTransitLabels:!1,show3dObjects:!1,showLandmarkIconLabels:!1,theme:"monochrome"}},mapboxAccessToken:"pk.eyJ1Ijoiam9ubnlqZ29kZGFyZCIsImEiOiJjbTlqbmNqNWMwNmN0MmlzZ3EyMG9vc3B4In0.1qZZrgmWBoENIEuLy4cHVA",children:[(0,t.jsx)(i.NavigationControl,{position:"top-left"}),g&&(0,t.jsx)(a.Popup,{anchor:"bottom",longitude:Number(g.longitude),latitude:Number(g.latitude),onClose:()=>c(null),closeOnClick:!1,maxWidth:"200",children:(0,t.jsxs)("div",{className:"p-4 max-w-[300px]",children:[(0,t.jsx)("img",{className:"max-w-[100px] mb-3",src:g?.logo,alt:g?.name}),(0,t.jsx)("h5",{className:"text-base leading-1 text-eurogoosBlue font-semibold",children:g?.name}),(0,t.jsx)(d.default,{href:`/member/${g?.slug}`,children:(0,t.jsx)(s.Button,{size:"sm",className:"outline-0 ring-0 mt-3",children:"View Member"})})]})}),b&&b.map(e=>e.location&&2===e.location.length&&(0,t.jsx)(r.Marker,{longitude:e.location[1],latitude:e.location[0],anchor:"bottom",onClick:()=>c({name:e.name,slug:e.slug,logo:e.logo.url,longitude:e.location[1],latitude:e.location[0]}),children:(0,t.jsx)(u.default,{})}))]})})}])},357806,e=>{"use strict";var t=e.i(40438),l=e.i(116414);function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}function o(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function r(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};
4t%2?o(Object(l),!0).forEach(function(t){var n,o,r;n=e,o=t,r=l[t],o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}class i extends l.default.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})):this.reCalculateColumnCount()}reCalculateColumnCount(){let e=window&&window.innerWidth||1/0,t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let l=1/0,n=t.default||2;for(let o in t){let r=parseInt(o);r>0&&e<=r&&r<l&&(l=r,n=t[o])}n=Math.max(1,parseInt(n)||1),this.state.columnCount!==n&&this.setState({columnCount:n})}itemsInColumns(){let e=this.state.columnCount,t=Array(e),n=l.default.Children.toArray(this.props.children);for(let l=0;l<n.length;l++){let o=l%e;t[o]||(t[o]=[]),t[o].push(n[l])}return t}renderColumns(){let{column:e,columnAttrs:t={},columnClassName:o}=this.props,i=this.itemsInColumns(),a=`${100/i.length}%`,u=o;u&&"string"!=typeof u&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===u&&(u="my-masonry-grid_column"));let s=r(r(r({},e),t),{},{style:r(r({},t.style),{},{width:a}),className:u});return i.map((e,t)=>l.default.createElement("div",n({},s,{key:t}),e))}logDeprecated(e){console.error("[Masonry]",e)}render(){let e=this.props,{children:t,breakpointCols:o,columnClassName:r,columnAttrs:i,column:a,className:u}=e,s=function(e,t){if(null==e)return{};var l,n,o=function(e,t){if(null==e)return{};var l,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)l=r[n],t.indexOf(l)>=0||(o[l]=e[l]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)l=r[n],!(t.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(o[l]=e[l])}return o}(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),d=u;return"string"!=typeof u&&(this.logDeprecated('The property "className" requires a string'),void 0===u&&(d="my-masonry-grid")),l.default.createElement("div",n({},s,{className:d}),this.renderColumns())}}i.defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};var a=e.i(639076),u=e.i(760207),s=e.i(849307),d=e.i(946178);e.s(["default",0,({items:e})=>{let[n,o]=(0,l.useState)([]),r=(0,l.useMemo)(()=>Array.from(new Set((e||[]).flatMap(e=>(e.categories||[]).map(e=>(e.title||"").trim())).filter(Boolean))).sort((e,t)=>e.localeCompare(t)),[e]),g=(0,l.useMemo)(()=>n.length?(e||[]).filter(e=>(e.categories||[]).map(e=>(e.title||"").trim()).some(e=>n.includes(e))):e,[e,n]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6 mt-5 flex flex-wrap items-center justify-center mx-auto gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>o([]),"aria-pressed":0===n.length,className:`px-3 py-1.5 border transition-colors ease-in-out ${0===n.length?"bg-white text-eurogoosBlue border-eurogoosBlue":"text-white border-eurogoosBlue/30"}`,children:"All"}),r.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{o(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},"aria-pressed":n.includes(e),className:`px-3 py-1.5 border transition-colors ease-in-out ${n.includes(e)?"bg-white text-eurogoosBlue border-eurogoosBlue":"text-white border-eurogoosBlue/30"}`,children:e},e))]}),(0,t.jsx)(i,{breakpointCols:{default:3,700:2,500:1},className:"masonry-grid pb-8",columnClassName:"masonry-grid-column",children:g.map(e=>(0,t.jsx)(s.AnimatePresence,{children:(0,t.jsx)(d.motion.div,{initial:{opacity:0,scale:0}
4,animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:{duration:.3},children:(0,t.jsx)(a.default,{href:`${e.link}`,target:"_blank",className:"mb-8 h-full group justify-stretch bg-white drop-shadow cursor-pointer flex flex-col text-eurogoosBlue",children:(0,t.jsxs)("div",{className:"w-full flex flex-col justify-between",children:[(0,t.jsx)("div",{className:"w-full flex justify-center",children:(0,t.jsx)("img",{src:e?.image?.url,alt:e?.image?.alt||e.name,className:"object-cover object-center w-full max-w-full h-auto"})}),(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("h3",{className:"text-xl mb-2 text-eurogoosBlue font-semibold",children:e.name}),(0,t.jsx)(u.default,{data:e.description,disableLinks:!0})]})]})})},"box")},e.id))})]})}],357806)},99318,e=>{"use strict";var t=e.i(40438),l=e.i(116414),n=e.i(760207),o=e.i(397337),r=e.i(721733),i=e.i(287105),a=e.i(568932),u=e.i(814140),s=e.i(391684);e.s(["HomeHero",0,({pageTitle:e,media:d,leftColumn:g,rightTopColumn:c,rightBottomColumn:m,videoUrl:p,headerStyle:f})=>{let h={root:{type:"root",version:1,direction:"ltr",format:"",indent:0,children:[{type:"paragraph",version:1,direction:"ltr",format:"",indent:0,textFormat:0,children:[{type:"text",version:1,text:"",detail:0,format:0,mode:"normal",style:""}]}]}},[v,b]=(0,l.useState)([]);return(0,l.useEffect)(()=>{let e=[];d&&d.length>0?(d.map(t=>{t&&"object"==typeof t&&e.push({src:(0,s.rewriteImageUrl)(t.url),alt:t.alt||""})}),b(e)):b([])},[d]),(0,t.jsxs)("div",{className:"pb-16 pt-[calc(124px+64px)] mt-[-124px] relative z-10 text-eurogoosBlue",children:[(0,t.jsx)("div",{className:"absolute inset-0 -z-10 overflow-hidden",children:"video"===f?(0,t.jsx)(i.default,{wistiaId:p,start:10,end:145,poster:"/images/slide-thin-1.jpg"}):(0,t.jsxs)(t.Fragment,{children:[v&&v.length>1&&(0,t.jsx)(r.default,{images:v,durationSeconds:6,zoomAmount:.16,direction:"right"}),v&&1===v.length&&(0,t.jsx)("div",{className:"relative z-0 w-full h-full bg-eurogoosBlue",children:(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute z-10 bg-[url(/images/noiseTexture.png)] w-full h-full bg-repeat bg-[length:100px_100px]"}),(0,t.jsx)("div",{className:"pointer-events-none absolute z-10  inset-0",style:{background:"radial-gradient(60% 60% at 50% 50%, rgba(20, 22, 57,0) 60%, rgba(20, 22, 57,0.68) 100%)"}}),(0,t.jsx)(u.default,{src:v[0]?.src||"",alt:v[0]?.alt||"",fill:!0,quality:90,priority:!0,className:"pointer-events-none select-none",sizes:"100vw",style:{objectFit:"cover",objectPosition:"center"}})]})})]})}),(0,t.jsx)("div",{className:"container mx-auto",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 h-full homeHero",children:[(0,t.jsx)("div",{className:"h-full col-span-1 flex flex-col justify-stretch bg-white border-white border bg-opacity-80 p-6",children:(0,t.jsx)(n.default,{data:(0,o.isRichTextEmpty)(g)?h:g,enableProse:!0})}),(0,t.jsxs)("div",{className:"h-full col-span-1 flex flex-col justify-stretch",children:[(0,t.jsx)("div",{className:"h-1/2 col-span-1 mb-3 flex flex-col justify-stretch bg-white border-white border bg-opacity-80 p-6",children:(0,t.jsx)(n.default,{data:(0,o.isRichTextEmpty)(c)?h:c,enableProse:!0})}),(0,t.jsx)("div",{className:"h-1/2 col-span-1 mt-3 flex flex-col justify-stretch bg-white border-white border bg-opacity-80 p-6",children:(0,t.jsx)(n.default,{data:(0,o.isRichTextEmpty)(m)?h:m,enableProse:!0})})]})]})}),(0,t.jsx)("div",{className:"mt-16 w-full flex justify-center",children:(0,t.jsx)(a.default,{})})]})}])},880521,e=>{"use strict";var t=e.i(40438),l=e.i(116414),n=e.i(721733),o=e.i(287105),r=e.i(568932),i=e.i(814140),a=e.i(391684);e.s(["TitleHero",0,({pageTitle:e,subTitle:u,media:s,videoUrl:d,headerStyle:g})=>{let[c,m]=(0,l.useState)([]);return(0,l.useEffect)(()=>{let e=[];s&&s.length>0?(s.map(t=>{t&&"object"==typeof t&&e.push({src:(0,a.rewriteImageUrl)(t.url),alt:t.alt||""})}),m(e)):m([])},[s]),(0,t.jsxs)("div",{className:"pb-16 pt-[calc(124px+64px)] mt-[-124px] relative z-10 text-eurogoosBlue",children:[(0,t.jsx)("div",{className:"absolute inset-0 -z-10 overflow-hidden",children:"video"===g?(0,t.jsx)(o.default,{wistiaId:d,start:10,end:145,poster:"/images/slide-thin-1.jpg"}):(0,t.jsxs)(t.Fragment,{children:[c&&c.length>1&&(0,t.jsx)(n.default,{images:c,durationSeconds:6,zoomAmount:.16,direction:"right"}),c&&1===c.length&&(0,t.jsx)("div",{className:"relative z-0 w-full h-full bg-eurogoosBlue",children:(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute z-10 bg-[url(/images/noiseTexture.png)] w-full h-full bg-repeat bg-[length:100px_100px]"}),(0,t.jsx)("div",{className:"pointer-events-none absolute z-10  inset-0",style:{background:"radial-gradient(60% 60% at 50% 50%, rgba(20, 22, 57,0) 60%, rgba(20, 22, 57,0.68) 100%)"}}),(0,t.jsx)(i.default,{src:c[0]?.src||"",alt:c[0]?.alt||"",fill:!0,quality:90,priority:!0,className:"pointer-events-none select-none",sizes:"100vw",style:{objectFit:"cover",objectPosition:"center"}})]})})]})}),(0,t.jsx)("div",{className:"container mx-auto",children:(0,t.jsxs)("div",{className:"text-white h-full py-8 md:py-12 homeHero text-center mx-auto max-w-screen-lg",children:[(0,t.jsx)("h1",{className:"text-4xl lg:text-7xl font-semibold drop-shadow-lg",children:e}),u&&(0,t.jsx)("h2",{className:"text-lg mt-6 lg:text-2xl font-extralight drop-shadow-lg",children:u})]})}
4),(0,t.jsx)("div",{className:"mt-16 w-full flex justify-center",children:(0,t.jsx)(r.default,{})})]})}])},776639,e=>{"use strict";var t=e.i(40438),l=e.i(116414),n=e.i(399026),o=e.i(596816),r=e.i(530941);let i=n.Root,a=n.Trigger,u=n.Portal,s=n.Close,d=l.forwardRef(({className:e,...l},o)=>(0,t.jsx)(n.Overlay,{ref:o,className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...l}));d.displayName=n.Overlay.displayName;let g=l.forwardRef(({className:e,children:l,...i},a)=>(0,t.jsxs)(u,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(n.Content,{ref:a,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...i,children:[l,(0,t.jsxs)(n.Close,{className:"absolute right-4 top-4 roun
4ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(o.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));g.displayName=n.Content.displayName;let c=({className:e,...l})=>(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...l});c.displayName="DialogHeader";let m=({className:e,...l})=>(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...l});m.displayName="DialogFooter";let p=l.forwardRef(({className:e,...l},o)=>(0,t.jsx)(n.Title,{ref:o,className:(0,r.cn)("text-lg font-semibold leading-none tracking-tight",e),...l}));p.displayName=n.Title.displayName;let f=l.forwardRef(({className:e,...l},o)=>(0,t.jsx)(n.Description,{ref:o,className:(0,r.cn)("text-sm text-muted-foreground",e),...l}));f.displayName=n.Description.displayName,e.s(["Dialog",0,i,"DialogClose",0,s,"DialogContent",0,g,"DialogDescription",0,f,"DialogFooter",0,m,"DialogHeader",0,c,"DialogOverlay",0,d,"DialogPortal",0,u,"DialogTitle",0,p,"DialogTrigger",0,a])}]);

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.