(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{25263:function(e,t,r){"use strict";r.d(t,{dd:function(){return _}});var n=r(44194),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},a=Symbol("NiceModalId"),s={},l=n.createContext(s),u=n.createContext(null),c={},d={},f=0,p=function(){throw Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(e,t){var r,n,i;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,u=a.args;return o(o({},e),((r={})[l]=o(o({},e[l]),{id:l,args:u,visible:!!d[l],delayVisible:!d[l]}),r));case"nice-modal/hide":var l=t.payload.modalId;if(!e[l])return e;return o(o({},e),((n={})[l]=o(o({},e[l]),{visible:!1}),n));case"nice-modal/remove":var l=t.payload.modalId,c=o({},e);return delete c[l],c;case"nice-modal/set-flags":var f=t.payload,l=f.modalId,p=f.flags;return o(o({},e),((i={})[l]=o(o({},e[l]),p),i));default:return e}},m={},v={},g=function(e){return"string"==typeof e?e:(e[a]||(e[a]="_nice_modal_"+f++),e[a])};function y(e,t){var r=g(e);if("string"==typeof e||c[r]||E(r,e),p({type:"nice-modal/show",payload:{modalId:r,args:t}}),!m[r]){var n,o,i=new Promise(function(e,t){n=e,o=t});m[r]={resolve:n,reject:o,promise:i}}return m[r].promise}function b(e){var t=g(e);if(p({type:"nice-modal/hide",payload:{modalId:t}}),delete m[t],!v[t]){var r,n,o=new Promise(function(e,t){r=e,n=t});v[t]={resolve:r,reject:n,promise:o}}return v[t].promise}var w=function(e){p({type:"nice-modal/remove",payload:{modalId:e}}),delete m[e],delete v[e]},x=function(e,t){p({type:"nice-modal/set-flags",payload:{modalId:e,flags:t}})};function _(e,t){var r=(0,n.useContext)(l),o=(0,n.useContext)(u),i=null,a=e&&"string"!=typeof e;if(!(i=e?g(e):o))throw Error("No modal id found in NiceModal.useModal.");var s=i;(0,n.useEffect)(function(){a&&!c[s]&&E(s,e,t)},[a,s,e,t]);var d=r[s],f=(0,n.useCallback)(function(e){return y(s,e)},[s]),p=(0,n.useCallback)(function(){return b(s)},[s]),h=(0,n.useCallback)(function(){return w(s)},[s]),x=(0,n.useCallback)(function(e){var t;null===(t=m[s])||void 0===t||t.resolve(e),delete m[s]},[s]),_=(0,n.useCallback)(function(e){var t;null===(t=m[s])||void 0===t||t.reject(e),delete m[s]},[s]),k=(0,n.useCallback)(function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]},[s]);return{id:s,args:null==d?void 0:d.args,visible:!!(null==d?void 0:d.visible),keepMounted:!!(null==d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:x,reject:_,resolveHide:k}}var E=function(e,t,r){c[e]?c[e].props=r:c[e]={comp:t,props:r}},k=function(e){delete c[e]},S=function(){var e=(0,n.useContext)(l),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){if(!c[e]&&!d[e]){console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.");return}});var r=t.filter(function(e){return c[e]}).map(function(e){return o({id:e},c[e])});return n.createElement(n.Fragment,null,r.map(function(e){return n.createElement(e.comp,o({key:e.id,id:e.id},e.props))}))},O=function(e){var t=e.children,r=(0,n.useReducer)(h,s),o=r[0];return p=r[1],n.createElement(l.Provider,{value:o},t,n.createElement(S,null))};t.ZP={Provider:function(e){var t=e.children,r=e.dispatch,o=e.modals;return r&&o?(p=r,n.createElement(l.Provider,{value:o},t,n.createElement(S,null))):n.createElement(O,null,t)},ModalDef:function(e){var t=e.id,r=e.component;return(0,n.useEffect)(function(){return E(t,r),function(){k(t)}},[t,r]),null},NiceModalContext:l,create:function(e){return function(t){var r,a=t.defaultVisible,s=t.keepMounted,c=t.id,f=i(t,["defaultVisible","keepMounted","id"]),p=_(c),h=p.args,m=p.show,v=(0,n.useContext)(l),g=!!v[c];(0,n.useEffect)(function(){return a&&m(),d[c]=!0,function(){delete d[c]}},[c,m,a]),(0,n.useEffect)(function(){s&&x(c,{keepMounted:!0})},[c,s]);var y=null===(r=v[c])||void 0===r?void 0:r.delayVisible;return((0,n.useEffect)(function(){y&&m(h)},[y,h,m]),g)?n.createElement(u.Provider,{value:c},n.createElement(e,o({},f,h))):null}},register:E,show:y,hide:b,remove:w,useModal:_,reducer:h,antdModal:function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},antdDrawer:function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),t||e.keepMounted||e.remove()}}},muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),e.keepMounted||e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),e.keepMounted||e.remove()}}}}},26970:function(e,t,r){"use strict";r.d(t,{YF:function(){return p},x7:function(){return s}});var n=r(24562),o=r(62686),i=r(44194),a=r(56321);let s=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:o}="function"==typeof e?e(t):e;if(r&&({}).hasOwnProperty.call(r,"current")){if(null!=r.current)return(0,n.x7)({element:r.current,padding:o}).fn(t)}else if(r)return(0,n.x7)({element:r,padding:o}).fn(t);return{}}});var l="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function u(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!u(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!u(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function c(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function d(e,t){let r=c(e);return Math.round(t*r)/r}function f(e){let t=i.useRef(e);return l(()=>{t.current=e}),t}function p(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[y,b]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(n);u(w,n)||x(n);let[_,E]=i.useState(null),[k,S]=i.useState(null),O=i.useCallback(e=>{e!=D.current&&(D.current=e,E(e))},[E]),T=i.useCallback(e=>{e!==P.current&&(P.current=e,S(e))},[S]),C=p||_,N=h||k,D=i.useRef(null),P=i.useRef(null),R=i.useRef(y),j=f(v),A=f(s),F=i.useCallback(()=>{if(!D.current||!P.current)return;let e={placement:t,strategy:r,middleware:w};A.current&&(e.platform=A.current),(0,o.oo)(D.current,P.current,e).then(e=>{let t={...e,isPositioned:!0};L.current&&!u(R.current,t)&&(R.current=t,a.flushSync(()=>{b(t)}))})},[w,t,r,A]);l(()=>{!1===g&&R.current.isPositioned&&(R.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);let L=i.useRef(!1);l(()=>(L.current=!0,()=>{L.current=!1}),[]),l(()=>{if(C&&(D.current=C),N&&(P.current=N),C&&N){if(j.current)return j.current(C,N,F);F()}},[C,N,F,j]);let I=i.useMemo(()=>({reference:D,floating:P,setReference:O,setFloating:T}),[O,T]),M=i.useMemo(()=>({reference:C,floating:N}),[C,N]),q=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!M.floating)return e;let t=d(M.floating,y.x),n=d(M.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+n+"px)",...c(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,m,M.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:F,refs:I,elements:M,floatingStyles:q}),[y,F,I,M,q])}},40627:function(e,t,r){"use strict";r.d(t,{Ry:function(){return u}});var n=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(r,"true"),i||e.setAttribute(l,"true")}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),l(n,o,r,"aria-hidden")):function(){return null}}},7068:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}},26446:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],s=i[1],u=new o((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(e,t,n){for(var o,i=[],a=t;a<n;a+=3)i.push(r[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},57861:function(e,t,r){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var n=r(26446),o=r(47164),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(N(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var o=function(e){if(s.isBuffer(e)){var t,r=0|p(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(o)return n?-1:O(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=D[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=t,i=r,0===o&&i===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else -1!==c&&(i-=i-c),c=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(N(i,Uint8Array))o+i.length>n.length?s.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(s.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,l=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){i=u[d],a=c[d];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,C(O(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,s=r,C(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return l=t,u=r,C(T(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,C(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var D=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},14517:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}}),t.Z=n},10063:function(e,t,r){"use strict";var n=r(99415),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v<a.length;++v){var g=a[v];if(!i[g]&&!(n&&n[g])&&!(m&&m[g])&&!(s&&s[g])){var y=f(r,g);try{u(t,g,y)}catch(e){}}}}return t}},47164:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?5960464477539062e-23:0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*m}},12351:function(e,t,r){var n,o="__lodash_hash_undefined__",i=/^\[object .+?Constructor\]$/,a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),u=Array.prototype,c=Function.prototype,d=Object.prototype,f=l["__core-js_shared__"],p=(n=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",h=c.toString,m=d.hasOwnProperty,v=d.toString,g=RegExp("^"+h.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=u.splice,b=O(l,"Map"),w=O(Object,"create");function x(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function E(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function k(e,t){for(var r,n=e.length;n--;)if((r=e[n][0])===t||r!=r&&t!=t)return n;return -1}function S(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function O(e,t){var r,n=null==e?void 0:e[t];return!(!C(n)||p&&p in n)&&("[object Function]"==(r=C(n)?v.call(n):"")||"[object GeneratorFunction]"==r||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(n)?g:i).test(function(e){if(null!=e){try{return h.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function T(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(T.Cache||E),r}function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}x.prototype.clear=function(){this.__data__=w?w(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var t=this.__data__;if(w){var r=t[e];return r===o?void 0:r}return m.call(t,e)?t[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return w?void 0!==t[e]:m.call(t,e)},x.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?o:t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,r=k(t,e);return!(r<0)&&(r==t.length-1?t.pop():y.call(t,r,1),!0)},_.prototype.get=function(e){var t=this.__data__,r=k(t,e);return r<0?void 0:t[r][1]},_.prototype.has=function(e){return k(this.__data__,e)>-1},_.prototype.set=function(e,t){var r=this.__data__,n=k(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},E.prototype.clear=function(){this.__data__={hash:new x,map:new(b||_),string:new x}},E.prototype.delete=function(e){return S(this,e).delete(e)},E.prototype.get=function(e){return S(this,e).get(e)},E.prototype.has=function(e){return S(this,e).has(e)},E.prototype.set=function(e,t){return S(this,e).set(e,t),this},T.Cache=E,e.exports=T},14978:function(e,t,r){var n="Expected a function",o=0/0,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,v=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return o;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?o:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw TypeError(n);return g(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),function(e,t,r){var o,i,a,s,l,u,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError(n);function b(t){var r=o,n=i;return o=i=void 0,c=t,s=e.apply(n,r)}function w(e){var r=e-u,n=e-c;return void 0===u||r>=t||r<0||f&&n>=a}function x(){var e,r,n,o=v();if(w(o))return _(o);l=setTimeout(x,(e=o-u,r=o-c,n=t-e,f?m(n,a-r):n))}function _(e){return(l=void 0,p&&o)?b(e):(o=i=void 0,s)}function E(){var e,r=v(),n=w(r);if(o=arguments,i=this,u=r,n){if(void 0===l)return c=e=u,l=setTimeout(x,t),d?b(e):s;if(f)return l=setTimeout(x,t),b(u)}return void 0===l&&(l=setTimeout(x,t)),s}return t=y(t)||0,g(r)&&(d=!!r.leading,a=(f="maxWait"in r)?h(y(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),E.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},E.flush=function(){return void 0===l?s:_(v())},E}(e,t,{leading:o,maxWait:t,trailing:i})}},70861:function(e,t,r){var n=r(83250).Symbol;e.exports=n},69823:function(e,t,r){var n=r(70861),o=r(91339),i=r(25151),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},21656:function(e,t,r){var n=r(62438),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},20302:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},91339:function(e,t,r){var n=r(70861),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},25151:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},83250:function(e,t,r){var n=r(20302),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},62438:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},77837:function(e,t,r){var n=r(93702),o=r(80231),i=r(29153),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,f,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,h=t,d=e.apply(n,r)}function b(e){var r=e-p,n=e-h;return void 0===p||r>=t||r<0||v&&n>=c}function w(){var e,r,n,i=o();if(b(i))return x(i);f=setTimeout(w,(e=i-p,r=i-h,n=t-e,v?s(n,c-r):n))}function x(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function _(){var e,r=o(),n=b(r);if(l=arguments,u=this,p=r,n){if(void 0===f)return h=e=p,f=setTimeout(w,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(i(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},_.flush=function(){return void 0===f?d:x(o())},_}},93702:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},50440:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},52624:function(e,t,r){var n=r(69823),o=r(50440);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},80231:function(e,t,r){var n=r(83250);e.exports=function(){return n.Date.now()}},14633:function(e,t,r){var n=r(77837),o=r(93702);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},29153:function(e,t,r){var n=r(21656),o=r(93702),i=r(52624),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},27008:function(e,t,r){"use strict";r.d(t,{cC:function(){return n.cC},Jc:function(){return ec},ag:function(){return eu},$G:function(){return n.$G}});var n=r(50118),o=r(73909);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,r){var n;return n=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(44194),l=r(10063),u=r.n(l);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||d(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=r(78934);function h(e,t){if(null==e)return{};var r,n,o=(0,p.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var m={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},v=["i18n"],g=["i18n"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=["backend","detection"],x=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,r,n,o=e.i18n,a=h(e,v),s=m.i18n,l=b(b(b(b({},h(m,g)),a),s),o),u=l.defaultNS,p=l.lng,y=l.localeExtension,x=l.localePath,_=l.nonExplicitSupportedLngs,E=l.locales.filter(function(e){return"default"!==e});if("cimode"===p)return l;if(void 0===l.fallbackLng&&(l.fallbackLng=l.defaultLocale,"default"===l.fallbackLng)){var k=f(E,1);l.fallbackLng=k[0]}var S=null==e?void 0:null===(t=e.interpolation)||void 0===t?void 0:t.prefix,O=null==e?void 0:null===(r=e.interpolation)||void 0===r?void 0:r.suffix,T=null!=S?S:"{{",C=null!=O?O:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(S||O)&&(l.localeStructure="".concat(T,"lng").concat(C,"/").concat(T,"ns").concat(C));var N=l.fallbackLng,D=l.localeStructure;if(_){var P=function(e,t){var r=f(t.split("-"),1)[0];return e[t]=[r],e};if("string"==typeof N)l.fallbackLng=l.locales.filter(function(e){return e.includes("-")}).reduce(P,{default:[N]});else if(Array.isArray(N))l.fallbackLng=l.locales.filter(function(e){return e.includes("-")}).reduce(P,{default:N});else if("object"===i(N))l.fallbackLng=Object.entries(l.fallbackLng).reduce(function(e,t){var r=f(t,2),n=r[0],o=r[1];return e[n]=n.includes("-")?Array.from(new Set([n.split("-")[0]].concat(function(e){if(Array.isArray(e))return c(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||d(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):o,e},N);else if("function"==typeof N)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e?void 0:null===(n=e.use)||void 0===n?void 0:n.some(function(e){return"backend"===e.type}))||("string"==typeof x?l.backend={addPath:"".concat(x,"/").concat(D,".missing.").concat(y),loadPath:"".concat(x,"/").concat(D,".").concat(y)}:"function"!=typeof x||(l.backend={addPath:function(e,t){return x(e,t,!0)},loadPath:function(e,t){return x(e,t,!1)}})),"string"==typeof l.ns||Array.isArray(l.ns)||(l.ns=[u]),w.forEach(function(t){e[t]&&(l[t]=b(b({},l[t]),e[t]))}),l};let _={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new E(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new E(this.logger,e)}}var k=new E;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(e=>{e(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(t=>{t.apply(t,[e,...r])})}}function O(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}function T(e){return null==e?"":""+e}function C(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=n(i.shift());!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function N(e,t,r){let{obj:n,k:o}=C(e,t,Object);n[o]=r}function D(e,t){let{obj:r,k:n}=C(e,t);if(r)return r[n]}function P(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function j(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>R[e]):e}let A=[" ",",","?","!",";"];function F(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),o=e;for(let e=0;e<n.length;++e){if(!o||"string"==typeof o[n[e]]&&e+1<n.length)return;if(void 0===o[n[e]]){let i=2,a=n.slice(e,e+i).join(r),s=o[a];for(;void 0===s&&n.length>e+i;)i++,s=o[a=n.slice(e,e+i).join(r)];if(void 0===s)return;if(null===s)return null;if(t.endsWith(a)){if("string"==typeof s)return s;if(a&&"string"==typeof s[a])return s[a]}let l=n.slice(e+i).join(r);if(l)return F(s,l,r);return}o=o[n[e]]}return o}function L(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class I extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));let s=D(this.data,a);return s||!i||"string"!=typeof r?s:F(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),N(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)("string"==typeof r[n]||"[object Array]"===Object.prototype.toString.apply(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=D(this.data,a)||{};n?function e(t,r,n){for(let o in r)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof r[o]||r[o]instanceof String?n&&(t[o]=r[o]):e(t[o],r[o],n):t[o]=r[o]);return t}(s,r,o):s={...s,...r},N(this.data,a,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var M={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))}),t}};let q={};class z extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";let n=A.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let o=RegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,r,n);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s}:`${s}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s}:i}let c=this.resolve(e,t),d=c&&c.res,f=c&&c.usedKey||i,p=c&&c.exactUsedKey||i,h=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,g="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(v&&d&&g&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c):e}if(o){let e="[object Array]"===h,r=e?[]:{},n=e?p:f;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=d[e])}d=r}}else if(v&&"string"==typeof m&&"[object Array]"===h)(d=d.join(m))&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,a=!1,u=void 0!==t.count&&"string"!=typeof t.count,f=z.hasDefaultValue(t),p=u?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(n=!0,d=m),this.isValidLookup(d)||(a=!0,d=i);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,g=f&&m!==d&&this.options.updateMissing;if(a||n||g){if(this.logger.log(g?"updateKey":"missingKey",l,s,i,g?m:d),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let o=f&&n!==d?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,g,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,g,t),this.emit("missingKey",e,s,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(r=>{n([e],i+r,t[`defaultValue${r}`]||m)})}):n(e,i,m))}d=this.extendTranslation(d,e,t,c,r),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,n?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(c.res=d,c):d}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let a;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language,r),s){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):i.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}let a=r.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=M.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:n,...r}:r,this)),e}resolve(e){let t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let s=this.extractFromKey(e,a),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==a.count&&"string"!=typeof a.count,d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(i=e,!q[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(q[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{let i;if(this.isValidLookup(t))return;o=r;let s=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,r,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(r,a.count,a));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(s.push(l+e),a.ordinal&&0===e.indexOf(n)&&s.push(l+e.replace(n,this.options.pluralSeparator)),d&&s.push(l+t)),f){let r=`${l}${this.options.contextSeparator}${a.context}`;s.push(r),c&&(s.push(r+e),a.ordinal&&0===e.indexOf(n)&&s.push(r+e.replace(n,this.options.pluralSeparator)),d&&s.push(r+t))}}for(;i=s.pop();)this.isValidLookup(t)||(n=i,t=this.getResource(r,e,i,a))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function V(e){return e.charAt(0).toUpperCase()+e.slice(1)}class U{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=V(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=V(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=V(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&0===e.indexOf(r))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let $=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],H={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},K=["v1","v2","v3"],B=["v4"],W={zero:0,one:1,two:2,few:3,many:4,other:5};class Z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),(!this.options.compatibilityJSON||B.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return $.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:H[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(L(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>W[e]-W[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!K.includes(this.options.compatibilityJSON)}}function G(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,r){let n=D(e,r);return void 0!==n?n:D(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=F(e,r,n))&&(i=F(t,r,n)),i}class Y{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:j,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?P(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?P(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?P(t.nestingPrefix):t.nestingPrefixEscaped||P("$t("),this.nestingSuffix=t.nestingSuffix?P(t.nestingSuffix):t.nestingSuffixEscaped||P(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(r,"g")}interpolate(e,t,r,n){let o,i,a;let s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=G(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(G(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();let c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach(t=>{for(a=0;o=t.regex.exec(e);){let r=o[1].trim();if(void 0===(i=u(r))){if("function"==typeof c){let t=c(e,o,n);i="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=T(i));let s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0];let a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let s=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,l=!0}if((n=t(a.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=T(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=s.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}function Q(e){let t={};return function(r,n,o){let i=n+JSON.stringify(o),a=t[i];return a||(a=e(L(n),o),t[i]=a),a(r)}}class J{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("formatter"),this.options=e,this.formats={number:Q((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:Q((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:Q((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:Q((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:Q((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Q(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].substring(0,n[1].length-1);"currency"===t&&0>o.indexOf(":")?r.currency||(r.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?r.range||(r.range=o.trim()):o.split(";").forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");r[t.trim()]||(r[t.trim()]=o),"false"===o&&(r[t.trim()]=!1),"true"===o&&(r[t.trim()]=!0),isNaN(o)||(r[t.trim()]=parseInt(o,10))})}return{formatName:t,formatOptions:r}}(t);if(this.formats[o]){let t=e;try{let a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class X extends S{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let o={},i={},a={},s={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){let n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;let a={};this.queue.forEach(r=>{(function(e,t,r,n){let{obj:o,k:i}=C(e,t,Object);o[i]=o[i]||[],o[i].push(r)})(r.loaded,[o],i),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});return}this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&s&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*o,i)},o);return}i(a,s)},s=this.backend[r].bind(this.backend);if(2===s.length){try{let r=s(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}function ee(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,r,n)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function et(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function er(){}class en extends S{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=et(e),this.services={},this.logger=k,this.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=ee();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...et(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?k.init(o(this.modules.logger),this.options):k.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=J);let r=new U(this.options);this.store=new I(this.options.resources,this.options);let i=this.services;i.logger=k,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new Z(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Y(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new X(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new z(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=er),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let i=O(),a=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,r=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();let e=[],t=t=>{t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=O();return e||(e=this.languages),t||(t=this.options.ns),r||(r=er),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&M.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=O();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var s=arguments.length,l=Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];i=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,i.keyPrefix=i.keyPrefix||r||o.keyPrefix;let c=n.options.keySeparator||".";return a=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${c}${e}`):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,n.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let i=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!n||i(o,e)))}loadNamespaces(e,t){let r=O();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=O();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],o=e.filter(e=>0>n.indexOf(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new U(ee())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new en(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},o=new en(n);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new I(this.store.data,n),o.services.resourceStore=o.store),o.translator=new z(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let eo=en.createInstance();eo.createInstance=en.createInstance,eo.createInstance,eo.dir,eo.init,eo.loadResources,eo.reloadResources,eo.use,eo.changeLanguage,eo.getFixedT,eo.t,eo.exists,eo.setDefaultNamespace,eo.hasLoadedNamespace,eo.loadNamespaces,eo.loadLanguages;var ei=function(e){void 0===e.ns&&(e.ns=[]);var t,r,n=eo.createInstance(e);return n.isInitialized?t=Promise.resolve(eo.t):(null==e||null===(r=e.use)||void 0===r||r.forEach(function(e){return n.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(n),t=n.init(e)),{i18n:n,initPromise:t}},ea=s.createElement;function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eu=null,ec=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return u()(function(r){var i,a,l=(r.pageProps||{})._nextI18Next,u=null!==(i=null==l?void 0:l.initialLocale)&&void 0!==i?i:null==r?void 0:null===(a=r.router)||void 0===a?void 0:a.locale,c=null==l?void 0:l.ns,d=(0,s.useMemo)(function(){if(!l&&!t)return null;var e,r=null!=t?t:null==l?void 0:l.userConfig;if(!r)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=r&&r.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=r&&null!==(e=r.i18n)&&void 0!==e&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var n=(l||{}).initialI18nStore,o=null!=t&&t.resources?t.resources:n;u||(u=r.i18n.defaultLocale);var i=ei(el(el({},x(el(el({},r),{},{lng:u}))),{},{lng:u,ns:c,resources:o})).i18n;return eu=i,i},[l,u,t,c]);return null!==d?ea(n.a3,{i18n:d},ea(e,r)):ea(e,(0,o.Z)({key:u},r))},e)}},88121:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(44194);let o=["light","dark"],i="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,n.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,n.useContext)(s))&&void 0!==e?e:l},c=e=>(0,n.useContext)(s)?n.createElement(n.Fragment,null,e.children):n.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[w,x]=(0,n.useState)(()=>h(l,c)),[_,E]=(0,n.useState)(()=>h(l)),k=g?Object.values(g):u,S=(0,n.useCallback)(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=v());let i=g?g[n]:n,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),i&&l.classList.add(i)):i?l.setAttribute(f,i):l.removeAttribute(f),a){let e=o.includes(c)?c:null,t=o.includes(n)?n:e;l.style.colorScheme=t}null==s||s()},[]),O=(0,n.useCallback)(e=>{x(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),T=(0,n.useCallback)(t=>{E(v(t)),"system"===w&&r&&!e&&S("system")},[w,e]);(0,n.useEffect)(()=>{let e=window.matchMedia(i);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),(0,n.useEffect)(()=>{let e=e=>{e.key===l&&O(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),(0,n.useEffect)(()=>{S(null!=e?e:w)},[e,w]);let C=(0,n.useMemo)(()=>({theme:w,setTheme:O,forcedTheme:e,resolvedTheme:"system"===w?_:w,themes:r?[...u,"system"]:u,systemTheme:r?_:void 0}),[w,O,e,_,r,u]);return n.createElement(s.Provider,{value:C},n.createElement(p,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:b}),y)},p=(0,n.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,p="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?o.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let i=u?u[e]:e,a=t?e+"|| ''":`'${i}'`,l="";return s&&n&&!t&&o.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||i?`c.add(${a})`:"null":i&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${p}${m(e)}}()`:a?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${i}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${h}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),h=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},13763:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(39192)},66598:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(50447)}])},50447:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return en}});var n=r(31549),o=r(20356),i=r.n(o),a=r(54381),s=r.n(a),l=r(73416),u=r(77550),c=r(41850),d=r(27569),f=r(58525);class p extends f.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||u._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=(0,l.oE)(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(l.ZT).catch(l.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,l.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,o,i;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let a=(0,l.G9)(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(s);let c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};u(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(i=c.fetchOptions)?void 0:i.meta});let f=e=>{if((0,d.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,d.DV)(e)){var t,r,n,o;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(o=this.cache.config).onSettled)||n.call(o,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,d.Mz)({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,r,n,o;if(void 0===e){f(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(o=this.cache.config).onSettled)||n.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:(0,d.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let o=e.error;if((0,d.DV)(o)&&o.revert&&this.revertState)return{...this.revertState};return{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),c.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var h=r(15571);class m extends h.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let o=t.queryKey,i=null!=(n=t.queryHash)?n:(0,l.Rm)(o,t),a=this.get(i);return a||(a=new p({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){c.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=(0,l.I6)(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>(0,l._x)(r,e))}findAll(e,t){let[r]=(0,l.I6)(e,t);return Object.keys(r).length>0?this.queries.filter(e=>(0,l._x)(r,e)):this.queries}notify(e){c.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){c.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){c.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var v=r(11365);class g extends h.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new v.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){c.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,l.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,l.X7)(e,t))}notify(e){c.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return c.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(l.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var y=r(71898),b=r(26393),w=r(40225);class x{constructor(e={}){this.queryCache=e.queryCache||new m,this.mutationCache=e.mutationCache||new g,this.logger=e.logger||u._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=y.j.subscribe(()=>{y.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=b.N.subscribe(()=>{b.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=(0,l.I6)(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=(0,l._v)(e,t,r),o=this.getQueryData(n.queryKey);return o?Promise.resolve(o):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.queryCache.find(e),o=null==n?void 0:n.state.data,i=(0,l.SE)(t,o);if(void 0===i)return;let a=(0,l._v)(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return c.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=(0,l.I6)(e,t),n=this.queryCache;c.V.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,o]=(0,l.I6)(e,t,r),i=this.queryCache,a={type:"active",...n};return c.V.batch(()=>(i.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(a,o)))}cancelQueries(e,t,r){let[n,o={}]=(0,l.I6)(e,t,r);return void 0===o.revert&&(o.revert=!0),Promise.all(c.V.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(o)))).then(l.ZT).catch(l.ZT)}invalidateQueries(e,t,r){let[n,o]=(0,l.I6)(e,t,r);return c.V.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,o)})}refetchQueries(e,t,r){let[n,o]=(0,l.I6)(e,t,r),i=Promise.all(c.V.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))).then(l.ZT);return null!=o&&o.throwOnError||(i=i.catch(l.ZT)),i}fetchQuery(e,t,r){let n=(0,l._v)(e,t,r),o=this.defaultQueryOptions(n);void 0===o.retry&&(o.retry=!1);let i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(l.ZT).catch(l.ZT)}fetchInfiniteQuery(e,t,r){let n=(0,l._v)(e,t,r);return n.behavior=(0,w.Gm)(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(l.ZT).catch(l.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>(0,l.yF)(e)===(0,l.yF)(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,l.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>(0,l.yF)(e)===(0,l.yF)(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,l.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,l.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var _=r(14236),E=r(27008),k=r(43042),S=r.n(k),O=r(45900),T=r(48583),C=r(24447),N=r(44194),D=r(55193),P=r(21367);let R=e=>{let t=(0,C.useRouter)(),r=(0,N.useMemo)(()=>(0,D.ej)("Authorization_PROD"),[t.pathname]),{data:n}=(0,T.poI)({query:{enabled:!!r,select:e=>e.data}});(0,N.useEffect)(()=>{var t;n&&(null!==(t=window.location.pathname)&&void 0!==t&&t.includes("/auth/login")||(null==n?void 0:n.type)===e||(0,P.a0)(null==n?void 0:n.type))},[n,null==n?void 0:n.type,e])};var j=e=>{let{platformType:t}=e;return R(t),null};function A(e){return N.createElement("div",{className:"w-fit h-fit flex items-center justify-center"},N.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("mask",{id:"prefix__snackbar-error-icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:20,height:20},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5c-4.687 0-8.5 3.813-8.5 8.5 0 4.687 3.813 8.5 8.5 8.5 4.687 0 8.5-3.813 8.5-8.5 0-4.687-3.813-8.5-8.5-8.5zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10zm-.006-8.627a.75.75 0 01-.75-.75V8.204a.75.75 0 011.5 0v4.419a.75.75 0 01-.75.75zM11 15.796a1.003 1.003 0 002.005 0 1 1 0 00-1-1h-.01a.995.995 0 00-.995 1z",fill:"#fff"})),N.createElement("g",{mask:"url(#prefix__snackbar-error-icon)"},N.createElement("path",{fill:"#fff",d:"M0-.061h24v24H0z"}))))}function F(e){return N.createElement("div",{className:"w-fit h-fit flex items-center justify-center"},N.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("mask",{id:"prefix__snackbar-success-icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:4,y:6,width:16,height:12},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.945 6.74a.902.902 0 011.286 0l.355-.353-.355.352a.936.936 0 010 1.313L10.17 17.2a.902.902 0 01-1.285 0l-4.118-4.158a.936.936 0 010-1.313.902.902 0 011.286 0l3.12 3.15a.5.5 0 00.71 0l8.06-8.14-.352-.35.353.35z",fill:"#fff"})),N.createElement("g",{mask:"url(#prefix__snackbar-success-icon)"},N.createElement("path",{fill:"#000",d:"M-.001-.03h24v24h-24z"}))))}function L(e){return N.createElement("div",{className:"w-fit h-fit flex items-center justify-center"},N.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("mask",{id:"prefix__snackbar-info-icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:20,height:20},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.664 3.5C5.135 3.5 3.5 5.233 3.5 7.916v8.168c0 2.683 1.635 4.416 4.164 4.416h8.668c2.532 0 4.168-1.733 4.168-4.416V7.916c0-2.683-1.636-4.416-4.166-4.416h-8.67zM16.332 22H7.664C4.276 22 2 19.622 2 16.084V7.916C2 4.378 4.276 2 7.664 2h8.67C19.723 2 22 4.378 22 7.916v8.168C22 19.622 19.723 22 16.332 22zm-4.338-5.25a.75.75 0 01-.75-.75v-4a.75.75 0 011.5 0v4a.75.75 0 01-.75.75zm-1-8.546a1.003 1.003 0 002.005 0 1 1 0 00-1-1h-.01a.995.995 0 00-.995 1z",fill:"#fff"})),N.createElement("g",{mask:"url(#prefix__snackbar-info-icon)"},N.createElement("path",{fill:"#fff",d:"M0-.061h24v24H0z"}))))}function I(e){return N.createElement("div",{className:"w-fit h-fit flex items-center justify-center"},N.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("mask",{id:"prefix__snackbar-warning-icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:1,y:3,width:22,height:19},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.013 4.5c-.476 0-.9.246-1.138.659L3.677 17.724a1.3 1.3 0 00.005 1.308c.237.409.66.654 1.134.654h14.383c.472 0 .896-.245 1.133-.654.238-.409.24-.898.004-1.308L13.15 5.159a1.296 1.296 0 00-1.138-.659zm7.186 16.686H4.816a2.783 2.783 0 01-2.432-1.402 2.781 2.781 0 01-.01-2.805l7.2-12.566A2.777 2.777 0 0112.014 3a2.78 2.78 0 012.44 1.415l7.186 12.564c.503.879.5 1.928-.01 2.805a2.783 2.783 0 01-2.43 1.402zm-7.195-7.022a.75.75 0 01-.75-.75v-3.1a.75.75 0 011.5 0v3.1a.75.75 0 01-.75.75zM11 16.499a1.003 1.003 0 002.005 0 1 1 0 00-1-1h-.01a.995.995 0 00-.995 1z",fill:"#fff"})),N.createElement("g",{mask:"url(#prefix__snackbar-warning-icon)"},N.createElement("path",{fill:"#000",d:"M0-.061h24v24H0z"}))))}r(96798);var M=(0,r(31706).j)("px-4 py-2 rounded-xl min-h-[32px] flex items-center",{variants:{variant:{default:"bg-tertiary dark:bg-white [&_>_p]:text-white [&_>_p]:dark:text-black",error:"bg-error [&_>_p]:text-error-contrastText dark:[&_>_p]:text-error-contrastText",info:"bg-loading [&_>_p]:text-loading-contrastText dark:[&_>_p]:text-error-contrastText",success:"bg-success [&_>_p]:text-success-contrastText dark:[&_>_p]:text-success-contrastText",warning:"bg-warning [&_>_p]:text-warning-contrastText dark:[&_>_p]:text-success-contrastText"}}}),q=r(96697),z=r(95870),V=N.forwardRef(({className:e,variant:t,style:r,message:n,iconVariant:o,hideIconVariant:i,persist:a,autoHideDuration:s,id:l,anchorOrigin:u,action:c,...d},f)=>N.createElement("div",{ref:f,style:r,...d,className:(0,z.cn)(M({variant:t}),e)},"default"!==t&&!i&&N.createElement("div",{className:(0,z.cn)("mr-2")},o?.[t]),"string"==typeof n?N.createElement(q.Z,{variant:"button"},n):n)),U=N.forwardRef(({...e},t)=>N.createElement(V,{ref:t,variant:"default",...e})),$=N.forwardRef(({...e},t)=>N.createElement(V,{ref:t,variant:"error",...e})),H=N.forwardRef(({...e},t)=>N.createElement(V,{ref:t,variant:"success",...e})),K=N.forwardRef(({...e},t)=>N.createElement(V,{ref:t,variant:"warning",...e})),B=N.forwardRef(({...e},t)=>N.createElement(V,{ref:t,variant:"info",...e})),W=r(48594),Z=({Components:e,anchorOrigin:t,iconVariant:r,autoHideDuration:n,...o})=>N.createElement(W.wT,{anchorOrigin:{horizontal:"right",vertical:"bottom",...t},iconVariant:{error:N.createElement(A,null),success:N.createElement(F,null),warning:N.createElement(I,null),info:N.createElement(L,null),...r},autoHideDuration:n||3e3,Components:{default:U,error:$,success:H,warning:K,info:B,...e},...o}),G=r(91652),Y=r(83503),Q=r(88121),J=r(90862);let X=e=>{let{children:t}=e,{pushModalByComponent:r}=(0,Y.Ty)();return(0,n.jsx)(O.iY,{onDragEnter:()=>{r(J._)},children:t})};var ee=r(28510);let et=e=>{let{}=e;return!function(){let e=(0,C.useRouter)(),t=e.query.companyId,r=(0,_.NL)(),{t:n}=(0,E.$G)(),{pushModalByComponent:o,popModal:i}=(0,Y.Ty)(),{mutate:a}=(0,T.RyA)({mutation:{onMutate:()=>{r.cancelQueries({exact:!1,predicate:()=>!0}),o(ee.q,{description:n("scaffold.switchingCompany")})},onSuccess:()=>{r.resetQueries({exact:!1,predicate:()=>!0});let{companyId:t,...n}=e.query,o={pathname:e.pathname,query:n};e.replace(o,void 0,{shallow:!0}),i()}}});(0,N.useEffect)(()=>{t&&a({data:{companyId:t}})},[t])}(),null},er=new x;var en=(0,E.Jc)(e=>{let{Component:t,pageProps:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(S(),{children:[(0,n.jsx)("title",{className:s().dynamic([["f207f35a67efe12b",[i().style.fontFamily]]]),children:"Kalaway Company"}),(0,n.jsx)("meta",{name:"viewport",content:"minimum-scale=1, initial-scale=1, width=device-width",className:s().dynamic([["f207f35a67efe12b",[i().style.fontFamily]]])})]}),(0,n.jsx)(s(),{id:"f207f35a67efe12b",dynamic:[i().style.fontFamily],children:":root{--font-nunito:".concat(i().style.fontFamily,"}")}),(0,n.jsx)(O.wq,{children:(0,n.jsx)(Q.f,{defaultTheme:"dark",attribute:"class",forcedTheme:"dark",children:(0,n.jsx)(O.c8,{children:(0,n.jsx)(O.cG,{value:"company",children:(0,n.jsx)(Z,{children:(0,n.jsx)(G.p,{children:(0,n.jsx)(_.aH,{client:er,children:(0,n.jsx)(Y.Cc,{children:(0,n.jsxs)(X,{children:[(0,n.jsx)(j,{platformType:"user"}),(0,n.jsx)(et,{}),(0,n.jsx)(t,{...r,className:s().dynamic([["f207f35a67efe12b",[i().style.fontFamily]]])+" "+(r&&null!=r.className&&r.className||"")})]})})})})})})})})})]})})},41230:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(97940),o=r(60273),i=r(31549),a=o._(r(44194)),s=n._(r(56321)),l=n._(r(18437)),u=r(61162),c=r(29541),d=r(61446);r(54787);let f=r(48984),p=n._(r(12005)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,o,i,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:g,fill:y,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:x,setShowAltText:_,sizesInput:E,onLoad:k,onError:S,...O}=e;return(0,i.jsx)("img",{...O,...v(f),loading:h,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:o,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&m(e,p,b,w,x,g,E))},[r,p,b,w,x,S,g,E,t]),onLoad:e=>{m(e.currentTarget,p,b,w,x,g,E)},onError:e=>{_(!0),"empty"!==p&&x(!0),S&&S(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let v=(0,a.useRef)(l);(0,a.useEffect)(()=>{v.current=l},[l]);let[b,w]=(0,a.useState)(!1),[x,_]=(0,a.useState)(!1),{props:E,meta:k}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:b,showAltText:x});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{...E,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:_,sizesInput:e.sizes,ref:t}),k.priority?(0,i.jsx)(y,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},noSSR:function(){return a}});let n=r(97940);r(31549),r(44194);let o=n._(r(55962));function i(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=o.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(i):Promise.resolve(i(()=>null))}):(delete n.webpack,delete n.modules,a(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61162:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(54787);let n=r(42102),o=r(29541);function i(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:p=!1,loading:h,className:m,quality:v,width:g,height:y,fill:b=!1,style:w,overrideSrc:x,onLoad:_,onLoadingComplete:E,placeholder:k="empty",blurDataURL:S,fetchPriority:O,layout:T,objectFit:C,objectPosition:N,lazyBoundary:D,lazyRoot:P,...R}=e,{imgConf:j,showAltText:A,blurComplete:F,defaultLoader:L}=t,I=j||o.imageConfigDefault;if("allSizes"in I)s=I;else{let e=[...I.deviceSizes,...I.imageSizes].sort((e,t)=>e-t),t=I.deviceSizes.sort((e,t)=>e-t);s={...I,allSizes:e,deviceSizes:t}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let M=R.loader||L;delete R.loader,delete R.srcSet;let q="__next_img_default"in M;if(q){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=M;M=t=>{let{config:r,...n}=t;return e(n)}}if(T){"fill"===T&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!d&&(d=t)}let z="",V=a(g),U=a(y);if("object"==typeof(r=c)&&(i(r)||void 0!==r.src)){let e=i(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,S=S||e.blurDataURL,z=e.src,!b){if(V||U){if(V&&!U){let t=V/e.width;U=Math.round(e.height*t)}else if(!V&&U){let t=U/e.height;V=Math.round(e.width*t)}}else V=e.width,U=e.height}}let $=!p&&("lazy"===h||void 0===h);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,$=!1),s.unoptimized&&(f=!0),q&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(O="high");let H=a(v),K=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:N}:{},A?{}:{color:"transparent"},w),B=F||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:V,heightInt:U,blurWidth:l,blurHeight:u,blurDataURL:S||"",objectFit:K.objectFit})+'")':'url("'+k+'")',W=B?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:B}:{},Z=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:i,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:i,width:l[c]})}}({config:s,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:M});return{props:{...R,loading:$?"lazy":h,fetchPriority:O,width:V,height:U,decoding:"async",className:m,style:{...K,...W},sizes:Z.sizes,srcSet:Z.srcSet,src:x||Z.src},meta:{unoptimized:f,priority:p,placeholder:k,fill:b}}}},42102:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=n?40*n:t,l=o?40*o:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},27725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(97940),o=r(61162),i=r(41230),a=n._(r(12005));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=i.Image},12005:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},36772:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(97940)._(r(44194)).default.createContext(null)},55962:function(e,t,r){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(97940)._(r(44194)),o=r(36772),i=[],a=[],s=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function l(){if(!i){let t=new u(e,r);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!s){let e=r.webpack?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){!function(){l();let e=n.default.useContext(o.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let a=n.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:i.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(i).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());d(a,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},57644:function(e,t,r){"use strict";var n=r(13763);r(14516);var o=r(44194),i=o&&"object"==typeof o&&"default"in o?o:{default:o},a=void 0!==n&&n.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,o=t.optimizeForSpeed,i=void 0===o?a:o;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(u(s(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,r){t&&u(s(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var o=document.head||document.getElementsByTagName("head")[0];return r?o.insertBefore(n,r):o.appendChild(n),n},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function p(e,t){var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,o=t.optimizeForSpeed,i=void 0!==o&&o;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),n&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,o=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var i=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=i,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var o=f(n,r);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return p(o,e)}):[p(o,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=o.createContext(null);m.displayName="StyleSheetContext";var v=i.default.useInsertionEffect||i.default.useLayoutEffect,g=new h;function y(e){var t=g||o.useContext(m);return t&&v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=y},54381:function(e,t,r){"use strict";e.exports=r(57644).style},48583:function(e,t,r){"use strict";r.d(t,{Q1F:function(){return a},vdY:function(){return ta},_1l:function(){return et},x7z:function(){return J},iE6:function(){return G},jiE:function(){return th},uzc:function(){return w},Osj:function(){return tl},srB:function(){return tE},$Lz:function(){return $},uKg:function(){return eR},jpD:function(){return e9},Us0:function(){return eL},yXS:function(){return tr},Huh:function(){return eM},sOM:function(){return eC},b3R:function(){return eY},lI6:function(){return tk},oD3:function(){return H},PVU:function(){return e7},fyx:function(){return ej},yrt:function(){return eI},KvQ:function(){return eW},Cm2:function(){return Q},WZt:function(){return p},uAS:function(){return N},pez:function(){return Y},jo$:function(){return f},Whx:function(){return ts},x4y:function(){return tL},iXX:function(){return tu},Znd:function(){return eT},s2K:function(){return t$},y8L:function(){return d},QGp:function(){return ee},B9P:function(){return e_},SOS:function(){return A},rxT:function(){return tz},jlU:function(){return tO},lNG:function(){return eK},mMk:function(){return eF},gA_:function(){return tt},ypc:function(){return ti},b98:function(){return eG},X9D:function(){return e6},eGJ:function(){return eV},zCL:function(){return eP},BbI:function(){return tp},xLE:function(){return eX},r$F:function(){return eh},HU5:function(){return eb},gky:function(){return eO},O1q:function(){return e4},Qm0:function(){return ty},poI:function(){return m},C$3:function(){return U},nWF:function(){return M},M8d:function(){return b},ZHr:function(){return k},b9x:function(){return P},aU_:function(){return tF},D28:function(){return eo},S24:function(){return tR},Kep:function(){return ec},$ZL:function(){return Z},k12:function(){return tx},RyA:function(){return tN},im0:function(){return T},ReD:function(){return es},H4X:function(){return em},oLK:function(){return K},PNE:function(){return t_}});var n=r(64649);let o=n.default.create({baseURL:"https://account-ms.kalaway.com/api/v1"});o.interceptors.response.use(null,async function(e){var t;let r=window.location.pathname||"";if((null===(t=e.response)||void 0===t?void 0:t.status)===401&&!r.includes("/auth/login")){let t=new URLSearchParams(window.location.search).get("magicKey");if(!t){window.location.href="/auth/login";return}return await o({...e.config,baseURL:"https://account-ms.kalaway.com/api/v1",url:"/auth/evanescent-login",method:"post",data:{evanescentKey:t}}),o(e.config)}return Promise.reject(e)});let i=(e,t)=>{let r=n.default.CancelToken.source(),i=o({...e,...t,withCredentials:!0,cancelToken:r.token});return i.cancel=()=>{r.cancel("Query was cancelled")},i},a={limitedCompany:"limitedCompany",partnership:"partnership"};var s=r(63567),l=r(81599);let u=(e,t,r)=>i({url:"/user/password",method:"post",headers:{"Content-Type":"application/json"},data:e,params:t},r),c=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t,params:n}=null!=e?e:{};return u(t,n,r)},...t}},d=e=>{let t=c(e);return(0,s.D)(t)},f=(e,t)=>i({url:"/user/me",method:"get",signal:t},e),p=()=>["/user/me"],h=e=>{var t;let{query:r,request:n}=null!=e?e:{};return{queryKey:null!==(t=null==r?void 0:r.queryKey)&&void 0!==t?t:p(),queryFn:e=>{let{signal:t}=e;return f(n,t)},...r}},m=e=>{let t=h(e),r=(0,l.a)(t);return r.queryKey=t.queryKey,r},v=(e,t,r)=>i({url:"/user/email/",method:"get",params:e,signal:r},t),g=e=>["/user/email/",...e?[e]:[]],y=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:g(e),queryFn:t=>{let{signal:r}=t;return v(e,o,r)},...n}},b=(e,t)=>{let r=y(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},w=(e,t,r)=>i({url:"/user/".concat(e,"/"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),x=(e,t,r,n)=>i({url:"/user/".concat(e,"/company/related"),method:"get",params:t,signal:n},r),_=(e,t)=>["/user/".concat(e,"/company/related"),...t?[t]:[]],E=(e,t,r)=>{var n;let{query:o,request:i}=null!=r?r:{};return{queryKey:null!==(n=null==o?void 0:o.queryKey)&&void 0!==n?n:_(e,t),queryFn:r=>{let{signal:n}=r;return x(e,t,i,n)},enabled:!!e,...o}},k=(e,t,r)=>{let n=E(e,t,r),o=(0,l.a)(n);return o.queryKey=n.queryKey,o},S=(e,t)=>i({url:"/settings/propic",method:"post",headers:{"Content-Type":"application/json"},data:e},t),O=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return S(t,r)},...t}},T=e=>{let t=O(e);return(0,s.D)(t)},C=(e,t)=>i({url:"/settings/",method:"get",signal:t},e),N=()=>["/settings/"],D=e=>{var t;let{query:r,request:n}=null!=e?e:{};return{queryKey:null!==(t=null==r?void 0:r.queryKey)&&void 0!==t?t:N(),queryFn:e=>{let{signal:t}=e;return C(n,t)},...r}},P=e=>{let t=D(e),r=(0,l.a)(t);return r.queryKey=t.queryKey,r},R=(e,t)=>i({url:"/settings/",method:"post",headers:{"Content-Type":"application/json"},data:e},t),j=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return R(t,r)},...t}},A=e=>{let t=j(e);return(0,s.D)(t)},F=(e,t,r)=>i({url:"/manager/related",method:"get",params:e,signal:r},t),L=e=>["/manager/related",...e?[e]:[]],I=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:L(e),queryFn:t=>{let{signal:r}=t;return F(e,o,r)},...n}},M=(e,t)=>{let r=I(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},q=(e,t,r)=>i({url:"/advisor/related",method:"get",params:e,signal:r},t),z=e=>["/advisor/related",...e?[e]:[]],V=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:z(e),queryFn:t=>{let{signal:r}=t;return q(e,o,r)},...n}},U=(e,t)=>{let r=V(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},$=(e,t,r)=>i({url:"/manager-invite/sent",method:"get",params:e,signal:r},t),H=e=>["/manager-invite/sent",...e?[e]:[]],K=(e,t)=>i({url:"/manager-invite/".concat(e,"/withdraw"),method:"post"},t),B=(e,t,r)=>i({url:"/manager-invite/".concat(e,"/review"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),W=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t,data:n}=null!=e?e:{};return B(t,n,r)},...t}},Z=e=>{let t=W(e);return(0,s.D)(t)},G=(e,t)=>i({url:"/invitation/user/",method:"put",headers:{"Content-Type":"application/json"},data:e},t),Y=(e,t,r)=>i({url:"/invitation/",method:"get",params:e,signal:r},t),Q=e=>["/invitation/",...e?[e]:[]],J=(e,t)=>i({url:"/invitation/",method:"put",headers:{"Content-Type":"application/json"},data:e},t),X=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return J(t,r)},...t}},ee=e=>{let t=X(e);return(0,s.D)(t)},et=(e,t)=>i({url:"/invitation/company/",method:"put",headers:{"Content-Type":"application/json"},data:e},t),er=(e,t)=>i({url:"/invitation/".concat(e,"/reject"),method:"post"},t),en=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return er(t,r)},...t}},eo=e=>{let t=en(e);return(0,s.D)(t)},ei=(e,t,r)=>i({url:"/invitation/".concat(e,"/otp/validate"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),ea=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t,data:n}=null!=e?e:{};return ei(t,n,r)},...t}},es=e=>{let t=ea(e);return(0,s.D)(t)},el=(e,t)=>i({url:"/invitation/".concat(e,"/otp/request"),method:"post"},t),eu=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return el(t,r)},...t}},ec=e=>{let t=eu(e);return(0,s.D)(t)},ed=(e,t,r)=>i({url:"/invitation/".concat(e,"/info"),method:"get",signal:r},t),ef=e=>["/invitation/".concat(e,"/info")],ep=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ef(e),queryFn:t=>{let{signal:r}=t;return ed(e,o,r)},enabled:!!e,...n}},eh=(e,t)=>{let r=ep(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},em=(e,t)=>i({url:"/invitation/".concat(e,"/"),method:"delete"},t),ev=(e,t,r)=>i({url:"/invitation/".concat(e,"/"),method:"get",signal:r},t),eg=e=>["/invitation/".concat(e,"/")],ey=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eg(e),queryFn:t=>{let{signal:r}=t;return ev(e,o,r)},enabled:!!e,...n}},eb=(e,t)=>{let r=ey(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},ew=(e,t,r)=>i({url:"/invitation/".concat(e,"/"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),ex=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t,data:n}=null!=e?e:{};return ew(t,n,r)},...t}},e_=e=>{let t=ex(e);return(0,s.D)(t)},eE=(e,t)=>i({url:"/image",method:"get",signal:t},e),ek=()=>["/image"],eS=e=>{var t;let{query:r,request:n}=null!=e?e:{};return{queryKey:null!==(t=null==r?void 0:r.queryKey)&&void 0!==t?t:ek(),queryFn:e=>{let{signal:t}=e;return eE(n,t)},...r}},eO=e=>{let t=eS(e),r=(0,l.a)(t);return r.queryKey=t.queryKey,r},eT=(e,t,r)=>i({url:"/connection-invitation/".concat(e,"/review"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),eC=(e,t,r)=>i({url:"/company/users",method:"get",params:e,signal:r},t),eN=e=>["/company/users",...e?[e]:[]],eD=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eN(e),queryFn:t=>{let{signal:r}=t;return eC(e,o,r)},...n}},eP=(e,t)=>{let r=eD(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},eR=(e,t,r)=>i({url:"/company/related",method:"get",params:e,signal:r},t),ej=e=>["/company/related",...e?[e]:[]],eA=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ej(e),queryFn:t=>{let{signal:r}=t;return eR(e,o,r)},...n}},eF=(e,t)=>{let r=eA(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},eL=(e,t,r)=>i({url:"/company/populated",method:"get",params:e,signal:r},t),eI=e=>["/company/populated",...e?[e]:[]],eM=(e,t,r)=>i({url:"/company/managers",method:"get",params:e,signal:r},t),eq=e=>["/company/managers",...e?[e]:[]],ez=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eq(e),queryFn:t=>{let{signal:r}=t;return eM(e,o,r)},...n}},eV=(e,t)=>{let r=ez(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},eU=(e,t,r)=>i({url:"/company/",method:"get",params:e,signal:r},t),e$=e=>["/company/",...e?[e]:[]],eH=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e$(e),queryFn:t=>{let{signal:r}=t;return eU(e,o,r)},...n}},eK=(e,t)=>{let r=eH(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},eB=(e,t,r)=>i({url:"/company/employees/",method:"get",params:e,signal:r},t),eW=e=>["/company/employees/",...e?[e]:[]],eZ=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eW(e),queryFn:t=>{let{signal:r}=t;return eB(e,o,r)},...n}},eG=(e,t)=>{let r=eZ(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},eY=(e,t)=>i({url:"/company/current",method:"get",signal:t},e),eQ=()=>["/company/current"],eJ=e=>{var t;let{query:r,request:n}=null!=e?e:{};return{queryKey:null!==(t=null==r?void 0:r.queryKey)&&void 0!==t?t:eQ(),queryFn:e=>{let{signal:t}=e;return eY(n,t)},...r}},eX=e=>{let t=eJ(e),r=(0,l.a)(t);return r.queryKey=t.queryKey,r},e0=(e,t,r)=>i({url:"/company/companiesHouse/managers",method:"get",params:e,signal:r},t),e1=e=>["/company/companiesHouse/managers",...e?[e]:[]],e2=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e1(e),queryFn:t=>{let{signal:r}=t;return e0(e,o,r)},...n}},e4=(e,t)=>{let r=e2(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},e5=(e,t,r)=>i({url:"/company/companiesHouse/",method:"get",params:e,signal:r},t),e3=e=>["/company/companiesHouse/",...e?[e]:[]],e8=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e3(e),queryFn:t=>{let{signal:r}=t;return e5(e,o,r)},...n}},e6=(e,t)=>{let r=e8(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},e9=(e,t,r)=>i({url:"/company/allUserRelatedAdivisors",method:"get",params:e,signal:r},t),e7=e=>["/company/allUserRelatedAdivisors",...e?[e]:[]],te=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e7(e),queryFn:t=>{let{signal:r}=t;return e9(e,o,r)},...n}},tt=(e,t)=>{let r=te(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},tr=(e,t,r)=>i({url:"/company/advisors",method:"get",params:e,signal:r},t),tn=e=>["/company/advisors",...e?[e]:[]],to=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tn(e),queryFn:t=>{let{signal:r}=t;return tr(e,o,r)},...n}},ti=(e,t)=>{let r=to(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},ta=(e,t)=>i({url:"/company/addUser",method:"post",headers:{"Content-Type":"application/json"},data:e},t),ts=(e,t,r)=>i({url:"/company/".concat(e,"/user/invite"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),tl=(e,t,r)=>i({url:"/company/".concat(e,"/user/connect"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),tu=(e,t,r)=>i({url:"/company/".concat(e,"/request-managing"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),tc=(e,t,r)=>i({url:"/company/".concat(e,"/"),method:"get",signal:r},t),td=e=>["/company/".concat(e,"/")],tf=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:td(e),queryFn:t=>{let{signal:r}=t;return tc(e,o,r)},enabled:!!e,...n}},tp=(e,t)=>{let r=tf(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},th=(e,t,r)=>i({url:"/company/".concat(e,"/"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),tm=(e,t,r)=>i({url:"/company/managingRequest/".concat(e,"/"),method:"get",signal:r},t),tv=e=>["/company/managingRequest/".concat(e,"/")],tg=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tv(e),queryFn:t=>{let{signal:r}=t;return tm(e,o,r)},enabled:!!e,...n}},ty=(e,t)=>{let r=tg(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},tb=(e,t,r)=>i({url:"/company/managingRequest/".concat(e,"/"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),tw=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t,data:n}=null!=e?e:{};return tb(t,n,r)},...t}},tx=e=>{let t=tw(e);return(0,s.D)(t)},t_=(e,t)=>i({url:"/company/managingRequest/".concat(e,"/withdraw"),method:"post"},t),tE=(e,t,r)=>i({url:"/bank/",method:"get",params:e,signal:r},t),tk=e=>["/bank/",...e?[e]:[]],tS=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tk(e),queryFn:t=>{let{signal:r}=t;return tE(e,o,r)},...n}},tO=(e,t)=>{let r=tS(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},tT=(e,t)=>i({url:"/auth/setCompany",method:"post",headers:{"Content-Type":"application/json"},data:e},t),tC=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return tT(t,r)},...t}},tN=e=>{let t=tC(e);return(0,s.D)(t)},tD=(e,t)=>i({url:"/auth/recovery/request",method:"post",headers:{"Content-Type":"application/json"},data:e},t),tP=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return tD(t,r)},...t}},tR=e=>{let t=tP(e);return(0,s.D)(t)},tj=e=>i({url:"/auth/logout",method:"post"},e),tA=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:()=>tj(r),...t}},tF=e=>{let t=tA(e);return(0,s.D)(t)},tL=(e,t)=>i({url:"/auth/login",method:"post",headers:{"Content-Type":"application/json"},data:e},t),tI=(e,t,r)=>i({url:"/advisor/",method:"get",params:e,signal:r},t),tM=e=>["/advisor/",...e?[e]:[]],tq=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tM(e),queryFn:t=>{let{signal:r}=t;return tI(e,o,r)},...n}},tz=(e,t)=>{let r=tq(e,t),n=(0,l.a)(r);return n.queryKey=r.queryKey,n},tV=(e,t)=>i({url:"/advised-company/".concat(e,"/"),method:"delete"},t),tU=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return tV(t,r)},...t}},t$=e=>{let t=tU(e);return(0,s.D)(t)}},44307:function(e,t,r){"use strict";r.d(t,{g6n:function(){return X},lbn:function(){return ea},bTl:function(){return a},tGz:function(){return j},Osm:function(){return G},HR1:function(){return g},I$E:function(){return tA},de8:function(){return eT},MsS:function(){return re},aDv:function(){return M},v3u:function(){return I},TmN:function(){return f},UQu:function(){return p},xqt:function(){return O},OyC:function(){return Y},V7U:function(){return y},wHW:function(){return tF},c$4:function(){return eC},rjF:function(){return rt},Tlz:function(){return en},lZ:function(){return h},_j_:function(){return T},FoN:function(){return rn},iTr:function(){return E},o5N:function(){return ew},WQy:function(){return tW},gAG:function(){return tV},N$t:function(){return tC},eKL:function(){return t_},udY:function(){return e9},EVw:function(){return ez},PQY:function(){return eA},DHV:function(){return rr},QMo:function(){return _},H6v:function(){return tB},wp3:function(){return tz},Mx4:function(){return tT},S$7:function(){return tj},Zo2:function(){return tx},uyN:function(){return e6},vv8:function(){return eq},ILG:function(){return ej},iGi:function(){return x},fsq:function(){return ey},WKA:function(){return em},wKG:function(){return et},jmY:function(){return ed},cqE:function(){return R},U8M:function(){return c},CH$:function(){return el},kxI:function(){return rd},l92:function(){return L},IMe:function(){return rT},VBL:function(){return J},qL9:function(){return w},tJ$:function(){return rs},ihY:function(){return rm},vSq:function(){return ei},ZZQ:function(){return V},Wf6:function(){return v},rsG:function(){return e8},dqT:function(){return N},vf9:function(){return t7},hUB:function(){return tv},W2l:function(){return rE},Usk:function(){return S},sYv:function(){return rb},N$S:function(){return eO},iqN:function(){return e_},R7C:function(){return t3},kcW:function(){return t1},VF7:function(){return tQ},MXp:function(){return tK},CKi:function(){return tq},O9Y:function(){return tf},UQG:function(){return tR},Gub:function(){return tl},ZQW:function(){return eJ},P7:function(){return e2},Cyg:function(){return tO},YtU:function(){return eZ},gCK:function(){return tw},z2o:function(){return eH},i9Q:function(){return te},JQd:function(){return to},ndp:function(){return eM},x5:function(){return eR},xRA:function(){return Z},veT:function(){return H}});var n=r(64649);let o=n.default.create({baseURL:"https://repository-ms.kalaway.com/api/v1"});o.interceptors.response.use(null,async function(e){var t;let r=window.location.pathname||"";if((null===(t=e.response)||void 0===t?void 0:t.status)===401&&!r.includes("/auth/login")){let t=new URLSearchParams(window.location.search).get("magicKey");if(!t){window.location.href="/auth/login";return}return await o({...e.config,baseURL:"https://account-ms.kalaway.com/api/v1",url:"/auth/evanescent-login",method:"post",data:{evanescentKey:t}}),o(e.config)}return Promise.reject(e)});let i=(e,t)=>{let r=n.default.CancelToken.source(),i=o({...e,...t,withCredentials:!0,cancelToken:r.token});return i.cancel=()=>{r.cancel("Query was cancelled")},i},a=(e,t)=>i({url:"/storage/",method:"post",headers:{"Content-Type":"application/json"},data:e},t);var s=r(63567);let l=(e,t)=>i({url:"/pdf/",method:"post",headers:{"Content-Type":"application/json"},data:e},t),u=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return l(t,r)},...t}},c=e=>{let t=u(e);return(0,s.D)(t)};var d=r(81599);let f=(e,t,r)=>i({url:"/document/type/".concat(e,"/subtypes"),method:"get",signal:r},t),p=(e,t,r,n)=>i({url:"/document/type/".concat(e,"/"),method:"get",params:t,signal:n},r),h=(e,t)=>["/document/type/".concat(e,"/"),...t?[t]:[]],m=(e,t,r)=>{var n;let{query:o,request:i}=null!=r?r:{};return{queryKey:null!==(n=null==o?void 0:o.queryKey)&&void 0!==n?n:h(e,t),queryFn:r=>{let{signal:n}=r;return p(e,t,i,n)},enabled:!!e,...o}},v=(e,t,r)=>{let n=m(e,t,r),o=(0,d.a)(n);return o.queryKey=n.queryKey,o},g=(e,t,r)=>i({url:"/document/",method:"get",params:e,signal:r},t),y=e=>["/document/",...e?[e]:[]],b=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:y(e),queryFn:t=>{let{signal:r}=t;return g(e,o,r)},...n}},w=(e,t)=>{let r=b(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},x=(e,t)=>i({url:"/document/",method:"post",headers:{"Content-Type":"application/json"},data:e},t),_=(e,t,r)=>i({url:"/document/inbox/",method:"get",params:e,signal:r},t),E=e=>["/document/inbox/",...e?[e]:[]],k=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:E(e),queryFn:t=>{let{signal:r}=t;return _(e,o,r)},...n}},S=(e,t)=>{let r=k(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},O=(e,t,r)=>i({url:"/document/expiring/",method:"get",params:e,signal:r},t),T=e=>["/document/expiring/",...e?[e]:[]],C=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:T(e),queryFn:t=>{let{signal:r}=t;return O(e,o,r)},...n}},N=(e,t)=>{let r=C(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},D=(e,t)=>i({url:"/document/download",method:"post",headers:{"Content-Type":"application/json"},data:e},t),P=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return D(t,r)},...t}},R=e=>{let t=P(e);return(0,s.D)(t)},j=(e,t,r)=>i({url:"/document/category/",method:"get",params:e,signal:r},t),A=e=>["/document/category/",...e?[e]:[]],F=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:A(e),queryFn:t=>{let{signal:r}=t;return j(e,o,r)},...n}},L=(e,t)=>{let r=F(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},I=(e,t,r)=>i({url:"/document/category/".concat(e,"/types"),method:"get",signal:r},t),M=(e,t,r)=>i({url:"/document/category/".concat(e,"/"),method:"get",signal:r},t),q=e=>["/document/category/".concat(e,"/")],z=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:q(e),queryFn:t=>{let{signal:r}=t;return M(e,o,r)},enabled:!!e,...n}},V=(e,t)=>{let r=z(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},U=(e,t)=>i({url:"/document/".concat(e,"/unarchive"),method:"post"},t),$=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return U(t,r)},...t}},H=e=>{let t=$(e);return(0,s.D)(t)},K=(e,t,r,n)=>i({url:"/document/".concat(e,"/ocr"),method:"get",params:t,signal:n},r),B=(e,t)=>["/document/".concat(e,"/ocr"),...t?[t]:[]],W=(e,t,r)=>{var n;let{query:o,request:i}=null!=r?r:{};return{queryKey:null!==(n=null==o?void 0:o.queryKey)&&void 0!==n?n:B(e,t),queryFn:r=>{let{signal:n}=r;return K(e,t,i,n)},enabled:!!e,...o}},Z=(e,t,r)=>{let n=W(e,t,r),o=(0,d.a)(n);return o.queryKey=n.queryKey,o},G=(e,t,r,n)=>i({url:"/document/".concat(e,"/interactions"),method:"get",params:t,signal:n},r),Y=(e,t)=>["/document/".concat(e,"/interactions"),...t?[t]:[]],Q=(e,t,r)=>{var n;let{query:o,request:i}=null!=r?r:{};return{queryKey:null!==(n=null==o?void 0:o.queryKey)&&void 0!==n?n:Y(e,t),queryFn:r=>{let{signal:n}=r;return G(e,t,i,n)},enabled:!!e,...o}},J=(e,t,r)=>{let n=Q(e,t,r),o=(0,d.a)(n);return o.queryKey=n.queryKey,o},X=(e,t)=>i({url:"/document/".concat(e,"/"),method:"delete"},t),ee=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return X(t,r)},...t}},et=e=>{let t=ee(e);return(0,s.D)(t)},er=(e,t,r)=>i({url:"/document/".concat(e,"/"),method:"get",signal:r},t),en=e=>["/document/".concat(e,"/")],eo=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:en(e),queryFn:t=>{let{signal:r}=t;return er(e,o,r)},enabled:!!e,...n}},ei=(e,t)=>{let r=eo(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},ea=(e,t,r)=>i({url:"/document/".concat(e,"/"),method:"post",headers:{"Content-Type":"application/json"},data:t},r),es=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t,data:n}=null!=e?e:{};return ea(t,n,r)},...t}},el=e=>{let t=es(e);return(0,s.D)(t)},eu=(e,t)=>i({url:"/document/".concat(e,"/download"),method:"post"},t),ec=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return eu(t,r)},...t}},ed=e=>{let t=ec(e);return(0,s.D)(t)},ef=(e,t,r)=>i({url:"/document/".concat(e,"/classifier"),method:"get",signal:r},t),ep=e=>["/document/".concat(e,"/classifier")],eh=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ep(e),queryFn:t=>{let{signal:r}=t;return ef(e,o,r)},enabled:!!e,...n}},em=(e,t)=>{let r=eh(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},ev=(e,t)=>i({url:"/document/".concat(e,"/archive"),method:"post"},t),eg=e=>{let{mutation:t,request:r}=null!=e?e:{};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return ev(t,r)},...t}},ey=e=>{let t=eg(e);return(0,s.D)(t)},eb=(e,t,r,n)=>i({url:"/document/type/".concat(e,"/missingDocuments"),method:"get",params:t,signal:n},r),ew=(e,t)=>["/document/type/".concat(e,"/missingDocuments"),...t?[t]:[]],ex=(e,t,r)=>{var n;let{query:o,request:i}=null!=r?r:{};return{queryKey:null!==(n=null==o?void 0:o.queryKey)&&void 0!==n?n:ew(e,t),queryFn:r=>{let{signal:n}=r;return eb(e,t,i,n)},enabled:!!e,...o}},e_=(e,t,r)=>{let n=ex(e,t,r),o=(0,d.a)(n);return o.queryKey=n.queryKey,o},eE=(e,t,r,n)=>i({url:"/document/category/".concat(e,"/missingDocuments"),method:"get",params:t,signal:n},r),ek=(e,t)=>["/document/category/".concat(e,"/missingDocuments"),...t?[t]:[]],eS=(e,t,r)=>{var n;let{query:o,request:i}=null!=r?r:{};return{queryKey:null!==(n=null==o?void 0:o.queryKey)&&void 0!==n?n:ek(e,t),queryFn:r=>{let{signal:n}=r;return eE(e,t,i,n)},enabled:!!e,...o}},eO=(e,t,r)=>{let n=eS(e,t,r),o=(0,d.a)(n);return o.queryKey=n.queryKey,o},eT=(e,t,r)=>i({url:"/cr/request/",method:"get",params:e,signal:r},t),eC=e=>["/cr/request/",...e?[e]:[]],eN=(e,t,r)=>i({url:"/cr/report/woesTrend",method:"get",params:e,signal:r},t),eD=e=>["/cr/report/woesTrend",...e?[e]:[]],eP=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eD(e),queryFn:t=>{let{signal:r}=t;return eN(e,o,r)},...n}},eR=(e,t)=>{let r=eP(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},ej=(e,t,r)=>i({url:"/cr/report/woesDetail",method:"get",params:e,signal:r},t),eA=e=>["/cr/report/woesDetail",...e?[e]:[]],eF=(e,t,r)=>i({url:"/cr/report/used-agreed/overall",method:"get",params:e,signal:r},t),eL=e=>["/cr/report/used-agreed/overall",...e?[e]:[]],eI=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eL(e),queryFn:t=>{let{signal:r}=t;return eF(e,o,r)},...n}},eM=(e,t)=>{let r=eI(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},eq=(e,t,r)=>i({url:"/cr/report/used-agreed/detail",method:"get",params:e,signal:r},t),ez=e=>["/cr/report/used-agreed/detail",...e?[e]:[]],eV=(e,t,r)=>i({url:"/cr/report/usage-focus/total",method:"get",params:e,signal:r},t),eU=e=>["/cr/report/usage-focus/total",...e?[e]:[]],e$=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eU(e),queryFn:t=>{let{signal:r}=t;return eV(e,o,r)},...n}},eH=(e,t)=>{let r=e$(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},eK=(e,t,r)=>i({url:"/cr/report/usage-focus/signatureCredits",method:"get",params:e,signal:r},t),eB=e=>["/cr/report/usage-focus/signatureCredits",...e?[e]:[]],eW=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eB(e),queryFn:t=>{let{signal:r}=t;return eK(e,o,r)},...n}},eZ=(e,t)=>{let r=eW(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},eG=(e,t,r)=>i({url:"/cr/report/usage-focus/shortTermCash",method:"get",params:e,signal:r},t),eY=e=>["/cr/report/usage-focus/shortTermCash",...e?[e]:[]],eQ=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:eY(e),queryFn:t=>{let{signal:r}=t;return eG(e,o,r)},...n}},eJ=(e,t)=>{let r=eQ(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},eX=(e,t,r)=>i({url:"/cr/report/usage-focus/shortTerm",method:"get",params:e,signal:r},t),e0=e=>["/cr/report/usage-focus/shortTerm",...e?[e]:[]],e1=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e0(e),queryFn:t=>{let{signal:r}=t;return eX(e,o,r)},...n}},e2=(e,t)=>{let r=e1(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},e4=(e,t,r)=>i({url:"/cr/report/usage-focus/expiredPaidCredits",method:"get",params:e,signal:r},t),e5=e=>["/cr/report/usage-focus/expiredPaidCredits",...e?[e]:[]],e3=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e5(e),queryFn:t=>{let{signal:r}=t;return e4(e,o,r)},...n}},e8=(e,t)=>{let r=e3(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},e6=(e,t,r)=>i({url:"/cr/report/unpaidDetail",method:"get",params:e,signal:r},t),e9=e=>["/cr/report/unpaidDetail",...e?[e]:[]],e7=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:e9(e),queryFn:t=>{let{signal:r}=t;return e6(e,o,r)},...n}},te=(e,t)=>{let r=e7(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tt=(e,t,r)=>i({url:"/cr/report/unpaid",method:"get",params:e,signal:r},t),tr=e=>["/cr/report/unpaid",...e?[e]:[]],tn=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tr(e),queryFn:t=>{let{signal:r}=t;return tt(e,o,r)},...n}},to=(e,t)=>{let r=tn(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},ti=(e,t,r)=>i({url:"/cr/report/trend/selfLiquidating",method:"get",params:e,signal:r},t),ta=e=>["/cr/report/trend/selfLiquidating",...e?[e]:[]],ts=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ta(e),queryFn:t=>{let{signal:r}=t;return ti(e,o,r)},...n}},tl=(e,t)=>{let r=ts(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tu=(e,t,r)=>i({url:"/cr/report/trend/revocation",method:"get",params:e,signal:r},t),tc=e=>["/cr/report/trend/revocation",...e?[e]:[]],td=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tc(e),queryFn:t=>{let{signal:r}=t;return tu(e,o,r)},...n}},tf=(e,t)=>{let r=td(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tp=(e,t,r)=>i({url:"/cr/report/trend/expiring",method:"get",params:e,signal:r},t),th=e=>["/cr/report/trend/expiring",...e?[e]:[]],tm=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:th(e),queryFn:t=>{let{signal:r}=t;return tp(e,o,r)},...n}},tv=(e,t)=>{let r=tm(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tg=(e,t,r)=>i({url:"/cr/report/strayedTrend",method:"get",params:e,signal:r},t),ty=e=>["/cr/report/strayedTrend",...e?[e]:[]],tb=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ty(e),queryFn:t=>{let{signal:r}=t;return tg(e,o,r)},...n}},tw=(e,t)=>{let r=tb(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tx=(e,t,r)=>i({url:"/cr/report/strayedDetail",method:"get",params:e,signal:r},t),t_=e=>["/cr/report/strayedDetail",...e?[e]:[]],tE=(e,t,r)=>i({url:"/cr/report/signatureTrend",method:"get",params:e,signal:r},t),tk=e=>["/cr/report/signatureTrend",...e?[e]:[]],tS=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tk(e),queryFn:t=>{let{signal:r}=t;return tE(e,o,r)},...n}},tO=(e,t)=>{let r=tS(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tT=(e,t,r)=>i({url:"/cr/report/riskDetail",method:"get",params:e,signal:r},t),tC=e=>["/cr/report/riskDetail",...e?[e]:[]],tN=(e,t,r)=>i({url:"/cr/report/risk-types/percentages",method:"get",params:e,signal:r},t),tD=e=>["/cr/report/risk-types/percentages",...e?[e]:[]],tP=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tD(e),queryFn:t=>{let{signal:r}=t;return tN(e,o,r)},...n}},tR=(e,t)=>{let r=tP(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tj=(e,t,r)=>i({url:"/cr/report/risk-types/detail",method:"get",params:e,signal:r},t),tA=(e,t,r)=>i({url:"/cr/report/reportingInstitutions",method:"get",params:e,signal:r},t),tF=e=>["/cr/report/reportingInstitutions",...e?[e]:[]],tL=(e,t,r)=>i({url:"/cr/report/reportingInstititutionsAmount",method:"get",params:e,signal:r},t),tI=e=>["/cr/report/reportingInstititutionsAmount",...e?[e]:[]],tM=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tI(e),queryFn:t=>{let{signal:r}=t;return tL(e,o,r)},...n}},tq=(e,t)=>{let r=tM(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tz=(e,t,r)=>i({url:"/cr/report/releasedGuaranteesDetail",method:"get",params:e,signal:r},t),tV=e=>["/cr/report/releasedGuaranteesDetail",...e?[e]:[]],tU=(e,t,r)=>i({url:"/cr/report/releasedGuaranteedAmountTrend",method:"get",params:e,signal:r},t),t$=e=>["/cr/report/releasedGuaranteedAmountTrend",...e?[e]:[]],tH=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:t$(e),queryFn:t=>{let{signal:r}=t;return tU(e,o,r)},...n}},tK=(e,t)=>{let r=tH(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tB=(e,t,r)=>i({url:"/cr/report/receivedGuaranteesDetail",method:"get",params:e,signal:r},t),tW=e=>["/cr/report/receivedGuaranteesDetail",...e?[e]:[]],tZ=(e,t,r)=>i({url:"/cr/report/receivedGuarantees",method:"get",params:e,signal:r},t),tG=e=>["/cr/report/receivedGuarantees",...e?[e]:[]],tY=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tG(e),queryFn:t=>{let{signal:r}=t;return tZ(e,o,r)},...n}},tQ=(e,t)=>{let r=tY(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},tJ=(e,t,r)=>i({url:"/cr/report/receivedGuaranteedTrend",method:"get",params:e,signal:r},t),tX=e=>["/cr/report/receivedGuaranteedTrend",...e?[e]:[]],t0=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:tX(e),queryFn:t=>{let{signal:r}=t;return tJ(e,o,r)},...n}},t1=(e,t)=>{let r=t0(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},t2=(e,t,r)=>i({url:"/cr/report/passiveFactoring",method:"get",params:e,signal:r},t),t4=e=>["/cr/report/passiveFactoring",...e?[e]:[]],t5=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:t4(e),queryFn:t=>{let{signal:r}=t;return t2(e,o,r)},...n}},t3=(e,t)=>{let r=t5(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},t8=(e,t,r)=>i({url:"/cr/report/paidUnpaidTrend",method:"get",params:e,signal:r},t),t6=e=>["/cr/report/paidUnpaidTrend",...e?[e]:[]],t9=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:t6(e),queryFn:t=>{let{signal:r}=t;return t8(e,o,r)},...n}},t7=(e,t)=>{let r=t9(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},re=(e,t,r)=>i({url:"/cr/report/overall",method:"get",params:e,signal:r},t),rt=e=>["/cr/report/overall",...e?[e]:[]],rr=(e,t,r)=>i({url:"/cr/report/guaranteeTypes",method:"get",params:e,signal:r},t),rn=e=>["/cr/report/guaranteeTypes",...e?[e]:[]],ro=(e,t,r)=>i({url:"/cr/report/fundingTrend",method:"get",params:e,signal:r},t),ri=e=>["/cr/report/fundingTrend",...e?[e]:[]],ra=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ri(e),queryFn:t=>{let{signal:r}=t;return ro(e,o,r)},...n}},rs=(e,t)=>{let r=ra(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},rl=(e,t,r)=>i({url:"/cr/report/alert",method:"get",params:e,signal:r},t),ru=e=>["/cr/report/alert",...e?[e]:[]],rc=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:ru(e),queryFn:t=>{let{signal:r}=t;return rl(e,o,r)},...n}},rd=(e,t)=>{let r=rc(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},rf=(e,t,r)=>i({url:"/cr/rating/",method:"get",params:e,signal:r},t),rp=e=>["/cr/rating/",...e?[e]:[]],rh=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:rp(e),queryFn:t=>{let{signal:r}=t;return rf(e,o,r)},...n}},rm=(e,t)=>{let r=rh(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},rv=(e,t,r)=>i({url:"/cr/last",method:"get",params:e,signal:r},t),rg=e=>["/cr/last",...e?[e]:[]],ry=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:rg(e),queryFn:t=>{let{signal:r}=t;return rv(e,o,r)},...n}},rb=(e,t)=>{let r=ry(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},rw=(e,t,r)=>i({url:"/cr/first",method:"get",params:e,signal:r},t),rx=e=>["/cr/first",...e?[e]:[]],r_=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:rx(e),queryFn:t=>{let{signal:r}=t;return rw(e,o,r)},...n}},rE=(e,t)=>{let r=r_(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n},rk=(e,t,r)=>i({url:"/cr/bank/",method:"get",params:e,signal:r},t),rS=e=>["/cr/bank/",...e?[e]:[]],rO=(e,t)=>{var r;let{query:n,request:o}=null!=t?t:{};return{queryKey:null!==(r=null==n?void 0:n.queryKey)&&void 0!==r?r:rS(e),queryFn:t=>{let{signal:r}=t;return rk(e,o,r)},...n}},rT=(e,t)=>{let r=rO(e,t),n=(0,d.a)(r);return n.queryKey=r.queryKey,n}},88897:function(e,t,r){"use strict";r.d(t,{Z:function(){return nO}});var n,o,i,a,s,l,u,c,d,f,p,h,m,v,g,y,b=r(31549),w=r(95870),x=r(44194);r(62118);var _="undefined"!=typeof window&&window.document&&window.document.createElement?x.useLayoutEffect:x.useEffect;"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var E=r(56321),k=function(e){var t,r=e.children,n=e.type,o=void 0===n?"reach-portal":n,i=(0,x.useRef)(null),a=(0,x.useRef)(null),s=(t=(0,x.useState)(Object.create(null))[1],(0,x.useCallback)(function(){t(Object.create(null))},[]));return _(function(){if(i.current){var e=i.current.ownerDocument;return a.current=null==e?void 0:e.createElement(o),e.body.appendChild(a.current),s(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}},[o,s]),a.current?(0,E.createPortal)(r,a.current):(0,x.createElement)("span",{ref:i})},S=function(){return(S=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function O(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function T(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function N(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var D={},P="xstate.guard";(n=f||(f={})).Start="xstate.start",n.Stop="xstate.stop",n.Raise="xstate.raise",n.Send="xstate.send",n.Cancel="xstate.cancel",n.NullEvent="",n.Assign="xstate.assign",n.After="xstate.after",n.DoneState="done.state",n.DoneInvoke="done.invoke",n.Log="xstate.log",n.Init="xstate.init",n.Invoke="xstate.invoke",n.ErrorExecution="error.execution",n.ErrorCommunication="error.communication",n.ErrorPlatform="error.platform",n.ErrorCustom="xstate.error",n.Update="xstate.update",n.Pure="xstate.pure",n.Choose="xstate.choose",(o=p||(p={})).Parent="#_parent",o.Internal="#_internal";var R=f.Start,j=f.Stop,A=f.Raise,F=f.Send,L=f.Cancel,I=f.NullEvent,M=f.Assign;f.After,f.DoneState;var q=f.Log,z=f.Init,V=f.Invoke;f.ErrorExecution;var U=f.ErrorPlatform,$=f.ErrorCustom,H=f.Update,K=f.Choose,B=f.Pure;function W(e,t,r){void 0===r&&(r=".");var n=Y(e,r),o=Y(t,r);return ec(o)?!!ec(n)&&o===n:ec(n)?n in o:Object.keys(n).every(function(e){return e in o&&W(n[e],o[e])})}function Z(e){try{return ec(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw Error("Events must be strings or objects with a string event.type property.")}}function G(e,t){try{if(el(e))return e;return e.toString().split(t)}catch(t){throw Error("'".concat(e,"' is not a valid state path."))}}function Y(e,t){return"object"==typeof e&&"value"in e&&"context"in e&&"event"in e&&"_event"in e?e.value:el(e)?Q(e):"string"!=typeof e?e:Q(G(e,t))}function Q(e){if(1===e.length)return e[0];for(var t={},r=t,n=0;n<e.length-1;n++)n===e.length-2?r[e[n]]=e[n+1]:(r[e[n]]={},r=r[e[n]]);return t}function J(e,t){for(var r={},n=Object.keys(e),o=0;o<n.length;o++){var i=n[o];r[i]=t(e[i],i,e,o)}return r}function X(e,t,r){var n,o,i={};try{for(var a=T(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,u=e[l];r(u)&&(i[l]=t(u,l,e))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}var ee=function(e){return function(t){var r,n,o=t;try{for(var i=T(e),a=i.next();!a.done;a=i.next())o=o[a.value]}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}};function et(e){return e?ec(e)?[[e]]:er(Object.keys(e).map(function(t){var r=e[t];return"string"==typeof r||r&&Object.keys(r).length?et(e[t]).map(function(e){return[t].concat(e)}):[[t]]})):[[]]}function er(e){var t;return(t=[]).concat.apply(t,N([],C(e),!1))}function en(e){return void 0===e?[]:el(e)?e:[e]}function eo(e,t,r){if(eu(e))return e(t,r.data);var n,o,i={};try{for(var a=T(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,u=e[l];eu(u)?i[l]=u(t,r.data):i[l]=u}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}function ei(e){return!!(e instanceof Promise||null!==e&&(eu(e)||"object"==typeof e)&&eu(e.then))}function ea(e,t,r,n){return e?r.reduce(function(e,r){var o,i,a=r.assignment,s={state:n,action:r,_event:t},l={};if(eu(a))l=a(e,t.data,s);else try{for(var u=T(Object.keys(a)),c=u.next();!c.done;c=u.next()){var d=c.value,f=a[d];l[d]=eu(f)?f(e,t.data,s):f}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return Object.assign({},e,l)},e):e}var es=function(){};function el(e){return Array.isArray(e)}function eu(e){return"function"==typeof e}function ec(e){return"string"==typeof e}function ed(e,t){return e?ec(e)?{type:P,name:e,predicate:t?t[e]:void 0}:eu(e)?{type:P,name:e.name,predicate:e}:e:void 0}var ef="function"==typeof Symbol&&Symbol.observable||"@@observable";function ep(e){return!!e&&"__xstatenode"in e}function eh(e,t){return ec(e)||"number"==typeof e?S({type:e},t):e}function em(e,t){if(!ec(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var r=eh(e);return S({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function ev(e,t){return(el(t)?t:[t]).map(function(t){return void 0===t||"string"==typeof t||ep(t)?{target:t,event:e}:S(S({},t),{event:e})})}function eg(e,t,r,n,o){var i=e.options.guards,a={state:o,cond:t,_event:n};if(t.type===P)return((null==i?void 0:i[t.name])||t.predicate)(r,n.data,a);var s=null==i?void 0:i[t.type];if(!s)throw Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(r,n.data,a)}function ey(e){return"string"==typeof e?{type:e}:e}function eb(e,t,r){var n=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||n).bind(i),error:((o?e.error:t)||n).bind(i),complete:((o?e.complete:r)||n).bind(i)}}function ew(e,t){return"".concat(e,":invocation[").concat(t,"]")}function ex(e){return(e.type===A||e.type===F&&e.to===p.Internal)&&"number"!=typeof e.delay}(h={})[ef]=function(){return this},h[Symbol.observable]=function(){return this};var e_=function(e){return"atomic"===e.type||"final"===e.type};function eE(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function ek(e){return eE(e).filter(function(e){return"history"!==e.type})}function eS(e,t){var r,n,o,i,a,s,l,u,c=eO(new Set(e)),d=new Set(t);try{for(var f=T(d),p=f.next();!p.done;p=f.next())for(var h=p.value,m=h.parent;m&&!d.has(m);)d.add(m),m=m.parent}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var v=eO(d);try{for(var g=T(d),y=g.next();!y.done;y=g.next()){var h=y.value;if("compound"!==h.type||v.get(h)&&v.get(h).length){if("parallel"===h.type)try{for(var b=(a=void 0,T(ek(h))),w=b.next();!w.done;w=b.next()){var x=w.value;d.has(x)||(d.add(x),c.get(x)?c.get(x).forEach(function(e){return d.add(e)}):x.initialStateNodes.forEach(function(e){return d.add(e)}))}}catch(e){a={error:e}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else c.get(h)?c.get(h).forEach(function(e){return d.add(e)}):h.initialStateNodes.forEach(function(e){return d.add(e)})}}catch(e){o={error:e}}finally{try{y&&!y.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var _=T(d),E=_.next();!E.done;E=_.next())for(var h=E.value,m=h.parent;m&&!d.has(m);)d.add(m),m=m.parent}catch(e){l={error:e}}finally{try{E&&!E.done&&(u=_.return)&&u.call(_)}finally{if(l)throw l.error}}return d}function eO(e){var t,r,n=new Map;try{for(var o=T(e),i=o.next();!i.done;i=o.next()){var a=i.value;n.has(a)||n.set(a,[]),a.parent&&(n.has(a.parent)||n.set(a.parent,[]),n.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n}function eT(e,t){return Array.isArray(e)?e.some(function(e){return e===t}):e instanceof Set&&e.has(t)}function eC(e,t){return"compound"===t.type?ek(t).some(function(t){return"final"===t.type&&eT(e,t)}):"parallel"===t.type&&ek(t).every(function(t){return eC(e,t)})}function eN(e){return new Set(er(e.map(function(e){return e.tags})))}var eD=em({type:z});function eP(e,t){return t&&t[e]||void 0}function eR(e,t){var r;if(ec(e)||"number"==typeof e){var n=eP(e,t);r=eu(n)?{type:e,exec:n}:n||{type:e,exec:void 0}}else if(eu(e))r={type:e.name||e.toString(),exec:e};else{var n=eP(e.type,t);if(eu(n))r=S(S({},e),{exec:n});else if(n){var o=n.type||e.type;r=S(S(S({},n),e),{type:o})}else r=e}return r}var ej=function(e,t){return e?(el(e)?e:[e]).map(function(e){return eR(e,t)}):[]};function eA(e){var t=eR(e);return S(S({id:ec(e)?e:t.id},t),{type:t.type})}function eF(e,t){var r="".concat(f.DoneState,".").concat(e),n={type:r,data:t};return n.toString=function(){return r},n}function eL(e,t){var r="".concat(f.DoneInvoke,".").concat(e),n={type:r,data:t};return n.toString=function(){return r},n}function eI(e,t){var r="".concat(f.ErrorPlatform,".").concat(e),n={type:r,data:t};return n.toString=function(){return r},n}var eM=function(e){var t,r,n=[];try{for(var o=T(e),i=o.next();!i.done;i=o.next())for(var a=i.value,s=0;s<a.actions.length;){if(a.actions[s].type===M){n.push(a.actions[s]),a.actions.splice(s,1);continue}s++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n};function eq(e,t,r,n,o,i,a){void 0===a&&(a=!1);var s=a?[]:eM(o),l=s.length?ea(r,n,s,t):r,u=a?[r]:void 0,c=[];return[er(o.map(function(o){var s,d,h=[];try{for(var m=T(o.actions),v=m.next();!v.done;v=m.next()){var g=v.value,y=function(o,s){var d;switch(s.type){case A:var h=function(e,t,r,n){var o,i={_event:r},a=em(eu(e.event)?e.event(t,r.data,i):e.event);if(ec(e.delay)){var s=n&&n[e.delay];o=eu(s)?s(t,r.data,i):s}else o=eu(e.delay)?e.delay(t,r.data,i):e.delay;return S(S({},e),{type:A,_event:a,delay:o})}(s,l,n,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,n),h;case F:var m=function(e,t,r,n){var o,i={_event:r},a=em(eu(e.event)?e.event(t,r.data,i):e.event);if(ec(e.delay)){var s=n&&n[e.delay];o=eu(s)?s(t,r.data,i):s}else o=eu(e.delay)?e.delay(t,r.data,i):e.delay;var l=eu(e.to)?e.to(t,r.data,i):e.to;return S(S({},e),{to:l,_event:a,event:a.data,delay:o})}(s,l,n,e.options.delays);return i&&m.to!==p.Internal&&("entry"===o?c.push(m):i(m,l,n)),m;case q:var v,g=(v=l,S(S({},s),{value:ec(s.expr)?s.expr:s.expr(v,n.data,{_event:n})}));return null==i||i(g,l,n),g;case K:var y=null===(d=s.conds.find(function(r){var o=ed(r.cond,e.options.guards);return!o||eg(e,o,l,n,i?void 0:t)}))||void 0===d?void 0:d.actions;if(!y)return[];var b=C(eq(e,t,l,n,[{type:o,actions:ej(en(y),e.options.actions)}],i,a),2),w=b[0];return l=b[1],null==u||u.push(l),w;case B:var y=s.get(l,n.data);if(!y)return[];var x=C(eq(e,t,l,n,[{type:o,actions:ej(en(y),e.options.actions)}],i,a),2),_=x[0];return l=x[1],null==u||u.push(l),_;case j:var E,k,g=(E=l,k=eu(s.activity)?s.activity(E,n.data):s.activity,{type:f.Stop,activity:"string"==typeof k?{id:k}:k});return null==i||i(g,r,n),g;case M:l=ea(l,n,[s],i?void 0:t),null==u||u.push(l);break;default:var O=eR(s,e.options.actions),T=O.exec;if(i)i(O,l,n);else if(T&&u){var D=u.length-1;O=S(S({},O),{exec:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];T.apply(void 0,N([u[D]],C(t),!1))}})}return O}}(o.type,g);y&&(h=h.concat(y))}}catch(e){s={error:e}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(s)throw s.error}}return c.forEach(function(e){i(e,l,n)}),c.length=0,h})),l]}var ez=function(){function e(e){var t,r,n=this;this.actions=[],this.activities=D,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||D,this.meta=(void 0===(t=e.configuration)&&(t=[]),t.reduce(function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e},{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(r=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==r?r:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return N([],C(new Set(er(N([],C(n.configuration.map(function(e){return e.ownEvents})),!1)))),!1)}})}return e.from=function(t,r){return t instanceof e?t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:r,_event:eD,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,r){return t instanceof e?t.actions.length?new e({value:t.value,context:r,_event:eD,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}}):t:e.from(t,r)},e.prototype.toStrings=function(e,t){var r=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),ec(e))return[e];var n=Object.keys(e);return n.concat.apply(n,N([],C(n.map(function(n){return r.toStrings(e[n],t).map(function(e){return n+t+e})})),!1))},e.prototype.toJSON=function(){this.configuration,this.transitions;var e=this.tags;this.machine;var t=O(this,["configuration","transitions","tags","machine"]);return S(S({},t),{tags:Array.from(e)})},e.prototype.matches=function(e){return W(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){es(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var t,r=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==r?void 0:r.transitions.length)&&r.transitions.some(function(e){return void 0!==e.target||e.actions.length})},e}(),eV=r(60199),eU={deferEvents:!1},e$=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=S(S({},eU),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),eH=[],eK=function(e,t){eH.push(e);var r=t(e);return eH.pop(),r};function eB(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[ef]=function(){return this},t}function eW(e,t,r){var n=eB(t);if(n.deferred=!0,ep(e)){var o=n.state=eK(void 0,function(){return(r?e.withContext(r):e).initialState});n.getSnapshot=function(){return o}}return n}var eZ=new Map,eG=0,eY={bookId:function(){return"x:".concat(eG++)},register:function(e,t){return eZ.set(e,t),e},get:function(e){return eZ.get(e)},free:function(e){eZ.delete(e)}};function eQ(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0}var eJ={sync:!1,autoForward:!1};(i=m||(m={}))[i.NotStarted=0]="NotStarted",i[i.Running=1]="Running",i[i.Stopped=2]="Stopped";var eX=function(){function e(t,r){void 0===r&&(r=e.defaultOptions);var n=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=m.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(el(e))return n.batch(e),n.state;var r=em(eh(e,t));if(n.status===m.Stopped)return n.state;if(n.status!==m.Running&&!n.options.deferEvents)throw Error('Event "'.concat(r.name,'" was sent to uninitialized service "').concat(n.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(r.data)));return n.scheduler.schedule(function(){n.forward(r);var e=n._nextState(r);n.update(e,r)}),n._state},this.sendTo=function(e,t,r){var o=n.parent&&(t===p.Parent||n.parent.id===t),i=o?n.parent:ec(t)?t===p.Internal?n:n.children.get(t)||eY.get(t):t&&"function"==typeof t.send?t:void 0;if(!i){if(!o)throw Error("Unable to send event to child '".concat(t,"' from service '").concat(n.id,"'."));return}if("machine"in i){if(n.status!==m.Stopped||n.parent!==i||n.state.done){var a=S(S({},e),{name:e.name===$?"".concat(eI(n.id)):e.name,origin:n.sessionId});!r&&n.machine.config.predictableActionArguments?n._outgoingQueue.push([i,a]):i.send(a)}}else!r&&n.machine.config.predictableActionArguments?n._outgoingQueue.push([i,e.data]):i.send(e.data)},this._exec=function(e,t,r,o){void 0===o&&(o=n.machine.options.actions);var i=e.exec||eP(e.type,o),a=eu(i)?i:i?i.exec:e.exec;if(a)try{return a(t,r.data,n.machine.config.predictableActionArguments?{action:e,_event:r}:{action:e,state:n.state,_event:r})}catch(e){throw n.parent&&n.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case A:n.defer(e);break;case F:if("number"==typeof e.delay){n.defer(e);return}e.to?n.sendTo(e._event,e.to,r===eD):n.send(e._event);break;case L:n.cancel(e.sendId);break;case R:if(n.status!==m.Running)return;var s=e.activity;if(!n.machine.config.predictableActionArguments&&!n.state.activities[s.id||s.type])break;if(s.type===f.Invoke){var l=ey(s.src),u=n.machine.options.services?n.machine.options.services[l.type]:void 0,c=s.id,d=s.data,p="autoForward"in s?s.autoForward:!!s.forward;if(!u)return;var h=d?eo(d,t,r):void 0;if("string"==typeof u)return;var v=eu(u)?u(t,r.data,{data:h,src:l,meta:s.meta}):u;if(!v)return;var g=void 0;ep(v)&&(v=h?v.withContext(h):v,g={autoForward:p}),n.spawn(v,c,g)}else n.spawnActivity(s);break;case j:n.stopChild(e.activity.id);break;case q:var y=e.label,b=e.value;y?n.logger(y,b):n.logger(b)}};var o=S(S({},e.defaultOptions),r),i=o.clock,a=o.logger,s=o.parent,l=o.id,u=void 0!==l?l:t.id;this.id=u,this.logger=a,this.clock=i,this.parent=s,this.options=o,this.scheduler=new e$({deferEvents:this.options.deferEvents}),this.sessionId=eY.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:eK(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var r,n;try{for(var o=T(e.actions),i=o.next();!i.done;i=o.next()){var a=i.value;this.exec(a,e,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.update=function(e,t){var r,n,o,i,a,s,l,u,c=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||t===eD)&&this.options.execute)this.execute(this.state);else for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);if(this.children.forEach(function(e){c.state.children[e.id]=e}),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var f=T(this.eventListeners),p=f.next();!p.done;p=f.next()){var h=p.value;h(e.event)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var m=T(this.listeners),v=m.next();!v.done;v=m.next()){var h=v.value;h(e,e.event)}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var g=T(this.contextListeners),y=g.next();!y.done;y=g.next())(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(this.state.done){var b=e.configuration.find(function(e){return"final"===e.type&&e.parent===c.machine}),w=b&&b.doneData?eo(b.doneData,e.context,t):void 0;this._doneEvent=eL(this.id,w);try{for(var x=T(this.doneListeners),_=x.next();!_.done;_=x.next()){var h=_.value;h(this._doneEvent)}}catch(e){l={error:e}}finally{try{_&&!_.done&&(u=x.return)&&u.call(x)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),eY.free(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===m.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,r){var n=this,o=eb(e,t,r);this.listeners.add(o.next),this.status!==m.NotStarted&&o.next(this.state);var i=function(){n.doneListeners.delete(i),n.stopListeners.delete(i),o.complete()};return this.status===m.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){n.listeners.delete(o.next),n.doneListeners.delete(i),n.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===m.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===m.Running)return this;this.machine._init(),eY.register(this.sessionId,this),this.initialized=!0,this.status=m.Running;var r=void 0===e?this.initialState:eK(this,function(){return"object"==typeof e&&null!==e&&"value"in e&&"_event"in e?t.machine.resolveState(e):t.machine.resolveState(ez.from(e,t.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){t.update(r,eD)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(e){eu(e.stop)&&e.stop()}),this.children.clear()},e.prototype._stop=function(){var e,t,r,n,o,i,a,s,l,u;try{for(var c=T(this.listeners),d=c.next();!d.done;d=c.next()){var f=d.value;this.listeners.delete(f)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var p=T(this.stopListeners),h=p.next();!h.done;h=p.next()){var f=h.value;f(),this.stopListeners.delete(f)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}try{for(var v=T(this.contextListeners),g=v.next();!g.done;g=v.next()){var f=g.value;this.contextListeners.delete(f)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(o)throw o.error}}try{for(var y=T(this.doneListeners),b=y.next();!b.done;b=y.next()){var f=b.value;this.doneListeners.delete(f)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=m.Stopped,this._initialState=void 0;try{for(var w=T(Object.keys(this.delayedEventsMap)),x=w.next();!x.done;x=w.next()){var _=x.value;this.clock.clearTimeout(this.delayedEventsMap[_])}}catch(e){l={error:e}}finally{try{x&&!x.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new e$({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule(function(){var t=em({type:"xstate.stop"}),r=eK(e,function(){var r=er(N([],C(e.state.configuration),!1).sort(function(e,t){return t.order-e.order}).map(function(t){return ej(t.onExit,e.machine.options.actions)})),n=C(eq(e.machine,e.state,e.state.context,t,[{type:"exit",actions:r}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=n[0],i=n[1],a=new ez({value:e.state.value,context:i,_event:t,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter(function(e){return!ex(e)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a});e.update(r,t),e._stopChildren(),eY.free(e.sessionId)}),this},e.prototype.batch=function(e){var t=this;if(this.status===m.NotStarted&&this.options.deferEvents);else if(this.status!==m.Running)throw Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var n,o,i=t.state,a=!1,s=[];try{for(var l=T(e),u=l.next();!u.done;u=l.next()){var c=u.value;!function(e){var n=em(e);t.forward(n),i=eK(t,function(){return t.machine.transition(i,n,void 0,r||void 0)}),s.push.apply(s,N([],C(t.machine.config.predictableActionArguments?i.actions:i.actions.map(function(e){var t,r;return t=i,r=e.exec,S(S({},e),{exec:void 0!==r?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})})),!1)),a=a||!!i.changed}(c)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}i.changed=a,i.actions=s,t.update(i,em(e[e.length-1]))})}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var r=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var n=em(e);if(0===n.name.indexOf(U)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(U)}))throw n.data.data;return eK(this,function(){return r.machine.transition(r.state,n,void 0,t||void 0)})},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,r;try{for(var n=T(this.forwardTo),o=n.next();!o.done;o=n.next()){var i=o.value,a=this.children.get(i);if(!a)throw Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,r=this.clock.setTimeout(function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=r)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,r){void 0===r&&(r=this.machine.options.actions),this._exec(e,t.context,t._event,r)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),eu(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,r){if(this.status!==m.Running)return eW(e,t);if(ei(e))return this.spawnPromise(Promise.resolve(e),t);if(eu(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(e)&&"id"in e)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&eu(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(ep(e))return this.spawnMachine(e,S(S({},r),{id:t}));if(null!==e&&"object"==typeof e&&"transition"in e&&"function"==typeof e.transition)return this.spawnBehavior(e,t);throw Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'))},e.prototype.spawnMachine=function(t,r){var n=this;void 0===r&&(r={});var o=new e(t,S(S({},this.options),{parent:this,id:r.id||t.id})),i=S(S({},eJ),r);return i.sync&&o.onTransition(function(e){n.send(H,{state:e,id:o.id})}),this.children.set(o.id,o),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(e){n.removeChild(o.id),n.send(em(e,{origin:o.id}))}).start(),o},e.prototype.spawnBehavior=function(e,t){var r,n,o,i,a,s,l,u,c,d,f=(r={id:t,parent:this},n=e.initialState,o=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,d),o.forEach(function(e){return e.next(n)})}a=!1}},l={id:r.id,send:function(e){i.push(e),s()},getSnapshot:function(){return n},subscribe:function(e,t,r){var i=eb(e,t,r);return o.add(i),i.next(n),{unsubscribe:function(){o.delete(i)}}}},c=S(((u={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[ef]=function(){return this},u),l),d={parent:r.parent,self:c,id:r.id||"anonymous",observers:o},n=e.start?e.start(d):n,c);return this.children.set(t,f),f},e.prototype.spawnPromise=function(e,t){var r,n,o=this,i=!1;e.then(function(e){i||(n=e,o.removeChild(t),o.send(em(eL(t,e),{origin:t})))},function(e){if(!i){o.removeChild(t);var r=eI(t,e);try{o.send(em(r,{origin:t}))}catch(e){o.devTools&&o.devTools.send(r,o.state),o.machine.strict&&o.stop()}}});var a=((r={id:t,send:function(){},subscribe:function(t,r,n){var o=eb(t,r,n),i=!1;return e.then(function(e){!i&&(o.next(e),i||o.complete())},function(e){i||o.error(e)}),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return n}})[ef]=function(){return this},r);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var r,n,o,i=this,a=!1,s=new Set,l=new Set;try{o=e(function(e){n=e,l.forEach(function(t){return t(e)}),a||i.send(em(e,{origin:t}))},function(e){s.add(e)})}catch(e){this.send(eI(t,e))}if(ei(o))return this.spawnPromise(o,t);var u=((r={id:t,send:function(e){return s.forEach(function(t){return t(e)})},subscribe:function(e){var t=eb(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,eu(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return n}})[ef]=function(){return this},r);return this.children.set(t,u),u},e.prototype.spawnObservable=function(e,t){var r,n,o=this,i=e.subscribe(function(e){n=e,o.send(em(e,{origin:t}))},function(e){o.removeChild(t),o.send(em(eI(t,e),{origin:t}))},function(){o.removeChild(t),o.send(em(eL(t),{origin:t}))}),a=((r={id:t,send:function(){},subscribe:function(t,r,n){return e.subscribe(t,r,n)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return n},toJSON:function(){return{id:t}}})[ef]=function(){return this},r);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var r=t(this.state.context,e);this.spawnEffect(e.id,r)}},e.prototype.spawnEffect=function(e,t){var r;this.children.set(e,((r={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[ef]=function(){return this},r))},e.prototype.attachDev=function(){var e=eQ();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(S(S({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:S({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(e){if(eQ()){var t=function(){var e=eQ();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[ef]=function(){return this},e.prototype.getSnapshot=function(){return this.status===m.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=e0,e}();function e0(e,t){return new eX(e,t)}function e1(e){var t=x.useRef();return t.current||(t.current={v:e()}),t.current.v}(a=v||(v={}))[a.Effect=1]="Effect",a[a.LayoutEffect=2]="LayoutEffect";var e2=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},e4=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},e5=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},e3=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function e8(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}var e6=function(){return(e6=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},e9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},e7=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},te=r(16051);function tt(e,t){return e.map(function(e,r){return e+t[r]})}function tr(e,t){return e.map(function(e,r){return e-t[r]})}function tn(e){return Math.hypot.apply(Math,e)}function to(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function ti(e,t,r){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*r):e*t*r/(t+r*e)}function ta(e,t,r,n){return(void 0===n&&(n=.15),0===n)?Math.max(t,Math.min(e,r)):e<t?-ti(t-e,r-t,n)+t:e>r?+ti(e-r,r-t,n)+r:e}function ts(){return(ts=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function tl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function tu(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function td(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tc(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tc(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function tf(){}function tp(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?tf:1===t.length?t[0]:function(){for(var e,r,n=td(t);!(r=n()).done;)e=r.value.apply(this,arguments)||e;return e}}function th(e,t){if(void 0===e){if(void 0===t)throw Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function tm(e){if("function"!=typeof e)return e;for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}function tv(e,t){void 0===e&&(e={});for(var r={},n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],a=i[0],s=i[1];switch(typeof s){case"function":r[a]=s.call(r,e[a],a,e);break;case"object":r[a]=tv(e[a],s);break;case"boolean":s&&(r[a]=e[a])}}return r}var tg=ts({},{threshold:function(e){return void 0===e&&(e=0),th(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return th(.15);case!1:return th(0);default:return th(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return(void 0===e&&(e=0),"function"==typeof e)?e:th(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return tg.bounds(e(t))};var t=e,r=t.left,n=t.right,o=t.top,i=t.bottom;return[[void 0===r?-1/0:r,void 0===n?1/0:n],[void 0===o?-1/0:o,void 0===i?1/0:i]]}}),ty="undefined"!=typeof window&&window.document&&window.document.createElement,tb={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return void 0===e&&(e=ty?window:void 0),e}),eventOptions:function(e){var t=void 0===e?{}:e,r=t.passive,n=t.capture;return{passive:void 0===r||r,capture:void 0!==n&&n}}},tw=ts({},tg,{threshold:function(e,t,r){var n=r.filterTaps,o=void 0!==n&&n,i=r.lockDirection,a=r.axis,s=th(e,o?3:void 0!==i&&i?1:(void 0===a?void 0:a)?1:0);return this.filterTaps=o||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),th(e)},swipeDistance:function(e){return void 0===e&&(e=60),th(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function tx(e){var t,r=e.domTarget,n=e.eventOptions,o=e.window,i=e.enabled,a=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(e,["domTarget","eventOptions","window","enabled"]),s=tv({domTarget:r,eventOptions:n,window:o,enabled:i},tb);return s.drag=(void 0===(t=a)&&(t={}),tv(t,tw)),s}function t_(e){return ts({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:tf,canceled:!1,memo:void 0,args:void 0},e)}function tE(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:t_({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:t_({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:t_({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:t_({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:t_({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var tk=new Map,tS=function(){function e(e,t){var r=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var n;void 0===t&&(t=140),clearTimeout(r.controller.timeouts[r.stateKey]);for(var o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];r.controller.timeouts[r.stateKey]=(n=window).setTimeout.apply(n,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(r.controller.timeouts[r.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),r.state._blocked)return r.debounced||(r.state._active=!1,r.clean()),null;if(!e&&!r.state.intentional&&!r.config.triggerAllEvents)return null;if(r.state.intentional){var t=r.state.active,n=r.state._active;r.state.active=n,r.state.first=n&&!t,r.state.last=t&&!n,r.controller.state.shared[r.ingKey]=n}var o=ts({},r.controller.state.shared,r.state,r.mapStateValues(r.state)),i=r.handler(o);return r.state.memo=void 0!==i?i:r.state.memo,r.state._active||r.clean(),o}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t,r,n,o,i=this.config,a=i.initial,s=i.bounds,l=i.rubberband,u=i.threshold,c=this.state,d=c._bounds,f=c._initial,p=c._active,h=c._intentional,m=c.lastOffset,v=c.movement,g=this.getInternalMovement(e,this.state),y=!1===h[0]?tO(g[0],u[0]):h[0],b=!1===h[1]?tO(g[1],u[1]):h[1],w=this.checkIntentionality([y,b],g);if(w._blocked)return ts({},w,{_movement:g,delta:[0,0]});var x=w._intentional;!1!==x[0]&&!1===h[0]&&(r=tm(a,this.state),t=tm(s,this.state),f[0]=r[0],d[0]=t[0]),!1!==x[1]&&!1===h[1]&&(r=null!=(n=r)?n:tm(a,this.state),t=null!=(o=t)?o:tm(s,this.state),f[1]=r[1],d[1]=t[1]);var _=[!1!==x[0]?g[0]-x[0]:f[0],!1!==x[1]?g[1]-x[1]:f[1]],E=tt(_,m),k=p?l:[0,0];return _=tT(d,tt(_,f),k),ts({},w,{intentional:!1!==x[0]||!1!==x[1],_initial:f,_movement:g,movement:_,values:e,offset:tT(d,E,k),delta:tr(_,v)})},t.clean=function(){this.clearTimeout()},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function tO(e,t){return Math.abs(e)>=t&&to(e)*t}function tT(e,t,r){var n=t[0],o=t[1],i=r[0],a=r[1],s=e[0],l=s[0],u=s[1],c=e[1],d=c[0],f=c[1];return[ta(n,l,u,i),ta(o,d,f,a)]}function tC(e,t,r){var n=e.state,o=e.args,i=t.timeStamp,a=t.type,s=n.values,l=r?0:i-n.startTime;return{_lastEventType:a,event:t,timeStamp:i,elapsedTime:l,args:o,previous:s}}var tN=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i,a=td(t.classes);!(i=a()).done;)new i.value(t,n).addBindings(e);for(var s=0,l=Object.entries(t.nativeRefs);s<l.length;s++){var u=l[s];tR(e,u[0],function(e,t){return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,ts({},t,{event:r})].concat(o))}}(u[1],ts({},t.state.shared,{args:n})))}return t.config.domTarget?function(e,t){var r=e.config,n=e.domListeners,o=tP(r);if(!o)throw Error("domTarget must be defined");var i=r.eventOptions;tA(o,tD(n),i);for(var a=0,s=Object.entries(t);a<s.length;a++){var l=s[a],u=l[0],c=l[1],d=u.slice(2).toLowerCase();n.push([d,tp.apply(void 0,c)])}tj(o,n,i)}(t,e):function(e,t){for(var r=e.config,n={},o=r.eventOptions.capture?"Capture":"",i=0,a=Object.entries(t);i<a.length;i++){var s=a[i],l=s[0],u=s[1],c=Array.isArray(u)?u:[u];n[l+o]=tp.apply(void 0,c)}return n}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=tP(t.config),r=t.config.eventOptions;e&&tA(e,tD(t.domListeners),r),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,r=t.window,n=t.eventOptions,o=e.windowListeners;if(r){for(var i in o)tA(r,o[i],n);e.windowListeners={}}}(t)},this.state=tE(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function tD(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function tP(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function tR(e,t,r){e[t]||(e[t]=[]),e[t].push(r)}function tj(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={});for(var n,o=td(t);!(n=o()).done;){var i=n.value,a=i[0],s=i[1];e.addEventListener(a,s,r)}}function tA(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={});for(var n,o=td(t);!(n=o()).done;){var i=n.value,a=i[0],s=i[1];e.removeEventListener(a,s,r)}}function tF(){}function tL(e){if("touches"in e){var t=e.targetTouches,r=e.changedTouches;return t.length>0?t:r}return null}function tI(e){var t="buttons"in e?e.buttons:0,r=tL(e),n=r&&r.length||0;return{touches:n,down:n>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function tM(e){var t=tL(e),r=t?t[0]:e;return[r.clientX,r.clientY]}var tq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){if(t.enabled&&!t.state._active){var r,n,o,i,a;r=t.controller,n=t.stateKey,o=[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]],i=r.config,a=r.windowListeners,void 0===o&&(o=[]),i.window&&(tA(i.window,a[n],i.eventOptions),tj(i.window,a[n]=o,i.eventOptions)),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(tu(t)),t.config.delay,e)):t.startDrag(e)}},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId){if(!t.state._active){t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e));return}var r=tI(e);if(!r.down){t.onDragEnd(e);return}t.updateSharedState(r);var n=tM(e),o=t.getKinematics(n,e),i=tC(tu(t),e),a=t.state._isTap,s=tn(o._movement);a&&s>=3&&(a=!1),t.updateGestureState(ts({},i,o,{_isTap:a})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var r=t.state._isTap,n=t.state.velocities,o=n[0],i=n[1],a=t.state.movement,s=a[0],l=a[1],u=t.state._intentional,c=u[0],d=u[1],f=t.config.swipeVelocity,p=f[0],h=f[1],m=t.config.swipeDistance,v=m[0],g=m[1],y=ts({},tC(tu(t),e),t.getMovement(t.state.values)),b=[0,0];y.elapsedTime<220&&(!1!==c&&Math.abs(o)>p&&Math.abs(s)>v&&(b[0]=to(o)),!1!==d&&Math.abs(i)>h&&Math.abs(l)>g&&(b[1]=to(i))),t.updateGestureState(ts({},y,{tap:r,swipe:b})),t.fireGestureHandler(!0===r)}},t.clean=function(){var r,n,o,i;e.prototype.clean.call(tu(t)),t.state._delayedEvent=!1,r=t.controller,n=t.stateKey,o=r.config,i=r.windowListeners,o.window&&(tA(o.window,i[n],o.eventOptions),delete i[n])},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return t.fireGestureHandler()}))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}tl(t,e);var r=t.prototype;return r.startDrag=function(e){var t,r,n=tM(e);this.updateSharedState(tI(e)),this.updateGestureState(ts({},(t=this.state.offset,r=e.timeStamp,ts({},tE()[this.stateKey],{_active:!0,values:n,initial:n,offset:t,lastOffset:t,startTime:r})),tC(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(n)),this.fireGestureHandler()},r.addBindings=function(e){tR(e,"onPointerDown",this.onDragStart),this.config.filterTaps&&tR(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}tl(t,e);var r=t.prototype;return r.getInternalMovement=function(e,t){return tr(e,t.initial)},r.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var r=t.map(Math.abs),n=r[0],o=r[1],i=this.state.axis||(n>o?"x":n<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},r.getKinematics=function(e,t){var r=this.getMovement(e);if(!r._blocked){var n,o,i,a,s,l,u,c=t.timeStamp-this.state.timeStamp;Object.assign(r,(n=r.movement,a=0===(i=tn(o=r.delta))?0:1/i,s=0===c?0:1/c,l=o.map(function(e){return s*e}),u=o.map(function(e){return a*e}),{velocities:l,velocity:s*i,distance:tn(n),direction:u}))}return r},r.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(tS)),tz=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],tV=tz.join(","),tU="undefined"==typeof Element,t$=tU?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tH=!tU&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},tK=function(e,t,r){var n=Array.prototype.slice.apply(e.querySelectorAll(tV));return t&&t$.call(e,tV)&&n.unshift(e),n=n.filter(r)},tB=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scope:a,candidates:l})}else{t$.call(a,tV)&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),c=!n.shadowRootFilter||n.shadowRootFilter(a);if(u&&c){var d=e(!0===u?a.children:u.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scope:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},tW=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},tZ=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},tG=function(e){return"INPUT"===e.tagName},tY=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},tQ=function(e){if(!e.name)return!0;var t,r=e.form||tH(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=tY(t,e.form);return!o||o===e},tJ=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},tX=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=t$.call(e,"details>summary:first-of-type")?e.parentElement:e;if(t$.call(o,"details:not([open]) *"))return!0;var i=tH(e).host,a=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(r&&"full"!==r){if("non-zero-area"===r)return tJ(e)}else{if("function"==typeof n){for(var s=e;e;){var l=e.parentElement,u=tH(e);if(l&&!l.shadowRoot&&!0===n(l))return tJ(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=s}if(a)return!e.getClientRects().length}return!1},t0=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!t$.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},t1=function(e,t){return!(t.disabled||tG(t)&&"hidden"===t.type||tX(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||t0(t))},t2=function(e,t){var r;return!(tG(r=t)&&"radio"===r.type&&!tQ(r)||0>tW(t))&&!!t1(e,t)},t4=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},t5=function e(t){var r=[],n=[];return t.forEach(function(t,o){var i=!!t.scope,a=i?t.scope:t,s=tW(a,i),l=i?e(t.candidates):a;0===s?i?r.push.apply(r,l):r.push(a):n.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})}),n.sort(tZ).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},t3=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==t$.call(e,tV)&&t2(t,e)},t8=tz.concat("iframe").join(","),t6=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==t$.call(e,t8)&&t1(t,e)};/*!
* focus-trap 6.9.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function t9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t7(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?t9(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t9(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var re=(s=[],{activateTrap:function(e){if(s.length>0){var t=s[s.length-1];t!==e&&t.pause()}var r=s.indexOf(e);-1===r||s.splice(r,1),s.push(e)},deactivateTrap:function(e){var t=s.indexOf(e);-1!==t&&s.splice(t,1),s.length>0&&s[s.length-1].unpause()}}),rt=function(e){return setTimeout(e,0)},rr=function(e,t){var r=-1;return e.every(function(e,n){return!t(e)||(r=n,!1)}),r},rn=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},ro=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},ri=function(e,t){var r,n=(null==t?void 0:t.document)||document,o=t7({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,r){return e&&void 0!==e[t]?e[t]:o[r||t]},s=function(e){return i.containerGroups.findIndex(function(t){var r=t.container,n=t.tabbableNodes;return r.contains(e)||n.find(function(t){return t===e})})},l=function(e){var t=o[e];if("function"==typeof t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=n.querySelector(t)))throw Error("`".concat(e,"` as selector refers to no known node"));return s},u=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e){if(s(n.activeElement)>=0)e=n.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}}if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},c=function(){if(i.containerGroups=i.containers.map(function(e){var t,r,n,i,a=(t=e,t5((r=(r=o.tabbableOptions)||{}).getShadowRoot?tB([t],r.includeContainer,{filter:t2.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:t4}):tK(t,r.includeContainer,t2.bind(null,r)))),s=(n=e,(i=(i=o.tabbableOptions)||{}).getShadowRoot?tB([n],i.includeContainer,{filter:t1.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):tK(n,i.includeContainer,t1.bind(null,i)));return{container:e,tabbableNodes:a,focusableNodes:s,firstTabbableNode:a.length>0?a[0]:null,lastTabbableNode:a.length>0?a[a.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=s.findIndex(function(t){return t===e});return r<0?void 0:t?s.slice(r+1).find(function(e){return t3(e,o.tabbableOptions)}):s.slice(0,r).reverse().find(function(e){return t3(e,o.tabbableOptions)})}}}),i.tabbableGroups=i.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){if(!1!==t&&t!==n.activeElement){if(!t||!t.focus){e(u());return}t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&t.select()}},f=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=ro(e);if(!(s(t)>=0)){if(rn(o.clickOutsideDeactivates,e)){r.deactivate({returnFocus:o.returnFocusOnDeactivate&&!t6(t,o.tabbableOptions)});return}rn(o.allowOutsideClick,e)||e.preventDefault()}},h=function(e){var t=ro(e),r=s(t)>=0;r||t instanceof Document?r&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(i.mostRecentlyFocusedNode||u()))},m=function(e){var t=ro(e);c();var r=null;if(i.tabbableGroups.length>0){var n=s(t),a=n>=0?i.containerGroups[n]:void 0;if(n<0)r=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var u=rr(i.tabbableGroups,function(e){return t===e.firstTabbableNode});if(u<0&&(a.container===t||t6(t,o.tabbableOptions)&&!t3(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(u=n),u>=0){var f=0===u?i.tabbableGroups.length-1:u-1;r=i.tabbableGroups[f].lastTabbableNode}}else{var p=rr(i.tabbableGroups,function(e){return t===e.lastTabbableNode});if(p<0&&(a.container===t||t6(t,o.tabbableOptions)&&!t3(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(p=n),p>=0){var h=p===i.tabbableGroups.length-1?0:p+1;r=i.tabbableGroups[h].firstTabbableNode}}}else r=l("fallbackFocus");r&&(e.preventDefault(),d(r))},v=function(e){if(("Escape"===e.key||"Esc"===e.key||27===e.keyCode)&&!1!==rn(o.escapeDeactivates,e)){e.preventDefault(),r.deactivate();return}if("Tab"===e.key||9===e.keyCode){m(e);return}},g=function(e){s(ro(e))>=0||rn(o.clickOutsideDeactivates,e)||rn(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},y=function(){if(i.active)return re.activateTrap(r),i.delayInitialFocusTimer=o.delayInitialFocus?rt(function(){d(u())}):d(u()),n.addEventListener("focusin",h,!0),n.addEventListener("mousedown",p,{capture:!0,passive:!1}),n.addEventListener("touchstart",p,{capture:!0,passive:!1}),n.addEventListener("click",g,{capture:!0,passive:!1}),n.addEventListener("keydown",v,{capture:!0,passive:!1}),r},b=function(){if(i.active)return n.removeEventListener("focusin",h,!0),n.removeEventListener("mousedown",p,!0),n.removeEventListener("touchstart",p,!0),n.removeEventListener("click",g,!0),n.removeEventListener("keydown",v,!0),r};return(r={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),r=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||c(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,t&&t();var s=function(){o&&c(),y(),r&&r()};return o?o(i.containers.concat()).then(s,s):s(),this},deactivate:function(e){if(!i.active)return this;var t=t7({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,b(),i.active=!1,i.paused=!1,re.deactivateTrap(r);var n=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),l=a(t,"checkCanReturnFocus"),u=a(t,"returnFocus","returnFocusOnDeactivate");n&&n();var c=function(){rt(function(){u&&d(f(i.nodeFocusedBeforeActivation)),s&&s()})};return u&&l?l(f(i.nodeFocusedBeforeActivation)).then(c,c):c(),this},pause:function(){return i.paused||!i.active||(i.paused=!0,b()),this},unpause:function(){return i.paused&&i.active&&(i.paused=!1,c(),y()),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map(function(e){return"string"==typeof e?n.querySelector(e):e}),i.active&&c(),this}}).updateContainerElements(e),r},ra=!1;if("undefined"!=typeof window){var rs={get passive(){ra=!0;return}};window.addEventListener("testPassive",null,rs),window.removeEventListener("testPassive",null,rs)}var rl="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ru=[],rc=!1,rd=-1,rf=void 0,rp=void 0,rh=function(e){return ru.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},rm=function(e){var t=e||window.event;return!!rh(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},rv=function(e){if(void 0===rp){var t=!!e&&!0===e.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;t&&r>0&&(rp=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}void 0===rf&&(rf=document.body.style.overflow,document.body.style.overflow="hidden")},rg=function(){void 0!==rp&&(document.body.style.paddingRight=rp,rp=void 0),void 0!==rf&&(document.body.style.overflow=rf,rf=void 0)},ry=function(e,t){var r=e.targetTouches[0].clientY-rd;return!rh(e.target)&&(t&&0===t.scrollTop&&r>0?rm(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&r<0?rm(e):(e.stopPropagation(),!0))},rb=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!ru.some(function(t){return t.targetElement===e})&&(ru=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(ru),[{targetElement:e,options:t||{}}]),rl?(e.ontouchstart=function(e){1===e.targetTouches.length&&(rd=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&ry(t,e)},rc||(document.addEventListener("touchmove",rm,ra?{passive:!1}:void 0),rc=!0)):rv(t))},rw=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}ru=ru.filter(function(t){return t.targetElement!==e}),rl?(e.ontouchstart=null,e.ontouchmove=null,rc&&0===ru.length&&(document.removeEventListener("touchmove",rm,ra?{passive:!1}:void 0),rc=!1)):ru.length||rg()},rx=[],r_="ResizeObserver loop completed with undelivered notifications.",rE=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:r_}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=r_),window.dispatchEvent(e)};(l=g||(g={})).BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var rk=function(e){return Object.freeze(e)},rS=function(e,t){this.inlineSize=e,this.blockSize=t,rk(this)},rO=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,rk(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),rT=function(e){return e instanceof SVGElement&&"getBBox"in e},rC=function(e){if(rT(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e.offsetWidth,i=e.offsetHeight;return!(o||i||e.getClientRects().length)},rN=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},rD=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},rP="undefined"!=typeof window?window:{},rR=new WeakMap,rj=/auto|scroll/,rA=/^tb|vertical/,rF=/msie|trident/i.test(rP.navigator&&rP.navigator.userAgent),rL=function(e){return parseFloat(e||"0")},rI=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new rS((r?t:e)||0,(r?e:t)||0)},rM=rk({devicePixelContentBoxSize:rI(),borderBoxSize:rI(),contentBoxSize:rI(),contentRect:new rO(0,0,0,0)}),rq=function(e,t){if(void 0===t&&(t=!1),rR.has(e)&&!t)return rR.get(e);if(rC(e))return rR.set(e,rM),rM;var r=getComputedStyle(e),n=rT(e)&&e.ownerSVGElement&&e.getBBox(),o=!rF&&"border-box"===r.boxSizing,i=rA.test(r.writingMode||""),a=!n&&rj.test(r.overflowY||""),s=!n&&rj.test(r.overflowX||""),l=n?0:rL(r.paddingTop),u=n?0:rL(r.paddingRight),c=n?0:rL(r.paddingBottom),d=n?0:rL(r.paddingLeft),f=n?0:rL(r.borderTopWidth),p=n?0:rL(r.borderRightWidth),h=n?0:rL(r.borderBottomWidth),m=n?0:rL(r.borderLeftWidth),v=d+u,g=l+c,y=m+p,b=f+h,w=s?e.offsetHeight-b-e.clientHeight:0,x=a?e.offsetWidth-y-e.clientWidth:0,_=n?n.width:rL(r.width)-(o?v+y:0)-x,E=n?n.height:rL(r.height)-(o?g+b:0)-w,k=_+v+x+y,S=E+g+w+b,O=rk({devicePixelContentBoxSize:rI(Math.round(_*devicePixelRatio),Math.round(E*devicePixelRatio),i),borderBoxSize:rI(k,S,i),contentBoxSize:rI(_,E,i),contentRect:new rO(d,l,_,E)});return rR.set(e,O),O},rz=function(e,t,r){var n=rq(e,r),o=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case g.DEVICE_PIXEL_CONTENT_BOX:return a;case g.BORDER_BOX:return o;default:return i}},rV=function(e){var t=rq(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=rk([t.borderBoxSize]),this.contentBoxSize=rk([t.contentBoxSize]),this.devicePixelContentBoxSize=rk([t.devicePixelContentBoxSize])},rU=function(e){if(rC(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},r$=function(){var e=1/0,t=[];rx.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new rV(t.target),o=rU(t.target);n.push(r),t.lastReportedSize=rz(t.target,t.observedBox),o<e&&(e=o)}),t.push(function(){r.callback.call(r.observer,n,r.observer)}),r.activeTargets.splice(0,r.activeTargets.length)}});for(var r=0;r<t.length;r++)(0,t[r])();return e},rH=function(e){rx.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(rU(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))})})},rK=function(){var e=0;for(rH(0);rx.some(function(e){return e.activeTargets.length>0});)rH(e=r$());return rx.some(function(e){return e.skippedTargets.length>0})&&rE(),e>0},rB=[],rW=function(e){if(!y){var t=0,r=document.createTextNode("");new MutationObserver(function(){return rB.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),y=function(){r.textContent="".concat(t?t--:t++)}}rB.push(e),y()},rZ=function(e){rW(function(){requestAnimationFrame(e)})},rG=0,rY={attributes:!0,characterData:!0,childList:!0,subtree:!0},rQ=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rJ=function(e){return void 0===e&&(e=0),Date.now()+e},rX=!1,r0=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!rX){rX=!0;var r=rJ(e);rZ(function(){var n=!1;try{n=rK()}finally{if(rX=!1,e=r-rJ(),!rG)return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,rY)};document.body?t():rP.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rQ.forEach(function(t){return rP.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),rQ.forEach(function(t){return rP.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),r1=function(e){!rG&&e>0&&r0.start(),(rG+=e)||r0.stop()},r2=function(){function e(e,t){this.target=e,this.observedBox=t||g.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=rz(this.target,this.observedBox,!0);return rT(e=this.target)||rD(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),r4=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},r5=new WeakMap,r3=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return -1},r8=function(){function e(){}return e.connect=function(e,t){var r=new r4(e,t);r5.set(e,r)},e.observe=function(e,t,r){var n=r5.get(e),o=0===n.observationTargets.length;0>r3(n.observationTargets,t)&&(o&&rx.push(n),n.observationTargets.push(new r2(t,r&&r.box)),r1(1),r0.schedule())},e.unobserve=function(e,t){var r=r5.get(e),n=r3(r.observationTargets,t),o=1===r.observationTargets.length;n>=0&&(o&&rx.splice(rx.indexOf(r),1),r.observationTargets.splice(n,1),r1(-1))},e.disconnect=function(e){var t=this,r=r5.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),r6=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");r8.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rN(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");r8.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rN(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");r8.unobserve(this,e)},e.prototype.disconnect=function(){r8.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function r9(e){return S(S({type:V},e),{toJSON:function(){e.onDone,e.onError;var t=O(e,["onDone","onError"]);return S(S({},t),{type:V,src:function(e){if("string"==typeof e){var t={type:e};return t.toString=function(){return e},t}return e}(e.src)})}})}var r7={},ne=function(e){return"#"===e[0]},nt=function(){function e(t,r,n,o){void 0===n&&(n="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=n,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},r),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||N([this.machine.key],C(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?J(this.config.states,function(t,r){var n,o=new e(t,{},void 0,{parent:a,key:r});return Object.assign(a.idMap,S(((n={})[o.id]=o,n),o.idMap)),o}):r7;var s=0;!function e(t){var r,n;t.order=s++;try{for(var o=T(eE(t)),i=o.next();!i.done;i=o.next()){var a=i.value;e(a)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(e){return""===e.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=en(this.config.entry||this.config.onEntry).map(function(e){return eR(e)}),this.onExit=en(this.config.exit||this.config.onExit).map(function(e){return eR(e)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=en(this.config.invoke).map(function(e,t){if(ep(e)){var r,n,o=ew(a.id,t);return a.machine.options.services=S(((r={})[o]=e,r),a.machine.options.services),r9({src:o,id:o})}if(ec(e.src)){var o=e.id||ew(a.id,t);return r9(S(S({},e),{id:o,src:e.src}))}if(ep(e.src)||eu(e.src)){var o=e.id||ew(a.id,t);return a.machine.options.services=S(((n={})[o]=e.src,n),a.machine.options.services),r9(S(S({id:o},e),{src:o}))}var i=e.src;return r9(S(S({id:ew(a.id,t)},e),{src:i}))}),this.activities=en(this.config.activities).concat(this.invoke).map(function(e){return eA(e)}),this.transition=this.transition.bind(this),this.tags=en(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||(function e(t){var r=[t];return e_(t)?r:r.concat(er(ek(t).map(e)))})(this).forEach(function(e){return e.on})},e.prototype.withConfig=function(t,r){var n=this.options,o=n.actions,i=n.activities,a=n.guards,s=n.services,l=n.delays;return new e(this.config,{actions:S(S({},o),t.actions),activities:S(S({},i),t.activities),guards:S(S({},a),t.guards),services:S(S({},s),t.services),delays:S(S({},l),t.delays)},null!=r?r:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return eu(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:J(this.states,function(e){return e.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=""===e,r=this.transitions.filter(function(r){var n=r.eventType===e;return t?n:n||"*"===r.eventType});return this.__cache.candidates[e]=r,r},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var r=function(t,r){var n,o,i,a=(n=eu(t)?"".concat(e.id,":delay[").concat(r,"]"):t,o=e.id,"".concat(f.After,"(").concat(n,")").concat(o?"#".concat(o):""));return e.onEntry.push({to:(i={delay:t}).to,type:F,event:eu(a)?a:eh(a),delay:i?i.delay:void 0,id:i&&void 0!==i.id?i.id:eu(a)?a.name:Z(a)}),e.onExit.push({type:L,sendId:a}),a};return(el(t)?t.map(function(e,t){var n=r(e.delay,t);return S(S({},e),{event:n})}):er(Object.keys(t).map(function(e,n){var o=t[e],i=ec(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=r(a,n);return en(i).map(function(e){return S(S({},e),{event:s,delay:a})})}))).map(function(t){var r=t.delay;return S(S({},e.formatTransition(t)),{delay:r})})},e.prototype.getStateNodes=function(e){var t,r=this;if(!e)return[];var n=e instanceof ez?e.value:Y(e,this.delimiter);if(ec(n)){var o=this.getStateNode(n).initial;return void 0!==o?this.getStateNodes(((t={})[n]=o,t)):[this,this.states[n]]}var i=Object.keys(n),a=[this];return a.push.apply(a,N([],C(er(i.map(function(e){return r.getStateNode(e).getStateNodes(n[e])}))),!1)),a},e.prototype.handles=function(e){var t=Z(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof ez?e:ez.create(e),r=Array.from(eS([],this.getStateNodes(t.value)));return new ez(S(S({},t),{value:this.resolve(t.value),configuration:r,done:eC(r,this),tags:eN(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,r){var n=this.getStateNode(e).next(t,r);return n&&n.transitions.length?n:this.next(t,r)},e.prototype.transitionCompoundNode=function(e,t,r){var n=Object.keys(e),o=this.getStateNode(n[0])._transition(e[n[0]],t,r);return o&&o.transitions.length?o:this.next(t,r)},e.prototype.transitionParallelNode=function(e,t,r){var n,o,i={};try{for(var a=T(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,u=e[l];if(u){var c=this.getStateNode(l)._transition(u,t,r);c&&(i[l]=c)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}var d=Object.keys(i).map(function(e){return i[e]}),f=er(d.map(function(e){return e.transitions}));if(!d.some(function(e){return e.transitions.length>0}))return this.next(t,r);var p=er(Object.keys(i).map(function(e){return i[e].configuration}));return{transitions:f,exitSet:er(d.map(function(e){return e.exitSet})),configuration:p,source:t,actions:er(Object.keys(i).map(function(e){return i[e].actions}))}},e.prototype._transition=function(e,t,r){return ec(e)?this.transitionLeafNode(e,t,r):1===Object.keys(e).length?this.transitionCompoundNode(e,t,r):this.transitionParallelNode(e,t,r)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,em(t))},e.prototype.next=function(e,t){var r,n,o,i=this,a=t.name,s=[],l=[];try{for(var u=T(this.getCandidates(a)),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.cond,p=d.in,h=e.context,m=!p||(ec(p)&&ne(p)?e.matches(Y(this.getStateNodeById(p).path,this.delimiter)):W(Y(p,this.delimiter),ee(this.path.slice(0,-2))(e.value))),v=!1;try{v=!f||eg(this.machine,f,h,t,e)}catch(e){throw Error("Unable to evaluate guard '".concat(f.name||f.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&m){void 0!==d.target&&(l=d.target),s.push.apply(s,N([],C(d.actions),!1)),o=d;break}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var g=er(l.map(function(t){return i.getRelativeStateNodes(t,e.historyValue)})),y=!!o.internal;return{transitions:[o],exitSet:y?[]:er(l.map(function(e){return i.getPotentiallyReenteringNodes(e)})),configuration:g,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],r=this;r&&r!==e;)t.push(r),r=r.parent;return r!==e?[]:(t.push(e),t)},e.prototype.getActions=function(e,t,r,n,o,i,a){var s,l,u,c,d=this,p=i?eS([],this.getStateNodes(i.value)):[],h=new Set;try{for(var m=T(Array.from(e).sort(function(e,t){return e.order-t.order})),v=m.next();!v.done;v=m.next()){var g=v.value;(!eT(p,g)||eT(r.exitSet,g)||g.parent&&h.has(g.parent))&&h.add(g)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(l=m.return)&&l.call(m)}finally{if(s)throw s.error}}try{for(var y=T(p),b=y.next();!b.done;b=y.next()){var g=b.value;(!eT(e,g)||eT(r.exitSet,g.parent))&&r.exitSet.push(g)}}catch(e){u={error:e}}finally{try{b&&!b.done&&(c=y.return)&&c.call(y)}finally{if(u)throw u.error}}r.exitSet.sort(function(e,t){return t.order-e.order});var w=Array.from(h).sort(function(e,t){return e.order-t.order}),x=new Set(r.exitSet),_=er(w.map(function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(eF(e.id,e.doneData),eF(i.id,e.doneData?eo(e.doneData,n,o):void 0));var a=i.parent;return"parallel"===a.type&&ek(a).every(function(e){return eC(r.configuration,e)})&&t.push(eF(a.id)),t})),E=w.map(function(e){var t=e.onEntry,r=e.activities.map(function(e){var t;return t=eA(e),{type:f.Start,activity:t,exec:void 0}});return{type:"entry",actions:ej(a?N(N([],C(t),!1),C(r),!1):N(N([],C(r),!1),C(t),!1),d.machine.options.actions)}}).concat({type:"state_done",actions:_.map(function(e){var t;return{type:A,event:"function"==typeof e?e:eh(e),delay:void 0,id:null==t?void 0:t.id}})}),k=Array.from(x).map(function(e){return{type:"exit",actions:ej(N(N([],C(e.onExit),!1),C(e.activities.map(function(e){var t;return t=eu(e)?e:eA(e),{type:f.Stop,activity:t,exec:void 0}})),!1),d.machine.options.actions)}}).concat({type:"transition",actions:ej(r.actions,this.machine.options.actions)}).concat(E);if(t){var S=ej(er(N([],C(e),!1).sort(function(e,t){return t.order-e.order}).map(function(e){return e.onExit})),this.machine.options.actions).filter(function(e){return!ex(e)});return k.concat({type:"stop",actions:S})}return k},e.prototype.transition=function(e,t,r,n){void 0===e&&(e=this.initialState);var o,i,a=em(t);if(e instanceof ez)i=void 0===r?e:this.resolveState(ez.from(e,r));else{var s=ec(e)?this.resolve(Q(this.getResolvedPath(e))):this.resolve(e),l=null!=r?r:this.machine.context;i=this.resolveState(ez.from(s,l))}if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},c=eS([],this.getStateNodes(i.value)),d=u.configuration.length?eS(c,u.configuration):c;return u.configuration=N([],C(d),!1),this.resolveTransition(u,i,i.context,n,a)},e.prototype.resolveRaisedTransition=function(e,t,r,n){var o,i=e.actions;return(e=this.transition(e,t,void 0,n))._event=r,e.event=r.data,(o=e.actions).unshift.apply(o,N([],C(i),!1)),e},e.prototype.resolveTransition=function(e,t,r,n,o){var i,a,s,l,u,c,d=this;void 0===o&&(o=eD);var f=e.configuration,p=!t||e.transitions.length>0,h=p?e.configuration:t?t.configuration:[],m=eC(h,this),v=p?(a=eS([i=this.machine],f),function e(t,r){var n=r.get(t);if(!n)return{};if("compound"===t.type){var o=n[0];if(!o)return{};if(e_(o))return o.key}var i={};return n.forEach(function(t){i[t.key]=e(t,r)}),i}(i,eO(a))):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,y=this.getActions(new Set(h),m,e,r,o,t,n),b=t?S({},t.activities):{};try{for(var w=T(y),x=w.next();!x.done;x=w.next()){var _=x.value;try{for(var E=(u=void 0,T(_.actions)),k=E.next();!k.done;k=E.next()){var O=k.value;O.type===R?b[O.activity.id||O.activity.type]=O:O.type===j&&(b[O.activity.id||O.activity.type]=!1)}}catch(e){u={error:e}}finally{try{k&&!k.done&&(c=E.return)&&c.call(E)}finally{if(u)throw u.error}}}}catch(e){s={error:e}}finally{try{x&&!x.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}var N=C(eq(this,t,r,o,y,n,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),D=N[0],P=N[1],A=C(function(e,t){var r,n,o=C([[],[]],2),i=o[0],a=o[1];try{for(var s=T(e),l=s.next();!l.done;l=s.next()){var u=l.value;t(u)?i.push(u):a.push(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return[i,a]}(D,ex),2),F=A[0],L=A[1],M=D.filter(function(e){var t;return e.type===R&&(null===(t=e.activity)||void 0===t?void 0:t.type)===V}).reduce(function(e,t){var r,n,i,a,s,l,u,c;return e[t.activity.id]=(r=t.activity,n=d.machine,i=o,s=ey(r.src),l=null===(a=null==n?void 0:n.options.services)||void 0===a?void 0:a[s.type],u=r.data?eo(r.data,P,i):void 0,(c=l?eW(l,r.id,u):eB(r.id)).meta=r,c),e},t?S({},t.children):{}),q=new ez({value:v||t.value,context:P,_event:o,_sessionid:t?t._sessionid:null,historyValue:v?g?{current:v,states:function e(t,r){return J(t.states,function(t,n){if(t){var o=(ec(r)?void 0:r[n])||(t?t.current:void 0);if(o)return{current:o,states:e(t,o)}}})}(g,v)}:void 0:t?t.historyValue:void 0,history:!v||e.source?t:void 0,actions:v?L:[],activities:v?b:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:M,done:m,tags:eN(h),machine:this}),z=r!==P;q.changed=o.name===H||z;var U=q.history;U&&delete U.history;var $=!m&&(this._transient||f.some(function(e){return e._transient}));if(!p&&(!$||""===o.name))return q;var K=q;if(!m)for($&&(K=this.resolveRaisedTransition(K,{type:I},o,n));F.length;){var B=F.shift();K=this.resolveRaisedTransition(K,B._event,o,n)}var W=K.changed||(U?!!K.actions.length||z||typeof U.value!=typeof K.value||!function e(t,r){if(t===r)return!0;if(void 0===t||void 0===r)return!1;if(ec(t)||ec(r))return t===r;var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}(K.value,U.value):void 0);return K.changed=W,K.history=U,K},e.prototype.getStateNode=function(e){if(ne(e))return this.machine.getStateNodeById(e);if(!this.states)throw Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=ne(e)?e.slice(1):e;if(t===this.id)return this;var r=this.machine.idMap[t];if(!r)throw Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&ne(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=G(e,this.delimiter).slice(),r=this;t.length;){var n=t.shift();if(!n.length)break;r=r.getStateNode(n)}return r},e.prototype.resolve=function(e){var t,r=this;if(!e)return this.initialStateValue||r7;switch(this.type){case"parallel":return J(this.initialStateValue,function(t,n){return t?r.getStateNode(n).resolve(e[n]||t):r7});case"compound":if(ec(e)){var n=this.getStateNode(e);if("parallel"===n.type||"compound"===n.type)return(t={})[e]=n.initialStateValue,t;return e}if(!Object.keys(e).length)return this.initialStateValue||{};return J(e,function(e,t){return e?r.getStateNode(t).resolve(e):r7});default:return e||r7}},e.prototype.getResolvedPath=function(e){if(ne(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw Error("Unable to find state node '".concat(e,"'"));return t.path}return G(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=X(this.states,function(e){return e.initialStateValue||r7},function(e){return"history"!==e.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=e_(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=ec(t.target)&&ne(t.target)?Q(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,r){return void 0===r&&(r=!0),r?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return e_(this)?[this]:"compound"!==this.type||this.initial?er(et(this.initialStateValue).map(function(t){return e.getFromRelativePath(t)})):[this]},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=C(e),r=t[0],n=t.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var o=this.getStateNode(r);if("history"===o.type)return o.resolveHistory();if(!this.states[r])throw Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(n)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:X(this.states,function(t,r){if(!e)return t.historyValue();var n=ec(e)?void 0:e[r];return t.historyValue(n||t.initialStateValue)},function(e){return!e.history})}},e.prototype.resolveHistory=function(e){var t,r=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var o=this.target;return o?er(et(o).map(function(e){return n.getFromRelativePath(e)})):n.initialStateNodes}var i=(t=n.path,function(e){var r,n,o=e;try{for(var i=T(t),a=i.next();!a.done;a=i.next()){var s=a.value;o=o.states[s]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o})(e).current;return ec(i)?[n.getStateNode(i)]:er(et(i).map(function(e){return"deep"===r.history?n.getFromRelativePath(e):[n.states[e[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=er(Object.keys(this.states).map(function(t){return e.states[t].stateIds}));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var e,t,r,n,o=this.states,i=new Set(this.ownEvents);if(o)try{for(var a=T(Object.keys(o)),s=a.next();!s.done;s=a.next()){var l=o[s.value];if(l.states)try{for(var u=(r=void 0,T(l.events)),c=u.next();!c.done;c=u.next()){var d=c.value;i.add("".concat(d))}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType})))},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map(function(e){if(!ec(e))return e;var r=e[0]===t.delimiter;if(r&&!t.parent)return t.getStateNodeByPath(e.slice(1));var n=r?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(n);try{return t.parent.getStateNodeByPath(n)}catch(e){throw Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}})},e.prototype.formatTransition=function(e){var t=this,r=function(e){if(void 0!==e&&""!==e)return en(e)}(e.target),n="internal"in e?e.internal:!r||r.some(function(e){return ec(e)&&e[0]===t.delimiter}),o=this.machine.options.guards,i=this.resolveTarget(r),a=S(S({},e),{actions:ej(en(e.actions)),cond:ed(e.cond,o),target:i,source:this,internal:n,eventType:e.event,toJSON:function(){return S(S({},a),{target:a.target?a.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,r,n=this;if(this.config.on){if(Array.isArray(this.config.on))r=this.config.on;else{var o=this.config.on,i=o["*"],a=O(o,["*"]);r=er(Object.keys(a).map(function(e){return ev(e,a[e])}).concat(ev("*",void 0===i?[]:i)))}}else r=[];var s=this.config.always?ev("",this.config.always):[],l=this.config.onDone?ev(String(eF(this.id)),this.config.onDone):[],u=er(this.invoke.map(function(e){var t=[];return e.onDone&&t.push.apply(t,N([],C(ev(String(eL(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,N([],C(ev(String(eI(e.id)),e.onError)),!1)),t})),c=this.after,d=er(N(N(N(N([],C(l),!1),C(u),!1),C(r),!1),C(s),!1).map(function(e){return en(e).map(function(e){return n.formatTransition(e)})}));try{for(var f=T(c),p=f.next();!p.done;p=f.next()){var h=p.value;d.push(h)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return d},e}();function nr(){return(nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function nn(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var no="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function ni(e,t,r){return t=(t=+t)==t?t:0,r=(r=+r)==r?r:0,(e=+e)==e&&(e=(e=e<=r?e:r)>=t?e:t),e}function na(e){var t=Math.round(e);if(Number.isNaN(e))throw TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var ns={box:"border-box"};function nl(e,t){var r=t.label,n=t.enabled,o=t.resizeSourceRef,i=(0,x.useState)(0),a=i[0],s=i[1];(0,x.useDebugValue)(r+": "+a);var l=(0,x.useCallback)(function(e){s(e[0].borderBoxSize[0].blockSize),o.current="element"},[o]);return no(function(){if(e.current&&n){var t=new r6(l);return t.observe(e.current,ns),function(){t.disconnect()}}},[e,l,n]),n?a:0}function nu(e){return void 0===e&&(e=1e3),new Promise(function(t){return setTimeout(t,e)})}var nc={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},nd={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},nf=(u={id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:nr({},nc,nd)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:nr({},nc,nd)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:nr({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[{type:M,assignment:{y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var r=t.payload.source;return void 0===r?"custom":r}}}]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},c={actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(nu()).then(function(){})}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}},void 0===d&&(d=u.context),new nt(u,c,d)),np=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],nh=["velocity"],nm=["onRest","config"],nv=te.vc.default,ng=nv.tension,ny=nv.friction,nb=x.forwardRef(function(e,t){var r,n,o,i,a,s,l,u,c,d,f,p,h,m,g,y,b,w,_,E,k,S,O,T,C,N=e.children,D=e.sibling,P=e.className,R=e.footer,j=e.header,A=e.open,F=e.initialState,L=e.lastSnapRef,I=e.initialFocusRef,M=e.onDismiss,q=e.maxHeight,z=e.defaultSnap,V=void 0===z?nx:z,U=e.snapPoints,$=e.blocking,H=void 0===$||$,K=e.scrollLocking,B=e.style,W=e.onSpringStart,Z=e.onSpringCancel,G=e.onSpringEnd,Y=e.reserveScrollBarGap,Q=void 0===Y?H:Y,J=e.expandOnContentDrag,X=void 0!==J&&J,ee=nn(e,np),et=(eu=(el=(0,x.useState)(!1))[0],ec=el[1],ef=(ed=(0,x.useState)({}))[0],ep=ed[1],eh=(0,x.useCallback)(function(e){return ep(function(t){var r;return nr({},t,((r={})[e]=!1,r))}),function(){ep(function(t){var r;return nr({},t,((r={})[e]=!0,r))})}},[]),(0,x.useEffect)(function(){var e=Object.values(ef);0!==e.length&&e.every(Boolean)&&ec(!0)},[ef]),{ready:eu,registerReady:eh}),er=et.ready,en=et.registerReady,eo=(0,x.useRef)(!1),ei=(0,x.useRef)(W),ea=(0,x.useRef)(Z),es=(0,x.useRef)(G);(0,x.useEffect)(function(){ei.current=W,ea.current=Z,es.current=G},[Z,W,G]);var el,eu,ec,ed,ef,ep,eh,em,ev,eg,ey,eb,ew,ex,e_,eE,ek,eS,eO,eT,eC,eN,eD,eP,eR,ej,eA,eF,eL,eI,eM,eq,eU,e$,eH,eK,eB,eW,eZ,eG,eY,eQ,eJ,eX,tt,tr,tn,to,ti,ts,tl,tu,tc,td,tf,tp,th,tm,tv,tg=(0,te.q_)(function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}}),ty=tg[0],tb=tg[1],tw=(0,x.useRef)(null),t_=(0,x.useRef)(null),tE=(0,x.useRef)(null),tS=(0,x.useRef)(null),tO=(0,x.useRef)(null),tT=(0,x.useRef)(null),tC=(0,x.useRef)(0),tD=(0,x.useRef)(),tP=(0,x.useRef)(!1),tR=(tm=(0,x.useMemo)(function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null},[]),tv=(0,x.useRef)(null==tm?void 0:tm.matches),(0,x.useDebugValue)(tv.current?"reduce":"no-preference"),(0,x.useEffect)(function(){var e=function(e){tv.current=e.matches};return null==tm||tm.addListener(e),function(){return null==tm?void 0:tm.removeListener(e)}},[tm]),tv),tj=(ev=(em={targetRef:t_,enabled:er&&(void 0===K||K),reserveScrollBarGap:Q}).targetRef,eg=em.enabled,ey=em.reserveScrollBarGap,eb=(0,x.useRef)({activate:function(){throw TypeError("Tried to activate scroll lock too early")},deactivate:function(){}}),(0,x.useDebugValue)(eg?"Enabled":"Disabled"),(0,x.useEffect)(function(){if(!eg)return eb.current.deactivate(),void(eb.current={activate:function(){},deactivate:function(){}});var e=ev.current,t=!1;eb.current={activate:function(){t||(t=!0,rb(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:ey}))},deactivate:function(){t&&(t=!1,rw(e))}}},[eg,ev,ey]),eb),tA=(ex=(ew={targetRef:tw,enabled:er&&H}).targetRef,e_=ew.enabled,eE=(0,x.useRef)({activate:function(){throw TypeError("Tried to activate aria hider too early")},deactivate:function(){}}),(0,x.useDebugValue)(e_?"Enabled":"Disabled"),(0,x.useEffect)(function(){if(!e_)return eE.current.deactivate(),void(eE.current={activate:function(){},deactivate:function(){}});var e=ex.current,t=!1,r=[],n=[];eE.current={activate:function(){if(!t){t=!0;var o=e.parentNode;document.querySelectorAll("body > *").forEach(function(e){if(e!==o){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),n.push(e),e.setAttribute("aria-hidden","true"))}})}},deactivate:function(){t&&(t=!1,n.forEach(function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}),r=[],n=[])}}},[ex,e_]),eE),tL=(eS=(ek={targetRef:tw,fallbackRef:tT,initialFocusRef:I||void 0,enabled:er&&H&&!1!==I}).targetRef,eO=ek.fallbackRef,eT=ek.initialFocusRef,eC=ek.enabled,eN=(0,x.useRef)({activate:function(){throw TypeError("Tried to activate focus trap too early")},deactivate:function(){}}),(0,x.useDebugValue)(eC?"Enabled":"Disabled"),(0,x.useEffect)(function(){if(!eC)return eN.current.deactivate(),void(eN.current={activate:function(){},deactivate:function(){}});var e=eO.current,t=ri(eS.current,{onActivate:void 0,initialFocus:eT?function(){return(null==eT?void 0:eT.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),r=!1;eN.current={activate:function(){try{return r?Promise.resolve():(r=!0,Promise.resolve(t.activate()).then(function(){return Promise.resolve(new Promise(function(e){return setTimeout(function(){return e(void 0)},0)})).then(function(){})}))}catch(e){return Promise.reject(e)}},deactivate:function(){r&&(r=!1,t.deactivate())}}},[eC,eO,eT,eS]),eN),tI=(tt=(eD={contentRef:tE,controlledMaxHeight:q,footerEnabled:!!R,footerRef:tO,getSnapPoints:void 0===U?n_:U,headerEnabled:!1!==j,headerRef:tS,heightRef:tC,lastSnapRef:L,ready:er,registerReady:en,resizeSourceRef:tD}).getSnapPoints,tr=eD.heightRef,tn=eD.lastSnapRef,to=eD.ready,ts=(eM=(eP={contentRef:eD.contentRef,controlledMaxHeight:eD.controlledMaxHeight,footerEnabled:eD.footerEnabled,footerRef:eD.footerRef,headerEnabled:eD.headerEnabled,headerRef:eD.headerRef,registerReady:eD.registerReady,resizeSourceRef:eD.resizeSourceRef}).contentRef,eq=eP.controlledMaxHeight,eU=eP.footerEnabled,e$=eP.footerRef,eH=eP.headerEnabled,eK=eP.headerRef,eB=eP.registerReady,eW=eP.resizeSourceRef,eZ=(0,x.useMemo)(function(){return eB("contentHeight")},[eB]),eR=(0,x.useMemo)(function(){return eB("maxHeight")},[eB]),eA=(ej=(0,x.useState)(function(){return na(eq)||"undefined"!=typeof window?window.innerHeight:0}))[0],eF=ej[1],eL=eA>0,eI=(0,x.useRef)(0),(0,x.useDebugValue)(eq?"controlled":"auto"),(0,x.useEffect)(function(){eL&&eR()},[eL,eR]),no(function(){if(eq)return eF(na(eq)),void(eW.current="maxheightprop");var e=function(){eI.current||(eI.current=requestAnimationFrame(function(){eF(window.innerHeight),eW.current="window",eI.current=0}))};return window.addEventListener("resize",e),eF(window.innerHeight),eW.current="window",eR(),function(){window.removeEventListener("resize",e),cancelAnimationFrame(eI.current)}},[eq,eR,eW]),eG=nl(eK,{label:"headerHeight",enabled:eH,resizeSourceRef:eW}),eY=nl(eM,{label:"contentHeight",enabled:!0,resizeSourceRef:eW}),eJ=Math.min(eA-eG-(eQ=nl(e$,{label:"footerHeight",enabled:eU,resizeSourceRef:eW})),eY)+eG+eQ,(0,x.useDebugValue)("minHeight: "+eJ),eX=eY>0,(0,x.useEffect)(function(){eX&&eZ()},[eX,eZ]),ti={maxHeight:eA,minHeight:eJ,headerHeight:eG,footerHeight:eQ}).maxHeight,tl=ti.minHeight,tu=ti.headerHeight,tc=ti.footerHeight,tf=(td=function(e,t){var r=Array.from([].concat(e).map(na).reduce(function(e,r){return e.add(ni(r,0,t)),e},new Set)),n=Math.min.apply(Math,r);if(Number.isNaN(n))throw TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:n,maxSnap:o}}(to?tt({height:tr.current,footerHeight:tc,headerHeight:tu,minHeight:tl,maxHeight:ts}):[0],ts)).snapPoints,tp=td.minSnap,th=td.maxSnap,(0,x.useDebugValue)("minSnap: "+tp+", maxSnap:"+th),{minSnap:tp,maxSnap:th,findSnap:function(e){var t=na("function"==typeof e?e({footerHeight:tc,headerHeight:tu,height:tr.current,minHeight:tl,maxHeight:ts,snapPoints:tf,lastSnap:tn.current}):e);return tf.reduce(function(e,r){return Math.abs(r-t)<Math.abs(e-t)?r:e},tp)},maxHeight:ts}),tM=tI.minSnap,tz=tI.maxSnap,tV=tI.maxHeight,tU=tI.findSnap,t$=(0,x.useRef)(tV),tH=(0,x.useRef)(tM),tK=(0,x.useRef)(tz),tB=(0,x.useRef)(tU),tW=(0,x.useRef)(0);no(function(){t$.current=tV,tK.current=tz,tH.current=tM,tB.current=tU,tW.current=tU(V)},[tU,V,tV,tz,tM]);var tZ=(0,x.useCallback)(function(e){var t=e.onRest,r=e.config,n=(r=void 0===r?{}:r).velocity,o=void 0===n?1:n,i=nn(r,nh),a=nn(e,nm);return new Promise(function(e){return tb(nr({},a,{config:nr({velocity:o},i,{mass:1,tension:ng,friction:Math.max(ny,ny+(ny-ny*o))}),onRest:function(){var r=[].slice.call(arguments);e.apply(void 0,r),null==t||t.apply(void 0,r)}}))})},[tb]),tG=(r={devTools:!1,actions:{onOpenCancel:(0,x.useCallback)(function(){return null==ea.current?void 0:ea.current({type:"OPEN"})},[]),onSnapCancel:(0,x.useCallback)(function(e){return null==ea.current?void 0:ea.current({type:"SNAP",source:e.snapSource})},[]),onCloseCancel:(0,x.useCallback)(function(){return null==ea.current?void 0:ea.current({type:"CLOSE"})},[]),onResizeCancel:(0,x.useCallback)(function(){return null==ea.current?void 0:ea.current({type:"RESIZE",source:tD.current})},[]),onOpenEnd:(0,x.useCallback)(function(){return null==es.current?void 0:es.current({type:"OPEN"})},[]),onSnapEnd:(0,x.useCallback)(function(e,t){return null==es.current?void 0:es.current({type:"SNAP",source:e.snapSource})},[]),onResizeEnd:(0,x.useCallback)(function(){return null==es.current?void 0:es.current({type:"RESIZE",source:tD.current})},[])},context:{initialState:F},services:{onSnapStart:(0,x.useCallback)(function(e,t){try{return Promise.resolve(null==ei.current?void 0:ei.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}},[]),onOpenStart:(0,x.useCallback)(function(){try{return Promise.resolve(null==ei.current?void 0:ei.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}},[]),onCloseStart:(0,x.useCallback)(function(){try{return Promise.resolve(null==ei.current?void 0:ei.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}},[]),onResizeStart:(0,x.useCallback)(function(){try{return Promise.resolve(null==ei.current?void 0:ei.current({type:"RESIZE",source:tD.current}))}catch(e){return Promise.reject(e)}},[]),onSnapEnd:(0,x.useCallback)(function(e,t){try{return Promise.resolve(null==es.current?void 0:es.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}},[]),onOpenEnd:(0,x.useCallback)(function(){try{return Promise.resolve(null==es.current?void 0:es.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}},[]),onCloseEnd:(0,x.useCallback)(function(){try{return Promise.resolve(null==es.current?void 0:es.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}},[]),onResizeEnd:(0,x.useCallback)(function(){try{return Promise.resolve(null==es.current?void 0:es.current({type:"RESIZE",source:tD.current}))}catch(e){return Promise.reject(e)}},[]),renderVisuallyHidden:(0,x.useCallback)(function(e,t){try{return Promise.resolve(tZ({y:tW.current,ready:0,maxHeight:t$.current,maxSnap:tK.current,minSnap:tW.current,immediate:!0})).then(function(){})}catch(e){return Promise.reject(e)}},[tZ]),activate:(0,x.useCallback)(function(e,t){try{return eo.current=!0,Promise.resolve(Promise.all([tj.current.activate(),tL.current.activate(),tA.current.activate()])).then(function(){})}catch(e){return Promise.reject(e)}},[tA,tL,tj]),deactivate:(0,x.useCallback)(function(){try{return tj.current.deactivate(),tL.current.deactivate(),tA.current.deactivate(),eo.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}},[tA,tL,tj]),openImmediately:(0,x.useCallback)(function(){try{return tC.current=tW.current,Promise.resolve(tZ({y:tW.current,ready:1,maxHeight:t$.current,maxSnap:tK.current,minSnap:tW.current,immediate:!0})).then(function(){})}catch(e){return Promise.reject(e)}},[tZ]),openSmoothly:(0,x.useCallback)(function(){try{return Promise.resolve(tZ({y:0,ready:1,maxHeight:t$.current,maxSnap:tK.current,minSnap:tW.current,immediate:!0})).then(function(){return tC.current=tW.current,Promise.resolve(tZ({y:tW.current,ready:1,maxHeight:t$.current,maxSnap:tK.current,minSnap:tW.current,immediate:tR.current})).then(function(){})})}catch(e){return Promise.reject(e)}},[tZ,tR]),snapSmoothly:(0,x.useCallback)(function(e,t){try{var r=tB.current(e.y);return tC.current=r,L.current=r,Promise.resolve(tZ({y:r,ready:1,maxHeight:t$.current,maxSnap:tK.current,minSnap:tH.current,immediate:tR.current,config:{velocity:e.velocity}})).then(function(){})}catch(e){return Promise.reject(e)}},[tZ,L,tR]),resizeSmoothly:(0,x.useCallback)(function(){try{var e=tB.current(tC.current);return tC.current=e,L.current=e,Promise.resolve(tZ({y:e,ready:1,maxHeight:t$.current,maxSnap:tK.current,minSnap:tH.current,immediate:"element"!==tD.current||tR.current})).then(function(){})}catch(e){return Promise.reject(e)}},[tZ,L,tR]),closeSmoothly:(0,x.useCallback)(function(e,t){try{return tZ({minSnap:tC.current,immediate:!0}),tC.current=0,Promise.resolve(tZ({y:0,maxHeight:t$.current,maxSnap:tK.current,immediate:tR.current})).then(function(){return Promise.resolve(tZ({ready:0,immediate:!0})).then(function(){})})}catch(e){return Promise.reject(e)}},[tZ,tR])}},n=(0,x.useCallback)(function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&w(e)},[]),void 0===(o=r)&&(o={}),i=e1(function(){return"function"==typeof nf?nf():nf}),a=o.context,s=o.guards,l=o.actions,u=o.activities,c=o.services,d=o.delays,f=o.state,p=e9(o,["context","guards","actions","activities","services","delays","state"]),h=e1(function(){return e0(i.withConfig({context:a,guards:s,actions:l,activities:u,services:c,delays:d},function(){return e6(e6({},i.context),a)}),e6({deferEvents:!0},p))}),(0,eV.Z)(function(){var e;return n&&(e=h.subscribe(function(e,t,r){if("object"==typeof e)return e;var n=function(){};return{next:e,error:n,complete:n}}(n))),function(){null==e||e.unsubscribe()}},[n]),(0,eV.Z)(function(){return h.start(f?ez.create(f):void 0),function(){h.stop()}},[]),(0,eV.Z)(function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,s),Object.assign(h.machine.options.activities,u),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)},[l,s,u,c,d]),m=(0,x.useRef)([]),g=(0,x.useRef)([]),(0,eV.Z)(function(){var e=h.subscribe(function(e){var t,r;if(e.actions.length){var n=e5(function(e,t){var r,n,o=e2([[],[]],2),i=o[0],a=o[1];try{for(var s=e4(e),l=s.next();!l.done;l=s.next()){var u=l.value;t(u)?i.push(u):a.push(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return[i,a]}(e.actions.filter(function(e){return"function"==typeof e.exec&&"__effect"in e.exec}),function(e){return e.exec.__effect===v.Effect}),2),o=n[0],i=n[1];(t=m.current).push.apply(t,e3([],e5(o.map(function(t){return[t,e]})),!1)),(r=g.current).push.apply(r,e3([],e5(i.map(function(t){return[t,e]})),!1))}});return function(){e.unsubscribe()}},[]),(0,eV.Z)(function(){for(;g.current.length;){var e=e5(g.current.shift(),2);e8(e[0],e[1])}}),(0,x.useEffect)(function(){for(;m.current.length;){var e=e5(m.current.shift(),2);e8(e[0],e[1])}}),b=(y=e7((0,x.useState)(function(){var e=h.machine.initialState;return r.state?ez.create(r.state):e}),2))[0],w=y[1],[b,h.send,h]),tY=tG[0],tQ=tG[1];(0,x.useEffect)(function(){er&&tQ(A?"OPEN":"CLOSE")},[A,tQ,er]),no(function(){(tV||tz||tM)&&tQ("RESIZE")},[tV,tz,tM,tQ]),(0,x.useEffect)(function(){return function(){tj.current.deactivate(),tL.current.deactivate(),tA.current.deactivate()}},[tA,tL,tj]),(0,x.useImperativeHandle)(t,function(){return{snapTo:function(e,t){var r=void 0===t?{}:t,n=r.velocity,o=r.source;tQ("SNAP",{payload:{y:tB.current(e),velocity:void 0===n?1:n,source:void 0===o?"custom":o}})},get height(){return tC.current}}},[tQ]),(0,x.useEffect)(function(){var e=t_.current,t=function(e){tP.current&&e.preventDefault()},r=function(t){e.scrollTop<0&&(requestAnimationFrame(function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")}),t.preventDefault())};return X&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",r)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",r)}},[X,t_]);var tJ=function(e,t){void 0===t&&(t={}),tk.set("drag",tq);var r,n,o,i,a,s,l,u,c,d=(0,x.useRef)();return d.current||(d.current=(i=[],a=!1,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return a&&n===this&&function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var n,o,i,a;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!==r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if("function"==typeof Map&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a=t.entries();!(o=a.next()).done;)if(!r.has(o.value[0]))return!1;for(a=t.entries();!(o=a.next()).done;)if(!e(o.value[1],r.get(o.value[0])))return!1;return!0}if("function"==typeof Set&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a=t.entries();!(o=a.next()).done;)if(!r.has(o.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;if("undefined"!=typeof Element&&t instanceof Element)return!1;for(o=n;0!=o--;)if(("_owner"!==i[o]||!t.$$typeof)&&!e(t[i[o]],r[i[o]]))return!1;return!0}return t!=t&&r!=r}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}(t,i)||(o=tx.apply(this,t),a=!0,n=this,i=t),o})),s={drag:e},l=d.current(t),void 0===u&&(u={}),r=new Set,s.drag&&r.add(tk.get("drag")),s.wheel&&r.add(tk.get("wheel")),s.scroll&&r.add(tk.get("scroll")),s.move&&r.add(tk.get("move")),s.pinch&&r.add(tk.get("pinch")),s.hover&&r.add(tk.get("hover")),((c=x.useMemo(function(){return new tN(r)},[])).config=l,c.handlers=s,c.nativeRefs=u,x.useEffect(c.effect,[]),c.config.domTarget)?tF:c.bind}(function(e){var t=e.args,r=(t=void 0===t?[]:t)[0],n=(r=void 0===r?{}:r).closeOnTap,o=r.isContentDragging,i=e.cancel,a=e.direction[1],s=e.down,l=e.first,u=e.last,c=e.memo,d=void 0===c?ty.y.get():c,f=e.tap,p=e.velocity,h=-1*e.movement[1];if(!eo.current)return i(),d;if(M&&void 0!==n&&n&&f)return i(),setTimeout(function(){return M()},0),d;if(f)return d;var m=d+h,v=h*p,g=Math.max(tH.current,Math.min(tK.current,m+2*v));if(!s&&M&&a>0&&m+v<tH.current/2)return i(),M(),d;var y=s?M||tH.current!==tK.current?ta(m,M?0:tH.current,tK.current,.55):m<tH.current?ta(m,tH.current,2*tK.current,.55):ta(m,tH.current/2,tK.current,.55):g;return X&&void 0!==o&&o?(y>=tK.current&&(y=tK.current),d===tK.current&&t_.current.scrollTop>0&&(y=tK.current),tP.current=y<tK.current):tP.current=!1,l&&tQ("DRAG"),u?tQ("SNAP",{payload:{y:y,velocity:p>.05?p:1,source:"dragging"}}):tb({y:y,ready:1,maxHeight:t$.current,maxSnap:tK.current,minSnap:tH.current,immediate:!0,config:{velocity:p}}),d},{filterTaps:!0});if(Number.isNaN(tK.current))throw TypeError("maxSnapRef is NaN!!");if(Number.isNaN(tH.current))throw TypeError("minSnapRef is NaN!!");var tX=(E=(0,te.sX)([ty.y,ty.maxHeight],function(e,t){return Math.round(ni(t-e,0,16))+"px"}),k=(0,te.sX)([ty.y,ty.minSnap,ty.maxSnap],function(e,t,r){return ni(e,t,r)+"px"}),S=(0,te.sX)([ty.y,ty.minSnap,ty.maxSnap],function(e,t,r){return e<t?t-e+"px":e>r?r-e+"px":"0px"}),O=(0,te.sX)([ty.y,ty.maxSnap],function(e,t){return e>=t?Math.ceil(e-t):0}),T=(0,te.sX)([ty.y,ty.minSnap],function(e,t){if(!t)return 0;var r=Math.max(t/2-45,0);return ni((e-r)*(1/(Math.min(t/2+45,t)-r)+0),0,1)}),C=(0,te.sX)([ty.y,ty.minSnap],function(e,t){return t?ni(e/t,0,1):0}),(_={})["--rsbs-content-opacity"]=T,_["--rsbs-backdrop-opacity"]=C,_["--rsbs-antigap-scale-y"]=O,_["--rsbs-overlay-translate-y"]=S,_["--rsbs-overlay-rounded"]=E,_["--rsbs-overlay-h"]=k,_);return x.createElement(te.q.div,nr({},ee,{"data-rsbs-root":!0,"data-rsbs-state":nw.find(tY.matches),"data-rsbs-is-blocking":H,"data-rsbs-is-dismissable":!!M,"data-rsbs-has-header":!!j,"data-rsbs-has-footer":!!R,className:P,ref:tw,style:nr({},tX,B,{opacity:ty.ready})}),D,H&&x.createElement("div",nr({key:"backdrop","data-rsbs-backdrop":!0},tJ({closeOnTap:!0}))),x.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:tT,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),M&&M())}},!1!==j&&x.createElement("div",nr({key:"header","data-rsbs-header":!0,ref:tS},tJ()),j),x.createElement("div",nr({key:"scroll","data-rsbs-scroll":!0,ref:t_},X?tJ({isContentDragging:!0}):{}),x.createElement("div",{"data-rsbs-content":!0,ref:tE},N)),R&&x.createElement("div",nr({key:"footer",ref:tO,"data-rsbs-footer":!0},tJ()),R)))}),nw=["closed","opening","open","closing","dragging","snapping","resizing"];function nx(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function n_(e){return e.minHeight}var nE=["onSpringStart","onSpringEnd","skipInitialTransition"],nk=(0,x.forwardRef)(function(e,t){var r=e.onSpringStart,n=e.onSpringEnd,o=e.skipInitialTransition,i=nn(e,nE),a=(0,x.useState)(!1),s=a[0],l=a[1],u=(0,x.useRef)(),c=(0,x.useRef)(null),d=(0,x.useRef)(o&&i.open?"OPEN":"CLOSED");no(function(){if(i.open)return cancelAnimationFrame(u.current),l(!0),function(){d.current="CLOSED"}},[i.open]);var f=(0,x.useCallback)(function(e){return Promise.resolve(null==r?void 0:r(e)).then(function(){"OPEN"===e.type&&cancelAnimationFrame(u.current)})},[r]),p=(0,x.useCallback)(function(e){return Promise.resolve(null==n?void 0:n(e)).then(function(){"CLOSE"===e.type&&(u.current=requestAnimationFrame(function(){return l(!1)}))})},[n]);return s?x.createElement(k,{"data-rsbs-portal":!0},x.createElement(nb,nr({},i,{lastSnapRef:c,ref:t,initialState:d.current,onSpringStart:f,onSpringEnd:p}))):null});r(40690);let nS=(0,x.forwardRef)((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(nk,{blocking:!1,className:(0,w.cn)("z-[10] relative",'[&_[data-rsbs-overlay="true"]]:rounded-t-[20px] [&_[data-rsbs-overlay="true"]]:dark:bg-tertiary','[&_[data-rsbs-header="true"]]:px-6 [&_[data-rsbs-header="true"]]:[text-align:unset] [&_[data-rsbs-header="true"]]:before:dark:bg-white/[0.12] [&_[data-rsbs-header="true"]_p]:mt-4','[&_[data-rsbs-footer="true"]]:p-6 [&_[data-rsbs-footer="true"]]:py-8',"after:dark:bg-tertiary",r),sibling:(0,b.jsx)("div",{"data-rsbs-backdrop":!0,onClick:n.onDismiss},"backdrop"),ref:t,...n})});nS.displayName="BottomSheet";var nO=nS},87042:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(31549),o=r(95870),i=r(16051),a=r(44194);let s=e=>{let{children:t,in:r,className:s,ContainerProps:l}=e,u=(0,a.useRef)(null),{height:c}=(0,i.aB)({container:u});return(0,n.jsx)(i.q.div,{...l,className:(0,o.cn)("w-full overflow-hidden",null==l?void 0:l.className),style:{height:c,...null==l?void 0:l.style},children:(0,n.jsx)("div",{ref:u,className:(0,o.cn)("min-h-[1px]",s),children:r&&t})})}},27504:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(83975),o=r(48583),i=r(45900);function a(e){return(0,n.N)({queryKey:["dashboard",...(0,o.fyx)({filter:(0,i.Li)({where:{name:{contains:e,mode:"insensitive"}}})})],queryFn:t=>{let{pageParam:r=0}=t;return(0,o.uKg)({filter:(0,i.Li)({page:r,perPage:12,where:{name:{contains:e,mode:"insensitive"}}})})},getNextPageParam:(e,t)=>{let r=t.length;if(!(r>Math.floor(parseInt(null==e?void 0:e.headers["x-total-count"])/12)))return r},keepPreviousData:""!==e})}},72537:function(e,t,r){"use strict";r.d(t,{s:function(){return w}});var n=r(31549),o=r(49421),i=r(96697),a=r(39233),s=r(83503),l=r(27008),u=r(45900),c=r(67770),d=r(95145),f=r(95870),p=r(17766),h=r.n(p),m=r(44194),v=r(51133);function g(e){return e.includes("vnd.openxmlformats-officedocument.wordprocessingml.document")||e.includes("msword")||e.includes("opendocument.text")||e.includes("ms-excel")||e.includes("spreadsheetml")||e.includes("application/vnd.oasis.opendocument.spreadsheet")||e.includes("presentation")||e.includes("application/vnd.oasis.opendocument.presentation")||e.includes("application/vnd.openxmlformats-officedocument.presentationml.presentation")||e.includes("ms-powerpoint")}var y=e=>{let{mimeType:t,fileUrl:r,documentName:o,documentId:s}=e,{t:c}=(0,l.$G)(),d=null!=t?t:c("documentPreview.unkownType"),[p,y]=(0,m.useState)(!1),b=!(d.includes("image")&&!p||d.includes("video")||d.includes("pdf")||g(d)),[w,x]=(0,m.useState)(!b);(0,m.useEffect)(()=>{y(!1),b?x(!1):x(!0)},[r]);let{mutate:_,isLoading:E}=(0,u.jm)();return(0,n.jsx)("div",{className:(0,f.cn)("w-full rounded-lg relative overflow-hidden min-h-[320px] h-[50vh] md:h-full",w&&"animate-pulse dark:bg-white/[0.12]"),children:(0,n.jsx)("div",{className:(0,f.cn)("w-full h-full",w&&"invisible"),children:d.includes("image")&&!p?(0,n.jsx)(h(),{src:(0,u.yo)(r),alt:o,className:"w-full h-full object-contain",fill:!0,onError:()=>{y(!0),x(!1)},onLoad:e=>{x(!1)}}):d.includes("video")?(0,n.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,n.jsx)("video",{onCanPlay:e=>{x(!1)},onError:()=>{y(!0),x(!1)},controls:!0,autoPlay:!0,muted:!0,className:"w-full object-contain",children:(0,n.jsx)("source",{src:(0,u.yo)(r),type:d})})}):d.includes("pdf")?(0,n.jsx)("iframe",{src:(0,u.yo)(r),title:o,className:"w-full h-full",onLoad:e=>{x(!1)},onError:()=>{y(!0),x(!1)}}):g(d)?(0,n.jsx)("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=".concat(r),title:o,className:"w-full h-full pb-6",onLoad:e=>{x(!1)}}):(0,n.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,n.jsxs)("div",{className:"rounded-3xl max-w-md border-primary border-solid border-[1px] p-6 flex items-center justify-center flex-col gap-6",children:[(0,n.jsx)(i.Z,{variant:"h6",className:"text-center",children:c("documentPreview.previewNotAvailable")}),(0,n.jsx)(i.Z,{variant:"body1",className:"text-center",children:c("documentPreview.thisFileIsNotSupportedAsPreview")}),(0,n.jsx)(a.z,{onPress:()=>{_({id:s})},startIcon:(0,n.jsx)(v.J,{name:"load_outline_02",label:c("iconLabels.downloadDocument")}),isLoading:E,children:c("documentPreview.downloadFile")})]})})})})};let b=e=>{var t,r,s,f;let{document:p,open:h,onClose:m}=e,{isDarkMode:v}=(0,o.G)(),{t:g}=(0,l.$G)(),b=(0,u.DT)("md");return p?b?(0,n.jsxs)(d.Z,{open:h,onClose:m,header:(0,n.jsx)(i.Z,{variant:"subtitle1",className:"md:font-normal md:text-[1.5rem] md:leading-[1.625rem] my-2",children:g("documentPreview.documentPreview")}),hasCloseIcon:!0,children:[(0,n.jsx)(y,{documentName:null!==(f=p.name)&&void 0!==f?f:"",fileUrl:p.fileUrl,mimeType:null===(r=p.metadata)||void 0===r?void 0:r.mimeType,documentId:p.id}),(0,n.jsx)("div",{className:"mt-4 p-4 flex justify-end",children:(0,n.jsx)(a.z,{variant:"outlined",color:v?"white":"black",onPress:m,children:g("global.close")})})]}):(0,n.jsx)(c.m,{open:h,onClose:m,header:(0,n.jsx)(i.Z,{variant:"subtitle1",className:"md:font-normal md:text-[1.5rem] md:leading-[1.625rem]",children:g("documentPreview.documentPreview")}),DialogContainerProps:{className:"xl:w-1/2 w-2/3"},footer:(0,n.jsx)("div",{className:"w-full flex justify-end",children:(0,n.jsx)(a.z,{variant:"outlined",color:v?"white":"black",onPress:m,children:g("global.close")})}),children:(0,n.jsx)(y,{documentName:null!==(s=p.name)&&void 0!==s?s:"",fileUrl:p.fileUrl,mimeType:null===(t=p.metadata)||void 0===t?void 0:t.mimeType,documentId:p.id})}):null},w=s.rf.create(e=>{let{visible:t}=(0,s.A2)(),{popModal:r}=(0,s.Ty)();return(0,n.jsx)(b,{...e,open:t,onClose:r})})},91490:function(e,t,r){"use strict";r.d(t,{s:function(){return x}});var n=r(31549),o=r(49421),i=r(95870),a=r(35716),s=r(96697),l=r(28158),u=r(87005),c=r(39233),d=r(48583),f=r(14633),p=r.n(f),h=r(27008),m=r(44194),v=r(45900),g=r(87042),y=r(91652),b=r(89854);let w=e=>{var t,r,o,i,a,s,l,u;let{user:c,onDelete:d}=e;return(0,n.jsx)(y.u,{title:"".concat(null!==(a=null===(t=c.user)||void 0===t?void 0:t.name)&&void 0!==a?a:""," ").concat(null!==(s=null===(r=c.user)||void 0===r?void 0:r.surname)&&void 0!==s?s:""),className:"z-[101]",children:(0,n.jsx)("div",{children:(0,n.jsx)(b.A,{variant:"rounded",onDelete:()=>{null==d||d(c)},className:"[&_p]:truncate",selected:!0,children:"".concat(null!==(l=null===(o=c.user)||void 0===o?void 0:o.name)&&void 0!==l?l:""," ").concat(null!==(u=null===(i=c.user)||void 0===i?void 0:i.surname)&&void 0!==u?u:"")})})},c.id)},x=e=>{var t,r,f;let{visibleTo:y,onChange:b,className:x,isVisibleToCompany:_,isVisibleToManagers:E,canChangeVisibilityToManagers:k=!0,companyId:S}=e,{platformType:O}=(0,v.uz)(),{isDarkMode:T}=(0,o.G)(),[C,N]=(0,m.useState)("advisor"!==O||null==_||_),[D,P]=(0,m.useState)(null==E||E);(0,m.useEffect)(()=>{N("advisor"!==O||null==_||_)},[_]),(0,m.useEffect)(()=>{P(null==E||E)},[E]);let[R,j]=(0,m.useState)(""),A=(0,m.useCallback)(p()(e=>{j(e)},300,{leading:!0,trailing:!0}),[]),{data:F,isFetching:L,isLoading:I}=(0,d.eGJ)({companyId:S,filter:(0,v.Li)({page:0,perPage:10,where:{fullName:{contains:R,mode:"insensitive"}}})},{query:{select:e=>e.data,keepPreviousData:""!==R,enabled:"advisor"!==O||!!S}}),[M,q]=(0,m.useState)(!1),{t:z}=(0,h.$G)();return"bank"===O?null:(0,n.jsxs)("div",{className:(0,i.cn)("w-full",x),children:["advisor"===O&&(0,n.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,n.jsx)(a.r,{checked:C,onChange:e=>{N(e),null==b||b({visibleTo:y,isVisibleToCompany:e,isVisibleToManagers:D})},color:T?"white":"primary"}),(0,n.jsx)(s.Z,{variant:"body2",className:"flex-1",children:z("documents.thisDocumentIsVisibleToAllCompany")})]}),(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)(a.r,{isDisabled:!C||!k,checked:D,onChange:e=>{P(e),null==b||b({isVisibleToCompany:C,visibleTo:e?void 0:[],isVisibleToManagers:e})},className:(0,i.cn)(!C&&"[&_.Switch-thumb]:bg-white/[0.38]"),color:T?"white":"primary"}),(0,n.jsx)(s.Z,{variant:"body2",className:"flex-1",children:z("documents.thisDocumentIsVisibleToAllAssignedManager")})]}),!D&&C&&k&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.F,{color:T?"white":"primary",label:z("editDocument.chooseManagerThatCanViewDocument"),multiple:!0,placeholder:z("global.select"),emptyListContent:I?(0,n.jsxs)(s.Z,{className:"px-2 py-1",children:[z("loading"),"..."]}):(0,n.jsx)(s.Z,{className:"px-2 py-1",children:z("documentInfo.noUserFound")}),onInputChange:A,value:null!==(t=null==y?void 0:y.map(e=>e.user))&&void 0!==t?t:[],onChange:e=>null==b?void 0:b({visibleTo:e.map(e=>({user:e,userId:e.id,createdAt:"",updatedAt:"",id:"",documentId:""})),isVisibleToCompany:C,isVisibleToManagers:D}),className:"md:max-w-[50%] mt-6",OptionsListProps:{className:"dark:bg-tertiary-sl06 z-[120] [&>button]:z-[120]"},TextFieldProps:{endIcon:L?(0,n.jsx)(u.$,{className:"w-5 h-5 flex-shrink-0 border-[2px]"}):void 0},nameExtractor:e=>{var t,r;return"".concat(null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""," ").concat(null!==(r=null==e?void 0:e.surname)&&void 0!==r?r:"")},options:null!=F?F:[]}),(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-wrap gap-2 items-center mt-5"),children:[(null==y?void 0:y.length)===0&&(0,n.jsx)(s.Z,{variant:"body2",children:z("editDocument.noManagerSelected")}),null==y?void 0:y.slice(0,M?5:4).map(e=>(0,n.jsx)(w,{user:e,onDelete:e=>{null==b||b({isVisibleToCompany:C,visibleTo:null==y?void 0:y.filter(t=>t.userId!==e.userId),isVisibleToManagers:E})}},e.userId)),(null!==(r=null==y?void 0:y.length)&&void 0!==r?r:0)>4&&!M&&(0,n.jsx)(c.z,{color:T?"white":"black",size:"small",onPress:()=>{q(!0)},className:"underline w-fit self-start",variant:"text",children:"+".concat(z("documentInfo.nOthers",{count:(null!==(f=null==y?void 0:y.length)&&void 0!==f?f:0)-4}))})]}),(0,n.jsx)(g.U,{in:M,children:(0,n.jsxs)("div",{className:"flex items-center flex-wrap pt-2",children:[null==y?void 0:y.slice(5,null==y?void 0:y.length).map(e=>(0,n.jsx)(w,{user:e,onDelete:e=>{null==b||b({isVisibleToCompany:C,visibleTo:null==y?void 0:y.filter(t=>t.userId!==e.userId),isVisibleToManagers:E})}},e.userId)),(0,n.jsx)(c.z,{color:T?"white":"black",size:"small",onPress:()=>{q(!1)},className:"underline w-fit self-start",variant:"text",children:z("global.showLess")})]})})]})]})}},70501:function(e,t,r){"use strict";r.d(t,{S:function(){return m}});var n=r(31549),o=r(49421),i=r(28158),a=r(96697),s=r(87005),l=r(38495),u=r(48583),c=r(14633),d=r.n(c),f=r(27008),p=r(44194),h=r(45900);let m=e=>{let{label:t,placeholder:r,value:c,onChange:m,className:v,error:g,companyId:y,isLoading:b}=e,{t:w}=(0,f.$G)(),{isDarkMode:x}=(0,o.G)(),{platformType:_}=(0,h.uz)(),[E,k]=(0,p.useState)(""),S=(0,p.useCallback)(d()(e=>{k(e)},300,{leading:!0,trailing:!0}),[]),O="company"!==_&&!y,{data:T,isFetching:C}=(0,u.b98)({companyId:y,filter:(0,h.Li)({page:0,perPage:10,where:{user:{OR:[{name:{contains:E,mode:"insensitive"}},{surname:{contains:E,mode:"insensitive"}}]}}})},{query:{enabled:!O,select:e=>e.data,keepPreviousData:""!==E}});return(0,n.jsx)(i.F,{isDisabled:O,label:null!=t?t:"".concat(w("global.user")," *"),options:null!=T?T:[],placeholder:null!=r?r:w("editDocument.chooseUser"),emptyListContent:C?(0,n.jsxs)(a.Z,{className:"px-2 py-1",children:[w("loading"),"..."]}):(0,n.jsx)(a.Z,{className:"px-2 py-1",children:w("documentInfo.noUserFound")}),displayName:e=>{var t,r,n,o;return(null==e?void 0:e.user)?"".concat(null!==(n=null===(t=e.user)||void 0===t?void 0:t.name)&&void 0!==n?n:""," ").concat(null!==(o=null===(r=e.user)||void 0===r?void 0:r.surname)&&void 0!==o?o:""):""},onInputChange:S,value:null!=c?c:null,className:v,color:x?"white":"primary",onChange:m,OptionsListProps:{className:"dark:bg-tertiary-sl06"},TextFieldProps:{isRequired:!0,hasValidation:!0,errorMessage:g,status:g?"error":void 0,endIcon:C||b?(0,n.jsx)(s.$,{className:"w-5 h-5 flex-shrink-0 border-[2px]"}):void 0},nameExtractor:e=>{var t,r,o,i,s,u,c,d,f,p,m,v,g;return{name:"".concat(null!==(d=null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.name)&&void 0!==d?d:""," ").concat(null!==(f=null==e?void 0:null===(r=e.user)||void 0===r?void 0:r.surname)&&void 0!==f?f:""),children:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(l.q,{src:(0,h.yo)(null==e?void 0:null===(o=e.user)||void 0===o?void 0:o.imageUrl),className:"w-4 h-4 flex-shrink-0 ",color:"primary",fallback:(0,h.t8)({name:null!==(p=null==e?void 0:null===(i=e.user)||void 0===i?void 0:i.name)&&void 0!==p?p:"",surname:null!==(m=null==e?void 0:null===(s=e.user)||void 0===s?void 0:s.surname)&&void 0!==m?m:""})}),(0,n.jsx)(a.Z,{children:"".concat(null!==(v=null==e?void 0:null===(u=e.user)||void 0===u?void 0:u.name)&&void 0!==v?v:""," ").concat(null!==(g=null==e?void 0:null===(c=e.user)||void 0===c?void 0:c.surname)&&void 0!==g?g:"")})]})}}})}},95243:function(e,t,r){"use strict";r.d(t,{r:function(){return m}});var n=r(31549),o=r(49421),i=r(28158),a=r(96697),s=r(87005),l=r(38495),u=r(27008),c=r(48583),d=r(14633),f=r.n(d),p=r(44194),h=r(45900);let m=e=>{let{value:t,onChange:r,className:d,placeholder:m,TextFieldProps:v,...g}=e,{t:y}=(0,u.$G)(),{isDarkMode:b}=(0,o.G)(),[w,x]=(0,p.useState)(""),_=(0,p.useCallback)(f()(e=>{x(e)},300,{leading:!0,trailing:!0}),[]),{data:E,isFetching:k}=(0,c.jlU)({filter:(0,h.Li)({where:{name:{contains:w,mode:"insensitive"}}})},{query:{select:e=>e.data,keepPreviousData:""!==w}});return(0,n.jsx)(i.F,{options:null!=E?E:[],placeholder:null!=m?m:y("editDocument.chooseUser"),emptyListContent:k?(0,n.jsxs)(a.Z,{className:"px-2 py-1",children:[y("loading"),"..."]}):(0,n.jsx)(a.Z,{className:"px-2 py-1",children:y("editDocument.noBankFound")}),displayName:e=>{var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""},onInputChange:_,value:null!=t?t:null,className:d,color:b?"white":"primary",onChange:r,OptionsListProps:{className:"dark:bg-tertiary-sl06"},TextFieldProps:{endIcon:k?(0,n.jsx)(s.$,{className:"w-5 h-5 flex-shrink-0 border-[2px]"}):(0,n.jsx)("div",{className:"w-5 flex-shrink-0"}),...v},nameExtractor:e=>{var t,r;return{name:null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"",children:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(l.q,{src:(0,h.yo)(null==e?void 0:e.imageUrl),className:"w-4 h-4",color:"primary",fallback:(0,h.Kc)(null==e?void 0:e.name)}),(0,n.jsx)(a.Z,{children:null!==(r=null==e?void 0:e.name)&&void 0!==r?r:""})]})}},...g})}},68597:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(31549),o=r(49421),i=r(58041),a=r(87005),s=r(27008),l=r(81599),u=r(44307),c=r(45900);let d={base:["sortDocument"],availbleCategories:()=>[...d.base,"availbleCategories"]},f=()=>(0,l.a)({queryKey:d.availbleCategories(),queryFn:()=>(0,u.tGz)({filter:(0,c.Li)({orderBy:{position:"asc"}})})});var p=e=>{let{label:t,placeholder:r,value:l,onChange:u,className:c,TextFieldProps:d,isLoading:p}=e,{t:h}=(0,s.$G)(),{isDarkMode:m}=(0,o.G)(),{data:v,isLoading:g}=f(),y=null==v?void 0:v.data;return(0,n.jsx)(i.P,{label:null!=t?t:h("global.section"),options:null!=y?y:[],nameExtractor:e=>(null==e?void 0:e.name)?h("categories.".concat(e.name)):"",placeholder:null!=r?r:h("global.select"),value:l,className:c,color:m?"white":"primary",onChange:e=>{u(e)},OptionsListProps:{className:"dark:bg-tertiary-sl12 dark:text-white"},TextFieldProps:{...d,...(p||g)&&{endIcon:(0,n.jsx)(a.$,{className:"w-5 h-5 border-[2px] flex-shrink-0 "})}}})}},91360:function(e,t,r){"use strict";r.d(t,{g:function(){return u}});var n=r(31549),o=r(49421),i=r(58041),a=r(9314),s=r(27008),l=r(51133);let u=e=>{let{value:t,onChange:r,className:u,placeholder:c,TextFieldProps:d,isDisabled:f,canRemoveSelectedValue:p,...h}=e,{t:m}=(0,s.$G)(),{isDarkMode:v}=(0,o.G)(),g=[{id:"1",name:m("global.nQuarter",{count:1})},{id:"2",name:m("global.nQuarter",{count:2})},{id:"3",name:m("global.nQuarter",{count:3})},{id:"4",name:m("global.nQuarter",{count:4})}];return(0,n.jsx)(i.P,{...h,color:v?"white":"primary",options:g,nameExtractor:e=>{var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""},isDisabled:f,placeholder:null!=c?c:m("global.select"),value:t?g.find(e=>e.id===t.toString()):{},onChange:e=>{null==r||r(Number(e.id))},className:u,OptionsListProps:{className:"dark:bg-tertiary-sl12"},TextFieldProps:{...p&&{endIcon:t?(0,n.jsx)("div",{className:"h-3 w-3 flex items-center justify-center relative",children:(0,n.jsx)(a.h,{variant:"text",color:v?"white":"black",size:"small",onPress:()=>{null==r||r(void 0)},className:"flex-shrink-0 absolute",children:(0,n.jsx)(l.J,{name:"close",size:12,label:m("iconLabels.removeFilter")})})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"w-3 h-3 flex items-center justify-center",children:(0,n.jsx)(l.J,{name:"▾-arrow-3",size:12,label:m("iconLabels.expand")})})})},...d}})}},2512:function(e,t,r){"use strict";r.d(t,{v:function(){return f}});var n=r(31549),o=r(49421),i=r(58041),a=r(87005),s=r(27008),l=r(81599),u=r(44307);let c={base:["documentTypesSubtypes"],availableTypeSubtypes:e=>{var t;return[...c.base,null!==(t=null==e?void 0:e.id)&&void 0!==t?t:""]}},d=e=>(0,l.a)({enabled:!!e,queryKey:c.availableTypeSubtypes(e),queryFn:()=>(0,u.TmN)(e.id)}),f=e=>{var t;let{documentType:r,value:l,onChange:u,className:c,label:f,placeholder:p,TextFieldProps:h,isDisabled:m}=e,{t:v}=(0,s.$G)(),{isDarkMode:g}=(0,o.G)(),{data:y,isLoading:b,fetchStatus:w}=d(r),x=null!==(t=null==y?void 0:y.data)&&void 0!==t?t:[];return(null==r?void 0:r.name)==="final"?(0,n.jsx)(i.P,{label:null!=f?f:"".concat(v("documents.attachmentType")," *"),color:g?"white":"primary",options:x,nameExtractor:e=>(null==e?void 0:e.name)?v("documentSubtype.".concat(e.name)):"",isDisabled:(null==x?void 0:x.length)===0||m,placeholder:null!=p?p:v("global.select"),value:null!=l?l:{},onChange:u,className:c,OptionsListProps:{className:"dark:bg-tertiary-sl12 z-[100] block"},TextFieldProps:{...h,...b&&"fetching"===w&&{endIcon:(0,n.jsx)(a.$,{className:"w-5 h-5 border-[2px] flex-shrink-0 "})}}}):null}},3419:function(e,t,r){"use strict";r.d(t,{q:function(){return f}});var n=r(31549),o=r(49421),i=r(58041),a=r(87005),s=r(27008),l=r(81599),u=r(44307);let c={base:["documentCategoriesTypes"],availableCategoryTypes:e=>{var t;return[...c.base,null!==(t=null==e?void 0:e.id)&&void 0!==t?t:""]}},d=e=>(0,l.a)({enabled:!!e,queryKey:c.availableCategoryTypes(e),queryFn:()=>(0,u.v3u)(e.id)}),f=e=>{var t;let{documentCategory:r,value:l,onChange:u,className:c,label:f,placeholder:p,TextFieldProps:h,isDisabled:m}=e,{t:v}=(0,s.$G)(),{isDarkMode:g}=(0,o.G)(),{data:y,isLoading:b,fetchStatus:w}=d(r),x=null!==(t=null==y?void 0:y.data)&&void 0!==t?t:[];return void 0===r||void 0===x||x.length>1||b?(0,n.jsx)(i.P,{label:null!=f?f:v("documents.identifiedAs"),color:g?"white":"primary",options:x,nameExtractor:e=>(null==e?void 0:e.name)?v("documentType.".concat(e.name)):"",isDisabled:(null==x?void 0:x.length)===0||m,placeholder:null!=p?p:v("global.select"),value:null!=l?l:{},onChange:u,className:c,OptionsListProps:{className:"dark:bg-tertiary-sl12 z-[100] block"},TextFieldProps:{...h,...b&&"fetching"===w&&{endIcon:(0,n.jsx)(a.$,{className:"w-5 h-5 border-[2px] flex-shrink-0 "})}}}):null}},19558:function(e,t,r){"use strict";r.d(t,{w:function(){return i}});var n=r(27008),o=r(44194);function i(){let{t:e}=(0,n.$G)();return(0,o.useCallback)((t,r)=>{switch(null==t?void 0:t.name){case"balanceSheets":return e("documentInfo.balanceSheetDate");case"fundings":return e("documents.extractionDate");case"businessPlans":return e("documents.writingDate");case"bankStatements":return e("documentInfo.bankStatementDate");case"societyDocuments":if((null==r?void 0:r.name)==="report")return e("documents.reportDate");if((null==r?void 0:r.name)==="indemnity")return e("documents.stipulationDate");if((null==r?void 0:r.name)==="certificateOfIncorporation")return e("documents.extractionDate");default:return e("global.date")}},[e])}},97095:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(27008),o=r(44194);function i(){let{t:e}=(0,n.$G)();return(0,o.useCallback)((t,r)=>{switch(null==t?void 0:t.name){case"fundings":return e("documents.selectAnExtractionDate");case"businessPlans":return e("documents.selectAWritingDate");case"societyDocuments":if((null==r?void 0:r.name)==="indemnity")return e("documents.selectAStipulationDate");if((null==r?void 0:r.name)==="certificateOfIncorporation")return e("documents.selectAnExtractionDate");default:return e("editDocument.selectAnIssueDate")}},[e])}},51133:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(31549),o=r(44194),i=r(57364);let a=({children:e,label:t})=>{let r=o.Children.only(e);return(0,o.createElement)(o.Fragment,null,(0,o.cloneElement)(r,{"aria-hidden":"true",focusable:"false"}),(0,o.createElement)(i.f,null,t))},s={help:"&#xe800","→-arrow-1":"&#xe801","→-arrow-2":"&#xe802","→-arrow-3":"&#xe803","→-arrow":"&#xe804","⍄-arrow-1":"&#xe805","⍄-arrow-2":"&#xe806","⍄-arrow-3":"&#xe807","⍄-arrow":"&#xe808","⍈-arrow-1":"&#xe809","⍈-arrow-2":"&#xe80a","⍈-arrow-3":"&#xe80b","⍈-arrow":"&#xe80c","▾-arrow-1":"&#xe80d","▾-arrow-2":"&#xe80e","▾-arrow-3":"&#xe80f","▾-arrow":"&#xe810",activity_bold:"&#xe811",activity_broken:"&#xe812",activity_bulk_01:"&#xe813",activity_bulk_02:"&#xe814",activity_outline:"&#xe815",activity_rounded:"&#xe816",activity_twocolors_01:"&#xe817",activity_twocolors_02:"&#xe818",add:"&#xe819",arrow_circle_broken_down:"&#xe81a",arrow_circle_broken_left:"&#xe81b",arrow_circle_broken_right:"&#xe81c",arrow_circle_broken_up:"&#xe81d",arrow_circle_bulk_01_down:"&#xe81e",arrow_circle_bulk_01_left:"&#xe81f",arrow_circle_bulk_01_right:"&#xe820",arrow_circle_bulk_01_up:"&#xe821",arrow_circle_bulk_02_down:"&#xe822",arrow_circle_bulk_02_left:"&#xe823",arrow_circle_bulk_02_right:"&#xe824",arrow_circle_bulk_02_up:"&#xe825",arrow_circle_outline_down:"&#xe826",arrow_circle_outline_left:"&#xe827",arrow_circle_outline_right:"&#xe828",arrow_circle_outline_up:"&#xe829",arrow_circle_twocolors_01_down:"&#xe82a",arrow_circle_twocolors_01_left:"&#xe82b",arrow_circle_twocolors_01_right:"&#xe82c",arrow_circle_twocolors_01_up:"&#xe82d",arrow_circle_twocolors_02_down:"&#xe82e",arrow_circle_twocolors_02_left:"&#xe82f",arrow_circle_twocolors_02_right:"&#xe830",arrow_circle_twocolors_02_up:"&#xe831",arrow_direction_broken_down:"&#xe832",arrow_direction_broken_left:"&#xe833",arrow_direction_broken_right:"&#xe834",arrow_direction_broken_up:"&#xe835",arrow_direction_bulk_01_down:"&#xe836",arrow_direction_bulk_01_left:"&#xe837",arrow_direction_bulk_01_right:"&#xe838",arrow_direction_bulk_01_up:"&#xe839",arrow_direction_bulk_02_down:"&#xe83a",arrow_direction_bulk_02_left:"&#xe83b",arrow_direction_bulk_02_right:"&#xe83c",arrow_direction_bulk_02_up:"&#xe83d",arrow_direction_outline_down:"&#xe83e",arrow_direction_outline_left:"&#xe83f",arrow_direction_outline_right:"&#xe840",arrow_direction_outline_up:"&#xe841",arrow_direction_twocolors_01_down:"&#xe842",arrow_direction_twocolors_01_left:"&#xe843",arrow_direction_twocolors_01_right:"&#xe844",arrow_direction_twocolors_01_up:"&#xe845",arrow_direction_twocolors_02_down:"&#xe846",arrow_direction_twocolors_02_left:"&#xe847",arrow_direction_twocolors_02_right:"&#xe848",arrow_direction_twocolors_02_up:"&#xe849",arrow_mini_broken_down:"&#xe84a",arrow_mini_broken_left:"&#xe84b",arrow_mini_broken_right:"&#xe84c",arrow_mini_broken_up:"&#xe84d",arrow_mini_bulk_01_down:"&#xe84e",arrow_mini_bulk_01_left:"&#xe84f",arrow_mini_bulk_01_right:"&#xe850",arrow_mini_bulk_01_up:"&#xe851",arrow_mini_bulk_02_down:"&#xe852",arrow_mini_bulk_02_left:"&#xe853",arrow_mini_bulk_02_right:"&#xe854",arrow_mini_bulk_02_up:"&#xe855",arrow_mini_outline_down:"&#xe856",arrow_mini_outline_left:"&#xe857",arrow_mini_outline_right:"&#xe858",arrow_mini_outline_up:"&#xe859",arrow_mini_twocolors_down:"&#xe85a",arrow_mini_twocolors_left:"&#xe85b",arrow_mini_twocolors_right:"&#xe85c",arrow_mini_twocolors_up:"&#xe85d",arrow_square_broken_down:"&#xe85e",arrow_square_broken_left:"&#xe85f",arrow_square_broken_right:"&#xe860",arrow_square_broken_up:"&#xe861",arrow_square_bulk_01_down:"&#xe862",arrow_square_bulk_01_left:"&#xe863",arrow_square_bulk_01_right:"&#xe864",arrow_square_bulk_01_up:"&#xe865",arrow_square_bulk_02_down:"&#xe866",arrow_square_bulk_02_left:"&#xe867",arrow_square_bulk_02_right:"&#xe868",arrow_square_bulk_02_up:"&#xe869",arrow_square_outline_down:"&#xe86a",arrow_square_outline_left:"&#xe86b",arrow_square_outline_right:"&#xe86c",arrow_square_outline_up:"&#xe86d",arrow_square_twocolors_01_down:"&#xe86e",arrow_square_twocolors_01_left:"&#xe86f",arrow_square_twocolors_01_right:"&#xe870",arrow_square_twocolors_01_up:"&#xe871",arrow_square_twocolors_02_down:"&#xe872",arrow_square_twocolors_02_left:"&#xe873",arrow_square_twocolors_02_right:"&#xe874",arrow_square_twocolors_02_up:"&#xe875",bed:"&#xe876",bell_bold:"&#xe877",bell_broken:"&#xe878",bell_bulk_01:"&#xe879",bell_bulk_02:"&#xe87a",bell_outline:"&#xe87b",bell_rounded:"&#xe87c",bell_twocolors_01:"&#xe87d",bell_twocolors_02:"&#xe87e",bolt:"&#xe87f",calendar_bold:"&#xe880",calendar_broken:"&#xe881",calendar_bulk_01:"&#xe882",calendar_bulk_02:"&#xe883",calendar_outline:"&#xe884",calendar_rounded:"&#xe885",calendar_twocolors_01:"&#xe886",calendar_twocolors_02:"&#xe887",call_bold_01:"&#xe888",call_bold_02:"&#xe889",call_bold_03:"&#xe88a",call_bold_04:"&#xe88b",call_broken_01:"&#xe88c",call_broken_02:"&#xe88d",call_broken_03:"&#xe88e",call_broken_04:"&#xe88f",call_bulk_01_01:"&#xe890",call_bulk_01_02:"&#xe891",call_bulk_01_03:"&#xe892",call_bulk_01_04:"&#xe893",call_bulk_02_01:"&#xe894",call_bulk_02_02:"&#xe895",call_bulk_02_03:"&#xe896",call_outline_01:"&#xe897",call_outline_02:"&#xe898",call_outline_03:"&#xe899",call_outline_04:"&#xe89a",call_rounded_01:"&#xe89b",call_rounded_02:"&#xe89c",call_rounded_03:"&#xe89d",call_rounded_04:"&#xe89e",call_twocolors_01_01:"&#xe89f",call_twocolors_01_02:"&#xe8a0",call_twocolors_01_03:"&#xe8a1",call_twocolors_01_04:"&#xe8a2",call_twocolors_02_01:"&#xe8a3",call_twocolors_02_02:"&#xe8a4",call_twocolors_02_03:"&#xe8a5",call_twocolors_02_04:"&#xe8a6",canc:"&#xe8a7",cart_bold:"&#xe8a8",cart_broken:"&#xe8a9",cart_bulk_01:"&#xe8aa",cart_bulk_02:"&#xe8ab",cart_outline:"&#xe8ac",cart_rounded:"&#xe8ad",cart_twocolors_01:"&#xe8ae",cart_twocolors_02:"&#xe8af",chart_bold_01:"&#xe8b0",chart_bold_02:"&#xe8b1",chart_broken_01:"&#xe8b2",chart_broken_02:"&#xe8b3",chart_bulk_01_01:"&#xe8b4",chart_bulk_01_02:"&#xe8b5",chart_bulk_02_01:"&#xe8b6",chart_bulk_02_02:"&#xe8b7",chart_outline_01:"&#xe8b8",chart_outline_02:"&#xe8b9",chart_rounded:"&#xe8ba",chart_twocolors_01_01:"&#xe8bb",chart_twocolors_01_02:"&#xe8bc",chart_twocolors_02_01:"&#xe8bd",chart_twocolors_02_02:"&#xe8be",chat_bold:"&#xe8bf",chat_broken:"&#xe8c0",chat_bulk_01:"&#xe8c1",chat_outline:"&#xe8c2",chat_rounded:"&#xe8c3",chat_twocolors_01:"&#xe8c4",clock_bold_01:"&#xe8c5",clock_bold_02:"&#xe8c6",clock_broken_01:"&#xe8c7",clock_broken_02:"&#xe8c8",clock_bulk_01_01:"&#xe8c9",clock_bulk_01_02:"&#xe8ca",clock_bulk_02_01:"&#xe8cb",clock_bulk_02_02:"&#xe8cc",clock_outline_01:"&#xe8cd",clock_outline_02:"&#xe8ce",clock_rounded_01:"&#xe8cf",clock_rounded_02:"&#xe8d0",clock_twocolors_01_01:"&#xe8d1",clock_twocolors_01_02:"&#xe8d2",clock_twocolors_02_01:"&#xe8d3",clock_twocolors_02_02:"&#xe8d4",close:"&#xe8d5",comunication_bold_01:"&#xe8d6",comunication_bold_02:"&#xe8d7",comunication_bold_03:"&#xe8d8",comunication_broken_01:"&#xe8d9",comunication_broken_02:"&#xe8da",comunication_broken_03:"&#xe8db",comunication_bulk_01_01:"&#xe8dc",comunication_bulk_01_02:"&#xe8dd",comunication_bulk_01_03:"&#xe8de",comunication_bulk_02_01:"&#xe8df",comunication_bulk_02_02:"&#xe8e0",comunication_bulk_02_03:"&#xe8e1",comunication_outline_01:"&#xe8e2",comunication_outline_02:"&#xe8e3",comunication_outline_03:"&#xe8e4",comunication_twocolors_01_01:"&#xe8e5",comunication_twocolors_01_02:"&#xe8e6",comunication_twocolors_01_03:"&#xe8e7",comunication_twocolors_02_01:"&#xe8e8",comunication_twocolors_02_02:"&#xe8e9",comunication_twocolors_02_03:"&#xe8ea",consumption:"&#xe8eb",delete_bold:"&#xe8ec",delete_broken:"&#xe8ed",delete_bulk_01:"&#xe8ee",delete_bulk_02:"&#xe8ef",delete_outline:"&#xe8f0",delete_rounded:"&#xe8f1",delete_twocolors_01:"&#xe8f2",delete_twocolors_02:"&#xe8f3",disable:"&#xe8f4",discount_bold:"&#xe8f5",discount_broken:"&#xe8f6",discount_bulk_01:"&#xe8f7",discount_bulk_02:"&#xe8f8",discount_outline:"&#xe8f9",discount_rounded:"&#xe8fa",discount_twocolors_01:"&#xe8fb",discount_twocolors_02:"&#xe8fc",discover_bold:"&#xe8fd",discover_broken:"&#xe8fe",discover_bulk_01:"&#xe8ff",discover_bulk_02:"&#xe900",discover_outline:"&#xe901",discover_rounded:"&#xe902",discover_twocolors_01:"&#xe903",discover_twocolors_02:"&#xe904",document_bold:"&#xe905",document_broken:"&#xe906",document_bulk_01:"&#xe907",document_bulk_02:"&#xe908",document_outline:"&#xe909",document_rounded:"&#xe90a",document_twocolors_01:"&#xe90b",document_twocolors_02:"&#xe90c",dollar:"&#xe90d","door-close":"&#xe90e","door-open":"&#xe90f",drop:"&#xe910",edit_bold_01:"&#xe911",edit_bold_02:"&#xe912",edit_broken_01:"&#xe913",edit_broken_02:"&#xe914",edit_bulk_01_01:"&#xe915",edit_bulk_01_02:"&#xe916",edit_bulk_02_01:"&#xe917",edit_bulk_02_02:"&#xe918",edit_outline_01:"&#xe919",edit_outline_02:"&#xe91a",edit_rounded:"&#xe91b",edit_twocolors_01_01:"&#xe91c",edit_twocolors_01_02:"&#xe91d",edit_twocolors_02_01:"&#xe91e",edit_twocolors_02_02:"&#xe91f",eye_bold_01:"&#xe920",eye_bold_02:"&#xe921",eye_broken_01:"&#xe922",eye_broken_02:"&#xe923",eye_bulk_01_01:"&#xe924",eye_bulk_01_02:"&#xe925",eye_bulk_02_01:"&#xe926",eye_bulk_02_02:"&#xe927",eye_outline_01:"&#xe928",eye_outline_02:"&#xe929",eye_rounded_01:"&#xe92a",eye_rounded_02:"&#xe92b",eye_twocolors_01_01:"&#xe92c",eye_twocolors_01_02:"&#xe92d",eye_twocolors_02_01:"&#xe92e",eye_twocolors_02_02:"&#xe92f",faq:"&#xe930",filters_bold:"&#xe931",filters_broken:"&#xe932",filters_bulk_01:"&#xe933",filters_bulk_02:"&#xe934",filters_outline:"&#xe935",filters_rounded:"&#xe936",filters_twocolors_01:"&#xe937",filters_twocolors_02:"&#xe938","filters-default":"&#xe939","filters-dot":"&#xe93a","filters-selection":"&#xe93b",fire:"&#xe93c",floppy_bold:"&#xe93d",floppy_broken:"&#xe93e",floppy_bulk_01:"&#xe93f",floppy_bulk_02:"&#xe940",floppy_outline:"&#xe941",floppy_rounded:"&#xe942",floppy_twocolors_01:"&#xe943",floppy_twocolors_02:"&#xe944",folder_bold:"&#xe945",folder_broken:"&#xe946",folder_bulk_01:"&#xe947",folder_bulk_02:"&#xe948",folder_outline:"&#xe949",folder_twocolors_01:"&#xe94a",folder_twocolors_02:"&#xe94b",game_bold:"&#xe94c",game_broken:"&#xe94d",game_bulk_01:"&#xe94e",game_bulk_02:"&#xe94f",game_outline:"&#xe950",game_rounded:"&#xe951",game_twocolors_01:"&#xe952",game_twocolors_02:"&#xe953",heart_bold:"&#xe954",heart_broken:"&#xe955",heart_bulk_01:"&#xe956",heart_bulk_02:"&#xe957",heart_outline:"&#xe958",heart_twocolors_01:"&#xe959",heart_twocolors_02:"&#xe95a",home_bold:"&#xe95b",home_broken:"&#xe95c",home_bulk_01:"&#xe95d",home_outline:"&#xe95e",home_rounded:"&#xe95f",home_twocolors_01:"&#xe960","id_verify-failed":"&#xe961","id_verify-finger":"&#xe962","id_verify-succes_01":"&#xe963","id_verify-succes_02":"&#xe964",image_bold:"&#xe965",image_broken:"&#xe966",image_bulk_01:"&#xe967",image_bulk_02:"&#xe968",image_outline:"&#xe969",image_rounded:"&#xe96a",image_twocolors_01:"&#xe96b",image_twocolors_02:"&#xe96c",info_ticket:"&#xe96d",key_bold:"&#xe96e",key_broken:"&#xe96f",key_bulk_01:"&#xe970",key_bulk_02:"&#xe971",key_outline:"&#xe972",key_rounded:"&#xe973",key_twocolors_01:"&#xe974",key_twocolors_02:"&#xe975",link_01:"&#xe976",link_02:"&#xe977",load_bold_01:"&#xe978",load_bold_02:"&#xe979",load_broken_01:"&#xe97a",load_broken_02:"&#xe97b",load_bulk_01_01:"&#xe97c",load_bulk_01_02:"&#xe97d",load_bulk_02_01:"&#xe97e",load_bulk_02_02:"&#xe97f",load_outline_01:"&#xe980",load_outline_02:"&#xe981",load_rounded_01:"&#xe982",load_rounded_02:"&#xe983",load_twocolors_01_01:"&#xe984",load_twocolors_01_02:"&#xe985",load_twocolors_02_01:"&#xe986",load_twocolors_02_02:"&#xe987",lock_bold_01:"&#xe988",lock_bold_02:"&#xe989",lock_broken_01:"&#xe98a",lock_broken_02:"&#xe98b",lock_bulk_01_01:"&#xe98c",lock_bulk_01_02:"&#xe98d",lock_bulk_02_01:"&#xe98e",lock_bulk_02_02:"&#xe98f",lock_outline_01:"&#xe990",lock_outline_02:"&#xe991",lock_rounded_01:"&#xe992",lock_rounded_02:"&#xe993",lock_twocolors_01_01:"&#xe994",lock_twocolors_01_02:"&#xe995",lock_twocolors_02_01:"&#xe996",lock_twocolors_02_02:"&#xe997",log_bold_01:"&#xe998",log_bold_02:"&#xe999",log_broken_01:"&#xe99a",log_broken_02:"&#xe99b",log_bulk_01_01:"&#xe99c",log_bulk_01_02:"&#xe99d",log_bulk_02_01:"&#xe99e",log_bulk_02_02:"&#xe99f",log_outline_01:"&#xe9a0",log_outline_02:"&#xe9a1",log_rounded_01:"&#xe9a2",log_rounded_02:"&#xe9a3",log_twocolors_01_01:"&#xe9a4",log_twocolors_01_02:"&#xe9a5",log_twocolors_02_01:"&#xe9a6",log_twocolors_02_02:"&#xe9a7",mail_bold:"&#xe9a8",mail_broken:"&#xe9a9",mail_bulk_01:"&#xe9aa",mail_bulk_02:"&#xe9ab",mail_outline:"&#xe9ac",mail_rounded:"&#xe9ad",mail_twocolors_01:"&#xe9ae",mail_twocolors_02:"&#xe9af","menu-default":"&#xe9b0","menu-dot":"&#xe9b1","menu-selection":"&#xe9b2",microphone_bold:"&#xe9b3",microphone_broken:"&#xe9b4",microphone_bulk_01:"&#xe9b5",microphone_bulk_02:"&#xe9b6",microphone_outline:"&#xe9b7",microphone_rounded:"&#xe9b8",microphone_twocolors_01:"&#xe9b9",microphone_twocolors_02:"&#xe9ba",more:"&#xe9bb",on_off:"&#xe9bc","open-full-screen_bold":"&#xe9bd","open-full-screen_broken":"&#xe9be","open-full-screen_bulk_01":"&#xe9bf","open-full-screen_bulk_02":"&#xe9c0","open-full-screen_outline":"&#xe9c1","open-full-screen_rounded":"&#xe9c2","open-full-screen_twocolors_01":"&#xe9c3","open-full-screen_twocolors_02":"&#xe9c4",organize_bold:"&#xe9c5",organize_broken:"&#xe9c6",organize_bulk_01:"&#xe9c7",organize_bulk_02:"&#xe9c8",organize_outline:"&#xe9c9",organize_rounded:"&#xe9ca",organize_twocolors_01:"&#xe9cb",organize_twocolors_02:"&#xe9cc",paper_bold_01:"&#xe9cd",paper_bold_02:"&#xe9ce",paper_bold_03:"&#xe9cf",paper_bold_04:"&#xe9d0",paper_bold_05:"&#xe9d1",paper_bold_06:"&#xe9d2",paper_bold_07:"&#xe9d3",paper_broken_01:"&#xe9d4",paper_broken_02:"&#xe9d5",paper_broken_03:"&#xe9d6",paper_broken_04:"&#xe9d7",paper_broken_05:"&#xe9d8",paper_broken_06:"&#xe9d9",paper_broken_07:"&#xe9da",paper_bulk_01_01:"&#xe9db",paper_bulk_01_02:"&#xe9dc",paper_bulk_01_03:"&#xe9dd",paper_bulk_01_04:"&#xe9de",paper_bulk_01_05:"&#xe9df",paper_bulk_01_06:"&#xe9e0",paper_bulk_01_07:"&#xe9e1",paper_bulk_02_01:"&#xe9e2",paper_bulk_02_02:"&#xe9e3",paper_bulk_02_03:"&#xe9e4",paper_bulk_02_04:"&#xe9e5",paper_bulk_02_05:"&#xe9e6",paper_bulk_02_06:"&#xe9e7",paper_bulk_02_07:"&#xe9e8",paper_outline_01:"&#xe9e9",paper_outline_02:"&#xe9ea",paper_outline_03:"&#xe9eb",paper_outline_04:"&#xe9ec",paper_outline_05:"&#xe9ed",paper_outline_06:"&#xe9ee",paper_outline_07:"&#xe9ef",paper_rounded_01:"&#xe9f0",paper_rounded_02:"&#xe9f1",paper_rounded_03:"&#xe9f2",paper_rounded_04:"&#xe9f3",paper_rounded_05:"&#xe9f4",paper_rounded_06:"&#xe9f5",paper_rounded_07:"&#xe9f6",paper_twocolors_01_01:"&#xe9f7",paper_twocolors_01_02:"&#xe9f8",paper_twocolors_01_03:"&#xe9f9",paper_twocolors_01_04:"&#xe9fa",paper_twocolors_01_05:"&#xe9fb",paper_twocolors_01_06:"&#xe9fc",paper_twocolors_01_07:"&#xe9fd",paper_twocolors_02_01:"&#xe9fe",paper_twocolors_02_02:"&#xe9ff",paper_twocolors_02_03:"&#xea00",paper_twocolors_02_04:"&#xea01",paper_twocolors_02_05:"&#xea02",paper_twocolors_02_06:"&#xea03",paper_twocolors_02_07:"&#xea04",photo_bold:"&#xea05",photo_broken:"&#xea06",photo_bulk_01:"&#xea07",photo_bulk_02:"&#xea08",photo_outline:"&#xea09",photo_rounded:"&#xea0a",photo_twocolors_01:"&#xea0b",photo_twocolors_02:"&#xea0c",pin_bold:"&#xea0d",pin_broken:"&#xea0e",pin_bulk_01:"&#xea0f",pin_bulk_02:"&#xea10",pin_outline:"&#xea11",pin_rounded:"&#xea12",pin_twocolors_01:"&#xea13",pin_twocolors_02:"&#xea14",play_bold:"&#xea15",play_broken:"&#xea16",play_bulk_01:"&#xea17",play_bulk_02:"&#xea18",play_outline:"&#xea19",play_rounded:"&#xea1a",play_twocolors_01:"&#xea1b",play_twocolors_02:"&#xea1c",profile_bold_01:"&#xea1d",profile_bold_02:"&#xea1e",profile_bold_03:"&#xea1f",profile_bold_04:"&#xea20",profile_broken_01:"&#xea21",profile_broken_02:"&#xea22",profile_broken_03:"&#xea23",profile_broken_04:"&#xea24",profile_bulk_01_01:"&#xea25",profile_bulk_01_02:"&#xea26",profile_bulk_01_03:"&#xea27",profile_bulk_01_04:"&#xea28",profile_bulk_02_01:"&#xea29",profile_bulk_02_02:"&#xea2a",profile_bulk_02_03:"&#xea2b",profile_bulk_02_04:"&#xea2c",profile_outline_01:"&#xea2d",profile_outline_02:"&#xea2e",profile_outline_03:"&#xea2f",profile_outline_04:"&#xea30",profile_rounded_01:"&#xea31",profile_rounded_02:"&#xea32",profile_rounded_03:"&#xea33",profile_rounded_04:"&#xea34",profile_twocolors_01_01:"&#xea35",profile_twocolors_01_02:"&#xea36",profile_twocolors_01_03:"&#xea37",profile_twocolors_01_04:"&#xea38",profile_twocolors_02_01:"&#xea39",profile_twocolors_02_02:"&#xea3a",profile_twocolors_02_03:"&#xea3b",profile_twocolors_02_04:"&#xea3c",remove:"&#xea3d","save-later_bold":"&#xea3e","save-later_broken":"&#xea3f","save-later_bulk_01":"&#xea40","save-later_bulk_02":"&#xea41","save-later_outline":"&#xea42","save-later_rounded":"&#xea43","save-later_twocolors_01":"&#xea44","save-later_twocolors_02":"&#xea45",scan_bold:"&#xea46",scan_broken:"&#xea47",scan_bulk_01:"&#xea48",scan_bulk_02:"&#xea49",scan_outline:"&#xea4a",scan_rounded:"&#xea4b",scan_twocolors_01:"&#xea4c",scan_twocolors_02:"&#xea4d",search_bold:"&#xea4e",search_broken:"&#xea4f",search_bulk_01:"&#xea50",search_bulk_02:"&#xea51",search_outline:"&#xea52",search_rounded:"&#xea53",search_twocolors_01:"&#xea54",search_twocolors_02:"&#xea55",send_bold:"&#xea56",send_broken:"&#xea57",send_bulk_01:"&#xea58",send_bulk_02:"&#xea59",send_outline:"&#xea5a",send_rounded:"&#xea5b",send_twocolors_01:"&#xea5c",send_twocolors_02:"&#xea5d",settings_bold:"&#xea5e",settings_broken:"&#xea5f",settings_bulk_01:"&#xea60",settings_bulk_02:"&#xea61",settings_outline:"&#xea62",settings_rounded:"&#xea63",settings_twocolors_01:"&#xea64",settings_twocolors_02:"&#xea65",shield_bold_01:"&#xea66",shield_bold_02:"&#xea67",shield_broken_01:"&#xea68",shield_broken_02:"&#xea69",shield_bulk_01_01:"&#xea6a",shield_bulk_01_02:"&#xea6b",shield_bulk_02_01:"&#xea6c",shield_bulk_02_02:"&#xea6d",shield_outline_01:"&#xea6e",shield_outline_02:"&#xea6f",shield_rounded_01:"&#xea70",shield_rounded_02:"&#xea71",shield_twocolors_01_01:"&#xea72",shield_twocolors_01_02:"&#xea73",shield_twocolors_02_01:"&#xea74",shield_twocolors_02_02:"&#xea75",shield:"&#xea76",shop_bold:"&#xea77",shop_broken:"&#xea78",shop_bulk_01:"&#xea79",shop_bulk_02:"&#xea7a",shop_outline:"&#xea7b",shop_twocolors_01:"&#xea7c",shop_twocolors_02:"&#xea7d",slash2:"&#xea7e",sound_bold_01:"&#xea7f",sound_bold_02:"&#xea80",sound_bold_03:"&#xea81",sound_broken_01:"&#xea82",sound_broken_02:"&#xea83",sound_broken_03:"&#xea84",sound_bulk_01_01:"&#xea85",sound_bulk_01_02:"&#xea86",sound_bulk_01_03:"&#xea87",sound_bulk_02_01:"&#xea88",sound_bulk_02_02:"&#xea89",sound_bulk_02_03:"&#xea8a",sound_outline_01:"&#xea8b",sound_outline_02:"&#xea8c",sound_outline_03:"&#xea8d",sound_rounded_01:"&#xea8e",sound_rounded_02:"&#xea8f",sound_rounded_03:"&#xea90",sound_twocolors_01_01:"&#xea91",sound_twocolors_01_02:"&#xea92",sound_twocolors_01_03:"&#xea93",sound_twocolors_02_01:"&#xea94",sound_twocolors_02_02:"&#xea95",sound_twocolors_02_03:"&#xea96",spinner:"&#xea97",star_bold:"&#xea98",star_broken:"&#xea99",star_bulk_01:"&#xea9a",star_bulk_02:"&#xea9b",star_outline:"&#xea9c",content_copy:"&#xea9d",sun:"&#xea9e",super_error:"&#xea9f",super_success:"&#xeaa0",swap_bold:"&#xeaa1",swap_broken:"&#xeaa2",swap_bulk_01:"&#xeaa3",swap_bulk_02:"&#xeaa4",swap_outline:"&#xeaa5",swap_twocolors_01:"&#xeaa6",swap_twocolors_02:"&#xeaa7",temperature_cold_snow:"&#xeaa8",tickets_bold_01:"&#xeaa9",tickets_bold_02:"&#xeaaa",tickets_broken_01:"&#xeaab",tickets_broken_02:"&#xeaac",tickets_bulk_01_01:"&#xeaad",tickets_bulk_01_02:"&#xeaae",tickets_bulk_02_01:"&#xeaaf",tickets_bulk_02_02:"&#xeab0",tickets_outline_01:"&#xeab1",tickets_outline_02:"&#xeab2",tickets_rounded_01:"&#xeab3",tickets_rounded_02:"&#xeab4",tickets_twocolors_01_01:"&#xeab5",tickets_twocolors_01_02:"&#xeab6",tickets_twocolors_02_01:"&#xeab7",tickets_twocolors_02_02:"&#xeab8",video_bold:"&#xeab9",video_broken:"&#xeaba",video_bulk_01:"&#xeabb",video_bulk_02:"&#xeabc",video_outline:"&#xeabd",video_rounded:"&#xeabe",video_twocolors_01:"&#xeabf",video_twocolors_02:"&#xeac0",wallet_bold:"&#xeac1",wallet_broken:"&#xeac2",wallet_bulk_01:"&#xeac3",wallet_bulk_02:"&#xeac4",wallet_outline:"&#xeac5",wallet_rounded:"&#xeac6",wallet_twocolors_01:"&#xeac7",wallet_twocolors_02:"&#xeac8",wash:"&#xeac9",world:"&#xeaca",success:"&#xeacb",statistics_bold:"&#xeacd",statistics_outline:"&#xeace",list_bold:"&#xeacf",list_outline:"&#xead0"},l=(0,o.forwardRef)((e,t)=>{let{name:r,twoColor:o,foreground:i,background:l,size:u=24,label:c,style:d,...f}=e;if(o){if(!i||!l)throw Error("missing foreground or background property");return(0,n.jsx)(a,{label:c,children:(0,n.jsxs)("div",{ref:t,style:{position:"relative",height:null!=u?u:24,width:null!=u?u:24,display:"inline-block",...d},...f,children:[(0,n.jsx)("i",{style:{position:"absolute",fontSize:null!=u?u:24,...null==i?void 0:i.style},className:null==i?void 0:i.className,dangerouslySetInnerHTML:{__html:null==s?void 0:s[(null==i?void 0:i.name)||"super_success"]}}),(0,n.jsx)("i",{style:{position:"absolute",fontSize:null!=u?u:24,...null==l?void 0:l.style},className:null==l?void 0:l.className,dangerouslySetInnerHTML:{__html:null==s?void 0:s[(null==l?void 0:l.name)||"super_success"]}})]})})}if(!r)throw Error("missing name property");return(0,n.jsx)(a,{label:c,children:(0,n.jsx)("i",{ref:t,dangerouslySetInnerHTML:{__html:null==s?void 0:s[r||"super_success"]},style:{fontSize:"".concat(null!=u?u:24,"px"),height:null!=u?u:24,width:null!=u?u:24,...d},...f})})});l.displayName="Icon"},67770:function(e,t,r){"use strict";r.d(t,{m:function(){return d}});var n=r(31549),o=r(56318),i=r(75516),a=r(95870),s=r(96697),l=r(44194),u=r(45900),c=r(88897);let d=e=>{let{afterLeave:t,open:r,className:d,children:f,header:p,footer:h,headerAction:m,DialogContainerProps:v,...g}=e,{className:y,...b}=v||{};return(0,u.DT)("md")?(0,n.jsx)(c.Z,{open:null!=r&&r,onSpringEnd:e=>{"CLOSE"===e.type&&(null==t||t())},onDismiss:()=>g.onClose(!1),header:(0,n.jsx)(s.Z,{variant:"subtitle1",className:"mt-4",children:p}),footer:h,children:(0,n.jsx)("div",{className:"max-md:py-4 md:p-6",children:f})}):(0,n.jsx)(o.u,{appear:!0,afterLeave:t,show:r,as:l.Fragment,children:(0,n.jsxs)(i.V,{className:(0,a.cn)("relative z-50",d),...g,children:[(0,n.jsx)(o.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-black/[0.54]"})}),(0,n.jsx)(o.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"ease-in duration-200",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,n.jsx)("div",{className:"fixed inset-0 flex items-center justify-end",children:(0,n.jsx)(i.V.Panel,{as:l.Fragment,children:(0,n.jsxs)("div",{...b,className:(0,a.cn)("relative px-16 pt-16 pb-6 flex gap-6 flex-col w-auto max-w-[75%] h-full bg-white dark:bg-tertiary rounded-l-3xl shadow-xl",y),children:["string"==typeof p?(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(s.Z,{variant:"h6",children:p}),m]}):p,(0,n.jsx)("div",{className:"flex-1 overflow-auto childrenContainer",children:f}),h]})})})})]})})}},28510:function(e,t,r){"use strict";r.d(t,{q:function(){return d}});var n=r(31549),o=r(96697),i=r(83503),a=r(95145),s=JSON.parse('{"v":"5.0.1","fr":10,"ip":0,"op":20,"w":800,"h":600,"ddd":0,"assets":[],"layers":[{"ind":3,"nm":"Layer 3","ks":{"p":{"a":1,"k":[{"t":0,"s":[456.419,423.252,0],"to":[-161.825,-53.536,0],"ti":[-62.867,94.219,0],"i":{"x":[0.15],"y":[0.86]},"o":{"x":[0.785],"y":[0.135]},"e":[371.703,167.513,0]},{"t":10,"s":[371.703,167.513,0],"to":[0,0,0],"ti":[0,0,0],"i":{"x":[0.15],"y":[0.86]},"o":{"x":[0.785],"y":[0.135]},"e":[456.419,423.252,0]},{"t":20,"s":[456.419,423.252,0]}]},"a":{"a":0,"k":[-24.5,-24.5,0]},"s":{"a":0,"k":[100,100,100]},"r":{"a":0,"k":-43.065},"o":{"a":0,"k":100}},"ao":0,"ip":0,"op":20,"st":0,"bm":3,"sr":1,"ty":4,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[210.919,210.919]},"p":{"a":0,"k":[0,0]}},{"ty":"fl","c":{"a":0,"k":[0,0.698,1,1]},"hd":false,"o":{"a":0,"k":100},"r":1},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"nm":"Object","hd":false}]},{"ind":2,"nm":"Layer 2","ks":{"p":{"a":1,"k":[{"t":0,"s":[361.777,165.918,0],"to":[0,0,0],"ti":[0,0,0],"i":{"x":[0.15],"y":[0.86]},"o":{"x":[0.785],"y":[0.135]},"e":[214.784,406.838,0]},{"t":10,"s":[214.784,406.838,0],"to":[-83.035,-34.503,0],"ti":[0,0,0],"i":{"x":[0.15],"y":[0.86]},"o":{"x":[0.785],"y":[0.135]},"e":[361.777,165.918,0]},{"t":20,"s":[361.777,165.918,0]}]},"a":{"a":0,"k":[-66.5,-66.5,0]},"s":{"a":0,"k":[100,100,100]},"r":{"a":0,"k":-43.065},"o":{"a":0,"k":100}},"ao":0,"ip":0,"op":20,"st":0,"bm":3,"sr":1,"ty":4,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[236,236]},"p":{"a":0,"k":[0,0]}},{"ty":"fl","c":{"a":0,"k":[0.012,0,0.38,1]},"hd":false,"o":{"a":0,"k":100},"r":1},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"nm":"Object","hd":false}]},{"ind":1,"nm":"Layer 1","ks":{"p":{"a":1,"k":[{"t":0,"s":[263.776,342.564,0],"to":[0,0,0],"ti":[0,0,0],"i":{"x":[0.15],"y":[0.86]},"o":{"x":[0.785],"y":[0.135]},"e":[545.716,355.446,0]},{"t":10,"s":[545.716,355.446,0],"to":[-7.345,74.699,0],"ti":[0,0,0],"i":{"x":[0.15],"y":[0.86]},"o":{"x":[0.785],"y":[0.135]},"e":[263.776,342.564,0]},{"t":20,"s":[263.776,342.564,0]}]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[100,100,100]},"r":{"a":0,"k":-43.065},"o":{"a":0,"k":100}},"ao":0,"ip":0,"op":20,"st":0,"bm":3,"sr":1,"ty":4,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[150.135,150.135]},"p":{"a":0,"k":[0,0]}},{"ty":"fl","c":{"a":0,"k":[0.298,0.255,0.714,1]},"hd":false,"o":{"a":0,"k":100},"r":1},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"nm":"Object","hd":false}]}],"markers":[]}'),l=r(90702);let u=r.n(l)()(()=>Promise.all([r.e(7255),r.e(2652)]).then(r.t.bind(r,82652,23)),{loadableGenerated:{webpack:()=>[82652]},ssr:!1}),c=e=>{let{open:t,description:r}=e;return(0,n.jsx)(a.Z,{open:t,onClose:()=>{},className:"w-[400px] h-[380px] max-h-full",children:(0,n.jsxs)("div",{className:"flex items-center justify-center flex-col w-full h-full",children:[(0,n.jsx)(u,{animationData:s,loop:!0}),(0,n.jsx)(o.Z,{className:"mt-4",children:r})]})})},d=i.rf.create(e=>{let{visible:t}=(0,i.A2)();return(0,n.jsx)(c,{open:t,...e})})},84264:function(e,t,r){"use strict";r.d(t,{z:function(){return h}});var n=r(31549),o=r(49421),i=r(28158),a=r(96697),s=r(87005),l=r(48583),u=r(14633),c=r.n(u),d=r(27008),f=r(44194),p=r(45900);let h=e=>{let{value:t,onChange:r,label:u,placeholder:h,error:m,className:v,description:g,TextFieldProps:y}=e,{t:b}=(0,d.$G)(),{isDarkMode:w}=(0,o.G)(),[x,_]=(0,f.useState)(""),E=(0,f.useCallback)(c()(e=>{_(e)},300,{leading:!0,trailing:!0}),[]),{data:k,isFetching:S}=(0,l.mMk)({filter:(0,p.Li)({where:{name:{contains:x,mode:"insensitive"}}})},{query:{select:e=>e.data,keepPreviousData:""!==x}});return(0,n.jsx)(i.F,{label:null!=u?u:b("company.companyName"),options:null!=k?k:[],placeholder:null!=h?h:b("company.companyName"),emptyListContent:S?(0,n.jsxs)(a.Z,{className:"px-2 py-1",children:[b("loading"),"..."]}):(0,n.jsx)(a.Z,{className:"px-2 py-1",children:b("company.noCompanyFound")}),displayName:e=>{var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""},onInputChange:E,value:null!=t?t:null,className:v,color:w?"white":"primary",onChange:r,OptionsListProps:{className:"dark:bg-tertiary-sl06"},TextFieldProps:{isRequired:!0,hasValidation:!0,errorMessage:m,description:g,status:m?"error":void 0,endIcon:S?(0,n.jsx)(s.$,{className:"w-5 h-5 flex-shrink-0 border-[2px]"}):void 0,...y},nameExtractor:e=>{var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""}})}},95145:function(e,t,r){"use strict";var n=r(31549),o=r(49421),i=r(9314),a=r(17981),s=r(95870),l=r(27008),u=r(79892),c=r(45900),d=r(88897),f=r(51133);t.Z=e=>{let{children:t,header:r,footer:p,className:h,onClose:m,open:v,hasCloseIcon:g}=e,{isBrowser:y}=(0,u.c1)(),{isDarkMode:b}=(0,o.G)(),{t:w}=(0,l.$G)(),x=(0,c.DT)("md");if(!y)return null;let _=(0,n.jsx)(i.h,{onPress:m,variant:"text",color:b?"white":"black",className:"flex items-center justify-center [&>span]:w-5 [&>span]:h-5",children:(0,n.jsx)(f.J,{name:"close",label:w("global.close"),size:20})});return x?(0,n.jsx)(d.Z,{open:v,onDismiss:m,header:"function"==typeof r?r(_):r,footer:p,className:h,children:(0,n.jsx)("div",{className:"px-6 pt-2",children:t})}):(0,n.jsx)(a.Vq,{open:v,onClose:m,children:(0,n.jsxs)(a.EM,{className:(0,s.cn)("dark:bg-tertiary flex flex-col max-h-[80vh]",h),children:[g&&(0,n.jsx)("div",{className:"w-full flex justify-end pb-4",children:_}),r&&(0,n.jsx)(a.$N,{children:(0,n.jsx)("div",{className:"w-full pb-4",children:"function"==typeof r?r(_):r})}),(0,n.jsx)(a.Be,{children:(0,n.jsx)("div",{className:"flex-1 overflow-auto min-h-0",children:t})}),p&&(0,n.jsx)("div",{className:"w-full pt-8",children:p})]})})}},88864:function(e,t,r){"use strict";r.d(t,{V:function(){return ew}});var n=r(31549),o=r(25263),i=r(83503),a=r(39233),s=r(48594),l=r(14236),u=r(44307),c=r(27008),d=r(44194),f=r(67770),p=r(49421),h=r(91652),m=r(9314),v=r(94218),g=r(4766),y=r(61848),b=r(72537),w=r(51133),x=r(63111),_=r(18924),E=r(41058),k=r(96697),S=r(63567),O=r(45900),T=r(48583),C=r(33135),N=r(16717);let D=(0,C.Ue)()(e=>({hasStartedSorting:!1,documentsDraft:[],resetStore:()=>e({documentsDraft:[],hasStartedSorting:!1,lastOpenedPreviewDocumentStatus:void 0}),editLastOpenedPreviewDocumentStatus:t=>{e({lastOpenedPreviewDocumentStatus:t})},editDocument:(t,r)=>e(e=>({hasStartedSorting:!0,documentsDraft:e.documentsDraft.map(e=>e.baseDocument.id===t?{...e,draft:{...e.draft,...r,metadata:{...e.draft.metadata,...r.metadata}}}:e)})),resetDocumentDraft:t=>e(e=>({documentsDraft:e.documentsDraft.map(e=>e.baseDocument.id===t?{...e,draft:{...e.baseDocument}}:e)})),addDocument:t=>e(e=>({documentsDraft:[...e.documentsDraft,{draft:{...t},baseDocument:t,errorFields:{}}]})),removeDocument:t=>e(e=>({documentsDraft:e.documentsDraft.filter(e=>e.baseDocument.id!==t)})),editErrorFields:(t,r)=>e(e=>({documentsDraft:e.documentsDraft.map(e=>e.baseDocument.id===t?{...e,errorFields:r}:e)}))})),P=e=>{let{documents:t,selectedCategory:r,selectedType:n,selectedSubtype:o,prefilledFields:i,request:a,relatedCompany:s}=e,{platformType:l}=(0,O.uz)(),{data:u}=(0,T.xLE)({query:{select:e=>e.data}});(0,d.useEffect)(()=>{var e,l,u;if(D.getState().documentsDraft.length>0)return;let c=O.UG.get(O.nK),d=(null==c?void 0:c.length)===1,f=(null!==(u=null==r?void 0:null===(e=r.types)||void 0===e?void 0:e.length)&&void 0!==u?u:0)>1?n:null==r?void 0:null===(l=r.types)||void 0===l?void 0:l[0];D.setState({documentsDraft:t.map(e=>{var t;let n=(null==a?void 0:a.requestedDocumentCategory)||r,l=null!==(t=null!=s?s:e.company)&&void 0!==t?t:d?c[0]:void 0;return{baseDocument:e,hasFilledCompanyFromFilter:d&&!s&&!e.company,draft:{...e,categoryId:(null==a?void 0:a.requestedDocumentCategoryId)||(null==r?void 0:r.id),category:n,typeId:(null==a?void 0:a.requestedDocumentTypeId)||(null==f?void 0:f.id),type:(null==a?void 0:a.requestedDocumentType)||f,subtypeId:null==o?void 0:o.id,subtype:o,company:l,companyId:null==l?void 0:l.id,...((null==n?void 0:n.name)==="businessPlans"||(null==n?void 0:n.name)==="fundings")&&{issueDate:new Date().toISOString()},...i},errorFields:{}}})})},[t,i,r,n,o,a,s])},R=()=>D(e=>e.editDocument),j=e=>D(t=>{var r;return null===(r=t.documentsDraft.find(t=>t.baseDocument.id===e))||void 0===r?void 0:r.draft},N.X),A=e=>D(t=>{var r;return null===(r=t.documentsDraft.find(t=>t.baseDocument.id===e))||void 0===r?void 0:r.baseDocument},N.X),F=e=>D(t=>{var r;return null===(r=t.documentsDraft.find(t=>t.baseDocument.id===e))||void 0===r?void 0:r.errorFields},N.X),L=()=>D.getState().documentsDraft,I=e=>{D.getState().resetDocumentDraft(e)},M=()=>D(e=>e.removeDocument),q=()=>D(e=>e.documentsDraft.map(e=>e.baseDocument.id),N.X),z=()=>(0,d.useCallback)((e,t)=>{var r;let n=null===(r=D.getState().documentsDraft.find(t=>t.baseDocument.id===e))||void 0===r?void 0:r.errorFields;D.getState().editErrorFields(e,{...n,...t})},[]);function V(e){D.getState().editLastOpenedPreviewDocumentStatus(e)}function U(e){let t=(0,O.u2)(),{t:r}=(0,c.$G)(),n=M();return(0,S.D)({mutationFn:()=>Promise.all(L().map(async e=>{try{var o,i,a,l,c,d,f,p,h,m,v,y,b,w,x;let r=t(e.draft),s=Object.keys(r).some(e=>r[e]),_=e.draft,E=s?{}:{typeId:null===(o=_.type)||void 0===o?void 0:o.id,categoryId:null===(i=_.category)||void 0===i?void 0:i.id,subtypeId:null===(a=_.subtype)||void 0===a?void 0:a.id,expirationDate:_.expirationDate,issueDate:_.issueDate,metadata:_.metadata,bankId:null===(l=_.bank)||void 0===l?void 0:l.id,relatedToId:null===(c=_.relatedTo)||void 0===c?void 0:c.id,quarter:_.quarter,fiscalCode:null==_?void 0:_.fiscalCode,isCrSendEmailPdf:null==_?void 0:_.isCrSendEmailPdf,...(null===(d=_.dateSpan)||void 0===d?void 0:d.from)!=null||(null===(f=_.dateSpan)||void 0===f?void 0:f.to)!=null?{dateSpan:{from:(null===(p=_.dateSpan)||void 0===p?void 0:p.from)?g.ou.fromISO(null===(h=_.dateSpan)||void 0===h?void 0:h.from).toISODate():void 0,to:(null===(m=_.dateSpan)||void 0===m?void 0:m.to)?g.ou.fromISO(null===(v=_.dateSpan)||void 0===v?void 0:v.to).toISODate():void 0}}:{}},k=(null===(y=e.draft.category)||void 0===y?void 0:y.name)!=="centralRisk"&&(null===(b=e.draft.category)||void 0===b?void 0:b.name)!=="bankStatements";if(!s){let t=await (0,u.lbn)(e.baseDocument.id,{name:_.name,notes:_.notes,isVisibleToCompany:_.isVisibleToCompany,isVisibleToManagers:!!k&&_.isVisibleToManagers,visibleToIds:k&&null!==(x=null===(w=_.visibleTo)||void 0===w?void 0:w.map(e=>{var t,r;return null!==(r=null===(t=e.user)||void 0===t?void 0:t.id)&&void 0!==r?r:""}))&&void 0!==x?x:void 0,companyId:_.companyId,...E});return n(e.draft.id),t}}catch(t){(0,s.yv)({message:r("upload.errorSortigDocument",{name:e.draft.name}),variant:"error"})}})),onSuccess:t=>{e(t.reduce((e,t)=>(t&&e.push(t.data),e),[]))}})}let $=o.ZP.create(e=>{let{onSuccess:t,onCancel:r}=e,{t:i}=(0,c.$G)(),{visible:s,hide:l}=(0,o.dd)(),{isDarkMode:u}=(0,p.G)(),d=U(e=>{null==t||t(e),l()}),f=()=>{d.isLoading||(l(),null==r||r())};return(0,n.jsx)(E.i,{className:"dark:bg-tertiary-sl06 text-center max-w-sm",open:s,onClose:f,title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.h,{variant:"text",onPress:f,color:u?"white":"black",className:"self-end",children:(0,n.jsx)(w.J,{name:"close",label:i("global.close")})}),(0,n.jsx)(k.Z,{variant:"h6",children:i("chat.notAllSentDocumentsWillBeSorted")})]}),description:(0,n.jsx)(k.Z,{className:"dark:text-white/[0.74]",children:i("chat.notAllSentDocumentsWillBeSortedDescription")}),positiveButton:(0,n.jsxs)("div",{className:"flex gap-4 flex-col w-full",children:[(0,n.jsx)(a.z,{variant:"outlined",color:"primary",isLoading:d.isLoading,onPress:()=>{d.mutate()},className:"flex-1",children:i("chat.goOnAndDontSortAllDocuments")}),(0,n.jsx)(a.z,{variant:"contained",color:"primary",className:"min-w-[106px]",onPress:()=>{f()},isDisabled:d.isLoading,children:i("chat.cancelAndGoBackToSorting")})]})})});var H=r(95145);let K=o.ZP.create(e=>{let{onSuccess:t,onCancel:r}=e,{t:i}=(0,c.$G)(),{visible:s,hide:l}=(0,o.dd)(),{isDarkMode:u}=(0,p.G)(),d=U(e=>{null==t||t(e),l()}),f=()=>{d.isLoading||(l(),null==r||r())};return(0,n.jsx)(H.Z,{className:"dark:bg-tertiary-sl06 text-center max-w-sm",open:s,onClose:f,header:(0,n.jsx)(k.Z,{variant:"h6",children:i("upload.nottAllDocumentsSortedTitle")}),footer:(0,n.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,n.jsx)(a.z,{variant:"outlined",isLoading:d.isLoading,onPress:()=>{d.mutate()},className:"flex-1",children:i("global.keepGoing")}),(0,n.jsx)(a.z,{variant:"contained",color:"primary",className:"min-w-[106px]",onPress:()=>{f()},isDisabled:d.isLoading,children:i("global.cancel")})]}),children:(0,n.jsx)("div",{className:"leading-[1]",children:(0,n.jsx)(k.Z,{className:"dark:text-white/[0.74] leading-normal",children:i("upload.notAllDocumentsSortedDescription")})})})}),B={deleteDocumentDialog:{id:"delete-document-dialog",component:_.M},notAllDocumentsWillBeSortedDialog:{id:"not-all-documents-will-be-sorted-dialog",component:K},unsavedEditsDialog:{id:"unsaved-sorts-edits-dialog",component:x.DK},notAllSentDocumentsWillBeSortedDialog:{id:"not-all-sent-documents-will-be-sorted-dialog",component:$}};var W=r(1892),Z=r(87005),G=r(95243),Y=r(91360),Q=e=>{var t,r,o;let{documentId:i,isLoading:a}=e,{t:s,i18n:l}=(0,c.$G)(),u=j(i),d=R(),f=z(),p=F(i);return(null==u?void 0:u.category)&&(null==u?void 0:u.category.name)==="bankStatements"?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:(0,n.jsx)(G.r,{label:(0,n.jsxs)("div",{children:[s("global.bank")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(t=u.automaticallyFilledFields)||void 0===t?void 0:t.includes("bank"))?" ".concat(s("global.aiPowered")):""})]}),value:u.bank,placeholder:s("global.select"),onChange:e=>{var t;d(i,{bank:e,automaticallyFilledFields:null===(t=u.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"bank"!==e)}),f(i,{bank:!1})},TextFieldProps:{hasValidation:!0,isRequired:!0,status:(null==p?void 0:p.bank)?"error":void 0,errorMessage:(null==p?void 0:p.bank)?s("editDocument.insertABank"):void 0}})}),(0,n.jsx)(W.q,{value:u.issueDate?g.ou.fromISO(u.issueDate).toJSDate():void 0,endIcon:a?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,onChange:e=>{var t;d(i,{issueDate:g.ou.fromJSDate(e).endOf("year").toISO(),automaticallyFilledFields:null===(t=u.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"issueDate"!==e)}),f(i,{issueDate:!1})},customValue:u.issueDate?g.ou.fromISO(u.issueDate).toFormat("yyyy"):void 0,CalendarProps:{locale:l.language,maxDetail:"decade"},hasValidation:!0,status:(null==p?void 0:p.issueDate)?"error":void 0,errorMessage:(null==p?void 0:p.issueDate)?s("editDocument.selectAnIssueDate"):void 0,placeholder:s("editDocument.yearOnlyPlaceholder"),isRequired:!0,label:(0,n.jsxs)("div",{children:[s("global.date")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(r=u.automaticallyFilledFields)||void 0===r?void 0:r.includes("issueDate"))?" ".concat(s("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3"}),(0,n.jsx)(Y.g,{label:(0,n.jsxs)("div",{children:[s("global.quarter")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(o=u.automaticallyFilledFields)||void 0===o?void 0:o.includes("quarter"))?" ".concat(s("global.aiPowered")):""})]}),placeholder:s("editDocument.selectAQuarter"),value:u.quarter,onChange:e=>{var t;d(i,{quarter:e,automaticallyFilledFields:null===(t=u.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"quarter"!==e)}),f(i,{quarter:!1})},TextFieldProps:{hasValidation:!0,status:(null==p?void 0:p.quarter)?"error":void 0,errorMessage:(null==p?void 0:p.quarter)?s("editDocument.selectAQuarter"):void 0}})]}):null},J=e=>{var t;let{documentId:r,isLoading:o}=e,{t:i,i18n:a}=(0,c.$G)(),s=j(r),l=R(),u=z(),d=F(r);return(null==s?void 0:s.category)&&(null==s?void 0:s.category.name)==="balanceSheets"?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(W.q,{value:s.issueDate?g.ou.fromISO(s.issueDate).toJSDate():void 0,endIcon:o?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,onChange:e=>{if(e){var t;l(r,{issueDate:g.ou.fromJSDate(e).endOf("month").toISO(),automaticallyFilledFields:null===(t=s.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"issueDate"!==e)}),u(r,{issueDate:!1})}},customValue:s.issueDate?g.ou.fromISO(s.issueDate).toFormat("MM/yyyy"):void 0,CalendarProps:{locale:a.language,maxDetail:"year"},hasValidation:!0,status:(null==d?void 0:d.issueDate)?"error":void 0,errorMessage:(null==d?void 0:d.issueDate)?i("editDocument.selectAnIssueDate"):void 0,placeholder:i("global.monthAndYearPlaceholder"),isRequired:!0,label:(0,n.jsxs)("div",{children:[i("global.date")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(t=s.automaticallyFilledFields)||void 0===t?void 0:t.includes("issueDate"))?" ".concat(i("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3"})}):null},X=e=>{var t;let{documentId:r,isLoading:o}=e,{t:i,i18n:a}=(0,c.$G)(),s=j(r),l=R(),u=z(),d=F(r);return(null==s?void 0:s.category)&&(null==s?void 0:s.category.name)==="businessPlans"?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(W.q,{value:s.issueDate?g.ou.fromISO(s.issueDate).toJSDate():void 0,endIcon:o?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,onChange:e=>{var t;l(r,{issueDate:null==e?void 0:e.toISOString(),automaticallyFilledFields:null===(t=s.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"issueDate"!==e)}),u(r,{issueDate:!1})},CalendarProps:{locale:a.language},isRequired:!0,placeholder:i("dayMonthAndYearPlaceholder"),label:(0,n.jsxs)("div",{children:[i("documents.writingDate")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(t=s.automaticallyFilledFields)||void 0===t?void 0:t.includes("issueDate"))?" ".concat(i("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3",hasValidation:!0,status:(null==d?void 0:d.issueDate)?"error":void 0,errorMessage:(null==d?void 0:d.issueDate)?i("documents.selectAWritingDate"):void 0})}):null},ee=r(35716),et=e=>{var t,r,o,i,a,s,l,u,d,f,h,m;let{documentId:y,isLoading:b}=e,{t:w,i18n:x}=(0,c.$G)(),_=j(y),E=R(),S=z(),T=F(y),{platformType:C}=(0,O.uz)(),{isDarkMode:N}=(0,p.G)();if(!(null==_?void 0:_.category)||(null==_?void 0:_.category.name)!=="centralRisk")return null;let D=(null===(t=_.dateSpan)||void 0===t?void 0:t.from)?g.ou.fromISO(null===(r=_.dateSpan)||void 0===r?void 0:r.from):void 0,P=(null===(o=_.dateSpan)||void 0===o?void 0:o.to)?g.ou.fromISO(null===(i=_.dateSpan)||void 0===i?void 0:i.to):void 0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{}),(0,n.jsx)(W.q,{value:(null===(a=_.dateSpan)||void 0===a?void 0:a.from)?g.ou.fromISO(null===(s=_.dateSpan)||void 0===s?void 0:s.from).toJSDate():void 0,endIcon:b?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,hasValidation:!0,onChange:e=>{var t,r;E(y,{dateSpan:{from:g.ou.fromJSDate(e).startOf("month").toISO(),to:null===(t=_.dateSpan)||void 0===t?void 0:t.to},automaticallyFilledFields:null===(r=_.automaticallyFilledFields)||void 0===r?void 0:r.filter(e=>"dateSpan"!==e)})},customValue:D?D.toFormat("MM/yyyy"):void 0,CalendarProps:{locale:x.language,maxDetail:"year"},placeholder:w("global.monthAndYearPlaceholder"),label:(0,n.jsxs)("div",{children:[w("editDocument.fromDate"),(0,n.jsx)("span",{className:"text-green-500",children:(null===(l=_.automaticallyFilledFields)||void 0===l?void 0:l.includes("dateSpan"))?" ".concat(w("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3"}),(0,n.jsx)(W.q,{value:(null===(u=_.dateSpan)||void 0===u?void 0:u.to)?g.ou.fromISO(null===(d=_.dateSpan)||void 0===d?void 0:d.to).toJSDate():void 0,endIcon:b?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,onChange:e=>{var t,r;E(y,{dateSpan:{from:null===(t=_.dateSpan)||void 0===t?void 0:t.from,to:g.ou.fromJSDate(e).endOf("month").toISO()},automaticallyFilledFields:null===(r=_.automaticallyFilledFields)||void 0===r?void 0:r.filter(e=>"dateSpan"!==e)}),S(y,{dateSpan:!1})},customValue:P?P.toFormat("MM/yyyy"):void 0,CalendarProps:{locale:x.language,maxDetail:"year"},hasValidation:!0,status:(null==T?void 0:T.dateSpan)?"error":void 0,errorMessage:(null==T?void 0:T.dateSpan)?w(D&&P&&D>P?"editDocument.fromDateCannotBeGreaterThanToDate":"editDocument.insertADateToContinue"):void 0,placeholder:w("global.monthAndYearPlaceholder"),isRequired:!0,label:(0,n.jsxs)("div",{children:[w("editDocument.toDate")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(f=_.automaticallyFilledFields)||void 0===f?void 0:f.includes("dateSpan"))?" ".concat(w("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3"}),(0,n.jsx)(v.n,{value:(null==_?void 0:_.fiscalCode)?null==_?void 0:_.fiscalCode:"",isReadOnly:!0,isDisabled:!0,onChange:e=>{var t;E(y,{fiscalCode:null==_?void 0:_.fiscalCode,automaticallyFilledFields:null===(t=_.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"fiscalCode"!==e)}),S(y,{fiscalCode:!1})},hasValidation:!0,status:(null==T?void 0:T.fiscalCode)?"error":void 0,errorMessage:(null==T?void 0:T.fiscalCode)?"Il codice fiscale letto dalla CR \xe8 diverso da quello dell'azienda":void 0,placeholder:w("global.fiscalCode"),label:(0,n.jsxs)("div",{children:[w("editDocument.fiscalCode")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(h=_.automaticallyFilledFields)||void 0===h?void 0:h.includes("fiscalCode"))?" ".concat(w("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3 "+((null==T?void 0:T.fiscalCode)?"":"hidden")}),(0,n.jsx)("div",{className:"",children:"advisor"===C&&(0,n.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,n.jsx)(ee.r,{checked:null===(m=_.isCrSendEmailPdf)||void 0===m||m,onChange:e=>{E(y,{isCrSendEmailPdf:e})},color:N?"white":"primary"}),(0,n.jsx)(k.Z,{variant:"body2",className:"flex-1",children:w("documents.sendCrPdfByEmail")})]})})]})},er=r(84264),en=e=>{var t;let{documentId:r,relatedCompany:o}=e,{t:i}=(0,c.$G)(),a=j(r),s=D(e=>{var t;return null===(t=e.documentsDraft.find(e=>e.baseDocument.id===r))||void 0===t?void 0:t.hasFilledCompanyFromFilter},N.X),l=R(),u=z(),f=F(r),{platformType:p}=(0,O.uz)(),[h,m]=(0,d.useState)(!1);return"bank"===p?null:(0,n.jsxs)(n.Fragment,{children:[o?(0,n.jsx)(v.n,{label:i("company.companyToUpload"),isReadOnly:!0,value:null!==(t=o.name)&&void 0!==t?t:"",hasValidation:!0}):(0,n.jsx)(er.z,{TextFieldProps:{className:s&&!h?"[&_.TextField-inputContainer]:border-loading":""},description:s&&!h?"Il campo \xe8 stato precompilato dal filtro applicato nella sezione repository":void 0,value:null==a?void 0:a.company,onChange:e=>{m(!0),l(r,{company:e,companyId:null==e?void 0:e.id,relatedTo:void 0,relatedToId:void 0}),u(r,{company:!1})},label:"".concat(i("company.companyToUpload")," *"),error:(null==f?void 0:f.company)?i("company.selectACompany"):void 0}),(0,n.jsx)("div",{})]})},eo=e=>{var t;let{documentId:r}=e,{t:o}=(0,c.$G)(),i=j(r),a=R(),s=z(),l=F(r);return i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.n,{isRequired:!0,label:"".concat(o("documents.documentName")," *"),value:null!==(t=i.name)&&void 0!==t?t:"",onChange:e=>{a(r,{name:e.target.value}),s(r,{name:!1})},hasValidation:!0,errorMessage:(null==l?void 0:l.name)?o("editDocument.documentNameCantBeEmpty"):void 0,status:(null==l?void 0:l.name)?"error":void 0,className:"mt-1"}),(0,n.jsx)("div",{})]}):null},ei=e=>{var t;let{documentId:r,isLoading:o}=e,{t:i,i18n:a}=(0,c.$G)(),s=j(r),l=R(),u=z(),d=F(r);return(null==s?void 0:s.category)&&(null==s?void 0:s.category.name)==="fundings"?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(W.q,{value:s.issueDate?g.ou.fromISO(s.issueDate).toJSDate():void 0,endIcon:o?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,onChange:e=>{var t;l(r,{issueDate:null==e?void 0:e.toISOString(),automaticallyFilledFields:null===(t=s.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"issueDate"!==e)}),u(r,{issueDate:!1})},CalendarProps:{locale:a.language},hasValidation:!0,isRequired:!0,status:(null==d?void 0:d.issueDate)?"error":void 0,errorMessage:(null==d?void 0:d.issueDate)?i("documents.selectAnExtractionDate"):void 0,placeholder:i("dayMonthAndYearPlaceholder"),label:(0,n.jsxs)("div",{children:[i("documents.extractionDate")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(t=s.automaticallyFilledFields)||void 0===t?void 0:t.includes("issueDate"))?" ".concat(i("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3"})}):null},ea=r(70501),es=e=>{var t,r;let{documentId:o,isLoading:i}=e,{t:a,i18n:s}=(0,c.$G)(),l=j(o),u=R(),d=z(),f=F(o);return(null==l?void 0:l.category)&&(null==l?void 0:l.category.name)==="identityDocuments"?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W.q,{value:l.expirationDate?g.ou.fromISO(l.expirationDate).toJSDate():void 0,onChange:e=>{var t;u(o,{expirationDate:null==e?void 0:e.toISOString(),automaticallyFilledFields:null===(t=l.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"expirationDate"!==e)}),d(o,{expirationDate:!1})},CalendarProps:{locale:s.language},endIcon:i?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,isRequired:!0,placeholder:a("dayMonthAndYearPlaceholder"),label:(0,n.jsxs)("div",{children:[a("global.expirationAt")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(t=l.automaticallyFilledFields)||void 0===t?void 0:t.includes("expirationDate"))?" ".concat(a("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3",hasValidation:!0,status:(null==f?void 0:f.expirationDate)?"error":void 0,errorMessage:(null==f?void 0:f.expirationDate)?a("editDocument.selectAnExpiringDate"):void 0}),(0,n.jsx)(ea.S,{isLoading:i,value:l.relatedTo,onChange:e=>{var t;u(o,{relatedTo:e,automaticallyFilledFields:null===(t=l.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"relatedTo"!==e)}),d(o,{relatedTo:!1})},label:(0,n.jsxs)("div",{children:[a("global.user")," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(r=l.automaticallyFilledFields)||void 0===r?void 0:r.includes("relatedTo"))?" ".concat(a("global.aiPowered")):""})]}),companyId:l.companyId,error:(null==f?void 0:f.relatedTo)?a("editDocument.idOwner"):void 0})]}):null},el=r(19558),eu=r(97095),ec=e=>{var t,r,o,i;let{documentId:a,isLoading:s}=e,{t:l,i18n:u}=(0,c.$G)(),d=j(a),f=R(),p=z(),h=F(a),m=(0,eu.h)(),v=(0,el.w)();return(null==d?void 0:d.category)&&(null==d?void 0:d.category.name)==="societyDocuments"&&((null===(t=d.type)||void 0===t?void 0:t.name)==="indemnity"||(null===(r=d.type)||void 0===r?void 0:r.name)==="report"||(null===(o=d.type)||void 0===o?void 0:o.name)==="certificateOfIncorporation")?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(W.q,{value:d.issueDate?g.ou.fromISO(d.issueDate).toJSDate():void 0,endIcon:s?(0,n.jsx)(Z.$,{className:"h-5 w-5 flex-shrink-0 border-[2px]"}):void 0,onChange:e=>{var t;f(a,{issueDate:null==e?void 0:e.toISOString(),automaticallyFilledFields:null===(t=d.automaticallyFilledFields)||void 0===t?void 0:t.filter(e=>"issueDate"!==e)}),p(a,{issueDate:!1})},CalendarProps:{locale:u.language},isRequired:!0,placeholder:l("dayMonthAndYearPlaceholder"),label:(0,n.jsxs)("div",{children:[v(d.category,d.type)," *",(0,n.jsx)("span",{className:"text-green-500",children:(null===(i=d.automaticallyFilledFields)||void 0===i?void 0:i.includes("issueDate"))?" ".concat(l("global.aiPowered")):""})]}),className:"z-[51] dark:bg-tertiary-sl12 mt-3",hasValidation:!0,status:(null==h?void 0:h.issueDate)?"error":void 0,errorMessage:(null==h?void 0:h.issueDate)?m(d.category,d.type):void 0})}):null},ed=r(68597),ef=r(2512),ep=r(3419);let eh=e=>{var t,r,o;let{documentId:i,request:a,isLoading:s}=e,l=j(i),u=R(),d=z(),f=F(i),{t:p}=(0,c.$G)();return l?a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.n,{label:p("global.section"),isReadOnly:!0,value:p("categories.".concat(null===(t=a.requestedDocumentCategory)||void 0===t?void 0:t.name)),hasValidation:!0}),(0,n.jsx)(v.n,{label:p("documents.identifiedAs"),isReadOnly:!0,value:p("documentType.".concat(null===(r=a.requestedDocumentType)||void 0===r?void 0:r.name)),hasValidation:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ed.Z,{isLoading:s,TextFieldProps:{hasValidation:!0,errorMessage:(null==f?void 0:f.category)?p("editDocument.selectACategory"):void 0,status:(null==f?void 0:f.category)?"error":void 0,isRequired:!0},label:(0,n.jsxs)("div",{children:[p("global.section")," *",(0,n.jsx)("span",{className:"text-green-500",children:l.hasBeenAutomaticallyClassified?" ".concat(p("global.aiPowered")):""})]}),value:null!==(o=l.category)&&void 0!==o?o:{id:"other",name:""},onChange:e=>{var t,r,n;let o=(null!==(n=null===(t=e.types)||void 0===t?void 0:t.length)&&void 0!==n?n:0)>1?void 0:null===(r=e.types)||void 0===r?void 0:r[0],a=l.company;I(i),u(i,{category:{...e},categoryId:e.id,type:o,typeId:null==o?void 0:o.id,company:a,companyId:null==a?void 0:a.id,name:l.name,notes:l.notes,isVisibleToCompany:l.isVisibleToCompany,isVisibleToManagers:l.isVisibleToManagers,visibleTo:l.visibleTo,hasBeenAutomaticallyClassified:!1,..."fundings"===e.name&&{issueDate:new Date().toISOString()},..."businessPlans"===e.name&&{issueDate:new Date().toISOString()}}),d(i,{category:!1,type:!1,issueDate:!1,expirationDate:!1,bank:!1,relatedTo:!1})}}),(0,n.jsx)(ep.q,{label:(0,n.jsxs)("div",{children:["".concat(p("documents.identifiedAs")," *"),(0,n.jsx)("span",{className:"text-green-500",children:l.hasBeenAutomaticallyClassified?" ".concat(p("global.aiPowered")):""})]}),TextFieldProps:{hasValidation:!0,errorMessage:(null==f?void 0:f.type)?p("editDocument.selectAType"):void 0,status:(null==f?void 0:f.type)?"error":void 0,isRequired:!0},documentCategory:l.category,value:l.type,onChange:e=>{var t,r,n;u(i,{type:e,typeId:e.id,...(null===(t=l.category)||void 0===t?void 0:t.name)==="societyDocuments"&&"certificateOfIncorporation"!==e.name&&{issueDate:void 0},...(null===(r=l.category)||void 0===r?void 0:r.name)==="societyDocuments"&&"certificateOfIncorporation"===e.name&&{issueDate:g.ou.now().toISO()},hasBeenAutomaticallyClassified:!1}),d(i,{type:!1,...(null===(n=l.category)||void 0===n?void 0:n.name)==="societyDocuments"&&{issueDate:!1}})}}),(0,n.jsx)(ef.v,{label:(0,n.jsxs)("div",{children:["".concat(p("documents.attachmentType")," *"),(0,n.jsx)("span",{className:"text-green-500",children:l.hasBeenAutomaticallyClassified?" ".concat(p("global.aiPowered")):""})]}),TextFieldProps:{hasValidation:!0,errorMessage:(null==f?void 0:f.subtype)?p("editDocument.selectAnAttachmentType"):void 0,status:(null==f?void 0:f.subtype)?"error":void 0,isRequired:!0},documentType:l.type,value:l.subtype,onChange:e=>{var t;u(i,{subtype:e,subtypeId:e.id,hasBeenAutomaticallyClassified:!1}),d(i,{subtype:!1,...(null===(t=l.category)||void 0===t?void 0:t.name)==="societyDocuments"&&{issueDate:!1}})}})]}):null};var em=r(91490),ev=e=>{var t,r;let{documentId:o}=e,i=j(o),a=R(),s=(null==i?void 0:null===(t=i.category)||void 0===t?void 0:t.name)==="bankStatements"||(null==i?void 0:null===(r=i.category)||void 0===r?void 0:r.name)==="centralRisk";return(0,d.useEffect)(()=>{a(o,{isVisibleToManagers:!s})},[]),(0,n.jsx)(em.s,{isVisibleToCompany:null==i?void 0:i.isVisibleToCompany,isVisibleToManagers:!s,visibleTo:null==i?void 0:i.visibleTo,onChange:e=>{let{visibleTo:t,isVisibleToCompany:r,isVisibleToManagers:n}=e;a(o,{visibleTo:t,isVisibleToCompany:r,isVisibleToManagers:n})},canChangeVisibilityToManagers:!s,companyId:null==i?void 0:i.companyId,className:"md:col-span-2 pt-4"})},eg=e=>{var t;let{documentId:r}=e,{t:o,i18n:i}=(0,c.$G)(),a=j(r),s=R(),l=z(),u=F(r);return(null==a?void 0:a.category)&&(null==a?void 0:a.category.name)==="taxReturns"?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W.q,{value:a.issueDate?g.ou.fromISO(a.issueDate).toJSDate():void 0,onChange:e=>{e&&(s(r,{issueDate:g.ou.fromJSDate(e).endOf("year").toISO()}),l(r,{issueDate:!1}))},customValue:a.issueDate?g.ou.fromISO(a.issueDate).toFormat("yyyy"):void 0,CalendarProps:{locale:i.language,maxDetail:"decade"},hasValidation:!0,isRequired:!0,status:(null==u?void 0:u.issueDate)?"error":void 0,errorMessage:(null==u?void 0:u.issueDate)?o("editDocument.selectAnIssueDate"):void 0,placeholder:o("editDocument.yearOnlyPlaceholder"),label:"".concat(o("global.date")," *"),className:"z-[51] dark:bg-tertiary-sl12 mt-3"}),(null===(t=a.type)||void 0===t?void 0:t.name)==="personalReturn"&&(0,n.jsx)(ea.S,{value:a.relatedTo,onChange:e=>{s(r,{relatedTo:e}),l(r,{relatedTo:!1})},companyId:a.companyId,error:(null==u?void 0:u.relatedTo)?o("editDocument.selectAUser"):void 0})]}):null},ey=e=>{var t,r;let{documentId:o,request:s,relatedCompany:l}=e,f=j(o),x=A(o),_=R(),{pushModalByComponent:E}=(0,i.Ty)(),{isDarkMode:k}=(0,p.G)(),{t:S}=(0,c.$G)(),O=!s,{data:T,isLoading:C}=(0,u.WKA)(o,{query:{select:e=>e.data,enabled:O,staleTime:1/0}}),{data:N,isLoading:P}=(0,u.xRA)(o,{classifiedAs:null!==(t=null==T?void 0:T.classifiedAs)&&void 0!==t?t:""},{query:{select:e=>e.data,enabled:!!(O&&(null==T?void 0:T.classifiedAs)),staleTime:1/0}}),F=(0,d.useRef)(null);return((0,d.useEffect)(()=>{let e=D.getState().lastOpenedPreviewDocumentStatus;(null==e?void 0:e.id)===o&&(setTimeout(()=>{y.NY.scrollTo(e.scrollPosition,{duration:0,containerId:"sort-documents-scroll-container",ignoreCancelEvents:!0,isDynamic:!0})},0),V(void 0))},[]),(0,d.useEffect)(()=>{if((null==T?void 0:T.category)&&(null==T?void 0:T.type)&&!(null==f?void 0:f.category)){var e,t,r;_(o,{category:null==T?void 0:T.category,categoryId:null==T?void 0:null===(e=T.category)||void 0===e?void 0:e.id,type:null==T?void 0:T.type,typeId:null==T?void 0:null===(t=T.type)||void 0===t?void 0:t.id,subtype:null==T?void 0:T.subtype,subtypeId:null==T?void 0:null===(r=T.subtype)||void 0===r?void 0:r.id,hasBeenAutomaticallyClassified:!0})}},[T]),(0,d.useEffect)(()=>{var e,t,r,n,i,a,s;let l=null!==(e=null==f?void 0:f.automaticallyFilledFields)&&void 0!==e?e:[];if(N){if((null==N?void 0:N.al)&&(null==N?void 0:N.da)&&(_(o,{dateSpan:{from:N.da,to:N.al}}),l.push("dateSpan")),(null==N?void 0:N.cf)&&(_(o,{fiscalCode:null==N?void 0:N.cf.substring(5)}),l.push("fiscalCode")),N.data){if((null==f?void 0:null===(r=f.category)||void 0===r?void 0:r.name)=="identityDocuments")_(o,{expirationDate:N.data}),l.push("expirationDate");else{let e=N.data;((null==f?void 0:null===(n=f.category)||void 0===n?void 0:n.name)==="balanceSheets"&&(null==f?void 0:null===(i=f.type)||void 0===i?void 0:i.name)!=="temporary"||(null==f?void 0:null===(a=f.category)||void 0===a?void 0:a.name)==="balanceSheets"&&4===N.data.length)&&(e=null!==(s=g.ou.fromISO(e).endOf("year").toISO())&&void 0!==s?s:""),_(o,{issueDate:e}),l.push("issueDate")}}if(N.companyEmployee&&(_(o,{relatedTo:N.companyEmployee}),l.push("relatedTo")),(null==f?void 0:null===(t=f.category)||void 0===t?void 0:t.name)==="bankStatements"){let e=N.data;e&&(_(o,{quarter:Math.ceil(g.ou.fromISO(e).month/3)}),l.push("quarter"))}N.bank&&(_(o,{bank:N.bank}),l.push("bank"))}_(o,{automaticallyFilledFields:l})},[N]),f)?(0,n.jsxs)("div",{ref:F,id:o,className:"flex flex-col dark:bg-white/[0.12] gap-2  rounded-2xl p-4",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,n.jsx)(h.u,{className:"z-[100]",title:S("documents.viewDocument"),children:(0,n.jsx)(a.z,{onPress:()=>{var e,t,r;V({id:o,scrollPosition:null!==(r=null===(t=F.current)||void 0===t?void 0:null===(e=t.parentElement)||void 0===e?void 0:e.scrollTop)&&void 0!==r?r:0}),E(b.s,{document:f})},startIcon:(0,n.jsx)(w.J,{name:"paper_outline_07",className:"dark:text-white",label:S("iconLabels.document")}),className:"mr-auto min-w-0",color:k?"white":"black",variant:"text",children:(0,n.jsx)("span",{className:"truncate",children:f.name})})}),(0,n.jsx)(m.h,{onPress:()=>{i.rf.show(B.deleteDocumentDialog.id,{documentId:f.id})},variant:"text",color:k?"white":"black",children:(0,n.jsx)(w.J,{name:"delete_outline",label:S("iconLabels.deleteDocument")})})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-4 items-end",children:[(0,n.jsx)(en,{documentId:o,relatedCompany:null!=l?l:null==x?void 0:x.company}),(0,n.jsx)(eo,{documentId:o}),(0,n.jsx)(eh,{documentId:o,request:s,isLoading:O&&C}),(0,n.jsx)(ec,{documentId:o,isLoading:O&&P}),(0,n.jsx)(es,{documentId:o,isLoading:O&&P}),(0,n.jsx)(ei,{documentId:o,isLoading:O&&P}),(0,n.jsx)(J,{documentId:o,isLoading:O&&P}),(0,n.jsx)(X,{documentId:o,isLoading:O&&P}),(0,n.jsx)(et,{documentId:o,isLoading:P}),(0,n.jsx)(Q,{documentId:o,isLoading:O&&P}),(0,n.jsx)(eg,{documentId:o}),(0,n.jsx)(v.n,{className:"md:col-span-2",value:null!==(r=f.notes)&&void 0!==r?r:"",onChange:e=>{_(o,{notes:e.target.value})},label:S("global.notes"),multiline:!0,rows:3,placeholder:S("global.insertNotes")}),(0,n.jsx)(ev,{documentId:o})]})]}):null};let eb=()=>{let e=(0,l.NL)(),t=(0,O.u2)();return(0,d.useCallback)(()=>{let r=L(),n={};r.forEach(e=>{var r,o,i;let a=t(e.draft);if(Object.keys(a).some(e=>a[e])){n.inbox=!0;return}e.draft.typeId&&(n[e.draft.typeId]=!0),(e.draft.expirationDate||(null===(r=e.draft.dateSpan)||void 0===r?void 0:r.to))&&g.ou.fromISO(null!==(i=e.draft.expirationDate)&&void 0!==i?i:null===(o=e.draft.dateSpan)||void 0===o?void 0:o.to)<=g.ou.now().plus({days:30})&&(n.expiringAndExpired=!0)}),Object.keys(n).forEach(t=>{"inbox"!==t&&"expiringAndExpired"!==t&&(e.invalidateQueries((0,u.lZ)(t)),e.invalidateQueries((0,u.o5N)(t))),"inbox"===t&&e.invalidateQueries((0,u.iTr)())})},[e,t])},ew=i.rf.create(e=>{let{initialDocuments:t,selectedCategory:r,selectedType:p,selectedSubtype:h,onCancel:m,onSuccess:v,request:g,prefilledFields:y,isInChat:b,relatedCompany:w}=e,{t:x}=(0,c.$G)(),{visible:_}=(0,i.A2)(),{dismissModal:E}=(0,i.Ty)(),k=function(){let e=M();return(0,d.useCallback)(t=>(0,u.g6n)(t).then(()=>{e(t)}),[e])}();P({documents:t,selectedCategory:r,selectedType:p,selectedSubtype:h,request:g,prefilledFields:y,relatedCompany:w});let S=q(),T=(0,l.NL)(),C=eb(),[N,R]=(0,d.useState)(!0),j=(0,d.useCallback)(e=>{null==v||v(e),N&&(C(),E(),z.current=!0)},[E,C,v,N]),A=U(e=>{j(e)}),{validateSortDocuments:F}=function(){let e=(0,O.u2)();return{validateSortDocuments:(0,d.useCallback)(()=>{let t=D.getState().documentsDraft.map(t=>{let{draft:r}=t,n=e(r);return{documentId:r.id,errorFields:n}});return{areAllValids:!t.some(e=>{let{errorFields:t}=e;return Object.values(t).some(e=>e)}),errors:t}},[e])}}(),I=(0,d.useCallback)(()=>{let{errors:e,areAllValids:t}=F();if(R(t),!t){if(b)o.ZP.show(B.notAllSentDocumentsWillBeSortedDialog.id);else{let t=D.getState().editErrorFields;e.forEach(e=>{let{documentId:r,errorFields:n}=e;t(r,n)})}}A.mutate()},[b,j,A,F]),z=(0,d.useRef)(!1),V=(0,d.useCallback)(()=>{E(),null==m||m(),z.current=!0,T.invalidateQueries((0,u.iTr)())},[E,m,T]),$=(0,d.useCallback)(()=>{if(!A.isLoading){if(b){i.rf.show(B.notAllSentDocumentsWillBeSortedDialog.id);return}V()}},[b,V,A.isLoading]);return(0,n.jsx)(f.m,{header:x("documents.sortDocuments"),afterLeave:()=>{z.current&&(D.getState().resetStore(),z.current=!1)},open:_,onClose:$,footer:(0,n.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,n.jsx)(a.z,{onPress:$,isDisabled:A.isLoading,variant:"outlined",color:"white",children:x("documents.laterSorting")}),(0,n.jsx)(a.z,{isLoading:A.isLoading,variant:"contained",color:"primary",className:"min-w-[176px]",onPress:()=>{I()},children:x("documents.confirmSorting")})]}),DialogContainerProps:{className:"w-2/3 xl:w-1/2"},children:(0,n.jsxs)("div",{id:"sort-documents-scroll-container",className:"h-full flex flex-col gap-2 overflow-auto max-md:px-6",children:[S.map(e=>(0,n.jsx)(ey,{documentId:e,request:g,relatedCompany:w},e)),(0,d.createElement)(B.deleteDocumentDialog.component,{id:B.deleteDocumentDialog.id,onDelete:async e=>{await k(e),0===L().length&&((0,s.yv)({message:x("editDocument.allDocumentsHaveBeenDeleted"),variant:"success"}),$())}}),(0,d.createElement)(B.notAllDocumentsWillBeSortedDialog.component,{id:B.notAllDocumentsWillBeSortedDialog.id}),(0,d.createElement)(B.unsavedEditsDialog.component,{id:B.unsavedEditsDialog.id,onSuccess:()=>{V()}}),(0,d.createElement)(B.notAllSentDocumentsWillBeSortedDialog.component,{id:B.notAllSentDocumentsWillBeSortedDialog.id,onCancel:()=>{let{errors:e}=F(),t=D.getState().editErrorFields;e.forEach(e=>{let{documentId:r,errorFields:n}=e;t(r,n)})},onSuccess:e=>{j(e)}})]})})})},63111:function(e,t,r){"use strict";r.d(t,{DK:function(){return h},wx:function(){return p}});var n=r(31549),o=r(25263),i=r(41058),a=r(96697),s=r(39233),l=r(83503),u=r(27008),c=r(45900),d=r(88897);let f=e=>{let{onClose:t,open:r,onCancel:o,onSuccess:l}=e,{t:f}=(0,u.$G)();return(0,c.DT)("md")?(0,n.jsxs)(d.Z,{open:r,className:"min-h-[320px]",children:[(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsx)(a.Z,{variant:"subtitle1",className:"text-center",children:f("global.wantToExitWithoutSaving")}),(0,n.jsx)(a.Z,{variant:"body2",className:"dark:text-white/[0.74] text-center mt-4 mb-6",children:f("global.wantToExitWithoutSavingDescription")})]}),(0,n.jsxs)("div",{className:"flex gap-2 p-3",children:[(0,n.jsx)(s.z,{variant:"outlined",color:"primary",onPress:()=>{null==l||l(),t()},className:"flex-1",children:f("global.exitWithoutSaving")}),(0,n.jsx)(s.z,{color:"primary",className:"flex-1",onPress:()=>{null==o||o(),t()},children:f("global.goBack")})]})]}):(0,n.jsx)(i.i,{open:r,onClose:t,className:"dark:bg-tertiary w-[360px] !z-[100000000]",title:(0,n.jsx)(a.Z,{variant:"h6",className:"text-center",children:f("global.wantToExitWithoutSaving")}),icon:(0,n.jsx)("span",{}),description:(0,n.jsx)(a.Z,{className:"dark:text-white/[0.74] text-center",children:f("global.wantToExitWithoutSavingDescription")}),negativeButton:(0,n.jsx)(s.z,{variant:"outlined",color:"primary",onPress:()=>{null==l||l(),t()},className:"flex-1",children:f("global.exitWithoutSaving")}),positiveButton:(0,n.jsx)(s.z,{color:"primary",className:"flex-1",onPress:()=>{null==o||o(),t()},children:f("global.goBack")})})},p=l.rf.create(e=>{let{visible:t}=(0,l.A2)(),{popModal:r}=(0,l.Ty)();return(0,n.jsx)(f,{...e,open:t,onClose:r})}),h=l.rf.create(e=>{let{visible:t,hide:r}=(0,o.dd)();return(0,n.jsx)(f,{...e,open:t,onClose:r})})},18924:function(e,t,r){"use strict";r.d(t,{M:function(){return f}});var n=r(31549),o=r(25263),i=r(48594),a=r(96697),s=r(39233),l=r(63567),u=r(27008),c=r(45900),d=r(95145);let f=o.ZP.create(e=>{let{documentId:t,onDelete:r}=e,{visible:f,hide:p}=(0,o.dd)(),{t:h}=(0,u.$G)(),m=(0,l.D)({mutationFn:e=>null==r?void 0:r(e),onSuccess:()=>{p()},onError:e=>{(0,i.yv)((0,c.mo)(e),{variant:"error"})}}),v=()=>{m.isLoading||p()};return(0,n.jsx)(d.Z,{className:"dark:bg-tertiary-sl06 text-center max-w-sm",open:f,onClose:v,header:(0,n.jsx)(a.Z,{variant:"h6",children:h("documents.doYouReallyWantToDeleteThisDocument")}),footer:(0,n.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,n.jsx)(s.z,{variant:"outlined",color:"white",isDisabled:m.isLoading,onPress:v,children:h("global.cancel")}),(0,n.jsx)(s.z,{variant:"contained",color:"error",className:"flex-1",isLoading:m.isLoading,onPress:()=>{t&&m.mutate(t)},children:h("global.delete")})]}),children:(0,n.jsx)(a.Z,{className:"dark:text-white/[0.74] leading-normal",children:h("documents.deletingDocumentActionIsIrreversible")})})})},90862:function(e,t,r){"use strict";r.d(t,{_:function(){return V}});var n=r(31549),o=r(83503),i=r(39233),a=r(48594),s=r(95870),l=r(14236),u=r(44307),c=r(27008),d=r(44194),f=r(45900),p=r(67770),h=r(88864),m=r(63111),v=r(33135),g=r(16717);let y=(0,v.Ue)()(e=>({documentsToUpload:[],addDocumentToUpload:t=>e(e=>({documentsToUpload:[...e.documentsToUpload,t]})),removeDocumentToUpload:t=>e(e=>({documentsToUpload:e.documentsToUpload.filter(e=>e.id!==t)})),updateDocumentToUpload:(t,r)=>e(e=>({documentsToUpload:e.documentsToUpload.map(e=>e.id===t?{...e,...r}:e)})),bulkAddDocumentToUpload:t=>e(e=>({documentsToUpload:[...e.documentsToUpload,...t]})),bulkRemoveDocumentToUpload:t=>e(e=>({documentsToUpload:e.documentsToUpload.filter(e=>!t.includes(e.id))})),clearDocumentsToUpload:()=>e(e=>({documentsToUpload:[]}))}));function b(){return y(e=>e.documentsToUpload.map(e=>e.id),g.X)}function w(){return y(e=>e.removeDocumentToUpload)}var x=r(49421),_=r(96697),E=r(77616),k=r(9314),S=r(51133),O=r(63567),T=r(64649);let C=(0,v.Ue)()(e=>({uploadedDocuments:[],addUploadedDocument:t=>e(e=>({uploadedDocuments:[...e.uploadedDocuments,t]})),removeUploadedDocument:t=>e(e=>({uploadedDocuments:e.uploadedDocuments.filter(e=>e.id!==t)})),clearUploadedDocuments:()=>e(e=>({uploadedDocuments:[]}))})),N=()=>C(e=>e.addUploadedDocument),D=()=>C(e=>e.removeUploadedDocument),P=()=>C.getState().uploadedDocuments,R=()=>C(e=>e.clearUploadedDocuments);function j(){let e=w(),t=D();return(0,d.useCallback)(r=>(0,u.g6n)(r).then(n=>{let o=y.getState().documentsToUpload.find(e=>e.uploadedDocumentId===r);o&&(e(null==o?void 0:o.id),t(r))}),[e,t])}let A=e=>{var t,r;let{documentId:o}=e,i=y(e=>e.documentsToUpload.find(e=>e.id===o),g.X),s=w(),{isDarkMode:l}=(0,x.G)(),{t:u}=(0,c.$G)(),d=j();if(!i)return null;let p=100===i.uploadPercentage&&!i.isLoading&&!i.error,h=0===i.file.size;return h&&(i.error=!0),(0,n.jsxs)("div",{className:"flex dark:bg-white/[0.12] gap-2 p-2 items-center rounded-2xl pl-4",children:[(0,n.jsx)(S.J,{name:"paper_outline_07",className:"dark:text-white",label:u("iconLabels.document")}),(0,n.jsx)(_.Z,{variant:"body1",noWrap:!0,className:"flex-1",children:i.file.name}),i.isLoading&&(0,n.jsx)(E.E,{progressPercentage:null!==(t=i.uploadPercentage)&&void 0!==t?t:50,label:"".concat(null!==(r=i.uploadPercentage)&&void 0!==r?r:50,"%"),className:"min-w-[40%] md:min-w-[150px]",success:100===i.uploadPercentage,error:!!i.error}),i.error&&!h&&(0,n.jsx)(_.Z,{variant:"body2",className:"text-error dark:text-error",children:u("documents.errorWhileUploading")}),h&&(0,n.jsx)(_.Z,{variant:"body2",className:"text-error dark:text-error",children:u("documents.zeroSizeError")}),p&&!i.error&&!h&&(0,n.jsx)(_.Z,{variant:"body2",className:"text-success dark:text-success",children:u("documents.uploadCompleted")}),(0,n.jsx)(k.h,{onPress:()=>{if(i.canCancelUpload){var e;null===(e=i.cancelUpload)||void 0===e||e.call(i)}else if(p){if(!i.uploadedDocumentId)return;d(i.uploadedDocumentId).then(()=>{(0,a.yv)(u("documents.documentDeletedSuccessfully"),{variant:"success"})}).catch(e=>{(0,a.yv)((0,f.mo)(e),{variant:"error"})})}else s(o)},variant:"text",isDisabled:i.isLoading&&!i.canCancelUpload,color:l?"white":"black",children:(0,n.jsx)(S.J,{name:i.canCancelUpload?"close":"delete_outline",label:u("iconLabels.deleteDocument")})})]})},F=e=>{let{}=e,t=b();return 0===t.length?null:(0,n.jsx)("div",{className:"flex-grow overflow-auto min-h-0",children:(0,n.jsx)("div",{className:"flex flex-col gap-4",children:t.map(e=>(0,n.jsx)(A,{documentId:e},e))})})};var L=r(75654),I=r(88471);let M=e=>{let{className:t,request:r}=e,{t:o}=(0,c.$G)(),a=y(e=>e.bulkAddDocumentToUpload),l=b(),u=r&&l.length>0;return(0,n.jsx)(L.g,{className:(0,s.cn)("h-full flex flex-col items-center justify-center",u&&"[&_.Upload-description]:opacity-70",t),icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-[76px] h-[76px] bg-primary/[0.12] rounded-full",children:(0,n.jsx)(S.J,{name:"load_outline_01",label:o("request.uploadDocument"),size:44,className:"text-primary"})}),multiple:void 0===r,disabled:u,onDrop:(e,t)=>{a(e.map(e=>({file:e,id:(0,I.x0)()})))},actions:e=>(0,n.jsx)(i.z,{onPress:e,isDisabled:u,variant:"outlined",color:"primary",children:o("global.selectFile")}),noDragEventsBubbling:!0,description:o("upload.dropFilesHereToUpload")})},q={deleteUploadedDocumentDialog:{id:"delete-uploaded-document-dialog",component:r(18924).M},unsavedEditsDialog:{id:"unsaved-upload-edits-dialog",component:m.DK}};var z=r(27504);let V=o.rf.create(e=>{var t,r;let{selectedCategory:v,selectedType:x,onSuccess:_,prefilledFields:E,request:k,isInChat:S,relatedCompany:C,canSortDocuments:D=!0}=e,{t:A}=(0,c.$G)(),{visible:L}=(0,o.A2)(),{popModal:I,pushModalByComponent:V,pushModal:U}=(0,o.Ty)(),$=b(),H=function(){let e=y(e=>e.updateDocumentToUpload),t=N(),r=w();return(0,O.D)({mutationFn:n=>{let{documentIds:o,relatedCompany:i}=n;return Promise.all(o.map(async n=>{let o=y.getState().documentsToUpload.find(e=>e.id===n);if(o&&!o.isUploaded)try{let r=T.default.CancelToken.source();e(n,{isLoading:!0,uploadPercentage:0,canCancelUpload:!0,cancelUpload:()=>{r.cancel("canceled")}});let{data:{uploadUrl:a,fileUrl:s}}=await (0,u.bTl)({fileName:o.file.name},{cancelToken:r.token});await T.default.put(a,o.file,{cancelToken:r.token,onUploadProgress:t=>{var r;let o=Math.round(t.loaded/(null!==(r=t.total)&&void 0!==r?r:1)*100);e(n,{isLoading:!0,canCancelUpload:o<100,uploadPercentage:o>0?o-1:1})},headers:{"Content-Type":"application/octet-stream"}}),e(n,{canCancelUpload:!1});let l=await (0,u.iGi)({name:o.file.name,fileUrl:s,companyId:null==i?void 0:i.id,metadata:{mimeType:o.file.type,originalName:o.file.name,size:o.file.size}});e(n,{isLoading:!1,isUploaded:!0,uploadPercentage:100,uploadedDocumentId:l.data.id}),t({...l.data,company:i,companyId:null==i?void 0:i.id})}catch(t){"canceled"===t.message?r(n):e(n,{canCancelUpload:!1,isLoading:!1,uploadPercentage:void 0,isUploaded:!1,cancelUpload:void 0,error:!0})}}))}})}(),K=function(){let e=y(e=>e.clearDocumentsToUpload),t=R();return(0,d.useCallback)(()=>{e(),t()},[t,e])}();j();let B=y(e=>e.documentsToUpload.some(e=>e.isLoading),g.X),W=y(e=>0===e.documentsToUpload.length||e.documentsToUpload.some(e=>void 0===e.uploadPercentage),g.X),Z=y(e=>e.documentsToUpload.some(e=>e.error||0===e.file.size),g.X),{data:G,isLoading:Y,hasNextPage:Q,fetchNextPage:J,isFetching:X}=(0,z.q)(""),ee=null!==(r=null==G?void 0:null===(t=G.pages)||void 0===t?void 0:t.reduce((e,t)=>{let r=t.data;return e.concat(r)},[]))&&void 0!==r?r:[],et=(0,l.NL)(),er=(0,f.DT)("md"),en=(0,d.useCallback)(()=>{B||((W||Z)&&$.length>0?er?V(m.wx):o.rf.show(q.unsavedEditsDialog.id):I())},[$.length,Z,W,B,I,er,U]),[eo,ei]=(0,d.useState)();return(0,d.useEffect)(()=>{ei(ee&&1===ee.length?ee[0]:void 0)},[ee]),(0,d.useEffect)(()=>{H.mutate({documentIds:$,relatedCompany:S?C:eo})},[$]),(0,n.jsx)(p.m,{header:k?A("upload.uploadRequestedDocument"):A("documents.uploadDocuments"),afterLeave:()=>{K()},open:L,onClose:en,footer:(0,n.jsxs)("div",{className:"flex items-center justify-end gap-3 w-full",children:[(0,n.jsx)(i.z,{onPress:en,isDisabled:B,variant:"outlined",color:"white",children:A("global.cancel")}),(0,n.jsx)(i.z,{variant:"contained",color:"primary",className:"max-md:flex-1 md:min-w-[176px]",onPress:()=>{if(Z){(0,a.yv)(A("upload.removeErrorsBeforeProceeding"),{variant:"error"});return}W?H.mutate({documentIds:$,relatedCompany:S?C:eo}):D?V(h.V,{initialDocuments:P(),selectedCategory:v,request:k,selectedType:x,prefilledFields:E,isInChat:S,relatedCompany:S?C:eo}).then(e=>{null==_||_(e)}).catch(()=>{null==_||_(P())}):(I(),null==_||_(P()))},isDisabled:B||0===$.length,isLoading:B,children:W?A("global.upload"):S?A("chat.send"):A("documents.sortDocuments")})]}),DialogContainerProps:{className:"w-2/3 xl:w-1/2"},children:(0,n.jsxs)("div",{className:"h-full flex flex-col gap-2 max-md:px-6",children:[(0,n.jsx)(M,{className:(0,s.cn)(0===$.length?"flex-1":"h-1/3 min-h-[224px] flex-shrink-0"),request:k}),(0,n.jsx)(F,{}),(0,d.createElement)(q.unsavedEditsDialog.component,{id:q.unsavedEditsDialog.id,onSuccess:()=>{I();let e=P();e.length>0&&(null==_||_(e),et.invalidateQueries((0,u.iTr)()))}})]})})})},47097:function(e,t,r){"use strict";r.d(t,{d:function(){return n}});let n={account:"https://account-ms-dev.kalaway.com/api/v1",notification:"https://notification-ms-dev.kalaway.com/api/v1",chat:"https://chat-ms-dev.kalaway.com/api/v1",repository:"https://repository-ms-dev.kalaway.com/api/v1"}},4001:function(e,t,r){"use strict";r.d(t,{c:function(){return a},u:function(){return s}});var n=r(31549),o=r(44194);let i=(0,o.createContext)(null),a=e=>{let{value:t,children:r,...o}=e;return(0,n.jsx)(i.Provider,{value:t,...o,children:r})};function s(){return{platformType:(0,o.useContext)(i)}}},89519:function(e,t,r){"use strict";r.d(t,{iY:function(){return a},wq:function(){return m},x$:function(){return w},c8:function(){return c},cG:function(){return d.c},UG:function(){return h},uz:function(){return d.u}});var n=r(31549),o=r(56318),i=r(48463);let a=e=>{let{children:t,...r}=e,{getRootProps:a,getInputProps:s,isDragActive:l}=(0,i.uI)({...r,noClick:!0,noKeyboard:!0});return(0,n.jsxs)("span",{...a(),children:[(0,n.jsx)("input",{...s()}),t,(0,n.jsx)(o.u,{appear:!0,show:l,enter:"transition-opacity duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"w-screen h-screen !h-[100svh] bg-black/10 absolute top-0 left-0"})]})};var s=r(49421),l=r(88121),u=r(44194);let c=e=>{let{children:t}=e,{theme:r,setTheme:o,systemTheme:i}=(0,l.F)();return(0,n.jsx)(s.W,{mode:"dark",switchMode:()=>{},children:t})};var d=r(4001),f=r(63010),p=r(45222);let h=(0,f.MT)(),m=e=>{let{children:t}=e;return(0,n.jsx)(p.zt,{store:h,children:t})};r(48583);var v=r(91652),g=r(96697),y=r(95870),b=r(57780);let w=e=>{let{text:t,lines:r,className:o,...i}=e,[a,s]=(0,u.useState)(!1),{containerRef:l,isClamped:c}=(0,b.Tm)({lines:r,text:t});return(0,n.jsx)(v.u,{open:a,onOpenChange:e=>{c?s(e):s(!1)},className:"z-[101] max-w-[400px]",title:t,darkMode:!0,children:(0,n.jsx)(g.Z,{ref:l,className:(0,y.cn)("w-fit",o),...i,children:t})})}},21367:function(e,t,r){"use strict";r.d(t,{mo:function(){return o},yo:function(){return s},kC:function(){return l},YY:function(){return b},pt:function(){return c},Kc:function(){return d},t8:function(){return f},Lv:function(){return p},R0:function(){return m},TA:function(){return y},Li:function(){return v},a0:function(){return g},J0:function(){return i}});var n=r(48594);let o=e=>{var t,r,n;let o=null===(t=e.response)||void 0===t?void 0:t.data;return(null==o?void 0:o.errors)?(null==o?void 0:null===(n=o.errors)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.param)||"genericError":(null==o?void 0:o.message)||"genericError"},i=e=>{(0,n.yv)(o(e),{variant:"error"})};var a=r(47097);function s(e,t){if(!e||"null"===e)return;if(e.includes("blob:"))return e;let{download:r,filename:n,width:o,height:i}=t||{},s="".concat(a.d.repository.replace("/api/v1",""),"/media/").concat(e);if((o||i)&&(s="".concat(s,"?").concat(o?"w=".concat(o):"").concat(i?"".concat(o?"&":"","h=").concat(i):"")),r||n){let e=new URLSearchParams({download:"".concat(r),filename:null!=n?n:""});s+="?".concat(e)}return s}function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}var u=r(57780);function c(e,t){let r;if("object"!=typeof e||e&&"object"==typeof e&&!Object.keys(e).reduce((e,t)=>!!u.AV.includes(t)||e,!1))return e;for(let n of u.AV)u.AV.indexOf(n)<=u.AV.indexOf(t)&&(r=e[n]||r);return r}function d(e){return(null!=e?e:"").split(" ").slice(0,2).reduce((e,t)=>e+t.charAt(0),"").toUpperCase()}function f(e){var t,r;let{name:n,surname:o}=null!=e?e:{},i=null!==(t=null==n?void 0:n[0])&&void 0!==t?t:"",a=null!==(r=null==o?void 0:o[0])&&void 0!==r?r:"";return"".concat(i).concat(a).toUpperCase()}function p(e){let{perPage:t,total:r,alreadyFetchedPages:n}=e;if(!(n>Math.floor(parseInt(null!=r?r:"0")/t)))return n}var h=r(4766);function m(e){if(!e)return{isExpired:!1,isExpiring:!1};let t=h.ou.fromISO(e).startOf("day").diff(h.ou.now().startOf("day"));return{isExpired:t.milliseconds<=0,isExpiring:30>=t.as("days")}}function v(e){return"page=".concat(e.page||0,"&perPage=").concat(e.perPage||1e3,"&where=").concat(JSON.stringify(e.where||{}),"&orderBy=").concat(JSON.stringify(e.orderBy||{id:"asc"}))}function g(e){if(e)switch(e){case"admin":window.location.href="https://admin.kalaway.com";break;case"advisor":window.location.href="https://advisor.kalaway.com";break;case"bankOperator":window.location.href="https://bank.kalaway.com";break;case"user":window.location.href="https://corporate.kalaway.com"}}function y(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function b(e,t){var r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return r=function*(){let r=0;for(let n of e)yield t(n,r),r++}(),new Promise((e,t)=>{let o=[];for(;o.length<n&&function n(){let{value:i,done:a}=r.next();return a?e(Promise.all(o)):(o.push(i),i.then(n,t)),!a}(););})}},57780:function(e,t,r){"use strict";r.d(t,{AV:function(){return i},Gc:function(){return a},jm:function(){return d},m4:function(){return f},vy:function(){return h},ml:function(){return x},Tm:function(){return N},Pi:function(){return v},Wf:function(){return y},DT:function(){return E},u2:function(){return O}});var n=r(44194),o=r(79892);let i=["xs","sm","md","lg","xl","2xl"];function a(){let e=(0,o.ac)("(min-width: 640px)"),t=(0,o.ac)("(min-width: 768px)"),r=(0,o.ac)("(min-width: 1024px)"),n=(0,o.ac)("(min-width: 1280px)");return(0,o.ac)("(min-width: 1536px)")?"2xl":n?"xl":r?"lg":t?"md":e?"sm":"xs"}var s=r(48594),l=r(44307),u=r(21367),c=r(4766);let d=()=>(0,l.jmY)({mutation:{onSuccess:e=>{var t;let r=document.createElement("a");r.href=e.data,r.download=null!==(t=decodeURIComponent(e.headers["x-file-name"]))&&void 0!==t?t:"Kalaway Download",r.click()},onError:e=>{(0,s.yv)((0,u.mo)(e),{variant:"error"})}}});function f(){return(0,l.cqE)({mutation:{onSuccess:e=>{let t=document.createElement("a");t.href=e.data,t.download="Kalaway Download ".concat(c.ou.now().toFormat("dd-MM-yyyy")),t.click()},onError:e=>{(0,s.yv)((0,u.mo)(e),{variant:"error"})}}})}var p=r(48583);function h(){let{data:e}=(0,p.gky)({query:{select:e=>e.data,staleTime:1/0}});return e}var m=r(14236);let v=()=>{let e=(0,m.NL)();return{...(0,p.poI)({query:{staleTime:1/0,select:e=>e.data}}),invalidateUser:()=>{e.invalidateQueries((0,p.WZt)())}}};var g=r(49421);function y(){let[e,t]=(0,n.useState)(!1),{isDarkMode:r,switchMode:o}=(0,g.G)();return(0,n.useEffect)(()=>{t(!0)},[]),{mounted:e,isDarkMode:r,switchMode:o}}var b=r(81599);class w{push(e,t){return!this.set.has(e)&&(this.arr.push(t),this.set.add(e),!0)}unshift(e,t){return!this.set.has(e)&&(this.arr.unshift(t),this.set.add(e),!0)}edit(e){let{key:t,item:r,finder:n}=e;if(!this.set.has(t))return!1;let o=this.arr.findIndex(e=>n(e,t));return this.arr[o]={...this.arr[o],...r},!0}find(e){let{key:t,finder:r}=e;if(this.set.has(t))return this.arr.find(e=>r(e,t))}replace(e){let{key:t,newKey:r,item:n,finder:o}=e;if(!this.set.has(t))return!1;this.set.delete(t),this.set.add(r);let i=this.arr.findIndex(e=>o(e,t));return this.arr[i]=n,!0}remove(e){let{key:t,finder:r}=e;if(!this.set.has(t))return;this.set.delete(t);let n=this.arr.findIndex(e=>r(e,t)),o=this.arr[n];return this.arr.splice(n,1),o}get(){return this.arr}get size(){return this.arr.length}constructor(){this.arr=[],this.set=new Set}}function x(e){let{pollingInterval:t,fetchPagesFunction:r,fetchNewItemsFunction:o,fetchOptions:i,queryKey:a,keepPreviousData:s,onNewDataFetched:l}=e,[u,c]=(0,n.useState)([]),d=(0,n.useRef)(new w),[f,p]=(0,n.useState)(!0),[h,m]=(0,n.useState)(!0),[v,g]=(0,n.useState)(),y=(0,n.useRef)(0),x=(0,n.useRef)(0),_=(0,n.useRef)(!1),[E,k]=(0,n.useState)();(0,n.useEffect)(()=>{s||(c([]),d.current=new w,k(void 0)),g(void 0),y.current=0,x.current=0,_.current=!1,S()},[a]);let S=(0,n.useCallback)(async()=>{try{m(!0),g(void 0),x.current++;let e=await r({page:x.current-1,perPage:(null==i?void 0:i.perPage)||20});if(_.current)return;let{data:t,totalCount:n}=e;t.forEach(e=>{d.current.push(e.id,e)}),y.current=n,k(d.current.get()[0]),c([...d.current.get()]),null==l||l(d.current.get())}catch(e){g(e)}m(!1),p(!1)},[null==i?void 0:i.perPage,r,l]),O=(0,n.useCallback)(()=>{_.current=!0},[]),T=(0,n.useCallback)(e=>{y.current+=e,x.current=Math.floor(d.current.size/((null==i?void 0:i.perPage)||20))},[null==i?void 0:i.perPage]),C=(0,n.useCallback)(e=>{let t=e.map(e=>d.current.unshift(e.id,e)).reduce((e,t)=>e+=t?1:0,0);c([...d.current.get()]),T(t)},[T]),N=(0,n.useCallback)(e=>{let t=d.current.remove({key:e,finder:(e,t)=>e.id===t});return c([...d.current.get()]),t&&T(-1),t},[T]),D=(0,n.useCallback)(e=>{e.forEach(e=>{let{id:t,newData:r}=e;d.current.replace({key:t,newKey:r.id,item:r,finder:(e,t)=>e.id===t})}),c([...d.current.get()])},[]),P=(0,n.useCallback)(()=>d.current.get(),[]),R=(0,n.useCallback)(e=>d.current.find({key:e,finder:(e,t)=>e.id===t}),[]);return(0,b.a)({queryKey:["infinitePolling",a,null==E?void 0:E.id],queryFn:()=>o({lastItemId:null==E?void 0:E.id}),onSuccess:e=>{0!==e.length&&(k(e[e.length-1]),C(e),null==l||l(u))},refetchInterval:null!=t?t:1e3,enabled:!!E&&!f&&!h}),{data:u,error:v,isLoading:f,isFetching:h,fetchData:S,prependData:C,cancelFetch:O,replaceData:D,removeData:N,imperativelyGetData:P,totalCount:y.current,hasNextPage:d.current.get().length<y.current,findData:R}}let _={sm:"(max-width: 639px)",md:"(max-width: 767px)",lg:"(max-width: 1023px)",xl:"(max-width: 1279px)","2xl":"(max-width: 1535px)"},E=e=>(function(e){let[t,r]=(0,n.useState)();return(0,o.LI)(()=>{let t=window.matchMedia(e),n=()=>r(!!t.matches);return n(),t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),t})(_[e]);var k=r(32828),S=r(89519);function O(){let{data:e}=(0,k.Py)(),{platformType:t}=(0,S.uz)();return(0,n.useCallback)(r=>{var n,o,i,a,s,l,u,d,f,p,h,m,v,g,y,b,w,x,_,E,k,S,O,T;let C={};if("advisor"!==t||r.company||(C.company=!0),void 0===r.categoryId)return{...C,category:!0};""===r.name&&(C.name=!0);let N=null==e?void 0:e.find(e=>e.id===r.categoryId);if((null!==(E=null==N?void 0:null===(n=N.types)||void 0===n?void 0:n.length)&&void 0!==E?E:0)>1&&!r.typeId&&(C.type=!0),(null===(o=r.category)||void 0===o?void 0:o.name)!=="balanceSheets"&&(null===(i=r.category)||void 0===i?void 0:i.name)!=="businessPlans"&&(null===(a=r.category)||void 0===a?void 0:a.name)!=="fundings"&&(null===(s=r.category)||void 0===s?void 0:s.name)!=="bankStatements"&&(null===(l=r.category)||void 0===l?void 0:l.name)!=="taxReturns"&&((null===(u=r.category)||void 0===u?void 0:u.name)!=="societyDocuments"||(null===(d=r.type)||void 0===d?void 0:d.name)!=="report")&&((null===(f=r.category)||void 0===f?void 0:f.name)!=="societyDocuments"||(null===(p=r.type)||void 0===p?void 0:p.name)!=="certificateOfIncorporation")&&((null===(h=r.category)||void 0===h?void 0:h.name)!=="societyDocuments"||(null===(m=r.type)||void 0===m?void 0:m.name)!=="indemnity")||r.issueDate||(C.issueDate=!0),(null===(v=r.category)||void 0===v?void 0:v.name)!=="taxReturns"||(null===(g=r.type)||void 0===g?void 0:g.name)!=="personalReturn"||r.relatedTo||(C.relatedTo=!0),(null===(y=r.category)||void 0===y?void 0:y.name)==="centralRisk"){let e=(null===(k=r.dateSpan)||void 0===k?void 0:k.from)?c.ou.fromISO(r.dateSpan.from):void 0,t=(null===(S=r.dateSpan)||void 0===S?void 0:S.to)?c.ou.fromISO(r.dateSpan.to):void 0;(void 0===t||void 0!==e&&e>t)&&(C.dateSpan=!0),(null==r?void 0:r.fiscalCode)&&(null===(O=r.company)||void 0===O?void 0:O.fiscalCode)&&(null===(T=r.company)||void 0===T?void 0:T.fiscalCode)!==(null==r?void 0:r.fiscalCode)&&(C.fiscalCode=!0)}return(null===(b=r.category)||void 0===b?void 0:b.name)!=="bankStatements"||r.bank||(C.bank=!0),(null===(w=r.category)||void 0===w?void 0:w.name)!=="bankStatements"||r.quarter||(C.quarter=!0),(null===(x=r.category)||void 0===x?void 0:x.name)!=="identityDocuments"||(r.expirationDate||(C.expirationDate=!0),r.relatedTo||(C.relatedTo=!0)),(null===(_=r.type)||void 0===_?void 0:_.name)!=="final"||r.subtype||(C.subtype=!0),C},[e,t])}r(24447);var T=r(77837),C=r.n(T);function N(e){let{lines:t=1,text:r}=e,i=(0,n.useRef)(null),a=(0,n.useRef)(""),[s,l]=(0,n.useState)(!1);return(0,o.LI)(()=>{let e=()=>{var e,n,o,s,u,c,d,f,p;if("string"!=typeof r||r.length<=0)return;let h=e=>{a.current=e,null!=i.current&&(i.current.innerText=e)};h(".");let m=null!==(s=null===(n=i.current)||void 0===n?void 0:null===(e=n.parentElement)||void 0===e?void 0:e.offsetWidth)&&void 0!==s?s:0,v=(null!==(u=null===(o=i.current)||void 0===o?void 0:o.offsetHeight)&&void 0!==u?u:0)*t+1,g=r.length;for(;0<=g&&(h(r.slice(0,g)),!((null!==(f=null===(c=i.current)||void 0===c?void 0:c.clientHeight)&&void 0!==f?f:0)<=v)||!((null!==(p=null===(d=i.current)||void 0===d?void 0:d.clientWidth)&&void 0!==p?p:0)<=m));)g--;if(g===r.length){l(!1);return}h(r.slice(0,Math.max(g-3,0)).trim()+"..."),l(!0)};e();let n=C()(e,100);return window.addEventListener("resize",n),()=>{n.cancel(),window.removeEventListener("resize",n)}},[t,r]),{containerRef:i,isClamped:s}}},45900:function(e,t,r){"use strict";r.d(t,{iY:function(){return a.iY},wq:function(){return a.wq},x$:function(){return a.x$},c8:function(){return a.c8},cG:function(){return a.cG},mo:function(){return s.mo},yo:function(){return s.yo},wt:function(){return u.wt},kC:function(){return s.kC},YY:function(){return s.YY},pt:function(){return s.pt},Kc:function(){return s.Kc},t8:function(){return s.t8},Lv:function(){return s.Lv},R0:function(){return s.R0},TA:function(){return s.TA},UG:function(){return a.UG},Li:function(){return s.Li},a0:function(){return s.a0},AH:function(){return i},nK:function(){return o},J0:function(){return s.J0},Gc:function(){return l.Gc},jm:function(){return l.jm},m4:function(){return l.m4},Py:function(){return u.Py},x2:function(){return u.x2},vy:function(){return l.vy},ml:function(){return l.ml},Pi:function(){return l.Pi},Wf:function(){return l.Wf},uz:function(){return a.uz},DT:function(){return l.DT},u2:function(){return l.u2}}),r(47097);var n=r(63010);let o=(0,n.cn)([]),i=(0,n.cn)([]);var a=r(89519),s=r(21367),l=r(57780),u=r(32828)},32828:function(e,t,r){"use strict";r.d(t,{wt:function(){return u},Py:function(){return l},x2:function(){return s}});var n=r(81599),o=r(44307),i=r(21367);let a={base:["category"],list:()=>[...a.base,"list"],byCategoryId:e=>[...a.base,e]},s=e=>(0,n.a)({queryKey:[a.byCategoryId(e)],queryFn:async()=>(0,o.aDv)(e)}),l=()=>(0,n.a)({queryKey:a.list(),queryFn:()=>(0,o.tGz)({filter:(0,i.Li)({orderBy:{position:"asc"}})}),select:e=>e.data}),u={base:["documents"]}},14516:function(){},40690:function(){},96798:function(){},20356:function(e){e.exports={style:{fontFamily:"'__Nunito_Sans_40aef7'",fontStyle:"normal"},className:"__className_40aef7"}},39192:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},90702:function(e,t,r){e.exports=r(57693)},43042:function(e,t,r){e.exports=r(18437)},17766:function(e,t,r){e.exports=r(27725)},24447:function(e,t,r){e.exports=r(97726)},48594:function(e,t,r){"use strict";r.d(t,{wT:function(){return eT},yv:function(){return u}});var n,o,i,a,s,l,u,c=r(44194),d=r(56321),f=r(14517);let p={data:""},h=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||p,m=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,v=/\/\*[^]*?\*\/|  +/g,g=/\n+/g,y=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?y(a,i):i+"{"+y(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=y(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=y.p?y.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},b={},w=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+w(e[r]);return t}return e},x=(e,t,r,n,o)=>{var i;let a=w(e),s=b[a]||(b[a]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(a));if(!b[s]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=m.exec(e.replace(v,""));)t[4]?n.shift():t[3]?(r=t[3].replace(g," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(g," ").trim();return n[0]})(e);b[s]=y(o?{["@keyframes "+s]:t}:t,r?"":"."+s)}let l=r&&b.g?b.g:null;return r&&(b.g=b[s]),i=b[s],l?t.data=t.data.replace(l,i):-1===t.data.indexOf(i)&&(t.data=n?i+t.data:t.data+i),s},_=(e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":y(e,""):!1===e?"":e}return e+n+(null==i?"":i)},"");function E(e){let t=this||{},r=e.call?e(t.p):e;return x(r.unshift?r.raw?_(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,h(t.target),t.g,t.o,t.k)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t,r){return t&&k(e.prototype,t),r&&k(e,r),e}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function T(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function C(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function N(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}E.bind({g:1}),E.bind({k:1});var D=function(){return""},P=c.createContext({enqueueSnackbar:D,closeSnackbar:D}),R="@media (max-width:599.95px)",j="@media (min-width:600px)",A=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},F=function(e){return""+A(e.vertical)+A(e.horizontal)},L=function(e){return!!e||0===e},I="unmounted",M="exited",q="entering",z="entered",V="exiting",U=function(e){function t(t){r=e.call(this,t)||this;var r,n,o=t.appear;return r.appearStatus=null,t.in?o?(n=M,r.appearStatus=q):n=z:n=t.unmountOnExit||t.mountOnEnter?I:M,r.state={status:n},r.nextCallback=null,r}T(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===I?{status:M}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==q&&r!==z&&(t=q):(r===q||r===z)&&(t=V)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,t=e,r=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(r=e.exit,t=e.enter),{exit:r,enter:t}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===q?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===M&&this.setState({status:I})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.getTimeouts();if(!e&&!r){this.safeSetState({status:z},function(){t.props.onEntered&&t.props.onEntered(t.node,e)});return}this.props.onEnter&&this.props.onEnter(this.node,e),this.safeSetState({status:q},function(){t.props.onEntering&&t.props.onEntering(t.node,e),t.onTransitionEnd(n.enter,function(){t.safeSetState({status:z},function(){t.props.onEntered&&t.props.onEntered(t.node,e)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts();if(!t){this.safeSetState({status:M},function(){e.props.onExited&&e.props.onExited(e.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:V},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:M},function(){e.props.onExited&&e.props.onExited(e.node)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(){r&&(r=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=null==e&&!this.props.addEndListener;if(!this.node||r){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===I)return null;var t=this.props;return(0,t.children)(e,C(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},S(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(c.Component);function $(){}function H(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function K(e,t){return(0,c.useMemo)(function(){return null==e&&null==t?null:function(r){H(e,r),H(t,r)}},[e,t])}function B(e){var t=e.timeout,r=e.style,n=void 0===r?{}:r,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}U.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$,onEntering:$,onEntered:$,onExit:$,onExiting:$,onExited:$};var W={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Z=function(e){e.scrollTop=e.scrollTop},G=function(e){return Math.round(e)+"ms"};function Y(e,t){void 0===e&&(e=["all"]);var r=t||{},n=r.duration,o=void 0===n?300:n,i=r.easing,a=void 0===i?W.easeInOut:i,s=r.delay,l=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map(function(e){return e+" "+("string"==typeof o?o:G(o))+" "+a+" "+("string"==typeof l?l:G(l))}).join(",")}function Q(e){return(e&&e.ownerDocument||document).defaultView||window}function J(e,t){if(t){var r=function(e,t){var r,n=t.getBoundingClientRect(),o=Q(t);if(t.fakeTransform)r=t.fakeTransform;else{var i=o.getComputedStyle(t);r=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(r&&"none"!==r&&"string"==typeof r){var l=r.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),s=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-s)+"px)"}}(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var X=(0,c.forwardRef)(function(e,t){var r=e.children,n=e.direction,o=void 0===n?"down":n,i=e.in,a=e.style,s=e.timeout,l=void 0===s?0:s,u=e.onEnter,d=e.onEntered,f=e.onExit,p=e.onExited,h=C(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,c.useRef)(null),v=K(r.ref,m),g=K(v,t),y=(0,c.useCallback)(function(){m.current&&J(o,m.current)},[o]);return(0,c.useEffect)(function(){if(!i&&"down"!==o&&"right"!==o){var e=function(e,t){var r;function n(){for(var n=this,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(r),r=setTimeout(function(){e.apply(n,i)},t)}return void 0===t&&(t=166),n.clear=function(){clearTimeout(r)},n}(function(){m.current&&J(o,m.current)}),t=Q(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}},[o,i]),(0,c.useEffect)(function(){i||y()},[i,y]),(0,c.createElement)(U,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){J(o,e),Z(e),u&&u(e,t)},onEntered:d,onEntering:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||W.easeOut,r=B({timeout:l,mode:"enter",style:O({},a,{transitionTimingFunction:t})});e.style.webkitTransition=Y("-webkit-transform",r),e.style.transition=Y("transform",r),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||W.sharp,r=B({timeout:l,mode:"exit",style:O({},a,{transitionTimingFunction:t})});e.style.webkitTransition=Y("-webkit-transform",r),e.style.transition=Y("transform",r),J(o,e),f&&f(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",p&&p(e)},in:i,timeout:l},h),function(e,t){return(0,c.cloneElement)(r,O({ref:g,style:O({visibility:"exited"!==e||i?void 0:"hidden"},a,{},r.props.style)},t))})});X.displayName="Slide";var ee=function(e){return c.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},et={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:c.createElement(function(){return c.createElement(ee,null,c.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n        10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},null),warning:c.createElement(function(){return c.createElement(ee,null,c.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:c.createElement(function(){return c.createElement(ee,null,c.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},null),info:c.createElement(function(){return c.createElement(ee,null,c.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n        0 22,12A10,10 0 0,0 12,2Z"}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:X,transitionDuration:{enter:225,exit:195}},er=function(e,t){var r=function(e){return"number"==typeof e||null===e};return r(e)?e:r(t)?t:et.autoHideDuration},en=function(e,t){var r=function(e,t){return t.some(function(t){return typeof e===t})};return r(e,["string","number"])?e:r(e,["object"])?O({},et.transitionDuration,{},r(t,["object"])&&t,{},e):r(t,["string","number"])?t:r(t,["object"])?O({},et.transitionDuration,{},t):et.transitionDuration};function eo(e){return Object.entries(e).reduce(function(e,t){var r,n=t[0],o=t[1];return O({},e,((r={})[n]=E(o),r))},{})}var ei="notistack-CollapseWrapper",ea=eo({root:{height:0},entered:{height:"auto"}}),es=(0,c.forwardRef)(function(e,t){var r=e.children,n=e.in,o=e.onExited,i=(0,c.useRef)(null),a=(0,c.useRef)(null),s=K(t,a),l=function(){return i.current?i.current.clientHeight:0};return(0,c.createElement)(U,{in:n,unmountOnExit:!0,onEnter:function(e){e.style.height="0px"},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=l(),r=B({timeout:175,mode:"enter"}),n=r.duration,o=r.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=o||""},onExit:function(e){e.style.height=l()+"px"},onExited:o,onExiting:function(e){Z(e);var t=B({timeout:175,mode:"exit"}),r=t.duration,n=t.easing;e.style.transitionDuration="string"==typeof r?r:r+"ms",e.style.height="0px",e.style.transitionTimingFunction=n||""},nodeRef:a,timeout:175},function(e,t){return(0,c.createElement)("div",Object.assign({ref:s,className:(0,f.Z)(ea.root,"entered"===e&&ea.entered),style:O({pointerEvents:"all",overflow:"hidden",minHeight:"0px",transition:Y("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!n&&{visibility:"hidden"})},t),(0,c.createElement)("div",{ref:i,className:ei,style:{display:"flex",width:"100%"}},r))})});es.displayName="Collapse";var el={right:"left",left:"right",bottom:"up",top:"down"},eu=function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,r){var n;return O({},t,((n={})[r]=e[r],n))},{})},ec=function(){};function ed(e,t){return e.reduce(function(e,r){return null==r?e:function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),r.apply(this,a)}},ec)}var ef="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;function ep(e){var t=(0,c.useRef)(e);return ef(function(){t.current=e}),(0,c.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var eh=(0,c.forwardRef)(function(e,t){var r=e.children,n=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=void 0!==i&&i,s=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,p=void 0===d?{}:d,h=(0,c.useRef)(),m=ep(function(){s&&s.apply(void 0,arguments)}),v=ep(function(e){s&&null!=e&&(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){m(null,"timeout",l)},e))});(0,c.useEffect)(function(){return u&&v(o),function(){h.current&&clearTimeout(h.current)}},[u,o,v]);var g=function(){h.current&&clearTimeout(h.current)},y=(0,c.useCallback)(function(){null!=o&&v(.5*o)},[o,v]);return(0,c.useEffect)(function(){if(!a&&u)return window.addEventListener("focus",y),window.addEventListener("blur",g),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",g)}},[a,y,u]),(0,c.createElement)("div",Object.assign({ref:t},p,{className:(0,f.Z)("notistack-Snackbar",n),onMouseEnter:function(e){p.onMouseEnter&&p.onMouseEnter(e),g()},onMouseLeave:function(e){p.onMouseLeave&&p.onMouseLeave(e),y()}}),r)});eh.displayName="Snackbar";var em=eo({root:((n={display:"flex",flexWrap:"wrap",flexGrow:1})[j]={flexGrow:"initial",minWidth:"288px"},n)}),ev=(0,c.forwardRef)(function(e,t){var r=e.className,n=C(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:(0,f.Z)(em.root,r)},n))});ev.displayName="SnackbarContent";var eg=eo({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),ey="notistack-snackbar",eb=(0,c.forwardRef)(function(e,t){var r=e.id,n=e.message,o=e.action,i=e.iconVariant,a=e.variant,s=e.hideIconVariant,l=e.style,u=e.className,d=i[a],p=o;return"function"==typeof p&&(p=p(r)),c.createElement(ev,{ref:t,role:"alert","aria-describedby":ey,style:l,className:(0,f.Z)("notistack-MuiContent","notistack-MuiContent-"+a,eg.root,eg[a],u,!s&&d&&eg.lessPadding)},c.createElement("div",{id:ey,className:eg.message},s?null:d,n),p&&c.createElement("div",{className:eg.action},p))});eb.displayName="MaterialDesignContent";var ew=(0,c.memo)(eb),ex=eo({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),e_=function(e){var t,r=(0,c.useRef)(),n=(0,c.useState)(!0),o=n[0],i=n[1],a=ed([e.snack.onClose,e.onClose]),s=(0,c.useCallback)(function(){r.current=setTimeout(function(){i(function(e){return!e})},125)},[]);(0,c.useEffect)(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var l=e.snack,u=e.classes,d=e.Component,p=(0,c.useMemo)(function(){return eu(u)},[u]),h=l.open,m=l.SnackbarProps,v=l.TransitionComponent,g=l.TransitionProps,y=l.transitionDuration,b=l.disableWindowBlurListener,w=l.content,x=C(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),_=O({direction:"center"!==(t=x.anchorOrigin).horizontal?el[t.horizontal]:el[t.vertical],timeout:y},g),E=w;"function"==typeof E&&(E=E(x.id,x.message));var k=["onEnter","onEntered","onExit","onExited"].reduce(function(t,r){var n;return O({},t,((n={})[r]=ed([e.snack[r],e[r]],x.id),n))},{});return c.createElement(es,{in:o,onExited:k.onExited},c.createElement(eh,{open:h,id:x.id,disableWindowBlurListener:b,autoHideDuration:x.autoHideDuration,className:(0,f.Z)(ex.wrappedRoot,p.root,p["anchorOrigin"+F(x.anchorOrigin)]),SnackbarProps:m,onClose:a},c.createElement(v,Object.assign({},_,{appear:!0,in:h,onExit:k.onExit,onExited:s,onEnter:k.onEnter,onEntered:ed([k.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],x.id)}),E||c.createElement(void 0===d?ew:d,Object.assign({},x)))))},eE="."+ei,ek=eo({root:((o={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Y(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"})[eE]={padding:"6px 0px",transition:"padding 300ms ease 0ms"},o.maxWidth="calc(100% - 40px)",o[R]={width:"100%",maxWidth:"calc(100% - 32px)"},o),rootDense:((i={})[eE]={padding:"2px 0px"},i),top:{top:"14px",flexDirection:"column"},bottom:{bottom:"14px",flexDirection:"column-reverse"},left:((a={left:"20px"})[j]={alignItems:"flex-start"},a[R]={left:"16px"},a),right:((s={right:"20px"})[j]={alignItems:"flex-end"},s[R]={right:"16px"},s),center:((l={left:"50%",transform:"translateX(-50%)"})[j]={alignItems:"center"},l)}),eS=(0,c.memo)(function(e){var t=e.classes,r=void 0===t?{}:t,n=e.anchorOrigin,o=e.dense,i=e.children,a=(0,f.Z)("notistack-SnackbarContainer",ek[n.vertical],ek[n.horizontal],ek.root,r.containerRoot,r["containerAnchorOrigin"+F(n)],o&&ek.rootDense);return c.createElement("div",{className:a},i)}),eO=function(e){return!("string"==typeof e||(0,c.isValidElement)(e))},eT=function(e){function t(t){var r;return(r=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw Error("enqueueSnackbar called with invalid argument");var n,o=eO(e)?e:t,i=eO(e)?e.message:e,a=o.key,s=o.preventDuplicate,l=C(o,["key","preventDuplicate"]),u=L(a),c=u?a:new Date().getTime()+Math.random(),d=(n=r.props,function(e,t){return(void 0===t&&(t=!1),t)?O({},et[e],{},n[e],{},l[e]):"autoHideDuration"===e?er(l.autoHideDuration,n.autoHideDuration):"transitionDuration"===e?en(l.transitionDuration,n.transitionDuration):l[e]||n[e]||et[e]}),p=O({id:c},l,{message:i,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:(0,f.Z)(r.props.className,l.className)});return p.persist&&(p.autoHideDuration=void 0),r.setState(function(e){if(void 0===s&&r.props.preventDuplicate||s){var t=function(e){return u?e.id===c:e.message===i},n=e.queue.findIndex(t)>-1,o=e.snacks.findIndex(t)>-1;if(n||o)return e}return r.handleDisplaySnack(O({},e,{queue:[].concat(e.queue,[p])}))}),c},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?O({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,n=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===r.maxSnack&&(n=!0);var o=e.snacks.map(function(e){return t||e.persist&&!n?O({},e):(t=!0,e.entered)?(e.onClose&&e.onClose(null,"maxsnack",e.id),r.props.onClose&&r.props.onClose(null,"maxsnack",e.id),O({},e,{open:!1})):O({},e,{requestClose:!0})});return O({},e,{snacks:o})},r.handleEnteredSnack=function(e,t,n){if(!L(n))throw Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===n?O({},e,{entered:!0}):O({},e)})}})},r.handleCloseSnack=function(e,t,n){r.props.onClose&&r.props.onClose(e,t,n);var o=void 0===n;r.setState(function(e){var t=e.snacks,r=e.queue;return{snacks:t.map(function(e){return o||e.id===n?e.entered?O({},e,{open:!1}):O({},e,{requestClose:!0}):O({},e)}),queue:r.filter(function(e){return e.id!==n})}})},r.closeSnackbar=function(e){var t=r.state.snacks.find(function(t){return t.id===e});L(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),r.handleCloseSnack(null,"instructed",e)},r.handleExitedSnack=function(e,t){if(!L(t))throw Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(e){var n=r.processQueue(O({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===n.queue.length?n:r.handleDismissOldest(n)})},u=r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(N(r)),closeSnackbar:r.closeSnackbar.bind(N(r))}},r}return T(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,r=this.props,n=r.domRoot,o=r.children,i=r.dense,a=void 0!==i&&i,s=r.Components,l=void 0===s?{}:s,u=r.classes,f=this.state.snacks.reduce(function(e,t){var r,n=F(t.anchorOrigin),o=e[n]||[];return O({},e,((r={})[n]=[].concat(o,[t]),r))},{}),p=Object.keys(f).map(function(t){var r=f[t],n=r[0];return c.createElement(eS,{key:t,dense:a,anchorOrigin:n.anchorOrigin,classes:u},r.map(function(t){return c.createElement(e_,{key:t.id,snack:t,classes:u,Component:l[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:ed([e.handleExitedSnack,e.props.onExited],t.id),onEntered:ed([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return c.createElement(P.Provider,{value:t},o,n?(0,d.createPortal)(p,n):p)},S(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||et.maxSnack}}]),t}(c.Component)},31772:function(e,t,r){"use strict";var n=r(25148);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},7862:function(e,t,r){e.exports=r(31772)()},25148:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},48463:function(e,t,r){"use strict";r.d(t,{uI:function(){return J}});var n=r(44194),o=r(7862),i=r.n(o),a=r(92869),s=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function l(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=s.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function p(e){if("function"!=typeof e.webkitGetAsEntry)return h(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?v(t):h(e)}function h(e){var t=e.getAsFile();return t?Promise.resolve(l(t)):Promise.reject("".concat(e," is not a File"))}function m(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return[2,e.isDirectory?v(e):function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return[2,new Promise(function(t,r){e.file(function(r){t(l(r,e.fullPath))},function(e){r(e)})})]})})}(e)]})})}function v(e){var t=e.createReader();return new Promise(function(e,r){var n=[];!function o(){var i=this;t.readEntries(function(t){return(0,a.mG)(i,void 0,void 0,function(){var i;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return e(a.sent()),[3,4];case 3:return r(a.sent()),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(m)),n.push(i),o(),a.label=6;case 6:return[2]}})})},function(e){r(e)})}()})}var g=r(7068);function y(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}(e,t)||E(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,t)}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var S=function(e){var t=Array.isArray(e=Array.isArray(e)&&1===e.length?e[0]:e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},O=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},T=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},C={code:"too-many-files",message:"Too many files"};function N(e,t){var r="application/x-moz-file"===e.type||(0,g.Z)(e,t);return[r,r?null:S(t)]}function D(e,t,r){if(P(e.size)){if(P(t)&&P(r)){if(e.size>r)return[!1,O(r)];if(e.size<t)return[!1,T(t)]}else if(P(t)&&e.size<t)return[!1,T(t)];else if(P(r)&&e.size>r)return[!1,O(r)]}return[!0,null]}function P(e){return null!=e}function R(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function j(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function A(e){e.preventDefault()}function F(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.some(function(t){return!R(e)&&t&&t.apply(void 0,[e].concat(n)),R(e)})}}function L(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function I(e){return/^.*\.[\w]+$/.test(e)}var M=["children"],q=["open"],z=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],V=["refKey","onChange","onClick"];function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}(e,t)||$(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){if(e){if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,t)}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var G=(0,n.forwardRef)(function(e,t){var r=e.children,o=J(Z(e,M)),i=o.open,a=Z(o,q);return(0,n.useImperativeHandle)(t,function(){return{open:i}},[i]),n.createElement(n.Fragment,null,r(B(B({},a),{},{open:i})))});G.displayName="Dropzone";var Y={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var r;return(0,a.Jh)(this,function(n){switch(n.label){case 0:if(!e.items)return[3,2];if(r=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,r];return[4,Promise.all(r.map(p))];case 1:return[2,d(function e(t){return t.reduce(function(t,r){return(0,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.CR)(Array.isArray(r)?e(r):[r]),!1)},[])}(n.sent()))];case 2:return[2,d(f(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};G.defaultProps=Y,G.propTypes={children:i().func,accept:i().objectOf(i().arrayOf(i().string)),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,autoFocus:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,onError:i().func,validator:i().func};var Q={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=B(B({},Y),e),r=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,S=t.noClick,O=t.noKeyboard,T=t.noDrag,M=t.noDragEventsBubbling,q=t.onError,K=t.validator,G=(0,n.useMemo)(function(){return function(e){if(P(e))return Object.entries(e).reduce(function(e,t){var r=_(t,2),n=r[0],o=r[1];return[].concat(y(e),[n],y(o))},[]).filter(function(e){return L(e)||I(e)}).join(",")}(r)},[r]),J=(0,n.useMemo)(function(){return P(r)?[{description:"Files",accept:Object.entries(r).filter(function(e){var t=_(e,2),r=t[0],n=t[1],o=!0;return L(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(n)&&n.every(I)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var r=_(t,2),n=r[0],o=r[1];return w(w({},e),{},x({},n,o))},{})}]:r},[r]),et=(0,n.useMemo)(function(){return"function"==typeof g?g:ee},[g]),er=(0,n.useMemo)(function(){return"function"==typeof v?v:ee},[v]),en=(0,n.useRef)(null),eo=(0,n.useRef)(null),ei=U((0,n.useReducer)(X,Q),2),ea=ei[0],es=ei[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,n.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){eo.current&&!eo.current.files.length&&(es({type:"closeDialog"}),er())},300)};(0,n.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[eo,eu,er,ec]);var ef=(0,n.useRef)([]),ep=function(e){en.current&&en.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,n.useEffect)(function(){return k&&(document.addEventListener("dragover",A,!1),document.addEventListener("drop",ep,!1)),function(){k&&(document.removeEventListener("dragover",A),document.removeEventListener("drop",ep))}},[en,k]),(0,n.useEffect)(function(){return!o&&E&&en.current&&en.current.focus(),function(){}},[en,E,o]);var eh=(0,n.useCallback)(function(e){q?q(e):console.error(e)},[q]),em=(0,n.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eC(e),ef.current=[].concat(function(e){if(Array.isArray(e))return H(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||$(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),j(e)&&Promise.resolve(i(e)).then(function(t){if(!R(e)||M){var r,n,o,i,d,f,p,h,m=t.length,v=m>0&&(n=(r={files:t,accept:G,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:K}).files,o=r.accept,i=r.minSize,d=r.maxSize,f=r.multiple,p=r.maxFiles,h=r.validator,(!!f||!(n.length>1))&&(!f||!(p>=1)||!(n.length>p))&&n.every(function(e){var t=_(N(e,o),1)[0],r=_(D(e,i,d),1)[0],n=h?h(e):null;return t&&r&&!n}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return eh(e)})},[i,c,eh,M,G,s,a,l,u,K]),ev=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),eC(e);var t=j(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,M]),eg=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),eC(e);var t=ef.current.filter(function(e){return en.current&&en.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),j(e)&&d&&d(e))},[en,d,M]),ey=(0,n.useCallback)(function(e,t){var r=[],n=[];e.forEach(function(e){var t=U(N(e,G),2),o=t[0],i=t[1],l=U(D(e,s,a),2),u=l[0],c=l[1],d=K?K(e):null;if(o&&u&&!d)r.push(e);else{var f=[i,c];d&&(f=f.concat(d)),n.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&r.length>1||l&&u>=1&&r.length>u)&&(r.forEach(function(e){n.push({file:e,errors:[C]})}),r.splice(0)),es({acceptedFiles:r,fileRejections:n,type:"setFiles"}),p&&p(r,n,t),n.length>0&&m&&m(n,t),r.length>0&&h&&h(r,t)},[es,l,G,s,a,u,p,h,m,K]),eb=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),eC(e),ef.current=[],j(e)&&Promise.resolve(i(e)).then(function(t){(!R(e)||M)&&ey(t,e)}).catch(function(e){return eh(e)}),es({type:"reset"})},[i,ey,eh,M]),ew=(0,n.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return i(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(er(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,eo.current?(eo.current.value=null,eo.current.click()):eh(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):eh(e)});return}eo.current&&(es({type:"openDialog"}),et(),eo.current.value=null,eo.current.click())},[es,et,er,b,ey,eh,J,l]),ex=(0,n.useCallback)(function(e){en.current&&en.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ew())},[en,ew]),e_=(0,n.useCallback)(function(){es({type:"focus"})},[]),eE=(0,n.useCallback)(function(){es({type:"blur"})},[]),ek=(0,n.useCallback)(function(){S||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ew,0):ew())},[S,ew]),eS=function(e){return o?null:e},eO=function(e){return O?null:eS(e)},eT=function(e){return T?null:eS(e)},eC=function(e){M&&e.stopPropagation()},eN=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=e.role,n=e.onKeyDown,i=e.onFocus,a=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=Z(e,z);return B(B(W({onKeyDown:eO(F(n,ex)),onFocus:eO(F(i,e_)),onBlur:eO(F(a,eE)),onClick:eS(F(s,ek)),onDragEnter:eT(F(l,em)),onDragOver:eT(F(u,ev)),onDragLeave:eT(F(c,eg)),onDrop:eT(F(d,eb)),role:"string"==typeof r&&""!==r?r:"presentation"},void 0===t?"ref":t,en),o||O?{}:{tabIndex:0}),f)}},[en,ex,e_,eE,ek,em,ev,eg,eb,O,T,o]),eD=(0,n.useCallback)(function(e){e.stopPropagation()},[]),eP=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=e.onChange,n=e.onClick,o=Z(e,V);return B(B({},W({accept:G,multiple:l,type:"file",style:{display:"none"},onChange:eS(F(r,eb)),onClick:eS(F(n,eD)),tabIndex:-1},void 0===t?"ref":t,eo)),o)}},[eo,r,l,eb,o]);return B(B({},ea),{},{isFocused:el&&!o,getRootProps:eN,getInputProps:eP,rootRef:en,inputRef:eo,open:eS(ew)})}function X(e,t){switch(t.type){case"focus":return B(B({},e),{},{isFocused:!0});case"blur":return B(B({},e),{},{isFocused:!1});case"openDialog":return B(B({},Q),{},{isFileDialogActive:!0});case"closeDialog":return B(B({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return B(B({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return B(B({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return B({},Q);default:return e}}function ee(){}},4507:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},99415:function(e,t,r){"use strict";e.exports=r(4507)},29381:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n,o,i,a,s,l,u,c=r(92869),d=r(44194),f="right-scroll-bar-position",p="width-before-scroll-bar",h=(void 0===n&&(n={}),(void 0===o&&(o=function(e){return e}),i=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=(0,c.pi)({async:!0,ssr:!1},n),s),m=function(){},v=d.forwardRef(function(e,t){var r,n,o,i=d.useRef(null),a=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),s=a[0],l=a[1],u=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,w=e.noIsolation,x=e.inert,_=e.allowPinchZoom,E=e.as,k=(0,c._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(r=[i,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(o=(0,d.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,o.facade),O=(0,c.pi)((0,c.pi)({},k),s);return d.createElement(d.Fragment,null,g&&d.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:w,inert:x,setCallbacks:l,allowPinchZoom:!!_,lockRef:i}),u?d.cloneElement(d.Children.only(f),(0,c.pi)((0,c.pi)({},O),{ref:S})):d.createElement(void 0===E?"div":E,(0,c.pi)({},O,{className:p,ref:S}),f))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:p,zeroRight:f};var g=function(e){var t=e.sideCar,r=(0,c._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return d.createElement(n,(0,c.pi)({},r))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=y();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},w=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},_=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[_(r),_(n),_(o)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=E(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},S=w(),O=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(f," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(p," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(p," .").concat(p," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},T=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n,i=d.useMemo(function(){return k(o)},[o]);return d.createElement(S,{styles:O(i,!t,o,r?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){C=!1}var D=!!C&&{passive:!1},P=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},R=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),j(e,r)){var n=A(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},j=function(e,t){return"v"===e?P(t,"overflowY"):P(t,"overflowX")},A=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=A(e,l),m=h[0],v=h[1]-h[2]-a*m;(m||v)&&j(e,l)&&(f+=v,p+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&0===f||!o&&s>f)?c=!0:!d&&(o&&0===p||!o&&-s>p)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},I=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},q=0,z=[],V=(l=function(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),o=d.useState(q++)[0],i=d.useState(function(){return w()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,c.ev)([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=L(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=R(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=R(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=o),!o)return!0;var p=n.current||o;return F(p,t,e,"h"===p?l:u,!0)},[]),l=d.useCallback(function(e){if(z.length&&z[z.length-1]===i){var r="deltaY"in e?I(e):L(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(a.current.shards||[]).map(M).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=d.useCallback(function(e){r.current=L(e),n.current=void 0},[]),p=d.useCallback(function(t){u(t.type,I(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return z.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,D),document.addEventListener("touchmove",l,D),document.addEventListener("touchstart",f,D),function(){z=z.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,D),document.removeEventListener("touchmove",l,D),document.removeEventListener("touchstart",f,D)}},[]);var m=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(T,{gapMode:"margin"}):null)},h.useMedium(l),g),U=d.forwardRef(function(e,t){return d.createElement(v,(0,c.pi)({},e,{ref:t,sideCar:V}))});U.classNames=v.classNames;var $=U},47310:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=a(r(44194)),i=a(r(49858));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){return o.default.createElement("input",this.props,this.props.children)}}]),t}(o.default.Component);t.default=(0,i.default)(s)},44070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(44194)),a=l(r(31530)),s=l(r(7862));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"render",value:function(){var e=this,t=n({},this.props);return t.parentBindings&&delete t.parentBindings,i.default.createElement("div",n({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(i.default.Component);u.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(u)},30963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(r(44194)),o=i(r(49858));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,r,o,i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.render=function(){return n.default.createElement("a",o.props,o.props.children)},a(o,r)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Component);t.default=(0,o.default)(s)},61848:function(e,t,r){"use strict";t.NY=t.zW=t.OK=void 0;var n=p(r(30963)),o=p(r(47310)),i=p(r(44070)),a=p(r(93329)),s=p(r(19755)),l=p(r(91242)),u=p(r(86015)),c=p(r(49858)),d=p(r(31530)),f=p(r(58421));function p(e){return e&&e.__esModule?e:{default:e}}n.default,o.default,i.default,t.OK=a.default,t.zW=s.default,l.default,t.NY=u.default,c.default,d.default,f.default,n.default,o.default,i.default,a.default,s.default,l.default,u.default,c.default,d.default,f.default},58421:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function s(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(44194);r(56321),r(7063);var u=r(91242),c=r(93329),d=r(7862),f=r(84662),p={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool,spyThrottle:d.number};e.exports={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=t||c,d=function(t){function c(e){i(this,c);var t=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return h.call(t),t.state={active:!1},t}return s(c,t),o(c,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();u.isMounted(e)||u.mount(e,this.props.spyThrottle),this.props.hashSpy&&(f.isMounted()||f.mount(r),f.mapContainer(this.props.to,e)),this.props.spy&&u.addStateHandler(this.stateHandler),u.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){u.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var o in p)r.hasOwnProperty(o)&&delete r[o];return r.className=t,r.onClick=this.handleClick,l.createElement(e,r)}}]),c}(l.Component),h=function(){var e=this;this.scrollTo=function(t,o){r.scrollTo(t,n({},e.state,o))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){r.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var n=e.getScrollSpyContainer();if(!f.isMounted()||f.isInitialized()){var o=e.props.to,i=null,a=0,s=0,l=0;if(n.getBoundingClientRect&&(l=n.getBoundingClientRect().top),!i||e.props.isDynamic){if(!(i=r.get(o)))return;var c=i.getBoundingClientRect();s=(a=c.top-l+t)+c.height}var d=t-e.props.offset,p=d>=Math.floor(a)&&d<Math.floor(s),h=d<Math.floor(a)||d>=Math.floor(s),m=r.getActiveLink();return h?(o===m&&r.setActiveLink(void 0),e.props.hashSpy&&f.getHash()===o&&f.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),u.updateStates()):p&&m!==o?(r.setActiveLink(o),e.props.hashSpy&&f.changeHash(o),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(o)),u.updateStates()):void 0}}};return d.propTypes=p,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function r(e){i(this,r);var t=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.childBindings={domNode:null},t}return s(r,t),o(r,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(e){c.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(l.Component);return t.propTypes={name:d.string,id:d.string},t}}},86015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};s(r(7063));var o=s(r(31797)),i=s(r(69721)),a=s(r(19755));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return o.default[e.smooth]||o.default.defaultEasing},u=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,r){window.setTimeout(e,r||1e3/60,new Date().getTime())},c=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},d=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop},p=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var r=document.body,n=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)},h=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var r=document.body,n=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)},m=function e(t,r,n){var o=r.data;if(!r.ignoreCancelEvents&&o.cancel){a.default.registered.end&&a.default.registered.end(o.to,o.target,o.currentPositionY);return}if(o.delta=Math.round(o.targetPosition-o.startPosition),null===o.start&&(o.start=n),o.progress=n-o.start,o.percent=o.progress>=o.duration?1:t(o.progress/o.duration),o.currentPosition=o.startPosition+Math.ceil(o.delta*o.percent),o.containerElement&&o.containerElement!==document&&o.containerElement!==document.body?r.horizontal?o.containerElement.scrollLeft=o.currentPosition:o.containerElement.scrollTop=o.currentPosition:r.horizontal?window.scrollTo(o.currentPosition,0):window.scrollTo(0,o.currentPosition),o.percent<1){var i=e.bind(null,t,r);u.call(window,i);return}a.default.registered.end&&a.default.registered.end(o.to,o.target,o.currentPosition)},v=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},g=function(e,t,r,n){if(t.data=t.data||c(),window.clearTimeout(t.data.delayTimeout),i.default.subscribe(function(){t.data.cancel=!0}),v(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?d(t):f(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition===t.data.targetPosition){a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPosition);return}t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(o=t.duration)?o:function(){return o})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=r,t.data.target=n;var o,s=l(t),p=m.bind(null,s,t);if(t&&t.delay>0){t.data.delayTimeout=window.setTimeout(function(){a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),u.call(window,p)},t.delay);return}a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),u.call(window,p)},y=function(e){return(e=n({},e)).data=e.data||c(),e.absolute=!0,e};t.default={animateTopScroll:g,getAnimationType:l,scrollToTop:function(e){g(0,y(e))},scrollToBottom:function(e){v(e=y(e)),g(e.horizontal?p(e):h(e),e)},scrollTo:function(e,t){g(e,y(t))},scrollMore:function(e,t){v(t=y(t)),g(e+(t.horizontal?d(t):f(t)),t)}}},69721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(80477),o=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&o.forEach(function(t){return(0,n.addPassiveEventListener)(document,t,e)})}}},80477:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPassiveEventListener=function(e,t,r){var n=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,r,!!n&&{passive:!0})},t.removePassiveEventListener=function(e,t,r){e.removeEventListener(t,r)}},31530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(44194));l(r(56321));var a=l(r(93329)),s=l(r(7862));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.childBindings={domNode:null},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),o(r,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return i.default.createElement(e,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(i.default.Component);return t.propTypes={name:s.default.string,id:s.default.string},t}},19755:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},84662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(80477);var n,o=(n=r(7063))&&n.__esModule?n:{default:n};t.default={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var r=this.scroller;if(r.get(e)&&(t||e!==r.getActiveLink())){var n=this.containers[e]||document;r.scrollTo(e,{container:n})}},getHash:function(){return o.default.getHash()},changeHash:function(e,t){this.isInitialized()&&o.default.getHash()!==e&&o.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}}},49858:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(44194)),a=c(r(91242)),s=c(r(93329)),l=c(r(7862)),u=c(r(84662));function c(e){return e&&e.__esModule?e:{default:e}}var d={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,activeStyle:l.default.object,spy:l.default.bool,horizontal:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool,saveHashHistory:l.default.bool,spyThrottle:l.default.number};t.default=function(e,t){var r=t||s.default,l=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return c.call(t),t.state={active:!1},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,t),o(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e,this.props.spyThrottle),this.props.hashSpy&&(u.default.isMounted()||u.default.mount(r),u.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r={};r=this.state&&this.state.active?n({},this.props.style,this.props.activeStyle):n({},this.props.style);var o=n({},this.props);for(var a in d)o.hasOwnProperty(a)&&delete o[a];return o.className=t,o.style=r,o.onClick=this.handleClick,i.default.createElement(e,o)}}]),s}(i.default.PureComponent),c=function(){var e=this;this.scrollTo=function(t,o){r.scrollTo(t,n({},e.state,o))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,n){var o=e.getScrollSpyContainer();if(!u.default.isMounted()||u.default.isInitialized()){var i=e.props.horizontal,a=e.props.to,s=null,l=void 0,c=void 0;if(i){var d=0,f=0,p=0;if(o.getBoundingClientRect&&(p=o.getBoundingClientRect().left),!s||e.props.isDynamic){if(!(s=r.get(a)))return;var h=s.getBoundingClientRect();f=(d=h.left-p+t)+h.width}var m=t-e.props.offset;l=m>=Math.floor(d)&&m<Math.floor(f),c=m<Math.floor(d)||m>=Math.floor(f)}else{var v=0,g=0,y=0;if(o.getBoundingClientRect&&(y=o.getBoundingClientRect().top),!s||e.props.isDynamic){if(!(s=r.get(a)))return;var b=s.getBoundingClientRect();g=(v=b.top-y+n)+b.height}var w=n-e.props.offset;l=w>=Math.floor(v)&&w<Math.floor(g),c=w<Math.floor(v)||w>=Math.floor(g)}var x=r.getActiveLink();if(c){if(a===x&&r.setActiveLink(void 0),e.props.hashSpy&&u.default.getHash()===a){var _=e.props.saveHashHistory;u.default.changeHash("",void 0!==_&&_)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(a,s))}if(l&&(x!==a||!1===e.state.active)){r.setActiveLink(a);var E=e.props.saveHashHistory;e.props.hashSpy&&u.default.changeHash(a,void 0!==E&&E),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a,s))}}}};return l.propTypes=d,l.defaultProps={offset:0},l}},91242:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(14978))&&n.__esModule?n:{default:n},i=r(80477),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,o.default)(e,t)},s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,t){if(e){var r=a(function(t){s.scrollHandler(e)},t);s.scrollSpyContainers.push(e),(0,i.addPassiveEventListener)(e,"scroll",r)}},isMounted:function(e){return -1!==s.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e!==document)return e.scrollLeft;var t=void 0!==window.pageYOffset,r="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft},currentPositionY:function(e){if(e!==document)return e.scrollTop;var t=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(s.currentPositionX(e),s.currentPositionY(e))})},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var r=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(e),e(s.currentPositionX(t),s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach(function(e){return e()})},unmount:function(e,t){s.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.indexOf(t)>-1&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),s.spySetState&&s.spySetState.length&&s.spySetState.indexOf(e)>-1&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach(function(e){return s.scrollHandler(e)})}};t.default=s},93329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=s(r(7063)),i=s(r(86015)),a=s(r(19755));function s(e){return e&&e.__esModule?e:{default:e}}var l={},u=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return u=e},getActiveLink:function(){return u},scrollTo:function(e,t){var r=this.get(e);if(!r){console.warn("target Element not found");return}var s=(t=n({},t,{absolute:!1})).containerId,l=t.container,u=void 0;u=s?document.getElementById(s):l&&l.nodeType?l:document,t.absolute=!0;var c=t.horizontal,d=o.default.scrollOffset(u,r,c)+(t.offset||0);if(!t.smooth){a.default.registered.begin&&a.default.registered.begin(e,r),u===document?t.horizontal?window.scrollTo(d,0):window.scrollTo(0,d):u.scrollTop=d,a.default.registered.end&&a.default.registered.end(e,r);return}i.default.animateTopScroll(d,t,e,r)}}},31797:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},7063:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){for(var r=e.offsetTop,n=e.offsetParent;n&&!t(n);)r+=n.offsetTop,n=n.offsetParent;return{offsetTop:r,offsetParent:n}};t.default={updateHash:function(e,t){var r=0===e.indexOf("#")?e.substring(1):e,n=r?"#"+r:"",o=window&&window.location,i=n?o.pathname+o.search+n:o.pathname+o.search;t?history.pushState(history.state,"",i):history.replaceState(history.state,"",i)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,n){if(n)return e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft;if(e===document)return t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(e).position){if(t.offsetParent!==e){var o=r(t,function(t){return t===e||t===document}),i=o.offsetTop;if(o.offsetParent!==e)throw Error("Seems containerElement is not an ancestor of the Element");return i}return t.offsetTop}if(t.offsetParent===e.offsetParent)return t.offsetTop-e.offsetTop;var a=function(e){return e===document};return r(t,a).offsetTop-r(e,a).offsetTop}}},55193:function(e,t,r){"use strict";t.ej=void 0,r(44194);var n="undefined"!=typeof window;t.ej=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n&&document.cookie.split("; ").reduce(function(t,r){var n=r.split("=");return n[0]===e?decodeURIComponent(n[1]):t},"")||t}},60199:function(e,t,r){"use strict";var n=r(44194).useLayoutEffect;t.Z=n},13005:function(e,t,r){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(44194),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return s(function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})},[e,r,t]),a(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},89312:function(e,t,r){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(44194),o=r(48218),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,o]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},48218:function(e,t,r){"use strict";e.exports=r(13005)},67591:function(e,t,r){"use strict";e.exports=r(89312)},79892:function(e,t,r){"use strict";r.d(t,{Nr:function(){return o},O_:function(){return i},LI:function(){return a},ac:function(){return s},c1:function(){return l}});var n=r(44194),o=function(e,t){let[r,o]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let r=setTimeout(()=>o(e),t||500);return()=>{clearTimeout(r)}},[e,t]),r},i=function(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[]),e},a="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,s=function(e){let t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,o]=(0,n.useState)(t(e));function i(){o(t(e))}return(0,n.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addListener?t.addListener(i):t.addEventListener("change",i),()=>{t.removeListener?t.removeListener(i):t.removeEventListener("change",i)}},[e]),r},l=function(){let e="undefined"!=typeof window&&window.document&&window.document.documentElement;return{isBrowser:e,isServer:!e}}},63229:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},62118:function(e){"use strict";e.exports=function(){}},73909:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},78934:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{Z:function(){return n}})},24562:function(e,t,r){"use strict";r.d(t,{Cp:function(){return d},RR:function(){return l},cv:function(){return p},dp:function(){return v},dr:function(){return m},oo:function(){return i},uY:function(){return h},x7:function(){return s}});var n=r(46990);function o(e,t,r){let o,{reference:i,floating:a}=e,s=(0,n.Qq)(t),l=(0,n.Wh)(t),u=(0,n.I4)(l),c=(0,n.k3)(t),d="y"===s,f=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,h=i[u]/2-a[u]/2;switch(c){case"top":o={x:f,y:i.y-a.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-a.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,n.hp)(t)){case"start":o[l]-=h*(r&&d?-1:1);break;case"end":o[l]+=h*(r&&d?-1:1)}return o}let i=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,n,u),p=n,h={},m=0;for(let r=0;r<l.length;r++){let{name:a,fn:v}=l[r],{x:g,y:y,data:b,reset:w}=await v({x:d,y:f,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});if(d=null!=g?g:d,f=null!=y?y:f,h={...h,[a]:{...h[a],...b}},w&&m<=50){m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:f}=o(c,p,u)),r=-1;continue}}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function a(e,t){var r;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,n.ku)(t,e),m=(0,n.yd)(h),v=l[p?"floating"===f?"reference":"floating":f],g=(0,n.JB)(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(v)))||r?v:v.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===f?{...s.floating,x:o,y:i}:s.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,n.JB)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:u}):y);return{top:(g.top-x.top+m.top)/w.y,bottom:(x.bottom-g.bottom+m.bottom)/w.y,left:(g.left-x.left+m.left)/w.x,right:(x.right-g.right+m.right)/w.x}}let s=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:i,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,n.ku)(e,t)||{};if(null==c)return{};let f=(0,n.yd)(d),p={x:r,y:o},h=(0,n.Wh)(i),m=(0,n.I4)(h),v=await s.getDimensions(c),g="y"===h,y=g?"clientHeight":"clientWidth",b=a.reference[m]+a.reference[h]-p[h]-a.floating[m],w=p[h]-a.reference[h],x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),_=x?x[y]:0;_&&await (null==s.isElement?void 0:s.isElement(x))||(_=l.floating[y]||a.floating[m]);let E=_/2-v[m]/2-1,k=(0,n.VV)(f[g?"top":"left"],E),S=(0,n.VV)(f[g?"bottom":"right"],E),O=_-v[m]-S,T=_/2-v[m]/2+(b/2-w/2),C=(0,n.uZ)(k,T,O),N=!u.arrow&&null!=(0,n.hp)(i)&&T!=C&&a.reference[m]/2-(T<k?k:S)-v[m]/2<0,D=N?T<k?T-k:T-O:0;return{[h]:p[h]+D,data:{[h]:C,centerOffset:T-C-D,...N&&{alignmentOffset:D}},reset:N}}}),l=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o,i,s,l;let{placement:u,middlewareData:c,rects:d,initialPlacement:f,platform:p,elements:h}=t,{mainAxis:m=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...x}=(0,n.ku)(e,t);if(null!=(r=c.arrow)&&r.alignmentOffset)return{};let _=(0,n.k3)(u),E=(0,n.k3)(f)===f,k=await (null==p.isRTL?void 0:p.isRTL(h.floating)),S=g||(E||!w?[(0,n.pw)(f)]:(0,n.gy)(f));g||"none"===b||S.push(...(0,n.KX)(f,w,b,k));let O=[f,...S],T=await a(t,x),C=[],N=(null==(o=c.flip)?void 0:o.overflows)||[];if(m&&C.push(T[_]),v){let e=(0,n.i8)(u,d,k);C.push(T[e[0]],T[e[1]])}if(N=[...N,{placement:u,overflows:C}],!C.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let r=null==(s=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!r)switch(y){case"bestFit":{let e=null==(l=N.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(r=e);break}case"initialPlacement":r=f}if(u!==r)return{reset:{placement:r}}}return{}}}};function u(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(e){return n.mA.some(t=>e[t]>=0)}let d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...i}=(0,n.ku)(e,t);switch(o){case"referenceHidden":{let e=u(await a(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c(e)}}}case"escaped":{let e=u(await a(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:c(e)}}}default:return{}}}}};async function f(e,t){let{placement:r,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,n.k3)(r),l=(0,n.hp)(r),u="y"===(0,n.Qq)(r),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=(0,n.ku)(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof m&&(h="end"===l?-1*m:m),u?{x:h*d,y:p*c}:{x:p*c,y:h*d}}let p=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,o=await f(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},h=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=(0,n.ku)(e,t),d={x:r,y:o},f=await a(t,c),p=(0,n.Qq)((0,n.k3)(i)),h=(0,n.Rn)(p),m=d[h],v=d[p];if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=m+f[e],o=m-f[t];m=(0,n.uZ)(r,m,o)}if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=v+f[e],o=v-f[t];v=(0,n.uZ)(r,v,o)}let g=u.fn({...t,[h]:m,[p]:v});return{...g,data:{x:g.x-r,y:g.y-o}}}}},m=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=(0,n.ku)(e,t),d={x:r,y:o},f=(0,n.Qq)(i),p=(0,n.Rn)(f),h=d[p],m=d[f],v=(0,n.ku)(l,t),g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+g.mainAxis,r=a.reference[p]+a.reference[e]-g.mainAxis;h<t?h=t:h>r&&(h=r)}if(c){var y,b;let e="y"===p?"width":"height",t=["top","left"].includes((0,n.k3)(i)),r=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:g.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?g.crossAxis:0);m<r?m=r:m>o&&(m=o)}return{[p]:h,[f]:m}}}},v=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,o;let{placement:i,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...d}=(0,n.ku)(e,t),f=await a(t,d),p=(0,n.k3)(i),h=(0,n.hp)(i),m="y"===(0,n.Qq)(i),{width:v,height:g}=s.floating;"top"===p||"bottom"===p?(r=p,o=h===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=p,r="end"===h?"top":"bottom");let y=g-f[r],b=v-f[o],w=!t.middlewareData.shift,x=y,_=b;if(m){let e=v-f.left-f.right;_=h||w?(0,n.VV)(b,e):e}else{let e=g-f.top-f.bottom;x=h||w?(0,n.VV)(y,e):e}if(w&&!h){let e=(0,n.Fp)(f.left,0),t=(0,n.Fp)(f.right,0),r=(0,n.Fp)(f.top,0),o=(0,n.Fp)(f.bottom,0);m?_=v-2*(0!==e||0!==t?e+t:(0,n.Fp)(f.left,f.right)):x=g-2*(0!==r||0!==o?r+o:(0,n.Fp)(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:x});let E=await l.getDimensions(u.floating);return v!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}}},62686:function(e,t,r){"use strict";r.d(t,{Me:function(){return R},oo:function(){return j}});var n=r(46990),o=r(24562);function i(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e?void 0:null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof a(e).Node}function u(e){return e instanceof Element||e instanceof a(e).Element}function c(e){return e instanceof HTMLElement||e instanceof a(e).HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function p(e){let t=h(),r=v(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(i(e))}function v(e){return a(e).getComputedStyle(e)}function g(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function y(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function b(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=y(t);return m(r)?t.ownerDocument?t.ownerDocument.body:t.body:c(r)&&f(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=a(o);return i?t.concat(s,s.visualViewport||[],f(o)?o:[],s.frameElement&&r?b(s.frameElement):[]):t.concat(o,b(o,[],r))}function w(e){let t=v(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=c(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:o,l=(0,n.NM)(r)!==a||(0,n.NM)(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function x(e){return u(e)?e:e.contextElement}function _(e){let t=x(e);if(!c(t))return(0,n.ze)(1);let r=t.getBoundingClientRect(),{width:o,height:i,$:a}=w(t),s=(a?(0,n.NM)(r.width):r.width)/o,l=(a?(0,n.NM)(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let E=(0,n.ze)(0);function k(e){let t=a(e);return h()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:E}function S(e,t,r,o){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=x(e),c=(0,n.ze)(1);t&&(o?u(o)&&(c=_(o)):c=_(e));let d=(void 0===(i=r)&&(i=!1),o&&(!i||o===a(l))&&i)?k(l):(0,n.ze)(0),f=(s.left+d.x)/c.x,p=(s.top+d.y)/c.y,h=s.width/c.x,m=s.height/c.y;if(l){let e=a(l),t=o&&u(o)?a(o):o,r=e.frameElement;for(;r&&o&&t!==e;){let e=_(r),t=r.getBoundingClientRect(),n=v(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;f*=e.x,p*=e.y,h*=e.x,m*=e.y,f+=o,p+=i,r=a(r).frameElement}}return(0,n.JB)({width:h,height:m,x:f,y:p})}function O(e){return S(s(e)).left+g(e).scrollLeft}function T(e,t,r){let o;if("viewport"===t)o=function(e,t){let r=a(e),n=s(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(o){i=o.width,l=o.height;let e=h();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:u,y:c}}(e,r);else if("document"===t)o=function(e){let t=s(e),r=g(e),o=e.ownerDocument.body,i=(0,n.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=(0,n.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-r.scrollLeft+O(e),u=-r.scrollTop;return"rtl"===v(o).direction&&(l+=(0,n.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:u}}(s(e));else if(u(t))o=function(e,t){let r=S(e,!0,"fixed"===t),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=c(e)?_(e):(0,n.ze)(1),s=e.clientWidth*a.x;return{width:s,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,r);else{let r=k(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return(0,n.JB)(o)}function C(e,t){return c(e)&&"fixed"!==v(e).position?t?t(e):e.offsetParent:null}function N(e,t){let r=a(e);if(!c(e))return r;let n=C(e,t);for(;n&&["table","td","th"].includes(i(n))&&"static"===v(n).position;)n=C(n,t);return n&&("html"===i(n)||"body"===i(n)&&"static"===v(n).position&&!p(n))?r:n||function(e){let t=y(e);for(;c(t)&&!m(t);){if(p(t))return t;t=y(t)}return null}(e)||r}let D=async function(e){let{reference:t,floating:r,strategy:o}=e,a=this.getOffsetParent||N,l=this.getDimensions;return{reference:function(e,t,r){let o=c(t),a=s(t),l="fixed"===r,u=S(e,!0,l,t),d={scrollLeft:0,scrollTop:0},p=(0,n.ze)(0);if(o||!o&&!l){if(("body"!==i(t)||f(a))&&(d=g(t)),o){let e=S(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=O(a))}return{x:u.left+d.scrollLeft-p.x,y:u.top+d.scrollTop-p.y,width:u.width,height:u.height}}(t,await a(r),o),floating:{x:0,y:0,...await l(r)}}},P={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e,a=c(r),l=s(r);if(r===l)return t;let u={scrollLeft:0,scrollTop:0},d=(0,n.ze)(1),p=(0,n.ze)(0);if((a||!a&&"fixed"!==o)&&(("body"!==i(r)||f(l))&&(u=g(r)),c(r))){let e=S(r);d=_(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-u.scrollLeft*d.x+p.x,y:t.y*d.y-u.scrollTop*d.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e,s=[..."clippingAncestors"===r?function(e,t){let r=t.get(e);if(r)return r;let n=b(e,[],!1).filter(e=>u(e)&&"body"!==i(e)),o=null,a="fixed"===v(e).position,s=a?y(e):e;for(;u(s)&&!m(s);){let t=v(s),r=p(s);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(s)&&!r&&function e(t,r){let n=y(t);return!(n===r||!u(n)||m(n))&&("fixed"===v(n).position||e(n,r))}(e,s))?n=n.filter(e=>e!==s):o=t,s=y(s)}return t.set(e,n),n}(t,this._c):[].concat(r),o],l=s[0],c=s.reduce((e,r)=>{let o=T(t,r,a);return e.top=(0,n.Fp)(o.top,e.top),e.right=(0,n.VV)(o.right,e.right),e.bottom=(0,n.VV)(o.bottom,e.bottom),e.left=(0,n.Fp)(o.left,e.left),e},T(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:N,getElementRects:D,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return w(e)},getScale:_,isElement:u,isRTL:function(e){return"rtl"===v(e).direction}};function R(e,t,r,o){let i;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,f=x(e),p=a||l?[...f?b(f):[],...b(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let h=f&&c?function(e,t){let r,o=null,i=s(e);function a(){clearTimeout(r),o&&o.disconnect(),o=null}return!function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;let h=(0,n.GW)(d),m=(0,n.GW)(i.clientWidth-(c+f)),v={rootMargin:-h+"px "+-m+"px "+-(0,n.GW)(i.clientHeight-(d+p))+"px "+-(0,n.GW)(c)+"px",threshold:(0,n.Fp)(0,(0,n.VV)(1,u))||1},g=!0;function y(e){let t=e[0].intersectionRatio;if(t!==u){if(!g)return s();t?s(!1,t):r=setTimeout(()=>{s(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,v)}o.observe(e)}(!0),a}(f,r):null,m=-1,v=null;u&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{v&&v.observe(t)})),r()}),f&&!d&&v.observe(f),v.observe(t));let g=d?S(e):null;return d&&function t(){let n=S(e);g&&(n.x!==g.x||n.y!==g.y||n.width!==g.width||n.height!==g.height)&&r(),g=n,i=requestAnimationFrame(t)}(),r(),()=>{p.forEach(e=>{a&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),h&&h(),v&&v.disconnect(),v=null,d&&cancelAnimationFrame(i)}}let j=(e,t,r)=>{let n=new Map,i={platform:P,...r},a={...i.platform,_c:n};return(0,o.oo)(e,t,{...i,platform:a})}},46990:function(e,t,r){"use strict";r.d(t,{Fp:function(){return i},GW:function(){return s},I4:function(){return v},JB:function(){return S},KX:function(){return _},NM:function(){return a},Qq:function(){return g},Rn:function(){return m},VV:function(){return o},Wh:function(){return y},gy:function(){return w},hp:function(){return h},i8:function(){return b},k3:function(){return p},ku:function(){return f},mA:function(){return n},pw:function(){return E},uZ:function(){return d},yd:function(){return k},ze:function(){return l}});let n=["top","right","bottom","left"],o=Math.min,i=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t,r){return i(e,o(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return m(g(e))}function b(e,t,r){void 0===r&&(r=!1);let n=h(e),o=y(e),i=v(o),a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function w(e){let t=E(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,e=>c[e])}function _(e,t,r,n){let o=h(e),i=function(e,t,r){let n=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(r)return t?o:n;return t?n:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(x)))),i}function E(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},28158:function(e,t,r){"use strict";let n,o,i,a,s,l,u;r.d(t,{F:function(){return e3}});var c=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,d=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n},f=(o="pointer-events-auto",e=>{var t;if((null==i?void 0:i.variants)==null)return d(o,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:r,defaultVariants:n}=i,a=Object.keys(r).map(t=>{let o=null==e?void 0:e[t],i=null==n?void 0:n[t];if(null===o)return null;let a=c(o)||c(i);return r[t][a]}),s=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return d(o,a,null==i?void 0:null===(t=i.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:r,className:o,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...n,...s}[t]):({...n,...s})[t]===r})?[...e,r,o]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),p=r(26970),h=r(44194),m=r.t(h,2),v='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',g="undefined"==typeof Element,y=g?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b=!g&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},w=function e(t,r){void 0===r&&(r=!0);var n,o=null==t?void 0:null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},x=function(e){var t,r=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r},_=function(e,t,r){if(w(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(v));return t&&y.call(e,v)&&n.unshift(e),n=n.filter(r)},E=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!w(a,!1)){if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{y.call(a,v)&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),c=!w(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}}return o},k=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},S=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||x(e))&&!k(e)?0:e.tabIndex},O=function(e,t){var r=S(e);return r<0&&t&&!k(e)?0:r},T=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},C=function(e){return"INPUT"===e.tagName},N=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},D=function(e){if(!e.name)return!0;var t,r=e.form||b(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=N(t,e.form);return!o||o===e},P=function(e){var t,r,n,o,i,a,s,l=e&&b(e),u=null===(t=l)||void 0===t?void 0:t.host,c=!1;if(l&&l!==e)for(c=!!(null!==(r=u)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(u)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!c&&u;)c=!!(null!==(a=u=null===(i=l=b(u))||void 0===i?void 0:i.host)&&void 0!==a&&null!==(s=a.ownerDocument)&&void 0!==s&&s.contains(u));return c},R=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},j=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=y.call(e,"details>summary:first-of-type")?e.parentElement:e;if(y.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return R(e)}else{if("function"==typeof n){for(var i=e;e;){var a=e.parentElement,s=b(e);if(a&&!a.shadowRoot&&!0===n(a))return R(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(P(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},A=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!y.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},F=function(e,t){var r,n,o;return!(C(r=t)&&"radio"===r.type&&!D(r)||0>S(t))&&(n=e,!((o=t).disabled||w(o)||C(o)&&"hidden"===o.type||j(o,n)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||A(o)))},L=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},I=function e(t){var r=[],n=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=O(a,i),l=i?e(t.candidates):a;0===s?i?r.push.apply(r,l):r.push(a):n.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})}),n.sort(T).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},M=function(e,t){return I((t=t||{}).getShadowRoot?E([e],t.includeContainer,{filter:F.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:L}):_(e,t.includeContainer,F.bind(null,t)))},q=r(56321);function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var V="undefined"!=typeof document?h.useLayoutEffect:h.useEffect;let U=!1,$=0,H=()=>"floating-ui-"+$++,K=m["useId".toString()]||function(){let[e,t]=h.useState(()=>U?H():void 0);return V(()=>{null==e&&t(H())},[]),h.useEffect(()=>{U||(U=!0)},[]),e},B=h.createContext(null),W=()=>h.useContext(B);function Z(e){return(null==e?void 0:e.ownerDocument)||document}function G(e){return Z(e).defaultView||window}function Y(e){return!!e&&(e instanceof Element||e instanceof G(e).Element)}function Q(e){return"data-floating-ui-"+e}let J=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function X(e,t){let r=M(e,J());"prev"===t&&r.reverse();let n=r.indexOf(function(e){let t=e.activeElement;for(;(null==(r=t)?void 0:null==(n=r.shadowRoot)?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}(Z(e)));return r.slice(n+1)[0]}function ee(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!function(e,t){if(!e||!t)return!1;let r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}(r,n)}let et={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function er(e){"Tab"===e.key&&(e.target,clearTimeout(n))}let en=h.forwardRef(function(e,t){let[r,n]=h.useState();V(()=>(/apple/i.test(navigator.vendor)&&n("button"),document.addEventListener("keydown",er),()=>{document.removeEventListener("keydown",er)}),[]);let o={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Q("focus-guard")]:"",style:et};return h.createElement("span",z({},e,o))}),eo=h.createContext(null);function ei(e){let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e,i=function(e){let{id:t,root:r}=void 0===e?{}:e,[n,o]=h.useState(null),i=K(),a=ea(),s=h.useMemo(()=>({id:t,root:r,portalContext:a,uniqueId:i}),[t,r,a,i]),l=h.useRef();return V(()=>()=>{null==n||n.remove()},[n,s]),V(()=>{if(l.current===s)return;l.current=s;let{id:e,root:t,portalContext:r,uniqueId:n}=s,i=e?document.getElementById(e):null,a=Q("portal");if(i){let e=document.createElement("div");e.id=n,e.setAttribute(a,""),i.appendChild(e),o(e)}else{let i=t||(null==r?void 0:r.portalNode);i&&!Y(i)&&(i=i.current),i=i||document.body;let s=null;e&&((s=document.createElement("div")).id=e,i.appendChild(s));let l=document.createElement("div");l.id=n,l.setAttribute(a,""),(i=s||i).appendChild(l),o(l)}},[s]),n}({id:r,root:n}),[a,s]=h.useState(null),l=h.useRef(null),u=h.useRef(null),c=h.useRef(null),d=h.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!!(n||i);return h.useEffect(()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&ee(e)&&("focusin"===e.type?function(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){M(e,J()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(i)}},[i,o,null==a?void 0:a.modal]),h.createElement(eo.Provider,{value:h.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:i,setFocusManagerState:s}),[o,i])},f&&i&&h.createElement(en,{"data-type":"outside",ref:l,onFocus:e=>{if(ee(e,i)){var t;null==(t=c.current)||t.focus()}else{let e=X(document.body,"prev")||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&h.createElement("span",{"aria-owns":i.id,style:et}),i&&(0,q.createPortal)(t,i),f&&i&&h.createElement(en,{"data-type":"outside",ref:u,onFocus:e=>{if(ee(e,i)){var t;null==(t=d.current)||t.focus()}else{let t=X(document.body,"next")||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}let ea=()=>h.useContext(eo),es=m["useInsertionEffect".toString()]||(e=>e());var el=r(62686),eu=r(24562),ec=r(77697),ed=r(92772),ef=r(13824),ep=r(85507),eh=r(81783),em=r(2165),ev=r(46341),eg=r(37576),ey=r(62461),eb=r(91307),ew=r(79035),ex=r(55261),e_=r(49687),eE=r(5904),ek=r(88659),eS=r(93880),eO=r(25761),eT=r(59545),eC=r(63355),eN=r(27552),eD=r(2931),eP=r(17185),eR=r(51511),ej=r(30611),eA=((a=eA||{})[a.Open=0]="Open",a[a.Closed=1]="Closed",a),eF=((s=eF||{})[s.Single=0]="Single",s[s.Multi=1]="Multi",s),eL=((l=eL||{})[l.Pointer=0]="Pointer",l[l.Other=1]="Other",l),eI=((u=eI||{})[u.OpenCombobox=0]="OpenCombobox",u[u.CloseCombobox=1]="CloseCombobox",u[u.GoToOption=2]="GoToOption",u[u.RegisterOption=3]="RegisterOption",u[u.UnregisterOption=4]="UnregisterOption",u[u.RegisterLabel=5]="RegisterLabel",u);function eM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,eO.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return -1===o&&(o=null),{options:n,activeOptionIndex:o}}let eq={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;let r=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:t}=e.dataRef.current,n=e.options.findIndex(e=>t(e.dataRef.current.value));-1!==n&&(r=n)}return{...e,comboboxState:0,activeOptionIndex:r}},2(e,t){var r,n,o,i;if(null!=(r=e.dataRef.current)&&r.disabled||null!=(n=e.dataRef.current)&&n.optionsRef.current&&!(null!=(o=e.dataRef.current)&&o.optionsPropsRef.current.static)&&1===e.comboboxState)return e;let a=eM(e);if(null===a.activeOptionIndex){let e=a.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(a.activeOptionIndex=e)}let s=(0,ew.d)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:s,activationTrigger:null!=(i=t.trigger)?i:1}},3:(e,t)=>{var r,n;let o={id:t.id,dataRef:t.dataRef},i=eM(e,e=>[...e,o]);null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(t.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(o));let a={...e,...i,activationTrigger:1};return null!=(n=e.dataRef.current)&&n.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},4:(e,t)=>{let r=eM(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},ez=(0,h.createContext)(null);function eV(e){let t=(0,h.useContext)(ez);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eV),t}return t}ez.displayName="ComboboxActionsContext";let eU=(0,h.createContext)(null);function e$(e){let t=(0,h.useContext)(eU);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,e$),t}return t}function eH(e,t){return(0,ek.E)(t.type,eq,e,t)}eU.displayName="ComboboxDataContext";let eK=h.Fragment,eB=e_.AN.RenderStrategy|e_.AN.Static,eW=(0,e_.yV)(function(e,t){let{value:r,defaultValue:n,onChange:o,form:i,name:a,by:s=(e,t)=>e===t,disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:d=!1,...f}=e,[p=d?[]:void 0,m]=(0,eD.q)(r,o,n),[v,g]=(0,h.useReducer)(eH,{dataRef:(0,h.createRef)(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),y=(0,h.useRef)(!1),b=(0,h.useRef)({static:!1,hold:!1}),w=(0,h.useRef)(null),x=(0,h.useRef)(null),_=(0,h.useRef)(null),E=(0,h.useRef)(null),k=(0,ef.z)("string"==typeof s?(e,t)=>(null==e?void 0:e[s])===(null==t?void 0:t[s]):s),S=(0,h.useCallback)(e=>(0,ek.E)(O.mode,{1:()=>p.some(t=>k(t,e)),0:()=>k(p,e)}),[p]),O=(0,h.useMemo)(()=>({...v,optionsPropsRef:b,labelRef:w,inputRef:x,buttonRef:_,optionsRef:E,value:p,defaultValue:n,disabled:l,mode:d?1:0,get activeOptionIndex(){if(y.current&&null===v.activeOptionIndex&&v.options.length>0){let e=v.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return v.activeOptionIndex},compare:k,isSelected:S,nullable:c,__demoMode:u}),[p,n,l,d,c,u,v]),T=(0,h.useRef)(null!==O.activeOptionIndex?O.options[O.activeOptionIndex]:null);(0,h.useEffect)(()=>{let e=null!==O.activeOptionIndex?O.options[O.activeOptionIndex]:null;T.current!==e&&(T.current=e)}),(0,eh.e)(()=>{v.dataRef.current=O},[O]),(0,ev.O)([O.buttonRef,O.inputRef,O.optionsRef],()=>I.closeCombobox(),0===O.comboboxState);let C=(0,h.useMemo)(()=>({open:0===O.comboboxState,disabled:l,activeIndex:O.activeOptionIndex,activeOption:null===O.activeOptionIndex?null:O.options[O.activeOptionIndex].dataRef.current.value,value:p}),[O,l,p]),N=(0,ef.z)(e=>{let t=O.options.find(t=>t.id===e);t&&L(t.dataRef.current.value)}),D=(0,ef.z)(()=>{if(null!==O.activeOptionIndex){let{dataRef:e,id:t}=O.options[O.activeOptionIndex];L(e.current.value),I.goToOption(ew.T.Specific,t)}}),P=(0,ef.z)(()=>{g({type:0}),y.current=!0}),R=(0,ef.z)(()=>{g({type:1}),y.current=!1}),j=(0,ef.z)((e,t,r)=>(y.current=!1,e===ew.T.Specific?g({type:2,focus:ew.T.Specific,id:t,trigger:r}):g({type:2,focus:e,trigger:r}))),A=(0,ef.z)((e,t)=>(g({type:3,id:e,dataRef:t}),()=>{var t;(null==(t=T.current)?void 0:t.id)===e&&(y.current=!0),g({type:4,id:e})})),F=(0,ef.z)(e=>(g({type:5,id:e}),()=>g({type:5,id:null}))),L=(0,ef.z)(e=>(0,ek.E)(O.mode,{0:()=>null==m?void 0:m(e),1(){let t=O.value.slice(),r=t.findIndex(t=>k(t,e));return -1===r?t.push(e):t.splice(r,1),null==m?void 0:m(t)}})),I=(0,h.useMemo)(()=>({onChange:L,registerOption:A,registerLabel:F,goToOption:j,closeCombobox:R,openCombobox:P,selectActiveOption:D,selectOption:N}),[]),M=(0,h.useRef)(null),q=(0,ed.G)();return(0,h.useEffect)(()=>{M.current&&void 0!==n&&q.addEventListener(M.current,"reset",()=>{L(n)})},[M,L]),h.createElement(ez.Provider,{value:I},h.createElement(eU.Provider,{value:O},h.createElement(eC.up,{value:(0,ek.E)(O.comboboxState,{0:eC.ZM.Open,1:eC.ZM.Closed})},null!=a&&null!=p&&(0,eS.t)({[a]:p}).map((e,t)=>{let[r,n]=e;return h.createElement(eT._,{features:eT.A.Hidden,ref:0===t?e=>{var t;M.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,e_.oA)({key:r,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:r,value:n})})}),(0,e_.sY)({ourProps:null===t?{}:{ref:t},theirProps:f,slot:C,defaultTag:eK,name:"Combobox"}))))}),eZ=(0,e_.yV)(function(e,t){var r;let n=e$("Combobox.Button"),o=eV("Combobox.Button"),i=(0,ey.T)(n.buttonRef,t),a=(0,ep.M)(),{id:s="headlessui-combobox-button-".concat(a),...l}=e,u=(0,ed.G)(),c=(0,ef.z)(e=>{switch(e.key){case eN.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&o.openCombobox(),u.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})});case eN.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&(o.openCombobox(),u.nextFrame(()=>{n.value||o.goToOption(ew.T.Last)})),u.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})});case eN.R.Escape:return 0!==n.comboboxState?void 0:(e.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),u.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}));default:return}}),d=(0,ef.z)(e=>{if((0,eE.P)(e.currentTarget))return e.preventDefault();0===n.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),u.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),f=(0,ec.v)(()=>{if(n.labelId)return[n.labelId,s].join(" ")},[n.labelId,s]),p=(0,h.useMemo)(()=>({open:0===n.comboboxState,disabled:n.disabled,value:n.value}),[n]),m={ref:i,id:s,type:(0,eg.f)(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(r=n.optionsRef.current)?void 0:r.id,"aria-expanded":0===n.comboboxState,"aria-labelledby":f,disabled:n.disabled,onClick:d,onKeyDown:c};return(0,e_.sY)({ourProps:m,theirProps:l,slot:p,defaultTag:"button",name:"Combobox.Button"})}),eG=Object.assign(eW,{Input:(0,e_.yV)(function(e,t){var r,n,o,i,a;let s=(0,ep.M)(),{id:l="headlessui-combobox-input-".concat(s),onChange:u,displayValue:c,type:d="text",...f}=e,p=e$("Combobox.Input"),m=eV("Combobox.Input"),v=(0,ey.T)(p.inputRef,t),g=(0,h.useRef)(!1),y=(0,ed.G)(),b="function"==typeof c&&void 0!==p.value?null!=(a=c(p.value))?a:"":"string"==typeof p.value?p.value:"";(0,eP.q)((e,t)=>{let[r,n]=e,[o,i]=t;if(g.current)return;let a=p.inputRef.current;a&&((0===i&&1===n||r!==o)&&(a.value=r),requestAnimationFrame(()=>{if(g.current||!a)return;let{selectionStart:e,selectionEnd:t}=a;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&a.setSelectionRange(a.value.length,a.value.length)}))},[b,p.comboboxState]),(0,eP.q)((e,t)=>{let[r]=e,[n]=t;if(0===r&&1===n){if(g.current)return;let e=p.inputRef.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(r,n,o):e.setSelectionRange(r,n)}},[p.comboboxState]);let w=(0,h.useRef)(!1),x=(0,ef.z)(()=>{w.current=!0}),_=(0,ef.z)(()=>{y.nextFrame(()=>{w.current=!1})}),E=(0,ef.z)(e=>{switch(g.current=!0,e.key){case eN.R.Backspace:case eN.R.Delete:if(0!==p.mode||!p.nullable)return;let t=e.currentTarget;y.requestAnimationFrame(()=>{""===t.value&&(m.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),m.goToOption(ew.T.Nothing))});break;case eN.R.Enter:if(g.current=!1,0!==p.comboboxState||w.current)return;if(e.preventDefault(),e.stopPropagation(),null===p.activeOptionIndex){m.closeCombobox();return}m.selectActiveOption(),0===p.mode&&m.closeCombobox();break;case eN.R.ArrowDown:return g.current=!1,e.preventDefault(),e.stopPropagation(),(0,ek.E)(p.comboboxState,{0:()=>{m.goToOption(ew.T.Next)},1:()=>{m.openCombobox()}});case eN.R.ArrowUp:return g.current=!1,e.preventDefault(),e.stopPropagation(),(0,ek.E)(p.comboboxState,{0:()=>{m.goToOption(ew.T.Previous)},1:()=>{m.openCombobox(),y.nextFrame(()=>{p.value||m.goToOption(ew.T.Last)})}});case eN.R.Home:if(e.shiftKey)break;return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ew.T.First);case eN.R.PageUp:return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ew.T.First);case eN.R.End:if(e.shiftKey)break;return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ew.T.Last);case eN.R.PageDown:return g.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(ew.T.Last);case eN.R.Escape:return g.current=!1,0!==p.comboboxState?void 0:(e.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&e.stopPropagation(),m.closeCombobox());case eN.R.Tab:if(g.current=!1,0!==p.comboboxState)return;0===p.mode&&m.selectActiveOption(),m.closeCombobox()}}),k=(0,ef.z)(e=>{null==u||u(e),m.openCombobox()}),S=(0,ef.z)(()=>{g.current=!1}),O=(0,ec.v)(()=>{if(p.labelId)return[p.labelId].join(" ")},[p.labelId]),T=(0,h.useMemo)(()=>({open:0===p.comboboxState,disabled:p.disabled}),[p]),C={ref:v,id:l,role:"combobox",type:d,"aria-controls":null==(r=p.optionsRef.current)?void 0:r.id,"aria-expanded":0===p.comboboxState,"aria-activedescendant":null===p.activeOptionIndex||null==(n=p.options[p.activeOptionIndex])?void 0:n.id,"aria-labelledby":O,"aria-autocomplete":"list",defaultValue:null!=(i=null!=(o=e.defaultValue)?o:void 0!==p.defaultValue?null==c?void 0:c(p.defaultValue):null)?i:p.defaultValue,disabled:p.disabled,onCompositionStart:x,onCompositionEnd:_,onKeyDown:E,onChange:k,onBlur:S};return(0,e_.sY)({ourProps:C,theirProps:f,slot:T,defaultTag:"input",name:"Combobox.Input"})}),Button:eZ,Label:(0,e_.yV)(function(e,t){let r=(0,ep.M)(),{id:n="headlessui-combobox-label-".concat(r),...o}=e,i=e$("Combobox.Label"),a=eV("Combobox.Label"),s=(0,ey.T)(i.labelRef,t);(0,eh.e)(()=>a.registerLabel(n),[n]);let l=(0,ef.z)(()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})}),u=(0,h.useMemo)(()=>({open:0===i.comboboxState,disabled:i.disabled}),[i]);return(0,e_.sY)({ourProps:{ref:s,id:n,onClick:l},theirProps:o,slot:u,defaultTag:"label",name:"Combobox.Label"})}),Options:(0,e_.yV)(function(e,t){let r=(0,ep.M)(),{id:n="headlessui-combobox-options-".concat(r),hold:o=!1,...i}=e,a=e$("Combobox.Options"),s=(0,ey.T)(a.optionsRef,t),l=(0,eC.oJ)(),u=null!==l?(l&eC.ZM.Open)===eC.ZM.Open:0===a.comboboxState;(0,eh.e)(()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t},[a.optionsPropsRef,e.static]),(0,eh.e)(()=>{a.optionsPropsRef.current.hold=o},[a.optionsPropsRef,o]),function(e){let{container:t,accept:r,walk:n,enabled:o=!0}=e,i=(0,h.useRef)(r),a=(0,h.useRef)(n);(0,h.useEffect)(()=>{i.current=r,a.current=n},[r,n]),(0,eh.e)(()=>{if(!t||!o)return;let e=(0,eb.r)(t);if(!e)return;let r=i.current,n=a.current,s=Object.assign(e=>r(e),{acceptNode:r}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)},[t,o,i,a])}({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=(0,ec.v)(()=>{var e,t;return null!=(t=a.labelId)?t:null==(e=a.buttonRef.current)?void 0:e.id},[a.labelId,a.buttonRef.current]),d=(0,h.useMemo)(()=>({open:0===a.comboboxState}),[a]),f={"aria-labelledby":c,role:"listbox","aria-multiselectable":1===a.mode||void 0,id:n,ref:s};return(0,e_.sY)({ourProps:f,theirProps:i,slot:d,defaultTag:"ul",features:eB,visible:u,name:"Combobox.Options"})}),Option:(0,e_.yV)(function(e,t){var r,n;let o=(0,ep.M)(),{id:i="headlessui-combobox-option-".concat(o),disabled:a=!1,value:s,...l}=e,u=e$("Combobox.Option"),c=eV("Combobox.Option"),d=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===i,f=u.isSelected(s),p=(0,h.useRef)(null),m=(0,em.E)({disabled:a,value:s,domRef:p,textValue:null==(n=null==(r=p.current)?void 0:r.textContent)?void 0:n.toLowerCase()}),v=(0,ey.T)(t,p),g=(0,ef.z)(()=>c.selectOption(i));(0,eh.e)(()=>c.registerOption(i,m),[m,i]);let y=(0,h.useRef)(!u.__demoMode);(0,eh.e)(()=>{if(!u.__demoMode)return;let e=(0,ex.k)();return e.requestAnimationFrame(()=>{y.current=!0}),e.dispose},[]),(0,eh.e)(()=>{if(0!==u.comboboxState||!d||!y.current||0===u.activationTrigger)return;let e=(0,ex.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[p,d,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let b=(0,ef.z)(e=>{if(a)return e.preventDefault();g(),0===u.mode&&c.closeCombobox(),(0,ej.tq)()||requestAnimationFrame(()=>{var e;return null==(e=u.inputRef.current)?void 0:e.focus()})}),w=(0,ef.z)(()=>{if(a)return c.goToOption(ew.T.Nothing);c.goToOption(ew.T.Specific,i)}),x=(0,eR.g)(),_=(0,ef.z)(e=>x.update(e)),E=(0,ef.z)(e=>{x.wasMoved(e)&&(a||d||c.goToOption(ew.T.Specific,i,0))}),k=(0,ef.z)(e=>{x.wasMoved(e)&&(a||d&&(u.optionsPropsRef.current.hold||c.goToOption(ew.T.Nothing)))}),S=(0,h.useMemo)(()=>({active:d,selected:f,disabled:a}),[d,f,a]);return(0,e_.sY)({ourProps:{id:i,ref:v,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":f,disabled:void 0,onClick:b,onFocus:w,onPointerEnter:_,onMouseEnter:_,onPointerMove:E,onMouseMove:E,onPointerLeave:k,onMouseLeave:k},theirProps:l,slot:S,defaultTag:"li",name:"Combobox.Option"})})});var eY=r(56318),eQ=r(39233),eJ=r(22648),eX=r(87641),e0=r(36063),e1=r(82323),e2=r(94218),e4=r(95870),e5=({nameExtractor:e,displayName:t,options:r,color:n="primary",isDisabled:o,description:i,placeholder:a,TextFieldProps:s,renderOption:l,renderTextField:u,size:c,className:d,afterCloseAnimation:m,emptyListContent:v,onInputChange:g,multiple:y,OptionsListProps:b,...w},x)=>{let _=w["aria-label"];delete w["aria-label"];let{refs:E,floatingStyles:k}=function(e){var t;void 0===e&&(e={});let{open:r=!1,onOpenChange:n,nodeId:o}=e,[i,a]=h.useState(null),s=(null==(t=e.elements)?void 0:t.reference)||i,l=(0,p.YF)(e),u=W(),c=function(e){let t=h.useRef(()=>{});return es(()=>{t.current=e}),h.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}((e,t)=>{e&&(f.current.openEvent=t),null==n||n(e,t)}),d=h.useRef(null),f=h.useRef({}),m=h.useState(()=>(function(){let e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}})())[0],v=K(),g=h.useCallback(e=>{let t=Y(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l.refs.setReference(t)},[l.refs]),y=h.useCallback(e=>{(Y(e)||null===e)&&(d.current=e,a(e)),(Y(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!Y(e))&&l.refs.setReference(e)},[l.refs]),b=h.useMemo(()=>({...l.refs,setReference:y,setPositionReference:g,domReference:d}),[l.refs,y,g]),w=h.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),x=h.useMemo(()=>({...l,refs:b,elements:w,dataRef:f,nodeId:o,floatingId:v,events:m,open:r,onOpenChange:c}),[l,o,v,m,r,c,b,w]);return V(()=>{let e=null==u?void 0:u.nodesRef.current.find(e=>e.id===o);e&&(e.context=x)}),h.useMemo(()=>({...l,context:x,refs:b,elements:w}),[l,b,w,x])}({placement:"bottom",whileElementsMounted:el.Me,middleware:[(0,eu.cv)(s?.hasValidation?-16:4),(0,eu.RR)({padding:10}),(0,eu.dp)({apply({rects:e,elements:t}){Object.assign(t.floating.style,{width:`${e.reference.width}px`})}})]});return h.createElement(e0.Cl,null,h.createElement(eG,{disabled:o,...!0===y?{multiple:!0,by:(e,t)=>e.id===t.id}:{nullable:!0,multiple:!1,by:"id"},...w},({disabled:p,open:S,value:O})=>h.createElement(h.Fragment,null,h.createElement("div",{ref:E.setReference,className:(0,e4.cn)("relative",d)},h.createElement(eG.Input,{displayValue:t,onChange:e=>{g?.(e.target.value)},ref:x,as:h.Fragment},u?.({isDisabled:p,isOpen:S,label:w.label,"aria-label":w["aria-label"]})??h.createElement(e2.n,{isDisabled:o,description:i,color:n,size:c,placeholder:a,...w.label?{label:w.label}:{"aria-label":_},...s}))),h.createElement(ei,null,h.createElement(e0.Cl,null,h.createElement(eY.u,{as:h.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",afterLeave:m},h.createElement(eG.Options,{ref:E.setFloating,style:k,...b,"data-body-scroll-lock-ignore":!0,className:(0,e4.cn)((0,e1.EN)(),b?.className,"Autocomplete-menu")},0===r.length?v:r.map((t,r)=>h.createElement(eG.Option,{key:t.id,value:t,disabled:t.isDisabled,as:h.Fragment},({selected:o,active:i,disabled:a})=>{let s=e(t);return l?.({isSelected:o,isActive:i,isDisabled:a,value:t})??h.createElement(eQ.z,{color:n,variant:"text",isDisabled:a,startIcon:y&&h.createElement(eX.X,{"aria-label":`Select option ${"string"==typeof s?s:s.name}`,isReadOnly:!0,className:"p-0 bg-transparent border-transparent",isSelected:o}),className:({isHovered:e,...t})=>(0,e4.cn)((0,eJ.L)({color:n,variant:"text",...t,hover:i,focusVisible:i}),f(),(0,e1._F)(),r>0&&"mt-1",o&&(0,e1.i7)({color:n}),i&&(0,e1.X5)({color:n}))},"string"==typeof s?s:s.children)})))))))))},e3=(0,h.forwardRef)(e5);e5.displayName="Autocomplete"},38495:function(e,t,r){"use strict";r.d(t,{q:function(){return k}});var n=r(84091),o=r(31706),i=(0,o.j)("rounded-full w-10 h-10 inline-flex select-none items-center justify-center overflow-hidden align-middle",{variants:{color:{primary:"bg-primary text-primary-contrastText",secondary:"bg-secondary text-secondary-contrastText",tertiary:"bg-tertiary text-tertiary-contrastText",success:"bg-success text-success-contrastText",warning:"bg-warning text-warning-contrastText",error:"bg-error text-error-contrastText",loading:"bg-loading text-loading-contrastText",black:"bg-black text-black-contrastText",white:"bg-white text-white-contrastText",grey:"bg-grey text-grey-contrastText",blue:"bg-blue text-blue-contrastText",lightblue:"bg-lightblue text-lightblue-contrastText",indaco:"bg-indaco text-indaco-contrastText",purple:"bg-purple text-purple-contrastText",orange:"bg-orange text-orange-contrastText"}}}),a=(0,o.j)("h-full w-full rounded-[inherit] object-cover"),s=(0,o.j)([(0,n.c)({variant:"caption"}),"text-[inherit] bg-transparent"]),l=r(73909),u=r(44194),c=r(5901),d=r(92529),f=r(5267),p=r(77735);let h="Avatar",[m,v]=(0,c.b)(h),[g,y]=m(h),b=(0,u.forwardRef)((e,t)=>{let{__scopeAvatar:r,...n}=e,[o,i]=(0,u.useState)("idle");return(0,u.createElement)(g,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:i},(0,u.createElement)(p.WV.span,(0,l.Z)({},n,{ref:t})))}),w=(0,u.forwardRef)((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...i}=e,a=y("AvatarImage",r),s=function(e){let[t,r]=(0,u.useState)("idle");return(0,u.useEffect)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,o=e=>()=>{t&&r(e)};return r("loading"),n.onload=o("loaded"),n.onerror=o("error"),n.src=e,()=>{t=!1}},[e]),t}(n),c=(0,d.W)(e=>{o(e),a.onImageLoadingStatusChange(e)});return(0,f.b)(()=>{"idle"!==s&&c(s)},[s,c]),"loaded"===s?(0,u.createElement)(p.WV.img,(0,l.Z)({},i,{ref:t,src:n})):null}),x=(0,u.forwardRef)((e,t)=>{let{__scopeAvatar:r,delayMs:n,...o}=e,i=y("AvatarFallback",r),[a,s]=(0,u.useState)(void 0===n);return(0,u.useEffect)(()=>{if(void 0!==n){let e=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(e)}},[n]),a&&"loaded"!==i.imageLoadingStatus?(0,u.createElement)(p.WV.span,(0,l.Z)({},o,{ref:t})):null});var _=r(95870),E=r(36063),k=(0,u.forwardRef)(({src:e,alt:t,fallback:r,color:n,delayMs:o=600,className:l,onLoadingStatusChange:c},d)=>u.createElement(E.Cl,null,u.createElement(b,{ref:d,className:(0,_.cn)(i({color:n}),"Avatar-root",l)},u.createElement(w,{onLoadingStatusChange:c,className:(0,_.cn)(a(),"Avatar-image"),alt:t,src:e}),u.createElement(x,{className:(0,_.cn)(s(),"Avatar-fallback"),delayMs:o,asChild:"string"!=typeof r},r))));k.displayName="Avatar"},22648:function(e,t,r){"use strict";r.d(t,{L:function(){return c},k:function(){return u}});var n=r(31706),o=(0,n.j)("",{variants:{hover:{true:"shadow-3",false:""},pressed:{true:"",false:""},focusVisible:{true:"",false:""},color:{primary:"bg-primary text-primary-contrastText",secondary:"bg-secondary text-secondary-contrastText",tertiary:"bg-tertiary text-tertiary-contrastText",success:"bg-success text-success-contrastText",warning:"bg-warning text-warning-contrastText",error:"bg-error text-error-contrastText",loading:"bg-loading text-loading-contrastText",black:"bg-black text-black-contrastText",white:"bg-white text-white-contrastText",grey:"bg-grey text-grey-contrastText",orange:"bg-orange text-orange-contrastText",lightblue:"bg-lightblue text-lightblue-contrastText",blue:"bg-blue text-blue-contrastText",indaco:"bg-indaco text-indaco-contrastText",purple:"bg-purple text-purple-contrastText"},disabled:{true:"bg-black/[0.06] text-black/[0.38] dark:bg-white/[0.06] dark:text-white/[0.38]",false:""}},defaultVariants:{color:"primary"},compoundVariants:[{color:"primary",hover:!0,className:"bg-primary-sl06"},{color:"primary",pressed:!0,className:"bg-primary-sl12"},{color:"primary",focusVisible:!0,className:"bg-primary-sl12"},{color:"secondary",hover:!0,className:"bg-secondary-sl06"},{color:"secondary",pressed:!0,className:"bg-secondary-sl12"},{color:"secondary",focusVisible:!0,className:"bg-secondary-sl12"},{color:"tertiary",hover:!0,className:"bg-tertiary-sl06"},{color:"tertiary",pressed:!0,className:"bg-tertiary-sl12"},{color:"tertiary",focusVisible:!0,className:"bg-tertiary-sl12"},{color:"success",hover:!0,className:"bg-success-sl06"},{color:"success",pressed:!0,className:"bg-success-sl12"},{color:"success",focusVisible:!0,className:"bg-success-sl12"},{color:"warning",hover:!0,className:"bg-warning-sl06"},{color:"warning",pressed:!0,className:"bg-warning-sl12"},{color:"warning",focusVisible:!0,className:"bg-warning-sl12"},{color:"error",hover:!0,className:"bg-error-sl06"},{color:"error",pressed:!0,className:"bg-error-sl12"},{color:"error",focusVisible:!0,className:"bg-error-sl12"},{color:"loading",hover:!0,className:"bg-loading-sl06"},{color:"loading",pressed:!0,className:"bg-loading-sl12"},{color:"loading",focusVisible:!0,className:"bg-loading-sl12"},{color:"black",hover:!0,className:"bg-black-sl06"},{color:"black",pressed:!0,className:"bg-black-sl12"},{color:"black",focusVisible:!0,className:"bg-black-sl12"},{color:"white",hover:!0,className:"bg-white-sl06"},{color:"white",pressed:!0,className:"bg-white-sl12"},{color:"white",focusVisible:!0,className:"bg-white-sl12"},{color:"grey",hover:!0,className:"bg-grey-sl06"},{color:"grey",pressed:!0,className:"bg-grey-sl12"},{color:"grey",focusVisible:!0,className:"bg-grey-sl12"},{color:"orange",hover:!0,className:"bg-orange-sl06"},{color:"orange",pressed:!0,className:"bg-orange-sl12"},{color:"orange",focusVisible:!0,className:"bg-orange-sl12"},{color:"lightblue",hover:!0,className:"bg-lightblue-sl06"},{color:"lightblue",pressed:!0,className:"bg-lightblue-sl12"},{color:"lightblue",focusVisible:!0,className:"bg-lightblue-sl12"},{color:"blue",hover:!0,className:"bg-blue-sl06"},{color:"blue",pressed:!0,className:"bg-blue-sl12"},{color:"blue",focusVisible:!0,className:"bg-blue-sl12"},{color:"indaco",hover:!0,className:"bg-indaco-sl06"},{color:"indaco",pressed:!0,className:"bg-indaco-sl12"},{color:"indaco",focusVisible:!0,className:"bg-indaco-sl12"},{color:"purple",hover:!0,className:"bg-purple-sl06"},{color:"purple",pressed:!0,className:"bg-purple-sl12"},{color:"purple",focusVisible:!0,className:"bg-purple-sl12"}]}),i=(0,n.j)("",{variants:{hover:{true:"",false:""},pressed:{true:"",false:""},color:{primary:"border-primary",secondary:"border-secondary",tertiary:"border-tertiary",success:"border-success",warning:"border-warning",error:"border-error",loading:"border-loading",black:"border-black",white:"border-white",grey:"border-grey",orange:"border-orange",lightblue:"border-lightblue",blue:"border-blue",indaco:"border-indaco",purple:"border-purple"},disabled:{true:"text-black/[0.38] border-black/[0.38] dark:text-white/[0.38] dark:border-white/[0.38] bg-transparent",false:""},focusVisible:{true:"ring-inset ring-[1px] border-blue ring-blue",false:""}},defaultVariants:{color:"primary"}}),a=(0,n.j)("",{variants:{hover:{true:"",false:""},pressed:{true:"",false:""},focusVisible:{true:"",false:""},color:{primary:"text-primary dark:text-primary",secondary:"text-secondary dark:text-secondary",tertiary:"text-tertiary dark:text-tertiary",success:"text-success dark:text-success",warning:"text-warning dark:text-warning",error:"text-error dark:text-error",loading:"text-loading dark:text-loading",black:"text-black dark:text-black",white:"text-white dark:text-white",grey:"text-grey dark:text-grey",orange:"text-orange dark:text-orange",lightblue:"text-lightblue dark:text-lightblue",blue:"text-blue dark:text-blue",indaco:"text-indaco dark:text-indaco",purple:"text-purple dark:text-purple"},disabled:{true:"text-black/[0.38] bg-black/[0.06] dark:text-white/[0.38] dark:bg-white/[0.06]",false:""}},defaultVariants:{color:"primary"},compoundVariants:[{color:"primary",hover:!0,className:"bg-primary/[0.06]"},{color:"primary",pressed:!0,className:"bg-primary/[0.12]"},{color:"primary",focusVisible:!0,className:"bg-primary/[0.12]"},{color:"secondary",hover:!0,className:"bg-secondary/[0.06]"},{color:"secondary",pressed:!0,className:"bg-secondary/[0.12]"},{color:"secondary",focusVisible:!0,className:"bg-secondary/[0.12]"},{color:"tertiary",hover:!0,className:"bg-tertiary/[0.06]"},{color:"tertiary",pressed:!0,className:"bg-tertiary/[0.12]"},{color:"tertiary",focusVisible:!0,className:"bg-tertiary/[0.12]"},{color:"success",hover:!0,className:"bg-success/[0.06]"},{color:"success",pressed:!0,className:"bg-success/[0.12]"},{color:"success",focusVisible:!0,className:"bg-success/[0.12]"},{color:"warning",hover:!0,className:"bg-warning/[0.06]"},{color:"warning",pressed:!0,className:"bg-warning/[0.12]"},{color:"warning",focusVisible:!0,className:"bg-warning/[0.12]"},{color:"error",hover:!0,className:"bg-error/[0.06]"},{color:"error",pressed:!0,className:"bg-error/[0.12]"},{color:"error",focusVisible:!0,className:"bg-error/[0.12]"},{color:"loading",hover:!0,className:"bg-loading/[0.06]"},{color:"loading",pressed:!0,className:"bg-loading/[0.12]"},{color:"loading",focusVisible:!0,className:"bg-loading/[0.12]"},{color:"black",hover:!0,className:"bg-black/[0.06]"},{color:"black",pressed:!0,className:"bg-black/[0.12]"},{color:"black",focusVisible:!0,className:"bg-black/[0.12]"},{color:"white",hover:!0,className:"bg-white/[0.06]"},{color:"white",pressed:!0,className:"bg-white/[0.12]"},{color:"white",focusVisible:!0,className:"bg-white/[0.12]"},{color:"grey",hover:!0,className:"bg-grey/[0.06]"},{color:"grey",pressed:!0,className:"bg-grey/[0.12]"},{color:"grey",focusVisible:!0,className:"bg-grey/[0.12]"},{color:"orange",hover:!0,className:"bg-orange/[0.06]"},{color:"orange",pressed:!0,className:"bg-orange/[0.12]"},{color:"orange",focusVisible:!0,className:"bg-orange/[0.12]"},{color:"lightblue",hover:!0,className:"bg-lightblue/[0.06]"},{color:"lightblue",pressed:!0,className:"bg-lightblue/[0.12]"},{color:"lightblue",focusVisible:!0,className:"bg-lightblue/[0.12]"},{color:"blue",hover:!0,className:"bg-blue/[0.06]"},{color:"blue",pressed:!0,className:"bg-blue/[0.12]"},{color:"blue",focusVisible:!0,className:"bg-blue/[0.12]"},{color:"indaco",hover:!0,className:"bg-indaco/[0.06]"},{color:"indaco",pressed:!0,className:"bg-indaco/[0.12]"},{color:"indaco",focusVisible:!0,className:"bg-indaco/[0.12]"},{color:"purple",hover:!0,className:"bg-purple/[0.06]"},{color:"purple",pressed:!0,className:"bg-purple/[0.12]"},{color:"purple",focusVisible:!0,className:"bg-purple/[0.12]"}]}),s=r(84091),l=r(95870),u=(0,n.j)((0,l.cn)("border-[1px] select-none border-solid border-transparent transition-all focus-visible:outline-none outline-none",(0,s.c)({variant:"body1"})),{variants:{variant:{contained:"",text:"",outlined:""},size:{small:"px-2 py-[5px] rounded-[4px]",medium:"px-2 py-[9px] rounded-[10px]",large:"px-4 py-[21px] rounded-xl"},hasIcons:{true:"",false:""},disabled:{true:"cursor-default",false:""},hover:{true:"",false:""},pressed:{true:"",false:""},focusVisible:{true:"ring-inset ring-[1px] border-blue ring-blue",false:""},color:{primary:"",secondary:"",tertiary:"",success:"",warning:"",error:"",loading:"",black:"",white:"",grey:"",orange:"",lightblue:"",blue:"",indaco:"",purple:""}},defaultVariants:{color:"primary",variant:"contained",size:"medium"},compoundVariants:[{hasIcons:!0,size:"small",className:"py-[3px]"},{hasIcons:!0,size:"medium",className:"py-[7px]"},{hasIcons:!0,size:"large",className:"py-[19px]"}]});function c({variant:e="contained",...t}){return(0,l.cn)(u(t),"contained"===e?o(t):"outlined"===e?[a(t),i(t)]:a(t))}},40257:function(e,t,r){"use strict";r.d(t,{k:function(){return y}});var n=r(22648),o=r(87005),i=r(35629),a=r(95870),s=r(44194),l=r(33169),u=r(26657),c=r(45472),d=r(57058),f=r(36063);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var h=(0,s.forwardRef)((e,t)=>{let{children:r,...n}=e,o=s.Children.toArray(r),i=o.find(g);if(i){let e=i.props.children,r=o.map(t=>t!==i?t:s.Children.count(e)>1?s.Children.only(null):(0,s.isValidElement)(e)?e.props.children:null);return(0,s.createElement)(m,p({},n,{ref:t}),(0,s.isValidElement)(e)?(0,s.cloneElement)(e,void 0,r):null)}return(0,s.createElement)(m,p({},n,{ref:t}),r)});h.displayName="Slot";var m=(0,s.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,s.isValidElement)(r)?(0,s.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,r.ref):r.ref}):s.Children.count(r)>1?s.Children.only(null):null});m.displayName="SlotClone";var v=({children:e})=>(0,s.createElement)(s.Fragment,null,e);function g(e){return(0,s.isValidElement)(e)&&e.type===v}var y=(0,s.forwardRef)(({onHoverChange:e,onHoverEnd:t,onHoverStart:r,className:p,asChild:m,endIcon:v,startIcon:g,isLoading:y,isDisabled:b,onClick:w,onKeyDown:x,onPress:_,onPressChange:E,onPressEnd:k,onPressStart:S,onPressUp:O,...T},C)=>{let N=b||y,D=(0,i.t)(C),{buttonProps:P,isPressed:R}=(0,l.U)({...T,isDisabled:N,onPress:_,onPressChange:E,onPressEnd:k,onPressStart:S,onPressUp:O},D),{isFocusVisible:j,focusProps:A}=(0,u.Fx)(),{hoverProps:F,isHovered:L}=(0,c.XI)({onHoverChange:e,onHoverEnd:t,onHoverStart:r,isDisabled:N});return s.createElement(f.Cl,null,(0,s.createElement)(m?h:"button",{...(0,d.dG)({onClick:w,onKeyDown:x,...T},A,F,P),ref:D,className:(0,a.cn)((0,n.k)({focusVisible:j}),y&&!g&&!v&&"[&_*:not(.loadingSpinner)]:invisible relative flex items-center justify-center",(g||v)&&"flex items-center gap-2","string"==typeof p?p:p?.({isPressed:R,isHovered:L,isFocusVisible:j,isDisabled:N??!1}))},g||v?s.createElement(s.Fragment,null,!v&&y?s.createElement(o.$,null):g,T.children,y&&v?s.createElement(o.$,null):v):m?T.children:s.createElement(s.Fragment,null,y&&s.createElement(o.$,{className:"loadingSpinner absolute"}),s.createElement("span",null,T.children))))});y.displayName="Button"},39233:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(40257),o=r(22648),i=r(44194),a=r(95870),s=(0,i.forwardRef)(({className:e,...t},r)=>i.createElement(n.k,{className:({isFocusVisible:r,isHovered:n,isPressed:i,isDisabled:s})=>(0,a.cn)((0,o.L)({...t,focusVisible:r,hover:n,pressed:i,disabled:s,hasIcons:!!(t.endIcon||t.startIcon)}),"string"==typeof e?e:e?.({isPressed:i,isHovered:n,isFocusVisible:r,isDisabled:s})),ref:r,...t}));s.displayName="Button"},2789:function(e,t,r){"use strict";r.d(t,{f:function(){return t1}});var n,o,i=r(44194);function a(e){return i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("mask",{id:"prefix__calendar_arrow_right",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},i.createElement("path",{d:"M8.5 5l7 7-7 7",className:"stroke-black dark:stroke-white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("g",{mask:"url(#prefix__calendar_arrow_right)"},i.createElement("path",{className:"fill-black dark:fill-white",d:"M0-.061h24v24H0z"})))}var s=function(e){return i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("mask",{id:"prefix__calendar_arrow_left",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},i.createElement("path",{d:"M15.5 19l-7-7 7-7",className:"stroke-black dark:stroke-white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("g",{mask:"url(#prefix__calendar_arrow_left)"},i.createElement("path",{className:"fill-black dark:fill-white",d:"M0-.061h24v24H0z"})))},l=r(22648),u=r(36063),c=r(84091),d=r(95870),f=r(31706),p=r(7862),h=r(28934),m=r(12351);function v(e){return JSON.stringify(e)}function g(e){return"string"==typeof e}function y(e,t,r){return r.indexOf(e)===t}function b(e){return -1===e.indexOf(",")?e:e.split(",")}var w=m(function(e){var t=void 0===e?{}:e,r=t.useFallbackLocale,n=t.fallbackLocale,o=[];if("undefined"!=typeof navigator){for(var i=navigator.languages||[],a=[],s=0;s<i.length;s++){var l=i[s];a=a.concat(b(l))}var u=navigator.language,c=u?b(u):u;o=o.concat(a,c)}return(void 0===r||r)&&o.push(void 0===n?"en-US":n),o.filter(g).map(function e(t){if(!t)return t;if("C"===t||"posix"===t||"POSIX"===t)return"en-US";if(-1!==t.indexOf(".")){var r=t.split(".")[0],n=void 0===r?"":r;return e(n)}if(-1!==t.indexOf("@")){var o=t.split("@")[0],n=void 0===o?"":o;return e(n)}if(-1===t.indexOf("-")||t.toLowerCase()!==t)return t;var i=t.split("-"),a=i[0],s=i[1];return"".concat(a,"-").concat((void 0===s?"":s).toUpperCase())}).filter(y)},v),x=m(function(e){return w(e)[0]||null},v);function _(e,t,r){return function(n,o){return void 0===o&&(o=r),t(e(n)+o)}}function E(e){return function(t){return new Date(e(t).getTime()-1)}}function k(e,t){return function(r){return[e(r),t(r)]}}function S(e){if(e instanceof Date)return e.getFullYear();if("number"==typeof e)return e;var t=parseInt(e,10);if("string"==typeof e&&!isNaN(t))return t;throw Error("Failed to get year from date: ".concat(e,"."))}function O(e){if(e instanceof Date)return e.getMonth();throw Error("Failed to get month from date: ".concat(e,"."))}function T(e){if(e instanceof Date)return e.getDate();throw Error("Failed to get year from date: ".concat(e,"."))}function C(e){var t=S(e),r=new Date;return r.setFullYear(t+(-t+1)%100,0,1),r.setHours(0,0,0,0),r}var N=_(S,C,-100),D=_(S,C,100),P=E(D),R=_(S,P,-100);_(S,P,100);var j=k(C,P);function A(e){var t=S(e),r=new Date;return r.setFullYear(t+(-t+1)%10,0,1),r.setHours(0,0,0,0),r}var F=_(S,A,-10),L=_(S,A,10),I=E(L),M=_(S,I,-10);_(S,I,10);var q=k(A,I);function z(e){var t=S(e),r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}var V=_(S,z,-1),U=_(S,z,1),$=E(U),H=_(S,$,-1);_(S,$,1);var K=k(z,$);function B(e,t){return function(r,n){void 0===n&&(n=t);var o=S(r),i=O(r)+n,a=new Date;return a.setFullYear(o,i,1),a.setHours(0,0,0,0),e(a)}}function W(e){var t=S(e),r=O(e),n=new Date;return n.setFullYear(t,r,1),n.setHours(0,0,0,0),n}var Z=B(W,-1),G=B(W,1),Y=E(G),Q=B(Y,-1);B(Y,1);var J=k(W,Y);function X(e,t){return function(r,n){void 0===n&&(n=t);var o=S(r),i=O(r),a=T(r)+n,s=new Date;return s.setFullYear(o,i,a),s.setHours(0,0,0,0),e(s)}}function ee(e){var t=S(e),r=O(e),n=T(e),o=new Date;return o.setFullYear(t,r,n),o.setHours(0,0,0,0),o}X(ee,-1);var et=E(X(ee,1));X(et,-1),X(et,1);var er=k(ee,et),en={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},eo={ARABIC:"Arabic",HEBREW:"Hebrew",ISO_8601:"ISO 8601",US:"US"},ei=((n={})[en.GREGORY]=["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],n[en.HEBREW]=["he","he-IL"],n[en.ISLAMIC]=["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"],n),ea=new Map;function es(e){return function(t,r){var n,o,i;return n=new Date(new Date(r).setHours(12)),o=t||x(),ea.has(o)||ea.set(o,new Map),(i=ea.get(o)).has(e)||i.set(e,new Intl.DateTimeFormat(o||void 0,e).format),i.get(e)(n)}}es({day:"numeric",month:"numeric",year:"numeric"});var el=es({day:"numeric"}),eu=es({day:"numeric",month:"long",year:"numeric"}),ec=es({month:"long"}),ed=es({month:"long",year:"numeric"}),ef=es({weekday:"short"}),ep=es({weekday:"long"}),eh=es({year:"numeric"});function em(e,t){void 0===t&&(t=en.ISO_8601);var r=e.getDay();switch(t){case en.ISO_8601:return(r+6)%7;case en.ISLAMIC:return(r+1)%7;case en.HEBREW:case en.GREGORY:return r;default:throw Error("Unsupported calendar type.")}}function ev(e,t){return void 0===t&&(t=en.ISO_8601),new Date(S(e),O(e),e.getDate()-em(e,t))}function eg(e,t){switch(e){case"century":return C(t);case"decade":return A(t);case"year":return z(t);case"month":return W(t);case"day":return ee(t);default:throw Error("Invalid rangeType: ".concat(e))}}function ey(e,t){switch(e){case"century":return D(t);case"decade":return L(t);case"year":return U(t);case"month":return G(t);default:throw Error("Invalid rangeType: ".concat(e))}}function eb(e,t){switch(e){case"century":return P(t);case"decade":return I(t);case"year":return $(t);case"month":return Y(t);case"day":return et(t);default:throw Error("Invalid rangeType: ".concat(e))}}function ew(e,t){switch(e){case"century":return j(t);case"decade":return q(t);case"year":return K(t);case"month":return J(t);case"day":return er(t);default:throw Error("Invalid rangeType: ".concat(e))}}function ex(e,t,r){return void 0===t&&(t=eh),r.map(function(r){return t(e,r)}).join(" – ")}function e_(e,t){void 0===t&&(t=en.ISO_8601);var r=e.getDay();switch(t){case en.ISLAMIC:case en.HEBREW:return 5===r||6===r;case en.ISO_8601:case en.GREGORY:return 6===r||0===r;default:throw Error("Unsupported calendar type.")}}var eE="react-calendar__navigation";function ek(e){var t,r=e.activeStartDate,n=e.drillUp,o=e.formatMonthYear,a=void 0===o?ed:o,s=e.formatYear,l=void 0===s?eh:s,u=e.locale,c=e.maxDate,d=e.minDate,f=e.navigationAriaLabel,p=e.navigationAriaLive,h=e.navigationLabel,m=e.next2AriaLabel,v=e.next2Label,g=void 0===v?"\xbb":v,y=e.nextAriaLabel,b=e.nextLabel,w=void 0===b?"›":b,_=e.prev2AriaLabel,E=e.prev2Label,k=void 0===E?"\xab":E,S=e.prevAriaLabel,O=e.prevLabel,T=void 0===O?"‹":O,C=e.setActiveStartDate,D=e.showDoubleView,P=e.view,A=e.views.indexOf(P)>0,I="century"!==P,z=function(e,t){switch(e){case"century":return N(t);case"decade":return F(t);case"year":return V(t);case"month":return Z(t);default:throw Error("Invalid rangeType: ".concat(e))}}(P,r),$=I?function(e,t){switch(e){case"decade":return F(t,-100);case"year":return V(t,-10);case"month":return Z(t,-12);default:throw Error("Invalid rangeType: ".concat(e))}}(P,r):void 0,K=ey(P,r),B=I?function(e,t){switch(e){case"decade":return L(t,100);case"year":return U(t,10);case"month":return G(t,12);default:throw Error("Invalid rangeType: ".concat(e))}}(P,r):void 0,W=function(){if(0>z.getFullYear())return!0;var e=function(e,t){switch(e){case"century":return R(t);case"decade":return M(t);case"year":return H(t);case"month":return Q(t);default:throw Error("Invalid rangeType: ".concat(e))}}(P,r);return d&&d>=e}(),Y=I&&function(){if(0>$.getFullYear())return!0;var e=function(e,t){switch(e){case"decade":return M(t,-100);case"year":return H(t,-10);case"month":return Q(t,-12);default:throw Error("Invalid rangeType: ".concat(e))}}(P,r);return d&&d>=e}(),J=c&&c<K,X=I&&c&&c<B;function ee(e){var t=function(){switch(P){case"century":return ex(u,l,j(e));case"decade":return ex(u,l,q(e));case"year":return l(u,e);case"month":return a(u,e);default:throw Error("Invalid view: ".concat(P,"."))}}();return h?h({date:e,label:t,locale:u||x()||void 0,view:P}):t}return i.createElement("div",{className:eE},null!==k&&I?i.createElement("button",{"aria-label":void 0===_?"":_,className:"".concat(eE,"__arrow ").concat(eE,"__prev2-button"),disabled:Y,onClick:function(){C($,"prev2")},type:"button"},k):null,null!==T&&i.createElement("button",{"aria-label":void 0===S?"":S,className:"".concat(eE,"__arrow ").concat(eE,"__prev-button"),disabled:W,onClick:function(){C(z,"prev")},type:"button"},T),(t="".concat(eE,"__label"),i.createElement("button",{"aria-label":void 0===f?"":f,"aria-live":p,className:t,disabled:!A,onClick:n,style:{flexGrow:1},type:"button"},i.createElement("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--from")},ee(r)),D?i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(t,"__divider")}," – "),i.createElement("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--to")},ee(K))):null)),null!==w&&i.createElement("button",{"aria-label":void 0===y?"":y,className:"".concat(eE,"__arrow ").concat(eE,"__next-button"),disabled:J,onClick:function(){C(K,"next")},type:"button"},w),null!==g&&I?i.createElement("button",{"aria-label":void 0===m?"":m,className:"".concat(eE,"__arrow ").concat(eE,"__next2-button"),disabled:X,onClick:function(){C(B,"next2")},type:"button"},g):null)}var eS=function(){return(eS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},eO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function eT(e){return"".concat(e,"%")}function eC(e){var t=e.children,r=e.className,n=e.count,o=e.direction,a=e.offset,s=e.style,l=e.wrap,u=eO(e,["children","className","count","direction","offset","style","wrap"]);return i.createElement("div",eS({className:r,style:eS({display:"flex",flexDirection:o,flexWrap:l?"wrap":"nowrap"},s)},u),i.Children.map(t,function(e,t){var r=a&&0===t?eT(100*a/n):null;return i.cloneElement(e,eS(eS({},e.props),{style:{flexBasis:eT(100/n),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:r,marginInlineStart:r,marginInlineEnd:0}}))}))}var eN=function(e,t){};function eD(e,t){return t[0]<=e&&t[1]>=e}function eP(e,t){return eD(e[0],t)||eD(e[1],t)}function eR(e,t,r){var n=eP(t,e),o=[];if(n){o.push(r);var i=eD(e[0],t),a=eD(e[1],t);i&&o.push("".concat(r,"Start")),a&&o.push("".concat(r,"End")),i&&a&&o.push("".concat(r,"BothEnds"))}return o}var ej=((o={})[eo.ARABIC]=en.ISLAMIC,o[eo.HEBREW]=en.HEBREW,o[eo.ISO_8601]=en.ISO_8601,o[eo.US]=en.GREGORY,o),eA=!1;function eF(e){if(void 0!==e&&e in eo){var t=ej[e];return eN(eA,'Specifying calendarType="'.concat(e,'" is deprecated. Use calendarType="').concat(t,'" instead.')),eA=!0,t}return e}function eL(e){for(var t=e.className,r=e.count,n=e.dateTransform,o=e.dateType,a=e.end,s=e.hover,l=e.offset,u=e.renderTile,c=e.start,d=e.step,f=void 0===d?1:d,p=e.value,h=e.valueType,m=[],v=c;v<=a;v+=f){var g=n(v);m.push(u({classes:function(e){if(!e)throw Error("args is required");var t=e.value,r=e.date,n=e.hover,o="react-calendar__tile",i=[o];if(!r)return i;var a=new Date,s=function(){if(Array.isArray(r))return r;var t=e.dateType;if(!t)throw Error("dateType is required when date is not an array of two dates");return ew(t,r)}();if(eD(a,s)&&i.push("".concat(o,"--now")),!t||!(Array.isArray(t)?null!==t[0]&&null!==t[1]:null!==t))return i;var l=function(){if(Array.isArray(t))return t;var r=e.valueType;if(!r)throw Error("valueType is required when value is not an array of two dates");return ew(r,t)}();l[0]<=s[0]&&l[1]>=s[1]?i.push("".concat(o,"--active")):eP(l,s)&&i.push("".concat(o,"--hasActive"));var u=eR(l,s,"".concat(o,"--range"));i.push.apply(i,u);var c=Array.isArray(t)?t:[t];if(n&&1===c.length){var d=eR(n>l[0]?[l[0],n]:[n,l[0]],s,"".concat(o,"--hover"));i.push.apply(i,d)}return i}({date:g,dateType:o,hover:s,value:p,valueType:h}),date:g}))}return i.createElement(eC,{className:t,count:void 0===r?3:r,offset:l,wrap:!0},m)}function eI(e){var t=e.activeStartDate,r=e.children,n=e.classes,o=e.date,a=e.formatAbbr,s=e.locale,l=e.maxDate,u=e.maxDateTransform,c=e.minDate,d=e.minDateTransform,f=e.onClick,p=e.onMouseOver,m=e.style,v=e.tileClassName,g=e.tileContent,y=e.tileDisabled,b=e.view,w=(0,i.useMemo)(function(){return"function"==typeof v?v({activeStartDate:t,date:o,view:b}):v},[t,o,v,b]),x=(0,i.useMemo)(function(){return"function"==typeof g?g({activeStartDate:t,date:o,view:b}):g},[t,o,g,b]);return i.createElement("button",{className:(0,h.Z)(n,w),disabled:c&&d(c)>o||l&&u(l)<o||y&&y({activeStartDate:t,date:o,view:b}),onClick:f?function(e){return f(o,e)}:void 0,onFocus:p?function(){return p(o)}:void 0,onMouseOver:p?function(){return p(o)}:void 0,style:m,type:"button"},a?i.createElement("abbr",{"aria-label":a(s,o)},r):r,x)}var eM=function(){return(eM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},eq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ez=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function eV(e){var t=e.classes,r=e.formatYear,n=eq(e,["classes","formatYear"]),o=n.date,a=n.locale;return i.createElement(eI,eM({},n,{classes:ez(ez([],void 0===t?[]:t,!0),["react-calendar__century-view__decades__decade"],!1),maxDateTransform:I,minDateTransform:A,view:"century"}),ex(a,void 0===r?eh:r,q(o)))}var eU=function(){return(eU=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},e$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function eH(e){var t=e.activeStartDate,r=e.hover,n=e.value,o=e.valueType,a=e$(e,["activeStartDate","hover","value","valueType"]),s=S(C(t));return i.createElement(eL,{className:"react-calendar__century-view__decades",dateTransform:A,dateType:"decade",end:s+99,hover:r,renderTile:function(e){var r=e.date,n=e$(e,["date"]);return i.createElement(eV,eU({key:r.getTime()},a,n,{activeStartDate:t,date:r}))},start:s,step:10,value:n,valueType:o})}var eK=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},eB=Object.values(en),eW=Object.values(eo),eZ=["century","decade","year","month"],eG=p.oneOf(eK(eK([],eB,!0),eW,!0)),eY=p.oneOfType([p.string,p.arrayOf(p.string)]),eQ=function(e,t,r){var n=e[t];if(!n)return null;if(!(n instanceof Date))return Error("Invalid prop `".concat(t,"` of type `").concat(typeof n,"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=e.maxDate;return o&&n>o?Error("Invalid prop `".concat(t,"` of type `").concat(typeof n,"` supplied to `").concat(r,"`, minDate cannot be larger than maxDate.")):null},eJ=function(e,t,r){var n=e[t];if(!n)return null;if(!(n instanceof Date))return Error("Invalid prop `".concat(t,"` of type `").concat(typeof n,"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=e.minDate;return o&&n<o?Error("Invalid prop `".concat(t,"` of type `").concat(typeof n,"` supplied to `").concat(r,"`, maxDate cannot be smaller than minDate.")):null},eX=p.oneOfType([p.func,p.exact({current:p.any})]),e0=p.arrayOf(p.oneOfType([p.instanceOf(Date),p.oneOf([null])]).isRequired),e1=p.oneOfType([p.instanceOf(Date),p.oneOf([null]),e0]);p.arrayOf(p.oneOf(eZ));var e2=function(e,t,r){var n=e[t];return void 0!==n&&("string"!=typeof n||-1===eZ.indexOf(n))?Error("Invalid prop `".concat(t,"` of value `").concat(n,"` supplied to `").concat(r,"`, expected one of [").concat(eZ.map(function(e){return'"'.concat(e,'"')}).join(", "),"].")):null};e2.isRequired=function(e,t,r,n,o){var i=e[t];return i?e2(e,t,r,n,o):Error("The prop `".concat(t,"` is marked as required in `").concat(r,"`, but its value is `").concat(i,"`."))};var e4={activeStartDate:p.instanceOf(Date).isRequired,hover:p.instanceOf(Date),locale:p.string,maxDate:eJ,minDate:eQ,onClick:p.func,onMouseOver:p.func,tileClassName:p.oneOfType([p.func,eY]),tileContent:p.oneOfType([p.func,p.node]),value:e1,valueType:p.oneOf(["century","decade","year","month","day"]).isRequired};p.instanceOf(Date).isRequired,p.arrayOf(p.string.isRequired).isRequired,p.instanceOf(Date).isRequired,p.string,p.func,p.func,p.objectOf(p.oneOfType([p.string,p.number])),p.oneOfType([p.func,eY]),p.oneOfType([p.func,p.node]),p.func;var e5=function(){return(e5=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},e3=function(e){return i.createElement("div",{className:"react-calendar__century-view"},i.createElement(eH,e5({},e)))};e3.propTypes=e5({},e4);var e8=function(){return(e8=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},e6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},e9=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function e7(e){var t=e.classes,r=e.formatYear,n=void 0===r?eh:r,o=e6(e,["classes","formatYear"]),a=o.date,s=o.locale;return i.createElement(eI,e8({},o,{classes:e9(e9([],void 0===t?[]:t,!0),["react-calendar__decade-view__years__year"],!1),maxDateTransform:$,minDateTransform:z,view:"decade"}),n(s,a))}var te=function(){return(te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function tr(e){var t=e.activeStartDate,r=e.hover,n=e.value,o=e.valueType,a=tt(e,["activeStartDate","hover","value","valueType"]),s=S(A(t));return i.createElement(eL,{className:"react-calendar__decade-view__years",dateTransform:z,dateType:"year",end:s+9,hover:r,renderTile:function(e){var r=e.date,n=tt(e,["date"]);return i.createElement(e7,te({key:r.getTime()},a,n,{activeStartDate:t,date:r}))},start:s,value:n,valueType:o})}var tn=function(){return(tn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},to=function(e){return i.createElement("div",{className:"react-calendar__decade-view"},i.createElement(tr,tn({},e)))};to.propTypes=tn({},e4);var ti=function(){return(ti=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ta=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ts=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function tl(e){var t=e.classes,r=e.formatMonth,n=e.formatMonthYear,o=ta(e,["classes","formatMonth","formatMonthYear"]),a=o.date,s=o.locale;return i.createElement(eI,ti({},o,{classes:ts(ts([],void 0===t?[]:t,!0),["react-calendar__year-view__months__month"],!1),formatAbbr:void 0===n?ed:n,maxDateTransform:Y,minDateTransform:W,view:"year"}),(void 0===r?ec:r)(s,a))}var tu=function(){return(tu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function td(e){var t=e.activeStartDate,r=e.hover,n=e.value,o=e.valueType,a=tc(e,["activeStartDate","hover","value","valueType"]),s=S(t);return i.createElement(eL,{className:"react-calendar__year-view__months",dateTransform:function(e){var t=new Date;return t.setFullYear(s,e,1),W(t)},dateType:"month",end:11,hover:r,renderTile:function(e){var r=e.date,n=tc(e,["date"]);return i.createElement(tl,tu({key:r.getTime()},a,n,{activeStartDate:t,date:r}))},start:0,value:n,valueType:o})}var tf=function(){return(tf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tp=function(e){return i.createElement("div",{className:"react-calendar__year-view"},i.createElement(td,tf({},e)))};tp.propTypes=tf({},e4);var th=function(){return(th=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},tv="react-calendar__month-view__days__day";function tg(e){var t=e.calendarType,r=e.classes,n=void 0===r?[]:r,o=e.currentMonthIndex,a=e.formatDay,s=e.formatLongDate,l=tm(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),u=eF(t),c=l.date,d=l.locale,f=[];return n&&f.push.apply(f,n),tv&&f.push(tv),e_(c,u)&&f.push("".concat(tv,"--weekend")),c.getMonth()!==o&&f.push("".concat(tv,"--neighboringMonth")),i.createElement(eI,th({},l,{classes:f,formatAbbr:void 0===s?eu:s,maxDateTransform:et,minDateTransform:ee,view:"month"}),(void 0===a?el:a)(d,c))}var ty=function(){return(ty=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function tw(e){var t=e.activeStartDate,r=e.calendarType,n=e.hover,o=e.showFixedNumberOfWeeks,a=e.showNeighboringMonth,s=e.value,l=e.valueType,u=tb(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),c=eF(r),d=S(t),f=O(t),p=o||a,h=em(t,c),m=(p?-h:0)+1,v=function(){if(o)return m+42-1;var e=T(Y(t));if(a){var r=new Date;return r.setFullYear(d,f,e),r.setHours(0,0,0,0),e+(7-em(r,c)-1)}return e}();return i.createElement(eL,{className:"react-calendar__month-view__days",count:7,dateTransform:function(e){var t=new Date;return t.setFullYear(d,f,e),ee(t)},dateType:"day",hover:n,end:v,renderTile:function(e){var r=e.date,n=tb(e,["date"]);return i.createElement(tg,ty({key:r.getTime()},u,n,{activeStartDate:t,currentMonthIndex:f,date:r}))},offset:p?0:h,start:m,value:s,valueType:l})}var tx="react-calendar__month-view__weekdays",t_="".concat(tx,"__weekday");function tE(e){for(var t=e.calendarType,r=e.formatShortWeekday,n=void 0===r?ef:r,o=e.formatWeekday,a=void 0===o?ep:o,s=e.locale,l=e.onMouseLeave,u=eF(t),c=W(new Date),d=S(c),f=O(c),p=[],m=1;m<=7;m+=1){var v=new Date(d,f,m-em(c,u)),g=a(s,v);p.push(i.createElement("div",{key:m,className:(0,h.Z)(t_,v.getDay()===new Date().getDay()&&"".concat(t_,"--current"),e_(v,u)&&"".concat(t_,"--weekend"))},i.createElement("abbr",{"aria-label":g,title:g},n(s,v).replace(".",""))))}return i.createElement(eC,{className:tx,count:7,onFocus:l,onMouseOver:l},p)}var tk=function(){return(tk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},tO="react-calendar__tile";function tT(e){var t=e.onClickWeekNumber,r=e.weekNumber,n=i.createElement("span",null,r);if(t){var o=e.date,a=e.onClickWeekNumber,s=e.weekNumber,l=tS(e,["date","onClickWeekNumber","weekNumber"]);return i.createElement("button",tk({},l,{className:tO,onClick:function(e){return a(s,o,e)},type:"button"}),n)}e.date,e.onClickWeekNumber,e.weekNumber;var l=tS(e,["date","onClickWeekNumber","weekNumber"]);return i.createElement("div",tk({},l,{className:tO}),n)}function tC(e){var t=e.activeStartDate,r=e.calendarType,n=e.onClickWeekNumber,o=e.onMouseLeave,a=e.showFixedNumberOfWeeks,s=eF(r),l=a?6:1+Math.ceil((T(Y(t))-(7-em(t,s)))/7),u=function(){for(var e=S(t),r=O(t),n=T(t),o=[],i=0;i<l;i+=1)o.push(ev(new Date(e,r,n+7*i),s));return o}(),c=u.map(function(e){return function(e,t){void 0===t&&(t=en.ISO_8601);var r,n=t===en.GREGORY?en.GREGORY:en.ISO_8601,o=ev(e,t),i=S(e)+1;do r=ev(new Date(i,0,n===en.ISO_8601?4:1),t),i-=1;while(e<r);return Math.round((o.getTime()-r.getTime())/(864e5*7))+1}(e,s)});return i.createElement(eC,{className:"react-calendar__month-view__weekNumbers",count:l,direction:"column",onFocus:o,onMouseOver:o,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},c.map(function(e,t){var r=u[t];if(!r)throw Error("date is not defined");return i.createElement(tT,{key:e,date:r,onClickWeekNumber:n,weekNumber:e})}))}var tN=function(){return(tN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tD=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},tP=function(e){var t=e.activeStartDate,r=e.locale,n=e.onMouseLeave,o=e.showFixedNumberOfWeeks,a=e.calendarType,s=void 0===a?function(e){if(e)for(var t=0,r=Object.entries(ei);t<r.length;t++){var n=r[t],o=n[0];if(n[1].includes(e))return o}return en.ISO_8601}(r):a,l=e.formatShortWeekday,u=e.formatWeekday,c=e.onClickWeekNumber,d=e.showWeekNumbers,f=tD(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]),p="react-calendar__month-view";return i.createElement("div",{className:(0,h.Z)(p,d?"".concat(p,"--weekNumbers"):"")},i.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},d?i.createElement(tC,{activeStartDate:t,calendarType:s,onClickWeekNumber:c,onMouseLeave:n,showFixedNumberOfWeeks:o}):null,i.createElement("div",{style:{flexGrow:1,width:"100%"}},i.createElement(tE,{calendarType:s,formatShortWeekday:l,formatWeekday:u,locale:r,onMouseLeave:n}),i.createElement(tw,tN({calendarType:s},f)))))};tP.propTypes=tN(tN({},e4),{calendarType:eG,formatDay:p.func,formatLongDate:p.func,formatShortWeekday:p.func,formatWeekday:p.func,onClickWeekNumber:p.func,onMouseLeave:p.func,showFixedNumberOfWeeks:p.bool,showNeighboringMonth:p.bool,showWeekNumbers:p.bool});var tR=function(){return(tR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tj="react-calendar",tA=["century","decade","year","month"],tF=["decade","year","month","day"],tL=new Date;tL.setFullYear(1,0,1),tL.setHours(0,0,0,0);var tI=new Date(864e13);function tM(e){return e instanceof Date?e:new Date(e)}function tq(e,t){return tA.slice(tA.indexOf(e),tA.indexOf(t)+1)}function tz(e,t,r){return e&&-1!==tq(t,r).indexOf(e)?e:r}function tV(e){return tF[tA.indexOf(e)]}function tU(e,t){var r,n=e.value,o=e.minDate,i=e.maxDate,a=e.maxDetail,s=function(e,t){var r=Array.isArray(e)?e[t]:e;if(!r)return null;var n=tM(r);if(isNaN(n.getTime()))throw Error("Invalid date: ".concat(e));return n}(n,t);if(!s)return null;var l=tV(a);return r=function(){switch(t){case 0:return eg(l,s);case 1:return eb(l,s);default:throw Error("Invalid index value: ".concat(t))}}(),o&&o>r?o:i&&i<r?i:r}var t$=function(e){return tU(e,0)},tH=function(e){return tU(e,1)},tK=function(e){return[t$,tH].map(function(t){return t(e)})};function tB(e){var t=e.maxDate,r=e.maxDetail,n=e.minDate,o=e.minDetail,i=e.value;return eg(tz(e.view,o,r),t$({value:i,minDate:n,maxDate:t,maxDetail:r})||new Date)}function tW(e){return e&&(!Array.isArray(e)||1===e.length)}function tZ(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var tG=(0,i.forwardRef)(function(e,t){var r,n,o,a,s,l,u,c,d,f,p,m,v,g,y=e.activeStartDate,b=e.allowPartialRange,w=e.calendarType,x=e.className,_=e.defaultActiveStartDate,E=e.defaultValue,k=e.defaultView,S=e.formatDay,O=e.formatLongDate,T=e.formatMonth,C=e.formatMonthYear,N=e.formatShortWeekday,D=e.formatWeekday,P=e.formatYear,R=e.goToRangeStartOnSelect,j=void 0===R||R,A=e.inputRef,F=e.locale,L=e.maxDate,I=void 0===L?tI:L,M=e.maxDetail,q=void 0===M?"month":M,z=e.minDate,V=void 0===z?tL:z,U=e.minDetail,$=void 0===U?"century":U,H=e.navigationAriaLabel,K=e.navigationAriaLive,B=e.navigationLabel,W=e.next2AriaLabel,Z=e.next2Label,G=e.nextAriaLabel,Y=e.nextLabel,Q=e.onActiveStartDateChange,J=e.onChange,X=e.onClickDay,ee=e.onClickDecade,et=e.onClickMonth,er=e.onClickWeekNumber,en=e.onClickYear,eo=e.onDrillDown,ei=e.onDrillUp,ea=e.onViewChange,es=e.prev2AriaLabel,el=e.prev2Label,eu=e.prevAriaLabel,ec=e.prevLabel,ed=e.returnValue,ef=void 0===ed?"start":ed,ep=e.selectRange,eh=e.showDoubleView,em=e.showFixedNumberOfWeeks,ev=e.showNavigation,ew=e.showNeighboringMonth,ex=void 0===ew||ew,e_=e.showWeekNumbers,eE=e.tileClassName,eS=e.tileContent,eO=e.tileDisabled,eT=e.value,eC=e.view,eN=(0,i.useState)(_),eD=eN[0],eP=eN[1],eR=(0,i.useState)(null),ej=eR[0],eA=eR[1],eF=(0,i.useState)(Array.isArray(E)?E.map(function(e){return null!==e?tM(e):null}):null!=E?tM(E):null),eL=eF[0],eI=eF[1],eM=(0,i.useState)(k),eq=eM[0],ez=eM[1],eV=y||eD||(n=(r={activeStartDate:y,defaultActiveStartDate:_,defaultValue:E,defaultView:k,maxDate:I,maxDetail:q,minDate:V,minDetail:$,value:eT,view:eC}).activeStartDate,o=r.defaultActiveStartDate,a=r.defaultValue,s=r.defaultView,l=r.maxDate,u=r.maxDetail,c=r.minDate,d=r.minDetail,f=r.value,m=tz(p=r.view,d,u),(v=n||o)?eg(m,v):tB({maxDate:l,maxDetail:u,minDate:c,minDetail:d,value:f||a,view:p||s})),eU=(g=ep&&tW(eL)?eL:void 0!==eT?eT:eL)?Array.isArray(g)?g.map(function(e){return null!==e?tM(e):null}):null!==g?tM(g):null:null,e$=tV(q),eH=tz(eC||eq,$,q),eK=tq($,q),eB=ep?ej:null,eW=eK.indexOf(eH)<eK.length-1,eZ=eK.indexOf(eH)>0,eG=(0,i.useCallback)(function(e){return(function(){switch(ef){case"start":return t$;case"end":return tH;case"range":return tK;default:throw Error("Invalid returnValue.")}})()({maxDate:I,maxDetail:q,minDate:V,value:e})},[I,q,V,ef]),eY=(0,i.useCallback)(function(e,t){eP(e),Q&&!tZ(eV,e)&&Q({action:t,activeStartDate:e,value:eU,view:eH})},[eV,Q,eU,eH]),eQ=(0,i.useCallback)(function(e,t){var r=function(){switch(eH){case"century":return ee;case"decade":return en;case"year":return et;case"month":return X;default:throw Error("Invalid view: ".concat(eH,"."))}}();r&&r(e,t)},[X,ee,et,en,eH]),eJ=(0,i.useCallback)(function(e,t){if(eW){eQ(e,t);var r=eK[eK.indexOf(eH)+1];if(!r)throw Error("Attempted to drill down from the lowest view.");eP(e),ez(r);var n={action:"drillDown",activeStartDate:e,value:eU,view:r};Q&&!tZ(eV,e)&&Q(n),ea&&eH!==r&&ea(n),eo&&eo(n)}},[eV,eW,Q,eQ,eo,ea,eU,eH,eK]),eX=(0,i.useCallback)(function(){if(eZ){var e=eK[eK.indexOf(eH)-1];if(!e)throw Error("Attempted to drill up from the highest view.");var t=eg(e,eV);eP(t),ez(e);var r={action:"drillUp",activeStartDate:t,value:eU,view:e};Q&&!tZ(eV,t)&&Q(r),ea&&eH!==e&&ea(r),ei&&ei(r)}},[eV,eZ,Q,ei,ea,eU,eH,eK]),e0=(0,i.useCallback)(function(e,t){eQ(e,t);var r,n,o=ep&&!tW(eU);if(ep){if(o)r=eg(e$,e);else{if(!eU)throw Error("previousValue is required");if(Array.isArray(eU))throw Error("previousValue must not be an array");r=[eg(e$,(n=[eU,e].sort(function(e,t){return e.getTime()-t.getTime()}))[0]),eb(e$,n[1])]}}else r=eG(e);var i=!ep||o||j?tB({maxDate:I,maxDetail:q,minDate:V,minDetail:$,value:r,view:eH}):null;t.persist(),eP(i),eI(r);var a={action:"onChange",activeStartDate:i,value:r,view:eH};if(Q&&!tZ(eV,i)&&Q(a),J){if(ep){if(tW(r)){if(b){if(Array.isArray(r))throw Error("value must not be an array");J([r||null,null],t)}}else J(r||null,t)}else J(r||null,t)}},[eV,b,eG,j,I,q,V,$,Q,J,eQ,ep,eU,e$,eH]);function e1(e){eA(e)}function e2(){eA(null)}function e4(e){var t={activeStartDate:e?ey(eH,eV):eg(eH,eV),hover:eB,locale:F,maxDate:I,minDate:V,onClick:eW?eJ:e0,onMouseOver:ep?e1:void 0,tileClassName:eE,tileContent:eS,tileDisabled:eO,value:eU,valueType:e$};switch(eH){case"century":return i.createElement(e3,tR({formatYear:P},t));case"decade":return i.createElement(to,tR({formatYear:P},t));case"year":return i.createElement(tp,tR({formatMonth:T,formatMonthYear:C},t));case"month":return i.createElement(tP,tR({calendarType:w,formatDay:S,formatLongDate:O,formatShortWeekday:N,formatWeekday:D,onClickWeekNumber:er,onMouseLeave:ep?e2:void 0,showFixedNumberOfWeeks:void 0!==em?em:eh,showNeighboringMonth:ex,showWeekNumbers:e_},t));default:throw Error("Invalid view: ".concat(eH,"."))}}(0,i.useImperativeHandle)(t,function(){return{activeStartDate:eV,drillDown:eJ,drillUp:eX,onChange:e0,setActiveStartDate:eY,value:eU,view:eH}},[eV,eJ,eX,e0,eY,eU,eH]);var e5=Array.isArray(eU)?eU:[eU];return i.createElement("div",{className:(0,h.Z)(tj,ep&&1===e5.length&&"".concat(tj,"--selectRange"),eh&&"".concat(tj,"--doubleView"),x),ref:A},void 0===ev||ev?i.createElement(ek,{activeStartDate:eV,drillUp:eX,formatMonthYear:C,formatYear:P,locale:F,maxDate:I,minDate:V,navigationAriaLabel:H,navigationAriaLive:K,navigationLabel:B,next2AriaLabel:W,next2Label:Z,nextAriaLabel:G,nextLabel:Y,prev2AriaLabel:es,prev2Label:el,prevAriaLabel:eu,prevLabel:ec,setActiveStartDate:eY,showDoubleView:eh,view:eH,views:eK}):null,i.createElement("div",{className:"".concat(tj,"__viewContainer"),onBlur:ep?e2:void 0,onMouseLeave:ep?e2:void 0},e4(),eh?e4(!0):null))}),tY=p.instanceOf(Date),tQ=p.oneOfType([p.string,p.instanceOf(Date)]),tJ=p.oneOfType([tQ,p.arrayOf(tQ)]);tG.propTypes={activeStartDate:tY,allowPartialRange:p.bool,calendarType:eG,className:eY,defaultActiveStartDate:tY,defaultValue:tJ,defaultView:e2,formatDay:p.func,formatLongDate:p.func,formatMonth:p.func,formatMonthYear:p.func,formatShortWeekday:p.func,formatWeekday:p.func,formatYear:p.func,goToRangeStartOnSelect:p.bool,inputRef:eX,locale:p.string,maxDate:eJ,maxDetail:p.oneOf(tA),minDate:eQ,minDetail:p.oneOf(tA),navigationAriaLabel:p.string,navigationAriaLive:p.oneOf(["off","polite","assertive"]),navigationLabel:p.func,next2AriaLabel:p.string,next2Label:p.node,nextAriaLabel:p.string,nextLabel:p.node,onActiveStartDateChange:p.func,onChange:p.func,onClickDay:p.func,onClickDecade:p.func,onClickMonth:p.func,onClickWeekNumber:p.func,onClickYear:p.func,onDrillDown:p.func,onDrillUp:p.func,onViewChange:p.func,prev2AriaLabel:p.string,prev2Label:p.node,prevAriaLabel:p.string,prevLabel:p.node,returnValue:p.oneOf(["start","end","range"]),selectRange:p.bool,showDoubleView:p.bool,showFixedNumberOfWeeks:p.bool,showNavigation:p.bool,showNeighboringMonth:p.bool,showWeekNumbers:p.bool,tileClassName:p.oneOfType([p.func,eY]),tileContent:p.oneOfType([p.func,p.node]),tileDisabled:p.func,value:tJ,view:e2};var tX=r(4766),t0=(0,f.j)("focus-visible:ring-[1px] focus-visible:ring-blue focus-visible:border-blue",{variants:{color:{primary:String.raw`text-black dark:text-white bg-transparent hover:bg-primary/[0.06] active:bg-primary/[0.12] focus-visible:bg-primary/[0.12] [&.react-calendar\_\_tile--active]:bg-primary [&.react-calendar\_\_tile--active]:text-primary-contrastText [&.react-calendar\_\_tile--hasActive]:bg-primary [&.react-calendar\_\_tile--hasActive]:text-primary-contrastText [&.react-calendar\_\_tile--hasActive]:hover:bg-primary-sl06 [&.react-calendar\_\_tile--hasActive]:active:bg-primary-sl12 [&.react-calendar\_\_tile--hasActive]:focus-visible:bg-primary-sl12 [&.react-calendar\_\_year-view\_\_months\_\_month]:h-[52px] [&.react-calendar\_\_decade-view\_\_years\_\_year]:h-[52px]`}},defaultVariants:{color:"primary"}});function t1({color:e,className:t,...r}){return i.createElement(u.Cl,null,i.createElement(tG,{minDetail:"decade",className:(0,d.cn)("max-w-[284px]  flex flex-col",(0,c.c)({variant:"body2"}),String.raw`[&_.react-calendar\_\_month-view\_\_weekdays\_\_weekday]:text-center [&_.react-calendar\_\_month-view\_\_weekdays\_\_weekday]:text-black/[0.74] [&_.react-calendar\_\_month-view\_\_weekdays\_\_weekday]:dark:text-white/[0.74] [&_.react-calendar\_\_month-view\_\_weekdays\_\_weekday]:py-2 [&_abbr]:[text-decoration:none]`,String.raw`[&_.react-calendar\_\_navigation]:w-full [&_.react-calendar\_\_navigation]:flex [&_.react-calendar\_\_navigation]:items-center [&_.react-calendar\_\_navigation]:justify-between [&_.react-calendar\_\_navigation]:mb-2`,String.raw`[&_.react-calendar\_\_viewContainer]:flex-1 [&_.react-calendar\_\_viewContainer]:flex [&_.react-calendar\_\_viewContainer]:flex-col [&_.react-calendar\_\_viewContainer>*]:flex-1 [&_.react-calendar\_\_viewContainer>*]:flex [&_.react-calendar\_\_viewContainer>*]:items-stretch [&_.react-calendar\_\_month-view>*]:items-start`,String.raw`[&_.react-calendar\_\_navigation\_\_label]:w-fit [&_.react-calendar\_\_navigation\_\_label]:mx-auto [&_.react-calendar\_\_navigation\_\_label]:!flex-grow-0`,t),formatMonthYear:(e,t)=>{let r=tX.ou.fromJSDate(t).setLocale(e??"en").toFormat("MMM yyyy");return`${r[0].toUpperCase()}${r.slice(1)}`},prevLabel:i.createElement(s,null),nextLabel:i.createElement(a,null),prev2Label:null,next2Label:null,tileClassName:({view:t,activeStartDate:r,date:n})=>(0,d.cn)((0,l.L)({variant:"text",color:e}),t0({color:e}),String.raw`[&.react-calendar\_\_month-view\_\_days\_\_day--neighboringMonth]:text-black/[0.38] [&.react-calendar\_\_month-view\_\_days\_\_day--neighboringMonth]:dark:text-white/[0.38]`),...r}))}t1.displayName="Calendar"},1892:function(e,t,r){"use strict";r.d(t,{q:function(){return u}});var n=r(2789),o=r(17681),i=r(94218),a=r(95870),s=r(4766),l=r(44194),u=({CalendarProps:e,customValue:t,value:r,onChange:u,textFieldClassName:c,className:d,placeholder:f="",...p})=>{let h=!r&&!t;return l.createElement(o.J,{className:(0,a.cn)("mt-2",d),content:l.createElement(n.f,{value:r,onChange:e=>{u(e)},...e})},l.createElement(i.n,{value:t||(r?s.ou.fromJSDate(r).toFormat("dd/MM/yyyy"):f),inputProps:{className:(0,a.cn)(h&&"text-black/[0.38] dark:text-white/[0.38]")},className:(0,a.cn)("[&_.TextField-input]:text-start",c),...p,isReadOnly:!0}))}},87641:function(e,t,r){"use strict";r.d(t,{X:function(){return y}});var n=r(84091),o=r(95870),i=(0,r(31706).j)((0,o.cn)("flex gap-[10px] items-center cursor-pointer p-2 border-2 border-solid border-transparent rounded-lg w-fit select-none ",(0,n.c)({variant:"body2"}),"dark:text-white"),{variants:{isHovered:{true:"",false:""},isPressed:{true:"",false:""},isFocusVisible:{true:"",false:""},isDisabled:{true:"opacity-[0.38] cursor-default"},color:{primary:"",secondary:"",tertiary:"",success:"",warning:"",error:"",loading:"",black:"",white:"",grey:"",orange:"",lightblue:"",blue:"",indaco:"",purple:""}},compoundVariants:[{isHovered:!0,color:"primary",className:"bg-primary/[0.06]"},{isPressed:!0,color:"primary",className:"bg-primary/[0.12]"},{isFocusVisible:!0,color:"primary",className:"bg-primary/[0.12] border-primary"},{isHovered:!0,color:"secondary",className:"bg-secondary/[0.06]"},{isPressed:!0,color:"secondary",className:"bg-secondary/[0.12]"},{isFocusVisible:!0,color:"secondary",className:"bg-secondary/[0.12] border-secondary"},{isHovered:!0,color:"tertiary",className:"bg-tertiary/[0.06]"},{isPressed:!0,color:"tertiary",className:"bg-tertiary/[0.12]"},{isFocusVisible:!0,color:"tertiary",className:"bg-tertiary/[0.12] border-tertiary"},{isHovered:!0,color:"success",className:"bg-success/[0.06]"},{isPressed:!0,color:"success",className:"bg-success/[0.12]"},{isFocusVisible:!0,color:"success",className:"bg-success/[0.12] border-success"},{isHovered:!0,color:"warning",className:"bg-warning/[0.06]"},{isPressed:!0,color:"warning",className:"bg-warning/[0.12]"},{isFocusVisible:!0,color:"warning",className:"bg-warning/[0.12] border-warning"},{isHovered:!0,color:"error",className:"bg-error/[0.06]"},{isPressed:!0,color:"error",className:"bg-error/[0.12]"},{isFocusVisible:!0,color:"error",className:"bg-error/[0.12] border-error"},{isHovered:!0,color:"loading",className:"bg-loading/[0.06]"},{isPressed:!0,color:"loading",className:"bg-loading/[0.12]"},{isFocusVisible:!0,color:"loading",className:"bg-loading/[0.12] border-loading"},{isHovered:!0,color:"black",className:"bg-black/[0.06]"},{isPressed:!0,color:"black",className:"bg-black/[0.12]"},{isFocusVisible:!0,color:"black",className:"bg-black/[0.12] border-black"},{isHovered:!0,color:"white",className:"bg-white/[0.06]"},{isPressed:!0,color:"white",className:"bg-white/[0.12]"},{isFocusVisible:!0,color:"white",className:"bg-white/[0.12] border-white"},{isHovered:!0,color:"grey",className:"bg-grey/[0.06]"},{isPressed:!0,color:"grey",className:"bg-grey/[0.12]"},{isFocusVisible:!0,color:"grey",className:"bg-grey/[0.12] border-grey"},{isHovered:!0,color:"orange",className:"bg-orange/[0.06]"},{isPressed:!0,color:"orange",className:"bg-orange/[0.12]"},{isFocusVisible:!0,color:"orange",className:"bg-orange/[0.12] border-orange"},{isHovered:!0,color:"lightblue",className:"bg-lightblue/[0.06]"},{isPressed:!0,color:"lightblue",className:"bg-lightblue/[0.12]"},{isFocusVisible:!0,color:"lightblue",className:"bg-lightblue/[0.12] border-lightblue"},{isHovered:!0,color:"blue",className:"bg-blue/[0.06]"},{isPressed:!0,color:"blue",className:"bg-blue/[0.12]"},{isFocusVisible:!0,color:"blue",className:"bg-blue/[0.12] border-blue"},{isHovered:!0,color:"indaco",className:"bg-indaco/[0.06]"},{isPressed:!0,color:"indaco",className:"bg-indaco/[0.12]"},{isFocusVisible:!0,color:"indaco",className:"bg-indaco/[0.12] border-indaco"},{isHovered:!0,color:"purple",className:"bg-purple/[0.06]"},{isPressed:!0,color:"purple",className:"bg-purple/[0.12]"},{isFocusVisible:!0,color:"purple",className:"bg-purple/[0.12] border-purple"}],defaultVariants:{color:"primary"}}),a=r(44194);function s({...e}){return a.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:20,height:20,rx:4}),a.createElement("mask",{id:"prefix__checked",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:3,y:5,width:14,height:11},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.67 6.904a.597.597 0 000-.818.538.538 0 00-.783 0l-6.84 7.183-2.934-3.063a.538.538 0 00-.784 0 .597.597 0 000 .818l3.326 3.473a.538.538 0 00.784 0l7.232-7.593z",fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeLinecap:"round"})),a.createElement("g",{mask:"url(#prefix__checked)"},a.createElement("path",{fill:"#fff",d:"M3 3h14v14H3z"})))}function l(e){return a.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:20,height:20,rx:4,fill:"#fff",className:"dark:fill-transparent",fillOpacity:.12}),a.createElement("rect",{className:"dark:stroke-white",x:1,y:1,width:18,height:18,rx:3,stroke:"#000",strokeOpacity:.38,strokeWidth:2}))}function u({...e}){return a.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:20,height:20,rx:4}),a.createElement("mask",{id:"prefix__indeterminate",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:3,y:8,width:14,height:4},a.createElement("path",{d:"M15.834 10a.574.574 0 01-.565.583H4.731a.574.574 0 01-.564-.584c0-.322.253-.583.564-.583H15.27c.312 0 .565.261.565.583z",fill:"#fff",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"})),a.createElement("g",{mask:"url(#prefix__indeterminate)"},a.createElement("path",{fill:"#fff",d:"M3 3h14v14H3z"})))}var c=r(35629),d=r(65641),f=r(57058),p=r(26657),h=r(45472);new WeakMap,new WeakMap,new WeakMap;var m=r(7110),v=r(52795),g=r(36063),y=(0,a.forwardRef)(({className:e,color:t,...r},n)=>{let y=function(e={}){let{isReadOnly:t}=e,[r,n]=(0,v.zk)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||n(e)},toggle:function(){t||n(!r)}}}(r),b=(0,c.t)(n),{inputProps:w,isPressed:x}=function(e,t,r){let{inputProps:n,isSelected:o,isPressed:i,isDisabled:s,isReadOnly:l}=function(e,t,r){let{isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,value:a,name:s,children:l,"aria-label":u,"aria-labelledby":c,validationState:d="valid"}=e;null!=l||null!=u||null!=c||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:v}=(0,h.r7)({isDisabled:n}),{focusableProps:g}=(0,p.kc)(e,r),y=(0,f.dG)(m,g),b=(0,f.zL)(e,{labelable:!0});return(0,f.y$)(r,t.isSelected,t.setSelected),{inputProps:(0,f.dG)(b,{"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,"aria-required":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:n,...null==a?{}:{value:a},name:s,type:"checkbox",...y}),isSelected:t.isSelected,isPressed:v,isDisabled:n,isReadOnly:i}}(e,t,r),{isIndeterminate:u}=e;return(0,a.useEffect)(()=>{r.current&&(r.current.indeterminate=u)}),{inputProps:{...n,checked:o},isSelected:o,isPressed:i,isDisabled:s,isReadOnly:l}}({...r,children:r.label},y,b),{isFocusVisible:_,focusProps:E}=(0,p.Fx)(),{hoverProps:k,isHovered:S}=(0,h.XI)({...r}),O=y.isSelected&&!r.isIndeterminate,T=r.isDisabled,C=r.isIndeterminate;return a.createElement(g.Cl,null,a.createElement("label",{className:(0,o.cn)(i({isHovered:S,isPressed:x,isFocusVisible:_,isDisabled:T,color:t}),"white"===t&&"[&_path]:[fill:#000]","string"==typeof e?e:e?.({isPressed:x,isHovered:S,isFocusVisible:_,isDisabled:T??!1})),...(0,f.dG)(k)},a.createElement(m.T,null,a.createElement("input",{type:"checkbox",...(0,f.dG)(w,E),ref:b})),O?a.createElement(s,{"aria-hidden":"true",className:(0,o.cn)(T&&"opacity-[0.38]","flex-shrink-0",(0,d.T)(t??"primary","fill"))}):C?a.createElement(u,{"aria-hidden":"true",className:(0,o.cn)(T&&"opacity-[0.38]","flex-shrink-0",(0,d.T)(t??"primary","fill"))}):a.createElement(l,{"aria-hidden":"true",className:(0,o.cn)(T&&"opacity-[0.38]","flex-shrink-0")}),r.label))});y.displayName="Checkbox"},60048:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var n=(0,r(31706).j)("w-fit transition-colors text-black dark:text-white focus-visible:outline-none outline-none px-4 py-[7px] border-[1px] border-solid border-transparent flex gap-2 items-center",{variants:{color:{primary:"bg-primary/[0.06]",secondary:"bg-secondary/[0.06]",tertiary:"bg-tertiary/[0.06]",success:"bg-success/[0.06]",warning:"bg-warning/[0.06]",error:"bg-error/[0.06]",loading:"bg-loading/[0.06]",black:"bg-black/[0.06]",white:"bg-white/[0.06]",grey:"bg-grey/[0.06]",orange:"bg-orange/[0.06]",lightblue:"bg-lightblue/[0.06]",blue:"bg-blue/[0.06]",indaco:"bg-indaco/[0.06]",purple:"bg-purple/[0.06]"},variant:{rounded:"rounded-3xl",squared:"rounded-[8px]"},deletable:{true:"",false:""},clickable:{true:"cursor-pointer",false:""},hasIcon:{true:"",false:""},selected:{true:"",false:"border-black/[0.74] dark:border-white/[0.74]"},focusVisible:{true:"ring-inset ring-[1px]",false:""},focused:{true:"ring-inset ring-[1px] ring-transparent",false:""},hover:{true:"",false:""},pressed:{true:"",false:""},disabled:{true:"bg-transparent opacity-25 border-black text-black cursor-default dark:border-white dark:text-white",false:""}},compoundVariants:[{variant:"rounded",hasIcon:!0,className:"pl-1 py-1"},{deletable:!0,hasIcon:!0,variant:"squared",className:"pr-2"},{deletable:!0,variant:"rounded",className:"pr-2"},{focused:!0,deletable:!0,disabled:!1,color:"primary",className:"ring-primary border-primary bg-primary/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"secondary",className:"ring-secondary border-secondary bg-secondary/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"tertiary",className:"ring-tertiary border-tertiary bg-tertiary/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"black",className:"ring-black border-black bg-black/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"white",className:"ring-white border-white bg-white/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"grey",className:"ring-grey border-grey bg-grey/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"loading",className:"ring-loading border-loading bg-loading/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"warning",className:"ring-warning border-warning bg-warning/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"success",className:"ring-success border-success bg-success/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"error",className:"ring-error border-error bg-error/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"lightblue",className:"ring-lightblue border-lightblue bg-lightblue/[0.18]"},{focused:!0,disabled:!1,color:"blue",deletable:!0,className:"ring-blue border-blue bg-blue/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"indaco",className:"ring-indaco border-indaco bg-indaco/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"purple",className:"ring-purple border-purple bg-purple/[0.18]"},{focused:!0,disabled:!1,deletable:!0,color:"orange",className:"ring-orange border-orange bg-orange/[0.18]"},{focusVisible:!0,disabled:!1,color:"primary",className:"ring-primary border-primary dark:border-primary bg-primary/[0.18]"},{focusVisible:!0,disabled:!1,color:"secondary",className:"ring-secondary border-secondary dark:border-secondary bg-secondary/[0.18]"},{focusVisible:!0,disabled:!1,color:"tertiary",className:"ring-tertiary border-tertiary dark:border-tertiary bg-tertiary/[0.18]"},{focusVisible:!0,disabled:!1,color:"black",className:"ring-black border-black dark:border-black bg-black/[0.18]"},{focusVisible:!0,disabled:!1,color:"white",className:"ring-white border-white dark:border-white bg-white/[0.18]"},{focusVisible:!0,disabled:!1,color:"grey",className:"ring-grey border-grey dark:border-grey bg-grey/[0.18]"},{focusVisible:!0,disabled:!1,color:"loading",className:"ring-loading border-loading dark:border-loading bg-loading/[0.18]"},{focusVisible:!0,disabled:!1,color:"warning",className:"ring-warning border-warning dark:border-warning bg-warning/[0.18]"},{focusVisible:!0,disabled:!1,color:"success",className:"ring-success border-success dark:border-success bg-success/[0.18]"},{focusVisible:!0,disabled:!1,color:"error",className:"ring-error border-error dark:border-error bg-error/[0.18]"},{focusVisible:!0,disabled:!1,color:"lightblue",className:"ring-lightblue border-lightblue dark:border-lightblue bg-lightblue/[0.18]"},{focusVisible:!0,disabled:!1,color:"blue",className:"ring-blue border-blue dark:border-blue bg-blue/[0.18]"},{focusVisible:!0,disabled:!1,color:"indaco",className:"ring-indaco border-indaco dark:border-indaco bg-indaco/[0.18]"},{focusVisible:!0,disabled:!1,color:"purple",className:"ring-purple border-purple dark:border-purple bg-purple/[0.18]"},{focusVisible:!0,disabled:!1,color:"orange",className:"ring-orange border-orange dark:border-orange bg-orange/[0.18]"},{hover:!0,disabled:!1,clickable:!0,color:"primary",className:"bg-primary/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"secondary",className:"bg-secondary/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"tertiary",className:"bg-tertiary/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"black",className:"bg-black/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"white",className:"bg-white/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"grey",className:"bg-grey/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"loading",className:"bg-loading/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"warning",className:"bg-warning/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"success",className:"bg-success/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"error",className:"bg-error/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"lightblue",className:"bg-lightblue/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"blue",className:"bg-blue/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"indaco",className:"bg-indaco/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"purple",className:"bg-purple/[0.12]"},{hover:!0,disabled:!1,clickable:!0,color:"orange",className:"bg-orange/[0.12]"},{pressed:!0,disabled:!1,clickable:!0,color:"primary",className:"bg-primary/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"secondary",className:"bg-secondary/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"tertiary",className:"bg-tertiary/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"black",className:"bg-black/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"white",className:"bg-white/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"grey",className:"bg-grey/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"loading",className:"bg-loading/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"warning",className:"bg-warning/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"success",className:"bg-success/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"error",className:"bg-error/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"lightblue",className:"bg-lightblue/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"blue",className:"bg-blue/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"indaco",className:"bg-indaco/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"purple",className:"bg-purple/[0.18]"},{pressed:!0,disabled:!1,clickable:!0,color:"orange",className:"bg-orange/[0.18]"}]})},89854:function(e,t,r){"use strict";r.d(t,{A:function(){return p}});var n=r(60048),o=r(44194);function i(e){return o.createElement("svg",{width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("mask",{id:"prefix__chip_delete",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:3,y:3,width:12,height:12},o.createElement("path",{d:"M14.396 4.813a.855.855 0 00-1.209-1.209L9 7.791 4.813 3.604a.855.855 0 10-1.209 1.209L7.791 9l-4.187 4.187a.854.854 0 101.209 1.209L9 10.209l4.187 4.187a.855.855 0 101.209-1.209L10.209 9l4.187-4.187z",className:"fill-white dark:fill-black"})),o.createElement("g",{mask:"url(#prefix__chip_delete)"},o.createElement("path",{className:"fill-black dark:fill-white",d:"M0 0h18v18H0z"})))}var a=r(36063),s=r(96697),l=r(35629),u=r(95870),c=r(33169),d=r(26657),f=r(45472),p=(0,o.forwardRef)(({className:e,color:t="primary",startIcon:r,children:p,variant:h="squared",selected:m=!1,onDelete:v,...g},y)=>{let b=(0,l.t)(y),{buttonProps:w,isPressed:x}=(0,c.U)(g,b),{focusProps:_,isFocusVisible:E,isFocused:k}=(0,d.Fx)(),{hoverProps:S,isHovered:O}=(0,f.XI)(g);return(0,o.useEffect)(()=>{let e=e=>{k&&v&&"Backspace"===e.key&&v?.()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[k]),o.createElement(a.Cl,null,(0,o.createElement)(g.onPress||v?"button":"div",{...w,..._,...S,ref:y,className:(0,u.cn)((0,n.O)({pressed:x,focused:k,focusVisible:E,disabled:g.isDisabled??!1,hover:O,deletable:!!v,clickable:!!g.onPress||!!v,hasIcon:!!r,color:t,variant:h,selected:m}),"string"==typeof e?e:e?.({pressed:x,focused:k,focusVisible:E,disabled:g.isDisabled??!1,hovered:O}))},o.createElement(o.Fragment,null,r,"string"==typeof p?o.createElement(s.Z,{variant:"body2"},p):p,v&&o.createElement("span",{className:"w-[18px] h-[18px]",onClick:()=>{g.isDisabled||v()}},o.createElement(i,null)))))});p.displayName="Chip"},49421:function(e,t,r){"use strict";r.d(t,{G:function(){return a},W:function(){return i}});var n=r(44194),o=(0,n.createContext)({mode:"light",switchMode:()=>{}}),i=({children:e,mode:t,switchMode:r})=>n.createElement(o.Provider,{value:{mode:t,switchMode:r}},e),a=()=>{let{mode:e,switchMode:t}=(0,n.useContext)(o);return{isDarkMode:"dark"===e,switchMode:t}}},17981:function(e,t,r){"use strict";r.d(t,{$N:function(){return u},Be:function(){return c},EM:function(){return f},Vq:function(){return l}});var n=r(56318),o=r(75516),i=r(36063),a=r(95870),s=r(44194),l=({className:e,children:t,afterLeave:r,open:l,...u})=>s.createElement(i.Cl,null,s.createElement(n.u,{appear:!0,afterLeave:r,show:l,as:s.Fragment},s.createElement(o.V,{className:(0,a.cn)("relative z-50",e),...u},s.createElement(n.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},s.createElement("div",{className:"fixed inset-0 bg-black/30"})),s.createElement(n.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},s.createElement("div",{className:"fixed inset-0 flex items-center justify-center p-4"},t))))),u=({...e})=>s.createElement(o.V.Title,{as:s.Fragment,...e}),c=({...e})=>s.createElement(o.V.Description,{as:s.Fragment,...e}),d=o.V.Panel,f=({className:e,...t})=>s.createElement(d,{className:(0,a.cn)("rounded-3xl bg-white p-6 shadow-6",e),...t})},41058:function(e,t,r){"use strict";r.d(t,{d:function(){return d},i:function(){return u}});var n=r(17981),o=r(44194),i=r(39233),a=r(95870),s=r(96697),l=r(25263),u=({title:e,description:t,icon:r,positiveButton:l,onPositivePress:u,negativeButton:c,onNegativePress:d,children:f,className:p,onSuccess:h,onCancel:m,onClose:v,...g})=>{let[y,b]=(0,o.useState)(!1),[w,x]=(0,o.useState)(!1),_=y||w,E=(0,o.useRef)(!1),k=(0,o.useRef)(!1);(0,o.useEffect)(()=>(k.current=!1,()=>{k.current=!0}),[]);let S=()=>{_||v(!1)},O=async e=>{let t=d?.(e);t&&"function"==typeof t.then&&(x(!0),await t,k.current||x(!1)),S()},T=async e=>{let t=u?.(e);t&&"function"==typeof t.then&&(b(!0),await t,k.current||b(!1)),E.current=!0,S()};return o.createElement(n.Vq,{onClose:()=>{E.current=!1,S()},afterLeave:()=>{E.current?h?.():m?.()},...g},o.createElement(n.EM,{className:(0,a.cn)("flex w-full max-w-screen-sm flex-col gap-8",r&&"items-center justify-center",p)},r,o.createElement("div",{className:"flex flex-col gap-4 [align-items:inherit] [justify-content:inherit]"},o.createElement(n.$N,null,"string"==typeof e?o.createElement(s.Z,{variant:r?"h5":"subtitle1"},e):e),o.createElement(n.Be,null,"string"==typeof t?o.createElement(s.Z,{variant:"body1"},t):t)),f,o.createElement("div",{className:"flex w-full items-center justify-between gap-2"},c&&("string"==typeof c?o.createElement(i.z,{variant:"outlined",onPress:O,isDisabled:_,isLoading:w},c):"function"==typeof c?c({onNegativePress:O,isLoading:{negative:w,positive:y}}):c),l&&("string"==typeof l?o.createElement(i.z,{variant:"contained",isLoading:y,isDisabled:_,onPress:T},l):"function"==typeof l?l({onPositivePress:T,isLoading:{negative:w,positive:y}}):l))))},c=l.ZP.create(e=>{let{visible:t,hide:r}=(0,l.dd)();return o.createElement(u,{open:t,onClose:r,...e})});function d({...e}){return new Promise((t,r)=>{l.ZP.show(c,{onSuccess:()=>{t("")},onCancel:()=>{r("")},...e})})}},9314:function(e,t,r){"use strict";let n,o;r.d(t,{h:function(){return d}});var i=r(39233),a=r(44194),s=r(95870),l=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n},c=(n="rounded-full flex items-center justify-center",o={variants:{size:{small:"w-8 h-8",medium:"w-10 h-10",large:"w-12 h-12"}},defaultVariants:{size:"medium"}},e=>{var t;if((null==o?void 0:o.variants)==null)return u(n,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:r,defaultVariants:i}=o,a=Object.keys(r).map(t=>{let n=null==e?void 0:e[t],o=null==i?void 0:i[t];if(null===n)return null;let a=l(n)||l(o);return r[t][a]}),s=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return u(n,a,null==o?void 0:null===(t=o.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):({...i,...s})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),d=(0,a.forwardRef)(({className:e,...t},r)=>a.createElement(i.z,{ref:r,...t,className:r=>(0,s.cn)(c({size:t.size}),"string"==typeof e?e:e?.(r))}));d.displayName="IconButton"},83503:function(e,t,r){"use strict";r.d(t,{A2:function(){return l},Cc:function(){return a},Ty:function(){return s},rf:function(){return u}});var n=r(25263),o=r(44194),i=(0,o.createContext)({}),a=({children:e})=>{let t=function(){let e=(0,o.useRef)([]),t=(0,o.useCallback)((t,r)=>{e.current.length>0&&n.ZP.hide(e.current[e.current.length-1]?.modal),e.current.push({modal:t,props:r})},[]),r=(0,o.useCallback)((e,r)=>new Promise((o,i)=>{let a={...r,onSuccess:o,onCancel:i};t(e.id,a),n.ZP.show(e.id,a)}),[t]),i=(0,o.useCallback)((e,r)=>new Promise((o,i)=>{let a={...r,onSuccess:o,onCancel:i};t(e,a),n.ZP.show(e,a)}),[t]),a=(0,o.useCallback)((e,r)=>new Promise((o,i)=>{let a={...r,onSuccess:o,onCancel:i};t(e,a),n.ZP.show(e,a)}),[t]),s=(0,o.useCallback)(()=>{let t=e.current.pop();t&&n.ZP.hide(t?.modal),e.current.length>0&&n.ZP.show(e.current[e.current.length-1]?.modal,e.current[e.current.length-1]?.props)},[]),l=(0,o.useCallback)(t=>{e.current.length>0&&n.ZP.hide(e.current[e.current.length-1]?.modal);let r=t>=0?t:e.current.length-1+t;if(r>=e.current.length)return;if(r<0){e.current=[];return}let o=e.current[r];e.current=e.current.slice(0,r+1),o&&n.ZP.show(o.modal,o.props)},[]),u=(0,o.useCallback)(t=>{l(e.current.findIndex(e=>e.modal===t))},[l]);return{dismissModal:(0,o.useCallback)(()=>{e.current.length>0&&n.ZP.hide(e.current[e.current.length-1]?.modal),e.current=[]},[]),pushModal:r,pushModalById:i,popModal:s,popTo:l,popToById:u,pushModalByComponent:a}}();return o.createElement(i.Provider,{value:t},o.createElement(n.ZP.Provider,null,e))};function s(){return(0,o.useContext)(i)}function l(){let{visible:e,id:t,keepMounted:r,remove:o,args:i,delayVisible:a}=(0,n.dd)();return{visible:e,id:t,keepMounted:r,remove:o,args:i,delayVisible:a}}var u={...n.ZP,register:(e,t)=>{n.ZP.register(e.id,e.component,t)},registerById:n.ZP.register}},17681:function(e,t,r){"use strict";r.d(t,{J:function(){return u}});var n={arrow:"Popover-arrow",container:"Popover-container"},o=r(70259),i=r(95870),a=r(25121),s=r(44194),l=r(36063),u=({children:e,closeIcon:t,hasArrow:r,content:u,className:c,open:d,onOpenChange:f,defaultOpen:p,modal:h,sideOffset:m=4,collisionPadding:v=4,...g})=>s.createElement(l.Cl,null,s.createElement(o.fC,{open:d,onOpenChange:f,defaultOpen:p,modal:h},s.createElement(o.xz,{asChild:!0},e),s.createElement(o.h_,null,s.createElement(o.VY,{className:(0,i.cn)("data-[state=open]:animate-fade rounded-xl bg-white drop-shadow-[0px_1px_12px_rgba(0,_0,_0,_0.12)] p-2 will-change-[transform,opacity]","[&_.Popover-arrow]:data-[align=start]:data-[side=right]:left-2 [&_.Popover-arrow]:data-[align=end]:data-[side=right]:right-2","[&_.Popover-arrow]:data-[align=start]:data-[side=top]:left-2 [&_.Popover-arrow]:data-[align=end]:data-[side=top]:right-2","[&_.Popover-arrow]:data-[align=start]:data-[side=left]:right-2 [&_.Popover-arrow]:data-[align=end]:data-[side=left]:left-2","[&_.Popover-arrow]:data-[align=start]:data-[side=bottom]:right-2 [&_.Popover-arrow]:data-[align=end]:data-[side=bottom]:left-2",c,n.container),sideOffset:m,collisionPadding:v,...g},u,t&&s.createElement(o.x8,{asChild:!0,"aria-label":"Close"},t),r&&s.createElement(o.Eh,{asChild:!0},s.createElement(a.E,{className:(0,i.cn)(n.arrow)}))))));u.displayName="Popover"},36063:function(e,t,r){"use strict";r.d(t,{Cl:function(){return a}});var n=r(21773),o=r(44194),i=(0,o.createContext)({hasEnabledPreflight:!1}),a=(0,o.forwardRef)((e,t)=>{let{hasEnabledPreflight:r}=s();return r?o.createElement(n.g7,{className:"mabi-ui-preflight",ref:t,...e}):o.createElement(o.Fragment,null,e.children)}),s=()=>{let e=(0,o.useContext)(i);return void 0===e?{hasEnabledPreflight:!1}:e}},77616:function(e,t,r){"use strict";r.d(t,{E:function(){return g}});var n={base:"Progress-base",bar:"Progress-bar",labelContainer:"Progress-labelContainer"},o=r(31706),i=(0,o.j)("flex flex-row",{variants:{variant:{linear:"items-center gap-4",circular:"w-fit h-fit relative"}}}),a=(0,o.j)("transition-color",{variants:{color:{primary:"stroke-primary",secondary:"stroke-secondary",tertiary:"stroke-tertiary",error:"stroke-error",success:"stroke-success",warning:"stroke-warning",loading:"stroke-loading",black:"stroke-black",white:"stroke-white",grey:"stroke-grey",orange:"stroke-orange",lightblue:"stroke-lightblue",blue:"stroke-blue",indaco:"stroke-indaco",purple:"stroke-purple"}}}),s=(0,o.j)("absolute top-0 left-0 h-full rounded-[100px] transition-all w-full",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",tertiary:"bg-tertiary",error:"bg-error",success:"bg-success",warning:"bg-warning",loading:"bg-loading",black:"bg-black",white:"bg-white",grey:"bg-grey",orange:"bg-orange",lightblue:"bg-lightblue",blue:"bg-blue",indaco:"bg-indaco",purple:"bg-purple"}}}),l=r(44194);function u(e){return l.createElement("div",{className:"flex justify-center items-center w-[22px] h-[22px] bg-[#F6DEDD] rounded-full"},l.createElement("svg",{width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("mask",{id:"prefix__error_icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:10,height:10},l.createElement("path",{d:"M11.197 3.743a.665.665 0 00-.94-.94L7 6.06 3.743 2.803a.665.665 0 00-.94.94L6.06 7l-3.257 3.257a.665.665 0 00.94.94L7 7.94l3.257 3.257a.665.665 0 00.94-.94L7.94 7l3.257-3.257z",fill:"#fff"})),l.createElement("g",{mask:"url(#prefix__error_icon)"},l.createElement("path",{fill:"#FF3B30",d:"M0 0h14v14H0z"}))))}function c(e){return l.createElement("div",{className:"flex justify-center items-center w-[22px] h-[22px] bg-[#DDEFE2] rounded-full"},l.createElement("svg",{width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("mask",{id:"prefix__success_icon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:1,y:2,width:12,height:10},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.671 3.905a.597.597 0 000-.819.538.538 0 00-.784 0l-6.84 7.184-2.934-3.063a.538.538 0 00-.784 0 .597.597 0 000 .818l3.326 3.472a.537.537 0 00.784 0l7.232-7.592z",fill:"#000"})),l.createElement("g",{mask:"url(#prefix__success_icon)"},l.createElement("path",{fill:"#34C759",d:"M0 0h14v14H0z"}))))}var d=r(95870),f=r(57058),p=r(52795),h=r(9697),m=r(34728),v=r(96697),g=l.forwardRef(({progressPercentage:e,className:t,label:r,error:o,success:g,withStatusIcon:y,thickness:b,size:w=80,variant:x="linear",color:_="primary",...E},k)=>{let{progressBarProps:S,labelProps:O}=function(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=(0,f.zL)(e,{labelable:!0}),{labelProps:l,fieldProps:u}=(0,h.N)({...e,labelElementType:"span"}),c=((t=(0,p.uZ)(t,r,n))-r)/(n-r),d=(0,m.Ux)(a);if(!i&&!o){let e="percent"===a.style?c:t;o=d.format(e)}return{progressBarProps:(0,f.dG)(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}({minValue:0,maxValue:100,isIndeterminate:!1,value:e,label:r,"aria-label":E["aria-label"]}),T=w/2,C=2*Math.PI*(T-(b??4)/2);return l.createElement("div",{className:(0,d.cn)(i({variant:x}),t),ref:k,...S,...E},"circular"===x?l.createElement(l.Fragment,null,l.createElement("svg",{width:w,height:w},l.createElement("circle",{className:(0,d.cn)("dark:stroke-white/[0.06] stroke-black/[0.06]",n.base),cx:T,cy:T,r:T-(b??4)/2,strokeWidth:b??4,fill:"none"}),e>0&&l.createElement("circle",{className:(0,d.cn)(a({color:o?"error":g?"success":_}),n.bar),cx:T,cy:T,r:T-(b??4)/2,transform:`rotate(-90 ${T} ${T})`,strokeLinecap:"round",strokeWidth:b??4,strokeDasharray:C,strokeDashoffset:(1-e/100)*C,fill:"none"})),l.createElement("div",{className:(0,d.cn)(n.labelContainer)},r&&l.createElement(v.Z,{variant:"button",asChild:!0},l.createElement("span",{className:(0,d.cn)("transition-opacity dark:text-white absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] text-center",y&&(g||o)&&"opacity-0"),"aria-hidden":!!y&&(!!g||!!o),...O},r)),l.createElement("div",{"aria-hidden":y&&g,className:(0,d.cn)("absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] transition-opacity",(!y||!g)&&"opacity-0")},l.createElement(c,null)),l.createElement("div",{"aria-hidden":y&&o,className:(0,d.cn)("absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] transition-opacity",(!y||!o)&&"opacity-0")},l.createElement(u,null)))):l.createElement(l.Fragment,null,l.createElement("div",{style:{height:b??"6px"},className:(0,d.cn)("w-full rounded-[100px] bg-black/[0.06] dark:bg-white/[0.06] relative overflow-hidden",n.base)},l.createElement("div",{className:(0,d.cn)(s({color:o?"error":g?"success":_}),n.bar),style:{transform:`translateX(-${100-e}%)`}})),(r||y)&&l.createElement("div",{className:(0,d.cn)("relative dark:text-white shrink-0 min-w-[22px]",n.labelContainer)},r&&l.createElement(v.Z,{variant:"button",asChild:!0},l.createElement("span",{className:(0,d.cn)("transition-opacity",y&&(g||o)&&"opacity-0"),"aria-hidden":!!y&&(!!g||!!o),...O},r)),l.createElement("div",{"aria-hidden":y&&g,className:(0,d.cn)("absolute left-0 top-[50%] translate-y-[-50%] transition-opacity",(!y||!g)&&"opacity-0")},l.createElement(c,null)),l.createElement("div",{"aria-hidden":y&&o,className:(0,d.cn)("absolute left-0 top-[50%] translate-y-[-50%] transition-opacity",(!y||!o)&&"opacity-0")},l.createElement(u,null)))))});g.displayName="Progress"},82323:function(e,t,r){"use strict";r.d(t,{EN:function(){return s},X5:function(){return a},_F:function(){return o},i7:function(){return i}});var n=r(31706),o=(0,n.j)("ring-transparent w-full text-start text-black"),i=(0,n.j)("",{variants:{color:{primary:"bg-primary/[0.24]",secondary:"bg-secondary/[0.24]",tertiary:"bg-tertiary/[0.24]",success:"bg-success/[0.24]",warning:"bg-warning/[0.24]",error:"bg-error/[0.24]",loading:"bg-loading/[0.24]",black:"bg-black/[0.24]",white:"bg-white/[0.24]",grey:"bg-grey/[0.24]",orange:"bg-orange/[0.24]",lightblue:"bg-lightblue/[0.24]",blue:"bg-blue/[0.24]",indaco:"bg-indaco/[0.24]",purple:"bg-purple/[0.24]"}}}),a=(0,n.j)("",{variants:{color:{primary:"ring-primary border-primary",secondary:" ring-secondary border-secondary",tertiary:" ring-tertiary border-tertiary",success:" ring-success border-success",warning:" ring-warning border-warning",error:" ring-error border-error",loading:" ring-loading border-loading",black:" ring-black border-black",white:" ring-white border-white",grey:" ring-grey border-grey",orange:" ring-orange border-orange",lightblue:" ring-lightblue border-lightblue",blue:" ring-blue border-blue",indaco:" ring-indaco border-indaco",purple:" ring-purple border-purple"}}}),s=(0,n.j)("z-[100] max-h-60 overflow-auto rounded-xl bg-white p-2 shadow-3 focus:outline-none")},58041:function(e,t,r){"use strict";let n,o,i,a;r.d(t,{P:function(){return en}});var s=r(82323),l=r(44194),u=function(e){return l.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("mask",{id:"select_arrow_down",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:7,y:8,width:6,height:4},l.createElement("path",{d:"M7.604 8.47a.25.25 0 00-.177.426l2.396 2.397a.25.25 0 00.354 0l2.396-2.396a.25.25 0 00-.177-.427H7.604z",className:"fill-black dark:fill-white"})),l.createElement("g",{mask:"url(#select_arrow_down)"},l.createElement("path",{className:"fill-black dark:fill-white",d:"M4 3.97h12v12H4z"})))},c=r(92772),d=r(85507),f=r(81783),p=r(77697),h=r(62461),m=r(49687),v=r(88659),g=r(55261),y=r(27552),b=r(79035),w=r(5904),x=r(25761),_=r(63355),E=r(37576),k=r(46341),S=r(59545),O=r(93880),T=r(91307),C=r(13824),N=r(2931),D=r(2165),P=r(51511);let R=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function j(e){var t,r;let n=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(r=o.innerText)?r:"":n;return R.test(a)&&(a=a.replace(R,"")),a}var A=((n=A||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),F=((o=F||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),L=((i=L||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),I=((a=I||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterOption=5]="RegisterOption",a[a.UnregisterOption=6]="UnregisterOption",a[a.RegisterLabel=7]="RegisterLabel",a);function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,x.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return -1===o&&(o=null),{options:n,activeOptionIndex:o}}let q={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==n&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=M(e),o=(0,b.d)(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=M(e,e=>[...e,r]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=M(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},z=(0,l.createContext)(null);function V(e){let t=(0,l.useContext)(z);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,V),t}return t}z.displayName="ListboxActionsContext";let U=(0,l.createContext)(null);function $(e){let t=(0,l.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,$),t}return t}function H(e,t){return(0,v.E)(t.type,q,e,t)}U.displayName="ListboxDataContext";let K=l.Fragment,B=m.AN.RenderStrategy|m.AN.Static,W=Object.assign((0,m.yV)(function(e,t){let{value:r,defaultValue:n,form:o,name:i,onChange:a,by:s=(e,t)=>e===t,disabled:u=!1,horizontal:d=!1,multiple:p=!1,...g}=e,y=d?"horizontal":"vertical",w=(0,h.T)(t),[E=p?[]:void 0,T]=(0,N.q)(r,a,n),[D,P]=(0,l.useReducer)(H,{dataRef:(0,l.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),R=(0,l.useRef)({static:!1,hold:!1}),j=(0,l.useRef)(null),A=(0,l.useRef)(null),F=(0,l.useRef)(null),L=(0,C.z)("string"==typeof s?(e,t)=>(null==e?void 0:e[s])===(null==t?void 0:t[s]):s),I=(0,l.useCallback)(e=>(0,v.E)(M.mode,{1:()=>E.some(t=>L(t,e)),0:()=>L(E,e)}),[E]),M=(0,l.useMemo)(()=>({...D,value:E,disabled:u,mode:p?1:0,orientation:y,compare:L,isSelected:I,optionsPropsRef:R,labelRef:j,buttonRef:A,optionsRef:F}),[E,u,p,D]);(0,f.e)(()=>{D.dataRef.current=M},[M]),(0,k.O)([M.buttonRef,M.optionsRef],(e,t)=>{var r;P({type:1}),(0,x.sP)(t,x.tJ.Loose)||(e.preventDefault(),null==(r=M.buttonRef.current)||r.focus())},0===M.listboxState);let q=(0,l.useMemo)(()=>({open:0===M.listboxState,disabled:u,value:E}),[M,u,E]),V=(0,C.z)(e=>{let t=M.options.find(t=>t.id===e);t&&Q(t.dataRef.current.value)}),$=(0,C.z)(()=>{if(null!==M.activeOptionIndex){let{dataRef:e,id:t}=M.options[M.activeOptionIndex];Q(e.current.value),P({type:2,focus:b.T.Specific,id:t})}}),B=(0,C.z)(()=>P({type:0})),W=(0,C.z)(()=>P({type:1})),Z=(0,C.z)((e,t,r)=>e===b.T.Specific?P({type:2,focus:b.T.Specific,id:t,trigger:r}):P({type:2,focus:e,trigger:r})),G=(0,C.z)((e,t)=>(P({type:5,id:e,dataRef:t}),()=>P({type:6,id:e}))),Y=(0,C.z)(e=>(P({type:7,id:e}),()=>P({type:7,id:null}))),Q=(0,C.z)(e=>(0,v.E)(M.mode,{0:()=>null==T?void 0:T(e),1(){let t=M.value.slice(),r=t.findIndex(t=>L(t,e));return -1===r?t.push(e):t.splice(r,1),null==T?void 0:T(t)}})),J=(0,C.z)(e=>P({type:3,value:e})),X=(0,C.z)(()=>P({type:4})),ee=(0,l.useMemo)(()=>({onChange:Q,registerOption:G,registerLabel:Y,goToOption:Z,closeListbox:W,openListbox:B,selectActiveOption:$,selectOption:V,search:J,clearSearch:X}),[]),et=(0,l.useRef)(null),er=(0,c.G)();return(0,l.useEffect)(()=>{et.current&&void 0!==n&&er.addEventListener(et.current,"reset",()=>{Q(n)})},[et,Q]),l.createElement(z.Provider,{value:ee},l.createElement(U.Provider,{value:M},l.createElement(_.up,{value:(0,v.E)(M.listboxState,{0:_.ZM.Open,1:_.ZM.Closed})},null!=i&&null!=E&&(0,O.t)({[i]:E}).map((e,t)=>{let[r,n]=e;return l.createElement(S._,{features:S.A.Hidden,ref:0===t?e=>{var t;et.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,m.oA)({key:r,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:r,value:n})})}),(0,m.sY)({ourProps:{ref:w},theirProps:g,slot:q,defaultTag:K,name:"Listbox"}))))}),{Button:(0,m.yV)(function(e,t){var r;let n=(0,d.M)(),{id:o="headlessui-listbox-button-".concat(n),...i}=e,a=$("Listbox.Button"),s=V("Listbox.Button"),u=(0,h.T)(a.buttonRef,t),f=(0,c.G)(),v=(0,C.z)(e=>{switch(e.key){case y.R.Space:case y.R.Enter:case y.R.ArrowDown:e.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(b.T.First)});break;case y.R.ArrowUp:e.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(b.T.Last)})}}),g=(0,C.z)(e=>{e.key===y.R.Space&&e.preventDefault()}),x=(0,C.z)(e=>{if((0,w.P)(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),f.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),s.openListbox())}),_=(0,p.v)(()=>{if(a.labelId)return[a.labelId,o].join(" ")},[a.labelId,o]),k=(0,l.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value}),[a]),S={ref:u,id:o,type:(0,E.f)(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(r=a.optionsRef.current)?void 0:r.id,"aria-expanded":0===a.listboxState,"aria-labelledby":_,disabled:a.disabled,onKeyDown:v,onKeyUp:g,onClick:x};return(0,m.sY)({ourProps:S,theirProps:i,slot:k,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,m.yV)(function(e,t){let r=(0,d.M)(),{id:n="headlessui-listbox-label-".concat(r),...o}=e,i=$("Listbox.Label"),a=V("Listbox.Label"),s=(0,h.T)(i.labelRef,t);(0,f.e)(()=>a.registerLabel(n),[n]);let u=(0,C.z)(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),c=(0,l.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled}),[i]);return(0,m.sY)({ourProps:{ref:s,id:n,onClick:u},theirProps:o,slot:c,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,m.yV)(function(e,t){var r;let n=(0,d.M)(),{id:o="headlessui-listbox-options-".concat(n),...i}=e,a=$("Listbox.Options"),s=V("Listbox.Options"),u=(0,h.T)(a.optionsRef,t),f=(0,c.G)(),w=(0,c.G)(),x=(0,_.oJ)(),E=null!==x?(x&_.ZM.Open)===_.ZM.Open:0===a.listboxState;(0,l.useEffect)(()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=(0,T.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let k=(0,C.z)(e=>{switch(w.dispose(),e.key){case y.R.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case y.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),(0,g.k)().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,v.E)(a.orientation,{vertical:y.R.ArrowDown,horizontal:y.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(b.T.Next);case(0,v.E)(a.orientation,{vertical:y.R.ArrowUp,horizontal:y.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(b.T.Previous);case y.R.Home:case y.R.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(b.T.First);case y.R.End:case y.R.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(b.T.Last);case y.R.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),f.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case y.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),w.setTimeout(()=>s.clearSearch(),350))}}),S=(0,p.v)(()=>{var e,t,r;return null!=(r=null==(e=a.labelRef.current)?void 0:e.id)?r:null==(t=a.buttonRef.current)?void 0:t.id},[a.labelRef.current,a.buttonRef.current]),O=(0,l.useMemo)(()=>({open:0===a.listboxState}),[a]),N={"aria-activedescendant":null===a.activeOptionIndex||null==(r=a.options[a.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":S,"aria-orientation":a.orientation,id:o,onKeyDown:k,role:"listbox",tabIndex:0,ref:u};return(0,m.sY)({ourProps:N,theirProps:i,slot:O,defaultTag:"ul",features:B,visible:E,name:"Listbox.Options"})}),Option:(0,m.yV)(function(e,t){let r,n;let o=(0,d.M)(),{id:i="headlessui-listbox-option-".concat(o),disabled:a=!1,value:s,...u}=e,c=$("Listbox.Option"),p=V("Listbox.Option"),v=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===i,y=c.isSelected(s),w=(0,l.useRef)(null),x=(r=(0,l.useRef)(""),n=(0,l.useRef)(""),(0,C.z)(()=>{let e=w.current;if(!e)return"";let t=e.innerText;if(r.current===t)return n.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():j(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return j(e).trim()})(e).trim().toLowerCase();return r.current=t,n.current=o,o})),_=(0,D.E)({disabled:a,value:s,domRef:w,get textValue(){return x()}}),E=(0,h.T)(t,w);(0,f.e)(()=>{if(0!==c.listboxState||!v||0===c.activationTrigger)return;let e=(0,g.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[w,v,c.listboxState,c.activationTrigger,c.activeOptionIndex]),(0,f.e)(()=>p.registerOption(i,_),[_,i]);let k=(0,C.z)(e=>{if(a)return e.preventDefault();p.onChange(s),0===c.mode&&(p.closeListbox(),(0,g.k)().nextFrame(()=>{var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),S=(0,C.z)(()=>{if(a)return p.goToOption(b.T.Nothing);p.goToOption(b.T.Specific,i)}),O=(0,P.g)(),T=(0,C.z)(e=>O.update(e)),N=(0,C.z)(e=>{O.wasMoved(e)&&(a||v||p.goToOption(b.T.Specific,i,0))}),R=(0,C.z)(e=>{O.wasMoved(e)&&(a||v&&p.goToOption(b.T.Nothing))}),A=(0,l.useMemo)(()=>({active:v,selected:y,disabled:a}),[v,y,a]);return(0,m.sY)({ourProps:{id:i,ref:E,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":y,disabled:void 0,onClick:k,onFocus:S,onPointerEnter:T,onMouseEnter:T,onPointerMove:N,onMouseMove:N,onPointerLeave:R,onMouseLeave:R},theirProps:u,slot:A,defaultTag:"li",name:"Listbox.Option"})})});var Z=r(56318),G=r(39233),Y=r(22648),Q=r(36063),J=r(94218),X=r(95870),ee=r(87641),et=r(70259),er=({nameExtractor:e,options:t,color:r="primary",isDisabled:n,description:o,multiple:i,placeholder:a,TextFieldProps:c,renderOption:d,renderTextField:f,size:p,className:h,OptionsListProps:m,...v},g)=>{let y=v["aria-label"];return delete v["aria-label"],l.createElement(Q.Cl,null,l.createElement(W,{disabled:n,multiple:i,...v,by:"id"},({value:g,disabled:b,open:w})=>l.createElement(et.fC,{open:w},l.createElement(et.xz,{asChild:!0},l.createElement("div",{className:(0,X.cn)("relative",h)},l.createElement(W.Button,{as:l.Fragment},f?.({value:g,isDisabled:b,isOpen:w,label:v.label,"aria-label":v["aria-label"]})??l.createElement(J.n,{isDisabled:n,description:o,color:r,size:p,placeholder:a,endIcon:l.createElement(l.Fragment,null,l.createElement(u,null)),...v.label?{label:v.label}:{"aria-label":y},value:Array.isArray(g)?g.reduce((t,r,n)=>t+e(r)+(n===g.length-1?"":", "),""):e(g),isReadOnly:!0,...c})))),l.createElement(et.h_,null,l.createElement(Q.Cl,null,l.createElement(et.VY,{sideOffset:c?.hasValidation?-16:4,asChild:!0},l.createElement(Z.u,{as:l.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},l.createElement(W.Options,{...m,"data-body-scroll-lock-ignore":!0,className:(0,X.cn)((0,s.EN)(),"w-[var(--radix-popover-trigger-width)]",m?.className,"Select-menu")},t.map((t,n)=>l.createElement(W.Option,{key:t.id,value:t,disabled:t.isDisabled,as:l.Fragment},({selected:o,active:a,disabled:u})=>d?.({isSelected:o,isActive:a,isDisabled:u,value:t})??l.createElement(G.z,{color:r,variant:"text",isDisabled:u,startIcon:i&&l.createElement(ee.X,{"aria-label":`Select option ${e(t)}`,isReadOnly:!0,className:"p-0 bg-transparent border-transparent",isSelected:o}),className:({isHovered:e,...t})=>(0,X.cn)((0,Y.L)({color:r,variant:"text",...t,hover:a,focusVisible:a}),(0,s._F)(),n>0&&"mt-1",o&&!i&&(0,s.i7)({color:r}),a&&(0,s.X5)({color:r}))},e(t))))))))))))};er.displayName="Select";var en=(0,l.forwardRef)(er)},87005:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(36063),o=r(95870),i=r(44194),a=({className:e})=>i.createElement(n.Cl,null,i.createElement("div",{className:(0,o.cn)("inline-block h-6 w-6 animate-spin rounded-full border-[3px] border-current border-t-white/40 dark:border-t-white/10",e),role:"status","aria-label":"loading"},i.createElement("span",{className:"sr-only"},"Loading...")))},35716:function(e,t,r){"use strict";r.d(t,{r:function(){return P}});var n=r(31706),o=(0,n.j)("w-[52px] h-8 p-1 rounded-[35px] transition-all outline-none",{variants:{color:{primary:"",secondary:"",tertiary:"",success:"",warning:"",error:"",loading:"",black:"",white:"",grey:"",orange:"",lightblue:"",blue:"",indaco:"",purple:""},checked:{true:"",false:"bg-grey dark:bg-white/[0.38]"},isHovered:{true:"",false:""},isPressed:{true:"",false:""},isFocused:{true:"",false:""},isDisabled:{true:"bg-grey/[0.38] cursor-default",false:""}},defaultVariants:{color:"primary",checked:!1,isDisabled:!1},compoundVariants:[{isDisabled:!1,isFocused:!0,className:"ring-inset ring-[2px]  ring-blue"},{color:"primary",checked:!0,isDisabled:!1,className:"bg-primary dark:bg-white"},{color:"black",checked:!0,isDisabled:!1,className:"bg-black dark:bg-white"},{color:"blue",checked:!0,isDisabled:!1,className:"bg-blue dark:bg-white"},{color:"error",checked:!0,isDisabled:!1,className:"bg-error dark:bg-white"},{color:"grey",checked:!0,isDisabled:!1,className:"bg-grey dark:bg-white"},{color:"indaco",checked:!0,isDisabled:!1,className:"bg-indaco dark:bg-white"},{color:"lightblue",checked:!0,isDisabled:!1,className:"bg-lightblue dark:bg-white"},{color:"loading",checked:!0,isDisabled:!1,className:"bg-loading dark:bg-white"},{color:"orange",checked:!0,isDisabled:!1,className:"bg-orange dark:bg-white"},{color:"purple",checked:!0,isDisabled:!1,className:"bg-purple dark:bg-white"},{color:"secondary",checked:!0,isDisabled:!1,className:"bg-secondary dark:bg-white"},{color:"success",checked:!0,isDisabled:!1,className:"bg-success dark:bg-white"},{color:"tertiary",checked:!0,isDisabled:!1,className:"bg-tertiary dark:bg-white"},{color:"warning",checked:!0,isDisabled:!1,className:"bg-warning dark:bg-white"},{color:"white",checked:!0,isDisabled:!1,className:"bg-white dark:bg-white"}]}),i=(0,n.j)("w-6 h-6 rounded-full bg-white transition-all !border-none",{variants:{color:{primary:"",secondary:"",tertiary:"",success:"",warning:"",error:"",loading:"",black:"",white:"",grey:"",orange:"",lightblue:"",blue:"",indaco:"",purple:""},checked:{true:"translate-x-5 ",false:"translate-x-0"},isHovered:{true:"bg-white/[0.6]",false:""},isPressed:{true:"bg-white/[0.74] scale-[1.1]",false:""},isFocused:{true:"bg-white/[0.74]",false:""},isDisabled:{true:"bg-white/[0.38]",false:""}},defaultVariants:{color:"primary",checked:!1},compoundVariants:[{color:"primary",checked:!0,isDisabled:!1,className:"dark:bg-primary"},{color:"black",checked:!0,isDisabled:!1,className:"dark:bg-black"},{color:"blue",checked:!0,isDisabled:!1,className:"dark:bg-blue"},{color:"error",checked:!0,isDisabled:!1,className:"dark:bg-error"},{color:"grey",checked:!0,isDisabled:!1,className:"dark:bg-grey"},{color:"indaco",checked:!0,isDisabled:!1,className:"dark:bg-indaco"},{color:"lightblue",checked:!0,isDisabled:!1,className:"dark:bg-lightblue"},{color:"loading",checked:!0,isDisabled:!1,className:"dark:bg-loading"},{color:"orange",checked:!0,isDisabled:!1,className:"dark:bg-orange"},{color:"purple",checked:!0,isDisabled:!1,className:"dark:bg-purple"},{color:"secondary",checked:!0,isDisabled:!1,className:"dark:bg-secondary"},{color:"success",checked:!0,isDisabled:!1,className:"dark:bg-success"},{color:"tertiary",checked:!0,isDisabled:!1,className:"dark:bg-tertiary"},{color:"warning",checked:!0,isDisabled:!1,className:"dark:bg-warning"},{color:"primary",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-primary-sl06"},{color:"black",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-black-sl06"},{color:"blue",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-blue-sl06"},{color:"error",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-error-sl06"},{color:"grey",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-grey-sl06"},{color:"indaco",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-indaco-sl06"},{color:"lightblue",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-lightblue-sl06"},{color:"loading",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-loading-sl06"},{color:"orange",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-orange-sl06"},{color:"purple",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-purple-sl06"},{color:"secondary",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-secondary-sl06"},{color:"success",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-success-sl06"},{color:"tertiary",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-tertiary-sl06"},{color:"warning",checked:!0,isHovered:!0,isDisabled:!1,className:"dark:bg-warning-sl06"},{color:"primary",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-primary-sl12"},{color:"black",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-black-sl12"},{color:"blue",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-blue-sl12"},{color:"error",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-error-sl12"},{color:"grey",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-grey-sl12"},{color:"indaco",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-indaco-sl12"},{color:"lightblue",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-lightblue-sl12"},{color:"loading",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-loading-sl12"},{color:"orange",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-orange-sl12"},{color:"purple",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-purple-sl12"},{color:"secondary",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-secondary-sl12"},{color:"success",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-success-sl12"},{color:"tertiary",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-tertiary-sl12"},{color:"warning",checked:!0,isFocused:!0,isDisabled:!1,className:"dark:bg-warning-sl12"},{checked:!0,color:"white",className:"bg-primary"},{checked:!0,color:"white",isFocused:!0,className:"bg-primary-sl12"},{checked:!0,color:"white",isPressed:!0,className:"bg-primary-sl12"},{checked:!0,color:"white",isHovered:!0,className:"bg-primary-sl06"}]}),a={root:"Switch-root",thumb:"Switch-thumb",checkedIconContainer:"Switch-checkedIconContainer",uncheckedIconContainer:"Switch-uncheckedIconContainer"},s=r(44194),l=r(49687),u=r(85507),c=r(27552),d=r(5904),f=r(81783),p=r(62461),h=r(13824);let m=(0,s.createContext)(null),v=Object.assign((0,l.yV)(function(e,t){let r=(0,u.M)(),{id:n="headlessui-label-".concat(r),passive:o=!1,...i}=e,a=function e(){let t=(0,s.useContext)(m);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),c=(0,p.T)(t);(0,f.e)(()=>a.register(n),[n,a.register]);let d={ref:c,...a.props,id:n};return o&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in i&&delete i.onClick),(0,l.sY)({ourProps:d,theirProps:i,slot:a.slot||{},defaultTag:"label",name:a.name||"Label"})}),{});var g=r(34662),y=r(37576),b=r(59545),w=r(93880),x=r(2931),_=r(92772);let E=(0,s.createContext)(null);E.displayName="GroupContext";let k=s.Fragment,S=Object.assign((0,l.yV)(function(e,t){let r=(0,u.M)(),{id:n="headlessui-switch-".concat(r),checked:o,defaultChecked:i=!1,onChange:a,name:f,value:m,form:v,...g}=e,k=(0,s.useContext)(E),S=(0,s.useRef)(null),O=(0,p.T)(S,t,null===k?null:k.setSwitch),[T,C]=(0,x.q)(o,a,i),N=(0,h.z)(()=>null==C?void 0:C(!T)),D=(0,h.z)(e=>{if((0,d.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),N()}),P=(0,h.z)(e=>{e.key===c.R.Space?(e.preventDefault(),N()):e.key===c.R.Enter&&(0,w.g)(e.currentTarget)}),R=(0,h.z)(e=>e.preventDefault()),j=(0,s.useMemo)(()=>({checked:T}),[T]),A={id:n,ref:O,role:"switch",type:(0,y.f)(e,S),tabIndex:0,"aria-checked":T,"aria-labelledby":null==k?void 0:k.labelledby,"aria-describedby":null==k?void 0:k.describedby,onClick:D,onKeyUp:P,onKeyPress:R},F=(0,_.G)();return(0,s.useEffect)(()=>{var e;let t=null==(e=S.current)?void 0:e.closest("form");t&&void 0!==i&&F.addEventListener(t,"reset",()=>{C(i)})},[S,C]),s.createElement(s.Fragment,null,null!=f&&T&&s.createElement(b._,{features:b.A.Hidden,...(0,l.oA)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:v,checked:T,name:f,value:m})}),(0,l.sY)({ourProps:A,theirProps:g,slot:j,defaultTag:"button",name:"Switch"}))}),{Group:function(e){var t;let[r,n]=(0,s.useState)(null),[o,i]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)(()=>function(e){let r=(0,h.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,s.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return s.createElement(m.Provider,{value:n},e.children)},[t])]}(),[a,u]=(0,g.f)(),c=(0,s.useMemo)(()=>({switch:r,setSwitch:n,labelledby:o,describedby:a}),[r,n,o,a]);return s.createElement(u,{name:"Switch.Description"},s.createElement(i,{name:"Switch.Label",props:{htmlFor:null==(t=c.switch)?void 0:t.id,onClick(e){r&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},s.createElement(E.Provider,{value:c},(0,l.sY)({ourProps:{},theirProps:e,defaultTag:k,name:"Switch.Group"}))))},Label:v,Description:g.d});var O=r(95870),T=r(45472),C=r(26657),N=r(57058),D=r(36063),P=(0,s.forwardRef)(({checkedIcon:e,uncheckedIcon:t,color:r,className:n,checked:l,isDisabled:u,onChange:c,...d},f)=>{let{pressProps:p,isPressed:h}=(0,T.r7)({}),{hoverProps:m,isHovered:v}=(0,T.XI)({}),{focusProps:g,isFocused:y}=(0,C.Fx)();return s.createElement(D.Cl,null,s.createElement(S,{checked:l,...!u&&{onChange:e=>{c?.(e)}},"aria-disabled":u??!1,ref:f,className:(0,O.cn)(o({color:r,checked:l,isPressed:h,isHovered:v,isFocused:y,isDisabled:!!u}),"string"==typeof n?n:n?.({isPressed:h,isHovered:v,isFocusVisible:y,isDisabled:u??!1}),a.root),...d,...(0,N.dG)(d,p,m,g)},s.createElement("div",{className:(0,O.cn)(i({color:r,checked:l,isPressed:h,isHovered:v,isFocused:y,isDisabled:!!u}),a.thumb)},e&&l&&s.createElement("div",{className:(0,O.cn)("flex h-full w-full items-center justify-center",a.checkedIconContainer)},e),t&&!l&&s.createElement("div",{className:(0,O.cn)("flex h-full w-full items-center justify-center",a.uncheckedIconContainer)},t))))});P.displayName="Switch"},94218:function(e,t,r){"use strict";r.d(t,{n:function(){return Y}});var n={root:"TextField-root",input:"TextField-input",inputContainer:"TextField-inputContainer",label:"TextField-label",description:"TextField-description",error:"TextField-error",focusRing:"TextField-focusRing"},o=r(84091),i=r(31706),a=(0,i.j)("flex flex-col dark:text-white isolate",{variants:{isDisabled:{true:"text-black/[0.12] dark:text-white/[0.12]"}}}),s=(0,i.j)((0,o.c)({variant:"caption"}),{variants:{label:{true:"mb-[2px] ml-4"}}}),l=(0,i.j)("relative flex items-center rounded-xl border-[1px] border-solid border-transparent bg-grey/[0.12] px-4  transition-all",{variants:{status:{error:"border-error",success:"border-success",warning:"border-warning",loading:"border-loading"},isHovered:{true:"shadow-3 dark:bg-grey/[0.38]"},startIcon:{true:"[&_>:first-child]:mr-2"},endIcon:{true:"[&_>:last-child]:ml-2"},size:{small:"py-2",medium:"py-4"},errorMessage:{true:"border-error"}},defaultVariants:{size:"small"}}),u=(0,i.j)([(0,o.c)({variant:"body1"}),"peer z-10 w-full bg-transparent focus-visible:outline-none placeholder:text-black/[0.38] dark:placeholder:text-white/[0.38]"],{variants:{isDisabled:{true:"placeholder:text-[inherit] dark:placeholder:text-[inherit]"}}}),c=(0,i.j)("rounded-[inherit] after:absolute after:-left-[1px] after:-top-[1px] after:h-[calc(100%+2px)] after:w-[calc(100%+2px)] after:rounded-[inherit] after:border-[2px] after:border-solid after:border-transparent after:transition-all",{variants:{color:{primary:"",secondary:"",tertiary:"",error:"",success:"",warning:"",loading:"",black:"",white:"",grey:"",orange:"",lightblue:"",blue:"",indaco:"",purple:""},isFocusVisible:{true:"",false:""},status:{error:"",success:"",warning:"",loading:""}},compoundVariants:[{isFocusVisible:!0,color:"primary",status:void 0,className:"after:border-primary"},{isFocusVisible:!0,color:"secondary",status:void 0,className:"after:border-secondary"},{isFocusVisible:!0,color:"tertiary",status:void 0,className:"after:border-tertiary"},{isFocusVisible:!0,color:"error",status:void 0,className:"after:border-error"},{isFocusVisible:!0,color:"success",status:void 0,className:"after:border-success"},{isFocusVisible:!0,color:"warning",status:void 0,className:"after:border-warning"},{isFocusVisible:!0,color:"loading",status:void 0,className:"after:border-loading"},{isFocusVisible:!0,color:"black",status:void 0,className:"after:border-black"},{isFocusVisible:!0,color:"white",status:void 0,className:"after:border-white"},{isFocusVisible:!0,color:"grey",status:void 0,className:"after:border-grey"},{isFocusVisible:!0,color:"orange",status:void 0,className:"after:border-orange"},{isFocusVisible:!0,color:"lightblue",status:void 0,className:"after:border-lightblue"},{isFocusVisible:!0,color:"blue",status:void 0,className:"after:border-blue"},{isFocusVisible:!0,color:"indaco",status:void 0,className:"after:border-indaco"},{isFocusVisible:!0,color:"purple",status:void 0,className:"after:border-purple"},{isFocusVisible:!0,status:"error",className:"after:border-error"},{isFocusVisible:!0,status:"success",className:"after:border-success"},{isFocusVisible:!0,status:"warning",className:"after:border-warning"},{isFocusVisible:!0,status:"loading",className:"after:border-loading"}],defaultVariants:{color:"primary"}}),d=(0,i.j)("absolute  flex h-5 w-5 flex-shrink-0 items-center justify-center overflow-hidden after:absolute after:h-full after:w-full after:rounded-full after:border-[1px] after:border-solid",{variants:{status:{error:"after:border-error",success:"after:border-success",warning:"after:border-warning",loading:"after:border-loading [&_*]:origin-center [&_*]:animate-spin [&_*]:[animation-duration:_4000ms]"}}}),f=(0,i.j)([(0,o.c)({variant:"caption"}),"ml-4 mt-[2px]"],{variants:{hasValidation:{true:"whitespace-pre"}}}),p=r(44194);function h(e){return p.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("mask",{id:"prefix__error",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:6,width:8,height:8},p.createElement("path",{d:"M13.597 7.209a.57.57 0 10-.806-.806L10 9.194 7.209 6.403a.57.57 0 00-.806.806L9.194 10l-2.791 2.791a.57.57 0 10.806.806L10 10.806l2.791 2.791a.57.57 0 10.806-.806L10.806 10l2.791-2.791z",fill:"#fff"})),p.createElement("g",{mask:"url(#prefix__error)"},p.createElement("path",{fill:"#FF3B30",d:"M4 4h12v12H4z"})))}function m(e){return p.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("mask",{id:"prefix__warning",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:9,y:6,width:2,height:8},p.createElement("path",{d:"M9.545 6.708a.666.666 0 111.33 0l-.298 4.7a.369.369 0 01-.736 0l-.296-4.7zm.664 5.942a.675.675 0 010 1.35.675.675 0 010-1.35z",fill:"#000"})),p.createElement("g",{mask:"url(#prefix__warning)"},p.createElement("path",{fill:"#FC0",d:"M4 4h12v12H4z"})))}function v(e){return p.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("mask",{id:"prefix__success",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:5,y:6,width:10,height:8},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.86 7.347a.512.512 0 000-.702.461.461 0 00-.671 0l-5.863 6.158-2.515-2.626a.461.461 0 00-.672 0 .512.512 0 000 .702l2.851 2.976a.46.46 0 00.672 0l6.199-6.508z",fill:"#000"})),p.createElement("g",{mask:"url(#prefix__success)"},p.createElement("path",{fill:"#34C759",d:"M4 4h12v12H4z"})))}function g(e){return p.createElement("svg",{width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("mask",{id:"prefix__loading",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:5,y:4,width:10,height:11},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.938 5.922a.937.937 0 11-1.875 0 .937.937 0 011.874 0zM10 13.109a.937.937 0 100 1.875.937.937 0 000-1.875zm3.125-3.125a.937.937 0 111.875 0 .937.937 0 01-1.875 0zm-6.25 0a.937.937 0 10-1.875 0 .937.937 0 001.875 0zm-.685 2.873a.938.938 0 111.875 0 .938.938 0 01-1.875 0zm6.683-.938a.938.938 0 100 1.875.938.938 0 000-1.875zM6.19 7.112a.937.937 0 111.875 0 .937.937 0 01-1.875 0z",fill:"#000"})),p.createElement("g",{mask:"url(#prefix__loading)"},p.createElement("path",{fill:"#0A84FF",d:"M4 4h12v12H4z"})))}var y=r(36063),b=r(35629),w=r(95870),x=r(9697),_=r(26657),E=r(45472),k=r(57058),S=r(73909),O=r(78934),T=r(60199),C=function(e){var t=p.useRef(e);return(0,T.Z)(function(){t.current=e}),t},N=function(e,t){if("function"==typeof e){e(t);return}e.current=t},D=function(e,t){var r=(0,p.useRef)();return(0,p.useCallback)(function(n){e.current=n,r.current&&N(r.current,null),r.current=t,t&&N(t,n)},[t])},P={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},R=function(e){Object.keys(P).forEach(function(t){e.style.setProperty(t,P[t],"important")})},j=null,A=function(e,t){var r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize},F=function(){},L=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],I=!!document.documentElement.currentStyle,M=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var r=L.reduce(function(e,r){return e[r]=t[r],e},{}),n=r.boxSizing;if(""===n)return null;I&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}};function q(e,t,r){var n=C(r);p.useLayoutEffect(function(){var r=function(e){return n.current(e)};if(e)return e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}},[])}var z=function(e){q(window,"resize",e)},V=function(e){q(document.fonts,"loadingdone",e)},U=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],$=p.forwardRef(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=void 0===i?F:i,s=e.onHeightChange,l=void 0===s?F:s,u=(0,O.Z)(e,U),c=void 0!==u.value,d=p.useRef(null),f=D(d,t),h=p.useRef(0),m=p.useRef(),v=function(){var e,t,i,a,s,u,c,f,p,v,g,y=d.current,b=r&&m.current?m.current:M(y);if(b){m.current=b;var w=(e=y.value||y.placeholder||"x",void 0===(t=o)&&(t=1),void 0===(i=n)&&(i=1/0),j||((j=document.createElement("textarea")).setAttribute("tabindex","-1"),j.setAttribute("aria-hidden","true"),R(j)),null===j.parentNode&&document.body.appendChild(j),a=b.paddingSize,s=b.borderSize,c=(u=b.sizingStyle).boxSizing,Object.keys(u).forEach(function(e){j.style[e]=u[e]}),R(j),j.value=e,f=A(j,b),j.value=e,f=A(j,b),j.value="x",v=(p=j.scrollHeight-a)*t,"border-box"===c&&(v=v+a+s),f=Math.max(v,f),g=p*i,"border-box"===c&&(g=g+a+s),[f=Math.min(g,f),p]),x=w[0],_=w[1];h.current!==x&&(h.current=x,y.style.setProperty("height",x+"px","important"),l(x,{rowHeight:_}))}};return p.useLayoutEffect(v),z(v),V(v),p.createElement("textarea",(0,S.Z)({},u,{onChange:function(e){c||v(),a(e)},ref:f}))});function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var K=(0,p.forwardRef)((e,t)=>{let{children:r,...n}=e,o=p.Children.toArray(r),i=o.find(Z);if(i){let e=i.props.children,r=o.map(t=>t!==i?t:p.Children.count(e)>1?p.Children.only(null):(0,p.isValidElement)(e)?e.props.children:null);return(0,p.createElement)(B,H({},n,{ref:t}),(0,p.isValidElement)(e)?(0,p.cloneElement)(e,void 0,r):null)}return(0,p.createElement)(B,H({},n,{ref:t}),r)});K.displayName="Slot";var B=(0,p.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,p.isValidElement)(r)?(0,p.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});B.displayName="SlotClone";var W=({children:e})=>(0,p.createElement)(p.Fragment,null,e);function Z(e){return(0,p.isValidElement)(e)&&e.type===W}var G=({className:e,onBlur:t,onFocus:r,endIcon:o,startIcon:i,multiline:S,size:O,color:T,hasValidation:C,status:N,isRequired:D,onClick:P,inputProps:R,minRows:j,maxRows:A,isDisabled:F,isReadOnly:L,errorMessage:I,...M},q)=>{let z=(0,b.t)(q),{labelProps:V,fieldProps:U,descriptionProps:H,errorMessageProps:B}=(0,x.U)({...M,errorMessage:I,validationState:"error"===N||"warning"===N?"invalid":"valid"}),{isFocusVisible:W,focusProps:Z}=(0,_.Fx)({isTextInput:!0,within:!0}),{hoverProps:G,isHovered:Y}=(0,E.XI)({isDisabled:F||L}),[Q,J]=(0,p.useState)(!1),X=W||Q;return p.createElement(y.Cl,null,p.createElement("div",{className:(0,w.cn)(a({isDisabled:F}),n.root,"string"==typeof e?e:e?.({isDisabled:F??!1,isReadOnly:L??!1,isHovered:Y,isFocusVisible:X}))},p.createElement("label",{...V,className:(0,w.cn)(s({label:void 0!==M.label}),n.label)},M.label),p.createElement("div",{...G,onClick:e=>{z.current?.focus(),P?.(e)},className:(0,w.cn)(l({status:N,size:O,startIcon:void 0!==i,endIcon:void 0!==o||void 0!==N,errorMessage:void 0!==I&&void 0===N,isHovered:Y}),n.inputContainer)},p.createElement(K,{onClick:e=>{e.stopPropagation()},className:"z-20"},i),(0,p.createElement)(S?$:"input",{...U,...M,"aria-required":D,...(0,k.dG)(Z,{onFocus:r,onBlur:t},{onFocus:()=>{J(!0)},onBlur:()=>{J(!1)}}),ref:z,readOnly:L,...S?{minRows:j,maxRows:A}:{},className:(0,w.cn)(u({isDisabled:F}),R?.className,n.input)}),p.createElement("span",{className:(0,w.cn)(c({color:I?"error":T,status:N,isFocusVisible:X}),n.focusRing)}),p.createElement(K,{onClick:e=>{e.stopPropagation()},className:"z-20"},void 0!==N?p.createElement("span",{className:(0,w.cn)("relative",void 0!==N&&"[&_>:first-child]:invisible flex items-center justify-center")},o??p.createElement("div",{className:"h-5 w-5"}),void 0!==N&&p.createElement("div",{className:(0,w.cn)(d({status:N}))},function(e){switch(e){case"error":return p.createElement(h,null);case"success":return p.createElement(v,null);case"warning":return p.createElement(m,null);case"loading":return p.createElement(g,null)}}(N))):o)),(M.description||C)&&"warning"!==N&&"error"!==N&&p.createElement("div",{...H,className:(0,w.cn)(f({hasValidation:C}),n.description)},M.description?M.description:p.createElement("br",null)),I&&p.createElement("div",{...B,className:(0,w.cn)(f(),n.error)},I)))};G.displayName="TextField";var Y=(0,p.forwardRef)(G)},91652:function(e,t,r){"use strict";r.d(t,{u:function(){return $},p:function(){return H}});var n=r(95870),o=r(25121),i=r(73909),a=r(44194),s=r(12527),l=r(16343),u=r(5901),c=r(41988),d=r(51869),f=r(673),p=r(75209),h=r(36511),m=r(77735),v=r(21773),g=r(15435),y=r(57364);let[b,w]=(0,u.b)("Tooltip",[f.D7]),x=(0,f.D7)(),_="tooltip.open",[E,k]=b("TooltipProvider"),S="Tooltip",[O,T]=b(S),C="TooltipTrigger",N=(0,a.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,o=T(C,r),u=k(C,r),c=x(r),d=(0,a.useRef)(null),p=(0,l.e)(t,d,o.onTriggerChange),h=(0,a.useRef)(!1),v=(0,a.useRef)(!1),g=(0,a.useCallback)(()=>h.current=!1,[]);return(0,a.useEffect)(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,a.createElement)(f.ee,(0,i.Z)({asChild:!0},c),(0,a.createElement)(m.WV.button,(0,i.Z)({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:p,onPointerMove:(0,s.M)(e.onPointerMove,e=>{"touch"===e.pointerType||v.current||u.isPointerInTransitRef.current||(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:(0,s.M)(e.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:(0,s.M)(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,s.M)(e.onFocus,()=>{h.current||o.onOpen()}),onBlur:(0,s.M)(e.onBlur,o.onClose),onClick:(0,s.M)(e.onClick,o.onClose)})))}),D="TooltipPortal",[P,R]=b(D,{forceMount:void 0}),j="TooltipContent",A=(0,a.forwardRef)((e,t)=>{let r=R(j,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,l=T(j,e.__scopeTooltip);return(0,a.createElement)(h.z,{present:n||l.open},l.disableHoverableContent?(0,a.createElement)(M,(0,i.Z)({side:o},s,{ref:t})):(0,a.createElement)(F,(0,i.Z)({side:o},s,{ref:t})))}),F=(0,a.forwardRef)((e,t)=>{let r=T(j,e.__scopeTooltip),n=k(j,e.__scopeTooltip),o=(0,a.useRef)(null),s=(0,l.e)(t,o),[u,c]=(0,a.useState)(null),{trigger:d,onClose:f}=r,p=o.current,{onPointerInTransitChange:h}=n,m=(0,a.useCallback)(()=>{c(null),h(!1)},[h]),v=(0,a.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,o),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())])),h(!0)},[h]);return(0,a.useEffect)(()=>()=>m(),[m]),(0,a.useEffect)(()=>{if(d&&p){let e=e=>v(e,p),t=e=>v(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,v,m]),(0,a.useEffect)(()=>{if(u){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(o=!o)}return o}(r,u);n?m():o&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,u,f,m]),(0,a.createElement)(M,(0,i.Z)({},e,{ref:s}))}),[L,I]=b(S,{isInside:!1}),M=(0,a.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...u}=e,d=T(j,r),p=x(r),{onClose:h}=d;return(0,a.useEffect)(()=>(document.addEventListener(_,h),()=>document.removeEventListener(_,h)),[h]),(0,a.useEffect)(()=>{if(d.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(d.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,a.createElement)(c.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:h},(0,a.createElement)(f.VY,(0,i.Z)({"data-state":d.stateAttribute},p,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,a.createElement)(v.A4,null,n),(0,a.createElement)(L,{scope:r,isInside:!0},(0,a.createElement)(y.f,{id:d.contentId,role:"tooltip"},o||n))))}),q=(0,a.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,o=x(r);return I("TooltipArrow",r).isInside?null:(0,a.createElement)(f.Eh,(0,i.Z)({},o,n,{ref:t}))}),z=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,u=k(S,e.__scopeTooltip),c=x(t),[p,h]=(0,a.useState)(null),m=(0,d.M)(),v=(0,a.useRef)(0),y=null!=s?s:u.disableHoverableContent,b=null!=l?l:u.delayDuration,w=(0,a.useRef)(!1),[E=!1,T]=(0,g.T)({prop:n,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(_))):u.onClose(),null==i||i(e)}}),C=(0,a.useMemo)(()=>E?w.current?"delayed-open":"instant-open":"closed",[E]),N=(0,a.useCallback)(()=>{window.clearTimeout(v.current),w.current=!1,T(!0)},[T]),D=(0,a.useCallback)(()=>{window.clearTimeout(v.current),T(!1)},[T]),P=(0,a.useCallback)(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{w.current=!0,T(!0)},b)},[b,T]);return(0,a.useEffect)(()=>()=>window.clearTimeout(v.current),[]),(0,a.createElement)(f.fC,c,(0,a.createElement)(O,{scope:t,contentId:m,open:E,stateAttribute:C,trigger:p,onTriggerChange:h,onTriggerEnter:(0,a.useCallback)(()=>{u.isOpenDelayed?P():N()},[u.isOpenDelayed,P,N]),onTriggerLeave:(0,a.useCallback)(()=>{y?D():window.clearTimeout(v.current)},[D,y]),onOpen:N,onClose:D,disableHoverableContent:y},r))},V=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=T(D,t);return(0,a.createElement)(P,{scope:t,forceMount:r},(0,a.createElement)(h.z,{present:r||i.open},(0,a.createElement)(p.h,{asChild:!0,container:o},n)))};var U=r(36063),$=({children:e,title:t,position:r,offset:i=4,align:s,alignOffset:l,collisionPadding:u=4,darkMode:c,className:d,collisionBoundary:f,...p})=>a.createElement(U.Cl,null,a.createElement(z,{...p},a.createElement(N,{asChild:!0},e),a.createElement(V,null,a.createElement(A,{sideOffset:i,side:r,align:s,collisionPadding:u,collisionBoundary:f,alignOffset:l,sticky:"always",className:(0,n.cn)("data-[state=delayed-open]:animate-fade select-none rounded-xl drop-shadow-[0px_1px_12px_rgba(0,_0,_0,_0.12)] px-2 py-4 will-change-[transform,opacity]","[&_.Tooltip-arrow]:data-[align=start]:data-[side=right]:left-2 [&_.Tooltip-arrow]:data-[align=end]:data-[side=right]:right-2","[&_.Tooltip-arrow]:data-[align=start]:data-[side=left]:right-2 [&_.Tooltip-arrow]:data-[align=end]:data-[side=left]:left-2",c?"bg-[rgba(27,32,60,1)]":"bg-white",c?"text-white":"text-black","Tooltip-container",d)},t,a.createElement(q,{asChild:!0},a.createElement(o.E,{className:(0,n.cn)(c?"after:bg-[rgba(27,32,60,1)]":"after:bg-white","Tooltip-arrow")})))))),H=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,[s,l]=(0,a.useState)(!0),u=(0,a.useRef)(!1),c=(0,a.useRef)(0);return(0,a.useEffect)(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,a.createElement)(E,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:(0,a.useCallback)(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:(0,a.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:(0,a.useCallback)(e=>{u.current=e},[]),disableHoverableContent:o},i)}},96697:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(84091),o=r(36063),i=r(95870),a=r(21773),s=r(44194),l=(0,s.forwardRef)(({variant:e,className:t,asChild:r,noWrap:l,...u},c)=>{let d=r?a.g7:function(e){switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;default:return"p"}}(e);return s.createElement(o.Cl,null,s.createElement(d,{ref:c,className:(0,i.cn)((0,n.c)({variant:e}),l&&"truncate",t),...u}))});l.displayName="Typography"},84091:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});var n=(0,r(31706).j)("dark:text-white",{variants:{variant:{h1:"font-bold text-[4rem] leading-[4.25rem]",h2:"font-bold text-[3rem] leading-[3.75rem]",h3:"font-semibold text-[3em] leading-[3.125rem]",h4:"font-semibold text-[2.25rem] leading-[2.5rem]",h5:"font-semibold text-[2.25rem] leading-[2.5rem]",h6:"font-normal text-[1.5rem] leading-[1.625rem]",subtitle1:"font-bold text-[1rem] leading-[1.25rem]",subtitle2:"font-bold text-[0.875rem] leading-[1.125rem]",body1:"font-normal text-[1rem] leading-[1.25rem] tracking-[0.002em]",body2:"font-normal text-[0.875rem] leading-[1.125rem] tracking-[0.002em]",button:"font-normal text-[0.875rem] leading-[1.125rem] tracking-[0.0025em]",caption:"font-normal text-[0.75rem] leading-[1.125rem] tracking-[0.002em]",overline:"font-normal text-[0.75rem] leading-[0.75rem] tracking-[0.02em] uppercase"}},defaultVariants:{variant:"body1"}})},75654:function(e,t,r){"use strict";r.d(t,{g:function(){return f}});var n=(0,r(31706).j)("block border-[1px] border-solid rounded-xl text-center p-8 transition-colors cursor-pointer",{variants:{error:{true:"border-error",false:"border-black/[0.12] dark:border-white/[0.12]"},color:{primary:"",secondary:"",tertiary:"",success:"",warning:"",error:"",loading:"",black:"",white:"",grey:"",orange:"",lightblue:"",blue:"",indaco:"",purple:""},isDragActive:{true:"",false:""}},compoundVariants:[{isDragActive:!0,color:"primary",className:"bg-primary/[0.06]"},{isDragActive:!0,color:"secondary",className:"bg-secondary/[0.06]"},{isDragActive:!0,color:"tertiary",className:"bg-tertiary/[0.06]"},{isDragActive:!0,color:"success",className:"bg-success/[0.06]"},{isDragActive:!0,color:"warning",className:"bg-warning/[0.06]"},{isDragActive:!0,color:"error",className:"bg-error/[0.06]"},{isDragActive:!0,color:"loading",className:"bg-loading/[0.06]"},{isDragActive:!0,color:"black",className:"bg-black/[0.06]"},{isDragActive:!0,color:"white",className:"bg-white/[0.06]"},{isDragActive:!0,color:"grey",className:"bg-grey/[0.06]"},{isDragActive:!0,color:"orange",className:"bg-orange/[0.06]"},{isDragActive:!0,color:"lightblue",className:"bg-lightblue/[0.06]"},{isDragActive:!0,color:"blue",className:"bg-blue/[0.06]"},{isDragActive:!0,color:"indaco",className:"bg-indaco/[0.06]"},{isDragActive:!0,color:"purple",className:"bg-purple/[0.06]"}]}),o={iconContainer:"Upload-iconContainer",description:"Upload-description",progressContainer:"Upload-progressContainer",actionsContainer:"Upload-actionsContainer"},i=r(44194),a=()=>i.createElement("div",{className:"p-3 bg-error/[0.06] w-fit rounded-full"},i.createElement("svg",{width:40,height:40,fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("mask",{id:"prefix_upload_error",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:7,y:7,width:26,height:26},i.createElement("path",{d:"M31.99 10.695a1.9 1.9 0 10-2.686-2.686L20 17.315 10.695 8.01a1.9 1.9 0 00-2.686 2.686L17.315 20 8.01 29.305a1.9 1.9 0 002.686 2.686L20 22.686l9.305 9.305a1.9 1.9 0 002.686-2.686L22.686 20l9.305-9.305z",fill:"#fff"})),i.createElement("g",{mask:"url(#prefix_upload_error)"},i.createElement("path",{fill:"#FF3B30",d:"M0 0h40v40H0z"})))),s=r(36063),l=r(95870),u=r(48463),c=r(96697),d=r(77616),f=(0,i.forwardRef)(({className:e,color:t="primary",onDragActiveDescription:r,onErrorDescription:f,errorIcon:p,icon:h,description:m,actions:v,progressPercentage:g,onDrop:y,...b},w)=>{let[x,_]=(0,i.useState)(!1),{getRootProps:E,getInputProps:k,isDragActive:S,open:O}=(0,u.uI)({onDrop:(e,t,r)=>{t.length>0?_(!0):_(!1),y?.(e,t,r)},...b});return i.createElement(s.Cl,null,i.createElement("div",{ref:w,...E(),className:(0,l.cn)(n({error:x,color:t,isDragActive:S}),"string"==typeof e?e:e?.({isDragActive:S,error:x}))},i.createElement("input",{...k()}),(h||p)&&i.createElement("div",{className:(0,l.cn)("mx-auto w-fit mb-3",o.iconContainer)},x&&!S?p||i.createElement(a,null):h||null),g&&i.createElement("div",{className:(0,l.cn)("mb-6 mt-6",o.progressContainer)},i.createElement(d.E,{color:t??"primary",progressPercentage:g})),i.createElement(c.Z,{variant:"body1",className:(0,l.cn)(o.description)},r&&S?r:x&&f?f:m),v&&i.createElement("div",{className:(0,l.cn)("mt-6 transition-opacity",S&&"opacity-0",o.actionsContainer)},"function"==typeof v?v(O):v)))});f.displayName="Upload"},35629:function(e,t,r){"use strict";r.d(t,{t:function(){return o}});var n=r(44194);function o(e){let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),t}},65641:function(e,t,r){"use strict";r.d(t,{T:function(){return n}});var n=(e,t)=>{switch(t){case"bg":default:return o(e);case"text":return i(e);case"fill":return a(e);case"stroke":return s(e)}},o=e=>{switch(e){case"primary":return"bg-primary";case"secondary":return"bg-secondary";case"tertiary":return"bg-tertiary";case"success":return"bg-success";case"warning":return"bg-warning";case"error":return"bg-error";case"loading":return"bg-loading";case"blue":return"bg-blue";case"lightblue":return"bg-lightblue";case"orange":return"bg-orange";case"purple":return"bg-purple";case"indaco":return"bg-indaco";case"white":return"bg-white";case"black":return"bg-black";case"grey":return"bg-grey"}},i=e=>{switch(e){case"primary":return"text-primary";case"secondary":return"text-secondary";case"tertiary":return"text-tertiary";case"success":return"text-success";case"warning":return"text-warning";case"error":return"text-error";case"loading":return"text-loading";case"blue":return"text-blue";case"lightblue":return"text-lightblue";case"orange":return"text-orange";case"purple":return"text-purple";case"indaco":return"text-indaco";case"white":return"text-white";case"black":return"text-black";case"grey":return"text-grey"}},a=e=>{switch(e){case"primary":return"fill-primary";case"secondary":return"fill-secondary";case"tertiary":return"fill-tertiary";case"success":return"fill-success";case"warning":return"fill-warning";case"error":return"fill-error";case"loading":return"fill-loading";case"blue":return"fill-blue";case"lightblue":return"fill-lightblue";case"orange":return"fill-orange";case"purple":return"fill-purple";case"indaco":return"fill-indaco";case"white":return"fill-white";case"black":return"fill-black";case"grey":return"fill-grey"}},s=e=>{switch(e){case"primary":return"stroke-primary";case"secondary":return"stroke-secondary";case"tertiary":return"stroke-tertiary";case"success":return"stroke-success";case"warning":return"stroke-warning";case"error":return"stroke-error";case"loading":return"stroke-loading";case"blue":return"stroke-blue";case"lightblue":return"stroke-lightblue";case"orange":return"stroke-orange";case"purple":return"stroke-purple";case"indaco":return"stroke-indaco";case"white":return"stroke-white";case"black":return"stroke-black";case"grey":return"stroke-grey"}}},25121:function(e,t,r){"use strict";r.d(t,{E:function(){return p}});var n=r(95870),o=r(44194);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e,a=o.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(s,i({},n,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,r):null)}return(0,o.createElement)(s,i({},n,{ref:t}),r)});a.displayName="Slot";var s=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function u(e){return(0,o.isValidElement)(e)&&e.type===l}var c=(0,o.createContext)({hasEnabledPreflight:!1}),d=(0,o.forwardRef)((e,t)=>{let{hasEnabledPreflight:r}=f();return r?o.createElement(a,{className:"mabi-ui-preflight",ref:t,...e}):o.createElement(o.Fragment,null,e.children)}),f=()=>{let e=(0,o.useContext)(c);return void 0===e?{hasEnabledPreflight:!1}:e},p=({className:e})=>o.createElement(d,null,o.createElement("div",{className:(0,n.cn)("overflow-hidden w-4 h-4 relative after:absolute after:w-4 after:h-4 after:bg-white after:[transform:translateY(-8px)_rotate(-60deg)_skewX(-30deg)_scale(1,_0.866)] after:rounded-bl-md",e)}))},95870:function(e,t,r){"use strict";r.d(t,{cn:function(){return F}});var n=r(14517),o=/^\[(.+)\]$/;function i(e,t){var r=e;return t.split("-").forEach(function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}var a=/\s+/;function s(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){if("string"==typeof t)return t;for(var r,n="",o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(n&&(n+=" "),n+=r);return n}(e))&&(n&&(n+=" "),n+=t);return n}function l(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var u=/^\[(?:([a-z-]+):)?(.+)\]$/i,c=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),f=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function m(e){return x(e)||d.has(e)||c.test(e)||v(e)}function v(e){return C(e,"length",N)}function g(e){return C(e,"size",D)}function y(e){return C(e,"position",D)}function b(e){return C(e,"url",P)}function w(e){return C(e,"number",x)}function x(e){return!Number.isNaN(Number(e))}function _(e){return e.endsWith("%")&&x(e.slice(0,-1))}function E(e){return R(e)||C(e,"number",R)}function k(e){return u.test(e)}function S(){return!0}function O(e){return f.test(e)}function T(e){return C(e,"",j)}function C(e,t,r){var n=u.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function N(e){return p.test(e)}function D(){return!1}function P(e){return e.startsWith("url(")}function R(e){return Number.isInteger(Number(e))}function j(e){return h.test(e)}var A=function(){for(var e,t,r,n=arguments.length,l=Array(n),u=0;u<n;u++)l[u]=arguments[u];var c=function(n){var a=l[0];return t=(e=function(e){var t,r,n,a,s,l,u,c,d,f,p;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(o,i){r.set(o,i),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(r=1===(t=e.separator||":").length,n=t[0],a=t.length,function(e){for(var o,i=[],s=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===s){if(c===n&&(r||e.slice(u,u+a)===t)){i.push(e.slice(l,u)),l=u+a;continue}if("/"===c){o=u;continue}}"["===c?s++:"]"===c&&s--}var d=0===i.length?e:e.substring(l),f=d.startsWith("!"),p=f?d.substring(1):d;return{modifiers:i,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}),...(c=e.theme,d=e.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(e.classGroups),d?p.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):p).forEach(function(e){var t=e[0];(function e(t,r,n,o){t.forEach(function(t){if("string"==typeof t){(""===t?r:i(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),r,n,o);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(function(t){var a=t[0];e(t[1],i(r,a),n,o)})})})(e[1],f,t,c)}),s=e.conflictingClassGroups,u=void 0===(l=e.conflictingClassGroupModifiers)?{}:l,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n=t[0],o=r.nextPart.get(n),i=o?e(t.slice(1),o):void 0;if(i)return i;if(0!==r.validators.length){var a=t.join("-");return r.validators.find(function(e){return(0,e.validator)(a)})?.classGroupId}}(t,f)||function(e){if(o.test(e)){var t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var r=s[e]||[];return t&&u[e]?[].concat(r,u[e]):r}})}}(l.slice(1).reduce(function(e,t){return t(e)},a()))).cache.get,r=e.cache.set,c=d,d(n)};function d(n){var o,i,s,l,u,c=t(n);if(c)return c;var d=(i=(o=e).splitModifiers,s=o.getClassGroupId,l=o.getConflictingClassGroupIds,u=new Set,n.trim().split(a).map(function(e){var t=i(e),r=t.modifiers,n=t.hasImportantModifier,o=t.baseClassName,a=t.maybePostfixModifierPosition,l=s(a?o.substring(0,a):o),u=!!a;if(!l){if(!a||!(l=s(o)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)}),t.push.apply(t,r.sort()),t})(r).join(":");return{isTailwindClass:!0,modifierId:n?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,o=t+r;return!u.has(o)&&(u.add(o),l(r,n).forEach(function(e){return u.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,d),d}return function(){return c(s.apply(null,arguments))}}(function(){var e=l("colors"),t=l("spacing"),r=l("blur"),n=l("brightness"),o=l("borderColor"),i=l("borderRadius"),a=l("borderSpacing"),s=l("borderWidth"),u=l("contrast"),c=l("grayscale"),d=l("hueRotate"),f=l("invert"),p=l("gap"),h=l("gradientColorStops"),C=l("gradientColorStopPositions"),N=l("inset"),D=l("margin"),P=l("opacity"),R=l("padding"),j=l("saturate"),A=l("scale"),F=l("sepia"),L=l("skew"),I=l("space"),M=l("translate"),q=function(){return["auto","contain","none"]},z=function(){return["auto","hidden","clip","visible","scroll"]},V=function(){return["auto",k,t]},U=function(){return[k,t]},$=function(){return["",m]},H=function(){return["auto",x,k]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},W=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Z=function(){return["start","end","center","between","around","evenly","stretch"]},G=function(){return["","0",k]},Y=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Q=function(){return[x,w]},J=function(){return[x,k]};return{cacheSize:500,theme:{colors:[S],spacing:[m],blur:["none","",O,k],brightness:Q(),borderColor:[e],borderRadius:["none","","full",O,k],borderSpacing:U(),borderWidth:$(),contrast:Q(),grayscale:G(),hueRotate:J(),invert:G(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[_,v],inset:V(),margin:V(),opacity:Q(),padding:U(),saturate:Q(),scale:Q(),sepia:G(),skew:J(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[k])}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-x":[{"inset-x":[N]}],"inset-y":[{"inset-y":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",E]}],"grid-cols":[{"grid-cols":[S]}],"col-start-end":[{col:["auto",{span:["full",E]},k]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[S]}],"row-start-end":[{row:["auto",{span:[E]},k]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(Z())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Z(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Z(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",k,t]}],"min-w":[{"min-w":["min","max","fit",k,m]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[O]},O,k]}],h:[{h:[k,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",k,m]}],"max-h":[{"max-h":[k,t,"min","max","fit"]}],"font-size":[{text:["base",O,v]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",w]}],"font-family":[{font:[S]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",x,w]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,m]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",m]}],"underline-offset":[{"underline-offset":["auto",k,m]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[y])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(B())}],"outline-offset":[{"outline-offset":[k,m]}],"outline-w":[{outline:[m]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[m]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",O,T]}],"shadow-color":[{shadow:[S]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":W()}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",O,k]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[j]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[E,k]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[m,w]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function F(...e){return A((0,n.W)(e))}},12527:function(e,t,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{M:function(){return n}})},16343:function(e,t,r){"use strict";r.d(t,{F:function(){return o},e:function(){return i}});var n=r(44194);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,n.useCallback)(o(...e),e)}},5901:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(44194);function o(e,t=[]){let r=[],o=()=>{let t=r.map(e=>(0,n.createContext)(e));return function(r){let o=(null==r?void 0:r[e])||t;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let i=(0,n.createContext)(o),a=r.length;function s(t){let{scope:r,children:o,...s}=t,l=(null==r?void 0:r[e][a])||i,u=(0,n.useMemo)(()=>s,Object.values(s));return(0,n.createElement)(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=t+"Provider",[s,function(r,s){let l=(null==s?void 0:s[e][a])||i,u=(0,n.useContext)(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return(0,n.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}},41988:function(e,t,r){"use strict";let n;r.d(t,{XB:function(){return f}});var o=r(73909),i=r(44194),a=r(12527),s=r(77735),l=r(16343),u=r(92529);let c="dismissableLayer.update",d=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,i.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:b,...w}=e,x=(0,i.useContext)(d),[_,E]=(0,i.useState)(null),k=null!==(r=null==_?void 0:_.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,S]=(0,i.useState)({}),O=(0,l.e)(t,e=>E(e)),T=Array.from(x.layers),[C]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),N=T.indexOf(C),D=_?T.indexOf(_):-1,P=x.layersWithOutsidePointerEventsDisabled.size>0,R=D>=N,j=function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,u.W)(e),n=(0,i.useRef)(!1),o=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){h("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));!R||r||(null==v||v(e),null==y||y(e),e.defaultPrevented||null==b||b())},k),A=function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,u.W)(e),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!n.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==g||g(e),null==y||y(e),e.defaultPrevented||null==b||b())},k);return!function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,u.W)(e);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{D!==x.layers.size-1||(null==m||m(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},k),(0,i.useEffect)(()=>{if(_)return f&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(_)),x.layers.add(_),p(),()=>{f&&1===x.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=n)}},[_,k,f,x]),(0,i.useEffect)(()=>()=>{_&&(x.layers.delete(_),x.layersWithOutsidePointerEventsDisabled.delete(_),p())},[_,x]),(0,i.useEffect)(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,i.createElement)(s.WV.div,(0,o.Z)({},w,{ref:O,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,j.onPointerDownCapture)}))});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,s.jH)(o,i):o.dispatchEvent(i)}},9522:function(e,t,r){"use strict";r.d(t,{EW:function(){return i}});var n=r(44194);let o=0;function i(){(0,n.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},25139:function(e,t,r){"use strict";let n;r.d(t,{M:function(){return f}});var o=r(73909),i=r(44194),a=r(16343),s=r(77735),l=r(92529);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,i.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,w]=(0,i.useState)(null),x=(0,l.W)(f),_=(0,l.W)(g),E=(0,i.useRef)(null),k=(0,a.e)(t,e=>w(e)),S=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(n){function e(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:m(E.current,{select:!0})}function t(e){if(S.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||m(E.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){let t=document.activeElement;for(let r of e)r.removedNodes.length>0&&!(null!=b&&b.contains(t))&&m(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,b,S.paused]),(0,i.useEffect)(()=>{if(b){v.add(S);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,_),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,_),v.remove(S)},0)}}},[b,x,_,S]);let O=(0,i.useCallback)(e=>{if(!r&&!n||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,i]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&m(i,{select:!0})):(e.preventDefault(),r&&m(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,S.paused]);return(0,i.createElement)(s.WV.div,(0,o.Z)({tabIndex:-1},y,{ref:k,onKeyDown:O}))});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let v=(n=[],{add(e){let t=n[0];e!==t&&(null==t||t.pause()),(n=g(n,e)).unshift(e)},remove(e){var t;null===(t=(n=g(n,e))[0])||void 0===t||t.resume()}});function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},51869:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,o=r(44194),i=r(5267);let a=(n||(n=r.t(o,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=o.useState(a());return(0,i.b)(()=>{e||r(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},70259:function(e,t,r){"use strict";r.d(t,{Eh:function(){return $},VY:function(){return V},fC:function(){return M},h_:function(){return z},x8:function(){return U},xz:function(){return q}});var n=r(73909),o=r(44194),i=r(12527),a=r(16343),s=r(5901),l=r(41988),u=r(9522),c=r(25139),d=r(51869),f=r(673),p=r(75209),h=r(36511),m=r(77735),v=r(21773),g=r(15435),y=r(40627),b=r(29381);let w="Popover",[x,_]=(0,s.b)(w,[f.D7]),E=(0,f.D7)(),[k,S]=x(w),O=(0,o.forwardRef)((e,t)=>{let{__scopePopover:r,...s}=e,l=S("PopoverTrigger",r),u=E(r),c=(0,a.e)(t,l.triggerRef),d=(0,o.createElement)(m.WV.button,(0,n.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":I(l.open)},s,{ref:c,onClick:(0,i.M)(e.onClick,l.onOpenToggle)}));return l.hasCustomAnchor?d:(0,o.createElement)(f.ee,(0,n.Z)({asChild:!0},u),d)}),T="PopoverPortal",[C,N]=x(T,{forceMount:void 0}),D="PopoverContent",P=(0,o.forwardRef)((e,t)=>{let r=N(D,e.__scopePopover),{forceMount:i=r.forceMount,...a}=e,s=S(D,e.__scopePopover);return(0,o.createElement)(h.z,{present:i||s.open},s.modal?(0,o.createElement)(R,(0,n.Z)({},a,{ref:t})):(0,o.createElement)(j,(0,n.Z)({},a,{ref:t})))}),R=(0,o.forwardRef)((e,t)=>{let r=S(D,e.__scopePopover),s=(0,o.useRef)(null),l=(0,a.e)(t,s),u=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=s.current;if(e)return(0,y.Ry)(e)},[]),(0,o.createElement)(b.Z,{as:v.g7,allowPinchZoom:!0},(0,o.createElement)(A,(0,n.Z)({},e,{ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;u.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),j=(0,o.forwardRef)((e,t)=>{let r=S(D,e.__scopePopover),i=(0,o.useRef)(!1),a=(0,o.useRef)(!1);return(0,o.createElement)(A,(0,n.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,o;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{var n,o;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let s=t.target;(null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))}),A=(0,o.forwardRef)((e,t)=>{let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,...g}=e,y=S(D,r),b=E(r);return(0,u.EW)(),(0,o.createElement)(c.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},(0,o.createElement)(l.XB,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>y.onOpenChange(!1)},(0,o.createElement)(f.VY,(0,n.Z)({"data-state":I(y.open),role:"dialog",id:y.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),F=(0,o.forwardRef)((e,t)=>{let{__scopePopover:r,...a}=e,s=S("PopoverClose",r);return(0,o.createElement)(m.WV.button,(0,n.Z)({type:"button"},a,{ref:t,onClick:(0,i.M)(e.onClick,()=>s.onOpenChange(!1))}))}),L=(0,o.forwardRef)((e,t)=>{let{__scopePopover:r,...i}=e,a=E(r);return(0,o.createElement)(f.Eh,(0,n.Z)({},a,i,{ref:t}))});function I(e){return e?"open":"closed"}let M=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=E(t),u=(0,o.useRef)(null),[c,p]=(0,o.useState)(!1),[h=!1,m]=(0,g.T)({prop:n,defaultProp:i,onChange:a});return(0,o.createElement)(f.fC,l,(0,o.createElement)(k,{scope:t,contentId:(0,d.M)(),triggerRef:u,open:h,onOpenChange:m,onOpenToggle:(0,o.useCallback)(()=>m(e=>!e),[m]),hasCustomAnchor:c,onCustomAnchorAdd:(0,o.useCallback)(()=>p(!0),[]),onCustomAnchorRemove:(0,o.useCallback)(()=>p(!1),[]),modal:s},r))},q=O,z=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,a=S(T,t);return(0,o.createElement)(C,{scope:t,forceMount:r},(0,o.createElement)(h.z,{present:r||a.open},(0,o.createElement)(p.h,{asChild:!0,container:i},n)))},V=P,U=F,$=L},673:function(e,t,r){"use strict";r.d(t,{ee:function(){return P},Eh:function(){return j},VY:function(){return R},fC:function(){return D},D7:function(){return g}});var n=r(73909),o=r(44194),i=r(26970),a=r(62686),s=r(24562),l=r(77735);let u=(0,o.forwardRef)((e,t)=>{let{children:r,width:i=10,height:a=5,...s}=e;return(0,o.createElement)(l.WV.svg,(0,n.Z)({},s,{ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,o.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var c=r(16343),d=r(5901),f=r(92529),p=r(5267),h=r(97544);let m="Popper",[v,g]=(0,d.b)(m),[y,b]=v(m),w=(0,o.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:i,...a}=e,s=b("PopperAnchor",r),u=(0,o.useRef)(null),d=(0,c.e)(t,u);return(0,o.useEffect)(()=>{s.onAnchorChange((null==i?void 0:i.current)||u.current)}),i?null:(0,o.createElement)(l.WV.div,(0,n.Z)({},a,{ref:d}))}),x="PopperContent",[_,E]=v(x),k=(0,o.forwardRef)((e,t)=>{var r,u,d,m,v,g,y,w;let{__scopePopper:E,side:k="bottom",sideOffset:S=0,align:O="center",alignOffset:D=0,arrowPadding:P=0,collisionBoundary:R=[],collisionPadding:j=0,sticky:A="partial",hideWhenDetached:F=!1,avoidCollisions:L=!0,onPlaced:I,...M}=e,q=b(x,E),[z,V]=(0,o.useState)(null),U=(0,c.e)(t,e=>V(e)),[$,H]=(0,o.useState)(null),K=(0,h.t)($),B=null!==(r=null==K?void 0:K.width)&&void 0!==r?r:0,W=null!==(u=null==K?void 0:K.height)&&void 0!==u?u:0,Z="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},G=Array.isArray(R)?R:[R],Y=G.length>0,Q={padding:Z,boundary:G.filter(T),altBoundary:Y},{refs:J,floatingStyles:X,placement:ee,isPositioned:et,middlewareData:er}=(0,i.YF)({strategy:"fixed",placement:k+("center"!==O?"-"+O:""),whileElementsMounted:a.Me,elements:{reference:q.anchor},middleware:[(0,s.cv)({mainAxis:S+W,alignmentAxis:D}),L&&(0,s.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?(0,s.dr)():void 0,...Q}),L&&(0,s.RR)({...Q}),(0,s.dp)({...Q,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),$&&(0,i.x7)({element:$,padding:P}),C({arrowWidth:B,arrowHeight:W}),F&&(0,s.Cp)({strategy:"referenceHidden"})]}),[en,eo]=N(ee),ei=(0,f.W)(I);(0,p.b)(()=>{et&&(null==ei||ei())},[et,ei]);let ea=null===(d=er.arrow)||void 0===d?void 0:d.x,es=null===(m=er.arrow)||void 0===m?void 0:m.y,el=(null===(v=er.arrow)||void 0===v?void 0:v.centerOffset)!==0,[eu,ec]=(0,o.useState)();return(0,p.b)(()=>{z&&ec(window.getComputedStyle(z).zIndex)},[z]),(0,o.createElement)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:et?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(g=er.transformOrigin)||void 0===g?void 0:g.x,null===(y=er.transformOrigin)||void 0===y?void 0:y.y].join(" ")},dir:e.dir},(0,o.createElement)(_,{scope:E,placedSide:en,onArrowChange:H,arrowX:ea,arrowY:es,shouldHideArrow:el},(0,o.createElement)(l.WV.div,(0,n.Z)({"data-side":en,"data-align":eo},M,{ref:U,style:{...M.style,animation:et?void 0:"none",opacity:null!==(w=er.hide)&&void 0!==w&&w.referenceHidden?0:void 0}}))))}),S={top:"bottom",right:"left",bottom:"top",left:"right"},O=(0,o.forwardRef)(function(e,t){let{__scopePopper:r,...i}=e,a=E("PopperArrow",r),s=S[a.placedSide];return(0,o.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(u,(0,n.Z)({},i,{ref:t,style:{...i.style,display:"block"}})))});function T(e){return null!==e}let C=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=N(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(n=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==n?n:0)+d/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2,y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=`${-f}px`):"top"===p?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=`${-f}px`,b=c?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function N(e){let[t,r="center"]=e.split("-");return[t,r]}let D=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,o.useState)(null);return(0,o.createElement)(y,{scope:t,anchor:n,onAnchorChange:i},r)},P=w,R=k,j=O},75209:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(73909),o=r(44194),i=r(56321),a=r(77735);let s=(0,o.forwardRef)((e,t)=>{var r;let{container:s=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...l}=e;return s?i.createPortal((0,o.createElement)(a.WV.div,(0,n.Z)({},l,{ref:t})),s):null})},36511:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(44194),o=r(56321),i=r(16343),a=r(5267);let s=e=>{let{present:t,children:r}=e,s=function(e){var t,r;let[i,s]=(0,n.useState)(),u=(0,n.useRef)({}),c=(0,n.useRef)(e),d=(0,n.useRef)("none"),[f,p]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,n.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return(0,n.useEffect)(()=>{let e=l(u.current);d.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=u.current,r=c.current;if(r!==e){let n=d.current,o=l(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):r&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,a.b)(()=>{if(i){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===i&&t&&(0,o.flushSync)(()=>p("ANIMATION_END"))},t=e=>{e.target===i&&(d.current=l(u.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),()=>{i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,n.useCallback)(e=>{e&&(u.current=getComputedStyle(e)),s(e)},[])}}(t),u="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),c=(0,i.e)(s.ref,u.ref);return"function"==typeof r||s.isPresent?(0,n.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},77735:function(e,t,r){"use strict";r.d(t,{WV:function(){return s},jH:function(){return l}});var n=r(73909),o=r(44194),i=r(56321),a=r(21773);let s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,o.forwardRef)((e,r)=>{let{asChild:i,...s}=e,l=i?a.g7:t;return(0,o.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,o.createElement)(l,(0,n.Z)({},s,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&(0,i.flushSync)(()=>e.dispatchEvent(t))}},21773:function(e,t,r){"use strict";r.d(t,{A4:function(){return l},g7:function(){return a}});var n=r(73909),o=r(44194),i=r(16343);let a=(0,o.forwardRef)((e,t)=>{let{children:r,...i}=e,a=o.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(s,(0,n.Z)({},i,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,r):null)}return(0,o.createElement)(s,(0,n.Z)({},i,{ref:t}),r)});a.displayName="Slot";let s=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?(0,i.F)(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function u(e){return(0,o.isValidElement)(e)&&e.type===l}},92529:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(44194);function o(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}},15435:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(44194),o=r(92529);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let r=(0,n.useState)(e),[i]=r,a=(0,n.useRef)(i),s=(0,o.W)(t);return(0,n.useEffect)(()=>{a.current!==i&&(s(i),a.current=i)},[i,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:i,u=(0,o.W)(r);return[l,(0,n.useCallback)(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},5267:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(44194);let o=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},97544:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(44194),o=r(5267);function i(e){let[t,r]=(0,n.useState)(void 0);return(0,o.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},57364:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(73909),o=r(44194),i=r(77735);let a=(0,o.forwardRef)((e,t)=>(0,o.createElement)(i.WV.span,(0,n.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))},33169:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(57058),o=r(26657),i=r(45472);function a(e,t){let r,{elementType:a="button",isDisabled:s,onPress:l,onPressStart:u,onPressEnd:c,onPressChange:d,preventFocusOnPress:f,allowFocusWhenDisabled:p,onClick:h,href:m,target:v,rel:g,type:y="button"}=e;r="button"===a?{type:y,disabled:s}:{role:"button",tabIndex:s?void 0:0,href:"a"===a&&s?void 0:m,target:"a"===a?v:void 0,type:"input"===a?y:void 0,disabled:"input"===a?s:void 0,"aria-disabled":s&&"input"!==a?s:void 0,rel:"a"===a?g:void 0};let{pressProps:b,isPressed:w}=(0,i.r7)({onPressStart:u,onPressEnd:c,onPressChange:d,onPress:l,isDisabled:s,preventFocusOnPress:f,ref:t}),{focusableProps:x}=(0,o.kc)(e,t);p&&(x.tabIndex=s?-1:x.tabIndex);let _=(0,n.dG)(x,b,(0,n.zL)(e,{labelable:!0}));return{isPressed:w,buttonProps:(0,n.dG)(r,_,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{h&&(h(e),console.warn("onClick is deprecated, please use onPress"))}})}}},26657:function(e,t,r){"use strict";r.d(t,{Fx:function(){return p},QL:function(){return c},kc:function(){return m}});var n=r(44194),o=r(57058),i=r(45472);let a=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],s=a.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";a.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let l=a.join(':not([hidden]):not([tabindex="-1"]),');function u(e,t){return t.some(t=>t.contains(e))}function c(e,t,r){let n=(null==t?void 0:t.tabbable)?l:s,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(n)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,n="none"!==t&&"hidden"!==r&&"collapse"!==r;if(n){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:o}=t(e);n="none"!==r&&"hidden"!==o&&"collapse"!==o}return n}(t)&&!t.hasAttribute("hidden")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||u(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class d{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null),o=new f({scopeRef:e});n.addChild(o),o.parent=n,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&u(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r.removeChild(t),n.size>0&&n.forEach(e=>r.addChild(e)),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new d;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new f({scopeRef:null}),this.fastMap.set(null,this.root)}}class f{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}function p(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,a=(0,n.useRef)({isFocused:!1,isFocusVisible:t||(0,i.E)()}),[s,l]=(0,n.useState)(!1),[u,c]=(0,n.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),d=(0,n.useCallback)(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),f=(0,n.useCallback)(e=>{a.current.isFocused=e,l(e),d()},[d]);(0,i.mG)(e=>{a.current.isFocusVisible=e,d()},[],{isTextInput:r});let{focusProps:p}=(0,i.KK)({isDisabled:o,onFocusChange:f}),{focusWithinProps:h}=(0,i.L_)({isDisabled:!o,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:u,focusProps:o?h:p}}new d;let h=n.createContext(null);function m(e,t){let{focusProps:r}=(0,i.KK)(e),{keyboardProps:a}=(0,i.v5)(e),s=(0,o.dG)(r,a),l=function(e){let t=(0,n.useContext)(h)||{};(0,o.lE)(t,e);let{ref:r,...i}=t;return i}(t),u=e.isDisabled?{}:l,c=(0,n.useRef)(e.autoFocus);return(0,n.useEffect)(()=>{c.current&&t.current&&function(e){if("virtual"===(0,i.Jz)()){let t=document.activeElement;(0,o.QB)(()=>{document.activeElement===t&&document.contains(e)&&(0,o.Ao)(e)})}else(0,o.Ao)(e)}(t.current),c.current=!1},[t]),{focusableProps:(0,o.dG)({...s,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}},34728:function(e,t,r){"use strict";r.d(t,{bU:function(){return g},Ux:function(){return y}});var n=r(44194),o=r(15496);let i=new Map,a=!1;try{a="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let s=!1;try{s="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}let l={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class u{format(e){let t="";if(t=a||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);{if("never"===t)return e.format(Math.abs(r));let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),!n)return e.format(r);{let t=e.format(-r),n=e.format(r),o=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(o,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!s){var r;let{unit:e,unitDisplay:n="short",locale:o}=this.resolvedOptions(),i=null===(r=l[e])||void 0===r?void 0:r[n];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return a||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),s||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&-1===e.indexOf("-u-nu-")&&(e=`${e}-u-nu-${r}`),"unit"===t.style&&!s){var n;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null===(n=l[e])||void 0===n?void 0:n[r]))throw Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(i.has(o))return i.get(o);let a=new Intl.NumberFormat(e,t);return i.set(o,a),a}(e,t),this.options=t}}let c=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),d=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function f(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return c.has(t)}let t=e.split("-")[0];return d.has(t)}(e)?"ltr":"rtl"}}let p=f(),h=new Set;function m(){for(let e of(p=f(),h))e(p)}let v=n.createContext(null);function g(){let e=function(){let e=(0,o.Av)(),[t,r]=(0,n.useState)(p);return((0,n.useEffect)(()=>(0===h.size&&window.addEventListener("languagechange",m),h.add(r),()=>{h.delete(r),0===h.size&&window.removeEventListener("languagechange",m)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}();return(0,n.useContext)(v)||e}function y(e={}){let{locale:t}=g();return(0,n.useMemo)(()=>new u(t,e),[t,e])}new WeakMap},45472:function(e,t,r){"use strict";r.d(t,{Jz:function(){return U},E:function(){return V},KK:function(){return T},mG:function(){return $},L_:function(){return H},XI:function(){return Y},v5:function(){return J},r7:function(){return m}});var n=r(57058),o=r(44194);function i(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function a(e,t,r){var n=i(e,t,"set");return!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r),r}let s="default",l="",u=new WeakMap;function c(e){(0,n.gn)()?("default"===s&&(l=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),s="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(u.set(e,e.style.userSelect),e.style.userSelect="none")}function d(e){if((0,n.gn)())"disabled"===s&&(s="restoring",setTimeout(()=>{(0,n.QB)(()=>{"restoring"===s&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=l||""),l="",s="default")})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&u.has(e)){let t=u.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),u.delete(e)}}let f=o.createContext(null);f.displayName="PressResponderContext";var p=new WeakMap;class h{continuePropagation(){a(this,p,!1)}get shouldStopPropagation(){var e;return(e=i(this,p,"get")).get?e.get.call(this):e.value}constructor(e,t,r){var n;n={writable:!0,value:void 0},function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,p),p.set(this,n),a(this,p,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}function m(e){let{onPress:t,onPressChange:r,onPressStart:i,onPressEnd:a,onPressUp:s,isDisabled:l,isPressed:u,preventFocusOnPress:p,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:E,ref:k,...S}=function(e){let t=(0,o.useContext)(f);if(t){let{register:r,...o}=t;e=(0,n.dG)(o,e),r()}return(0,n.lE)(t,e.ref),e}(e),[O,T]=(0,o.useState)(!1),C=(0,o.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:N,removeAllGlobalListeners:D}=(0,n.xi)(),P=(0,n.iW)((e,t)=>{let n=C.current;if(l||n.didFirePressStart)return;let o=!0;if(i){let r=new h("pressstart",t,e);i(r),o=r.shouldStopPropagation}return r&&r(!0),n.didFirePressStart=!0,T(!0),o}),R=(0,n.iW)((e,n,o=!0)=>{let i=C.current;if(!i.didFirePressStart)return;i.ignoreClickAfterPress=!0,i.didFirePressStart=!1;let s=!0;if(a){let t=new h("pressend",n,e);a(t),s=t.shouldStopPropagation}if(r&&r(!1),T(!1),t&&o&&!l){let r=new h("press",n,e);t(r),s&&(s=r.shouldStopPropagation)}return s}),j=(0,n.iW)((e,t)=>{if(!l){if(s){let r=new h("pressup",t,e);return s(r),r.shouldStopPropagation}return!0}}),A=(0,n.iW)(e=>{let t=C.current;t.isPressed&&(t.isOverTarget&&R(b(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,D(),E||d(t.target))}),F=(0,n.iW)(e=>{m&&A(e)}),L=(0,o.useMemo)(()=>{let e=C.current,t={onKeyDown(t){if(g(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){_(t.target,t.key)&&t.preventDefault();let n=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,n=P(t,"keyboard"),N(document,"keyup",r,!1)),n&&t.stopPropagation()}else"Enter"===t.key&&v(t.currentTarget)&&t.stopPropagation()},onKeyUp(t){g(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&j(b(e.target,t),"keyboard")},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button){let r=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||(0,n.Zj)(t.nativeEvent))){l||p||(0,n.Ao)(t.currentTarget);let e=P(t,"virtual"),o=j(t,"virtual"),i=R(t,"virtual");r=e&&o&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,r&&t.stopPropagation()}}},r=t=>{if(e.isPressed&&g(t,e.target)){_(t.target,t.key)&&t.preventDefault(),e.isPressed=!1;let r=t.target,n=R(b(e.target,t),"keyboard",e.target.contains(r));D(),n&&t.stopPropagation(),e.target instanceof HTMLElement&&e.target.contains(r)&&(v(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,n.cr)(t.nativeEvent)){e.pointerType="virtual";return}x(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,l||p||(0,n.Ao)(t.currentTarget),E||c(e.target),a=P(t,e.pointerType),N(document,"pointermove",r,!1),N(document,"pointerup",o,!1),N(document,"pointercancel",i,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(x(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&w(t,t.currentTarget)&&j(t,e.pointerType||t.pointerType)};let r=t=>{t.pointerId===e.activePointerId&&(w(t,e.target)?e.isOverTarget||(e.isOverTarget=!0,P(b(e.target,t),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,R(b(e.target,t),e.pointerType,!1),F(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(w(t,e.target)?R(b(e.target,t),e.pointerType):e.isOverTarget&&R(b(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,D(),E||d(e.target))},i=e=>{A(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&A(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(x(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,n.Zj)(t.nativeEvent)?"virtual":"mouse",l||p||(0,n.Ao)(t.currentTarget),P(t,e.pointerType)&&t.stopPropagation(),N(document,"mouseup",r,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,r=P(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,r=R(t,e.pointerType,!1),F(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&j(t,e.pointerType)};let r=t=>{if(0===t.button){if(e.isPressed=!1,D(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}w(t,e.target)?R(b(e.target,t),e.pointerType):e.isOverTarget&&R(b(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let r=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",l||p||(0,n.Ao)(t.currentTarget),E||c(e.target),P(t,e.pointerType)&&t.stopPropagation(),N(window,"scroll",o,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=y(t.nativeEvent,e.activePointerId),n=!0;r&&w(r,t.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,n=P(t,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n=R(t,e.pointerType,!1),F(t)),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=y(t.nativeEvent,e.activePointerId),n=!0;r&&w(r,t.currentTarget)?(j(t,e.pointerType),n=R(t,e.pointerType)):e.isOverTarget&&(n=R(t,e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,E||d(e.target),D()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&A(t))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&A({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&A(e)}}return t},[N,l,p,D,E,A,F,R,P,j]);return(0,o.useEffect)(()=>()=>{E||d(C.current.target)},[E]),{isPressed:u||O,pressProps:(0,n.dG)(S,L)}}function v(e){return"A"===e.tagName&&e.hasAttribute("href")}function g(e,t){let{key:r,code:n}=e,o=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof HTMLInputElement&&!k(t,r)||t instanceof HTMLTextAreaElement||t.isContentEditable)&&(!v(t)||"button"===o&&"Enter"!==r)&&!("link"===o&&"Enter"!==r)}function y(e,t){let r=e.changedTouches;for(let e=0;e<r.length;e++){let n=r[e];if(n.identifier===t)return n}return null}function b(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function w(e,t){let r,n,o=t.getBoundingClientRect(),i=(r=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0,{top:e.clientY-n,right:e.clientX+r,bottom:e.clientY+n,left:e.clientX-r});return!(o.left>i.right)&&!(i.left>o.right)&&!(o.top>i.bottom)&&!(i.top>o.bottom)}function x(e){return!(e instanceof HTMLElement)||!e.draggable}function _(e,t){return e instanceof HTMLInputElement?!k(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type&&"reset"!==e.type}let E=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:E.has(e.type)}class S{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function O(e){let t=(0,o.useRef)({isFocused:!1,observer:null});(0,n.bt)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=(0,n.iW)(t=>{null==e||e(t)});return(0,o.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(new S("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer.disconnect();let e=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function T(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e,a=(0,o.useCallback)(e=>{if(e.target===e.currentTarget)return n&&n(e),i&&i(!1),!0},[n,i]),s=O(a),l=(0,o.useCallback)(e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(r&&r(e),i&&i(!0),s(e))},[i,r,s]);return{focusProps:{onFocus:!t&&(r||i||n)?l:void 0,onBlur:!t&&(n||i)?a:void 0}}}let C=null,N=new Set,D=!1,P=!1,R=!1,j={Tab:!0,Escape:!0};function A(e,t){for(let r of N)r(e,t)}function F(e){P=!0,e.metaKey||!(0,n.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(C="keyboard",A("keyboard",e))}function L(e){C="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(P=!0,A("pointer",e))}function I(e){(0,n.Zj)(e)&&(P=!0,C="virtual")}function M(e){e.target!==window&&e.target!==document&&(P||R||(C="virtual",A("virtual",e)),P=!1,R=!1)}function q(){P=!1,R=!0}function z(){if("undefined"==typeof window||D)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){P=!0,e.apply(this,arguments)},document.addEventListener("keydown",F,!0),document.addEventListener("keyup",F,!0),document.addEventListener("click",I,!0),window.addEventListener("focus",M,!0),window.addEventListener("blur",q,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",L,!0),document.addEventListener("pointermove",L,!0),document.addEventListener("pointerup",L,!0)):(document.addEventListener("mousedown",L,!0),document.addEventListener("mousemove",L,!0),document.addEventListener("mouseup",L,!0)),D=!0}function V(){return"pointer"!==C}function U(){return C}function $(e,t,r){z(),(0,o.useEffect)(()=>{let t=(t,n)=>{(!((null==r?void 0:r.isTextInput)&&"keyboard"===t&&n instanceof KeyboardEvent)||j[n.key])&&e(V())};return N.add(t),()=>{N.delete(t)}},t)}function H(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,a=(0,o.useRef)({isFocusWithin:!1}),s=(0,o.useCallback)(e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(e),i&&i(!1))},[r,i,a]),l=O(s),u=(0,o.useCallback)(e=>{a.current.isFocusWithin||document.activeElement!==e.target||(n&&n(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))},[n,i,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?z():document.addEventListener("DOMContentLoaded",z));let K=!1,B=0;function W(){K=!0,setTimeout(()=>{K=!1},50)}function Z(e){"touch"===e.pointerType&&W()}function G(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Z):document.addEventListener("touchend",W),B++,()=>{--B>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Z):document.removeEventListener("touchend",W))}}function Y(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[a,s]=(0,o.useState)(!1),l=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,o.useEffect)(G,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,o.useMemo)(()=>{let e=(e,n)=>{if(l.pointerType=n,i||"touch"===n||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let o=e.currentTarget;l.target=o,t&&t({type:"hoverstart",target:o,pointerType:n}),r&&r(!0),s(!0)},o=(e,t)=>{if(l.pointerType="",l.target=null,"touch"===t||!l.isHovered)return;l.isHovered=!1;let o=e.currentTarget;n&&n({type:"hoverend",target:o,pointerType:t}),r&&r(!1),s(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{K&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||K||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:a,triggerHoverEnd:o}},[t,r,n,i,l]);return(0,o.useEffect)(()=>{i&&c({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:u,isHovered:a}}function Q(e){if(!e)return;let t=!0;return r=>{e({...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&r.stopPropagation()}}function J(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Q(e.onKeyDown),onKeyUp:Q(e.onKeyUp)}}}},9697:function(e,t,r){"use strict";r.d(t,{N:function(){return o},U:function(){return i}});var n=r(57058);function o(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":i,labelElementType:a="label"}=e;t=(0,n.Me)(t);let s=(0,n.Me)(),l={};return r?(o=o?`${s} ${o}`:s,l={id:s,htmlFor:"label"===a?t:void 0}):o||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:(0,n.bE)({id:t,"aria-label":i,"aria-labelledby":o})}}function i(e){let{description:t,errorMessage:r,validationState:i}=e,{labelProps:a,fieldProps:s}=o(e),l=(0,n.mp)([!!t,!!r,i]),u=(0,n.mp)([!!t,!!r,i]);return{labelProps:a,fieldProps:s=(0,n.dG)(s,{"aria-describedby":[l,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:l},errorMessageProps:{id:u}}}},15496:function(e,t,r){"use strict";r.d(t,{Av:function(){return f},gP:function(){return l}});var n=r(44194);let o={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},i=n.createContext(o),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=new WeakMap,l="function"==typeof n.useId?function(e){let t=n.useId(),[r]=(0,n.useState)(f()),i=r?"react-aria":`react-aria${o.prefix}`;return e||`${i}-${t}`}:function(e){let t=(0,n.useContext)(i);t!==o||a||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let t=(0,n.useContext)(i),r=(0,n.useRef)(null);if(null===r.current&&!e){var o,a;let e=null===(o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o?void 0:null===(a=o.ReactCurrentOwner)||void 0===a?void 0:a.current;if(e){let r=s.get(e);null==r?s.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,s.delete(e))}r.current=++t.current}return r.current}(!!e),l=`react-aria${t.prefix}`;return e||`${l}-${r}`};function u(){return!1}function c(){return!0}function d(e){return()=>{}}function f(){return"function"==typeof n.useSyncExternalStore?n.useSyncExternalStore(d,u,c):(0,n.useContext)(i).isSSR}},57058:function(e,t,r){"use strict";r.d(t,{Ao:function(){return m},Me:function(){return l},QB:function(){return w},V5:function(){return S},Zj:function(){return C},bE:function(){return _},bt:function(){return a},cr:function(){return N},dG:function(){return c},gn:function(){return O},iW:function(){return T},lE:function(){return E},mp:function(){return u},xi:function(){return x},y$:function(){return D},zL:function(){return h}});var n=r(44194),o=r(15496),i=r(14517);let a="undefined"!=typeof document?n.useLayoutEffect:()=>{},s=new Map;function l(e){let[t,r]=(0,n.useState)(e),i=(0,n.useRef)(null),l=(0,o.gP)(t),u=(0,n.useCallback)(e=>{i.current=e},[]);return s.set(l,u),a(()=>()=>{s.delete(l)},[l]),(0,n.useEffect)(()=>{let e=i.current;e&&(i.current=null,r(e))}),l}function u(e=[]){let t=l(),[r,o]=function(e){let[t,r]=(0,n.useState)(e),o=(0,n.useRef)(t),i=(0,n.useRef)(null),s=(0,n.useCallback)(()=>{let e=i.current.next();for(;!e.done&&o.current===e.value;)e=i.current.next();if(e.done){i.current=null;return}r(e.value),o.current=e.value},[r,o,i]);return a(()=>{i.current&&s()}),[t,(0,n.useCallback)(e=>{i.current=e(o.current),s()},[s,i,o])]}(t),i=(0,n.useCallback)(()=>{o(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,o]);return a(i,[t,i,...e]),r}function c(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],o=n[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}(r,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof o?t[e]=(0,i.Z)(r,o):"id"===e&&r&&o?t.id=function(e,t){if(e===t)return e;let r=s.get(e);if(r)return r(t),t;let n=s.get(t);return n?(n(e),e):t}(r,o):t[e]=void 0!==o?o:r}}return t}let d=new Set(["id"]),f=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),p=/^(data-.*)$/;function h(e,t={}){let{labelable:r,propNames:n}=t,o={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(d.has(t)||r&&f.has(t)||(null==n?void 0:n.has(t))||p.test(t))&&(o[t]=e[t]);return o}function m(e){if(function(){if(null==v){v=!1;try{document.createElement("div").focus({get preventScroll(){return v=!0,!0}})}catch(e){}}return v}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}let v=null,g=new Map,y=new Set;function b(){if("undefined"==typeof window)return;let e=t=>{let r=g.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),g.delete(t.target)),0===g.size)){for(let e of y)e();y.clear()}};document.body.addEventListener("transitionrun",t=>{let r=g.get(t.target);r||(r=new Set,g.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)}),document.body.addEventListener("transitionend",e)}function w(e){requestAnimationFrame(()=>{0===g.size?e():y.add(e)})}function x(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:i,options:o}),t.addEventListener(r,n,o)},[]),r=(0,n.useCallback)((t,r,n,o)=>{var i;let a=(null===(i=e.current.get(n))||void 0===i?void 0:i.fn)||n;t.removeEventListener(r,a,o),e.current.delete(n)},[]),o=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function _(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=l(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),n||o||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function E(e,t){a(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function k(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function S(){return k(/^Mac/i)}function O(){return k(/^iPhone/i)||k(/^iPad/i)||S()&&navigator.maxTouchPoints>1}function T(e){let t=(0,n.useRef)(null);return a(()=>{t.current=e},[e]),(0,n.useCallback)((...e)=>(0,t.current)(...e),[])}function C(e){var t,r;return 0===e.mozInputSource&&!!e.isTrusted||((t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(r=window.navigator.userAgentData)||void 0===r?void 0:r.brands.some(e=>t.test(e.brand)))||t.test(window.navigator.userAgent))&&e.pointerType)?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function N(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}function D(e,t,r){let o=(0,n.useRef)(t),i=T(()=>{r&&r(o.current)});(0,n.useEffect)(()=>{var t;let r=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.form;return null==r||r.addEventListener("reset",i),()=>{null==r||r.removeEventListener("reset",i)}},[e,i])}"undefined"!=typeof document&&("loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)),"undefined"!=typeof document&&window.visualViewport},7110:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(57058),o=r(44194),i=r(45472);let a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s(e){let{children:t,elementType:r="div",isFocusable:s,style:l,...u}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:r}=e,[n,s]=(0,o.useState)(!1),{focusWithinProps:l}=(0,i.L_)({isDisabled:!r,onFocusWithinChange:e=>s(e)}),u=(0,o.useMemo)(()=>n?t:t?{...a,...t}:a,[n]);return{visuallyHiddenProps:{...l,style:u}}}(e);return o.createElement(r,(0,n.dG)(u,c),t)}},16051:function(e,t,r){"use strict";r.d(t,{q:function(){return rx},vc:function(){return tw},sX:function(){return rs},aB:function(){return rr},q_:function(){return rt}});var n,o,i,a,s,l,u=r(44194),c=Object.defineProperty,d={};((e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})})(d,{assign:()=>$,colors:()=>z,createStringInterpolator:()=>o,skipAnimation:()=>V,to:()=>i,willAdvance:()=>U});var f=C(),p=e=>k(e,f),h=C();p.write=e=>k(e,h);var m=C();p.onStart=e=>k(e,m);var v=C();p.onFrame=e=>k(e,v);var g=C();p.onFinish=e=>k(e,g);var y=[];p.setTimeout=(e,t)=>{let r=p.now()+t,n=()=>{let e=y.findIndex(e=>e.cancel==n);~e&&y.splice(e,1),_-=~e?1:0},o={time:r,handler:e,cancel:n};return y.splice(b(r),0,o),_+=1,S(),o};var b=e=>~(~y.findIndex(t=>t.time>e)||~y.length);p.cancel=e=>{m.delete(e),v.delete(e),g.delete(e),f.delete(e),h.delete(e)},p.sync=e=>{E=!0,p.batchedUpdates(e),E=!1},p.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,p.onStart(r)}return n.handler=e,n.cancel=()=>{m.delete(r),t=null},n};var w="undefined"!=typeof window?window.requestAnimationFrame:()=>{};p.use=e=>w=e,p.now="undefined"!=typeof performance?()=>performance.now():Date.now,p.batchedUpdates=e=>e(),p.catch=console.error,p.frameLoop="always",p.advance=()=>{"demand"!==p.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):T()};var x=-1,_=0,E=!1;function k(e,t){E?(t.delete(e),e(0)):(t.add(e),S())}function S(){x<0&&(x=0,"demand"!==p.frameLoop&&w(O))}function O(){~x&&(w(O),p.batchedUpdates(T))}function T(){let e=x,t=b(x=p.now());if(t&&(N(y.splice(0,t),e=>e.handler()),_-=t),!_){x=-1;return}m.flush(),f.flush(e?Math.min(64,x-e):16.667),v.flush(),h.flush(),g.flush()}function C(){let e=new Set,t=e;return{add(r){_+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(_-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,_-=t.size,N(t,t=>t(r)&&e.add(t)),_+=e.size,t=e)}}}function N(e,t){e.forEach(e=>{try{t(e)}catch(e){p.catch(e)}})}function D(){}var P=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),R={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function j(e,t){if(R.arr(e)){if(!R.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var A=(e,t)=>e.forEach(t);function F(e,t,r){if(R.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(let n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var L=e=>R.und(e)?[]:R.arr(e)?e:[e];function I(e,t){if(e.size){let r=Array.from(e);e.clear(),A(r,t)}}var M=(e,...t)=>I(e,e=>e(...t)),q=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),z=null,V=!1,U=D,$=e=>{e.to&&(i=e.to),e.now&&(p.now=e.now),void 0!==e.colors&&(z=e.colors),null!=e.skipAnimation&&(V=e.skipAnimation),e.createStringInterpolator&&(o=e.createStringInterpolator),e.requestAnimationFrame&&p.use(e.requestAnimationFrame),e.batchedUpdates&&(p.batchedUpdates=e.batchedUpdates),e.willAdvance&&(U=e.willAdvance),e.frameLoop&&(p.frameLoop=e.frameLoop)},H=new Set,K=[],B=[],W=0,Z={get idle(){return!H.size&&!K.length},start(e){W>e.priority?(H.add(e),p.onStart(G)):(Y(e),p(J))},advance:J,sort(e){if(W)p.onFrame(()=>Z.sort(e));else{let t=K.indexOf(e);~t&&(K.splice(t,1),Q(e))}},clear(){K=[],H.clear()}};function G(){H.forEach(Y),H.clear(),p(J)}function Y(e){K.includes(e)||Q(e)}function Q(e){K.splice(function(e,t){let r=e.findIndex(t);return r<0?e.length:r}(K,t=>t.priority>e.priority),0,e)}function J(e){let t=B;for(let r=0;r<K.length;r++){let n=K[r];W=n.priority,n.idle||(U(n),n.advance(e),n.idle||t.push(n))}return W=0,(B=K).length=0,(K=t).length>0}var X="[-+]?\\d*\\.?\\d+",ee=X+"%";function et(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var er=RegExp("rgb"+et(X,X,X)),en=RegExp("rgba"+et(X,X,X,X)),eo=RegExp("hsl"+et(X,ee,ee)),ei=RegExp("hsla"+et(X,ee,ee,X)),ea=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,es=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,el=/^#([0-9a-fA-F]{6})$/,eu=/^#([0-9a-fA-F]{8})$/;function ec(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ed(e,t,r){let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n;return Math.round(255*ec(o,n,e+1/3))<<24|Math.round(255*ec(o,n,e))<<16|Math.round(255*ec(o,n,e-1/3))<<8}function ef(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ep(e){return(parseFloat(e)%360+360)%360/360}function eh(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function em(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ev(e){let t;let r="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=el.exec(e))?parseInt(t[1]+"ff",16)>>>0:z&&void 0!==z[e]?z[e]:(t=er.exec(e))?(ef(t[1])<<24|ef(t[2])<<16|ef(t[3])<<8|255)>>>0:(t=en.exec(e))?(ef(t[1])<<24|ef(t[2])<<16|ef(t[3])<<8|eh(t[4]))>>>0:(t=ea.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=eu.exec(e))?parseInt(t[1],16)>>>0:(t=es.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=eo.exec(e))?(255|ed(ep(t[1]),em(t[2]),em(t[3])))>>>0:(t=ei.exec(e))?(ed(ep(t[1]),em(t[2]),em(t[3]))|eh(t[4]))>>>0:null;if(null===r)return e;let n=(4278190080&(r=r||0))>>>24,o=(16711680&r)>>>16,i=(65280&r)>>>8,a=(255&r)/255;return`rgba(${n}, ${o}, ${i}, ${a})`}var eg=(e,t,r)=>{if(R.fun(e))return e;if(R.arr(e))return eg({range:e,output:t,extrapolate:r});if(R.str(e.output[0]))return o(e);let n=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",s=e.extrapolateRight||e.extrapolate||"extend",l=e.easing||(e=>e);return t=>{let r=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(t,i);return function(e,t,r,n,o,i,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>r){if("identity"===s)return u;"clamp"===s&&(u=r)}return n===o?n:t===r?e<=t?n:o:(t===-1/0?u=-u:r===1/0?u-=t:u=(u-t)/(r-t),u=i(u),n===-1/0?u=-u:o===1/0?u+=n:u=u*(o-n)+n,u)}(t,i[r],i[r+1],n[r],n[r+1],l,a,s,e.map)}},ey=Symbol.for("FluidValue.get"),eb=Symbol.for("FluidValue.observers"),ew=e=>!!(e&&e[ey]),ex=e=>e&&e[ey]?e[ey]():e,e_=e=>e[eb]||null;function eE(e,t){let r=e[eb];r&&r.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var ek=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eS(this,e)}},eS=(e,t)=>eC(e,ey,t);function eO(e,t){if(e[ey]){let r=e[eb];r||eC(e,eb,r=new Set),!r.has(t)&&(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function eT(e,t){let r=e[eb];if(r&&r.has(t)){let n=r.size-1;n?r.delete(t):e[eb]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var eC=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),eN=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eD=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eP=RegExp(`(${eN.source})(%|[a-z]+)`,"i"),eR=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ej=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eA=e=>{let[t,r]=eF(e);if(!t||q())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(e)return e}else if(r&&ej.test(r))return eA(r);else if(r)return r;return e},eF=e=>{let t=ej.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]},eL=(e,t,r,n,o)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${o})`,eI=e=>{a||(a=z?RegExp(`(${Object.keys(z).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ex(e).replace(ej,eA).replace(eD,ev).replace(a,ev)),r=t.map(e=>e.match(eN).map(Number)),n=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eg({...e,output:t}));return e=>{let r=!eP.test(t[0])&&t.find(e=>eP.test(e))?.replace(eN,""),o=0;return t[0].replace(eN,()=>`${n[o++](e)}${r||""}`).replace(eR,eL)}},eM="react-spring: ",eq=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eM}once requires a function parameter`);return(...r)=>{t||(e(...r),t=!0)}},ez=eq(console.warn);function eV(){ez(`${eM}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eU=eq(console.warn);function e$(e){return R.str(e)&&("#"==e[0]||/\d/.test(e)||!q()&&ej.test(e)||e in(z||{}))}var eH=new WeakMap,eK=e=>e.forEach(({target:e,contentRect:t})=>eH.get(e)?.forEach(e=>e(t))),eB=new Set,eW=()=>{let e=()=>{eB.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},eZ=e=>(eB.add(e),l||(l=eW()),()=>{eB.delete(e),!eB.size&&l&&(l(),l=void 0)}),eG=(e,{container:t=document.documentElement}={})=>{if(t===document.documentElement)return eZ(e);{let r;return s||"undefined"==typeof ResizeObserver||(s=new ResizeObserver(eK)),(r=eH.get(t))||(r=new Set,eH.set(t,r)),r.add(e),s&&s.observe(t),()=>{let r=eH.get(t);r&&(r.delete(e),!r.size&&s&&s.unobserve(t))}}},eY=q()?u.useEffect:u.useLayoutEffect,eQ=()=>{let e=(0,u.useRef)(!1);return eY(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function eJ(){let e=(0,u.useState)()[1],t=eQ();return()=>{t.current&&e(Math.random())}}var eX=e=>(0,u.useEffect)(e,e0),e0=[];function e1(e){let t=(0,u.useRef)();return(0,u.useEffect)(()=>{t.current=e}),t.current}var e2=Symbol.for("Animated:node"),e4=e=>!!e&&e[e2]===e,e5=e=>e&&e[e2],e3=(e,t)=>P(e,e2,t),e8=e=>e&&e[e2]&&e[e2].getPayload(),e6=class{constructor(){e3(this,this)}getPayload(){return this.payload||[]}},e9=class extends e6{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,R.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new e9(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return R.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,R.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},e7=class extends e9{constructor(e){super(0),this._string=null,this._toString=eg({output:[e,e]})}static create(e){return new e7(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(R.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=eg({output:[this.getValue(),e]})),this._value=0,super.reset()}},te={dependencies:null},tt=class extends e6{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return F(this.source,(r,n)=>{e4(r)?t[n]=r.getValue(e):ew(r)?t[n]=ex(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&A(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return F(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){te.dependencies&&ew(e)&&te.dependencies.add(e);let t=e8(e);t&&A(t,e=>this.add(e))}},tr=class extends tt{constructor(e){super(e)}static create(e){return new tr(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(tn)),!0)}};function tn(e){return(e$(e)?e7:e9).create(e)}function to(e){let t=e5(e);return t?t.constructor:R.arr(e)?tr:e$(e)?e7:e9}var ti=(e,t)=>{let r=!R.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,u.forwardRef)((n,o)=>{let i=(0,u.useRef)(null),a=r&&(0,u.useCallback)(e=>{i.current=(o&&(R.fun(o)?o(e):o.current=e),e)},[o]),[s,l]=function(e,t){let r=new Set;return te.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new tt(e),te.dependencies=null,[e,r]}(n,t),c=eJ(),d=()=>{let e=i.current;(!r||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},f=new ta(d,l),h=(0,u.useRef)();eY(()=>(h.current=f,A(l,e=>eO(e,f)),()=>{h.current&&(A(h.current.deps,e=>eT(e,h.current)),p.cancel(h.current.update))})),(0,u.useEffect)(d,[]),eX(()=>()=>{let e=h.current;A(e.deps,t=>eT(t,e))});let m=t.getComponentProps(s.getValue());return u.createElement(e,{...m,ref:a})})},ta=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&p.write(this.update)}},ts=Symbol.for("AnimatedComponent"),tl=e=>R.str(e)?e:e&&R.str(e.displayName)?e.displayName:R.fun(e)&&e.name||null;function tu(e,...t){return R.fun(e)?e(...t):e}var tc=(e,t)=>!0===e||!!(t&&e&&(R.fun(e)?e(t):L(e).includes(t))),td=(e,t)=>R.obj(e)?t&&e[t]:e,tf=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,tp=e=>e,th=(e,t=tp)=>{let r=tm;e.default&&!0!==e.default&&(r=Object.keys(e=e.default));let n={};for(let o of r){let r=t(e[o],o);R.und(r)||(n[o]=r)}return n},tm=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tv={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tg(e){let t=function(e){let t={},r=0;if(F(e,(e,n)=>{!tv[n]&&(t[n]=e,r++)}),r)return t}(e);if(t){let r={to:t};return F(e,(e,n)=>n in t||(r[n]=e)),r}return{...e}}function ty(e){return e=ex(e),R.arr(e)?e.map(ty):e$(e)?d.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tb(e){return R.fun(e)||R.arr(e)&&R.obj(e[0])}var tw={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},tx={...tw.default,mass:1,damping:1,easing:e=>e,clamp:!1},t_=class{constructor(){this.velocity=0,Object.assign(this,tx)}};function tE(e,t){if(R.und(t.decay)){let r=!R.und(t.tension)||!R.und(t.friction);!r&&R.und(t.frequency)&&R.und(t.damping)&&R.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var tk=[],tS=class{constructor(){this.changed=!1,this.values=tk,this.toValues=null,this.fromValues=tk,this.config=new t_,this.immediate=!1}};function tO(e,{key:t,props:r,defaultProps:n,state:o,actions:i}){return new Promise((a,s)=>{let l,u;let c=tc(r.cancel??n?.cancel,t);if(c)m();else{R.und(r.pause)||(o.paused=tc(r.pause,t));let e=n?.pause;!0!==e&&(e=o.paused||tc(e,t)),l=tu(r.delay||0,t),e?(o.resumeQueue.add(h),i.pause()):(i.resume(),h())}function f(){o.resumeQueue.add(h),o.timeouts.delete(u),u.cancel(),l=u.time-p.now()}function h(){l>0&&!d.skipAnimation?(o.delayed=!0,u=p.setTimeout(m,l),o.pauseQueue.add(f),o.timeouts.add(u)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...r,callId:e,cancel:c},a)}catch(e){s(e)}}})}var tT=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?tD(e.get()):t.every(e=>e.noop)?tC(e.get()):tN(e.get(),t.every(e=>e.finished)),tC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tN=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),tD=e=>({value:e,cancelled:!0,finished:!1});function tP(e,t,r,n){let{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=r;return i||e!==s||t.reset?r.promise=(async()=>{let u,c,f;r.asyncId=o,r.asyncTo=e;let h=th(t,(e,t)=>"onRest"===t?void 0:e),m=new Promise((e,t)=>(u=e,c=t)),v=e=>{let t=o<=(r.cancelId||0)&&tD(n)||o!==r.asyncId&&tN(n,!1);if(t)throw e.result=t,c(e),e},g=(e,t)=>{let i=new tj,a=new tA;return(async()=>{if(d.skipAnimation)throw tR(r),a.result=tN(n,!1),c(a),a;v(i);let s=R.obj(e)?{...e}:{...t,to:e};s.parentId=o,F(h,(e,t)=>{R.und(s[t])&&(s[t]=e)});let l=await n.start(s);return v(i),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),l})()};if(d.skipAnimation)return tR(r),tN(n,!1);try{let t;t=R.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,n.stop.bind(n))),await Promise.all([t.then(u),m]),f=tN(n.get(),!0,!1)}catch(e){if(e instanceof tj)f=e.result;else if(e instanceof tA)f=e.result;else throw e}finally{o==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?l:void 0)}return R.fun(a)&&p.batchedUpdates(()=>{a(f,n,n.item)}),f})():l}function tR(e,t){I(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tj=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tA=class extends Error{constructor(){super("SkipAnimationSignal")}},tF=e=>e instanceof tI,tL=1,tI=class extends ek{constructor(){super(...arguments),this.id=tL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=e5(this);return e&&e.getValue()}to(...e){return d.to(this,e)}interpolate(...e){return eV(),d.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eE(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Z.sort(this),eE(this,{type:"priority",parent:this,priority:e})}},tM=Symbol.for("SpringPhase"),tq=e=>(1&e[tM])>0,tz=e=>(2&e[tM])>0,tV=e=>(4&e[tM])>0,tU=(e,t)=>t?e[tM]|=3:e[tM]&=-3,t$=(e,t)=>t?e[tM]|=4:e[tM]&=-5,tH=class extends tI{constructor(e,t){if(super(),this.animation=new tS,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.und(e)||!R.und(t)){let r=R.obj(e)?{...e}:{...t,from:e};R.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(tz(this)||this._state.asyncTo)||tV(this)}get goal(){return ex(this.animation.to)}get velocity(){let e=e5(this);return e instanceof e9?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return tq(this)}get isAnimating(){return tz(this)}get isPaused(){return tV(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,n=this.animation,{toValues:o}=n,{config:i}=n,a=e8(n.to);!a&&ew(n.to)&&(o=L(ex(n.to))),n.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==e7?1:a?a[l].lastPosition:o[l],c=n.immediate,d=u;if(!c){let t;if(d=s.lastPosition,i.tension<=0){s.done=!0;return}let r=s.elapsedTime+=e,o=n.fromValues[l],a=null!=s.v0?s.v0:s.v0=R.arr(i.velocity)?i.velocity[l]:i.velocity,f=i.precision||(o==u?.005:Math.min(1,.001*Math.abs(u-o)));if(R.und(i.duration)){if(i.decay){let e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*r);d=o+a/(1-e)*(1-n),c=Math.abs(s.lastPosition-d)<=f,t=a*n}else{t=null==s.lastVelocity?a:s.lastVelocity;let r=i.restVelocity||f/10,n=i.clamp?0:i.bounce,l=!R.und(n),p=o==u?s.v0>0:o<u,h=Math.ceil(e/1);for(let e=0;e<h&&!(!(Math.abs(t)>r)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==p)&&(t=-t*n,d=u);let e=(-(1e-6*i.tension)*(d-u)+-(.001*i.friction)*t)/i.mass;t+=1*e,d+=1*t}}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,r=s.elapsedTime+=e)),n=(n=(i.progress||0)+r/this._memoizedDuration)>1?1:n<0?0:n,s.durationProgress=n),t=((d=o+i.easing(n)*(u-o))-s.lastPosition)/e,c=1==n}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,i.round)&&(r=!0)});let s=e5(this),l=s.getValue();if(t){let e=ex(n.to);(l!==e||r)&&!i.decay?(s.setValue(e),this._onChange(e)):r&&i.decay&&this._onChange(l),this._stop()}else r&&this._onChange(l)}set(e){return p.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tz(this)){let{to:e,config:t}=this.animation;p.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return R.und(e)?(r=this.queue||[],this.queue=[]):r=[R.obj(e)?e:{...t,to:e}],Promise.all(r.map(e=>this._update(e))).then(e=>tT(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),tR(this._state,e&&this._lastCallId),p.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:r,from:n}=e;(null==(r=R.obj(r)?r[t]:r)||tb(r))&&(r=void 0),null==(n=R.obj(n)?n[t]:n)&&(n=void 0);let o={to:r,from:n};return tq(this)||(e.reverse&&([r,n]=[n,r]),n=ex(n),R.und(n)?e5(this)||this._set(r):this._set(n)),o}_update({...e},t){let{key:r,defaultProps:n}=this;e.default&&Object.assign(n,th(e,(e,t)=>/^on/.test(t)?td(e,r):e)),tY(this,e,"onProps"),tQ(this,"onProps",e,this);let o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let i=this._state;return tO(++this._lastCallId,{key:r,props:e,defaultProps:n,state:i,actions:{pause:()=>{tV(this)||(t$(this,!0),M(i.pauseQueue),tQ(this,"onPause",tN(this,tK(this,this.animation.to)),this))},resume:()=>{tV(this)&&(t$(this,!1),tz(this)&&this._resume(),M(i.resumeQueue),tQ(this,"onResume",tN(this,tK(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(r=>{if(e.loop&&r.finished&&!(t&&r.noop)){let t=tB(e);if(t)return this._update(t,!0)}return r})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(tD(this));let n=!R.und(e.to),o=!R.und(e.from);if(n||o){if(!(t.callId>this._lastToId))return r(tD(this));this._lastToId=t.callId}let{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;o&&!n&&(!t.default||R.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!j(d,u);f&&(s.from=d),d=ex(d);let h=!j(c,l);h&&this._focus(c);let m=tb(t.to),{config:v}=s,{decay:g,velocity:y}=v;(n||o)&&(v.velocity=0),t.config&&!m&&function(e,t,r){for(let n in r&&(tE(r={...r},t),t={...r,...t}),tE(e,t),Object.assign(e,t),tx)null==e[n]&&(e[n]=tx[n]);let{frequency:n,damping:o}=e,{mass:i}=e;R.und(n)||(n<.01&&(n=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/n,2)*i,e.friction=4*Math.PI*o*i/n)}(v,tu(t.config,i),t.config!==a.config?tu(a.config,i):void 0);let b=e5(this);if(!b||R.und(c))return r(tN(this,!0));let w=R.und(t.reset)?o&&!t.default:!R.und(d)&&tc(t.reset,i),x=w?d:this.get(),_=ty(c),E=R.num(_)||R.arr(_)||e$(_),k=!m&&(!E||tc(a.immediate||t.immediate,i));if(h){let e=to(c);if(e!==b.constructor){if(k)b=this._set(_);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let S=b.constructor,O=ew(c),T=!1;if(!O){let e=w||!tq(this)&&f;(h||e)&&(O=!(T=j(ty(x),_))),(j(s.immediate,k)||k)&&j(v.decay,g)&&j(v.velocity,y)||(O=!0)}if(T&&tz(this)&&(s.changed&&!w?O=!0:O||this._stop(l)),!m&&((O||ew(l))&&(s.values=b.getPayload(),s.toValues=ew(c)?null:S==e7?[1]:L(_)),s.immediate==k||(s.immediate=k,k||w||this._set(l)),O)){let{onRest:e}=s;A(tG,e=>tY(this,t,e));let n=tN(this,tK(this,l));M(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&p.batchedUpdates(()=>{s.changed=!w,e?.(n,this),w?tu(a.onRest,n):s.onStart?.(n,this)})}w&&this._set(x),m?r(tP(t.to,t,this._state,this)):O?this._start():tz(this)&&!h?this._pendingCalls.add(r):r(tC(x))}_focus(e){let t=this.animation;e!==t.to&&(e_(this)&&this._detach(),t.to=e,e_(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;ew(t)&&(eO(t,this),tF(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;ew(e)&&eT(e,this)}_set(e,t=!0){let r=ex(e);if(!R.und(r)){let e=e5(this);if(!e||!j(r,e.getValue())){let n=to(r);e&&e.constructor==n?e.setValue(r):e3(this,n.create(r)),e&&p.batchedUpdates(()=>{this._onChange(r,t)})}}return e5(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,tQ(this,"onStart",tN(this,tK(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),tu(this.animation.onChange,e,this)),tu(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;e5(this).reset(ex(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),tz(this)||(tU(this,!0),tV(this)||this._resume())}_resume(){d.skipAnimation?this.finish():Z.start(this)}_stop(e,t){if(tz(this)){tU(this,!1);let r=this.animation;A(r.values,e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),eE(this,{type:"idle",parent:this});let n=t?tD(this.get()):tN(this.get(),tK(this,e??r.to));M(this._pendingCalls,n),r.changed&&(r.changed=!1,tQ(this,"onRest",n,this))}}};function tK(e,t){let r=ty(t);return j(ty(e.get()),r)}function tB(e,t=e.loop,r=e.to){let n=tu(t);if(n){let o=!0!==n&&tg(n),i=(o||e).reverse,a=!o||o.reset;return tW({...e,loop:t,default:!1,pause:void 0,to:!i||tb(r)?r:void 0,from:a?e.from:void 0,reset:a,...o})}}function tW(e){let{to:t,from:r}=e=tg(e),n=new Set;return R.obj(t)&&tZ(t,n),R.obj(r)&&tZ(r,n),e.keys=n.size?Array.from(n):null,e}function tZ(e,t){F(e,(e,r)=>null!=e&&t.add(r))}var tG=["onStart","onRest","onChange","onPause","onResume"];function tY(e,t,r){e.animation[r]=t[r]!==tf(t,r)?td(t[r],e.key):void 0}function tQ(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var tJ=["onStart","onChange","onRest"],tX=1,t0=class{constructor(e,t){this.id=tX++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];R.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(tW(e)),this}start(e){let{queue:t}=this;return(e?t=L(e).map(tW):this.queue=[],this._flush)?this._flush(this,t):(t6(this,t),t1(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let r=this.springs;A(L(t),t=>r[t].stop(!!e))}else tR(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(R.und(e))this.start({pause:!0});else{let t=this.springs;A(L(e),e=>t[e].pause())}return this}resume(e){if(R.und(e))this.start({pause:!1});else{let t=this.springs;A(L(e),e=>t[e].resume())}return this}each(e){F(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,o=this._changed.size>0;(n&&!this._started||o&&!this._started)&&(this._started=!0,I(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let i=!n&&this._started,a=o||i&&r.size?this.get():null;o&&t.size&&I(t,([e,t])=>{t.value=a,e(t,this,this._item)}),i&&(this._started=!1,I(r,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}p.onFrame(this._onFrame)}};function t1(e,t){return Promise.all(t.map(t=>t2(e,t))).then(t=>tT(e,t))}async function t2(e,t,r){let{keys:n,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=R.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);let c=R.arr(o)||R.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):A(tJ,r=>{let n=t[r];if(R.fun(n)){let o=e._events[r];t[r]=({finished:e,cancelled:t})=>{let r=o.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):o.set(n,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[r]=t[r])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,M(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(n||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),h=!0===t.cancel||!0===tf(t,"cancel");(c||h&&d.asyncId)&&f.push(tO(++e._lastAsyncId,{props:t,state:d,actions:{pause:D,resume:D,start(t,r){h?(tR(d,e._lastAsyncId),r(tD(e))):(t.onRest=s,r(tP(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let m=tT(e,await Promise.all(f));if(a&&m.finished&&!(r&&m.noop)){let r=tB(t,a,o);if(r)return t6(e,[r]),t2(e,r,!0)}return l&&p.batchedUpdates(()=>l(m,e,e.item)),m}function t4(e,t){let r={...e.springs};return t&&A(L(t),e=>{R.und(e.keys)&&(e=tW(e)),R.obj(e.to)||(e={...e,to:void 0}),t8(r,e,e=>t3(e))}),t5(e,r),r}function t5(e,t){F(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,eO(t,e))})}function t3(e,t){let r=new tH;return r.key=e,t&&eO(r,t),r}function t8(e,t,r){t.keys&&A(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function t6(e,t){A(t,t=>{t8(e.springs,t,t=>t3(t,e))})}var t9=({children:e,...t})=>{let r=(0,u.useContext)(t7),n=t.pause||!!r.pause,o=t.immediate||!!r.immediate;t=function(e,t){let[r]=(0,u.useState)(()=>({inputs:t,result:e()})),n=(0,u.useRef)(),o=n.current,i=o;return i?t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.inputs)||(i={inputs:t,result:e()}):i=r,(0,u.useEffect)(()=>{n.current=i,o==r&&(r.inputs=r.result=void 0)},[i]),i.result}(()=>({pause:n,immediate:o}),[n,o]);let{Provider:i}=t7;return u.createElement(i,{value:t},e)},t7=(n={},Object.assign(t9,u.createContext(n)),t9.Provider._context=t9,t9.Consumer._context=t9,t9);t9.Provider=t7.Provider,t9.Consumer=t7.Consumer;var re=()=>{let e=[],t=function(t){eU(`${eM}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let n=[];return A(e,(e,o)=>{if(R.und(t))n.push(e.start());else{let i=r(t,e,o);i&&n.push(e.start(i))}}),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return A(e,e=>e.pause(...arguments)),this},t.resume=function(){return A(e,e=>e.resume(...arguments)),this},t.set=function(t){A(e,(e,r)=>{let n=R.fun(t)?t(r,e):t;n&&e.set(n)})},t.start=function(t){let r=[];return A(e,(e,n)=>{if(R.und(t))r.push(e.start());else{let o=this._getProps(t,e,n);o&&r.push(e.start(o))}}),r},t.stop=function(){return A(e,e=>e.stop(...arguments)),this},t.update=function(t){return A(e,(e,r)=>e.update(this._getProps(t,e,r))),this};let r=function(e,t,r){return R.fun(e)?e(r,t):e};return t._getProps=r,t};function rt(e,t){let r=R.fun(e),[[n],o]=function(e,t,r){let n=R.fun(t)&&t;n&&!r&&(r=[]);let o=(0,u.useMemo)(()=>n||3==arguments.length?re():void 0,[]),i=(0,u.useRef)(0),a=eJ(),s=(0,u.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let r=t4(e,t);return!(i.current>0)||s.queue.length||Object.keys(r).some(t=>!e.springs[t])?new Promise(n=>{t5(e,r),s.queue.push(()=>{n(t1(e,t))}),a()}):t1(e,t)}}),[]),l=(0,u.useRef)([...s.ctrls]),c=[],d=e1(e)||0;function f(e,r){for(let o=e;o<r;o++){let e=l.current[o]||(l.current[o]=new t0(null,s.flush)),r=n?n(o,e):t[o];r&&(c[o]=function(e){let t=tW(e);return R.und(t.default)&&(t.default=th(t)),t}(r))}}(0,u.useMemo)(()=>{A(l.current.slice(e,d),e=>{e.ref?.delete(e),o?.delete(e),e.stop(!0)}),l.current.length=e,f(d,e)},[e]),(0,u.useMemo)(()=>{f(0,Math.min(d,e))},r);let p=l.current.map((e,t)=>t4(e,c[t])),h=(0,u.useContext)(t9),m=e1(h),v=h!==m&&function(e){for(let t in e)return!0;return!1}(h);eY(()=>{i.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],A(e,e=>e())),A(l.current,(e,t)=>{o?.add(e),v&&e.start({default:h});let r=c[t];if(r){var n;(n=r.ref)&&e.ref!==n&&(e.ref?.delete(e),n.add(e),e.ref=n),e.ref?e.queue.push(r):e.start(r)}})}),eX(()=>()=>{A(s.ctrls,e=>e.stop(!0))});let g=p.map(e=>({...e}));return o?[g,o]:g}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,o]:n}var rr=({container:e,...t})=>{let[r,n]=rt(()=>({width:0,height:0,...t}),[]);return eY(()=>{let t=eG(({width:e,height:t})=>{n.start({width:e,height:t,immediate:0===r.width.get()||0===r.height.get()})},{container:e?.current||void 0});return()=>{A(Object.values(r),e=>e.stop()),t()}},[]),r},rn=class extends tI{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=eg(...t);let r=this._get();e3(this,to(r).create(r))}advance(e){let t=this._get();j(t,this.get())||(e5(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ri(this._active)&&ra(this)}_get(){let e=R.arr(this.source)?this.source.map(ex):L(ex(this.source));return this.calc(...e)}_start(){this.idle&&!ri(this._active)&&(this.idle=!1,A(e8(this),e=>{e.done=!1}),d.skipAnimation?(p.batchedUpdates(()=>this.advance()),ra(this)):Z.start(this))}_attach(){let e=1;A(L(this.source),t=>{ew(t)&&eO(t,this),tF(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){A(L(this.source),e=>{ew(e)&&eT(e,this)}),this._active.clear(),ra(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=L(this.source).reduce((e,t)=>Math.max(e,(tF(t)?t.priority:0)+1),0))}};function ro(e){return!1!==e.idle}function ri(e){return!e.size||Array.from(e).every(ro)}function ra(e){e.idle||(e.idle=!0,A(e8(e),e=>{e.done=!0}),eE(e,{type:"idle",parent:e}))}var rs=(e,...t)=>(eV(),new rn(e,t));d.assign({createStringInterpolator:eI,to:(e,t)=>new rn(e,t)}),Z.advance;var rl=r(56321),ru=/^--/,rc={},rd={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rf=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rp=["Webkit","Ms","Moz","O"];rd=Object.keys(rd).reduce((e,t)=>(rp.forEach(r=>e[rf(r,t)]=e[t]),e),rd);var rh=/^(matrix|translate|scale|rotate|skew)/,rm=/^(translate)/,rv=/^(rotate|skew)/,rg=(e,t)=>R.num(e)&&0!==e?e+t:e,ry=(e,t)=>R.arr(e)?e.every(e=>ry(e,t)):R.num(e)?e===t:parseFloat(e)===t,rb=class extends tt{constructor({x:e,y:t,z:r,...n}){let o=[],i=[];(e||t||r)&&(o.push([e||0,t||0,r||0]),i.push(e=>[`translate3d(${e.map(e=>rg(e,"px")).join(",")})`,ry(e,0)])),F(n,(e,t)=>{if("transform"===t)o.push([e||""]),i.push(e=>[e,""===e]);else if(rh.test(t)){if(delete n[t],R.und(e))return;let r=rm.test(t)?"px":rv.test(t)?"deg":"";o.push(L(e)),i.push("rotate3d"===t?([e,t,n,o])=>[`rotate3d(${e},${t},${n},${rg(o,r)})`,ry(o,0)]:e=>[`${t}(${e.map(e=>rg(e,r)).join(",")})`,ry(e,t.startsWith("scale")?1:0)])}}),o.length&&(n.transform=new rw(o,i)),super(n)}},rw=class extends ek{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return A(this.inputs,(r,n)=>{let o=ex(r[0]),[i,a]=this.transforms[n](R.arr(o)?o:r.map(ex));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){1==e&&A(this.inputs,e=>A(e,e=>ew(e)&&eO(e,this)))}observerRemoved(e){0==e&&A(this.inputs,e=>A(e,e=>ew(e)&&eT(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),eE(this,e)}};d.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:eI,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var rx=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new tt(e),getComponentProps:n=e=>e}={})=>{let o={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=e=>{let t=tl(e)||"Anonymous";return(e=R.str(e)?i[e]||(i[e]=ti(e,o)):e[ts]||(e[ts]=ti(e,o))).displayName=`Animated(${t})`,e};return F(e,(t,r)=>{R.arr(e)&&(r=tl(t)),i[r]=i(t)}),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:n,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:rc[t]||(rc[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==o&&(e.textContent=o),n)if(n.hasOwnProperty(t)){var d;let r=null==(d=n[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||ru.test(t)||rd.hasOwnProperty(t)&&rd[t]?(""+d).trim():d+"px";ru.test(t)?e.style.setProperty(t,r):e.style[t]=r}c.forEach((t,r)=>{e.setAttribute(t,u[r])}),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new rb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}).animated},52795:function(e,t,r){"use strict";r.d(t,{uZ:function(){return i},zk:function(){return o}});var n=r(44194);function o(e,t,r){let[o,i]=(0,n.useState)(e||t),a=(0,n.useRef)(void 0!==e),s=void 0!==e;(0,n.useEffect)(()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let l=s?e:o,u=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(l,e)&&r(e,...t),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((r,...o)=>{let i=e(s?l:r,...o);return(n(i,...t),s)?r:i})):(s||i(e),n(e,...t))},[s,l,r]);return[l,u]}function i(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}},71898:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(15571),o=r(73416);class i extends n.l{constructor(){super(),this.setup=e=>{if(!o.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let a=new i},40225:function(e,t,r){"use strict";function n(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,s,l;let u;let c=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)?void 0:null==(a=n.meta)?void 0:a.fetchMore,f=null==d?void 0:d.pageParam,p=(null==d?void 0:d.direction)==="forward",h=(null==d?void 0:d.direction)==="backward",m=(null==(s=e.state.data)?void 0:s.pages)||[],v=(null==(l=e.state.data)?void 0:l.pageParams)||[],g=v,y=!1,b=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?y=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{y=!0}),e.signal}})},w=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),x=(e,t,r,n)=>(g=n?[t,...g]:[...g,t],n?[r,...e]:[...e,r]),_=(t,r,n,o)=>{if(y)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let i={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};return b(i),Promise.resolve(w(i)).then(e=>x(t,n,e,o))};if(m.length){if(p){let t=void 0!==f,r=t?f:o(e.options,m);u=_(m,t,r)}else if(h){let t=void 0!==f,r=t?f:i(e.options,m);u=_(m,t,r,!0)}else{g=[];let t=void 0===e.options.getNextPageParam;u=!c||!m[0]||c(m[0],0,m)?_([],t,v[0]):Promise.resolve(x([],v[0],m[0]));for(let r=1;r<m.length;r++)u=u.then(n=>{if(!c||!m[r]||c(m[r],r,m)){let i=t?v[r]:o(e.options,n);return _(n,t,i)}return Promise.resolve(x(n,v[r],m[r]))})}}else u=_([]);return u.then(e=>({pages:e,pageParams:g}))}}}}function o(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function i(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function a(e,t){if(e.getNextPageParam&&Array.isArray(t)){let r=o(e,t);return null!=r&&!1!==r}}function s(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){let r=i(e,t);return null!=r&&!1!==r}}r.d(t,{Gm:function(){return n},Qy:function(){return a},ZF:function(){return s}})},77550:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n=console},11365:function(e,t,r){"use strict";r.d(t,{R:function(){return l},m:function(){return s}});var n=r(77550),o=r(41850),i=r(58525),a=r(27569);class s extends i.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||n._,this.observers=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,o,i,s,l,u,c,d,f,p,h,m,v,g,y,b,w;let x="loading"===this.state.status;try{if(!x){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let p=await (()=>{var e;return this.retryer=(0,a.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,p,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,p,this.state.variables,this.state.context)),await (null==(o=(i=this.mutationCache.config).onSettled)?void 0:o.call(i,p,null,this.state.variables,this.state.context,this)),await (null==(s=(l=this.options).onSettled)?void 0:s.call(l,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(e){try{throw await (null==(p=(h=this.mutationCache.config).onError)?void 0:p.call(h,e,this.state.variables,this.state.context,this)),await (null==(m=(v=this.options).onError)?void 0:m.call(v,e,this.state.variables,this.state.context)),await (null==(g=(y=this.mutationCache.config).onSettled)?void 0:g.call(y,void 0,e,this.state.variables,this.state.context,this)),await (null==(b=(w=this.options).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,a.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),o.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},41850:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(73416);let o=function(){let e=[],t=0,r=e=>{e()},o=e=>{e()},i=o=>{t?e.push(o):(0,n.A4)(()=>{r(o)})},a=()=>{let t=e;e=[],t.length&&(0,n.A4)(()=>{o(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{o=e}}}()},26393:function(e,t,r){"use strict";r.d(t,{N:function(){return s}});var n=r(15571),o=r(73416);let i=["online","offline"];class a extends n.l{constructor(){super(),this.setup=e=>{if(!o.sk&&window.addEventListener){let t=()=>e();return i.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{i.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let s=new a},2527:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(73416),o=r(41850),i=r(71898),a=r(15571),s=r(27569);class l extends a.l{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),u(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,n.VS)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let i=this.hasListeners();i&&d(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e);return this.createResult(t,e)}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(n.ZT)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),n.sk||this.currentResult.isStale||!(0,n.PN)(this.options.staleTime))return;let e=(0,n.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!n.sk&&!1!==this.options.enabled&&(0,n.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r;let o=this.currentQuery,i=this.options,a=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,p=e!==o,h=p?e.state:this.currentQueryInitialState,m=p?this.currentResult:this.previousQueryResult,{state:v}=e,{dataUpdatedAt:g,error:y,errorUpdatedAt:b,fetchStatus:w,status:x}=v,_=!1,E=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&u(e,t),a=r&&d(e,o,t,i);(n||a)&&(w=(0,s.Kw)(e.options.networkMode)?"fetching":"paused",g||(x="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!v.dataUpdatedAt&&null!=m&&m.isSuccess&&"error"!==x)r=m.data,g=m.dataUpdatedAt,x=m.status,_=!0;else if(t.select&&void 0!==v.data){if(a&&v.data===(null==l?void 0:l.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(v.data),r=(0,n.oE)(null==a?void 0:a.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}}else r=v.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===x){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==c?void 0:c.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(x="success",r=(0,n.oE)(null==a?void 0:a.data,e,t),E=!0)}this.selectError&&(y=this.selectError,r=this.selectResult,b=Date.now(),x="error");let k="fetching"===w,S="loading"===x,O="error"===x;return{status:x,fetchStatus:w,isLoading:S,isSuccess:"success"===x,isError:O,isInitialLoading:S&&k,data:r,dataUpdatedAt:g,error:y,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>h.dataUpdateCount||v.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!S,isLoadingError:O&&0===v.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:E,isPreviousData:_,isRefetchError:O&&0!==v.dataUpdatedAt,isStale:f(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,n.VS)(r,t))return;this.currentResult=r;let o={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options;if("all"===e||!e&&!this.trackedProps.size)return!0;let r=new Set(null!=e?e:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==t[e]&&r.has(e))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,s.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){o.V.batch(()=>{var t,r,n,o,i,a,s,l;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(o=this.options).onSettled)||n.call(o,this.currentResult.data,null)):e.onError&&(null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function u(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&c(e,t,t.refetchOnMount)}function c(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&f(e,t)}return!1}function d(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return e.isStaleByTime(t.staleTime)}},58525:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(73416);class o{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:n.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},27569:function(e,t,r){"use strict";r.d(t,{DV:function(){return u},Kw:function(){return s},Mz:function(){return c}});var n=r(71898),o=r(26393),i=r(73416);function a(e){return Math.min(1e3*2**e,3e4)}function s(e){return(null!=e?e:"online")!=="online"||o.N.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function u(e){return e instanceof l}function c(e){let t,r,u,c=!1,d=0,f=!1,p=new Promise((e,t)=>{r=e,u=t}),h=()=>!n.j.isFocused()||"always"!==e.networkMode&&!o.N.isOnline(),m=n=>{f||(f=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},v=r=>{f||(f=!0,null==e.onError||e.onError(r),null==t||t(),u(r))},g=()=>new Promise(r=>{t=e=>{let t=f||!h();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,f||null==e.onContinue||e.onContinue()}),y=()=>{let t;if(!f){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{var r,n;if(f)return;let o=null!=(r=e.retry)?r:3,s=null!=(n=e.retryDelay)?n:a,l="function"==typeof s?s(d,t):s,u=!0===o||"number"==typeof o&&d<o||"function"==typeof o&&o(d,t);if(c||!u){v(t);return}d++,null==e.onFail||e.onFail(d,t),(0,i.Gh)(l).then(()=>{if(h())return g()}).then(()=>{c?v(t):y()})})}};return s(e.networkMode)?y():g().then(y),{promise:p,cancel:t=>{f||(v(new l(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},15571:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});class n{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},73416:function(e,t,r){"use strict";r.d(t,{A4:function(){return E},G9:function(){return k},Gh:function(){return _},I6:function(){return c},Kp:function(){return s},PN:function(){return a},Rm:function(){return p},SE:function(){return i},VS:function(){return g},X7:function(){return f},ZT:function(){return o},_v:function(){return l},_x:function(){return d},lV:function(){return u},oE:function(){return S},sk:function(){return n},to:function(){return m},yF:function(){return h}});let n="undefined"==typeof window||"Deno"in window;function o(){}function i(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return x(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function u(e,t,r){return x(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,r){return x(e)?[{...t,queryKey:e},r]:[e||{},t]}function d(e,t){let{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(x(a)){if(n){if(t.queryHash!==p(a,t.options))return!1}else{if(!v(t.queryKey,a))return!1}}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(void 0===o||o===t.state.fetchStatus)&&(!i||!!i(t))}function f(e,t){let{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(x(i)){if(!t.options.mutationKey)return!1;if(r){if(h(t.options.mutationKey)!==h(i))return!1}else{if(!v(t.options.mutationKey,i))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!o||!!o(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function m(e,t){return v(e,t)}function v(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!v(e[r],t[r]))}function g(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(w(r)&&r.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e){return Array.isArray(e)}function _(e){return new Promise(t=>{setTimeout(t,e)})}function E(e){_(0).then(e)}function k(){if("function"==typeof AbortController)return new AbortController}function S(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=y(t)&&y(r);if(n||b(t)&&b(r)){let o=n?t.length:Object.keys(t).length,i=n?r:Object.keys(r),a=i.length,s=n?[]:{},l=0;for(let o=0;o<a;o++){let a=n?o:i[o];s[a]=e(t[a],r[a]),s[a]===t[a]&&l++}return o===a&&l===o?t:s}return r}(e,t):t}},14236:function(e,t,r){"use strict";r.d(t,{NL:function(){return s},aH:function(){return l}});var n=r(44194);let o=n.createContext(void 0),i=n.createContext(!1);function a(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o)}let s=({context:e}={})=>{let t=n.useContext(a(e,n.useContext(i)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:r,contextSharing:o=!1})=>{n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let s=a(r,o);return n.createElement(i.Provider,{value:!r&&o},n.createElement(s.Provider,{value:e},t))}},35424:function(e,t,r){"use strict";let n;r.d(t,{r:function(){return w}});var o=r(44194),i=r(27635),a=r(41850);let s=o.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),l=()=>o.useContext(s);var u=r(14236);let c=o.createContext(!1),d=()=>o.useContext(c);c.Provider;var f=r(90306);let p=(e,t)=>{(e.suspense||e.useErrorBoundary)&&!t.isReset()&&(e.retryOnMount=!1)},h=e=>{o.useEffect(()=>{e.clearReset()},[e])},m=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,f.L)(r,[e.error,n]),v=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},g=(e,t)=>e.isLoading&&e.isFetching&&!t,y=(e,t,r)=>(null==e?void 0:e.suspense)&&g(t,r),b=(e,t,r)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{r.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)});function w(e,t){let r=(0,u.NL)({context:e.context}),n=d(),s=l(),c=r.defaultQueryOptions(e);c._optimisticResults=n?"isRestoring":"optimistic",c.onError&&(c.onError=a.V.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=a.V.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=a.V.batchCalls(c.onSettled)),v(c),p(c,s),h(s);let[f]=o.useState(()=>new t(r,c)),g=f.getOptimisticResult(c);if((0,i.$)(o.useCallback(e=>{let t=n?()=>void 0:f.subscribe(a.V.batchCalls(e));return f.updateResult(),t},[f,n]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),o.useEffect(()=>{f.setOptions(c,{listeners:!1})},[c,f]),y(c,g,n))throw b(c,f,s);if(m({result:g,errorResetBoundary:s,useErrorBoundary:c.useErrorBoundary,query:f.getCurrentQuery()}))throw g.error;return c.notifyOnChangeProps?g:f.trackResult(g)}},83975:function(e,t,r){"use strict";r.d(t,{N:function(){return l}});var n=r(73416),o=r(2527),i=r(40225);class a extends o.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,i.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,i.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,o,a,s,l;let{state:u}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:f}=c,p=d&&(null==(r=u.fetchMeta)?void 0:null==(n=r.fetchMore)?void 0:n.direction)==="forward",h=d&&(null==(o=u.fetchMeta)?void 0:null==(a=o.fetchMore)?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.Qy)(t,null==(s=u.data)?void 0:s.pages),hasPreviousPage:(0,i.ZF)(t,null==(l=u.data)?void 0:l.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}var s=r(35424);function l(e,t,r){let o=(0,n._v)(e,t,r);return(0,s.r)(o,a)}},63567:function(e,t,r){"use strict";r.d(t,{D:function(){return f}});var n=r(44194),o=r(27635),i=r(73416),a=r(11365),s=r(41850),l=r(15571);class u extends l.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.VS)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,a.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){s.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,o,i,a,s,l;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(o=this.mutateOptions).onSettled)||n.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var c=r(14236),d=r(90306);function f(e,t,r){let a=(0,i.lV)(e,t,r),l=(0,c.NL)({context:a.context}),[f]=n.useState(()=>new u(l,a));n.useEffect(()=>{f.setOptions(a)},[f,a]);let h=(0,o.$)(n.useCallback(e=>f.subscribe(s.V.batchCalls(e)),[f]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),m=n.useCallback((e,t)=>{f.mutate(e,t).catch(p)},[f]);if(h.error&&(0,d.L)(f.options.useErrorBoundary,[h.error]))throw h.error;return{...h,mutate:m,mutateAsync:h.mutate}}function p(){}},81599:function(e,t,r){"use strict";r.d(t,{a:function(){return a}});var n=r(73416),o=r(2527),i=r(35424);function a(e,t,r){let a=(0,n._v)(e,t,r);return(0,i.r)(a,o.z)}},27635:function(e,t,r){"use strict";r.d(t,{$:function(){return n}});let n=r(48218).useSyncExternalStore},90306:function(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}r.d(t,{L:function(){return n}})},64649:function(e,t,r){"use strict";let n,o,i;function a(e,t){return function(){return e.apply(t,arguments)}}r.d(t,{default:function(){return eL}});let{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,u=(n=Object.create(null),e=>{let t=s.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),c=e=>(e=e.toLowerCase(),t=>u(t)===e),d=e=>t=>typeof t===e,{isArray:f}=Array,p=d("undefined"),h=c("ArrayBuffer"),m=d("string"),v=d("function"),g=d("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==u(e))return!1;let t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},w=c("Date"),x=c("File"),_=c("Blob"),E=c("FileList"),k=c("URLSearchParams");function S(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e){if("object"!=typeof e&&(e=[e]),f(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}}function O(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!p(e)&&e!==T,N=(o="undefined"!=typeof Uint8Array&&l(Uint8Array),e=>o&&e instanceof o),D=c("HTMLFormElement"),P=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),R=c("RegExp"),j=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};S(r,(r,o)=>{!1!==t(r,o,e)&&(n[o]=r)}),Object.defineProperties(e,n)},A="abcdefghijklmnopqrstuvwxyz",F="0123456789",L={DIGIT:F,ALPHA:A,ALPHA_DIGIT:A+A.toUpperCase()+F},I=c("AsyncFunction");var M={isArray:f,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=u(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer)},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isUndefined:p,isDate:w,isFile:x,isBlob:_,isRegExp:R,isFunction:v,isStream:e=>y(e)&&v(e.pipe),isURLSearchParams:k,isTypedArray:N,isFileList:E,forEach:S,merge:function e(){let{caseless:t}=C(this)&&this||{},r={},n=(n,o)=>{let i=t&&O(r,o)||o;b(r[i])&&b(n)?r[i]=e(r[i],n):b(n)?r[i]=e({},n):f(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&S(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(S(t,(t,n)=>{r&&v(t)?e[n]=a(t,r):e[n]=t},{allOwnKeys:n}),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&l(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!g(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:D,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,r)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(v(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(f(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:O,global:T,isContextDefined:C,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let o=f(e)?[]:{};return S(e,(e,t)=>{let i=r(e,n+1);p(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:I,isThenable:e=>e&&(y(e)||v(e))&&v(e.then)&&v(e.catch)};function q(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}M.inherits(q,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:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let z=q.prototype,V={};["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=>{V[e]={value:e}}),Object.defineProperties(q,V),Object.defineProperty(z,"isAxiosError",{value:!0}),q.from=(e,t,r,n,o,i)=>{let a=Object.create(z);return M.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),q.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var U=r(57861).lW;function $(e){return M.isPlainObject(e)||M.isArray(e)}function H(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function K(e,t,r){return e?e.concat(t).map(function(e,t){return e=H(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let B=M.toFlatObject(M,{},null,function(e){return/^is[A-Z]/.test(e)});var W=function(e,t,r){if(!M.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!M.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(M.isDate(e))return e.toISOString();if(!s&&M.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(e)||M.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):U.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e){if(M.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(M.isArray(e)&&(u=e,M.isArray(u)&&!u.some($))||(M.isFileList(e)||M.endsWith(r,"[]"))&&(s=M.toArray(e)))return r=H(r),s.forEach(function(e,n){M.isUndefined(e)||null===e||t.append(!0===a?K([r],n,i):null===a?r:r+"[]",l(e))}),!1}}return!!$(e)||(t.append(K(o,r,i),l(e)),!1)}let c=[],d=Object.assign(B,{defaultVisitor:u,convertValue:l,isVisitable:$});if(!M.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!M.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),M.forEach(r,function(r,i){!0===(!(M.isUndefined(r)||null===r)&&o.call(t,r,M.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t};function Z(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function G(e,t){this._pairs=[],e&&W(e,this,t)}let Y=G.prototype;function Q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J(e,t,r){let n;if(!t)return e;let o=r&&r.encode||Q,i=r&&r.serialize;if(n=i?i(t,r):M.isURLSearchParams(t)?t.toString():new G(t,r).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}Y.append=function(e,t){this._pairs.push([e,t])},Y.toString=function(e){let t=e?function(t){return e.call(this,t,Z)}:Z;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class X{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){M.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},et={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:G,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(i=navigator.product)&&"NativeScript"!==i&&"NS"!==i)&&"undefined"!=typeof window&&"undefined"!=typeof document,isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},er=function(e){if(M.isFormData(e)&&M.isFunction(e.entries)){let t={};return M.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++],a=Number.isFinite(+i),s=o>=t.length;return(i=!i&&M.isArray(n)?n.length:i,s)?M.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r:(n[i]&&M.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&M.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!a}(M.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let en={"Content-Type":void 0},eo={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=M.isObject(e);if(i&&M.isHTMLForm(e)&&(e=new FormData(e)),M.isFormData(e))return o&&o?JSON.stringify(er(e)):e;if(M.isArrayBuffer(e)||M.isBuffer(e)||M.isStream(e)||M.isFile(e)||M.isBlob(e))return e;if(M.isArrayBufferView(e))return e.buffer;if(M.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,W(a,new et.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return et.isNode&&M.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},s))).toString()}if((r=M.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return W(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(M.isString(e))try{return(0,JSON.parse)(e),M.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eo.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&M.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw q.from(e,q.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:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};M.forEach(["delete","get","head"],function(e){eo.headers[e]={}}),M.forEach(["post","put","patch"],function(e){eo.headers[e]=M.merge(en)});let ei=M.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"]);var ea=e=>{let t,r,n;let o={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&ei[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)}),o};let es=Symbol("internals");function el(e){return e&&String(e).trim().toLowerCase()}function eu(e){return!1===e||null==e?e:M.isArray(e)?e.map(eu):String(e)}let ec=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ed(e,t,r,n,o){if(M.isFunction(n))return n.call(this,t,r);if(o&&(t=r),M.isString(t)){if(M.isString(n))return -1!==t.indexOf(n);if(M.isRegExp(n))return n.test(t)}}class ef{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=el(t);if(!o)throw Error("header name must be a non-empty string");let i=M.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=eu(e))}let i=(e,t)=>M.forEach(e,(e,r)=>o(e,r,t));return M.isPlainObject(e)||e instanceof this.constructor?i(e,t):M.isString(e)&&(e=e.trim())&&!ec(e)?i(ea(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=el(e)){let r=M.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(M.isFunction(t))return t.call(this,e,r);if(M.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=el(e)){let r=M.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ed(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=el(e)){let o=M.findKey(r,e);o&&(!t||ed(r,r[o],o,t))&&(delete r[o],n=!0)}}return M.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||ed(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return M.forEach(this,(n,o)=>{let i=M.findKey(r,o);if(i){t[i]=eu(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=eu(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return M.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&M.isArray(r)?r.join(", "):r)}),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){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[es]=this[es]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=el(e);t[n]||(!function(e,t){let r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return M.isArray(e)?e.forEach(n):n(e),this}}function ep(e,t){let r=this||eo,n=t||r,o=ef.from(n.headers),i=n.data;return M.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eh(e){return!!(e&&e.__CANCEL__)}function em(e,t,r){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,r),this.name="CanceledError"}ef.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),M.freezeMethods(ef.prototype),M.freezeMethods(ef),M.inherits(em,q,{__CANCEL__:!0});var ev=et.isStandardBrowserEnv?{write:function(e,t,r,n,o,i){let a=[];a.push(e+"="+encodeURIComponent(t)),M.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),M.isString(n)&&a.push("path="+n),M.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function eg(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e:t}var ey=et.isStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=M.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},eb=function(e,t){let r;let n=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=o[a];r||(r=l),n[i]=s,o[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}};function ew(e,t){let r=0,n=eb(50,250);return o=>{let i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,l=n(s);r=i;let u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}let ex={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,o=e.data,i=ef.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}M.isFormData(o)&&(et.isStandardBrowserEnv||et.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}let u=eg(e.baseURL,e.url);function c(){if(!l)return;let n=ef.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(e){t(e),s()},function(e){r(e),s()},{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),J(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(r(new q("Request aborted",q.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new q("Network Error",q.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,l)),l=null},et.isStandardBrowserEnv){let t=(e.withCredentials||ey(u))&&e.xsrfCookieName&&ev.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===o&&i.setContentType(null),"setRequestHeader"in l&&M.forEach(i.toJSON(),function(e,t){l.setRequestHeader(t,e)}),M.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",ew(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",ew(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{l&&(r(!t||t.type?new em(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let d=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);if(d&&-1===et.protocols.indexOf(d)){r(new q("Unsupported protocol "+d+":",q.ERR_BAD_REQUEST,e));return}l.send(o||null)})}};M.forEach(ex,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});var e_=e=>{let t,r;let{length:n}=e=M.isArray(e)?e:[e];for(let o=0;o<n&&(t=e[o],!(r=M.isString(t)?ex[t.toLowerCase()]:t));o++);if(!r){if(!1===r)throw new q(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT");throw Error(M.hasOwnProp(ex,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`)}if(!M.isFunction(r))throw TypeError("adapter is not a function");return r};function eE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new em(null,e)}function ek(e){return eE(e),e.headers=ef.from(e.headers),e.data=ep.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e_(e.adapter||eo.adapter)(e).then(function(t){return eE(e),t.data=ep.call(e,e.transformResponse,t),t.headers=ef.from(t.headers),t},function(t){return!eh(t)&&(eE(e),t&&t.response&&(t.response.data=ep.call(e,e.transformResponse,t.response),t.response.headers=ef.from(t.response.headers))),Promise.reject(t)})}let eS=e=>e instanceof ef?e.toJSON():e;function eO(e,t){t=t||{};let r={};function n(e,t,r){return M.isPlainObject(e)&&M.isPlainObject(t)?M.merge.call({caseless:r},e,t):M.isPlainObject(t)?M.merge({},t):M.isArray(t)?t.slice():t}function o(e,t,r){return M.isUndefined(t)?M.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!M.isUndefined(t))return n(void 0,t)}function a(e,t){return M.isUndefined(t)?M.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eS(e),eS(t),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(n){let i=l[n]||o,a=i(e[n],t[n],n);M.isUndefined(a)&&i!==s||(r[n]=a)}),r}let eT="1.4.0",eC={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eC[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let eN={};eC.transitional=function(e,t,r){function n(e,t){return"[Axios v"+eT+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new q(n(o," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!eN[o]&&(eN[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var eD={assertOptions:function(e,t,r){if("object"!=typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new q("option "+i+" must be "+r,q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}},validators:eC};let eP=eD.validators;class eR{constructor(e){this.defaults=e,this.interceptors={request:new X,response:new X}}request(e,t){let r,n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:a,headers:s}=t=eO(this.defaults,t);void 0!==i&&eD.assertOptions(i,{silentJSONParsing:eP.transitional(eP.boolean),forcedJSONParsing:eP.transitional(eP.boolean),clarifyTimeoutError:eP.transitional(eP.boolean)},!1),null!=a&&(M.isFunction(a)?t.paramsSerializer={serialize:a}:eD.assertOptions(a,{encode:eP.function,serialize:eP.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(r=s&&M.merge(s.common,s[t.method]))&&M.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=ef.concat(r,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[ek.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),o=e.length,n=Promise.resolve(t);d<o;)n=n.then(e[d++],e[d++]);return n}o=l.length;let f=t;for(d=0;d<o;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=ek.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,o=c.length;d<o;)n=n.then(c[d++],c[d++]);return n}getUri(e){return J(eg((e=eO(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}M.forEach(["delete","get","head","options"],function(e){eR.prototype[e]=function(t,r){return this.request(eO(r||{},{method:e,url:t,data:(r||{}).data}))}}),M.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(eO(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}eR.prototype[e]=t(),eR.prototype[e+"Form"]=t(!0)});class ej{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new em(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new ej(function(t){e=t}),cancel:e}}}let eA={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(eA).forEach(([e,t])=>{eA[t]=e});let eF=function e(t){let r=new eR(t),n=a(eR.prototype.request,r);return M.extend(n,eR.prototype,r,{allOwnKeys:!0}),M.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eO(t,r))},n}(eo);eF.Axios=eR,eF.CanceledError=em,eF.CancelToken=ej,eF.isCancel=eh,eF.VERSION=eT,eF.toFormData=W,eF.AxiosError=q,eF.Cancel=eF.CanceledError,eF.all=function(e){return Promise.all(e)},eF.spread=function(e){return function(t){return e.apply(null,t)}},eF.isAxiosError=function(e){return M.isObject(e)&&!0===e.isAxiosError},eF.mergeConfig=eO,eF.AxiosHeaders=ef,eF.formToJSON=e=>er(M.isHTMLForm(e)?new FormData(e):e),eF.HttpStatusCode=eA,eF.default=eF;var eL=eF},31706:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(14517);let o=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=n.Z,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let i=o(t)||o(n);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,l,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},28934:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}}),t.Z=n},45222:function(e,t,r){"use strict";r.d(t,{Dv:function(){return c},KO:function(){return f},b9:function(){return d},oR:function(){return a},zt:function(){return s}});var n=r(44194),o=r(63010);let i=(0,n.createContext)(void 0),a=e=>{let t=(0,n.useContext)(i);return(null==e?void 0:e.store)||t||(0,o.K7)()},s=({children:e,store:t})=>{let r=(0,n.useRef)();return t||r.current||(r.current=(0,o.MT)()),(0,n.createElement)(i.Provider,{value:t||r.current},e)},l=e=>"function"==typeof(null==e?void 0:e.then),u=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function c(e,t){let r=a(t),[[o,i,s],c]=(0,n.useReducer)(t=>{let n=r.get(e);return Object.is(t[0],n)&&t[1]===r&&t[2]===e?t:[n,r,e]},void 0,()=>[r.get(e),r,e]),d=o;(i!==r||s!==e)&&(c(),d=r.get(e));let f=null==t?void 0:t.delay;return(0,n.useEffect)(()=>{let t=r.sub(e,()=>{if("number"==typeof f){setTimeout(c,f);return}c()});return c(),t},[r,e,f]),(0,n.useDebugValue)(d),l(d)?u(d):d}function d(e,t){let r=a(t);return(0,n.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return r.set(e,...t)},[r,e])}function f(e,t){return[c(e,t),d(e,t)]}},63010:function(e,t,r){"use strict";let n;r.d(t,{K7:function(){return w},MT:function(){return b},cn:function(){return i}});let o=0;function i(e,t){let r=`atom${++o}`,n={toString:()=>r};return"function"==typeof e?n.read=e:(n.init=e,n.read=e=>e(n),n.write=(e,t,r)=>t(n,"function"==typeof r?r(e(n)):r)),t&&(n.write=t),n}let a=e=>"init"in e,s=e=>!!e.write,l=new WeakMap,u=(e,t)=>{l.set(e,t),e.catch(()=>{}).finally(()=>l.delete(e))},c=(e,t)=>{let r=l.get(e);r&&(l.delete(e),r(t))},d=(e,t)=>{e.status="fulfilled",e.value=t},f=(e,t)=>{e.status="rejected",e.reason=t},p=e=>"function"==typeof(null==e?void 0:e.then),h=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),m=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),v=e=>"v"in e&&e.v instanceof Promise,g=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,y=e=>{if("e"in e)throw e.e;return e.v},b=()=>{let e,t,r;let n=new WeakMap,o=new WeakMap,i=new Map;e=new Set,t=new Set,r=new Set;let l=e=>n.get(e),b=(e,t)=>{Object.freeze(t);let r=n.get(e);if(n.set(e,t),i.has(e)||i.set(e,r),r&&v(r)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);c(r.v,e)}},w=(e,t,r)=>{let n=new Map,o=!1;r.forEach((r,i)=>{r||i!==e||(r=t),r?(n.set(i,r),t.d.get(i)!==r&&(o=!0)):console.warn("[Bug] atom state not found")}),(o||t.d.size!==n.size)&&(t.d=n)},x=(e,t,r)=>{let n=l(e),o={d:(null==n?void 0:n.d)||new Map,v:t};if(r&&w(e,o,r),n&&h(n,o)&&n.d===o.d)return n;if(n&&v(n)&&v(o)&&g(n,o)){if(n.d===o.d)return n;o.v=n.v}return b(e,o),o},_=(e,t,r,n)=>{if(p(t)){let o;let i=new Promise((n,a)=>{let s=!1;t.then(t=>{if(!s){s=!0;let o=l(e),a=x(e,i,r);d(i,t),n(t),(null==o?void 0:o.d)!==a.d&&j(e,a,null==o?void 0:o.d)}},t=>{if(!s){s=!0;let n=l(e),o=x(e,i,r);f(i,t),a(t),(null==n?void 0:n.d)!==o.d&&j(e,o,null==n?void 0:n.d)}}),o=e=>{s||(s=!0,e.then(e=>d(i,e),e=>f(i,e)),n(e))}});return i.orig=t,i.status="pending",u(i,e=>{e&&o(e),null==n||n()}),x(e,i,r)}return x(e,t,r)},E=(e,t,r)=>{let n=l(e),o={d:(null==n?void 0:n.d)||new Map,e:t};return(r&&w(e,o,r),n&&m(n,o)&&n.d===o.d)?n:(b(e,o),o)},k=e=>{let t,r;let n=l(e);if(n&&(n.d.forEach((t,r)=>{r===e||o.has(r)||k(r)}),Array.from(n.d).every(([t,r])=>{let n=l(t);return t===e||n===r||n&&!v(n)&&h(n,r)})))return n;let i=new Map,u=!0;try{let n=e.read(t=>{if(t===e){let e=l(t);if(e)return i.set(t,e),y(e);if(a(t))return i.set(t,void 0),t.init;throw Error("no atom init")}let r=k(t);return i.set(t,r),y(r)},{get signal(){return t||(t=new AbortController),t.signal},get setSelf(){return s(e)||console.warn("setSelf function cannot be used with read-only atom"),!r&&s(e)&&(r=(...t)=>{if(u&&console.warn("setSelf function cannot be called in sync"),!u)return D(e,...t)}),r}});return _(e,n,i,()=>null==t?void 0:t.abort())}catch(t){return E(e,t,i)}finally{u=!1}},S=e=>{let t=o.get(e);return t||(t=P(e)),t},O=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),T=e=>{let t=o.get(e);t&&O(e,t)&&R(e)},C=e=>{let t=new Map,r=new WeakMap,n=e=>{let i=o.get(e);null==i||i.t.forEach(o=>{o!==e&&(t.set(o,(t.get(o)||new Set).add(e)),r.set(o,(r.get(o)||0)+1),n(o))})};n(e);let i=e=>{let n=o.get(e);null==n||n.t.forEach(n=>{var o;if(n!==e){let e=r.get(n);if(e&&r.set(n,--e),!e){let e=!!(null==(o=t.get(n))?void 0:o.size);if(e){let t=l(n),r=k(n);e=!t||!h(t,r)}e||t.forEach(e=>e.delete(n))}i(n)}})};i(e)},N=(e,...r)=>{let n=!0,o=e.write(e=>y(k(e)),(r,...o)=>{let i;if(r===e){if(!a(r))throw Error("atom not writable");let e=l(r),t=_(r,o[0]);e&&h(e,t)||C(r)}else i=N(r,...o);if(!n){let e=A();t.forEach(t=>t({type:"async-write",flushed:e}))}return i},...r);return n=!1,o},D=(e,...r)=>{let n=N(e,...r),o=A();return t.forEach(e=>e({type:"write",flushed:o})),n},P=(e,t)=>{let n={t:new Set(t&&[t]),l:new Set};if(o.set(e,n),r.add(e),k(e).d.forEach((t,r)=>{let n=o.get(r);n?n.t.add(e):r!==e&&P(r,e)}),k(e),s(e)&&e.onMount){let t=e.onMount((...t)=>D(e,...t));t&&(n.u=t)}return n},R=e=>{var t;let n=null==(t=o.get(e))?void 0:t.u;n&&n(),o.delete(e),r.delete(e);let i=l(e);i?(v(i)&&c(i.v),i.d.forEach((t,r)=>{if(r!==e){let t=o.get(r);t&&(t.t.delete(e),O(r,t)&&R(r))}})):console.warn("[Bug] could not find atom state to unmount",e)},j=(e,t,r)=>{let n=new Set(t.d.keys());null==r||r.forEach((t,r)=>{if(n.has(r)){n.delete(r);return}let i=o.get(r);i&&(i.t.delete(e),O(r,i)&&R(r))}),n.forEach(t=>{let r=o.get(t);r?r.t.add(e):o.has(e)&&P(t,e)})},A=()=>{let t;for(t=new Set;i.size;){let e=Array.from(i);i.clear(),e.forEach(([e,r])=>{let n=l(e);if(n){n.d!==(null==r?void 0:r.d)&&j(e,n,null==r?void 0:r.d);let i=o.get(e);i&&!(r&&!v(r)&&(h(r,n)||m(r,n)))&&(i.l.forEach(e=>e()),t.add(e))}else console.warn("[Bug] no atom state to flush")})}return e.forEach(e=>e("state")),t};return{get:e=>y(k(e)),set:D,sub:(r,n)=>{let o=S(r),i=A(),a=o.l;return a.add(n),e.forEach(e=>e("sub")),t.forEach(e=>e({type:"sub",flushed:i})),()=>{a.delete(n),T(r),e.forEach(e=>e("unsub")),t.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:(r,n)=>2!==n?(console.warn("The current StoreListener revision is 2. The older ones are deprecated."),e.add(r),()=>{e.delete(r)}):(t.add(r),()=>{t.delete(r)}),dev_get_mounted_atoms:()=>r.values(),dev_get_atom_state:e=>n.get(e),dev_get_mounted:e=>o.get(e),dev_restore_atoms:e=>{for(let[t,r]of e)a(t)&&(_(t,r),C(t));let r=A();t.forEach(e=>e({type:"restore",flushed:r}))}}},w=()=>(n||(n=b()),n)},4766:function(e,t,r){"use strict";r.d(t,{ou:function(){return rN},nL:function(){return tM}});class n extends Error{}class o extends n{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class i extends n{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class a extends n{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class s extends n{}class l extends n{constructor(e){super(`Invalid unit ${e}`)}}class u extends n{}class c extends n{constructor(){super("Zone is an abstract class")}}let d="numeric",f="short",p="long",h={year:d,month:d,day:d},m={year:d,month:f,day:d},v={year:d,month:f,day:d,weekday:f},g={year:d,month:p,day:d},y={year:d,month:p,day:d,weekday:p},b={hour:d,minute:d},w={hour:d,minute:d,second:d},x={hour:d,minute:d,second:d,timeZoneName:f},_={hour:d,minute:d,second:d,timeZoneName:p},E={hour:d,minute:d,hourCycle:"h23"},k={hour:d,minute:d,second:d,hourCycle:"h23"},S={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:f},O={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:p},T={year:d,month:d,day:d,hour:d,minute:d},C={year:d,month:d,day:d,hour:d,minute:d,second:d},N={year:d,month:f,day:d,hour:d,minute:d},D={year:d,month:f,day:d,hour:d,minute:d,second:d},P={year:d,month:f,day:d,weekday:f,hour:d,minute:d},R={year:d,month:p,day:d,hour:d,minute:d,timeZoneName:f},j={year:d,month:p,day:d,hour:d,minute:d,second:d,timeZoneName:f},A={year:d,month:p,day:d,weekday:p,hour:d,minute:d,timeZoneName:p},F={year:d,month:p,day:d,weekday:p,hour:d,minute:d,second:d,timeZoneName:p};class L{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(e,t){throw new c}formatOffset(e,t){throw new c}offset(e){throw new c}equals(e){throw new c}get isValid(){throw new c}}let I=null;class M extends L{static get instance(){return null===I&&(I=new M),I}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return eD(e,t,r)}formatOffset(e,t){return eA(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let q={},z={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},V={};class U extends L{static create(e){return V[e]||(V[e]=new U(e)),V[e]}static resetCache(){V={},q={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=U.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return eD(e,t,r,this.name)}formatOffset(e,t){return eA(this.offset(e),t)}offset(e){var t;let r=new Date(e);if(isNaN(r))return NaN;let n=(q[t=this.name]||(q[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),q[t]),[o,i,a,s,l,u,c]=n.formatToParts?function(e,t){let r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){let{type:t,value:o}=r[e],i=z[t];"era"===t?n[i]=o:ef(i)||(n[i]=parseInt(o,10))}return n}(n,r):function(e,t){let r=e.format(t).replace(/\u200E/g,""),[,n,o,i,a,s,l,u]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r);return[i,n,o,a,s,l,u]}(n,r);"BC"===s&&(o=-Math.abs(o)+1);let d=eT({year:o,month:i,day:a,hour:24===l?0:l,minute:u,second:c,millisecond:0}),f=+r,p=f%1e3;return(d-(f-=p>=0?p:1e3+p))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let $={},H={};function K(e,t={}){let r=JSON.stringify([e,t]),n=H[r];return n||(n=new Intl.DateTimeFormat(e,t),H[r]=n),n}let B={},W={},Z=null;function G(e,t,r,n,o){let i=e.listingMode(r);return"error"===i?null:"en"===i?n(t):o(t)}class Y{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:n,floor:o,...i}=r;if(!t||Object.keys(i).length>0){let t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){let r=JSON.stringify([e,t]),n=B[r];return n||(n=new Intl.NumberFormat(e,t),B[r]=n),n}(e,t)}}format(e){if(!this.inf)return eb(this.floor?Math.floor(e):eE(e,3),this.padTo);{let t=this.floor?Math.floor(e):e;return this.inf.format(t)}}}class Q{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-(e.offset/60*1),r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&U.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||n,this.dtf=K(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class J{constructor(e,t,r){this.opts={style:"long",...r},!t&&em()&&(this.rtf=function(e,t={}){let{base:r,...n}=t,o=JSON.stringify([e,n]),i=W[o];return i||(i=new Intl.RelativeTimeFormat(e,t),W[o]=i),i}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){let r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${o[e][0]}`;case -1:return r?"yesterday":`last ${o[e][0]}`;case 0:return r?"today":`this ${o[e][0]}`}}let a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=o[e],c=n?l?u[1]:u[2]||u[1]:l?o[e][0]:e;return a?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class X{static fromOpts(e){return X.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,r,n=!1){let o=e||ed.defaultLocale;return new X(o||(n?"en-US":Z||(Z=new Intl.DateTimeFormat().resolvedOptions().locale)),t||ed.defaultNumberingSystem,r||ed.defaultOutputCalendar,o)}static resetCache(){Z=null,H={},B={},W={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r}={}){return X.create(e,t,r)}constructor(e,t,r,n){var o,i,a;let[s,l,u]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=K(e).resolvedOptions(),n=e}catch(i){let o=e.substring(0,r);t=K(o).resolvedOptions(),n=o}let{numberingSystem:o,calendar:i}=t;return[n,o,i]}}(e);this.locale=s,this.numberingSystem=t||l||null,this.outputCalendar=r||u||null,this.intl=(o=this.locale,i=this.numberingSystem,((a=this.outputCalendar)||i)&&(o.includes("-u-")||(o+="-u"),a&&(o+=`-ca-${a}`),i&&(o+=`-nu-${i}`)),o),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?X.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,r=!0){return G(this,e,r,eq,()=>{let r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){let t=[];for(let r=1;r<=12;r++){let n=rN.utc(2016,r,1);t.push(e(n))}return t}(e=>this.extract(e,r,"month"))),this.monthsCache[n][e]})}weekdays(e,t=!1,r=!0){return G(this,e,r,e$,()=>{let r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){let t=[];for(let r=1;r<=7;r++){let n=rN.utc(2016,11,13+r);t.push(e(n))}return t}(e=>this.extract(e,r,"weekday"))),this.weekdaysCache[n][e]})}meridiems(e=!0){return G(this,void 0,e,()=>eH,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[rN.utc(2016,11,13,9),rN.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return G(this,e,t,eZ,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[rN.utc(-40,1,1),rN.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,r){let n=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===r);return n?n.value:null}numberFormatter(e={}){return new Y(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Q(e,this.intl,t)}relFormatter(e={}){return new J(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let r=JSON.stringify([e,t]),n=$[r];return n||(n=new Intl.ListFormat(e,t),$[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ee=null;class et extends L{static get utcInstance(){return null===ee&&(ee=new et(0)),ee}static instance(e){return 0===e?et.utcInstance:new et(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new et(eP(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${eA(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${eA(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return eA(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class er extends L{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function en(e,t){if(ef(e)||null===e)return t;if(e instanceof L)return e;if("string"==typeof e){let r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?M.instance:"utc"===r||"gmt"===r?et.utcInstance:et.parseSpecifier(r)||U.create(e)}return ep(e)?et.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new er(e)}let eo=()=>Date.now(),ei="system",ea=null,es=null,el=null,eu=60,ec;class ed{static get now(){return eo}static set now(e){eo=e}static set defaultZone(e){ei=e}static get defaultZone(){return en(ei,M.instance)}static get defaultLocale(){return ea}static set defaultLocale(e){ea=e}static get defaultNumberingSystem(){return es}static set defaultNumberingSystem(e){es=e}static get defaultOutputCalendar(){return el}static set defaultOutputCalendar(e){el=e}static get twoDigitCutoffYear(){return eu}static set twoDigitCutoffYear(e){eu=e%100}static get throwOnInvalid(){return ec}static set throwOnInvalid(e){ec=e}static resetCaches(){X.resetCache(),U.resetCache()}}function ef(e){return void 0===e}function ep(e){return"number"==typeof e}function eh(e){return"number"==typeof e&&e%1==0}function em(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ev(e,t,r){if(0!==e.length)return e.reduce((e,n)=>{let o=[t(n),n];return e&&r(e[0],o[0])===e[0]?e:o},null)[1]}function eg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ey(e,t,r){return eh(e)&&e>=t&&e<=r}function eb(e,t=2){return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function ew(e){if(!ef(e)&&null!==e&&""!==e)return parseInt(e,10)}function ex(e){if(!ef(e)&&null!==e&&""!==e)return parseFloat(e)}function e_(e){if(!ef(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function eE(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function ek(e){return e%4==0&&(e%100!=0||e%400==0)}function eS(e){return ek(e)?366:365}function eO(e,t){var r;let n=(r=t-1)-12*Math.floor(r/12)+1;return 2===n?ek(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function eT(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function eC(e){let t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function eN(e){return e>99?e:e>ed.twoDigitCutoffYear?1900+e:2e3+e}function eD(e,t,r,n=null){let o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(r,a).formatToParts(o).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function eP(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,o=r<0||Object.is(r,-0)?-n:n;return 60*r+o}function eR(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function ej(e,t){let r={};for(let n in e)if(eg(e,n)){let o=e[n];if(null==o)continue;r[t(n)]=eR(o)}return r}function eA(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${eb(r,2)}:${eb(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${eb(r,2)}${eb(n,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function eF(e){return["hour","minute","second","millisecond"].reduce((t,r)=>(t[r]=e[r],t),{})}let eL=["January","February","March","April","May","June","July","August","September","October","November","December"],eI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eM=["J","F","M","A","M","J","J","A","S","O","N","D"];function eq(e){switch(e){case"narrow":return[...eM];case"short":return[...eI];case"long":return[...eL];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let ez=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],eV=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eU=["M","T","W","T","F","S","S"];function e$(e){switch(e){case"narrow":return[...eU];case"short":return[...eV];case"long":return[...ez];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let eH=["AM","PM"],eK=["Before Christ","Anno Domini"],eB=["BC","AD"],eW=["B","A"];function eZ(e){switch(e){case"narrow":return[...eW];case"short":return[...eB];case"long":return[...eK];default:return null}}function eG(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}let eY={D:h,DD:m,DDD:g,DDDD:y,t:b,tt:w,ttt:x,tttt:_,T:E,TT:k,TTT:S,TTTT:O,f:T,ff:N,fff:R,ffff:A,F:C,FF:D,FFF:j,FFFF:F};class eQ{static create(e,t={}){return new eQ(e,t)}static parseFormat(e){let t=null,r="",n=!1,o=[];for(let i=0;i<e.length;i++){let a=e.charAt(i);"'"===a?(r.length>0&&o.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n?r+=a:a===t?r+=a:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=a,t=a)}return r.length>0&&o.push({literal:n||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(e){return eY[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}formatInterval(e,t={}){return this.loc.dtFormatter(e.start,{...this.opts,...t}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return eb(e,t);let r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){let r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,r)=>this.loc.extract(e,t,r),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>r?eH[e.hour<12?0:1]:o({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,n)=>r?eq(t)[e.month-1]:o(n?{month:t}:{month:t,day:"numeric"},"month"),l=(t,n)=>r?e$(t)[e.weekday-1]:o(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{let r=eQ.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},c=t=>r?eZ(t)[e.year<0?0:1]:o({era:t},"era");return eG(eQ.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return n?o({day:"numeric"},"day"):this.num(e.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(e.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(e.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}})}formatDurationFromString(e,t){let r;let n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=eQ.parseFormat(t),i=o.reduce((e,{literal:t,val:r})=>t?e:e.concat(r),[]);return eG(o,(r=e.shiftTo(...i.map(n).filter(e=>e)),e=>{let t=n(e);return t?this.num(r.get(t),e.length):e}))}}class eJ{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eX=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function e0(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function e1(...e){return t=>e.reduce(([e,r,n],o)=>{let[i,a,s]=o(t,n);return[{...e,...i},a||r,s]},[{},null,1]).slice(0,2)}function e2(e,...t){if(null==e)return[null,null];for(let[r,n]of t){let t=r.exec(e);if(t)return n(t)}return[null,null]}function e4(...e){return(t,r)=>{let n;let o={};for(n=0;n<e.length;n++)o[e[n]]=ew(t[r+n]);return[o,null,r+n]}}let e5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,e3=`(?:${e5.source}?(?:\\[(${eX.source})\\])?)?`,e8=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,e6=RegExp(`${e8.source}${e3}`),e9=RegExp(`(?:T${e6.source})?`),e7=e4("weekYear","weekNumber","weekDay"),te=e4("year","ordinal"),tt=RegExp(`${e8.source} ?(?:${e5.source}|(${eX.source}))?`),tr=RegExp(`(?: ${tt.source})?`);function tn(e,t,r){let n=e[t];return ef(n)?r:ew(n)}function to(e,t){return[{hours:tn(e,t,0),minutes:tn(e,t+1,0),seconds:tn(e,t+2,0),milliseconds:e_(e[t+3])},null,t+4]}function ti(e,t){let r=!e[t]&&!e[t+1],n=eP(e[t+1],e[t+2]);return[{},r?null:et.instance(n),t+3]}function ta(e,t){return[{},e[t]?U.create(e[t]):null,t+1]}let ts=RegExp(`^T?${e8.source}$`),tl=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function tu(e){let[t,r,n,o,i,a,s,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],f=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:f(ex(r)),months:f(ex(n)),weeks:f(ex(o)),days:f(ex(i)),hours:f(ex(a)),minutes:f(ex(s)),seconds:f(ex(l),"-0"===l),milliseconds:f(e_(u),d)}]}let tc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function td(e,t,r,n,o,i,a){let s={year:2===t.length?eN(ew(t)):ew(t),month:eI.indexOf(r)+1,day:ew(n),hour:ew(o),minute:ew(i)};return a&&(s.second=ew(a)),e&&(s.weekday=e.length>3?ez.indexOf(e)+1:eV.indexOf(e)+1),s}let tf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tp(e){let[,t,r,n,o,i,a,s,l,u,c,d]=e;return[td(t,o,n,r,i,a,s),new et(l?tc[l]:u?0:eP(c,d))]}let th=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tm=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function tg(e){let[,t,r,n,o,i,a,s]=e;return[td(t,o,n,r,i,a,s),et.utcInstance]}function ty(e){let[,t,r,n,o,i,a,s]=e;return[td(t,s,r,n,o,i,a),et.utcInstance]}let tb=e0(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,e9),tw=e0(/(\d{4})-?W(\d\d)(?:-?(\d))?/,e9),tx=e0(/(\d{4})-?(\d{3})/,e9),t_=e0(e6),tE=e1(function(e,t){return[{year:tn(e,t),month:tn(e,t+1,1),day:tn(e,t+2,1)},null,t+3]},to,ti,ta),tk=e1(e7,to,ti,ta),tS=e1(te,to,ti,ta),tO=e1(to,ti,ta),tT=e1(to),tC=e0(/(\d{4})-(\d\d)-(\d\d)/,tr),tN=e0(tt),tD=e1(to,ti,ta),tP={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tR={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...tP},tj={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...tP},tA=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tF=tA.slice(0).reverse();function tL(e,t,r=!1){return new tM({values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function tI(e,t,r,n,o){let i=e[o][r],a=t[r]/i,s=Math.sign(a)!==Math.sign(n[o])&&0!==n[o]&&1>=Math.abs(a)?a<0?Math.floor(a):Math.ceil(a):Math.trunc(a);n[o]+=s,t[r]-=s*i}class tM{constructor(e){let t="longterm"===e.conversionAccuracy,r=t?tj:tR;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||X.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return tM.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new tM({values:ej(e,tM.normalizeUnit),loc:X.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ep(e))return tM.fromMillis(e);if(tM.isDuration(e))return e;if("object"==typeof e)return tM.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[r]=e2(e,[tl,tu]);return r?tM.fromObject(r,t):tM.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[r]=e2(e,[ts,tT]);return r?tM.fromObject(r,t):tM.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");let r=e instanceof eJ?e:new eJ(e,t);if(!ed.throwOnInvalid)return new tM({invalid:r});throw new a(r)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new l(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?eQ.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){let t=tA.map(t=>{let r=this.values[t];return ef(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eE(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};let r=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));let o=r.toFormat(n);return e.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=tM.fromDurationLike(e),r={};for(let e of tA)(eg(t.values,e)||eg(this.values,e))&&(r[e]=t.get(e)+this.get(e));return tL(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let t=tM.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=eR(e(this.values[r],r));return tL(this,{values:t},!0)}get(e){return this[tM.normalizeUnit(e)]}set(e){return this.isValid?tL(this,{values:{...this.values,...ej(e,tM.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return tL(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){var e;if(!this.isValid)return this;let t=this.toObject();return e=this.matrix,tF.reduce((r,n)=>ef(t[n])?r:(r&&tI(e,t,r,t,n),n),null),tL(this,{values:t},!0)}rescale(){return this.isValid?tL(this,{values:function(e){let t={};for(let[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>tM.normalizeUnit(e));let r={},n={},o=this.toObject();for(let i of tA)if(e.indexOf(i)>=0){t=i;let e=0;for(let t in n)e+=this.matrix[t][i]*n[t],n[t]=0;ep(o[i])&&(e+=o[i]);let a=Math.trunc(e);for(let t in r[i]=a,n[i]=(1e3*e-1e3*a)/1e3,o)tA.indexOf(t)>tA.indexOf(i)&&tI(this.matrix,o,t,r,i)}else ep(o[i])&&(n[i]=o[i]);for(let e in n)0!==n[e]&&(r[t]+=e===t?n[e]:n[e]/this.matrix[t][e]);return tL(this,{values:r},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return tL(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let n of tA){var t,r;if(t=this.values[n],r=e.values[n],void 0===t||0===t?void 0!==r&&0!==r:t!==r)return!1}return!0}}let tq="Invalid Interval";class tz{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");let r=e instanceof eJ?e:new eJ(e,t);if(!ed.throwOnInvalid)return new tz({invalid:r});throw new i(r)}static fromDateTimes(e,t){let r=rD(e),n=rD(t),o=r&&r.isValid?n&&n.isValid?n<r?tz.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${n.toISO()}`):null:tz.invalid("missing or invalid end"):tz.invalid("missing or invalid start");return null==o?new tz({start:r,end:n}):o}static after(e,t){let r=tM.fromDurationLike(t),n=rD(e);return tz.fromDateTimes(n,n.plus(r))}static before(e,t){let r=tM.fromDurationLike(t),n=rD(e);return tz.fromDateTimes(n.minus(r),n)}static fromISO(e,t){let[r,n]=(e||"").split("/",2);if(r&&n){let e,o,i,a;try{o=(e=rN.fromISO(r,t)).isValid}catch(e){o=!1}try{a=(i=rN.fromISO(n,t)).isValid}catch(e){a=!1}if(o&&a)return tz.fromDateTimes(e,i);if(o){let r=tM.fromISO(n,t);if(r.isValid)return tz.after(e,r)}else if(a){let e=tM.fromISO(r,t);if(e.isValid)return tz.before(i,e)}}return tz.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;let t=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(t,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?tz.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(rD).filter(e=>this.contains(e)).sort(),r=[],{s:n}=this,o=0;for(;n<this.e;){let e=t[o]||this.e,i=+e>+this.e?this.e:e;r.push(tz.fromDateTimes(n,i)),n=i,o+=1}return r}splitBy(e){let t=tM.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:r}=this,n=1,o,i=[];for(;r<this.e;){let e=this.start.plus(t.mapUnits(e=>e*n));o=+e>+this.e?this.e:e,i.push(tz.fromDateTimes(r,o)),r=o,n+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:tz.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return tz.fromDateTimes(t,r)}static merge(e){let[t,r]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0,n=[],o=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...o).sort((e,t)=>e.time-t.time))1===(r+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&n.push(tz.fromDateTimes(t,e.time)),t=null);return tz.merge(n)}difference(...e){return tz.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:tq}toLocaleString(e=h,t={}){return this.isValid?eQ.create(this.s.loc.clone(t),e).formatInterval(this):tq}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:tq}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:tq}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:tq}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:tq}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):tM.invalid(this.invalidReason)}mapEndpoints(e){return tz.fromDateTimes(e(this.s),e(this.e))}}class tV{static hasDST(e=ed.defaultZone){let t=rN.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return U.isValidZone(e)}static normalizeZone(e){return en(e,ed.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||X.create(t,r,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||X.create(t,r,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||X.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||X.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return X.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return X.create(t,null,"gregory").eras(e)}static features(){return{relative:em()}}}function tU(e,t){let r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(tM.fromMillis(n).as("days"))}let t$={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},tH={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},tK=t$.hanidec.replace(/[\[|\]]/g,"").split("");function tB({numberingSystem:e},t=""){return RegExp(`${t$[e||"latn"]}${t}`)}function tW(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(-1!==e[r].search(t$.hanidec))t+=tK.indexOf(e[r]);else for(let e in tH){let[r,o]=tH[e];n>=r&&n<=o&&(t+=n-r)}}return parseInt(t,10)}(e))}}let tZ=String.fromCharCode(160),tG=`[ ${tZ}]`,tY=RegExp(tG,"g");function tQ(e){return e.replace(/\./g,"\\.?").replace(tY,tG)}function tJ(e){return e.replace(/\./g,"").replace(tY," ").toLowerCase()}function tX(e,t){return null===e?null:{regex:RegExp(e.map(tQ).join("|")),deser:([r])=>e.findIndex(e=>tJ(r)===tJ(e))+t}}function t0(e,t){return{regex:e,deser:([,e,t])=>eP(e,t),groups:t}}function t1(e){return{regex:e,deser:([e])=>e}}let t2={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},t4=null;function t5(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let r=t8(eQ.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r})(e,t)))}function t3(e,t,r){let n=t5(eQ.parseFormat(r),e),o=n.map(t=>(function(e,t){let r=tB(t),n=tB(t,"{2}"),o=tB(t,"{3}"),i=tB(t,"{4}"),a=tB(t,"{6}"),s=tB(t,"{1,2}"),l=tB(t,"{1,3}"),u=tB(t,"{1,6}"),c=tB(t,"{1,9}"),d=tB(t,"{2,4}"),f=tB(t,"{4,6}"),p=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),h=(h=>{if(e.literal)return p(h);switch(h.val){case"G":return tX(t.eras("short",!1),0);case"GG":return tX(t.eras("long",!1),0);case"y":return tW(u);case"yy":case"kk":return tW(d,eN);case"yyyy":case"kkkk":return tW(i);case"yyyyy":return tW(f);case"yyyyyy":return tW(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return tW(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return tW(n);case"MMM":return tX(t.months("short",!0,!1),1);case"MMMM":return tX(t.months("long",!0,!1),1);case"LLL":return tX(t.months("short",!1,!1),1);case"LLLL":return tX(t.months("long",!1,!1),1);case"o":case"S":return tW(l);case"ooo":case"SSS":return tW(o);case"u":return t1(c);case"uu":return t1(s);case"uuu":case"E":case"c":return tW(r);case"a":return tX(t.meridiems(),0);case"EEE":return tX(t.weekdays("short",!1,!1),1);case"EEEE":return tX(t.weekdays("long",!1,!1),1);case"ccc":return tX(t.weekdays("short",!0,!1),1);case"cccc":return tX(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return t0(RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return t0(RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return t1(/[a-z_+-/]{1,256}?/i);case" ":return t1(/[^\S\n\r]/);default:return p(h)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return h.token=e,h})(t,e)),i=o.find(e=>e.invalidReason);if(i)return{input:t,tokens:n,invalidReason:i.invalidReason};{let[e,r]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(o),i=RegExp(e,"i"),[a,l]=function(e,t,r){let n=e.match(t);if(!n)return[n,{}];{let e={},t=1;for(let o in r)if(eg(r,o)){let i=r[o],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(n.slice(t,t+a))),t+=a}return[n,e]}}(t,i,r),[u,c,d]=l?function(e){let t;let r=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null;return ef(e.z)||(n=U.create(e.z)),ef(e.Z)||(n||(n=new et(e.Z)),t=e.Z),ef(e.q)||(e.M=(e.q-1)*3+1),ef(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),ef(e.u)||(e.S=e_(e.u)),[Object.keys(e).reduce((t,n)=>{let o=r(n);return o&&(t[o]=e[n]),t},{}),n,t]}(l):[null,null,void 0];if(eg(l,"a")&&eg(l,"H"))throw new s("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:i,rawMatches:a,matches:l,result:u,zone:c,specificOffset:d}}}function t8(e,t){return e?eQ.create(t,e).formatDateTimeParts((t4||(t4=rN.fromMillis(1555555555555)),t4)).map(t=>(function(e,t){let{type:r,value:n}=e;if("literal"===r){let e=/^\s+$/.test(n);return{literal:!e,val:e?" ":n}}let o=t[r],i=t2[r];if("object"==typeof i&&(i=i[o]),i)return{literal:!1,val:i}})(t,e)):null}let t6=[0,31,59,90,120,151,181,212,243,273,304,334],t9=[0,31,60,91,121,152,182,213,244,274,305,335];function t7(e,t){return new eJ("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function re(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let o=n.getUTCDay();return 0===o?7:o}function rt(e,t){let r=ek(e)?t9:t6,n=r.findIndex(e=>e<t),o=t-r[n];return{month:n+1,day:o}}function rr(e){let{year:t,month:r,day:n}=e,o=n+(ek(t)?t9:t6)[r-1],i=re(t,r,n),a=Math.floor((o-i+10)/7),s;return a<1?a=eC(s=t-1):a>eC(t)?(s=t+1,a=1):s=t,{weekYear:s,weekNumber:a,weekday:i,...eF(e)}}function rn(e){let{weekYear:t,weekNumber:r,weekday:n}=e,o=re(t,1,4),i=eS(t),a=7*r+n-o-3,s;a<1?a+=eS(s=t-1):a>i?(s=t+1,a-=eS(t)):s=t;let{month:l,day:u}=rt(s,a);return{year:s,month:l,day:u,...eF(e)}}function ro(e){let{year:t,month:r,day:n}=e,o=n+(ek(t)?t9:t6)[r-1];return{year:t,ordinal:o,...eF(e)}}function ri(e){let{year:t,ordinal:r}=e,{month:n,day:o}=rt(t,r);return{year:t,month:n,day:o,...eF(e)}}function ra(e){let t=eh(e.year),r=ey(e.month,1,12),n=ey(e.day,1,eO(e.year,e.month));return t?r?!n&&t7("day",e.day):t7("month",e.month):t7("year",e.year)}function rs(e){let{hour:t,minute:r,second:n,millisecond:o}=e,i=ey(t,0,23)||24===t&&0===r&&0===n&&0===o,a=ey(r,0,59),s=ey(n,0,59),l=ey(o,0,999);return i?a?s?!l&&t7("millisecond",o):t7("second",n):t7("minute",r):t7("hour",t)}let rl="Invalid DateTime";function ru(e){return new eJ("unsupported zone",`the zone "${e.name}" is not supported`)}function rc(e){return null===e.weekData&&(e.weekData=rr(e.c)),e.weekData}function rd(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new rN({...r,...t,old:r})}function rf(e,t,r){let n=e-6e4*t,o=r.offset(n);if(t===o)return[n,t];n-=(o-t)*6e4;let i=r.offset(n);return o===i?[n,o]:[e-6e4*Math.min(o,i),Math.max(o,i)]}function rp(e,t){let r=new Date(e+=6e4*t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function rh(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:n,month:o,day:Math.min(e.c.day,eO(n,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=tM.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),[s,l]=rf(eT(i),r,e.zone);return 0!==a&&(s+=a,l=e.zone.offset(s)),{ts:s,o:l}}function rm(e,t,r,n,o,i){let{setZone:a,zone:s}=r;if((!e||0===Object.keys(e).length)&&!t)return rN.invalid(new eJ("unparsable",`the input "${o}" can't be parsed as ${n}`));{let n=rN.fromObject(e,{...r,zone:t||s,specificOffset:i});return a?n:n.setZone(s)}}function rv(e,t,r=!0){return e.isValid?eQ.create(X.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function rg(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=eb(e.c.year,r?6:4),t?n+="-"+eb(e.c.month)+"-"+eb(e.c.day):n+=eb(e.c.month)+eb(e.c.day),n}function ry(e,t,r,n,o,i){let a=eb(e.c.hour);return t?(a+=":"+eb(e.c.minute),0===e.c.second&&r||(a+=":")):a+=eb(e.c.minute),0===e.c.second&&r||(a+=eb(e.c.second),0===e.c.millisecond&&n||(a+="."+eb(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?a+="Z":e.o<0?a+="-"+eb(Math.trunc(-e.o/60))+":"+eb(Math.trunc(-e.o%60)):a+="+"+eb(Math.trunc(e.o/60))+":"+eb(Math.trunc(e.o%60))),i&&(a+="["+e.zone.ianaName+"]"),a}let rb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rw={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rx={ordinal:1,hour:0,minute:0,second:0,millisecond:0},r_=["year","month","day","hour","minute","second","millisecond"],rE=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rk=["year","ordinal","hour","minute","second","millisecond"];function rS(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new l(e);return t}function rO(e,t){let r,n;let o=en(t.zone,ed.defaultZone),i=X.fromObject(t),a=ed.now();if(ef(e.year))r=a;else{for(let t of r_)ef(e[t])&&(e[t]=rb[t]);let t=ra(e)||rs(e);if(t)return rN.invalid(t);let i=o.offset(a);[r,n]=rf(eT(e),i,o)}return new rN({ts:r,zone:o,loc:i,o:n})}function rT(e,t,r){let n=!!ef(r.round)||r.round,o=(e,o)=>(e=eE(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,o)),i=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return o(i(r.unit),r.unit);for(let e of r.units){let t=i(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,r.units[r.units.length-1])}function rC(e){let t={},r;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}class rN{constructor(e){let t=e.zone||ed.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new eJ("invalid input"):null)||(t.isValid?null:ru(t));this.ts=ef(e.ts)?ed.now():e.ts;let n=null,o=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,o]=[e.old.c,e.old.o];else{let e=t.offset(this.ts);n=(r=Number.isNaN((n=rp(this.ts,e)).year)?new eJ("invalid input"):null)?null:n,o=r?null:e}}this._zone=t,this.loc=e.loc||X.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new rN({})}static local(){let[e,t]=rC(arguments),[r,n,o,i,a,s,l]=t;return rO({year:r,month:n,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static utc(){let[e,t]=rC(arguments),[r,n,o,i,a,s,l]=t;return e.zone=et.utcInstance,rO({year:r,month:n,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static fromJSDate(e,t={}){let r="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(r))return rN.invalid("invalid input");let n=en(t.zone,ed.defaultZone);return n.isValid?new rN({ts:r,zone:n,loc:X.fromObject(t)}):rN.invalid(ru(n))}static fromMillis(e,t={}){if(ep(e))return e<-864e13||e>864e13?rN.invalid("Timestamp out of range"):new rN({ts:e,zone:en(t.zone,ed.defaultZone),loc:X.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ep(e))return new rN({ts:1e3*e,zone:en(t.zone,ed.defaultZone),loc:X.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let r=en(t.zone,ed.defaultZone);if(!r.isValid)return rN.invalid(ru(r));let n=ed.now(),o=ef(t.specificOffset)?r.offset(n):t.specificOffset,i=ej(e,rS),a=!ef(i.ordinal),l=!ef(i.year),u=!ef(i.month)||!ef(i.day),c=l||u,d=i.weekYear||i.weekNumber,f=X.fromObject(t);if((c||a)&&d)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new s("Can't mix ordinal dates with month/day");let p=d||i.weekday&&!c,h,m,v=rp(n,o);p?(h=rE,m=rw,v=rr(v)):a?(h=rk,m=rx,v=ro(v)):(h=r_,m=rb);let g=!1;for(let e of h)ef(i[e])?g?i[e]=m[e]:i[e]=v[e]:g=!0;let y=(p?function(e){let t=eh(e.weekYear),r=ey(e.weekNumber,1,eC(e.weekYear)),n=ey(e.weekday,1,7);return t?r?!n&&t7("weekday",e.weekday):t7("week",e.week):t7("weekYear",e.weekYear)}(i):a?function(e){let t=eh(e.year),r=ey(e.ordinal,1,eS(e.year));return t?!r&&t7("ordinal",e.ordinal):t7("year",e.year)}(i):ra(i))||rs(i);if(y)return rN.invalid(y);let[b,w]=rf(eT(p?rn(i):a?ri(i):i),o,r),x=new rN({ts:b,zone:r,o:w,loc:f});return i.weekday&&c&&e.weekday!==x.weekday?rN.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${x.toISO()}`):x}static fromISO(e,t={}){let[r,n]=e2(e,[tb,tE],[tw,tk],[tx,tS],[t_,tO]);return rm(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[r,n]=e2(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[tf,tp]);return rm(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[r,n]=e2(e,[th,tg],[tm,tg],[tv,ty]);return rm(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(ef(e)||ef(t))throw new u("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:o=null}=r,[i,a,s,l]=function(e,t,r){let{result:n,zone:o,specificOffset:i,invalidReason:a}=t3(e,t,r);return[n,o,i,a]}(X.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),e,t);return l?rN.invalid(l):rm(i,a,r,`format ${t}`,e,s)}static fromString(e,t,r={}){return rN.fromFormat(e,t,r)}static fromSQL(e,t={}){let[r,n]=e2(e,[tC,tE],[tN,tD]);return rm(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");let r=e instanceof eJ?e:new eJ(e,t);if(!ed.throwOnInvalid)return new rN({invalid:r});throw new o(r)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let r=t8(e,X.fromObject(t));return r?r.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return t5(eQ.parseFormat(e),X.fromObject(t)).map(e=>e.val).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rc(this).weekYear:NaN}get weekNumber(){return this.isValid?rc(this).weekNumber:NaN}get weekday(){return this.isValid?rc(this).weekday:NaN}get ordinal(){return this.isValid?ro(this.c).ordinal:NaN}get monthShort(){return this.isValid?tV.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?tV.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?tV.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?tV.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return ek(this.year)}get daysInMonth(){return eO(this.year,this.month)}get daysInYear(){return this.isValid?eS(this.year):NaN}get weeksInWeekYear(){return this.isValid?eC(this.weekYear):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:r,calendar:n}=eQ.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(et.instance(e),t)}toLocal(){return this.setZone(ed.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=en(e,ed.defaultZone)).equals(this.zone))return this;if(!e.isValid)return rN.invalid(ru(e));{let o=this.ts;if(t||r){var n;let t=e.offset(this.ts),r=this.toObject();[o]=(n=e,rf(eT(r),t,n))}return rd(this,{ts:o,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return rd(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,r,n;let o;if(!this.isValid)return this;let i=ej(e,rS),a=!ef(i.weekYear)||!ef(i.weekNumber)||!ef(i.weekday),l=!ef(i.ordinal),u=!ef(i.year),c=!ef(i.month)||!ef(i.day),d=i.weekYear||i.weekNumber;if((u||c||l)&&d)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new s("Can't mix ordinal dates with month/day");a?o=rn({...rr(this.c),...i}):ef(i.ordinal)?(o={...this.toObject(),...i},ef(i.day)&&(o.day=Math.min(eO(o.year,o.month),o.day))):o=ri({...ro(this.c),...i});let[f,p]=(t=o,r=this.o,n=this.zone,rf(eT(t),r,n));return rd(this,{ts:f,o:p})}plus(e){return this.isValid?rd(this,rh(this,tM.fromDurationLike(e))):this}minus(e){return this.isValid?rd(this,rh(this,tM.fromDurationLike(e).negate())):this}startOf(e){if(!this.isValid)return this;let t={},r=tM.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){let e=Math.ceil(this.month/3);t.month=(e-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?eQ.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):rl}toLocaleString(e=h,t={}){return this.isValid?eQ.create(this.loc.clone(t),e).formatDateTime(this):rl}toLocaleParts(e={}){return this.isValid?eQ.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let i="extended"===e;return rg(this,i)+"T"+ry(this,i,t,r,n,o)}toISODate({format:e="extended"}={}){return this.isValid?rg(this,"extended"===e):null}toISOWeekDate(){return rv(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(n?"T":"")+ry(this,"extended"===i,t,e,r,o):null}toRFC2822(){return rv(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rv(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?rg(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),rv(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():rl}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return tM.invalid("created by diffing an invalid DateTime");let n={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=(Array.isArray(t)?t:[t]).map(tM.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,r,n){let[o,i,a,s]=function(e,t,r){let n,o;let i={},a=e;for(let[s,l]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let r=tU(e,t);return(r-r%7)/7}],["days",tU]])r.indexOf(s)>=0&&(n=s,i[s]=l(e,t),(o=a.plus(i))>t?(i[s]--,e=a.plus(i)):e=o);return[e,i,o,n]}(e,t,r),l=t-o,u=r.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));let c=tM.fromObject(i,n);return u.length>0?tM.fromMillis(l,n).shiftTo(...u).plus(c):c}(i?this:e,i?e:this,o,n);return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(rN.now(),e,t)}until(e){return this.isValid?tz.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;let r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=r&&r<=n.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||rN.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0,n=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(n=e.unit,o=void 0),rT(t,this.plus(r),{...e,numeric:"always",units:n,unit:o})}toRelativeCalendar(e={}){return this.isValid?rT(e.base||rN.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(rN.isDateTime))throw new u("min requires all arguments be DateTimes");return ev(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(rN.isDateTime))throw new u("max requires all arguments be DateTimes");return ev(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){let{locale:n=null,numberingSystem:o=null}=r;return t3(X.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return rN.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return h}static get DATE_MED(){return m}static get DATE_MED_WITH_WEEKDAY(){return v}static get DATE_FULL(){return g}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return b}static get TIME_WITH_SECONDS(){return w}static get TIME_WITH_SHORT_OFFSET(){return x}static get TIME_WITH_LONG_OFFSET(){return _}static get TIME_24_SIMPLE(){return E}static get TIME_24_WITH_SECONDS(){return k}static get TIME_24_WITH_SHORT_OFFSET(){return S}static get TIME_24_WITH_LONG_OFFSET(){return O}static get DATETIME_SHORT(){return T}static get DATETIME_SHORT_WITH_SECONDS(){return C}static get DATETIME_MED(){return N}static get DATETIME_MED_WITH_SECONDS(){return D}static get DATETIME_MED_WITH_WEEKDAY(){return P}static get DATETIME_FULL(){return R}static get DATETIME_FULL_WITH_SECONDS(){return j}static get DATETIME_HUGE(){return A}static get DATETIME_HUGE_WITH_SECONDS(){return F}}function rD(e){if(rN.isDateTime(e))return e;if(e&&e.valueOf&&ep(e.valueOf()))return rN.fromJSDate(e);if(e&&"object"==typeof e)return rN.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}},88471:function(e,t,r){"use strict";r.d(t,{x0:function(){return n}});let n=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},34662:function(e,t,r){"use strict";r.d(t,{d:function(){return d},f:function(){return c}});var n=r(44194),o=r(85507),i=r(49687),a=r(81783),s=r(62461),l=r(13824);let u=(0,n.createContext)(null);function c(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=(0,l.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),o=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(u.Provider,{value:o},e.children)},[t])]}let d=Object.assign((0,i.yV)(function(e,t){let r=(0,o.M)(),{id:l="headlessui-description-".concat(r),...c}=e,d=function e(){let t=(0,n.useContext)(u);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),f=(0,s.T)(t);(0,a.e)(()=>d.register(l),[l,d.register]);let p={ref:f,...d.props,id:l};return(0,i.sY)({ourProps:p,theirProps:c,slot:d.slot||{},defaultTag:"p",name:d.name||"Description"})}),{})},75516:function(e,t,r){"use strict";let n,o,i,a,s,l,u;r.d(t,{V:function(){return ew}});var c,d,f=r(44194),p=r.t(f,2),h=r(88659),m=r(49687),v=r(62461),g=r(27552),y=r(5904),b=r(85507),w=r(78015),x=r(59545),_=r(25761),E=r(13824),k=r(54226),S=((n=S||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n),O=r(80242),T=r(91307);function C(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,f.useMemo)(()=>(0,T.r)(...t),[...t])}var N=r(2165);function D(e,t,r,n){let o=(0,N.E)(r);(0,f.useEffect)(()=>{function r(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var P=r(10955),R=r(17185),j=r(92772);function A(e){let t=(0,E.z)(e),r=(0,f.useRef)(!1);(0,f.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,P.Y)(()=>{r.current&&t()})}),[t])}function F(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var L=((o=L||{})[o.None=1]="None",o[o.InitialFocus=2]="InitialFocus",o[o.TabLock=4]="TabLock",o[o.FocusLock=8]="FocusLock",o[o.RestoreFocus=16]="RestoreFocus",o[o.All=30]="All",o);let I=Object.assign((0,m.yV)(function(e,t){let r,n=(0,f.useRef)(null),o=(0,v.T)(n,t),{initialFocus:i,containers:a,features:s=30,...l}=e;(0,w.H)()||(s=1);let u=C(n);!function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,f.useRef)(M.slice());return(0,R.q)((e,r)=>{let[n]=e,[o]=r;!0===o&&!1===n&&(0,P.Y)(()=>{t.current.splice(0)}),!1===o&&!0===n&&(t.current=M.slice())},[e,M,t]),(0,E.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);(0,R.q)(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&(0,_.C5)(n())},[t]),A(()=>{t&&(0,_.C5)(n())})}({ownerDocument:u},!!(16&s));let c=function(e,t){let{ownerDocument:r,container:n,initialFocus:o}=e,i=(0,f.useRef)(null),a=(0,O.t)();return(0,R.q)(()=>{if(!t)return;let e=n.current;e&&(0,P.Y)(()=>{if(!a.current)return;let t=null==r?void 0:r.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){i.current=t;return}}else if(e.contains(t)){i.current=t;return}null!=o&&o.current?(0,_.C5)(o.current):(0,_.jA)(e,_.TO.First)===_.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==r?void 0:r.activeElement})},[t]),i}({ownerDocument:u,container:n,initialFocus:i},!!(2&s));!function(e,t){let{ownerDocument:r,container:n,containers:o,previousActiveElement:i}=e,a=(0,O.t)();D(null==r?void 0:r.defaultView,"focus",e=>{if(!t||!a.current)return;let r=F(o);n.current instanceof HTMLElement&&r.add(n.current);let s=i.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?q(r,l)?(i.current=l,(0,_.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,_.C5)(s)):(0,_.C5)(i.current)},!0)}({ownerDocument:u,container:n,containers:a,previousActiveElement:c},!!(8&s));let d=(r=(0,f.useRef)(0),(0,k.s)("keydown",e=>{"Tab"===e.key&&(r.current=e.shiftKey?1:0)},!0),r),p=(0,E.z)(e=>{let t=n.current;t&&(0,h.E)(d.current,{[S.Forwards]:()=>{(0,_.jA)(t,_.TO.First,{skipElements:[e.relatedTarget]})},[S.Backwards]:()=>{(0,_.jA)(t,_.TO.Last,{skipElements:[e.relatedTarget]})}})}),g=(0,j.G)(),y=(0,f.useRef)(!1);return f.createElement(f.Fragment,null,!!(4&s)&&f.createElement(x._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:x.A.Focusable}),(0,m.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(y.current=!0,g.requestAnimationFrame(()=>{y.current=!1}))},onBlur(e){let t=F(a);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(q(t,r)||(y.current?(0,_.jA)(n.current,(0,h.E)(d.current,{[S.Forwards]:()=>_.TO.Next,[S.Backwards]:()=>_.TO.Previous})|_.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,_.C5)(e.target)))}},theirProps:l,defaultTag:"div",name:"FocusTrap"}),!!(4&s)&&f.createElement(x._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:x.A.Focusable}))}),{features:L}),M=[];function q(e,t){for(let r of e)if(r.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&M[0]!==e.target&&(M.unshift(e.target),(M=M.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var z=r(56321),V=r(81783);let U=(0,f.createContext)(!1);function $(e){return f.createElement(U.Provider,{value:e.force},e.children)}var H=r(81782);let K=f.Fragment,B=f.Fragment,W=(0,f.createContext)(null),Z=(0,f.createContext)(null),G=Object.assign((0,m.yV)(function(e,t){let r=(0,f.useRef)(null),n=(0,v.T)((0,v.h)(e=>{r.current=e}),t),o=C(r),i=function(e){let t=(0,f.useContext)(U),r=(0,f.useContext)(W),n=C(e),[o,i]=(0,f.useState)(()=>{if(!t&&null!==r||H.O.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let o=n.createElement("div");return o.setAttribute("id","headlessui-portal-root"),n.body.appendChild(o)});return(0,f.useEffect)(()=>{null!==o&&(null!=n&&n.body.contains(o)||null==n||n.body.appendChild(o))},[o,n]),(0,f.useEffect)(()=>{t||null!==r&&i(r.current)},[r,i,t]),o}(r),[a]=(0,f.useState)(()=>{var e;return H.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),s=(0,f.useContext)(Z),l=(0,w.H)();return(0,V.e)(()=>{!i||!a||i.contains(a)||(a.setAttribute("data-headlessui-portal",""),i.appendChild(a))},[i,a]),(0,V.e)(()=>{if(a&&s)return s.register(a)},[s,a]),A(()=>{var e;i&&a&&(a instanceof Node&&i.contains(a)&&i.removeChild(a),i.childNodes.length<=0&&(null==(e=i.parentElement)||e.removeChild(i)))}),l&&i&&a?(0,z.createPortal)((0,m.sY)({ourProps:{ref:n},theirProps:e,defaultTag:K,name:"Portal"}),a):null}),{Group:(0,m.yV)(function(e,t){let{target:r,...n}=e,o={ref:(0,v.T)(t)};return f.createElement(W.Provider,{value:r},(0,m.sY)({ourProps:o,theirProps:n,defaultTag:B,name:"Popover.Group"}))})});var Y=r(34662),Q=r(63355);let J=(0,f.createContext)(()=>{});J.displayName="StackContext";var X=((i=X||{})[i.Add=0]="Add",i[i.Remove=1]="Remove",i);function ee(e){let{children:t,onUpdate:r,type:n,element:o,enabled:i}=e,a=(0,f.useContext)(J),s=(0,E.z)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),a(...t)});return(0,V.e)(()=>{let e=void 0===i||!0===i;return e&&s(0,n,o),()=>{e&&s(1,n,o)}},[s,n,o,i]),f.createElement(J.Provider,{value:s},t)}var et=r(46341);let{useState:er,useEffect:en,useLayoutEffect:eo,useDebugValue:ei}=p;void 0!==window.document&&window.document.createElement;let ea=p.useSyncExternalStore;var es=r(55261),el=r(30611);let eu=(c=()=>new Map,d={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,es.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,r,{doc:n,d:o,meta:i}=e,a={doc:n,d:o,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(i)},s=[(0,el.gn)()?{before(){t=window.pageYOffset},after(e){let{doc:r,d:n,meta:o}=e;function i(e){return o.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.style(r.body,"marginTop","-".concat(t,"px")),window.scrollTo(0,0);let a=null;n.addEventListener(r,"click",e=>{if(e.target instanceof HTMLElement)try{let t=e.target.closest("a");if(!t)return;let{hash:n}=new URL(t.href),o=r.querySelector(n);o&&!i(o)&&(a=o)}catch(e){}},!0),n.addEventListener(r,"touchmove",e=>{e.target instanceof HTMLElement&&!i(e.target)&&e.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+t),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}:{},{before(e){var t;let{doc:n}=e,o=n.documentElement;r=(null!=(t=n.defaultView)?t:window).innerWidth-o.clientWidth},after(e){let{doc:t,d:n}=e,o=t.documentElement,i=o.clientWidth-o.offsetWidth,a=r-i;n.style(o,"paddingRight","".concat(a,"px"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,"overflow","hidden")}}];s.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),s.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},a=c(),s=new Set,{getSnapshot:()=>a,subscribe:e=>(s.add(e),()=>s.delete(e)),dispatch(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let o=d[e].call(a,...r);o&&(a=o,s.forEach(e=>e()))}});eu.subscribe(()=>{let e=eu.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&eu.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&eu.dispatch("TEARDOWN",r)}});let ec=new Map,ed=new Map;function ef(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,V.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let o=null!=(r=ed.get(n))?r:0;return ed.set(n,o+1),0!==o||(ec.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ed.get(n))?e:1;if(1===t?ed.delete(n):ed.set(n,t-1),1!==t)return;let r=ec.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,ec.delete(n))}},[e,t])}var ep=((l=ep||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),eh=((u=eh||{})[u.SetTitleId=0]="SetTitleId",u);let em={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},ev=(0,f.createContext)(null);function eg(e){let t=(0,f.useContext)(ev);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eg),t}return t}function ey(e,t){return(0,h.E)(t.type,em,e,t)}ev.displayName="DialogContext";let eb=m.AN.RenderStrategy|m.AN.Static,ew=Object.assign((0,m.yV)(function(e,t){var r;let n,o,i,a,s;let l=(0,b.M)(),{id:u="headlessui-dialog-".concat(l),open:c,onClose:d,initialFocus:p,__demoMode:y=!1,..._}=e,[k,S]=(0,f.useState)(0),O=(0,Q.oJ)();void 0===c&&null!==O&&(c=(O&Q.ZM.Open)===Q.ZM.Open);let T=(0,f.useRef)(null),N=(0,v.T)(T,t),P=C(T),R=e.hasOwnProperty("open")||null!==O,j=e.hasOwnProperty("onClose");if(!R&&!j)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!R)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!j)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof c)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(c));if("function"!=typeof d)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(d));let A=c?0:1,[F,L]=(0,f.useReducer)(ey,{titleId:null,descriptionId:null,panelRef:(0,f.createRef)()}),M=(0,E.z)(()=>d(!1)),q=(0,E.z)(e=>L({type:0,id:e})),z=!!(0,w.H)()&&!y&&0===A,U=k>1,H=null!==(0,f.useContext)(ev),[K,B]=(n=(0,f.useContext)(Z),o=(0,f.useRef)([]),i=(0,E.z)(e=>(o.current.push(e),n&&n.register(e),()=>a(e))),a=(0,E.z)(e=>{let t=o.current.indexOf(e);-1!==t&&o.current.splice(t,1),n&&n.unregister(e)}),s=(0,f.useMemo)(()=>({register:i,unregister:a,portals:o}),[i,a,o]),[o,(0,f.useMemo)(()=>function(e){let{children:t}=e;return f.createElement(Z.Provider,{value:s},t)},[s])]),{resolveContainers:W,mainTreeNodeRef:J,MainTreeNode:er}=function(){let{defaultContainers:e=[],portals:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,f.useRef)(null),n=C(r),o=(0,E.z)(()=>{var o;let i=[];for(let t of e)null!==t&&(t instanceof HTMLElement?i.push(t):"current"in t&&t.current instanceof HTMLElement&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(o=null==n?void 0:n.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(r.current)||i.some(t=>e.contains(t))||i.push(e));return i});return{resolveContainers:o,contains:(0,E.z)(e=>o().some(t=>t.contains(e))),mainTreeNodeRef:r,MainTreeNode:(0,f.useMemo)(()=>function(){return f.createElement(x._,{features:x.A.Hidden,ref:r})},[r])}}({portals:K,defaultContainers:[null!=(r=F.panelRef.current)?r:T.current]}),en=null!==O&&(O&Q.ZM.Closing)===Q.ZM.Closing,eo=!H&&!en&&z;ef((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==P?void 0:P.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(J.current)&&e instanceof HTMLElement))?t:null},[J]),eo);let ei=!!U||z;ef((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==P?void 0:P.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(J.current)&&e instanceof HTMLElement))?t:null},[J]),ei);let es=!(!z||U);(0,et.O)(W,M,es);let el=!(U||0!==A);D(null==P?void 0:P.defaultView,"keydown",e=>{el&&(e.defaultPrevented||e.key===g.R.Escape&&(e.preventDefault(),e.stopPropagation(),M()))}),function(e,t){var r;let n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],i]}},n=ea(eu.subscribe,eu.getSnapshot,eu.getSnapshot),(o=e?n.get(e):void 0)&&o.count,(0,V.e)(()=>{if(!(!e||!t))return eu.dispatch("PUSH",e,r),()=>eu.dispatch("POP",e,r)},[t,e])}(P,!(en||0!==A||H),W),(0,f.useEffect)(()=>{if(0!==A||!T.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&M()}});return e.observe(T.current),()=>e.disconnect()},[A,T,M]);let[ec,ed]=(0,Y.f)(),ep=(0,f.useMemo)(()=>[{dialogState:A,close:M,setTitleId:q},F],[A,F,M,q]),eh=(0,f.useMemo)(()=>({open:0===A}),[A]),em={ref:N,id:u,role:"dialog","aria-modal":0===A||void 0,"aria-labelledby":F.titleId,"aria-describedby":ec};return f.createElement(ee,{type:"Dialog",enabled:0===A,element:T,onUpdate:(0,E.z)((e,t)=>{"Dialog"===t&&(0,h.E)(e,{[X.Add]:()=>S(e=>e+1),[X.Remove]:()=>S(e=>e-1)})})},f.createElement($,{force:!0},f.createElement(G,null,f.createElement(ev.Provider,{value:ep},f.createElement(G.Group,{target:T},f.createElement($,{force:!1},f.createElement(ed,{slot:eh,name:"Dialog.Description"},f.createElement(I,{initialFocus:p,containers:W,features:z?(0,h.E)(U?"parent":"leaf",{parent:I.features.RestoreFocus,leaf:I.features.All&~I.features.FocusLock}):I.features.None},f.createElement(B,null,(0,m.sY)({ourProps:em,theirProps:_,slot:eh,defaultTag:"div",features:eb,visible:0===A,name:"Dialog"}))))))))),f.createElement(er,null))}),{Backdrop:(0,m.yV)(function(e,t){let r=(0,b.M)(),{id:n="headlessui-dialog-backdrop-".concat(r),...o}=e,[{dialogState:i},a]=eg("Dialog.Backdrop"),s=(0,v.T)(t);(0,f.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let l=(0,f.useMemo)(()=>({open:0===i}),[i]);return f.createElement($,{force:!0},f.createElement(G,null,(0,m.sY)({ourProps:{ref:s,id:n,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,m.yV)(function(e,t){let r=(0,b.M)(),{id:n="headlessui-dialog-panel-".concat(r),...o}=e,[{dialogState:i},a]=eg("Dialog.Panel"),s=(0,v.T)(t,a.panelRef),l=(0,f.useMemo)(()=>({open:0===i}),[i]),u=(0,E.z)(e=>{e.stopPropagation()});return(0,m.sY)({ourProps:{ref:s,id:n,onClick:u},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,m.yV)(function(e,t){let r=(0,b.M)(),{id:n="headlessui-dialog-overlay-".concat(r),...o}=e,[{dialogState:i,close:a}]=eg("Dialog.Overlay"),s=(0,v.T)(t),l=(0,E.z)(e=>{if(e.target===e.currentTarget){if((0,y.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),u=(0,f.useMemo)(()=>({open:0===i}),[i]);return(0,m.sY)({ourProps:{ref:s,id:n,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,m.yV)(function(e,t){let r=(0,b.M)(),{id:n="headlessui-dialog-title-".concat(r),...o}=e,[{dialogState:i,setTitleId:a}]=eg("Dialog.Title"),s=(0,v.T)(t);(0,f.useEffect)(()=>(a(n),()=>a(null)),[n,a]);let l=(0,f.useMemo)(()=>({open:0===i}),[i]);return(0,m.sY)({ourProps:{ref:s,id:n},theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:Y.d})},27552:function(e,t,r){"use strict";let n;r.d(t,{R:function(){return o}});var o=((n=o||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},56318:function(e,t,r){"use strict";let n;r.d(t,{u:function(){return R}});var o=r(44194),i=r(49687),a=r(63355),s=r(88659),l=r(80242),u=r(81783),c=r(2165),d=r(78015),f=r(62461),p=r(55261);function h(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function m(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var v=r(92772),g=r(13824),y=r(51496);function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(" ").filter(e=>e.trim().length>1)}let w=(0,o.createContext)(null);w.displayName="TransitionContext";var x=((n=x||{}).Visible="visible",n.Hidden="hidden",n);let _=(0,o.createContext)(null);function E(e){return"children"in e?E(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function k(e,t){let r=(0,c.E)(e),n=(0,o.useRef)([]),a=(0,l.t)(),u=(0,v.G)(),d=(0,g.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l4.Hidden,o=n.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==o&&((0,s.E)(t,{[i.l4.Unmount](){n.current.splice(o,1)},[i.l4.Hidden](){n.current[o].state="hidden"}}),u.microTask(()=>{var e;!E(n)&&a.current&&(null==(e=r.current)||e.call(r))}))}),f=(0,g.z)(e=>{let t=n.current.find(t=>{let{el:r}=t;return r===e});return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>d(e,i.l4.Unmount)}),p=(0,o.useRef)([]),h=(0,o.useRef)(Promise.resolve()),m=(0,o.useRef)({enter:[],leave:[],idle:[]}),y=(0,g.z)((e,r,n)=>{p.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{p.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(m.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())})]),"enter"===r?h.current=h.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),b=(0,g.z)((e,t,r)=>{Promise.all(m.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=p.current.shift())||e()}).then(()=>r(t))});return(0,o.useMemo)(()=>({children:n,register:f,unregister:d,onStart:y,onStop:b,wait:h,chains:m}),[f,d,n,y,b,m,h])}function S(){}_.displayName="NestingContext";let O=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let r={};for(let n of O)r[n]=null!=(t=e[n])?t:S;return r}let C=i.AN.RenderStrategy,N=(0,i.yV)(function(e,t){let{show:r,appear:n=!1,unmount:s,...l}=e,c=(0,o.useRef)(null),p=(0,f.T)(c,t);(0,d.H)();let h=(0,a.oJ)();if(void 0===r&&null!==h&&(r=(h&a.ZM.Open)===a.ZM.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,v]=(0,o.useState)(r?"visible":"hidden"),y=k(()=>{v("hidden")}),[b,x]=(0,o.useState)(!0),S=(0,o.useRef)([r]);(0,u.e)(()=>{!1!==b&&S.current[S.current.length-1]!==r&&(S.current.push(r),x(!1))},[S,r]);let O=(0,o.useMemo)(()=>({show:r,appear:n,initial:b}),[r,n,b]);(0,o.useEffect)(()=>{if(r)v("visible");else if(E(y)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&v("hidden")}else v("hidden")},[r,y]);let T={unmount:s},N=(0,g.z)(()=>{var t;b&&x(!1),null==(t=e.beforeEnter)||t.call(e)}),P=(0,g.z)(()=>{var t;b&&x(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(_.Provider,{value:y},o.createElement(w.Provider,{value:O},(0,i.sY)({ourProps:{...T,as:o.Fragment,children:o.createElement(D,{ref:p,...T,...l,beforeEnter:N,beforeLeave:P})},theirProps:{},defaultTag:o.Fragment,features:C,visible:"visible"===m,name:"Transition"})))}),D=(0,i.yV)(function(e,t){var r;let n,{beforeEnter:x,afterEnter:S,beforeLeave:O,afterLeave:N,enter:D,enterFrom:P,enterTo:R,entered:j,leave:A,leaveFrom:F,leaveTo:L,...I}=e,M=(0,o.useRef)(null),q=(0,f.T)(M,t),z=I.unmount?i.l4.Unmount:i.l4.Hidden,{show:V,appear:U,initial:$}=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[H,K]=(0,o.useState)(V?"visible":"hidden"),B=function(){let e=(0,o.useContext)(_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:W,unregister:Z}=B,G=(0,o.useRef)(null);(0,o.useEffect)(()=>W(M),[W,M]),(0,o.useEffect)(()=>{if(z===i.l4.Hidden&&M.current){if(V&&"visible"!==H){K("visible");return}return(0,s.E)(H,{hidden:()=>Z(M),visible:()=>W(M)})}},[H,M,W,Z,V,z]);let Y=(0,c.E)({enter:b(D),enterFrom:b(P),enterTo:b(R),entered:b(j),leave:b(A),leaveFrom:b(F),leaveTo:b(L)}),Q=(r={beforeEnter:x,afterEnter:S,beforeLeave:O,afterLeave:N},n=(0,o.useRef)(T(r)),(0,o.useEffect)(()=>{n.current=T(r)},[r]),n),J=(0,d.H)();(0,o.useEffect)(()=>{if(J&&"visible"===H&&null===M.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[M,H,J]);let X=$&&!U,ee=!J||X||G.current===V?"idle":V?"enter":"leave",et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,o.useState)(e),n=(0,l.t)(),i=(0,o.useCallback)(e=>{n.current&&r(t=>t|e)},[t,n]),a=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:(0,o.useCallback)(e=>{n.current&&r(t=>t&~e)},[r,n]),toggleFlag:(0,o.useCallback)(e=>{n.current&&r(t=>t^e)},[r])}}(0),er=(0,g.z)(e=>(0,s.E)(e,{enter:()=>{et.addFlag(a.ZM.Opening),Q.current.beforeEnter()},leave:()=>{et.addFlag(a.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),en=(0,g.z)(e=>(0,s.E)(e,{enter:()=>{et.removeFlag(a.ZM.Opening),Q.current.afterEnter()},leave:()=>{et.removeFlag(a.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),eo=k(()=>{K("hidden"),Z(M)},B);(function(e){let{container:t,direction:r,classes:n,onStart:o,onStop:i}=e,a=(0,l.t)(),d=(0,v.G)(),f=(0,c.E)(r);(0,u.e)(()=>{let e=(0,p.k)();d.add(e.dispose);let r=t.current;if(r&&"idle"!==f.current&&a.current){var l,u,c;let t,a,d,v,g,y,b;return e.dispose(),o.current(f.current),e.add((l=n.current,u="enter"===f.current,c=()=>{e.dispose(),i.current(f.current)},a=u?"enter":"leave",d=(0,p.k)(),v=void 0!==c?(t={called:!1},function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!t.called)return t.called=!0,c(...r)}):()=>{},"enter"===a&&(r.removeAttribute("hidden"),r.style.display=""),g=(0,s.E)(a,{enter:()=>l.enter,leave:()=>l.leave}),y=(0,s.E)(a,{enter:()=>l.enterTo,leave:()=>l.leaveTo}),b=(0,s.E)(a,{enter:()=>l.enterFrom,leave:()=>l.leaveFrom}),m(r,...l.enter,...l.enterTo,...l.enterFrom,...l.leave,...l.leaveFrom,...l.leaveTo,...l.entered),h(r,...g,...b),d.nextFrame(()=>{m(r,...b),h(r,...y),function(e,t){let r=(0,p.k)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,a]=[n,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=i+a;if(0!==s){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},s),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(r,()=>(m(r,...g),h(r,...l.entered),v()))}),d.dispose)),e.dispose}},[r])})({container:M,classes:Y,direction:ee,onStart:(0,c.E)(e=>{eo.onStart(M,e,er)}),onStop:(0,c.E)(e=>{eo.onStop(M,e,en),"leave"!==e||E(eo)||(K("hidden"),Z(M))})}),(0,o.useEffect)(()=>{X&&(z===i.l4.Hidden?G.current=null:G.current=V)},[V,X,H]);let ei=I;return U&&V&&$&&(ei={...ei,className:(0,y.A)(I.className,...Y.current.enter,...Y.current.enterFrom)}),o.createElement(_.Provider,{value:eo},o.createElement(a.up,{value:(0,s.E)(H,{visible:a.ZM.Open,hidden:a.ZM.Closed})|et.flags},(0,i.sY)({ourProps:{ref:q},theirProps:ei,defaultTag:"div",features:C,visible:"visible"===H,name:"Transition.Child"})))}),P=(0,i.yV)(function(e,t){let r=null!==(0,o.useContext)(w),n=null!==(0,a.oJ)();return o.createElement(o.Fragment,null,!r&&n?o.createElement(N,{ref:t,...e}):o.createElement(D,{ref:t,...e}))}),R=Object.assign(N,{Child:P,Root:N})},77697:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(44194),o=r(81783),i=r(2165);function a(e,t){let[r,a]=(0,n.useState)(e),s=(0,i.E)(e);return(0,o.e)(()=>a(s.current),[s,a,...t]),r}},2931:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(44194),o=r(13824);function i(e,t,r){let[i,a]=(0,n.useState)(r),s=void 0!==e,l=(0,n.useRef)(s),u=(0,n.useRef)(!1),c=(0,n.useRef)(!1);return!s||l.current||u.current?s||!l.current||c.current||(c.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(u.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:i,(0,o.z)(e=>(s||a(e),null==t?void 0:t(e)))]}},92772:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(44194),o=r(55261);function i(){let[e]=(0,n.useState)(o.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},13824:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(44194),o=r(2165);let i=function(e){let t=(0,o.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},85507:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,o=r(44194),i=r(81783),a=r(78015),s=r(81782);let l=null!=(n=o.useId)?n:function(){let e=(0,a.H)(),[t,r]=o.useState(e?()=>s.O.nextId():null);return(0,i.e)(()=>{null===t&&r(s.O.nextId())},[t]),null!=t?""+t:void 0}},80242:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(44194),o=r(81783);function i(){let e=(0,n.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},81783:function(e,t,r){"use strict";r.d(t,{e:function(){return i}});var n=r(44194),o=r(81782);let i=(e,t)=>{o.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},2165:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(44194),o=r(81783);function i(e){let t=(0,n.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},46341:function(e,t,r){"use strict";r.d(t,{O:function(){return l}});var n=r(44194),o=r(25761),i=r(2165);function a(e,t,r){let o=(0,i.E)(t);(0,n.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var s=r(54226);function l(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,n.useRef)(!1);function l(r,n){if(!i.current||r.defaultPrevented)return;let a=n(r);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||r.composed&&r.composedPath().includes(e))return}return(0,o.sP)(a,o.tJ.Loose)||-1===a.tabIndex||r.preventDefault(),t(r,a)}}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{i.current=r})},[r]);let u=(0,n.useRef)(null);a("pointerdown",e=>{var t,r;i.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),a("mousedown",e=>{var t,r;i.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),a("click",e=>{u.current&&(l(e,()=>u.current),u.current=null)},!0),a("touchend",e=>l(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,s.s)("blur",e=>l(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},37576:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(44194),o=r(81783);function i(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function a(e,t){let[r,a]=(0,n.useState)(()=>i(e));return(0,o.e)(()=>{a(i(e))},[e.type,e.as]),(0,o.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[r,t]),r}},78015:function(e,t,r){"use strict";r.d(t,{H:function(){return i}});var n=r(44194),o=r(81782);function i(){let[e,t]=(0,n.useState)(o.O.isHandoffComplete);return e&&!1===o.O.isHandoffComplete&&t(!1),(0,n.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,n.useEffect)(()=>o.O.handoff(),[]),e}},62461:function(e,t,r){"use strict";r.d(t,{T:function(){return s},h:function(){return a}});var n=r(44194),o=r(13824);let i=Symbol();function a(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let a=(0,n.useRef)(t);(0,n.useEffect)(()=>{a.current=t},[t]);let s=(0,o.z)(e=>{for(let t of a.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:s}},51511:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(44194);function o(e){return[e.screenX,e.screenY]}function i(){let e=(0,n.useRef)([-1,-1]);return{wasMoved(t){let r=o(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=o(t)}}}},17185:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(44194),o=r(13824);function i(e,t){let r=(0,n.useRef)([]),i=(0,o.z)(e);(0,n.useEffect)(()=>{let e=[...r.current];for(let[n,o]of t.entries())if(r.current[n]!==o){let n=i(t,e);return r.current=t,n}},[i,...t])}},54226:function(e,t,r){"use strict";r.d(t,{s:function(){return i}});var n=r(44194),o=r(2165);function i(e,t,r){let i=(0,o.E)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},59545:function(e,t,r){"use strict";let n;r.d(t,{A:function(){return i},_:function(){return a}});var o=r(49687),i=((n=i||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let a=(0,o.yV)(function(e,t){let{features:r=1,...n}=e,i={ref:t,"aria-hidden":(2&r)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:i,theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})})},63355:function(e,t,r){"use strict";let n;r.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return l}});var o=r(44194);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var a=((n=a||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function s(){return(0,o.useContext)(i)}function l(e){let{value:t,children:r}=e;return o.createElement(i.Provider,{value:t},r)}},5904:function(e,t,r){"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{P:function(){return n}})},79035:function(e,t,r){"use strict";let n;r.d(t,{T:function(){return o},d:function(){return i}});var o=((n=o||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n);function i(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=null!=n?n:-1,i=(()=>{switch(e.focus){case 0:return r.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=r.slice().reverse().findIndex((e,r,n)=>(-1===o||!(n.length-r-1>=o))&&!t.resolveDisabled(e));return -1===e?e:r.length-1-e}case 2:return r.findIndex((e,r)=>!(r<=o)&&!t.resolveDisabled(e));case 3:{let e=r.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return -1===e?e:r.length-1-e}case 4:return r.findIndex(r=>t.resolveId(r)===e.id);case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}})();return -1===i?n:i}},51496:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}r.d(t,{A:function(){return n}})},55261:function(e,t,r){"use strict";r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,o)=>(e.addEventListener(t,n,o),r.add(()=>e.removeEventListener(t,n,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=setTimeout(...t);return r.add(()=>clearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];let i={current:!0};return(0,n.Y)(()=>{i.current&&t[0]()}),r.add(()=>{i.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(10955)},81782:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var n=Object.defineProperty,o=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r);class a{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let s=new a},25761:function(e,t,r){"use strict";let n,o,i,a,s;r.d(t,{C5:function(){return g},TO:function(){return d},fE:function(){return f},jA:function(){return b},sP:function(){return m},tJ:function(){return h},z2:function(){return y}});var l=r(88659),u=r(91307);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((n=d||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),f=((o=f||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),p=((i=p||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i),h=((a=h||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function m(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,u.r)(e))?void 0:t.body)&&(0,l.E)(r,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var v=((s=v||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function g(e){null==e||e.focus({preventScroll:!0})}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),o=t(r);if(null===n||null===o)return 0;let i=n.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t){var r,n,o;let{sorted:i=!0,relativeTo:a=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?i?y(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);s.length>0&&u.length>1&&(u=u.filter(e=>!s.includes(e))),a=null!=a?a:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(a))-1;if(4&t)return Math.max(0,u.indexOf(a))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},h=0,m=u.length,v;do{if(h>=m||h+m<=0)return 0;let e=f+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(v=u[e])||v.focus(p),h+=d}while(v!==l.activeElement);return 6&t&&null!=(o=null==(n=null==(r=v)?void 0:r.matches)?void 0:n.call(r,"textarea,input"))&&o&&v.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},93880:function(e,t,r){"use strict";function n(e,t){return e?e+"["+t+"]":t}function o(e){var t;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let e of r.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type){e.click();return}r.requestSubmit()}}r.d(t,{g:function(){return o},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[i,a]of Object.entries(t))!function t(r,o,i){if(Array.isArray(i))for(let[e,a]of i.entries())t(r,n(o,e.toString()),a);else i instanceof Date?r.push([o,i.toISOString()]):"boolean"==typeof i?r.push([o,i?"1":"0"]):"string"==typeof i?r.push([o,i]):"number"==typeof i?r.push([o,"".concat(i)]):null==i?r.push([o,""]):e(i,o,r)}(o,n(r,i),a);return o}}})},88659:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(e in t){let r=t[e];return"function"==typeof r?r(...o):r}let a=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,n),a}r.d(t,{E:function(){return n}})},10955:function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},91307:function(e,t,r){"use strict";r.d(t,{r:function(){return o}});var n=r(81782);function o(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},30611:function(e,t,r){"use strict";function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return n()||/Android/gi.test(window.navigator.userAgent)}r.d(t,{gn:function(){return n},tq:function(){return o}})},49687:function(e,t,r){"use strict";let n,o;r.d(t,{AN:function(){return l},l4:function(){return u},oA:function(){return h},sY:function(){return c},yV:function(){return p}});var i=r(44194),a=r(51496),s=r(88659),l=((n=l||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),u=((o=u||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:o,features:i,visible:a=!0,name:l}=e,u=f(r,t);if(a)return d(u,n,o,l);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=u;if(e)return d(t,n,o,l)}if(1&c){let{unmount:e=!0,...t}=u;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,o,l)})}return d(u,n,o,l)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,{as:o=r,children:s,refName:l="ref",...u}=m(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let p={};if(t){let e=!1,r=[];for(let[n,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&r.push(n);e&&(p["data-headlessui-state"]=r.join(" "))}if(o===i.Fragment&&Object.keys(h(u)).length>0){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(n,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,a.A)(null==e?void 0:e.className(...r),u.className)}:(0,a.A)(null==e?void 0:e.className,u.className);return(0,i.cloneElement)(d,Object.assign({},f(d.props,h(m(u,["ref"]))),p,c,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return{ref:t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}}(d.ref,c.ref),t?{className:t}:{}))}return(0,i.createElement)(o,Object.assign({},m(u,["ref"]),o!==i.Fragment&&c,o!==i.Fragment&&p),d)}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(o).map(e=>[e,void 0])));for(let e in o)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(let r of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function p(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},50118:function(e,t,r){"use strict";let n;r.d(t,{a3:function(){return R},cC:function(){return N},$G:function(){return P}});var o=r(44194),i=r(73909),a=r(63229),s=r.n(a),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function u(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(s()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim()){if(i[1]){var a=i[1].trim(),u=[a,""];a.indexOf("=")>-1&&(u=a.split("=")),t.attrs[u[0]]=u[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1))}return t}var c=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,f=Object.create(null),p={parse:function(e,t){t||(t={}),t.components||(t.components=f);var r,n=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(c,function(s,l){if(a){if(s!=="</"+r.name+">")return;a=!1}var c,f="/"!==s.charAt(1),p=s.startsWith("<!--"),h=l+s.length,m=e.charAt(h);if(p){var v=u(s);return i<0?n.push(v):(c=o[i]).children.push(v),n}if(f&&(i++,"tag"===(r=u(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&n.push(r),(c=o[i-1])&&c.children.push(r),o[i]=r),(!f||r.voidElement)&&(i>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(r=-1==--i?n:o[i]),!a&&"<"!==m&&m)){c=-1===i?n:o[i].children;var g=e.indexOf("<",h),y=e.slice(h,-1===g?void 0:g);d.test(y)&&(y=" "),(g>-1&&i+c.length>=0||" "!==y)&&c.push({type:"text",content:y})}}),n}};function h(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}let m={};function v(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&m[t[0]]||("string"==typeof t[0]&&(m[t[0]]=new Date),h(...t))}let g=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function y(e,t,r){e.loadNamespaces(t,g(e,r))}function b(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,g(e,n))}let w=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,x={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},_=e=>x[e],E={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(w,_)};function k(e,t){if(!e)return!1;let r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function S(e){if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?O(t):t}function O(e){return Array.isArray(e)?e:[e]}let T=(0,o.createContext)();class C{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function N(e){let{children:t,count:r,parent:a,i18nKey:s,context:l,tOptions:u={},values:c,defaults:d,components:f,ns:m,i18n:g,t:y,shouldUnescape:b,...w}=e,{i18n:x,defaultNS:_}=(0,o.useContext)(T)||{},C=g||x||n,N=y||C&&C.t.bind(C);return function(e){let{children:t,count:r,parent:a,i18nKey:s,context:l,tOptions:u={},values:c,defaults:d,components:f,ns:m,i18n:g,t:y,shouldUnescape:b,...w}=e,x=g||n;if(!x)return v("You will need to pass in an i18next instance by using i18nextReactModule"),t;let _=y||x.t.bind(x)||(e=>e);l&&(u.context=l);let T={...E,...x.options&&x.options.react},C=m||_.ns||x.options&&x.options.defaultNS;C="string"==typeof C?[C]:C||["translation"];let N=d||function e(t,r){if(!t)return"";let n="",i=O(t),a=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return i.forEach((t,i)=>{if("string"==typeof t)n+=`${t}`;else if((0,o.isValidElement)(t)){let o=Object.keys(t.props).length,s=a.indexOf(t.type)>-1,l=t.props.children;if(!l&&s&&0===o)n+=`<${t.type}/>`;else if(l||s&&0===o){if(t.props.i18nIsDynamicList)n+=`<${i}></${i}>`;else if(s&&1===o&&"string"==typeof l)n+=`<${t.type}>${l}</${t.type}>`;else{let t=e(l,r);n+=`<${i}>${t}</${i}>`}}else n+=`<${i}></${i}>`}else if(null===t)h("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"==typeof t){let{format:e,...r}=t,o=Object.keys(r);if(1===o.length){let t=e?`${o[0]}, ${e}`:o[0];n+=`{{${t}}}`}else h("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else h("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)}),n}(t,T)||T.transEmptyNodeValue||s,{hashTransKey:D}=T,P=s||(D?D(N):N),R=c?u.interpolation:{interpolation:{...u.interpolation,prefix:"#$?",suffix:"?$#"}},j={...u,count:r,...c,...R,defaultValue:N,ns:C},A=function(e,t,r,n,a,s){if(""===t)return[];let l=n.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(l.map(e=>`<${e}`).join("|")).test(t);if(!e&&!u&&!s)return[t];let c={};!function e(t){O(t).forEach(t=>{"string"==typeof t||(k(t)?e(S(t)):"object"!=typeof t||(0,o.isValidElement)(t)||Object.assign(c,t))})}(e);let d=p.parse(`<0>${t}</0>`),f={...c,...a};function h(e,t,r){let n=S(e),i=v(n,t.children,r);return"[object Array]"===Object.prototype.toString.call(n)&&n.every(e=>(0,o.isValidElement)(e))&&0===i.length||e.props&&e.props.i18nIsDynamicList?n:i}function m(e,t,r,n,a){e.dummy?(e.children=t,r.push((0,o.cloneElement)(e,{key:n},a?void 0:t))):r.push(...o.Children.map([e],e=>{let r={...e.props};return delete r.i18nIsDynamicList,o.createElement(e.type,(0,i.Z)({},r,{key:n,ref:e.ref},a?{}:{children:t}))}))}function v(t,i,a){let c=O(t);return O(i).reduce((t,i,d)=>{let p=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,f,r.language);if("tag"===i.type){let s=c[parseInt(i.name,10)];1!==a.length||s||(s=a[0][i.name]),s||(s={});let g=0!==Object.keys(i.attrs).length?function(e,t){let r={...t};return r.props=Object.assign(e.props,t.props),r}({props:i.attrs},s):s,y=(0,o.isValidElement)(g),b=y&&k(i,!0)&&!i.voidElement,w=u&&"object"==typeof g&&g.dummy&&!y,x="object"==typeof e&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof g){let e=r.services.interpolator.interpolate(g,f,r.language);t.push(e)}else if(k(g)||b){let e=h(g,i,a);m(g,e,t,d)}else if(w)m(g,v(c,i.children,a),t,d);else if(Number.isNaN(parseFloat(i.name))){if(x){let e=h(g,i,a);m(g,e,t,d,i.voidElement)}else if(n.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1){if(i.voidElement)t.push((0,o.createElement)(i.name,{key:`${i.name}-${d}`}));else{let e=v(c,i.children,a);t.push((0,o.createElement)(i.name,{key:`${i.name}-${d}`},e))}}else if(i.voidElement)t.push(`<${i.name} />`);else{let e=v(c,i.children,a);t.push(`<${i.name}>${e}</${i.name}>`)}}else if("object"!=typeof g||y)m(g,p,t,d,1!==i.children.length||!p);else{let e=i.children[0]?p:null;e&&t.push(e)}}else if("text"===i.type){let e=n.transWrapTextNodes,a=s?n.unescape(r.services.interpolator.interpolate(i.content,f,r.language)):r.services.interpolator.interpolate(i.content,f,r.language);e?t.push((0,o.createElement)(e,{key:`${i.name}-${d}`},a)):t.push(a)}return t},[])}return S(v([{dummy:!0,children:e||[]}],d,O(e||[]))[0])}(f||t,P?_(P,j):N,x,T,j,b),F=void 0!==a?a:T.defaultTransParent;return F?(0,o.createElement)(F,w,A):A}({children:t,count:r,parent:a,i18nKey:s,context:l,tOptions:u,values:c,defaults:d,components:f,ns:m||N&&N.ns||_||C&&C.options&&C.options.defaultNS,i18n:C,t:y,shouldUnescape:b,...w})}let D=(e,t)=>{let r=(0,o.useRef)();return(0,o.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current};function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:r}=t,{i18n:i,defaultNS:a}=(0,o.useContext)(T)||{},s=r||i||n;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new C),!s){v("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&v("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let l={...E,...s.options.react,...t},{useSuspense:u,keyPrefix:c}=l,d=e||a||s.options&&s.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);let f=(s.isInitialized||s.initializedStoreOnce)&&d.every(e=>(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;let a=(e,r)=>{let n=t.services.backendConnector.state[`${e}|${r}`];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!a(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!o||a(i,e)))}(e,t,r):(v("i18n.languages were undefined or empty",t.languages),!0)})(e,s,l));function p(){return s.getFixedT(t.lng||null,"fallback"===l.nsMode?d:d[0],c)}let[h,m]=(0,o.useState)(p),g=d.join();t.lng&&(g=`${t.lng}${g}`);let w=D(g),x=(0,o.useRef)(!0);(0,o.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=l;function n(){x.current&&m(p)}return x.current=!0,f||u||(t.lng?b(s,t.lng,d,()=>{x.current&&m(p)}):y(s,d,()=>{x.current&&m(p)})),f&&w&&w!==g&&x.current&&m(p),e&&s&&s.on(e,n),r&&s&&s.store.on(r,n),()=>{x.current=!1,e&&s&&e.split(" ").forEach(e=>s.off(e,n)),r&&s&&r.split(" ").forEach(e=>s.store.off(e,n))}},[s,g]);let _=(0,o.useRef)(!0);(0,o.useEffect)(()=>{x.current&&!_.current&&m(p),_.current=!1},[s,c]);let k=[h,s,f];if(k.t=h,k.i18n=s,k.ready=f,f||!f&&!u)return k;throw new Promise(e=>{t.lng?b(s,t.lng,d,()=>e()):y(s,d,()=>e())})}function R(e){let{i18n:t,defaultNS:r,children:n}=e,i=(0,o.useMemo)(()=>({i18n:t,defaultNS:r}),[t,r]);return(0,o.createElement)(T.Provider,{value:i},n)}},92869:function(e,t,r){"use strict";r.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return o},ev:function(){return l},mG:function(){return i},pi:function(){return n}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function i(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function a(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},33135:function(e,t,r){"use strict";r.d(t,{Ue:function(){return l}});let n=e=>{let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,o,i),i},o=e=>e?n(e):n;var i=r(44194);let{useSyncExternalStoreWithSelector:a}=r(67591),s=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?o(e):e,r=(e,r)=>(function(e,t=e.getState,r){let n=a(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,i.useDebugValue)(n),n})(t,e,r);return Object.assign(r,t),r},l=e=>e?s(e):s},16717:function(e,t,r){"use strict";function n(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}r.d(t,{X:function(){return n}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(66598),t(97726)}),_N_E=e.O()}]);