(()=>{var e={4792:(e,t,n)=>{"use strict";var r=n(9819),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),h=u(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||s&&s[v])){var b=p(n,v);try{l(t,v,b)}catch(e){}}}}return t}},6560:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case h:case u:return e;default:return t}}case o:return t}}}function S(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||_(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===h},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},9819:(e,t,n)=>{"use strict";e.exports=n(6560)},9115:function(e,t,n){!function(e,t){"use strict";function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var s={init:"init"},u=function(e){var t=e.value;return void 0===t?"":t},l=function(){return t.createElement(t.Fragment,null," ")},c={Cell:u,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){var n=t.style,r=t.className;return e=o({},e,{},i(t,["style","className"])),n&&(e.style=e.style?o({},e.style||{},{},n||{}):n),r&&(e.className=e.className?e.className+" "+r:r),""===e.className&&delete e.className,e}),{})}var p=function(e,t){return void 0===t&&(t={}),function(n){return void 0===n&&(n={}),[].concat(e,[n]).reduce((function(e,r){return function e(t,n,r){return"function"==typeof n?e({},n(t,r)):Array.isArray(n)?d.apply(void 0,[t].concat(n)):d(t,n)}(e,r,o({},t,{userProps:n}))}),{})}},f=function(e,t,n,r){return void 0===n&&(n={}),e.reduce((function(e,t){return t(e,n)}),t)},m=function(e,t,n){return void 0===n&&(n={}),e.forEach((function(e){e(t,n)}))};function h(e,t,n,r){e.findIndex((function(e){return e.pluginName===n})),t.forEach((function(t){e.findIndex((function(e){return e.pluginName===t}))}))}function g(e,t){return"function"==typeof e?e(t):e}function v(e){var n=t.useRef();return n.current=e,t.useCallback((function(){return n.current}),[])}var b="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function y(e,n){var r=t.useRef(!1);b((function(){r.current&&e(),r.current=!0}),n)}function w(e,t,n){return void 0===n&&(n={}),function(r,i){void 0===i&&(i={});var a="string"==typeof r?t[r]:r;if(void 0===a)throw console.info(t),new Error("Renderer Error ☝️");return _(a,o({},e,{column:t},n,{},i))}}function _(e,n){return function(e){return"function"==typeof e&&(t=Object.getPrototypeOf(e)).prototype&&t.prototype.isReactComponent;var t}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?t.createElement(e,n):e;var r}function S(e,t,n){return void 0===n&&(n=0),e.map((function(e){return R(e=o({},e,{parent:t,depth:n})),e.columns&&(e.columns=S(e.columns,e,n+1)),e}))}function C(e){return I(e,"columns")}function R(e){var t=e.id,n=e.accessor,r=e.Header;if("string"==typeof n){t=t||n;var o=n.split(".");n=function(e){return function(e,t,n){if(!t)return e;var r,o="function"==typeof t?t:JSON.stringify(t),i=E.get(o)||function(){var e=function(e){return function e(t,n){if(void 0===n&&(n=[]),Array.isArray(t))for(var r=0;r<t.length;r+=1)e(t[r],n);else n.push(t);return n}(e).map((function(e){return String(e).replace(".","_")})).join(".").replace(A,".").replace(D,"").split(".")}(t);return E.set(o,e),e}();try{r=i.reduce((function(e,t){return e[t]}),e)}catch(e){}return void 0!==r?r:void 0}(e,o)}}if(!t&&"string"==typeof r&&r&&(t=r),!t&&e.columns)throw console.error(e),new Error('A column ID (or unique "Header" value) is required!');if(!t)throw console.error(e),new Error("A column ID (or string accessor) is required!");return Object.assign(e,{id:t,accessor:n}),e}function x(e,t){if(!t)throw new Error;return Object.assign(e,o({Header:l,Footer:l},c,{},t,{},e)),Object.assign(e,{originalWidth:e.width}),e}var E=new Map;function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0;r<t.length;r+=1)if(void 0!==t[r])return t[r]}function P(e){if("function"==typeof e)return e}function I(e,t){var n=[];return function e(r){r.forEach((function(r){r[t]?e(r[t]):n.push(r)}))}(e),n}function k(e,t){var n=t.manualExpandedKey,r=t.expanded,o=t.expandSubRows,i=void 0===o||o,a=[];return e.forEach((function(e){return function e(t,o){void 0===o&&(o=!0),t.isExpanded=t.original&&t.original[n]||r[t.id],t.canExpand=t.subRows&&!!t.subRows.length,o&&a.push(t),t.subRows&&t.subRows.length&&t.isExpanded&&t.subRows.forEach((function(t){return e(t,i)}))}(e)})),a}function F(e,t,n){return P(e)||t[e]||n[e]||n.text}function M(e,t,n){return e?e(t,n):void 0===t}function T(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var L=null,A=/\[/g,D=/\]/g,V=function(e){return o({role:"table"},e)},B=function(e){return o({role:"rowgroup"},e)},H=function(e,t){var n=t.column;return o({key:"header_"+n.id,colSpan:n.totalVisibleHeaderCount,role:"columnheader"},e)},z=function(e,t){var n=t.column;return o({key:"footer_"+n.id,colSpan:n.totalVisibleHeaderCount},e)},N=function(e,t){return o({key:"headerGroup_"+t.index,role:"row"},e)},G=function(e,t){return o({key:"footerGroup_"+t.index},e)},j=function(e,t){return o({key:"row_"+t.row.id,role:"row"},e)},W=function(e,t){var n=t.cell;return o({key:"cell_"+n.row.id+"_"+n.column.id,role:"cell"},e)};function $(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[V],getTableBodyProps:[B],getHeaderGroupProps:[N],getFooterGroupProps:[G],getHeaderProps:[H],getFooterProps:[z],getRowProps:[j],getCellProps:[W],useFinalInstance:[]}}s.resetHiddenColumns="resetHiddenColumns",s.toggleHideColumn="toggleHideColumn",s.setHiddenColumns="setHiddenColumns",s.toggleHideAllColumns="toggleHideAllColumns";var U=function(e){e.getToggleHiddenProps=[q],e.getToggleHideAllColumnsProps=[X],e.stateReducers.push(Q),e.useInstanceBeforeDimensions.push(Y),e.headerGroupsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.hiddenColumns])})),e.useInstance.push(K)};U.pluginName="useColumnVisibility";var q=function(e,t){var n=t.column;return[e,{onChange:function(e){n.toggleHidden(!e.target.checked)},style:{cursor:"pointer"},checked:n.isVisible,title:"Toggle Column Visible"}]},X=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleHideAllColumns(!e.target.checked)},style:{cursor:"pointer"},checked:!n.allColumnsHidden&&!n.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!n.allColumnsHidden&&n.state.hiddenColumns.length}]};function Q(e,t,n,r){if(t.type===s.init)return o({hiddenColumns:[]},e);if(t.type===s.resetHiddenColumns)return o({},e,{hiddenColumns:r.initialState.hiddenColumns||[]});if(t.type===s.toggleHideColumn){var i=(void 0!==t.value?t.value:!e.hiddenColumns.includes(t.columnId))?[].concat(e.hiddenColumns,[t.columnId]):e.hiddenColumns.filter((function(e){return e!==t.columnId}));return o({},e,{hiddenColumns:i})}return t.type===s.setHiddenColumns?o({},e,{hiddenColumns:g(t.value,e.hiddenColumns)}):t.type===s.toggleHideAllColumns?o({},e,{hiddenColumns:(void 0!==t.value?t.value:!e.hiddenColumns.length)?r.allColumns.map((function(e){return e.id})):[]}):void 0}function Y(e){var n=e.headers,r=e.state.hiddenColumns;t.useRef(!1).current;var o=0;n.forEach((function(e){return o+=function e(t,n){t.isVisible=n&&!r.includes(t.id);var o=0;return t.headers&&t.headers.length?t.headers.forEach((function(n){return o+=e(n,t.isVisible)})):o=t.isVisible?1:0,t.totalVisibleHeaderCount=o,o}(e,!0)}))}function K(e){var n=e.columns,r=e.flatHeaders,o=e.dispatch,i=e.allColumns,a=e.getHooks,u=e.state.hiddenColumns,l=e.autoResetHiddenColumns,c=void 0===l||l,d=v(e),f=i.length===u.length,m=t.useCallback((function(e,t){return o({type:s.toggleHideColumn,columnId:e,value:t})}),[o]),h=t.useCallback((function(e){return o({type:s.setHiddenColumns,value:e})}),[o]),g=t.useCallback((function(e){return o({type:s.toggleHideAllColumns,value:e})}),[o]),b=p(a().getToggleHideAllColumnsProps,{instance:d()});r.forEach((function(e){e.toggleHidden=function(t){o({type:s.toggleHideColumn,columnId:e.id,value:t})},e.getToggleHiddenProps=p(a().getToggleHiddenProps,{instance:d(),column:e})}));var w=v(c);y((function(){w()&&o({type:s.resetHiddenColumns})}),[o,n]),Object.assign(e,{allColumnsHidden:f,toggleHideColumn:m,setHiddenColumns:h,toggleHideAllColumns:g,getToggleHideAllColumnsProps:b})}var J={},Z={},ee=function(e,t,n){return e},te=function(e,t){return e.subRows||[]},ne=function(e,t,n){return""+(n?[n.id,t].join("."):t)},re=function(e){return e};function oe(e){var t=e.initialState,n=void 0===t?J:t,r=e.defaultColumn,a=void 0===r?Z:r,s=e.getSubRows,u=void 0===s?te:s,l=e.getRowId,c=void 0===l?ne:l,d=e.stateReducer,p=void 0===d?ee:d,f=e.useControlledState,m=void 0===f?re:f;return o({},i(e,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:n,defaultColumn:a,getSubRows:u,getRowId:c,stateReducer:p,useControlledState:m})}function ie(e,t){void 0===t&&(t=0);var n=0,r=0,o=0,i=0;return e.forEach((function(e){var a=e.headers;if(e.totalLeft=t,a&&a.length){var s=ie(a,t),u=s[0],l=s[1],c=s[2],d=s[3];e.totalMinWidth=u,e.totalWidth=l,e.totalMaxWidth=c,e.totalFlexWidth=d}else e.totalMinWidth=e.minWidth,e.totalWidth=Math.min(Math.max(e.minWidth,e.width),e.maxWidth),e.totalMaxWidth=e.maxWidth,e.totalFlexWidth=e.canResize?e.totalWidth:0;e.isVisible&&(t+=e.totalWidth,n+=e.totalMinWidth,r+=e.totalWidth,o+=e.totalMaxWidth,i+=e.totalFlexWidth)})),[n,r,o,i]}function ae(e){var t=e.data,n=e.rows,r=e.flatRows,o=e.rowsById,i=e.column,a=e.getRowId,s=e.getSubRows,u=e.accessValueHooks,l=e.getInstance;t.forEach((function(e,c){return function e(n,c,d,p,m){void 0===d&&(d=0);var h=n,g=a(n,c,p),v=o[g];if(v)v.subRows&&v.originalSubRows.forEach((function(t,n){return e(t,n,d+1,v)}));else if((v={id:g,original:h,index:c,depth:d,cells:[{}]}).cells.map=T,v.cells.filter=T,v.cells.forEach=T,v.cells[0].getCellProps=T,v.values={},m.push(v),r.push(v),o[g]=v,v.originalSubRows=s(n,c),v.originalSubRows){var b=[];v.originalSubRows.forEach((function(t,n){return e(t,n,d+1,v,b)})),v.subRows=b}i.accessor&&(v.values[i.id]=i.accessor(n,c,v,m,t)),v.values[i.id]=f(u,v.values[i.id],{row:v,column:i,instance:l()})}(e,c,0,void 0,n)}))}s.resetExpanded="resetExpanded",s.toggleRowExpanded="toggleRowExpanded",s.toggleAllRowsExpanded="toggleAllRowsExpanded";var se=function(e){e.getToggleAllRowsExpandedProps=[ue],e.getToggleRowExpandedProps=[le],e.stateReducers.push(ce),e.useInstance.push(de),e.prepareRow.push(pe)};se.pluginName="useExpanded";var ue=function(e,t){var n=t.instance;return[e,{onClick:function(e){n.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},le=function(e,t){var n=t.row;return[e,{onClick:function(){n.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function ce(e,t,n,r){if(t.type===s.init)return o({expanded:{}},e);if(t.type===s.resetExpanded)return o({},e,{expanded:r.initialState.expanded||{}});if(t.type===s.toggleAllRowsExpanded){var u=t.value,l=r.rowsById,c=Object.keys(l).length===Object.keys(e.expanded).length;if(void 0!==u?u:!c){var d={};return Object.keys(l).forEach((function(e){d[e]=!0})),o({},e,{expanded:d})}return o({},e,{expanded:{}})}if(t.type===s.toggleRowExpanded){var p,f=t.id,m=t.value,h=e.expanded[f],g=void 0!==m?m:!h;if(!h&&g)return o({},e,{expanded:o({},e.expanded,(p={},p[f]=!0,p))});if(h&&!g){var v=e.expanded;return v[f],o({},e,{expanded:i(v,[f].map(a))})}return e}}function de(e){var n=e.data,r=e.rows,o=e.rowsById,i=e.manualExpandedKey,a=void 0===i?"expanded":i,u=e.paginateExpandedRows,l=void 0===u||u,c=e.expandSubRows,d=void 0===c||c,f=e.autoResetExpanded,m=void 0===f||f,g=e.getHooks,b=e.plugins,w=e.state.expanded,_=e.dispatch;h(b,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var S=v(m),C=Boolean(Object.keys(o).length&&Object.keys(w).length);C&&Object.keys(o).some((function(e){return!w[e]}))&&(C=!1),y((function(){S()&&_({type:s.resetExpanded})}),[_,n]);var R=t.useCallback((function(e,t){_({type:s.toggleRowExpanded,id:e,value:t})}),[_]),x=t.useCallback((function(e){return _({type:s.toggleAllRowsExpanded,value:e})}),[_]),E=t.useMemo((function(){return l?k(r,{manualExpandedKey:a,expanded:w,expandSubRows:d}):r}),[l,r,a,w,d]),O=t.useMemo((function(){return function(e){var t=0;return Object.keys(e).forEach((function(e){var n=e.split(".");t=Math.max(t,n.length)})),t}(w)}),[w]),P=v(e),I=p(g().getToggleAllRowsExpandedProps,{instance:P()});Object.assign(e,{preExpandedRows:r,expandedRows:E,rows:E,expandedDepth:O,isAllRowsExpanded:C,toggleRowExpanded:R,toggleAllRowsExpanded:x,getToggleAllRowsExpandedProps:I})}function pe(e,t){var n=t.instance.getHooks,r=t.instance;e.toggleRowExpanded=function(t){return r.toggleRowExpanded(e.id,t)},e.getToggleRowExpandedProps=p(n().getToggleRowExpandedProps,{instance:r,row:e})}var fe=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return String(r).toLowerCase().includes(String(n).toLowerCase())}))}))};fe.autoRemove=function(e){return!e};var me=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r).toLowerCase()===String(n).toLowerCase()}))}))};me.autoRemove=function(e){return!e};var he=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r)===String(n)}))}))};he.autoRemove=function(e){return!e};var ge=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t].includes(n)}))}))};ge.autoRemove=function(e){return!e||!e.length};var ve=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.every((function(e){return r.includes(e)}))}))}))};ve.autoRemove=function(e){return!e||!e.length};var be=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.some((function(e){return r.includes(e)}))}))}))};be.autoRemove=function(e){return!e||!e.length};var ye=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return n.includes(r)}))}))};ye.autoRemove=function(e){return!e||!e.length};var we=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]===n}))}))};we.autoRemove=function(e){return void 0===e};var _e=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]==n}))}))};_e.autoRemove=function(e){return null==e};var Se=function(e,t,n){var r=n||[],o=r[0],i=r[1];if((o="number"==typeof o?o:-1/0)>(i="number"==typeof i?i:1/0)){var a=o;o=i,i=a}return e.filter((function(e){return t.some((function(t){var n=e.values[t];return n>=o&&n<=i}))}))};Se.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var Ce=Object.freeze({__proto__:null,text:fe,exactText:me,exactTextCase:he,includes:ge,includesAll:ve,includesSome:be,includesValue:ye,exact:we,equals:_e,between:Se});s.resetFilters="resetFilters",s.setFilter="setFilter",s.setAllFilters="setAllFilters";var Re=function(e){e.stateReducers.push(xe),e.useInstance.push(Ee)};function xe(e,t,n,r){if(t.type===s.init)return o({filters:[]},e);if(t.type===s.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===s.setFilter){var i=t.columnId,a=t.filterValue,u=r.allColumns,l=r.filterTypes,c=u.find((function(e){return e.id===i}));if(!c)throw new Error("React-Table: Could not find a column with id: "+i);var d=F(c.filter,l||{},Ce),p=e.filters.find((function(e){return e.id===i})),f=g(a,p&&p.value);return M(d.autoRemove,f,c)?o({},e,{filters:e.filters.filter((function(e){return e.id!==i}))}):o({},e,p?{filters:e.filters.map((function(e){return e.id===i?{id:i,value:f}:e}))}:{filters:[].concat(e.filters,[{id:i,value:f}])})}if(t.type===s.setAllFilters){var m=t.filters,h=r.allColumns,v=r.filterTypes;return o({},e,{filters:g(m,e.filters).filter((function(e){var t=h.find((function(t){return t.id===e.id}));return!M(F(t.filter,v||{},Ce).autoRemove,e.value,t)}))})}}function Ee(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.filterTypes,l=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,p=e.disableFilters,f=e.state.filters,m=e.dispatch,h=e.autoResetFilters,g=void 0===h||h,b=t.useCallback((function(e,t){m({type:s.setFilter,columnId:e,filterValue:t})}),[m]),w=t.useCallback((function(e){m({type:s.setAllFilters,filters:e})}),[m]);a.forEach((function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?O(!0!==o&&void 0,!0!==p&&void 0,!0):O(r,d,!1),e.setFilter=function(t){return b(e.id,t)};var i=f.find((function(e){return e.id===t}));e.filterValue=i&&i.value}));var _=t.useMemo((function(){if(l||!f.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=f.reduce((function(e,t){var n=t.id,r=t.value,i=a.find((function(e){return e.id===n}));if(!i)return e;0===o&&(i.preFilteredRows=e);var s=F(i.filter,u||{},Ce);return s?(i.filteredRows=s(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)}),r)).forEach((function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)})),i}(r),e,t]}),[l,f,r,o,i,a,u]),S=_[0],C=_[1],R=_[2];t.useMemo((function(){a.filter((function(e){return!f.find((function(t){return t.id===e.id}))})).forEach((function(e){e.preFilteredRows=S,e.filteredRows=S}))}),[S,f,a]);var x=v(g);y((function(){x()&&m({type:s.resetFilters})}),[m,l?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:S,filteredFlatRows:C,filteredRowsById:R,rows:S,flatRows:C,rowsById:R,setFilter:b,setAllFilters:w})}Re.pluginName="useFilters",s.resetGlobalFilter="resetGlobalFilter",s.setGlobalFilter="setGlobalFilter";var Oe=function(e){e.stateReducers.push(Pe),e.useInstance.push(Ie)};function Pe(e,t,n,r){if(t.type===s.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===s.setGlobalFilter){var a=t.filterValue,u=r.userFilterTypes,l=F(r.globalFilter,u||{},Ce),c=g(a,e.globalFilter);return M(l.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function Ie(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.filterTypes,l=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,p=e.dispatch,f=e.autoResetGlobalFilter,m=void 0===f||f,h=e.disableGlobalFilter,g=t.useCallback((function(e){p({type:s.setGlobalFilter,filterValue:e})}),[p]),b=t.useMemo((function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=F(l,u||{},Ce);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;a.forEach((function(e){var t=e.disableGlobalFilter;e.canFilter=O(!0!==t&&void 0,!0!==h&&void 0,!0)}));var s=a.filter((function(e){return!0===e.canFilter}));return[function r(o){return(o=n(o,s.map((function(e){return e.id})),d)).forEach((function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows})),o}(r),e,t]}),[c,d,l,u,a,r,o,i,h]),w=b[0],_=b[1],S=b[2],C=v(m);y((function(){C()&&p({type:s.resetGlobalFilter})}),[p,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:w,globalFilteredFlatRows:_,globalFilteredRowsById:S,rows:w,flatRows:_,rowsById:S,setGlobalFilter:g,disableGlobalFilter:h})}function ke(e,t){return t.reduce((function(e,t){return e+("number"==typeof t?t:0)}),0)}Oe.pluginName="useGlobalFilter";var Fe=Object.freeze({__proto__:null,sum:ke,min:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e))})),t},max:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.max(t,e))})),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))})),t+".."+n},average:function(e){return ke(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort((function(e,t){return e-t}));return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),Me=[],Te={};s.resetGroupBy="resetGroupBy",s.setGroupBy="setGroupBy",s.toggleGroupBy="toggleGroupBy";var Le=function(e){e.getGroupByToggleProps=[Ae],e.stateReducers.push(De),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.groupBy])})),e.visibleColumns.push(Ve),e.useInstance.push(He),e.prepareRow.push(ze)};Le.pluginName="useGroupBy";var Ae=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function De(e,t,n,r){if(t.type===s.init)return o({groupBy:[]},e);if(t.type===s.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===s.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===s.toggleGroupBy){var i=t.columnId,a=t.value,u=void 0!==a?a:!e.groupBy.includes(i);return o({},e,u?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter((function(e){return e!==i}))})}}function Ve(e,t){var n=t.instance.state.groupBy,r=n.map((function(t){return e.find((function(e){return e.id===t}))})).filter(Boolean),o=e.filter((function(e){return!n.includes(e.id)}));return(e=[].concat(r,o)).forEach((function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)})),e}var Be={};function He(e){var n=e.data,r=e.rows,i=e.flatRows,a=e.rowsById,u=e.allColumns,l=e.flatHeaders,c=e.groupByFn,d=void 0===c?Ne:c,f=e.manualGroupBy,m=e.aggregations,g=void 0===m?Be:m,b=e.plugins,w=e.state.groupBy,_=e.dispatch,S=e.autoResetGroupBy,C=void 0===S||S,R=e.disableGroupBy,x=e.defaultCanGroupBy,E=e.getHooks;h(b,["useColumnOrder","useFilters"],"useGroupBy");var P=v(e);u.forEach((function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?O(t.canGroupBy,!0!==o&&void 0,!0!==R&&void 0,!0):O(t.canGroupBy,r,x,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell}));var k=t.useCallback((function(e,t){_({type:s.toggleGroupBy,columnId:e,value:t})}),[_]),F=t.useCallback((function(e){_({type:s.setGroupBy,value:e})}),[_]);l.forEach((function(e){e.getGroupByToggleProps=p(E().getGroupByToggleProps,{instance:P(),header:e})}));var M=t.useMemo((function(){if(f||!w.length)return[r,i,a,Me,Te,i,a];var e=w.filter((function(e){return u.find((function(t){return t.id===e}))})),t=[],n={},s=[],l={},c=[],p={},m=function r(i,a,f){if(void 0===a&&(a=0),a===e.length)return i.map((function(e){return o({},e,{depth:a})}));var m=e[a],h=d(i,m);return Object.entries(h).map((function(o,i){var d=o[0],h=o[1],v=m+":"+d,b=r(h,a+1,v=f?f+">"+v:v),y=a?I(h,"leafRows"):h,w=function(t,n,r){var o={};return u.forEach((function(i){if(e.includes(i.id))o[i.id]=n[0]?n[0].values[i.id]:null;else{var a="function"==typeof i.aggregate?i.aggregate:g[i.aggregate]||Fe[i.aggregate];if(a){var s=n.map((function(e){return e.values[i.id]})),u=t.map((function(e){var t=e.values[i.id];if(!r&&i.aggregateValue){var n="function"==typeof i.aggregateValue?i.aggregateValue:g[i.aggregateValue]||Fe[i.aggregateValue];if(!n)throw console.info({column:i}),new Error("React Table: Invalid column.aggregateValue option for column listed above");t=n(t,e,i)}return t}));o[i.id]=a(u,s)}else{if(i.aggregate)throw console.info({column:i}),new Error("React Table: Invalid column.aggregate option for column listed above");o[i.id]=null}}})),o}(y,h,a),_={id:v,isGrouped:!0,groupByID:m,groupByVal:d,values:w,subRows:b,leafRows:y,depth:a,index:i};return b.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(s.push(e),l[e.id]=e):(c.push(e),p[e.id]=e)})),_}))}(r);return m.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(s.push(e),l[e.id]=e):(c.push(e),p[e.id]=e)})),[m,t,n,s,l,c,p]}),[f,w,r,i,a,u,g,d]),T=M[0],L=M[1],A=M[2],D=M[3],V=M[4],B=M[5],H=M[6],z=v(C);y((function(){z()&&_({type:s.resetGroupBy})}),[_,f?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:i,preGroupedRowsById:a,groupedRows:T,groupedFlatRows:L,groupedRowsById:A,onlyGroupedFlatRows:D,onlyGroupedRowsById:V,nonGroupedFlatRows:B,nonGroupedRowsById:H,rows:T,flatRows:L,rowsById:A,toggleGroupBy:k,setGroupBy:F})}function ze(e){e.allCells.forEach((function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)}))}function Ne(e,t){return e.reduce((function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e}),{})}var Ge=/([0-9]+)/gm;function je(e,t){return e===t?0:e>t?1:-1}function We(e,t,n){return[e.values[n],t.values[n]]}function $e(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var Ue=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=We(e,t,n),o=r[0],i=r[1];for(o=$e(o),i=$e(i),o=o.split(Ge).filter(Boolean),i=i.split(Ge).filter(Boolean);o.length&&i.length;){var a=o.shift(),s=i.shift(),u=parseInt(a,10),l=parseInt(s,10),c=[u,l].sort();if(isNaN(c[0])){if(a>s)return 1;if(s>a)return-1}else{if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return-1}}return o.length-i.length},datetime:function(e,t,n){var r=We(e,t,n),o=r[0],i=r[1];return je(o=o.getTime(),i=i.getTime())},basic:function(e,t,n){var r=We(e,t,n);return je(r[0],r[1])},string:function(e,t,n){var r=We(e,t,n),o=r[0],i=r[1];for(o=o.split("").filter(Boolean),i=i.split("").filter(Boolean);o.length&&i.length;){var a=o.shift(),s=i.shift(),u=a.toLowerCase(),l=s.toLowerCase();if(u>l)return 1;if(l>u)return-1;if(a>s)return 1;if(s>a)return-1}return o.length-i.length},number:function(e,t,n){var r=We(e,t,n),o=r[0],i=r[1],a=/[^0-9.]/gi;return je(o=Number(String(o).replace(a,"")),i=Number(String(i).replace(a,"")))}});s.resetSortBy="resetSortBy",s.setSortBy="setSortBy",s.toggleSortBy="toggleSortBy",s.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var qe=function(e){e.getSortByToggleProps=[Xe],e.stateReducers.push(Qe),e.useInstance.push(Ye)};qe.pluginName="useSortBy";var Xe=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function Qe(e,t,n,r){if(t.type===s.init)return o({sortBy:[]},e);if(t.type===s.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===s.clearSortBy)return o({},e,{sortBy:e.sortBy.filter((function(e){return e.id!==t.columnId}))});if(t.type===s.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===s.toggleSortBy){var i,a=t.columnId,u=t.desc,l=t.multi,c=r.allColumns,d=r.disableMultiSort,p=r.disableSortRemove,f=r.disableMultiRemove,m=r.maxMultiSortColCount,h=void 0===m?Number.MAX_SAFE_INTEGER:m,g=e.sortBy,v=c.find((function(e){return e.id===a})).sortDescFirst,b=g.find((function(e){return e.id===a})),y=g.findIndex((function(e){return e.id===a})),w=null!=u,_=[];return"toggle"!=(i=!d&&l?b?"toggle":"add":y!==g.length-1||1!==g.length?"replace":b?"toggle":"replace")||p||w||l&&f||!(b&&b.desc&&!v||!b.desc&&v)||(i="remove"),"replace"===i?_=[{id:a,desc:w?u:v}]:"add"===i?(_=[].concat(g,[{id:a,desc:w?u:v}])).splice(0,_.length-h):"toggle"===i?_=g.map((function(e){return e.id===a?o({},e,{desc:w?u:!b.desc}):e})):"remove"===i&&(_=g.filter((function(e){return e.id!==a}))),o({},e,{sortBy:_})}}function Ye(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,a=e.orderByFn,u=void 0===a?Ke:a,l=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,f=e.disableSortBy,m=e.flatHeaders,g=e.state.sortBy,b=e.dispatch,w=e.plugins,_=e.getHooks,S=e.autoResetSortBy,C=void 0===S||S;h(w,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var R=t.useCallback((function(e){b({type:s.setSortBy,sortBy:e})}),[b]),x=t.useCallback((function(e,t,n){b({type:s.toggleSortBy,columnId:e,desc:t,multi:n})}),[b]),E=v(e);m.forEach((function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?O(!0!==r&&void 0,!0!==f&&void 0,!0):O(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return x(e.id,t,n)},e.clearSortBy=function(){b({type:s.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=p(_().getSortByToggleProps,{instance:E(),column:e});var a=g.find((function(e){return e.id===o}));e.isSorted=!!a,e.sortedIndex=g.findIndex((function(e){return e.id===o})),e.isSortedDesc=e.isSorted?a.desc:void 0}));var I=t.useMemo((function(){if(c||!g.length)return[r,o];var e=[],t=g.filter((function(e){return i.find((function(t){return t.id===e.id}))}));return[function n(r){var o=u(r,t.map((function(e){var t=i.find((function(t){return t.id===e.id}));if(!t)throw new Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=P(n)||(l||{})[n]||Ue[n];if(!r)throw new Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}})),t.map((function(e){var t=i.find((function(t){return t.id===e.id}));return t&&t.sortInverted?e.desc:!e.desc})));return o.forEach((function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))})),o}(r),e]}),[c,g,r,o,i,u,l]),k=I[0],F=I[1],M=v(C);y((function(){M()&&b({type:s.resetSortBy})}),[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:k,sortedFlatRows:F,rows:k,flatRows:F,setSortBy:R,toggleSortBy:x})}function Ke(e,t,n){return[].concat(e).sort((function(e,r){for(var o=0;o<t.length;o+=1){var i=t[o],a=!1===n[o]||"desc"===n[o],s=i(e,r);if(0!==s)return a?-s:s}return n[0]?e.index-r.index:r.index-e.index}))}s.resetPage="resetPage",s.gotoPage="gotoPage",s.setPageSize="setPageSize";var Je=function(e){e.stateReducers.push(Ze),e.useInstance.push(et)};function Ze(e,t,n,r){if(t.type===s.init)return o({pageSize:10,pageIndex:0},e);if(t.type===s.resetPage)return o({},e,{pageIndex:r.initialState.pageIndex||0});if(t.type===s.gotoPage){var i=r.pageCount,a=r.page,u=g(t.pageIndex,e.pageIndex),l=!1;return u>e.pageIndex?l=-1===i?a.length>=e.pageSize:u<i:u<e.pageIndex&&(l=u>-1),l?o({},e,{pageIndex:u}):e}if(t.type===s.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function et(e){var n=e.rows,r=e.autoResetPage,o=void 0===r||r,i=e.manualExpandedKey,a=void 0===i?"expanded":i,u=e.plugins,l=e.pageCount,c=e.paginateExpandedRows,d=void 0===c||c,p=e.expandSubRows,f=void 0===p||p,m=e.state,g=m.pageSize,b=m.pageIndex,w=m.expanded,_=m.globalFilter,S=m.filters,C=m.groupBy,R=m.sortBy,x=e.dispatch,E=e.data,O=e.manualPagination;h(u,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var P=v(o);y((function(){P()&&x({type:s.resetPage})}),[x,O?null:E,_,S,C,R]);var I=O?l:Math.ceil(n.length/g),F=t.useMemo((function(){return I>0?[].concat(new Array(I)).fill(null).map((function(e,t){return t})):[]}),[I]),M=t.useMemo((function(){var e;if(O)e=n;else{var t=g*b,r=t+g;e=n.slice(t,r)}return d?e:k(e,{manualExpandedKey:a,expanded:w,expandSubRows:f})}),[f,w,a,O,b,g,d,n]),T=b>0,L=-1===I?M.length>=g:b<I-1,A=t.useCallback((function(e){x({type:s.gotoPage,pageIndex:e})}),[x]),D=t.useCallback((function(){return A((function(e){return e-1}))}),[A]),V=t.useCallback((function(){return A((function(e){return e+1}))}),[A]),B=t.useCallback((function(e){x({type:s.setPageSize,pageSize:e})}),[x]);Object.assign(e,{pageOptions:F,pageCount:I,page:M,canPreviousPage:T,canNextPage:L,gotoPage:A,previousPage:D,nextPage:V,setPageSize:B})}Je.pluginName="usePagination",s.resetPivot="resetPivot",s.togglePivot="togglePivot";var tt=function(e){e.getPivotToggleProps=[rt],e.stateReducers.push(ot),e.useInstanceAfterData.push(it),e.allColumns.push(at),e.accessValue.push(st),e.materializedColumns.push(ut),e.materializedColumnsDeps.push(lt),e.visibleColumns.push(ct),e.visibleColumnsDeps.push(dt),e.useInstance.push(pt),e.prepareRow.push(ft)};tt.pluginName="usePivotColumns";var nt=[],rt=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function ot(e,t,n,r){if(t.type===s.init)return o({pivotColumns:nt},e);if(t.type===s.resetPivot)return o({},e,{pivotColumns:r.initialState.pivotColumns||nt});if(t.type===s.togglePivot){var i=t.columnId,a=t.value,u=void 0!==a?a:!e.pivotColumns.includes(i);return o({},e,u?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter((function(e){return e!==i}))})}}function it(e){e.allColumns.forEach((function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)}))}function at(e,t){var n=t.instance;return e.forEach((function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set})),e}function st(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function ut(e,t){var n=t.instance,r=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var a=i.pivotColumns.map((function(e){return r.find((function(t){return t.id===e}))})).filter(Boolean),s=r.filter((function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)})),u=C(function e(t,n,r){void 0===t&&(t=0),void 0===r&&(r=[]);var i=a[t];return i?Array.from(i.uniqueValues).sort().map((function(a){var s=o({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+a:a,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+a:i.id+"."+a,pivotValue:a});return s.columns=e(t+1,s,[].concat(r,[function(e){return e.values[i.id]===a}])),s})):s.map((function(e){return o({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,o){if(r.every((function(e){return e(o)})))return o.values[e.id]}})}))}());return[].concat(e,u)}function lt(e,t){var n=t.instance.state,r=n.pivotColumns,o=n.groupBy;return[].concat(e,[r,o])}function ct(e,t){var n=t.instance.state;return e=e.filter((function(e){return!e.isPivotSource})),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter((function(e){return e.isGrouped||e.isPivoted}))),e}function dt(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function pt(e){var t=e.columns,n=e.allColumns,r=e.flatHeaders,o=e.getHooks,i=e.plugins,a=e.dispatch,u=e.autoResetPivot,l=void 0===u||u,c=e.manaulPivot,d=e.disablePivot,f=e.defaultCanPivot;h(i,["useGroupBy"],"usePivotColumns");var m=v(e);n.forEach((function(t){var n=t.accessor,r=t.defaultPivot,o=t.disablePivot;t.canPivot=n?O(t.canPivot,!0!==o&&void 0,!0!==d&&void 0,!0):O(t.canPivot,r,f,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell})),r.forEach((function(e){e.getPivotToggleProps=p(o().getPivotToggleProps,{instance:m(),header:e})}));var g=v(l);y((function(){g()&&a({type:s.resetPivot})}),[a,c?null:t]),Object.assign(e,{togglePivot:function(e,t){a({type:s.togglePivot,columnId:e,value:t})}})}function ft(e){e.allCells.forEach((function(e){e.isPivoted=e.column.isPivoted}))}s.resetSelectedRows="resetSelectedRows",s.toggleAllRowsSelected="toggleAllRowsSelected",s.toggleRowSelected="toggleRowSelected",s.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var mt=function(e){e.getToggleRowSelectedProps=[ht],e.getToggleAllRowsSelectedProps=[gt],e.getToggleAllPageRowsSelectedProps=[vt],e.stateReducers.push(bt),e.useInstance.push(yt),e.prepareRow.push(wt)};mt.pluginName="useRowSelect";var ht=function(e,t){var n=t.instance,r=t.row,o=n.manualRowSelectedKey,i=void 0===o?"isSelected":o;return[e,{onChange:function(e){r.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!r.original||!r.original[i])||r.isSelected,title:"Toggle Row Selected",indeterminate:r.isSomeSelected}]},gt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},vt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some((function(e){var t=e.id;return n.state.selectedRowIds[t]})))}]};function bt(e,t,n,r){if(t.type===s.init)return o({selectedRowIds:{}},e);if(t.type===s.resetSelectedRows)return o({},e,{selectedRowIds:r.initialState.selectedRowIds||{}});if(t.type===s.toggleAllRowsSelected){var i=t.value,a=r.isAllRowsSelected,u=r.rowsById,l=r.nonGroupedRowsById,c=void 0===l?u:l,d=void 0!==i?i:!a,p=Object.assign({},e.selectedRowIds);return d?Object.keys(c).forEach((function(e){p[e]=!0})):Object.keys(c).forEach((function(e){delete p[e]})),o({},e,{selectedRowIds:p})}if(t.type===s.toggleRowSelected){var f=t.id,m=t.value,h=r.rowsById,g=r.selectSubRows,v=void 0===g||g,b=r.getSubRows,y=e.selectedRowIds[f],w=void 0!==m?m:!y;if(y===w)return e;var _=o({},e.selectedRowIds);return function e(t){var n=h[t];if(n&&(n.isGrouped||(w?_[t]=!0:delete _[t]),v&&b(n)))return b(n).forEach((function(t){return e(t.id)}))}(f),o({},e,{selectedRowIds:_})}if(t.type===s.toggleAllPageRowsSelected){var S=t.value,C=r.page,R=r.rowsById,x=r.selectSubRows,E=void 0===x||x,O=r.isAllPageRowsSelected,P=r.getSubRows,I=void 0!==S?S:!O,k=o({},e.selectedRowIds);return C.forEach((function(e){return function e(t){var n=R[t];if(n.isGrouped||(I?k[t]=!0:delete k[t]),E&&P(n))return P(n).forEach((function(t){return e(t.id)}))}(e.id)})),o({},e,{selectedRowIds:k})}return e}function yt(e){var n=e.data,r=e.rows,o=e.getHooks,i=e.plugins,a=e.rowsById,u=e.nonGroupedRowsById,l=void 0===u?a:u,c=e.autoResetSelectedRows,d=void 0===c||c,f=e.state.selectedRowIds,m=e.selectSubRows,g=void 0===m||m,b=e.dispatch,w=e.page,_=e.getSubRows;h(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var S=t.useMemo((function(){var e=[];return r.forEach((function(t){var n=g?function e(t,n,r){if(n[t.id])return!0;var o=r(t);if(o&&o.length){var i=!0,a=!1;return o.forEach((function(t){a&&!i||(e(t,n,r)?a=!0:i=!1)})),!!i||!!a&&null}return!1}(t,f,_):!!f[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)})),e}),[r,g,f,_]),C=Boolean(Object.keys(l).length&&Object.keys(f).length),R=C;C&&Object.keys(l).some((function(e){return!f[e]}))&&(C=!1),C||w&&w.length&&w.some((function(e){var t=e.id;return!f[t]}))&&(R=!1);var x=v(d);y((function(){x()&&b({type:s.resetSelectedRows})}),[b,n]);var E=t.useCallback((function(e){return b({type:s.toggleAllRowsSelected,value:e})}),[b]),O=t.useCallback((function(e){return b({type:s.toggleAllPageRowsSelected,value:e})}),[b]),P=t.useCallback((function(e,t){return b({type:s.toggleRowSelected,id:e,value:t})}),[b]),I=v(e),k=p(o().getToggleAllRowsSelectedProps,{instance:I()}),F=p(o().getToggleAllPageRowsSelectedProps,{instance:I()});Object.assign(e,{selectedFlatRows:S,isAllRowsSelected:C,isAllPageRowsSelected:R,toggleRowSelected:P,toggleAllRowsSelected:E,getToggleAllRowsSelectedProps:k,getToggleAllPageRowsSelectedProps:F,toggleAllPageRowsSelected:O})}function wt(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=p(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var _t=function(e){return{}},St=function(e){return{}};s.setRowState="setRowState",s.setCellState="setCellState",s.resetRowState="resetRowState";var Ct=function(e){e.stateReducers.push(Rt),e.useInstance.push(xt),e.prepareRow.push(Et)};function Rt(e,t,n,r){var i=r.initialRowStateAccessor,a=void 0===i?_t:i,u=r.initialCellStateAccessor,l=void 0===u?St:u,c=r.rowsById;if(t.type===s.init)return o({rowState:{}},e);if(t.type===s.resetRowState)return o({},e,{rowState:r.initialState.rowState||{}});if(t.type===s.setRowState){var d,p=t.rowId,f=t.value,m=void 0!==e.rowState[p]?e.rowState[p]:a(c[p]);return o({},e,{rowState:o({},e.rowState,(d={},d[p]=g(f,m),d))})}if(t.type===s.setCellState){var h,v,b,y,w,_=t.rowId,S=t.columnId,C=t.value,R=void 0!==e.rowState[_]?e.rowState[_]:a(c[_]),x=void 0!==(null==R||null==(h=R.cellState)?void 0:h[S])?R.cellState[S]:l(null==(v=c[_])||null==(b=v.cells)?void 0:b.find((function(e){return e.column.id===S})));return o({},e,{rowState:o({},e.rowState,(w={},w[_]=o({},R,{cellState:o({},R.cellState||{},(y={},y[S]=g(C,x),y))}),w))})}}function xt(e){var n=e.autoResetRowState,r=void 0===n||n,o=e.data,i=e.dispatch,a=t.useCallback((function(e,t){return i({type:s.setRowState,rowId:e,value:t})}),[i]),u=t.useCallback((function(e,t,n){return i({type:s.setCellState,rowId:e,columnId:t,value:n})}),[i]),l=v(r);y((function(){l()&&i({type:s.resetRowState})}),[o]),Object.assign(e,{setRowState:a,setCellState:u})}function Et(e,t){var n=t.instance,r=n.initialRowStateAccessor,o=void 0===r?_t:r,i=n.initialCellStateAccessor,a=void 0===i?St:i,s=n.state.rowState;e&&(e.state=void 0!==s[e.id]?s[e.id]:o(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach((function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:a(t),t.setState=function(r){return n.setCellState(e.id,t.column.id,r)}})))}Ct.pluginName="useRowState",s.resetColumnOrder="resetColumnOrder",s.setColumnOrder="setColumnOrder";var Ot=function(e){e.stateReducers.push(Pt),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.columnOrder])})),e.visibleColumns.push(It),e.useInstance.push(kt)};function Pt(e,t,n,r){return t.type===s.init?o({columnOrder:[]},e):t.type===s.resetColumnOrder?o({},e,{columnOrder:r.initialState.columnOrder||[]}):t.type===s.setColumnOrder?o({},e,{columnOrder:g(t.columnOrder,e.columnOrder)}):void 0}function It(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var r=[].concat(n),o=[].concat(e),i=[],a=function(){var e=r.shift(),t=o.findIndex((function(t){return t.id===e}));t>-1&&i.push(o.splice(t,1)[0])};o.length&&r.length;)a();return[].concat(i,o)}function kt(e){var n=e.dispatch;e.setColumnOrder=t.useCallback((function(e){return n({type:s.setColumnOrder,columnOrder:e})}),[n])}Ot.pluginName="useColumnOrder",c.canResize=!0,s.columnStartResizing="columnStartResizing",s.columnResizing="columnResizing",s.columnDoneResizing="columnDoneResizing",s.resetResize="resetResize";var Ft=function(e){e.getResizerProps=[Mt],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Tt),e.useInstance.push(At),e.useInstanceBeforeDimensions.push(Lt)},Mt=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r,i,a=function(e){var t=[];return function e(n){n.columns&&n.columns.length&&n.columns.map(e),t.push(n)}(e),t}(t).map((function(e){return[e.id,e.totalWidth]})),u=n?Math.round(e.touches[0].clientX):e.clientX,l=function(){window.cancelAnimationFrame(r),r=null,o({type:s.columnDoneResizing})},c=function(){window.cancelAnimationFrame(r),r=null,o({type:s.columnResizing,clientX:i})},d=function(e){i=e,r||(r=window.requestAnimationFrame(c))},p={mouse:{moveEvent:"mousemove",moveHandler:function(e){return d(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",p.mouse.moveHandler),document.removeEventListener("mouseup",p.mouse.upHandler),l()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(p.touch.moveEvent,p.touch.moveHandler),document.removeEventListener(p.touch.upEvent,p.touch.moveHandler),l()}}},f=n?p.touch:p.mouse,m=!!function(){if("boolean"==typeof L)return L;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return L=e}()&&{passive:!1};document.addEventListener(f.moveEvent,f.moveHandler,m),document.addEventListener(f.upEvent,f.upHandler,m),o({type:s.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:a,clientX:u})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Tt(e,t){if(t.type===s.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===s.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===s.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,a=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:a,columnWidth:i,isResizingColumn:r})})}if(t.type===s.columnResizing){var u=t.clientX,l=e.columnResizing,c=l.startX,d=l.columnWidth,p=l.headerIdWidths,f=(u-c)/d,m={};return(void 0===p?[]:p).forEach((function(e){var t=e[0],n=e[1];m[t]=Math.max(n+n*f,0)})),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},m)})})}return t.type===s.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Ft.pluginName="useResizeColumns";var Lt=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=v(e);t.forEach((function(e){var t=O(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=p(r().getResizerProps,{instance:i(),header:e}))}))};function At(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=void 0===o||o,a=e.columns;h(n,["useAbsoluteLayout"],"useResizeColumns");var u=v(i);y((function(){u()&&r({type:s.resetResize})}),[a]);var l=t.useCallback((function(){return r({type:s.resetResize})}),[r]);Object.assign(e,{resetResizing:l})}var Dt={position:"absolute",top:0},Vt=function(e){e.getTableBodyProps.push(Bt),e.getRowProps.push(Bt),e.getHeaderGroupProps.push(Bt),e.getFooterGroupProps.push(Bt),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Dt,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Dt,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Dt,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}))};Vt.pluginName="useAbsoluteLayout";var Bt=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},Ht={display:"inline-block",boxSizing:"border-box"},zt=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},Nt=function(e){e.getRowProps.push(zt),e.getHeaderGroupProps.push(zt),e.getFooterGroupProps.push(zt),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Ht,{width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Ht,{width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Ht,{width:n.totalWidth+"px"})}]}))};function Gt(e){e.getTableProps.push(jt),e.getRowProps.push(Wt),e.getHeaderGroupProps.push(Wt),e.getFooterGroupProps.push(Wt),e.getHeaderProps.push($t),e.getCellProps.push(Ut),e.getFooterProps.push(qt)}Nt.pluginName="useBlockLayout",Gt.pluginName="useFlexLayout";var jt=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Wt=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},$t=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},Ut=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},qt=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function Xt(e){e.stateReducers.push(Jt),e.getTableProps.push(Qt),e.getHeaderProps.push(Yt),e.getRowProps.push(Kt)}s.columnStartResizing="columnStartResizing",s.columnResizing="columnResizing",s.columnDoneResizing="columnDoneResizing",s.resetResize="resetResize",Xt.pluginName="useGridLayout";var Qt=function(e,t){var n=t.instance;return[e,{style:{display:"grid",gridTemplateColumns:n.visibleColumns.map((function(e){var t;return n.state.gridLayout.columnWidths[e.id]?n.state.gridLayout.columnWidths[e.id]+"px":(null==(t=n.state.columnResizing)?void 0:t.isResizingColumn)?n.state.gridLayout.startWidths[e.id]+"px":"number"==typeof e.width?e.width+"px":e.width})).join(" ")}}]},Yt=function(e,t){var n=t.column;return[e,{id:"header-cell-"+n.id,style:{position:"sticky",gridColumn:"span "+n.totalVisibleHeaderCount}}]},Kt=function(e,t){var n=t.row;return n.isExpanded?[e,{style:{gridColumn:"1 / "+(n.cells.length+1)}}]:[e,{}]};function Jt(e,t,n,r){if(t.type===s.init)return o({gridLayout:{columnWidths:{}}},e);if(t.type===s.resetResize)return o({},e,{gridLayout:{columnWidths:{}}});if(t.type===s.columnStartResizing){var i=t.columnId,a=t.headerIdWidths,u=Zt(i);if(void 0!==u){var l=r.visibleColumns.reduce((function(e,t){var n;return o({},e,((n={})[t.id]=Zt(t.id),n))}),{}),c=r.visibleColumns.reduce((function(e,t){var n;return o({},e,((n={})[t.id]=t.minWidth,n))}),{}),d=r.visibleColumns.reduce((function(e,t){var n;return o({},e,((n={})[t.id]=t.maxWidth,n))}),{}),p=a.map((function(e){var t=e[0];return[t,Zt(t)]}));return o({},e,{gridLayout:o({},e.gridLayout,{startWidths:l,minWidths:c,maxWidths:d,headerIdGridWidths:p,columnWidth:u})})}return e}if(t.type===s.columnResizing){var f=t.clientX,m=e.columnResizing.startX,h=e.gridLayout,g=h.columnWidth,v=h.minWidths,b=h.maxWidths,y=h.headerIdGridWidths,w=(f-m)/g,_={};return(void 0===y?[]:y).forEach((function(e){var t=e[0],n=e[1];_[t]=Math.min(Math.max(v[t],n+n*w),b[t])})),o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:o({},e.gridLayout.columnWidths,{},_)})})}return t.type===s.columnDoneResizing?o({},e,{gridLayout:o({},e.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function Zt(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}e._UNSTABLE_usePivotColumns=tt,e.actions=s,e.defaultColumn=c,e.defaultGroupByFn=Ne,e.defaultOrderByFn=Ke,e.defaultRenderer=u,e.emptyRenderer=l,e.ensurePluginOrder=h,e.flexRender=_,e.functionalUpdate=g,e.loopHooks=m,e.makePropGetter=p,e.makeRenderer=w,e.reduceHooks=f,e.safeUseLayoutEffect=b,e.useAbsoluteLayout=Vt,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o=t.useRef({}),i=v(e),a=v(n);return t.useCallback(function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,s,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=u.length,n=new Array(t),s=0;s<t;s++)n[s]=u[s];return o.current.promise||(o.current.promise=new Promise((function(e,t){o.current.resolve=e,o.current.reject=t}))),o.current.timeout&&clearTimeout(o.current.timeout),o.current.timeout=setTimeout(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete o.current.timeout,e.prev=1,e.t0=o.current,e.next=5,i().apply(void 0,n);case 5:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=12;break;case 9:e.prev=9,e.t2=e.catch(1),o.current.reject(e.t2);case 12:return e.prev=12,delete o.current.promise,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])}))),a()),e.abrupt("return",o.current.promise);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[i,a])},e.useBlockLayout=Nt,e.useColumnOrder=Ot,e.useExpanded=se,e.useFilters=Re,e.useFlexLayout=Gt,e.useGetLatest=v,e.useGlobalFilter=Oe,e.useGridLayout=Xt,e.useGroupBy=Le,e.useMountedLayoutEffect=y,e.usePagination=Je,e.useResizeColumns=Ft,e.useRowSelect=mt,e.useRowState=Ct,e.useSortBy=qe,e.useTable=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e=oe(e),r=[U].concat(r);var a=v(t.useRef({}).current);Object.assign(a(),o({},e,{plugins:r,hooks:$()})),r.filter(Boolean).forEach((function(e){e(a().hooks)}));var u=v(a().hooks);a().getHooks=u,delete a().hooks,Object.assign(a(),f(u().useOptions,oe(e)));var l=a(),c=l.data,d=l.columns,h=l.initialState,g=l.defaultColumn,b=l.getSubRows,y=l.getRowId,_=l.stateReducer,E=l.useControlledState,O=v(_),P=t.useCallback((function(e,t){if(!t.type)throw console.info({action:t}),new Error("Unknown Action 👆");return[].concat(u().stateReducers,Array.isArray(O())?O():[O()]).reduce((function(n,r){return r(n,t,e,a())||n}),e)}),[u,O,a]),I=t.useReducer(P,void 0,(function(){return P(h,{type:s.init})})),k=I[0],F=I[1],M=f([].concat(u().useControlledState,[E]),k,{instance:a()});Object.assign(a(),{state:M,dispatch:F});var T=t.useMemo((function(){return S(f(u().columns,d,{instance:a()}))}),[u,a,d].concat(f(u().columnsDeps,[],{instance:a()})));a().columns=T;var L=t.useMemo((function(){return f(u().allColumns,C(T),{instance:a()}).map(R)}),[T,u,a].concat(f(u().allColumnsDeps,[],{instance:a()})));a().allColumns=L;var A=t.useMemo((function(){for(var e=[],t=[],n={},r=[].concat(L);r.length;){var o=r.shift();ae({data:c,rows:e,flatRows:t,rowsById:n,column:o,getRowId:y,getSubRows:b,accessValueHooks:u().accessValue,getInstance:a})}return[e,t,n]}),[L,c,y,b,u,a]),D=A[0],V=A[1],B=A[2];Object.assign(a(),{rows:D,initialRows:[].concat(D),flatRows:V,rowsById:B}),m(u().useInstanceAfterData,a());var H=t.useMemo((function(){return f(u().visibleColumns,L,{instance:a()}).map((function(e){return x(e,g)}))}),[u,L,a,g].concat(f(u().visibleColumnsDeps,[],{instance:a()})));L=t.useMemo((function(){var e=[].concat(H);return L.forEach((function(t){e.find((function(e){return e.id===t.id}))||e.push(t)})),e}),[L,H]),a().allColumns=L;var z=t.useMemo((function(){return f(u().headerGroups,function(e,t,n){void 0===n&&(n=function(){return{}});for(var r=[],i=e,a=0,s=function(){return a++},u=function(){var e={headers:[]},a=[],u=i.some((function(e){return e.parent}));i.forEach((function(r){var i,l=[].concat(a).reverse()[0];u&&(i=r.parent?o({},r.parent,{originalId:r.parent.id,id:r.parent.id+"_"+s(),headers:[r]},n(r)):x(o({originalId:r.id+"_placeholder",id:r.id+"_placeholder_"+s(),placeholderOf:r,headers:[r]},n(r)),t),l&&l.originalId===i.originalId?l.headers.push(r):a.push(i)),e.headers.push(r)})),r.push(e),i=a};i.length;)u();return r.reverse()}(H,g),a())}),[u,H,g,a].concat(f(u().headerGroupsDeps,[],{instance:a()})));a().headerGroups=z;var N=t.useMemo((function(){return z.length?z[0].headers:[]}),[z]);a().headers=N,a().flatHeaders=z.reduce((function(e,t){return[].concat(e,t.headers)}),[]),m(u().useInstanceBeforeDimensions,a());var G=H.filter((function(e){return e.isVisible})).map((function(e){return e.id})).sort().join("_");H=t.useMemo((function(){return H.filter((function(e){return e.isVisible}))}),[H,G]),a().visibleColumns=H;var j=ie(N),W=j[0],q=j[1],X=j[2];return a().totalColumnsMinWidth=W,a().totalColumnsWidth=q,a().totalColumnsMaxWidth=X,m(u().useInstance,a()),[].concat(a().flatHeaders,a().allColumns).forEach((function(e){e.render=w(a(),e),e.getHeaderProps=p(u().getHeaderProps,{instance:a(),column:e}),e.getFooterProps=p(u().getFooterProps,{instance:a(),column:e})})),a().headerGroups=t.useMemo((function(){return z.filter((function(e,t){return e.headers=e.headers.filter((function(e){return e.headers?function e(t){return t.filter((function(t){return t.headers?e(t.headers):t.isVisible})).length}(e.headers):e.isVisible})),!!e.headers.length&&(e.getHeaderGroupProps=p(u().getHeaderGroupProps,{instance:a(),headerGroup:e,index:t}),e.getFooterGroupProps=p(u().getFooterGroupProps,{instance:a(),headerGroup:e,index:t}),!0)}))}),[z,a,u]),a().footerGroups=[].concat(a().headerGroups).reverse(),a().prepareRow=t.useCallback((function(e){e.getRowProps=p(u().getRowProps,{instance:a(),row:e}),e.allCells=L.map((function(t){var n=e.values[t.id],r={column:t,row:e,value:n};return r.getCellProps=p(u().getCellProps,{instance:a(),cell:r}),r.render=w(a(),t,{row:e,cell:r,value:n}),r})),e.cells=H.map((function(t){return e.allCells.find((function(e){return e.column.id===t.id}))})),m(u().prepareRow,e,{instance:a()})}),[u,a,L,H]),a().getTableProps=p(u().getTableProps,{instance:a()}),a().getTableBodyProps=p(u().getTableBodyProps,{instance:a()}),m(u().useFinalInstance,a()),a()},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(1280))},9636:(e,t,n)=>{e.exports=n(9115)},1280:e=>{"use strict";e.exports=window.React},8496:e=>{"use strict";e.exports=window.wp.element},3396:e=>{"use strict";e.exports=window.wp.i18n}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1280),t=n.n(e),r=n(3396);window.moment,t().Component;var o=n(8496);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var m=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function w(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),S=Math.abs,C=String.fromCharCode,R=Object.assign;function x(e){return e.trim()}function E(e,t,n){return e.replace(t,n)}function O(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function I(e,t,n){return e.slice(t,n)}function k(e){return e.length}function F(e){return e.length}function M(e,t){return t.push(e),e}var T=1,L=1,A=0,D=0,V=0,B="";function H(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:T,column:L,length:a,return:""}}function z(e,t){return R(H("",null,null,"",null,null,0),e,{length:-e.length},t)}function N(){return V=D>0?P(B,--D):0,L--,10===V&&(L=1,T--),V}function G(){return V=D<A?P(B,D++):0,L++,10===V&&(L=1,T++),V}function j(){return P(B,D)}function W(){return D}function $(e,t){return I(B,e,t)}function U(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q(e){return T=L=1,A=k(B=e),D=0,[]}function X(e){return B="",e}function Q(e){return x($(D-1,J(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(V=j())&&V<33;)G();return U(e)>2||U(V)>3?"":" "}function K(e,t){for(;--t&&G()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return $(e,W()+(t<6&&32==j()&&32==G()))}function J(e){for(;G();)switch(V){case e:return D;case 34:case 39:34!==e&&39!==e&&J(V);break;case 40:41===e&&J(e);break;case 92:G()}return D}function Z(e,t){for(;G()&&e+V!==57&&(e+V!==84||47!==j()););return"/*"+$(t,D-1)+"*"+C(47===e?e:G())}function ee(e){for(;!U(j());)G();return $(e,D)}var te="-ms-",ne="-moz-",re="-webkit-",oe="comm",ie="rule",ae="decl",se="@keyframes";function ue(e,t){for(var n="",r=F(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function le(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ae:return e.return=e.return||e.value;case oe:return"";case se:return e.return=e.value+"{"+ue(e.children,r)+"}";case ie:e.value=e.props.join(",")}return k(n=ue(e.children,r))?e.return=e.value+"{"+n+"}":""}function ce(e){return X(de("",null,null,null,[""],e=q(e),0,[0],e))}function de(e,t,n,r,o,i,a,s,u){for(var l=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,_=i,S=r,R=y;g;)switch(m=b,b=G()){case 40:if(108!=m&&58==P(R,d-1)){-1!=O(R+=E(Q(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:R+=Q(b);break;case 9:case 10:case 13:case 32:R+=Y(m);break;case 92:R+=K(W()-1,7);continue;case 47:switch(j()){case 42:case 47:M(fe(Z(G(),W()),t,n),u);break;default:R+="/"}break;case 123*h:s[l++]=k(R)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(R=E(R,/\f/g,"")),f>0&&k(R)-d&&M(f>32?me(R+";",r,n,d-1):me(E(R," ","")+";",r,n,d-2),u);break;case 59:R+=";";default:if(M(S=pe(R,t,n,l,c,o,s,y,w=[],_=[],d),i),123===b)if(0===c)de(R,t,S,S,w,i,d,s,_);else switch(99===p&&110===P(R,3)?100:p){case 100:case 108:case 109:case 115:de(e,S,S,r&&M(pe(e,S,S,0,0,o,s,y,o,w=[],d),_),o,_,d,s,r?w:_);break;default:de(R,S,S,S,[""],_,0,s,_)}}l=c=f=0,h=v=1,y=R="",d=a;break;case 58:d=1+k(R),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==N())continue;switch(R+=C(b),b*h){case 38:v=c>0?1:(R+="\f",-1);break;case 44:s[l++]=(k(R)-1)*v,v=1;break;case 64:45===j()&&(R+=Q(G())),p=j(),c=d=k(y=R+=ee(W())),b++;break;case 45:45===m&&2==k(R)&&(h=0)}}return i}function pe(e,t,n,r,o,i,a,s,u,l,c){for(var d=o-1,p=0===o?i:[""],f=F(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=I(e,d+1,d=S(h=a[m])),y=e;v<f;++v)(y=x(h>0?p[v]+" "+b:E(b,/&\f/g,p[v])))&&(u[g++]=y);return H(e,t,n,0===o?ie:s,u,l,c)}function fe(e,t,n){return H(e,t,n,oe,C(V),I(e,2,-2),0)}function me(e,t,n,r){return H(e,t,n,ae,I(e,0,r),I(e,r+1,-1),r)}var he=function(e,t,n){for(var r=0,o=0;r=o,o=j(),38===r&&12===o&&(t[n]=1),!U(o);)G();return $(e,D)},ge=new WeakMap,ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ge.get(n))&&!r){ge.set(e,!0);for(var o=[],i=function(e,t){return X(function(e,t){var n=-1,r=44;do{switch(U(r)){case 0:38===r&&12===j()&&(t[n]=1),e[n]+=he(D-1,t,n);break;case 2:e[n]+=Q(r);break;case 4:if(44===r){e[++n]=58===j()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=C(r)}}while(r=G());return e}(q(e),t))}(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},be=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ye(e,t){switch(function(e,t){return 45^P(e,0)?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+ne+e+te+e+e;case 6828:case 4268:return re+e+te+e+e;case 6165:return re+e+te+"flex-"+e+e;case 5187:return re+e+E(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+te+"flex-$1$2")+e;case 5443:return re+e+te+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return re+e+te+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+te+E(e,"shrink","negative")+e;case 5292:return re+e+te+E(e,"basis","preferred-size")+e;case 6060:return re+"box-"+E(e,"-grow","")+re+e+te+E(e,"grow","positive")+e;case 4554:return re+E(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(k(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ne+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~O(e,"stretch")?ye(E(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==P(e,t+1))break;case 6444:switch(P(e,k(e)-3-(~O(e,"!important")&&10))){case 107:return E(e,":",":"+re)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(45===P(e,14)?"inline-":"")+"box$3$1"+re+"$2$3$1"+te+"$2box$3")+e}break;case 5936:switch(P(e,t+11)){case 114:return re+e+te+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+te+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+te+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+te+e+e}return e}var we=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ae:e.return=ye(e.value,e.length);break;case se:return ue([z(e,{value:E(e.value,"@","@"+re)})],r);case ie:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ue([z(e,{props:[E(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ue([z(e,{props:[E(t,/:(plac\w+)/,":"+re+"input-$1")]}),z(e,{props:[E(t,/:(plac\w+)/,":-moz-$1")]}),z(e,{props:[E(t,/:(plac\w+)/,te+"input-$1")]})],r)}return""}))}}],_e=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||we,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,l,c,d,p=[le,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(l=[ve,be].concat(i,p),c=F(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,ue(ce(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new _({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m},Se=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ce={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Re(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xe=/[A-Z]|^ms/g,Ee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oe=function(e){return 45===e.charCodeAt(1)},Pe=function(e){return null!=e&&"boolean"!=typeof e},Ie=Re((function(e){return Oe(e)?e:e.replace(xe,"-$&").toLowerCase()})),ke=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ee,(function(e,t,n){return Me={name:t,styles:n,next:Me},t}))}return 1===Ce[e]||Oe(e)||"number"!=typeof t||0===t?t:t+"px"};function Fe(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Me={name:n.name,styles:n.styles,next:Me},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Me={name:r.name,styles:r.styles,next:Me},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Fe(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Pe(a)&&(r+=Ie(i)+":"+ke(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Fe(e,t,a);switch(i){case"animation":case"animationName":r+=Ie(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Pe(a[u])&&(r+=Ie(i)+":"+ke(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Me,i=n(e);return Me=o,Fe(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Me,Te=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Le=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Me=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Fe(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Fe(n,t,e[a]),r&&(o+=i[a]);Te.lastIndex=0;for(var s,u="";null!==(s=Te.exec(o));)u+="-"+s[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:l,styles:o,next:Me}},Ae=!!e.useInsertionEffect&&e.useInsertionEffect,De=Ae||function(e){return e()},Ve=(Ae||e.useLayoutEffect,{}.hasOwnProperty),Be=e.createContext("undefined"!=typeof HTMLElement?_e({key:"css"}):null),He=Be.Provider,ze=function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Be);return t(n,o,r)}))},Ne=e.createContext({}),Ge="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",je=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Se(t,n,r),De((function(){return function(e,t,n){Se(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},We=ze((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[Ge],a=[o],s="";"string"==typeof t.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var u=Le(a,void 0,e.useContext(Ne));s+=n.key+"-"+u.name;var l={};for(var c in t)Ve.call(t,c)&&"css"!==c&&c!==Ge&&(l[c]=t[c]);return l.ref=r,l.className=s,e.createElement(e.Fragment,null,e.createElement(je,{cache:n,serialized:u,isStringTag:"string"==typeof i}),e.createElement(i,l))})),$e=We,Ue=(n(4792),function(t,n){var r=arguments;if(null==n||!Ve.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=$e,i[1]=function(e,t){var n={};for(var r in t)Ve.call(t,r)&&(n[r]=t[r]);return n[Ge]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)});function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Le(t)}const Xe=window.ReactDOM,Qe=Math.min,Ye=Math.max,Ke=Math.round,Je=Math.floor,Ze=e=>({x:e,y:e});function et(e){return rt(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nt(e){var t;return null==(t=(rt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rt(e){return e instanceof Node||e instanceof tt(e).Node}function ot(e){return e instanceof Element||e instanceof tt(e).Element}function it(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function at(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot)}function st(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ut(e){return tt(e).getComputedStyle(e)}function lt(e){const t=function(e){if("html"===et(e))return e;const t=e.assignedSlot||e.parentNode||at(e)&&e.host||nt(e);return at(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(et(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&st(t)?t:lt(t)}function ct(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=lt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=tt(o);return i?t.concat(a,a.visualViewport||[],st(o)?o:[],a.frameElement&&n?ct(a.frameElement):[]):t.concat(o,ct(o,[],n))}function dt(e){return ot(e)?e:e.contextElement}function pt(e){const t=dt(e);if(!it(t))return Ze(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ke(n)!==i||Ke(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?Ke(n.width):n.width)/r,s=(i?Ke(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ft=Ze(0);function mt(e){const t=tt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ft}function ht(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=dt(e);let a=Ze(1);t&&(r?ot(r)&&(a=pt(r)):a=pt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==tt(e))&&t}(i,n,r)?mt(i):Ze(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=tt(i),t=r&&ot(r)?tt(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=pt(n),t=n.getBoundingClientRect(),r=ut(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=o,l+=i,n=tt(n).frameElement}}return p={width:c,height:d,x:u,y:l},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}const gt=e.useLayoutEffect;var vt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bt=function(){};function yt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function wt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(yt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var _t=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===i(e)&&null!==e?[e]:[];var t},St=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,l({},f(e,vt))},Ct=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Rt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xt(e){return Rt(e)?window.pageYOffset:e.scrollTop}function Et(e,t){Rt(e)?window.scrollTo(0,t):e.scrollTop=t}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bt,o=xt(e),i=t-o,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+o;Et(e,u),a<n?window.requestAnimationFrame(t):r(e)}()}function Pt(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Et(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Et(e,Math.max(t.offsetTop-o,0))}function It(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var kt=!1,Ft={get passive(){return kt=!0}},Mt="undefined"!=typeof window?window:{};Mt.addEventListener&&Mt.removeEventListener&&(Mt.addEventListener("p",bt,Ft),Mt.removeEventListener("p",bt,!1));var Tt=kt;function Lt(e){return null!=e}function At(e,t,n){return e?t:n}var Dt=["children","innerProps"],Vt=["children","innerProps"];var Bt,Ht,zt,Nt=function(e){return"auto"===e?"bottom":e},Gt=(0,e.createContext)(null),jt=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=((0,e.useContext)(Gt)||{}).setPortalPlacement,d=(0,e.useRef)(null),f=p((0,e.useState)(o),2),m=f[0],h=f[1],g=p((0,e.useState)(null),2),v=g[0],b=g[1],y=u.spacing.controlHeight;return gt((function(){var e=d.current;if(e){var t="fixed"===a,n=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,h=p.top,g=n.offsetParent.getBoundingClientRect().top,v=a||Rt(c=u)?window.innerHeight:c.clientHeight,b=xt(u),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=g-w,S=v-h,C=_+b,R=d-b-h,x=f-v+b+y,E=b+h-w,O=160;switch(o){case"auto":case"bottom":if(S>=m)return{placement:"bottom",maxHeight:t};if(R>=m&&!a)return i&&Ot(u,x,O),{placement:"bottom",maxHeight:t};if(!a&&R>=r||a&&S>=r)return i&&Ot(u,x,O),{placement:"bottom",maxHeight:a?S-y:R-y};if("auto"===o||a){var P=t,I=a?_:C;return I>=r&&(P=Math.min(I-y-s,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Et(u,x),{placement:"bottom",maxHeight:t};break;case"top":if(_>=m)return{placement:"top",maxHeight:t};if(C>=m&&!a)return i&&Ot(u,E,O),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&_>=r){var k=t;return(!a&&C>=r||a&&_>=r)&&(k=a?_-w:C-w),i&&Ot(u,E,O),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});h(n.maxHeight),b(n.placement),null==c||c(n.placement)}}),[o,i,a,s,r,c,y]),n({ref:d,placerProps:l(l({},t),{},{placement:v||Nt(i),maxHeight:m})})},Wt=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return l({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},$t=Wt,Ut=Wt,qt=["size"],Xt=["innerProps","isRtl","size"],Qt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Yt=function(e){var t=e.size,n=f(e,qt);return Ue("svg",h({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qt},n))},Kt=function(e){return Ue(Yt,h({size:20},e),Ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jt=function(e){return Ue(Yt,h({size:20},e),Ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Zt=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return l({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},en=Zt,tn=Zt,nn=function(){var e=qe.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Bt||(Ht=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],zt||(zt=Ht.slice(0)),Bt=Object.freeze(Object.defineProperties(Ht,{raw:{value:Object.freeze(zt)}})))),rn=function(e){var t=e.delay,n=e.offset;return Ue("span",{css:qe({animation:"".concat(nn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},on=["data"],an=["innerRef","isDisabled","isHidden","inputClassName"],sn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},un={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":l({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},sn)},ln=function(e){return l({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},sn)},cn=function(e){var t=e.children,n=e.innerProps;return Ue("div",n,t)},dn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ue("div",h({},Ct(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ue(Kt,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ue("div",h({ref:o},Ct(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ue("div",h({},Ct(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ue(Jt,null))},DownChevron:Jt,CrossIcon:Kt,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,l=e.theme,c=e.selectProps;return Ue("div",h({},Ct(e,"group",{group:!0}),s),Ue(i,h({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),u),Ue("div",null,t))},GroupHeading:function(e){var t=St(e);t.data;var n=f(t,on);return Ue("div",h({},Ct(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ue("div",h({},Ct(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ue("span",h({},t,Ct(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=St(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=f(r,an);return Ue("div",h({},Ct(e,"input",{"input-container":!0}),{"data-value":n||""}),Ue("input",h({className:t({input:!0},s),ref:o,style:ln(a),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=f(e,Xt);return Ue("div",h({},Ct(l(l({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ue(rn,{delay:0,offset:n}),Ue(rn,{delay:160,offset:!0}),Ue(rn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Ue("div",h({},Ct(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Ue("div",h({},Ct(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,u=(0,e.useRef)(null),c=(0,e.useRef)(null),d=p((0,e.useState)(Nt(a)),2),f=d[0],m=d[1],g=(0,e.useMemo)((function(){return{setPortalPlacement:m}}),[]),v=p((0,e.useState)(null),2),b=v[0],y=v[1],w=(0,e.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||y({offset:n,rect:e})}}),[o,s,f,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);gt((function(){w()}),[w]);var _=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&u.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=dt(e),c=o||i?[...l?ct(l):[],...ct(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,r=null;const o=nt(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Je(c)+"px "+-Je(o.clientWidth-(l+d))+"px "+-Je(o.clientHeight-(c+p))+"px "+-Je(l)+"px",threshold:Ye(0,Qe(1,u))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,f)}r.observe(e)}(!0),i}(l,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),l&&!u&&m.observe(l),m.observe(t));let h=u?ht(e):null;return u&&function t(){const r=ht(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(p)}}(o,u.current,w,{elementResize:"ResizeObserver"in window}))}),[o,w]);gt((function(){_()}),[_]);var S=(0,e.useCallback)((function(e){u.current=e,_()}),[_]);if(!n&&"fixed"!==s||!b)return null;var C=Ue("div",h({ref:S},Ct(l(l({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Ue(Gt.Provider,{value:g},n?(0,Xe.createPortal)(C,n):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=f(e,Vt);return Ue("div",h({},Ct(l(l({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=f(e,Dt);return Ue("div",h({},Ct(l(l({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,d=n.Remove;return Ue(u,{data:r,innerProps:l(l({},Ct(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Ue(c,{data:r,innerProps:l({},Ct(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ue(d,{data:r,innerProps:l(l({},Ct(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:cn,MultiValueLabel:cn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ue("div",h({role:"button"},n),t||Ue(Kt,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Ue("div",h({},Ct(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ue("div",h({},Ct(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Ue("div",h({},Ct(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Ue("div",h({},Ct(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Ue("div",h({},Ct(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},pn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||pn(r)&&pn(o)))return!1;var r,o;return!0}for(var mn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},hn=function(e){return Ue("span",h({css:mn},e))},gn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vn=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,u=t.selectProps,c=t.id,d=t.isAppleDevice,p=u.ariaLiveMessages,f=u.getOptionLabel,m=u.inputValue,h=u.isMulti,g=u.isOptionDisabled,v=u.isSearchable,b=u.menuIsOpen,y=u.options,w=u.screenReaderStatus,_=u.tabSelectsValue,S=u.isLoading,C=u["aria-label"],R=u["aria-live"],x=(0,e.useMemo)((function(){return l(l({},gn),p||{})}),[p]),E=(0,e.useMemo)((function(){var e,t="";if(n&&x.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,u=n.value,c=i||r||(e=u,Array.isArray(e)?null:e),d=c?f(c):"",p=o||a||void 0,m=p?p.map(f):[],h=l({isDisabled:c&&g(c,s),label:d,labels:m},n);t=x.onChange(h)}return t}),[n,x,g,s,f]),O=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&x.onFocus){var a={focused:t,label:f(t),isDisabled:g(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:d};e=x.onFocus(a)}return e}),[r,o,f,g,x,i,s,d]),P=(0,e.useMemo)((function(){var e="";if(b&&y.length&&!S&&x.onFilter){var t=w({count:i.length});e=x.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,b,x,y,w,S]),I="initial-input-focus"===(null==n?void 0:n.action),k=(0,e.useMemo)((function(){var e="";if(x.guidance){var t=o?"value":b?"menu":"input";e=x.guidance({"aria-label":C,context:t,isDisabled:r&&g(r,s),isMulti:h,isSearchable:v,tabSelectsValue:_,isInitialFocus:I})}return e}),[C,r,o,h,g,v,b,x,s,_,I]),F=Ue(e.Fragment,null,Ue("span",{id:"aria-selection"},E),Ue("span",{id:"aria-focused"},O),Ue("span",{id:"aria-results"},P),Ue("span",{id:"aria-guidance"},k));return Ue(e.Fragment,null,Ue(hn,{id:c},I&&F),Ue(hn,{"aria-live":R,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!I&&F))},bn=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],yn=new RegExp("["+bn.map((function(e){return e.letters})).join("")+"]","g"),wn={},Sn=0;Sn<bn.length;Sn++)for(var Cn=bn[Sn],Rn=0;Rn<Cn.letters.length;Rn++)wn[Cn.letters[Rn]]=Cn.base;var xn=function(e){return e.replace(yn,(function(e){return wn[e]}))},En=function(e,t){void 0===t&&(t=fn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(xn),On=function(e){return e.replace(/^\s+|\s+$/g,"")},Pn=function(e){return"".concat(e.label," ").concat(e.value)},In=["innerRef"];function kn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=p(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=p(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(f(e,In),"onExited","in","enter","exit","appear");return Ue("input",h({ref:t},n,{css:qe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Fn=["boxSizing","height","overflow","paddingRight","position"],Mn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Tn(e){e.preventDefault()}function Ln(e){e.stopPropagation()}function An(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Dn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Vn=!("undefined"==typeof window||!window.document||!window.document.createElement),Bn=0,Hn={capture:!1,passive:!1},zn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Nn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Gn(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=(0,e.useRef)(!1),u=(0,e.useRef)(!1),l=(0,e.useRef)(0),c=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,l=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=c.current,m=t>0,h=d-p-l,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>h?(r&&!s.current&&r(e),f.scrollTop=d,g=!0,s.current=!0):!m&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,g=!0,u.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),p=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,e.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,e.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=(0,e.useCallback)((function(e){if(e){var t=!!Tt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return(0,e.useEffect)((function(){if(n){var e=c.current;return h(e),function(){g(e)}}}),[n,h,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(Vn){var t=document.body,n=t&&t.style;if(o&&Fn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Bn<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Mn).forEach((function(e){var t=Mn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Dn()&&(t.addEventListener("touchmove",Tn,Hn),e&&(e.addEventListener("touchstart",An,Hn),e.addEventListener("touchmove",Ln,Hn))),Bn+=1}}),[o]),u=(0,e.useCallback)((function(e){if(Vn){var t=document.body,n=t&&t.style;Bn=Math.max(Bn-1,0),o&&Bn<1&&Fn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Dn()&&(t.removeEventListener("touchmove",Tn,Hn),e&&(e.removeEventListener("touchstart",An,Hn),e.removeEventListener("touchmove",Ln,Hn)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){u(e)}}}),[n,s,u]),function(e){a.current=e}}({isEnabled:r});return Ue(e.Fragment,null,r&&Ue("div",{onClick:zn,css:Nn}),n((function(e){i(e),a(e)})))}var jn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Wn=function(e){var t=e.name,n=e.onFocus;return Ue("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:jn,value:"",onChange:function(){}})};function $n(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Un(){return $n(/^Mac/i)}var qn={clearIndicator:tn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return l({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:en,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return l({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return l({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return l(l({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},un),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return l({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Ut,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return l((s(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),s(n,"position","absolute"),s(n,"width","100%"),s(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return l({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return l({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return l({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return l({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:$t,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return l({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return l({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return l({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return l({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Xn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Qn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:It(),captureMenuScroll:!It(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=l({ignoreCase:!0,ignoreAccents:!0,stringify:Pn,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?On(t):t,c=a?On(i(e)):i(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=En(u),c=xn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yn(e,t,n,r){return{type:"option",data:t,isDisabled:or(e,t,n),isSelected:ir(e,t,n),label:nr(e,t),value:rr(e,t),index:r}}function Kn(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Yn(e,n,t,r)})).filter((function(t){return er(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Yn(e,n,t,r);return er(e,i)?i:void 0})).filter(Lt)}function Jn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,w(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Zn(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,w(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function er(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!sr(e)||!i)&&ar(e,{label:a,value:s,data:o},r)}var tr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},nr=function(e,t){return e.getOptionLabel(t)},rr=function(e,t){return e.getOptionValue(t)};function or(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ir(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=rr(e,t);return n.some((function(t){return rr(e,t)===r}))}function ar(e,t,n){return!e.filterOption||e.filterOption(t,n)}var sr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ur=1,lr=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(c,t);var n,r,o,a,s,u=(n=c,r=y(),function(){var e,t=b(n);if(r){var o=b(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Un()||$n(/^iPhone/i)||$n(/^iPad/i)||Un()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(w(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=At(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(At(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=At(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return tr(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Zn(Kn(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return wt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return nr(t.props,e)},t.getOptionValue=function(e){return rr(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=qn[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,l(l({},dn),e.components);var e},t.buildCategorizedOptions=function(){return Kn(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Jn(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:l({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Rt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return sr(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ur),t.state.selectValue=_t(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=tr(n,r[o])}return t}return o=c,a=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Pt(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Pt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Xn):l(l({},Xn),this.props.theme):Xn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return or(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ir(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ar(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,s=t.form,u=t.menuIsOpen,c=t.required,d=this.getComponents().Input,p=this.state,f=p.inputIsHidden,m=p.ariaSelection,g=this.commonProps,v=o||this.getElementId("input"),b=l(l(l({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(d,h({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:n,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},b)):e.createElement(kn,h({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bt,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,u=n.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,m=c.inputValue,g=c.placeholder,v=this.state,b=v.selectValue,y=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(u,h({},l,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return b.map((function(n,s){var u=n===y,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,h({},l,{components:{Container:o,Label:i,Remove:a},isFocused:u,isDisabled:p,key:c,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(m)return null;var _=b[0];return e.createElement(s,h({},l,{data:_,isDisabled:p}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,h({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,h({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,h({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,h({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,s=n.MenuPortal,u=n.LoadingMessage,l=n.NoOptionsMessage,c=n.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,v=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,w=f.maxMenuHeight,_=f.menuIsOpen,S=f.menuPlacement,C=f.menuPosition,R=f.menuPortalTarget,x=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,O=f.noOptionsMessage,P=f.onMenuScrollToTop,I=f.onMenuScrollToBottom;if(!_)return null;var k,F=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,s=n.isSelected,u=n.label,l=n.value,f=p===i,m=a?void 0:function(){return t.onOptionHover(i)},g=a?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(r),b={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return e.createElement(c,h({},d,{innerProps:b,data:i,isDisabled:a,isSelected:s,key:v,label:u,type:o,value:l,isFocused:f,innerRef:f?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,s=n.index,u="".concat(t.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return e.createElement(r,h({},d,{key:u,data:i,options:a,Heading:o,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return F(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return F(n,"".concat(n.index))}));else if(v){var M=b({inputValue:g});if(null===M)return null;k=e.createElement(u,d,M)}else{var T=O({inputValue:g});if(null===T)return null;k=e.createElement(l,d,T)}var L={minMenuHeight:y,maxMenuHeight:w,menuPlacement:S,menuPosition:C,menuShouldScrollIntoView:E},A=e.createElement(jt,h({},d,L),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,u=o.maxHeight;return e.createElement(i,h({},d,L,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:v,placement:s}),e.createElement(Gn,{captureEnabled:m,onTopArrive:P,onBottomArrive:I,lockEnabled:x},(function(n){return e.createElement(a,h({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:v,maxHeight:u,focusedOption:p}),k)})))}));return R||"fixed"===C?e.createElement(s,h({},d,{appendTo:R,controlElement:this.controlRef,menuPlacement:S,menuPosition:C}),A):A}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,s=n.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!o)return e.createElement(Wn,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(r){var l=u.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,s=n.selectValue,u=this.getFocusableOptions();return e.createElement(vn,h({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(o,h({},p,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),e.createElement(n,h({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),e.createElement(i,h({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,h({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],s=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=t.instancePrefix,c=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,m=e.isMulti,h=_t(d),g={};if(n&&(d!==n.value||c!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var v=p?function(e,t){return Jn(Kn(e,t))}(e,h):[],b=p?Zn(Kn(e,h),"".concat(u,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);g={selectValue:h,focusedOption:w,focusedOptionId:tr(b,w),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var _=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},S=i,C=a&&s;return a&&!C&&(S={value:At(m,h,h[0]||null),options:h,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(S=null),l(l(l({},g),_),{},{prevProps:e,ariaSelection:S,prevWasFocused:C})}}],a&&g(o.prototype,a),s&&g(o,s),Object.defineProperty(o,"prototype",{writable:!1}),c}(e.Component);lr.defaultProps=Qn;var cr=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,u=t.inputValue,c=t.menuIsOpen,d=t.onChange,h=t.onInputChange,g=t.onMenuClose,v=t.onMenuOpen,b=t.value,y=f(t,m),w=p((0,e.useState)(void 0!==u?u:r),2),_=w[0],S=w[1],C=p((0,e.useState)(void 0!==c?c:i),2),R=C[0],x=C[1],E=p((0,e.useState)(void 0!==b?b:s),2),O=E[0],P=E[1],I=(0,e.useCallback)((function(e,t){"function"==typeof d&&d(e,t),P(e)}),[d]),k=(0,e.useCallback)((function(e,t){var n;"function"==typeof h&&(n=h(e,t)),S(void 0!==n?n:e)}),[h]),F=(0,e.useCallback)((function(){"function"==typeof v&&v(),x(!0)}),[v]),M=(0,e.useCallback)((function(){"function"==typeof g&&g(),x(!1)}),[g]),T=void 0!==u?u:_,L=void 0!==c?c:R,A=void 0!==b?b:O;return l(l({},y),{},{inputValue:T,menuIsOpen:L,onChange:I,onInputChange:k,onMenuClose:M,onMenuOpen:F,value:A})}(t);return e.createElement(lr,h({ref:n},r))})),dr=cr;const pr=({children:t,cacheKey:n="ld-reports"})=>{const r=(0,o.useRef)(null),[i,a]=(0,o.useState)(null);return(0,o.useEffect)((()=>{r.current&&!i&&a(_e({key:n,container:r.current}))}),[n,i]),(0,e.createElement)("div",{ref:r},i?(0,e.createElement)(He,{value:i},t):t)},fr=t=>(0,e.createElement)(pr,{cacheKey:"ld-reports-select"},(0,e.createElement)(dr,{...t}));class mr extends e.Component{constructor(e){super(e),this.state={value:e.duration},this.handleValueChange=this.handleValueChange.bind(this)}handleValueChange(e){this.setState({value:e});const t=new CustomEvent("local_duration_change",{detail:{value:e}});document.dispatchEvent(t)}render(){const e=[{value:"1 day",label:(0,r.__)("Last 1 day","learndash-reports-pro")},{value:"7 days",label:(0,r.__)("Last 7 days","learndash-reports-pro")},{value:"30 days",label:(0,r.__)("Last 30 days","learndash-reports-pro")},{value:"3 months",label:(0,r.__)("Last 3 months","learndash-reports-pro")},{value:"6 months",label:(0,r.__)("Last 6 months","learndash-reports-pro")}];return(0,o.createElement)("div",{className:"wisdm-learndash-reports-duration-filter"},(0,o.createElement)(fr,{options:e,onChange:this.handleValueChange,value:{value:this.state.value.value,label:this.state.value.label}}))}}const hr=mr;class gr extends e.Component{constructor(e){super(e),this.state={group:e.group,course:e.course,groups:e.groups,courses:e.courses,loading_groups:!1},this.changeGroups=this.changeGroups.bind(this),this.changeCourse=this.changeCourse.bind(this)}changeGroups(e){this.setState({groups:e.detail.value})}changeCourse(e){this.setState({course:e.detail.value})}handleGroupChange=e=>{const t=new CustomEvent("local_group_change",{detail:{value:e}});document.dispatchEvent(t),this.setState({group:e})};handleCourseChange=e=>{const t=new CustomEvent("local_course_change",{detail:{value:e}});document.dispatchEvent(t),this.setState({course:e})};componentDidMount(){document.addEventListener("wisdm-ld-reports-parent-groups-changed",this.changeGroups),document.addEventListener("wisdm-ld-reports-course-changed",this.changeCourse)}static getDerivedStateFromProps(e,t){return e.courses!==t.courses?{courses:e.courses}:e.groups!==t.groups?{groups:e.groups}:e.group!==t.group?{group:e.group}:e.course!==t.course?{course:e.course}:null}render(){return(0,o.createElement)("div",{className:"wisdm-learndash-reports-local-filters"},(0,o.createElement)("div",{className:"selector lr-learner"},(0,o.createElement)("div",{className:"selector-label"},wisdm_reports_get_ld_custom_lebel_if_avaiable("Groups"),this.state.lock_icon),(0,o.createElement)("div",{className:"select-control"},(0,o.createElement)(fr,{onChange:this.handleGroupChange.bind(this),options:this.state.groups,value:{value:this.state.group.value,label:this.state.group.label}}))),(0,o.createElement)("div",{className:"selector lr-learner"},(0,o.createElement)("div",{className:"selector-label"},wisdm_reports_get_ld_custom_lebel_if_avaiable("Courses"),this.state.lock_icon),(0,o.createElement)("div",{className:"select-control"},(0,o.createElement)(fr,{onChange:this.handleCourseChange.bind(this),options:this.state.courses,value:{value:this.state.course.value,label:this.state.course.label}}))))}}const vr=gr;class br extends t().Component{constructor(e){super(e)}render(){let t="";return 1==this.props.text&&(t=(0,e.createElement)("span",{className:"supporting-text"},(0,r.__)("Your report is being generated.","learndash-reports-pro"))),(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block","data-wisdm-loader":"true"},(0,e.createElement)("div",{className:"wisdm-learndash-reports-revenue-from-courses graph-card-container"},(0,e.createElement)("div",{className:"wisdm-graph-loading"},(0,e.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/loader.svg",alt:""}),t)))}}const yr=br;class wr extends t().Component{constructor(e){super(e),this.image=null!=e.image_path?e.image_path:"#",this.url=null!=e.url?e.url:"https://go.learndash.com/ppaddon"}render(){let t="",n="",o="";return wisdm_ld_reports_common_script_data.is_admin_user&&(n=(0,e.createElement)("div",null,(0,e.createElement)("a",{className:"wrld-upgrade-btn",target:"__blank",href:this.url},(0,r.__)("Upgrade to PRO","learndash-reports-pro"))),o=(0,e.createElement)("span",null,(0,r.__)("OR","learndash-reports-pro"))),t=(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block wrld-dummy-images"},(0,e.createElement)("div",{className:"wisdm-learndash-reports-time-spent-on-a-course graph-card-container"},(0,e.createElement)("div",{className:"wrld-upgrade-container"},(0,e.createElement)("div",{className:"wrld-upgrade-content"},(0,e.createElement)("span",null,(0,r.__)("Available in ProPanel","learndash-reports-pro")),n," ",o,(0,e.createElement)("div",null,(0,e.createElement)("a",{className:"wrld-learn-more",target:"__blank",href:this.url},(0,r.__)("Learn More","learndash-reports-pro"))))),(0,e.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/"+this.image}))),t}}const _r=wr;var Sr=n(9636),Cr=wisdm_ld_reports_common_script_data.ld_api_settings;function Rr(e){const t=new CustomEvent("load_next_page_inactive_users",{detail:{value:e}});document.dispatchEvent(t)}function xr({columns:t,data:n}){const{getTableProps:r,getTableBodyProps:o,headerGroups:i,prepareRow:a,page:s,canPreviousPage:u,canNextPage:l,pageOptions:c,pageCount:d,gotoPage:p,nextPage:f,previousPage:m,setPageSize:h,state:{pageIndex:g,pageSize:v}}=(0,Sr.useTable)({columns:t,data:n,initialState:{pageIndex:0,pageSize:5e3}},Sr.usePagination);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"course-reports-wrapper"},(0,e.createElement)("div",{className:"inactive-user-table-wrap"},(0,e.createElement)("table",{className:"course-list-table",...r()},(0,e.createElement)("thead",null,i.map((t=>(0,e.createElement)("tr",{...t.getHeaderGroupProps()},t.headers.map((t=>(0,e.createElement)("th",{...t.getHeaderProps(),className:t.className},t.render("Header")))))))),(0,e.createElement)("tbody",{...o()},s.map(((t,n)=>(a(t),(0,e.createElement)("tr",{className:"course-list-table-data-row",...t.getRowProps()},t.cells.map((t=>(0,e.createElement)("td",{className:t.column.className,...t.getCellProps()},t.render("Cell")))))))))))))}class Er extends e.Component{constructor(t){super(t);let n=null;null==this.getUserType()&&(n={message:(0,r.__)("Sorry you are not allowed to access this block, please check if you have proper access permissions","learndash-reports-pro")}),this.state={isLoaded:!1,error:n,reportTypeInUse:wisdm_ld_reports_common_script_data.report_type,duration:{value:"30 days",label:(0,r.__)("Last 30 days","learndash-reports-pro")},page:1,group:{value:null,label:(0,r.__)("All","learndash-reports-pro")},course:{value:null,label:(0,r.__)("All","learndash-reports-pro")},courses:[],groups:[],chart_title:(0,r.__)("Inactive Users List","learndash-reports-pro"),lock_icon:"",request_data:null,help_text:(0,r.sprintf)(
(0,r.__)("This report displays the inactive users on the website. Note: The users who are created from the backend and enrolled in a %s, but never visited the platform will not be displayed in the table.","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Course","lower")),course_report_type:null,tableHeaders:[],tableData:[],show_supporting_text:!1},0==wisdm_ld_reports_common_script_data.is_pro_version_active&&(this.upgdare_to_pro="wisdm-ld-reports-upgrade-to-pro-front",this.lock_icon=(0,e.createElement)("span",{title:(0,r.__)("Please upgrade the plugin to access this feature","learndash-reports-pro"),className:"dashicons dashicons-lock ld-reports top-corner"})),this.applyFilters=this.applyFilters.bind(this),this.handleReportTypeChange=this.handleReportTypeChange.bind(this),this.showDummyImages=this.showDummyImages.bind(this),this.updateLocalDuration=this.updateLocalDuration.bind(this),this.updateLocalGroup=this.updateLocalGroup.bind(this),this.updateLocalCourse=this.updateLocalCourse.bind(this),this.addMoreData=this.addMoreData.bind(this),this.defaultFiltersLoaded=this.defaultFiltersLoaded.bind(this)}getUserType(){let e=wisdm_ld_reports_common_script_data.user_roles;return"object"==typeof e&&(e=Object.keys(e).map((t=>e[t]))),null==e||0==e.length?null:e.includes("administrator")?"administrator":e.includes("group_leader")?"group_leader":null}componentDidMount(){this.getCourseListStateData("/rp/v1/inactive-users?duration="+this.state.duration.value),document.addEventListener("wisdm-ld-reports-filters-applied",this.applyFilters),document.addEventListener("wisdm-ld-reports-report-type-selected",this.handleReportTypeChange),document.addEventListener("wisdm-ldrp-course-report-type-changed",this.showDummyImages),document.addEventListener("local_duration_change",this.updateLocalDuration),document.addEventListener("local_group_change",this.updateLocalGroup),document.addEventListener("local_course_change",this.updateLocalCourse),document.addEventListener("load_next_page_inactive_users",this.addMoreData),document.addEventListener("wrld-default-filters-loaded",this.defaultFiltersLoaded),setTimeout((()=>{if(0===this.state.courses.length&&0===this.state.groups.length&&!document.querySelector(".wisdm-learndash-reports-report-filters")){window.callStack||(window.callStack=[]);let e="/rp/v1/report-filters-data";wisdm_ld_reports_common_script_data.wpml_lang&&(e+="/?wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:e}).then((e=>{e.wisdm_ld_reports_common_script_data&&(window.wisdm_ld_reports_common_script_data={...window.wisdm_ld_reports_common_script_data,...e.wisdm_ld_reports_common_script_data}),this.defaultFiltersLoaded()}))}}),1e3)}defaultFiltersLoaded(){let e=[{value:null,label:(0,r.__)("All","learndash-reports-pro")}];e=e.concat(wisdm_ld_reports_common_script_data.courses);const t=wisdm_ld_reports_common_script_data.course_groups;t.length>0&&t.unshift({value:null,label:(0,r.__)("All","learndash-reports-pro")}),this.setState({isLoaded:!0,groups:t,courses:e});const n=new CustomEvent("wisdm-ld-reports-parent-groups-changed",{detail:{value:t}});document.dispatchEvent(n)}updateLocalDuration(e){this.setState({duration:e.detail.value,page:1});const t="/rp/v1/inactive-users/?duration="+e.detail.value.value+"&group="+this.state.group.value+"&course="+this.state.course.value+"&page=1";this.getCourseListStateData(t)}updateLocalGroup(e){if(null==e.detail.value.value)this.setState({group:{value:null,label:(0,r.__)("All","learndash-reports-pro")},page:1}),this.updateSelectorsFor("group",null,"/ldlms/v1/"+Cr["sfwd-courses"]+"?test=1");else{this.setState({group:e.detail.value,page:1});let t=9999999999999;e.detail.value.courses_enrolled.length>0&&(t=e.detail.value.courses_enrolled),this.updateSelectorsFor("group",e.detail.value,"/ldlms/v1/"+Cr["sfwd-courses"]+"?include="+t)}const t="/rp/v1/inactive-users/?duration="+this.state.duration.value+"&group="+e.detail.value.value+"&course="+this.state.course.value+"&page=1";this.getCourseListStateData(t)}updateLocalCourse(e){null==e.detail.value?this.setState({course:{value:null,label:(0,r.__)("All","learndash-reports-pro")},page:1}):this.setState({course:e.detail.value,page:1});const t="/rp/v1/inactive-users/?duration="+this.state.duration.value+"&group="+this.state.group.value+"&course="+e.detail.value.value+"&page=1";this.getCourseListStateData(t)}addMoreData(e){const t=this.state.page+1;this.setState({page:t});const n="/rp/v1/inactive-users/?duration="+this.state.duration.value+"&group="+this.state.group.value+"&course="+this.state.course.value+"&page="+t;this.getCourseListStateData(n,!0)}componentDidUpdate(){jQuery(".wisdm-learndash-reports-inactive-users .chart-title .dashicons, .wisdm-learndash-reports-inactive-users .chart-summary-revenue-figure .dashicons").on("mouseenter",(function(){const e=jQuery("<div/>").addClass("wdm-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this));e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".graph-card-container").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).find(".wdm-tooltip").remove()}))}handleReportTypeChange(e){this.setState({reportTypeInUse:e.detail.active_reports_tab}),"quiz-reports"==e.detail.active_reports_tab?wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-inactive-users",!1):wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-inactive-users",!0)}showDummyImages(e){this.setState({course_report_type:e.detail.report_type}),"learner-specific-course-reports"===e.detail.report_type?jQuery(".wisdm-learndash-reports-inactive-users").parent().hide():jQuery(".wisdm-learndash-reports-inactive-users").parent().show()}applyFilters(e){"learner-specific-course-reports"===this.state.course_report_type&&jQuery(".wisdm-learndash-reports-inactive-users").parent().hide();const t=e.detail.selected_groups,n=e.detail.selected_courses,r="/rp/v1/inactive-users/?duration="+this.state.duration.value+"&group="+t+"&course="+n+"&page="+this.state.page;null!=n?this.setState({show_supporting_text:!0}):this.setState({show_supporting_text:!1}),this.getCourseListStateData(r);const o=this.state.courses.find((e=>e.value===n)),i=this.state.groups.find((e=>e.value===t));this.setState({course:o,group:i})}getCourseListStateData(e="/rp/v1/inactive-users",t=!1){t||this.setState({isLoaded:!1}),wisdm_ld_reports_common_script_data.wpml_lang&&(e+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:e}).then((e=>{if("no-data"===e.code)return this.setState({error:{message:e.message},tableData:[],tableHeaders:[],more:!1,isLoaded:!0}),void(e.data&&e.data.requestData&&this.setState({request_data:e.data.requestData}));let n=e.table;null==e&&(n=[]),t&&(n=this.state.tableData.concat(n)),this.setState({isLoaded:!0,error:null,isProVersion:wisdm_ld_reports_common_script_data.is_pro_version_active,tableHeaders:this.getTableHeadersByType(n),tableData:n,request_data:e.requestData,more:e.more_data})})).catch((e=>{e.data&&e.data.requestData&&this.setState({request_data:e.data.requestData}),this.setState({error:e,isLoaded:!0})}))}getCourseListFromJson(e){let t=[];if(0==e.length)return t;for(let n=0;n<e.length;n++)t.push({value:e[n].id,label:e[n].title.rendered});return t=function(e){const t=function(){let e=wisdm_ld_reports_common_script_data.user_roles;return"object"==typeof e&&(e=Object.keys(e).map((t=>e[t]))),null==e||0==e.length?null:e.includes("administrator")?"administrator":e.includes("group_leader")?"group_leader":e.includes("wdm_instructor")?"instructor":null}();let n=[];if("group_leader"==t){const t=wisdm_ld_reports_common_script_data.course_groups,r=[];t.length>0&&t.forEach((function(e){"courses_enrolled"in e&&e.courses_enrolled.forEach((function(e){r.includes(e)||r.push(e)}))})),r.length>0&&e.forEach((function(e){r.includes(e.value)&&n.push(e)}))}else n="instructor"==t?wisdm_ld_reports_common_script_data.courses:e;return"administrator"!=t&&n.length>0&&n.unshift({value:null,label:(0,r.__)("All","learndash-reports-pro")}),n}(t),t}updateSelectorsFor(e,t,n="/wp/v2/categories/"){if("group"===e)if(n+="&per_page=-1",null==t){const e=wisdm_ld_reports_common_script_data.courses;0!=e&&e.length>0?this.setState({courses:e,courses_disabled:!1,loading_courses:!1,course:{value:null,label:(0,r.__)("All","learndash-reports-pro")}}):this.setState({courses:[],course:{value:null,label:(0,r.__)("All","learndash-reports-pro")},loading_courses:!1});const t=new CustomEvent("wisdm-ld-reports-course-changed",{detail:{value:this.state.course}});document.dispatchEvent(t)}else this.setState({loading_courses:!0}),wisdm_ld_reports_common_script_data.wpml_lang&&(n+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:n}).then((e=>{const t=this.getCourseListFromJson(e);0!=t&&t.length>0?this.setState({course:{value:null,label:(0,r.__)("All","learndash-reports-pro")},courses:t,courses_disabled:!1,loading_courses:!1}):this.setState({course:{value:null,label:(0,r.__)("All","learndash-reports-pro")},courses:[],loading_courses:!1});const n=new CustomEvent("wisdm-ld-reports-course-changed",{detail:{value:{value:null,label:(0,r.__)("All","learndash-reports-pro")}}});document.dispatchEvent(n)}))}getTableHeadersByType(e){const t=[],n={id:(0,r.__)("ID","learndash-reports-pro"),name:(0,r.__)("Name","learndash-reports-pro"),email:(0,r.__)("Email ID","learndash-reports-pro"),status:(0,r.__)("Status","learndash-reports-pro"),steps:(0,r.__)("Steps Completed","learndash-reports-pro"),date:(0,r.__)("Completion Date","learndash-reports-pro"),time:(0,r.__)("Time spent","learndash-reports-pro"),total_spent_time:(0,r.__)("Total Time Spent","learndash-reports-pro"),category:wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")+" "+(0,r.__)("Category","learndash-reports-pro"),course:wisdm_reports_get_ld_custom_lebel_if_avaiable("Course"),groups:wisdm_reports_get_ld_custom_lebel_if_avaiable("Groups"),user_name:(0,r.__)("Learner","learndash-reports-pro"),instructors:(0,r.__)("Instructor","learndash-reports-pro"),students:(0,r.__)("No. Of Students","learndash-reports-pro"),start_date:(0,r.__)("Start Date","learndash-reports-pro"),started:(0,r.__)("Enrolled On","learndash-reports-pro"),end_date:(0,r.__)("End Date","learndash-reports-pro"),completed:(0,r.__)("Completion Date","learndash-reports-pro"),completion_rate:(0,r.__)("Completion %","learndash-reports-pro"),completion_rate2:(0,r.__)("% Completion","learndash-reports-pro"),completed_users:(0,r.__)("Completed Learners","learndash-reports-pro"),in_progress:(0,r.__)("In Progress","learndash-reports-pro"),not_started:(0,r.__)("Not Started","learndash-reports-pro"),lesson:wisdm_reports_get_ld_custom_lebel_if_avaiable("Lesson"),course_progress:(0,r.__)("Completion %","learndash-reports-pro"),quizzes:(0,r.__)("No. Of","learndash-reports-pro")+" "+wisdm_reports_get_ld_custom_lebel_if_avaiable("Quizzes"),quiz_count:(0,r.__)("No. Of","learndash-reports-pro")+" "+wisdm_reports_get_ld_custom_lebel_if_avaiable("Quizzes"),quiz_title:wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")+" "+(0,r.__)("Title","learndash-reports-pro"),total_attempts:(0,r.__)("Total Attempts","learndash-reports-pro"),attempts:wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")+" "+(0,r.__)("Attempts","learndash-reports-pro"),pass_rate:wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")+" "+(0,r.__)("Pass %","learndash-reports-pro"),avg_score:(0,r.__)("Avg","learndash-reports-pro")+" "+wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")+" "+(0,r.__)("Score","learndash-reports-pro"),pass_count:(0,r.sprintf)(
(0,r.__)("No. Of %s Pass","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Quizzes")),fail_count:(0,r.sprintf)(
(0,r.__)("No. Of %s Fail","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Quizzes")),time_spent:(0,r.__)("Time Spent","learndash-reports-pro"),total_time_spent:(0,r.__)("Total Time Spent","learndash-reports-pro"),avg_total_time_spent:(0,r.__)("Avg. Total Time Spent","learndash-reports-pro"),course_completion_time:(0,r.__)("Completion Time","learndash-reports-pro"),avg_time_spent:(0,r.__)("Avg. Completion Time","learndash-reports-pro"),quiz_attendant_count:(0,r.sprintf)(
(0,r.__)("No. Of Students Completed %s","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")),last_access:(0,r.__)("Last Activity","learndash-reports-pro"),topic_title:wisdm_reports_get_ld_custom_lebel_if_avaiable("Topic")+" "+(0,r.__)(" Title","learndash-reports-pro"),topic_completion_count:wisdm_reports_get_ld_custom_lebel_if_avaiable("Topic")+" "+(0,r.__)("Completed By Students","learndash-reports-pro"),quiz_time:wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")+" "+(0,r.__)("Time","learndash-reports-pro"),quiz_attempts:wisdm_reports_get_ld_custom_lebel_if_avaiable("Quiz")+" "+(0,r.__)("Attempts","learndash-reports-pro")};if(null!=e&&e.length>0){const r=Object.keys(e[0]);if(r.length>0)for(let e=0;e<r.length;e++){const o=r[e];null==n[o]?t.push({Header:o,accessor:o,className:"table-"+o,toolTip:"total_time_spent"==o||"time_spent"==o||"time"==o||"avg_time_spent"==o||"course_completion_time"==o||"avg_total_time_spent"==o}):t.push({Header:n[o],accessor:o,className:"table-"+o,toolTip:"total_time_spent"==o||"time_spent"==o||"time"==o||"avg_time_spent"==o||"course_completion_time"==o||"avg_total_time_spent"==o})}}return t}updateChart(e){this.setState({isLoaded:!1,error:null,request_data:null}),wisdm_ld_reports_common_script_data.wpml_lang&&(e+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:e}).then((e=>{e.requestData&&this.setState({request_data:e.requestData})})).catch((e=>{e.data&&e.data.requestData&&this.setState({request_data:e.data.requestData}),this.setState({error:e,isLoaded:!0})}))}render(){let t=(0,e.createElement)("div",null);return"learner-specific-course-reports"==this.state.course_report_type?"":wisdm_ld_reports_common_script_data.is_pro_version_active?(t=""!=this.state.reportTypeInUse&&"default-ld-reports"!=this.state.reportTypeInUse?"":this.state.isLoaded?this.state.error?(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block "},(0,e.createElement)("div",{className:"wisdm-learndash-reports-inactive-users graph-card-container"},(0,e.createElement)("div",{className:"chart-header inactive-users-chart-header"},(0,e.createElement)("div",{className:"chart-title"},(0,e.createElement)("div",null,(0,e.createElement)("span",null,this.state.chart_title),(0,e.createElement)("span",{className:"dashicons dashicons-info-outline widm-ld-reports-info","data-title":this.state.help_text})),(0,e.createElement)(hr,{pro_upgrade_option:this.upgdare_to_pro,wrapper_class:"chart-summary-inactive-users",duration:this.state.duration})),(0,e.createElement)(vr,{group:this.state.group,course:this.state.course,groups:this.state.groups,courses:this.state.courses})),(0,e.createElement)("div",null,this.state.error.message))):(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block "},(0,e.createElement)("div",{className:"wisdm-learndash-reports-inactive-users graph-card-container"},(0,e.createElement)("div",{className:"chart-header inactive-users-chart-header"},(0,e.createElement)("div",{className:"chart-title"},(0,e.createElement)("div",null,(0,e.createElement)("span",null,this.state.chart_title),(0,e.createElement)("span",{className:"dashicons dashicons-info-outline widm-ld-reports-info","data-title":this.state.help_text})),(0,e.createElement)(hr,{pro_upgrade_option:this.upgdare_to_pro,wrapper_class:"chart-summary-inactive-users",duration:this.state.duration})),(0,e.createElement)(vr,{group:this.state.group,course:this.state.course,groups:this.state.groups,courses:this.state.courses})),(0,e.createElement)("div",null,this.state.tableHeaders.length>0?(0,e.createElement)(xr,{columns:this.state.tableHeaders,data:this.state.tableData}):(0,e.createElement)("div",{className:"error-message"},(0,e.createElement)("span",null,(0,r.__)("No Data Found","learndash-reports-pro"))),"yes"==this.state.more?(0,e.createElement)("span",{className:"load-more-ajax",onClick:Rr},(0,r.__)("View More","learndash-reports-pro")):(0,e.createElement)("span",null)))):(0,e.createElement)(yr,{text:this.state.show_supporting_text}),t):(t=(0,e.createElement)(_r,{image_path:"iu.jpg",url:"https://go.learndash.com/ppaddon"}),t)}}document.addEventListener("DOMContentLoaded",(function(e){const n=document.getElementsByClassName("wisdm-learndash-reports-inactive-users front");n.length>0&&(0,o.createRoot)(n[0]).render(t().createElement(Er))}))})()})();