freemium-ui 2.1.0-alpha.13 → 2.1.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Alert/{index-CZXYpsOs.js → index-BLsA-D5R.js} +1 -1
- package/lib/Alert/index.js +1 -1
- package/lib/AutoComplete/{index-B9TZqlI1.js → index-B1mSfRyY.js} +1 -1
- package/lib/AutoComplete/index.js +1 -1
- package/lib/BoxedRadio/{index-CVxlY3rB.js → index-IgAvsvVX.js} +1 -1
- package/lib/BoxedRadio/index.js +1 -1
- package/lib/Checkbox/{index-BsjmV0hy.js → index-Da5dAfcy.js} +1 -1
- package/lib/Checkbox/index.js +1 -1
- package/lib/Confirmation/{index-CW5zlCS4.js → index-By3ZGP_F.js} +1 -1
- package/lib/Confirmation/index.js +1 -1
- package/lib/CustomizeColumns/{index-etfd-otK.js → index-BopGGNea.js} +1 -1
- package/lib/Drawer/{index-D3U74w0b.js → index-BsqaUXLh.js} +1 -1
- package/lib/Drawer/index.js +1 -1
- package/lib/Dropdown/{index-De1d7eOv.js → index-DdwM-PHx.js} +1 -1
- package/lib/Dropdown/index.js +1 -1
- package/lib/Input/index.js +1 -1
- package/lib/Menu/{index-D_xw-X-N.js → index-x94CBOFl.js} +1 -1
- package/lib/Menu/index.js +1 -1
- package/lib/Modal/{index-C7St4LMx.js → index-B_p2kH3b.js} +1 -1
- package/lib/Modal/index.js +1 -1
- package/lib/MultiSelectDropdown/{index-C-QyjthX.js → index-Dfhyy_2s.js} +1 -1
- package/lib/MultiSelectDropdown/index.js +1 -1
- package/lib/Pickers/index.js +1 -1
- package/lib/Popover/{index-Cia2Ay5Z.js → index-CJeyJLdk.js} +1 -1
- package/lib/Popover/index.js +1 -1
- package/lib/Radio/index.js +1 -1
- package/lib/RadioGroup/{index-B6ZQusN4.js → index-Dmdo8Ww5.js} +1 -1
- package/lib/Reorder/{index-BlLihKmG.js → index-BWdMAvTJ.js} +1 -1
- package/lib/Reorder/index.js +1 -1
- package/lib/SortDropdown/{index-B5GtlOVB.js → index-pLOLAFmj.js} +1 -1
- package/lib/SortDropdown/index.js +1 -1
- package/lib/Table/{index-DU5Q3ZRb.js → index-CtQC5afR.js} +1 -1
- package/lib/Table/index.js +1 -1
- package/lib/TextArea/{index-D204gYac.js → index-B91jgzER.js} +1 -1
- package/lib/ThemeProvider/{index-BcubY7n7.js → index-D_Lpg7Jr.js} +1 -1
- package/lib/ThemeProvider/index.js +1 -1
- package/lib/TimePicker/{index-DjYMzAV-.js → index-DPOU16Ta.js} +1 -1
- package/lib/Toast/index.js +1 -1
- package/lib/ToastProvider/{index-ypcx69bc.js → index-OcLhKM25.js} +1 -1
- package/lib/Tooltip/{index-CR3v-B25.js → index-DRDAqp6g.js} +1 -1
- package/lib/Tooltip/index.js +1 -1
- package/lib/WorkspaceTable/{index-DxZwUTpN.js → index-jvUWFiEm.js} +1 -1
- package/lib/WorkspaceTable/index.js +1 -1
- package/lib/allPaths/{index-CdLNHuqE.js → index-CdSu7vZu.js} +1 -1
- package/lib/allPathsLoader/{index-DpsnKKV5.js → index-C-MQyi6w.js} +1 -1
- package/lib/{index-Dv0uT_-u.js → index-CrpsBRUu.js} +1 -1
- package/lib/index.d.ts +102 -2
- package/lib/index.js +1 -1
- package/lib/splitPathsBySizeLoader/{index-DVKxXjm3.js → index-DAJQrOt5.js} +1 -1
- package/lib/use-toasts/index-CM2WmrpT.js +1 -0
- package/package.json +1 -1
- package/lib/use-toasts/index-u9NYa3aT.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as e,a as i,j as t,e as n}from"../styled-components.browser.esm/index-8pR-v2ng.js";import r from"react";import{
|
|
1
|
+
import{u as e,a as i,j as t,e as n}from"../styled-components.browser.esm/index-8pR-v2ng.js";import r from"react";import{b as s,F as o}from"../index-CrpsBRUu.js";import{b as l}from"../keyframes/index-CVfQXEtZ.js";import{C as a}from"../Cross/index-COzwlvOZ.js";import{I as d}from"../Info/index-B4VPdcNm.js";import{T as m}from"../Typography/index-CDTZdQLs.js";const c=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
padding: 8px 12px;
|
package/lib/Alert/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as default}from"./index-
|
|
1
|
+
export{A as default}from"./index-BLsA-D5R.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-CrpsBRUu.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../Cross/index-COzwlvOZ.js";import"../Info/index-B4VPdcNm.js";import"../Typography/index-CDTZdQLs.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e,j as t}from"../styled-components.browser.esm/index-8pR-v2ng.js";import n from"react";import{r,s as o,u as s,D as i,A as a,o as c,I as u,j as l,L as f}from"../index-Ch9hqhMW.js";import{a as d}from"../index-DP7HoUNK.js";import{S as p,R as h,a as m}from"../index-Dv0uT_-u.js";import{E as y}from"../ErrorText/index-Cg0k001T.js";import{T as b}from"../TickIcon/index-De06qfuL.js";import{I as g}from"../TextArea/index-D204gYac.js";import{L as w}from"../Loader/index-ZyKVoj4A.js";var E=/^\s+|\s+$/g,O=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,S=/^0o[0-7]+$/i,T=parseInt,v="object"==typeof self&&self&&self.Object===Object&&self,x="object"==typeof r&&r&&r.Object===Object&&r||v||Function("return this")(),j=Object.prototype.toString,A=Math.max,C=Math.min,N=function(){return x.Date.now()};function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==j.call(e)}(e))return NaN;if(P(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=P(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(E,"");var n=R.test(e);return n||S.test(e)?T(e.slice(2),n?2:8):O.test(e)?NaN:+e}var _=o((function(e,t,n){var r,o,s,i,a,c,u=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,s=o;return r=o=void 0,u=t,i=e.apply(s,n)}function h(e){var n=e-c;return void 0===c||n>=t||0>n||f&&e-u>=s}function m(){var e=N();if(h(e))return y(e);a=setTimeout(m,function(e){var n=t-(e-c);return f?C(n,s-(e-u)):n}(e))}function y(e){return a=void 0,d&&r?p(e):(r=o=void 0,i)}function b(){var e=N(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(m,t),l?p(e):i}(c);if(f)return a=setTimeout(m,t),p(c)}return void 0===a&&(a=setTimeout(m,t)),i}return t=L(t)||0,P(n)&&(l=!!n.leading,s=(f="maxWait"in n)?A(L(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=c=o=a=void 0},b.flush=function(){return void 0===a?i:y(N())},b}));function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:U}=Object.prototype,{getPrototypeOf:B}=Object,D=(k=Object.create(null),e=>{const t=U.call(e);return k[t]||(k[t]=t.slice(8,-1).toLowerCase())});var k;const I=e=>(e=e.toLowerCase(),t=>D(t)===e),q=e=>t=>typeof t===e,{isArray:M}=Array,z=q("undefined"),H=I("ArrayBuffer"),V=q("string"),J=q("function"),W=q("number"),$=e=>null!==e&&"object"==typeof e,K=e=>{if("object"!==D(e))return!1;const t=B(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},G=I("Date"),X=I("File"),Q=I("Blob"),Z=I("FileList"),Y=I("URLSearchParams"),[ee,te,ne,re]=["ReadableStream","Request","Response","Headers"].map(I);function oe(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),M(e))for(r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;s>r;r++)i=o[r],t.call(null,e[i],i,e)}}function se(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ae=e=>!z(e)&&e!==ie,ce=(ue="undefined"!=typeof Uint8Array&&B(Uint8Array),e=>ue&&e instanceof ue);var ue;const le=I("HTMLFormElement"),fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),de=I("RegExp"),pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};oe(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},he="abcdefghijklmnopqrstuvwxyz",me="0123456789",ye={DIGIT:me,ALPHA:he,ALPHA_DIGIT:he+he.toUpperCase()+me},be=I("AsyncFunction"),ge=(we="function"==typeof setImmediate,Ee=J(ie.postMessage),we?setImmediate:Ee?(Oe="axios@"+Math.random(),Re=[],ie.addEventListener("message",(({source:e,data:t})=>{e===ie&&t===Oe&&Re.length&&Re.shift()()}),!1),e=>{Re.push(e),ie.postMessage(Oe,"*")}):e=>setTimeout(e));var we,Ee,Oe,Re;const Se="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ie):"undefined"!=typeof process&&process.nextTick||ge;var Te={isArray:M,isArrayBuffer:H,isBuffer:function(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&J(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||J(e.append)&&("formdata"===(t=D(e))||"object"===t&&J(e.toString)&&""+e=="[object FormData]"))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&H(e.buffer),t},isString:V,isNumber:W,isBoolean:e=>!0===e||!1===e,isObject:$,isPlainObject:K,isReadableStream:ee,isRequest:te,isResponse:ne,isHeaders:re,isUndefined:z,isDate:G,isFile:X,isBlob:Q,isRegExp:de,isFunction:J,isStream:e=>$(e)&&J(e.pipe),isURLSearchParams:Y,isTypedArray:ce,isFileList:Z,forEach:oe,merge:function e(){const{caseless:t}=ae(this)&&this||{},n={},r=(r,o)=>{const s=t&&se(n,o)||o;n[s]=K(n[s])&&K(r)?e(n[s],r):K(r)?e({},r):M(r)?r.slice():r};for(let e=0,t=arguments.length;t>e;e++)arguments[e]&&oe(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(oe(t,((t,r)=>{e[r]=n&&J(t)?F(t,n):t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&B(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:D,kindOfTest:I,endsWith:(e,t,n)=>{e+="",(void 0===n||n>e.length)&&(n=e.length);const r=e.indexOf(t,n-=t.length);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!W(t))return null;const n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:le,hasOwnProperty:fe,hasOwnProp:fe,reduceDescriptors:pe,freezeMethods:e=>{pe(e,((t,n)=>{if(J(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;J(e[n])&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return M(e)?r(e):r((e+"").split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:se,global:ie,isContextDefined:ae,ALPHABET:ye,generateString:(e=16,t=ye.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&J(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=[,,,,,,,,,,],n=(e,r)=>{if($(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=M(e)?[]:{};return oe(e,((e,t)=>{const s=n(e,r+1);!z(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:be,isThenable:e=>e&&($(e)||J(e))&&J(e.then)&&J(e.catch),setImmediate:ge,asap:Se};function ve(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Te.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Te.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=ve.prototype,je={};function Ae(e){return Te.isPlainObject(e)||Te.isArray(e)}function Ce(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ce(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{je[e]={value:e}})),Object.defineProperties(ve,je),Object.defineProperty(xe,"isAxiosError",{value:!0}),ve.from=(e,t,n,r,o,s)=>{const i=Object.create(xe);return Te.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ve.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Pe=Te.toFlatObject(Te,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Le(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Te.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Te.isSpecCompliantForm(t);if(!Te.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Te.isDate(e))return e.toISOString();if(!a&&Te.isBlob(e))throw new ve("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(e)||Te.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Te.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Te.isArray(e)&&function(e){return Te.isArray(e)&&!e.some(Ae)}(e)||(Te.isFileList(e)||Te.endsWith(n,"[]"))&&(a=Te.toArray(e)))return n=Ce(n),a.forEach((function(e,r){!Te.isUndefined(e)&&null!==e&&t.append(!0===i?Ne([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!Ae(e)||(t.append(Ne(o,n,s),c(e)),!1)}const l=[],f=Object.assign(Pe,{defaultVisitor:u,convertValue:c,isVisitable:Ae});if(!Te.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Te.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),Te.forEach(n,(function(n,s){!0===(!(Te.isUndefined(n)||null===n)&&o.call(t,n,Te.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),l.pop()}}(e),t}function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Fe(e,t){this._pairs=[],e&&Le(e,this,t)}const Ue=Fe.prototype;function Be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function De(e,t,n){if(!t)return e;const r=n&&n.encode||Be,o=n&&n.serialize;let s;if(s=o?o(t,n):Te.isURLSearchParams(t)?""+t:new Fe(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Ue.append=function(e,t){this._pairs.push([e,t])},Ue.toString=function(e){const t=e?function(t){return e.call(this,t,_e)}:_e;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ke{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Te.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Fe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Me="undefined"!=typeof window&&"undefined"!=typeof document,ze=(He="undefined"!=typeof navigator&&navigator.product,Me&&0>["ReactNative","NativeScript","NS"].indexOf(He));var He;const Ve="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Je=Me&&window.location.href||"http://localhost";var We={...Object.freeze({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserEnv:ze,hasStandardBrowserWebWorkerEnv:Ve,origin:Je}),...qe};function $e(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&Te.isArray(r)?r.length:s,a?(r[s]=Te.hasOwnProp(r,s)?[r[s],n]:n,!i):(r[s]&&Te.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&Te.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;o>r;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,((e,r)=>{t(function(e){return Te.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Ke={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Te.isObject(e);if(o&&Te.isHTMLForm(e)&&(e=new FormData(e)),Te.isFormData(e))return r?JSON.stringify($e(e)):e;if(Te.isArrayBuffer(e)||Te.isBuffer(e)||Te.isStream(e)||Te.isFile(e)||Te.isBlob(e)||Te.isReadableStream(e))return e;if(Te.isArrayBufferView(e))return e.buffer;if(Te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),""+e;let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return""+function(e,t){return Le(e,new We.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return We.isNode&&Te.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer);if((s=Te.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Le(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Te.isString(e))try{return(0,JSON.parse)(e),Te.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ke.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Te.isResponse(e)||Te.isReadableStream(e))return e;if(e&&Te.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ve.from(e,ve.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&300>e},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],(e=>{Ke.headers[e]={}}));const Ge=Te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xe=Symbol("internals");function Qe(e){return e&&(e+"").trim().toLowerCase()}function Ze(e){return!1===e||null==e?e:Te.isArray(e)?e.map(Ze):e+""}function Ye(e,t,n,r,o){return Te.isFunction(r)?r.call(this,t,n):(o&&(t=n),Te.isString(t)?Te.isString(r)?-1!==t.indexOf(r):Te.isRegExp(r)?r.test(t):void 0:void 0)}class et{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Qe(t);if(!o)throw Error("header name must be a non-empty string");const s=Te.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ze(e))}const s=(e,t)=>Te.forEach(e,((e,n)=>o(e,n,t)));if(Te.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Te.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ge[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Te.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Qe(e)){const n=Te.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Te.isFunction(t))return t.call(this,e,n);if(Te.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qe(e)){const n=Te.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ye(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Qe(e)){const o=Te.findKey(n,e);!o||t&&!Ye(0,n[o],o,t)||(delete n[o],r=!0)}}return Te.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ye(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Te.forEach(this,((r,o)=>{const s=Te.findKey(n,o);if(s)return t[s]=Ze(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):(o+"").trim();i!==o&&delete t[o],t[i]=Ze(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Te.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Te.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Xe]=this[Xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qe(e);t[r]||(function(e,t){const n=Te.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Te.isArray(e)?e.forEach(r):r(e),this}}function tt(e,t){const n=this||Ke,r=t||n,o=et.from(r.headers);let s=r.data;return Te.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function nt(e){return!(!e||!e.__CANCEL__)}function rt(e,t,n){ve.call(this,null==e?"canceled":e,ve.ERR_CANCELED,t,n),this.name="CanceledError"}function ot(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Te.reduceDescriptors(et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Te.freezeMethods(et),Te.inherits(rt,ve,{__CANCEL__:!0});const st=(e,t,n=3)=>{let r=0;const o=function(e,t){const n=Array(e=e||10),r=Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),t>c-o)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;s>a?(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a))):i(e,t)},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&i>=s?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},it=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},at=e=>(...t)=>Te.asap((()=>e(...t)));var ct=We.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Te.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},ut=We.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];Te.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Te.isString(r)&&i.push("path="+r),Te.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function lt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ft=e=>e instanceof et?{...e}:e;function dt(e,t){const n={};function r(e,t,n){return Te.isPlainObject(e)&&Te.isPlainObject(t)?Te.merge.call({caseless:n},e,t):Te.isPlainObject(t)?Te.merge({},t):Te.isArray(t)?t.slice():t}function o(e,t,n){return Te.isUndefined(t)?Te.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!Te.isUndefined(t))return r(void 0,t)}function i(e,t){return Te.isUndefined(t)?Te.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(ft(e),ft(t),!0)};return Te.forEach(Object.keys(Object.assign({},e,t=t||{})),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);Te.isUndefined(i)&&s!==a||(n[r]=i)})),n}var pt=e=>{const t=dt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=et.from(a),t.url=De(lt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Te.isFormData(r))if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(We.hasStandardBrowserEnv&&(o&&Te.isFunction(o)&&(o=o(t)),o||!1!==o&&ct(t.url))){const e=s&&i&&ut.read(i);e&&a.set(s,e)}return t},ht="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=pt(e);let o=r.data;const s=et.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=et.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ot((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new ve("Request aborted",ve.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ve("Network Error",ve.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ve(t,(r.transitional||Ie).clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&Te.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Te.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,l]=st(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=st(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new rt(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===We.protocols.indexOf(b)?n(new ve("Unsupported protocol "+b+":",ve.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const mt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ve?t:new rt(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{o(new ve(`timeout ${t} of ms exceeded`,ve.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]},yt=function*(e,t){let n=e.byteLength;if(t>n)return void(yield e);let r,o=0;for(;n>o;)r=o+t,yield e.slice(o,r),o=r},bt=(e,t,n,r,o)=>{const s=async function*(e,t,n){for await(const r of e)yield*yt(ArrayBuffer.isView(r)?r:await n(r+""),t)}(e,t,o);let i,a=0,c=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return c(),void e.close();if(n){let e=a+=r.byteLength;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})},gt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,wt=gt&&"function"==typeof ReadableStream,Et=gt&&("function"==typeof TextEncoder?(Ot=new TextEncoder,e=>Ot.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ot;const Rt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},St=wt&&Rt((()=>{let e=!1;const t=new Request(We.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Tt=wt&&Rt((()=>Te.isReadableStream(new Response("").body))),vt={stream:Tt&&(e=>e.body)};var xt;gt&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!vt[e]&&(vt[e]=Te.isFunction(xt[e])?t=>t[e]():(t,n)=>{throw new ve(`Response type '${e}' is not supported`,ve.ERR_NOT_SUPPORT,n)})})));const jt={http:null,xhr:ht,fetch:gt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=pt(e);u=u?(u+"").toLowerCase():"text";let p,h,[m,y]=o||s||i?mt([o,s],i):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&St&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=Te.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Te.isBlob(e)?e.size:Te.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Te.isArrayBufferView(e)||Te.isArrayBuffer(e)?e.byteLength:(Te.isURLSearchParams(e)&&(e+=""),Te.isString(e)?(await Et(e)).byteLength:void 0))(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Te.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=it(g,st(at(c)));r=bt(n.body,65536,e,t,Et)}}Te.isString(f)||(f=f?"include":"omit"),h=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:f});let o=await fetch(h);const s=Tt&&("stream"===u||"response"===u);if(Tt&&(a||s)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Te.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&it(t,st(at(a),!0))||[];o=new Response(bt(o.body,65536,n,(()=>{r&&r(),s&&b()}),Et),e)}u=u||"text";let i=await vt[Te.findKey(vt,u)||"text"](o,e);return!s&&b(),y&&y(),await new Promise(((t,n)=>{ot(t,n,{data:i,headers:et.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ve("Network Error",ve.ERR_NETWORK,e,h),{cause:t.cause||t});throw ve.from(t,t&&t.code,e,h)}})};Te.forEach(jt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const At=e=>"- "+e,Ct=e=>Te.isFunction(e)||null===e||!1===e;var Nt=e=>{e=Te.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;t>s;s++){let t;if(n=e[s],r=n,!Ct(n)&&(r=jt[(t=n+"").toLowerCase()],void 0===r))throw new ve(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ve("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(At).join("\n"):" "+At(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Pt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rt(null,e)}function Lt(e){return Pt(e),e.headers=et.from(e.headers),e.data=tt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nt(e.adapter||Ke.adapter)(e).then((function(t){return Pt(e),t.data=tt.call(e,e.transformResponse,t),t.headers=et.from(t.headers),t}),(function(t){return nt(t)||(Pt(e),t&&t.response&&(t.response.data=tt.call(e,e.transformResponse,t.response),t.response.headers=et.from(t.response.headers))),Promise.reject(t)}))}const _t={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_t[e]=function(n){return typeof n===e||"a"+(1>t?"n ":" ")+e}}));const Ft={};_t.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new ve(r(o," has been removed"+(t?" in "+t:"")),ve.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var Ut={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new ve("option "+s+" must be "+n,ve.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ve("Unknown option "+s,ve.ERR_BAD_OPTION)}},validators:_t};const Bt=Ut.validators;class Dt{constructor(e){this.defaults=e,this.interceptors={request:new ke,response:new ke}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!(e.stack+"").endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ut.assertOptions(n,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean)},!1),null!=r&&(Te.isFunction(r)?t.paramsSerializer={serialize:r}:Ut.assertOptions(r,{encode:Bt.function,serialize:Bt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Te.merge(o.common,o[t.method]);o&&Te.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=et.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Lt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);l>f;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;l>f;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Lt(d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;l>f;)u=u.then(c[f++],c[f++]);return u}getUri(e){return De(lt((e=dt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Te.forEach(["delete","get","head","options"],(function(e){Dt.prototype[e]=function(t,n){return this.request(dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Te.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(dt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Dt.prototype[e]=t(),Dt.prototype[e+"Form"]=t(!0)}));class kt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new rt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt((function(t){e=t})),cancel:e}}}const It={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(It).forEach((([e,t])=>{It[t]=e}));const qt=function e(t){const n=new Dt(t),r=F(Dt.prototype.request,n);return Te.extend(r,Dt.prototype,n,{allOwnKeys:!0}),Te.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(dt(t,n))},r}(Ke);qt.Axios=Dt,qt.CanceledError=rt,qt.CancelToken=kt,qt.isCancel=nt,qt.VERSION="1.7.4",qt.toFormData=Le,qt.AxiosError=ve,qt.Cancel=qt.CanceledError,qt.all=function(e){return Promise.all(e)},qt.spread=function(e){return function(t){return e.apply(null,t)}},qt.isAxiosError=function(e){return Te.isObject(e)&&!0===e.isAxiosError},qt.mergeConfig=dt,qt.AxiosHeaders=et,qt.formToJSON=e=>$e(Te.isHTMLForm(e)?new FormData(e):e),qt.getAdapter=Nt,qt.HttpStatusCode=It,qt.default=qt,qt.defaults.withCredentials=!0;const Mt=(e,t)=>{const n={},r=[];return e.forEach((e=>{e?.[t]&&(n?.[e[t]]||(n[e[t]]=e,r.push(e[t])))})),r.map((e=>n[e]))},zt=r=>{const{items:o=[],disabled:E,id:O,label:R,errorText:S,name:T,placeholder:v,width:x,onChange:j,itemComponent:A,itemToString:C,searchKey:N="q",defaultSelectedItem:P,readOnly:L,itemIdentifier:F="id",isErrored:U,emptyItemsText:B,processFetchData:D,isRequired:k,style:I,url:q,headers:M}=r,z=e(),[H,V]=n.useState(!1),J=n.useRef(),[W,$]=n.useState(o),K=(e="")=>{if(d("AutoComplete getAndProcessData",{searchParam:e}),!q)return;const t=new URL(q),n=new URLSearchParams(t.search);n.append(N,e);const r=`${t.origin}${t.pathname}?${""+n}`;V(!0),(async(e,t,n,r,o,s)=>{try{const t=await qt({data:void 0,url:e,method:"GET",withCredentials:!1,responseType:void 0,headers:{"Content-Type":"application/json",...r||{}}});return t?.data}catch(e){return}})(r,0,0,M).then((t=>{if(Array.isArray(t)){const n=Mt([...""===e?[P]:[],...""===e?J.current??[]:[],...D?D(t):t,...""===e?o:[]],F);d("AutoComplete setLocalItems",{dataToSet:n,data:t,searchParam:e,cacheItems:J.current,items:o,itemIdentifier:F}),$(n)}V(!1)})).catch((()=>{V(!1)}))},G=n.useCallback(_((e=>{K(e)}),300),[]),{isOpen:X,selectedItem:Q,getToggleButtonProps:Z,getLabelProps:Y,getMenuProps:ee,highlightedIndex:te,setInputValue:ne,getItemProps:re,getInputProps:oe}=s({id:O,selectedItem:P,items:W,onIsOpenChange:e=>{!e.isOpen&&e?.selectedItem&&ne(C(e.selectedItem))},onInputValueChange:e=>{Q?.[F]&&e.inputValue===C(Q)||P?.[F]&&e.inputValue===C(P)?G(""):G(e.inputValue)},itemToString:e=>e?C(e,"downshift"):"",onSelectedItemChange:e=>{d("AutoComplete onSelectedItemChange",{localItems:W}),J.current=Mt([e.selectedItem,...J.current??[]],F),j?.(e.selectedItem)}});n.useEffect((()=>{K("")}),[q]),d("AutoComplete",{localItems:W,isLoading:H,props:r});const se=!E&&!L&&X;return t.jsxs(i,{width:x,children:[t.jsxs(p,{className:"input-label",...Y({disabled:E,readOnly:L}),children:[R,R&&k&&t.jsx(h,{children:"*"})]}),t.jsx(g,{...oe({name:T,readOnly:L,disabled:E}),placeholder:v,endAdornment:t.jsx(a,{children:t.jsx(m,{...Z({disabled:E,readOnly:L,"aria-label":"toggle-button"}),children:t.jsx(c,{$isOpen:se,fill:z.colors.text.primary,width:8,height:8})})}),style:I}),!L&&!E&&t.jsx(u,{className:"ItemsContainer",$isOpen:X,...ee({disabled:E,readOnly:L}),children:H?t.jsx(l,{children:t.jsx(w,{})}):t.jsxs(t.Fragment,{children:[X&&0===W.length&&t.jsx(f,{readOnly:!0,children:B||"No items"}),X&&W.map(((e,r)=>{const o="string"==typeof e?e:e?.[F];return t.jsx(n.Fragment,{children:A?A(e,{isHilighted:te===r,isSelected:Q===e,key:o,...re({item:e,index:r})}):t.jsxs(f,{$isHilighted:te===r,$isSelected:Q?.[F]===e?.[F],...re({item:e,index:r}),children:[C(e),Q?.[F]===e?.[F]&&t.jsx(b,{fill:z.colors.common.accent})]},o)},o)}))]})}),U&&S&&t.jsx(y,{children:S})]})};export{zt as A};
|
|
1
|
+
import{e,j as t}from"../styled-components.browser.esm/index-8pR-v2ng.js";import n from"react";import{r,s as o,u as s,D as i,A as a,o as c,I as u,j as l,L as f}from"../index-Ch9hqhMW.js";import{a as d}from"../index-DP7HoUNK.js";import{S as p,R as h,b as m}from"../index-CrpsBRUu.js";import{E as y}from"../ErrorText/index-Cg0k001T.js";import{T as b}from"../TickIcon/index-De06qfuL.js";import{I as g}from"../TextArea/index-B91jgzER.js";import{L as w}from"../Loader/index-ZyKVoj4A.js";var E=/^\s+|\s+$/g,O=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,S=/^0o[0-7]+$/i,T=parseInt,v="object"==typeof self&&self&&self.Object===Object&&self,x="object"==typeof r&&r&&r.Object===Object&&r||v||Function("return this")(),j=Object.prototype.toString,A=Math.max,C=Math.min,N=function(){return x.Date.now()};function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==j.call(e)}(e))return NaN;if(P(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=P(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(E,"");var n=R.test(e);return n||S.test(e)?T(e.slice(2),n?2:8):O.test(e)?NaN:+e}var _=o((function(e,t,n){var r,o,s,i,a,c,u=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,s=o;return r=o=void 0,u=t,i=e.apply(s,n)}function h(e){var n=e-c;return void 0===c||n>=t||0>n||f&&e-u>=s}function m(){var e=N();if(h(e))return y(e);a=setTimeout(m,function(e){var n=t-(e-c);return f?C(n,s-(e-u)):n}(e))}function y(e){return a=void 0,d&&r?p(e):(r=o=void 0,i)}function b(){var e=N(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(m,t),l?p(e):i}(c);if(f)return a=setTimeout(m,t),p(c)}return void 0===a&&(a=setTimeout(m,t)),i}return t=L(t)||0,P(n)&&(l=!!n.leading,s=(f="maxWait"in n)?A(L(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=c=o=a=void 0},b.flush=function(){return void 0===a?i:y(N())},b}));function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:U}=Object.prototype,{getPrototypeOf:B}=Object,D=(k=Object.create(null),e=>{const t=U.call(e);return k[t]||(k[t]=t.slice(8,-1).toLowerCase())});var k;const I=e=>(e=e.toLowerCase(),t=>D(t)===e),q=e=>t=>typeof t===e,{isArray:M}=Array,z=q("undefined"),H=I("ArrayBuffer"),V=q("string"),J=q("function"),W=q("number"),$=e=>null!==e&&"object"==typeof e,K=e=>{if("object"!==D(e))return!1;const t=B(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},G=I("Date"),X=I("File"),Q=I("Blob"),Z=I("FileList"),Y=I("URLSearchParams"),[ee,te,ne,re]=["ReadableStream","Request","Response","Headers"].map(I);function oe(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),M(e))for(r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;s>r;r++)i=o[r],t.call(null,e[i],i,e)}}function se(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ae=e=>!z(e)&&e!==ie,ce=(ue="undefined"!=typeof Uint8Array&&B(Uint8Array),e=>ue&&e instanceof ue);var ue;const le=I("HTMLFormElement"),fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),de=I("RegExp"),pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};oe(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},he="abcdefghijklmnopqrstuvwxyz",me="0123456789",ye={DIGIT:me,ALPHA:he,ALPHA_DIGIT:he+he.toUpperCase()+me},be=I("AsyncFunction"),ge=(we="function"==typeof setImmediate,Ee=J(ie.postMessage),we?setImmediate:Ee?(Oe="axios@"+Math.random(),Re=[],ie.addEventListener("message",(({source:e,data:t})=>{e===ie&&t===Oe&&Re.length&&Re.shift()()}),!1),e=>{Re.push(e),ie.postMessage(Oe,"*")}):e=>setTimeout(e));var we,Ee,Oe,Re;const Se="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ie):"undefined"!=typeof process&&process.nextTick||ge;var Te={isArray:M,isArrayBuffer:H,isBuffer:function(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&J(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||J(e.append)&&("formdata"===(t=D(e))||"object"===t&&J(e.toString)&&""+e=="[object FormData]"))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&H(e.buffer),t},isString:V,isNumber:W,isBoolean:e=>!0===e||!1===e,isObject:$,isPlainObject:K,isReadableStream:ee,isRequest:te,isResponse:ne,isHeaders:re,isUndefined:z,isDate:G,isFile:X,isBlob:Q,isRegExp:de,isFunction:J,isStream:e=>$(e)&&J(e.pipe),isURLSearchParams:Y,isTypedArray:ce,isFileList:Z,forEach:oe,merge:function e(){const{caseless:t}=ae(this)&&this||{},n={},r=(r,o)=>{const s=t&&se(n,o)||o;n[s]=K(n[s])&&K(r)?e(n[s],r):K(r)?e({},r):M(r)?r.slice():r};for(let e=0,t=arguments.length;t>e;e++)arguments[e]&&oe(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(oe(t,((t,r)=>{e[r]=n&&J(t)?F(t,n):t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&B(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:D,kindOfTest:I,endsWith:(e,t,n)=>{e+="",(void 0===n||n>e.length)&&(n=e.length);const r=e.indexOf(t,n-=t.length);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!W(t))return null;const n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:le,hasOwnProperty:fe,hasOwnProp:fe,reduceDescriptors:pe,freezeMethods:e=>{pe(e,((t,n)=>{if(J(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;J(e[n])&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return M(e)?r(e):r((e+"").split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:se,global:ie,isContextDefined:ae,ALPHABET:ye,generateString:(e=16,t=ye.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&J(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=[,,,,,,,,,,],n=(e,r)=>{if($(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=M(e)?[]:{};return oe(e,((e,t)=>{const s=n(e,r+1);!z(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:be,isThenable:e=>e&&($(e)||J(e))&&J(e.then)&&J(e.catch),setImmediate:ge,asap:Se};function ve(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Te.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Te.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=ve.prototype,je={};function Ae(e){return Te.isPlainObject(e)||Te.isArray(e)}function Ce(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ce(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{je[e]={value:e}})),Object.defineProperties(ve,je),Object.defineProperty(xe,"isAxiosError",{value:!0}),ve.from=(e,t,n,r,o,s)=>{const i=Object.create(xe);return Te.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ve.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Pe=Te.toFlatObject(Te,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Le(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Te.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Te.isSpecCompliantForm(t);if(!Te.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Te.isDate(e))return e.toISOString();if(!a&&Te.isBlob(e))throw new ve("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(e)||Te.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Te.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Te.isArray(e)&&function(e){return Te.isArray(e)&&!e.some(Ae)}(e)||(Te.isFileList(e)||Te.endsWith(n,"[]"))&&(a=Te.toArray(e)))return n=Ce(n),a.forEach((function(e,r){!Te.isUndefined(e)&&null!==e&&t.append(!0===i?Ne([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!Ae(e)||(t.append(Ne(o,n,s),c(e)),!1)}const l=[],f=Object.assign(Pe,{defaultVisitor:u,convertValue:c,isVisitable:Ae});if(!Te.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Te.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),Te.forEach(n,(function(n,s){!0===(!(Te.isUndefined(n)||null===n)&&o.call(t,n,Te.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),l.pop()}}(e),t}function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Fe(e,t){this._pairs=[],e&&Le(e,this,t)}const Ue=Fe.prototype;function Be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function De(e,t,n){if(!t)return e;const r=n&&n.encode||Be,o=n&&n.serialize;let s;if(s=o?o(t,n):Te.isURLSearchParams(t)?""+t:new Fe(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Ue.append=function(e,t){this._pairs.push([e,t])},Ue.toString=function(e){const t=e?function(t){return e.call(this,t,_e)}:_e;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ke{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Te.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Fe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Me="undefined"!=typeof window&&"undefined"!=typeof document,ze=(He="undefined"!=typeof navigator&&navigator.product,Me&&0>["ReactNative","NativeScript","NS"].indexOf(He));var He;const Ve="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Je=Me&&window.location.href||"http://localhost";var We={...Object.freeze({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserEnv:ze,hasStandardBrowserWebWorkerEnv:Ve,origin:Je}),...qe};function $e(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&Te.isArray(r)?r.length:s,a?(r[s]=Te.hasOwnProp(r,s)?[r[s],n]:n,!i):(r[s]&&Te.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&Te.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;o>r;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,((e,r)=>{t(function(e){return Te.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Ke={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Te.isObject(e);if(o&&Te.isHTMLForm(e)&&(e=new FormData(e)),Te.isFormData(e))return r?JSON.stringify($e(e)):e;if(Te.isArrayBuffer(e)||Te.isBuffer(e)||Te.isStream(e)||Te.isFile(e)||Te.isBlob(e)||Te.isReadableStream(e))return e;if(Te.isArrayBufferView(e))return e.buffer;if(Te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),""+e;let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return""+function(e,t){return Le(e,new We.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return We.isNode&&Te.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer);if((s=Te.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Le(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Te.isString(e))try{return(0,JSON.parse)(e),Te.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ke.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Te.isResponse(e)||Te.isReadableStream(e))return e;if(e&&Te.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ve.from(e,ve.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&300>e},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],(e=>{Ke.headers[e]={}}));const Ge=Te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xe=Symbol("internals");function Qe(e){return e&&(e+"").trim().toLowerCase()}function Ze(e){return!1===e||null==e?e:Te.isArray(e)?e.map(Ze):e+""}function Ye(e,t,n,r,o){return Te.isFunction(r)?r.call(this,t,n):(o&&(t=n),Te.isString(t)?Te.isString(r)?-1!==t.indexOf(r):Te.isRegExp(r)?r.test(t):void 0:void 0)}class et{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Qe(t);if(!o)throw Error("header name must be a non-empty string");const s=Te.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ze(e))}const s=(e,t)=>Te.forEach(e,((e,n)=>o(e,n,t)));if(Te.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Te.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ge[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Te.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Qe(e)){const n=Te.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Te.isFunction(t))return t.call(this,e,n);if(Te.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qe(e)){const n=Te.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ye(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Qe(e)){const o=Te.findKey(n,e);!o||t&&!Ye(0,n[o],o,t)||(delete n[o],r=!0)}}return Te.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ye(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Te.forEach(this,((r,o)=>{const s=Te.findKey(n,o);if(s)return t[s]=Ze(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):(o+"").trim();i!==o&&delete t[o],t[i]=Ze(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Te.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Te.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Xe]=this[Xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qe(e);t[r]||(function(e,t){const n=Te.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Te.isArray(e)?e.forEach(r):r(e),this}}function tt(e,t){const n=this||Ke,r=t||n,o=et.from(r.headers);let s=r.data;return Te.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function nt(e){return!(!e||!e.__CANCEL__)}function rt(e,t,n){ve.call(this,null==e?"canceled":e,ve.ERR_CANCELED,t,n),this.name="CanceledError"}function ot(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Te.reduceDescriptors(et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Te.freezeMethods(et),Te.inherits(rt,ve,{__CANCEL__:!0});const st=(e,t,n=3)=>{let r=0;const o=function(e,t){const n=Array(e=e||10),r=Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),t>c-o)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;s>a?(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a))):i(e,t)},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&i>=s?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},it=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},at=e=>(...t)=>Te.asap((()=>e(...t)));var ct=We.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Te.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},ut=We.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];Te.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Te.isString(r)&&i.push("path="+r),Te.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function lt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ft=e=>e instanceof et?{...e}:e;function dt(e,t){const n={};function r(e,t,n){return Te.isPlainObject(e)&&Te.isPlainObject(t)?Te.merge.call({caseless:n},e,t):Te.isPlainObject(t)?Te.merge({},t):Te.isArray(t)?t.slice():t}function o(e,t,n){return Te.isUndefined(t)?Te.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!Te.isUndefined(t))return r(void 0,t)}function i(e,t){return Te.isUndefined(t)?Te.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(ft(e),ft(t),!0)};return Te.forEach(Object.keys(Object.assign({},e,t=t||{})),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);Te.isUndefined(i)&&s!==a||(n[r]=i)})),n}var pt=e=>{const t=dt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=et.from(a),t.url=De(lt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Te.isFormData(r))if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(We.hasStandardBrowserEnv&&(o&&Te.isFunction(o)&&(o=o(t)),o||!1!==o&&ct(t.url))){const e=s&&i&&ut.read(i);e&&a.set(s,e)}return t},ht="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=pt(e);let o=r.data;const s=et.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=et.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ot((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new ve("Request aborted",ve.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ve("Network Error",ve.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ve(t,(r.transitional||Ie).clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&Te.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Te.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,l]=st(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=st(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new rt(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===We.protocols.indexOf(b)?n(new ve("Unsupported protocol "+b+":",ve.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const mt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ve?t:new rt(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{o(new ve(`timeout ${t} of ms exceeded`,ve.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]},yt=function*(e,t){let n=e.byteLength;if(t>n)return void(yield e);let r,o=0;for(;n>o;)r=o+t,yield e.slice(o,r),o=r},bt=(e,t,n,r,o)=>{const s=async function*(e,t,n){for await(const r of e)yield*yt(ArrayBuffer.isView(r)?r:await n(r+""),t)}(e,t,o);let i,a=0,c=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return c(),void e.close();if(n){let e=a+=r.byteLength;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})},gt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,wt=gt&&"function"==typeof ReadableStream,Et=gt&&("function"==typeof TextEncoder?(Ot=new TextEncoder,e=>Ot.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ot;const Rt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},St=wt&&Rt((()=>{let e=!1;const t=new Request(We.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Tt=wt&&Rt((()=>Te.isReadableStream(new Response("").body))),vt={stream:Tt&&(e=>e.body)};var xt;gt&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!vt[e]&&(vt[e]=Te.isFunction(xt[e])?t=>t[e]():(t,n)=>{throw new ve(`Response type '${e}' is not supported`,ve.ERR_NOT_SUPPORT,n)})})));const jt={http:null,xhr:ht,fetch:gt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=pt(e);u=u?(u+"").toLowerCase():"text";let p,h,[m,y]=o||s||i?mt([o,s],i):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&St&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=Te.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Te.isBlob(e)?e.size:Te.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Te.isArrayBufferView(e)||Te.isArrayBuffer(e)?e.byteLength:(Te.isURLSearchParams(e)&&(e+=""),Te.isString(e)?(await Et(e)).byteLength:void 0))(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Te.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=it(g,st(at(c)));r=bt(n.body,65536,e,t,Et)}}Te.isString(f)||(f=f?"include":"omit"),h=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:f});let o=await fetch(h);const s=Tt&&("stream"===u||"response"===u);if(Tt&&(a||s)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Te.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&it(t,st(at(a),!0))||[];o=new Response(bt(o.body,65536,n,(()=>{r&&r(),s&&b()}),Et),e)}u=u||"text";let i=await vt[Te.findKey(vt,u)||"text"](o,e);return!s&&b(),y&&y(),await new Promise(((t,n)=>{ot(t,n,{data:i,headers:et.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ve("Network Error",ve.ERR_NETWORK,e,h),{cause:t.cause||t});throw ve.from(t,t&&t.code,e,h)}})};Te.forEach(jt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const At=e=>"- "+e,Ct=e=>Te.isFunction(e)||null===e||!1===e;var Nt=e=>{e=Te.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;t>s;s++){let t;if(n=e[s],r=n,!Ct(n)&&(r=jt[(t=n+"").toLowerCase()],void 0===r))throw new ve(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ve("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(At).join("\n"):" "+At(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Pt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rt(null,e)}function Lt(e){return Pt(e),e.headers=et.from(e.headers),e.data=tt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nt(e.adapter||Ke.adapter)(e).then((function(t){return Pt(e),t.data=tt.call(e,e.transformResponse,t),t.headers=et.from(t.headers),t}),(function(t){return nt(t)||(Pt(e),t&&t.response&&(t.response.data=tt.call(e,e.transformResponse,t.response),t.response.headers=et.from(t.response.headers))),Promise.reject(t)}))}const _t={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_t[e]=function(n){return typeof n===e||"a"+(1>t?"n ":" ")+e}}));const Ft={};_t.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new ve(r(o," has been removed"+(t?" in "+t:"")),ve.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var Ut={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new ve("option "+s+" must be "+n,ve.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ve("Unknown option "+s,ve.ERR_BAD_OPTION)}},validators:_t};const Bt=Ut.validators;class Dt{constructor(e){this.defaults=e,this.interceptors={request:new ke,response:new ke}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!(e.stack+"").endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ut.assertOptions(n,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean)},!1),null!=r&&(Te.isFunction(r)?t.paramsSerializer={serialize:r}:Ut.assertOptions(r,{encode:Bt.function,serialize:Bt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Te.merge(o.common,o[t.method]);o&&Te.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=et.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Lt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);l>f;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;l>f;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Lt(d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;l>f;)u=u.then(c[f++],c[f++]);return u}getUri(e){return De(lt((e=dt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Te.forEach(["delete","get","head","options"],(function(e){Dt.prototype[e]=function(t,n){return this.request(dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Te.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(dt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Dt.prototype[e]=t(),Dt.prototype[e+"Form"]=t(!0)}));class kt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new rt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt((function(t){e=t})),cancel:e}}}const It={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(It).forEach((([e,t])=>{It[t]=e}));const qt=function e(t){const n=new Dt(t),r=F(Dt.prototype.request,n);return Te.extend(r,Dt.prototype,n,{allOwnKeys:!0}),Te.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(dt(t,n))},r}(Ke);qt.Axios=Dt,qt.CanceledError=rt,qt.CancelToken=kt,qt.isCancel=nt,qt.VERSION="1.7.4",qt.toFormData=Le,qt.AxiosError=ve,qt.Cancel=qt.CanceledError,qt.all=function(e){return Promise.all(e)},qt.spread=function(e){return function(t){return e.apply(null,t)}},qt.isAxiosError=function(e){return Te.isObject(e)&&!0===e.isAxiosError},qt.mergeConfig=dt,qt.AxiosHeaders=et,qt.formToJSON=e=>$e(Te.isHTMLForm(e)?new FormData(e):e),qt.getAdapter=Nt,qt.HttpStatusCode=It,qt.default=qt,qt.defaults.withCredentials=!0;const Mt=(e,t)=>{const n={},r=[];return e.forEach((e=>{e?.[t]&&(n?.[e[t]]||(n[e[t]]=e,r.push(e[t])))})),r.map((e=>n[e]))},zt=r=>{const{items:o=[],disabled:E,id:O,label:R,errorText:S,name:T,placeholder:v,width:x,onChange:j,itemComponent:A,itemToString:C,searchKey:N="q",defaultSelectedItem:P,readOnly:L,itemIdentifier:F="id",isErrored:U,emptyItemsText:B,processFetchData:D,isRequired:k,style:I,url:q,headers:M}=r,z=e(),[H,V]=n.useState(!1),J=n.useRef(),[W,$]=n.useState(o),K=(e="")=>{if(d("AutoComplete getAndProcessData",{searchParam:e}),!q)return;const t=new URL(q),n=new URLSearchParams(t.search);n.append(N,e);const r=`${t.origin}${t.pathname}?${""+n}`;V(!0),(async(e,t,n,r,o,s)=>{try{const t=await qt({data:void 0,url:e,method:"GET",withCredentials:!1,responseType:void 0,headers:{"Content-Type":"application/json",...r||{}}});return t?.data}catch(e){return}})(r,0,0,M).then((t=>{if(Array.isArray(t)){const n=Mt([...""===e?[P]:[],...""===e?J.current??[]:[],...D?D(t):t,...""===e?o:[]],F);d("AutoComplete setLocalItems",{dataToSet:n,data:t,searchParam:e,cacheItems:J.current,items:o,itemIdentifier:F}),$(n)}V(!1)})).catch((()=>{V(!1)}))},G=n.useCallback(_((e=>{K(e)}),300),[]),{isOpen:X,selectedItem:Q,getToggleButtonProps:Z,getLabelProps:Y,getMenuProps:ee,highlightedIndex:te,setInputValue:ne,getItemProps:re,getInputProps:oe}=s({id:O,selectedItem:P,items:W,onIsOpenChange:e=>{!e.isOpen&&e?.selectedItem&&ne(C(e.selectedItem))},onInputValueChange:e=>{Q?.[F]&&e.inputValue===C(Q)||P?.[F]&&e.inputValue===C(P)?G(""):G(e.inputValue)},itemToString:e=>e?C(e,"downshift"):"",onSelectedItemChange:e=>{d("AutoComplete onSelectedItemChange",{localItems:W}),J.current=Mt([e.selectedItem,...J.current??[]],F),j?.(e.selectedItem)}});n.useEffect((()=>{K("")}),[q]),d("AutoComplete",{localItems:W,isLoading:H,props:r});const se=!E&&!L&&X;return t.jsxs(i,{width:x,children:[t.jsxs(p,{className:"input-label",...Y({disabled:E,readOnly:L}),children:[R,R&&k&&t.jsx(h,{children:"*"})]}),t.jsx(g,{...oe({name:T,readOnly:L,disabled:E}),placeholder:v,endAdornment:t.jsx(a,{children:t.jsx(m,{...Z({disabled:E,readOnly:L,"aria-label":"toggle-button"}),children:t.jsx(c,{$isOpen:se,fill:z.colors.text.primary,width:8,height:8})})}),style:I}),!L&&!E&&t.jsx(u,{className:"ItemsContainer",$isOpen:X,...ee({disabled:E,readOnly:L}),children:H?t.jsx(l,{children:t.jsx(w,{})}):t.jsxs(t.Fragment,{children:[X&&0===W.length&&t.jsx(f,{readOnly:!0,children:B||"No items"}),X&&W.map(((e,r)=>{const o="string"==typeof e?e:e?.[F];return t.jsx(n.Fragment,{children:A?A(e,{isHilighted:te===r,isSelected:Q===e,key:o,...re({item:e,index:r})}):t.jsxs(f,{$isHilighted:te===r,$isSelected:Q?.[F]===e?.[F],...re({item:e,index:r}),children:[C(e),Q?.[F]===e?.[F]&&t.jsx(b,{fill:z.colors.common.accent})]},o)},o)}))]})}),U&&S&&t.jsx(y,{children:S})]})};export{zt as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as default}from"./index-
|
|
1
|
+
export{A as default}from"./index-B1mSfRyY.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-Ch9hqhMW.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-D4pfkNFk.js";import"../index-BCBGGtXO.js";import"../index-BJXW8qXz.js";import"../index-BxvGNAuC.js";import"../index-DmrSN1YW.js";import"../Combination/index-b5frlUiu.js";import"../index-DE6Djr2P.js";import"../index-DSFkVExg.js";import"../index-Bj96NGNJ.js";import"../index-DZzFKxNs.js";import"../index-9P5loDNm.js";import"../keyframes/index-CVfQXEtZ.js";import"../index-Bw1WW_qt.js";import"../ChevronUp/index-Ce4eVyDz.js";import"../index-DP7HoUNK.js";import"../index-CrpsBRUu.js";import"../ErrorText/index-Cg0k001T.js";import"../TickIcon/index-De06qfuL.js";import"../TextArea/index-B91jgzER.js";import"../Loader/index-ZyKVoj4A.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as e,j as o}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{S as r,R as d}from"../index-
|
|
1
|
+
import{u as e,j as o}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{S as r,R as d}from"../index-CrpsBRUu.js";import{$ as i,a,b as l}from"../index-Lgc6rwoR.js";import{E as t}from"../ErrorText/index-Cg0k001T.js";const s=e.div`
|
|
2
2
|
direction: ${({theme:e})=>e.direction};
|
|
3
3
|
`,n=e(i)`
|
|
4
4
|
display: flex;
|
package/lib/BoxedRadio/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as default}from"./index-
|
|
1
|
+
export{B as default}from"./index-IgAvsvVX.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-CrpsBRUu.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../index-Lgc6rwoR.js";import"../index-D4pfkNFk.js";import"../index-BCBGGtXO.js";import"../index-BBZ7Acl3.js";import"../index-BJXW8qXz.js";import"../index-DE6Djr2P.js";import"../index-BxvGNAuC.js";import"../index-Bj96NGNJ.js";import"../index-DZzFKxNs.js";import"../index-BrmsftDQ.js";import"../ErrorText/index-Cg0k001T.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as e,a as t,j as o,e as r}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{I as a,R as n}from"../index-
|
|
1
|
+
import{u as e,a as t,j as o,e as r}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{I as a,R as n}from"../index-CrpsBRUu.js";import{$ as i,a as s,_ as d}from"../index-CMYH5FSo.js";import c,{forwardRef as l,useState as m,useRef as h,useEffect as p,createElement as b}from"react";import{$ as u}from"../index-BCBGGtXO.js";import{a as x,$ as k}from"../index-D4pfkNFk.js";import{$ as f}from"../index-DZzFKxNs.js";import{$ as g}from"../index-Bj96NGNJ.js";import{$ as v}from"../index-BrmsftDQ.js";import{T as y}from"../TickIcon/index-De06qfuL.js";const w="Checkbox",[j,C]=u(w),[$,E]=j(w),q=l(((e,t)=>{const{__scopeCheckbox:o,name:r,checked:a,defaultChecked:n,required:c,disabled:l,value:u="on",onCheckedChange:f,...g}=e,[v,y]=m(null),w=i(t,(e=>y(e))),j=h(!1),C=!v||!!v.closest("form"),[E=!1,q]=x({prop:a,defaultProp:n,onChange:f}),_=h(E);return p((()=>{const e=null==v?void 0:v.form;if(e){const t=()=>q(_.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[v,q]),b($,{scope:o,state:E,disabled:l},b(s.button,d({type:"button",role:"checkbox","aria-checked":N(E)?"mixed":E,"aria-required":c,"data-state":R(E),"data-disabled":l?"":void 0,disabled:l,value:u},g,{ref:w,onKeyDown:k(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:k(e.onClick,(e=>{q((e=>!!N(e)||!e)),C&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())}))})),C&&b(I,{control:v,bubbles:!j.current,name:r,value:u,checked:E,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))})),I=e=>{const{control:t,checked:o,bubbles:r=!0,...a}=e,n=h(null),i=f(o),s=g(t);return p((()=>{const e=n.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==o&&a){const t=new Event("click",{bubbles:r});e.indeterminate=N(o),a.call(e,!N(o)&&o),e.dispatchEvent(t)}}),[i,o,r]),b("input",d({type:"checkbox","aria-hidden":!0,defaultChecked:!N(o)&&o},a,{tabIndex:-1,ref:n,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function N(e){return"indeterminate"===e}function R(e){return N(e)?"indeterminate":e?"checked":"unchecked"}const _=q,D=e(l(((e,t)=>{const{__scopeCheckbox:o,forceMount:r,...a}=e,n=E("CheckboxIndicator",o);return b(v,{present:r||N(n.state)||!0===n.state},b(s.span,d({"data-state":R(n.state),"data-disabled":n.disabled?"":void 0},a,{ref:t,style:{pointerEvents:"none",...e.style}})))})))`
|
|
2
2
|
display: grid;
|
|
3
3
|
place-content: center;
|
|
4
4
|
|
package/lib/Checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as default}from"./index-
|
|
1
|
+
export{C as default}from"./index-Da5dAfcy.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-CrpsBRUu.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../index-BCBGGtXO.js";import"../index-D4pfkNFk.js";import"../index-DZzFKxNs.js";import"../index-Bj96NGNJ.js";import"../index-BrmsftDQ.js";import"../TickIcon/index-De06qfuL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as e,a as t,e as o,j as r}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{_ as i,$ as n,c as a}from"../index-CMYH5FSo.js";import{createElement as s,forwardRef as l,useRef as c}from"react";import{$ as d}from"../index-BCBGGtXO.js";import{$ as p,a as m,b as h,c as g,d as f,e as u,f as x,g as y,h as $}from"../index-D76LBwe9.js";import{$ as b}from"../index-D4pfkNFk.js";import{f as D,g as j}from"../index-
|
|
1
|
+
import{u as e,a as t,e as o,j as r}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{_ as i,$ as n,c as a}from"../index-CMYH5FSo.js";import{createElement as s,forwardRef as l,useRef as c}from"react";import{$ as d}from"../index-BCBGGtXO.js";import{$ as p,a as m,b as h,c as g,d as f,e as u,f as x,g as y,h as $}from"../index-D76LBwe9.js";import{$ as b}from"../index-D4pfkNFk.js";import{f as D,g as j}from"../index-CrpsBRUu.js";import{c as A,d as _}from"../keyframes/index-CVfQXEtZ.js";import{B as v}from"../Button/index-CX4tZVcp.js";const[C,w]=d("AlertDialog",[p]),O=p(),k=l(((e,t)=>{const{__scopeAlertDialog:o,...r}=e,n=O(o);return s(g,i({},n,r,{ref:t}))})),B="AlertDialogContent",[S,F]=C(B),N=l(((e,t)=>{const{__scopeAlertDialog:o,children:r,...l}=e,d=O(o),p=c(null),m=n(t,p),h=c(null);return s(f,{contentName:B,titleName:T,docsSlug:"alert-dialog"},s(S,{scope:o,cancelRef:h},s(u,i({role:"alertdialog"},d,l,{ref:m,onOpenAutoFocus:b(l.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=h.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),s(a,null,r),!1)))})),T="AlertDialogTitle",z=l(((e,t)=>{const{__scopeAlertDialog:o,...r}=e,n=O(o);return s(x,i({},n,r,{ref:t}))})),I=l(((e,t)=>{const{__scopeAlertDialog:o,...r}=e,n=O(o);return s(y,i({},n,r,{ref:t}))})),H=k,M=N,R=l(((e,t)=>{const{__scopeAlertDialog:o,...r}=e,n=O(o);return s($,i({},n,r,{ref:t}))})),W=l(((e,t)=>{const{__scopeAlertDialog:o,...r}=e,{cancelRef:a}=F("AlertDialogCancel",o),l=O(o),c=n(t,a);return s($,i({},l,r,{ref:c}))})),E=z,P=I,q=e((e=>{const{__scopeAlertDialog:t,...o}=e,r=O(t);return s(m,i({},r,o,{modal:!0}))}))``,G=e((e=>{const{__scopeAlertDialog:t,...o}=e,r=O(t);return s(h,i({},r,o))}))``,J=e(W)``,K=e(R)``,L=e(H)`
|
|
2
2
|
${D}
|
|
3
3
|
`,Q=e(M)`
|
|
4
4
|
${j}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as default}from"./index-
|
|
1
|
+
export{C as default}from"./index-By3ZGP_F.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-CMYH5FSo.js";import"react-dom";import"../index-BCBGGtXO.js";import"../index-D76LBwe9.js";import"../index-D4pfkNFk.js";import"../index-DE6Djr2P.js";import"../index-DmrSN1YW.js";import"../Combination/index-b5frlUiu.js";import"../index-BrmsftDQ.js";import"../index-CrpsBRUu.js";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../Button/index-CX4tZVcp.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t from"react";import{j as n,u as l,a as o,e as i}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{a as r}from"../index-Dv0uT_-u.js";import{q as a,b as s}from"../keyframes/index-CVfQXEtZ.js";import{h as u}from"../index-Bw1WW_qt.js";import{C as g}from"../ChevronUp/index-Ce4eVyDz.js";import{B as d}from"../Button/index-CX4tZVcp.js";import{C as c}from"../Checkbox/index-BsjmV0hy.js";import{C as p}from"../Cross/index-COzwlvOZ.js";import{I as m}from"../TextArea/index-D204gYac.js";import{a as f}from"../Popover/index-Cia2Ay5Z.js";import{R as h}from"../Reorder/index-BlLihKmG.js";import{T as C}from"../Typography/index-CDTZdQLs.js";function b(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function w(e,t){return"function"==typeof e?e(t):e}function v(e,t){return n=>{t.setState((t=>({...t,[e]:w(n,t[e])})))}}function S(e){return e instanceof Function}function R(e,t,n){let l,o=[];return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(a.length===o.length&&!a.some(((e,t)=>o[t]!==e)))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e+="";t>e.length;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function x(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:n,onChange:l}}const F="debugHeaders";function M(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const y={createTable:e=>{e.getHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var i,r;const a=null!=(i=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[];return V(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id)))),...s],e)}),x(e.options,F,"getHeaderGroups")),e.getCenterHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>V(t,n=n.filter((e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),x(e.options,F,"getCenterHeaderGroups")),e.getLeftHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return V(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),x(e.options,F,"getLeftHeaderGroups")),e.getRightHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return V(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),x(e.options,F,"getRightHeaderGroups")),e.getFooterGroups=R((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getFooterGroups")),e.getLeftFooterGroups=R((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getLeftFooterGroups")),e.getCenterFooterGroups=R((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getCenterFooterGroups")),e.getRightFooterGroups=R((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getRightFooterGroups")),e.getFlatHeaders=R((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getFlatHeaders")),e.getLeftFlatHeaders=R((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getLeftFlatHeaders")),e.getCenterFlatHeaders=R((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getCenterFlatHeaders")),e.getRightFlatHeaders=R((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getRightFlatHeaders")),e.getCenterLeafHeaders=R((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),x(e.options,F,"getCenterLeafHeaders")),e.getLeftLeafHeaders=R((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),x(e.options,F,"getLeftLeafHeaders")),e.getRightLeafHeaders=R((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),x(e.options,F,"getRightLeafHeaders")),e.getLeafHeaders=R((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,i,r,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),x(e.options,F,"getLeafHeaders"))}};function V(e,t,n,l){var o,i;let r=0;const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,""+t].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const r=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e);else{const o=M(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?""+i.filter((e=>e.column===a)).length:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(i,t-1)},g=t.map(((e,t)=>M(n,e,{depth:r,index:t})));u(g,r-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];return e.subHeaders&&e.subHeaders.length?(l=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1,n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const I=(e,t,n,l,o,i,r)=>{let a={id:t,index:l,original:n,depth:o,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,l),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,l),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const t=e.subRows;null!=t&&t.length&&l(t)}))};return l(e),n}(a.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:R((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:R((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),x(e.options,"debugCells","cell.getContext"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,a,t,t.id)))),x(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:R((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),x(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;e._features.length>t;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},P={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},L=(e,t,n)=>{var l;const o=n.toLowerCase();return!!(null==(l=e.getValue(t))||null==(l=""+l)||null==(l=l.toLowerCase())?void 0:l.includes(o))};L.autoRemove=e=>k(e);const _=(e,t,n)=>{var l;return!!(null==(l=e.getValue(t))||null==(l=""+l)?void 0:l.includes(n))};_.autoRemove=e=>k(e);const H=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=""+l)?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};H.autoRemove=e=>k(e);const A=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};A.autoRemove=e=>k(e)||!(null!=e&&e.length);const G=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));G.autoRemove=e=>k(e)||!(null!=e&&e.length);const z=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));z.autoRemove=e=>k(e)||!(null!=e&&e.length);const E=(e,t,n)=>e.getValue(t)===n;E.autoRemove=e=>k(e);const D=(e,t,n)=>e.getValue(t)==n;D.autoRemove=e=>k(e);const $=(e,t,n)=>{let[l,o]=n;const i=e.getValue(t);return i>=l&&o>=i};$.resolveFilterValue=e=>{let[t,n]=e,l="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(l)?-1/0:l,r=null===n||Number.isNaN(o)?1/0:o;if(i>r){const e=i;i=r,r=e}return[i,r]},$.autoRemove=e=>k(e)||k(e[0])&&k(e[1]);const j={includesString:L,includesStringSensitive:_,equalsString:H,arrIncludes:A,arrIncludesAll:G,arrIncludesSome:z,equals:E,weakEquals:D,inNumberRange:$};function k(e){return null==e||""===e}function O(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const T={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"==typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(n>l||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>n||(l=o=n):(l>n&&(l=n),n>o&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null==o||(o=+o)<o||(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!Array.isArray(l=n)||!l.every((e=>"number"==typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),i=n.sort(((e,t)=>e-t));return n.length%2!=0?i[o]:(i[o-1]+i[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},B={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},q={getDefaultColumnDef:()=>B,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:v("columnSizing",e),onColumnSizingInfoChange:v("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:B.minSize,null!=(l=null!=i?i:e.columnDef.size)?l:B.size),null!=(o=e.columnDef.maxSize)?o:B.maxSize)},e.getStart=R((e=>[e,Z(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),x(t.options,"debugColumns","getStart")),e.getAfter=R((e=>[e,Z(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),x(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return i=>{if(!l||!o)return;if(null==i.persist||i.persist(),U(i)&&i.touches&&i.touches.length>1)return;const r=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=U(i)?Math.round(i.touches[0].clientX):i.clientX,u={},g=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*("rtl"===t.options.columnResizeDirection?-1:1),r=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*r,0))/100})),{...e,deltaOffset:i,deltaPercentage:r}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},d=e=>g("move",e),c=e=>{g("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof N)return N;let e=!1;try{const t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return N=e,N}()&&{passive:!1};U(i)?(null==p||p.addEventListener("touchmove",f.moveHandler,h),null==p||p.addEventListener("touchend",f.upHandler,h)):(null==p||p.addEventListener("mousemove",m.moveHandler,h),null==p||p.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let N=null;function U(e){return"touchstart"===e.type}function Z(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const X={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:v("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const l={...n};return e.getPreGroupedRowModel().flatRows.forEach(t?e=>{e.getCanSelect()&&(l[e.id]=!0)}:e=>{delete l[e.id]}),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{K(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=R((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?W(e,n):{rows:[],flatRows:[],rowsById:{}}),x(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=R((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?W(e,n):{rows:[],flatRows:[],rowsById:{}}),x(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=R((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?W(e,n):{rows:[],flatRows:[],rowsById:{}}),x(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=!(!t.length||!Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((i=>{var r;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return K(a,e.id,n,null==(r=null==l?void 0:l.selectChildren)||r,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return J(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Q(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Q(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},K=(e,t,n,l,o)=>{var i;const r=o.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),r.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach((t=>K(e,t.id,n,l,o)))};function W(e,t){const n=e.getState().rowSelection,l=[],o={},i=function(e,t){return e.map((e=>{var t;const r=J(e,n);if(r&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),r)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:l,rowsById:o}}function J(e,t){var n;return null!=(n=t[e.id])&&n}function Q(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,i=!1;return e.subRows.forEach((e=>{if((!i||o)&&(e.getCanSelect()&&(J(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Q(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const Y=/([0-9]+)/gm;function ee(e,t){return e===t?0:e>t?1:-1}function te(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":e+"":"string"==typeof e?e:""}function ne(e,t){const n=e.split(Y).filter(Boolean),l=t.split(Y).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),i=parseInt(t,10),r=[o,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-l.length}const le={alphanumeric:(e,t,n)=>ne(te(e.getValue(n)).toLowerCase(),te(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ne(te(e.getValue(n)),te(t.getValue(n))),text:(e,t,n)=>ee(te(e.getValue(n)).toLowerCase(),te(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>ee(te(e.getValue(n)),te(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:o>l?-1:0},basic:(e,t,n)=>ee(e.getValue(n),t.getValue(n))},oe=[y,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:v("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=R((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),x(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=R((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),x(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>R((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),x(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:v("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=R((e=>[Z(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),x(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var l;return(null==(l=Z(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=Z(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=R((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),x(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:v("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,r,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,i=n.some((e=>null==l?void 0:l.includes(e))),r=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=R((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),x(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=R((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),x(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=R((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),x(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,i;return t?!!(null==(n=l[t])?void 0:n.length):!(!(null==(o=l.left)?void 0:o.length)&&!(null==(i=l.right)?void 0:i.length))},e.getLeftLeafColumns=R((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),x(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=R((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),x(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=R((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),x(e.options,"debugColumns","getCenterLeafColumns"))}},P,{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:v("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"==typeof l?j.includesString:"number"==typeof l?j.inNumberRange:"boolean"==typeof l||null!==l&&"object"==typeof l?j.equals:Array.isArray(l)?j.arrIncludes:j.weakEquals},e.getFilterFn=()=>{var n,l;return S(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:j[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const l=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),i=w(n,o?o.value:void 0);var r;if(O(l,i,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?s:[]:null!=t&&t.length?[...t,a]:[a]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var l;return null==(l=w(t,e))?void 0:l.filter((e=>{const t=n.find((t=>t.id===e.id));return!t||!O(t.getFilterFn(),e.value,t)}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:v("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof l||"number"==typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>j.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return S(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:j[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:v("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return le.datetime;if("string"==typeof n&&(l=!0,n.split(Y).length>1))return le.alphanumeric}return l?le.text:le.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw Error();return S(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:le[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),s=null==r?void 0:r.findIndex((t=>t.id===e.id));let u,g=[],d=i?n:"desc"===o;var c;return u=null!=r&&r.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=r&&r.length&&s!==r.length-1?"replace":a?"toggle":"replace","toggle"===u&&(i||o||(u="remove")),"add"===u?(g=[...r,{id:e.id,desc:d}],g.splice(0,g.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):g="toggle"===u?r.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}],g}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?!!(r===i||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:""+n)?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:v("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"==typeof l?T.sum:"[object Date]"===Object.prototype.toString.call(l)?T.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw Error();return S(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:T[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:v("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const i=!0===l||!(null==l||!l[e.id]);let r={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{r[e]=!0})):r=l,n=null!=(o=n)?o:!i,!i&&n)return{...r,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=r;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:v("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>w(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let l=w(t,n.pageIndex);return l=Math.max(0,Math.min(l,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:l}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,w(t,e.pageSize)),l=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:l,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var l;let o=w(t,null!=(l=e.options.pageCount)?l:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=R((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map(((e,t)=>t))),t}),x(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&n-1>t},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:v("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const i=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],r=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...r,e.id,...i]);t.setRowPinning((e=>{var t,l,o,i,r,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"==typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,i=n.some((e=>null==l?void 0:l.includes(e))),r=n.some((e=>null==o?void 0:o.includes(e)));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const i=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==i?void 0:i.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,i;return t?!!(null==(n=l[t])?void 0:n.length):!(!(null==(o=l.top)?void 0:o.length)&&!(null==(i=l.bottom)?void 0:i.length))},e._getPinnedRows=R((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))}),x(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=R((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),x(e.options,"debugRows","getCenterRows"))}},X,q];function ie(e){var t,n;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const l=[...oe,...null!=(t=e._features)?t:[]];let o={_features:l};const i=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{});let r={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const a=[];let s=!1;const u={_features:l,options:{...i,...e},initialState:r,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;a.length;)a.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=w(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?l:""+(n?[n.id,t].join("."):t)},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw Error("getRow could not find row with ID: "+e);return n},_getDefaultColumnDef:R((()=>[o.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:""+n)?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),x(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:R((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const i=function(e,t,n,l){var o,i;const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey;let s,u=null!=(o=null!=(i=r.id)?i:a?a.replace(".","_"):void 0)?o:"string"==typeof r.header?r.header:void 0;if(r.accessorFn?s=r.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e],void 0===t&&console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`)}return t}:e=>e[r.accessorKey]),!u)throw Error(r.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");let g={id:u+"",accessorFn:s,parent:l,depth:n,columnDef:r,columns:[],getFlatColumns:R((()=>[!0]),(()=>{var e;return[g,...null==(e=g.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),x(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:R((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=g.columns)&&t.length){let t=g.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[g]}),x(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(g,e);return g}(o,e,l,n);return i.columns=e.columns?t(e.columns,i,l+1):[],i}))};return t(e)}),x(e,"debugColumns","getAllColumns")),getAllFlatColumns:R((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),x(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:R((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),x(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:R((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),x(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=o._getAllFlatColumnsById()[e];return t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(o,u);for(let e=0;o._features.length>e;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function re(){return e=>R((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,i){void 0===o&&(o=0);const r=[];for(let s=0;t.length>s;s++){const u=I(e,e._getRowId(t[s],s,i),t[s],s,o,0,null==i?void 0:i.id);var a;n.flatRows.push(u),n.rowsById[u.id]=u,r.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u)))}return r};return n.rows=l(t),n}),x(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex())))}function ae(t,n){return t?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(l=t)||"function"==typeof l||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(l)?e.createElement(t,n):t:null;var l}function se(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[l]=e.useState((()=>({current:ie(n)}))),[o,i]=e.useState((()=>l.current.initialState));return l.current.setOptions((e=>({...e,...t,state:{...o,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),l.current}const ue=l.div`
|
|
1
|
+
import*as e from"react";import t from"react";import{j as n,u as l,a as o,e as i}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{b as r}from"../index-CrpsBRUu.js";import{q as a,b as s}from"../keyframes/index-CVfQXEtZ.js";import{h as u}from"../index-Bw1WW_qt.js";import{C as g}from"../ChevronUp/index-Ce4eVyDz.js";import{B as d}from"../Button/index-CX4tZVcp.js";import{C as c}from"../Checkbox/index-Da5dAfcy.js";import{C as p}from"../Cross/index-COzwlvOZ.js";import{I as m}from"../TextArea/index-B91jgzER.js";import{a as f}from"../Popover/index-CJeyJLdk.js";import{R as h}from"../Reorder/index-BWdMAvTJ.js";import{T as C}from"../Typography/index-CDTZdQLs.js";function b(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function w(e,t){return"function"==typeof e?e(t):e}function v(e,t){return n=>{t.setState((t=>({...t,[e]:w(n,t[e])})))}}function S(e){return e instanceof Function}function R(e,t,n){let l,o=[];return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(a.length===o.length&&!a.some(((e,t)=>o[t]!==e)))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e+="";t>e.length;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function x(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:n,onChange:l}}const F="debugHeaders";function M(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const y={createTable:e=>{e.getHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var i,r;const a=null!=(i=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[];return V(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id)))),...s],e)}),x(e.options,F,"getHeaderGroups")),e.getCenterHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>V(t,n=n.filter((e=>!(null!=l&&l.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),x(e.options,F,"getCenterHeaderGroups")),e.getLeftHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return V(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),x(e.options,F,"getLeftHeaderGroups")),e.getRightHeaderGroups=R((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return V(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),x(e.options,F,"getRightHeaderGroups")),e.getFooterGroups=R((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getFooterGroups")),e.getLeftFooterGroups=R((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getLeftFooterGroups")),e.getCenterFooterGroups=R((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getCenterFooterGroups")),e.getRightFooterGroups=R((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),x(e.options,F,"getRightFooterGroups")),e.getFlatHeaders=R((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getFlatHeaders")),e.getLeftFlatHeaders=R((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getLeftFlatHeaders")),e.getCenterFlatHeaders=R((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getCenterFlatHeaders")),e.getRightFlatHeaders=R((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),x(e.options,F,"getRightFlatHeaders")),e.getCenterLeafHeaders=R((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),x(e.options,F,"getCenterLeafHeaders")),e.getLeftLeafHeaders=R((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),x(e.options,F,"getLeftLeafHeaders")),e.getRightLeafHeaders=R((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),x(e.options,F,"getRightLeafHeaders")),e.getLeafHeaders=R((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,i,r,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),x(e.options,F,"getLeafHeaders"))}};function V(e,t,n,l){var o,i;let r=0;const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,""+t].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const r=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e);else{const o=M(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?""+i.filter((e=>e.column===a)).length:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(i,t-1)},g=t.map(((e,t)=>M(n,e,{depth:r,index:t})));u(g,r-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];return e.subHeaders&&e.subHeaders.length?(l=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1,n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const I=(e,t,n,l,o,i,r)=>{let a={id:t,index:l,original:n,depth:o,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,l),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,l),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const t=e.subRows;null!=t&&t.length&&l(t)}))};return l(e),n}(a.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:R((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:R((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),x(e.options,"debugCells","cell.getContext"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,a,t,t.id)))),x(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:R((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),x(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;e._features.length>t;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},P={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},L=(e,t,n)=>{var l;const o=n.toLowerCase();return!!(null==(l=e.getValue(t))||null==(l=""+l)||null==(l=l.toLowerCase())?void 0:l.includes(o))};L.autoRemove=e=>k(e);const _=(e,t,n)=>{var l;return!!(null==(l=e.getValue(t))||null==(l=""+l)?void 0:l.includes(n))};_.autoRemove=e=>k(e);const H=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=""+l)?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};H.autoRemove=e=>k(e);const A=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};A.autoRemove=e=>k(e)||!(null!=e&&e.length);const G=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));G.autoRemove=e=>k(e)||!(null!=e&&e.length);const z=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));z.autoRemove=e=>k(e)||!(null!=e&&e.length);const E=(e,t,n)=>e.getValue(t)===n;E.autoRemove=e=>k(e);const D=(e,t,n)=>e.getValue(t)==n;D.autoRemove=e=>k(e);const $=(e,t,n)=>{let[l,o]=n;const i=e.getValue(t);return i>=l&&o>=i};$.resolveFilterValue=e=>{let[t,n]=e,l="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(l)?-1/0:l,r=null===n||Number.isNaN(o)?1/0:o;if(i>r){const e=i;i=r,r=e}return[i,r]},$.autoRemove=e=>k(e)||k(e[0])&&k(e[1]);const j={includesString:L,includesStringSensitive:_,equalsString:H,arrIncludes:A,arrIncludesAll:G,arrIncludesSome:z,equals:E,weakEquals:D,inNumberRange:$};function k(e){return null==e||""===e}function O(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const T={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"==typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(n>l||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>n||(l=o=n):(l>n&&(l=n),n>o&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null==o||(o=+o)<o||(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!Array.isArray(l=n)||!l.every((e=>"number"==typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),i=n.sort(((e,t)=>e-t));return n.length%2!=0?i[o]:(i[o-1]+i[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},B={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},q={getDefaultColumnDef:()=>B,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:v("columnSizing",e),onColumnSizingInfoChange:v("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:B.minSize,null!=(l=null!=i?i:e.columnDef.size)?l:B.size),null!=(o=e.columnDef.maxSize)?o:B.maxSize)},e.getStart=R((e=>[e,Z(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),x(t.options,"debugColumns","getStart")),e.getAfter=R((e=>[e,Z(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),x(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return i=>{if(!l||!o)return;if(null==i.persist||i.persist(),U(i)&&i.touches&&i.touches.length>1)return;const r=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=U(i)?Math.round(i.touches[0].clientX):i.clientX,u={},g=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*("rtl"===t.options.columnResizeDirection?-1:1),r=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*r,0))/100})),{...e,deltaOffset:i,deltaPercentage:r}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},d=e=>g("move",e),c=e=>{g("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof N)return N;let e=!1;try{const t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return N=e,N}()&&{passive:!1};U(i)?(null==p||p.addEventListener("touchmove",f.moveHandler,h),null==p||p.addEventListener("touchend",f.upHandler,h)):(null==p||p.addEventListener("mousemove",m.moveHandler,h),null==p||p.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let N=null;function U(e){return"touchstart"===e.type}function Z(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const X={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:v("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const l={...n};return e.getPreGroupedRowModel().flatRows.forEach(t?e=>{e.getCanSelect()&&(l[e.id]=!0)}:e=>{delete l[e.id]}),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{K(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=R((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?W(e,n):{rows:[],flatRows:[],rowsById:{}}),x(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=R((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?W(e,n):{rows:[],flatRows:[],rowsById:{}}),x(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=R((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?W(e,n):{rows:[],flatRows:[],rowsById:{}}),x(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=!(!t.length||!Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((i=>{var r;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return K(a,e.id,n,null==(r=null==l?void 0:l.selectChildren)||r,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return J(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Q(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Q(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},K=(e,t,n,l,o)=>{var i;const r=o.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),r.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach((t=>K(e,t.id,n,l,o)))};function W(e,t){const n=e.getState().rowSelection,l=[],o={},i=function(e,t){return e.map((e=>{var t;const r=J(e,n);if(r&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),r)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:l,rowsById:o}}function J(e,t){var n;return null!=(n=t[e.id])&&n}function Q(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,i=!1;return e.subRows.forEach((e=>{if((!i||o)&&(e.getCanSelect()&&(J(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Q(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const Y=/([0-9]+)/gm;function ee(e,t){return e===t?0:e>t?1:-1}function te(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":e+"":"string"==typeof e?e:""}function ne(e,t){const n=e.split(Y).filter(Boolean),l=t.split(Y).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),i=parseInt(t,10),r=[o,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-l.length}const le={alphanumeric:(e,t,n)=>ne(te(e.getValue(n)).toLowerCase(),te(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ne(te(e.getValue(n)),te(t.getValue(n))),text:(e,t,n)=>ee(te(e.getValue(n)).toLowerCase(),te(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>ee(te(e.getValue(n)),te(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:o>l?-1:0},basic:(e,t,n)=>ee(e.getValue(n),t.getValue(n))},oe=[y,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:v("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=R((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),x(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=R((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),x(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>R((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),x(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:v("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=R((e=>[Z(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),x(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var l;return(null==(l=Z(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=Z(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=R((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),x(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:v("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,r,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,i=n.some((e=>null==l?void 0:l.includes(e))),r=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=R((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),x(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=R((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),x(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=R((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),x(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,i;return t?!!(null==(n=l[t])?void 0:n.length):!(!(null==(o=l.left)?void 0:o.length)&&!(null==(i=l.right)?void 0:i.length))},e.getLeftLeafColumns=R((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),x(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=R((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),x(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=R((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),x(e.options,"debugColumns","getCenterLeafColumns"))}},P,{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:v("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"==typeof l?j.includesString:"number"==typeof l?j.inNumberRange:"boolean"==typeof l||null!==l&&"object"==typeof l?j.equals:Array.isArray(l)?j.arrIncludes:j.weakEquals},e.getFilterFn=()=>{var n,l;return S(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:j[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const l=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),i=w(n,o?o.value:void 0);var r;if(O(l,i,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?s:[]:null!=t&&t.length?[...t,a]:[a]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var l;return null==(l=w(t,e))?void 0:l.filter((e=>{const t=n.find((t=>t.id===e.id));return!t||!O(t.getFilterFn(),e.value,t)}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:v("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof l||"number"==typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>j.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return S(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:j[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:v("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return le.datetime;if("string"==typeof n&&(l=!0,n.split(Y).length>1))return le.alphanumeric}return l?le.text:le.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw Error();return S(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:le[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),s=null==r?void 0:r.findIndex((t=>t.id===e.id));let u,g=[],d=i?n:"desc"===o;var c;return u=null!=r&&r.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=r&&r.length&&s!==r.length-1?"replace":a?"toggle":"replace","toggle"===u&&(i||o||(u="remove")),"add"===u?(g=[...r,{id:e.id,desc:d}],g.splice(0,g.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):g="toggle"===u?r.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}],g}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?!!(r===i||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:""+n)?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:v("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"==typeof l?T.sum:"[object Date]"===Object.prototype.toString.call(l)?T.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw Error();return S(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:T[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:v("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const i=!0===l||!(null==l||!l[e.id]);let r={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{r[e]=!0})):r=l,n=null!=(o=n)?o:!i,!i&&n)return{...r,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=r;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:v("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>w(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let l=w(t,n.pageIndex);return l=Math.max(0,Math.min(l,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:l}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,w(t,e.pageSize)),l=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:l,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var l;let o=w(t,null!=(l=e.options.pageCount)?l:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=R((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map(((e,t)=>t))),t}),x(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&n-1>t},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:v("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const i=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],r=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...r,e.id,...i]);t.setRowPinning((e=>{var t,l,o,i,r,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"==typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,i=n.some((e=>null==l?void 0:l.includes(e))),r=n.some((e=>null==o?void 0:o.includes(e)));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const i=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==i?void 0:i.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,i;return t?!!(null==(n=l[t])?void 0:n.length):!(!(null==(o=l.top)?void 0:o.length)&&!(null==(i=l.bottom)?void 0:i.length))},e._getPinnedRows=R((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))}),x(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=R((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),x(e.options,"debugRows","getCenterRows"))}},X,q];function ie(e){var t,n;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const l=[...oe,...null!=(t=e._features)?t:[]];let o={_features:l};const i=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{});let r={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const a=[];let s=!1;const u={_features:l,options:{...i,...e},initialState:r,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;a.length;)a.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=w(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?l:""+(n?[n.id,t].join("."):t)},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw Error("getRow could not find row with ID: "+e);return n},_getDefaultColumnDef:R((()=>[o.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:""+n)?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),x(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:R((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const i=function(e,t,n,l){var o,i;const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey;let s,u=null!=(o=null!=(i=r.id)?i:a?a.replace(".","_"):void 0)?o:"string"==typeof r.header?r.header:void 0;if(r.accessorFn?s=r.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e],void 0===t&&console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`)}return t}:e=>e[r.accessorKey]),!u)throw Error(r.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");let g={id:u+"",accessorFn:s,parent:l,depth:n,columnDef:r,columns:[],getFlatColumns:R((()=>[!0]),(()=>{var e;return[g,...null==(e=g.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),x(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:R((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=g.columns)&&t.length){let t=g.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[g]}),x(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(g,e);return g}(o,e,l,n);return i.columns=e.columns?t(e.columns,i,l+1):[],i}))};return t(e)}),x(e,"debugColumns","getAllColumns")),getAllFlatColumns:R((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),x(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:R((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),x(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:R((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),x(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=o._getAllFlatColumnsById()[e];return t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(o,u);for(let e=0;o._features.length>e;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function re(){return e=>R((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,i){void 0===o&&(o=0);const r=[];for(let s=0;t.length>s;s++){const u=I(e,e._getRowId(t[s],s,i),t[s],s,o,0,null==i?void 0:i.id);var a;n.flatRows.push(u),n.rowsById[u.id]=u,r.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u)))}return r};return n.rows=l(t),n}),x(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex())))}function ae(t,n){return t?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(l=t)||"function"==typeof l||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(l)?e.createElement(t,n):t:null;var l}function se(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[l]=e.useState((()=>({current:ie(n)}))),[o,i]=e.useState((()=>l.current.initialState));return l.current.setOptions((e=>({...e,...t,state:{...o,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),l.current}const ue=l.div`
|
|
2
2
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
3
3
|
direction: ${({theme:e})=>e.direction};
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as e,a as t,e as i,j as s}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{c as a,e as n,h as o,a as r,b as l}from"../index-D76LBwe9.js";import{f as m,g as c}from"../index-
|
|
1
|
+
import{u as e,a as t,e as i,j as s}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{c as a,e as n,h as o,a as r,b as l}from"../index-D76LBwe9.js";import{f as m,g as c}from"../index-CrpsBRUu.js";import{e as p,f as d,g as h,h as x}from"../keyframes/index-CVfQXEtZ.js";import{C as g}from"../Cross/index-COzwlvOZ.js";const f={right:{x:"0",right:"0",top:"0"},left:{x:"0",left:"0",top:"0"}},u={small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"},$=e(a)`
|
|
2
2
|
${m}
|
|
3
3
|
`,j=e(n)`
|
|
4
4
|
${c}
|
package/lib/Drawer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{D as default}from"./index-
|
|
1
|
+
export{D as default}from"./index-BsqaUXLh.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-D76LBwe9.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-D4pfkNFk.js";import"../index-BCBGGtXO.js";import"../index-DE6Djr2P.js";import"../index-DmrSN1YW.js";import"../Combination/index-b5frlUiu.js";import"../index-BrmsftDQ.js";import"../index-CrpsBRUu.js";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../Cross/index-COzwlvOZ.js";
|